1#! /bin/sh 2# From configure.ac Revision: 1.146 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.69. 5# 6# 7# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 8# 9# 10# This configure script is free software; the Free Software Foundation 11# gives unlimited permission to copy, distribute and modify it. 12## -------------------- ## 13## M4sh Initialization. ## 14## -------------------- ## 15 16# Be more Bourne compatible 17DUALCASE=1; export DUALCASE # for MKS sh 18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19 emulate sh 20 NULLCMD=: 21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22 # is contrary to our usage. Disable this feature. 23 alias -g '${1+"$@"}'='"$@"' 24 setopt NO_GLOB_SUBST 25else 26 case `(set -o) 2>/dev/null` in #( 27 *posix*) : 28 set -o posix ;; #( 29 *) : 30 ;; 31esac 32fi 33 34 35as_nl=' 36' 37export as_nl 38# Printing a long string crashes Solaris 7 /usr/bin/printf. 39as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 42# Prefer a ksh shell builtin over an external printf program on Solaris, 43# but without wasting forks for bash or zsh. 44if test -z "$BASH_VERSION$ZSH_VERSION" \ 45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 46 as_echo='print -r --' 47 as_echo_n='print -rn --' 48elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='printf %s\n' 50 as_echo_n='printf %s' 51else 52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 54 as_echo_n='/usr/ucb/echo -n' 55 else 56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 57 as_echo_n_body='eval 58 arg=$1; 59 case $arg in #( 60 *"$as_nl"*) 61 expr "X$arg" : "X\\(.*\\)$as_nl"; 62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 63 esac; 64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 65 ' 66 export as_echo_n_body 67 as_echo_n='sh -c $as_echo_n_body as_echo' 68 fi 69 export as_echo_body 70 as_echo='sh -c $as_echo_body as_echo' 71fi 72 73# The user is always right. 74if test "${PATH_SEPARATOR+set}" != set; then 75 PATH_SEPARATOR=: 76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 78 PATH_SEPARATOR=';' 79 } 80fi 81 82 83# IFS 84# We need space, tab and new line, in precisely that order. Quoting is 85# there to prevent editors from complaining about space-tab. 86# (If _AS_PATH_WALK were called with IFS unset, it would disable word 87# splitting by setting IFS to empty value.) 88IFS=" "" $as_nl" 89 90# Find who we are. Look in the path if we contain no directory separator. 91as_myself= 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136# Use a proper internal environment variable to ensure we don't fall 137 # into an infinite loop, continuously re-executing ourselves. 138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 139 _as_can_reexec=no; export _as_can_reexec; 140 # We cannot yet assume a decent shell, so we have to provide a 141# neutralization value for shells without unset; and this also 142# works around shells that cannot unset nonexistent variables. 143# Preserve -v and -x to the replacement shell. 144BASH_ENV=/dev/null 145ENV=/dev/null 146(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 147case $- in # (((( 148 *v*x* | *x*v* ) as_opts=-vx ;; 149 *v* ) as_opts=-v ;; 150 *x* ) as_opts=-x ;; 151 * ) as_opts= ;; 152esac 153exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 154# Admittedly, this is quite paranoid, since all the known shells bail 155# out after a failed `exec'. 156$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 157as_fn_exit 255 158 fi 159 # We don't want this to propagate to other subprocesses. 160 { _as_can_reexec=; unset _as_can_reexec;} 161if test "x$CONFIG_SHELL" = x; then 162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 163 emulate sh 164 NULLCMD=: 165 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 166 # is contrary to our usage. Disable this feature. 167 alias -g '\${1+\"\$@\"}'='\"\$@\"' 168 setopt NO_GLOB_SUBST 169else 170 case \`(set -o) 2>/dev/null\` in #( 171 *posix*) : 172 set -o posix ;; #( 173 *) : 174 ;; 175esac 176fi 177" 178 as_required="as_fn_return () { (exit \$1); } 179as_fn_success () { as_fn_return 0; } 180as_fn_failure () { as_fn_return 1; } 181as_fn_ret_success () { return 0; } 182as_fn_ret_failure () { return 1; } 183 184exitcode=0 185as_fn_success || { exitcode=1; echo as_fn_success failed.; } 186as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 187as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 188as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 189if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 190 191else 192 exitcode=1; echo positional parameters were not saved. 193fi 194test x\$exitcode = x0 || exit 1 195test -x / || exit 1" 196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 199 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 208test \$(( 1 + 1 )) = 2 || exit 1" 209 if (eval "$as_required") 2>/dev/null; then : 210 as_have_required=yes 211else 212 as_have_required=no 213fi 214 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 215 216else 217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 218as_found=false 219for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 220do 221 IFS=$as_save_IFS 222 test -z "$as_dir" && as_dir=. 223 as_found=: 224 case $as_dir in #( 225 /*) 226 for as_base in sh bash ksh sh5; do 227 # Try only shells that exist, to save several forks. 228 as_shell=$as_dir/$as_base 229 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 230 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 231 CONFIG_SHELL=$as_shell as_have_required=yes 232 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 233 break 2 234fi 235fi 236 done;; 237 esac 238 as_found=false 239done 240$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 241 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi; } 244IFS=$as_save_IFS 245 246 247 if test "x$CONFIG_SHELL" != x; then : 248 export CONFIG_SHELL 249 # We cannot yet assume a decent shell, so we have to provide a 250# neutralization value for shells without unset; and this also 251# works around shells that cannot unset nonexistent variables. 252# Preserve -v and -x to the replacement shell. 253BASH_ENV=/dev/null 254ENV=/dev/null 255(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 256case $- in # (((( 257 *v*x* | *x*v* ) as_opts=-vx ;; 258 *v* ) as_opts=-v ;; 259 *x* ) as_opts=-x ;; 260 * ) as_opts= ;; 261esac 262exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 263# Admittedly, this is quite paranoid, since all the known shells bail 264# out after a failed `exec'. 265$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 266exit 255 267fi 268 269 if test x$as_have_required = xno; then : 270 $as_echo "$0: This script requires a shell more modern than all" 271 $as_echo "$0: the shells that I found on your system." 272 if test x${ZSH_VERSION+set} = xset ; then 273 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 274 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 275 else 276 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 277$0: including any error possibly output before this 278$0: message. Then install a modern shell, or manually run 279$0: the script under such a shell if you do have one." 280 fi 281 exit 1 282fi 283fi 284fi 285SHELL=${CONFIG_SHELL-/bin/sh} 286export SHELL 287# Unset more variables known to interfere with behavior of common tools. 288CLICOLOR_FORCE= GREP_OPTIONS= 289unset CLICOLOR_FORCE GREP_OPTIONS 290 291## --------------------- ## 292## M4sh Shell Functions. ## 293## --------------------- ## 294# as_fn_unset VAR 295# --------------- 296# Portably unset VAR. 297as_fn_unset () 298{ 299 { eval $1=; unset $1;} 300} 301as_unset=as_fn_unset 302 303# as_fn_set_status STATUS 304# ----------------------- 305# Set $? to STATUS, without forking. 306as_fn_set_status () 307{ 308 return $1 309} # as_fn_set_status 310 311# as_fn_exit STATUS 312# ----------------- 313# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314as_fn_exit () 315{ 316 set +e 317 as_fn_set_status $1 318 exit $1 319} # as_fn_exit 320 321# as_fn_mkdir_p 322# ------------- 323# Create "$as_dir" as a directory, including parents if necessary. 324as_fn_mkdir_p () 325{ 326 327 case $as_dir in #( 328 -*) as_dir=./$as_dir;; 329 esac 330 test -d "$as_dir" || eval $as_mkdir_p || { 331 as_dirs= 332 while :; do 333 case $as_dir in #( 334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *) as_qdir=$as_dir;; 336 esac 337 as_dirs="'$as_qdir' $as_dirs" 338 as_dir=`$as_dirname -- "$as_dir" || 339$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343$as_echo X"$as_dir" | 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)[^/].*/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\).*/{ 357 s//\1/ 358 q 359 } 360 s/.*/./; q'` 361 test -d "$as_dir" && break 362 done 363 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 366 367} # as_fn_mkdir_p 368 369# as_fn_executable_p FILE 370# ----------------------- 371# Test if FILE is an executable regular file. 372as_fn_executable_p () 373{ 374 test -f "$1" && test -x "$1" 375} # as_fn_executable_p 376# as_fn_append VAR VALUE 377# ---------------------- 378# Append the text in VALUE to the end of the definition contained in VAR. Take 379# advantage of any shell optimizations that allow amortized linear growth over 380# repeated appends, instead of the typical quadratic growth present in naive 381# implementations. 382if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383 eval 'as_fn_append () 384 { 385 eval $1+=\$2 386 }' 387else 388 as_fn_append () 389 { 390 eval $1=\$$1\$2 391 } 392fi # as_fn_append 393 394# as_fn_arith ARG... 395# ------------------ 396# Perform arithmetic evaluation on the ARGs, and store the result in the 397# global $as_val. Take advantage of shells that can avoid forks. The arguments 398# must be portable across $(()) and expr. 399if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400 eval 'as_fn_arith () 401 { 402 as_val=$(( $* )) 403 }' 404else 405 as_fn_arith () 406 { 407 as_val=`expr "$@" || test $? -eq 1` 408 } 409fi # as_fn_arith 410 411 412# as_fn_error STATUS ERROR [LINENO LOG_FD] 413# ---------------------------------------- 414# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 415# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 416# script with STATUS, using 1 if that was 0. 417as_fn_error () 418{ 419 as_status=$1; test $as_status -eq 0 && as_status=1 420 if test "$4"; then 421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 423 fi 424 $as_echo "$as_me: error: $2" >&2 425 as_fn_exit $as_status 426} # as_fn_error 427 428if expr a : '\(a\)' >/dev/null 2>&1 && 429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 430 as_expr=expr 431else 432 as_expr=false 433fi 434 435if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 436 as_basename=basename 437else 438 as_basename=false 439fi 440 441if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 442 as_dirname=dirname 443else 444 as_dirname=false 445fi 446 447as_me=`$as_basename -- "$0" || 448$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 449 X"$0" : 'X\(//\)$' \| \ 450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 451$as_echo X/"$0" | 452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\/\)$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\).*/{ 461 s//\1/ 462 q 463 } 464 s/.*/./; q'` 465 466# Avoid depending upon Character Ranges. 467as_cr_letters='abcdefghijklmnopqrstuvwxyz' 468as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 469as_cr_Letters=$as_cr_letters$as_cr_LETTERS 470as_cr_digits='0123456789' 471as_cr_alnum=$as_cr_Letters$as_cr_digits 472 473 474 as_lineno_1=$LINENO as_lineno_1a=$LINENO 475 as_lineno_2=$LINENO as_lineno_2a=$LINENO 476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507} 508 509ECHO_C= ECHO_N= ECHO_T= 510case `echo -n x` in #((((( 511-n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518*) 519 ECHO_N='-n';; 520esac 521 522rm -f conf$$ conf$$.exe conf$$.file 523if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528fi 529if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543else 544 as_ln_s='cp -pR' 545fi 546rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547rmdir conf$$.dir 2>/dev/null 548 549if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554fi 555 556as_test_x='test -x' 557as_executable_p=as_fn_executable_p 558 559# Sed expression to map a string onto a valid CPP name. 560as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562# Sed expression to map a string onto a valid variable name. 563as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565SHELL=${CONFIG_SHELL-/bin/sh} 566 567 568test -n "$DJDIR" || exec 7<&0 </dev/null 569exec 6>&1 570 571# Name of the host. 572# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 573# so uname gets run too. 574ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 575 576# 577# Initializations. 578# 579ac_default_prefix=/usr/local 580ac_clean_files= 581ac_config_libobj_dir=. 582LIBOBJS= 583cross_compiling=no 584subdirs= 585MFLAGS= 586MAKEFLAGS= 587 588# Identity of this package. 589PACKAGE_NAME= 590PACKAGE_TARNAME= 591PACKAGE_VERSION= 592PACKAGE_STRING= 593PACKAGE_BUGREPORT= 594PACKAGE_URL= 595 596ac_unique_file="src/rep_subrs.h" 597# Factoring default headers for most tests. 598ac_includes_default="\ 599#include <stdio.h> 600#ifdef HAVE_SYS_TYPES_H 601# include <sys/types.h> 602#endif 603#ifdef HAVE_SYS_STAT_H 604# include <sys/stat.h> 605#endif 606#ifdef STDC_HEADERS 607# include <stdlib.h> 608# include <stddef.h> 609#else 610# ifdef HAVE_STDLIB_H 611# include <stdlib.h> 612# endif 613#endif 614#ifdef HAVE_STRING_H 615# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 616# include <memory.h> 617# endif 618# include <string.h> 619#endif 620#ifdef HAVE_STRINGS_H 621# include <strings.h> 622#endif 623#ifdef HAVE_INTTYPES_H 624# include <inttypes.h> 625#endif 626#ifdef HAVE_STDINT_H 627# include <stdint.h> 628#endif 629#ifdef HAVE_UNISTD_H 630# include <unistd.h> 631#endif" 632 633ac_header_list= 634ac_subst_vars='LTLIBOBJS 635USE_INCLUDED_LIBINTL 636FFI_MIN_VER 637l 638GT_NO 639GT_YES 640INTLOBJS 641MKINSTALLDIRS 642DATADIRNAME 643PACKAGE 644VERSION 645HAVE_X11 646HAVE_UNIX 647emacssitelispdir 648repdocfile 649replispdir 650repcommonexecdir 651repexecdir 652repdir 653libversion 654version 655aclocaldir 656MAKEDEP 657LIBOBJS 658ALLOCA 659LIBFFI_LIBS 660LIBFFI_CFLAGS 661PKG_CONFIG_LIBDIR 662PKG_CONFIG_PATH 663PKG_CONFIG 664READLINE_LIBS 665GDBM_LIBS 666GMP_LIBS 667SET_MAKE 668INSTALL_DATA 669INSTALL_SCRIPT 670INSTALL_PROGRAM 671EXTRA_LIBOBJS 672CPP 673LT_SYS_LIBRARY_PATH 674OTOOL64 675OTOOL 676LIPO 677NMEDIT 678DSYMUTIL 679MANIFEST_TOOL 680AWK 681RANLIB 682STRIP 683ac_ct_AR 684AR 685DLLTOOL 686OBJDUMP 687LN_S 688NM 689ac_ct_DUMPBIN 690DUMPBIN 691LD 692FGREP 693EGREP 694GREP 695SED 696OBJEXT 697EXEEXT 698ac_ct_CC 699CPPFLAGS 700LDFLAGS 701CFLAGS 702CC 703host_os 704host_vendor 705host_cpu 706host 707build_os 708build_vendor 709build_cpu 710build 711LIBTOOL 712target_alias 713host_alias 714build_alias 715LIBS 716ECHO_T 717ECHO_N 718ECHO_C 719DEFS 720mandir 721localedir 722libdir 723psdir 724pdfdir 725dvidir 726htmldir 727infodir 728docdir 729oldincludedir 730includedir 731runstatedir 732localstatedir 733sharedstatedir 734sysconfdir 735datadir 736datarootdir 737libexecdir 738sbindir 739bindir 740program_transform_name 741prefix 742exec_prefix 743PACKAGE_URL 744PACKAGE_BUGREPORT 745PACKAGE_STRING 746PACKAGE_VERSION 747PACKAGE_TARNAME 748PACKAGE_NAME 749PATH_SEPARATOR 750SHELL' 751ac_subst_files='' 752ac_user_opts=' 753enable_option_checking 754enable_shared 755enable_static 756with_pic 757enable_fast_install 758with_aix_soname 759with_gnu_ld 760with_sysroot 761enable_libtool_lock 762with_gmp 763with_gmp_prefix 764with_gdbm_prefix 765with_readline 766with_readline_prefix 767with_ffi 768with_extra_cflags 769with_aclocaldir 770enable_continuations 771enable_dballoc 772enable_dbsyms 773enable_gprof 774enable_full_name_terminator 775with_value_type 776with_value_sizeof 777with_malloc_alignment 778with_stack_direction 779enable_paranoia 780' 781 ac_precious_vars='build_alias 782host_alias 783target_alias 784CC 785CFLAGS 786LDFLAGS 787LIBS 788CPPFLAGS 789LT_SYS_LIBRARY_PATH 790CPP 791PKG_CONFIG 792PKG_CONFIG_PATH 793PKG_CONFIG_LIBDIR 794LIBFFI_CFLAGS 795LIBFFI_LIBS' 796 797 798# Initialize some variables set by options. 799ac_init_help= 800ac_init_version=false 801ac_unrecognized_opts= 802ac_unrecognized_sep= 803# The variables have the same names as the options, with 804# dashes changed to underlines. 805cache_file=/dev/null 806exec_prefix=NONE 807no_create= 808no_recursion= 809prefix=NONE 810program_prefix=NONE 811program_suffix=NONE 812program_transform_name=s,x,x, 813silent= 814site= 815srcdir= 816verbose= 817x_includes=NONE 818x_libraries=NONE 819 820# Installation directory options. 821# These are left unexpanded so users can "make install exec_prefix=/foo" 822# and all the variables that are supposed to be based on exec_prefix 823# by default will actually change. 824# Use braces instead of parens because sh, perl, etc. also accept them. 825# (The list follows the same order as the GNU Coding Standards.) 826bindir='${exec_prefix}/bin' 827sbindir='${exec_prefix}/sbin' 828libexecdir='${exec_prefix}/libexec' 829datarootdir='${prefix}/share' 830datadir='${datarootdir}' 831sysconfdir='${prefix}/etc' 832sharedstatedir='${prefix}/com' 833localstatedir='${prefix}/var' 834runstatedir='${localstatedir}/run' 835includedir='${prefix}/include' 836oldincludedir='/usr/include' 837docdir='${datarootdir}/doc/${PACKAGE}' 838infodir='${datarootdir}/info' 839htmldir='${docdir}' 840dvidir='${docdir}' 841pdfdir='${docdir}' 842psdir='${docdir}' 843libdir='${exec_prefix}/lib' 844localedir='${datarootdir}/locale' 845mandir='${datarootdir}/man' 846 847ac_prev= 848ac_dashdash= 849for ac_option 850do 851 # If the previous option needs an argument, assign it. 852 if test -n "$ac_prev"; then 853 eval $ac_prev=\$ac_option 854 ac_prev= 855 continue 856 fi 857 858 case $ac_option in 859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 860 *=) ac_optarg= ;; 861 *) ac_optarg=yes ;; 862 esac 863 864 # Accept the important Cygnus configure options, so we can diagnose typos. 865 866 case $ac_dashdash$ac_option in 867 --) 868 ac_dashdash=yes ;; 869 870 -bindir | --bindir | --bindi | --bind | --bin | --bi) 871 ac_prev=bindir ;; 872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 873 bindir=$ac_optarg ;; 874 875 -build | --build | --buil | --bui | --bu) 876 ac_prev=build_alias ;; 877 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 878 build_alias=$ac_optarg ;; 879 880 -cache-file | --cache-file | --cache-fil | --cache-fi \ 881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 882 ac_prev=cache_file ;; 883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 885 cache_file=$ac_optarg ;; 886 887 --config-cache | -C) 888 cache_file=config.cache ;; 889 890 -datadir | --datadir | --datadi | --datad) 891 ac_prev=datadir ;; 892 -datadir=* | --datadir=* | --datadi=* | --datad=*) 893 datadir=$ac_optarg ;; 894 895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 896 | --dataroo | --dataro | --datar) 897 ac_prev=datarootdir ;; 898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 900 datarootdir=$ac_optarg ;; 901 902 -disable-* | --disable-*) 903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 904 # Reject names that are not valid shell variable names. 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 906 as_fn_error $? "invalid feature name: $ac_useropt" 907 ac_useropt_orig=$ac_useropt 908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 909 case $ac_user_opts in 910 *" 911"enable_$ac_useropt" 912"*) ;; 913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 914 ac_unrecognized_sep=', ';; 915 esac 916 eval enable_$ac_useropt=no ;; 917 918 -docdir | --docdir | --docdi | --doc | --do) 919 ac_prev=docdir ;; 920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 921 docdir=$ac_optarg ;; 922 923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 924 ac_prev=dvidir ;; 925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 926 dvidir=$ac_optarg ;; 927 928 -enable-* | --enable-*) 929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 930 # Reject names that are not valid shell variable names. 931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 932 as_fn_error $? "invalid feature name: $ac_useropt" 933 ac_useropt_orig=$ac_useropt 934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 935 case $ac_user_opts in 936 *" 937"enable_$ac_useropt" 938"*) ;; 939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 940 ac_unrecognized_sep=', ';; 941 esac 942 eval enable_$ac_useropt=\$ac_optarg ;; 943 944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 946 | --exec | --exe | --ex) 947 ac_prev=exec_prefix ;; 948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 950 | --exec=* | --exe=* | --ex=*) 951 exec_prefix=$ac_optarg ;; 952 953 -gas | --gas | --ga | --g) 954 # Obsolete; use --with-gas. 955 with_gas=yes ;; 956 957 -help | --help | --hel | --he | -h) 958 ac_init_help=long ;; 959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 960 ac_init_help=recursive ;; 961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 962 ac_init_help=short ;; 963 964 -host | --host | --hos | --ho) 965 ac_prev=host_alias ;; 966 -host=* | --host=* | --hos=* | --ho=*) 967 host_alias=$ac_optarg ;; 968 969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 970 ac_prev=htmldir ;; 971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 972 | --ht=*) 973 htmldir=$ac_optarg ;; 974 975 -includedir | --includedir | --includedi | --included | --include \ 976 | --includ | --inclu | --incl | --inc) 977 ac_prev=includedir ;; 978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 979 | --includ=* | --inclu=* | --incl=* | --inc=*) 980 includedir=$ac_optarg ;; 981 982 -infodir | --infodir | --infodi | --infod | --info | --inf) 983 ac_prev=infodir ;; 984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 985 infodir=$ac_optarg ;; 986 987 -libdir | --libdir | --libdi | --libd) 988 ac_prev=libdir ;; 989 -libdir=* | --libdir=* | --libdi=* | --libd=*) 990 libdir=$ac_optarg ;; 991 992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 993 | --libexe | --libex | --libe) 994 ac_prev=libexecdir ;; 995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 996 | --libexe=* | --libex=* | --libe=*) 997 libexecdir=$ac_optarg ;; 998 999 -localedir | --localedir | --localedi | --localed | --locale) 1000 ac_prev=localedir ;; 1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1002 localedir=$ac_optarg ;; 1003 1004 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1005 | --localstate | --localstat | --localsta | --localst | --locals) 1006 ac_prev=localstatedir ;; 1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1009 localstatedir=$ac_optarg ;; 1010 1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1012 ac_prev=mandir ;; 1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1014 mandir=$ac_optarg ;; 1015 1016 -nfp | --nfp | --nf) 1017 # Obsolete; use --without-fp. 1018 with_fp=no ;; 1019 1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1021 | --no-cr | --no-c | -n) 1022 no_create=yes ;; 1023 1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1026 no_recursion=yes ;; 1027 1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1030 | --oldin | --oldi | --old | --ol | --o) 1031 ac_prev=oldincludedir ;; 1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1035 oldincludedir=$ac_optarg ;; 1036 1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1038 ac_prev=prefix ;; 1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1040 prefix=$ac_optarg ;; 1041 1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1043 | --program-pre | --program-pr | --program-p) 1044 ac_prev=program_prefix ;; 1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1047 program_prefix=$ac_optarg ;; 1048 1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1050 | --program-suf | --program-su | --program-s) 1051 ac_prev=program_suffix ;; 1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1054 program_suffix=$ac_optarg ;; 1055 1056 -program-transform-name | --program-transform-name \ 1057 | --program-transform-nam | --program-transform-na \ 1058 | --program-transform-n | --program-transform- \ 1059 | --program-transform | --program-transfor \ 1060 | --program-transfo | --program-transf \ 1061 | --program-trans | --program-tran \ 1062 | --progr-tra | --program-tr | --program-t) 1063 ac_prev=program_transform_name ;; 1064 -program-transform-name=* | --program-transform-name=* \ 1065 | --program-transform-nam=* | --program-transform-na=* \ 1066 | --program-transform-n=* | --program-transform-=* \ 1067 | --program-transform=* | --program-transfor=* \ 1068 | --program-transfo=* | --program-transf=* \ 1069 | --program-trans=* | --program-tran=* \ 1070 | --progr-tra=* | --program-tr=* | --program-t=*) 1071 program_transform_name=$ac_optarg ;; 1072 1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1074 ac_prev=pdfdir ;; 1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1076 pdfdir=$ac_optarg ;; 1077 1078 -psdir | --psdir | --psdi | --psd | --ps) 1079 ac_prev=psdir ;; 1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1081 psdir=$ac_optarg ;; 1082 1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1084 | -silent | --silent | --silen | --sile | --sil) 1085 silent=yes ;; 1086 1087 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1088 | --runstate | --runstat | --runsta | --runst | --runs \ 1089 | --run | --ru | --r) 1090 ac_prev=runstatedir ;; 1091 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1092 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1093 | --run=* | --ru=* | --r=*) 1094 runstatedir=$ac_optarg ;; 1095 1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1097 ac_prev=sbindir ;; 1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1099 | --sbi=* | --sb=*) 1100 sbindir=$ac_optarg ;; 1101 1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1104 | --sharedst | --shareds | --shared | --share | --shar \ 1105 | --sha | --sh) 1106 ac_prev=sharedstatedir ;; 1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1110 | --sha=* | --sh=*) 1111 sharedstatedir=$ac_optarg ;; 1112 1113 -site | --site | --sit) 1114 ac_prev=site ;; 1115 -site=* | --site=* | --sit=*) 1116 site=$ac_optarg ;; 1117 1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1119 ac_prev=srcdir ;; 1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1121 srcdir=$ac_optarg ;; 1122 1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1124 | --syscon | --sysco | --sysc | --sys | --sy) 1125 ac_prev=sysconfdir ;; 1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1128 sysconfdir=$ac_optarg ;; 1129 1130 -target | --target | --targe | --targ | --tar | --ta | --t) 1131 ac_prev=target_alias ;; 1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1133 target_alias=$ac_optarg ;; 1134 1135 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1136 verbose=yes ;; 1137 1138 -version | --version | --versio | --versi | --vers | -V) 1139 ac_init_version=: ;; 1140 1141 -with-* | --with-*) 1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1143 # Reject names that are not valid shell variable names. 1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1145 as_fn_error $? "invalid package name: $ac_useropt" 1146 ac_useropt_orig=$ac_useropt 1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1148 case $ac_user_opts in 1149 *" 1150"with_$ac_useropt" 1151"*) ;; 1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1153 ac_unrecognized_sep=', ';; 1154 esac 1155 eval with_$ac_useropt=\$ac_optarg ;; 1156 1157 -without-* | --without-*) 1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1159 # Reject names that are not valid shell variable names. 1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1161 as_fn_error $? "invalid package name: $ac_useropt" 1162 ac_useropt_orig=$ac_useropt 1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1164 case $ac_user_opts in 1165 *" 1166"with_$ac_useropt" 1167"*) ;; 1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1169 ac_unrecognized_sep=', ';; 1170 esac 1171 eval with_$ac_useropt=no ;; 1172 1173 --x) 1174 # Obsolete; use --with-x. 1175 with_x=yes ;; 1176 1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1178 | --x-incl | --x-inc | --x-in | --x-i) 1179 ac_prev=x_includes ;; 1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1182 x_includes=$ac_optarg ;; 1183 1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1186 ac_prev=x_libraries ;; 1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1189 x_libraries=$ac_optarg ;; 1190 1191 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1192Try \`$0 --help' for more information" 1193 ;; 1194 1195 *=*) 1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1197 # Reject names that are not valid shell variable names. 1198 case $ac_envvar in #( 1199 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1200 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1201 esac 1202 eval $ac_envvar=\$ac_optarg 1203 export $ac_envvar ;; 1204 1205 *) 1206 # FIXME: should be removed in autoconf 3.0. 1207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1211 ;; 1212 1213 esac 1214done 1215 1216if test -n "$ac_prev"; then 1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1218 as_fn_error $? "missing argument to $ac_option" 1219fi 1220 1221if test -n "$ac_unrecognized_opts"; then 1222 case $enable_option_checking in 1223 no) ;; 1224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1225 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1226 esac 1227fi 1228 1229# Check all directory arguments for consistency. 1230for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1231 datadir sysconfdir sharedstatedir localstatedir includedir \ 1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1233 libdir localedir mandir runstatedir 1234do 1235 eval ac_val=\$$ac_var 1236 # Remove trailing slashes. 1237 case $ac_val in 1238 */ ) 1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1240 eval $ac_var=\$ac_val;; 1241 esac 1242 # Be sure to have absolute directory names. 1243 case $ac_val in 1244 [\\/$]* | ?:[\\/]* ) continue;; 1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1246 esac 1247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1248done 1249 1250# There might be people who depend on the old broken behavior: `$host' 1251# used to hold the argument of --host etc. 1252# FIXME: To remove some day. 1253build=$build_alias 1254host=$host_alias 1255target=$target_alias 1256 1257# FIXME: To remove some day. 1258if test "x$host_alias" != x; then 1259 if test "x$build_alias" = x; then 1260 cross_compiling=maybe 1261 elif test "x$build_alias" != "x$host_alias"; then 1262 cross_compiling=yes 1263 fi 1264fi 1265 1266ac_tool_prefix= 1267test -n "$host_alias" && ac_tool_prefix=$host_alias- 1268 1269test "$silent" = yes && exec 6>/dev/null 1270 1271 1272ac_pwd=`pwd` && test -n "$ac_pwd" && 1273ac_ls_di=`ls -di .` && 1274ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1275 as_fn_error $? "working directory cannot be determined" 1276test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1277 as_fn_error $? "pwd does not report name of working directory" 1278 1279 1280# Find the source files, if location was not specified. 1281if test -z "$srcdir"; then 1282 ac_srcdir_defaulted=yes 1283 # Try the directory containing this script, then the parent directory. 1284 ac_confdir=`$as_dirname -- "$as_myself" || 1285$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1286 X"$as_myself" : 'X\(//\)[^/]' \| \ 1287 X"$as_myself" : 'X\(//\)$' \| \ 1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1289$as_echo X"$as_myself" | 1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\/\)[^/].*/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\/\)$/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\).*/{ 1303 s//\1/ 1304 q 1305 } 1306 s/.*/./; q'` 1307 srcdir=$ac_confdir 1308 if test ! -r "$srcdir/$ac_unique_file"; then 1309 srcdir=.. 1310 fi 1311else 1312 ac_srcdir_defaulted=no 1313fi 1314if test ! -r "$srcdir/$ac_unique_file"; then 1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1317fi 1318ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1319ac_abs_confdir=`( 1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1321 pwd)` 1322# When building in place, set srcdir=. 1323if test "$ac_abs_confdir" = "$ac_pwd"; then 1324 srcdir=. 1325fi 1326# Remove unnecessary trailing slashes from srcdir. 1327# Double slashes in file names in object file debugging info 1328# mess up M-x gdb in Emacs. 1329case $srcdir in 1330*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1331esac 1332for ac_var in $ac_precious_vars; do 1333 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1334 eval ac_env_${ac_var}_value=\$${ac_var} 1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1336 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1337done 1338 1339# 1340# Report the --help message. 1341# 1342if test "$ac_init_help" = "long"; then 1343 # Omit some internal or obsolete options to make the list less imposing. 1344 # This message is too long to be a string in the A/UX 3.1 sh. 1345 cat <<_ACEOF 1346\`configure' configures this package to adapt to many kinds of systems. 1347 1348Usage: $0 [OPTION]... [VAR=VALUE]... 1349 1350To assign environment variables (e.g., CC, CFLAGS...), specify them as 1351VAR=VALUE. See below for descriptions of some of the useful variables. 1352 1353Defaults for the options are specified in brackets. 1354 1355Configuration: 1356 -h, --help display this help and exit 1357 --help=short display options specific to this package 1358 --help=recursive display the short help of all the included packages 1359 -V, --version display version information and exit 1360 -q, --quiet, --silent do not print \`checking ...' messages 1361 --cache-file=FILE cache test results in FILE [disabled] 1362 -C, --config-cache alias for \`--cache-file=config.cache' 1363 -n, --no-create do not create output files 1364 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1365 1366Installation directories: 1367 --prefix=PREFIX install architecture-independent files in PREFIX 1368 [$ac_default_prefix] 1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1370 [PREFIX] 1371 1372By default, \`make install' will install all the files in 1373\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1374an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1375for instance \`--prefix=\$HOME'. 1376 1377For better control, use the options below. 1378 1379Fine tuning of the installation directories: 1380 --bindir=DIR user executables [EPREFIX/bin] 1381 --sbindir=DIR system admin executables [EPREFIX/sbin] 1382 --libexecdir=DIR program executables [EPREFIX/libexec] 1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1386 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1387 --libdir=DIR object code libraries [EPREFIX/lib] 1388 --includedir=DIR C header files [PREFIX/include] 1389 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1392 --infodir=DIR info documentation [DATAROOTDIR/info] 1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1394 --mandir=DIR man documentation [DATAROOTDIR/man] 1395 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1396 --htmldir=DIR html documentation [DOCDIR] 1397 --dvidir=DIR dvi documentation [DOCDIR] 1398 --pdfdir=DIR pdf documentation [DOCDIR] 1399 --psdir=DIR ps documentation [DOCDIR] 1400_ACEOF 1401 1402 cat <<\_ACEOF 1403 1404System types: 1405 --build=BUILD configure for building on BUILD [guessed] 1406 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1407_ACEOF 1408fi 1409 1410if test -n "$ac_init_help"; then 1411 1412 cat <<\_ACEOF 1413 1414Optional Features: 1415 --disable-option-checking ignore unrecognized --enable/--with options 1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1418 --enable-shared[=PKGS] build shared libraries [default=yes] 1419 --enable-static[=PKGS] build static libraries [default=yes] 1420 --enable-fast-install[=PKGS] 1421 optimize for fast installation [default=yes] 1422 --disable-libtool-lock avoid locking (might break parallel builds) 1423 --disable-continuations Do not include support for continuations 1424 or multi-threading 1425 --enable-dballoc Trace all memory allocations 1426 --disable-dbsyms When writing debug output, do not translate 1427 addresses to symbol names 1428 --enable-gprof Build for gprof (needs --enable-static) 1429 --enable-full-name-terminator=C Full name in gecos field of passwd 1430 file is terminated by first C character 1431 --enable-paranoia use wall, wno-error, ansi, pedantic compiler flags 1432 1433Optional Packages: 1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1436 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1437 both] 1438 --with-aix-soname=aix|svr4|both 1439 shared library versioning (aka "SONAME") variant to 1440 provide on AIX, [default=aix]. 1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1442 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1443 compiler's sysroot if not specified). 1444 --without-gmp Do not use GMP for bignum/rational numbers 1445 --with-gmp-prefix=DIR path to GMP 1446 --with-gdbm-prefix=DIR path to GDBM 1447 --with-readline support fancy command input editing 1448 --without-readline Do not use readline 1449 --with-readline-prefix=DIR path to readline 1450 --with-ffi Support for ffi 1451 --without-ffi Do not use ffi 1452 --with-extra-cflags=FLAGS Extra flags to pass to C compiler 1453 --with-aclocaldir=DIR Directory in which to install autoconf macros 1454 --with-value-type=TYPE Implicitly signed integer type, at least as wide 1455 as a pointer. TYPE=<probed> (see README) 1456 --with-value-sizeof=N Size (in bytes) of value type. N=<probed> 1457 --with-malloc-alignment=BYTES Must be less than or equal to the alignment 1458 returned by the malloc function. BYTES=N 1459 --with-stack-direction=DIR Stack growth direction. -1 for downwards, 1460 +1 for upwards. 1461 1462Some influential environment variables: 1463 CC C compiler command 1464 CFLAGS C compiler flags 1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1466 nonstandard directory <lib dir> 1467 LIBS libraries to pass to the linker, e.g. -l<library> 1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1469 you have headers in a nonstandard directory <include dir> 1470 LT_SYS_LIBRARY_PATH 1471 User-defined run-time library search path. 1472 CPP C preprocessor 1473 PKG_CONFIG path to pkg-config utility 1474 PKG_CONFIG_PATH 1475 directories to add to pkg-config's search path 1476 PKG_CONFIG_LIBDIR 1477 path overriding pkg-config's built-in search path 1478 LIBFFI_CFLAGS 1479 C compiler flags for LIBFFI, overriding pkg-config 1480 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 1481 1482Use these variables to override the choices made by `configure' or to help 1483it to find libraries and programs with nonstandard names/locations. 1484 1485Report bugs to the package provider. 1486_ACEOF 1487ac_status=$? 1488fi 1489 1490if test "$ac_init_help" = "recursive"; then 1491 # If there are subdirs, report their specific --help. 1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1493 test -d "$ac_dir" || 1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1495 continue 1496 ac_builddir=. 1497 1498case "$ac_dir" in 1499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1500*) 1501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1502 # A ".." for each directory in $ac_dir_suffix. 1503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1504 case $ac_top_builddir_sub in 1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1507 esac ;; 1508esac 1509ac_abs_top_builddir=$ac_pwd 1510ac_abs_builddir=$ac_pwd$ac_dir_suffix 1511# for backward compatibility: 1512ac_top_builddir=$ac_top_build_prefix 1513 1514case $srcdir in 1515 .) # We are building in place. 1516 ac_srcdir=. 1517 ac_top_srcdir=$ac_top_builddir_sub 1518 ac_abs_top_srcdir=$ac_pwd ;; 1519 [\\/]* | ?:[\\/]* ) # Absolute name. 1520 ac_srcdir=$srcdir$ac_dir_suffix; 1521 ac_top_srcdir=$srcdir 1522 ac_abs_top_srcdir=$srcdir ;; 1523 *) # Relative name. 1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1525 ac_top_srcdir=$ac_top_build_prefix$srcdir 1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1527esac 1528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1529 1530 cd "$ac_dir" || { ac_status=$?; continue; } 1531 # Check for guested configure. 1532 if test -f "$ac_srcdir/configure.gnu"; then 1533 echo && 1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1535 elif test -f "$ac_srcdir/configure"; then 1536 echo && 1537 $SHELL "$ac_srcdir/configure" --help=recursive 1538 else 1539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1540 fi || ac_status=$? 1541 cd "$ac_pwd" || { ac_status=$?; break; } 1542 done 1543fi 1544 1545test -n "$ac_init_help" && exit $ac_status 1546if $ac_init_version; then 1547 cat <<\_ACEOF 1548configure 1549generated by GNU Autoconf 2.69 1550 1551Copyright (C) 2012 Free Software Foundation, Inc. 1552This configure script is free software; the Free Software Foundation 1553gives unlimited permission to copy, distribute and modify it. 1554_ACEOF 1555 exit 1556fi 1557 1558## ------------------------ ## 1559## Autoconf initialization. ## 1560## ------------------------ ## 1561 1562# ac_fn_c_try_compile LINENO 1563# -------------------------- 1564# Try to compile conftest.$ac_ext, and return whether this succeeded. 1565ac_fn_c_try_compile () 1566{ 1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1568 rm -f conftest.$ac_objext 1569 if { { ac_try="$ac_compile" 1570case "(($ac_try" in 1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1572 *) ac_try_echo=$ac_try;; 1573esac 1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1575$as_echo "$ac_try_echo"; } >&5 1576 (eval "$ac_compile") 2>conftest.err 1577 ac_status=$? 1578 if test -s conftest.err; then 1579 grep -v '^ *+' conftest.err >conftest.er1 1580 cat conftest.er1 >&5 1581 mv -f conftest.er1 conftest.err 1582 fi 1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1584 test $ac_status = 0; } && { 1585 test -z "$ac_c_werror_flag" || 1586 test ! -s conftest.err 1587 } && test -s conftest.$ac_objext; then : 1588 ac_retval=0 1589else 1590 $as_echo "$as_me: failed program was:" >&5 1591sed 's/^/| /' conftest.$ac_ext >&5 1592 1593 ac_retval=1 1594fi 1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1596 as_fn_set_status $ac_retval 1597 1598} # ac_fn_c_try_compile 1599 1600# ac_fn_c_try_link LINENO 1601# ----------------------- 1602# Try to link conftest.$ac_ext, and return whether this succeeded. 1603ac_fn_c_try_link () 1604{ 1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1606 rm -f conftest.$ac_objext conftest$ac_exeext 1607 if { { ac_try="$ac_link" 1608case "(($ac_try" in 1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1610 *) ac_try_echo=$ac_try;; 1611esac 1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1613$as_echo "$ac_try_echo"; } >&5 1614 (eval "$ac_link") 2>conftest.err 1615 ac_status=$? 1616 if test -s conftest.err; then 1617 grep -v '^ *+' conftest.err >conftest.er1 1618 cat conftest.er1 >&5 1619 mv -f conftest.er1 conftest.err 1620 fi 1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1622 test $ac_status = 0; } && { 1623 test -z "$ac_c_werror_flag" || 1624 test ! -s conftest.err 1625 } && test -s conftest$ac_exeext && { 1626 test "$cross_compiling" = yes || 1627 test -x conftest$ac_exeext 1628 }; then : 1629 ac_retval=0 1630else 1631 $as_echo "$as_me: failed program was:" >&5 1632sed 's/^/| /' conftest.$ac_ext >&5 1633 1634 ac_retval=1 1635fi 1636 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1637 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1638 # interfere with the next link command; also delete a directory that is 1639 # left behind by Apple's compiler. We do this before executing the actions. 1640 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1642 as_fn_set_status $ac_retval 1643 1644} # ac_fn_c_try_link 1645 1646# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1647# ------------------------------------------------------- 1648# Tests whether HEADER exists and can be compiled using the include files in 1649# INCLUDES, setting the cache variable VAR accordingly. 1650ac_fn_c_check_header_compile () 1651{ 1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1654$as_echo_n "checking for $2... " >&6; } 1655if eval \${$3+:} false; then : 1656 $as_echo_n "(cached) " >&6 1657else 1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1659/* end confdefs.h. */ 1660$4 1661#include <$2> 1662_ACEOF 1663if ac_fn_c_try_compile "$LINENO"; then : 1664 eval "$3=yes" 1665else 1666 eval "$3=no" 1667fi 1668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1669fi 1670eval ac_res=\$$3 1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1672$as_echo "$ac_res" >&6; } 1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1674 1675} # ac_fn_c_check_header_compile 1676 1677# ac_fn_c_try_cpp LINENO 1678# ---------------------- 1679# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1680ac_fn_c_try_cpp () 1681{ 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1683 if { { ac_try="$ac_cpp conftest.$ac_ext" 1684case "(($ac_try" in 1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1686 *) ac_try_echo=$ac_try;; 1687esac 1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1689$as_echo "$ac_try_echo"; } >&5 1690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1691 ac_status=$? 1692 if test -s conftest.err; then 1693 grep -v '^ *+' conftest.err >conftest.er1 1694 cat conftest.er1 >&5 1695 mv -f conftest.er1 conftest.err 1696 fi 1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1698 test $ac_status = 0; } > conftest.i && { 1699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1700 test ! -s conftest.err 1701 }; then : 1702 ac_retval=0 1703else 1704 $as_echo "$as_me: failed program was:" >&5 1705sed 's/^/| /' conftest.$ac_ext >&5 1706 1707 ac_retval=1 1708fi 1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1710 as_fn_set_status $ac_retval 1711 1712} # ac_fn_c_try_cpp 1713 1714# ac_fn_c_try_run LINENO 1715# ---------------------- 1716# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1717# that executables *can* be run. 1718ac_fn_c_try_run () 1719{ 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721 if { { ac_try="$ac_link" 1722case "(($ac_try" in 1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1724 *) ac_try_echo=$ac_try;; 1725esac 1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1727$as_echo "$ac_try_echo"; } >&5 1728 (eval "$ac_link") 2>&5 1729 ac_status=$? 1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1731 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1732 { { case "(($ac_try" in 1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1734 *) ac_try_echo=$ac_try;; 1735esac 1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1737$as_echo "$ac_try_echo"; } >&5 1738 (eval "$ac_try") 2>&5 1739 ac_status=$? 1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1741 test $ac_status = 0; }; }; then : 1742 ac_retval=0 1743else 1744 $as_echo "$as_me: program exited with status $ac_status" >&5 1745 $as_echo "$as_me: failed program was:" >&5 1746sed 's/^/| /' conftest.$ac_ext >&5 1747 1748 ac_retval=$ac_status 1749fi 1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1752 as_fn_set_status $ac_retval 1753 1754} # ac_fn_c_try_run 1755 1756# ac_fn_c_check_func LINENO FUNC VAR 1757# ---------------------------------- 1758# Tests whether FUNC exists, setting the cache variable VAR accordingly 1759ac_fn_c_check_func () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1763$as_echo_n "checking for $2... " >&6; } 1764if eval \${$3+:} false; then : 1765 $as_echo_n "(cached) " >&6 1766else 1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1768/* end confdefs.h. */ 1769/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1770 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1771#define $2 innocuous_$2 1772 1773/* System header to define __stub macros and hopefully few prototypes, 1774 which can conflict with char $2 (); below. 1775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1776 <limits.h> exists even on freestanding compilers. */ 1777 1778#ifdef __STDC__ 1779# include <limits.h> 1780#else 1781# include <assert.h> 1782#endif 1783 1784#undef $2 1785 1786/* Override any GCC internal prototype to avoid an error. 1787 Use char because int might match the return type of a GCC 1788 builtin and then its argument prototype would still apply. */ 1789#ifdef __cplusplus 1790extern "C" 1791#endif 1792char $2 (); 1793/* The GNU C library defines this for functions which it implements 1794 to always fail with ENOSYS. Some functions are actually named 1795 something starting with __ and the normal name is an alias. */ 1796#if defined __stub_$2 || defined __stub___$2 1797choke me 1798#endif 1799 1800int 1801main () 1802{ 1803return $2 (); 1804 ; 1805 return 0; 1806} 1807_ACEOF 1808if ac_fn_c_try_link "$LINENO"; then : 1809 eval "$3=yes" 1810else 1811 eval "$3=no" 1812fi 1813rm -f core conftest.err conftest.$ac_objext \ 1814 conftest$ac_exeext conftest.$ac_ext 1815fi 1816eval ac_res=\$$3 1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1818$as_echo "$ac_res" >&6; } 1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1820 1821} # ac_fn_c_check_func 1822 1823# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1824# ------------------------------------------------------- 1825# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1826# the include files in INCLUDES and setting the cache variable VAR 1827# accordingly. 1828ac_fn_c_check_header_mongrel () 1829{ 1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1831 if eval \${$3+:} false; then : 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1833$as_echo_n "checking for $2... " >&6; } 1834if eval \${$3+:} false; then : 1835 $as_echo_n "(cached) " >&6 1836fi 1837eval ac_res=\$$3 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1839$as_echo "$ac_res" >&6; } 1840else 1841 # Is the header compilable? 1842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1843$as_echo_n "checking $2 usability... " >&6; } 1844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1845/* end confdefs.h. */ 1846$4 1847#include <$2> 1848_ACEOF 1849if ac_fn_c_try_compile "$LINENO"; then : 1850 ac_header_compiler=yes 1851else 1852 ac_header_compiler=no 1853fi 1854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1856$as_echo "$ac_header_compiler" >&6; } 1857 1858# Is the header present? 1859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1860$as_echo_n "checking $2 presence... " >&6; } 1861cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1862/* end confdefs.h. */ 1863#include <$2> 1864_ACEOF 1865if ac_fn_c_try_cpp "$LINENO"; then : 1866 ac_header_preproc=yes 1867else 1868 ac_header_preproc=no 1869fi 1870rm -f conftest.err conftest.i conftest.$ac_ext 1871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1872$as_echo "$ac_header_preproc" >&6; } 1873 1874# So? What about this header? 1875case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1876 yes:no: ) 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1878$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1880$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1881 ;; 1882 no:yes:* ) 1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1884$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1886$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1888$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1890$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1892$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1893 ;; 1894esac 1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1896$as_echo_n "checking for $2... " >&6; } 1897if eval \${$3+:} false; then : 1898 $as_echo_n "(cached) " >&6 1899else 1900 eval "$3=\$ac_header_compiler" 1901fi 1902eval ac_res=\$$3 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1904$as_echo "$ac_res" >&6; } 1905fi 1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1907 1908} # ac_fn_c_check_header_mongrel 1909 1910# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1911# ------------------------------------------- 1912# Tests whether TYPE exists after having included INCLUDES, setting cache 1913# variable VAR accordingly. 1914ac_fn_c_check_type () 1915{ 1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1918$as_echo_n "checking for $2... " >&6; } 1919if eval \${$3+:} false; then : 1920 $as_echo_n "(cached) " >&6 1921else 1922 eval "$3=no" 1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1924/* end confdefs.h. */ 1925$4 1926int 1927main () 1928{ 1929if (sizeof ($2)) 1930 return 0; 1931 ; 1932 return 0; 1933} 1934_ACEOF 1935if ac_fn_c_try_compile "$LINENO"; then : 1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1937/* end confdefs.h. */ 1938$4 1939int 1940main () 1941{ 1942if (sizeof (($2))) 1943 return 0; 1944 ; 1945 return 0; 1946} 1947_ACEOF 1948if ac_fn_c_try_compile "$LINENO"; then : 1949 1950else 1951 eval "$3=yes" 1952fi 1953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1954fi 1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1956fi 1957eval ac_res=\$$3 1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1959$as_echo "$ac_res" >&6; } 1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1961 1962} # ac_fn_c_check_type 1963 1964# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1965# -------------------------------------------- 1966# Tries to find the compile-time value of EXPR in a program that includes 1967# INCLUDES, setting VAR accordingly. Returns whether the value could be 1968# computed 1969ac_fn_c_compute_int () 1970{ 1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1972 if test "$cross_compiling" = yes; then 1973 # Depending upon the size, compute the lo and hi bounds. 1974cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1975/* end confdefs.h. */ 1976$4 1977int 1978main () 1979{ 1980static int test_array [1 - 2 * !(($2) >= 0)]; 1981test_array [0] = 0; 1982return test_array [0]; 1983 1984 ; 1985 return 0; 1986} 1987_ACEOF 1988if ac_fn_c_try_compile "$LINENO"; then : 1989 ac_lo=0 ac_mid=0 1990 while :; do 1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1992/* end confdefs.h. */ 1993$4 1994int 1995main () 1996{ 1997static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1998test_array [0] = 0; 1999return test_array [0]; 2000 2001 ; 2002 return 0; 2003} 2004_ACEOF 2005if ac_fn_c_try_compile "$LINENO"; then : 2006 ac_hi=$ac_mid; break 2007else 2008 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2009 if test $ac_lo -le $ac_mid; then 2010 ac_lo= ac_hi= 2011 break 2012 fi 2013 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2014fi 2015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2016 done 2017else 2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2019/* end confdefs.h. */ 2020$4 2021int 2022main () 2023{ 2024static int test_array [1 - 2 * !(($2) < 0)]; 2025test_array [0] = 0; 2026return test_array [0]; 2027 2028 ; 2029 return 0; 2030} 2031_ACEOF 2032if ac_fn_c_try_compile "$LINENO"; then : 2033 ac_hi=-1 ac_mid=-1 2034 while :; do 2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2036/* end confdefs.h. */ 2037$4 2038int 2039main () 2040{ 2041static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2042test_array [0] = 0; 2043return test_array [0]; 2044 2045 ; 2046 return 0; 2047} 2048_ACEOF 2049if ac_fn_c_try_compile "$LINENO"; then : 2050 ac_lo=$ac_mid; break 2051else 2052 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2053 if test $ac_mid -le $ac_hi; then 2054 ac_lo= ac_hi= 2055 break 2056 fi 2057 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2058fi 2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2060 done 2061else 2062 ac_lo= ac_hi= 2063fi 2064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2065fi 2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2067# Binary search between lo and hi bounds. 2068while test "x$ac_lo" != "x$ac_hi"; do 2069 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2071/* end confdefs.h. */ 2072$4 2073int 2074main () 2075{ 2076static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2077test_array [0] = 0; 2078return test_array [0]; 2079 2080 ; 2081 return 0; 2082} 2083_ACEOF 2084if ac_fn_c_try_compile "$LINENO"; then : 2085 ac_hi=$ac_mid 2086else 2087 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2088fi 2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2090done 2091case $ac_lo in #(( 2092?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2093'') ac_retval=1 ;; 2094esac 2095 else 2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2097/* end confdefs.h. */ 2098$4 2099static long int longval () { return $2; } 2100static unsigned long int ulongval () { return $2; } 2101#include <stdio.h> 2102#include <stdlib.h> 2103int 2104main () 2105{ 2106 2107 FILE *f = fopen ("conftest.val", "w"); 2108 if (! f) 2109 return 1; 2110 if (($2) < 0) 2111 { 2112 long int i = longval (); 2113 if (i != ($2)) 2114 return 1; 2115 fprintf (f, "%ld", i); 2116 } 2117 else 2118 { 2119 unsigned long int i = ulongval (); 2120 if (i != ($2)) 2121 return 1; 2122 fprintf (f, "%lu", i); 2123 } 2124 /* Do not output a trailing newline, as this causes \r\n confusion 2125 on some platforms. */ 2126 return ferror (f) || fclose (f) != 0; 2127 2128 ; 2129 return 0; 2130} 2131_ACEOF 2132if ac_fn_c_try_run "$LINENO"; then : 2133 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2134else 2135 ac_retval=1 2136fi 2137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2138 conftest.$ac_objext conftest.beam conftest.$ac_ext 2139rm -f conftest.val 2140 2141 fi 2142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2143 as_fn_set_status $ac_retval 2144 2145} # ac_fn_c_compute_int 2146cat >config.log <<_ACEOF 2147This file contains any messages produced by compilers while 2148running configure, to aid debugging if configure makes a mistake. 2149 2150It was created by $as_me, which was 2151generated by GNU Autoconf 2.69. Invocation command line was 2152 2153 $ $0 $@ 2154 2155_ACEOF 2156exec 5>>config.log 2157{ 2158cat <<_ASUNAME 2159## --------- ## 2160## Platform. ## 2161## --------- ## 2162 2163hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2164uname -m = `(uname -m) 2>/dev/null || echo unknown` 2165uname -r = `(uname -r) 2>/dev/null || echo unknown` 2166uname -s = `(uname -s) 2>/dev/null || echo unknown` 2167uname -v = `(uname -v) 2>/dev/null || echo unknown` 2168 2169/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2170/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2171 2172/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2173/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2174/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2175/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2176/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2177/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2178/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2179 2180_ASUNAME 2181 2182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2183for as_dir in $PATH 2184do 2185 IFS=$as_save_IFS 2186 test -z "$as_dir" && as_dir=. 2187 $as_echo "PATH: $as_dir" 2188 done 2189IFS=$as_save_IFS 2190 2191} >&5 2192 2193cat >&5 <<_ACEOF 2194 2195 2196## ----------- ## 2197## Core tests. ## 2198## ----------- ## 2199 2200_ACEOF 2201 2202 2203# Keep a trace of the command line. 2204# Strip out --no-create and --no-recursion so they do not pile up. 2205# Strip out --silent because we don't want to record it for future runs. 2206# Also quote any args containing shell meta-characters. 2207# Make two passes to allow for proper duplicate-argument suppression. 2208ac_configure_args= 2209ac_configure_args0= 2210ac_configure_args1= 2211ac_must_keep_next=false 2212for ac_pass in 1 2 2213do 2214 for ac_arg 2215 do 2216 case $ac_arg in 2217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2219 | -silent | --silent | --silen | --sile | --sil) 2220 continue ;; 2221 *\'*) 2222 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2223 esac 2224 case $ac_pass in 2225 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2226 2) 2227 as_fn_append ac_configure_args1 " '$ac_arg'" 2228 if test $ac_must_keep_next = true; then 2229 ac_must_keep_next=false # Got value, back to normal. 2230 else 2231 case $ac_arg in 2232 *=* | --config-cache | -C | -disable-* | --disable-* \ 2233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2235 | -with-* | --with-* | -without-* | --without-* | --x) 2236 case "$ac_configure_args0 " in 2237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2238 esac 2239 ;; 2240 -* ) ac_must_keep_next=true ;; 2241 esac 2242 fi 2243 as_fn_append ac_configure_args " '$ac_arg'" 2244 ;; 2245 esac 2246 done 2247done 2248{ ac_configure_args0=; unset ac_configure_args0;} 2249{ ac_configure_args1=; unset ac_configure_args1;} 2250 2251# When interrupted or exit'd, cleanup temporary files, and complete 2252# config.log. We remove comments because anyway the quotes in there 2253# would cause problems or look ugly. 2254# WARNING: Use '\'' to represent an apostrophe within the trap. 2255# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2256trap 'exit_status=$? 2257 # Save into config.log some information that might help in debugging. 2258 { 2259 echo 2260 2261 $as_echo "## ---------------- ## 2262## Cache variables. ## 2263## ---------------- ##" 2264 echo 2265 # The following way of writing the cache mishandles newlines in values, 2266( 2267 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2268 eval ac_val=\$$ac_var 2269 case $ac_val in #( 2270 *${as_nl}*) 2271 case $ac_var in #( 2272 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2273$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2274 esac 2275 case $ac_var in #( 2276 _ | IFS | as_nl) ;; #( 2277 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2278 *) { eval $ac_var=; unset $ac_var;} ;; 2279 esac ;; 2280 esac 2281 done 2282 (set) 2>&1 | 2283 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2284 *${as_nl}ac_space=\ *) 2285 sed -n \ 2286 "s/'\''/'\''\\\\'\'''\''/g; 2287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2288 ;; #( 2289 *) 2290 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2291 ;; 2292 esac | 2293 sort 2294) 2295 echo 2296 2297 $as_echo "## ----------------- ## 2298## Output variables. ## 2299## ----------------- ##" 2300 echo 2301 for ac_var in $ac_subst_vars 2302 do 2303 eval ac_val=\$$ac_var 2304 case $ac_val in 2305 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2306 esac 2307 $as_echo "$ac_var='\''$ac_val'\''" 2308 done | sort 2309 echo 2310 2311 if test -n "$ac_subst_files"; then 2312 $as_echo "## ------------------- ## 2313## File substitutions. ## 2314## ------------------- ##" 2315 echo 2316 for ac_var in $ac_subst_files 2317 do 2318 eval ac_val=\$$ac_var 2319 case $ac_val in 2320 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2321 esac 2322 $as_echo "$ac_var='\''$ac_val'\''" 2323 done | sort 2324 echo 2325 fi 2326 2327 if test -s confdefs.h; then 2328 $as_echo "## ----------- ## 2329## confdefs.h. ## 2330## ----------- ##" 2331 echo 2332 cat confdefs.h 2333 echo 2334 fi 2335 test "$ac_signal" != 0 && 2336 $as_echo "$as_me: caught signal $ac_signal" 2337 $as_echo "$as_me: exit $exit_status" 2338 } >&5 2339 rm -f core *.core core.conftest.* && 2340 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2341 exit $exit_status 2342' 0 2343for ac_signal in 1 2 13 15; do 2344 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2345done 2346ac_signal=0 2347 2348# confdefs.h avoids OS command line length limits that DEFS can exceed. 2349rm -f -r conftest* confdefs.h 2350 2351$as_echo "/* confdefs.h */" > confdefs.h 2352 2353# Predefined preprocessor variables. 2354 2355cat >>confdefs.h <<_ACEOF 2356#define PACKAGE_NAME "$PACKAGE_NAME" 2357_ACEOF 2358 2359cat >>confdefs.h <<_ACEOF 2360#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2361_ACEOF 2362 2363cat >>confdefs.h <<_ACEOF 2364#define PACKAGE_VERSION "$PACKAGE_VERSION" 2365_ACEOF 2366 2367cat >>confdefs.h <<_ACEOF 2368#define PACKAGE_STRING "$PACKAGE_STRING" 2369_ACEOF 2370 2371cat >>confdefs.h <<_ACEOF 2372#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2373_ACEOF 2374 2375cat >>confdefs.h <<_ACEOF 2376#define PACKAGE_URL "$PACKAGE_URL" 2377_ACEOF 2378 2379 2380# Let the site file select an alternate cache file if it wants to. 2381# Prefer an explicitly selected file to automatically selected ones. 2382ac_site_file1=NONE 2383ac_site_file2=NONE 2384if test -n "$CONFIG_SITE"; then 2385 # We do not want a PATH search for config.site. 2386 case $CONFIG_SITE in #(( 2387 -*) ac_site_file1=./$CONFIG_SITE;; 2388 */*) ac_site_file1=$CONFIG_SITE;; 2389 *) ac_site_file1=./$CONFIG_SITE;; 2390 esac 2391elif test "x$prefix" != xNONE; then 2392 ac_site_file1=$prefix/share/config.site 2393 ac_site_file2=$prefix/etc/config.site 2394else 2395 ac_site_file1=$ac_default_prefix/share/config.site 2396 ac_site_file2=$ac_default_prefix/etc/config.site 2397fi 2398for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2399do 2400 test "x$ac_site_file" = xNONE && continue 2401 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2402 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2403$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2404 sed 's/^/| /' "$ac_site_file" >&5 2405 . "$ac_site_file" \ 2406 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2408as_fn_error $? "failed to load site script $ac_site_file 2409See \`config.log' for more details" "$LINENO" 5; } 2410 fi 2411done 2412 2413if test -r "$cache_file"; then 2414 # Some versions of bash will fail to source /dev/null (special files 2415 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2416 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2418$as_echo "$as_me: loading cache $cache_file" >&6;} 2419 case $cache_file in 2420 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2421 *) . "./$cache_file";; 2422 esac 2423 fi 2424else 2425 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2426$as_echo "$as_me: creating cache $cache_file" >&6;} 2427 >$cache_file 2428fi 2429 2430as_fn_append ac_header_list " stdlib.h" 2431as_fn_append ac_header_list " unistd.h" 2432as_fn_append ac_header_list " sys/param.h" 2433# Check that the precious variables saved in the cache have kept the same 2434# value. 2435ac_cache_corrupted=false 2436for ac_var in $ac_precious_vars; do 2437 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2438 eval ac_new_set=\$ac_env_${ac_var}_set 2439 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2440 eval ac_new_val=\$ac_env_${ac_var}_value 2441 case $ac_old_set,$ac_new_set in 2442 set,) 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2444$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2445 ac_cache_corrupted=: ;; 2446 ,set) 2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2448$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2449 ac_cache_corrupted=: ;; 2450 ,);; 2451 *) 2452 if test "x$ac_old_val" != "x$ac_new_val"; then 2453 # differences in whitespace do not lead to failure. 2454 ac_old_val_w=`echo x $ac_old_val` 2455 ac_new_val_w=`echo x $ac_new_val` 2456 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2458$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2459 ac_cache_corrupted=: 2460 else 2461 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2462$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2463 eval $ac_var=\$ac_old_val 2464 fi 2465 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2466$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2468$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2469 fi;; 2470 esac 2471 # Pass precious variables to config.status. 2472 if test "$ac_new_set" = set; then 2473 case $ac_new_val in 2474 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2475 *) ac_arg=$ac_var=$ac_new_val ;; 2476 esac 2477 case " $ac_configure_args " in 2478 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2479 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2480 esac 2481 fi 2482done 2483if $ac_cache_corrupted; then 2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2487$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2488 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2489fi 2490## -------------------- ## 2491## Main body of script. ## 2492## -------------------- ## 2493 2494ac_ext=c 2495ac_cpp='$CPP $CPPFLAGS' 2496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2498ac_compiler_gnu=$ac_cv_c_compiler_gnu 2499 2500 2501 2502ac_config_headers="$ac_config_headers config.h src/rep_config.h" 2503 2504 2505 2506ac_aux_dir= 2507for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2508 if test -f "$ac_dir/install-sh"; then 2509 ac_aux_dir=$ac_dir 2510 ac_install_sh="$ac_aux_dir/install-sh -c" 2511 break 2512 elif test -f "$ac_dir/install.sh"; then 2513 ac_aux_dir=$ac_dir 2514 ac_install_sh="$ac_aux_dir/install.sh -c" 2515 break 2516 elif test -f "$ac_dir/shtool"; then 2517 ac_aux_dir=$ac_dir 2518 ac_install_sh="$ac_aux_dir/shtool install -c" 2519 break 2520 fi 2521done 2522if test -z "$ac_aux_dir"; then 2523 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2524fi 2525 2526# These three variables are undocumented and unsupported, 2527# and are intended to be withdrawn in a future Autoconf release. 2528# They can cause serious problems if a builder's source tree is in a directory 2529# whose full name contains unusual characters. 2530ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2531ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2532ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2533 2534 2535case `pwd` in 2536 *\ * | *\ *) 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2538$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2539esac 2540 2541 2542 2543macro_version='2.4.6' 2544macro_revision='2.4.6' 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558ltmain=$ac_aux_dir/ltmain.sh 2559 2560# Make sure we can run config.sub. 2561$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2562 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2563 2564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2565$as_echo_n "checking build system type... " >&6; } 2566if ${ac_cv_build+:} false; then : 2567 $as_echo_n "(cached) " >&6 2568else 2569 ac_build_alias=$build_alias 2570test "x$ac_build_alias" = x && 2571 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2572test "x$ac_build_alias" = x && 2573 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2574ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2575 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2576 2577fi 2578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2579$as_echo "$ac_cv_build" >&6; } 2580case $ac_cv_build in 2581*-*-*) ;; 2582*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2583esac 2584build=$ac_cv_build 2585ac_save_IFS=$IFS; IFS='-' 2586set x $ac_cv_build 2587shift 2588build_cpu=$1 2589build_vendor=$2 2590shift; shift 2591# Remember, the first character of IFS is used to create $*, 2592# except with old shells: 2593build_os=$* 2594IFS=$ac_save_IFS 2595case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2596 2597 2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2599$as_echo_n "checking host system type... " >&6; } 2600if ${ac_cv_host+:} false; then : 2601 $as_echo_n "(cached) " >&6 2602else 2603 if test "x$host_alias" = x; then 2604 ac_cv_host=$ac_cv_build 2605else 2606 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2607 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2608fi 2609 2610fi 2611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2612$as_echo "$ac_cv_host" >&6; } 2613case $ac_cv_host in 2614*-*-*) ;; 2615*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2616esac 2617host=$ac_cv_host 2618ac_save_IFS=$IFS; IFS='-' 2619set x $ac_cv_host 2620shift 2621host_cpu=$1 2622host_vendor=$2 2623shift; shift 2624# Remember, the first character of IFS is used to create $*, 2625# except with old shells: 2626host_os=$* 2627IFS=$ac_save_IFS 2628case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2629 2630 2631# Backslashify metacharacters that are still active within 2632# double-quoted strings. 2633sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2634 2635# Same as above, but do not quote variable references. 2636double_quote_subst='s/\(["`\\]\)/\\\1/g' 2637 2638# Sed substitution to delay expansion of an escaped shell variable in a 2639# double_quote_subst'ed string. 2640delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2641 2642# Sed substitution to delay expansion of an escaped single quote. 2643delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2644 2645# Sed substitution to avoid accidental globbing in evaled expressions 2646no_glob_subst='s/\*/\\\*/g' 2647 2648ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2649ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2650ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2651 2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2653$as_echo_n "checking how to print strings... " >&6; } 2654# Test print first, because it will be a builtin if present. 2655if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2656 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2657 ECHO='print -r --' 2658elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2659 ECHO='printf %s\n' 2660else 2661 # Use this function as a fallback that always works. 2662 func_fallback_echo () 2663 { 2664 eval 'cat <<_LTECHO_EOF 2665$1 2666_LTECHO_EOF' 2667 } 2668 ECHO='func_fallback_echo' 2669fi 2670 2671# func_echo_all arg... 2672# Invoke $ECHO with all args, space-separated. 2673func_echo_all () 2674{ 2675 $ECHO "" 2676} 2677 2678case $ECHO in 2679 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2680$as_echo "printf" >&6; } ;; 2681 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2682$as_echo "print -r" >&6; } ;; 2683 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2684$as_echo "cat" >&6; } ;; 2685esac 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700ac_ext=c 2701ac_cpp='$CPP $CPPFLAGS' 2702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2704ac_compiler_gnu=$ac_cv_c_compiler_gnu 2705if test -n "$ac_tool_prefix"; then 2706 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2707set dummy ${ac_tool_prefix}gcc; ac_word=$2 2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2709$as_echo_n "checking for $ac_word... " >&6; } 2710if ${ac_cv_prog_CC+:} false; then : 2711 $as_echo_n "(cached) " >&6 2712else 2713 if test -n "$CC"; then 2714 ac_cv_prog_CC="$CC" # Let the user override the test. 2715else 2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2717for as_dir in $PATH 2718do 2719 IFS=$as_save_IFS 2720 test -z "$as_dir" && as_dir=. 2721 for ac_exec_ext in '' $ac_executable_extensions; do 2722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2723 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2725 break 2 2726 fi 2727done 2728 done 2729IFS=$as_save_IFS 2730 2731fi 2732fi 2733CC=$ac_cv_prog_CC 2734if test -n "$CC"; then 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2736$as_echo "$CC" >&6; } 2737else 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2739$as_echo "no" >&6; } 2740fi 2741 2742 2743fi 2744if test -z "$ac_cv_prog_CC"; then 2745 ac_ct_CC=$CC 2746 # Extract the first word of "gcc", so it can be a program name with args. 2747set dummy gcc; ac_word=$2 2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2749$as_echo_n "checking for $ac_word... " >&6; } 2750if ${ac_cv_prog_ac_ct_CC+:} false; then : 2751 $as_echo_n "(cached) " >&6 2752else 2753 if test -n "$ac_ct_CC"; then 2754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2755else 2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2757for as_dir in $PATH 2758do 2759 IFS=$as_save_IFS 2760 test -z "$as_dir" && as_dir=. 2761 for ac_exec_ext in '' $ac_executable_extensions; do 2762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2763 ac_cv_prog_ac_ct_CC="gcc" 2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2765 break 2 2766 fi 2767done 2768 done 2769IFS=$as_save_IFS 2770 2771fi 2772fi 2773ac_ct_CC=$ac_cv_prog_ac_ct_CC 2774if test -n "$ac_ct_CC"; then 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2776$as_echo "$ac_ct_CC" >&6; } 2777else 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2779$as_echo "no" >&6; } 2780fi 2781 2782 if test "x$ac_ct_CC" = x; then 2783 CC="" 2784 else 2785 case $cross_compiling:$ac_tool_warned in 2786yes:) 2787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2789ac_tool_warned=yes ;; 2790esac 2791 CC=$ac_ct_CC 2792 fi 2793else 2794 CC="$ac_cv_prog_CC" 2795fi 2796 2797if test -z "$CC"; then 2798 if test -n "$ac_tool_prefix"; then 2799 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2800set dummy ${ac_tool_prefix}cc; ac_word=$2 2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2802$as_echo_n "checking for $ac_word... " >&6; } 2803if ${ac_cv_prog_CC+:} false; then : 2804 $as_echo_n "(cached) " >&6 2805else 2806 if test -n "$CC"; then 2807 ac_cv_prog_CC="$CC" # Let the user override the test. 2808else 2809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2810for as_dir in $PATH 2811do 2812 IFS=$as_save_IFS 2813 test -z "$as_dir" && as_dir=. 2814 for ac_exec_ext in '' $ac_executable_extensions; do 2815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2816 ac_cv_prog_CC="${ac_tool_prefix}cc" 2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2818 break 2 2819 fi 2820done 2821 done 2822IFS=$as_save_IFS 2823 2824fi 2825fi 2826CC=$ac_cv_prog_CC 2827if test -n "$CC"; then 2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2829$as_echo "$CC" >&6; } 2830else 2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2832$as_echo "no" >&6; } 2833fi 2834 2835 2836 fi 2837fi 2838if test -z "$CC"; then 2839 # Extract the first word of "cc", so it can be a program name with args. 2840set dummy cc; 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_CC+:} false; then : 2844 $as_echo_n "(cached) " >&6 2845else 2846 if test -n "$CC"; then 2847 ac_cv_prog_CC="$CC" # Let the user override the test. 2848else 2849 ac_prog_rejected=no 2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2851for as_dir in $PATH 2852do 2853 IFS=$as_save_IFS 2854 test -z "$as_dir" && as_dir=. 2855 for ac_exec_ext in '' $ac_executable_extensions; do 2856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2857 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2858 ac_prog_rejected=yes 2859 continue 2860 fi 2861 ac_cv_prog_CC="cc" 2862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2863 break 2 2864 fi 2865done 2866 done 2867IFS=$as_save_IFS 2868 2869if test $ac_prog_rejected = yes; then 2870 # We found a bogon in the path, so make sure we never use it. 2871 set dummy $ac_cv_prog_CC 2872 shift 2873 if test $# != 0; then 2874 # We chose a different compiler from the bogus one. 2875 # However, it has the same basename, so the bogon will be chosen 2876 # first if we set CC to just the basename; use the full file name. 2877 shift 2878 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2879 fi 2880fi 2881fi 2882fi 2883CC=$ac_cv_prog_CC 2884if test -n "$CC"; then 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2886$as_echo "$CC" >&6; } 2887else 2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2889$as_echo "no" >&6; } 2890fi 2891 2892 2893fi 2894if test -z "$CC"; then 2895 if test -n "$ac_tool_prefix"; then 2896 for ac_prog in cl.exe 2897 do 2898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2899set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2901$as_echo_n "checking for $ac_word... " >&6; } 2902if ${ac_cv_prog_CC+:} false; then : 2903 $as_echo_n "(cached) " >&6 2904else 2905 if test -n "$CC"; then 2906 ac_cv_prog_CC="$CC" # Let the user override the test. 2907else 2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2909for as_dir in $PATH 2910do 2911 IFS=$as_save_IFS 2912 test -z "$as_dir" && as_dir=. 2913 for ac_exec_ext in '' $ac_executable_extensions; do 2914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2915 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2917 break 2 2918 fi 2919done 2920 done 2921IFS=$as_save_IFS 2922 2923fi 2924fi 2925CC=$ac_cv_prog_CC 2926if test -n "$CC"; then 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2928$as_echo "$CC" >&6; } 2929else 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2931$as_echo "no" >&6; } 2932fi 2933 2934 2935 test -n "$CC" && break 2936 done 2937fi 2938if test -z "$CC"; then 2939 ac_ct_CC=$CC 2940 for ac_prog in cl.exe 2941do 2942 # Extract the first word of "$ac_prog", so it can be a program name with args. 2943set dummy $ac_prog; ac_word=$2 2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2945$as_echo_n "checking for $ac_word... " >&6; } 2946if ${ac_cv_prog_ac_ct_CC+:} false; then : 2947 $as_echo_n "(cached) " >&6 2948else 2949 if test -n "$ac_ct_CC"; then 2950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2951else 2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2953for as_dir in $PATH 2954do 2955 IFS=$as_save_IFS 2956 test -z "$as_dir" && as_dir=. 2957 for ac_exec_ext in '' $ac_executable_extensions; do 2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2959 ac_cv_prog_ac_ct_CC="$ac_prog" 2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2961 break 2 2962 fi 2963done 2964 done 2965IFS=$as_save_IFS 2966 2967fi 2968fi 2969ac_ct_CC=$ac_cv_prog_ac_ct_CC 2970if test -n "$ac_ct_CC"; then 2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2972$as_echo "$ac_ct_CC" >&6; } 2973else 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2975$as_echo "no" >&6; } 2976fi 2977 2978 2979 test -n "$ac_ct_CC" && break 2980done 2981 2982 if test "x$ac_ct_CC" = x; then 2983 CC="" 2984 else 2985 case $cross_compiling:$ac_tool_warned in 2986yes:) 2987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2989ac_tool_warned=yes ;; 2990esac 2991 CC=$ac_ct_CC 2992 fi 2993fi 2994 2995fi 2996 2997 2998test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3000as_fn_error $? "no acceptable C compiler found in \$PATH 3001See \`config.log' for more details" "$LINENO" 5; } 3002 3003# Provide some information about the compiler. 3004$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3005set X $ac_compile 3006ac_compiler=$2 3007for ac_option in --version -v -V -qversion; do 3008 { { ac_try="$ac_compiler $ac_option >&5" 3009case "(($ac_try" in 3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3011 *) ac_try_echo=$ac_try;; 3012esac 3013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3014$as_echo "$ac_try_echo"; } >&5 3015 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3016 ac_status=$? 3017 if test -s conftest.err; then 3018 sed '10a\ 3019... rest of stderr output deleted ... 3020 10q' conftest.err >conftest.er1 3021 cat conftest.er1 >&5 3022 fi 3023 rm -f conftest.er1 conftest.err 3024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3025 test $ac_status = 0; } 3026done 3027 3028cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3029/* end confdefs.h. */ 3030 3031int 3032main () 3033{ 3034 3035 ; 3036 return 0; 3037} 3038_ACEOF 3039ac_clean_files_save=$ac_clean_files 3040ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3041# Try to create an executable without -o first, disregard a.out. 3042# It will help us diagnose broken compilers, and finding out an intuition 3043# of exeext. 3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3045$as_echo_n "checking whether the C compiler works... " >&6; } 3046ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3047 3048# The possible output files: 3049ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3050 3051ac_rmfiles= 3052for ac_file in $ac_files 3053do 3054 case $ac_file in 3055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3056 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3057 esac 3058done 3059rm -f $ac_rmfiles 3060 3061if { { ac_try="$ac_link_default" 3062case "(($ac_try" in 3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3064 *) ac_try_echo=$ac_try;; 3065esac 3066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3067$as_echo "$ac_try_echo"; } >&5 3068 (eval "$ac_link_default") 2>&5 3069 ac_status=$? 3070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3071 test $ac_status = 0; }; then : 3072 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3073# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3074# in a Makefile. We should not override ac_cv_exeext if it was cached, 3075# so that the user can short-circuit this test for compilers unknown to 3076# Autoconf. 3077for ac_file in $ac_files '' 3078do 3079 test -f "$ac_file" || continue 3080 case $ac_file in 3081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3082 ;; 3083 [ab].out ) 3084 # We found the default executable, but exeext='' is most 3085 # certainly right. 3086 break;; 3087 *.* ) 3088 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3089 then :; else 3090 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3091 fi 3092 # We set ac_cv_exeext here because the later test for it is not 3093 # safe: cross compilers may not add the suffix if given an `-o' 3094 # argument, so we may need to know it at that point already. 3095 # Even if this section looks crufty: it has the advantage of 3096 # actually working. 3097 break;; 3098 * ) 3099 break;; 3100 esac 3101done 3102test "$ac_cv_exeext" = no && ac_cv_exeext= 3103 3104else 3105 ac_file='' 3106fi 3107if test -z "$ac_file"; then : 3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3109$as_echo "no" >&6; } 3110$as_echo "$as_me: failed program was:" >&5 3111sed 's/^/| /' conftest.$ac_ext >&5 3112 3113{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3115as_fn_error 77 "C compiler cannot create executables 3116See \`config.log' for more details" "$LINENO" 5; } 3117else 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3119$as_echo "yes" >&6; } 3120fi 3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3122$as_echo_n "checking for C compiler default output file name... " >&6; } 3123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3124$as_echo "$ac_file" >&6; } 3125ac_exeext=$ac_cv_exeext 3126 3127rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3128ac_clean_files=$ac_clean_files_save 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3130$as_echo_n "checking for suffix of executables... " >&6; } 3131if { { ac_try="$ac_link" 3132case "(($ac_try" in 3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3134 *) ac_try_echo=$ac_try;; 3135esac 3136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3137$as_echo "$ac_try_echo"; } >&5 3138 (eval "$ac_link") 2>&5 3139 ac_status=$? 3140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3141 test $ac_status = 0; }; then : 3142 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3143# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3144# work properly (i.e., refer to `conftest.exe'), while it won't with 3145# `rm'. 3146for ac_file in conftest.exe conftest conftest.*; do 3147 test -f "$ac_file" || continue 3148 case $ac_file in 3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3150 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3151 break;; 3152 * ) break;; 3153 esac 3154done 3155else 3156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3158as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3159See \`config.log' for more details" "$LINENO" 5; } 3160fi 3161rm -f conftest conftest$ac_cv_exeext 3162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3163$as_echo "$ac_cv_exeext" >&6; } 3164 3165rm -f conftest.$ac_ext 3166EXEEXT=$ac_cv_exeext 3167ac_exeext=$EXEEXT 3168cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3169/* end confdefs.h. */ 3170#include <stdio.h> 3171int 3172main () 3173{ 3174FILE *f = fopen ("conftest.out", "w"); 3175 return ferror (f) || fclose (f) != 0; 3176 3177 ; 3178 return 0; 3179} 3180_ACEOF 3181ac_clean_files="$ac_clean_files conftest.out" 3182# Check that the compiler produces executables we can run. If not, either 3183# the compiler is broken, or we cross compile. 3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3185$as_echo_n "checking whether we are cross compiling... " >&6; } 3186if test "$cross_compiling" != yes; then 3187 { { ac_try="$ac_link" 3188case "(($ac_try" in 3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3190 *) ac_try_echo=$ac_try;; 3191esac 3192eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3193$as_echo "$ac_try_echo"; } >&5 3194 (eval "$ac_link") 2>&5 3195 ac_status=$? 3196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3197 test $ac_status = 0; } 3198 if { ac_try='./conftest$ac_cv_exeext' 3199 { { case "(($ac_try" in 3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3201 *) ac_try_echo=$ac_try;; 3202esac 3203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3204$as_echo "$ac_try_echo"; } >&5 3205 (eval "$ac_try") 2>&5 3206 ac_status=$? 3207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3208 test $ac_status = 0; }; }; then 3209 cross_compiling=no 3210 else 3211 if test "$cross_compiling" = maybe; then 3212 cross_compiling=yes 3213 else 3214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3216as_fn_error $? "cannot run C compiled programs. 3217If you meant to cross compile, use \`--host'. 3218See \`config.log' for more details" "$LINENO" 5; } 3219 fi 3220 fi 3221fi 3222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3223$as_echo "$cross_compiling" >&6; } 3224 3225rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3226ac_clean_files=$ac_clean_files_save 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3228$as_echo_n "checking for suffix of object files... " >&6; } 3229if ${ac_cv_objext+:} false; then : 3230 $as_echo_n "(cached) " >&6 3231else 3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3233/* end confdefs.h. */ 3234 3235int 3236main () 3237{ 3238 3239 ; 3240 return 0; 3241} 3242_ACEOF 3243rm -f conftest.o conftest.obj 3244if { { ac_try="$ac_compile" 3245case "(($ac_try" in 3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3247 *) ac_try_echo=$ac_try;; 3248esac 3249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3250$as_echo "$ac_try_echo"; } >&5 3251 (eval "$ac_compile") 2>&5 3252 ac_status=$? 3253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3254 test $ac_status = 0; }; then : 3255 for ac_file in conftest.o conftest.obj conftest.*; do 3256 test -f "$ac_file" || continue; 3257 case $ac_file in 3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3259 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3260 break;; 3261 esac 3262done 3263else 3264 $as_echo "$as_me: failed program was:" >&5 3265sed 's/^/| /' conftest.$ac_ext >&5 3266 3267{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3269as_fn_error $? "cannot compute suffix of object files: cannot compile 3270See \`config.log' for more details" "$LINENO" 5; } 3271fi 3272rm -f conftest.$ac_cv_objext conftest.$ac_ext 3273fi 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3275$as_echo "$ac_cv_objext" >&6; } 3276OBJEXT=$ac_cv_objext 3277ac_objext=$OBJEXT 3278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3279$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3280if ${ac_cv_c_compiler_gnu+:} false; then : 3281 $as_echo_n "(cached) " >&6 3282else 3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3284/* end confdefs.h. */ 3285 3286int 3287main () 3288{ 3289#ifndef __GNUC__ 3290 choke me 3291#endif 3292 3293 ; 3294 return 0; 3295} 3296_ACEOF 3297if ac_fn_c_try_compile "$LINENO"; then : 3298 ac_compiler_gnu=yes 3299else 3300 ac_compiler_gnu=no 3301fi 3302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3303ac_cv_c_compiler_gnu=$ac_compiler_gnu 3304 3305fi 3306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3307$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3308if test $ac_compiler_gnu = yes; then 3309 GCC=yes 3310else 3311 GCC= 3312fi 3313ac_test_CFLAGS=${CFLAGS+set} 3314ac_save_CFLAGS=$CFLAGS 3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3316$as_echo_n "checking whether $CC accepts -g... " >&6; } 3317if ${ac_cv_prog_cc_g+:} false; then : 3318 $as_echo_n "(cached) " >&6 3319else 3320 ac_save_c_werror_flag=$ac_c_werror_flag 3321 ac_c_werror_flag=yes 3322 ac_cv_prog_cc_g=no 3323 CFLAGS="-g" 3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3325/* end confdefs.h. */ 3326 3327int 3328main () 3329{ 3330 3331 ; 3332 return 0; 3333} 3334_ACEOF 3335if ac_fn_c_try_compile "$LINENO"; then : 3336 ac_cv_prog_cc_g=yes 3337else 3338 CFLAGS="" 3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3340/* end confdefs.h. */ 3341 3342int 3343main () 3344{ 3345 3346 ; 3347 return 0; 3348} 3349_ACEOF 3350if ac_fn_c_try_compile "$LINENO"; then : 3351 3352else 3353 ac_c_werror_flag=$ac_save_c_werror_flag 3354 CFLAGS="-g" 3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3356/* end confdefs.h. */ 3357 3358int 3359main () 3360{ 3361 3362 ; 3363 return 0; 3364} 3365_ACEOF 3366if ac_fn_c_try_compile "$LINENO"; then : 3367 ac_cv_prog_cc_g=yes 3368fi 3369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3370fi 3371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3372fi 3373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3374 ac_c_werror_flag=$ac_save_c_werror_flag 3375fi 3376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3377$as_echo "$ac_cv_prog_cc_g" >&6; } 3378if test "$ac_test_CFLAGS" = set; then 3379 CFLAGS=$ac_save_CFLAGS 3380elif test $ac_cv_prog_cc_g = yes; then 3381 if test "$GCC" = yes; then 3382 CFLAGS="-g -O2" 3383 else 3384 CFLAGS="-g" 3385 fi 3386else 3387 if test "$GCC" = yes; then 3388 CFLAGS="-O2" 3389 else 3390 CFLAGS= 3391 fi 3392fi 3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3394$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3395if ${ac_cv_prog_cc_c89+:} false; then : 3396 $as_echo_n "(cached) " >&6 3397else 3398 ac_cv_prog_cc_c89=no 3399ac_save_CC=$CC 3400cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3401/* end confdefs.h. */ 3402#include <stdarg.h> 3403#include <stdio.h> 3404struct stat; 3405/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3406struct buf { int x; }; 3407FILE * (*rcsopen) (struct buf *, struct stat *, int); 3408static char *e (p, i) 3409 char **p; 3410 int i; 3411{ 3412 return p[i]; 3413} 3414static char *f (char * (*g) (char **, int), char **p, ...) 3415{ 3416 char *s; 3417 va_list v; 3418 va_start (v,p); 3419 s = g (p, va_arg (v,int)); 3420 va_end (v); 3421 return s; 3422} 3423 3424/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3425 function prototypes and stuff, but not '\xHH' hex character constants. 3426 These don't provoke an error unfortunately, instead are silently treated 3427 as 'x'. The following induces an error, until -std is added to get 3428 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3429 array size at least. It's necessary to write '\x00'==0 to get something 3430 that's true only with -std. */ 3431int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3432 3433/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3434 inside strings and character constants. */ 3435#define FOO(x) 'x' 3436int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3437 3438int test (int i, double x); 3439struct s1 {int (*f) (int a);}; 3440struct s2 {int (*f) (double a);}; 3441int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3442int argc; 3443char **argv; 3444int 3445main () 3446{ 3447return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3448 ; 3449 return 0; 3450} 3451_ACEOF 3452for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3453 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3454do 3455 CC="$ac_save_CC $ac_arg" 3456 if ac_fn_c_try_compile "$LINENO"; then : 3457 ac_cv_prog_cc_c89=$ac_arg 3458fi 3459rm -f core conftest.err conftest.$ac_objext 3460 test "x$ac_cv_prog_cc_c89" != "xno" && break 3461done 3462rm -f conftest.$ac_ext 3463CC=$ac_save_CC 3464 3465fi 3466# AC_CACHE_VAL 3467case "x$ac_cv_prog_cc_c89" in 3468 x) 3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3470$as_echo "none needed" >&6; } ;; 3471 xno) 3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3473$as_echo "unsupported" >&6; } ;; 3474 *) 3475 CC="$CC $ac_cv_prog_cc_c89" 3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3477$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3478esac 3479if test "x$ac_cv_prog_cc_c89" != xno; then : 3480 3481fi 3482 3483ac_ext=c 3484ac_cpp='$CPP $CPPFLAGS' 3485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3487ac_compiler_gnu=$ac_cv_c_compiler_gnu 3488 3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3490$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3491if ${ac_cv_path_SED+:} false; then : 3492 $as_echo_n "(cached) " >&6 3493else 3494 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3495 for ac_i in 1 2 3 4 5 6 7; do 3496 ac_script="$ac_script$as_nl$ac_script" 3497 done 3498 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3499 { ac_script=; unset ac_script;} 3500 if test -z "$SED"; then 3501 ac_path_SED_found=false 3502 # Loop through the user's path and test for each of PROGNAME-LIST 3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3504for as_dir in $PATH 3505do 3506 IFS=$as_save_IFS 3507 test -z "$as_dir" && as_dir=. 3508 for ac_prog in sed gsed; do 3509 for ac_exec_ext in '' $ac_executable_extensions; do 3510 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3511 as_fn_executable_p "$ac_path_SED" || continue 3512# Check for GNU ac_path_SED and select it if it is found. 3513 # Check for GNU $ac_path_SED 3514case `"$ac_path_SED" --version 2>&1` in 3515*GNU*) 3516 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3517*) 3518 ac_count=0 3519 $as_echo_n 0123456789 >"conftest.in" 3520 while : 3521 do 3522 cat "conftest.in" "conftest.in" >"conftest.tmp" 3523 mv "conftest.tmp" "conftest.in" 3524 cp "conftest.in" "conftest.nl" 3525 $as_echo '' >> "conftest.nl" 3526 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3527 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3528 as_fn_arith $ac_count + 1 && ac_count=$as_val 3529 if test $ac_count -gt ${ac_path_SED_max-0}; then 3530 # Best one so far, save it but keep looking for a better one 3531 ac_cv_path_SED="$ac_path_SED" 3532 ac_path_SED_max=$ac_count 3533 fi 3534 # 10*(2^10) chars as input seems more than enough 3535 test $ac_count -gt 10 && break 3536 done 3537 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3538esac 3539 3540 $ac_path_SED_found && break 3 3541 done 3542 done 3543 done 3544IFS=$as_save_IFS 3545 if test -z "$ac_cv_path_SED"; then 3546 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3547 fi 3548else 3549 ac_cv_path_SED=$SED 3550fi 3551 3552fi 3553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3554$as_echo "$ac_cv_path_SED" >&6; } 3555 SED="$ac_cv_path_SED" 3556 rm -f conftest.sed 3557 3558test -z "$SED" && SED=sed 3559Xsed="$SED -e 1s/^X//" 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3572$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3573if ${ac_cv_path_GREP+:} false; then : 3574 $as_echo_n "(cached) " >&6 3575else 3576 if test -z "$GREP"; then 3577 ac_path_GREP_found=false 3578 # Loop through the user's path and test for each of PROGNAME-LIST 3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3580for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3581do 3582 IFS=$as_save_IFS 3583 test -z "$as_dir" && as_dir=. 3584 for ac_prog in grep ggrep; do 3585 for ac_exec_ext in '' $ac_executable_extensions; do 3586 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3587 as_fn_executable_p "$ac_path_GREP" || continue 3588# Check for GNU ac_path_GREP and select it if it is found. 3589 # Check for GNU $ac_path_GREP 3590case `"$ac_path_GREP" --version 2>&1` in 3591*GNU*) 3592 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3593*) 3594 ac_count=0 3595 $as_echo_n 0123456789 >"conftest.in" 3596 while : 3597 do 3598 cat "conftest.in" "conftest.in" >"conftest.tmp" 3599 mv "conftest.tmp" "conftest.in" 3600 cp "conftest.in" "conftest.nl" 3601 $as_echo 'GREP' >> "conftest.nl" 3602 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3604 as_fn_arith $ac_count + 1 && ac_count=$as_val 3605 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3606 # Best one so far, save it but keep looking for a better one 3607 ac_cv_path_GREP="$ac_path_GREP" 3608 ac_path_GREP_max=$ac_count 3609 fi 3610 # 10*(2^10) chars as input seems more than enough 3611 test $ac_count -gt 10 && break 3612 done 3613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3614esac 3615 3616 $ac_path_GREP_found && break 3 3617 done 3618 done 3619 done 3620IFS=$as_save_IFS 3621 if test -z "$ac_cv_path_GREP"; then 3622 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3623 fi 3624else 3625 ac_cv_path_GREP=$GREP 3626fi 3627 3628fi 3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3630$as_echo "$ac_cv_path_GREP" >&6; } 3631 GREP="$ac_cv_path_GREP" 3632 3633 3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3635$as_echo_n "checking for egrep... " >&6; } 3636if ${ac_cv_path_EGREP+:} false; then : 3637 $as_echo_n "(cached) " >&6 3638else 3639 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3640 then ac_cv_path_EGREP="$GREP -E" 3641 else 3642 if test -z "$EGREP"; then 3643 ac_path_EGREP_found=false 3644 # Loop through the user's path and test for each of PROGNAME-LIST 3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3646for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3647do 3648 IFS=$as_save_IFS 3649 test -z "$as_dir" && as_dir=. 3650 for ac_prog in egrep; do 3651 for ac_exec_ext in '' $ac_executable_extensions; do 3652 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3653 as_fn_executable_p "$ac_path_EGREP" || continue 3654# Check for GNU ac_path_EGREP and select it if it is found. 3655 # Check for GNU $ac_path_EGREP 3656case `"$ac_path_EGREP" --version 2>&1` in 3657*GNU*) 3658 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3659*) 3660 ac_count=0 3661 $as_echo_n 0123456789 >"conftest.in" 3662 while : 3663 do 3664 cat "conftest.in" "conftest.in" >"conftest.tmp" 3665 mv "conftest.tmp" "conftest.in" 3666 cp "conftest.in" "conftest.nl" 3667 $as_echo 'EGREP' >> "conftest.nl" 3668 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3670 as_fn_arith $ac_count + 1 && ac_count=$as_val 3671 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3672 # Best one so far, save it but keep looking for a better one 3673 ac_cv_path_EGREP="$ac_path_EGREP" 3674 ac_path_EGREP_max=$ac_count 3675 fi 3676 # 10*(2^10) chars as input seems more than enough 3677 test $ac_count -gt 10 && break 3678 done 3679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3680esac 3681 3682 $ac_path_EGREP_found && break 3 3683 done 3684 done 3685 done 3686IFS=$as_save_IFS 3687 if test -z "$ac_cv_path_EGREP"; then 3688 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3689 fi 3690else 3691 ac_cv_path_EGREP=$EGREP 3692fi 3693 3694 fi 3695fi 3696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3697$as_echo "$ac_cv_path_EGREP" >&6; } 3698 EGREP="$ac_cv_path_EGREP" 3699 3700 3701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3702$as_echo_n "checking for fgrep... " >&6; } 3703if ${ac_cv_path_FGREP+:} false; then : 3704 $as_echo_n "(cached) " >&6 3705else 3706 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3707 then ac_cv_path_FGREP="$GREP -F" 3708 else 3709 if test -z "$FGREP"; then 3710 ac_path_FGREP_found=false 3711 # Loop through the user's path and test for each of PROGNAME-LIST 3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3713for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3714do 3715 IFS=$as_save_IFS 3716 test -z "$as_dir" && as_dir=. 3717 for ac_prog in fgrep; do 3718 for ac_exec_ext in '' $ac_executable_extensions; do 3719 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3720 as_fn_executable_p "$ac_path_FGREP" || continue 3721# Check for GNU ac_path_FGREP and select it if it is found. 3722 # Check for GNU $ac_path_FGREP 3723case `"$ac_path_FGREP" --version 2>&1` in 3724*GNU*) 3725 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3726*) 3727 ac_count=0 3728 $as_echo_n 0123456789 >"conftest.in" 3729 while : 3730 do 3731 cat "conftest.in" "conftest.in" >"conftest.tmp" 3732 mv "conftest.tmp" "conftest.in" 3733 cp "conftest.in" "conftest.nl" 3734 $as_echo 'FGREP' >> "conftest.nl" 3735 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3737 as_fn_arith $ac_count + 1 && ac_count=$as_val 3738 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3739 # Best one so far, save it but keep looking for a better one 3740 ac_cv_path_FGREP="$ac_path_FGREP" 3741 ac_path_FGREP_max=$ac_count 3742 fi 3743 # 10*(2^10) chars as input seems more than enough 3744 test $ac_count -gt 10 && break 3745 done 3746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3747esac 3748 3749 $ac_path_FGREP_found && break 3 3750 done 3751 done 3752 done 3753IFS=$as_save_IFS 3754 if test -z "$ac_cv_path_FGREP"; then 3755 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3756 fi 3757else 3758 ac_cv_path_FGREP=$FGREP 3759fi 3760 3761 fi 3762fi 3763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3764$as_echo "$ac_cv_path_FGREP" >&6; } 3765 FGREP="$ac_cv_path_FGREP" 3766 3767 3768test -z "$GREP" && GREP=grep 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788# Check whether --with-gnu-ld was given. 3789if test "${with_gnu_ld+set}" = set; then : 3790 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 3791else 3792 with_gnu_ld=no 3793fi 3794 3795ac_prog=ld 3796if test yes = "$GCC"; then 3797 # Check if gcc -print-prog-name=ld gives a path. 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 3799$as_echo_n "checking for ld used by $CC... " >&6; } 3800 case $host in 3801 *-*-mingw*) 3802 # gcc leaves a trailing carriage return, which upsets mingw 3803 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3804 *) 3805 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3806 esac 3807 case $ac_prog in 3808 # Accept absolute paths. 3809 [\\/]* | ?:[\\/]*) 3810 re_direlt='/[^/][^/]*/\.\./' 3811 # Canonicalize the pathname of ld 3812 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3813 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3814 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3815 done 3816 test -z "$LD" && LD=$ac_prog 3817 ;; 3818 "") 3819 # If it fails, then pretend we aren't using GCC. 3820 ac_prog=ld 3821 ;; 3822 *) 3823 # If it is relative, then search for the first ld in PATH. 3824 with_gnu_ld=unknown 3825 ;; 3826 esac 3827elif test yes = "$with_gnu_ld"; then 3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 3829$as_echo_n "checking for GNU ld... " >&6; } 3830else 3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 3832$as_echo_n "checking for non-GNU ld... " >&6; } 3833fi 3834if ${lt_cv_path_LD+:} false; then : 3835 $as_echo_n "(cached) " >&6 3836else 3837 if test -z "$LD"; then 3838 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 3839 for ac_dir in $PATH; do 3840 IFS=$lt_save_ifs 3841 test -z "$ac_dir" && ac_dir=. 3842 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3843 lt_cv_path_LD=$ac_dir/$ac_prog 3844 # Check to see if the program is GNU ld. I'd rather use --version, 3845 # but apparently some variants of GNU ld only accept -v. 3846 # Break only if it was the GNU/non-GNU ld that we prefer. 3847 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3848 *GNU* | *'with BFD'*) 3849 test no != "$with_gnu_ld" && break 3850 ;; 3851 *) 3852 test yes != "$with_gnu_ld" && break 3853 ;; 3854 esac 3855 fi 3856 done 3857 IFS=$lt_save_ifs 3858else 3859 lt_cv_path_LD=$LD # Let the user override the test with a path. 3860fi 3861fi 3862 3863LD=$lt_cv_path_LD 3864if test -n "$LD"; then 3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 3866$as_echo "$LD" >&6; } 3867else 3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3869$as_echo "no" >&6; } 3870fi 3871test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 3873$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 3874if ${lt_cv_prog_gnu_ld+:} false; then : 3875 $as_echo_n "(cached) " >&6 3876else 3877 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3878case `$LD -v 2>&1 </dev/null` in 3879*GNU* | *'with BFD'*) 3880 lt_cv_prog_gnu_ld=yes 3881 ;; 3882*) 3883 lt_cv_prog_gnu_ld=no 3884 ;; 3885esac 3886fi 3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 3888$as_echo "$lt_cv_prog_gnu_ld" >&6; } 3889with_gnu_ld=$lt_cv_prog_gnu_ld 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 3900$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 3901if ${lt_cv_path_NM+:} false; then : 3902 $as_echo_n "(cached) " >&6 3903else 3904 if test -n "$NM"; then 3905 # Let the user override the test. 3906 lt_cv_path_NM=$NM 3907else 3908 lt_nm_to_check=${ac_tool_prefix}nm 3909 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3910 lt_nm_to_check="$lt_nm_to_check nm" 3911 fi 3912 for lt_tmp_nm in $lt_nm_to_check; do 3913 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 3914 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3915 IFS=$lt_save_ifs 3916 test -z "$ac_dir" && ac_dir=. 3917 tmp_nm=$ac_dir/$lt_tmp_nm 3918 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 3919 # Check to see if the nm accepts a BSD-compat flag. 3920 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 3921 # nm: unknown option "B" ignored 3922 # Tru64's nm complains that /dev/null is an invalid object file 3923 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 3924 case $build_os in 3925 mingw*) lt_bad_file=conftest.nm/nofile ;; 3926 *) lt_bad_file=/dev/null ;; 3927 esac 3928 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 3929 *$lt_bad_file* | *'Invalid file or object type'*) 3930 lt_cv_path_NM="$tmp_nm -B" 3931 break 2 3932 ;; 3933 *) 3934 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3935 */dev/null*) 3936 lt_cv_path_NM="$tmp_nm -p" 3937 break 2 3938 ;; 3939 *) 3940 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3941 continue # so that we can try to find one that supports BSD flags 3942 ;; 3943 esac 3944 ;; 3945 esac 3946 fi 3947 done 3948 IFS=$lt_save_ifs 3949 done 3950 : ${lt_cv_path_NM=no} 3951fi 3952fi 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 3954$as_echo "$lt_cv_path_NM" >&6; } 3955if test no != "$lt_cv_path_NM"; then 3956 NM=$lt_cv_path_NM 3957else 3958 # Didn't find any BSD compatible name lister, look for dumpbin. 3959 if test -n "$DUMPBIN"; then : 3960 # Let the user override the test. 3961 else 3962 if test -n "$ac_tool_prefix"; then 3963 for ac_prog in dumpbin "link -dump" 3964 do 3965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3966set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3968$as_echo_n "checking for $ac_word... " >&6; } 3969if ${ac_cv_prog_DUMPBIN+:} false; then : 3970 $as_echo_n "(cached) " >&6 3971else 3972 if test -n "$DUMPBIN"; then 3973 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 3974else 3975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3976for as_dir in $PATH 3977do 3978 IFS=$as_save_IFS 3979 test -z "$as_dir" && as_dir=. 3980 for ac_exec_ext in '' $ac_executable_extensions; do 3981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3982 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3984 break 2 3985 fi 3986done 3987 done 3988IFS=$as_save_IFS 3989 3990fi 3991fi 3992DUMPBIN=$ac_cv_prog_DUMPBIN 3993if test -n "$DUMPBIN"; then 3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 3995$as_echo "$DUMPBIN" >&6; } 3996else 3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3998$as_echo "no" >&6; } 3999fi 4000 4001 4002 test -n "$DUMPBIN" && break 4003 done 4004fi 4005if test -z "$DUMPBIN"; then 4006 ac_ct_DUMPBIN=$DUMPBIN 4007 for ac_prog in dumpbin "link -dump" 4008do 4009 # Extract the first word of "$ac_prog", so it can be a program name with args. 4010set dummy $ac_prog; ac_word=$2 4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4012$as_echo_n "checking for $ac_word... " >&6; } 4013if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4014 $as_echo_n "(cached) " >&6 4015else 4016 if test -n "$ac_ct_DUMPBIN"; then 4017 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4018else 4019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4020for as_dir in $PATH 4021do 4022 IFS=$as_save_IFS 4023 test -z "$as_dir" && as_dir=. 4024 for ac_exec_ext in '' $ac_executable_extensions; do 4025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4026 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4028 break 2 4029 fi 4030done 4031 done 4032IFS=$as_save_IFS 4033 4034fi 4035fi 4036ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4037if test -n "$ac_ct_DUMPBIN"; then 4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4039$as_echo "$ac_ct_DUMPBIN" >&6; } 4040else 4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4042$as_echo "no" >&6; } 4043fi 4044 4045 4046 test -n "$ac_ct_DUMPBIN" && break 4047done 4048 4049 if test "x$ac_ct_DUMPBIN" = x; then 4050 DUMPBIN=":" 4051 else 4052 case $cross_compiling:$ac_tool_warned in 4053yes:) 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4056ac_tool_warned=yes ;; 4057esac 4058 DUMPBIN=$ac_ct_DUMPBIN 4059 fi 4060fi 4061 4062 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4063 *COFF*) 4064 DUMPBIN="$DUMPBIN -symbols -headers" 4065 ;; 4066 *) 4067 DUMPBIN=: 4068 ;; 4069 esac 4070 fi 4071 4072 if test : != "$DUMPBIN"; then 4073 NM=$DUMPBIN 4074 fi 4075fi 4076test -z "$NM" && NM=nm 4077 4078 4079 4080 4081 4082 4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4084$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4085if ${lt_cv_nm_interface+:} false; then : 4086 $as_echo_n "(cached) " >&6 4087else 4088 lt_cv_nm_interface="BSD nm" 4089 echo "int some_variable = 0;" > conftest.$ac_ext 4090 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4091 (eval "$ac_compile" 2>conftest.err) 4092 cat conftest.err >&5 4093 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4094 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4095 cat conftest.err >&5 4096 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4097 cat conftest.out >&5 4098 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4099 lt_cv_nm_interface="MS dumpbin" 4100 fi 4101 rm -f conftest* 4102fi 4103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4104$as_echo "$lt_cv_nm_interface" >&6; } 4105 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4107$as_echo_n "checking whether ln -s works... " >&6; } 4108LN_S=$as_ln_s 4109if test "$LN_S" = "ln -s"; then 4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4111$as_echo "yes" >&6; } 4112else 4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4114$as_echo "no, using $LN_S" >&6; } 4115fi 4116 4117# find the maximum length of command line arguments 4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4119$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4120if ${lt_cv_sys_max_cmd_len+:} false; then : 4121 $as_echo_n "(cached) " >&6 4122else 4123 i=0 4124 teststring=ABCD 4125 4126 case $build_os in 4127 msdosdjgpp*) 4128 # On DJGPP, this test can blow up pretty badly due to problems in libc 4129 # (any single argument exceeding 2000 bytes causes a buffer overrun 4130 # during glob expansion). Even if it were fixed, the result of this 4131 # check would be larger than it should be. 4132 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4133 ;; 4134 4135 gnu*) 4136 # Under GNU Hurd, this test is not required because there is 4137 # no limit to the length of command line arguments. 4138 # Libtool will interpret -1 as no limit whatsoever 4139 lt_cv_sys_max_cmd_len=-1; 4140 ;; 4141 4142 cygwin* | mingw* | cegcc*) 4143 # On Win9x/ME, this test blows up -- it succeeds, but takes 4144 # about 5 minutes as the teststring grows exponentially. 4145 # Worse, since 9x/ME are not pre-emptively multitasking, 4146 # you end up with a "frozen" computer, even though with patience 4147 # the test eventually succeeds (with a max line length of 256k). 4148 # Instead, let's just punt: use the minimum linelength reported by 4149 # all of the supported platforms: 8192 (on NT/2K/XP). 4150 lt_cv_sys_max_cmd_len=8192; 4151 ;; 4152 4153 mint*) 4154 # On MiNT this can take a long time and run out of memory. 4155 lt_cv_sys_max_cmd_len=8192; 4156 ;; 4157 4158 amigaos*) 4159 # On AmigaOS with pdksh, this test takes hours, literally. 4160 # So we just punt and use a minimum line length of 8192. 4161 lt_cv_sys_max_cmd_len=8192; 4162 ;; 4163 4164 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4165 # This has been around since 386BSD, at least. Likely further. 4166 if test -x /sbin/sysctl; then 4167 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4168 elif test -x /usr/sbin/sysctl; then 4169 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4170 else 4171 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4172 fi 4173 # And add a safety zone 4174 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4175 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4176 ;; 4177 4178 interix*) 4179 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4180 lt_cv_sys_max_cmd_len=196608 4181 ;; 4182 4183 os2*) 4184 # The test takes a long time on OS/2. 4185 lt_cv_sys_max_cmd_len=8192 4186 ;; 4187 4188 osf*) 4189 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4190 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4191 # nice to cause kernel panics so lets avoid the loop below. 4192 # First set a reasonable default. 4193 lt_cv_sys_max_cmd_len=16384 4194 # 4195 if test -x /sbin/sysconfig; then 4196 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4197 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4198 esac 4199 fi 4200 ;; 4201 sco3.2v5*) 4202 lt_cv_sys_max_cmd_len=102400 4203 ;; 4204 sysv5* | sco5v6* | sysv4.2uw2*) 4205 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4206 if test -n "$kargmax"; then 4207 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4208 else 4209 lt_cv_sys_max_cmd_len=32768 4210 fi 4211 ;; 4212 *) 4213 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4214 if test -n "$lt_cv_sys_max_cmd_len" && \ 4215 test undefined != "$lt_cv_sys_max_cmd_len"; then 4216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4218 else 4219 # Make teststring a little bigger before we do anything with it. 4220 # a 1K string should be a reasonable start. 4221 for i in 1 2 3 4 5 6 7 8; do 4222 teststring=$teststring$teststring 4223 done 4224 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4225 # If test is not a shell built-in, we'll probably end up computing a 4226 # maximum length that is only half of the actual maximum length, but 4227 # we can't tell. 4228 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4229 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4230 test 17 != "$i" # 1/2 MB should be enough 4231 do 4232 i=`expr $i + 1` 4233 teststring=$teststring$teststring 4234 done 4235 # Only check the string length outside the loop. 4236 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4237 teststring= 4238 # Add a significant safety factor because C++ compilers can tack on 4239 # massive amounts of additional arguments before passing them to the 4240 # linker. It appears as though 1/2 is a usable value. 4241 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4242 fi 4243 ;; 4244 esac 4245 4246fi 4247 4248if test -n "$lt_cv_sys_max_cmd_len"; then 4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4250$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4251else 4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4253$as_echo "none" >&6; } 4254fi 4255max_cmd_len=$lt_cv_sys_max_cmd_len 4256 4257 4258 4259 4260 4261 4262: ${CP="cp -f"} 4263: ${MV="mv -f"} 4264: ${RM="rm -f"} 4265 4266if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4267 lt_unset=unset 4268else 4269 lt_unset=false 4270fi 4271 4272 4273 4274 4275 4276# test EBCDIC or ASCII 4277case `echo X|tr X '\101'` in 4278 A) # ASCII based system 4279 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4280 lt_SP2NL='tr \040 \012' 4281 lt_NL2SP='tr \015\012 \040\040' 4282 ;; 4283 *) # EBCDIC based system 4284 lt_SP2NL='tr \100 \n' 4285 lt_NL2SP='tr \r\n \100\100' 4286 ;; 4287esac 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4298$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4299if ${lt_cv_to_host_file_cmd+:} false; then : 4300 $as_echo_n "(cached) " >&6 4301else 4302 case $host in 4303 *-*-mingw* ) 4304 case $build in 4305 *-*-mingw* ) # actually msys 4306 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4307 ;; 4308 *-*-cygwin* ) 4309 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4310 ;; 4311 * ) # otherwise, assume *nix 4312 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4313 ;; 4314 esac 4315 ;; 4316 *-*-cygwin* ) 4317 case $build in 4318 *-*-mingw* ) # actually msys 4319 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4320 ;; 4321 *-*-cygwin* ) 4322 lt_cv_to_host_file_cmd=func_convert_file_noop 4323 ;; 4324 * ) # otherwise, assume *nix 4325 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4326 ;; 4327 esac 4328 ;; 4329 * ) # unhandled hosts (and "normal" native builds) 4330 lt_cv_to_host_file_cmd=func_convert_file_noop 4331 ;; 4332esac 4333 4334fi 4335 4336to_host_file_cmd=$lt_cv_to_host_file_cmd 4337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4338$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4339 4340 4341 4342 4343 4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4345$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4346if ${lt_cv_to_tool_file_cmd+:} false; then : 4347 $as_echo_n "(cached) " >&6 4348else 4349 #assume ordinary cross tools, or native build. 4350lt_cv_to_tool_file_cmd=func_convert_file_noop 4351case $host in 4352 *-*-mingw* ) 4353 case $build in 4354 *-*-mingw* ) # actually msys 4355 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4356 ;; 4357 esac 4358 ;; 4359esac 4360 4361fi 4362 4363to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4365$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4366 4367 4368 4369 4370 4371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4372$as_echo_n "checking for $LD option to reload object files... " >&6; } 4373if ${lt_cv_ld_reload_flag+:} false; then : 4374 $as_echo_n "(cached) " >&6 4375else 4376 lt_cv_ld_reload_flag='-r' 4377fi 4378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4379$as_echo "$lt_cv_ld_reload_flag" >&6; } 4380reload_flag=$lt_cv_ld_reload_flag 4381case $reload_flag in 4382"" | " "*) ;; 4383*) reload_flag=" $reload_flag" ;; 4384esac 4385reload_cmds='$LD$reload_flag -o $output$reload_objs' 4386case $host_os in 4387 cygwin* | mingw* | pw32* | cegcc*) 4388 if test yes != "$GCC"; then 4389 reload_cmds=false 4390 fi 4391 ;; 4392 darwin*) 4393 if test yes = "$GCC"; then 4394 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 4395 else 4396 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4397 fi 4398 ;; 4399esac 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409if test -n "$ac_tool_prefix"; then 4410 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4411set dummy ${ac_tool_prefix}objdump; ac_word=$2 4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4413$as_echo_n "checking for $ac_word... " >&6; } 4414if ${ac_cv_prog_OBJDUMP+:} false; then : 4415 $as_echo_n "(cached) " >&6 4416else 4417 if test -n "$OBJDUMP"; then 4418 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4419else 4420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4421for as_dir in $PATH 4422do 4423 IFS=$as_save_IFS 4424 test -z "$as_dir" && as_dir=. 4425 for ac_exec_ext in '' $ac_executable_extensions; do 4426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4427 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4429 break 2 4430 fi 4431done 4432 done 4433IFS=$as_save_IFS 4434 4435fi 4436fi 4437OBJDUMP=$ac_cv_prog_OBJDUMP 4438if test -n "$OBJDUMP"; then 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4440$as_echo "$OBJDUMP" >&6; } 4441else 4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4443$as_echo "no" >&6; } 4444fi 4445 4446 4447fi 4448if test -z "$ac_cv_prog_OBJDUMP"; then 4449 ac_ct_OBJDUMP=$OBJDUMP 4450 # Extract the first word of "objdump", so it can be a program name with args. 4451set dummy objdump; ac_word=$2 4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4453$as_echo_n "checking for $ac_word... " >&6; } 4454if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4455 $as_echo_n "(cached) " >&6 4456else 4457 if test -n "$ac_ct_OBJDUMP"; then 4458 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4459else 4460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4461for as_dir in $PATH 4462do 4463 IFS=$as_save_IFS 4464 test -z "$as_dir" && as_dir=. 4465 for ac_exec_ext in '' $ac_executable_extensions; do 4466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4467 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4469 break 2 4470 fi 4471done 4472 done 4473IFS=$as_save_IFS 4474 4475fi 4476fi 4477ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4478if test -n "$ac_ct_OBJDUMP"; then 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4480$as_echo "$ac_ct_OBJDUMP" >&6; } 4481else 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4483$as_echo "no" >&6; } 4484fi 4485 4486 if test "x$ac_ct_OBJDUMP" = x; then 4487 OBJDUMP="false" 4488 else 4489 case $cross_compiling:$ac_tool_warned in 4490yes:) 4491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4493ac_tool_warned=yes ;; 4494esac 4495 OBJDUMP=$ac_ct_OBJDUMP 4496 fi 4497else 4498 OBJDUMP="$ac_cv_prog_OBJDUMP" 4499fi 4500 4501test -z "$OBJDUMP" && OBJDUMP=objdump 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4512$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4513if ${lt_cv_deplibs_check_method+:} false; then : 4514 $as_echo_n "(cached) " >&6 4515else 4516 lt_cv_file_magic_cmd='$MAGIC_CMD' 4517lt_cv_file_magic_test_file= 4518lt_cv_deplibs_check_method='unknown' 4519# Need to set the preceding variable on all platforms that support 4520# interlibrary dependencies. 4521# 'none' -- dependencies not supported. 4522# 'unknown' -- same as none, but documents that we really don't know. 4523# 'pass_all' -- all dependencies passed with no checks. 4524# 'test_compile' -- check by making test program. 4525# 'file_magic [[regex]]' -- check by looking for files in library path 4526# that responds to the $file_magic_cmd with a given extended regex. 4527# If you have 'file' or equivalent on your system and you're not sure 4528# whether 'pass_all' will *always* work, you probably want this one. 4529 4530case $host_os in 4531aix[4-9]*) 4532 lt_cv_deplibs_check_method=pass_all 4533 ;; 4534 4535beos*) 4536 lt_cv_deplibs_check_method=pass_all 4537 ;; 4538 4539bsdi[45]*) 4540 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4541 lt_cv_file_magic_cmd='/usr/bin/file -L' 4542 lt_cv_file_magic_test_file=/shlib/libc.so 4543 ;; 4544 4545cygwin*) 4546 # func_win32_libid is a shell function defined in ltmain.sh 4547 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4548 lt_cv_file_magic_cmd='func_win32_libid' 4549 ;; 4550 4551mingw* | pw32*) 4552 # Base MSYS/MinGW do not provide the 'file' command needed by 4553 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4554 # unless we find 'file', for example because we are cross-compiling. 4555 if ( file / ) >/dev/null 2>&1; then 4556 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4557 lt_cv_file_magic_cmd='func_win32_libid' 4558 else 4559 # Keep this pattern in sync with the one in func_win32_libid. 4560 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4561 lt_cv_file_magic_cmd='$OBJDUMP -f' 4562 fi 4563 ;; 4564 4565cegcc*) 4566 # use the weaker test based on 'objdump'. See mingw*. 4567 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4568 lt_cv_file_magic_cmd='$OBJDUMP -f' 4569 ;; 4570 4571darwin* | rhapsody*) 4572 lt_cv_deplibs_check_method=pass_all 4573 ;; 4574 4575freebsd* | dragonfly*) 4576 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4577 case $host_cpu in 4578 i*86 ) 4579 # Not sure whether the presence of OpenBSD here was a mistake. 4580 # Let's accept both of them until this is cleared up. 4581 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4582 lt_cv_file_magic_cmd=/usr/bin/file 4583 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4584 ;; 4585 esac 4586 else 4587 lt_cv_deplibs_check_method=pass_all 4588 fi 4589 ;; 4590 4591haiku*) 4592 lt_cv_deplibs_check_method=pass_all 4593 ;; 4594 4595hpux10.20* | hpux11*) 4596 lt_cv_file_magic_cmd=/usr/bin/file 4597 case $host_cpu in 4598 ia64*) 4599 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4600 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4601 ;; 4602 hppa*64*) 4603 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]' 4604 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4605 ;; 4606 *) 4607 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 4608 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4609 ;; 4610 esac 4611 ;; 4612 4613interix[3-9]*) 4614 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4616 ;; 4617 4618irix5* | irix6* | nonstopux*) 4619 case $LD in 4620 *-32|*"-32 ") libmagic=32-bit;; 4621 *-n32|*"-n32 ") libmagic=N32;; 4622 *-64|*"-64 ") libmagic=64-bit;; 4623 *) libmagic=never-match;; 4624 esac 4625 lt_cv_deplibs_check_method=pass_all 4626 ;; 4627 4628# This must be glibc/ELF. 4629linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 4630 lt_cv_deplibs_check_method=pass_all 4631 ;; 4632 4633netbsd* | netbsdelf*-gnu) 4634 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4636 else 4637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4638 fi 4639 ;; 4640 4641newos6*) 4642 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4643 lt_cv_file_magic_cmd=/usr/bin/file 4644 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4645 ;; 4646 4647*nto* | *qnx*) 4648 lt_cv_deplibs_check_method=pass_all 4649 ;; 4650 4651openbsd* | bitrig*) 4652 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 4653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4654 else 4655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4656 fi 4657 ;; 4658 4659osf3* | osf4* | osf5*) 4660 lt_cv_deplibs_check_method=pass_all 4661 ;; 4662 4663rdos*) 4664 lt_cv_deplibs_check_method=pass_all 4665 ;; 4666 4667solaris*) 4668 lt_cv_deplibs_check_method=pass_all 4669 ;; 4670 4671sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4672 lt_cv_deplibs_check_method=pass_all 4673 ;; 4674 4675sysv4 | sysv4.3*) 4676 case $host_vendor in 4677 motorola) 4678 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]' 4679 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4680 ;; 4681 ncr) 4682 lt_cv_deplibs_check_method=pass_all 4683 ;; 4684 sequent) 4685 lt_cv_file_magic_cmd='/bin/file' 4686 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4687 ;; 4688 sni) 4689 lt_cv_file_magic_cmd='/bin/file' 4690 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4691 lt_cv_file_magic_test_file=/lib/libc.so 4692 ;; 4693 siemens) 4694 lt_cv_deplibs_check_method=pass_all 4695 ;; 4696 pc) 4697 lt_cv_deplibs_check_method=pass_all 4698 ;; 4699 esac 4700 ;; 4701 4702tpf*) 4703 lt_cv_deplibs_check_method=pass_all 4704 ;; 4705os2*) 4706 lt_cv_deplibs_check_method=pass_all 4707 ;; 4708esac 4709 4710fi 4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4712$as_echo "$lt_cv_deplibs_check_method" >&6; } 4713 4714file_magic_glob= 4715want_nocaseglob=no 4716if test "$build" = "$host"; then 4717 case $host_os in 4718 mingw* | pw32*) 4719 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 4720 want_nocaseglob=yes 4721 else 4722 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 4723 fi 4724 ;; 4725 esac 4726fi 4727 4728file_magic_cmd=$lt_cv_file_magic_cmd 4729deplibs_check_method=$lt_cv_deplibs_check_method 4730test -z "$deplibs_check_method" && deplibs_check_method=unknown 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753if test -n "$ac_tool_prefix"; then 4754 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4755set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4757$as_echo_n "checking for $ac_word... " >&6; } 4758if ${ac_cv_prog_DLLTOOL+:} false; then : 4759 $as_echo_n "(cached) " >&6 4760else 4761 if test -n "$DLLTOOL"; then 4762 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4763else 4764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4765for as_dir in $PATH 4766do 4767 IFS=$as_save_IFS 4768 test -z "$as_dir" && as_dir=. 4769 for ac_exec_ext in '' $ac_executable_extensions; do 4770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4771 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4773 break 2 4774 fi 4775done 4776 done 4777IFS=$as_save_IFS 4778 4779fi 4780fi 4781DLLTOOL=$ac_cv_prog_DLLTOOL 4782if test -n "$DLLTOOL"; then 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4784$as_echo "$DLLTOOL" >&6; } 4785else 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4787$as_echo "no" >&6; } 4788fi 4789 4790 4791fi 4792if test -z "$ac_cv_prog_DLLTOOL"; then 4793 ac_ct_DLLTOOL=$DLLTOOL 4794 # Extract the first word of "dlltool", so it can be a program name with args. 4795set dummy dlltool; ac_word=$2 4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4797$as_echo_n "checking for $ac_word... " >&6; } 4798if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4799 $as_echo_n "(cached) " >&6 4800else 4801 if test -n "$ac_ct_DLLTOOL"; then 4802 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4803else 4804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4805for as_dir in $PATH 4806do 4807 IFS=$as_save_IFS 4808 test -z "$as_dir" && as_dir=. 4809 for ac_exec_ext in '' $ac_executable_extensions; do 4810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4811 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4813 break 2 4814 fi 4815done 4816 done 4817IFS=$as_save_IFS 4818 4819fi 4820fi 4821ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4822if test -n "$ac_ct_DLLTOOL"; then 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4824$as_echo "$ac_ct_DLLTOOL" >&6; } 4825else 4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4827$as_echo "no" >&6; } 4828fi 4829 4830 if test "x$ac_ct_DLLTOOL" = x; then 4831 DLLTOOL="false" 4832 else 4833 case $cross_compiling:$ac_tool_warned in 4834yes:) 4835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4837ac_tool_warned=yes ;; 4838esac 4839 DLLTOOL=$ac_ct_DLLTOOL 4840 fi 4841else 4842 DLLTOOL="$ac_cv_prog_DLLTOOL" 4843fi 4844 4845test -z "$DLLTOOL" && DLLTOOL=dlltool 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 4857$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 4858if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 4859 $as_echo_n "(cached) " >&6 4860else 4861 lt_cv_sharedlib_from_linklib_cmd='unknown' 4862 4863case $host_os in 4864cygwin* | mingw* | pw32* | cegcc*) 4865 # two different shell functions defined in ltmain.sh; 4866 # decide which one to use based on capabilities of $DLLTOOL 4867 case `$DLLTOOL --help 2>&1` in 4868 *--identify-strict*) 4869 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 4870 ;; 4871 *) 4872 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 4873 ;; 4874 esac 4875 ;; 4876*) 4877 # fallback: assume linklib IS sharedlib 4878 lt_cv_sharedlib_from_linklib_cmd=$ECHO 4879 ;; 4880esac 4881 4882fi 4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 4884$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 4885sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 4886test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 4887 4888 4889 4890 4891 4892 4893 4894 4895if test -n "$ac_tool_prefix"; then 4896 for ac_prog in ar 4897 do 4898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4899set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4901$as_echo_n "checking for $ac_word... " >&6; } 4902if ${ac_cv_prog_AR+:} false; then : 4903 $as_echo_n "(cached) " >&6 4904else 4905 if test -n "$AR"; then 4906 ac_cv_prog_AR="$AR" # Let the user override the test. 4907else 4908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4909for as_dir in $PATH 4910do 4911 IFS=$as_save_IFS 4912 test -z "$as_dir" && as_dir=. 4913 for ac_exec_ext in '' $ac_executable_extensions; do 4914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4915 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4917 break 2 4918 fi 4919done 4920 done 4921IFS=$as_save_IFS 4922 4923fi 4924fi 4925AR=$ac_cv_prog_AR 4926if test -n "$AR"; then 4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4928$as_echo "$AR" >&6; } 4929else 4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4931$as_echo "no" >&6; } 4932fi 4933 4934 4935 test -n "$AR" && break 4936 done 4937fi 4938if test -z "$AR"; then 4939 ac_ct_AR=$AR 4940 for ac_prog in ar 4941do 4942 # Extract the first word of "$ac_prog", so it can be a program name with args. 4943set dummy $ac_prog; ac_word=$2 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4945$as_echo_n "checking for $ac_word... " >&6; } 4946if ${ac_cv_prog_ac_ct_AR+:} false; then : 4947 $as_echo_n "(cached) " >&6 4948else 4949 if test -n "$ac_ct_AR"; then 4950 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4951else 4952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4953for as_dir in $PATH 4954do 4955 IFS=$as_save_IFS 4956 test -z "$as_dir" && as_dir=. 4957 for ac_exec_ext in '' $ac_executable_extensions; do 4958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4959 ac_cv_prog_ac_ct_AR="$ac_prog" 4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4961 break 2 4962 fi 4963done 4964 done 4965IFS=$as_save_IFS 4966 4967fi 4968fi 4969ac_ct_AR=$ac_cv_prog_ac_ct_AR 4970if test -n "$ac_ct_AR"; then 4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4972$as_echo "$ac_ct_AR" >&6; } 4973else 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4975$as_echo "no" >&6; } 4976fi 4977 4978 4979 test -n "$ac_ct_AR" && break 4980done 4981 4982 if test "x$ac_ct_AR" = x; then 4983 AR="false" 4984 else 4985 case $cross_compiling:$ac_tool_warned in 4986yes:) 4987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4989ac_tool_warned=yes ;; 4990esac 4991 AR=$ac_ct_AR 4992 fi 4993fi 4994 4995: ${AR=ar} 4996: ${AR_FLAGS=cru} 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5009$as_echo_n "checking for archiver @FILE support... " >&6; } 5010if ${lt_cv_ar_at_file+:} false; then : 5011 $as_echo_n "(cached) " >&6 5012else 5013 lt_cv_ar_at_file=no 5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5015/* end confdefs.h. */ 5016 5017int 5018main () 5019{ 5020 5021 ; 5022 return 0; 5023} 5024_ACEOF 5025if ac_fn_c_try_compile "$LINENO"; then : 5026 echo conftest.$ac_objext > conftest.lst 5027 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5029 (eval $lt_ar_try) 2>&5 5030 ac_status=$? 5031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5032 test $ac_status = 0; } 5033 if test 0 -eq "$ac_status"; then 5034 # Ensure the archiver fails upon bogus file names. 5035 rm -f conftest.$ac_objext libconftest.a 5036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5037 (eval $lt_ar_try) 2>&5 5038 ac_status=$? 5039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5040 test $ac_status = 0; } 5041 if test 0 -ne "$ac_status"; then 5042 lt_cv_ar_at_file=@ 5043 fi 5044 fi 5045 rm -f conftest.* libconftest.a 5046 5047fi 5048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5049 5050fi 5051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5052$as_echo "$lt_cv_ar_at_file" >&6; } 5053 5054if test no = "$lt_cv_ar_at_file"; then 5055 archiver_list_spec= 5056else 5057 archiver_list_spec=$lt_cv_ar_at_file 5058fi 5059 5060 5061 5062 5063 5064 5065 5066if test -n "$ac_tool_prefix"; then 5067 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5068set dummy ${ac_tool_prefix}strip; ac_word=$2 5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5070$as_echo_n "checking for $ac_word... " >&6; } 5071if ${ac_cv_prog_STRIP+:} false; then : 5072 $as_echo_n "(cached) " >&6 5073else 5074 if test -n "$STRIP"; then 5075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5076else 5077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5078for as_dir in $PATH 5079do 5080 IFS=$as_save_IFS 5081 test -z "$as_dir" && as_dir=. 5082 for ac_exec_ext in '' $ac_executable_extensions; do 5083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5084 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5086 break 2 5087 fi 5088done 5089 done 5090IFS=$as_save_IFS 5091 5092fi 5093fi 5094STRIP=$ac_cv_prog_STRIP 5095if test -n "$STRIP"; then 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5097$as_echo "$STRIP" >&6; } 5098else 5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5100$as_echo "no" >&6; } 5101fi 5102 5103 5104fi 5105if test -z "$ac_cv_prog_STRIP"; then 5106 ac_ct_STRIP=$STRIP 5107 # Extract the first word of "strip", so it can be a program name with args. 5108set dummy strip; ac_word=$2 5109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5110$as_echo_n "checking for $ac_word... " >&6; } 5111if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5112 $as_echo_n "(cached) " >&6 5113else 5114 if test -n "$ac_ct_STRIP"; then 5115 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5116else 5117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5118for as_dir in $PATH 5119do 5120 IFS=$as_save_IFS 5121 test -z "$as_dir" && as_dir=. 5122 for ac_exec_ext in '' $ac_executable_extensions; do 5123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5124 ac_cv_prog_ac_ct_STRIP="strip" 5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5126 break 2 5127 fi 5128done 5129 done 5130IFS=$as_save_IFS 5131 5132fi 5133fi 5134ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5135if test -n "$ac_ct_STRIP"; then 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5137$as_echo "$ac_ct_STRIP" >&6; } 5138else 5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5140$as_echo "no" >&6; } 5141fi 5142 5143 if test "x$ac_ct_STRIP" = x; then 5144 STRIP=":" 5145 else 5146 case $cross_compiling:$ac_tool_warned in 5147yes:) 5148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5150ac_tool_warned=yes ;; 5151esac 5152 STRIP=$ac_ct_STRIP 5153 fi 5154else 5155 STRIP="$ac_cv_prog_STRIP" 5156fi 5157 5158test -z "$STRIP" && STRIP=: 5159 5160 5161 5162 5163 5164 5165if test -n "$ac_tool_prefix"; then 5166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5167set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5169$as_echo_n "checking for $ac_word... " >&6; } 5170if ${ac_cv_prog_RANLIB+:} false; then : 5171 $as_echo_n "(cached) " >&6 5172else 5173 if test -n "$RANLIB"; then 5174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5175else 5176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5177for as_dir in $PATH 5178do 5179 IFS=$as_save_IFS 5180 test -z "$as_dir" && as_dir=. 5181 for ac_exec_ext in '' $ac_executable_extensions; do 5182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5185 break 2 5186 fi 5187done 5188 done 5189IFS=$as_save_IFS 5190 5191fi 5192fi 5193RANLIB=$ac_cv_prog_RANLIB 5194if test -n "$RANLIB"; then 5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5196$as_echo "$RANLIB" >&6; } 5197else 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5199$as_echo "no" >&6; } 5200fi 5201 5202 5203fi 5204if test -z "$ac_cv_prog_RANLIB"; then 5205 ac_ct_RANLIB=$RANLIB 5206 # Extract the first word of "ranlib", so it can be a program name with args. 5207set dummy ranlib; ac_word=$2 5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5209$as_echo_n "checking for $ac_word... " >&6; } 5210if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5211 $as_echo_n "(cached) " >&6 5212else 5213 if test -n "$ac_ct_RANLIB"; then 5214 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5215else 5216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5217for as_dir in $PATH 5218do 5219 IFS=$as_save_IFS 5220 test -z "$as_dir" && as_dir=. 5221 for ac_exec_ext in '' $ac_executable_extensions; do 5222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5223 ac_cv_prog_ac_ct_RANLIB="ranlib" 5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5225 break 2 5226 fi 5227done 5228 done 5229IFS=$as_save_IFS 5230 5231fi 5232fi 5233ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5234if test -n "$ac_ct_RANLIB"; then 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5236$as_echo "$ac_ct_RANLIB" >&6; } 5237else 5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5239$as_echo "no" >&6; } 5240fi 5241 5242 if test "x$ac_ct_RANLIB" = x; then 5243 RANLIB=":" 5244 else 5245 case $cross_compiling:$ac_tool_warned in 5246yes:) 5247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5249ac_tool_warned=yes ;; 5250esac 5251 RANLIB=$ac_ct_RANLIB 5252 fi 5253else 5254 RANLIB="$ac_cv_prog_RANLIB" 5255fi 5256 5257test -z "$RANLIB" && RANLIB=: 5258 5259 5260 5261 5262 5263 5264# Determine commands to create old-style static archives. 5265old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5266old_postinstall_cmds='chmod 644 $oldlib' 5267old_postuninstall_cmds= 5268 5269if test -n "$RANLIB"; then 5270 case $host_os in 5271 bitrig* | openbsd*) 5272 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5273 ;; 5274 *) 5275 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5276 ;; 5277 esac 5278 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5279fi 5280 5281case $host_os in 5282 darwin*) 5283 lock_old_archive_extraction=yes ;; 5284 *) 5285 lock_old_archive_extraction=no ;; 5286esac 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308for ac_prog in gawk mawk nawk awk 5309do 5310 # Extract the first word of "$ac_prog", so it can be a program name with args. 5311set dummy $ac_prog; ac_word=$2 5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5313$as_echo_n "checking for $ac_word... " >&6; } 5314if ${ac_cv_prog_AWK+:} false; then : 5315 $as_echo_n "(cached) " >&6 5316else 5317 if test -n "$AWK"; then 5318 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5319else 5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5321for as_dir in $PATH 5322do 5323 IFS=$as_save_IFS 5324 test -z "$as_dir" && as_dir=. 5325 for ac_exec_ext in '' $ac_executable_extensions; do 5326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5327 ac_cv_prog_AWK="$ac_prog" 5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5329 break 2 5330 fi 5331done 5332 done 5333IFS=$as_save_IFS 5334 5335fi 5336fi 5337AWK=$ac_cv_prog_AWK 5338if test -n "$AWK"; then 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5340$as_echo "$AWK" >&6; } 5341else 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5343$as_echo "no" >&6; } 5344fi 5345 5346 5347 test -n "$AWK" && break 5348done 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368# If no C compiler was specified, use CC. 5369LTCC=${LTCC-"$CC"} 5370 5371# If no C compiler flags were specified, use CFLAGS. 5372LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5373 5374# Allow CC to be a program name with arguments. 5375compiler=$CC 5376 5377 5378# Check for command to grab the raw symbol name followed by C symbol from nm. 5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5380$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5381if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5382 $as_echo_n "(cached) " >&6 5383else 5384 5385# These are sane defaults that work on at least a few old systems. 5386# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5387 5388# Character class describing NM global symbol codes. 5389symcode='[BCDEGRST]' 5390 5391# Regexp to match symbols that can be accessed directly from C. 5392sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5393 5394# Define system-specific variables. 5395case $host_os in 5396aix*) 5397 symcode='[BCDT]' 5398 ;; 5399cygwin* | mingw* | pw32* | cegcc*) 5400 symcode='[ABCDGISTW]' 5401 ;; 5402hpux*) 5403 if test ia64 = "$host_cpu"; then 5404 symcode='[ABCDEGRST]' 5405 fi 5406 ;; 5407irix* | nonstopux*) 5408 symcode='[BCDEGRST]' 5409 ;; 5410osf*) 5411 symcode='[BCDEGQRST]' 5412 ;; 5413solaris*) 5414 symcode='[BDRT]' 5415 ;; 5416sco3.2v5*) 5417 symcode='[DT]' 5418 ;; 5419sysv4.2uw2*) 5420 symcode='[DT]' 5421 ;; 5422sysv5* | sco5v6* | unixware* | OpenUNIX*) 5423 symcode='[ABDT]' 5424 ;; 5425sysv4) 5426 symcode='[DFNSTU]' 5427 ;; 5428esac 5429 5430# If we're using GNU nm, then use its standard symbol codes. 5431case `$NM -V 2>&1` in 5432*GNU* | *'with BFD'*) 5433 symcode='[ABCDGIRSTW]' ;; 5434esac 5435 5436if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5437 # Gets list of data symbols to import. 5438 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 5439 # Adjust the below global symbol transforms to fixup imported variables. 5440 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 5441 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 5442 lt_c_name_lib_hook="\ 5443 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 5444 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 5445else 5446 # Disable hooks by default. 5447 lt_cv_sys_global_symbol_to_import= 5448 lt_cdecl_hook= 5449 lt_c_name_hook= 5450 lt_c_name_lib_hook= 5451fi 5452 5453# Transform an extracted symbol line into a proper C declaration. 5454# Some systems (esp. on ia64) link data and code symbols differently, 5455# so use this general approach. 5456lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 5457$lt_cdecl_hook\ 5458" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 5459" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 5460 5461# Transform an extracted symbol line into symbol name and symbol address 5462lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 5463$lt_c_name_hook\ 5464" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5465" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 5466 5467# Transform an extracted symbol line into symbol name with lib prefix and 5468# symbol address. 5469lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 5470$lt_c_name_lib_hook\ 5471" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5472" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 5473" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 5474 5475# Handle CRLF in mingw tool chain 5476opt_cr= 5477case $build_os in 5478mingw*) 5479 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5480 ;; 5481esac 5482 5483# Try without a prefix underscore, then with it. 5484for ac_symprfx in "" "_"; do 5485 5486 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5487 symxfrm="\\1 $ac_symprfx\\2 \\2" 5488 5489 # Write the raw and C identifiers. 5490 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5491 # Fake it for dumpbin and say T for any non-static function, 5492 # D for any global variable and I for any imported variable. 5493 # Also find C++ and __fastcall symbols from MSVC++, 5494 # which start with @ or ?. 5495 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5496" {last_section=section; section=\$ 3};"\ 5497" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5498" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5499" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 5500" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 5501" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 5502" \$ 0!~/External *\|/{next};"\ 5503" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5504" {if(hide[section]) next};"\ 5505" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 5506" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 5507" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 5508" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 5509" ' prfx=^$ac_symprfx" 5510 else 5511 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5512 fi 5513 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5514 5515 # Check to see that the pipe works correctly. 5516 pipe_works=no 5517 5518 rm -f conftest* 5519 cat > conftest.$ac_ext <<_LT_EOF 5520#ifdef __cplusplus 5521extern "C" { 5522#endif 5523char nm_test_var; 5524void nm_test_func(void); 5525void nm_test_func(void){} 5526#ifdef __cplusplus 5527} 5528#endif 5529int main(){nm_test_var='a';nm_test_func();return(0);} 5530_LT_EOF 5531 5532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5533 (eval $ac_compile) 2>&5 5534 ac_status=$? 5535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5536 test $ac_status = 0; }; then 5537 # Now try to grab the symbols. 5538 nlist=conftest.nm 5539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5540 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5541 ac_status=$? 5542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5543 test $ac_status = 0; } && test -s "$nlist"; then 5544 # Try sorting and uniquifying the output. 5545 if sort "$nlist" | uniq > "$nlist"T; then 5546 mv -f "$nlist"T "$nlist" 5547 else 5548 rm -f "$nlist"T 5549 fi 5550 5551 # Make sure that we snagged all the symbols we need. 5552 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5553 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5554 cat <<_LT_EOF > conftest.$ac_ext 5555/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5556#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 5557/* DATA imports from DLLs on WIN32 can't be const, because runtime 5558 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5559# define LT_DLSYM_CONST 5560#elif defined __osf__ 5561/* This system does not cope well with relocations in const data. */ 5562# define LT_DLSYM_CONST 5563#else 5564# define LT_DLSYM_CONST const 5565#endif 5566 5567#ifdef __cplusplus 5568extern "C" { 5569#endif 5570 5571_LT_EOF 5572 # Now generate the symbol file. 5573 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5574 5575 cat <<_LT_EOF >> conftest.$ac_ext 5576 5577/* The mapping between symbol names and symbols. */ 5578LT_DLSYM_CONST struct { 5579 const char *name; 5580 void *address; 5581} 5582lt__PROGRAM__LTX_preloaded_symbols[] = 5583{ 5584 { "@PROGRAM@", (void *) 0 }, 5585_LT_EOF 5586 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5587 cat <<\_LT_EOF >> conftest.$ac_ext 5588 {0, (void *) 0} 5589}; 5590 5591/* This works around a problem in FreeBSD linker */ 5592#ifdef FREEBSD_WORKAROUND 5593static const void *lt_preloaded_setup() { 5594 return lt__PROGRAM__LTX_preloaded_symbols; 5595} 5596#endif 5597 5598#ifdef __cplusplus 5599} 5600#endif 5601_LT_EOF 5602 # Now try linking the two files. 5603 mv conftest.$ac_objext conftstm.$ac_objext 5604 lt_globsym_save_LIBS=$LIBS 5605 lt_globsym_save_CFLAGS=$CFLAGS 5606 LIBS=conftstm.$ac_objext 5607 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5609 (eval $ac_link) 2>&5 5610 ac_status=$? 5611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5612 test $ac_status = 0; } && test -s conftest$ac_exeext; then 5613 pipe_works=yes 5614 fi 5615 LIBS=$lt_globsym_save_LIBS 5616 CFLAGS=$lt_globsym_save_CFLAGS 5617 else 5618 echo "cannot find nm_test_func in $nlist" >&5 5619 fi 5620 else 5621 echo "cannot find nm_test_var in $nlist" >&5 5622 fi 5623 else 5624 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5625 fi 5626 else 5627 echo "$progname: failed program was:" >&5 5628 cat conftest.$ac_ext >&5 5629 fi 5630 rm -rf conftest* conftst* 5631 5632 # Do not use the global_symbol_pipe unless it works. 5633 if test yes = "$pipe_works"; then 5634 break 5635 else 5636 lt_cv_sys_global_symbol_pipe= 5637 fi 5638done 5639 5640fi 5641 5642if test -z "$lt_cv_sys_global_symbol_pipe"; then 5643 lt_cv_sys_global_symbol_to_cdecl= 5644fi 5645if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5647$as_echo "failed" >&6; } 5648else 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5650$as_echo "ok" >&6; } 5651fi 5652 5653# Response file support. 5654if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5655 nm_file_list_spec='@' 5656elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 5657 nm_file_list_spec='@' 5658fi 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 5697$as_echo_n "checking for sysroot... " >&6; } 5698 5699# Check whether --with-sysroot was given. 5700if test "${with_sysroot+set}" = set; then : 5701 withval=$with_sysroot; 5702else 5703 with_sysroot=no 5704fi 5705 5706 5707lt_sysroot= 5708case $with_sysroot in #( 5709 yes) 5710 if test yes = "$GCC"; then 5711 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 5712 fi 5713 ;; #( 5714 /*) 5715 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 5716 ;; #( 5717 no|'') 5718 ;; #( 5719 *) 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 5721$as_echo "$with_sysroot" >&6; } 5722 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 5723 ;; 5724esac 5725 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 5727$as_echo "${lt_sysroot:-no}" >&6; } 5728 5729 5730 5731 5732 5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 5734$as_echo_n "checking for a working dd... " >&6; } 5735if ${ac_cv_path_lt_DD+:} false; then : 5736 $as_echo_n "(cached) " >&6 5737else 5738 printf 0123456789abcdef0123456789abcdef >conftest.i 5739cat conftest.i conftest.i >conftest2.i 5740: ${lt_DD:=$DD} 5741if test -z "$lt_DD"; then 5742 ac_path_lt_DD_found=false 5743 # Loop through the user's path and test for each of PROGNAME-LIST 5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5745for as_dir in $PATH 5746do 5747 IFS=$as_save_IFS 5748 test -z "$as_dir" && as_dir=. 5749 for ac_prog in dd; do 5750 for ac_exec_ext in '' $ac_executable_extensions; do 5751 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 5752 as_fn_executable_p "$ac_path_lt_DD" || continue 5753if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 5754 cmp -s conftest.i conftest.out \ 5755 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 5756fi 5757 $ac_path_lt_DD_found && break 3 5758 done 5759 done 5760 done 5761IFS=$as_save_IFS 5762 if test -z "$ac_cv_path_lt_DD"; then 5763 : 5764 fi 5765else 5766 ac_cv_path_lt_DD=$lt_DD 5767fi 5768 5769rm -f conftest.i conftest2.i conftest.out 5770fi 5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 5772$as_echo "$ac_cv_path_lt_DD" >&6; } 5773 5774 5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 5776$as_echo_n "checking how to truncate binary pipes... " >&6; } 5777if ${lt_cv_truncate_bin+:} false; then : 5778 $as_echo_n "(cached) " >&6 5779else 5780 printf 0123456789abcdef0123456789abcdef >conftest.i 5781cat conftest.i conftest.i >conftest2.i 5782lt_cv_truncate_bin= 5783if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 5784 cmp -s conftest.i conftest.out \ 5785 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 5786fi 5787rm -f conftest.i conftest2.i conftest.out 5788test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 5789fi 5790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 5791$as_echo "$lt_cv_truncate_bin" >&6; } 5792 5793 5794 5795 5796 5797 5798 5799# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 5800func_cc_basename () 5801{ 5802 for cc_temp in $*""; do 5803 case $cc_temp in 5804 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 5805 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 5806 \-*) ;; 5807 *) break;; 5808 esac 5809 done 5810 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 5811} 5812 5813# Check whether --enable-libtool-lock was given. 5814if test "${enable_libtool_lock+set}" = set; then : 5815 enableval=$enable_libtool_lock; 5816fi 5817 5818test no = "$enable_libtool_lock" || enable_libtool_lock=yes 5819 5820# Some flags need to be propagated to the compiler or linker for good 5821# libtool support. 5822case $host in 5823ia64-*-hpux*) 5824 # Find out what ABI is being produced by ac_compile, and set mode 5825 # options accordingly. 5826 echo 'int i;' > conftest.$ac_ext 5827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5828 (eval $ac_compile) 2>&5 5829 ac_status=$? 5830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5831 test $ac_status = 0; }; then 5832 case `/usr/bin/file conftest.$ac_objext` in 5833 *ELF-32*) 5834 HPUX_IA64_MODE=32 5835 ;; 5836 *ELF-64*) 5837 HPUX_IA64_MODE=64 5838 ;; 5839 esac 5840 fi 5841 rm -rf conftest* 5842 ;; 5843*-*-irix6*) 5844 # Find out what ABI is being produced by ac_compile, and set linker 5845 # options accordingly. 5846 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 5847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5848 (eval $ac_compile) 2>&5 5849 ac_status=$? 5850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5851 test $ac_status = 0; }; then 5852 if test yes = "$lt_cv_prog_gnu_ld"; then 5853 case `/usr/bin/file conftest.$ac_objext` in 5854 *32-bit*) 5855 LD="${LD-ld} -melf32bsmip" 5856 ;; 5857 *N32*) 5858 LD="${LD-ld} -melf32bmipn32" 5859 ;; 5860 *64-bit*) 5861 LD="${LD-ld} -melf64bmip" 5862 ;; 5863 esac 5864 else 5865 case `/usr/bin/file conftest.$ac_objext` in 5866 *32-bit*) 5867 LD="${LD-ld} -32" 5868 ;; 5869 *N32*) 5870 LD="${LD-ld} -n32" 5871 ;; 5872 *64-bit*) 5873 LD="${LD-ld} -64" 5874 ;; 5875 esac 5876 fi 5877 fi 5878 rm -rf conftest* 5879 ;; 5880 5881mips64*-*linux*) 5882 # Find out what ABI is being produced by ac_compile, and set linker 5883 # options accordingly. 5884 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 5885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5886 (eval $ac_compile) 2>&5 5887 ac_status=$? 5888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5889 test $ac_status = 0; }; then 5890 emul=elf 5891 case `/usr/bin/file conftest.$ac_objext` in 5892 *32-bit*) 5893 emul="${emul}32" 5894 ;; 5895 *64-bit*) 5896 emul="${emul}64" 5897 ;; 5898 esac 5899 case `/usr/bin/file conftest.$ac_objext` in 5900 *MSB*) 5901 emul="${emul}btsmip" 5902 ;; 5903 *LSB*) 5904 emul="${emul}ltsmip" 5905 ;; 5906 esac 5907 case `/usr/bin/file conftest.$ac_objext` in 5908 *N32*) 5909 emul="${emul}n32" 5910 ;; 5911 esac 5912 LD="${LD-ld} -m $emul" 5913 fi 5914 rm -rf conftest* 5915 ;; 5916 5917x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 5918s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5919 # Find out what ABI is being produced by ac_compile, and set linker 5920 # options accordingly. Note that the listed cases only cover the 5921 # situations where additional linker options are needed (such as when 5922 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 5923 # vice versa); the common cases where no linker options are needed do 5924 # not appear in the list. 5925 echo 'int i;' > conftest.$ac_ext 5926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5927 (eval $ac_compile) 2>&5 5928 ac_status=$? 5929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5930 test $ac_status = 0; }; then 5931 case `/usr/bin/file conftest.o` in 5932 *32-bit*) 5933 case $host in 5934 x86_64-*kfreebsd*-gnu) 5935 LD="${LD-ld} -m elf_i386_fbsd" 5936 ;; 5937 x86_64-*linux*) 5938 case `/usr/bin/file conftest.o` in 5939 *x86-64*) 5940 LD="${LD-ld} -m elf32_x86_64" 5941 ;; 5942 *) 5943 LD="${LD-ld} -m elf_i386" 5944 ;; 5945 esac 5946 ;; 5947 powerpc64le-*linux*) 5948 LD="${LD-ld} -m elf32lppclinux" 5949 ;; 5950 powerpc64-*linux*) 5951 LD="${LD-ld} -m elf32ppclinux" 5952 ;; 5953 s390x-*linux*) 5954 LD="${LD-ld} -m elf_s390" 5955 ;; 5956 sparc64-*linux*) 5957 LD="${LD-ld} -m elf32_sparc" 5958 ;; 5959 esac 5960 ;; 5961 *64-bit*) 5962 case $host in 5963 x86_64-*kfreebsd*-gnu) 5964 LD="${LD-ld} -m elf_x86_64_fbsd" 5965 ;; 5966 x86_64-*linux*) 5967 LD="${LD-ld} -m elf_x86_64" 5968 ;; 5969 powerpcle-*linux*) 5970 LD="${LD-ld} -m elf64lppc" 5971 ;; 5972 powerpc-*linux*) 5973 LD="${LD-ld} -m elf64ppc" 5974 ;; 5975 s390*-*linux*|s390*-*tpf*) 5976 LD="${LD-ld} -m elf64_s390" 5977 ;; 5978 sparc*-*linux*) 5979 LD="${LD-ld} -m elf64_sparc" 5980 ;; 5981 esac 5982 ;; 5983 esac 5984 fi 5985 rm -rf conftest* 5986 ;; 5987 5988*-*-sco3.2v5*) 5989 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5990 SAVE_CFLAGS=$CFLAGS 5991 CFLAGS="$CFLAGS -belf" 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5993$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5994if ${lt_cv_cc_needs_belf+:} false; then : 5995 $as_echo_n "(cached) " >&6 5996else 5997 ac_ext=c 5998ac_cpp='$CPP $CPPFLAGS' 5999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6001ac_compiler_gnu=$ac_cv_c_compiler_gnu 6002 6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6004/* end confdefs.h. */ 6005 6006int 6007main () 6008{ 6009 6010 ; 6011 return 0; 6012} 6013_ACEOF 6014if ac_fn_c_try_link "$LINENO"; then : 6015 lt_cv_cc_needs_belf=yes 6016else 6017 lt_cv_cc_needs_belf=no 6018fi 6019rm -f core conftest.err conftest.$ac_objext \ 6020 conftest$ac_exeext conftest.$ac_ext 6021 ac_ext=c 6022ac_cpp='$CPP $CPPFLAGS' 6023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6025ac_compiler_gnu=$ac_cv_c_compiler_gnu 6026 6027fi 6028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6029$as_echo "$lt_cv_cc_needs_belf" >&6; } 6030 if test yes != "$lt_cv_cc_needs_belf"; then 6031 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6032 CFLAGS=$SAVE_CFLAGS 6033 fi 6034 ;; 6035*-*solaris*) 6036 # Find out what ABI is being produced by ac_compile, and set linker 6037 # options accordingly. 6038 echo 'int i;' > conftest.$ac_ext 6039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6040 (eval $ac_compile) 2>&5 6041 ac_status=$? 6042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6043 test $ac_status = 0; }; then 6044 case `/usr/bin/file conftest.o` in 6045 *64-bit*) 6046 case $lt_cv_prog_gnu_ld in 6047 yes*) 6048 case $host in 6049 i?86-*-solaris*|x86_64-*-solaris*) 6050 LD="${LD-ld} -m elf_x86_64" 6051 ;; 6052 sparc*-*-solaris*) 6053 LD="${LD-ld} -m elf64_sparc" 6054 ;; 6055 esac 6056 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6057 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6058 LD=${LD-ld}_sol2 6059 fi 6060 ;; 6061 *) 6062 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6063 LD="${LD-ld} -64" 6064 fi 6065 ;; 6066 esac 6067 ;; 6068 esac 6069 fi 6070 rm -rf conftest* 6071 ;; 6072esac 6073 6074need_locks=$enable_libtool_lock 6075 6076if test -n "$ac_tool_prefix"; then 6077 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6078set dummy ${ac_tool_prefix}mt; ac_word=$2 6079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6080$as_echo_n "checking for $ac_word... " >&6; } 6081if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6082 $as_echo_n "(cached) " >&6 6083else 6084 if test -n "$MANIFEST_TOOL"; then 6085 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6086else 6087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6088for as_dir in $PATH 6089do 6090 IFS=$as_save_IFS 6091 test -z "$as_dir" && as_dir=. 6092 for ac_exec_ext in '' $ac_executable_extensions; do 6093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6094 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6096 break 2 6097 fi 6098done 6099 done 6100IFS=$as_save_IFS 6101 6102fi 6103fi 6104MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6105if test -n "$MANIFEST_TOOL"; then 6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6107$as_echo "$MANIFEST_TOOL" >&6; } 6108else 6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6110$as_echo "no" >&6; } 6111fi 6112 6113 6114fi 6115if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6116 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6117 # Extract the first word of "mt", so it can be a program name with args. 6118set dummy mt; ac_word=$2 6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6120$as_echo_n "checking for $ac_word... " >&6; } 6121if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6122 $as_echo_n "(cached) " >&6 6123else 6124 if test -n "$ac_ct_MANIFEST_TOOL"; then 6125 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6126else 6127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6128for as_dir in $PATH 6129do 6130 IFS=$as_save_IFS 6131 test -z "$as_dir" && as_dir=. 6132 for ac_exec_ext in '' $ac_executable_extensions; do 6133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6134 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6136 break 2 6137 fi 6138done 6139 done 6140IFS=$as_save_IFS 6141 6142fi 6143fi 6144ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6145if test -n "$ac_ct_MANIFEST_TOOL"; then 6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6147$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6148else 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6150$as_echo "no" >&6; } 6151fi 6152 6153 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6154 MANIFEST_TOOL=":" 6155 else 6156 case $cross_compiling:$ac_tool_warned in 6157yes:) 6158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6160ac_tool_warned=yes ;; 6161esac 6162 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6163 fi 6164else 6165 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6166fi 6167 6168test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6170$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6171if ${lt_cv_path_mainfest_tool+:} false; then : 6172 $as_echo_n "(cached) " >&6 6173else 6174 lt_cv_path_mainfest_tool=no 6175 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6176 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6177 cat conftest.err >&5 6178 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6179 lt_cv_path_mainfest_tool=yes 6180 fi 6181 rm -f conftest* 6182fi 6183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6184$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6185if test yes != "$lt_cv_path_mainfest_tool"; then 6186 MANIFEST_TOOL=: 6187fi 6188 6189 6190 6191 6192 6193 6194 case $host_os in 6195 rhapsody* | darwin*) 6196 if test -n "$ac_tool_prefix"; then 6197 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6198set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6200$as_echo_n "checking for $ac_word... " >&6; } 6201if ${ac_cv_prog_DSYMUTIL+:} false; then : 6202 $as_echo_n "(cached) " >&6 6203else 6204 if test -n "$DSYMUTIL"; then 6205 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6206else 6207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6208for as_dir in $PATH 6209do 6210 IFS=$as_save_IFS 6211 test -z "$as_dir" && as_dir=. 6212 for ac_exec_ext in '' $ac_executable_extensions; do 6213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6214 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6216 break 2 6217 fi 6218done 6219 done 6220IFS=$as_save_IFS 6221 6222fi 6223fi 6224DSYMUTIL=$ac_cv_prog_DSYMUTIL 6225if test -n "$DSYMUTIL"; then 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6227$as_echo "$DSYMUTIL" >&6; } 6228else 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6230$as_echo "no" >&6; } 6231fi 6232 6233 6234fi 6235if test -z "$ac_cv_prog_DSYMUTIL"; then 6236 ac_ct_DSYMUTIL=$DSYMUTIL 6237 # Extract the first word of "dsymutil", so it can be a program name with args. 6238set dummy dsymutil; ac_word=$2 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6240$as_echo_n "checking for $ac_word... " >&6; } 6241if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6242 $as_echo_n "(cached) " >&6 6243else 6244 if test -n "$ac_ct_DSYMUTIL"; then 6245 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6246else 6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6248for as_dir in $PATH 6249do 6250 IFS=$as_save_IFS 6251 test -z "$as_dir" && as_dir=. 6252 for ac_exec_ext in '' $ac_executable_extensions; do 6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6254 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6256 break 2 6257 fi 6258done 6259 done 6260IFS=$as_save_IFS 6261 6262fi 6263fi 6264ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6265if test -n "$ac_ct_DSYMUTIL"; then 6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6267$as_echo "$ac_ct_DSYMUTIL" >&6; } 6268else 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6270$as_echo "no" >&6; } 6271fi 6272 6273 if test "x$ac_ct_DSYMUTIL" = x; then 6274 DSYMUTIL=":" 6275 else 6276 case $cross_compiling:$ac_tool_warned in 6277yes:) 6278{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6280ac_tool_warned=yes ;; 6281esac 6282 DSYMUTIL=$ac_ct_DSYMUTIL 6283 fi 6284else 6285 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6286fi 6287 6288 if test -n "$ac_tool_prefix"; then 6289 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6290set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6292$as_echo_n "checking for $ac_word... " >&6; } 6293if ${ac_cv_prog_NMEDIT+:} false; then : 6294 $as_echo_n "(cached) " >&6 6295else 6296 if test -n "$NMEDIT"; then 6297 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6298else 6299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6300for as_dir in $PATH 6301do 6302 IFS=$as_save_IFS 6303 test -z "$as_dir" && as_dir=. 6304 for ac_exec_ext in '' $ac_executable_extensions; do 6305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6306 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6308 break 2 6309 fi 6310done 6311 done 6312IFS=$as_save_IFS 6313 6314fi 6315fi 6316NMEDIT=$ac_cv_prog_NMEDIT 6317if test -n "$NMEDIT"; then 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6319$as_echo "$NMEDIT" >&6; } 6320else 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6322$as_echo "no" >&6; } 6323fi 6324 6325 6326fi 6327if test -z "$ac_cv_prog_NMEDIT"; then 6328 ac_ct_NMEDIT=$NMEDIT 6329 # Extract the first word of "nmedit", so it can be a program name with args. 6330set dummy nmedit; ac_word=$2 6331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6332$as_echo_n "checking for $ac_word... " >&6; } 6333if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6334 $as_echo_n "(cached) " >&6 6335else 6336 if test -n "$ac_ct_NMEDIT"; then 6337 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6338else 6339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6340for as_dir in $PATH 6341do 6342 IFS=$as_save_IFS 6343 test -z "$as_dir" && as_dir=. 6344 for ac_exec_ext in '' $ac_executable_extensions; do 6345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6346 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6348 break 2 6349 fi 6350done 6351 done 6352IFS=$as_save_IFS 6353 6354fi 6355fi 6356ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6357if test -n "$ac_ct_NMEDIT"; then 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6359$as_echo "$ac_ct_NMEDIT" >&6; } 6360else 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6362$as_echo "no" >&6; } 6363fi 6364 6365 if test "x$ac_ct_NMEDIT" = x; then 6366 NMEDIT=":" 6367 else 6368 case $cross_compiling:$ac_tool_warned in 6369yes:) 6370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6372ac_tool_warned=yes ;; 6373esac 6374 NMEDIT=$ac_ct_NMEDIT 6375 fi 6376else 6377 NMEDIT="$ac_cv_prog_NMEDIT" 6378fi 6379 6380 if test -n "$ac_tool_prefix"; then 6381 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6382set dummy ${ac_tool_prefix}lipo; ac_word=$2 6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6384$as_echo_n "checking for $ac_word... " >&6; } 6385if ${ac_cv_prog_LIPO+:} false; then : 6386 $as_echo_n "(cached) " >&6 6387else 6388 if test -n "$LIPO"; then 6389 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6390else 6391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6392for as_dir in $PATH 6393do 6394 IFS=$as_save_IFS 6395 test -z "$as_dir" && as_dir=. 6396 for ac_exec_ext in '' $ac_executable_extensions; do 6397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6398 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6400 break 2 6401 fi 6402done 6403 done 6404IFS=$as_save_IFS 6405 6406fi 6407fi 6408LIPO=$ac_cv_prog_LIPO 6409if test -n "$LIPO"; then 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6411$as_echo "$LIPO" >&6; } 6412else 6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6414$as_echo "no" >&6; } 6415fi 6416 6417 6418fi 6419if test -z "$ac_cv_prog_LIPO"; then 6420 ac_ct_LIPO=$LIPO 6421 # Extract the first word of "lipo", so it can be a program name with args. 6422set dummy lipo; ac_word=$2 6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6424$as_echo_n "checking for $ac_word... " >&6; } 6425if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6426 $as_echo_n "(cached) " >&6 6427else 6428 if test -n "$ac_ct_LIPO"; then 6429 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6430else 6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6432for as_dir in $PATH 6433do 6434 IFS=$as_save_IFS 6435 test -z "$as_dir" && as_dir=. 6436 for ac_exec_ext in '' $ac_executable_extensions; do 6437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6438 ac_cv_prog_ac_ct_LIPO="lipo" 6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6440 break 2 6441 fi 6442done 6443 done 6444IFS=$as_save_IFS 6445 6446fi 6447fi 6448ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6449if test -n "$ac_ct_LIPO"; then 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6451$as_echo "$ac_ct_LIPO" >&6; } 6452else 6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6454$as_echo "no" >&6; } 6455fi 6456 6457 if test "x$ac_ct_LIPO" = x; then 6458 LIPO=":" 6459 else 6460 case $cross_compiling:$ac_tool_warned in 6461yes:) 6462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6464ac_tool_warned=yes ;; 6465esac 6466 LIPO=$ac_ct_LIPO 6467 fi 6468else 6469 LIPO="$ac_cv_prog_LIPO" 6470fi 6471 6472 if test -n "$ac_tool_prefix"; then 6473 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6474set dummy ${ac_tool_prefix}otool; ac_word=$2 6475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6476$as_echo_n "checking for $ac_word... " >&6; } 6477if ${ac_cv_prog_OTOOL+:} false; then : 6478 $as_echo_n "(cached) " >&6 6479else 6480 if test -n "$OTOOL"; then 6481 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6482else 6483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6484for as_dir in $PATH 6485do 6486 IFS=$as_save_IFS 6487 test -z "$as_dir" && as_dir=. 6488 for ac_exec_ext in '' $ac_executable_extensions; do 6489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6490 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6492 break 2 6493 fi 6494done 6495 done 6496IFS=$as_save_IFS 6497 6498fi 6499fi 6500OTOOL=$ac_cv_prog_OTOOL 6501if test -n "$OTOOL"; then 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6503$as_echo "$OTOOL" >&6; } 6504else 6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6506$as_echo "no" >&6; } 6507fi 6508 6509 6510fi 6511if test -z "$ac_cv_prog_OTOOL"; then 6512 ac_ct_OTOOL=$OTOOL 6513 # Extract the first word of "otool", so it can be a program name with args. 6514set dummy otool; ac_word=$2 6515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6516$as_echo_n "checking for $ac_word... " >&6; } 6517if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6518 $as_echo_n "(cached) " >&6 6519else 6520 if test -n "$ac_ct_OTOOL"; then 6521 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6522else 6523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6524for as_dir in $PATH 6525do 6526 IFS=$as_save_IFS 6527 test -z "$as_dir" && as_dir=. 6528 for ac_exec_ext in '' $ac_executable_extensions; do 6529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6530 ac_cv_prog_ac_ct_OTOOL="otool" 6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6532 break 2 6533 fi 6534done 6535 done 6536IFS=$as_save_IFS 6537 6538fi 6539fi 6540ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6541if test -n "$ac_ct_OTOOL"; then 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6543$as_echo "$ac_ct_OTOOL" >&6; } 6544else 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6546$as_echo "no" >&6; } 6547fi 6548 6549 if test "x$ac_ct_OTOOL" = x; then 6550 OTOOL=":" 6551 else 6552 case $cross_compiling:$ac_tool_warned in 6553yes:) 6554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6556ac_tool_warned=yes ;; 6557esac 6558 OTOOL=$ac_ct_OTOOL 6559 fi 6560else 6561 OTOOL="$ac_cv_prog_OTOOL" 6562fi 6563 6564 if test -n "$ac_tool_prefix"; then 6565 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6566set dummy ${ac_tool_prefix}otool64; ac_word=$2 6567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6568$as_echo_n "checking for $ac_word... " >&6; } 6569if ${ac_cv_prog_OTOOL64+:} false; then : 6570 $as_echo_n "(cached) " >&6 6571else 6572 if test -n "$OTOOL64"; then 6573 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6574else 6575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6576for as_dir in $PATH 6577do 6578 IFS=$as_save_IFS 6579 test -z "$as_dir" && as_dir=. 6580 for ac_exec_ext in '' $ac_executable_extensions; do 6581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6582 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6584 break 2 6585 fi 6586done 6587 done 6588IFS=$as_save_IFS 6589 6590fi 6591fi 6592OTOOL64=$ac_cv_prog_OTOOL64 6593if test -n "$OTOOL64"; then 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6595$as_echo "$OTOOL64" >&6; } 6596else 6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6598$as_echo "no" >&6; } 6599fi 6600 6601 6602fi 6603if test -z "$ac_cv_prog_OTOOL64"; then 6604 ac_ct_OTOOL64=$OTOOL64 6605 # Extract the first word of "otool64", so it can be a program name with args. 6606set dummy otool64; ac_word=$2 6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6608$as_echo_n "checking for $ac_word... " >&6; } 6609if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6610 $as_echo_n "(cached) " >&6 6611else 6612 if test -n "$ac_ct_OTOOL64"; then 6613 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6614else 6615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6616for as_dir in $PATH 6617do 6618 IFS=$as_save_IFS 6619 test -z "$as_dir" && as_dir=. 6620 for ac_exec_ext in '' $ac_executable_extensions; do 6621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6622 ac_cv_prog_ac_ct_OTOOL64="otool64" 6623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6624 break 2 6625 fi 6626done 6627 done 6628IFS=$as_save_IFS 6629 6630fi 6631fi 6632ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6633if test -n "$ac_ct_OTOOL64"; then 6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6635$as_echo "$ac_ct_OTOOL64" >&6; } 6636else 6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6638$as_echo "no" >&6; } 6639fi 6640 6641 if test "x$ac_ct_OTOOL64" = x; then 6642 OTOOL64=":" 6643 else 6644 case $cross_compiling:$ac_tool_warned in 6645yes:) 6646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6648ac_tool_warned=yes ;; 6649esac 6650 OTOOL64=$ac_ct_OTOOL64 6651 fi 6652else 6653 OTOOL64="$ac_cv_prog_OTOOL64" 6654fi 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6683$as_echo_n "checking for -single_module linker flag... " >&6; } 6684if ${lt_cv_apple_cc_single_mod+:} false; then : 6685 $as_echo_n "(cached) " >&6 6686else 6687 lt_cv_apple_cc_single_mod=no 6688 if test -z "$LT_MULTI_MODULE"; then 6689 # By default we will add the -single_module flag. You can override 6690 # by either setting the environment variable LT_MULTI_MODULE 6691 # non-empty at configure time, or by adding -multi_module to the 6692 # link flags. 6693 rm -rf libconftest.dylib* 6694 echo "int foo(void){return 1;}" > conftest.c 6695 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6696-dynamiclib -Wl,-single_module conftest.c" >&5 6697 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6698 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6699 _lt_result=$? 6700 # If there is a non-empty error log, and "single_module" 6701 # appears in it, assume the flag caused a linker warning 6702 if test -s conftest.err && $GREP single_module conftest.err; then 6703 cat conftest.err >&5 6704 # Otherwise, if the output was created with a 0 exit code from 6705 # the compiler, it worked. 6706 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 6707 lt_cv_apple_cc_single_mod=yes 6708 else 6709 cat conftest.err >&5 6710 fi 6711 rm -rf libconftest.dylib* 6712 rm -f conftest.* 6713 fi 6714fi 6715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6716$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6717 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6719$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6720if ${lt_cv_ld_exported_symbols_list+:} false; then : 6721 $as_echo_n "(cached) " >&6 6722else 6723 lt_cv_ld_exported_symbols_list=no 6724 save_LDFLAGS=$LDFLAGS 6725 echo "_main" > conftest.sym 6726 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6728/* end confdefs.h. */ 6729 6730int 6731main () 6732{ 6733 6734 ; 6735 return 0; 6736} 6737_ACEOF 6738if ac_fn_c_try_link "$LINENO"; then : 6739 lt_cv_ld_exported_symbols_list=yes 6740else 6741 lt_cv_ld_exported_symbols_list=no 6742fi 6743rm -f core conftest.err conftest.$ac_objext \ 6744 conftest$ac_exeext conftest.$ac_ext 6745 LDFLAGS=$save_LDFLAGS 6746 6747fi 6748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6749$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6750 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6752$as_echo_n "checking for -force_load linker flag... " >&6; } 6753if ${lt_cv_ld_force_load+:} false; then : 6754 $as_echo_n "(cached) " >&6 6755else 6756 lt_cv_ld_force_load=no 6757 cat > conftest.c << _LT_EOF 6758int forced_loaded() { return 2;} 6759_LT_EOF 6760 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6761 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6762 echo "$AR cru libconftest.a conftest.o" >&5 6763 $AR cru libconftest.a conftest.o 2>&5 6764 echo "$RANLIB libconftest.a" >&5 6765 $RANLIB libconftest.a 2>&5 6766 cat > conftest.c << _LT_EOF 6767int main() { return 0;} 6768_LT_EOF 6769 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6770 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6771 _lt_result=$? 6772 if test -s conftest.err && $GREP force_load conftest.err; then 6773 cat conftest.err >&5 6774 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 6775 lt_cv_ld_force_load=yes 6776 else 6777 cat conftest.err >&5 6778 fi 6779 rm -f conftest.err libconftest.a conftest conftest.c 6780 rm -rf conftest.dSYM 6781 6782fi 6783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6784$as_echo "$lt_cv_ld_force_load" >&6; } 6785 case $host_os in 6786 rhapsody* | darwin1.[012]) 6787 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 6788 darwin1.*) 6789 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 6790 darwin*) # darwin 5.x on 6791 # if running on 10.5 or later, the deployment target defaults 6792 # to the OS version, if on x86, and 10.4, the deployment 6793 # target defaults to 10.4. Don't you love it? 6794 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6795 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6796 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 6797 10.[012][,.]*) 6798 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 6799 10.*) 6800 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 6801 esac 6802 ;; 6803 esac 6804 if test yes = "$lt_cv_apple_cc_single_mod"; then 6805 _lt_dar_single_mod='$single_module' 6806 fi 6807 if test yes = "$lt_cv_ld_exported_symbols_list"; then 6808 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 6809 else 6810 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 6811 fi 6812 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 6813 _lt_dsymutil='~$DSYMUTIL $lib || :' 6814 else 6815 _lt_dsymutil= 6816 fi 6817 ;; 6818 esac 6819 6820# func_munge_path_list VARIABLE PATH 6821# ----------------------------------- 6822# VARIABLE is name of variable containing _space_ separated list of 6823# directories to be munged by the contents of PATH, which is string 6824# having a format: 6825# "DIR[:DIR]:" 6826# string "DIR[ DIR]" will be prepended to VARIABLE 6827# ":DIR[:DIR]" 6828# string "DIR[ DIR]" will be appended to VARIABLE 6829# "DIRP[:DIRP]::[DIRA:]DIRA" 6830# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 6831# "DIRA[ DIRA]" will be appended to VARIABLE 6832# "DIR[:DIR]" 6833# VARIABLE will be replaced by "DIR[ DIR]" 6834func_munge_path_list () 6835{ 6836 case x$2 in 6837 x) 6838 ;; 6839 *:) 6840 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 6841 ;; 6842 x:*) 6843 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 6844 ;; 6845 *::*) 6846 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 6847 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 6848 ;; 6849 *) 6850 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 6851 ;; 6852 esac 6853} 6854 6855ac_ext=c 6856ac_cpp='$CPP $CPPFLAGS' 6857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6859ac_compiler_gnu=$ac_cv_c_compiler_gnu 6860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6861$as_echo_n "checking how to run the C preprocessor... " >&6; } 6862# On Suns, sometimes $CPP names a directory. 6863if test -n "$CPP" && test -d "$CPP"; then 6864 CPP= 6865fi 6866if test -z "$CPP"; then 6867 if ${ac_cv_prog_CPP+:} false; then : 6868 $as_echo_n "(cached) " >&6 6869else 6870 # Double quotes because CPP needs to be expanded 6871 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6872 do 6873 ac_preproc_ok=false 6874for ac_c_preproc_warn_flag in '' yes 6875do 6876 # Use a header file that comes with gcc, so configuring glibc 6877 # with a fresh cross-compiler works. 6878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6879 # <limits.h> exists even on freestanding compilers. 6880 # On the NeXT, cc -E runs the code through the compiler's parser, 6881 # not just through cpp. "Syntax error" is here to catch this case. 6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6883/* end confdefs.h. */ 6884#ifdef __STDC__ 6885# include <limits.h> 6886#else 6887# include <assert.h> 6888#endif 6889 Syntax error 6890_ACEOF 6891if ac_fn_c_try_cpp "$LINENO"; then : 6892 6893else 6894 # Broken: fails on valid input. 6895continue 6896fi 6897rm -f conftest.err conftest.i conftest.$ac_ext 6898 6899 # OK, works on sane cases. Now check whether nonexistent headers 6900 # can be detected and how. 6901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6902/* end confdefs.h. */ 6903#include <ac_nonexistent.h> 6904_ACEOF 6905if ac_fn_c_try_cpp "$LINENO"; then : 6906 # Broken: success on invalid input. 6907continue 6908else 6909 # Passes both tests. 6910ac_preproc_ok=: 6911break 6912fi 6913rm -f conftest.err conftest.i conftest.$ac_ext 6914 6915done 6916# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6917rm -f conftest.i conftest.err conftest.$ac_ext 6918if $ac_preproc_ok; then : 6919 break 6920fi 6921 6922 done 6923 ac_cv_prog_CPP=$CPP 6924 6925fi 6926 CPP=$ac_cv_prog_CPP 6927else 6928 ac_cv_prog_CPP=$CPP 6929fi 6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6931$as_echo "$CPP" >&6; } 6932ac_preproc_ok=false 6933for ac_c_preproc_warn_flag in '' yes 6934do 6935 # Use a header file that comes with gcc, so configuring glibc 6936 # with a fresh cross-compiler works. 6937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6938 # <limits.h> exists even on freestanding compilers. 6939 # On the NeXT, cc -E runs the code through the compiler's parser, 6940 # not just through cpp. "Syntax error" is here to catch this case. 6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6942/* end confdefs.h. */ 6943#ifdef __STDC__ 6944# include <limits.h> 6945#else 6946# include <assert.h> 6947#endif 6948 Syntax error 6949_ACEOF 6950if ac_fn_c_try_cpp "$LINENO"; then : 6951 6952else 6953 # Broken: fails on valid input. 6954continue 6955fi 6956rm -f conftest.err conftest.i conftest.$ac_ext 6957 6958 # OK, works on sane cases. Now check whether nonexistent headers 6959 # can be detected and how. 6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6961/* end confdefs.h. */ 6962#include <ac_nonexistent.h> 6963_ACEOF 6964if ac_fn_c_try_cpp "$LINENO"; then : 6965 # Broken: success on invalid input. 6966continue 6967else 6968 # Passes both tests. 6969ac_preproc_ok=: 6970break 6971fi 6972rm -f conftest.err conftest.i conftest.$ac_ext 6973 6974done 6975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6976rm -f conftest.i conftest.err conftest.$ac_ext 6977if $ac_preproc_ok; then : 6978 6979else 6980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6982as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6983See \`config.log' for more details" "$LINENO" 5; } 6984fi 6985 6986ac_ext=c 6987ac_cpp='$CPP $CPPFLAGS' 6988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6990ac_compiler_gnu=$ac_cv_c_compiler_gnu 6991 6992 6993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6994$as_echo_n "checking for ANSI C header files... " >&6; } 6995if ${ac_cv_header_stdc+:} false; then : 6996 $as_echo_n "(cached) " >&6 6997else 6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6999/* end confdefs.h. */ 7000#include <stdlib.h> 7001#include <stdarg.h> 7002#include <string.h> 7003#include <float.h> 7004 7005int 7006main () 7007{ 7008 7009 ; 7010 return 0; 7011} 7012_ACEOF 7013if ac_fn_c_try_compile "$LINENO"; then : 7014 ac_cv_header_stdc=yes 7015else 7016 ac_cv_header_stdc=no 7017fi 7018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7019 7020if test $ac_cv_header_stdc = yes; then 7021 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7023/* end confdefs.h. */ 7024#include <string.h> 7025 7026_ACEOF 7027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7028 $EGREP "memchr" >/dev/null 2>&1; then : 7029 7030else 7031 ac_cv_header_stdc=no 7032fi 7033rm -f conftest* 7034 7035fi 7036 7037if test $ac_cv_header_stdc = yes; then 7038 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7040/* end confdefs.h. */ 7041#include <stdlib.h> 7042 7043_ACEOF 7044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7045 $EGREP "free" >/dev/null 2>&1; then : 7046 7047else 7048 ac_cv_header_stdc=no 7049fi 7050rm -f conftest* 7051 7052fi 7053 7054if test $ac_cv_header_stdc = yes; then 7055 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7056 if test "$cross_compiling" = yes; then : 7057 : 7058else 7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7060/* end confdefs.h. */ 7061#include <ctype.h> 7062#include <stdlib.h> 7063#if ((' ' & 0x0FF) == 0x020) 7064# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7065# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7066#else 7067# define ISLOWER(c) \ 7068 (('a' <= (c) && (c) <= 'i') \ 7069 || ('j' <= (c) && (c) <= 'r') \ 7070 || ('s' <= (c) && (c) <= 'z')) 7071# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7072#endif 7073 7074#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7075int 7076main () 7077{ 7078 int i; 7079 for (i = 0; i < 256; i++) 7080 if (XOR (islower (i), ISLOWER (i)) 7081 || toupper (i) != TOUPPER (i)) 7082 return 2; 7083 return 0; 7084} 7085_ACEOF 7086if ac_fn_c_try_run "$LINENO"; then : 7087 7088else 7089 ac_cv_header_stdc=no 7090fi 7091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7092 conftest.$ac_objext conftest.beam conftest.$ac_ext 7093fi 7094 7095fi 7096fi 7097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7098$as_echo "$ac_cv_header_stdc" >&6; } 7099if test $ac_cv_header_stdc = yes; then 7100 7101$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7102 7103fi 7104 7105# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7106for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7107 inttypes.h stdint.h unistd.h 7108do : 7109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7110ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7111" 7112if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7113 cat >>confdefs.h <<_ACEOF 7114#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7115_ACEOF 7116 7117fi 7118 7119done 7120 7121 7122for ac_header in dlfcn.h 7123do : 7124 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7125" 7126if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7127 cat >>confdefs.h <<_ACEOF 7128#define HAVE_DLFCN_H 1 7129_ACEOF 7130 7131fi 7132 7133done 7134 7135 7136 7137 7138 7139# Set options 7140 7141 7142 7143 enable_dlopen=no 7144 7145 7146 enable_win32_dll=no 7147 7148 7149 # Check whether --enable-shared was given. 7150if test "${enable_shared+set}" = set; then : 7151 enableval=$enable_shared; p=${PACKAGE-default} 7152 case $enableval in 7153 yes) enable_shared=yes ;; 7154 no) enable_shared=no ;; 7155 *) 7156 enable_shared=no 7157 # Look at the argument we got. We use all the common list separators. 7158 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7159 for pkg in $enableval; do 7160 IFS=$lt_save_ifs 7161 if test "X$pkg" = "X$p"; then 7162 enable_shared=yes 7163 fi 7164 done 7165 IFS=$lt_save_ifs 7166 ;; 7167 esac 7168else 7169 enable_shared=yes 7170fi 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 # Check whether --enable-static was given. 7181if test "${enable_static+set}" = set; then : 7182 enableval=$enable_static; p=${PACKAGE-default} 7183 case $enableval in 7184 yes) enable_static=yes ;; 7185 no) enable_static=no ;; 7186 *) 7187 enable_static=no 7188 # Look at the argument we got. We use all the common list separators. 7189 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7190 for pkg in $enableval; do 7191 IFS=$lt_save_ifs 7192 if test "X$pkg" = "X$p"; then 7193 enable_static=yes 7194 fi 7195 done 7196 IFS=$lt_save_ifs 7197 ;; 7198 esac 7199else 7200 enable_static=yes 7201fi 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212# Check whether --with-pic was given. 7213if test "${with_pic+set}" = set; then : 7214 withval=$with_pic; lt_p=${PACKAGE-default} 7215 case $withval in 7216 yes|no) pic_mode=$withval ;; 7217 *) 7218 pic_mode=default 7219 # Look at the argument we got. We use all the common list separators. 7220 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7221 for lt_pkg in $withval; do 7222 IFS=$lt_save_ifs 7223 if test "X$lt_pkg" = "X$lt_p"; then 7224 pic_mode=yes 7225 fi 7226 done 7227 IFS=$lt_save_ifs 7228 ;; 7229 esac 7230else 7231 pic_mode=default 7232fi 7233 7234 7235 7236 7237 7238 7239 7240 7241 # Check whether --enable-fast-install was given. 7242if test "${enable_fast_install+set}" = set; then : 7243 enableval=$enable_fast_install; p=${PACKAGE-default} 7244 case $enableval in 7245 yes) enable_fast_install=yes ;; 7246 no) enable_fast_install=no ;; 7247 *) 7248 enable_fast_install=no 7249 # Look at the argument we got. We use all the common list separators. 7250 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7251 for pkg in $enableval; do 7252 IFS=$lt_save_ifs 7253 if test "X$pkg" = "X$p"; then 7254 enable_fast_install=yes 7255 fi 7256 done 7257 IFS=$lt_save_ifs 7258 ;; 7259 esac 7260else 7261 enable_fast_install=yes 7262fi 7263 7264 7265 7266 7267 7268 7269 7270 7271 shared_archive_member_spec= 7272case $host,$enable_shared in 7273power*-*-aix[5-9]*,yes) 7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7275$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7276 7277# Check whether --with-aix-soname was given. 7278if test "${with_aix_soname+set}" = set; then : 7279 withval=$with_aix_soname; case $withval in 7280 aix|svr4|both) 7281 ;; 7282 *) 7283 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7284 ;; 7285 esac 7286 lt_cv_with_aix_soname=$with_aix_soname 7287else 7288 if ${lt_cv_with_aix_soname+:} false; then : 7289 $as_echo_n "(cached) " >&6 7290else 7291 lt_cv_with_aix_soname=aix 7292fi 7293 7294 with_aix_soname=$lt_cv_with_aix_soname 7295fi 7296 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7298$as_echo "$with_aix_soname" >&6; } 7299 if test aix != "$with_aix_soname"; then 7300 # For the AIX way of multilib, we name the shared archive member 7301 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7302 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7303 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7304 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7305 if test 64 = "${OBJECT_MODE-32}"; then 7306 shared_archive_member_spec=shr_64 7307 else 7308 shared_archive_member_spec=shr 7309 fi 7310 fi 7311 ;; 7312*) 7313 with_aix_soname=aix 7314 ;; 7315esac 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326# This can be used to rebuild libtool when needed 7327LIBTOOL_DEPS=$ltmain 7328 7329# Always use our own libtool. 7330LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361test -z "$LN_S" && LN_S="ln -s" 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376if test -n "${ZSH_VERSION+set}"; then 7377 setopt NO_GLOB_SUBST 7378fi 7379 7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7381$as_echo_n "checking for objdir... " >&6; } 7382if ${lt_cv_objdir+:} false; then : 7383 $as_echo_n "(cached) " >&6 7384else 7385 rm -f .libs 2>/dev/null 7386mkdir .libs 2>/dev/null 7387if test -d .libs; then 7388 lt_cv_objdir=.libs 7389else 7390 # MS-DOS does not allow filenames that begin with a dot. 7391 lt_cv_objdir=_libs 7392fi 7393rmdir .libs 2>/dev/null 7394fi 7395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7396$as_echo "$lt_cv_objdir" >&6; } 7397objdir=$lt_cv_objdir 7398 7399 7400 7401 7402 7403cat >>confdefs.h <<_ACEOF 7404#define LT_OBJDIR "$lt_cv_objdir/" 7405_ACEOF 7406 7407 7408 7409 7410case $host_os in 7411aix3*) 7412 # AIX sometimes has problems with the GCC collect2 program. For some 7413 # reason, if we set the COLLECT_NAMES environment variable, the problems 7414 # vanish in a puff of smoke. 7415 if test set != "${COLLECT_NAMES+set}"; then 7416 COLLECT_NAMES= 7417 export COLLECT_NAMES 7418 fi 7419 ;; 7420esac 7421 7422# Global variables: 7423ofile=libtool 7424can_build_shared=yes 7425 7426# All known linkers require a '.a' archive for static linking (except MSVC, 7427# which needs '.lib'). 7428libext=a 7429 7430with_gnu_ld=$lt_cv_prog_gnu_ld 7431 7432old_CC=$CC 7433old_CFLAGS=$CFLAGS 7434 7435# Set sane defaults for various variables 7436test -z "$CC" && CC=cc 7437test -z "$LTCC" && LTCC=$CC 7438test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7439test -z "$LD" && LD=ld 7440test -z "$ac_objext" && ac_objext=o 7441 7442func_cc_basename $compiler 7443cc_basename=$func_cc_basename_result 7444 7445 7446# Only perform the check for file, if the check method requires it 7447test -z "$MAGIC_CMD" && MAGIC_CMD=file 7448case $deplibs_check_method in 7449file_magic*) 7450 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7452$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7453if ${lt_cv_path_MAGIC_CMD+:} false; then : 7454 $as_echo_n "(cached) " >&6 7455else 7456 case $MAGIC_CMD in 7457[\\/*] | ?:[\\/]*) 7458 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 7459 ;; 7460*) 7461 lt_save_MAGIC_CMD=$MAGIC_CMD 7462 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7463 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7464 for ac_dir in $ac_dummy; do 7465 IFS=$lt_save_ifs 7466 test -z "$ac_dir" && ac_dir=. 7467 if test -f "$ac_dir/${ac_tool_prefix}file"; then 7468 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 7469 if test -n "$file_magic_test_file"; then 7470 case $deplibs_check_method in 7471 "file_magic "*) 7472 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7473 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7474 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7475 $EGREP "$file_magic_regex" > /dev/null; then 7476 : 7477 else 7478 cat <<_LT_EOF 1>&2 7479 7480*** Warning: the command libtool uses to detect shared libraries, 7481*** $file_magic_cmd, produces output that libtool cannot recognize. 7482*** The result is that libtool may fail to recognize shared libraries 7483*** as such. This will affect the creation of libtool libraries that 7484*** depend on shared libraries, but programs linked with such libtool 7485*** libraries will work regardless of this problem. Nevertheless, you 7486*** may want to report the problem to your system manager and/or to 7487*** bug-libtool@gnu.org 7488 7489_LT_EOF 7490 fi ;; 7491 esac 7492 fi 7493 break 7494 fi 7495 done 7496 IFS=$lt_save_ifs 7497 MAGIC_CMD=$lt_save_MAGIC_CMD 7498 ;; 7499esac 7500fi 7501 7502MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7503if test -n "$MAGIC_CMD"; then 7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7505$as_echo "$MAGIC_CMD" >&6; } 7506else 7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7508$as_echo "no" >&6; } 7509fi 7510 7511 7512 7513 7514 7515if test -z "$lt_cv_path_MAGIC_CMD"; then 7516 if test -n "$ac_tool_prefix"; then 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7518$as_echo_n "checking for file... " >&6; } 7519if ${lt_cv_path_MAGIC_CMD+:} false; then : 7520 $as_echo_n "(cached) " >&6 7521else 7522 case $MAGIC_CMD in 7523[\\/*] | ?:[\\/]*) 7524 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 7525 ;; 7526*) 7527 lt_save_MAGIC_CMD=$MAGIC_CMD 7528 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7529 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7530 for ac_dir in $ac_dummy; do 7531 IFS=$lt_save_ifs 7532 test -z "$ac_dir" && ac_dir=. 7533 if test -f "$ac_dir/file"; then 7534 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 7535 if test -n "$file_magic_test_file"; then 7536 case $deplibs_check_method in 7537 "file_magic "*) 7538 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7539 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7540 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7541 $EGREP "$file_magic_regex" > /dev/null; then 7542 : 7543 else 7544 cat <<_LT_EOF 1>&2 7545 7546*** Warning: the command libtool uses to detect shared libraries, 7547*** $file_magic_cmd, produces output that libtool cannot recognize. 7548*** The result is that libtool may fail to recognize shared libraries 7549*** as such. This will affect the creation of libtool libraries that 7550*** depend on shared libraries, but programs linked with such libtool 7551*** libraries will work regardless of this problem. Nevertheless, you 7552*** may want to report the problem to your system manager and/or to 7553*** bug-libtool@gnu.org 7554 7555_LT_EOF 7556 fi ;; 7557 esac 7558 fi 7559 break 7560 fi 7561 done 7562 IFS=$lt_save_ifs 7563 MAGIC_CMD=$lt_save_MAGIC_CMD 7564 ;; 7565esac 7566fi 7567 7568MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7569if test -n "$MAGIC_CMD"; then 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7571$as_echo "$MAGIC_CMD" >&6; } 7572else 7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7574$as_echo "no" >&6; } 7575fi 7576 7577 7578 else 7579 MAGIC_CMD=: 7580 fi 7581fi 7582 7583 fi 7584 ;; 7585esac 7586 7587# Use C for the default configuration in the libtool script 7588 7589lt_save_CC=$CC 7590ac_ext=c 7591ac_cpp='$CPP $CPPFLAGS' 7592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7594ac_compiler_gnu=$ac_cv_c_compiler_gnu 7595 7596 7597# Source file extension for C test sources. 7598ac_ext=c 7599 7600# Object file extension for compiled C test sources. 7601objext=o 7602objext=$objext 7603 7604# Code to be used in simple compile tests 7605lt_simple_compile_test_code="int some_variable = 0;" 7606 7607# Code to be used in simple link tests 7608lt_simple_link_test_code='int main(){return(0);}' 7609 7610 7611 7612 7613 7614 7615 7616# If no C compiler was specified, use CC. 7617LTCC=${LTCC-"$CC"} 7618 7619# If no C compiler flags were specified, use CFLAGS. 7620LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7621 7622# Allow CC to be a program name with arguments. 7623compiler=$CC 7624 7625# Save the default compiler, since it gets overwritten when the other 7626# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7627compiler_DEFAULT=$CC 7628 7629# save warnings/boilerplate of simple test code 7630ac_outfile=conftest.$ac_objext 7631echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7632eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7633_lt_compiler_boilerplate=`cat conftest.err` 7634$RM conftest* 7635 7636ac_outfile=conftest.$ac_objext 7637echo "$lt_simple_link_test_code" >conftest.$ac_ext 7638eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7639_lt_linker_boilerplate=`cat conftest.err` 7640$RM -r conftest* 7641 7642 7643## CAVEAT EMPTOR: 7644## There is no encapsulation within the following macros, do not change 7645## the running order or otherwise move them around unless you know exactly 7646## what you are doing... 7647if test -n "$compiler"; then 7648 7649lt_prog_compiler_no_builtin_flag= 7650 7651if test yes = "$GCC"; then 7652 case $cc_basename in 7653 nvcc*) 7654 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7655 *) 7656 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7657 esac 7658 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7660$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7661if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7662 $as_echo_n "(cached) " >&6 7663else 7664 lt_cv_prog_compiler_rtti_exceptions=no 7665 ac_outfile=conftest.$ac_objext 7666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7667 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 7668 # Insert the option either (1) after the last *FLAGS variable, or 7669 # (2) before a word containing "conftest.", or (3) at the end. 7670 # Note that $ac_compile itself does not contain backslashes and begins 7671 # with a dollar sign (not a hyphen), so the echo should work correctly. 7672 # The option is referenced via a variable to avoid confusing sed. 7673 lt_compile=`echo "$ac_compile" | $SED \ 7674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7676 -e 's:$: $lt_compiler_flag:'` 7677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7678 (eval "$lt_compile" 2>conftest.err) 7679 ac_status=$? 7680 cat conftest.err >&5 7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7682 if (exit $ac_status) && test -s "$ac_outfile"; then 7683 # The compiler can only warn and ignore the option if not recognized 7684 # So say no if there are warnings other than the usual output. 7685 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7688 lt_cv_prog_compiler_rtti_exceptions=yes 7689 fi 7690 fi 7691 $RM conftest* 7692 7693fi 7694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7695$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7696 7697if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 7698 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7699else 7700 : 7701fi 7702 7703fi 7704 7705 7706 7707 7708 7709 7710 lt_prog_compiler_wl= 7711lt_prog_compiler_pic= 7712lt_prog_compiler_static= 7713 7714 7715 if test yes = "$GCC"; then 7716 lt_prog_compiler_wl='-Wl,' 7717 lt_prog_compiler_static='-static' 7718 7719 case $host_os in 7720 aix*) 7721 # All AIX code is PIC. 7722 if test ia64 = "$host_cpu"; then 7723 # AIX 5 now supports IA64 processor 7724 lt_prog_compiler_static='-Bstatic' 7725 fi 7726 lt_prog_compiler_pic='-fPIC' 7727 ;; 7728 7729 amigaos*) 7730 case $host_cpu in 7731 powerpc) 7732 # see comment about AmigaOS4 .so support 7733 lt_prog_compiler_pic='-fPIC' 7734 ;; 7735 m68k) 7736 # FIXME: we need at least 68020 code to build shared libraries, but 7737 # adding the '-m68020' flag to GCC prevents building anything better, 7738 # like '-m68040'. 7739 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7740 ;; 7741 esac 7742 ;; 7743 7744 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7745 # PIC is the default for these OSes. 7746 ;; 7747 7748 mingw* | cygwin* | pw32* | os2* | cegcc*) 7749 # This hack is so that the source file can tell whether it is being 7750 # built for inclusion in a dll (and should export symbols for example). 7751 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7752 # (--disable-auto-import) libraries 7753 lt_prog_compiler_pic='-DDLL_EXPORT' 7754 case $host_os in 7755 os2*) 7756 lt_prog_compiler_static='$wl-static' 7757 ;; 7758 esac 7759 ;; 7760 7761 darwin* | rhapsody*) 7762 # PIC is the default on this platform 7763 # Common symbols not allowed in MH_DYLIB files 7764 lt_prog_compiler_pic='-fno-common' 7765 ;; 7766 7767 haiku*) 7768 # PIC is the default for Haiku. 7769 # The "-static" flag exists, but is broken. 7770 lt_prog_compiler_static= 7771 ;; 7772 7773 hpux*) 7774 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7775 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7776 # sets the default TLS model and affects inlining. 7777 case $host_cpu in 7778 hppa*64*) 7779 # +Z the default 7780 ;; 7781 *) 7782 lt_prog_compiler_pic='-fPIC' 7783 ;; 7784 esac 7785 ;; 7786 7787 interix[3-9]*) 7788 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7789 # Instead, we relocate shared libraries at runtime. 7790 ;; 7791 7792 msdosdjgpp*) 7793 # Just because we use GCC doesn't mean we suddenly get shared libraries 7794 # on systems that don't support them. 7795 lt_prog_compiler_can_build_shared=no 7796 enable_shared=no 7797 ;; 7798 7799 *nto* | *qnx*) 7800 # QNX uses GNU C++, but need to define -shared option too, otherwise 7801 # it will coredump. 7802 lt_prog_compiler_pic='-fPIC -shared' 7803 ;; 7804 7805 sysv4*MP*) 7806 if test -d /usr/nec; then 7807 lt_prog_compiler_pic=-Kconform_pic 7808 fi 7809 ;; 7810 7811 *) 7812 lt_prog_compiler_pic='-fPIC' 7813 ;; 7814 esac 7815 7816 case $cc_basename in 7817 nvcc*) # Cuda Compiler Driver 2.2 7818 lt_prog_compiler_wl='-Xlinker ' 7819 if test -n "$lt_prog_compiler_pic"; then 7820 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 7821 fi 7822 ;; 7823 esac 7824 else 7825 # PORTME Check for flag to pass linker flags through the system compiler. 7826 case $host_os in 7827 aix*) 7828 lt_prog_compiler_wl='-Wl,' 7829 if test ia64 = "$host_cpu"; then 7830 # AIX 5 now supports IA64 processor 7831 lt_prog_compiler_static='-Bstatic' 7832 else 7833 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7834 fi 7835 ;; 7836 7837 darwin* | rhapsody*) 7838 # PIC is the default on this platform 7839 # Common symbols not allowed in MH_DYLIB files 7840 lt_prog_compiler_pic='-fno-common' 7841 case $cc_basename in 7842 nagfor*) 7843 # NAG Fortran compiler 7844 lt_prog_compiler_wl='-Wl,-Wl,,' 7845 lt_prog_compiler_pic='-PIC' 7846 lt_prog_compiler_static='-Bstatic' 7847 ;; 7848 esac 7849 ;; 7850 7851 mingw* | cygwin* | pw32* | os2* | cegcc*) 7852 # This hack is so that the source file can tell whether it is being 7853 # built for inclusion in a dll (and should export symbols for example). 7854 lt_prog_compiler_pic='-DDLL_EXPORT' 7855 case $host_os in 7856 os2*) 7857 lt_prog_compiler_static='$wl-static' 7858 ;; 7859 esac 7860 ;; 7861 7862 hpux9* | hpux10* | hpux11*) 7863 lt_prog_compiler_wl='-Wl,' 7864 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7865 # not for PA HP-UX. 7866 case $host_cpu in 7867 hppa*64*|ia64*) 7868 # +Z the default 7869 ;; 7870 *) 7871 lt_prog_compiler_pic='+Z' 7872 ;; 7873 esac 7874 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7875 lt_prog_compiler_static='$wl-a ${wl}archive' 7876 ;; 7877 7878 irix5* | irix6* | nonstopux*) 7879 lt_prog_compiler_wl='-Wl,' 7880 # PIC (with -KPIC) is the default. 7881 lt_prog_compiler_static='-non_shared' 7882 ;; 7883 7884 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7885 case $cc_basename in 7886 # old Intel for x86_64, which still supported -KPIC. 7887 ecc*) 7888 lt_prog_compiler_wl='-Wl,' 7889 lt_prog_compiler_pic='-KPIC' 7890 lt_prog_compiler_static='-static' 7891 ;; 7892 # icc used to be incompatible with GCC. 7893 # ICC 10 doesn't accept -KPIC any more. 7894 icc* | ifort*) 7895 lt_prog_compiler_wl='-Wl,' 7896 lt_prog_compiler_pic='-fPIC' 7897 lt_prog_compiler_static='-static' 7898 ;; 7899 # Lahey Fortran 8.1. 7900 lf95*) 7901 lt_prog_compiler_wl='-Wl,' 7902 lt_prog_compiler_pic='--shared' 7903 lt_prog_compiler_static='--static' 7904 ;; 7905 nagfor*) 7906 # NAG Fortran compiler 7907 lt_prog_compiler_wl='-Wl,-Wl,,' 7908 lt_prog_compiler_pic='-PIC' 7909 lt_prog_compiler_static='-Bstatic' 7910 ;; 7911 tcc*) 7912 # Fabrice Bellard et al's Tiny C Compiler 7913 lt_prog_compiler_wl='-Wl,' 7914 lt_prog_compiler_pic='-fPIC' 7915 lt_prog_compiler_static='-static' 7916 ;; 7917 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7918 # Portland Group compilers (*not* the Pentium gcc compiler, 7919 # which looks to be a dead project) 7920 lt_prog_compiler_wl='-Wl,' 7921 lt_prog_compiler_pic='-fpic' 7922 lt_prog_compiler_static='-Bstatic' 7923 ;; 7924 ccc*) 7925 lt_prog_compiler_wl='-Wl,' 7926 # All Alpha code is PIC. 7927 lt_prog_compiler_static='-non_shared' 7928 ;; 7929 xl* | bgxl* | bgf* | mpixl*) 7930 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7931 lt_prog_compiler_wl='-Wl,' 7932 lt_prog_compiler_pic='-qpic' 7933 lt_prog_compiler_static='-qstaticlink' 7934 ;; 7935 *) 7936 case `$CC -V 2>&1 | sed 5q` in 7937 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 7938 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7939 lt_prog_compiler_pic='-KPIC' 7940 lt_prog_compiler_static='-Bstatic' 7941 lt_prog_compiler_wl='' 7942 ;; 7943 *Sun\ F* | *Sun*Fortran*) 7944 lt_prog_compiler_pic='-KPIC' 7945 lt_prog_compiler_static='-Bstatic' 7946 lt_prog_compiler_wl='-Qoption ld ' 7947 ;; 7948 *Sun\ C*) 7949 # Sun C 5.9 7950 lt_prog_compiler_pic='-KPIC' 7951 lt_prog_compiler_static='-Bstatic' 7952 lt_prog_compiler_wl='-Wl,' 7953 ;; 7954 *Intel*\ [CF]*Compiler*) 7955 lt_prog_compiler_wl='-Wl,' 7956 lt_prog_compiler_pic='-fPIC' 7957 lt_prog_compiler_static='-static' 7958 ;; 7959 *Portland\ Group*) 7960 lt_prog_compiler_wl='-Wl,' 7961 lt_prog_compiler_pic='-fpic' 7962 lt_prog_compiler_static='-Bstatic' 7963 ;; 7964 esac 7965 ;; 7966 esac 7967 ;; 7968 7969 newsos6) 7970 lt_prog_compiler_pic='-KPIC' 7971 lt_prog_compiler_static='-Bstatic' 7972 ;; 7973 7974 *nto* | *qnx*) 7975 # QNX uses GNU C++, but need to define -shared option too, otherwise 7976 # it will coredump. 7977 lt_prog_compiler_pic='-fPIC -shared' 7978 ;; 7979 7980 osf3* | osf4* | osf5*) 7981 lt_prog_compiler_wl='-Wl,' 7982 # All OSF/1 code is PIC. 7983 lt_prog_compiler_static='-non_shared' 7984 ;; 7985 7986 rdos*) 7987 lt_prog_compiler_static='-non_shared' 7988 ;; 7989 7990 solaris*) 7991 lt_prog_compiler_pic='-KPIC' 7992 lt_prog_compiler_static='-Bstatic' 7993 case $cc_basename in 7994 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 7995 lt_prog_compiler_wl='-Qoption ld ';; 7996 *) 7997 lt_prog_compiler_wl='-Wl,';; 7998 esac 7999 ;; 8000 8001 sunos4*) 8002 lt_prog_compiler_wl='-Qoption ld ' 8003 lt_prog_compiler_pic='-PIC' 8004 lt_prog_compiler_static='-Bstatic' 8005 ;; 8006 8007 sysv4 | sysv4.2uw2* | sysv4.3*) 8008 lt_prog_compiler_wl='-Wl,' 8009 lt_prog_compiler_pic='-KPIC' 8010 lt_prog_compiler_static='-Bstatic' 8011 ;; 8012 8013 sysv4*MP*) 8014 if test -d /usr/nec; then 8015 lt_prog_compiler_pic='-Kconform_pic' 8016 lt_prog_compiler_static='-Bstatic' 8017 fi 8018 ;; 8019 8020 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8021 lt_prog_compiler_wl='-Wl,' 8022 lt_prog_compiler_pic='-KPIC' 8023 lt_prog_compiler_static='-Bstatic' 8024 ;; 8025 8026 unicos*) 8027 lt_prog_compiler_wl='-Wl,' 8028 lt_prog_compiler_can_build_shared=no 8029 ;; 8030 8031 uts4*) 8032 lt_prog_compiler_pic='-pic' 8033 lt_prog_compiler_static='-Bstatic' 8034 ;; 8035 8036 *) 8037 lt_prog_compiler_can_build_shared=no 8038 ;; 8039 esac 8040 fi 8041 8042case $host_os in 8043 # For platforms that do not support PIC, -DPIC is meaningless: 8044 *djgpp*) 8045 lt_prog_compiler_pic= 8046 ;; 8047 *) 8048 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8049 ;; 8050esac 8051 8052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8053$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8054if ${lt_cv_prog_compiler_pic+:} false; then : 8055 $as_echo_n "(cached) " >&6 8056else 8057 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8058fi 8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8060$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8061lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8062 8063# 8064# Check to make sure the PIC flag actually works. 8065# 8066if test -n "$lt_prog_compiler_pic"; then 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8068$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8069if ${lt_cv_prog_compiler_pic_works+:} false; then : 8070 $as_echo_n "(cached) " >&6 8071else 8072 lt_cv_prog_compiler_pic_works=no 8073 ac_outfile=conftest.$ac_objext 8074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8075 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8076 # Insert the option either (1) after the last *FLAGS variable, or 8077 # (2) before a word containing "conftest.", or (3) at the end. 8078 # Note that $ac_compile itself does not contain backslashes and begins 8079 # with a dollar sign (not a hyphen), so the echo should work correctly. 8080 # The option is referenced via a variable to avoid confusing sed. 8081 lt_compile=`echo "$ac_compile" | $SED \ 8082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8084 -e 's:$: $lt_compiler_flag:'` 8085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8086 (eval "$lt_compile" 2>conftest.err) 8087 ac_status=$? 8088 cat conftest.err >&5 8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8090 if (exit $ac_status) && test -s "$ac_outfile"; then 8091 # The compiler can only warn and ignore the option if not recognized 8092 # So say no if there are warnings other than the usual output. 8093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8095 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8096 lt_cv_prog_compiler_pic_works=yes 8097 fi 8098 fi 8099 $RM conftest* 8100 8101fi 8102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8103$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8104 8105if test yes = "$lt_cv_prog_compiler_pic_works"; then 8106 case $lt_prog_compiler_pic in 8107 "" | " "*) ;; 8108 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8109 esac 8110else 8111 lt_prog_compiler_pic= 8112 lt_prog_compiler_can_build_shared=no 8113fi 8114 8115fi 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127# 8128# Check to make sure the static flag actually works. 8129# 8130wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8132$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8133if ${lt_cv_prog_compiler_static_works+:} false; then : 8134 $as_echo_n "(cached) " >&6 8135else 8136 lt_cv_prog_compiler_static_works=no 8137 save_LDFLAGS=$LDFLAGS 8138 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8139 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8140 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8141 # The linker can only warn and ignore the option if not recognized 8142 # So say no if there are warnings 8143 if test -s conftest.err; then 8144 # Append any errors to the config.log. 8145 cat conftest.err 1>&5 8146 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8148 if diff conftest.exp conftest.er2 >/dev/null; then 8149 lt_cv_prog_compiler_static_works=yes 8150 fi 8151 else 8152 lt_cv_prog_compiler_static_works=yes 8153 fi 8154 fi 8155 $RM -r conftest* 8156 LDFLAGS=$save_LDFLAGS 8157 8158fi 8159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8160$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8161 8162if test yes = "$lt_cv_prog_compiler_static_works"; then 8163 : 8164else 8165 lt_prog_compiler_static= 8166fi 8167 8168 8169 8170 8171 8172 8173 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8175$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8176if ${lt_cv_prog_compiler_c_o+:} false; then : 8177 $as_echo_n "(cached) " >&6 8178else 8179 lt_cv_prog_compiler_c_o=no 8180 $RM -r conftest 2>/dev/null 8181 mkdir conftest 8182 cd conftest 8183 mkdir out 8184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8185 8186 lt_compiler_flag="-o out/conftest2.$ac_objext" 8187 # Insert the option either (1) after the last *FLAGS variable, or 8188 # (2) before a word containing "conftest.", or (3) at the end. 8189 # Note that $ac_compile itself does not contain backslashes and begins 8190 # with a dollar sign (not a hyphen), so the echo should work correctly. 8191 lt_compile=`echo "$ac_compile" | $SED \ 8192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8194 -e 's:$: $lt_compiler_flag:'` 8195 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8196 (eval "$lt_compile" 2>out/conftest.err) 8197 ac_status=$? 8198 cat out/conftest.err >&5 8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8200 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8201 then 8202 # The compiler can only warn and ignore the option if not recognized 8203 # So say no if there are warnings 8204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8205 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8206 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8207 lt_cv_prog_compiler_c_o=yes 8208 fi 8209 fi 8210 chmod u+w . 2>&5 8211 $RM conftest* 8212 # SGI C++ compiler will create directory out/ii_files/ for 8213 # template instantiation 8214 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8215 $RM out/* && rmdir out 8216 cd .. 8217 $RM -r conftest 8218 $RM conftest* 8219 8220fi 8221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8222$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8223 8224 8225 8226 8227 8228 8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8230$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8231if ${lt_cv_prog_compiler_c_o+:} false; then : 8232 $as_echo_n "(cached) " >&6 8233else 8234 lt_cv_prog_compiler_c_o=no 8235 $RM -r conftest 2>/dev/null 8236 mkdir conftest 8237 cd conftest 8238 mkdir out 8239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8240 8241 lt_compiler_flag="-o out/conftest2.$ac_objext" 8242 # Insert the option either (1) after the last *FLAGS variable, or 8243 # (2) before a word containing "conftest.", or (3) at the end. 8244 # Note that $ac_compile itself does not contain backslashes and begins 8245 # with a dollar sign (not a hyphen), so the echo should work correctly. 8246 lt_compile=`echo "$ac_compile" | $SED \ 8247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8249 -e 's:$: $lt_compiler_flag:'` 8250 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8251 (eval "$lt_compile" 2>out/conftest.err) 8252 ac_status=$? 8253 cat out/conftest.err >&5 8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8255 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8256 then 8257 # The compiler can only warn and ignore the option if not recognized 8258 # So say no if there are warnings 8259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8260 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8261 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8262 lt_cv_prog_compiler_c_o=yes 8263 fi 8264 fi 8265 chmod u+w . 2>&5 8266 $RM conftest* 8267 # SGI C++ compiler will create directory out/ii_files/ for 8268 # template instantiation 8269 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8270 $RM out/* && rmdir out 8271 cd .. 8272 $RM -r conftest 8273 $RM conftest* 8274 8275fi 8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8277$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8278 8279 8280 8281 8282hard_links=nottested 8283if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8284 # do not overwrite the value of need_locks provided by the user 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8286$as_echo_n "checking if we can lock with hard links... " >&6; } 8287 hard_links=yes 8288 $RM conftest* 8289 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8290 touch conftest.a 8291 ln conftest.a conftest.b 2>&5 || hard_links=no 8292 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8294$as_echo "$hard_links" >&6; } 8295 if test no = "$hard_links"; then 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8297$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8298 need_locks=warn 8299 fi 8300else 8301 need_locks=no 8302fi 8303 8304 8305 8306 8307 8308 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8310$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8311 8312 runpath_var= 8313 allow_undefined_flag= 8314 always_export_symbols=no 8315 archive_cmds= 8316 archive_expsym_cmds= 8317 compiler_needs_object=no 8318 enable_shared_with_static_runtimes=no 8319 export_dynamic_flag_spec= 8320 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8321 hardcode_automatic=no 8322 hardcode_direct=no 8323 hardcode_direct_absolute=no 8324 hardcode_libdir_flag_spec= 8325 hardcode_libdir_separator= 8326 hardcode_minus_L=no 8327 hardcode_shlibpath_var=unsupported 8328 inherit_rpath=no 8329 link_all_deplibs=unknown 8330 module_cmds= 8331 module_expsym_cmds= 8332 old_archive_from_new_cmds= 8333 old_archive_from_expsyms_cmds= 8334 thread_safe_flag_spec= 8335 whole_archive_flag_spec= 8336 # include_expsyms should be a list of space-separated symbols to be *always* 8337 # included in the symbol list 8338 include_expsyms= 8339 # exclude_expsyms can be an extended regexp of symbols to exclude 8340 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8341 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8342 # as well as any symbol that contains 'd'. 8343 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8344 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8345 # platforms (ab)use it in PIC code, but their linkers get confused if 8346 # the symbol is explicitly referenced. Since portable code cannot 8347 # rely on this symbol name, it's probably fine to never include it in 8348 # preloaded symbol tables. 8349 # Exclude shared library initialization/finalization symbols. 8350 extract_expsyms_cmds= 8351 8352 case $host_os in 8353 cygwin* | mingw* | pw32* | cegcc*) 8354 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8355 # When not using gcc, we currently assume that we are using 8356 # Microsoft Visual C++. 8357 if test yes != "$GCC"; then 8358 with_gnu_ld=no 8359 fi 8360 ;; 8361 interix*) 8362 # we just hope/assume this is gcc and not c89 (= MSVC++) 8363 with_gnu_ld=yes 8364 ;; 8365 openbsd* | bitrig*) 8366 with_gnu_ld=no 8367 ;; 8368 linux* | k*bsd*-gnu | gnu*) 8369 link_all_deplibs=no 8370 ;; 8371 esac 8372 8373 ld_shlibs=yes 8374 8375 # On some targets, GNU ld is compatible enough with the native linker 8376 # that we're better off using the native interface for both. 8377 lt_use_gnu_ld_interface=no 8378 if test yes = "$with_gnu_ld"; then 8379 case $host_os in 8380 aix*) 8381 # The AIX port of GNU ld has always aspired to compatibility 8382 # with the native linker. However, as the warning in the GNU ld 8383 # block says, versions before 2.19.5* couldn't really create working 8384 # shared libraries, regardless of the interface used. 8385 case `$LD -v 2>&1` in 8386 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8387 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8388 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8389 *) 8390 lt_use_gnu_ld_interface=yes 8391 ;; 8392 esac 8393 ;; 8394 *) 8395 lt_use_gnu_ld_interface=yes 8396 ;; 8397 esac 8398 fi 8399 8400 if test yes = "$lt_use_gnu_ld_interface"; then 8401 # If archive_cmds runs LD, not CC, wlarc should be empty 8402 wlarc='$wl' 8403 8404 # Set some defaults for GNU ld with shared library support. These 8405 # are reset later if shared libraries are not supported. Putting them 8406 # here allows them to be overridden if necessary. 8407 runpath_var=LD_RUN_PATH 8408 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8409 export_dynamic_flag_spec='$wl--export-dynamic' 8410 # ancient GNU ld didn't support --whole-archive et. al. 8411 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8412 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8413 else 8414 whole_archive_flag_spec= 8415 fi 8416 supports_anon_versioning=no 8417 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 8418 *GNU\ gold*) supports_anon_versioning=yes ;; 8419 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8420 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8421 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8422 *\ 2.11.*) ;; # other 2.11 versions 8423 *) supports_anon_versioning=yes ;; 8424 esac 8425 8426 # See if GNU ld supports shared libraries. 8427 case $host_os in 8428 aix[3-9]*) 8429 # On AIX/PPC, the GNU linker is very broken 8430 if test ia64 != "$host_cpu"; then 8431 ld_shlibs=no 8432 cat <<_LT_EOF 1>&2 8433 8434*** Warning: the GNU linker, at least up to release 2.19, is reported 8435*** to be unable to reliably create shared libraries on AIX. 8436*** Therefore, libtool is disabling shared libraries support. If you 8437*** really care for shared libraries, you may want to install binutils 8438*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8439*** You will then need to restart the configuration process. 8440 8441_LT_EOF 8442 fi 8443 ;; 8444 8445 amigaos*) 8446 case $host_cpu in 8447 powerpc) 8448 # see comment about AmigaOS4 .so support 8449 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8450 archive_expsym_cmds='' 8451 ;; 8452 m68k) 8453 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)' 8454 hardcode_libdir_flag_spec='-L$libdir' 8455 hardcode_minus_L=yes 8456 ;; 8457 esac 8458 ;; 8459 8460 beos*) 8461 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8462 allow_undefined_flag=unsupported 8463 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8464 # support --undefined. This deserves some investigation. FIXME 8465 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8466 else 8467 ld_shlibs=no 8468 fi 8469 ;; 8470 8471 cygwin* | mingw* | pw32* | cegcc*) 8472 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8473 # as there is no search path for DLLs. 8474 hardcode_libdir_flag_spec='-L$libdir' 8475 export_dynamic_flag_spec='$wl--export-all-symbols' 8476 allow_undefined_flag=unsupported 8477 always_export_symbols=no 8478 enable_shared_with_static_runtimes=yes 8479 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' 8480 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8481 8482 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8484 # If the export-symbols file already is a .def file, use it as 8485 # is; otherwise, prepend EXPORTS... 8486 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 8487 cp $export_symbols $output_objdir/$soname.def; 8488 else 8489 echo EXPORTS > $output_objdir/$soname.def; 8490 cat $export_symbols >> $output_objdir/$soname.def; 8491 fi~ 8492 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8493 else 8494 ld_shlibs=no 8495 fi 8496 ;; 8497 8498 haiku*) 8499 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8500 link_all_deplibs=yes 8501 ;; 8502 8503 os2*) 8504 hardcode_libdir_flag_spec='-L$libdir' 8505 hardcode_minus_L=yes 8506 allow_undefined_flag=unsupported 8507 shrext_cmds=.dll 8508 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8509 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8510 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8511 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8512 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 8513 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8514 emximp -o $lib $output_objdir/$libname.def' 8515 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8516 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8517 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8518 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8519 prefix_cmds="$SED"~ 8520 if test EXPORTS = "`$SED 1q $export_symbols`"; then 8521 prefix_cmds="$prefix_cmds -e 1d"; 8522 fi~ 8523 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 8524 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 8525 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8526 emximp -o $lib $output_objdir/$libname.def' 8527 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 8528 enable_shared_with_static_runtimes=yes 8529 ;; 8530 8531 interix[3-9]*) 8532 hardcode_direct=no 8533 hardcode_shlibpath_var=no 8534 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 8535 export_dynamic_flag_spec='$wl-E' 8536 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8537 # Instead, shared libraries are loaded at an image base (0x10000000 by 8538 # default) and relocated if they conflict, which is a slow very memory 8539 # consuming and fragmenting process. To avoid this, we pick a random, 8540 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8541 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8542 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8543 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' 8544 ;; 8545 8546 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8547 tmp_diet=no 8548 if test linux-dietlibc = "$host_os"; then 8549 case $cc_basename in 8550 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8551 esac 8552 fi 8553 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8554 && test no = "$tmp_diet" 8555 then 8556 tmp_addflag=' $pic_flag' 8557 tmp_sharedflag='-shared' 8558 case $cc_basename,$host_cpu in 8559 pgcc*) # Portland Group C compiler 8560 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' 8561 tmp_addflag=' $pic_flag' 8562 ;; 8563 pgf77* | pgf90* | pgf95* | pgfortran*) 8564 # Portland Group f77 and f90 compilers 8565 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' 8566 tmp_addflag=' $pic_flag -Mnomain' ;; 8567 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8568 tmp_addflag=' -i_dynamic' ;; 8569 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8570 tmp_addflag=' -i_dynamic -nofor_main' ;; 8571 ifc* | ifort*) # Intel Fortran compiler 8572 tmp_addflag=' -nofor_main' ;; 8573 lf95*) # Lahey Fortran 8.1 8574 whole_archive_flag_spec= 8575 tmp_sharedflag='--shared' ;; 8576 nagfor*) # NAGFOR 5.3 8577 tmp_sharedflag='-Wl,-shared' ;; 8578 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8579 tmp_sharedflag='-qmkshrobj' 8580 tmp_addflag= ;; 8581 nvcc*) # Cuda Compiler Driver 2.2 8582 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' 8583 compiler_needs_object=yes 8584 ;; 8585 esac 8586 case `$CC -V 2>&1 | sed 5q` in 8587 *Sun\ C*) # Sun C 5.9 8588 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' 8589 compiler_needs_object=yes 8590 tmp_sharedflag='-G' ;; 8591 *Sun\ F*) # Sun Fortran 8.3 8592 tmp_sharedflag='-G' ;; 8593 esac 8594 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8595 8596 if test yes = "$supports_anon_versioning"; then 8597 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8598 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8599 echo "local: *; };" >> $output_objdir/$libname.ver~ 8600 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 8601 fi 8602 8603 case $cc_basename in 8604 tcc*) 8605 export_dynamic_flag_spec='-rdynamic' 8606 ;; 8607 xlf* | bgf* | bgxlf* | mpixlf*) 8608 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8609 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8610 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8611 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8612 if test yes = "$supports_anon_versioning"; then 8613 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8614 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8615 echo "local: *; };" >> $output_objdir/$libname.ver~ 8616 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8617 fi 8618 ;; 8619 esac 8620 else 8621 ld_shlibs=no 8622 fi 8623 ;; 8624 8625 netbsd* | netbsdelf*-gnu) 8626 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8627 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8628 wlarc= 8629 else 8630 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8631 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 8632 fi 8633 ;; 8634 8635 solaris*) 8636 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8637 ld_shlibs=no 8638 cat <<_LT_EOF 1>&2 8639 8640*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8641*** create shared libraries on Solaris systems. Therefore, libtool 8642*** is disabling shared libraries support. We urge you to upgrade GNU 8643*** binutils to release 2.9.1 or newer. Another option is to modify 8644*** your PATH or compiler configuration so that the native linker is 8645*** used, and then restart. 8646 8647_LT_EOF 8648 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8649 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8650 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 8651 else 8652 ld_shlibs=no 8653 fi 8654 ;; 8655 8656 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8657 case `$LD -v 2>&1` in 8658 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8659 ld_shlibs=no 8660 cat <<_LT_EOF 1>&2 8661 8662*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 8663*** reliably create shared libraries on SCO systems. Therefore, libtool 8664*** is disabling shared libraries support. We urge you to upgrade GNU 8665*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8666*** your PATH or compiler configuration so that the native linker is 8667*** used, and then restart. 8668 8669_LT_EOF 8670 ;; 8671 *) 8672 # For security reasons, it is highly recommended that you always 8673 # use absolute paths for naming shared libraries, and exclude the 8674 # DT_RUNPATH tag from executables and libraries. But doing so 8675 # requires that you compile everything twice, which is a pain. 8676 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8677 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8679 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 8680 else 8681 ld_shlibs=no 8682 fi 8683 ;; 8684 esac 8685 ;; 8686 8687 sunos4*) 8688 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8689 wlarc= 8690 hardcode_direct=yes 8691 hardcode_shlibpath_var=no 8692 ;; 8693 8694 *) 8695 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8696 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8697 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 8698 else 8699 ld_shlibs=no 8700 fi 8701 ;; 8702 esac 8703 8704 if test no = "$ld_shlibs"; then 8705 runpath_var= 8706 hardcode_libdir_flag_spec= 8707 export_dynamic_flag_spec= 8708 whole_archive_flag_spec= 8709 fi 8710 else 8711 # PORTME fill in a description of your system's linker (not GNU ld) 8712 case $host_os in 8713 aix3*) 8714 allow_undefined_flag=unsupported 8715 always_export_symbols=yes 8716 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' 8717 # Note: this linker hardcodes the directories in LIBPATH if there 8718 # are no directories specified by -L. 8719 hardcode_minus_L=yes 8720 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 8721 # Neither direct hardcoding nor static linking is supported with a 8722 # broken collect2. 8723 hardcode_direct=unsupported 8724 fi 8725 ;; 8726 8727 aix[4-9]*) 8728 if test ia64 = "$host_cpu"; then 8729 # On IA64, the linker does run time linking by default, so we don't 8730 # have to do anything special. 8731 aix_use_runtimelinking=no 8732 exp_sym_flag='-Bexport' 8733 no_entry_flag= 8734 else 8735 # If we're using GNU nm, then we don't want the "-C" option. 8736 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 8737 # Without the "-l" option, or with the "-B" option, AIX nm treats 8738 # weak defined symbols like other global defined symbols, whereas 8739 # GNU nm marks them as "W". 8740 # While the 'weak' keyword is ignored in the Export File, we need 8741 # it in the Import File for the 'aix-soname' feature, so we have 8742 # to replace the "-B" option with "-P" for AIX nm. 8743 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8744 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 8745 else 8746 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 8747 fi 8748 aix_use_runtimelinking=no 8749 8750 # Test if we are trying to use run time linking or normal 8751 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8752 # have runtime linking enabled, and use it for executables. 8753 # For shared libraries, we enable/disable runtime linking 8754 # depending on the kind of the shared library created - 8755 # when "with_aix_soname,aix_use_runtimelinking" is: 8756 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 8757 # "aix,yes" lib.so shared, rtl:yes, for executables 8758 # lib.a static archive 8759 # "both,no" lib.so.V(shr.o) shared, rtl:yes 8760 # lib.a(lib.so.V) shared, rtl:no, for executables 8761 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 8762 # lib.a(lib.so.V) shared, rtl:no 8763 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 8764 # lib.a static archive 8765 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8766 for ld_flag in $LDFLAGS; do 8767 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 8768 aix_use_runtimelinking=yes 8769 break 8770 fi 8771 done 8772 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 8773 # With aix-soname=svr4, we create the lib.so.V shared archives only, 8774 # so we don't have lib.a shared libs to link our executables. 8775 # We have to force runtime linking in this case. 8776 aix_use_runtimelinking=yes 8777 LDFLAGS="$LDFLAGS -Wl,-brtl" 8778 fi 8779 ;; 8780 esac 8781 8782 exp_sym_flag='-bexport' 8783 no_entry_flag='-bnoentry' 8784 fi 8785 8786 # When large executables or shared objects are built, AIX ld can 8787 # have problems creating the table of contents. If linking a library 8788 # or program results in "error TOC overflow" add -mminimal-toc to 8789 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8790 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8791 8792 archive_cmds='' 8793 hardcode_direct=yes 8794 hardcode_direct_absolute=yes 8795 hardcode_libdir_separator=':' 8796 link_all_deplibs=yes 8797 file_list_spec='$wl-f,' 8798 case $with_aix_soname,$aix_use_runtimelinking in 8799 aix,*) ;; # traditional, no import file 8800 svr4,* | *,yes) # use import file 8801 # The Import File defines what to hardcode. 8802 hardcode_direct=no 8803 hardcode_direct_absolute=no 8804 ;; 8805 esac 8806 8807 if test yes = "$GCC"; then 8808 case $host_os in aix4.[012]|aix4.[012].*) 8809 # We only want to do this on AIX 4.2 and lower, the check 8810 # below for broken collect2 doesn't work under 4.3+ 8811 collect2name=`$CC -print-prog-name=collect2` 8812 if test -f "$collect2name" && 8813 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8814 then 8815 # We have reworked collect2 8816 : 8817 else 8818 # We have old collect2 8819 hardcode_direct=unsupported 8820 # It fails to find uninstalled libraries when the uninstalled 8821 # path is not listed in the libpath. Setting hardcode_minus_L 8822 # to unsupported forces relinking 8823 hardcode_minus_L=yes 8824 hardcode_libdir_flag_spec='-L$libdir' 8825 hardcode_libdir_separator= 8826 fi 8827 ;; 8828 esac 8829 shared_flag='-shared' 8830 if test yes = "$aix_use_runtimelinking"; then 8831 shared_flag="$shared_flag "'$wl-G' 8832 fi 8833 # Need to ensure runtime linking is disabled for the traditional 8834 # shared library, or the linker may eventually find shared libraries 8835 # /with/ Import File - we do not want to mix them. 8836 shared_flag_aix='-shared' 8837 shared_flag_svr4='-shared $wl-G' 8838 else 8839 # not using gcc 8840 if test ia64 = "$host_cpu"; then 8841 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8842 # chokes on -Wl,-G. The following line is correct: 8843 shared_flag='-G' 8844 else 8845 if test yes = "$aix_use_runtimelinking"; then 8846 shared_flag='$wl-G' 8847 else 8848 shared_flag='$wl-bM:SRE' 8849 fi 8850 shared_flag_aix='$wl-bM:SRE' 8851 shared_flag_svr4='$wl-G' 8852 fi 8853 fi 8854 8855 export_dynamic_flag_spec='$wl-bexpall' 8856 # It seems that -bexpall does not export symbols beginning with 8857 # underscore (_), so it is better to generate a list of symbols to export. 8858 always_export_symbols=yes 8859 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 8860 # Warning - without using the other runtime loading flags (-brtl), 8861 # -berok will link without error, but may produce a broken library. 8862 allow_undefined_flag='-berok' 8863 # Determine the default libpath from the value encoded in an 8864 # empty executable. 8865 if test set = "${lt_cv_aix_libpath+set}"; then 8866 aix_libpath=$lt_cv_aix_libpath 8867else 8868 if ${lt_cv_aix_libpath_+:} false; then : 8869 $as_echo_n "(cached) " >&6 8870else 8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8872/* end confdefs.h. */ 8873 8874int 8875main () 8876{ 8877 8878 ; 8879 return 0; 8880} 8881_ACEOF 8882if ac_fn_c_try_link "$LINENO"; then : 8883 8884 lt_aix_libpath_sed=' 8885 /Import File Strings/,/^$/ { 8886 /^0/ { 8887 s/^0 *\([^ ]*\) *$/\1/ 8888 p 8889 } 8890 }' 8891 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8892 # Check for a 64-bit object if we didn't find anything. 8893 if test -z "$lt_cv_aix_libpath_"; then 8894 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8895 fi 8896fi 8897rm -f core conftest.err conftest.$ac_objext \ 8898 conftest$ac_exeext conftest.$ac_ext 8899 if test -z "$lt_cv_aix_libpath_"; then 8900 lt_cv_aix_libpath_=/usr/lib:/lib 8901 fi 8902 8903fi 8904 8905 aix_libpath=$lt_cv_aix_libpath_ 8906fi 8907 8908 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 8909 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 8910 else 8911 if test ia64 = "$host_cpu"; then 8912 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 8913 allow_undefined_flag="-z nodefs" 8914 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" 8915 else 8916 # Determine the default libpath from the value encoded in an 8917 # empty executable. 8918 if test set = "${lt_cv_aix_libpath+set}"; then 8919 aix_libpath=$lt_cv_aix_libpath 8920else 8921 if ${lt_cv_aix_libpath_+:} false; then : 8922 $as_echo_n "(cached) " >&6 8923else 8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8925/* end confdefs.h. */ 8926 8927int 8928main () 8929{ 8930 8931 ; 8932 return 0; 8933} 8934_ACEOF 8935if ac_fn_c_try_link "$LINENO"; then : 8936 8937 lt_aix_libpath_sed=' 8938 /Import File Strings/,/^$/ { 8939 /^0/ { 8940 s/^0 *\([^ ]*\) *$/\1/ 8941 p 8942 } 8943 }' 8944 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8945 # Check for a 64-bit object if we didn't find anything. 8946 if test -z "$lt_cv_aix_libpath_"; then 8947 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8948 fi 8949fi 8950rm -f core conftest.err conftest.$ac_objext \ 8951 conftest$ac_exeext conftest.$ac_ext 8952 if test -z "$lt_cv_aix_libpath_"; then 8953 lt_cv_aix_libpath_=/usr/lib:/lib 8954 fi 8955 8956fi 8957 8958 aix_libpath=$lt_cv_aix_libpath_ 8959fi 8960 8961 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 8962 # Warning - without using the other run time loading flags, 8963 # -berok will link without error, but may produce a broken library. 8964 no_undefined_flag=' $wl-bernotok' 8965 allow_undefined_flag=' $wl-berok' 8966 if test yes = "$with_gnu_ld"; then 8967 # We only use this code for GNU lds that support --whole-archive. 8968 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 8969 else 8970 # Exported symbols can be pulled into shared objects from archives 8971 whole_archive_flag_spec='$convenience' 8972 fi 8973 archive_cmds_need_lc=yes 8974 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 8975 # -brtl affects multiple linker settings, -berok does not and is overridden later 8976 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 8977 if test svr4 != "$with_aix_soname"; then 8978 # This is similar to how AIX traditionally builds its shared libraries. 8979 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 8980 fi 8981 if test aix != "$with_aix_soname"; then 8982 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 8983 else 8984 # used by -dlpreopen to get the symbols 8985 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 8986 fi 8987 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 8988 fi 8989 fi 8990 ;; 8991 8992 amigaos*) 8993 case $host_cpu in 8994 powerpc) 8995 # see comment about AmigaOS4 .so support 8996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8997 archive_expsym_cmds='' 8998 ;; 8999 m68k) 9000 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)' 9001 hardcode_libdir_flag_spec='-L$libdir' 9002 hardcode_minus_L=yes 9003 ;; 9004 esac 9005 ;; 9006 9007 bsdi[45]*) 9008 export_dynamic_flag_spec=-rdynamic 9009 ;; 9010 9011 cygwin* | mingw* | pw32* | cegcc*) 9012 # When not using gcc, we currently assume that we are using 9013 # Microsoft Visual C++. 9014 # hardcode_libdir_flag_spec is actually meaningless, as there is 9015 # no search path for DLLs. 9016 case $cc_basename in 9017 cl*) 9018 # Native MSVC 9019 hardcode_libdir_flag_spec=' ' 9020 allow_undefined_flag=unsupported 9021 always_export_symbols=yes 9022 file_list_spec='@' 9023 # Tell ltmain to make .lib files, not .a files. 9024 libext=lib 9025 # Tell ltmain to make .dll files, not .so files. 9026 shrext_cmds=.dll 9027 # FIXME: Setting linknames here is a bad hack. 9028 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9029 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9030 cp "$export_symbols" "$output_objdir/$soname.def"; 9031 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9032 else 9033 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9034 fi~ 9035 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9036 linknames=' 9037 # The linker will not automatically build a static lib if we build a DLL. 9038 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9039 enable_shared_with_static_runtimes=yes 9040 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9041 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9042 # Don't use ranlib 9043 old_postinstall_cmds='chmod 644 $oldlib' 9044 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9045 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9046 case $lt_outputfile in 9047 *.exe|*.EXE) ;; 9048 *) 9049 lt_outputfile=$lt_outputfile.exe 9050 lt_tool_outputfile=$lt_tool_outputfile.exe 9051 ;; 9052 esac~ 9053 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9054 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9055 $RM "$lt_outputfile.manifest"; 9056 fi' 9057 ;; 9058 *) 9059 # Assume MSVC wrapper 9060 hardcode_libdir_flag_spec=' ' 9061 allow_undefined_flag=unsupported 9062 # Tell ltmain to make .lib files, not .a files. 9063 libext=lib 9064 # Tell ltmain to make .dll files, not .so files. 9065 shrext_cmds=.dll 9066 # FIXME: Setting linknames here is a bad hack. 9067 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9068 # The linker will automatically build a .lib file if we build a DLL. 9069 old_archive_from_new_cmds='true' 9070 # FIXME: Should let the user specify the lib program. 9071 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9072 enable_shared_with_static_runtimes=yes 9073 ;; 9074 esac 9075 ;; 9076 9077 darwin* | rhapsody*) 9078 9079 9080 archive_cmds_need_lc=no 9081 hardcode_direct=no 9082 hardcode_automatic=yes 9083 hardcode_shlibpath_var=unsupported 9084 if test yes = "$lt_cv_ld_force_load"; then 9085 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\"`' 9086 9087 else 9088 whole_archive_flag_spec='' 9089 fi 9090 link_all_deplibs=yes 9091 allow_undefined_flag=$_lt_dar_allow_undefined 9092 case $cc_basename in 9093 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9094 *) _lt_dar_can_shared=$GCC ;; 9095 esac 9096 if test yes = "$_lt_dar_can_shared"; then 9097 output_verbose_link_cmd=func_echo_all 9098 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9099 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9100 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" 9101 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" 9102 9103 else 9104 ld_shlibs=no 9105 fi 9106 9107 ;; 9108 9109 dgux*) 9110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9111 hardcode_libdir_flag_spec='-L$libdir' 9112 hardcode_shlibpath_var=no 9113 ;; 9114 9115 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9116 # support. Future versions do this automatically, but an explicit c++rt0.o 9117 # does not break anything, and helps significantly (at the cost of a little 9118 # extra space). 9119 freebsd2.2*) 9120 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9121 hardcode_libdir_flag_spec='-R$libdir' 9122 hardcode_direct=yes 9123 hardcode_shlibpath_var=no 9124 ;; 9125 9126 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9127 freebsd2.*) 9128 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9129 hardcode_direct=yes 9130 hardcode_minus_L=yes 9131 hardcode_shlibpath_var=no 9132 ;; 9133 9134 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9135 freebsd* | dragonfly*) 9136 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9137 hardcode_libdir_flag_spec='-R$libdir' 9138 hardcode_direct=yes 9139 hardcode_shlibpath_var=no 9140 ;; 9141 9142 hpux9*) 9143 if test yes = "$GCC"; then 9144 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9145 else 9146 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9147 fi 9148 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9149 hardcode_libdir_separator=: 9150 hardcode_direct=yes 9151 9152 # hardcode_minus_L: Not really in the search PATH, 9153 # but as the default location of the library. 9154 hardcode_minus_L=yes 9155 export_dynamic_flag_spec='$wl-E' 9156 ;; 9157 9158 hpux10*) 9159 if test yes,no = "$GCC,$with_gnu_ld"; then 9160 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9161 else 9162 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9163 fi 9164 if test no = "$with_gnu_ld"; then 9165 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9166 hardcode_libdir_separator=: 9167 hardcode_direct=yes 9168 hardcode_direct_absolute=yes 9169 export_dynamic_flag_spec='$wl-E' 9170 # hardcode_minus_L: Not really in the search PATH, 9171 # but as the default location of the library. 9172 hardcode_minus_L=yes 9173 fi 9174 ;; 9175 9176 hpux11*) 9177 if test yes,no = "$GCC,$with_gnu_ld"; then 9178 case $host_cpu in 9179 hppa*64*) 9180 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9181 ;; 9182 ia64*) 9183 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9184 ;; 9185 *) 9186 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9187 ;; 9188 esac 9189 else 9190 case $host_cpu in 9191 hppa*64*) 9192 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9193 ;; 9194 ia64*) 9195 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9196 ;; 9197 *) 9198 9199 # Older versions of the 11.00 compiler do not understand -b yet 9200 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9202$as_echo_n "checking if $CC understands -b... " >&6; } 9203if ${lt_cv_prog_compiler__b+:} false; then : 9204 $as_echo_n "(cached) " >&6 9205else 9206 lt_cv_prog_compiler__b=no 9207 save_LDFLAGS=$LDFLAGS 9208 LDFLAGS="$LDFLAGS -b" 9209 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9210 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9211 # The linker can only warn and ignore the option if not recognized 9212 # So say no if there are warnings 9213 if test -s conftest.err; then 9214 # Append any errors to the config.log. 9215 cat conftest.err 1>&5 9216 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9217 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9218 if diff conftest.exp conftest.er2 >/dev/null; then 9219 lt_cv_prog_compiler__b=yes 9220 fi 9221 else 9222 lt_cv_prog_compiler__b=yes 9223 fi 9224 fi 9225 $RM -r conftest* 9226 LDFLAGS=$save_LDFLAGS 9227 9228fi 9229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9230$as_echo "$lt_cv_prog_compiler__b" >&6; } 9231 9232if test yes = "$lt_cv_prog_compiler__b"; then 9233 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9234else 9235 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9236fi 9237 9238 ;; 9239 esac 9240 fi 9241 if test no = "$with_gnu_ld"; then 9242 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9243 hardcode_libdir_separator=: 9244 9245 case $host_cpu in 9246 hppa*64*|ia64*) 9247 hardcode_direct=no 9248 hardcode_shlibpath_var=no 9249 ;; 9250 *) 9251 hardcode_direct=yes 9252 hardcode_direct_absolute=yes 9253 export_dynamic_flag_spec='$wl-E' 9254 9255 # hardcode_minus_L: Not really in the search PATH, 9256 # but as the default location of the library. 9257 hardcode_minus_L=yes 9258 ;; 9259 esac 9260 fi 9261 ;; 9262 9263 irix5* | irix6* | nonstopux*) 9264 if test yes = "$GCC"; then 9265 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' 9266 # Try to use the -exported_symbol ld option, if it does not 9267 # work, assume that -exports_file does not work either and 9268 # implicitly export all symbols. 9269 # This should be the same for all languages, so no per-tag cache variable. 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9271$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9272if ${lt_cv_irix_exported_symbol+:} false; then : 9273 $as_echo_n "(cached) " >&6 9274else 9275 save_LDFLAGS=$LDFLAGS 9276 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9278/* end confdefs.h. */ 9279int foo (void) { return 0; } 9280_ACEOF 9281if ac_fn_c_try_link "$LINENO"; then : 9282 lt_cv_irix_exported_symbol=yes 9283else 9284 lt_cv_irix_exported_symbol=no 9285fi 9286rm -f core conftest.err conftest.$ac_objext \ 9287 conftest$ac_exeext conftest.$ac_ext 9288 LDFLAGS=$save_LDFLAGS 9289fi 9290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9291$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9292 if test yes = "$lt_cv_irix_exported_symbol"; then 9293 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' 9294 fi 9295 link_all_deplibs=no 9296 else 9297 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' 9298 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' 9299 fi 9300 archive_cmds_need_lc='no' 9301 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9302 hardcode_libdir_separator=: 9303 inherit_rpath=yes 9304 link_all_deplibs=yes 9305 ;; 9306 9307 linux*) 9308 case $cc_basename in 9309 tcc*) 9310 # Fabrice Bellard et al's Tiny C Compiler 9311 ld_shlibs=yes 9312 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9313 ;; 9314 esac 9315 ;; 9316 9317 netbsd* | netbsdelf*-gnu) 9318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9320 else 9321 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9322 fi 9323 hardcode_libdir_flag_spec='-R$libdir' 9324 hardcode_direct=yes 9325 hardcode_shlibpath_var=no 9326 ;; 9327 9328 newsos6) 9329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9330 hardcode_direct=yes 9331 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9332 hardcode_libdir_separator=: 9333 hardcode_shlibpath_var=no 9334 ;; 9335 9336 *nto* | *qnx*) 9337 ;; 9338 9339 openbsd* | bitrig*) 9340 if test -f /usr/libexec/ld.so; then 9341 hardcode_direct=yes 9342 hardcode_shlibpath_var=no 9343 hardcode_direct_absolute=yes 9344 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9346 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9347 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9348 export_dynamic_flag_spec='$wl-E' 9349 else 9350 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9351 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9352 fi 9353 else 9354 ld_shlibs=no 9355 fi 9356 ;; 9357 9358 os2*) 9359 hardcode_libdir_flag_spec='-L$libdir' 9360 hardcode_minus_L=yes 9361 allow_undefined_flag=unsupported 9362 shrext_cmds=.dll 9363 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9364 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9365 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9366 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9367 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9368 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9369 emximp -o $lib $output_objdir/$libname.def' 9370 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9371 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9372 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9373 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9374 prefix_cmds="$SED"~ 9375 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9376 prefix_cmds="$prefix_cmds -e 1d"; 9377 fi~ 9378 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9379 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9380 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9381 emximp -o $lib $output_objdir/$libname.def' 9382 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9383 enable_shared_with_static_runtimes=yes 9384 ;; 9385 9386 osf3*) 9387 if test yes = "$GCC"; then 9388 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9389 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' 9390 else 9391 allow_undefined_flag=' -expect_unresolved \*' 9392 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' 9393 fi 9394 archive_cmds_need_lc='no' 9395 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9396 hardcode_libdir_separator=: 9397 ;; 9398 9399 osf4* | osf5*) # as osf3* with the addition of -msym flag 9400 if test yes = "$GCC"; then 9401 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9402 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' 9403 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9404 else 9405 allow_undefined_flag=' -expect_unresolved \*' 9406 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' 9407 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~ 9408 $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' 9409 9410 # Both c and cxx compiler support -rpath directly 9411 hardcode_libdir_flag_spec='-rpath $libdir' 9412 fi 9413 archive_cmds_need_lc='no' 9414 hardcode_libdir_separator=: 9415 ;; 9416 9417 solaris*) 9418 no_undefined_flag=' -z defs' 9419 if test yes = "$GCC"; then 9420 wlarc='$wl' 9421 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9422 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9423 $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' 9424 else 9425 case `$CC -V 2>&1` in 9426 *"Compilers 5.0"*) 9427 wlarc='' 9428 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 9429 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9430 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9431 ;; 9432 *) 9433 wlarc='$wl' 9434 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9435 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9436 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9437 ;; 9438 esac 9439 fi 9440 hardcode_libdir_flag_spec='-R$libdir' 9441 hardcode_shlibpath_var=no 9442 case $host_os in 9443 solaris2.[0-5] | solaris2.[0-5].*) ;; 9444 *) 9445 # The compiler driver will combine and reorder linker options, 9446 # but understands '-z linker_flag'. GCC discards it without '$wl', 9447 # but is careful enough not to reorder. 9448 # Supported since Solaris 2.6 (maybe 2.5.1?) 9449 if test yes = "$GCC"; then 9450 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9451 else 9452 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9453 fi 9454 ;; 9455 esac 9456 link_all_deplibs=yes 9457 ;; 9458 9459 sunos4*) 9460 if test sequent = "$host_vendor"; then 9461 # Use $CC to link under sequent, because it throws in some extra .o 9462 # files that make .init and .fini sections work. 9463 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9464 else 9465 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9466 fi 9467 hardcode_libdir_flag_spec='-L$libdir' 9468 hardcode_direct=yes 9469 hardcode_minus_L=yes 9470 hardcode_shlibpath_var=no 9471 ;; 9472 9473 sysv4) 9474 case $host_vendor in 9475 sni) 9476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9477 hardcode_direct=yes # is this really true??? 9478 ;; 9479 siemens) 9480 ## LD is ld it makes a PLAMLIB 9481 ## CC just makes a GrossModule. 9482 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9483 reload_cmds='$CC -r -o $output$reload_objs' 9484 hardcode_direct=no 9485 ;; 9486 motorola) 9487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9488 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9489 ;; 9490 esac 9491 runpath_var='LD_RUN_PATH' 9492 hardcode_shlibpath_var=no 9493 ;; 9494 9495 sysv4.3*) 9496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9497 hardcode_shlibpath_var=no 9498 export_dynamic_flag_spec='-Bexport' 9499 ;; 9500 9501 sysv4*MP*) 9502 if test -d /usr/nec; then 9503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9504 hardcode_shlibpath_var=no 9505 runpath_var=LD_RUN_PATH 9506 hardcode_runpath_var=yes 9507 ld_shlibs=yes 9508 fi 9509 ;; 9510 9511 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9512 no_undefined_flag='$wl-z,text' 9513 archive_cmds_need_lc=no 9514 hardcode_shlibpath_var=no 9515 runpath_var='LD_RUN_PATH' 9516 9517 if test yes = "$GCC"; then 9518 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9519 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9520 else 9521 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9522 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9523 fi 9524 ;; 9525 9526 sysv5* | sco3.2v5* | sco5v6*) 9527 # Note: We CANNOT use -z defs as we might desire, because we do not 9528 # link with -lc, and that would cause any symbols used from libc to 9529 # always be unresolved, which means just about no library would 9530 # ever link correctly. If we're not using GNU ld we use -z text 9531 # though, which does catch some bad symbols but isn't as heavy-handed 9532 # as -z defs. 9533 no_undefined_flag='$wl-z,text' 9534 allow_undefined_flag='$wl-z,nodefs' 9535 archive_cmds_need_lc=no 9536 hardcode_shlibpath_var=no 9537 hardcode_libdir_flag_spec='$wl-R,$libdir' 9538 hardcode_libdir_separator=':' 9539 link_all_deplibs=yes 9540 export_dynamic_flag_spec='$wl-Bexport' 9541 runpath_var='LD_RUN_PATH' 9542 9543 if test yes = "$GCC"; then 9544 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9545 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9546 else 9547 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9548 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9549 fi 9550 ;; 9551 9552 uts4*) 9553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9554 hardcode_libdir_flag_spec='-L$libdir' 9555 hardcode_shlibpath_var=no 9556 ;; 9557 9558 *) 9559 ld_shlibs=no 9560 ;; 9561 esac 9562 9563 if test sni = "$host_vendor"; then 9564 case $host in 9565 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9566 export_dynamic_flag_spec='$wl-Blargedynsym' 9567 ;; 9568 esac 9569 fi 9570 fi 9571 9572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9573$as_echo "$ld_shlibs" >&6; } 9574test no = "$ld_shlibs" && can_build_shared=no 9575 9576with_gnu_ld=$with_gnu_ld 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592# 9593# Do we need to explicitly link libc? 9594# 9595case "x$archive_cmds_need_lc" in 9596x|xyes) 9597 # Assume -lc should be added 9598 archive_cmds_need_lc=yes 9599 9600 if test yes,yes = "$GCC,$enable_shared"; then 9601 case $archive_cmds in 9602 *'~'*) 9603 # FIXME: we may have to deal with multi-command sequences. 9604 ;; 9605 '$CC '*) 9606 # Test whether the compiler implicitly links with -lc since on some 9607 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9608 # to ld, don't add -lc before -lgcc. 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9610$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9611if ${lt_cv_archive_cmds_need_lc+:} false; then : 9612 $as_echo_n "(cached) " >&6 9613else 9614 $RM conftest* 9615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9616 9617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9618 (eval $ac_compile) 2>&5 9619 ac_status=$? 9620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9621 test $ac_status = 0; } 2>conftest.err; then 9622 soname=conftest 9623 lib=conftest 9624 libobjs=conftest.$ac_objext 9625 deplibs= 9626 wl=$lt_prog_compiler_wl 9627 pic_flag=$lt_prog_compiler_pic 9628 compiler_flags=-v 9629 linker_flags=-v 9630 verstring= 9631 output_objdir=. 9632 libname=conftest 9633 lt_save_allow_undefined_flag=$allow_undefined_flag 9634 allow_undefined_flag= 9635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9636 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9637 ac_status=$? 9638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9639 test $ac_status = 0; } 9640 then 9641 lt_cv_archive_cmds_need_lc=no 9642 else 9643 lt_cv_archive_cmds_need_lc=yes 9644 fi 9645 allow_undefined_flag=$lt_save_allow_undefined_flag 9646 else 9647 cat conftest.err 1>&5 9648 fi 9649 $RM conftest* 9650 9651fi 9652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9653$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9654 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9655 ;; 9656 esac 9657 fi 9658 ;; 9659esac 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9813$as_echo_n "checking dynamic linker characteristics... " >&6; } 9814 9815if test yes = "$GCC"; then 9816 case $host_os in 9817 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 9818 *) lt_awk_arg='/^libraries:/' ;; 9819 esac 9820 case $host_os in 9821 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 9822 *) lt_sed_strip_eq='s|=/|/|g' ;; 9823 esac 9824 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9825 case $lt_search_path_spec in 9826 *\;*) 9827 # if the path contains ";" then we assume it to be the separator 9828 # otherwise default to the standard path separator (i.e. ":") - it is 9829 # assumed that no part of a normal pathname contains ";" but that should 9830 # okay in the real world where ";" in dirpaths is itself problematic. 9831 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9832 ;; 9833 *) 9834 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9835 ;; 9836 esac 9837 # Ok, now we have the path, separated by spaces, we can step through it 9838 # and add multilib dir if necessary... 9839 lt_tmp_lt_search_path_spec= 9840 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9841 # ...but if some path component already ends with the multilib dir we assume 9842 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 9843 case "$lt_multi_os_dir; $lt_search_path_spec " in 9844 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 9845 lt_multi_os_dir= 9846 ;; 9847 esac 9848 for lt_sys_path in $lt_search_path_spec; do 9849 if test -d "$lt_sys_path$lt_multi_os_dir"; then 9850 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 9851 elif test -n "$lt_multi_os_dir"; then 9852 test -d "$lt_sys_path" && \ 9853 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9854 fi 9855 done 9856 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9857BEGIN {RS = " "; FS = "/|\n";} { 9858 lt_foo = ""; 9859 lt_count = 0; 9860 for (lt_i = NF; lt_i > 0; lt_i--) { 9861 if ($lt_i != "" && $lt_i != ".") { 9862 if ($lt_i == "..") { 9863 lt_count++; 9864 } else { 9865 if (lt_count == 0) { 9866 lt_foo = "/" $lt_i lt_foo; 9867 } else { 9868 lt_count--; 9869 } 9870 } 9871 } 9872 } 9873 if (lt_foo != "") { lt_freq[lt_foo]++; } 9874 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9875}'` 9876 # AWK program above erroneously prepends '/' to C:/dos/paths 9877 # for these hosts. 9878 case $host_os in 9879 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9880 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 9881 esac 9882 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9883else 9884 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9885fi 9886library_names_spec= 9887libname_spec='lib$name' 9888soname_spec= 9889shrext_cmds=.so 9890postinstall_cmds= 9891postuninstall_cmds= 9892finish_cmds= 9893finish_eval= 9894shlibpath_var= 9895shlibpath_overrides_runpath=unknown 9896version_type=none 9897dynamic_linker="$host_os ld.so" 9898sys_lib_dlsearch_path_spec="/lib /usr/lib" 9899need_lib_prefix=unknown 9900hardcode_into_libs=no 9901 9902# when you set need_version to no, make sure it does not cause -set_version 9903# flags to be left without arguments 9904need_version=unknown 9905 9906 9907 9908case $host_os in 9909aix3*) 9910 version_type=linux # correct to gnu/linux during the next big refactor 9911 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 9912 shlibpath_var=LIBPATH 9913 9914 # AIX 3 has no versioning support, so we append a major version to the name. 9915 soname_spec='$libname$release$shared_ext$major' 9916 ;; 9917 9918aix[4-9]*) 9919 version_type=linux # correct to gnu/linux during the next big refactor 9920 need_lib_prefix=no 9921 need_version=no 9922 hardcode_into_libs=yes 9923 if test ia64 = "$host_cpu"; then 9924 # AIX 5 supports IA64 9925 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 9926 shlibpath_var=LD_LIBRARY_PATH 9927 else 9928 # With GCC up to 2.95.x, collect2 would create an import file 9929 # for dependence libraries. The import file would start with 9930 # the line '#! .'. This would cause the generated library to 9931 # depend on '.', always an invalid library. This was fixed in 9932 # development snapshots of GCC prior to 3.0. 9933 case $host_os in 9934 aix4 | aix4.[01] | aix4.[01].*) 9935 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9936 echo ' yes ' 9937 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 9938 : 9939 else 9940 can_build_shared=no 9941 fi 9942 ;; 9943 esac 9944 # Using Import Files as archive members, it is possible to support 9945 # filename-based versioning of shared library archives on AIX. While 9946 # this would work for both with and without runtime linking, it will 9947 # prevent static linking of such archives. So we do filename-based 9948 # shared library versioning with .so extension only, which is used 9949 # when both runtime linking and shared linking is enabled. 9950 # Unfortunately, runtime linking may impact performance, so we do 9951 # not want this to be the default eventually. Also, we use the 9952 # versioned .so libs for executables only if there is the -brtl 9953 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 9954 # To allow for filename-based versioning support, we need to create 9955 # libNAME.so.V as an archive file, containing: 9956 # *) an Import File, referring to the versioned filename of the 9957 # archive as well as the shared archive member, telling the 9958 # bitwidth (32 or 64) of that shared object, and providing the 9959 # list of exported symbols of that shared object, eventually 9960 # decorated with the 'weak' keyword 9961 # *) the shared object with the F_LOADONLY flag set, to really avoid 9962 # it being seen by the linker. 9963 # At run time we better use the real file rather than another symlink, 9964 # but for link time we create the symlink libNAME.so -> libNAME.so.V 9965 9966 case $with_aix_soname,$aix_use_runtimelinking in 9967 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 9968 # soname into executable. Probably we can add versioning support to 9969 # collect2, so additional links can be useful in future. 9970 aix,yes) # traditional libtool 9971 dynamic_linker='AIX unversionable lib.so' 9972 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9973 # instead of lib<name>.a to let people know that these are not 9974 # typical AIX shared libraries. 9975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 9976 ;; 9977 aix,no) # traditional AIX only 9978 dynamic_linker='AIX lib.a(lib.so.V)' 9979 # We preserve .a as extension for shared libraries through AIX4.2 9980 # and later when we are not doing run time linking. 9981 library_names_spec='$libname$release.a $libname.a' 9982 soname_spec='$libname$release$shared_ext$major' 9983 ;; 9984 svr4,*) # full svr4 only 9985 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 9986 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 9987 # We do not specify a path in Import Files, so LIBPATH fires. 9988 shlibpath_overrides_runpath=yes 9989 ;; 9990 *,yes) # both, prefer svr4 9991 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 9992 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 9993 # unpreferred sharedlib libNAME.a needs extra handling 9994 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 9995 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 9996 # We do not specify a path in Import Files, so LIBPATH fires. 9997 shlibpath_overrides_runpath=yes 9998 ;; 9999 *,no) # both, prefer aix 10000 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10001 library_names_spec='$libname$release.a $libname.a' 10002 soname_spec='$libname$release$shared_ext$major' 10003 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10004 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10005 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10006 ;; 10007 esac 10008 shlibpath_var=LIBPATH 10009 fi 10010 ;; 10011 10012amigaos*) 10013 case $host_cpu in 10014 powerpc) 10015 # Since July 2007 AmigaOS4 officially supports .so libraries. 10016 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10018 ;; 10019 m68k) 10020 library_names_spec='$libname.ixlibrary $libname.a' 10021 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10022 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10023 ;; 10024 esac 10025 ;; 10026 10027beos*) 10028 library_names_spec='$libname$shared_ext' 10029 dynamic_linker="$host_os ld.so" 10030 shlibpath_var=LIBRARY_PATH 10031 ;; 10032 10033bsdi[45]*) 10034 version_type=linux # correct to gnu/linux during the next big refactor 10035 need_version=no 10036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10037 soname_spec='$libname$release$shared_ext$major' 10038 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10039 shlibpath_var=LD_LIBRARY_PATH 10040 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10041 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10042 # the default ld.so.conf also contains /usr/contrib/lib and 10043 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10044 # libtool to hard-code these into programs 10045 ;; 10046 10047cygwin* | mingw* | pw32* | cegcc*) 10048 version_type=windows 10049 shrext_cmds=.dll 10050 need_version=no 10051 need_lib_prefix=no 10052 10053 case $GCC,$cc_basename in 10054 yes,*) 10055 # gcc 10056 library_names_spec='$libname.dll.a' 10057 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10058 postinstall_cmds='base_file=`basename \$file`~ 10059 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10060 dldir=$destdir/`dirname \$dlpath`~ 10061 test -d \$dldir || mkdir -p \$dldir~ 10062 $install_prog $dir/$dlname \$dldir/$dlname~ 10063 chmod a+x \$dldir/$dlname~ 10064 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10065 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10066 fi' 10067 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10068 dlpath=$dir/\$dldll~ 10069 $RM \$dlpath' 10070 shlibpath_overrides_runpath=yes 10071 10072 case $host_os in 10073 cygwin*) 10074 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10075 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10076 10077 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10078 ;; 10079 mingw* | cegcc*) 10080 # MinGW DLLs use traditional 'lib' prefix 10081 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10082 ;; 10083 pw32*) 10084 # pw32 DLLs use 'pw' prefix rather than 'lib' 10085 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10086 ;; 10087 esac 10088 dynamic_linker='Win32 ld.exe' 10089 ;; 10090 10091 *,cl*) 10092 # Native MSVC 10093 libname_spec='$name' 10094 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10095 library_names_spec='$libname.dll.lib' 10096 10097 case $build_os in 10098 mingw*) 10099 sys_lib_search_path_spec= 10100 lt_save_ifs=$IFS 10101 IFS=';' 10102 for lt_path in $LIB 10103 do 10104 IFS=$lt_save_ifs 10105 # Let DOS variable expansion print the short 8.3 style file name. 10106 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10107 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10108 done 10109 IFS=$lt_save_ifs 10110 # Convert to MSYS style. 10111 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10112 ;; 10113 cygwin*) 10114 # Convert to unix form, then to dos form, then back to unix form 10115 # but this time dos style (no spaces!) so that the unix form looks 10116 # like /cygdrive/c/PROGRA~1:/cygdr... 10117 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10118 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10119 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10120 ;; 10121 *) 10122 sys_lib_search_path_spec=$LIB 10123 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10124 # It is most probably a Windows format PATH. 10125 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10126 else 10127 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10128 fi 10129 # FIXME: find the short name or the path components, as spaces are 10130 # common. (e.g. "Program Files" -> "PROGRA~1") 10131 ;; 10132 esac 10133 10134 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10135 postinstall_cmds='base_file=`basename \$file`~ 10136 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10137 dldir=$destdir/`dirname \$dlpath`~ 10138 test -d \$dldir || mkdir -p \$dldir~ 10139 $install_prog $dir/$dlname \$dldir/$dlname' 10140 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10141 dlpath=$dir/\$dldll~ 10142 $RM \$dlpath' 10143 shlibpath_overrides_runpath=yes 10144 dynamic_linker='Win32 link.exe' 10145 ;; 10146 10147 *) 10148 # Assume MSVC wrapper 10149 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10150 dynamic_linker='Win32 ld.exe' 10151 ;; 10152 esac 10153 # FIXME: first we should search . and the directory the executable is in 10154 shlibpath_var=PATH 10155 ;; 10156 10157darwin* | rhapsody*) 10158 dynamic_linker="$host_os dyld" 10159 version_type=darwin 10160 need_lib_prefix=no 10161 need_version=no 10162 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10163 soname_spec='$libname$release$major$shared_ext' 10164 shlibpath_overrides_runpath=yes 10165 shlibpath_var=DYLD_LIBRARY_PATH 10166 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10167 10168 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10169 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10170 ;; 10171 10172dgux*) 10173 version_type=linux # correct to gnu/linux during the next big refactor 10174 need_lib_prefix=no 10175 need_version=no 10176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10177 soname_spec='$libname$release$shared_ext$major' 10178 shlibpath_var=LD_LIBRARY_PATH 10179 ;; 10180 10181freebsd* | dragonfly*) 10182 # DragonFly does not have aout. When/if they implement a new 10183 # versioning mechanism, adjust this. 10184 if test -x /usr/bin/objformat; then 10185 objformat=`/usr/bin/objformat` 10186 else 10187 case $host_os in 10188 freebsd[23].*) objformat=aout ;; 10189 *) objformat=elf ;; 10190 esac 10191 fi 10192 version_type=freebsd-$objformat 10193 case $version_type in 10194 freebsd-elf*) 10195 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10196 soname_spec='$libname$release$shared_ext$major' 10197 need_version=no 10198 need_lib_prefix=no 10199 ;; 10200 freebsd-*) 10201 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10202 need_version=yes 10203 ;; 10204 esac 10205 shlibpath_var=LD_LIBRARY_PATH 10206 case $host_os in 10207 freebsd2.*) 10208 shlibpath_overrides_runpath=yes 10209 ;; 10210 freebsd3.[01]* | freebsdelf3.[01]*) 10211 shlibpath_overrides_runpath=yes 10212 hardcode_into_libs=yes 10213 ;; 10214 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10215 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10216 shlibpath_overrides_runpath=no 10217 hardcode_into_libs=yes 10218 ;; 10219 *) # from 4.6 on, and DragonFly 10220 shlibpath_overrides_runpath=yes 10221 hardcode_into_libs=yes 10222 ;; 10223 esac 10224 ;; 10225 10226haiku*) 10227 version_type=linux # correct to gnu/linux during the next big refactor 10228 need_lib_prefix=no 10229 need_version=no 10230 dynamic_linker="$host_os runtime_loader" 10231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10232 soname_spec='$libname$release$shared_ext$major' 10233 shlibpath_var=LIBRARY_PATH 10234 shlibpath_overrides_runpath=no 10235 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10236 hardcode_into_libs=yes 10237 ;; 10238 10239hpux9* | hpux10* | hpux11*) 10240 # Give a soname corresponding to the major version so that dld.sl refuses to 10241 # link against other versions. 10242 version_type=sunos 10243 need_lib_prefix=no 10244 need_version=no 10245 case $host_cpu in 10246 ia64*) 10247 shrext_cmds='.so' 10248 hardcode_into_libs=yes 10249 dynamic_linker="$host_os dld.so" 10250 shlibpath_var=LD_LIBRARY_PATH 10251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10252 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10253 soname_spec='$libname$release$shared_ext$major' 10254 if test 32 = "$HPUX_IA64_MODE"; then 10255 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10256 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10257 else 10258 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10259 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10260 fi 10261 ;; 10262 hppa*64*) 10263 shrext_cmds='.sl' 10264 hardcode_into_libs=yes 10265 dynamic_linker="$host_os dld.sl" 10266 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10267 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10269 soname_spec='$libname$release$shared_ext$major' 10270 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10271 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10272 ;; 10273 *) 10274 shrext_cmds='.sl' 10275 dynamic_linker="$host_os dld.sl" 10276 shlibpath_var=SHLIB_PATH 10277 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10279 soname_spec='$libname$release$shared_ext$major' 10280 ;; 10281 esac 10282 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10283 postinstall_cmds='chmod 555 $lib' 10284 # or fails outright, so override atomically: 10285 install_override_mode=555 10286 ;; 10287 10288interix[3-9]*) 10289 version_type=linux # correct to gnu/linux during the next big refactor 10290 need_lib_prefix=no 10291 need_version=no 10292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10293 soname_spec='$libname$release$shared_ext$major' 10294 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10295 shlibpath_var=LD_LIBRARY_PATH 10296 shlibpath_overrides_runpath=no 10297 hardcode_into_libs=yes 10298 ;; 10299 10300irix5* | irix6* | nonstopux*) 10301 case $host_os in 10302 nonstopux*) version_type=nonstopux ;; 10303 *) 10304 if test yes = "$lt_cv_prog_gnu_ld"; then 10305 version_type=linux # correct to gnu/linux during the next big refactor 10306 else 10307 version_type=irix 10308 fi ;; 10309 esac 10310 need_lib_prefix=no 10311 need_version=no 10312 soname_spec='$libname$release$shared_ext$major' 10313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10314 case $host_os in 10315 irix5* | nonstopux*) 10316 libsuff= shlibsuff= 10317 ;; 10318 *) 10319 case $LD in # libtool.m4 will add one of these switches to LD 10320 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10321 libsuff= shlibsuff= libmagic=32-bit;; 10322 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10323 libsuff=32 shlibsuff=N32 libmagic=N32;; 10324 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10325 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10326 *) libsuff= shlibsuff= libmagic=never-match;; 10327 esac 10328 ;; 10329 esac 10330 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10331 shlibpath_overrides_runpath=no 10332 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10333 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10334 hardcode_into_libs=yes 10335 ;; 10336 10337# No shared lib support for Linux oldld, aout, or coff. 10338linux*oldld* | linux*aout* | linux*coff*) 10339 dynamic_linker=no 10340 ;; 10341 10342linux*android*) 10343 version_type=none # Android doesn't support versioned libraries. 10344 need_lib_prefix=no 10345 need_version=no 10346 library_names_spec='$libname$release$shared_ext' 10347 soname_spec='$libname$release$shared_ext' 10348 finish_cmds= 10349 shlibpath_var=LD_LIBRARY_PATH 10350 shlibpath_overrides_runpath=yes 10351 10352 # This implies no fast_install, which is unacceptable. 10353 # Some rework will be needed to allow for fast_install 10354 # before this can be enabled. 10355 hardcode_into_libs=yes 10356 10357 dynamic_linker='Android linker' 10358 # Don't embed -rpath directories since the linker doesn't support them. 10359 hardcode_libdir_flag_spec='-L$libdir' 10360 ;; 10361 10362# This must be glibc/ELF. 10363linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10364 version_type=linux # correct to gnu/linux during the next big refactor 10365 need_lib_prefix=no 10366 need_version=no 10367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10368 soname_spec='$libname$release$shared_ext$major' 10369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10370 shlibpath_var=LD_LIBRARY_PATH 10371 shlibpath_overrides_runpath=no 10372 10373 # Some binutils ld are patched to set DT_RUNPATH 10374 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10375 $as_echo_n "(cached) " >&6 10376else 10377 lt_cv_shlibpath_overrides_runpath=no 10378 save_LDFLAGS=$LDFLAGS 10379 save_libdir=$libdir 10380 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10381 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10383/* end confdefs.h. */ 10384 10385int 10386main () 10387{ 10388 10389 ; 10390 return 0; 10391} 10392_ACEOF 10393if ac_fn_c_try_link "$LINENO"; then : 10394 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10395 lt_cv_shlibpath_overrides_runpath=yes 10396fi 10397fi 10398rm -f core conftest.err conftest.$ac_objext \ 10399 conftest$ac_exeext conftest.$ac_ext 10400 LDFLAGS=$save_LDFLAGS 10401 libdir=$save_libdir 10402 10403fi 10404 10405 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10406 10407 # This implies no fast_install, which is unacceptable. 10408 # Some rework will be needed to allow for fast_install 10409 # before this can be enabled. 10410 hardcode_into_libs=yes 10411 10412 # Ideally, we could use ldconfig to report *all* directores which are 10413 # searched for libraries, however this is still not possible. Aside from not 10414 # being certain /sbin/ldconfig is available, command 10415 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 10416 # even though it is searched at run-time. Try to do the best guess by 10417 # appending ld.so.conf contents (and includes) to the search path. 10418 if test -f /etc/ld.so.conf; then 10419 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' ' '` 10420 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10421 fi 10422 10423 # We used to test for /lib/ld.so.1 and disable shared libraries on 10424 # powerpc, because MkLinux only supported shared libraries with the 10425 # GNU dynamic linker. Since this was broken with cross compilers, 10426 # most powerpc-linux boxes support dynamic linking these days and 10427 # people can always --disable-shared, the test was removed, and we 10428 # assume the GNU/Linux dynamic linker is in use. 10429 dynamic_linker='GNU/Linux ld.so' 10430 ;; 10431 10432netbsdelf*-gnu) 10433 version_type=linux 10434 need_lib_prefix=no 10435 need_version=no 10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10437 soname_spec='${libname}${release}${shared_ext}$major' 10438 shlibpath_var=LD_LIBRARY_PATH 10439 shlibpath_overrides_runpath=no 10440 hardcode_into_libs=yes 10441 dynamic_linker='NetBSD ld.elf_so' 10442 ;; 10443 10444netbsd*) 10445 version_type=sunos 10446 need_lib_prefix=no 10447 need_version=no 10448 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10449 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10451 dynamic_linker='NetBSD (a.out) ld.so' 10452 else 10453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10454 soname_spec='$libname$release$shared_ext$major' 10455 dynamic_linker='NetBSD ld.elf_so' 10456 fi 10457 shlibpath_var=LD_LIBRARY_PATH 10458 shlibpath_overrides_runpath=yes 10459 hardcode_into_libs=yes 10460 ;; 10461 10462newsos6) 10463 version_type=linux # correct to gnu/linux during the next big refactor 10464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10465 shlibpath_var=LD_LIBRARY_PATH 10466 shlibpath_overrides_runpath=yes 10467 ;; 10468 10469*nto* | *qnx*) 10470 version_type=qnx 10471 need_lib_prefix=no 10472 need_version=no 10473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10474 soname_spec='$libname$release$shared_ext$major' 10475 shlibpath_var=LD_LIBRARY_PATH 10476 shlibpath_overrides_runpath=no 10477 hardcode_into_libs=yes 10478 dynamic_linker='ldqnx.so' 10479 ;; 10480 10481openbsd* | bitrig*) 10482 version_type=sunos 10483 sys_lib_dlsearch_path_spec=/usr/lib 10484 need_lib_prefix=no 10485 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10486 need_version=no 10487 else 10488 need_version=yes 10489 fi 10490 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10492 shlibpath_var=LD_LIBRARY_PATH 10493 shlibpath_overrides_runpath=yes 10494 ;; 10495 10496os2*) 10497 libname_spec='$name' 10498 version_type=windows 10499 shrext_cmds=.dll 10500 need_version=no 10501 need_lib_prefix=no 10502 # OS/2 can only load a DLL with a base name of 8 characters or less. 10503 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 10504 v=$($ECHO $release$versuffix | tr -d .-); 10505 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 10506 $ECHO $n$v`$shared_ext' 10507 library_names_spec='${libname}_dll.$libext' 10508 dynamic_linker='OS/2 ld.exe' 10509 shlibpath_var=BEGINLIBPATH 10510 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10512 postinstall_cmds='base_file=`basename \$file`~ 10513 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 10514 dldir=$destdir/`dirname \$dlpath`~ 10515 test -d \$dldir || mkdir -p \$dldir~ 10516 $install_prog $dir/$dlname \$dldir/$dlname~ 10517 chmod a+x \$dldir/$dlname~ 10518 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10519 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10520 fi' 10521 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 10522 dlpath=$dir/\$dldll~ 10523 $RM \$dlpath' 10524 ;; 10525 10526osf3* | osf4* | osf5*) 10527 version_type=osf 10528 need_lib_prefix=no 10529 need_version=no 10530 soname_spec='$libname$release$shared_ext$major' 10531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10532 shlibpath_var=LD_LIBRARY_PATH 10533 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10534 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10535 ;; 10536 10537rdos*) 10538 dynamic_linker=no 10539 ;; 10540 10541solaris*) 10542 version_type=linux # correct to gnu/linux during the next big refactor 10543 need_lib_prefix=no 10544 need_version=no 10545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10546 soname_spec='$libname$release$shared_ext$major' 10547 shlibpath_var=LD_LIBRARY_PATH 10548 shlibpath_overrides_runpath=yes 10549 hardcode_into_libs=yes 10550 # ldd complains unless libraries are executable 10551 postinstall_cmds='chmod +x $lib' 10552 ;; 10553 10554sunos4*) 10555 version_type=sunos 10556 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10557 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10558 shlibpath_var=LD_LIBRARY_PATH 10559 shlibpath_overrides_runpath=yes 10560 if test yes = "$with_gnu_ld"; then 10561 need_lib_prefix=no 10562 fi 10563 need_version=yes 10564 ;; 10565 10566sysv4 | sysv4.3*) 10567 version_type=linux # correct to gnu/linux during the next big refactor 10568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10569 soname_spec='$libname$release$shared_ext$major' 10570 shlibpath_var=LD_LIBRARY_PATH 10571 case $host_vendor in 10572 sni) 10573 shlibpath_overrides_runpath=no 10574 need_lib_prefix=no 10575 runpath_var=LD_RUN_PATH 10576 ;; 10577 siemens) 10578 need_lib_prefix=no 10579 ;; 10580 motorola) 10581 need_lib_prefix=no 10582 need_version=no 10583 shlibpath_overrides_runpath=no 10584 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10585 ;; 10586 esac 10587 ;; 10588 10589sysv4*MP*) 10590 if test -d /usr/nec; then 10591 version_type=linux # correct to gnu/linux during the next big refactor 10592 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 10593 soname_spec='$libname$shared_ext.$major' 10594 shlibpath_var=LD_LIBRARY_PATH 10595 fi 10596 ;; 10597 10598sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10599 version_type=sco 10600 need_lib_prefix=no 10601 need_version=no 10602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 10603 soname_spec='$libname$release$shared_ext$major' 10604 shlibpath_var=LD_LIBRARY_PATH 10605 shlibpath_overrides_runpath=yes 10606 hardcode_into_libs=yes 10607 if test yes = "$with_gnu_ld"; then 10608 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10609 else 10610 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10611 case $host_os in 10612 sco3.2v5*) 10613 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10614 ;; 10615 esac 10616 fi 10617 sys_lib_dlsearch_path_spec='/usr/lib' 10618 ;; 10619 10620tpf*) 10621 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10622 version_type=linux # correct to gnu/linux during the next big refactor 10623 need_lib_prefix=no 10624 need_version=no 10625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10626 shlibpath_var=LD_LIBRARY_PATH 10627 shlibpath_overrides_runpath=no 10628 hardcode_into_libs=yes 10629 ;; 10630 10631uts4*) 10632 version_type=linux # correct to gnu/linux during the next big refactor 10633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10634 soname_spec='$libname$release$shared_ext$major' 10635 shlibpath_var=LD_LIBRARY_PATH 10636 ;; 10637 10638*) 10639 dynamic_linker=no 10640 ;; 10641esac 10642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10643$as_echo "$dynamic_linker" >&6; } 10644test no = "$dynamic_linker" && can_build_shared=no 10645 10646variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10647if test yes = "$GCC"; then 10648 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10649fi 10650 10651if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 10652 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 10653fi 10654 10655if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 10656 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 10657fi 10658 10659# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 10660configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 10661 10662# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 10663func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 10664 10665# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 10666configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10765$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10766hardcode_action= 10767if test -n "$hardcode_libdir_flag_spec" || 10768 test -n "$runpath_var" || 10769 test yes = "$hardcode_automatic"; then 10770 10771 # We can hardcode non-existent directories. 10772 if test no != "$hardcode_direct" && 10773 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10774 # have to relink, otherwise we might link with an installed library 10775 # when we should be linking with a yet-to-be-installed one 10776 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 10777 test no != "$hardcode_minus_L"; then 10778 # Linking always hardcodes the temporary library directory. 10779 hardcode_action=relink 10780 else 10781 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10782 hardcode_action=immediate 10783 fi 10784else 10785 # We cannot hardcode anything, or else we can only hardcode existing 10786 # directories. 10787 hardcode_action=unsupported 10788fi 10789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10790$as_echo "$hardcode_action" >&6; } 10791 10792if test relink = "$hardcode_action" || 10793 test yes = "$inherit_rpath"; then 10794 # Fast installation is not supported 10795 enable_fast_install=no 10796elif test yes = "$shlibpath_overrides_runpath" || 10797 test no = "$enable_shared"; then 10798 # Fast installation is not necessary 10799 enable_fast_install=needless 10800fi 10801 10802 10803 10804 10805 10806 10807 if test yes != "$enable_dlopen"; then 10808 enable_dlopen=unknown 10809 enable_dlopen_self=unknown 10810 enable_dlopen_self_static=unknown 10811else 10812 lt_cv_dlopen=no 10813 lt_cv_dlopen_libs= 10814 10815 case $host_os in 10816 beos*) 10817 lt_cv_dlopen=load_add_on 10818 lt_cv_dlopen_libs= 10819 lt_cv_dlopen_self=yes 10820 ;; 10821 10822 mingw* | pw32* | cegcc*) 10823 lt_cv_dlopen=LoadLibrary 10824 lt_cv_dlopen_libs= 10825 ;; 10826 10827 cygwin*) 10828 lt_cv_dlopen=dlopen 10829 lt_cv_dlopen_libs= 10830 ;; 10831 10832 darwin*) 10833 # if libdl is installed we need to link against it 10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10835$as_echo_n "checking for dlopen in -ldl... " >&6; } 10836if ${ac_cv_lib_dl_dlopen+:} false; then : 10837 $as_echo_n "(cached) " >&6 10838else 10839 ac_check_lib_save_LIBS=$LIBS 10840LIBS="-ldl $LIBS" 10841cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10842/* end confdefs.h. */ 10843 10844/* Override any GCC internal prototype to avoid an error. 10845 Use char because int might match the return type of a GCC 10846 builtin and then its argument prototype would still apply. */ 10847#ifdef __cplusplus 10848extern "C" 10849#endif 10850char dlopen (); 10851int 10852main () 10853{ 10854return dlopen (); 10855 ; 10856 return 0; 10857} 10858_ACEOF 10859if ac_fn_c_try_link "$LINENO"; then : 10860 ac_cv_lib_dl_dlopen=yes 10861else 10862 ac_cv_lib_dl_dlopen=no 10863fi 10864rm -f core conftest.err conftest.$ac_objext \ 10865 conftest$ac_exeext conftest.$ac_ext 10866LIBS=$ac_check_lib_save_LIBS 10867fi 10868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10869$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10870if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10871 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 10872else 10873 10874 lt_cv_dlopen=dyld 10875 lt_cv_dlopen_libs= 10876 lt_cv_dlopen_self=yes 10877 10878fi 10879 10880 ;; 10881 10882 tpf*) 10883 # Don't try to run any link tests for TPF. We know it's impossible 10884 # because TPF is a cross-compiler, and we know how we open DSOs. 10885 lt_cv_dlopen=dlopen 10886 lt_cv_dlopen_libs= 10887 lt_cv_dlopen_self=no 10888 ;; 10889 10890 *) 10891 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10892if test "x$ac_cv_func_shl_load" = xyes; then : 10893 lt_cv_dlopen=shl_load 10894else 10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10896$as_echo_n "checking for shl_load in -ldld... " >&6; } 10897if ${ac_cv_lib_dld_shl_load+:} false; then : 10898 $as_echo_n "(cached) " >&6 10899else 10900 ac_check_lib_save_LIBS=$LIBS 10901LIBS="-ldld $LIBS" 10902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10903/* end confdefs.h. */ 10904 10905/* Override any GCC internal prototype to avoid an error. 10906 Use char because int might match the return type of a GCC 10907 builtin and then its argument prototype would still apply. */ 10908#ifdef __cplusplus 10909extern "C" 10910#endif 10911char shl_load (); 10912int 10913main () 10914{ 10915return shl_load (); 10916 ; 10917 return 0; 10918} 10919_ACEOF 10920if ac_fn_c_try_link "$LINENO"; then : 10921 ac_cv_lib_dld_shl_load=yes 10922else 10923 ac_cv_lib_dld_shl_load=no 10924fi 10925rm -f core conftest.err conftest.$ac_objext \ 10926 conftest$ac_exeext conftest.$ac_ext 10927LIBS=$ac_check_lib_save_LIBS 10928fi 10929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10930$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10931if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10932 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 10933else 10934 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10935if test "x$ac_cv_func_dlopen" = xyes; then : 10936 lt_cv_dlopen=dlopen 10937else 10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10939$as_echo_n "checking for dlopen in -ldl... " >&6; } 10940if ${ac_cv_lib_dl_dlopen+:} false; then : 10941 $as_echo_n "(cached) " >&6 10942else 10943 ac_check_lib_save_LIBS=$LIBS 10944LIBS="-ldl $LIBS" 10945cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10946/* end confdefs.h. */ 10947 10948/* Override any GCC internal prototype to avoid an error. 10949 Use char because int might match the return type of a GCC 10950 builtin and then its argument prototype would still apply. */ 10951#ifdef __cplusplus 10952extern "C" 10953#endif 10954char dlopen (); 10955int 10956main () 10957{ 10958return dlopen (); 10959 ; 10960 return 0; 10961} 10962_ACEOF 10963if ac_fn_c_try_link "$LINENO"; then : 10964 ac_cv_lib_dl_dlopen=yes 10965else 10966 ac_cv_lib_dl_dlopen=no 10967fi 10968rm -f core conftest.err conftest.$ac_objext \ 10969 conftest$ac_exeext conftest.$ac_ext 10970LIBS=$ac_check_lib_save_LIBS 10971fi 10972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10973$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10974if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10975 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 10976else 10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10978$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10979if ${ac_cv_lib_svld_dlopen+:} false; then : 10980 $as_echo_n "(cached) " >&6 10981else 10982 ac_check_lib_save_LIBS=$LIBS 10983LIBS="-lsvld $LIBS" 10984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10985/* end confdefs.h. */ 10986 10987/* Override any GCC internal prototype to avoid an error. 10988 Use char because int might match the return type of a GCC 10989 builtin and then its argument prototype would still apply. */ 10990#ifdef __cplusplus 10991extern "C" 10992#endif 10993char dlopen (); 10994int 10995main () 10996{ 10997return dlopen (); 10998 ; 10999 return 0; 11000} 11001_ACEOF 11002if ac_fn_c_try_link "$LINENO"; then : 11003 ac_cv_lib_svld_dlopen=yes 11004else 11005 ac_cv_lib_svld_dlopen=no 11006fi 11007rm -f core conftest.err conftest.$ac_objext \ 11008 conftest$ac_exeext conftest.$ac_ext 11009LIBS=$ac_check_lib_save_LIBS 11010fi 11011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11012$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11013if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11014 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11015else 11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11017$as_echo_n "checking for dld_link in -ldld... " >&6; } 11018if ${ac_cv_lib_dld_dld_link+:} false; then : 11019 $as_echo_n "(cached) " >&6 11020else 11021 ac_check_lib_save_LIBS=$LIBS 11022LIBS="-ldld $LIBS" 11023cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11024/* end confdefs.h. */ 11025 11026/* Override any GCC internal prototype to avoid an error. 11027 Use char because int might match the return type of a GCC 11028 builtin and then its argument prototype would still apply. */ 11029#ifdef __cplusplus 11030extern "C" 11031#endif 11032char dld_link (); 11033int 11034main () 11035{ 11036return dld_link (); 11037 ; 11038 return 0; 11039} 11040_ACEOF 11041if ac_fn_c_try_link "$LINENO"; then : 11042 ac_cv_lib_dld_dld_link=yes 11043else 11044 ac_cv_lib_dld_dld_link=no 11045fi 11046rm -f core conftest.err conftest.$ac_objext \ 11047 conftest$ac_exeext conftest.$ac_ext 11048LIBS=$ac_check_lib_save_LIBS 11049fi 11050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11051$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11052if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11053 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11054fi 11055 11056 11057fi 11058 11059 11060fi 11061 11062 11063fi 11064 11065 11066fi 11067 11068 11069fi 11070 11071 ;; 11072 esac 11073 11074 if test no = "$lt_cv_dlopen"; then 11075 enable_dlopen=no 11076 else 11077 enable_dlopen=yes 11078 fi 11079 11080 case $lt_cv_dlopen in 11081 dlopen) 11082 save_CPPFLAGS=$CPPFLAGS 11083 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11084 11085 save_LDFLAGS=$LDFLAGS 11086 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11087 11088 save_LIBS=$LIBS 11089 LIBS="$lt_cv_dlopen_libs $LIBS" 11090 11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11092$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11093if ${lt_cv_dlopen_self+:} false; then : 11094 $as_echo_n "(cached) " >&6 11095else 11096 if test yes = "$cross_compiling"; then : 11097 lt_cv_dlopen_self=cross 11098else 11099 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11100 lt_status=$lt_dlunknown 11101 cat > conftest.$ac_ext <<_LT_EOF 11102#line $LINENO "configure" 11103#include "confdefs.h" 11104 11105#if HAVE_DLFCN_H 11106#include <dlfcn.h> 11107#endif 11108 11109#include <stdio.h> 11110 11111#ifdef RTLD_GLOBAL 11112# define LT_DLGLOBAL RTLD_GLOBAL 11113#else 11114# ifdef DL_GLOBAL 11115# define LT_DLGLOBAL DL_GLOBAL 11116# else 11117# define LT_DLGLOBAL 0 11118# endif 11119#endif 11120 11121/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11122 find out it does not work in some platform. */ 11123#ifndef LT_DLLAZY_OR_NOW 11124# ifdef RTLD_LAZY 11125# define LT_DLLAZY_OR_NOW RTLD_LAZY 11126# else 11127# ifdef DL_LAZY 11128# define LT_DLLAZY_OR_NOW DL_LAZY 11129# else 11130# ifdef RTLD_NOW 11131# define LT_DLLAZY_OR_NOW RTLD_NOW 11132# else 11133# ifdef DL_NOW 11134# define LT_DLLAZY_OR_NOW DL_NOW 11135# else 11136# define LT_DLLAZY_OR_NOW 0 11137# endif 11138# endif 11139# endif 11140# endif 11141#endif 11142 11143/* When -fvisibility=hidden is used, assume the code has been annotated 11144 correspondingly for the symbols needed. */ 11145#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11146int fnord () __attribute__((visibility("default"))); 11147#endif 11148 11149int fnord () { return 42; } 11150int main () 11151{ 11152 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11153 int status = $lt_dlunknown; 11154 11155 if (self) 11156 { 11157 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11158 else 11159 { 11160 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11161 else puts (dlerror ()); 11162 } 11163 /* dlclose (self); */ 11164 } 11165 else 11166 puts (dlerror ()); 11167 11168 return status; 11169} 11170_LT_EOF 11171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11172 (eval $ac_link) 2>&5 11173 ac_status=$? 11174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11175 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11176 (./conftest; exit; ) >&5 2>/dev/null 11177 lt_status=$? 11178 case x$lt_status in 11179 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11180 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11181 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11182 esac 11183 else : 11184 # compilation failed 11185 lt_cv_dlopen_self=no 11186 fi 11187fi 11188rm -fr conftest* 11189 11190 11191fi 11192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11193$as_echo "$lt_cv_dlopen_self" >&6; } 11194 11195 if test yes = "$lt_cv_dlopen_self"; then 11196 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11198$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11199if ${lt_cv_dlopen_self_static+:} false; then : 11200 $as_echo_n "(cached) " >&6 11201else 11202 if test yes = "$cross_compiling"; then : 11203 lt_cv_dlopen_self_static=cross 11204else 11205 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11206 lt_status=$lt_dlunknown 11207 cat > conftest.$ac_ext <<_LT_EOF 11208#line $LINENO "configure" 11209#include "confdefs.h" 11210 11211#if HAVE_DLFCN_H 11212#include <dlfcn.h> 11213#endif 11214 11215#include <stdio.h> 11216 11217#ifdef RTLD_GLOBAL 11218# define LT_DLGLOBAL RTLD_GLOBAL 11219#else 11220# ifdef DL_GLOBAL 11221# define LT_DLGLOBAL DL_GLOBAL 11222# else 11223# define LT_DLGLOBAL 0 11224# endif 11225#endif 11226 11227/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11228 find out it does not work in some platform. */ 11229#ifndef LT_DLLAZY_OR_NOW 11230# ifdef RTLD_LAZY 11231# define LT_DLLAZY_OR_NOW RTLD_LAZY 11232# else 11233# ifdef DL_LAZY 11234# define LT_DLLAZY_OR_NOW DL_LAZY 11235# else 11236# ifdef RTLD_NOW 11237# define LT_DLLAZY_OR_NOW RTLD_NOW 11238# else 11239# ifdef DL_NOW 11240# define LT_DLLAZY_OR_NOW DL_NOW 11241# else 11242# define LT_DLLAZY_OR_NOW 0 11243# endif 11244# endif 11245# endif 11246# endif 11247#endif 11248 11249/* When -fvisibility=hidden is used, assume the code has been annotated 11250 correspondingly for the symbols needed. */ 11251#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11252int fnord () __attribute__((visibility("default"))); 11253#endif 11254 11255int fnord () { return 42; } 11256int main () 11257{ 11258 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11259 int status = $lt_dlunknown; 11260 11261 if (self) 11262 { 11263 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11264 else 11265 { 11266 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11267 else puts (dlerror ()); 11268 } 11269 /* dlclose (self); */ 11270 } 11271 else 11272 puts (dlerror ()); 11273 11274 return status; 11275} 11276_LT_EOF 11277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11278 (eval $ac_link) 2>&5 11279 ac_status=$? 11280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11281 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11282 (./conftest; exit; ) >&5 2>/dev/null 11283 lt_status=$? 11284 case x$lt_status in 11285 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11286 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11287 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11288 esac 11289 else : 11290 # compilation failed 11291 lt_cv_dlopen_self_static=no 11292 fi 11293fi 11294rm -fr conftest* 11295 11296 11297fi 11298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11299$as_echo "$lt_cv_dlopen_self_static" >&6; } 11300 fi 11301 11302 CPPFLAGS=$save_CPPFLAGS 11303 LDFLAGS=$save_LDFLAGS 11304 LIBS=$save_LIBS 11305 ;; 11306 esac 11307 11308 case $lt_cv_dlopen_self in 11309 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11310 *) enable_dlopen_self=unknown ;; 11311 esac 11312 11313 case $lt_cv_dlopen_self_static in 11314 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11315 *) enable_dlopen_self_static=unknown ;; 11316 esac 11317fi 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335striplib= 11336old_striplib= 11337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11338$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11339if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11340 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11341 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11343$as_echo "yes" >&6; } 11344else 11345# FIXME - insert some real tests, host_os isn't really good enough 11346 case $host_os in 11347 darwin*) 11348 if test -n "$STRIP"; then 11349 striplib="$STRIP -x" 11350 old_striplib="$STRIP -S" 11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11352$as_echo "yes" >&6; } 11353 else 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11355$as_echo "no" >&6; } 11356 fi 11357 ;; 11358 *) 11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11360$as_echo "no" >&6; } 11361 ;; 11362 esac 11363fi 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 # Report what library types will actually be built 11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11378$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11380$as_echo "$can_build_shared" >&6; } 11381 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11383$as_echo_n "checking whether to build shared libraries... " >&6; } 11384 test no = "$can_build_shared" && enable_shared=no 11385 11386 # On AIX, shared libraries and static libraries use the same namespace, and 11387 # are all built from PIC. 11388 case $host_os in 11389 aix3*) 11390 test yes = "$enable_shared" && enable_static=no 11391 if test -n "$RANLIB"; then 11392 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11393 postinstall_cmds='$RANLIB $lib' 11394 fi 11395 ;; 11396 11397 aix[4-9]*) 11398 if test ia64 != "$host_cpu"; then 11399 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11400 yes,aix,yes) ;; # shared object as lib.so file only 11401 yes,svr4,*) ;; # shared object as lib.so archive member only 11402 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11403 esac 11404 fi 11405 ;; 11406 esac 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11408$as_echo "$enable_shared" >&6; } 11409 11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11411$as_echo_n "checking whether to build static libraries... " >&6; } 11412 # Make sure either enable_shared or enable_static is yes. 11413 test yes = "$enable_shared" || enable_static=yes 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11415$as_echo "$enable_static" >&6; } 11416 11417 11418 11419 11420fi 11421ac_ext=c 11422ac_cpp='$CPP $CPPFLAGS' 11423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11425ac_compiler_gnu=$ac_cv_c_compiler_gnu 11426 11427CC=$lt_save_CC 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 ac_config_commands="$ac_config_commands libtool" 11444 11445 11446 11447 11448# Only expand once: 11449 11450 11451 11452version="0.92.7" 11453 11454libcurrent=16 11455librevision=0 11456libage=0 11457libversion="$libcurrent:$librevision:$libage" 11458 11459makefile_template="Makefile.in:Makedefs.in" 11460output_files="src/Makefile:Makedefs.in:src/Makefile.in\ 11461 lisp/Makefile:Makedefs.in:lisp/Makefile.in\ 11462 Makefile:Makedefs.in:Makefile.in\ 11463 man/Makefile:Makedefs.in:man/Makefile.in\ 11464 intl/Makefile librep.spec librep.pc librep.ebuild rules.mk" 11465 11466 11467 11468case "${prefix}" in 11469 */) 11470 prefix=`echo ${prefix} | sed -e 's/^\(.*\)\/$/\1/'` 11471 ;; 11472esac 11473 11474repdir='${datadir}/rep' 11475replispdir='${repdir}/lisp' 11476repexecdir='${libdir}/rep' 11477repcommonexecdir='${libdir}/rep' 11478repdocfile='${repexecdir}/doc-strings' 11479 11480emacssitelispdir='${datadir}/emacs/site-lisp' 11481 11482case "$prefix" in 11483 /|/usr|/usr/local|NONE) 11484 ;; 11485 *) 11486 LDFLAGS="${LDFLAGS} -L$prefix/lib" 11487 CPPFLAGS="${CPPFLAGS} -I$prefix/include" 11488 ;; 11489esac 11490 11491EXTRA_LIBOBJS="" 11492 11493 11494 11495 11496 11497 11498ac_ext=c 11499ac_cpp='$CPP $CPPFLAGS' 11500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11502ac_compiler_gnu=$ac_cv_c_compiler_gnu 11503if test -n "$ac_tool_prefix"; then 11504 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11505set dummy ${ac_tool_prefix}gcc; ac_word=$2 11506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11507$as_echo_n "checking for $ac_word... " >&6; } 11508if ${ac_cv_prog_CC+:} false; then : 11509 $as_echo_n "(cached) " >&6 11510else 11511 if test -n "$CC"; then 11512 ac_cv_prog_CC="$CC" # Let the user override the test. 11513else 11514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11515for as_dir in $PATH 11516do 11517 IFS=$as_save_IFS 11518 test -z "$as_dir" && as_dir=. 11519 for ac_exec_ext in '' $ac_executable_extensions; do 11520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11521 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11523 break 2 11524 fi 11525done 11526 done 11527IFS=$as_save_IFS 11528 11529fi 11530fi 11531CC=$ac_cv_prog_CC 11532if test -n "$CC"; then 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11534$as_echo "$CC" >&6; } 11535else 11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11537$as_echo "no" >&6; } 11538fi 11539 11540 11541fi 11542if test -z "$ac_cv_prog_CC"; then 11543 ac_ct_CC=$CC 11544 # Extract the first word of "gcc", so it can be a program name with args. 11545set dummy gcc; ac_word=$2 11546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11547$as_echo_n "checking for $ac_word... " >&6; } 11548if ${ac_cv_prog_ac_ct_CC+:} false; then : 11549 $as_echo_n "(cached) " >&6 11550else 11551 if test -n "$ac_ct_CC"; then 11552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11553else 11554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11555for as_dir in $PATH 11556do 11557 IFS=$as_save_IFS 11558 test -z "$as_dir" && as_dir=. 11559 for ac_exec_ext in '' $ac_executable_extensions; do 11560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11561 ac_cv_prog_ac_ct_CC="gcc" 11562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11563 break 2 11564 fi 11565done 11566 done 11567IFS=$as_save_IFS 11568 11569fi 11570fi 11571ac_ct_CC=$ac_cv_prog_ac_ct_CC 11572if test -n "$ac_ct_CC"; then 11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11574$as_echo "$ac_ct_CC" >&6; } 11575else 11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11577$as_echo "no" >&6; } 11578fi 11579 11580 if test "x$ac_ct_CC" = x; then 11581 CC="" 11582 else 11583 case $cross_compiling:$ac_tool_warned in 11584yes:) 11585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11587ac_tool_warned=yes ;; 11588esac 11589 CC=$ac_ct_CC 11590 fi 11591else 11592 CC="$ac_cv_prog_CC" 11593fi 11594 11595if test -z "$CC"; then 11596 if test -n "$ac_tool_prefix"; then 11597 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11598set dummy ${ac_tool_prefix}cc; ac_word=$2 11599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11600$as_echo_n "checking for $ac_word... " >&6; } 11601if ${ac_cv_prog_CC+:} false; then : 11602 $as_echo_n "(cached) " >&6 11603else 11604 if test -n "$CC"; then 11605 ac_cv_prog_CC="$CC" # Let the user override the test. 11606else 11607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11608for as_dir in $PATH 11609do 11610 IFS=$as_save_IFS 11611 test -z "$as_dir" && as_dir=. 11612 for ac_exec_ext in '' $ac_executable_extensions; do 11613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11614 ac_cv_prog_CC="${ac_tool_prefix}cc" 11615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11616 break 2 11617 fi 11618done 11619 done 11620IFS=$as_save_IFS 11621 11622fi 11623fi 11624CC=$ac_cv_prog_CC 11625if test -n "$CC"; then 11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11627$as_echo "$CC" >&6; } 11628else 11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11630$as_echo "no" >&6; } 11631fi 11632 11633 11634 fi 11635fi 11636if test -z "$CC"; then 11637 # Extract the first word of "cc", so it can be a program name with args. 11638set dummy cc; ac_word=$2 11639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11640$as_echo_n "checking for $ac_word... " >&6; } 11641if ${ac_cv_prog_CC+:} false; then : 11642 $as_echo_n "(cached) " >&6 11643else 11644 if test -n "$CC"; then 11645 ac_cv_prog_CC="$CC" # Let the user override the test. 11646else 11647 ac_prog_rejected=no 11648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11649for as_dir in $PATH 11650do 11651 IFS=$as_save_IFS 11652 test -z "$as_dir" && as_dir=. 11653 for ac_exec_ext in '' $ac_executable_extensions; do 11654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11655 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11656 ac_prog_rejected=yes 11657 continue 11658 fi 11659 ac_cv_prog_CC="cc" 11660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11661 break 2 11662 fi 11663done 11664 done 11665IFS=$as_save_IFS 11666 11667if test $ac_prog_rejected = yes; then 11668 # We found a bogon in the path, so make sure we never use it. 11669 set dummy $ac_cv_prog_CC 11670 shift 11671 if test $# != 0; then 11672 # We chose a different compiler from the bogus one. 11673 # However, it has the same basename, so the bogon will be chosen 11674 # first if we set CC to just the basename; use the full file name. 11675 shift 11676 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11677 fi 11678fi 11679fi 11680fi 11681CC=$ac_cv_prog_CC 11682if test -n "$CC"; then 11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11684$as_echo "$CC" >&6; } 11685else 11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11687$as_echo "no" >&6; } 11688fi 11689 11690 11691fi 11692if test -z "$CC"; then 11693 if test -n "$ac_tool_prefix"; then 11694 for ac_prog in cl.exe 11695 do 11696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11697set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11699$as_echo_n "checking for $ac_word... " >&6; } 11700if ${ac_cv_prog_CC+:} false; then : 11701 $as_echo_n "(cached) " >&6 11702else 11703 if test -n "$CC"; then 11704 ac_cv_prog_CC="$CC" # Let the user override the test. 11705else 11706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11707for as_dir in $PATH 11708do 11709 IFS=$as_save_IFS 11710 test -z "$as_dir" && as_dir=. 11711 for ac_exec_ext in '' $ac_executable_extensions; do 11712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11713 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11715 break 2 11716 fi 11717done 11718 done 11719IFS=$as_save_IFS 11720 11721fi 11722fi 11723CC=$ac_cv_prog_CC 11724if test -n "$CC"; then 11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11726$as_echo "$CC" >&6; } 11727else 11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11729$as_echo "no" >&6; } 11730fi 11731 11732 11733 test -n "$CC" && break 11734 done 11735fi 11736if test -z "$CC"; then 11737 ac_ct_CC=$CC 11738 for ac_prog in cl.exe 11739do 11740 # Extract the first word of "$ac_prog", so it can be a program name with args. 11741set dummy $ac_prog; ac_word=$2 11742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11743$as_echo_n "checking for $ac_word... " >&6; } 11744if ${ac_cv_prog_ac_ct_CC+:} false; then : 11745 $as_echo_n "(cached) " >&6 11746else 11747 if test -n "$ac_ct_CC"; then 11748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11749else 11750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11751for as_dir in $PATH 11752do 11753 IFS=$as_save_IFS 11754 test -z "$as_dir" && as_dir=. 11755 for ac_exec_ext in '' $ac_executable_extensions; do 11756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11757 ac_cv_prog_ac_ct_CC="$ac_prog" 11758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11759 break 2 11760 fi 11761done 11762 done 11763IFS=$as_save_IFS 11764 11765fi 11766fi 11767ac_ct_CC=$ac_cv_prog_ac_ct_CC 11768if test -n "$ac_ct_CC"; then 11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11770$as_echo "$ac_ct_CC" >&6; } 11771else 11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11773$as_echo "no" >&6; } 11774fi 11775 11776 11777 test -n "$ac_ct_CC" && break 11778done 11779 11780 if test "x$ac_ct_CC" = x; then 11781 CC="" 11782 else 11783 case $cross_compiling:$ac_tool_warned in 11784yes:) 11785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11787ac_tool_warned=yes ;; 11788esac 11789 CC=$ac_ct_CC 11790 fi 11791fi 11792 11793fi 11794 11795 11796test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11798as_fn_error $? "no acceptable C compiler found in \$PATH 11799See \`config.log' for more details" "$LINENO" 5; } 11800 11801# Provide some information about the compiler. 11802$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 11803set X $ac_compile 11804ac_compiler=$2 11805for ac_option in --version -v -V -qversion; do 11806 { { ac_try="$ac_compiler $ac_option >&5" 11807case "(($ac_try" in 11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11809 *) ac_try_echo=$ac_try;; 11810esac 11811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11812$as_echo "$ac_try_echo"; } >&5 11813 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11814 ac_status=$? 11815 if test -s conftest.err; then 11816 sed '10a\ 11817... rest of stderr output deleted ... 11818 10q' conftest.err >conftest.er1 11819 cat conftest.er1 >&5 11820 fi 11821 rm -f conftest.er1 conftest.err 11822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11823 test $ac_status = 0; } 11824done 11825 11826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 11827$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11828if ${ac_cv_c_compiler_gnu+:} false; then : 11829 $as_echo_n "(cached) " >&6 11830else 11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11832/* end confdefs.h. */ 11833 11834int 11835main () 11836{ 11837#ifndef __GNUC__ 11838 choke me 11839#endif 11840 11841 ; 11842 return 0; 11843} 11844_ACEOF 11845if ac_fn_c_try_compile "$LINENO"; then : 11846 ac_compiler_gnu=yes 11847else 11848 ac_compiler_gnu=no 11849fi 11850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11851ac_cv_c_compiler_gnu=$ac_compiler_gnu 11852 11853fi 11854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 11855$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11856if test $ac_compiler_gnu = yes; then 11857 GCC=yes 11858else 11859 GCC= 11860fi 11861ac_test_CFLAGS=${CFLAGS+set} 11862ac_save_CFLAGS=$CFLAGS 11863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 11864$as_echo_n "checking whether $CC accepts -g... " >&6; } 11865if ${ac_cv_prog_cc_g+:} false; then : 11866 $as_echo_n "(cached) " >&6 11867else 11868 ac_save_c_werror_flag=$ac_c_werror_flag 11869 ac_c_werror_flag=yes 11870 ac_cv_prog_cc_g=no 11871 CFLAGS="-g" 11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11873/* end confdefs.h. */ 11874 11875int 11876main () 11877{ 11878 11879 ; 11880 return 0; 11881} 11882_ACEOF 11883if ac_fn_c_try_compile "$LINENO"; then : 11884 ac_cv_prog_cc_g=yes 11885else 11886 CFLAGS="" 11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11888/* end confdefs.h. */ 11889 11890int 11891main () 11892{ 11893 11894 ; 11895 return 0; 11896} 11897_ACEOF 11898if ac_fn_c_try_compile "$LINENO"; then : 11899 11900else 11901 ac_c_werror_flag=$ac_save_c_werror_flag 11902 CFLAGS="-g" 11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11904/* end confdefs.h. */ 11905 11906int 11907main () 11908{ 11909 11910 ; 11911 return 0; 11912} 11913_ACEOF 11914if ac_fn_c_try_compile "$LINENO"; then : 11915 ac_cv_prog_cc_g=yes 11916fi 11917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11918fi 11919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11920fi 11921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11922 ac_c_werror_flag=$ac_save_c_werror_flag 11923fi 11924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 11925$as_echo "$ac_cv_prog_cc_g" >&6; } 11926if test "$ac_test_CFLAGS" = set; then 11927 CFLAGS=$ac_save_CFLAGS 11928elif test $ac_cv_prog_cc_g = yes; then 11929 if test "$GCC" = yes; then 11930 CFLAGS="-g -O2" 11931 else 11932 CFLAGS="-g" 11933 fi 11934else 11935 if test "$GCC" = yes; then 11936 CFLAGS="-O2" 11937 else 11938 CFLAGS= 11939 fi 11940fi 11941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 11942$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11943if ${ac_cv_prog_cc_c89+:} false; then : 11944 $as_echo_n "(cached) " >&6 11945else 11946 ac_cv_prog_cc_c89=no 11947ac_save_CC=$CC 11948cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11949/* end confdefs.h. */ 11950#include <stdarg.h> 11951#include <stdio.h> 11952struct stat; 11953/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11954struct buf { int x; }; 11955FILE * (*rcsopen) (struct buf *, struct stat *, int); 11956static char *e (p, i) 11957 char **p; 11958 int i; 11959{ 11960 return p[i]; 11961} 11962static char *f (char * (*g) (char **, int), char **p, ...) 11963{ 11964 char *s; 11965 va_list v; 11966 va_start (v,p); 11967 s = g (p, va_arg (v,int)); 11968 va_end (v); 11969 return s; 11970} 11971 11972/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11973 function prototypes and stuff, but not '\xHH' hex character constants. 11974 These don't provoke an error unfortunately, instead are silently treated 11975 as 'x'. The following induces an error, until -std is added to get 11976 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11977 array size at least. It's necessary to write '\x00'==0 to get something 11978 that's true only with -std. */ 11979int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11980 11981/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11982 inside strings and character constants. */ 11983#define FOO(x) 'x' 11984int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11985 11986int test (int i, double x); 11987struct s1 {int (*f) (int a);}; 11988struct s2 {int (*f) (double a);}; 11989int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11990int argc; 11991char **argv; 11992int 11993main () 11994{ 11995return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11996 ; 11997 return 0; 11998} 11999_ACEOF 12000for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12001 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12002do 12003 CC="$ac_save_CC $ac_arg" 12004 if ac_fn_c_try_compile "$LINENO"; then : 12005 ac_cv_prog_cc_c89=$ac_arg 12006fi 12007rm -f core conftest.err conftest.$ac_objext 12008 test "x$ac_cv_prog_cc_c89" != "xno" && break 12009done 12010rm -f conftest.$ac_ext 12011CC=$ac_save_CC 12012 12013fi 12014# AC_CACHE_VAL 12015case "x$ac_cv_prog_cc_c89" in 12016 x) 12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12018$as_echo "none needed" >&6; } ;; 12019 xno) 12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12021$as_echo "unsupported" >&6; } ;; 12022 *) 12023 CC="$CC $ac_cv_prog_cc_c89" 12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12025$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12026esac 12027if test "x$ac_cv_prog_cc_c89" != xno; then : 12028 12029fi 12030 12031ac_ext=c 12032ac_cpp='$CPP $CPPFLAGS' 12033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12035ac_compiler_gnu=$ac_cv_c_compiler_gnu 12036 12037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 12038$as_echo_n "checking for library containing strerror... " >&6; } 12039if ${ac_cv_search_strerror+:} false; then : 12040 $as_echo_n "(cached) " >&6 12041else 12042 ac_func_search_save_LIBS=$LIBS 12043cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12044/* end confdefs.h. */ 12045 12046/* Override any GCC internal prototype to avoid an error. 12047 Use char because int might match the return type of a GCC 12048 builtin and then its argument prototype would still apply. */ 12049#ifdef __cplusplus 12050extern "C" 12051#endif 12052char strerror (); 12053int 12054main () 12055{ 12056return strerror (); 12057 ; 12058 return 0; 12059} 12060_ACEOF 12061for ac_lib in '' cposix; do 12062 if test -z "$ac_lib"; then 12063 ac_res="none required" 12064 else 12065 ac_res=-l$ac_lib 12066 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12067 fi 12068 if ac_fn_c_try_link "$LINENO"; then : 12069 ac_cv_search_strerror=$ac_res 12070fi 12071rm -f core conftest.err conftest.$ac_objext \ 12072 conftest$ac_exeext 12073 if ${ac_cv_search_strerror+:} false; then : 12074 break 12075fi 12076done 12077if ${ac_cv_search_strerror+:} false; then : 12078 12079else 12080 ac_cv_search_strerror=no 12081fi 12082rm conftest.$ac_ext 12083LIBS=$ac_func_search_save_LIBS 12084fi 12085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 12086$as_echo "$ac_cv_search_strerror" >&6; } 12087ac_res=$ac_cv_search_strerror 12088if test "$ac_res" != no; then : 12089 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12090 12091fi 12092 12093ac_ext=c 12094ac_cpp='$CPP $CPPFLAGS' 12095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12097ac_compiler_gnu=$ac_cv_c_compiler_gnu 12098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 12099$as_echo_n "checking how to run the C preprocessor... " >&6; } 12100# On Suns, sometimes $CPP names a directory. 12101if test -n "$CPP" && test -d "$CPP"; then 12102 CPP= 12103fi 12104if test -z "$CPP"; then 12105 if ${ac_cv_prog_CPP+:} false; then : 12106 $as_echo_n "(cached) " >&6 12107else 12108 # Double quotes because CPP needs to be expanded 12109 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 12110 do 12111 ac_preproc_ok=false 12112for ac_c_preproc_warn_flag in '' yes 12113do 12114 # Use a header file that comes with gcc, so configuring glibc 12115 # with a fresh cross-compiler works. 12116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12117 # <limits.h> exists even on freestanding compilers. 12118 # On the NeXT, cc -E runs the code through the compiler's parser, 12119 # not just through cpp. "Syntax error" is here to catch this case. 12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12121/* end confdefs.h. */ 12122#ifdef __STDC__ 12123# include <limits.h> 12124#else 12125# include <assert.h> 12126#endif 12127 Syntax error 12128_ACEOF 12129if ac_fn_c_try_cpp "$LINENO"; then : 12130 12131else 12132 # Broken: fails on valid input. 12133continue 12134fi 12135rm -f conftest.err conftest.i conftest.$ac_ext 12136 12137 # OK, works on sane cases. Now check whether nonexistent headers 12138 # can be detected and how. 12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12140/* end confdefs.h. */ 12141#include <ac_nonexistent.h> 12142_ACEOF 12143if ac_fn_c_try_cpp "$LINENO"; then : 12144 # Broken: success on invalid input. 12145continue 12146else 12147 # Passes both tests. 12148ac_preproc_ok=: 12149break 12150fi 12151rm -f conftest.err conftest.i conftest.$ac_ext 12152 12153done 12154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12155rm -f conftest.i conftest.err conftest.$ac_ext 12156if $ac_preproc_ok; then : 12157 break 12158fi 12159 12160 done 12161 ac_cv_prog_CPP=$CPP 12162 12163fi 12164 CPP=$ac_cv_prog_CPP 12165else 12166 ac_cv_prog_CPP=$CPP 12167fi 12168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 12169$as_echo "$CPP" >&6; } 12170ac_preproc_ok=false 12171for ac_c_preproc_warn_flag in '' yes 12172do 12173 # Use a header file that comes with gcc, so configuring glibc 12174 # with a fresh cross-compiler works. 12175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12176 # <limits.h> exists even on freestanding compilers. 12177 # On the NeXT, cc -E runs the code through the compiler's parser, 12178 # not just through cpp. "Syntax error" is here to catch this case. 12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12180/* end confdefs.h. */ 12181#ifdef __STDC__ 12182# include <limits.h> 12183#else 12184# include <assert.h> 12185#endif 12186 Syntax error 12187_ACEOF 12188if ac_fn_c_try_cpp "$LINENO"; then : 12189 12190else 12191 # Broken: fails on valid input. 12192continue 12193fi 12194rm -f conftest.err conftest.i conftest.$ac_ext 12195 12196 # OK, works on sane cases. Now check whether nonexistent headers 12197 # can be detected and how. 12198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12199/* end confdefs.h. */ 12200#include <ac_nonexistent.h> 12201_ACEOF 12202if ac_fn_c_try_cpp "$LINENO"; then : 12203 # Broken: success on invalid input. 12204continue 12205else 12206 # Passes both tests. 12207ac_preproc_ok=: 12208break 12209fi 12210rm -f conftest.err conftest.i conftest.$ac_ext 12211 12212done 12213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12214rm -f conftest.i conftest.err conftest.$ac_ext 12215if $ac_preproc_ok; then : 12216 12217else 12218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12220as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 12221See \`config.log' for more details" "$LINENO" 5; } 12222fi 12223 12224ac_ext=c 12225ac_cpp='$CPP $CPPFLAGS' 12226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12228ac_compiler_gnu=$ac_cv_c_compiler_gnu 12229 12230# Find a good install program. We prefer a C program (faster), 12231# so one script is as good as another. But avoid the broken or 12232# incompatible versions: 12233# SysV /etc/install, /usr/sbin/install 12234# SunOS /usr/etc/install 12235# IRIX /sbin/install 12236# AIX /bin/install 12237# AmigaOS /C/install, which installs bootblocks on floppy discs 12238# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 12239# AFS /usr/afsws/bin/install, which mishandles nonexistent args 12240# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 12241# OS/2's system install, which has a completely different semantic 12242# ./install, which can be erroneously created by make from ./install.sh. 12243# Reject install programs that cannot install multiple files. 12244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 12245$as_echo_n "checking for a BSD-compatible install... " >&6; } 12246if test -z "$INSTALL"; then 12247if ${ac_cv_path_install+:} false; then : 12248 $as_echo_n "(cached) " >&6 12249else 12250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12251for as_dir in $PATH 12252do 12253 IFS=$as_save_IFS 12254 test -z "$as_dir" && as_dir=. 12255 # Account for people who put trailing slashes in PATH elements. 12256case $as_dir/ in #(( 12257 ./ | .// | /[cC]/* | \ 12258 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 12259 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 12260 /usr/ucb/* ) ;; 12261 *) 12262 # OSF1 and SCO ODT 3.0 have their own names for install. 12263 # Don't use installbsd from OSF since it installs stuff as root 12264 # by default. 12265 for ac_prog in ginstall scoinst install; do 12266 for ac_exec_ext in '' $ac_executable_extensions; do 12267 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 12268 if test $ac_prog = install && 12269 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 12270 # AIX install. It has an incompatible calling convention. 12271 : 12272 elif test $ac_prog = install && 12273 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 12274 # program-specific install script used by HP pwplus--don't use. 12275 : 12276 else 12277 rm -rf conftest.one conftest.two conftest.dir 12278 echo one > conftest.one 12279 echo two > conftest.two 12280 mkdir conftest.dir 12281 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 12282 test -s conftest.one && test -s conftest.two && 12283 test -s conftest.dir/conftest.one && 12284 test -s conftest.dir/conftest.two 12285 then 12286 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 12287 break 3 12288 fi 12289 fi 12290 fi 12291 done 12292 done 12293 ;; 12294esac 12295 12296 done 12297IFS=$as_save_IFS 12298 12299rm -rf conftest.one conftest.two conftest.dir 12300 12301fi 12302 if test "${ac_cv_path_install+set}" = set; then 12303 INSTALL=$ac_cv_path_install 12304 else 12305 # As a last resort, use the slow shell script. Don't cache a 12306 # value for INSTALL within a source directory, because that will 12307 # break other packages using the cache if that directory is 12308 # removed, or if the value is a relative name. 12309 INSTALL=$ac_install_sh 12310 fi 12311fi 12312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 12313$as_echo "$INSTALL" >&6; } 12314 12315# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 12316# It thinks the first close brace ends the variable substitution. 12317test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 12318 12319test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 12320 12321test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 12322 12323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12324$as_echo_n "checking whether ln -s works... " >&6; } 12325LN_S=$as_ln_s 12326if test "$LN_S" = "ln -s"; then 12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12328$as_echo "yes" >&6; } 12329else 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12331$as_echo "no, using $LN_S" >&6; } 12332fi 12333 12334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 12335$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 12336set x ${MAKE-make} 12337ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 12338if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 12339 $as_echo_n "(cached) " >&6 12340else 12341 cat >conftest.make <<\_ACEOF 12342SHELL = /bin/sh 12343all: 12344 @echo '@@@%%%=$(MAKE)=@@@%%%' 12345_ACEOF 12346# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 12347case `${MAKE-make} -f conftest.make 2>/dev/null` in 12348 *@@@%%%=?*=@@@%%%*) 12349 eval ac_cv_prog_make_${ac_make}_set=yes;; 12350 *) 12351 eval ac_cv_prog_make_${ac_make}_set=no;; 12352esac 12353rm -f conftest.make 12354fi 12355if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12357$as_echo "yes" >&6; } 12358 SET_MAKE= 12359else 12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12361$as_echo "no" >&6; } 12362 SET_MAKE="MAKE=${MAKE-make}" 12363fi 12364 12365if test $ac_cv_c_compiler_gnu = yes; then 12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 12367$as_echo_n "checking whether $CC needs -traditional... " >&6; } 12368if ${ac_cv_prog_gcc_traditional+:} false; then : 12369 $as_echo_n "(cached) " >&6 12370else 12371 ac_pattern="Autoconf.*'x'" 12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12373/* end confdefs.h. */ 12374#include <sgtty.h> 12375Autoconf TIOCGETP 12376_ACEOF 12377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12378 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 12379 ac_cv_prog_gcc_traditional=yes 12380else 12381 ac_cv_prog_gcc_traditional=no 12382fi 12383rm -f conftest* 12384 12385 12386 if test $ac_cv_prog_gcc_traditional = no; then 12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12388/* end confdefs.h. */ 12389#include <termio.h> 12390Autoconf TCGETA 12391_ACEOF 12392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12393 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 12394 ac_cv_prog_gcc_traditional=yes 12395fi 12396rm -f conftest* 12397 12398 fi 12399fi 12400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 12401$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 12402 if test $ac_cv_prog_gcc_traditional = yes; then 12403 CC="$CC -traditional" 12404 fi 12405fi 12406 12407 12408# Check whether --enable-static was given. 12409if test "${enable_static+set}" = set; then : 12410 enableval=$enable_static; p=${PACKAGE-default} 12411 case $enableval in 12412 yes) enable_static=yes ;; 12413 no) enable_static=no ;; 12414 *) 12415 enable_static=no 12416 # Look at the argument we got. We use all the common list separators. 12417 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12418 for pkg in $enableval; do 12419 IFS=$lt_save_ifs 12420 if test "X$pkg" = "X$p"; then 12421 enable_static=yes 12422 fi 12423 done 12424 IFS=$lt_save_ifs 12425 ;; 12426 esac 12427else 12428 enable_static=no 12429fi 12430 12431 12432 12433 12434 12435 12436 12437 12438if test "${enable_shared}" != "yes"; then 12439 as_fn_error $? "Need shared libraries enabled" "$LINENO" 5 12440fi 12441 12442ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent" 12443if test "x$ac_cv_func_gethostent" = xyes; then : 12444 12445else 12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostent in -lnsl" >&5 12447$as_echo_n "checking for gethostent in -lnsl... " >&6; } 12448if ${ac_cv_lib_nsl_gethostent+:} false; then : 12449 $as_echo_n "(cached) " >&6 12450else 12451 ac_check_lib_save_LIBS=$LIBS 12452LIBS="-lnsl $LIBS" 12453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12454/* end confdefs.h. */ 12455 12456/* Override any GCC internal prototype to avoid an error. 12457 Use char because int might match the return type of a GCC 12458 builtin and then its argument prototype would still apply. */ 12459#ifdef __cplusplus 12460extern "C" 12461#endif 12462char gethostent (); 12463int 12464main () 12465{ 12466return gethostent (); 12467 ; 12468 return 0; 12469} 12470_ACEOF 12471if ac_fn_c_try_link "$LINENO"; then : 12472 ac_cv_lib_nsl_gethostent=yes 12473else 12474 ac_cv_lib_nsl_gethostent=no 12475fi 12476rm -f core conftest.err conftest.$ac_objext \ 12477 conftest$ac_exeext conftest.$ac_ext 12478LIBS=$ac_check_lib_save_LIBS 12479fi 12480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostent" >&5 12481$as_echo "$ac_cv_lib_nsl_gethostent" >&6; } 12482if test "x$ac_cv_lib_nsl_gethostent" = xyes; then : 12483 cat >>confdefs.h <<_ACEOF 12484#define HAVE_LIBNSL 1 12485_ACEOF 12486 12487 LIBS="-lnsl $LIBS" 12488 12489fi 12490 12491fi 12492 12493ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 12494if test "x$ac_cv_func_setsockopt" = xyes; then : 12495 12496else 12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 12498$as_echo_n "checking for setsockopt in -lsocket... " >&6; } 12499if ${ac_cv_lib_socket_setsockopt+:} false; then : 12500 $as_echo_n "(cached) " >&6 12501else 12502 ac_check_lib_save_LIBS=$LIBS 12503LIBS="-lsocket $LIBS" 12504cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12505/* end confdefs.h. */ 12506 12507/* Override any GCC internal prototype to avoid an error. 12508 Use char because int might match the return type of a GCC 12509 builtin and then its argument prototype would still apply. */ 12510#ifdef __cplusplus 12511extern "C" 12512#endif 12513char setsockopt (); 12514int 12515main () 12516{ 12517return setsockopt (); 12518 ; 12519 return 0; 12520} 12521_ACEOF 12522if ac_fn_c_try_link "$LINENO"; then : 12523 ac_cv_lib_socket_setsockopt=yes 12524else 12525 ac_cv_lib_socket_setsockopt=no 12526fi 12527rm -f core conftest.err conftest.$ac_objext \ 12528 conftest$ac_exeext conftest.$ac_ext 12529LIBS=$ac_check_lib_save_LIBS 12530fi 12531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 12532$as_echo "$ac_cv_lib_socket_setsockopt" >&6; } 12533if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : 12534 cat >>confdefs.h <<_ACEOF 12535#define HAVE_LIBSOCKET 1 12536_ACEOF 12537 12538 LIBS="-lsocket $LIBS" 12539 12540fi 12541 12542fi 12543 12544ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12545if test "x$ac_cv_func_dlopen" = xyes; then : 12546 12547else 12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12549$as_echo_n "checking for dlopen in -ldl... " >&6; } 12550if ${ac_cv_lib_dl_dlopen+:} false; then : 12551 $as_echo_n "(cached) " >&6 12552else 12553 ac_check_lib_save_LIBS=$LIBS 12554LIBS="-ldl $LIBS" 12555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12556/* end confdefs.h. */ 12557 12558/* Override any GCC internal prototype to avoid an error. 12559 Use char because int might match the return type of a GCC 12560 builtin and then its argument prototype would still apply. */ 12561#ifdef __cplusplus 12562extern "C" 12563#endif 12564char dlopen (); 12565int 12566main () 12567{ 12568return dlopen (); 12569 ; 12570 return 0; 12571} 12572_ACEOF 12573if ac_fn_c_try_link "$LINENO"; then : 12574 ac_cv_lib_dl_dlopen=yes 12575else 12576 ac_cv_lib_dl_dlopen=no 12577fi 12578rm -f core conftest.err conftest.$ac_objext \ 12579 conftest$ac_exeext conftest.$ac_ext 12580LIBS=$ac_check_lib_save_LIBS 12581fi 12582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12583$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12584if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12585 cat >>confdefs.h <<_ACEOF 12586#define HAVE_LIBDL 1 12587_ACEOF 12588 12589 LIBS="-ldl $LIBS" 12590 12591fi 12592 12593fi 12594 12595 12596ac_header_dirent=no 12597for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 12598 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 12599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 12600$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 12601if eval \${$as_ac_Header+:} false; then : 12602 $as_echo_n "(cached) " >&6 12603else 12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12605/* end confdefs.h. */ 12606#include <sys/types.h> 12607#include <$ac_hdr> 12608 12609int 12610main () 12611{ 12612if ((DIR *) 0) 12613return 0; 12614 ; 12615 return 0; 12616} 12617_ACEOF 12618if ac_fn_c_try_compile "$LINENO"; then : 12619 eval "$as_ac_Header=yes" 12620else 12621 eval "$as_ac_Header=no" 12622fi 12623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12624fi 12625eval ac_res=\$$as_ac_Header 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12627$as_echo "$ac_res" >&6; } 12628if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12629 cat >>confdefs.h <<_ACEOF 12630#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 12631_ACEOF 12632 12633ac_header_dirent=$ac_hdr; break 12634fi 12635 12636done 12637# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 12638if test $ac_header_dirent = dirent.h; then 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 12640$as_echo_n "checking for library containing opendir... " >&6; } 12641if ${ac_cv_search_opendir+:} false; then : 12642 $as_echo_n "(cached) " >&6 12643else 12644 ac_func_search_save_LIBS=$LIBS 12645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12646/* end confdefs.h. */ 12647 12648/* Override any GCC internal prototype to avoid an error. 12649 Use char because int might match the return type of a GCC 12650 builtin and then its argument prototype would still apply. */ 12651#ifdef __cplusplus 12652extern "C" 12653#endif 12654char opendir (); 12655int 12656main () 12657{ 12658return opendir (); 12659 ; 12660 return 0; 12661} 12662_ACEOF 12663for ac_lib in '' dir; do 12664 if test -z "$ac_lib"; then 12665 ac_res="none required" 12666 else 12667 ac_res=-l$ac_lib 12668 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12669 fi 12670 if ac_fn_c_try_link "$LINENO"; then : 12671 ac_cv_search_opendir=$ac_res 12672fi 12673rm -f core conftest.err conftest.$ac_objext \ 12674 conftest$ac_exeext 12675 if ${ac_cv_search_opendir+:} false; then : 12676 break 12677fi 12678done 12679if ${ac_cv_search_opendir+:} false; then : 12680 12681else 12682 ac_cv_search_opendir=no 12683fi 12684rm conftest.$ac_ext 12685LIBS=$ac_func_search_save_LIBS 12686fi 12687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 12688$as_echo "$ac_cv_search_opendir" >&6; } 12689ac_res=$ac_cv_search_opendir 12690if test "$ac_res" != no; then : 12691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12692 12693fi 12694 12695else 12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 12697$as_echo_n "checking for library containing opendir... " >&6; } 12698if ${ac_cv_search_opendir+:} false; then : 12699 $as_echo_n "(cached) " >&6 12700else 12701 ac_func_search_save_LIBS=$LIBS 12702cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12703/* end confdefs.h. */ 12704 12705/* Override any GCC internal prototype to avoid an error. 12706 Use char because int might match the return type of a GCC 12707 builtin and then its argument prototype would still apply. */ 12708#ifdef __cplusplus 12709extern "C" 12710#endif 12711char opendir (); 12712int 12713main () 12714{ 12715return opendir (); 12716 ; 12717 return 0; 12718} 12719_ACEOF 12720for ac_lib in '' x; do 12721 if test -z "$ac_lib"; then 12722 ac_res="none required" 12723 else 12724 ac_res=-l$ac_lib 12725 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12726 fi 12727 if ac_fn_c_try_link "$LINENO"; then : 12728 ac_cv_search_opendir=$ac_res 12729fi 12730rm -f core conftest.err conftest.$ac_objext \ 12731 conftest$ac_exeext 12732 if ${ac_cv_search_opendir+:} false; then : 12733 break 12734fi 12735done 12736if ${ac_cv_search_opendir+:} false; then : 12737 12738else 12739 ac_cv_search_opendir=no 12740fi 12741rm conftest.$ac_ext 12742LIBS=$ac_func_search_save_LIBS 12743fi 12744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 12745$as_echo "$ac_cv_search_opendir" >&6; } 12746ac_res=$ac_cv_search_opendir 12747if test "$ac_res" != no; then : 12748 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12749 12750fi 12751 12752fi 12753 12754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12755$as_echo_n "checking for ANSI C header files... " >&6; } 12756if ${ac_cv_header_stdc+:} false; then : 12757 $as_echo_n "(cached) " >&6 12758else 12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12760/* end confdefs.h. */ 12761#include <stdlib.h> 12762#include <stdarg.h> 12763#include <string.h> 12764#include <float.h> 12765 12766int 12767main () 12768{ 12769 12770 ; 12771 return 0; 12772} 12773_ACEOF 12774if ac_fn_c_try_compile "$LINENO"; then : 12775 ac_cv_header_stdc=yes 12776else 12777 ac_cv_header_stdc=no 12778fi 12779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12780 12781if test $ac_cv_header_stdc = yes; then 12782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12784/* end confdefs.h. */ 12785#include <string.h> 12786 12787_ACEOF 12788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12789 $EGREP "memchr" >/dev/null 2>&1; then : 12790 12791else 12792 ac_cv_header_stdc=no 12793fi 12794rm -f conftest* 12795 12796fi 12797 12798if test $ac_cv_header_stdc = yes; then 12799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12801/* end confdefs.h. */ 12802#include <stdlib.h> 12803 12804_ACEOF 12805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12806 $EGREP "free" >/dev/null 2>&1; then : 12807 12808else 12809 ac_cv_header_stdc=no 12810fi 12811rm -f conftest* 12812 12813fi 12814 12815if test $ac_cv_header_stdc = yes; then 12816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12817 if test "$cross_compiling" = yes; then : 12818 : 12819else 12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12821/* end confdefs.h. */ 12822#include <ctype.h> 12823#include <stdlib.h> 12824#if ((' ' & 0x0FF) == 0x020) 12825# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12826# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12827#else 12828# define ISLOWER(c) \ 12829 (('a' <= (c) && (c) <= 'i') \ 12830 || ('j' <= (c) && (c) <= 'r') \ 12831 || ('s' <= (c) && (c) <= 'z')) 12832# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12833#endif 12834 12835#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12836int 12837main () 12838{ 12839 int i; 12840 for (i = 0; i < 256; i++) 12841 if (XOR (islower (i), ISLOWER (i)) 12842 || toupper (i) != TOUPPER (i)) 12843 return 2; 12844 return 0; 12845} 12846_ACEOF 12847if ac_fn_c_try_run "$LINENO"; then : 12848 12849else 12850 ac_cv_header_stdc=no 12851fi 12852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12853 conftest.$ac_objext conftest.beam conftest.$ac_ext 12854fi 12855 12856fi 12857fi 12858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12859$as_echo "$ac_cv_header_stdc" >&6; } 12860if test $ac_cv_header_stdc = yes; then 12861 12862$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12863 12864fi 12865 12866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 12867$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 12868if ${ac_cv_header_sys_wait_h+:} false; then : 12869 $as_echo_n "(cached) " >&6 12870else 12871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12872/* end confdefs.h. */ 12873#include <sys/types.h> 12874#include <sys/wait.h> 12875#ifndef WEXITSTATUS 12876# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 12877#endif 12878#ifndef WIFEXITED 12879# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 12880#endif 12881 12882int 12883main () 12884{ 12885 int s; 12886 wait (&s); 12887 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 12888 ; 12889 return 0; 12890} 12891_ACEOF 12892if ac_fn_c_try_compile "$LINENO"; then : 12893 ac_cv_header_sys_wait_h=yes 12894else 12895 ac_cv_header_sys_wait_h=no 12896fi 12897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12898fi 12899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 12900$as_echo "$ac_cv_header_sys_wait_h" >&6; } 12901if test $ac_cv_header_sys_wait_h = yes; then 12902 12903$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 12904 12905fi 12906 12907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 12908$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 12909if ${ac_cv_header_time+:} false; then : 12910 $as_echo_n "(cached) " >&6 12911else 12912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12913/* end confdefs.h. */ 12914#include <sys/types.h> 12915#include <sys/time.h> 12916#include <time.h> 12917 12918int 12919main () 12920{ 12921if ((struct tm *) 0) 12922return 0; 12923 ; 12924 return 0; 12925} 12926_ACEOF 12927if ac_fn_c_try_compile "$LINENO"; then : 12928 ac_cv_header_time=yes 12929else 12930 ac_cv_header_time=no 12931fi 12932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12933fi 12934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 12935$as_echo "$ac_cv_header_time" >&6; } 12936if test $ac_cv_header_time = yes; then 12937 12938$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 12939 12940fi 12941 12942for ac_header in fcntl.h sys/ioctl.h sys/time.h sys/utsname.h unistd.h siginfo.h memory.h stropts.h termios.h string.h limits.h argz.h locale.h nl_types.h malloc.h sys/param.h 12943do : 12944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12945ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12946if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12947 cat >>confdefs.h <<_ACEOF 12948#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12949_ACEOF 12950 12951fi 12952 12953done 12954 12955 12956 12957# Check whether --with-gmp was given. 12958if test "${with_gmp+set}" = set; then : 12959 withval=$with_gmp; 12960else 12961 with_gmp=maybe 12962fi 12963 12964 12965GMP_LIBS="-lm" 12966if test "$with_gmp" != "no"; then 12967 12968# Check whether --with-gmp-prefix was given. 12969if test "${with_gmp_prefix+set}" = set; then : 12970 withval=$with_gmp_prefix; if test "$withval" != "no"; then 12971 CPPFLAGS="${CPPFLAGS} -I$withval/include" 12972 LDFLAGS="${LDFLAGS} -L$withval/lib" 12973 fi 12974else 12975 if test -d /usr/include/gmp2; then 12976 CPPFLAGS="${CPPFLAGS} -I/usr/include/gmp2" 12977 fi 12978fi 12979 12980 12981 found_gmp=no 12982 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" 12983if test "x$ac_cv_header_gmp_h" = xyes; then : 12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpz_init in -lgmp" >&5 12985$as_echo_n "checking for mpz_init in -lgmp... " >&6; } 12986if ${ac_cv_lib_gmp_mpz_init+:} false; then : 12987 $as_echo_n "(cached) " >&6 12988else 12989 ac_check_lib_save_LIBS=$LIBS 12990LIBS="-lgmp $LIBS" 12991cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12992/* end confdefs.h. */ 12993 12994/* Override any GCC internal prototype to avoid an error. 12995 Use char because int might match the return type of a GCC 12996 builtin and then its argument prototype would still apply. */ 12997#ifdef __cplusplus 12998extern "C" 12999#endif 13000char mpz_init (); 13001int 13002main () 13003{ 13004return mpz_init (); 13005 ; 13006 return 0; 13007} 13008_ACEOF 13009if ac_fn_c_try_link "$LINENO"; then : 13010 ac_cv_lib_gmp_mpz_init=yes 13011else 13012 ac_cv_lib_gmp_mpz_init=no 13013fi 13014rm -f core conftest.err conftest.$ac_objext \ 13015 conftest$ac_exeext conftest.$ac_ext 13016LIBS=$ac_check_lib_save_LIBS 13017fi 13018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_mpz_init" >&5 13019$as_echo "$ac_cv_lib_gmp_mpz_init" >&6; } 13020if test "x$ac_cv_lib_gmp_mpz_init" = xyes; then : 13021 GMP_LIBS="-lgmp -lm"; found_gmp=yes 13022else 13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5 13024$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; } 13025if ${ac_cv_lib_gmp___gmpz_init+:} false; then : 13026 $as_echo_n "(cached) " >&6 13027else 13028 ac_check_lib_save_LIBS=$LIBS 13029LIBS="-lgmp $LIBS" 13030cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13031/* end confdefs.h. */ 13032 13033/* Override any GCC internal prototype to avoid an error. 13034 Use char because int might match the return type of a GCC 13035 builtin and then its argument prototype would still apply. */ 13036#ifdef __cplusplus 13037extern "C" 13038#endif 13039char __gmpz_init (); 13040int 13041main () 13042{ 13043return __gmpz_init (); 13044 ; 13045 return 0; 13046} 13047_ACEOF 13048if ac_fn_c_try_link "$LINENO"; then : 13049 ac_cv_lib_gmp___gmpz_init=yes 13050else 13051 ac_cv_lib_gmp___gmpz_init=no 13052fi 13053rm -f core conftest.err conftest.$ac_objext \ 13054 conftest$ac_exeext conftest.$ac_ext 13055LIBS=$ac_check_lib_save_LIBS 13056fi 13057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5 13058$as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; } 13059if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then : 13060 GMP_LIBS="-lgmp -lm"; found_gmp=yes 13061fi 13062 13063fi 13064 13065fi 13066 13067 13068 13069 if test "$found_gmp" = "yes"; then 13070 13071$as_echo "#define HAVE_GMP 1" >>confdefs.h 13072 13073 _libs="$LIBS" 13074 LIBS="$LIBS $GMP_LIBS" 13075 ac_fn_c_check_func "$LINENO" "__gmp_randinit" "ac_cv_func___gmp_randinit" 13076if test "x$ac_cv_func___gmp_randinit" = xyes; then : 13077 13078$as_echo "#define HAVE_GMP_RANDINIT 1" >>confdefs.h 13079 13080fi 13081 13082 LIBS="$_libs" 13083 elif test "$with_gmp" != "no"; then 13084 as_fn_error $? "cannot find GMP (--without-gmp for cut-down non-GMP build)" "$LINENO" 5 13085 fi 13086fi 13087 13088 13089 13090# Check whether --with-gdbm-prefix was given. 13091if test "${with_gdbm_prefix+set}" = set; then : 13092 withval=$with_gdbm_prefix; 13093 if test "$withval" != "no"; then 13094 CPPFLAGS="${CPPFLAGS} -I$withval/include" 13095 LDFLAGS="${LDFLAGS} -L$withval/lib" 13096 fi 13097 13098fi 13099 13100ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default" 13101if test "x$ac_cv_header_gdbm_h" = xyes; then : 13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 13103$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } 13104if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : 13105 $as_echo_n "(cached) " >&6 13106else 13107 ac_check_lib_save_LIBS=$LIBS 13108LIBS="-lgdbm $LIBS" 13109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13110/* end confdefs.h. */ 13111 13112/* Override any GCC internal prototype to avoid an error. 13113 Use char because int might match the return type of a GCC 13114 builtin and then its argument prototype would still apply. */ 13115#ifdef __cplusplus 13116extern "C" 13117#endif 13118char gdbm_open (); 13119int 13120main () 13121{ 13122return gdbm_open (); 13123 ; 13124 return 0; 13125} 13126_ACEOF 13127if ac_fn_c_try_link "$LINENO"; then : 13128 ac_cv_lib_gdbm_gdbm_open=yes 13129else 13130 ac_cv_lib_gdbm_gdbm_open=no 13131fi 13132rm -f core conftest.err conftest.$ac_objext \ 13133 conftest$ac_exeext conftest.$ac_ext 13134LIBS=$ac_check_lib_save_LIBS 13135fi 13136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 13137$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } 13138if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : 13139 GDBM_LIBS="-lgdbm" 13140else 13141 as_fn_error $? "Cannot find GDBM library" "$LINENO" 5 13142fi 13143 13144else 13145 as_fn_error $? "Cannot find GDBM header" "$LINENO" 5 13146fi 13147 13148 13149 13150 13151 13152# Check whether --with-readline was given. 13153if test "${with_readline+set}" = set; then : 13154 withval=$with_readline; 13155else 13156 with_readline=maybe 13157fi 13158 13159 13160if test "$with_readline" != "no"; then 13161 _cppflags=${CPPFLAGS} 13162 _ldflags=${LDFLAGS} 13163 13164 13165# Check whether --with-readline-prefix was given. 13166if test "${with_readline_prefix+set}" = set; then : 13167 withval=$with_readline_prefix; if test "$withval" != "no" -a "$withval" != "yes"; then 13168 CPPFLAGS="${CPPFLAGS} -I$withval/include" 13169 LDFLAGS="${LDFLAGS} -L$withval/lib" 13170 fi 13171fi 13172 13173 13174 unset tcap 13175 for termlib in ncurses curses termcap terminfo termlib; do 13176 as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh` 13177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -l${termlib}" >&5 13178$as_echo_n "checking for tputs in -l${termlib}... " >&6; } 13179if eval \${$as_ac_Lib+:} false; then : 13180 $as_echo_n "(cached) " >&6 13181else 13182 ac_check_lib_save_LIBS=$LIBS 13183LIBS="-l${termlib} $LIBS" 13184cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13185/* end confdefs.h. */ 13186 13187/* Override any GCC internal prototype to avoid an error. 13188 Use char because int might match the return type of a GCC 13189 builtin and then its argument prototype would still apply. */ 13190#ifdef __cplusplus 13191extern "C" 13192#endif 13193char tputs (); 13194int 13195main () 13196{ 13197return tputs (); 13198 ; 13199 return 0; 13200} 13201_ACEOF 13202if ac_fn_c_try_link "$LINENO"; then : 13203 eval "$as_ac_Lib=yes" 13204else 13205 eval "$as_ac_Lib=no" 13206fi 13207rm -f core conftest.err conftest.$ac_objext \ 13208 conftest$ac_exeext conftest.$ac_ext 13209LIBS=$ac_check_lib_save_LIBS 13210fi 13211eval ac_res=\$$as_ac_Lib 13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13213$as_echo "$ac_res" >&6; } 13214if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 13215 tcap="$tcap -l$termlib" 13216fi 13217 13218 case "$tcap" in 13219 *-l${termlib}*) 13220 break 13221 ;; 13222 esac 13223 done 13224 13225 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 13226if test "x$ac_cv_header_readline_readline_h" = xyes; then : 13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 13228$as_echo_n "checking for readline in -lreadline... " >&6; } 13229if ${ac_cv_lib_readline_readline+:} false; then : 13230 $as_echo_n "(cached) " >&6 13231else 13232 ac_check_lib_save_LIBS=$LIBS 13233LIBS="-lreadline $tcap $LIBS" 13234cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13235/* end confdefs.h. */ 13236 13237/* Override any GCC internal prototype to avoid an error. 13238 Use char because int might match the return type of a GCC 13239 builtin and then its argument prototype would still apply. */ 13240#ifdef __cplusplus 13241extern "C" 13242#endif 13243char readline (); 13244int 13245main () 13246{ 13247return readline (); 13248 ; 13249 return 0; 13250} 13251_ACEOF 13252if ac_fn_c_try_link "$LINENO"; then : 13253 ac_cv_lib_readline_readline=yes 13254else 13255 ac_cv_lib_readline_readline=no 13256fi 13257rm -f core conftest.err conftest.$ac_objext \ 13258 conftest$ac_exeext conftest.$ac_ext 13259LIBS=$ac_check_lib_save_LIBS 13260fi 13261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 13262$as_echo "$ac_cv_lib_readline_readline" >&6; } 13263if test "x$ac_cv_lib_readline_readline" = xyes; then : 13264 13265 READLINE_LIBS=" -L/lib${libsuff} -lreadline $tcap" 13266 13267$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 13268 found_readline=yes 13269fi 13270 13271fi 13272 13273 13274 13275 if test -z "$READLINE_LIBS"; then 13276 if test "$with_readline_prefix" = "yes"; then 13277 as_fn_error $? "cannot find readline libraries" "$LINENO" 5 13278 else 13279 CPPFLAGS=${_cppflags} 13280 LDFLAGS=${_ldflags} 13281 fi 13282 fi 13283fi 13284 13285 13286FFI_MIN_VER=3.0 13287 13288 13289# Check whether --with-ffi was given. 13290if test "${with_ffi+set}" = set; then : 13291 withval=$with_ffi; 13292else 13293 with_ffi=yes 13294fi 13295 13296 13297if test "$with_ffi" != "no"; then 13298 13299 13300 13301 13302 13303 13304 13305if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13306 if test -n "$ac_tool_prefix"; then 13307 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13308set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13310$as_echo_n "checking for $ac_word... " >&6; } 13311if ${ac_cv_path_PKG_CONFIG+:} false; then : 13312 $as_echo_n "(cached) " >&6 13313else 13314 case $PKG_CONFIG in 13315 [\\/]* | ?:[\\/]*) 13316 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13317 ;; 13318 *) 13319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13320for as_dir in $PATH 13321do 13322 IFS=$as_save_IFS 13323 test -z "$as_dir" && as_dir=. 13324 for ac_exec_ext in '' $ac_executable_extensions; do 13325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13326 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13328 break 2 13329 fi 13330done 13331 done 13332IFS=$as_save_IFS 13333 13334 ;; 13335esac 13336fi 13337PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13338if test -n "$PKG_CONFIG"; then 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13340$as_echo "$PKG_CONFIG" >&6; } 13341else 13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13343$as_echo "no" >&6; } 13344fi 13345 13346 13347fi 13348if test -z "$ac_cv_path_PKG_CONFIG"; then 13349 ac_pt_PKG_CONFIG=$PKG_CONFIG 13350 # Extract the first word of "pkg-config", so it can be a program name with args. 13351set dummy pkg-config; ac_word=$2 13352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13353$as_echo_n "checking for $ac_word... " >&6; } 13354if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13355 $as_echo_n "(cached) " >&6 13356else 13357 case $ac_pt_PKG_CONFIG in 13358 [\\/]* | ?:[\\/]*) 13359 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13360 ;; 13361 *) 13362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13363for as_dir in $PATH 13364do 13365 IFS=$as_save_IFS 13366 test -z "$as_dir" && as_dir=. 13367 for ac_exec_ext in '' $ac_executable_extensions; do 13368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13369 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13371 break 2 13372 fi 13373done 13374 done 13375IFS=$as_save_IFS 13376 13377 ;; 13378esac 13379fi 13380ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13381if test -n "$ac_pt_PKG_CONFIG"; then 13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13383$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13384else 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13386$as_echo "no" >&6; } 13387fi 13388 13389 if test "x$ac_pt_PKG_CONFIG" = x; then 13390 PKG_CONFIG="" 13391 else 13392 case $cross_compiling:$ac_tool_warned in 13393yes:) 13394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13396ac_tool_warned=yes ;; 13397esac 13398 PKG_CONFIG=$ac_pt_PKG_CONFIG 13399 fi 13400else 13401 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13402fi 13403 13404fi 13405if test -n "$PKG_CONFIG"; then 13406 _pkg_min_version=0.9.0 13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13408$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13409 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13411$as_echo "yes" >&6; } 13412 else 13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13414$as_echo "no" >&6; } 13415 PKG_CONFIG="" 13416 fi 13417fi 13418 13419pkg_failed=no 13420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 13421$as_echo_n "checking for LIBFFI... " >&6; } 13422 13423if test -n "$LIBFFI_CFLAGS"; then 13424 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 13425 elif test -n "$PKG_CONFIG"; then 13426 if test -n "$PKG_CONFIG" && \ 13427 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= \$FFI_MIN_VER 13428 \""; } >&5 13429 ($PKG_CONFIG --exists --print-errors "libffi >= $FFI_MIN_VER 13430 ") 2>&5 13431 ac_status=$? 13432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13433 test $ac_status = 0; }; then 13434 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= $FFI_MIN_VER 13435 " 2>/dev/null` 13436 test "x$?" != "x0" && pkg_failed=yes 13437else 13438 pkg_failed=yes 13439fi 13440 else 13441 pkg_failed=untried 13442fi 13443if test -n "$LIBFFI_LIBS"; then 13444 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 13445 elif test -n "$PKG_CONFIG"; then 13446 if test -n "$PKG_CONFIG" && \ 13447 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= \$FFI_MIN_VER 13448 \""; } >&5 13449 ($PKG_CONFIG --exists --print-errors "libffi >= $FFI_MIN_VER 13450 ") 2>&5 13451 ac_status=$? 13452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13453 test $ac_status = 0; }; then 13454 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi >= $FFI_MIN_VER 13455 " 2>/dev/null` 13456 test "x$?" != "x0" && pkg_failed=yes 13457else 13458 pkg_failed=yes 13459fi 13460 else 13461 pkg_failed=untried 13462fi 13463 13464 13465 13466if test $pkg_failed = yes; then 13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13468$as_echo "no" >&6; } 13469 13470if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13471 _pkg_short_errors_supported=yes 13472else 13473 _pkg_short_errors_supported=no 13474fi 13475 if test $_pkg_short_errors_supported = yes; then 13476 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= $FFI_MIN_VER 13477 " 2>&1` 13478 else 13479 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= $FFI_MIN_VER 13480 " 2>&1` 13481 fi 13482 # Put the nasty error message in config.log where it belongs 13483 echo "$LIBFFI_PKG_ERRORS" >&5 13484 13485 13486 ac_fn_c_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 13487if test "x$ac_cv_header_ffi_h" = xyes; then : 13488 13489$as_echo "#define HAVE_FFI_H 1" >>confdefs.h 13490 13491else 13492 LIBFFI_FOUND=no 13493fi 13494 13495 13496 if test "x${LIBFFI_FOUND}" = xno; then 13497 ac_fn_c_check_header_mongrel "$LINENO" "ffi/ffi.h" "ac_cv_header_ffi_ffi_h" "$ac_includes_default" 13498if test "x$ac_cv_header_ffi_ffi_h" = xyes; then : 13499 13500$as_echo "#define HAVE_FFI_FFI_H 1" >>confdefs.h 13501 13502else 13503 LIBFFI_FOUND=no 13504fi 13505 13506 13507 fi 13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 13509$as_echo_n "checking for library containing ffi_call... " >&6; } 13510if ${ac_cv_search_ffi_call+:} false; then : 13511 $as_echo_n "(cached) " >&6 13512else 13513 ac_func_search_save_LIBS=$LIBS 13514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13515/* end confdefs.h. */ 13516 13517/* Override any GCC internal prototype to avoid an error. 13518 Use char because int might match the return type of a GCC 13519 builtin and then its argument prototype would still apply. */ 13520#ifdef __cplusplus 13521extern "C" 13522#endif 13523char ffi_call (); 13524int 13525main () 13526{ 13527return ffi_call (); 13528 ; 13529 return 0; 13530} 13531_ACEOF 13532for ac_lib in '' ffi; do 13533 if test -z "$ac_lib"; then 13534 ac_res="none required" 13535 else 13536 ac_res=-l$ac_lib 13537 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13538 fi 13539 if ac_fn_c_try_link "$LINENO"; then : 13540 ac_cv_search_ffi_call=$ac_res 13541fi 13542rm -f core conftest.err conftest.$ac_objext \ 13543 conftest$ac_exeext 13544 if ${ac_cv_search_ffi_call+:} false; then : 13545 break 13546fi 13547done 13548if ${ac_cv_search_ffi_call+:} false; then : 13549 13550else 13551 ac_cv_search_ffi_call=no 13552fi 13553rm conftest.$ac_ext 13554LIBS=$ac_func_search_save_LIBS 13555fi 13556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 13557$as_echo "$ac_cv_search_ffi_call" >&6; } 13558ac_res=$ac_cv_search_ffi_call 13559if test "$ac_res" != no; then : 13560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13561 LIBFFI_LIBS="-lffi" 13562else 13563 LIBFFI_FOUND=no 13564fi 13565 13566 if test "x${LIBFFI_FOUND}" = xno; then 13567 as_fn_error $? "cannot locate libffi" "$LINENO" 5 13568 fi 13569 13570elif test $pkg_failed = untried; then 13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13572$as_echo "no" >&6; } 13573 13574 ac_fn_c_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 13575if test "x$ac_cv_header_ffi_h" = xyes; then : 13576 13577$as_echo "#define HAVE_FFI_H 1" >>confdefs.h 13578 13579else 13580 LIBFFI_FOUND=no 13581fi 13582 13583 13584 if test "x${LIBFFI_FOUND}" = xno; then 13585 ac_fn_c_check_header_mongrel "$LINENO" "ffi/ffi.h" "ac_cv_header_ffi_ffi_h" "$ac_includes_default" 13586if test "x$ac_cv_header_ffi_ffi_h" = xyes; then : 13587 13588$as_echo "#define HAVE_FFI_FFI_H 1" >>confdefs.h 13589 13590else 13591 LIBFFI_FOUND=no 13592fi 13593 13594 13595 fi 13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 13597$as_echo_n "checking for library containing ffi_call... " >&6; } 13598if ${ac_cv_search_ffi_call+:} false; then : 13599 $as_echo_n "(cached) " >&6 13600else 13601 ac_func_search_save_LIBS=$LIBS 13602cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13603/* end confdefs.h. */ 13604 13605/* Override any GCC internal prototype to avoid an error. 13606 Use char because int might match the return type of a GCC 13607 builtin and then its argument prototype would still apply. */ 13608#ifdef __cplusplus 13609extern "C" 13610#endif 13611char ffi_call (); 13612int 13613main () 13614{ 13615return ffi_call (); 13616 ; 13617 return 0; 13618} 13619_ACEOF 13620for ac_lib in '' ffi; do 13621 if test -z "$ac_lib"; then 13622 ac_res="none required" 13623 else 13624 ac_res=-l$ac_lib 13625 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13626 fi 13627 if ac_fn_c_try_link "$LINENO"; then : 13628 ac_cv_search_ffi_call=$ac_res 13629fi 13630rm -f core conftest.err conftest.$ac_objext \ 13631 conftest$ac_exeext 13632 if ${ac_cv_search_ffi_call+:} false; then : 13633 break 13634fi 13635done 13636if ${ac_cv_search_ffi_call+:} false; then : 13637 13638else 13639 ac_cv_search_ffi_call=no 13640fi 13641rm conftest.$ac_ext 13642LIBS=$ac_func_search_save_LIBS 13643fi 13644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 13645$as_echo "$ac_cv_search_ffi_call" >&6; } 13646ac_res=$ac_cv_search_ffi_call 13647if test "$ac_res" != no; then : 13648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13649 LIBFFI_LIBS="-lffi" 13650else 13651 LIBFFI_FOUND=no 13652fi 13653 13654 if test "x${LIBFFI_FOUND}" = xno; then 13655 as_fn_error $? "cannot locate libffi" "$LINENO" 5 13656 fi 13657 13658else 13659 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 13660 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13662$as_echo "yes" >&6; } 13663 found_ffi=yes 13664 13665fi 13666fi 13667 13668ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 13669if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13670 13671$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 13672 13673fi 13674 13675 13676ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 13677if test "x$ac_cv_header_dl_h" = xyes; then : 13678 13679$as_echo "#define HAVE_DL_H 1" >>confdefs.h 13680 13681fi 13682 13683 13684ac_fn_c_check_header_mongrel "$LINENO" "sys/dl.h" "ac_cv_header_sys_dl_h" "$ac_includes_default" 13685if test "x$ac_cv_header_sys_dl_h" = xyes; then : 13686 13687$as_echo "#define HAVE_SYS_DL_H 1" >>confdefs.h 13688 13689fi 13690 13691 13692dl_ok=no 13693ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13694if test "x$ac_cv_func_dlopen" = xyes; then : 13695 13696$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 13697 dl_ok=dl 13698else 13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13700$as_echo_n "checking for dlopen in -ldl... " >&6; } 13701if ${ac_cv_lib_dl_dlopen+:} false; then : 13702 $as_echo_n "(cached) " >&6 13703else 13704 ac_check_lib_save_LIBS=$LIBS 13705LIBS="-ldl $LIBS" 13706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13707/* end confdefs.h. */ 13708 13709/* Override any GCC internal prototype to avoid an error. 13710 Use char because int might match the return type of a GCC 13711 builtin and then its argument prototype would still apply. */ 13712#ifdef __cplusplus 13713extern "C" 13714#endif 13715char dlopen (); 13716int 13717main () 13718{ 13719return dlopen (); 13720 ; 13721 return 0; 13722} 13723_ACEOF 13724if ac_fn_c_try_link "$LINENO"; then : 13725 ac_cv_lib_dl_dlopen=yes 13726else 13727 ac_cv_lib_dl_dlopen=no 13728fi 13729rm -f core conftest.err conftest.$ac_objext \ 13730 conftest$ac_exeext conftest.$ac_ext 13731LIBS=$ac_check_lib_save_LIBS 13732fi 13733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13734$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13735if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13736 13737$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 13738 dl_ok=dl 13739fi 13740 13741fi 13742 13743ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13744if test "x$ac_cv_func_shl_load" = xyes; then : 13745 13746$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 13747 dl_ok=shl 13748else 13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13750$as_echo_n "checking for shl_load in -ldld... " >&6; } 13751if ${ac_cv_lib_dld_shl_load+:} false; then : 13752 $as_echo_n "(cached) " >&6 13753else 13754 ac_check_lib_save_LIBS=$LIBS 13755LIBS="-ldld $LIBS" 13756cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13757/* end confdefs.h. */ 13758 13759/* Override any GCC internal prototype to avoid an error. 13760 Use char because int might match the return type of a GCC 13761 builtin and then its argument prototype would still apply. */ 13762#ifdef __cplusplus 13763extern "C" 13764#endif 13765char shl_load (); 13766int 13767main () 13768{ 13769return shl_load (); 13770 ; 13771 return 0; 13772} 13773_ACEOF 13774if ac_fn_c_try_link "$LINENO"; then : 13775 ac_cv_lib_dld_shl_load=yes 13776else 13777 ac_cv_lib_dld_shl_load=no 13778fi 13779rm -f core conftest.err conftest.$ac_objext \ 13780 conftest$ac_exeext conftest.$ac_ext 13781LIBS=$ac_check_lib_save_LIBS 13782fi 13783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13784$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13785if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13786 13787$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 13788 dl_ok=shl 13789fi 13790 13791fi 13792 13793 13794if test $dl_ok = dl; then 13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preceding underscore in symbols" >&5 13796$as_echo_n "checking for preceding underscore in symbols... " >&6; } 13797 if test "$cross_compiling" = yes; then : 13798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13800as_fn_error $? "cannot run test program while cross compiling 13801See \`config.log' for more details" "$LINENO" 5; } 13802else 13803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13804/* end confdefs.h. */ 13805#ifdef HAVE_DLFCN_H 13806 # include <dlfcn.h> 13807 #endif 13808 int glib_underscore_test (void) { return 42; } 13809 int main() { 13810 void *f1 = (void*)0, *f2 = (void*)0, *handle; 13811 handle = dlopen ((void*)0, 0); 13812 if (handle) { 13813 f1 = dlsym (handle, "glib_underscore_test"); 13814 f2 = dlsym (handle, "_glib_underscore_test"); 13815 } return (!f2 || f1); 13816 } 13817_ACEOF 13818if ac_fn_c_try_run "$LINENO"; then : 13819 13820$as_echo "#define DLSYM_NEED_USCORE 1" >>confdefs.h 13821 13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13823$as_echo "yes" >&6; } 13824else 13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13826$as_echo "no" >&6; } 13827fi 13828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13829 conftest.$ac_objext conftest.beam conftest.$ac_ext 13830fi 13831 13832 13833 case ${host} in 13834 *-dec-osf5*) 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken RTLD_GLOBAL on Tru64" >&5 13836$as_echo_n "checking for broken RTLD_GLOBAL on Tru64... " >&6; } 13837 if /usr/sbin/sizer -v | grep -E -q -e 'UNIX [TVX]5\.0A?(-[[:digit:]]+)? '; then 13838 13839$as_echo "#define BROKEN_RTLD_GLOBAL 1" >>confdefs.h 13840 13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13842$as_echo "yes" >&6; } 13843 else 13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13845$as_echo "no" >&6; } 13846 fi 13847 ;; 13848 esac 13849fi 13850 13851if test $dl_ok != no; then 13852 13853$as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h 13854 13855else 13856 as_fn_error $? "cannot figure out how to do dynamic loading" "$LINENO" 5 13857fi 13858 13859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13860$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13861if ${ac_cv_c_const+:} false; then : 13862 $as_echo_n "(cached) " >&6 13863else 13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13865/* end confdefs.h. */ 13866 13867int 13868main () 13869{ 13870 13871#ifndef __cplusplus 13872 /* Ultrix mips cc rejects this sort of thing. */ 13873 typedef int charset[2]; 13874 const charset cs = { 0, 0 }; 13875 /* SunOS 4.1.1 cc rejects this. */ 13876 char const *const *pcpcc; 13877 char **ppc; 13878 /* NEC SVR4.0.2 mips cc rejects this. */ 13879 struct point {int x, y;}; 13880 static struct point const zero = {0,0}; 13881 /* AIX XL C 1.02.0.0 rejects this. 13882 It does not let you subtract one const X* pointer from another in 13883 an arm of an if-expression whose if-part is not a constant 13884 expression */ 13885 const char *g = "string"; 13886 pcpcc = &g + (g ? g-g : 0); 13887 /* HPUX 7.0 cc rejects these. */ 13888 ++pcpcc; 13889 ppc = (char**) pcpcc; 13890 pcpcc = (char const *const *) ppc; 13891 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13892 char tx; 13893 char *t = &tx; 13894 char const *s = 0 ? (char *) 0 : (char const *) 0; 13895 13896 *t++ = 0; 13897 if (s) return 0; 13898 } 13899 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13900 int x[] = {25, 17}; 13901 const int *foo = &x[0]; 13902 ++foo; 13903 } 13904 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13905 typedef const int *iptr; 13906 iptr p = 0; 13907 ++p; 13908 } 13909 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13910 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13911 struct s { int j; const int *ap[3]; } bx; 13912 struct s *b = &bx; b->j = 5; 13913 } 13914 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13915 const int foo = 10; 13916 if (!foo) return 0; 13917 } 13918 return !cs[0] && !zero.x; 13919#endif 13920 13921 ; 13922 return 0; 13923} 13924_ACEOF 13925if ac_fn_c_try_compile "$LINENO"; then : 13926 ac_cv_c_const=yes 13927else 13928 ac_cv_c_const=no 13929fi 13930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13931fi 13932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13933$as_echo "$ac_cv_c_const" >&6; } 13934if test $ac_cv_c_const = no; then 13935 13936$as_echo "#define const /**/" >>confdefs.h 13937 13938fi 13939 13940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13941$as_echo_n "checking for inline... " >&6; } 13942if ${ac_cv_c_inline+:} false; then : 13943 $as_echo_n "(cached) " >&6 13944else 13945 ac_cv_c_inline=no 13946for ac_kw in inline __inline__ __inline; do 13947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13948/* end confdefs.h. */ 13949#ifndef __cplusplus 13950typedef int foo_t; 13951static $ac_kw foo_t static_foo () {return 0; } 13952$ac_kw foo_t foo () {return 0; } 13953#endif 13954 13955_ACEOF 13956if ac_fn_c_try_compile "$LINENO"; then : 13957 ac_cv_c_inline=$ac_kw 13958fi 13959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13960 test "$ac_cv_c_inline" != no && break 13961done 13962 13963fi 13964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13965$as_echo "$ac_cv_c_inline" >&6; } 13966 13967case $ac_cv_c_inline in 13968 inline | yes) ;; 13969 *) 13970 case $ac_cv_c_inline in 13971 no) ac_val=;; 13972 *) ac_val=$ac_cv_c_inline;; 13973 esac 13974 cat >>confdefs.h <<_ACEOF 13975#ifndef __cplusplus 13976#define inline $ac_val 13977#endif 13978_ACEOF 13979 ;; 13980esac 13981 13982ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 13983if test "x$ac_cv_type_off_t" = xyes; then : 13984 13985else 13986 13987cat >>confdefs.h <<_ACEOF 13988#define off_t long int 13989_ACEOF 13990 13991fi 13992 13993ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13994if test "x$ac_cv_type_pid_t" = xyes; then : 13995 13996else 13997 13998cat >>confdefs.h <<_ACEOF 13999#define pid_t int 14000_ACEOF 14001 14002fi 14003 14004ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14005if test "x$ac_cv_type_size_t" = xyes; then : 14006 14007else 14008 14009cat >>confdefs.h <<_ACEOF 14010#define size_t unsigned int 14011_ACEOF 14012 14013fi 14014 14015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 14016$as_echo_n "checking return type of signal handlers... " >&6; } 14017if ${ac_cv_type_signal+:} false; then : 14018 $as_echo_n "(cached) " >&6 14019else 14020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14021/* end confdefs.h. */ 14022#include <sys/types.h> 14023#include <signal.h> 14024 14025int 14026main () 14027{ 14028return *(signal (0, 0)) (0) == 1; 14029 ; 14030 return 0; 14031} 14032_ACEOF 14033if ac_fn_c_try_compile "$LINENO"; then : 14034 ac_cv_type_signal=int 14035else 14036 ac_cv_type_signal=void 14037fi 14038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14039fi 14040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 14041$as_echo "$ac_cv_type_signal" >&6; } 14042 14043cat >>confdefs.h <<_ACEOF 14044#define RETSIGTYPE $ac_cv_type_signal 14045_ACEOF 14046 14047 14048 14049# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 14050# for constant arguments. Useless! 14051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 14052$as_echo_n "checking for working alloca.h... " >&6; } 14053if ${ac_cv_working_alloca_h+:} false; then : 14054 $as_echo_n "(cached) " >&6 14055else 14056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14057/* end confdefs.h. */ 14058#include <alloca.h> 14059int 14060main () 14061{ 14062char *p = (char *) alloca (2 * sizeof (int)); 14063 if (p) return 0; 14064 ; 14065 return 0; 14066} 14067_ACEOF 14068if ac_fn_c_try_link "$LINENO"; then : 14069 ac_cv_working_alloca_h=yes 14070else 14071 ac_cv_working_alloca_h=no 14072fi 14073rm -f core conftest.err conftest.$ac_objext \ 14074 conftest$ac_exeext conftest.$ac_ext 14075fi 14076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 14077$as_echo "$ac_cv_working_alloca_h" >&6; } 14078if test $ac_cv_working_alloca_h = yes; then 14079 14080$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 14081 14082fi 14083 14084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 14085$as_echo_n "checking for alloca... " >&6; } 14086if ${ac_cv_func_alloca_works+:} false; then : 14087 $as_echo_n "(cached) " >&6 14088else 14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14090/* end confdefs.h. */ 14091#ifdef __GNUC__ 14092# define alloca __builtin_alloca 14093#else 14094# ifdef _MSC_VER 14095# include <malloc.h> 14096# define alloca _alloca 14097# else 14098# ifdef HAVE_ALLOCA_H 14099# include <alloca.h> 14100# else 14101# ifdef _AIX 14102 #pragma alloca 14103# else 14104# ifndef alloca /* predefined by HP cc +Olibcalls */ 14105void *alloca (size_t); 14106# endif 14107# endif 14108# endif 14109# endif 14110#endif 14111 14112int 14113main () 14114{ 14115char *p = (char *) alloca (1); 14116 if (p) return 0; 14117 ; 14118 return 0; 14119} 14120_ACEOF 14121if ac_fn_c_try_link "$LINENO"; then : 14122 ac_cv_func_alloca_works=yes 14123else 14124 ac_cv_func_alloca_works=no 14125fi 14126rm -f core conftest.err conftest.$ac_objext \ 14127 conftest$ac_exeext conftest.$ac_ext 14128fi 14129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 14130$as_echo "$ac_cv_func_alloca_works" >&6; } 14131 14132if test $ac_cv_func_alloca_works = yes; then 14133 14134$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 14135 14136else 14137 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 14138# that cause trouble. Some versions do not even contain alloca or 14139# contain a buggy version. If you still want to use their alloca, 14140# use ar to extract alloca.o from them instead of compiling alloca.c. 14141 14142ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 14143 14144$as_echo "#define C_ALLOCA 1" >>confdefs.h 14145 14146 14147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 14148$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 14149if ${ac_cv_os_cray+:} false; then : 14150 $as_echo_n "(cached) " >&6 14151else 14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14153/* end confdefs.h. */ 14154#if defined CRAY && ! defined CRAY2 14155webecray 14156#else 14157wenotbecray 14158#endif 14159 14160_ACEOF 14161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14162 $EGREP "webecray" >/dev/null 2>&1; then : 14163 ac_cv_os_cray=yes 14164else 14165 ac_cv_os_cray=no 14166fi 14167rm -f conftest* 14168 14169fi 14170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 14171$as_echo "$ac_cv_os_cray" >&6; } 14172if test $ac_cv_os_cray = yes; then 14173 for ac_func in _getb67 GETB67 getb67; do 14174 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14175ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14176if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14177 14178cat >>confdefs.h <<_ACEOF 14179#define CRAY_STACKSEG_END $ac_func 14180_ACEOF 14181 14182 break 14183fi 14184 14185 done 14186fi 14187 14188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 14189$as_echo_n "checking stack direction for C alloca... " >&6; } 14190if ${ac_cv_c_stack_direction+:} false; then : 14191 $as_echo_n "(cached) " >&6 14192else 14193 if test "$cross_compiling" = yes; then : 14194 ac_cv_c_stack_direction=0 14195else 14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14197/* end confdefs.h. */ 14198$ac_includes_default 14199int 14200find_stack_direction (int *addr, int depth) 14201{ 14202 int dir, dummy = 0; 14203 if (! addr) 14204 addr = &dummy; 14205 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 14206 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 14207 return dir + dummy; 14208} 14209 14210int 14211main (int argc, char **argv) 14212{ 14213 return find_stack_direction (0, argc + !argv + 20) < 0; 14214} 14215_ACEOF 14216if ac_fn_c_try_run "$LINENO"; then : 14217 ac_cv_c_stack_direction=1 14218else 14219 ac_cv_c_stack_direction=-1 14220fi 14221rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14222 conftest.$ac_objext conftest.beam conftest.$ac_ext 14223fi 14224 14225fi 14226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 14227$as_echo "$ac_cv_c_stack_direction" >&6; } 14228cat >>confdefs.h <<_ACEOF 14229#define STACK_DIRECTION $ac_cv_c_stack_direction 14230_ACEOF 14231 14232 14233fi 14234 14235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 14236$as_echo_n "checking for working memcmp... " >&6; } 14237if ${ac_cv_func_memcmp_working+:} false; then : 14238 $as_echo_n "(cached) " >&6 14239else 14240 if test "$cross_compiling" = yes; then : 14241 ac_cv_func_memcmp_working=no 14242else 14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14244/* end confdefs.h. */ 14245$ac_includes_default 14246int 14247main () 14248{ 14249 14250 /* Some versions of memcmp are not 8-bit clean. */ 14251 char c0 = '\100', c1 = '\200', c2 = '\201'; 14252 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 14253 return 1; 14254 14255 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 14256 or more and with at least one buffer not starting on a 4-byte boundary. 14257 William Lewis provided this test program. */ 14258 { 14259 char foo[21]; 14260 char bar[21]; 14261 int i; 14262 for (i = 0; i < 4; i++) 14263 { 14264 char *a = foo + i; 14265 char *b = bar + i; 14266 strcpy (a, "--------01111111"); 14267 strcpy (b, "--------10000000"); 14268 if (memcmp (a, b, 16) >= 0) 14269 return 1; 14270 } 14271 return 0; 14272 } 14273 14274 ; 14275 return 0; 14276} 14277_ACEOF 14278if ac_fn_c_try_run "$LINENO"; then : 14279 ac_cv_func_memcmp_working=yes 14280else 14281 ac_cv_func_memcmp_working=no 14282fi 14283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14284 conftest.$ac_objext conftest.beam conftest.$ac_ext 14285fi 14286 14287fi 14288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 14289$as_echo "$ac_cv_func_memcmp_working" >&6; } 14290test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 14291 *" memcmp.$ac_objext "* ) ;; 14292 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 14293 ;; 14294esac 14295 14296 14297 14298 14299 14300 for ac_header in $ac_header_list 14301do : 14302 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14303ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 14304" 14305if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14306 cat >>confdefs.h <<_ACEOF 14307#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14308_ACEOF 14309 14310fi 14311 14312done 14313 14314 14315 14316 14317 14318 14319 14320 14321for ac_func in getpagesize 14322do : 14323 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 14324if test "x$ac_cv_func_getpagesize" = xyes; then : 14325 cat >>confdefs.h <<_ACEOF 14326#define HAVE_GETPAGESIZE 1 14327_ACEOF 14328 14329fi 14330done 14331 14332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 14333$as_echo_n "checking for working mmap... " >&6; } 14334if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 14335 $as_echo_n "(cached) " >&6 14336else 14337 if test "$cross_compiling" = yes; then : 14338 ac_cv_func_mmap_fixed_mapped=no 14339else 14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14341/* end confdefs.h. */ 14342$ac_includes_default 14343/* malloc might have been renamed as rpl_malloc. */ 14344#undef malloc 14345 14346/* Thanks to Mike Haertel and Jim Avera for this test. 14347 Here is a matrix of mmap possibilities: 14348 mmap private not fixed 14349 mmap private fixed at somewhere currently unmapped 14350 mmap private fixed at somewhere already mapped 14351 mmap shared not fixed 14352 mmap shared fixed at somewhere currently unmapped 14353 mmap shared fixed at somewhere already mapped 14354 For private mappings, we should verify that changes cannot be read() 14355 back from the file, nor mmap's back from the file at a different 14356 address. (There have been systems where private was not correctly 14357 implemented like the infamous i386 svr4.0, and systems where the 14358 VM page cache was not coherent with the file system buffer cache 14359 like early versions of FreeBSD and possibly contemporary NetBSD.) 14360 For shared mappings, we should conversely verify that changes get 14361 propagated back to all the places they're supposed to be. 14362 14363 Grep wants private fixed already mapped. 14364 The main things grep needs to know about mmap are: 14365 * does it exist and is it safe to write into the mmap'd area 14366 * how to use it (BSD variants) */ 14367 14368#include <fcntl.h> 14369#include <sys/mman.h> 14370 14371#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 14372char *malloc (); 14373#endif 14374 14375/* This mess was copied from the GNU getpagesize.h. */ 14376#ifndef HAVE_GETPAGESIZE 14377# ifdef _SC_PAGESIZE 14378# define getpagesize() sysconf(_SC_PAGESIZE) 14379# else /* no _SC_PAGESIZE */ 14380# ifdef HAVE_SYS_PARAM_H 14381# include <sys/param.h> 14382# ifdef EXEC_PAGESIZE 14383# define getpagesize() EXEC_PAGESIZE 14384# else /* no EXEC_PAGESIZE */ 14385# ifdef NBPG 14386# define getpagesize() NBPG * CLSIZE 14387# ifndef CLSIZE 14388# define CLSIZE 1 14389# endif /* no CLSIZE */ 14390# else /* no NBPG */ 14391# ifdef NBPC 14392# define getpagesize() NBPC 14393# else /* no NBPC */ 14394# ifdef PAGESIZE 14395# define getpagesize() PAGESIZE 14396# endif /* PAGESIZE */ 14397# endif /* no NBPC */ 14398# endif /* no NBPG */ 14399# endif /* no EXEC_PAGESIZE */ 14400# else /* no HAVE_SYS_PARAM_H */ 14401# define getpagesize() 8192 /* punt totally */ 14402# endif /* no HAVE_SYS_PARAM_H */ 14403# endif /* no _SC_PAGESIZE */ 14404 14405#endif /* no HAVE_GETPAGESIZE */ 14406 14407int 14408main () 14409{ 14410 char *data, *data2, *data3; 14411 const char *cdata2; 14412 int i, pagesize; 14413 int fd, fd2; 14414 14415 pagesize = getpagesize (); 14416 14417 /* First, make a file with some known garbage in it. */ 14418 data = (char *) malloc (pagesize); 14419 if (!data) 14420 return 1; 14421 for (i = 0; i < pagesize; ++i) 14422 *(data + i) = rand (); 14423 umask (0); 14424 fd = creat ("conftest.mmap", 0600); 14425 if (fd < 0) 14426 return 2; 14427 if (write (fd, data, pagesize) != pagesize) 14428 return 3; 14429 close (fd); 14430 14431 /* Next, check that the tail of a page is zero-filled. File must have 14432 non-zero length, otherwise we risk SIGBUS for entire page. */ 14433 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 14434 if (fd2 < 0) 14435 return 4; 14436 cdata2 = ""; 14437 if (write (fd2, cdata2, 1) != 1) 14438 return 5; 14439 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 14440 if (data2 == MAP_FAILED) 14441 return 6; 14442 for (i = 0; i < pagesize; ++i) 14443 if (*(data2 + i)) 14444 return 7; 14445 close (fd2); 14446 if (munmap (data2, pagesize)) 14447 return 8; 14448 14449 /* Next, try to mmap the file at a fixed address which already has 14450 something else allocated at it. If we can, also make sure that 14451 we see the same garbage. */ 14452 fd = open ("conftest.mmap", O_RDWR); 14453 if (fd < 0) 14454 return 9; 14455 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 14456 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 14457 return 10; 14458 for (i = 0; i < pagesize; ++i) 14459 if (*(data + i) != *(data2 + i)) 14460 return 11; 14461 14462 /* Finally, make sure that changes to the mapped area do not 14463 percolate back to the file as seen by read(). (This is a bug on 14464 some variants of i386 svr4.0.) */ 14465 for (i = 0; i < pagesize; ++i) 14466 *(data2 + i) = *(data2 + i) + 1; 14467 data3 = (char *) malloc (pagesize); 14468 if (!data3) 14469 return 12; 14470 if (read (fd, data3, pagesize) != pagesize) 14471 return 13; 14472 for (i = 0; i < pagesize; ++i) 14473 if (*(data + i) != *(data3 + i)) 14474 return 14; 14475 close (fd); 14476 free (data); 14477 free (data3); 14478 return 0; 14479} 14480_ACEOF 14481if ac_fn_c_try_run "$LINENO"; then : 14482 ac_cv_func_mmap_fixed_mapped=yes 14483else 14484 ac_cv_func_mmap_fixed_mapped=no 14485fi 14486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14487 conftest.$ac_objext conftest.beam conftest.$ac_ext 14488fi 14489 14490fi 14491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 14492$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 14493if test $ac_cv_func_mmap_fixed_mapped = yes; then 14494 14495$as_echo "#define HAVE_MMAP 1" >>confdefs.h 14496 14497fi 14498rm -f conftest.mmap conftest.txt 14499 14500for ac_func in vprintf 14501do : 14502 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 14503if test "x$ac_cv_func_vprintf" = xyes; then : 14504 cat >>confdefs.h <<_ACEOF 14505#define HAVE_VPRINTF 1 14506_ACEOF 14507 14508ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 14509if test "x$ac_cv_func__doprnt" = xyes; then : 14510 14511$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 14512 14513fi 14514 14515fi 14516done 14517 14518 14519for ac_func in getcwd gethostname select socket strcspn strerror strstr stpcpy strtol psignal strsignal snprintf grantpt lrand48 getpagesize setitimer dladdr dlerror munmap putenv setenv setlocale strchr strcasecmp strncasecmp strdup __argz_count __argz_stringify __argz_next siginterrupt gettimeofday strtoll strtoq 14520do : 14521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14522ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14523if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14524 cat >>confdefs.h <<_ACEOF 14525#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14526_ACEOF 14527 14528fi 14529done 14530 14531ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" 14532if test "x$ac_cv_func_realpath" = xyes; then : 14533 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h 14534 14535else 14536 case " $LIBOBJS " in 14537 *" realpath.$ac_objext "* ) ;; 14538 *) LIBOBJS="$LIBOBJS realpath.$ac_objext" 14539 ;; 14540esac 14541 14542fi 14543 14544 14545 14546ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" 14547if test "x$ac_cv_func_crypt" = xyes; then : 14548 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h 14549 14550else 14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 14552$as_echo_n "checking for crypt in -lcrypt... " >&6; } 14553if ${ac_cv_lib_crypt_crypt+:} false; then : 14554 $as_echo_n "(cached) " >&6 14555else 14556 ac_check_lib_save_LIBS=$LIBS 14557LIBS="-lcrypt $LIBS" 14558cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14559/* end confdefs.h. */ 14560 14561/* Override any GCC internal prototype to avoid an error. 14562 Use char because int might match the return type of a GCC 14563 builtin and then its argument prototype would still apply. */ 14564#ifdef __cplusplus 14565extern "C" 14566#endif 14567char crypt (); 14568int 14569main () 14570{ 14571return crypt (); 14572 ; 14573 return 0; 14574} 14575_ACEOF 14576if ac_fn_c_try_link "$LINENO"; then : 14577 ac_cv_lib_crypt_crypt=yes 14578else 14579 ac_cv_lib_crypt_crypt=no 14580fi 14581rm -f core conftest.err conftest.$ac_objext \ 14582 conftest$ac_exeext conftest.$ac_ext 14583LIBS=$ac_check_lib_save_LIBS 14584fi 14585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 14586$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 14587if test "x$ac_cv_lib_crypt_crypt" = xyes; then : 14588 14589$as_echo "#define HAVE_CRYPT 1" >>confdefs.h 14590 14591 LIBS="$LIBS -lcrypt" 14592fi 14593 14594fi 14595 14596 14597 14598if test "x${GCC}" = "xyes"; then 14599 MAKEDEP='$(CC) -MM' 14600else 14601 case ${host} in 14602 *-dec-osf*) 14603 MAKEDEP='$(CC) -M' 14604 ;; 14605 *-sun-solaris*) 14606 MAKEDEP='/usr/ccs/lib/cpp -M' 14607 ;; 14608 *) 14609 MAKEDEP='true' 14610 ;; 14611 esac 14612fi 14613 14614 14615if test "x${GCC}" = "xyes" -a "x$CFLAGS" = "x-g -O2"; then 14616 CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wmissing-prototypes" 14617 case ${host} in 14618 *-sun-solaris*) 14619 CFLAGS="${CFLAGS} -Wno-implicit-int" 14620 ;; 14621 *-apple-darwin) 14622 CFLAGS="${CFLAGS} -no-cpp-precomp" 14623 ;; 14624 esac 14625fi 14626 14627 14628# Check whether --with-extra-cflags was given. 14629if test "${with_extra_cflags+set}" = set; then : 14630 withval=$with_extra_cflags; CFLAGS="${CFLAGS} $with_extra_cflags" 14631fi 14632 14633 14634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unistd.h declares environ" >&5 14635$as_echo_n "checking whether unistd.h declares environ... " >&6; } 14636if ${jade_cv_decl_environ+:} false; then : 14637 $as_echo_n "(cached) " >&6 14638else 14639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14640/* end confdefs.h. */ 14641#include <unistd.h> 14642int 14643main () 14644{ 14645char **foo = environ; 14646 ; 14647 return 0; 14648} 14649_ACEOF 14650if ac_fn_c_try_compile "$LINENO"; then : 14651 jade_cv_decl_environ=yes 14652else 14653 jade_cv_decl_environ=no 14654fi 14655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14656fi 14657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jade_cv_decl_environ" >&5 14658$as_echo "$jade_cv_decl_environ" >&6; } 14659if test ${jade_cv_decl_environ} = no; then 14660 14661$as_echo "#define ENVIRON_UNDECLARED 1" >>confdefs.h 14662 14663fi 14664 14665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/ptmx exists" >&5 14666$as_echo_n "checking whether /dev/ptmx exists... " >&6; } 14667if test -r /dev/ptmx; then 14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14669$as_echo "yes" >&6; } 14670 14671$as_echo "#define HAVE_PTYS 1" >>confdefs.h 14672 14673 14674$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h 14675 14676else 14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14678$as_echo "no" >&6; } 14679fi 14680 14681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/ptyXN devices exist" >&5 14682$as_echo_n "checking whether /dev/ptyXN devices exist... " >&6; } 14683if ${jade_cv_sys_dev_pty+:} false; then : 14684 $as_echo_n "(cached) " >&6 14685else 14686 jade_cv_sys_dev_pty=no 14687 for c in p q r s t u v w x y z a b c d e f g h i j k l m n o; do 14688 if test -r "/dev/pty${c}0"; then 14689 jade_cv_sys_dev_pty=${c} 14690 break 14691 fi 14692 done 14693fi 14694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jade_cv_sys_dev_pty" >&5 14695$as_echo "$jade_cv_sys_dev_pty" >&6; } 14696if test ${jade_cv_sys_dev_pty} != no; then 14697 14698$as_echo "#define HAVE_PTYS 1" >>confdefs.h 14699 14700 14701cat >>confdefs.h <<_ACEOF 14702#define FIRST_PTY_LETTER '${jade_cv_sys_dev_pty}' 14703_ACEOF 14704 14705fi 14706 14707aclocaldir=none 14708 14709# Check whether --with-aclocaldir was given. 14710if test "${with_aclocaldir+set}" = set; then : 14711 withval=$with_aclocaldir; aclocaldir=$withval 14712fi 14713 14714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for aclocal directory" >&5 14715$as_echo_n "checking for aclocal directory... " >&6; } 14716if test "$aclocaldir" = none; then 14717 aclocaldir="`aclocal --print-ac-dir 2>/dev/null`" 14718 if test "x${aclocaldir}" = "x"; then 14719 aclocaldir='${datadir}/aclocal' 14720 fi 14721fi 14722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${aclocaldir}" >&5 14723$as_echo "${aclocaldir}" >&6; } 14724 14725 14726# Check whether --enable-continuations was given. 14727if test "${enable_continuations+set}" = set; then : 14728 enableval=$enable_continuations; if test "$enableval" != "no"; then 14729$as_echo "#define WITH_CONTINUATIONS 1" >>confdefs.h 14730 fi 14731else 14732 14733$as_echo "#define WITH_CONTINUATIONS 1" >>confdefs.h 14734 14735fi 14736 14737 14738# Check whether --enable-dballoc was given. 14739if test "${enable_dballoc+set}" = set; then : 14740 enableval=$enable_dballoc; if test "$enableval" != "no"; then 14741$as_echo "#define DEBUG_SYS_ALLOC 1" >>confdefs.h 14742 fi 14743fi 14744 14745 14746# Check whether --enable-dbsyms was given. 14747if test "${enable_dbsyms+set}" = set; then : 14748 enableval=$enable_dbsyms; if test "$enableval" != "no"; then 14749$as_echo "#define DB_RESOLVE_SYMBOLS 1" >>confdefs.h 14750 fi 14751else 14752 14753$as_echo "#define DB_RESOLVE_SYMBOLS 1" >>confdefs.h 14754 14755fi 14756 14757 14758# Check whether --enable-gprof was given. 14759if test "${enable_gprof+set}" = set; then : 14760 enableval=$enable_gprof; CFLAGS="${CFLAGS} -pg"; LDFLAGS="${LDFLAGS} -pg" 14761fi 14762 14763 14764# Check whether --enable-full-name-terminator was given. 14765if test "${enable_full_name_terminator+set}" = set; then : 14766 enableval=$enable_full_name_terminator; if test "$enableval" != "no"; then 14767 enableval="'$enableval'" 14768 14769cat >>confdefs.h <<_ACEOF 14770#define FULL_NAME_TERMINATOR $enableval 14771_ACEOF 14772 14773 fi 14774fi 14775 14776 14777HAVE_UNIX=1 14778 14779$as_echo "#define rep_HAVE_UNIX 1" >>confdefs.h 14780 14781 14782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for data type to store Lisp values" >&5 14783$as_echo_n "checking for data type to store Lisp values... " >&6; } 14784 14785# Check whether --with-value-type was given. 14786if test "${with_value_type+set}" = set; then : 14787 withval=$with_value_type; 14788else 14789 with_value_type="undef" 14790fi 14791 14792if test "${with_value_type}" = "undef"; then 14793 if test "$cross_compiling" = yes; then : 14794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14796as_fn_error $? "cannot run test program while cross compiling 14797See \`config.log' for more details" "$LINENO" 5; } 14798else 14799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14800/* end confdefs.h. */ 14801main () { exit (!(sizeof (int) >= sizeof (void *)));} 14802_ACEOF 14803if ac_fn_c_try_run "$LINENO"; then : 14804 with_value_type=int 14805fi 14806rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14807 conftest.$ac_objext conftest.beam conftest.$ac_ext 14808fi 14809 14810fi 14811if test "${with_value_type}" = "undef"; then 14812 if test "$cross_compiling" = yes; then : 14813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14815as_fn_error $? "cannot run test program while cross compiling 14816See \`config.log' for more details" "$LINENO" 5; } 14817else 14818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14819/* end confdefs.h. */ 14820main () { exit (!(sizeof (long int) >= sizeof (void *)));} 14821_ACEOF 14822if ac_fn_c_try_run "$LINENO"; then : 14823 with_value_type="long int" 14824fi 14825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14826 conftest.$ac_objext conftest.beam conftest.$ac_ext 14827fi 14828 14829fi 14830if test "${with_value_type}" = "undef"; then 14831 if test "$cross_compiling" = yes; then : 14832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14834as_fn_error $? "cannot run test program while cross compiling 14835See \`config.log' for more details" "$LINENO" 5; } 14836else 14837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14838/* end confdefs.h. */ 14839main () { exit (!(sizeof (long long int) >= sizeof (void *)));} 14840_ACEOF 14841if ac_fn_c_try_run "$LINENO"; then : 14842 with_value_type="long long int" 14843fi 14844rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14845 conftest.$ac_objext conftest.beam conftest.$ac_ext 14846fi 14847 14848fi 14849if test "${with_value_type}" = "undef"; then 14850 as_fn_error $? "cannot find Lisp value type; set --with-value-type (see README)" "$LINENO" 5 14851fi 14852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_value_type}" >&5 14853$as_echo "${with_value_type}" >&6; } 14854 14855cat >>confdefs.h <<_ACEOF 14856#define rep_PTR_SIZED_INT ${with_value_type} 14857_ACEOF 14858 14859 14860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size of Lisp value type" >&5 14861$as_echo_n "checking for size of Lisp value type... " >&6; } 14862 14863# Check whether --with-value-sizeof was given. 14864if test "${with_value_sizeof+set}" = set; then : 14865 withval=$with_value_sizeof; 14866else 14867 with_value_sizeof="undef" 14868fi 14869 14870if test "${with_value_sizeof}" = "undef"; then 14871 if test "$cross_compiling" = yes; then : 14872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14874as_fn_error $? "cannot run test program while cross compiling 14875See \`config.log' for more details" "$LINENO" 5; } 14876else 14877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14878/* end confdefs.h. */ 14879#include <stdio.h> 14880 main () { 14881 FILE *f = fopen ("conftestval", "w"); 14882 if (!f) exit (1); 14883 fprintf (f, "%d\n", sizeof (${with_value_type})); 14884 exit (0); 14885 } 14886_ACEOF 14887if ac_fn_c_try_run "$LINENO"; then : 14888 with_value_sizeof=`cat conftestval`; rm -f conftestval 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: ${with_value_sizeof} bytes" >&5 14896$as_echo "${with_value_sizeof} bytes" >&6; } 14897 14898cat >>confdefs.h <<_ACEOF 14899#define rep_PTR_SIZED_INT_SIZEOF ${with_value_sizeof} 14900_ACEOF 14901 14902 14903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for value type constant suffix" >&5 14904$as_echo_n "checking for value type constant suffix... " >&6; } 14905case "${with_value_type}" in 14906 "long long int"|"long long") 14907 rep_value_suffix=LL 14908 ;; 14909 *) 14910 rep_value_suffix=L 14911 ;; 14912esac 14913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${rep_value_suffix}" >&5 14914$as_echo "${rep_value_suffix}" >&6; } 14915 14916cat >>confdefs.h <<_ACEOF 14917#define rep_PTR_SIZED_INT_SUFFIX ${rep_value_suffix} 14918_ACEOF 14919 14920 14921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for value type printf conversion" >&5 14922$as_echo_n "checking for value type printf conversion... " >&6; } 14923case "${with_value_type}" in 14924 "long long int"|"long long") 14925 rep_value_conv=ll 14926 ;; 14927 long|"long int") 14928 rep_value_conv=l 14929 ;; 14930 *) 14931 rep_value_conv= 14932 ;; 14933esac 14934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${rep_value_conv}" >&5 14935$as_echo "${rep_value_conv}" >&6; } 14936 14937cat >>confdefs.h <<_ACEOF 14938#define rep_PTR_SIZED_INT_CONV "${rep_value_conv}" 14939_ACEOF 14940 14941 14942# The cast to long int works around a bug in the HP C Compiler 14943# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14944# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14945# This bug is HP SR number 8606223364. 14946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 14947$as_echo_n "checking size of long... " >&6; } 14948if ${ac_cv_sizeof_long+:} false; then : 14949 $as_echo_n "(cached) " >&6 14950else 14951 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 14952 14953else 14954 if test "$ac_cv_type_long" = yes; then 14955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14957as_fn_error 77 "cannot compute sizeof (long) 14958See \`config.log' for more details" "$LINENO" 5; } 14959 else 14960 ac_cv_sizeof_long=0 14961 fi 14962fi 14963 14964fi 14965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 14966$as_echo "$ac_cv_sizeof_long" >&6; } 14967 14968 14969 14970cat >>confdefs.h <<_ACEOF 14971#define SIZEOF_LONG $ac_cv_sizeof_long 14972_ACEOF 14973 14974 14975# The cast to long int works around a bug in the HP C Compiler 14976# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14977# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14978# This bug is HP SR number 8606223364. 14979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 14980$as_echo_n "checking size of long long... " >&6; } 14981if ${ac_cv_sizeof_long_long+:} false; then : 14982 $as_echo_n "(cached) " >&6 14983else 14984 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 14985 14986else 14987 if test "$ac_cv_type_long_long" = yes; then 14988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14990as_fn_error 77 "cannot compute sizeof (long long) 14991See \`config.log' for more details" "$LINENO" 5; } 14992 else 14993 ac_cv_sizeof_long_long=0 14994 fi 14995fi 14996 14997fi 14998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 14999$as_echo "$ac_cv_sizeof_long_long" >&6; } 15000 15001 15002 15003cat >>confdefs.h <<_ACEOF 15004#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 15005_ACEOF 15006 15007 15008# The cast to long int works around a bug in the HP C Compiler 15009# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15010# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15011# This bug is HP SR number 8606223364. 15012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 15013$as_echo_n "checking size of void *... " >&6; } 15014if ${ac_cv_sizeof_void_p+:} false; then : 15015 $as_echo_n "(cached) " >&6 15016else 15017 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 15018 15019else 15020 if test "$ac_cv_type_void_p" = yes; then 15021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15023as_fn_error 77 "cannot compute sizeof (void *) 15024See \`config.log' for more details" "$LINENO" 5; } 15025 else 15026 ac_cv_sizeof_void_p=0 15027 fi 15028fi 15029 15030fi 15031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 15032$as_echo "$ac_cv_sizeof_void_p" >&6; } 15033 15034 15035 15036cat >>confdefs.h <<_ACEOF 15037#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 15038_ACEOF 15039 15040 15041 15042if test "x$ac_cv_sizeof_long_long" != "x0"; then 15043 15044$as_echo "#define rep_HAVE_LONG_LONG 1" >>confdefs.h 15045 15046fi 15047 15048 15049# Check whether --with-malloc-alignment was given. 15050if test "${with_malloc_alignment+set}" = set; then : 15051 withval=$with_malloc_alignment; 15052else 15053 with_malloc_alignment=${with_value_sizeof} 15054fi 15055 15056 15057cat >>confdefs.h <<_ACEOF 15058#define rep_MALLOC_ALIGNMENT ${with_malloc_alignment} 15059_ACEOF 15060 15061 15062if test "x${GCC}" = "xyes"; then 15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken alpha gcc" >&5 15064$as_echo_n "checking for broken alpha gcc... " >&6; } 15065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15066/* end confdefs.h. */ 15067 15068int 15069main () 15070{ 15071__builtin_return_address(1); 15072 ; 15073 return 0; 15074} 15075_ACEOF 15076if ac_fn_c_try_compile "$LINENO"; then : 15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15078$as_echo "no" >&6; } 15079else 15080 15081$as_echo "#define BROKEN_ALPHA_GCC 1" >>confdefs.h 15082 15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15084$as_echo "yes" >&6; } 15085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Backtrace support will not be compiled" >&5 15086$as_echo "$as_me: WARNING: Backtrace support will not be compiled" >&2;} 15087fi 15088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15089fi 15090 15091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack growth direction" >&5 15092$as_echo_n "checking for stack growth direction... " >&6; } 15093 15094# Check whether --with-stack-direction was given. 15095if test "${with_stack_direction+set}" = set; then : 15096 withval=$with_stack_direction; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_stack_direction}" >&5 15097$as_echo "${with_stack_direction}" >&6; } 15098else 15099 with_stack_direction=unknown 15100fi 15101 15102if test "${with_stack_direction}" = unknown; then 15103 case ${host_cpu} in 15104 sparc*|i?86*|powerpc*|x86_64*|arm*|aarch64*|s390*|mips*|alpha*|ia64*) 15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming downwards" >&5 15106$as_echo "assuming downwards" >&6; } 15107 with_stack_direction="-1" 15108 ;; 15109 hppa*|metag*) 15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming upwards" >&5 15111$as_echo "assuming upwards" >&6; } 15112 with_stack_direction="1" 15113 ;; 15114 esac 15115fi 15116if test "${with_stack_direction}" = unknown; then 15117 if test "$cross_compiling" = yes; then : 15118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15120as_fn_error $? "cannot run test program while cross compiling 15121See \`config.log' for more details" "$LINENO" 5; } 15122else 15123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15124/* end confdefs.h. */ 15125 int level = 1; 15126 void inner (char *foo) { char bar; 15127 if (level) { --level; inner (foo); } 15128 exit (!(foo >= &bar)); } 15129 void main () { char foo; inner (&foo); } 15130_ACEOF 15131if ac_fn_c_try_run "$LINENO"; then : 15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: downwards" >&5 15133$as_echo "downwards" >&6; } 15134 with_stack_direction=-1 15135else 15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: upwards" >&5 15137$as_echo "upwards" >&6; } 15138 with_stack_direction=+1 15139fi 15140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15141 conftest.$ac_objext conftest.beam conftest.$ac_ext 15142fi 15143 15144fi 15145if test "${with_stack_direction}" != unknown; then 15146 15147cat >>confdefs.h <<_ACEOF 15148#define STACK_DIRECTION ${with_stack_direction} 15149_ACEOF 15150 15151fi 15152 15153# Check whether --enable-paranoia was given. 15154if test "${enable_paranoia+set}" = set; then : 15155 enableval=$enable_paranoia; paranoia=$enableval 15156else 15157 paranoia="no" 15158fi 15159 15160 15161if test $paranoia = "yes"; then 15162 CFLAGS+=" -Wall -ansi -pedantic" 15163fi 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179cat >>confdefs.h <<_ACEOF 15180#define rep_VERSION "${version}" 15181_ACEOF 15182 15183 15184cat >>confdefs.h <<_ACEOF 15185#define rep_INTERFACE ${libcurrent} 15186_ACEOF 15187 15188 15189 15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 15191$as_echo_n "checking for LC_MESSAGES... " >&6; } 15192if ${gt_cv_val_LC_MESSAGES+:} false; then : 15193 $as_echo_n "(cached) " >&6 15194else 15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15196/* end confdefs.h. */ 15197#include <locale.h> 15198int 15199main () 15200{ 15201return LC_MESSAGES 15202 ; 15203 return 0; 15204} 15205_ACEOF 15206if ac_fn_c_try_link "$LINENO"; then : 15207 gt_cv_val_LC_MESSAGES=yes 15208else 15209 gt_cv_val_LC_MESSAGES=no 15210fi 15211rm -f core conftest.err conftest.$ac_objext \ 15212 conftest$ac_exeext conftest.$ac_ext 15213fi 15214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 15215$as_echo "$gt_cv_val_LC_MESSAGES" >&6; } 15216 if test $gt_cv_val_LC_MESSAGES = yes; then 15217 15218$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 15219 15220 fi 15221 15222VERSION="$version" 15223PACKAGE="librep" 15224DATADIRNAME="share" 15225MKINSTALLDIRS='${top_srcdir}/mkinstalldirs' 15226INTLOBJS="\$(GETTOBJS)" 15227GT_YES='#' 15228GT_NO='' 15229l=l 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241USE_INCLUDED_LIBINTL=yes 15242 15243ac_fn_c_check_func "$LINENO" "_nl_msg_cat_cntr" "ac_cv_func__nl_msg_cat_cntr" 15244if test "x$ac_cv_func__nl_msg_cat_cntr" = xyes; then : 15245 15246$as_echo "#define LIBC_GETTEXT 1" >>confdefs.h 15247 15248 for ac_header in libintl.h 15249do : 15250 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" 15251if test "x$ac_cv_header_libintl_h" = xyes; then : 15252 cat >>confdefs.h <<_ACEOF 15253#define HAVE_LIBINTL_H 1 15254_ACEOF 15255 15256fi 15257 15258done 15259 15260 USE_INCLUDED_LIBINTL=no 15261fi 15262 15263 15264ac_config_files="$ac_config_files ${output_files}" 15265 15266cat >confcache <<\_ACEOF 15267# This file is a shell script that caches the results of configure 15268# tests run on this system so they can be shared between configure 15269# scripts and configure runs, see configure's option --config-cache. 15270# It is not useful on other systems. If it contains results you don't 15271# want to keep, you may remove or edit it. 15272# 15273# config.status only pays attention to the cache file if you give it 15274# the --recheck option to rerun configure. 15275# 15276# `ac_cv_env_foo' variables (set or unset) will be overridden when 15277# loading this file, other *unset* `ac_cv_foo' will be assigned the 15278# following values. 15279 15280_ACEOF 15281 15282# The following way of writing the cache mishandles newlines in values, 15283# but we know of no workaround that is simple, portable, and efficient. 15284# So, we kill variables containing newlines. 15285# Ultrix sh set writes to stderr and can't be redirected directly, 15286# and sets the high bit in the cache file unless we assign to the vars. 15287( 15288 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15289 eval ac_val=\$$ac_var 15290 case $ac_val in #( 15291 *${as_nl}*) 15292 case $ac_var in #( 15293 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15294$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15295 esac 15296 case $ac_var in #( 15297 _ | IFS | as_nl) ;; #( 15298 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15299 *) { eval $ac_var=; unset $ac_var;} ;; 15300 esac ;; 15301 esac 15302 done 15303 15304 (set) 2>&1 | 15305 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15306 *${as_nl}ac_space=\ *) 15307 # `set' does not quote correctly, so add quotes: double-quote 15308 # substitution turns \\\\ into \\, and sed turns \\ into \. 15309 sed -n \ 15310 "s/'/'\\\\''/g; 15311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15312 ;; #( 15313 *) 15314 # `set' quotes correctly as required by POSIX, so do not add quotes. 15315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15316 ;; 15317 esac | 15318 sort 15319) | 15320 sed ' 15321 /^ac_cv_env_/b end 15322 t clear 15323 :clear 15324 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15325 t end 15326 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15327 :end' >>confcache 15328if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15329 if test -w "$cache_file"; then 15330 if test "x$cache_file" != "x/dev/null"; then 15331 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15332$as_echo "$as_me: updating cache $cache_file" >&6;} 15333 if test ! -f "$cache_file" || test -h "$cache_file"; then 15334 cat confcache >"$cache_file" 15335 else 15336 case $cache_file in #( 15337 */* | ?:*) 15338 mv -f confcache "$cache_file"$$ && 15339 mv -f "$cache_file"$$ "$cache_file" ;; #( 15340 *) 15341 mv -f confcache "$cache_file" ;; 15342 esac 15343 fi 15344 fi 15345 else 15346 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15347$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15348 fi 15349fi 15350rm -f confcache 15351 15352test "x$prefix" = xNONE && prefix=$ac_default_prefix 15353# Let make expand exec_prefix. 15354test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15355 15356DEFS=-DHAVE_CONFIG_H 15357 15358ac_libobjs= 15359ac_ltlibobjs= 15360U= 15361for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15362 # 1. Remove the extension, and $U if already installed. 15363 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15364 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15365 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15366 # will be set to the directory where LIBOBJS objects are built. 15367 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15368 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15369done 15370LIBOBJS=$ac_libobjs 15371 15372LTLIBOBJS=$ac_ltlibobjs 15373 15374 15375 15376: "${CONFIG_STATUS=./config.status}" 15377ac_write_fail=0 15378ac_clean_files_save=$ac_clean_files 15379ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15380{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15381$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15382as_write_fail=0 15383cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15384#! $SHELL 15385# Generated by $as_me. 15386# Run this file to recreate the current configuration. 15387# Compiler output produced by configure, useful for debugging 15388# configure, is in config.log if it exists. 15389 15390debug=false 15391ac_cs_recheck=false 15392ac_cs_silent=false 15393 15394SHELL=\${CONFIG_SHELL-$SHELL} 15395export SHELL 15396_ASEOF 15397cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15398## -------------------- ## 15399## M4sh Initialization. ## 15400## -------------------- ## 15401 15402# Be more Bourne compatible 15403DUALCASE=1; export DUALCASE # for MKS sh 15404if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15405 emulate sh 15406 NULLCMD=: 15407 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15408 # is contrary to our usage. Disable this feature. 15409 alias -g '${1+"$@"}'='"$@"' 15410 setopt NO_GLOB_SUBST 15411else 15412 case `(set -o) 2>/dev/null` in #( 15413 *posix*) : 15414 set -o posix ;; #( 15415 *) : 15416 ;; 15417esac 15418fi 15419 15420 15421as_nl=' 15422' 15423export as_nl 15424# Printing a long string crashes Solaris 7 /usr/bin/printf. 15425as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15426as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15427as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15428# Prefer a ksh shell builtin over an external printf program on Solaris, 15429# but without wasting forks for bash or zsh. 15430if test -z "$BASH_VERSION$ZSH_VERSION" \ 15431 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15432 as_echo='print -r --' 15433 as_echo_n='print -rn --' 15434elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15435 as_echo='printf %s\n' 15436 as_echo_n='printf %s' 15437else 15438 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15439 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15440 as_echo_n='/usr/ucb/echo -n' 15441 else 15442 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15443 as_echo_n_body='eval 15444 arg=$1; 15445 case $arg in #( 15446 *"$as_nl"*) 15447 expr "X$arg" : "X\\(.*\\)$as_nl"; 15448 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15449 esac; 15450 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15451 ' 15452 export as_echo_n_body 15453 as_echo_n='sh -c $as_echo_n_body as_echo' 15454 fi 15455 export as_echo_body 15456 as_echo='sh -c $as_echo_body as_echo' 15457fi 15458 15459# The user is always right. 15460if test "${PATH_SEPARATOR+set}" != set; then 15461 PATH_SEPARATOR=: 15462 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15463 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15464 PATH_SEPARATOR=';' 15465 } 15466fi 15467 15468 15469# IFS 15470# We need space, tab and new line, in precisely that order. Quoting is 15471# there to prevent editors from complaining about space-tab. 15472# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15473# splitting by setting IFS to empty value.) 15474IFS=" "" $as_nl" 15475 15476# Find who we are. Look in the path if we contain no directory separator. 15477as_myself= 15478case $0 in #(( 15479 *[\\/]* ) as_myself=$0 ;; 15480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15481for as_dir in $PATH 15482do 15483 IFS=$as_save_IFS 15484 test -z "$as_dir" && as_dir=. 15485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15486 done 15487IFS=$as_save_IFS 15488 15489 ;; 15490esac 15491# We did not find ourselves, most probably we were run as `sh COMMAND' 15492# in which case we are not to be found in the path. 15493if test "x$as_myself" = x; then 15494 as_myself=$0 15495fi 15496if test ! -f "$as_myself"; then 15497 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15498 exit 1 15499fi 15500 15501# Unset variables that we do not need and which cause bugs (e.g. in 15502# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15503# suppresses any "Segmentation fault" message there. '((' could 15504# trigger a bug in pdksh 5.2.14. 15505for as_var in BASH_ENV ENV MAIL MAILPATH 15506do eval test x\${$as_var+set} = xset \ 15507 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15508done 15509PS1='$ ' 15510PS2='> ' 15511PS4='+ ' 15512 15513# NLS nuisances. 15514LC_ALL=C 15515export LC_ALL 15516LANGUAGE=C 15517export LANGUAGE 15518 15519# CDPATH. 15520(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15521 15522 15523# as_fn_error STATUS ERROR [LINENO LOG_FD] 15524# ---------------------------------------- 15525# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15526# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15527# script with STATUS, using 1 if that was 0. 15528as_fn_error () 15529{ 15530 as_status=$1; test $as_status -eq 0 && as_status=1 15531 if test "$4"; then 15532 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15533 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15534 fi 15535 $as_echo "$as_me: error: $2" >&2 15536 as_fn_exit $as_status 15537} # as_fn_error 15538 15539 15540# as_fn_set_status STATUS 15541# ----------------------- 15542# Set $? to STATUS, without forking. 15543as_fn_set_status () 15544{ 15545 return $1 15546} # as_fn_set_status 15547 15548# as_fn_exit STATUS 15549# ----------------- 15550# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15551as_fn_exit () 15552{ 15553 set +e 15554 as_fn_set_status $1 15555 exit $1 15556} # as_fn_exit 15557 15558# as_fn_unset VAR 15559# --------------- 15560# Portably unset VAR. 15561as_fn_unset () 15562{ 15563 { eval $1=; unset $1;} 15564} 15565as_unset=as_fn_unset 15566# as_fn_append VAR VALUE 15567# ---------------------- 15568# Append the text in VALUE to the end of the definition contained in VAR. Take 15569# advantage of any shell optimizations that allow amortized linear growth over 15570# repeated appends, instead of the typical quadratic growth present in naive 15571# implementations. 15572if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15573 eval 'as_fn_append () 15574 { 15575 eval $1+=\$2 15576 }' 15577else 15578 as_fn_append () 15579 { 15580 eval $1=\$$1\$2 15581 } 15582fi # as_fn_append 15583 15584# as_fn_arith ARG... 15585# ------------------ 15586# Perform arithmetic evaluation on the ARGs, and store the result in the 15587# global $as_val. Take advantage of shells that can avoid forks. The arguments 15588# must be portable across $(()) and expr. 15589if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15590 eval 'as_fn_arith () 15591 { 15592 as_val=$(( $* )) 15593 }' 15594else 15595 as_fn_arith () 15596 { 15597 as_val=`expr "$@" || test $? -eq 1` 15598 } 15599fi # as_fn_arith 15600 15601 15602if expr a : '\(a\)' >/dev/null 2>&1 && 15603 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15604 as_expr=expr 15605else 15606 as_expr=false 15607fi 15608 15609if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15610 as_basename=basename 15611else 15612 as_basename=false 15613fi 15614 15615if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15616 as_dirname=dirname 15617else 15618 as_dirname=false 15619fi 15620 15621as_me=`$as_basename -- "$0" || 15622$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15623 X"$0" : 'X\(//\)$' \| \ 15624 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15625$as_echo X/"$0" | 15626 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15627 s//\1/ 15628 q 15629 } 15630 /^X\/\(\/\/\)$/{ 15631 s//\1/ 15632 q 15633 } 15634 /^X\/\(\/\).*/{ 15635 s//\1/ 15636 q 15637 } 15638 s/.*/./; q'` 15639 15640# Avoid depending upon Character Ranges. 15641as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15642as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15643as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15644as_cr_digits='0123456789' 15645as_cr_alnum=$as_cr_Letters$as_cr_digits 15646 15647ECHO_C= ECHO_N= ECHO_T= 15648case `echo -n x` in #((((( 15649-n*) 15650 case `echo 'xy\c'` in 15651 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15652 xy) ECHO_C='\c';; 15653 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15654 ECHO_T=' ';; 15655 esac;; 15656*) 15657 ECHO_N='-n';; 15658esac 15659 15660rm -f conf$$ conf$$.exe conf$$.file 15661if test -d conf$$.dir; then 15662 rm -f conf$$.dir/conf$$.file 15663else 15664 rm -f conf$$.dir 15665 mkdir conf$$.dir 2>/dev/null 15666fi 15667if (echo >conf$$.file) 2>/dev/null; then 15668 if ln -s conf$$.file conf$$ 2>/dev/null; then 15669 as_ln_s='ln -s' 15670 # ... but there are two gotchas: 15671 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15672 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15673 # In both cases, we have to default to `cp -pR'. 15674 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15675 as_ln_s='cp -pR' 15676 elif ln conf$$.file conf$$ 2>/dev/null; then 15677 as_ln_s=ln 15678 else 15679 as_ln_s='cp -pR' 15680 fi 15681else 15682 as_ln_s='cp -pR' 15683fi 15684rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15685rmdir conf$$.dir 2>/dev/null 15686 15687 15688# as_fn_mkdir_p 15689# ------------- 15690# Create "$as_dir" as a directory, including parents if necessary. 15691as_fn_mkdir_p () 15692{ 15693 15694 case $as_dir in #( 15695 -*) as_dir=./$as_dir;; 15696 esac 15697 test -d "$as_dir" || eval $as_mkdir_p || { 15698 as_dirs= 15699 while :; do 15700 case $as_dir in #( 15701 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15702 *) as_qdir=$as_dir;; 15703 esac 15704 as_dirs="'$as_qdir' $as_dirs" 15705 as_dir=`$as_dirname -- "$as_dir" || 15706$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15707 X"$as_dir" : 'X\(//\)[^/]' \| \ 15708 X"$as_dir" : 'X\(//\)$' \| \ 15709 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15710$as_echo X"$as_dir" | 15711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15712 s//\1/ 15713 q 15714 } 15715 /^X\(\/\/\)[^/].*/{ 15716 s//\1/ 15717 q 15718 } 15719 /^X\(\/\/\)$/{ 15720 s//\1/ 15721 q 15722 } 15723 /^X\(\/\).*/{ 15724 s//\1/ 15725 q 15726 } 15727 s/.*/./; q'` 15728 test -d "$as_dir" && break 15729 done 15730 test -z "$as_dirs" || eval "mkdir $as_dirs" 15731 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15732 15733 15734} # as_fn_mkdir_p 15735if mkdir -p . 2>/dev/null; then 15736 as_mkdir_p='mkdir -p "$as_dir"' 15737else 15738 test -d ./-p && rmdir ./-p 15739 as_mkdir_p=false 15740fi 15741 15742 15743# as_fn_executable_p FILE 15744# ----------------------- 15745# Test if FILE is an executable regular file. 15746as_fn_executable_p () 15747{ 15748 test -f "$1" && test -x "$1" 15749} # as_fn_executable_p 15750as_test_x='test -x' 15751as_executable_p=as_fn_executable_p 15752 15753# Sed expression to map a string onto a valid CPP name. 15754as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15755 15756# Sed expression to map a string onto a valid variable name. 15757as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15758 15759 15760exec 6>&1 15761## ----------------------------------- ## 15762## Main body of $CONFIG_STATUS script. ## 15763## ----------------------------------- ## 15764_ASEOF 15765test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15766 15767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15768# Save the log message, to keep $0 and so on meaningful, and to 15769# report actual input values of CONFIG_FILES etc. instead of their 15770# values after options handling. 15771ac_log=" 15772This file was extended by $as_me, which was 15773generated by GNU Autoconf 2.69. Invocation command line was 15774 15775 CONFIG_FILES = $CONFIG_FILES 15776 CONFIG_HEADERS = $CONFIG_HEADERS 15777 CONFIG_LINKS = $CONFIG_LINKS 15778 CONFIG_COMMANDS = $CONFIG_COMMANDS 15779 $ $0 $@ 15780 15781on `(hostname || uname -n) 2>/dev/null | sed 1q` 15782" 15783 15784_ACEOF 15785 15786case $ac_config_files in *" 15787"*) set x $ac_config_files; shift; ac_config_files=$*;; 15788esac 15789 15790case $ac_config_headers in *" 15791"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15792esac 15793 15794 15795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15796# Files that config.status was made for. 15797config_files="$ac_config_files" 15798config_headers="$ac_config_headers" 15799config_commands="$ac_config_commands" 15800 15801_ACEOF 15802 15803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15804ac_cs_usage="\ 15805\`$as_me' instantiates files and other configuration actions 15806from templates according to the current configuration. Unless the files 15807and actions are specified as TAGs, all are instantiated by default. 15808 15809Usage: $0 [OPTION]... [TAG]... 15810 15811 -h, --help print this help, then exit 15812 -V, --version print version number and configuration settings, then exit 15813 --config print configuration, then exit 15814 -q, --quiet, --silent 15815 do not print progress messages 15816 -d, --debug don't remove temporary files 15817 --recheck update $as_me by reconfiguring in the same conditions 15818 --file=FILE[:TEMPLATE] 15819 instantiate the configuration file FILE 15820 --header=FILE[:TEMPLATE] 15821 instantiate the configuration header FILE 15822 15823Configuration files: 15824$config_files 15825 15826Configuration headers: 15827$config_headers 15828 15829Configuration commands: 15830$config_commands 15831 15832Report bugs to the package provider." 15833 15834_ACEOF 15835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15836ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15837ac_cs_version="\\ 15838config.status 15839configured by $0, generated by GNU Autoconf 2.69, 15840 with options \\"\$ac_cs_config\\" 15841 15842Copyright (C) 2012 Free Software Foundation, Inc. 15843This config.status script is free software; the Free Software Foundation 15844gives unlimited permission to copy, distribute and modify it." 15845 15846ac_pwd='$ac_pwd' 15847srcdir='$srcdir' 15848INSTALL='$INSTALL' 15849AWK='$AWK' 15850test -n "\$AWK" || AWK=awk 15851_ACEOF 15852 15853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15854# The default lists apply if the user does not specify any file. 15855ac_need_defaults=: 15856while test $# != 0 15857do 15858 case $1 in 15859 --*=?*) 15860 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15861 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15862 ac_shift=: 15863 ;; 15864 --*=) 15865 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15866 ac_optarg= 15867 ac_shift=: 15868 ;; 15869 *) 15870 ac_option=$1 15871 ac_optarg=$2 15872 ac_shift=shift 15873 ;; 15874 esac 15875 15876 case $ac_option in 15877 # Handling of the options. 15878 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15879 ac_cs_recheck=: ;; 15880 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15881 $as_echo "$ac_cs_version"; exit ;; 15882 --config | --confi | --conf | --con | --co | --c ) 15883 $as_echo "$ac_cs_config"; exit ;; 15884 --debug | --debu | --deb | --de | --d | -d ) 15885 debug=: ;; 15886 --file | --fil | --fi | --f ) 15887 $ac_shift 15888 case $ac_optarg in 15889 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15890 '') as_fn_error $? "missing file argument" ;; 15891 esac 15892 as_fn_append CONFIG_FILES " '$ac_optarg'" 15893 ac_need_defaults=false;; 15894 --header | --heade | --head | --hea ) 15895 $ac_shift 15896 case $ac_optarg in 15897 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15898 esac 15899 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15900 ac_need_defaults=false;; 15901 --he | --h) 15902 # Conflict between --help and --header 15903 as_fn_error $? "ambiguous option: \`$1' 15904Try \`$0 --help' for more information.";; 15905 --help | --hel | -h ) 15906 $as_echo "$ac_cs_usage"; exit ;; 15907 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15908 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15909 ac_cs_silent=: ;; 15910 15911 # This is an error. 15912 -*) as_fn_error $? "unrecognized option: \`$1' 15913Try \`$0 --help' for more information." ;; 15914 15915 *) as_fn_append ac_config_targets " $1" 15916 ac_need_defaults=false ;; 15917 15918 esac 15919 shift 15920done 15921 15922ac_configure_extra_args= 15923 15924if $ac_cs_silent; then 15925 exec 6>/dev/null 15926 ac_configure_extra_args="$ac_configure_extra_args --silent" 15927fi 15928 15929_ACEOF 15930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15931if \$ac_cs_recheck; then 15932 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15933 shift 15934 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15935 CONFIG_SHELL='$SHELL' 15936 export CONFIG_SHELL 15937 exec "\$@" 15938fi 15939 15940_ACEOF 15941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15942exec 5>>config.log 15943{ 15944 echo 15945 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15946## Running $as_me. ## 15947_ASBOX 15948 $as_echo "$ac_log" 15949} >&5 15950 15951_ACEOF 15952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15953# 15954# INIT-COMMANDS 15955# 15956 15957 15958# The HP-UX ksh and POSIX shell print the target directory to stdout 15959# if CDPATH is set. 15960(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15961 15962sed_quote_subst='$sed_quote_subst' 15963double_quote_subst='$double_quote_subst' 15964delay_variable_subst='$delay_variable_subst' 15965macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15966macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15967enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15968enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15969pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15970enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15971shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 15972SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15973ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15974PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 15975host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15976host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15977host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15978build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15979build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15980build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15981SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15982Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15983GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15984EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15985FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15986LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15987NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15988LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15989max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15990ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15991exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15992lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15993lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15994lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15995lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 15996lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 15997reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15998reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15999OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16000deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16001file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16002file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16003want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16004DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16005sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16006AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16007AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16008archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16009STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16010RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16011old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16012old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16013old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16014lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16015CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16016CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16017compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16018GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16019lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16020lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16021lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 16022lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16023lt_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"`' 16024lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 16025nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16026lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16027lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 16028objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16029MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16030lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16031lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16032lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16033lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16034lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16035need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16036MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16037DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16038NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16039LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16040OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16041OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16042libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16043shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16044extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16045archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16046enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16047export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16048whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16049compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16050old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16051old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16052archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16053archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16054module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16055module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16056with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16057allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16058no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16059hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16060hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16061hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16062hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16063hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16064hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16065hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16066inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16067link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16068always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16069export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16070exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16071include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16072prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16073postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16074file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16075variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16076need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16077need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16078version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16079runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16080shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16081shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16082libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16083library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16084soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16085install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16086postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16087postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16088finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16089finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16090hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16091sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16092configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 16093configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 16094hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16095enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16096enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16097enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16098old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16099striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16100 16101LTCC='$LTCC' 16102LTCFLAGS='$LTCFLAGS' 16103compiler='$compiler_DEFAULT' 16104 16105# A function that is used when there is no print builtin or printf. 16106func_fallback_echo () 16107{ 16108 eval 'cat <<_LTECHO_EOF 16109\$1 16110_LTECHO_EOF' 16111} 16112 16113# Quote evaled strings. 16114for var in SHELL \ 16115ECHO \ 16116PATH_SEPARATOR \ 16117SED \ 16118GREP \ 16119EGREP \ 16120FGREP \ 16121LD \ 16122NM \ 16123LN_S \ 16124lt_SP2NL \ 16125lt_NL2SP \ 16126reload_flag \ 16127OBJDUMP \ 16128deplibs_check_method \ 16129file_magic_cmd \ 16130file_magic_glob \ 16131want_nocaseglob \ 16132DLLTOOL \ 16133sharedlib_from_linklib_cmd \ 16134AR \ 16135AR_FLAGS \ 16136archiver_list_spec \ 16137STRIP \ 16138RANLIB \ 16139CC \ 16140CFLAGS \ 16141compiler \ 16142lt_cv_sys_global_symbol_pipe \ 16143lt_cv_sys_global_symbol_to_cdecl \ 16144lt_cv_sys_global_symbol_to_import \ 16145lt_cv_sys_global_symbol_to_c_name_address \ 16146lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16147lt_cv_nm_interface \ 16148nm_file_list_spec \ 16149lt_cv_truncate_bin \ 16150lt_prog_compiler_no_builtin_flag \ 16151lt_prog_compiler_pic \ 16152lt_prog_compiler_wl \ 16153lt_prog_compiler_static \ 16154lt_cv_prog_compiler_c_o \ 16155need_locks \ 16156MANIFEST_TOOL \ 16157DSYMUTIL \ 16158NMEDIT \ 16159LIPO \ 16160OTOOL \ 16161OTOOL64 \ 16162shrext_cmds \ 16163export_dynamic_flag_spec \ 16164whole_archive_flag_spec \ 16165compiler_needs_object \ 16166with_gnu_ld \ 16167allow_undefined_flag \ 16168no_undefined_flag \ 16169hardcode_libdir_flag_spec \ 16170hardcode_libdir_separator \ 16171exclude_expsyms \ 16172include_expsyms \ 16173file_list_spec \ 16174variables_saved_for_relink \ 16175libname_spec \ 16176library_names_spec \ 16177soname_spec \ 16178install_override_mode \ 16179finish_eval \ 16180old_striplib \ 16181striplib; do 16182 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16183 *[\\\\\\\`\\"\\\$]*) 16184 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16185 ;; 16186 *) 16187 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16188 ;; 16189 esac 16190done 16191 16192# Double-quote double-evaled strings. 16193for var in reload_cmds \ 16194old_postinstall_cmds \ 16195old_postuninstall_cmds \ 16196old_archive_cmds \ 16197extract_expsyms_cmds \ 16198old_archive_from_new_cmds \ 16199old_archive_from_expsyms_cmds \ 16200archive_cmds \ 16201archive_expsym_cmds \ 16202module_cmds \ 16203module_expsym_cmds \ 16204export_symbols_cmds \ 16205prelink_cmds \ 16206postlink_cmds \ 16207postinstall_cmds \ 16208postuninstall_cmds \ 16209finish_cmds \ 16210sys_lib_search_path_spec \ 16211configure_time_dlsearch_path \ 16212configure_time_lt_sys_library_path; do 16213 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16214 *[\\\\\\\`\\"\\\$]*) 16215 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16216 ;; 16217 *) 16218 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16219 ;; 16220 esac 16221done 16222 16223ac_aux_dir='$ac_aux_dir' 16224 16225# See if we are running on zsh, and set the options that allow our 16226# commands through without removal of \ escapes INIT. 16227if test -n "\${ZSH_VERSION+set}"; then 16228 setopt NO_GLOB_SUBST 16229fi 16230 16231 16232 PACKAGE='$PACKAGE' 16233 VERSION='$VERSION' 16234 RM='$RM' 16235 ofile='$ofile' 16236 16237 16238 16239 16240_ACEOF 16241 16242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16243 16244# Handling of arguments. 16245for ac_config_target in $ac_config_targets 16246do 16247 case $ac_config_target in 16248 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16249 "src/rep_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/rep_config.h" ;; 16250 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16251 "${output_files}") CONFIG_FILES="$CONFIG_FILES ${output_files}" ;; 16252 16253 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16254 esac 16255done 16256 16257 16258# If the user did not use the arguments to specify the items to instantiate, 16259# then the envvar interface is used. Set only those that are not. 16260# We use the long form for the default assignment because of an extremely 16261# bizarre bug on SunOS 4.1.3. 16262if $ac_need_defaults; then 16263 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16264 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16265 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16266fi 16267 16268# Have a temporary directory for convenience. Make it in the build tree 16269# simply because there is no reason against having it here, and in addition, 16270# creating and moving files from /tmp can sometimes cause problems. 16271# Hook for its removal unless debugging. 16272# Note that there is a small window in which the directory will not be cleaned: 16273# after its creation but before its name has been assigned to `$tmp'. 16274$debug || 16275{ 16276 tmp= ac_tmp= 16277 trap 'exit_status=$? 16278 : "${ac_tmp:=$tmp}" 16279 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16280' 0 16281 trap 'as_fn_exit 1' 1 2 13 15 16282} 16283# Create a (secure) tmp directory for tmp files. 16284 16285{ 16286 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16287 test -d "$tmp" 16288} || 16289{ 16290 tmp=./conf$$-$RANDOM 16291 (umask 077 && mkdir "$tmp") 16292} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16293ac_tmp=$tmp 16294 16295# Set up the scripts for CONFIG_FILES section. 16296# No need to generate them if there are no CONFIG_FILES. 16297# This happens for instance with `./config.status config.h'. 16298if test -n "$CONFIG_FILES"; then 16299 16300 16301ac_cr=`echo X | tr X '\015'` 16302# On cygwin, bash can eat \r inside `` if the user requested igncr. 16303# But we know of no other shell where ac_cr would be empty at this 16304# point, so we can use a bashism as a fallback. 16305if test "x$ac_cr" = x; then 16306 eval ac_cr=\$\'\\r\' 16307fi 16308ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16309if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16310 ac_cs_awk_cr='\\r' 16311else 16312 ac_cs_awk_cr=$ac_cr 16313fi 16314 16315echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16316_ACEOF 16317 16318 16319{ 16320 echo "cat >conf$$subs.awk <<_ACEOF" && 16321 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16322 echo "_ACEOF" 16323} >conf$$subs.sh || 16324 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16325ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16326ac_delim='%!_!# ' 16327for ac_last_try in false false false false false :; do 16328 . ./conf$$subs.sh || 16329 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16330 16331 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16332 if test $ac_delim_n = $ac_delim_num; then 16333 break 16334 elif $ac_last_try; then 16335 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16336 else 16337 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16338 fi 16339done 16340rm -f conf$$subs.sh 16341 16342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16343cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16344_ACEOF 16345sed -n ' 16346h 16347s/^/S["/; s/!.*/"]=/ 16348p 16349g 16350s/^[^!]*!// 16351:repl 16352t repl 16353s/'"$ac_delim"'$// 16354t delim 16355:nl 16356h 16357s/\(.\{148\}\)..*/\1/ 16358t more1 16359s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16360p 16361n 16362b repl 16363:more1 16364s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16365p 16366g 16367s/.\{148\}// 16368t nl 16369:delim 16370h 16371s/\(.\{148\}\)..*/\1/ 16372t more2 16373s/["\\]/\\&/g; s/^/"/; s/$/"/ 16374p 16375b 16376:more2 16377s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16378p 16379g 16380s/.\{148\}// 16381t delim 16382' <conf$$subs.awk | sed ' 16383/^[^""]/{ 16384 N 16385 s/\n// 16386} 16387' >>$CONFIG_STATUS || ac_write_fail=1 16388rm -f conf$$subs.awk 16389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16390_ACAWK 16391cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16392 for (key in S) S_is_set[key] = 1 16393 FS = "" 16394 16395} 16396{ 16397 line = $ 0 16398 nfields = split(line, field, "@") 16399 substed = 0 16400 len = length(field[1]) 16401 for (i = 2; i < nfields; i++) { 16402 key = field[i] 16403 keylen = length(key) 16404 if (S_is_set[key]) { 16405 value = S[key] 16406 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16407 len += length(value) + length(field[++i]) 16408 substed = 1 16409 } else 16410 len += 1 + keylen 16411 } 16412 16413 print line 16414} 16415 16416_ACAWK 16417_ACEOF 16418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16419if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16420 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16421else 16422 cat 16423fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16424 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16425_ACEOF 16426 16427# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16428# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16429# trailing colons and then remove the whole line if VPATH becomes empty 16430# (actually we leave an empty line to preserve line numbers). 16431if test "x$srcdir" = x.; then 16432 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16433h 16434s/// 16435s/^/:/ 16436s/[ ]*$/:/ 16437s/:\$(srcdir):/:/g 16438s/:\${srcdir}:/:/g 16439s/:@srcdir@:/:/g 16440s/^:*// 16441s/:*$// 16442x 16443s/\(=[ ]*\).*/\1/ 16444G 16445s/\n// 16446s/^[^=]*=[ ]*$// 16447}' 16448fi 16449 16450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16451fi # test -n "$CONFIG_FILES" 16452 16453# Set up the scripts for CONFIG_HEADERS section. 16454# No need to generate them if there are no CONFIG_HEADERS. 16455# This happens for instance with `./config.status Makefile'. 16456if test -n "$CONFIG_HEADERS"; then 16457cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16458BEGIN { 16459_ACEOF 16460 16461# Transform confdefs.h into an awk script `defines.awk', embedded as 16462# here-document in config.status, that substitutes the proper values into 16463# config.h.in to produce config.h. 16464 16465# Create a delimiter string that does not exist in confdefs.h, to ease 16466# handling of long lines. 16467ac_delim='%!_!# ' 16468for ac_last_try in false false :; do 16469 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16470 if test -z "$ac_tt"; then 16471 break 16472 elif $ac_last_try; then 16473 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16474 else 16475 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16476 fi 16477done 16478 16479# For the awk script, D is an array of macro values keyed by name, 16480# likewise P contains macro parameters if any. Preserve backslash 16481# newline sequences. 16482 16483ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16484sed -n ' 16485s/.\{148\}/&'"$ac_delim"'/g 16486t rset 16487:rset 16488s/^[ ]*#[ ]*define[ ][ ]*/ / 16489t def 16490d 16491:def 16492s/\\$// 16493t bsnl 16494s/["\\]/\\&/g 16495s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16496D["\1"]=" \3"/p 16497s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16498d 16499:bsnl 16500s/["\\]/\\&/g 16501s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16502D["\1"]=" \3\\\\\\n"\\/p 16503t cont 16504s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16505t cont 16506d 16507:cont 16508n 16509s/.\{148\}/&'"$ac_delim"'/g 16510t clear 16511:clear 16512s/\\$// 16513t bsnlc 16514s/["\\]/\\&/g; s/^/"/; s/$/"/p 16515d 16516:bsnlc 16517s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16518b cont 16519' <confdefs.h | sed ' 16520s/'"$ac_delim"'/"\\\ 16521"/g' >>$CONFIG_STATUS || ac_write_fail=1 16522 16523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16524 for (key in D) D_is_set[key] = 1 16525 FS = "" 16526} 16527/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16528 line = \$ 0 16529 split(line, arg, " ") 16530 if (arg[1] == "#") { 16531 defundef = arg[2] 16532 mac1 = arg[3] 16533 } else { 16534 defundef = substr(arg[1], 2) 16535 mac1 = arg[2] 16536 } 16537 split(mac1, mac2, "(") #) 16538 macro = mac2[1] 16539 prefix = substr(line, 1, index(line, defundef) - 1) 16540 if (D_is_set[macro]) { 16541 # Preserve the white space surrounding the "#". 16542 print prefix "define", macro P[macro] D[macro] 16543 next 16544 } else { 16545 # Replace #undef with comments. This is necessary, for example, 16546 # in the case of _POSIX_SOURCE, which is predefined and required 16547 # on some systems where configure will not decide to define it. 16548 if (defundef == "undef") { 16549 print "/*", prefix defundef, macro, "*/" 16550 next 16551 } 16552 } 16553} 16554{ print } 16555_ACAWK 16556_ACEOF 16557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16558 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16559fi # test -n "$CONFIG_HEADERS" 16560 16561 16562eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16563shift 16564for ac_tag 16565do 16566 case $ac_tag in 16567 :[FHLC]) ac_mode=$ac_tag; continue;; 16568 esac 16569 case $ac_mode$ac_tag in 16570 :[FHL]*:*);; 16571 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16572 :[FH]-) ac_tag=-:-;; 16573 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16574 esac 16575 ac_save_IFS=$IFS 16576 IFS=: 16577 set x $ac_tag 16578 IFS=$ac_save_IFS 16579 shift 16580 ac_file=$1 16581 shift 16582 16583 case $ac_mode in 16584 :L) ac_source=$1;; 16585 :[FH]) 16586 ac_file_inputs= 16587 for ac_f 16588 do 16589 case $ac_f in 16590 -) ac_f="$ac_tmp/stdin";; 16591 *) # Look for the file first in the build tree, then in the source tree 16592 # (if the path is not absolute). The absolute path cannot be DOS-style, 16593 # because $ac_f cannot contain `:'. 16594 test -f "$ac_f" || 16595 case $ac_f in 16596 [\\/$]*) false;; 16597 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16598 esac || 16599 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16600 esac 16601 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16602 as_fn_append ac_file_inputs " '$ac_f'" 16603 done 16604 16605 # Let's still pretend it is `configure' which instantiates (i.e., don't 16606 # use $as_me), people would be surprised to read: 16607 # /* config.h. Generated by config.status. */ 16608 configure_input='Generated from '` 16609 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16610 `' by configure.' 16611 if test x"$ac_file" != x-; then 16612 configure_input="$ac_file. $configure_input" 16613 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16614$as_echo "$as_me: creating $ac_file" >&6;} 16615 fi 16616 # Neutralize special characters interpreted by sed in replacement strings. 16617 case $configure_input in #( 16618 *\&* | *\|* | *\\* ) 16619 ac_sed_conf_input=`$as_echo "$configure_input" | 16620 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16621 *) ac_sed_conf_input=$configure_input;; 16622 esac 16623 16624 case $ac_tag in 16625 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16626 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16627 esac 16628 ;; 16629 esac 16630 16631 ac_dir=`$as_dirname -- "$ac_file" || 16632$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16633 X"$ac_file" : 'X\(//\)[^/]' \| \ 16634 X"$ac_file" : 'X\(//\)$' \| \ 16635 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16636$as_echo X"$ac_file" | 16637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16638 s//\1/ 16639 q 16640 } 16641 /^X\(\/\/\)[^/].*/{ 16642 s//\1/ 16643 q 16644 } 16645 /^X\(\/\/\)$/{ 16646 s//\1/ 16647 q 16648 } 16649 /^X\(\/\).*/{ 16650 s//\1/ 16651 q 16652 } 16653 s/.*/./; q'` 16654 as_dir="$ac_dir"; as_fn_mkdir_p 16655 ac_builddir=. 16656 16657case "$ac_dir" in 16658.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16659*) 16660 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16661 # A ".." for each directory in $ac_dir_suffix. 16662 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16663 case $ac_top_builddir_sub in 16664 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16665 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16666 esac ;; 16667esac 16668ac_abs_top_builddir=$ac_pwd 16669ac_abs_builddir=$ac_pwd$ac_dir_suffix 16670# for backward compatibility: 16671ac_top_builddir=$ac_top_build_prefix 16672 16673case $srcdir in 16674 .) # We are building in place. 16675 ac_srcdir=. 16676 ac_top_srcdir=$ac_top_builddir_sub 16677 ac_abs_top_srcdir=$ac_pwd ;; 16678 [\\/]* | ?:[\\/]* ) # Absolute name. 16679 ac_srcdir=$srcdir$ac_dir_suffix; 16680 ac_top_srcdir=$srcdir 16681 ac_abs_top_srcdir=$srcdir ;; 16682 *) # Relative name. 16683 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16684 ac_top_srcdir=$ac_top_build_prefix$srcdir 16685 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16686esac 16687ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16688 16689 16690 case $ac_mode in 16691 :F) 16692 # 16693 # CONFIG_FILE 16694 # 16695 16696 case $INSTALL in 16697 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16698 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16699 esac 16700_ACEOF 16701 16702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16703# If the template does not know about datarootdir, expand it. 16704# FIXME: This hack should be removed a few years after 2.60. 16705ac_datarootdir_hack=; ac_datarootdir_seen= 16706ac_sed_dataroot=' 16707/datarootdir/ { 16708 p 16709 q 16710} 16711/@datadir@/p 16712/@docdir@/p 16713/@infodir@/p 16714/@localedir@/p 16715/@mandir@/p' 16716case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16717*datarootdir*) ac_datarootdir_seen=yes;; 16718*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16720$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16721_ACEOF 16722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16723 ac_datarootdir_hack=' 16724 s&@datadir@&$datadir&g 16725 s&@docdir@&$docdir&g 16726 s&@infodir@&$infodir&g 16727 s&@localedir@&$localedir&g 16728 s&@mandir@&$mandir&g 16729 s&\\\${datarootdir}&$datarootdir&g' ;; 16730esac 16731_ACEOF 16732 16733# Neutralize VPATH when `$srcdir' = `.'. 16734# Shell code in configure.ac might set extrasub. 16735# FIXME: do we really want to maintain this feature? 16736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16737ac_sed_extra="$ac_vpsub 16738$extrasub 16739_ACEOF 16740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16741:t 16742/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16743s|@configure_input@|$ac_sed_conf_input|;t t 16744s&@top_builddir@&$ac_top_builddir_sub&;t t 16745s&@top_build_prefix@&$ac_top_build_prefix&;t t 16746s&@srcdir@&$ac_srcdir&;t t 16747s&@abs_srcdir@&$ac_abs_srcdir&;t t 16748s&@top_srcdir@&$ac_top_srcdir&;t t 16749s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16750s&@builddir@&$ac_builddir&;t t 16751s&@abs_builddir@&$ac_abs_builddir&;t t 16752s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16753s&@INSTALL@&$ac_INSTALL&;t t 16754$ac_datarootdir_hack 16755" 16756eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16757 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16758 16759test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16760 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16761 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16762 "$ac_tmp/out"`; test -z "$ac_out"; } && 16763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16764which seems to be undefined. Please make sure it is defined" >&5 16765$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16766which seems to be undefined. Please make sure it is defined" >&2;} 16767 16768 rm -f "$ac_tmp/stdin" 16769 case $ac_file in 16770 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16771 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16772 esac \ 16773 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16774 ;; 16775 :H) 16776 # 16777 # CONFIG_HEADER 16778 # 16779 if test x"$ac_file" != x-; then 16780 { 16781 $as_echo "/* $configure_input */" \ 16782 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16783 } >"$ac_tmp/config.h" \ 16784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16785 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16786 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16787$as_echo "$as_me: $ac_file is unchanged" >&6;} 16788 else 16789 rm -f "$ac_file" 16790 mv "$ac_tmp/config.h" "$ac_file" \ 16791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16792 fi 16793 else 16794 $as_echo "/* $configure_input */" \ 16795 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16796 || as_fn_error $? "could not create -" "$LINENO" 5 16797 fi 16798 ;; 16799 16800 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16801$as_echo "$as_me: executing $ac_file commands" >&6;} 16802 ;; 16803 esac 16804 16805 16806 case $ac_file$ac_mode in 16807 "libtool":C) 16808 16809 # See if we are running on zsh, and set the options that allow our 16810 # commands through without removal of \ escapes. 16811 if test -n "${ZSH_VERSION+set}"; then 16812 setopt NO_GLOB_SUBST 16813 fi 16814 16815 cfgfile=${ofile}T 16816 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16817 $RM "$cfgfile" 16818 16819 cat <<_LT_EOF >> "$cfgfile" 16820#! $SHELL 16821# Generated automatically by $as_me ($PACKAGE) $VERSION 16822# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16823 16824# Provide generalized library-building support services. 16825# Written by Gordon Matzigkeit, 1996 16826 16827# Copyright (C) 2014 Free Software Foundation, Inc. 16828# This is free software; see the source for copying conditions. There is NO 16829# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16830 16831# GNU Libtool is free software; you can redistribute it and/or modify 16832# it under the terms of the GNU General Public License as published by 16833# the Free Software Foundation; either version 2 of of the License, or 16834# (at your option) any later version. 16835# 16836# As a special exception to the GNU General Public License, if you 16837# distribute this file as part of a program or library that is built 16838# using GNU Libtool, you may include this file under the same 16839# distribution terms that you use for the rest of that program. 16840# 16841# GNU Libtool is distributed in the hope that it will be useful, but 16842# WITHOUT ANY WARRANTY; without even the implied warranty of 16843# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16844# GNU General Public License for more details. 16845# 16846# You should have received a copy of the GNU General Public License 16847# along with this program. If not, see <http://www.gnu.org/licenses/>. 16848 16849 16850# The names of the tagged configurations supported by this script. 16851available_tags='' 16852 16853# Configured defaults for sys_lib_dlsearch_path munging. 16854: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 16855 16856# ### BEGIN LIBTOOL CONFIG 16857 16858# Which release of libtool.m4 was used? 16859macro_version=$macro_version 16860macro_revision=$macro_revision 16861 16862# Whether or not to build shared libraries. 16863build_libtool_libs=$enable_shared 16864 16865# Whether or not to build static libraries. 16866build_old_libs=$enable_static 16867 16868# What type of objects to build. 16869pic_mode=$pic_mode 16870 16871# Whether or not to optimize for fast installation. 16872fast_install=$enable_fast_install 16873 16874# Shared archive member basename,for filename based shared library versioning on AIX. 16875shared_archive_member_spec=$shared_archive_member_spec 16876 16877# Shell to use when invoking shell scripts. 16878SHELL=$lt_SHELL 16879 16880# An echo program that protects backslashes. 16881ECHO=$lt_ECHO 16882 16883# The PATH separator for the build system. 16884PATH_SEPARATOR=$lt_PATH_SEPARATOR 16885 16886# The host system. 16887host_alias=$host_alias 16888host=$host 16889host_os=$host_os 16890 16891# The build system. 16892build_alias=$build_alias 16893build=$build 16894build_os=$build_os 16895 16896# A sed program that does not truncate output. 16897SED=$lt_SED 16898 16899# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16900Xsed="\$SED -e 1s/^X//" 16901 16902# A grep program that handles long lines. 16903GREP=$lt_GREP 16904 16905# An ERE matcher. 16906EGREP=$lt_EGREP 16907 16908# A literal string matcher. 16909FGREP=$lt_FGREP 16910 16911# A BSD- or MS-compatible name lister. 16912NM=$lt_NM 16913 16914# Whether we need soft or hard links. 16915LN_S=$lt_LN_S 16916 16917# What is the maximum length of a command? 16918max_cmd_len=$max_cmd_len 16919 16920# Object file suffix (normally "o"). 16921objext=$ac_objext 16922 16923# Executable file suffix (normally ""). 16924exeext=$exeext 16925 16926# whether the shell understands "unset". 16927lt_unset=$lt_unset 16928 16929# turn spaces into newlines. 16930SP2NL=$lt_lt_SP2NL 16931 16932# turn newlines into spaces. 16933NL2SP=$lt_lt_NL2SP 16934 16935# convert \$build file names to \$host format. 16936to_host_file_cmd=$lt_cv_to_host_file_cmd 16937 16938# convert \$build files to toolchain format. 16939to_tool_file_cmd=$lt_cv_to_tool_file_cmd 16940 16941# An object symbol dumper. 16942OBJDUMP=$lt_OBJDUMP 16943 16944# Method to check whether dependent libraries are shared objects. 16945deplibs_check_method=$lt_deplibs_check_method 16946 16947# Command to use when deplibs_check_method = "file_magic". 16948file_magic_cmd=$lt_file_magic_cmd 16949 16950# How to find potential files when deplibs_check_method = "file_magic". 16951file_magic_glob=$lt_file_magic_glob 16952 16953# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 16954want_nocaseglob=$lt_want_nocaseglob 16955 16956# DLL creation program. 16957DLLTOOL=$lt_DLLTOOL 16958 16959# Command to associate shared and link libraries. 16960sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 16961 16962# The archiver. 16963AR=$lt_AR 16964 16965# Flags to create an archive. 16966AR_FLAGS=$lt_AR_FLAGS 16967 16968# How to feed a file listing to the archiver. 16969archiver_list_spec=$lt_archiver_list_spec 16970 16971# A symbol stripping program. 16972STRIP=$lt_STRIP 16973 16974# Commands used to install an old-style archive. 16975RANLIB=$lt_RANLIB 16976old_postinstall_cmds=$lt_old_postinstall_cmds 16977old_postuninstall_cmds=$lt_old_postuninstall_cmds 16978 16979# Whether to use a lock for old archive extraction. 16980lock_old_archive_extraction=$lock_old_archive_extraction 16981 16982# A C compiler. 16983LTCC=$lt_CC 16984 16985# LTCC compiler flags. 16986LTCFLAGS=$lt_CFLAGS 16987 16988# Take the output of nm and produce a listing of raw symbols and C names. 16989global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16990 16991# Transform the output of nm in a proper C declaration. 16992global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16993 16994# Transform the output of nm into a list of symbols to manually relocate. 16995global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 16996 16997# Transform the output of nm in a C name address pair. 16998global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16999 17000# Transform the output of nm in a C name address pair when lib prefix is needed. 17001global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17002 17003# The name lister interface. 17004nm_interface=$lt_lt_cv_nm_interface 17005 17006# Specify filename containing input files for \$NM. 17007nm_file_list_spec=$lt_nm_file_list_spec 17008 17009# The root where to search for dependent libraries,and where our libraries should be installed. 17010lt_sysroot=$lt_sysroot 17011 17012# Command to truncate a binary pipe. 17013lt_truncate_bin=$lt_lt_cv_truncate_bin 17014 17015# The name of the directory that contains temporary libtool files. 17016objdir=$objdir 17017 17018# Used to examine libraries when file_magic_cmd begins with "file". 17019MAGIC_CMD=$MAGIC_CMD 17020 17021# Must we lock files when doing compilation? 17022need_locks=$lt_need_locks 17023 17024# Manifest tool. 17025MANIFEST_TOOL=$lt_MANIFEST_TOOL 17026 17027# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17028DSYMUTIL=$lt_DSYMUTIL 17029 17030# Tool to change global to local symbols on Mac OS X. 17031NMEDIT=$lt_NMEDIT 17032 17033# Tool to manipulate fat objects and archives on Mac OS X. 17034LIPO=$lt_LIPO 17035 17036# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17037OTOOL=$lt_OTOOL 17038 17039# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17040OTOOL64=$lt_OTOOL64 17041 17042# Old archive suffix (normally "a"). 17043libext=$libext 17044 17045# Shared library suffix (normally ".so"). 17046shrext_cmds=$lt_shrext_cmds 17047 17048# The commands to extract the exported symbol list from a shared archive. 17049extract_expsyms_cmds=$lt_extract_expsyms_cmds 17050 17051# Variables whose values should be saved in libtool wrapper scripts and 17052# restored at link time. 17053variables_saved_for_relink=$lt_variables_saved_for_relink 17054 17055# Do we need the "lib" prefix for modules? 17056need_lib_prefix=$need_lib_prefix 17057 17058# Do we need a version for libraries? 17059need_version=$need_version 17060 17061# Library versioning type. 17062version_type=$version_type 17063 17064# Shared library runtime path variable. 17065runpath_var=$runpath_var 17066 17067# Shared library path variable. 17068shlibpath_var=$shlibpath_var 17069 17070# Is shlibpath searched before the hard-coded library search path? 17071shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17072 17073# Format of library name prefix. 17074libname_spec=$lt_libname_spec 17075 17076# List of archive names. First name is the real one, the rest are links. 17077# The last name is the one that the linker finds with -lNAME 17078library_names_spec=$lt_library_names_spec 17079 17080# The coded name of the library, if different from the real name. 17081soname_spec=$lt_soname_spec 17082 17083# Permission mode override for installation of shared libraries. 17084install_override_mode=$lt_install_override_mode 17085 17086# Command to use after installation of a shared archive. 17087postinstall_cmds=$lt_postinstall_cmds 17088 17089# Command to use after uninstallation of a shared archive. 17090postuninstall_cmds=$lt_postuninstall_cmds 17091 17092# Commands used to finish a libtool library installation in a directory. 17093finish_cmds=$lt_finish_cmds 17094 17095# As "finish_cmds", except a single script fragment to be evaled but 17096# not shown. 17097finish_eval=$lt_finish_eval 17098 17099# Whether we should hardcode library paths into libraries. 17100hardcode_into_libs=$hardcode_into_libs 17101 17102# Compile-time system search path for libraries. 17103sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17104 17105# Detected run-time system search path for libraries. 17106sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 17107 17108# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 17109configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 17110 17111# Whether dlopen is supported. 17112dlopen_support=$enable_dlopen 17113 17114# Whether dlopen of programs is supported. 17115dlopen_self=$enable_dlopen_self 17116 17117# Whether dlopen of statically linked programs is supported. 17118dlopen_self_static=$enable_dlopen_self_static 17119 17120# Commands to strip libraries. 17121old_striplib=$lt_old_striplib 17122striplib=$lt_striplib 17123 17124 17125# The linker used to build libraries. 17126LD=$lt_LD 17127 17128# How to create reloadable object files. 17129reload_flag=$lt_reload_flag 17130reload_cmds=$lt_reload_cmds 17131 17132# Commands used to build an old-style archive. 17133old_archive_cmds=$lt_old_archive_cmds 17134 17135# A language specific compiler. 17136CC=$lt_compiler 17137 17138# Is the compiler the GNU compiler? 17139with_gcc=$GCC 17140 17141# Compiler flag to turn off builtin functions. 17142no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17143 17144# Additional compiler flags for building library objects. 17145pic_flag=$lt_lt_prog_compiler_pic 17146 17147# How to pass a linker flag through the compiler. 17148wl=$lt_lt_prog_compiler_wl 17149 17150# Compiler flag to prevent dynamic linking. 17151link_static_flag=$lt_lt_prog_compiler_static 17152 17153# Does compiler simultaneously support -c and -o options? 17154compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17155 17156# Whether or not to add -lc for building shared libraries. 17157build_libtool_need_lc=$archive_cmds_need_lc 17158 17159# Whether or not to disallow shared libs when runtime libs are static. 17160allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17161 17162# Compiler flag to allow reflexive dlopens. 17163export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17164 17165# Compiler flag to generate shared objects directly from archives. 17166whole_archive_flag_spec=$lt_whole_archive_flag_spec 17167 17168# Whether the compiler copes with passing no objects directly. 17169compiler_needs_object=$lt_compiler_needs_object 17170 17171# Create an old-style archive from a shared archive. 17172old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17173 17174# Create a temporary old-style archive to link instead of a shared archive. 17175old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17176 17177# Commands used to build a shared archive. 17178archive_cmds=$lt_archive_cmds 17179archive_expsym_cmds=$lt_archive_expsym_cmds 17180 17181# Commands used to build a loadable module if different from building 17182# a shared archive. 17183module_cmds=$lt_module_cmds 17184module_expsym_cmds=$lt_module_expsym_cmds 17185 17186# Whether we are building with GNU ld or not. 17187with_gnu_ld=$lt_with_gnu_ld 17188 17189# Flag that allows shared libraries with undefined symbols to be built. 17190allow_undefined_flag=$lt_allow_undefined_flag 17191 17192# Flag that enforces no undefined symbols. 17193no_undefined_flag=$lt_no_undefined_flag 17194 17195# Flag to hardcode \$libdir into a binary during linking. 17196# This must work even if \$libdir does not exist 17197hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17198 17199# Whether we need a single "-rpath" flag with a separated argument. 17200hardcode_libdir_separator=$lt_hardcode_libdir_separator 17201 17202# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17203# DIR into the resulting binary. 17204hardcode_direct=$hardcode_direct 17205 17206# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17207# DIR into the resulting binary and the resulting library dependency is 17208# "absolute",i.e impossible to change by setting \$shlibpath_var if the 17209# library is relocated. 17210hardcode_direct_absolute=$hardcode_direct_absolute 17211 17212# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17213# into the resulting binary. 17214hardcode_minus_L=$hardcode_minus_L 17215 17216# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17217# into the resulting binary. 17218hardcode_shlibpath_var=$hardcode_shlibpath_var 17219 17220# Set to "yes" if building a shared library automatically hardcodes DIR 17221# into the library and all subsequent libraries and executables linked 17222# against it. 17223hardcode_automatic=$hardcode_automatic 17224 17225# Set to yes if linker adds runtime paths of dependent libraries 17226# to runtime path list. 17227inherit_rpath=$inherit_rpath 17228 17229# Whether libtool must link a program against all its dependency libraries. 17230link_all_deplibs=$link_all_deplibs 17231 17232# Set to "yes" if exported symbols are required. 17233always_export_symbols=$always_export_symbols 17234 17235# The commands to list exported symbols. 17236export_symbols_cmds=$lt_export_symbols_cmds 17237 17238# Symbols that should not be listed in the preloaded symbols. 17239exclude_expsyms=$lt_exclude_expsyms 17240 17241# Symbols that must always be exported. 17242include_expsyms=$lt_include_expsyms 17243 17244# Commands necessary for linking programs (against libraries) with templates. 17245prelink_cmds=$lt_prelink_cmds 17246 17247# Commands necessary for finishing linking programs. 17248postlink_cmds=$lt_postlink_cmds 17249 17250# Specify filename containing input files. 17251file_list_spec=$lt_file_list_spec 17252 17253# How to hardcode a shared library path into an executable. 17254hardcode_action=$hardcode_action 17255 17256# ### END LIBTOOL CONFIG 17257 17258_LT_EOF 17259 17260 cat <<'_LT_EOF' >> "$cfgfile" 17261 17262# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 17263 17264# func_munge_path_list VARIABLE PATH 17265# ----------------------------------- 17266# VARIABLE is name of variable containing _space_ separated list of 17267# directories to be munged by the contents of PATH, which is string 17268# having a format: 17269# "DIR[:DIR]:" 17270# string "DIR[ DIR]" will be prepended to VARIABLE 17271# ":DIR[:DIR]" 17272# string "DIR[ DIR]" will be appended to VARIABLE 17273# "DIRP[:DIRP]::[DIRA:]DIRA" 17274# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 17275# "DIRA[ DIRA]" will be appended to VARIABLE 17276# "DIR[:DIR]" 17277# VARIABLE will be replaced by "DIR[ DIR]" 17278func_munge_path_list () 17279{ 17280 case x$2 in 17281 x) 17282 ;; 17283 *:) 17284 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 17285 ;; 17286 x:*) 17287 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 17288 ;; 17289 *::*) 17290 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 17291 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 17292 ;; 17293 *) 17294 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 17295 ;; 17296 esac 17297} 17298 17299 17300# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 17301func_cc_basename () 17302{ 17303 for cc_temp in $*""; do 17304 case $cc_temp in 17305 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17306 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17307 \-*) ;; 17308 *) break;; 17309 esac 17310 done 17311 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 17312} 17313 17314 17315# ### END FUNCTIONS SHARED WITH CONFIGURE 17316 17317_LT_EOF 17318 17319 case $host_os in 17320 aix3*) 17321 cat <<\_LT_EOF >> "$cfgfile" 17322# AIX sometimes has problems with the GCC collect2 program. For some 17323# reason, if we set the COLLECT_NAMES environment variable, the problems 17324# vanish in a puff of smoke. 17325if test set != "${COLLECT_NAMES+set}"; then 17326 COLLECT_NAMES= 17327 export COLLECT_NAMES 17328fi 17329_LT_EOF 17330 ;; 17331 esac 17332 17333 17334ltmain=$ac_aux_dir/ltmain.sh 17335 17336 17337 # We use sed instead of cat because bash on DJGPP gets confused if 17338 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17339 # text mode, it properly converts lines to CR/LF. This bash problem 17340 # is reportedly fixed, but why not run on old versions too? 17341 sed '$q' "$ltmain" >> "$cfgfile" \ 17342 || (rm -f "$cfgfile"; exit 1) 17343 17344 mv -f "$cfgfile" "$ofile" || 17345 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17346 chmod +x "$ofile" 17347 17348 ;; 17349 17350 esac 17351done # for ac_tag 17352 17353 17354as_fn_exit 0 17355_ACEOF 17356ac_clean_files=$ac_clean_files_save 17357 17358test $ac_write_fail = 0 || 17359 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17360 17361 17362# configure is writing to config.log, and then calls config.status. 17363# config.status does its own redirection, appending to config.log. 17364# Unfortunately, on DOS this fails, as config.log is still kept open 17365# by configure, so config.status won't be able to write to it; its 17366# output is simply discarded. So we exec the FD to /dev/null, 17367# effectively closing config.log, so it can be properly (re)opened and 17368# appended to by config.status. When coming back to configure, we 17369# need to make the FD available again. 17370if test "$no_create" != yes; then 17371 ac_cs_success=: 17372 ac_config_status_args= 17373 test "$silent" = yes && 17374 ac_config_status_args="$ac_config_status_args --quiet" 17375 exec 5>/dev/null 17376 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17377 exec 5>>config.log 17378 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17379 # would make configure fail if this is the last instruction. 17380 $ac_cs_success || as_fn_exit 1 17381fi 17382if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17384$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17385fi 17386 17387 17388mv librep.ebuild librep-$version.ebuild 17389 17390if test "$with_gmp" != "no" && test "$found_gmp" = "yes" ; then 17391 with_gmp=yes 17392else with_gmp=no 17393fi 17394 17395if test "$with_readline" != "no" && test "$found_readline" = "yes"; then 17396 with_readline=yes 17397else with_readline=no 17398fi 17399 17400if test "$with_libffi" != "no" && test "$found_ffi" = "yes"; then 17401 with_ffi=yes 17402else with_ffi=no 17403fi 17404 17405echo " 17406 == == == == == == == == == == == == == 17407 17408 librep: $version 17409 17410 == == == == == == == == == == == == == 17411 17412 prefix: $prefix 17413 exec_prefix: $exec_prefix 17414 libdir: $libdir 17415 17416 == == == == == == == == == == == == == 17417 17418 compiler: $CC 17419 cflags: $CFLAGS $DEVELOPMENT_CFLAGS 17420 preprocessor: $CPP 17421 cppflags: $CPPFLAGS 17422 ldflags: $LDFLAGS 17423 makeflags: $MAKEFLAGS 17424 17425 == == == == == == == == == == == == == 17426 17427 libgmp: $with_gmp 17428 libgdbm: yes 17429 readline: $with_readline 17430 libffi: $with_ffi 17431 17432 == == == == == == == == == == == == == 17433 " 17434 17435tem=`make --version -f /dev/null 2>&1 | grep GNU` 17436if test "x$tem" = "x"; then 17437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need to use GNU Make when compiling" >&5 17438$as_echo "$as_me: WARNING: You need to use GNU Make when compiling" >&2;} 17439fi 17440 17441