1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 8# Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137if test "x$CONFIG_SHELL" = x; then 138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 139 emulate sh 140 NULLCMD=: 141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 142 # is contrary to our usage. Disable this feature. 143 alias -g '\${1+\"\$@\"}'='\"\$@\"' 144 setopt NO_GLOB_SUBST 145else 146 case \`(set -o) 2>/dev/null\` in #( 147 *posix*) : 148 set -o posix ;; #( 149 *) : 150 ;; 151esac 152fi 153" 154 as_required="as_fn_return () { (exit \$1); } 155as_fn_success () { as_fn_return 0; } 156as_fn_failure () { as_fn_return 1; } 157as_fn_ret_success () { return 0; } 158as_fn_ret_failure () { return 1; } 159 160exitcode=0 161as_fn_success || { exitcode=1; echo as_fn_success failed.; } 162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 166 167else 168 exitcode=1; echo positional parameters were not saved. 169fi 170test x\$exitcode = x0 || exit 1" 171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 175 176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 180 PATH=/empty FPATH=/empty; export PATH FPATH 181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 183test \$(( 1 + 1 )) = 2 || exit 1" 184 if (eval "$as_required") 2>/dev/null; then : 185 as_have_required=yes 186else 187 as_have_required=no 188fi 189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 190 191else 192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 193as_found=false 194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 195do 196 IFS=$as_save_IFS 197 test -z "$as_dir" && as_dir=. 198 as_found=: 199 case $as_dir in #( 200 /*) 201 for as_base in sh bash ksh sh5; do 202 # Try only shells that exist, to save several forks. 203 as_shell=$as_dir/$as_base 204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 206 CONFIG_SHELL=$as_shell as_have_required=yes 207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 break 2 209fi 210fi 211 done;; 212 esac 213 as_found=false 214done 215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 217 CONFIG_SHELL=$SHELL as_have_required=yes 218fi; } 219IFS=$as_save_IFS 220 221 222 if test "x$CONFIG_SHELL" != x; then : 223 # We cannot yet assume a decent shell, so we have to provide a 224 # neutralization value for shells without unset; and this also 225 # works around shells that cannot unset nonexistent variables. 226 # Preserve -v and -x to the replacement shell. 227 BASH_ENV=/dev/null 228 ENV=/dev/null 229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 230 export CONFIG_SHELL 231 case $- in # (((( 232 *v*x* | *x*v* ) as_opts=-vx ;; 233 *v* ) as_opts=-v ;; 234 *x* ) as_opts=-x ;; 235 * ) as_opts= ;; 236 esac 237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 238fi 239 240 if test x$as_have_required = xno; then : 241 $as_echo "$0: This script requires a shell more modern than all" 242 $as_echo "$0: the shells that I found on your system." 243 if test x${ZSH_VERSION+set} = xset ; then 244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 245 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 246 else 247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 248$0: including any error possibly output before this 249$0: message. Then install a modern shell, or manually run 250$0: the script under such a shell if you do have one." 251 fi 252 exit 1 253fi 254fi 255fi 256SHELL=${CONFIG_SHELL-/bin/sh} 257export SHELL 258# Unset more variables known to interfere with behavior of common tools. 259CLICOLOR_FORCE= GREP_OPTIONS= 260unset CLICOLOR_FORCE GREP_OPTIONS 261 262## --------------------- ## 263## M4sh Shell Functions. ## 264## --------------------- ## 265# as_fn_unset VAR 266# --------------- 267# Portably unset VAR. 268as_fn_unset () 269{ 270 { eval $1=; unset $1;} 271} 272as_unset=as_fn_unset 273 274# as_fn_set_status STATUS 275# ----------------------- 276# Set $? to STATUS, without forking. 277as_fn_set_status () 278{ 279 return $1 280} # as_fn_set_status 281 282# as_fn_exit STATUS 283# ----------------- 284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 285as_fn_exit () 286{ 287 set +e 288 as_fn_set_status $1 289 exit $1 290} # as_fn_exit 291 292# as_fn_mkdir_p 293# ------------- 294# Create "$as_dir" as a directory, including parents if necessary. 295as_fn_mkdir_p () 296{ 297 298 case $as_dir in #( 299 -*) as_dir=./$as_dir;; 300 esac 301 test -d "$as_dir" || eval $as_mkdir_p || { 302 as_dirs= 303 while :; do 304 case $as_dir in #( 305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 306 *) as_qdir=$as_dir;; 307 esac 308 as_dirs="'$as_qdir' $as_dirs" 309 as_dir=`$as_dirname -- "$as_dir" || 310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 311 X"$as_dir" : 'X\(//\)[^/]' \| \ 312 X"$as_dir" : 'X\(//\)$' \| \ 313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 314$as_echo X"$as_dir" | 315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)[^/].*/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)$/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\).*/{ 328 s//\1/ 329 q 330 } 331 s/.*/./; q'` 332 test -d "$as_dir" && break 333 done 334 test -z "$as_dirs" || eval "mkdir $as_dirs" 335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 336 337 338} # as_fn_mkdir_p 339# as_fn_append VAR VALUE 340# ---------------------- 341# Append the text in VALUE to the end of the definition contained in VAR. Take 342# advantage of any shell optimizations that allow amortized linear growth over 343# repeated appends, instead of the typical quadratic growth present in naive 344# implementations. 345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 346 eval 'as_fn_append () 347 { 348 eval $1+=\$2 349 }' 350else 351 as_fn_append () 352 { 353 eval $1=\$$1\$2 354 } 355fi # as_fn_append 356 357# as_fn_arith ARG... 358# ------------------ 359# Perform arithmetic evaluation on the ARGs, and store the result in the 360# global $as_val. Take advantage of shells that can avoid forks. The arguments 361# must be portable across $(()) and expr. 362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 363 eval 'as_fn_arith () 364 { 365 as_val=$(( $* )) 366 }' 367else 368 as_fn_arith () 369 { 370 as_val=`expr "$@" || test $? -eq 1` 371 } 372fi # as_fn_arith 373 374 375# as_fn_error STATUS ERROR [LINENO LOG_FD] 376# ---------------------------------------- 377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 379# script with STATUS, using 1 if that was 0. 380as_fn_error () 381{ 382 as_status=$1; test $as_status -eq 0 && as_status=1 383 if test "$4"; then 384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 386 fi 387 $as_echo "$as_me: error: $2" >&2 388 as_fn_exit $as_status 389} # as_fn_error 390 391if expr a : '\(a\)' >/dev/null 2>&1 && 392 test "X`expr 00001 : '.*\(...\)'`" = X001; then 393 as_expr=expr 394else 395 as_expr=false 396fi 397 398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 399 as_basename=basename 400else 401 as_basename=false 402fi 403 404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 405 as_dirname=dirname 406else 407 as_dirname=false 408fi 409 410as_me=`$as_basename -- "$0" || 411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 412 X"$0" : 'X\(//\)$' \| \ 413 X"$0" : 'X\(/\)' \| . 2>/dev/null || 414$as_echo X/"$0" | 415 sed '/^.*\/\([^/][^/]*\)\/*$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\/\)$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\).*/{ 424 s//\1/ 425 q 426 } 427 s/.*/./; q'` 428 429# Avoid depending upon Character Ranges. 430as_cr_letters='abcdefghijklmnopqrstuvwxyz' 431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 432as_cr_Letters=$as_cr_letters$as_cr_LETTERS 433as_cr_digits='0123456789' 434as_cr_alnum=$as_cr_Letters$as_cr_digits 435 436 437 as_lineno_1=$LINENO as_lineno_1a=$LINENO 438 as_lineno_2=$LINENO as_lineno_2a=$LINENO 439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 442 sed -n ' 443 p 444 /[$]LINENO/= 445 ' <$as_myself | 446 sed ' 447 s/[$]LINENO.*/&-/ 448 t lineno 449 b 450 :lineno 451 N 452 :loop 453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 454 t loop 455 s/-\n.*// 456 ' >$as_me.lineno && 457 chmod +x "$as_me.lineno" || 458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 459 460 # Don't try to exec as it changes $[0], causing all sort of problems 461 # (the dirname of $[0] is not the place where we might find the 462 # original and so on. Autoconf is especially sensitive to this). 463 . "./$as_me.lineno" 464 # Exit status is that of the last command. 465 exit 466} 467 468ECHO_C= ECHO_N= ECHO_T= 469case `echo -n x` in #((((( 470-n*) 471 case `echo 'xy\c'` in 472 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 473 xy) ECHO_C='\c';; 474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 475 ECHO_T=' ';; 476 esac;; 477*) 478 ECHO_N='-n';; 479esac 480 481rm -f conf$$ conf$$.exe conf$$.file 482if test -d conf$$.dir; then 483 rm -f conf$$.dir/conf$$.file 484else 485 rm -f conf$$.dir 486 mkdir conf$$.dir 2>/dev/null 487fi 488if (echo >conf$$.file) 2>/dev/null; then 489 if ln -s conf$$.file conf$$ 2>/dev/null; then 490 as_ln_s='ln -s' 491 # ... but there are two gotchas: 492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 494 # In both cases, we have to default to `cp -p'. 495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 496 as_ln_s='cp -p' 497 elif ln conf$$.file conf$$ 2>/dev/null; then 498 as_ln_s=ln 499 else 500 as_ln_s='cp -p' 501 fi 502else 503 as_ln_s='cp -p' 504fi 505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 506rmdir conf$$.dir 2>/dev/null 507 508if mkdir -p . 2>/dev/null; then 509 as_mkdir_p='mkdir -p "$as_dir"' 510else 511 test -d ./-p && rmdir ./-p 512 as_mkdir_p=false 513fi 514 515if test -x / >/dev/null 2>&1; then 516 as_test_x='test -x' 517else 518 if ls -dL / >/dev/null 2>&1; then 519 as_ls_L_option=L 520 else 521 as_ls_L_option= 522 fi 523 as_test_x=' 524 eval sh -c '\'' 525 if test -d "$1"; then 526 test -d "$1/."; 527 else 528 case $1 in #( 529 -*)set "./$1";; 530 esac; 531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 532 ???[sx]*):;;*)false;;esac;fi 533 '\'' sh 534 ' 535fi 536as_executable_p=$as_test_x 537 538# Sed expression to map a string onto a valid CPP name. 539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 540 541# Sed expression to map a string onto a valid variable name. 542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 543 544SHELL=${CONFIG_SHELL-/bin/sh} 545 546 547test -n "$DJDIR" || exec 7<&0 </dev/null 548exec 6>&1 549 550# Name of the host. 551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 552# so uname gets run too. 553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 554 555# 556# Initializations. 557# 558ac_default_prefix=/usr/local 559ac_clean_files= 560ac_config_libobj_dir=. 561LIBOBJS= 562cross_compiling=no 563subdirs= 564MFLAGS= 565MAKEFLAGS= 566 567# Identity of this package. 568PACKAGE_NAME= 569PACKAGE_TARNAME= 570PACKAGE_VERSION= 571PACKAGE_STRING= 572PACKAGE_BUGREPORT= 573PACKAGE_URL= 574 575ac_unique_file="src/main.c" 576# Factoring default headers for most tests. 577ac_includes_default="\ 578#include <stdio.h> 579#ifdef HAVE_SYS_TYPES_H 580# include <sys/types.h> 581#endif 582#ifdef HAVE_SYS_STAT_H 583# include <sys/stat.h> 584#endif 585#ifdef STDC_HEADERS 586# include <stdlib.h> 587# include <stddef.h> 588#else 589# ifdef HAVE_STDLIB_H 590# include <stdlib.h> 591# endif 592#endif 593#ifdef HAVE_STRING_H 594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 595# include <memory.h> 596# endif 597# include <string.h> 598#endif 599#ifdef HAVE_STRINGS_H 600# include <strings.h> 601#endif 602#ifdef HAVE_INTTYPES_H 603# include <inttypes.h> 604#endif 605#ifdef HAVE_STDINT_H 606# include <stdint.h> 607#endif 608#ifdef HAVE_UNISTD_H 609# include <unistd.h> 610#endif" 611 612ac_subst_vars='am__EXEEXT_FALSE 613am__EXEEXT_TRUE 614LTLIBOBJS 615LIBOBJS 616HAVE_GROFF_FALSE 617HAVE_GROFF_TRUE 618ELK_LIBS 619ELK_LDFLAGS 620ELK_CFLAGS 621INCLUDES 622MOTIF_LIBS 623MOTIF_CFLAGS 624HAVE_MOTIF_FALSE 625HAVE_MOTIF_TRUE 626XAW_LIBS 627XAW_CFLAGS 628HAVE_XAW_FALSE 629HAVE_XAW_TRUE 630XT_LIBS 631XT_CFLAGS 632HAVE_XT_FALSE 633HAVE_XT_TRUE 634X_LIBS 635X_CFLAGS 636HAVE_X11_FALSE 637HAVE_X11_TRUE 638XMKMF 639HAVE_GDBM_FALSE 640HAVE_GDBM_TRUE 641HAVE_MONITOR_FALSE 642HAVE_MONITOR_TRUE 643HAVE_CXX_FALSE 644HAVE_CXX_TRUE 645ALLOCA 646HAVE_LIBELF_FALSE 647HAVE_LIBELF_TRUE 648STDINT_HEADER 649NATIVE_BUILD_FALSE 650NATIVE_BUILD_TRUE 651CXXCPP 652CPP 653OTOOL64 654OTOOL 655LIPO 656NMEDIT 657DSYMUTIL 658MANIFEST_TOOL 659RANLIB 660ac_ct_AR 661AR 662LN_S 663NM 664ac_ct_DUMPBIN 665DUMPBIN 666LD 667FGREP 668EGREP 669GREP 670SED 671LIBTOOL 672OBJDUMP 673DLLTOOL 674AS 675am__fastdepCXX_FALSE 676am__fastdepCXX_TRUE 677CXXDEPMODE 678ac_ct_CXX 679CXXFLAGS 680CXX 681am__fastdepCC_FALSE 682am__fastdepCC_TRUE 683CCDEPMODE 684AMDEPBACKSLASH 685AMDEP_FALSE 686AMDEP_TRUE 687am__quote 688am__include 689DEPDIR 690OBJEXT 691EXEEXT 692ac_ct_CC 693CPPFLAGS 694LDFLAGS 695CFLAGS 696CC 697am__untar 698am__tar 699AMTAR 700am__leading_dot 701SET_MAKE 702AWK 703mkdir_p 704MKDIR_P 705INSTALL_STRIP_PROGRAM 706STRIP 707install_sh 708MAKEINFO 709AUTOHEADER 710AUTOMAKE 711AUTOCONF 712ACLOCAL 713VERSION 714PACKAGE 715CYGPATH_W 716am__isrc 717INSTALL_DATA 718INSTALL_SCRIPT 719INSTALL_PROGRAM 720target_os 721target_vendor 722target_cpu 723target 724host_os 725host_vendor 726host_cpu 727host 728build_os 729build_vendor 730build_cpu 731build 732target_alias 733host_alias 734build_alias 735LIBS 736ECHO_T 737ECHO_N 738ECHO_C 739DEFS 740mandir 741localedir 742libdir 743psdir 744pdfdir 745dvidir 746htmldir 747infodir 748docdir 749oldincludedir 750includedir 751localstatedir 752sharedstatedir 753sysconfdir 754datadir 755datarootdir 756libexecdir 757sbindir 758bindir 759program_transform_name 760prefix 761exec_prefix 762PACKAGE_URL 763PACKAGE_BUGREPORT 764PACKAGE_STRING 765PACKAGE_VERSION 766PACKAGE_TARNAME 767PACKAGE_NAME 768PATH_SEPARATOR 769SHELL' 770ac_subst_files='' 771ac_user_opts=' 772enable_option_checking 773enable_dependency_tracking 774enable_shared 775enable_static 776with_pic 777enable_fast_install 778with_gnu_ld 779with_sysroot 780enable_libtool_lock 781with_x 782' 783 ac_precious_vars='build_alias 784host_alias 785target_alias 786CC 787CFLAGS 788LDFLAGS 789LIBS 790CPPFLAGS 791CXX 792CXXFLAGS 793CCC 794CPP 795CXXCPP 796XMKMF' 797 798 799# Initialize some variables set by options. 800ac_init_help= 801ac_init_version=false 802ac_unrecognized_opts= 803ac_unrecognized_sep= 804# The variables have the same names as the options, with 805# dashes changed to underlines. 806cache_file=/dev/null 807exec_prefix=NONE 808no_create= 809no_recursion= 810prefix=NONE 811program_prefix=NONE 812program_suffix=NONE 813program_transform_name=s,x,x, 814silent= 815site= 816srcdir= 817verbose= 818x_includes=NONE 819x_libraries=NONE 820 821# Installation directory options. 822# These are left unexpanded so users can "make install exec_prefix=/foo" 823# and all the variables that are supposed to be based on exec_prefix 824# by default will actually change. 825# Use braces instead of parens because sh, perl, etc. also accept them. 826# (The list follows the same order as the GNU Coding Standards.) 827bindir='${exec_prefix}/bin' 828sbindir='${exec_prefix}/sbin' 829libexecdir='${exec_prefix}/libexec' 830datarootdir='${prefix}/share' 831datadir='${datarootdir}' 832sysconfdir='${prefix}/etc' 833sharedstatedir='${prefix}/com' 834localstatedir='${prefix}/var' 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 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1088 ac_prev=sbindir ;; 1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1090 | --sbi=* | --sb=*) 1091 sbindir=$ac_optarg ;; 1092 1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1095 | --sharedst | --shareds | --shared | --share | --shar \ 1096 | --sha | --sh) 1097 ac_prev=sharedstatedir ;; 1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1101 | --sha=* | --sh=*) 1102 sharedstatedir=$ac_optarg ;; 1103 1104 -site | --site | --sit) 1105 ac_prev=site ;; 1106 -site=* | --site=* | --sit=*) 1107 site=$ac_optarg ;; 1108 1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1110 ac_prev=srcdir ;; 1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1112 srcdir=$ac_optarg ;; 1113 1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1115 | --syscon | --sysco | --sysc | --sys | --sy) 1116 ac_prev=sysconfdir ;; 1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1119 sysconfdir=$ac_optarg ;; 1120 1121 -target | --target | --targe | --targ | --tar | --ta | --t) 1122 ac_prev=target_alias ;; 1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1124 target_alias=$ac_optarg ;; 1125 1126 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1127 verbose=yes ;; 1128 1129 -version | --version | --versio | --versi | --vers | -V) 1130 ac_init_version=: ;; 1131 1132 -with-* | --with-*) 1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1134 # Reject names that are not valid shell variable names. 1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1136 as_fn_error $? "invalid package name: $ac_useropt" 1137 ac_useropt_orig=$ac_useropt 1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1139 case $ac_user_opts in 1140 *" 1141"with_$ac_useropt" 1142"*) ;; 1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1144 ac_unrecognized_sep=', ';; 1145 esac 1146 eval with_$ac_useropt=\$ac_optarg ;; 1147 1148 -without-* | --without-*) 1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1150 # Reject names that are not valid shell variable names. 1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1152 as_fn_error $? "invalid package name: $ac_useropt" 1153 ac_useropt_orig=$ac_useropt 1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1155 case $ac_user_opts in 1156 *" 1157"with_$ac_useropt" 1158"*) ;; 1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1160 ac_unrecognized_sep=', ';; 1161 esac 1162 eval with_$ac_useropt=no ;; 1163 1164 --x) 1165 # Obsolete; use --with-x. 1166 with_x=yes ;; 1167 1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1169 | --x-incl | --x-inc | --x-in | --x-i) 1170 ac_prev=x_includes ;; 1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1173 x_includes=$ac_optarg ;; 1174 1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1177 ac_prev=x_libraries ;; 1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1180 x_libraries=$ac_optarg ;; 1181 1182 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1183Try \`$0 --help' for more information" 1184 ;; 1185 1186 *=*) 1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1188 # Reject names that are not valid shell variable names. 1189 case $ac_envvar in #( 1190 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1191 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1192 esac 1193 eval $ac_envvar=\$ac_optarg 1194 export $ac_envvar ;; 1195 1196 *) 1197 # FIXME: should be removed in autoconf 3.0. 1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1201 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1202 ;; 1203 1204 esac 1205done 1206 1207if test -n "$ac_prev"; then 1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1209 as_fn_error $? "missing argument to $ac_option" 1210fi 1211 1212if test -n "$ac_unrecognized_opts"; then 1213 case $enable_option_checking in 1214 no) ;; 1215 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1217 esac 1218fi 1219 1220# Check all directory arguments for consistency. 1221for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1222 datadir sysconfdir sharedstatedir localstatedir includedir \ 1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1224 libdir localedir mandir 1225do 1226 eval ac_val=\$$ac_var 1227 # Remove trailing slashes. 1228 case $ac_val in 1229 */ ) 1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1231 eval $ac_var=\$ac_val;; 1232 esac 1233 # Be sure to have absolute directory names. 1234 case $ac_val in 1235 [\\/$]* | ?:[\\/]* ) continue;; 1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1237 esac 1238 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1239done 1240 1241# There might be people who depend on the old broken behavior: `$host' 1242# used to hold the argument of --host etc. 1243# FIXME: To remove some day. 1244build=$build_alias 1245host=$host_alias 1246target=$target_alias 1247 1248# FIXME: To remove some day. 1249if test "x$host_alias" != x; then 1250 if test "x$build_alias" = x; then 1251 cross_compiling=maybe 1252 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1253 If a cross compiler is detected then cross compile mode will be used" >&2 1254 elif test "x$build_alias" != "x$host_alias"; then 1255 cross_compiling=yes 1256 fi 1257fi 1258 1259ac_tool_prefix= 1260test -n "$host_alias" && ac_tool_prefix=$host_alias- 1261 1262test "$silent" = yes && exec 6>/dev/null 1263 1264 1265ac_pwd=`pwd` && test -n "$ac_pwd" && 1266ac_ls_di=`ls -di .` && 1267ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1268 as_fn_error $? "working directory cannot be determined" 1269test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1270 as_fn_error $? "pwd does not report name of working directory" 1271 1272 1273# Find the source files, if location was not specified. 1274if test -z "$srcdir"; then 1275 ac_srcdir_defaulted=yes 1276 # Try the directory containing this script, then the parent directory. 1277 ac_confdir=`$as_dirname -- "$as_myself" || 1278$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1279 X"$as_myself" : 'X\(//\)[^/]' \| \ 1280 X"$as_myself" : 'X\(//\)$' \| \ 1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1282$as_echo X"$as_myself" | 1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1284 s//\1/ 1285 q 1286 } 1287 /^X\(\/\/\)[^/].*/{ 1288 s//\1/ 1289 q 1290 } 1291 /^X\(\/\/\)$/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\).*/{ 1296 s//\1/ 1297 q 1298 } 1299 s/.*/./; q'` 1300 srcdir=$ac_confdir 1301 if test ! -r "$srcdir/$ac_unique_file"; then 1302 srcdir=.. 1303 fi 1304else 1305 ac_srcdir_defaulted=no 1306fi 1307if test ! -r "$srcdir/$ac_unique_file"; then 1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1309 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1310fi 1311ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1312ac_abs_confdir=`( 1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1314 pwd)` 1315# When building in place, set srcdir=. 1316if test "$ac_abs_confdir" = "$ac_pwd"; then 1317 srcdir=. 1318fi 1319# Remove unnecessary trailing slashes from srcdir. 1320# Double slashes in file names in object file debugging info 1321# mess up M-x gdb in Emacs. 1322case $srcdir in 1323*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1324esac 1325for ac_var in $ac_precious_vars; do 1326 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1327 eval ac_env_${ac_var}_value=\$${ac_var} 1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1329 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1330done 1331 1332# 1333# Report the --help message. 1334# 1335if test "$ac_init_help" = "long"; then 1336 # Omit some internal or obsolete options to make the list less imposing. 1337 # This message is too long to be a string in the A/UX 3.1 sh. 1338 cat <<_ACEOF 1339\`configure' configures this package to adapt to many kinds of systems. 1340 1341Usage: $0 [OPTION]... [VAR=VALUE]... 1342 1343To assign environment variables (e.g., CC, CFLAGS...), specify them as 1344VAR=VALUE. See below for descriptions of some of the useful variables. 1345 1346Defaults for the options are specified in brackets. 1347 1348Configuration: 1349 -h, --help display this help and exit 1350 --help=short display options specific to this package 1351 --help=recursive display the short help of all the included packages 1352 -V, --version display version information and exit 1353 -q, --quiet, --silent do not print \`checking ...' messages 1354 --cache-file=FILE cache test results in FILE [disabled] 1355 -C, --config-cache alias for \`--cache-file=config.cache' 1356 -n, --no-create do not create output files 1357 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1358 1359Installation directories: 1360 --prefix=PREFIX install architecture-independent files in PREFIX 1361 [$ac_default_prefix] 1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1363 [PREFIX] 1364 1365By default, \`make install' will install all the files in 1366\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1367an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1368for instance \`--prefix=\$HOME'. 1369 1370For better control, use the options below. 1371 1372Fine tuning of the installation directories: 1373 --bindir=DIR user executables [EPREFIX/bin] 1374 --sbindir=DIR system admin executables [EPREFIX/sbin] 1375 --libexecdir=DIR program executables [EPREFIX/libexec] 1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1379 --libdir=DIR object code libraries [EPREFIX/lib] 1380 --includedir=DIR C header files [PREFIX/include] 1381 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1384 --infodir=DIR info documentation [DATAROOTDIR/info] 1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1386 --mandir=DIR man documentation [DATAROOTDIR/man] 1387 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1388 --htmldir=DIR html documentation [DOCDIR] 1389 --dvidir=DIR dvi documentation [DOCDIR] 1390 --pdfdir=DIR pdf documentation [DOCDIR] 1391 --psdir=DIR ps documentation [DOCDIR] 1392_ACEOF 1393 1394 cat <<\_ACEOF 1395 1396Program names: 1397 --program-prefix=PREFIX prepend PREFIX to installed program names 1398 --program-suffix=SUFFIX append SUFFIX to installed program names 1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1400 1401X features: 1402 --x-includes=DIR X include files are in DIR 1403 --x-libraries=DIR X library files are in DIR 1404 1405System types: 1406 --build=BUILD configure for building on BUILD [guessed] 1407 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1408 --target=TARGET configure for building compilers for TARGET [HOST] 1409_ACEOF 1410fi 1411 1412if test -n "$ac_init_help"; then 1413 1414 cat <<\_ACEOF 1415 1416Optional Features: 1417 --disable-option-checking ignore unrecognized --enable/--with options 1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1420 --disable-dependency-tracking speeds up one-time build 1421 --enable-dependency-tracking do not reject slow dependency extractors 1422 --enable-shared[=PKGS] build shared libraries [default=yes] 1423 --enable-static[=PKGS] build static libraries [default=yes] 1424 --enable-fast-install[=PKGS] 1425 optimize for fast installation [default=yes] 1426 --disable-libtool-lock avoid locking (might break parallel builds) 1427 1428Optional Packages: 1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1431 --with-pic try to use only PIC/non-PIC objects [default=use 1432 both] 1433 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1434 --with-sysroot=DIR Search for dependent libraries within DIR 1435 (or the compiler's sysroot if not specified). 1436 --with-x use the X Window System 1437 1438Some influential environment variables: 1439 CC C compiler command 1440 CFLAGS C compiler flags 1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1442 nonstandard directory <lib dir> 1443 LIBS libraries to pass to the linker, e.g. -l<library> 1444 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1445 you have headers in a nonstandard directory <include dir> 1446 CXX C++ compiler command 1447 CXXFLAGS C++ compiler flags 1448 CPP C preprocessor 1449 CXXCPP C++ preprocessor 1450 XMKMF Path to xmkmf, Makefile generator for X Window System 1451 1452Use these variables to override the choices made by `configure' or to help 1453it to find libraries and programs with nonstandard names/locations. 1454 1455Report bugs to the package provider. 1456_ACEOF 1457ac_status=$? 1458fi 1459 1460if test "$ac_init_help" = "recursive"; then 1461 # If there are subdirs, report their specific --help. 1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1463 test -d "$ac_dir" || 1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1465 continue 1466 ac_builddir=. 1467 1468case "$ac_dir" in 1469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1470*) 1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1472 # A ".." for each directory in $ac_dir_suffix. 1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1474 case $ac_top_builddir_sub in 1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1477 esac ;; 1478esac 1479ac_abs_top_builddir=$ac_pwd 1480ac_abs_builddir=$ac_pwd$ac_dir_suffix 1481# for backward compatibility: 1482ac_top_builddir=$ac_top_build_prefix 1483 1484case $srcdir in 1485 .) # We are building in place. 1486 ac_srcdir=. 1487 ac_top_srcdir=$ac_top_builddir_sub 1488 ac_abs_top_srcdir=$ac_pwd ;; 1489 [\\/]* | ?:[\\/]* ) # Absolute name. 1490 ac_srcdir=$srcdir$ac_dir_suffix; 1491 ac_top_srcdir=$srcdir 1492 ac_abs_top_srcdir=$srcdir ;; 1493 *) # Relative name. 1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1495 ac_top_srcdir=$ac_top_build_prefix$srcdir 1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1497esac 1498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1499 1500 cd "$ac_dir" || { ac_status=$?; continue; } 1501 # Check for guested configure. 1502 if test -f "$ac_srcdir/configure.gnu"; then 1503 echo && 1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1505 elif test -f "$ac_srcdir/configure"; then 1506 echo && 1507 $SHELL "$ac_srcdir/configure" --help=recursive 1508 else 1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1510 fi || ac_status=$? 1511 cd "$ac_pwd" || { ac_status=$?; break; } 1512 done 1513fi 1514 1515test -n "$ac_init_help" && exit $ac_status 1516if $ac_init_version; then 1517 cat <<\_ACEOF 1518configure 1519generated by GNU Autoconf 2.68 1520 1521Copyright (C) 2010 Free Software Foundation, Inc. 1522This configure script is free software; the Free Software Foundation 1523gives unlimited permission to copy, distribute and modify it. 1524_ACEOF 1525 exit 1526fi 1527 1528## ------------------------ ## 1529## Autoconf initialization. ## 1530## ------------------------ ## 1531 1532# ac_fn_c_try_compile LINENO 1533# -------------------------- 1534# Try to compile conftest.$ac_ext, and return whether this succeeded. 1535ac_fn_c_try_compile () 1536{ 1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1538 rm -f conftest.$ac_objext 1539 if { { ac_try="$ac_compile" 1540case "(($ac_try" in 1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1542 *) ac_try_echo=$ac_try;; 1543esac 1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1545$as_echo "$ac_try_echo"; } >&5 1546 (eval "$ac_compile") 2>conftest.err 1547 ac_status=$? 1548 if test -s conftest.err; then 1549 grep -v '^ *+' conftest.err >conftest.er1 1550 cat conftest.er1 >&5 1551 mv -f conftest.er1 conftest.err 1552 fi 1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1554 test $ac_status = 0; } && { 1555 test -z "$ac_c_werror_flag" || 1556 test ! -s conftest.err 1557 } && test -s conftest.$ac_objext; then : 1558 ac_retval=0 1559else 1560 $as_echo "$as_me: failed program was:" >&5 1561sed 's/^/| /' conftest.$ac_ext >&5 1562 1563 ac_retval=1 1564fi 1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1566 as_fn_set_status $ac_retval 1567 1568} # ac_fn_c_try_compile 1569 1570# ac_fn_cxx_try_compile LINENO 1571# ---------------------------- 1572# Try to compile conftest.$ac_ext, and return whether this succeeded. 1573ac_fn_cxx_try_compile () 1574{ 1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1576 rm -f conftest.$ac_objext 1577 if { { ac_try="$ac_compile" 1578case "(($ac_try" in 1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1580 *) ac_try_echo=$ac_try;; 1581esac 1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1583$as_echo "$ac_try_echo"; } >&5 1584 (eval "$ac_compile") 2>conftest.err 1585 ac_status=$? 1586 if test -s conftest.err; then 1587 grep -v '^ *+' conftest.err >conftest.er1 1588 cat conftest.er1 >&5 1589 mv -f conftest.er1 conftest.err 1590 fi 1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1592 test $ac_status = 0; } && { 1593 test -z "$ac_cxx_werror_flag" || 1594 test ! -s conftest.err 1595 } && test -s conftest.$ac_objext; then : 1596 ac_retval=0 1597else 1598 $as_echo "$as_me: failed program was:" >&5 1599sed 's/^/| /' conftest.$ac_ext >&5 1600 1601 ac_retval=1 1602fi 1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1604 as_fn_set_status $ac_retval 1605 1606} # ac_fn_cxx_try_compile 1607 1608# ac_fn_c_try_link LINENO 1609# ----------------------- 1610# Try to link conftest.$ac_ext, and return whether this succeeded. 1611ac_fn_c_try_link () 1612{ 1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1614 rm -f conftest.$ac_objext conftest$ac_exeext 1615 if { { ac_try="$ac_link" 1616case "(($ac_try" in 1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1618 *) ac_try_echo=$ac_try;; 1619esac 1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1621$as_echo "$ac_try_echo"; } >&5 1622 (eval "$ac_link") 2>conftest.err 1623 ac_status=$? 1624 if test -s conftest.err; then 1625 grep -v '^ *+' conftest.err >conftest.er1 1626 cat conftest.er1 >&5 1627 mv -f conftest.er1 conftest.err 1628 fi 1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1630 test $ac_status = 0; } && { 1631 test -z "$ac_c_werror_flag" || 1632 test ! -s conftest.err 1633 } && test -s conftest$ac_exeext && { 1634 test "$cross_compiling" = yes || 1635 $as_test_x conftest$ac_exeext 1636 }; then : 1637 ac_retval=0 1638else 1639 $as_echo "$as_me: failed program was:" >&5 1640sed 's/^/| /' conftest.$ac_ext >&5 1641 1642 ac_retval=1 1643fi 1644 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1645 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1646 # interfere with the next link command; also delete a directory that is 1647 # left behind by Apple's compiler. We do this before executing the actions. 1648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1650 as_fn_set_status $ac_retval 1651 1652} # ac_fn_c_try_link 1653 1654# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1655# ------------------------------------------------------- 1656# Tests whether HEADER exists and can be compiled using the include files in 1657# INCLUDES, setting the cache variable VAR accordingly. 1658ac_fn_c_check_header_compile () 1659{ 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1662$as_echo_n "checking for $2... " >&6; } 1663if eval \${$3+:} false; then : 1664 $as_echo_n "(cached) " >&6 1665else 1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1667/* end confdefs.h. */ 1668$4 1669#include <$2> 1670_ACEOF 1671if ac_fn_c_try_compile "$LINENO"; then : 1672 eval "$3=yes" 1673else 1674 eval "$3=no" 1675fi 1676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1677fi 1678eval ac_res=\$$3 1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1680$as_echo "$ac_res" >&6; } 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1682 1683} # ac_fn_c_check_header_compile 1684 1685# ac_fn_c_try_cpp LINENO 1686# ---------------------- 1687# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1688ac_fn_c_try_cpp () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 if { { ac_try="$ac_cpp conftest.$ac_ext" 1692case "(($ac_try" in 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694 *) ac_try_echo=$ac_try;; 1695esac 1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697$as_echo "$ac_try_echo"; } >&5 1698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1699 ac_status=$? 1700 if test -s conftest.err; then 1701 grep -v '^ *+' conftest.err >conftest.er1 1702 cat conftest.er1 >&5 1703 mv -f conftest.er1 conftest.err 1704 fi 1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1706 test $ac_status = 0; } > conftest.i && { 1707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1708 test ! -s conftest.err 1709 }; then : 1710 ac_retval=0 1711else 1712 $as_echo "$as_me: failed program was:" >&5 1713sed 's/^/| /' conftest.$ac_ext >&5 1714 1715 ac_retval=1 1716fi 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 as_fn_set_status $ac_retval 1719 1720} # ac_fn_c_try_cpp 1721 1722# ac_fn_c_try_run LINENO 1723# ---------------------- 1724# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1725# that executables *can* be run. 1726ac_fn_c_try_run () 1727{ 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 if { { ac_try="$ac_link" 1730case "(($ac_try" in 1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1732 *) ac_try_echo=$ac_try;; 1733esac 1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1735$as_echo "$ac_try_echo"; } >&5 1736 (eval "$ac_link") 2>&5 1737 ac_status=$? 1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1739 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1740 { { case "(($ac_try" in 1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1742 *) ac_try_echo=$ac_try;; 1743esac 1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1745$as_echo "$ac_try_echo"; } >&5 1746 (eval "$ac_try") 2>&5 1747 ac_status=$? 1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1749 test $ac_status = 0; }; }; then : 1750 ac_retval=0 1751else 1752 $as_echo "$as_me: program exited with status $ac_status" >&5 1753 $as_echo "$as_me: failed program was:" >&5 1754sed 's/^/| /' conftest.$ac_ext >&5 1755 1756 ac_retval=$ac_status 1757fi 1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1760 as_fn_set_status $ac_retval 1761 1762} # ac_fn_c_try_run 1763 1764# ac_fn_c_check_func LINENO FUNC VAR 1765# ---------------------------------- 1766# Tests whether FUNC exists, setting the cache variable VAR accordingly 1767ac_fn_c_check_func () 1768{ 1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1771$as_echo_n "checking for $2... " >&6; } 1772if eval \${$3+:} false; then : 1773 $as_echo_n "(cached) " >&6 1774else 1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1776/* end confdefs.h. */ 1777/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1778 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1779#define $2 innocuous_$2 1780 1781/* System header to define __stub macros and hopefully few prototypes, 1782 which can conflict with char $2 (); below. 1783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1784 <limits.h> exists even on freestanding compilers. */ 1785 1786#ifdef __STDC__ 1787# include <limits.h> 1788#else 1789# include <assert.h> 1790#endif 1791 1792#undef $2 1793 1794/* Override any GCC internal prototype to avoid an error. 1795 Use char because int might match the return type of a GCC 1796 builtin and then its argument prototype would still apply. */ 1797#ifdef __cplusplus 1798extern "C" 1799#endif 1800char $2 (); 1801/* The GNU C library defines this for functions which it implements 1802 to always fail with ENOSYS. Some functions are actually named 1803 something starting with __ and the normal name is an alias. */ 1804#if defined __stub_$2 || defined __stub___$2 1805choke me 1806#endif 1807 1808int 1809main () 1810{ 1811return $2 (); 1812 ; 1813 return 0; 1814} 1815_ACEOF 1816if ac_fn_c_try_link "$LINENO"; then : 1817 eval "$3=yes" 1818else 1819 eval "$3=no" 1820fi 1821rm -f core conftest.err conftest.$ac_objext \ 1822 conftest$ac_exeext conftest.$ac_ext 1823fi 1824eval ac_res=\$$3 1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1826$as_echo "$ac_res" >&6; } 1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1828 1829} # ac_fn_c_check_func 1830 1831# ac_fn_cxx_try_cpp LINENO 1832# ------------------------ 1833# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1834ac_fn_cxx_try_cpp () 1835{ 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 if { { ac_try="$ac_cpp conftest.$ac_ext" 1838case "(($ac_try" in 1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1840 *) ac_try_echo=$ac_try;; 1841esac 1842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1843$as_echo "$ac_try_echo"; } >&5 1844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1845 ac_status=$? 1846 if test -s conftest.err; then 1847 grep -v '^ *+' conftest.err >conftest.er1 1848 cat conftest.er1 >&5 1849 mv -f conftest.er1 conftest.err 1850 fi 1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1852 test $ac_status = 0; } > conftest.i && { 1853 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1854 test ! -s conftest.err 1855 }; then : 1856 ac_retval=0 1857else 1858 $as_echo "$as_me: failed program was:" >&5 1859sed 's/^/| /' conftest.$ac_ext >&5 1860 1861 ac_retval=1 1862fi 1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1864 as_fn_set_status $ac_retval 1865 1866} # ac_fn_cxx_try_cpp 1867 1868# ac_fn_cxx_try_link LINENO 1869# ------------------------- 1870# Try to link conftest.$ac_ext, and return whether this succeeded. 1871ac_fn_cxx_try_link () 1872{ 1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1874 rm -f conftest.$ac_objext conftest$ac_exeext 1875 if { { ac_try="$ac_link" 1876case "(($ac_try" in 1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1878 *) ac_try_echo=$ac_try;; 1879esac 1880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1881$as_echo "$ac_try_echo"; } >&5 1882 (eval "$ac_link") 2>conftest.err 1883 ac_status=$? 1884 if test -s conftest.err; then 1885 grep -v '^ *+' conftest.err >conftest.er1 1886 cat conftest.er1 >&5 1887 mv -f conftest.er1 conftest.err 1888 fi 1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1890 test $ac_status = 0; } && { 1891 test -z "$ac_cxx_werror_flag" || 1892 test ! -s conftest.err 1893 } && test -s conftest$ac_exeext && { 1894 test "$cross_compiling" = yes || 1895 $as_test_x conftest$ac_exeext 1896 }; then : 1897 ac_retval=0 1898else 1899 $as_echo "$as_me: failed program was:" >&5 1900sed 's/^/| /' conftest.$ac_ext >&5 1901 1902 ac_retval=1 1903fi 1904 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1905 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1906 # interfere with the next link command; also delete a directory that is 1907 # left behind by Apple's compiler. We do this before executing the actions. 1908 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1910 as_fn_set_status $ac_retval 1911 1912} # ac_fn_cxx_try_link 1913 1914# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1915# ------------------------------------------- 1916# Tests whether TYPE exists after having included INCLUDES, setting cache 1917# variable VAR accordingly. 1918ac_fn_c_check_type () 1919{ 1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1922$as_echo_n "checking for $2... " >&6; } 1923if eval \${$3+:} false; then : 1924 $as_echo_n "(cached) " >&6 1925else 1926 eval "$3=no" 1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1928/* end confdefs.h. */ 1929$4 1930int 1931main () 1932{ 1933if (sizeof ($2)) 1934 return 0; 1935 ; 1936 return 0; 1937} 1938_ACEOF 1939if ac_fn_c_try_compile "$LINENO"; then : 1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1941/* end confdefs.h. */ 1942$4 1943int 1944main () 1945{ 1946if (sizeof (($2))) 1947 return 0; 1948 ; 1949 return 0; 1950} 1951_ACEOF 1952if ac_fn_c_try_compile "$LINENO"; then : 1953 1954else 1955 eval "$3=yes" 1956fi 1957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1958fi 1959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1960fi 1961eval ac_res=\$$3 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1963$as_echo "$ac_res" >&6; } 1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1965 1966} # ac_fn_c_check_type 1967 1968# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1969# ------------------------------------------------------- 1970# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1971# the include files in INCLUDES and setting the cache variable VAR 1972# accordingly. 1973ac_fn_c_check_header_mongrel () 1974{ 1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1976 if eval \${$3+:} false; then : 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1978$as_echo_n "checking for $2... " >&6; } 1979if eval \${$3+:} false; then : 1980 $as_echo_n "(cached) " >&6 1981fi 1982eval ac_res=\$$3 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1984$as_echo "$ac_res" >&6; } 1985else 1986 # Is the header compilable? 1987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1988$as_echo_n "checking $2 usability... " >&6; } 1989cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1990/* end confdefs.h. */ 1991$4 1992#include <$2> 1993_ACEOF 1994if ac_fn_c_try_compile "$LINENO"; then : 1995 ac_header_compiler=yes 1996else 1997 ac_header_compiler=no 1998fi 1999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2001$as_echo "$ac_header_compiler" >&6; } 2002 2003# Is the header present? 2004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2005$as_echo_n "checking $2 presence... " >&6; } 2006cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2007/* end confdefs.h. */ 2008#include <$2> 2009_ACEOF 2010if ac_fn_c_try_cpp "$LINENO"; then : 2011 ac_header_preproc=yes 2012else 2013 ac_header_preproc=no 2014fi 2015rm -f conftest.err conftest.i conftest.$ac_ext 2016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2017$as_echo "$ac_header_preproc" >&6; } 2018 2019# So? What about this header? 2020case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2021 yes:no: ) 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2023$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2025$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2026 ;; 2027 no:yes:* ) 2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2029$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2031$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2033$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2035$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2037$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2038 ;; 2039esac 2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2041$as_echo_n "checking for $2... " >&6; } 2042if eval \${$3+:} false; then : 2043 $as_echo_n "(cached) " >&6 2044else 2045 eval "$3=\$ac_header_compiler" 2046fi 2047eval ac_res=\$$3 2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2049$as_echo "$ac_res" >&6; } 2050fi 2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2052 2053} # ac_fn_c_check_header_mongrel 2054cat >config.log <<_ACEOF 2055This file contains any messages produced by compilers while 2056running configure, to aid debugging if configure makes a mistake. 2057 2058It was created by $as_me, which was 2059generated by GNU Autoconf 2.68. Invocation command line was 2060 2061 $ $0 $@ 2062 2063_ACEOF 2064exec 5>>config.log 2065{ 2066cat <<_ASUNAME 2067## --------- ## 2068## Platform. ## 2069## --------- ## 2070 2071hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2072uname -m = `(uname -m) 2>/dev/null || echo unknown` 2073uname -r = `(uname -r) 2>/dev/null || echo unknown` 2074uname -s = `(uname -s) 2>/dev/null || echo unknown` 2075uname -v = `(uname -v) 2>/dev/null || echo unknown` 2076 2077/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2078/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2079 2080/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2081/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2082/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2083/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2084/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2085/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2086/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2087 2088_ASUNAME 2089 2090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2091for as_dir in $PATH 2092do 2093 IFS=$as_save_IFS 2094 test -z "$as_dir" && as_dir=. 2095 $as_echo "PATH: $as_dir" 2096 done 2097IFS=$as_save_IFS 2098 2099} >&5 2100 2101cat >&5 <<_ACEOF 2102 2103 2104## ----------- ## 2105## Core tests. ## 2106## ----------- ## 2107 2108_ACEOF 2109 2110 2111# Keep a trace of the command line. 2112# Strip out --no-create and --no-recursion so they do not pile up. 2113# Strip out --silent because we don't want to record it for future runs. 2114# Also quote any args containing shell meta-characters. 2115# Make two passes to allow for proper duplicate-argument suppression. 2116ac_configure_args= 2117ac_configure_args0= 2118ac_configure_args1= 2119ac_must_keep_next=false 2120for ac_pass in 1 2 2121do 2122 for ac_arg 2123 do 2124 case $ac_arg in 2125 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2127 | -silent | --silent | --silen | --sile | --sil) 2128 continue ;; 2129 *\'*) 2130 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2131 esac 2132 case $ac_pass in 2133 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2134 2) 2135 as_fn_append ac_configure_args1 " '$ac_arg'" 2136 if test $ac_must_keep_next = true; then 2137 ac_must_keep_next=false # Got value, back to normal. 2138 else 2139 case $ac_arg in 2140 *=* | --config-cache | -C | -disable-* | --disable-* \ 2141 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2142 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2143 | -with-* | --with-* | -without-* | --without-* | --x) 2144 case "$ac_configure_args0 " in 2145 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2146 esac 2147 ;; 2148 -* ) ac_must_keep_next=true ;; 2149 esac 2150 fi 2151 as_fn_append ac_configure_args " '$ac_arg'" 2152 ;; 2153 esac 2154 done 2155done 2156{ ac_configure_args0=; unset ac_configure_args0;} 2157{ ac_configure_args1=; unset ac_configure_args1;} 2158 2159# When interrupted or exit'd, cleanup temporary files, and complete 2160# config.log. We remove comments because anyway the quotes in there 2161# would cause problems or look ugly. 2162# WARNING: Use '\'' to represent an apostrophe within the trap. 2163# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2164trap 'exit_status=$? 2165 # Save into config.log some information that might help in debugging. 2166 { 2167 echo 2168 2169 $as_echo "## ---------------- ## 2170## Cache variables. ## 2171## ---------------- ##" 2172 echo 2173 # The following way of writing the cache mishandles newlines in values, 2174( 2175 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2176 eval ac_val=\$$ac_var 2177 case $ac_val in #( 2178 *${as_nl}*) 2179 case $ac_var in #( 2180 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2181$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2182 esac 2183 case $ac_var in #( 2184 _ | IFS | as_nl) ;; #( 2185 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2186 *) { eval $ac_var=; unset $ac_var;} ;; 2187 esac ;; 2188 esac 2189 done 2190 (set) 2>&1 | 2191 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2192 *${as_nl}ac_space=\ *) 2193 sed -n \ 2194 "s/'\''/'\''\\\\'\'''\''/g; 2195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2196 ;; #( 2197 *) 2198 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2199 ;; 2200 esac | 2201 sort 2202) 2203 echo 2204 2205 $as_echo "## ----------------- ## 2206## Output variables. ## 2207## ----------------- ##" 2208 echo 2209 for ac_var in $ac_subst_vars 2210 do 2211 eval ac_val=\$$ac_var 2212 case $ac_val in 2213 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2214 esac 2215 $as_echo "$ac_var='\''$ac_val'\''" 2216 done | sort 2217 echo 2218 2219 if test -n "$ac_subst_files"; then 2220 $as_echo "## ------------------- ## 2221## File substitutions. ## 2222## ------------------- ##" 2223 echo 2224 for ac_var in $ac_subst_files 2225 do 2226 eval ac_val=\$$ac_var 2227 case $ac_val in 2228 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2229 esac 2230 $as_echo "$ac_var='\''$ac_val'\''" 2231 done | sort 2232 echo 2233 fi 2234 2235 if test -s confdefs.h; then 2236 $as_echo "## ----------- ## 2237## confdefs.h. ## 2238## ----------- ##" 2239 echo 2240 cat confdefs.h 2241 echo 2242 fi 2243 test "$ac_signal" != 0 && 2244 $as_echo "$as_me: caught signal $ac_signal" 2245 $as_echo "$as_me: exit $exit_status" 2246 } >&5 2247 rm -f core *.core core.conftest.* && 2248 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2249 exit $exit_status 2250' 0 2251for ac_signal in 1 2 13 15; do 2252 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2253done 2254ac_signal=0 2255 2256# confdefs.h avoids OS command line length limits that DEFS can exceed. 2257rm -f -r conftest* confdefs.h 2258 2259$as_echo "/* confdefs.h */" > confdefs.h 2260 2261# Predefined preprocessor variables. 2262 2263cat >>confdefs.h <<_ACEOF 2264#define PACKAGE_NAME "$PACKAGE_NAME" 2265_ACEOF 2266 2267cat >>confdefs.h <<_ACEOF 2268#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2269_ACEOF 2270 2271cat >>confdefs.h <<_ACEOF 2272#define PACKAGE_VERSION "$PACKAGE_VERSION" 2273_ACEOF 2274 2275cat >>confdefs.h <<_ACEOF 2276#define PACKAGE_STRING "$PACKAGE_STRING" 2277_ACEOF 2278 2279cat >>confdefs.h <<_ACEOF 2280#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2281_ACEOF 2282 2283cat >>confdefs.h <<_ACEOF 2284#define PACKAGE_URL "$PACKAGE_URL" 2285_ACEOF 2286 2287 2288# Let the site file select an alternate cache file if it wants to. 2289# Prefer an explicitly selected file to automatically selected ones. 2290ac_site_file1=NONE 2291ac_site_file2=NONE 2292if test -n "$CONFIG_SITE"; then 2293 # We do not want a PATH search for config.site. 2294 case $CONFIG_SITE in #(( 2295 -*) ac_site_file1=./$CONFIG_SITE;; 2296 */*) ac_site_file1=$CONFIG_SITE;; 2297 *) ac_site_file1=./$CONFIG_SITE;; 2298 esac 2299elif test "x$prefix" != xNONE; then 2300 ac_site_file1=$prefix/share/config.site 2301 ac_site_file2=$prefix/etc/config.site 2302else 2303 ac_site_file1=$ac_default_prefix/share/config.site 2304 ac_site_file2=$ac_default_prefix/etc/config.site 2305fi 2306for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2307do 2308 test "x$ac_site_file" = xNONE && continue 2309 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2311$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2312 sed 's/^/| /' "$ac_site_file" >&5 2313 . "$ac_site_file" \ 2314 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2316as_fn_error $? "failed to load site script $ac_site_file 2317See \`config.log' for more details" "$LINENO" 5; } 2318 fi 2319done 2320 2321if test -r "$cache_file"; then 2322 # Some versions of bash will fail to source /dev/null (special files 2323 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2324 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2326$as_echo "$as_me: loading cache $cache_file" >&6;} 2327 case $cache_file in 2328 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2329 *) . "./$cache_file";; 2330 esac 2331 fi 2332else 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2334$as_echo "$as_me: creating cache $cache_file" >&6;} 2335 >$cache_file 2336fi 2337 2338# Check that the precious variables saved in the cache have kept the same 2339# value. 2340ac_cache_corrupted=false 2341for ac_var in $ac_precious_vars; do 2342 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2343 eval ac_new_set=\$ac_env_${ac_var}_set 2344 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2345 eval ac_new_val=\$ac_env_${ac_var}_value 2346 case $ac_old_set,$ac_new_set in 2347 set,) 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2349$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2350 ac_cache_corrupted=: ;; 2351 ,set) 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2353$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2354 ac_cache_corrupted=: ;; 2355 ,);; 2356 *) 2357 if test "x$ac_old_val" != "x$ac_new_val"; then 2358 # differences in whitespace do not lead to failure. 2359 ac_old_val_w=`echo x $ac_old_val` 2360 ac_new_val_w=`echo x $ac_new_val` 2361 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2363$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2364 ac_cache_corrupted=: 2365 else 2366 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2367$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2368 eval $ac_var=\$ac_old_val 2369 fi 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2371$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2373$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2374 fi;; 2375 esac 2376 # Pass precious variables to config.status. 2377 if test "$ac_new_set" = set; then 2378 case $ac_new_val in 2379 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2380 *) ac_arg=$ac_var=$ac_new_val ;; 2381 esac 2382 case " $ac_configure_args " in 2383 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2384 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2385 esac 2386 fi 2387done 2388if $ac_cache_corrupted; then 2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2392$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2393 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2394fi 2395## -------------------- ## 2396## Main body of script. ## 2397## -------------------- ## 2398 2399ac_ext=c 2400ac_cpp='$CPP $CPPFLAGS' 2401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2403ac_compiler_gnu=$ac_cv_c_compiler_gnu 2404 2405 2406 2407 2408ac_aux_dir= 2409for ac_dir in .auto "$srcdir"/.auto; do 2410 if test -f "$ac_dir/install-sh"; then 2411 ac_aux_dir=$ac_dir 2412 ac_install_sh="$ac_aux_dir/install-sh -c" 2413 break 2414 elif test -f "$ac_dir/install.sh"; then 2415 ac_aux_dir=$ac_dir 2416 ac_install_sh="$ac_aux_dir/install.sh -c" 2417 break 2418 elif test -f "$ac_dir/shtool"; then 2419 ac_aux_dir=$ac_dir 2420 ac_install_sh="$ac_aux_dir/shtool install -c" 2421 break 2422 fi 2423done 2424if test -z "$ac_aux_dir"; then 2425 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .auto \"$srcdir\"/.auto" "$LINENO" 5 2426fi 2427 2428# These three variables are undocumented and unsupported, 2429# and are intended to be withdrawn in a future Autoconf release. 2430# They can cause serious problems if a builder's source tree is in a directory 2431# whose full name contains unusual characters. 2432ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2433ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2434ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2435 2436 2437# Make sure we can run config.sub. 2438$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2439 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2440 2441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2442$as_echo_n "checking build system type... " >&6; } 2443if ${ac_cv_build+:} false; then : 2444 $as_echo_n "(cached) " >&6 2445else 2446 ac_build_alias=$build_alias 2447test "x$ac_build_alias" = x && 2448 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2449test "x$ac_build_alias" = x && 2450 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2451ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2453 2454fi 2455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2456$as_echo "$ac_cv_build" >&6; } 2457case $ac_cv_build in 2458*-*-*) ;; 2459*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2460esac 2461build=$ac_cv_build 2462ac_save_IFS=$IFS; IFS='-' 2463set x $ac_cv_build 2464shift 2465build_cpu=$1 2466build_vendor=$2 2467shift; shift 2468# Remember, the first character of IFS is used to create $*, 2469# except with old shells: 2470build_os=$* 2471IFS=$ac_save_IFS 2472case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2473 2474 2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2476$as_echo_n "checking host system type... " >&6; } 2477if ${ac_cv_host+:} false; then : 2478 $as_echo_n "(cached) " >&6 2479else 2480 if test "x$host_alias" = x; then 2481 ac_cv_host=$ac_cv_build 2482else 2483 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2484 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2485fi 2486 2487fi 2488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2489$as_echo "$ac_cv_host" >&6; } 2490case $ac_cv_host in 2491*-*-*) ;; 2492*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2493esac 2494host=$ac_cv_host 2495ac_save_IFS=$IFS; IFS='-' 2496set x $ac_cv_host 2497shift 2498host_cpu=$1 2499host_vendor=$2 2500shift; shift 2501# Remember, the first character of IFS is used to create $*, 2502# except with old shells: 2503host_os=$* 2504IFS=$ac_save_IFS 2505case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2506 2507 2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2509$as_echo_n "checking target system type... " >&6; } 2510if ${ac_cv_target+:} false; then : 2511 $as_echo_n "(cached) " >&6 2512else 2513 if test "x$target_alias" = x; then 2514 ac_cv_target=$ac_cv_host 2515else 2516 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2517 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2518fi 2519 2520fi 2521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2522$as_echo "$ac_cv_target" >&6; } 2523case $ac_cv_target in 2524*-*-*) ;; 2525*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2526esac 2527target=$ac_cv_target 2528ac_save_IFS=$IFS; IFS='-' 2529set x $ac_cv_target 2530shift 2531target_cpu=$1 2532target_vendor=$2 2533shift; shift 2534# Remember, the first character of IFS is used to create $*, 2535# except with old shells: 2536target_os=$* 2537IFS=$ac_save_IFS 2538case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2539 2540 2541# The aliases save the names the user supplied, while $host etc. 2542# will get canonicalized. 2543test -n "$target_alias" && 2544 test "$program_prefix$program_suffix$program_transform_name" = \ 2545 NONENONEs,x,x, && 2546 program_prefix=${target_alias}- 2547 2548 2549am__api_version='1.11' 2550 2551# Find a good install program. We prefer a C program (faster), 2552# so one script is as good as another. But avoid the broken or 2553# incompatible versions: 2554# SysV /etc/install, /usr/sbin/install 2555# SunOS /usr/etc/install 2556# IRIX /sbin/install 2557# AIX /bin/install 2558# AmigaOS /C/install, which installs bootblocks on floppy discs 2559# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2560# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2561# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2562# OS/2's system install, which has a completely different semantic 2563# ./install, which can be erroneously created by make from ./install.sh. 2564# Reject install programs that cannot install multiple files. 2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2566$as_echo_n "checking for a BSD-compatible install... " >&6; } 2567if test -z "$INSTALL"; then 2568if ${ac_cv_path_install+:} false; then : 2569 $as_echo_n "(cached) " >&6 2570else 2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2572for as_dir in $PATH 2573do 2574 IFS=$as_save_IFS 2575 test -z "$as_dir" && as_dir=. 2576 # Account for people who put trailing slashes in PATH elements. 2577case $as_dir/ in #(( 2578 ./ | .// | /[cC]/* | \ 2579 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2580 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2581 /usr/ucb/* ) ;; 2582 *) 2583 # OSF1 and SCO ODT 3.0 have their own names for install. 2584 # Don't use installbsd from OSF since it installs stuff as root 2585 # by default. 2586 for ac_prog in ginstall scoinst install; do 2587 for ac_exec_ext in '' $ac_executable_extensions; do 2588 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2589 if test $ac_prog = install && 2590 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2591 # AIX install. It has an incompatible calling convention. 2592 : 2593 elif test $ac_prog = install && 2594 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2595 # program-specific install script used by HP pwplus--don't use. 2596 : 2597 else 2598 rm -rf conftest.one conftest.two conftest.dir 2599 echo one > conftest.one 2600 echo two > conftest.two 2601 mkdir conftest.dir 2602 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2603 test -s conftest.one && test -s conftest.two && 2604 test -s conftest.dir/conftest.one && 2605 test -s conftest.dir/conftest.two 2606 then 2607 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2608 break 3 2609 fi 2610 fi 2611 fi 2612 done 2613 done 2614 ;; 2615esac 2616 2617 done 2618IFS=$as_save_IFS 2619 2620rm -rf conftest.one conftest.two conftest.dir 2621 2622fi 2623 if test "${ac_cv_path_install+set}" = set; then 2624 INSTALL=$ac_cv_path_install 2625 else 2626 # As a last resort, use the slow shell script. Don't cache a 2627 # value for INSTALL within a source directory, because that will 2628 # break other packages using the cache if that directory is 2629 # removed, or if the value is a relative name. 2630 INSTALL=$ac_install_sh 2631 fi 2632fi 2633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2634$as_echo "$INSTALL" >&6; } 2635 2636# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2637# It thinks the first close brace ends the variable substitution. 2638test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2639 2640test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2641 2642test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2643 2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2645$as_echo_n "checking whether build environment is sane... " >&6; } 2646# Just in case 2647sleep 1 2648echo timestamp > conftest.file 2649# Reject unsafe characters in $srcdir or the absolute working directory 2650# name. Accept space and tab only in the latter. 2651am_lf=' 2652' 2653case `pwd` in 2654 *[\\\"\#\$\&\'\`$am_lf]*) 2655 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2656esac 2657case $srcdir in 2658 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2659 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2660esac 2661 2662# Do `set' in a subshell so we don't clobber the current shell's 2663# arguments. Must try -L first in case configure is actually a 2664# symlink; some systems play weird games with the mod time of symlinks 2665# (eg FreeBSD returns the mod time of the symlink's containing 2666# directory). 2667if ( 2668 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2669 if test "$*" = "X"; then 2670 # -L didn't work. 2671 set X `ls -t "$srcdir/configure" conftest.file` 2672 fi 2673 rm -f conftest.file 2674 if test "$*" != "X $srcdir/configure conftest.file" \ 2675 && test "$*" != "X conftest.file $srcdir/configure"; then 2676 2677 # If neither matched, then we have a broken ls. This can happen 2678 # if, for instance, CONFIG_SHELL is bash and it inherits a 2679 # broken ls alias from the environment. This has actually 2680 # happened. Such a system could not be considered "sane". 2681 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2682alias in your environment" "$LINENO" 5 2683 fi 2684 2685 test "$2" = conftest.file 2686 ) 2687then 2688 # Ok. 2689 : 2690else 2691 as_fn_error $? "newly created file is older than distributed files! 2692Check your system clock" "$LINENO" 5 2693fi 2694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2695$as_echo "yes" >&6; } 2696test "$program_prefix" != NONE && 2697 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2698# Use a double $ so make ignores it. 2699test "$program_suffix" != NONE && 2700 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2701# Double any \ or $. 2702# By default was `s,x,x', remove it if useless. 2703ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2704program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2705 2706# expand $ac_aux_dir to an absolute path 2707am_aux_dir=`cd $ac_aux_dir && pwd` 2708 2709if test x"${MISSING+set}" != xset; then 2710 case $am_aux_dir in 2711 *\ * | *\ *) 2712 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2713 *) 2714 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2715 esac 2716fi 2717# Use eval to expand $SHELL 2718if eval "$MISSING --run true"; then 2719 am_missing_run="$MISSING --run " 2720else 2721 am_missing_run= 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2723$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2724fi 2725 2726if test x"${install_sh}" != xset; then 2727 case $am_aux_dir in 2728 *\ * | *\ *) 2729 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2730 *) 2731 install_sh="\${SHELL} $am_aux_dir/install-sh" 2732 esac 2733fi 2734 2735# Installed binaries are usually stripped using `strip' when the user 2736# run `make install-strip'. However `strip' might not be the right 2737# tool to use in cross-compilation environments, therefore Automake 2738# will honor the `STRIP' environment variable to overrule this program. 2739if test "$cross_compiling" != no; then 2740 if test -n "$ac_tool_prefix"; then 2741 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2742set dummy ${ac_tool_prefix}strip; ac_word=$2 2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2744$as_echo_n "checking for $ac_word... " >&6; } 2745if ${ac_cv_prog_STRIP+:} false; then : 2746 $as_echo_n "(cached) " >&6 2747else 2748 if test -n "$STRIP"; then 2749 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2750else 2751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2752for as_dir in $PATH 2753do 2754 IFS=$as_save_IFS 2755 test -z "$as_dir" && as_dir=. 2756 for ac_exec_ext in '' $ac_executable_extensions; do 2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2758 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2760 break 2 2761 fi 2762done 2763 done 2764IFS=$as_save_IFS 2765 2766fi 2767fi 2768STRIP=$ac_cv_prog_STRIP 2769if test -n "$STRIP"; then 2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2771$as_echo "$STRIP" >&6; } 2772else 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2774$as_echo "no" >&6; } 2775fi 2776 2777 2778fi 2779if test -z "$ac_cv_prog_STRIP"; then 2780 ac_ct_STRIP=$STRIP 2781 # Extract the first word of "strip", so it can be a program name with args. 2782set dummy strip; ac_word=$2 2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2784$as_echo_n "checking for $ac_word... " >&6; } 2785if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2786 $as_echo_n "(cached) " >&6 2787else 2788 if test -n "$ac_ct_STRIP"; then 2789 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2790else 2791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2792for as_dir in $PATH 2793do 2794 IFS=$as_save_IFS 2795 test -z "$as_dir" && as_dir=. 2796 for ac_exec_ext in '' $ac_executable_extensions; do 2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2798 ac_cv_prog_ac_ct_STRIP="strip" 2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2800 break 2 2801 fi 2802done 2803 done 2804IFS=$as_save_IFS 2805 2806fi 2807fi 2808ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2809if test -n "$ac_ct_STRIP"; then 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2811$as_echo "$ac_ct_STRIP" >&6; } 2812else 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2814$as_echo "no" >&6; } 2815fi 2816 2817 if test "x$ac_ct_STRIP" = x; then 2818 STRIP=":" 2819 else 2820 case $cross_compiling:$ac_tool_warned in 2821yes:) 2822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2824ac_tool_warned=yes ;; 2825esac 2826 STRIP=$ac_ct_STRIP 2827 fi 2828else 2829 STRIP="$ac_cv_prog_STRIP" 2830fi 2831 2832fi 2833INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2834 2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2836$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2837if test -z "$MKDIR_P"; then 2838 if ${ac_cv_path_mkdir+:} false; then : 2839 $as_echo_n "(cached) " >&6 2840else 2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2842for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2843do 2844 IFS=$as_save_IFS 2845 test -z "$as_dir" && as_dir=. 2846 for ac_prog in mkdir gmkdir; do 2847 for ac_exec_ext in '' $ac_executable_extensions; do 2848 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2849 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2850 'mkdir (GNU coreutils) '* | \ 2851 'mkdir (coreutils) '* | \ 2852 'mkdir (fileutils) '4.1*) 2853 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2854 break 3;; 2855 esac 2856 done 2857 done 2858 done 2859IFS=$as_save_IFS 2860 2861fi 2862 2863 test -d ./--version && rmdir ./--version 2864 if test "${ac_cv_path_mkdir+set}" = set; then 2865 MKDIR_P="$ac_cv_path_mkdir -p" 2866 else 2867 # As a last resort, use the slow shell script. Don't cache a 2868 # value for MKDIR_P within a source directory, because that will 2869 # break other packages using the cache if that directory is 2870 # removed, or if the value is a relative name. 2871 MKDIR_P="$ac_install_sh -d" 2872 fi 2873fi 2874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2875$as_echo "$MKDIR_P" >&6; } 2876 2877mkdir_p="$MKDIR_P" 2878case $mkdir_p in 2879 [\\/$]* | ?:[\\/]*) ;; 2880 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2881esac 2882 2883for ac_prog in gawk mawk nawk awk 2884do 2885 # Extract the first word of "$ac_prog", so it can be a program name with args. 2886set dummy $ac_prog; ac_word=$2 2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2888$as_echo_n "checking for $ac_word... " >&6; } 2889if ${ac_cv_prog_AWK+:} false; then : 2890 $as_echo_n "(cached) " >&6 2891else 2892 if test -n "$AWK"; then 2893 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2894else 2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2896for as_dir in $PATH 2897do 2898 IFS=$as_save_IFS 2899 test -z "$as_dir" && as_dir=. 2900 for ac_exec_ext in '' $ac_executable_extensions; do 2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2902 ac_cv_prog_AWK="$ac_prog" 2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2904 break 2 2905 fi 2906done 2907 done 2908IFS=$as_save_IFS 2909 2910fi 2911fi 2912AWK=$ac_cv_prog_AWK 2913if test -n "$AWK"; then 2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2915$as_echo "$AWK" >&6; } 2916else 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2918$as_echo "no" >&6; } 2919fi 2920 2921 2922 test -n "$AWK" && break 2923done 2924 2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2926$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2927set x ${MAKE-make} 2928ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2929if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2930 $as_echo_n "(cached) " >&6 2931else 2932 cat >conftest.make <<\_ACEOF 2933SHELL = /bin/sh 2934all: 2935 @echo '@@@%%%=$(MAKE)=@@@%%%' 2936_ACEOF 2937# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2938case `${MAKE-make} -f conftest.make 2>/dev/null` in 2939 *@@@%%%=?*=@@@%%%*) 2940 eval ac_cv_prog_make_${ac_make}_set=yes;; 2941 *) 2942 eval ac_cv_prog_make_${ac_make}_set=no;; 2943esac 2944rm -f conftest.make 2945fi 2946if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2948$as_echo "yes" >&6; } 2949 SET_MAKE= 2950else 2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2952$as_echo "no" >&6; } 2953 SET_MAKE="MAKE=${MAKE-make}" 2954fi 2955 2956rm -rf .tst 2>/dev/null 2957mkdir .tst 2>/dev/null 2958if test -d .tst; then 2959 am__leading_dot=. 2960else 2961 am__leading_dot=_ 2962fi 2963rmdir .tst 2>/dev/null 2964 2965if test "`cd $srcdir && pwd`" != "`pwd`"; then 2966 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2967 # is not polluted with repeated "-I." 2968 am__isrc=' -I$(srcdir)' 2969 # test to see if srcdir already configured 2970 if test -f $srcdir/config.status; then 2971 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2972 fi 2973fi 2974 2975# test whether we have cygpath 2976if test -z "$CYGPATH_W"; then 2977 if (cygpath --version) >/dev/null 2>/dev/null; then 2978 CYGPATH_W='cygpath -w' 2979 else 2980 CYGPATH_W=echo 2981 fi 2982fi 2983 2984 2985# Define the identity of the package. 2986 PACKAGE=elk 2987 VERSION=3.99.8 2988 2989 2990cat >>confdefs.h <<_ACEOF 2991#define PACKAGE "$PACKAGE" 2992_ACEOF 2993 2994 2995cat >>confdefs.h <<_ACEOF 2996#define VERSION "$VERSION" 2997_ACEOF 2998 2999# Some tools Automake needs. 3000 3001ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3002 3003 3004AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3005 3006 3007AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3008 3009 3010AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3011 3012 3013MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3014 3015# We need awk for the "check" target. The system "awk" is bad on 3016# some platforms. 3017# Always define AMTAR for backward compatibility. 3018 3019AMTAR=${AMTAR-"${am_missing_run}tar"} 3020 3021am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3022 3023 3024 3025 3026 3027ac_config_headers="$ac_config_headers config.h" 3028 3029 3030ac_ext=c 3031ac_cpp='$CPP $CPPFLAGS' 3032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3034ac_compiler_gnu=$ac_cv_c_compiler_gnu 3035if test -n "$ac_tool_prefix"; then 3036 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3037set dummy ${ac_tool_prefix}gcc; ac_word=$2 3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3039$as_echo_n "checking for $ac_word... " >&6; } 3040if ${ac_cv_prog_CC+:} false; then : 3041 $as_echo_n "(cached) " >&6 3042else 3043 if test -n "$CC"; then 3044 ac_cv_prog_CC="$CC" # Let the user override the test. 3045else 3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3047for as_dir in $PATH 3048do 3049 IFS=$as_save_IFS 3050 test -z "$as_dir" && as_dir=. 3051 for ac_exec_ext in '' $ac_executable_extensions; do 3052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3053 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3055 break 2 3056 fi 3057done 3058 done 3059IFS=$as_save_IFS 3060 3061fi 3062fi 3063CC=$ac_cv_prog_CC 3064if test -n "$CC"; then 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3066$as_echo "$CC" >&6; } 3067else 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3069$as_echo "no" >&6; } 3070fi 3071 3072 3073fi 3074if test -z "$ac_cv_prog_CC"; then 3075 ac_ct_CC=$CC 3076 # Extract the first word of "gcc", so it can be a program name with args. 3077set dummy gcc; ac_word=$2 3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3079$as_echo_n "checking for $ac_word... " >&6; } 3080if ${ac_cv_prog_ac_ct_CC+:} false; then : 3081 $as_echo_n "(cached) " >&6 3082else 3083 if test -n "$ac_ct_CC"; then 3084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3085else 3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3087for as_dir in $PATH 3088do 3089 IFS=$as_save_IFS 3090 test -z "$as_dir" && as_dir=. 3091 for ac_exec_ext in '' $ac_executable_extensions; do 3092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3093 ac_cv_prog_ac_ct_CC="gcc" 3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3095 break 2 3096 fi 3097done 3098 done 3099IFS=$as_save_IFS 3100 3101fi 3102fi 3103ac_ct_CC=$ac_cv_prog_ac_ct_CC 3104if test -n "$ac_ct_CC"; then 3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3106$as_echo "$ac_ct_CC" >&6; } 3107else 3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3109$as_echo "no" >&6; } 3110fi 3111 3112 if test "x$ac_ct_CC" = x; then 3113 CC="" 3114 else 3115 case $cross_compiling:$ac_tool_warned in 3116yes:) 3117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3119ac_tool_warned=yes ;; 3120esac 3121 CC=$ac_ct_CC 3122 fi 3123else 3124 CC="$ac_cv_prog_CC" 3125fi 3126 3127if test -z "$CC"; then 3128 if test -n "$ac_tool_prefix"; then 3129 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3130set dummy ${ac_tool_prefix}cc; ac_word=$2 3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3132$as_echo_n "checking for $ac_word... " >&6; } 3133if ${ac_cv_prog_CC+:} false; then : 3134 $as_echo_n "(cached) " >&6 3135else 3136 if test -n "$CC"; then 3137 ac_cv_prog_CC="$CC" # Let the user override the test. 3138else 3139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3140for as_dir in $PATH 3141do 3142 IFS=$as_save_IFS 3143 test -z "$as_dir" && as_dir=. 3144 for ac_exec_ext in '' $ac_executable_extensions; do 3145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3146 ac_cv_prog_CC="${ac_tool_prefix}cc" 3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3148 break 2 3149 fi 3150done 3151 done 3152IFS=$as_save_IFS 3153 3154fi 3155fi 3156CC=$ac_cv_prog_CC 3157if test -n "$CC"; then 3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3159$as_echo "$CC" >&6; } 3160else 3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3162$as_echo "no" >&6; } 3163fi 3164 3165 3166 fi 3167fi 3168if test -z "$CC"; then 3169 # Extract the first word of "cc", so it can be a program name with args. 3170set dummy cc; ac_word=$2 3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3172$as_echo_n "checking for $ac_word... " >&6; } 3173if ${ac_cv_prog_CC+:} false; then : 3174 $as_echo_n "(cached) " >&6 3175else 3176 if test -n "$CC"; then 3177 ac_cv_prog_CC="$CC" # Let the user override the test. 3178else 3179 ac_prog_rejected=no 3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3181for as_dir in $PATH 3182do 3183 IFS=$as_save_IFS 3184 test -z "$as_dir" && as_dir=. 3185 for ac_exec_ext in '' $ac_executable_extensions; do 3186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3188 ac_prog_rejected=yes 3189 continue 3190 fi 3191 ac_cv_prog_CC="cc" 3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3193 break 2 3194 fi 3195done 3196 done 3197IFS=$as_save_IFS 3198 3199if test $ac_prog_rejected = yes; then 3200 # We found a bogon in the path, so make sure we never use it. 3201 set dummy $ac_cv_prog_CC 3202 shift 3203 if test $# != 0; then 3204 # We chose a different compiler from the bogus one. 3205 # However, it has the same basename, so the bogon will be chosen 3206 # first if we set CC to just the basename; use the full file name. 3207 shift 3208 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3209 fi 3210fi 3211fi 3212fi 3213CC=$ac_cv_prog_CC 3214if test -n "$CC"; then 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3216$as_echo "$CC" >&6; } 3217else 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3219$as_echo "no" >&6; } 3220fi 3221 3222 3223fi 3224if test -z "$CC"; then 3225 if test -n "$ac_tool_prefix"; then 3226 for ac_prog in cl.exe 3227 do 3228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3229set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3231$as_echo_n "checking for $ac_word... " >&6; } 3232if ${ac_cv_prog_CC+:} false; then : 3233 $as_echo_n "(cached) " >&6 3234else 3235 if test -n "$CC"; then 3236 ac_cv_prog_CC="$CC" # Let the user override the test. 3237else 3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3239for as_dir in $PATH 3240do 3241 IFS=$as_save_IFS 3242 test -z "$as_dir" && as_dir=. 3243 for ac_exec_ext in '' $ac_executable_extensions; do 3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3245 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3247 break 2 3248 fi 3249done 3250 done 3251IFS=$as_save_IFS 3252 3253fi 3254fi 3255CC=$ac_cv_prog_CC 3256if test -n "$CC"; then 3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3258$as_echo "$CC" >&6; } 3259else 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3261$as_echo "no" >&6; } 3262fi 3263 3264 3265 test -n "$CC" && break 3266 done 3267fi 3268if test -z "$CC"; then 3269 ac_ct_CC=$CC 3270 for ac_prog in cl.exe 3271do 3272 # Extract the first word of "$ac_prog", so it can be a program name with args. 3273set dummy $ac_prog; ac_word=$2 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3275$as_echo_n "checking for $ac_word... " >&6; } 3276if ${ac_cv_prog_ac_ct_CC+:} false; then : 3277 $as_echo_n "(cached) " >&6 3278else 3279 if test -n "$ac_ct_CC"; then 3280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3281else 3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3283for as_dir in $PATH 3284do 3285 IFS=$as_save_IFS 3286 test -z "$as_dir" && as_dir=. 3287 for ac_exec_ext in '' $ac_executable_extensions; do 3288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3289 ac_cv_prog_ac_ct_CC="$ac_prog" 3290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3291 break 2 3292 fi 3293done 3294 done 3295IFS=$as_save_IFS 3296 3297fi 3298fi 3299ac_ct_CC=$ac_cv_prog_ac_ct_CC 3300if test -n "$ac_ct_CC"; then 3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3302$as_echo "$ac_ct_CC" >&6; } 3303else 3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3305$as_echo "no" >&6; } 3306fi 3307 3308 3309 test -n "$ac_ct_CC" && break 3310done 3311 3312 if test "x$ac_ct_CC" = x; then 3313 CC="" 3314 else 3315 case $cross_compiling:$ac_tool_warned in 3316yes:) 3317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3319ac_tool_warned=yes ;; 3320esac 3321 CC=$ac_ct_CC 3322 fi 3323fi 3324 3325fi 3326 3327 3328test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3330as_fn_error $? "no acceptable C compiler found in \$PATH 3331See \`config.log' for more details" "$LINENO" 5; } 3332 3333# Provide some information about the compiler. 3334$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3335set X $ac_compile 3336ac_compiler=$2 3337for ac_option in --version -v -V -qversion; do 3338 { { ac_try="$ac_compiler $ac_option >&5" 3339case "(($ac_try" in 3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3341 *) ac_try_echo=$ac_try;; 3342esac 3343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3344$as_echo "$ac_try_echo"; } >&5 3345 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3346 ac_status=$? 3347 if test -s conftest.err; then 3348 sed '10a\ 3349... rest of stderr output deleted ... 3350 10q' conftest.err >conftest.er1 3351 cat conftest.er1 >&5 3352 fi 3353 rm -f conftest.er1 conftest.err 3354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3355 test $ac_status = 0; } 3356done 3357 3358cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3359/* end confdefs.h. */ 3360 3361int 3362main () 3363{ 3364 3365 ; 3366 return 0; 3367} 3368_ACEOF 3369ac_clean_files_save=$ac_clean_files 3370ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3371# Try to create an executable without -o first, disregard a.out. 3372# It will help us diagnose broken compilers, and finding out an intuition 3373# of exeext. 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3375$as_echo_n "checking whether the C compiler works... " >&6; } 3376ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3377 3378# The possible output files: 3379ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3380 3381ac_rmfiles= 3382for ac_file in $ac_files 3383do 3384 case $ac_file in 3385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3386 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3387 esac 3388done 3389rm -f $ac_rmfiles 3390 3391if { { ac_try="$ac_link_default" 3392case "(($ac_try" in 3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3394 *) ac_try_echo=$ac_try;; 3395esac 3396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3397$as_echo "$ac_try_echo"; } >&5 3398 (eval "$ac_link_default") 2>&5 3399 ac_status=$? 3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3401 test $ac_status = 0; }; then : 3402 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3403# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3404# in a Makefile. We should not override ac_cv_exeext if it was cached, 3405# so that the user can short-circuit this test for compilers unknown to 3406# Autoconf. 3407for ac_file in $ac_files '' 3408do 3409 test -f "$ac_file" || continue 3410 case $ac_file in 3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3412 ;; 3413 [ab].out ) 3414 # We found the default executable, but exeext='' is most 3415 # certainly right. 3416 break;; 3417 *.* ) 3418 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3419 then :; else 3420 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3421 fi 3422 # We set ac_cv_exeext here because the later test for it is not 3423 # safe: cross compilers may not add the suffix if given an `-o' 3424 # argument, so we may need to know it at that point already. 3425 # Even if this section looks crufty: it has the advantage of 3426 # actually working. 3427 break;; 3428 * ) 3429 break;; 3430 esac 3431done 3432test "$ac_cv_exeext" = no && ac_cv_exeext= 3433 3434else 3435 ac_file='' 3436fi 3437if test -z "$ac_file"; then : 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3439$as_echo "no" >&6; } 3440$as_echo "$as_me: failed program was:" >&5 3441sed 's/^/| /' conftest.$ac_ext >&5 3442 3443{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3445as_fn_error 77 "C compiler cannot create executables 3446See \`config.log' for more details" "$LINENO" 5; } 3447else 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3449$as_echo "yes" >&6; } 3450fi 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3452$as_echo_n "checking for C compiler default output file name... " >&6; } 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3454$as_echo "$ac_file" >&6; } 3455ac_exeext=$ac_cv_exeext 3456 3457rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3458ac_clean_files=$ac_clean_files_save 3459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3460$as_echo_n "checking for suffix of executables... " >&6; } 3461if { { ac_try="$ac_link" 3462case "(($ac_try" in 3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3464 *) ac_try_echo=$ac_try;; 3465esac 3466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3467$as_echo "$ac_try_echo"; } >&5 3468 (eval "$ac_link") 2>&5 3469 ac_status=$? 3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3471 test $ac_status = 0; }; then : 3472 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3473# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3474# work properly (i.e., refer to `conftest.exe'), while it won't with 3475# `rm'. 3476for ac_file in conftest.exe conftest conftest.*; do 3477 test -f "$ac_file" || continue 3478 case $ac_file in 3479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3480 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3481 break;; 3482 * ) break;; 3483 esac 3484done 3485else 3486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3488as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3489See \`config.log' for more details" "$LINENO" 5; } 3490fi 3491rm -f conftest conftest$ac_cv_exeext 3492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3493$as_echo "$ac_cv_exeext" >&6; } 3494 3495rm -f conftest.$ac_ext 3496EXEEXT=$ac_cv_exeext 3497ac_exeext=$EXEEXT 3498cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3499/* end confdefs.h. */ 3500#include <stdio.h> 3501int 3502main () 3503{ 3504FILE *f = fopen ("conftest.out", "w"); 3505 return ferror (f) || fclose (f) != 0; 3506 3507 ; 3508 return 0; 3509} 3510_ACEOF 3511ac_clean_files="$ac_clean_files conftest.out" 3512# Check that the compiler produces executables we can run. If not, either 3513# the compiler is broken, or we cross compile. 3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3515$as_echo_n "checking whether we are cross compiling... " >&6; } 3516if test "$cross_compiling" != yes; then 3517 { { ac_try="$ac_link" 3518case "(($ac_try" in 3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3520 *) ac_try_echo=$ac_try;; 3521esac 3522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3523$as_echo "$ac_try_echo"; } >&5 3524 (eval "$ac_link") 2>&5 3525 ac_status=$? 3526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3527 test $ac_status = 0; } 3528 if { ac_try='./conftest$ac_cv_exeext' 3529 { { case "(($ac_try" in 3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3531 *) ac_try_echo=$ac_try;; 3532esac 3533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3534$as_echo "$ac_try_echo"; } >&5 3535 (eval "$ac_try") 2>&5 3536 ac_status=$? 3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3538 test $ac_status = 0; }; }; then 3539 cross_compiling=no 3540 else 3541 if test "$cross_compiling" = maybe; then 3542 cross_compiling=yes 3543 else 3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3546as_fn_error $? "cannot run C compiled programs. 3547If you meant to cross compile, use \`--host'. 3548See \`config.log' for more details" "$LINENO" 5; } 3549 fi 3550 fi 3551fi 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3553$as_echo "$cross_compiling" >&6; } 3554 3555rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3556ac_clean_files=$ac_clean_files_save 3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3558$as_echo_n "checking for suffix of object files... " >&6; } 3559if ${ac_cv_objext+:} false; then : 3560 $as_echo_n "(cached) " >&6 3561else 3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3563/* end confdefs.h. */ 3564 3565int 3566main () 3567{ 3568 3569 ; 3570 return 0; 3571} 3572_ACEOF 3573rm -f conftest.o conftest.obj 3574if { { ac_try="$ac_compile" 3575case "(($ac_try" in 3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3577 *) ac_try_echo=$ac_try;; 3578esac 3579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3580$as_echo "$ac_try_echo"; } >&5 3581 (eval "$ac_compile") 2>&5 3582 ac_status=$? 3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3584 test $ac_status = 0; }; then : 3585 for ac_file in conftest.o conftest.obj conftest.*; do 3586 test -f "$ac_file" || continue; 3587 case $ac_file in 3588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3589 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3590 break;; 3591 esac 3592done 3593else 3594 $as_echo "$as_me: failed program was:" >&5 3595sed 's/^/| /' conftest.$ac_ext >&5 3596 3597{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3599as_fn_error $? "cannot compute suffix of object files: cannot compile 3600See \`config.log' for more details" "$LINENO" 5; } 3601fi 3602rm -f conftest.$ac_cv_objext conftest.$ac_ext 3603fi 3604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3605$as_echo "$ac_cv_objext" >&6; } 3606OBJEXT=$ac_cv_objext 3607ac_objext=$OBJEXT 3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3609$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3610if ${ac_cv_c_compiler_gnu+:} false; then : 3611 $as_echo_n "(cached) " >&6 3612else 3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3614/* end confdefs.h. */ 3615 3616int 3617main () 3618{ 3619#ifndef __GNUC__ 3620 choke me 3621#endif 3622 3623 ; 3624 return 0; 3625} 3626_ACEOF 3627if ac_fn_c_try_compile "$LINENO"; then : 3628 ac_compiler_gnu=yes 3629else 3630 ac_compiler_gnu=no 3631fi 3632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3633ac_cv_c_compiler_gnu=$ac_compiler_gnu 3634 3635fi 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3637$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3638if test $ac_compiler_gnu = yes; then 3639 GCC=yes 3640else 3641 GCC= 3642fi 3643ac_test_CFLAGS=${CFLAGS+set} 3644ac_save_CFLAGS=$CFLAGS 3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3646$as_echo_n "checking whether $CC accepts -g... " >&6; } 3647if ${ac_cv_prog_cc_g+:} false; then : 3648 $as_echo_n "(cached) " >&6 3649else 3650 ac_save_c_werror_flag=$ac_c_werror_flag 3651 ac_c_werror_flag=yes 3652 ac_cv_prog_cc_g=no 3653 CFLAGS="-g" 3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3655/* end confdefs.h. */ 3656 3657int 3658main () 3659{ 3660 3661 ; 3662 return 0; 3663} 3664_ACEOF 3665if ac_fn_c_try_compile "$LINENO"; then : 3666 ac_cv_prog_cc_g=yes 3667else 3668 CFLAGS="" 3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3670/* end confdefs.h. */ 3671 3672int 3673main () 3674{ 3675 3676 ; 3677 return 0; 3678} 3679_ACEOF 3680if ac_fn_c_try_compile "$LINENO"; then : 3681 3682else 3683 ac_c_werror_flag=$ac_save_c_werror_flag 3684 CFLAGS="-g" 3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3686/* end confdefs.h. */ 3687 3688int 3689main () 3690{ 3691 3692 ; 3693 return 0; 3694} 3695_ACEOF 3696if ac_fn_c_try_compile "$LINENO"; then : 3697 ac_cv_prog_cc_g=yes 3698fi 3699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3700fi 3701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3702fi 3703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3704 ac_c_werror_flag=$ac_save_c_werror_flag 3705fi 3706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3707$as_echo "$ac_cv_prog_cc_g" >&6; } 3708if test "$ac_test_CFLAGS" = set; then 3709 CFLAGS=$ac_save_CFLAGS 3710elif test $ac_cv_prog_cc_g = yes; then 3711 if test "$GCC" = yes; then 3712 CFLAGS="-g -O2" 3713 else 3714 CFLAGS="-g" 3715 fi 3716else 3717 if test "$GCC" = yes; then 3718 CFLAGS="-O2" 3719 else 3720 CFLAGS= 3721 fi 3722fi 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3724$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3725if ${ac_cv_prog_cc_c89+:} false; then : 3726 $as_echo_n "(cached) " >&6 3727else 3728 ac_cv_prog_cc_c89=no 3729ac_save_CC=$CC 3730cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3731/* end confdefs.h. */ 3732#include <stdarg.h> 3733#include <stdio.h> 3734#include <sys/types.h> 3735#include <sys/stat.h> 3736/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3737struct buf { int x; }; 3738FILE * (*rcsopen) (struct buf *, struct stat *, int); 3739static char *e (p, i) 3740 char **p; 3741 int i; 3742{ 3743 return p[i]; 3744} 3745static char *f (char * (*g) (char **, int), char **p, ...) 3746{ 3747 char *s; 3748 va_list v; 3749 va_start (v,p); 3750 s = g (p, va_arg (v,int)); 3751 va_end (v); 3752 return s; 3753} 3754 3755/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3756 function prototypes and stuff, but not '\xHH' hex character constants. 3757 These don't provoke an error unfortunately, instead are silently treated 3758 as 'x'. The following induces an error, until -std is added to get 3759 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3760 array size at least. It's necessary to write '\x00'==0 to get something 3761 that's true only with -std. */ 3762int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3763 3764/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3765 inside strings and character constants. */ 3766#define FOO(x) 'x' 3767int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3768 3769int test (int i, double x); 3770struct s1 {int (*f) (int a);}; 3771struct s2 {int (*f) (double a);}; 3772int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3773int argc; 3774char **argv; 3775int 3776main () 3777{ 3778return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3779 ; 3780 return 0; 3781} 3782_ACEOF 3783for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3784 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3785do 3786 CC="$ac_save_CC $ac_arg" 3787 if ac_fn_c_try_compile "$LINENO"; then : 3788 ac_cv_prog_cc_c89=$ac_arg 3789fi 3790rm -f core conftest.err conftest.$ac_objext 3791 test "x$ac_cv_prog_cc_c89" != "xno" && break 3792done 3793rm -f conftest.$ac_ext 3794CC=$ac_save_CC 3795 3796fi 3797# AC_CACHE_VAL 3798case "x$ac_cv_prog_cc_c89" in 3799 x) 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3801$as_echo "none needed" >&6; } ;; 3802 xno) 3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3804$as_echo "unsupported" >&6; } ;; 3805 *) 3806 CC="$CC $ac_cv_prog_cc_c89" 3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3808$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3809esac 3810if test "x$ac_cv_prog_cc_c89" != xno; then : 3811 3812fi 3813 3814ac_ext=c 3815ac_cpp='$CPP $CPPFLAGS' 3816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3818ac_compiler_gnu=$ac_cv_c_compiler_gnu 3819DEPDIR="${am__leading_dot}deps" 3820 3821ac_config_commands="$ac_config_commands depfiles" 3822 3823 3824am_make=${MAKE-make} 3825cat > confinc << 'END' 3826am__doit: 3827 @echo this is the am__doit target 3828.PHONY: am__doit 3829END 3830# If we don't find an include directive, just comment out the code. 3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3832$as_echo_n "checking for style of include used by $am_make... " >&6; } 3833am__include="#" 3834am__quote= 3835_am_result=none 3836# First try GNU make style include. 3837echo "include confinc" > confmf 3838# Ignore all kinds of additional output from `make'. 3839case `$am_make -s -f confmf 2> /dev/null` in #( 3840*the\ am__doit\ target*) 3841 am__include=include 3842 am__quote= 3843 _am_result=GNU 3844 ;; 3845esac 3846# Now try BSD make style include. 3847if test "$am__include" = "#"; then 3848 echo '.include "confinc"' > confmf 3849 case `$am_make -s -f confmf 2> /dev/null` in #( 3850 *the\ am__doit\ target*) 3851 am__include=.include 3852 am__quote="\"" 3853 _am_result=BSD 3854 ;; 3855 esac 3856fi 3857 3858 3859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3860$as_echo "$_am_result" >&6; } 3861rm -f confinc confmf 3862 3863# Check whether --enable-dependency-tracking was given. 3864if test "${enable_dependency_tracking+set}" = set; then : 3865 enableval=$enable_dependency_tracking; 3866fi 3867 3868if test "x$enable_dependency_tracking" != xno; then 3869 am_depcomp="$ac_aux_dir/depcomp" 3870 AMDEPBACKSLASH='\' 3871fi 3872 if test "x$enable_dependency_tracking" != xno; then 3873 AMDEP_TRUE= 3874 AMDEP_FALSE='#' 3875else 3876 AMDEP_TRUE='#' 3877 AMDEP_FALSE= 3878fi 3879 3880 3881 3882depcc="$CC" am_compiler_list= 3883 3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3885$as_echo_n "checking dependency style of $depcc... " >&6; } 3886if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3887 $as_echo_n "(cached) " >&6 3888else 3889 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3890 # We make a subdir and do the tests there. Otherwise we can end up 3891 # making bogus files that we don't know about and never remove. For 3892 # instance it was reported that on HP-UX the gcc test will end up 3893 # making a dummy file named `D' -- because `-MD' means `put the output 3894 # in D'. 3895 mkdir conftest.dir 3896 # Copy depcomp to subdir because otherwise we won't find it if we're 3897 # using a relative directory. 3898 cp "$am_depcomp" conftest.dir 3899 cd conftest.dir 3900 # We will build objects and dependencies in a subdirectory because 3901 # it helps to detect inapplicable dependency modes. For instance 3902 # both Tru64's cc and ICC support -MD to output dependencies as a 3903 # side effect of compilation, but ICC will put the dependencies in 3904 # the current directory while Tru64 will put them in the object 3905 # directory. 3906 mkdir sub 3907 3908 am_cv_CC_dependencies_compiler_type=none 3909 if test "$am_compiler_list" = ""; then 3910 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3911 fi 3912 am__universal=false 3913 case " $depcc " in #( 3914 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3915 esac 3916 3917 for depmode in $am_compiler_list; do 3918 # Setup a source with many dependencies, because some compilers 3919 # like to wrap large dependency lists on column 80 (with \), and 3920 # we should not choose a depcomp mode which is confused by this. 3921 # 3922 # We need to recreate these files for each test, as the compiler may 3923 # overwrite some of them when testing with obscure command lines. 3924 # This happens at least with the AIX C compiler. 3925 : > sub/conftest.c 3926 for i in 1 2 3 4 5 6; do 3927 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3928 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3929 # Solaris 8's {/usr,}/bin/sh. 3930 touch sub/conftst$i.h 3931 done 3932 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3933 3934 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3935 # mode. It turns out that the SunPro C++ compiler does not properly 3936 # handle `-M -o', and we need to detect this. Also, some Intel 3937 # versions had trouble with output in subdirs 3938 am__obj=sub/conftest.${OBJEXT-o} 3939 am__minus_obj="-o $am__obj" 3940 case $depmode in 3941 gcc) 3942 # This depmode causes a compiler race in universal mode. 3943 test "$am__universal" = false || continue 3944 ;; 3945 nosideeffect) 3946 # after this tag, mechanisms are not by side-effect, so they'll 3947 # only be used when explicitly requested 3948 if test "x$enable_dependency_tracking" = xyes; then 3949 continue 3950 else 3951 break 3952 fi 3953 ;; 3954 msvisualcpp | msvcmsys) 3955 # This compiler won't grok `-c -o', but also, the minuso test has 3956 # not run yet. These depmodes are late enough in the game, and 3957 # so weak that their functioning should not be impacted. 3958 am__obj=conftest.${OBJEXT-o} 3959 am__minus_obj= 3960 ;; 3961 none) break ;; 3962 esac 3963 if depmode=$depmode \ 3964 source=sub/conftest.c object=$am__obj \ 3965 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3966 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3967 >/dev/null 2>conftest.err && 3968 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3969 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3970 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3971 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3972 # icc doesn't choke on unknown options, it will just issue warnings 3973 # or remarks (even with -Werror). So we grep stderr for any message 3974 # that says an option was ignored or not supported. 3975 # When given -MP, icc 7.0 and 7.1 complain thusly: 3976 # icc: Command line warning: ignoring option '-M'; no argument required 3977 # The diagnosis changed in icc 8.0: 3978 # icc: Command line remark: option '-MP' not supported 3979 if (grep 'ignoring option' conftest.err || 3980 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3981 am_cv_CC_dependencies_compiler_type=$depmode 3982 break 3983 fi 3984 fi 3985 done 3986 3987 cd .. 3988 rm -rf conftest.dir 3989else 3990 am_cv_CC_dependencies_compiler_type=none 3991fi 3992 3993fi 3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3995$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3996CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3997 3998 if 3999 test "x$enable_dependency_tracking" != xno \ 4000 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4001 am__fastdepCC_TRUE= 4002 am__fastdepCC_FALSE='#' 4003else 4004 am__fastdepCC_TRUE='#' 4005 am__fastdepCC_FALSE= 4006fi 4007 4008 4009if test "x$CC" != xcc; then 4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 4011$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 4012else 4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 4014$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 4015fi 4016set dummy $CC; ac_cc=`$as_echo "$2" | 4017 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4018if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 4019 $as_echo_n "(cached) " >&6 4020else 4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4022/* end confdefs.h. */ 4023 4024int 4025main () 4026{ 4027 4028 ; 4029 return 0; 4030} 4031_ACEOF 4032# Make sure it works both with $CC and with simple cc. 4033# We do the test twice because some compilers refuse to overwrite an 4034# existing .o file with -o, though they will create one. 4035ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4036rm -f conftest2.* 4037if { { case "(($ac_try" in 4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4039 *) ac_try_echo=$ac_try;; 4040esac 4041eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4042$as_echo "$ac_try_echo"; } >&5 4043 (eval "$ac_try") 2>&5 4044 ac_status=$? 4045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4046 test $ac_status = 0; } && 4047 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4049 *) ac_try_echo=$ac_try;; 4050esac 4051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4052$as_echo "$ac_try_echo"; } >&5 4053 (eval "$ac_try") 2>&5 4054 ac_status=$? 4055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4056 test $ac_status = 0; }; 4057then 4058 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4059 if test "x$CC" != xcc; then 4060 # Test first that cc exists at all. 4061 if { ac_try='cc -c conftest.$ac_ext >&5' 4062 { { case "(($ac_try" in 4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4064 *) ac_try_echo=$ac_try;; 4065esac 4066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4067$as_echo "$ac_try_echo"; } >&5 4068 (eval "$ac_try") 2>&5 4069 ac_status=$? 4070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4071 test $ac_status = 0; }; }; then 4072 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4073 rm -f conftest2.* 4074 if { { case "(($ac_try" in 4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4076 *) ac_try_echo=$ac_try;; 4077esac 4078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4079$as_echo "$ac_try_echo"; } >&5 4080 (eval "$ac_try") 2>&5 4081 ac_status=$? 4082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4083 test $ac_status = 0; } && 4084 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4086 *) ac_try_echo=$ac_try;; 4087esac 4088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4089$as_echo "$ac_try_echo"; } >&5 4090 (eval "$ac_try") 2>&5 4091 ac_status=$? 4092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4093 test $ac_status = 0; }; 4094 then 4095 # cc works too. 4096 : 4097 else 4098 # cc exists but doesn't like -o. 4099 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4100 fi 4101 fi 4102 fi 4103else 4104 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4105fi 4106rm -f core conftest* 4107 4108fi 4109if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; 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" >&5 4114$as_echo "no" >&6; } 4115 4116$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 4117 4118fi 4119 4120# FIXME: we rely on the cache variable name because 4121# there is no other way. 4122set dummy $CC 4123am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4124eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 4125if test "$am_t" != yes; then 4126 # Losing compiler, so override with the script. 4127 # FIXME: It is wrong to rewrite CC. 4128 # But if we don't then we get into trouble of one sort or another. 4129 # A longer-term fix would be to have automake use am__CC in this case, 4130 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4131 CC="$am_aux_dir/compile $CC" 4132fi 4133 4134 4135ac_ext=cpp 4136ac_cpp='$CXXCPP $CPPFLAGS' 4137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4140if test -z "$CXX"; then 4141 if test -n "$CCC"; then 4142 CXX=$CCC 4143 else 4144 if test -n "$ac_tool_prefix"; then 4145 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4146 do 4147 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4148set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4150$as_echo_n "checking for $ac_word... " >&6; } 4151if ${ac_cv_prog_CXX+:} false; then : 4152 $as_echo_n "(cached) " >&6 4153else 4154 if test -n "$CXX"; then 4155 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4156else 4157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4158for as_dir in $PATH 4159do 4160 IFS=$as_save_IFS 4161 test -z "$as_dir" && as_dir=. 4162 for ac_exec_ext in '' $ac_executable_extensions; do 4163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4164 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4166 break 2 4167 fi 4168done 4169 done 4170IFS=$as_save_IFS 4171 4172fi 4173fi 4174CXX=$ac_cv_prog_CXX 4175if test -n "$CXX"; then 4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4177$as_echo "$CXX" >&6; } 4178else 4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4180$as_echo "no" >&6; } 4181fi 4182 4183 4184 test -n "$CXX" && break 4185 done 4186fi 4187if test -z "$CXX"; then 4188 ac_ct_CXX=$CXX 4189 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4190do 4191 # Extract the first word of "$ac_prog", so it can be a program name with args. 4192set dummy $ac_prog; ac_word=$2 4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4194$as_echo_n "checking for $ac_word... " >&6; } 4195if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4196 $as_echo_n "(cached) " >&6 4197else 4198 if test -n "$ac_ct_CXX"; then 4199 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4200else 4201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4202for as_dir in $PATH 4203do 4204 IFS=$as_save_IFS 4205 test -z "$as_dir" && as_dir=. 4206 for ac_exec_ext in '' $ac_executable_extensions; do 4207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4208 ac_cv_prog_ac_ct_CXX="$ac_prog" 4209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4210 break 2 4211 fi 4212done 4213 done 4214IFS=$as_save_IFS 4215 4216fi 4217fi 4218ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4219if test -n "$ac_ct_CXX"; then 4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4221$as_echo "$ac_ct_CXX" >&6; } 4222else 4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4224$as_echo "no" >&6; } 4225fi 4226 4227 4228 test -n "$ac_ct_CXX" && break 4229done 4230 4231 if test "x$ac_ct_CXX" = x; then 4232 CXX="g++" 4233 else 4234 case $cross_compiling:$ac_tool_warned in 4235yes:) 4236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4238ac_tool_warned=yes ;; 4239esac 4240 CXX=$ac_ct_CXX 4241 fi 4242fi 4243 4244 fi 4245fi 4246# Provide some information about the compiler. 4247$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4248set X $ac_compile 4249ac_compiler=$2 4250for ac_option in --version -v -V -qversion; do 4251 { { ac_try="$ac_compiler $ac_option >&5" 4252case "(($ac_try" in 4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4254 *) ac_try_echo=$ac_try;; 4255esac 4256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4257$as_echo "$ac_try_echo"; } >&5 4258 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4259 ac_status=$? 4260 if test -s conftest.err; then 4261 sed '10a\ 4262... rest of stderr output deleted ... 4263 10q' conftest.err >conftest.er1 4264 cat conftest.er1 >&5 4265 fi 4266 rm -f conftest.er1 conftest.err 4267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4268 test $ac_status = 0; } 4269done 4270 4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4272$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4273if ${ac_cv_cxx_compiler_gnu+:} false; then : 4274 $as_echo_n "(cached) " >&6 4275else 4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4277/* end confdefs.h. */ 4278 4279int 4280main () 4281{ 4282#ifndef __GNUC__ 4283 choke me 4284#endif 4285 4286 ; 4287 return 0; 4288} 4289_ACEOF 4290if ac_fn_cxx_try_compile "$LINENO"; then : 4291 ac_compiler_gnu=yes 4292else 4293 ac_compiler_gnu=no 4294fi 4295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4296ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4297 4298fi 4299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4300$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4301if test $ac_compiler_gnu = yes; then 4302 GXX=yes 4303else 4304 GXX= 4305fi 4306ac_test_CXXFLAGS=${CXXFLAGS+set} 4307ac_save_CXXFLAGS=$CXXFLAGS 4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4309$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4310if ${ac_cv_prog_cxx_g+:} false; then : 4311 $as_echo_n "(cached) " >&6 4312else 4313 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4314 ac_cxx_werror_flag=yes 4315 ac_cv_prog_cxx_g=no 4316 CXXFLAGS="-g" 4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4318/* end confdefs.h. */ 4319 4320int 4321main () 4322{ 4323 4324 ; 4325 return 0; 4326} 4327_ACEOF 4328if ac_fn_cxx_try_compile "$LINENO"; then : 4329 ac_cv_prog_cxx_g=yes 4330else 4331 CXXFLAGS="" 4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4333/* end confdefs.h. */ 4334 4335int 4336main () 4337{ 4338 4339 ; 4340 return 0; 4341} 4342_ACEOF 4343if ac_fn_cxx_try_compile "$LINENO"; then : 4344 4345else 4346 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4347 CXXFLAGS="-g" 4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4349/* end confdefs.h. */ 4350 4351int 4352main () 4353{ 4354 4355 ; 4356 return 0; 4357} 4358_ACEOF 4359if ac_fn_cxx_try_compile "$LINENO"; then : 4360 ac_cv_prog_cxx_g=yes 4361fi 4362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4363fi 4364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4365fi 4366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4367 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4368fi 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4370$as_echo "$ac_cv_prog_cxx_g" >&6; } 4371if test "$ac_test_CXXFLAGS" = set; then 4372 CXXFLAGS=$ac_save_CXXFLAGS 4373elif test $ac_cv_prog_cxx_g = yes; then 4374 if test "$GXX" = yes; then 4375 CXXFLAGS="-g -O2" 4376 else 4377 CXXFLAGS="-g" 4378 fi 4379else 4380 if test "$GXX" = yes; then 4381 CXXFLAGS="-O2" 4382 else 4383 CXXFLAGS= 4384 fi 4385fi 4386ac_ext=c 4387ac_cpp='$CPP $CPPFLAGS' 4388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4390ac_compiler_gnu=$ac_cv_c_compiler_gnu 4391 4392depcc="$CXX" am_compiler_list= 4393 4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4395$as_echo_n "checking dependency style of $depcc... " >&6; } 4396if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4397 $as_echo_n "(cached) " >&6 4398else 4399 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4400 # We make a subdir and do the tests there. Otherwise we can end up 4401 # making bogus files that we don't know about and never remove. For 4402 # instance it was reported that on HP-UX the gcc test will end up 4403 # making a dummy file named `D' -- because `-MD' means `put the output 4404 # in D'. 4405 mkdir conftest.dir 4406 # Copy depcomp to subdir because otherwise we won't find it if we're 4407 # using a relative directory. 4408 cp "$am_depcomp" conftest.dir 4409 cd conftest.dir 4410 # We will build objects and dependencies in a subdirectory because 4411 # it helps to detect inapplicable dependency modes. For instance 4412 # both Tru64's cc and ICC support -MD to output dependencies as a 4413 # side effect of compilation, but ICC will put the dependencies in 4414 # the current directory while Tru64 will put them in the object 4415 # directory. 4416 mkdir sub 4417 4418 am_cv_CXX_dependencies_compiler_type=none 4419 if test "$am_compiler_list" = ""; then 4420 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4421 fi 4422 am__universal=false 4423 case " $depcc " in #( 4424 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4425 esac 4426 4427 for depmode in $am_compiler_list; do 4428 # Setup a source with many dependencies, because some compilers 4429 # like to wrap large dependency lists on column 80 (with \), and 4430 # we should not choose a depcomp mode which is confused by this. 4431 # 4432 # We need to recreate these files for each test, as the compiler may 4433 # overwrite some of them when testing with obscure command lines. 4434 # This happens at least with the AIX C compiler. 4435 : > sub/conftest.c 4436 for i in 1 2 3 4 5 6; do 4437 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4438 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4439 # Solaris 8's {/usr,}/bin/sh. 4440 touch sub/conftst$i.h 4441 done 4442 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4443 4444 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4445 # mode. It turns out that the SunPro C++ compiler does not properly 4446 # handle `-M -o', and we need to detect this. Also, some Intel 4447 # versions had trouble with output in subdirs 4448 am__obj=sub/conftest.${OBJEXT-o} 4449 am__minus_obj="-o $am__obj" 4450 case $depmode in 4451 gcc) 4452 # This depmode causes a compiler race in universal mode. 4453 test "$am__universal" = false || continue 4454 ;; 4455 nosideeffect) 4456 # after this tag, mechanisms are not by side-effect, so they'll 4457 # only be used when explicitly requested 4458 if test "x$enable_dependency_tracking" = xyes; then 4459 continue 4460 else 4461 break 4462 fi 4463 ;; 4464 msvisualcpp | msvcmsys) 4465 # This compiler won't grok `-c -o', but also, the minuso test has 4466 # not run yet. These depmodes are late enough in the game, and 4467 # so weak that their functioning should not be impacted. 4468 am__obj=conftest.${OBJEXT-o} 4469 am__minus_obj= 4470 ;; 4471 none) break ;; 4472 esac 4473 if depmode=$depmode \ 4474 source=sub/conftest.c object=$am__obj \ 4475 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4476 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4477 >/dev/null 2>conftest.err && 4478 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4479 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4480 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4481 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4482 # icc doesn't choke on unknown options, it will just issue warnings 4483 # or remarks (even with -Werror). So we grep stderr for any message 4484 # that says an option was ignored or not supported. 4485 # When given -MP, icc 7.0 and 7.1 complain thusly: 4486 # icc: Command line warning: ignoring option '-M'; no argument required 4487 # The diagnosis changed in icc 8.0: 4488 # icc: Command line remark: option '-MP' not supported 4489 if (grep 'ignoring option' conftest.err || 4490 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4491 am_cv_CXX_dependencies_compiler_type=$depmode 4492 break 4493 fi 4494 fi 4495 done 4496 4497 cd .. 4498 rm -rf conftest.dir 4499else 4500 am_cv_CXX_dependencies_compiler_type=none 4501fi 4502 4503fi 4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4505$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4506CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4507 4508 if 4509 test "x$enable_dependency_tracking" != xno \ 4510 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4511 am__fastdepCXX_TRUE= 4512 am__fastdepCXX_FALSE='#' 4513else 4514 am__fastdepCXX_TRUE='#' 4515 am__fastdepCXX_FALSE= 4516fi 4517 4518 4519enable_win32_dll=yes 4520 4521case $host in 4522*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 4523 if test -n "$ac_tool_prefix"; then 4524 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4525set dummy ${ac_tool_prefix}as; ac_word=$2 4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4527$as_echo_n "checking for $ac_word... " >&6; } 4528if ${ac_cv_prog_AS+:} false; then : 4529 $as_echo_n "(cached) " >&6 4530else 4531 if test -n "$AS"; then 4532 ac_cv_prog_AS="$AS" # Let the user override the test. 4533else 4534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4535for as_dir in $PATH 4536do 4537 IFS=$as_save_IFS 4538 test -z "$as_dir" && as_dir=. 4539 for ac_exec_ext in '' $ac_executable_extensions; do 4540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4541 ac_cv_prog_AS="${ac_tool_prefix}as" 4542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4543 break 2 4544 fi 4545done 4546 done 4547IFS=$as_save_IFS 4548 4549fi 4550fi 4551AS=$ac_cv_prog_AS 4552if test -n "$AS"; then 4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4554$as_echo "$AS" >&6; } 4555else 4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4557$as_echo "no" >&6; } 4558fi 4559 4560 4561fi 4562if test -z "$ac_cv_prog_AS"; then 4563 ac_ct_AS=$AS 4564 # Extract the first word of "as", so it can be a program name with args. 4565set dummy as; ac_word=$2 4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4567$as_echo_n "checking for $ac_word... " >&6; } 4568if ${ac_cv_prog_ac_ct_AS+:} false; then : 4569 $as_echo_n "(cached) " >&6 4570else 4571 if test -n "$ac_ct_AS"; then 4572 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4573else 4574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4575for as_dir in $PATH 4576do 4577 IFS=$as_save_IFS 4578 test -z "$as_dir" && as_dir=. 4579 for ac_exec_ext in '' $ac_executable_extensions; do 4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4581 ac_cv_prog_ac_ct_AS="as" 4582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4583 break 2 4584 fi 4585done 4586 done 4587IFS=$as_save_IFS 4588 4589fi 4590fi 4591ac_ct_AS=$ac_cv_prog_ac_ct_AS 4592if test -n "$ac_ct_AS"; then 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 4594$as_echo "$ac_ct_AS" >&6; } 4595else 4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4597$as_echo "no" >&6; } 4598fi 4599 4600 if test "x$ac_ct_AS" = x; then 4601 AS="false" 4602 else 4603 case $cross_compiling:$ac_tool_warned in 4604yes:) 4605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4607ac_tool_warned=yes ;; 4608esac 4609 AS=$ac_ct_AS 4610 fi 4611else 4612 AS="$ac_cv_prog_AS" 4613fi 4614 4615 if test -n "$ac_tool_prefix"; then 4616 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4617set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4619$as_echo_n "checking for $ac_word... " >&6; } 4620if ${ac_cv_prog_DLLTOOL+:} false; then : 4621 $as_echo_n "(cached) " >&6 4622else 4623 if test -n "$DLLTOOL"; then 4624 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4625else 4626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4627for as_dir in $PATH 4628do 4629 IFS=$as_save_IFS 4630 test -z "$as_dir" && as_dir=. 4631 for ac_exec_ext in '' $ac_executable_extensions; do 4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4633 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4635 break 2 4636 fi 4637done 4638 done 4639IFS=$as_save_IFS 4640 4641fi 4642fi 4643DLLTOOL=$ac_cv_prog_DLLTOOL 4644if test -n "$DLLTOOL"; then 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4646$as_echo "$DLLTOOL" >&6; } 4647else 4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4649$as_echo "no" >&6; } 4650fi 4651 4652 4653fi 4654if test -z "$ac_cv_prog_DLLTOOL"; then 4655 ac_ct_DLLTOOL=$DLLTOOL 4656 # Extract the first word of "dlltool", so it can be a program name with args. 4657set dummy dlltool; ac_word=$2 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4659$as_echo_n "checking for $ac_word... " >&6; } 4660if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4661 $as_echo_n "(cached) " >&6 4662else 4663 if test -n "$ac_ct_DLLTOOL"; then 4664 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4665else 4666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4667for as_dir in $PATH 4668do 4669 IFS=$as_save_IFS 4670 test -z "$as_dir" && as_dir=. 4671 for ac_exec_ext in '' $ac_executable_extensions; do 4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4673 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4675 break 2 4676 fi 4677done 4678 done 4679IFS=$as_save_IFS 4680 4681fi 4682fi 4683ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4684if test -n "$ac_ct_DLLTOOL"; then 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4686$as_echo "$ac_ct_DLLTOOL" >&6; } 4687else 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4689$as_echo "no" >&6; } 4690fi 4691 4692 if test "x$ac_ct_DLLTOOL" = x; then 4693 DLLTOOL="false" 4694 else 4695 case $cross_compiling:$ac_tool_warned in 4696yes:) 4697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4699ac_tool_warned=yes ;; 4700esac 4701 DLLTOOL=$ac_ct_DLLTOOL 4702 fi 4703else 4704 DLLTOOL="$ac_cv_prog_DLLTOOL" 4705fi 4706 4707 if test -n "$ac_tool_prefix"; then 4708 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4709set dummy ${ac_tool_prefix}objdump; ac_word=$2 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4711$as_echo_n "checking for $ac_word... " >&6; } 4712if ${ac_cv_prog_OBJDUMP+:} false; then : 4713 $as_echo_n "(cached) " >&6 4714else 4715 if test -n "$OBJDUMP"; then 4716 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4717else 4718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4719for as_dir in $PATH 4720do 4721 IFS=$as_save_IFS 4722 test -z "$as_dir" && as_dir=. 4723 for ac_exec_ext in '' $ac_executable_extensions; do 4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4725 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4727 break 2 4728 fi 4729done 4730 done 4731IFS=$as_save_IFS 4732 4733fi 4734fi 4735OBJDUMP=$ac_cv_prog_OBJDUMP 4736if test -n "$OBJDUMP"; then 4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4738$as_echo "$OBJDUMP" >&6; } 4739else 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4741$as_echo "no" >&6; } 4742fi 4743 4744 4745fi 4746if test -z "$ac_cv_prog_OBJDUMP"; then 4747 ac_ct_OBJDUMP=$OBJDUMP 4748 # Extract the first word of "objdump", so it can be a program name with args. 4749set dummy objdump; ac_word=$2 4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4751$as_echo_n "checking for $ac_word... " >&6; } 4752if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4753 $as_echo_n "(cached) " >&6 4754else 4755 if test -n "$ac_ct_OBJDUMP"; then 4756 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4757else 4758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4759for as_dir in $PATH 4760do 4761 IFS=$as_save_IFS 4762 test -z "$as_dir" && as_dir=. 4763 for ac_exec_ext in '' $ac_executable_extensions; do 4764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4765 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4767 break 2 4768 fi 4769done 4770 done 4771IFS=$as_save_IFS 4772 4773fi 4774fi 4775ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4776if test -n "$ac_ct_OBJDUMP"; then 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4778$as_echo "$ac_ct_OBJDUMP" >&6; } 4779else 4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4781$as_echo "no" >&6; } 4782fi 4783 4784 if test "x$ac_ct_OBJDUMP" = x; then 4785 OBJDUMP="false" 4786 else 4787 case $cross_compiling:$ac_tool_warned in 4788yes:) 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4791ac_tool_warned=yes ;; 4792esac 4793 OBJDUMP=$ac_ct_OBJDUMP 4794 fi 4795else 4796 OBJDUMP="$ac_cv_prog_OBJDUMP" 4797fi 4798 4799 ;; 4800esac 4801 4802test -z "$AS" && AS=as 4803 4804 4805 4806 4807 4808test -z "$DLLTOOL" && DLLTOOL=dlltool 4809 4810 4811 4812 4813 4814test -z "$OBJDUMP" && OBJDUMP=objdump 4815 4816 4817 4818 4819 4820 4821 4822case `pwd` in 4823 *\ * | *\ *) 4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4825$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4826esac 4827 4828 4829 4830macro_version='2.4' 4831macro_revision='1.3293' 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845ltmain="$ac_aux_dir/ltmain.sh" 4846 4847# Backslashify metacharacters that are still active within 4848# double-quoted strings. 4849sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4850 4851# Same as above, but do not quote variable references. 4852double_quote_subst='s/\(["`\\]\)/\\\1/g' 4853 4854# Sed substitution to delay expansion of an escaped shell variable in a 4855# double_quote_subst'ed string. 4856delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4857 4858# Sed substitution to delay expansion of an escaped single quote. 4859delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4860 4861# Sed substitution to avoid accidental globbing in evaled expressions 4862no_glob_subst='s/\*/\\\*/g' 4863 4864ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4865ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4866ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4867 4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4869$as_echo_n "checking how to print strings... " >&6; } 4870# Test print first, because it will be a builtin if present. 4871if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4872 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4873 ECHO='print -r --' 4874elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4875 ECHO='printf %s\n' 4876else 4877 # Use this function as a fallback that always works. 4878 func_fallback_echo () 4879 { 4880 eval 'cat <<_LTECHO_EOF 4881$1 4882_LTECHO_EOF' 4883 } 4884 ECHO='func_fallback_echo' 4885fi 4886 4887# func_echo_all arg... 4888# Invoke $ECHO with all args, space-separated. 4889func_echo_all () 4890{ 4891 $ECHO "" 4892} 4893 4894case "$ECHO" in 4895 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4896$as_echo "printf" >&6; } ;; 4897 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4898$as_echo "print -r" >&6; } ;; 4899 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4900$as_echo "cat" >&6; } ;; 4901esac 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4917$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4918if ${ac_cv_path_SED+:} false; then : 4919 $as_echo_n "(cached) " >&6 4920else 4921 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4922 for ac_i in 1 2 3 4 5 6 7; do 4923 ac_script="$ac_script$as_nl$ac_script" 4924 done 4925 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4926 { ac_script=; unset ac_script;} 4927 if test -z "$SED"; then 4928 ac_path_SED_found=false 4929 # Loop through the user's path and test for each of PROGNAME-LIST 4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4931for as_dir in $PATH 4932do 4933 IFS=$as_save_IFS 4934 test -z "$as_dir" && as_dir=. 4935 for ac_prog in sed gsed; do 4936 for ac_exec_ext in '' $ac_executable_extensions; do 4937 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4938 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4939# Check for GNU ac_path_SED and select it if it is found. 4940 # Check for GNU $ac_path_SED 4941case `"$ac_path_SED" --version 2>&1` in 4942*GNU*) 4943 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4944*) 4945 ac_count=0 4946 $as_echo_n 0123456789 >"conftest.in" 4947 while : 4948 do 4949 cat "conftest.in" "conftest.in" >"conftest.tmp" 4950 mv "conftest.tmp" "conftest.in" 4951 cp "conftest.in" "conftest.nl" 4952 $as_echo '' >> "conftest.nl" 4953 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4955 as_fn_arith $ac_count + 1 && ac_count=$as_val 4956 if test $ac_count -gt ${ac_path_SED_max-0}; then 4957 # Best one so far, save it but keep looking for a better one 4958 ac_cv_path_SED="$ac_path_SED" 4959 ac_path_SED_max=$ac_count 4960 fi 4961 # 10*(2^10) chars as input seems more than enough 4962 test $ac_count -gt 10 && break 4963 done 4964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4965esac 4966 4967 $ac_path_SED_found && break 3 4968 done 4969 done 4970 done 4971IFS=$as_save_IFS 4972 if test -z "$ac_cv_path_SED"; then 4973 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4974 fi 4975else 4976 ac_cv_path_SED=$SED 4977fi 4978 4979fi 4980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4981$as_echo "$ac_cv_path_SED" >&6; } 4982 SED="$ac_cv_path_SED" 4983 rm -f conftest.sed 4984 4985test -z "$SED" && SED=sed 4986Xsed="$SED -e 1s/^X//" 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4999$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5000if ${ac_cv_path_GREP+:} false; then : 5001 $as_echo_n "(cached) " >&6 5002else 5003 if test -z "$GREP"; then 5004 ac_path_GREP_found=false 5005 # Loop through the user's path and test for each of PROGNAME-LIST 5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5007for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5008do 5009 IFS=$as_save_IFS 5010 test -z "$as_dir" && as_dir=. 5011 for ac_prog in grep ggrep; do 5012 for ac_exec_ext in '' $ac_executable_extensions; do 5013 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5014 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5015# Check for GNU ac_path_GREP and select it if it is found. 5016 # Check for GNU $ac_path_GREP 5017case `"$ac_path_GREP" --version 2>&1` in 5018*GNU*) 5019 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5020*) 5021 ac_count=0 5022 $as_echo_n 0123456789 >"conftest.in" 5023 while : 5024 do 5025 cat "conftest.in" "conftest.in" >"conftest.tmp" 5026 mv "conftest.tmp" "conftest.in" 5027 cp "conftest.in" "conftest.nl" 5028 $as_echo 'GREP' >> "conftest.nl" 5029 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5031 as_fn_arith $ac_count + 1 && ac_count=$as_val 5032 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5033 # Best one so far, save it but keep looking for a better one 5034 ac_cv_path_GREP="$ac_path_GREP" 5035 ac_path_GREP_max=$ac_count 5036 fi 5037 # 10*(2^10) chars as input seems more than enough 5038 test $ac_count -gt 10 && break 5039 done 5040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5041esac 5042 5043 $ac_path_GREP_found && break 3 5044 done 5045 done 5046 done 5047IFS=$as_save_IFS 5048 if test -z "$ac_cv_path_GREP"; then 5049 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5050 fi 5051else 5052 ac_cv_path_GREP=$GREP 5053fi 5054 5055fi 5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5057$as_echo "$ac_cv_path_GREP" >&6; } 5058 GREP="$ac_cv_path_GREP" 5059 5060 5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5062$as_echo_n "checking for egrep... " >&6; } 5063if ${ac_cv_path_EGREP+:} false; then : 5064 $as_echo_n "(cached) " >&6 5065else 5066 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5067 then ac_cv_path_EGREP="$GREP -E" 5068 else 5069 if test -z "$EGREP"; then 5070 ac_path_EGREP_found=false 5071 # Loop through the user's path and test for each of PROGNAME-LIST 5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5073for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5074do 5075 IFS=$as_save_IFS 5076 test -z "$as_dir" && as_dir=. 5077 for ac_prog in egrep; do 5078 for ac_exec_ext in '' $ac_executable_extensions; do 5079 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5080 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5081# Check for GNU ac_path_EGREP and select it if it is found. 5082 # Check for GNU $ac_path_EGREP 5083case `"$ac_path_EGREP" --version 2>&1` in 5084*GNU*) 5085 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5086*) 5087 ac_count=0 5088 $as_echo_n 0123456789 >"conftest.in" 5089 while : 5090 do 5091 cat "conftest.in" "conftest.in" >"conftest.tmp" 5092 mv "conftest.tmp" "conftest.in" 5093 cp "conftest.in" "conftest.nl" 5094 $as_echo 'EGREP' >> "conftest.nl" 5095 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5097 as_fn_arith $ac_count + 1 && ac_count=$as_val 5098 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5099 # Best one so far, save it but keep looking for a better one 5100 ac_cv_path_EGREP="$ac_path_EGREP" 5101 ac_path_EGREP_max=$ac_count 5102 fi 5103 # 10*(2^10) chars as input seems more than enough 5104 test $ac_count -gt 10 && break 5105 done 5106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5107esac 5108 5109 $ac_path_EGREP_found && break 3 5110 done 5111 done 5112 done 5113IFS=$as_save_IFS 5114 if test -z "$ac_cv_path_EGREP"; then 5115 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5116 fi 5117else 5118 ac_cv_path_EGREP=$EGREP 5119fi 5120 5121 fi 5122fi 5123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5124$as_echo "$ac_cv_path_EGREP" >&6; } 5125 EGREP="$ac_cv_path_EGREP" 5126 5127 5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5129$as_echo_n "checking for fgrep... " >&6; } 5130if ${ac_cv_path_FGREP+:} false; then : 5131 $as_echo_n "(cached) " >&6 5132else 5133 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5134 then ac_cv_path_FGREP="$GREP -F" 5135 else 5136 if test -z "$FGREP"; then 5137 ac_path_FGREP_found=false 5138 # Loop through the user's path and test for each of PROGNAME-LIST 5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5140for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5141do 5142 IFS=$as_save_IFS 5143 test -z "$as_dir" && as_dir=. 5144 for ac_prog in fgrep; do 5145 for ac_exec_ext in '' $ac_executable_extensions; do 5146 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5147 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5148# Check for GNU ac_path_FGREP and select it if it is found. 5149 # Check for GNU $ac_path_FGREP 5150case `"$ac_path_FGREP" --version 2>&1` in 5151*GNU*) 5152 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5153*) 5154 ac_count=0 5155 $as_echo_n 0123456789 >"conftest.in" 5156 while : 5157 do 5158 cat "conftest.in" "conftest.in" >"conftest.tmp" 5159 mv "conftest.tmp" "conftest.in" 5160 cp "conftest.in" "conftest.nl" 5161 $as_echo 'FGREP' >> "conftest.nl" 5162 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5164 as_fn_arith $ac_count + 1 && ac_count=$as_val 5165 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5166 # Best one so far, save it but keep looking for a better one 5167 ac_cv_path_FGREP="$ac_path_FGREP" 5168 ac_path_FGREP_max=$ac_count 5169 fi 5170 # 10*(2^10) chars as input seems more than enough 5171 test $ac_count -gt 10 && break 5172 done 5173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5174esac 5175 5176 $ac_path_FGREP_found && break 3 5177 done 5178 done 5179 done 5180IFS=$as_save_IFS 5181 if test -z "$ac_cv_path_FGREP"; then 5182 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5183 fi 5184else 5185 ac_cv_path_FGREP=$FGREP 5186fi 5187 5188 fi 5189fi 5190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5191$as_echo "$ac_cv_path_FGREP" >&6; } 5192 FGREP="$ac_cv_path_FGREP" 5193 5194 5195test -z "$GREP" && GREP=grep 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215# Check whether --with-gnu-ld was given. 5216if test "${with_gnu_ld+set}" = set; then : 5217 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5218else 5219 with_gnu_ld=no 5220fi 5221 5222ac_prog=ld 5223if test "$GCC" = yes; then 5224 # Check if gcc -print-prog-name=ld gives a path. 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5226$as_echo_n "checking for ld used by $CC... " >&6; } 5227 case $host in 5228 *-*-mingw*) 5229 # gcc leaves a trailing carriage return which upsets mingw 5230 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5231 *) 5232 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5233 esac 5234 case $ac_prog in 5235 # Accept absolute paths. 5236 [\\/]* | ?:[\\/]*) 5237 re_direlt='/[^/][^/]*/\.\./' 5238 # Canonicalize the pathname of ld 5239 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5240 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5241 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5242 done 5243 test -z "$LD" && LD="$ac_prog" 5244 ;; 5245 "") 5246 # If it fails, then pretend we aren't using GCC. 5247 ac_prog=ld 5248 ;; 5249 *) 5250 # If it is relative, then search for the first ld in PATH. 5251 with_gnu_ld=unknown 5252 ;; 5253 esac 5254elif test "$with_gnu_ld" = yes; then 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5256$as_echo_n "checking for GNU ld... " >&6; } 5257else 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5259$as_echo_n "checking for non-GNU ld... " >&6; } 5260fi 5261if ${lt_cv_path_LD+:} false; then : 5262 $as_echo_n "(cached) " >&6 5263else 5264 if test -z "$LD"; then 5265 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5266 for ac_dir in $PATH; do 5267 IFS="$lt_save_ifs" 5268 test -z "$ac_dir" && ac_dir=. 5269 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5270 lt_cv_path_LD="$ac_dir/$ac_prog" 5271 # Check to see if the program is GNU ld. I'd rather use --version, 5272 # but apparently some variants of GNU ld only accept -v. 5273 # Break only if it was the GNU/non-GNU ld that we prefer. 5274 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5275 *GNU* | *'with BFD'*) 5276 test "$with_gnu_ld" != no && break 5277 ;; 5278 *) 5279 test "$with_gnu_ld" != yes && break 5280 ;; 5281 esac 5282 fi 5283 done 5284 IFS="$lt_save_ifs" 5285else 5286 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5287fi 5288fi 5289 5290LD="$lt_cv_path_LD" 5291if test -n "$LD"; then 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5293$as_echo "$LD" >&6; } 5294else 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5296$as_echo "no" >&6; } 5297fi 5298test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5300$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5301if ${lt_cv_prog_gnu_ld+:} false; then : 5302 $as_echo_n "(cached) " >&6 5303else 5304 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5305case `$LD -v 2>&1 </dev/null` in 5306*GNU* | *'with BFD'*) 5307 lt_cv_prog_gnu_ld=yes 5308 ;; 5309*) 5310 lt_cv_prog_gnu_ld=no 5311 ;; 5312esac 5313fi 5314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5315$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5316with_gnu_ld=$lt_cv_prog_gnu_ld 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5327$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5328if ${lt_cv_path_NM+:} false; then : 5329 $as_echo_n "(cached) " >&6 5330else 5331 if test -n "$NM"; then 5332 # Let the user override the test. 5333 lt_cv_path_NM="$NM" 5334else 5335 lt_nm_to_check="${ac_tool_prefix}nm" 5336 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5337 lt_nm_to_check="$lt_nm_to_check nm" 5338 fi 5339 for lt_tmp_nm in $lt_nm_to_check; do 5340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5341 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5342 IFS="$lt_save_ifs" 5343 test -z "$ac_dir" && ac_dir=. 5344 tmp_nm="$ac_dir/$lt_tmp_nm" 5345 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5346 # Check to see if the nm accepts a BSD-compat flag. 5347 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5348 # nm: unknown option "B" ignored 5349 # Tru64's nm complains that /dev/null is an invalid object file 5350 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5351 */dev/null* | *'Invalid file or object type'*) 5352 lt_cv_path_NM="$tmp_nm -B" 5353 break 5354 ;; 5355 *) 5356 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5357 */dev/null*) 5358 lt_cv_path_NM="$tmp_nm -p" 5359 break 5360 ;; 5361 *) 5362 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5363 continue # so that we can try to find one that supports BSD flags 5364 ;; 5365 esac 5366 ;; 5367 esac 5368 fi 5369 done 5370 IFS="$lt_save_ifs" 5371 done 5372 : ${lt_cv_path_NM=no} 5373fi 5374fi 5375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5376$as_echo "$lt_cv_path_NM" >&6; } 5377if test "$lt_cv_path_NM" != "no"; then 5378 NM="$lt_cv_path_NM" 5379else 5380 # Didn't find any BSD compatible name lister, look for dumpbin. 5381 if test -n "$DUMPBIN"; then : 5382 # Let the user override the test. 5383 else 5384 if test -n "$ac_tool_prefix"; then 5385 for ac_prog in dumpbin "link -dump" 5386 do 5387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5388set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5390$as_echo_n "checking for $ac_word... " >&6; } 5391if ${ac_cv_prog_DUMPBIN+:} false; then : 5392 $as_echo_n "(cached) " >&6 5393else 5394 if test -n "$DUMPBIN"; then 5395 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5396else 5397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5398for as_dir in $PATH 5399do 5400 IFS=$as_save_IFS 5401 test -z "$as_dir" && as_dir=. 5402 for ac_exec_ext in '' $ac_executable_extensions; do 5403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5404 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5406 break 2 5407 fi 5408done 5409 done 5410IFS=$as_save_IFS 5411 5412fi 5413fi 5414DUMPBIN=$ac_cv_prog_DUMPBIN 5415if test -n "$DUMPBIN"; then 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5417$as_echo "$DUMPBIN" >&6; } 5418else 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5420$as_echo "no" >&6; } 5421fi 5422 5423 5424 test -n "$DUMPBIN" && break 5425 done 5426fi 5427if test -z "$DUMPBIN"; then 5428 ac_ct_DUMPBIN=$DUMPBIN 5429 for ac_prog in dumpbin "link -dump" 5430do 5431 # Extract the first word of "$ac_prog", so it can be a program name with args. 5432set dummy $ac_prog; ac_word=$2 5433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5434$as_echo_n "checking for $ac_word... " >&6; } 5435if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5436 $as_echo_n "(cached) " >&6 5437else 5438 if test -n "$ac_ct_DUMPBIN"; then 5439 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5440else 5441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5442for as_dir in $PATH 5443do 5444 IFS=$as_save_IFS 5445 test -z "$as_dir" && as_dir=. 5446 for ac_exec_ext in '' $ac_executable_extensions; do 5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5448 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5450 break 2 5451 fi 5452done 5453 done 5454IFS=$as_save_IFS 5455 5456fi 5457fi 5458ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5459if test -n "$ac_ct_DUMPBIN"; then 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5461$as_echo "$ac_ct_DUMPBIN" >&6; } 5462else 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5464$as_echo "no" >&6; } 5465fi 5466 5467 5468 test -n "$ac_ct_DUMPBIN" && break 5469done 5470 5471 if test "x$ac_ct_DUMPBIN" = x; then 5472 DUMPBIN=":" 5473 else 5474 case $cross_compiling:$ac_tool_warned in 5475yes:) 5476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5478ac_tool_warned=yes ;; 5479esac 5480 DUMPBIN=$ac_ct_DUMPBIN 5481 fi 5482fi 5483 5484 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5485 *COFF*) 5486 DUMPBIN="$DUMPBIN -symbols" 5487 ;; 5488 *) 5489 DUMPBIN=: 5490 ;; 5491 esac 5492 fi 5493 5494 if test "$DUMPBIN" != ":"; then 5495 NM="$DUMPBIN" 5496 fi 5497fi 5498test -z "$NM" && NM=nm 5499 5500 5501 5502 5503 5504 5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5506$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5507if ${lt_cv_nm_interface+:} false; then : 5508 $as_echo_n "(cached) " >&6 5509else 5510 lt_cv_nm_interface="BSD nm" 5511 echo "int some_variable = 0;" > conftest.$ac_ext 5512 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5513 (eval "$ac_compile" 2>conftest.err) 5514 cat conftest.err >&5 5515 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5516 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5517 cat conftest.err >&5 5518 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5519 cat conftest.out >&5 5520 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5521 lt_cv_nm_interface="MS dumpbin" 5522 fi 5523 rm -f conftest* 5524fi 5525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5526$as_echo "$lt_cv_nm_interface" >&6; } 5527 5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5529$as_echo_n "checking whether ln -s works... " >&6; } 5530LN_S=$as_ln_s 5531if test "$LN_S" = "ln -s"; then 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5533$as_echo "yes" >&6; } 5534else 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5536$as_echo "no, using $LN_S" >&6; } 5537fi 5538 5539# find the maximum length of command line arguments 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5541$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5542if ${lt_cv_sys_max_cmd_len+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544else 5545 i=0 5546 teststring="ABCD" 5547 5548 case $build_os in 5549 msdosdjgpp*) 5550 # On DJGPP, this test can blow up pretty badly due to problems in libc 5551 # (any single argument exceeding 2000 bytes causes a buffer overrun 5552 # during glob expansion). Even if it were fixed, the result of this 5553 # check would be larger than it should be. 5554 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5555 ;; 5556 5557 gnu*) 5558 # Under GNU Hurd, this test is not required because there is 5559 # no limit to the length of command line arguments. 5560 # Libtool will interpret -1 as no limit whatsoever 5561 lt_cv_sys_max_cmd_len=-1; 5562 ;; 5563 5564 cygwin* | mingw* | cegcc*) 5565 # On Win9x/ME, this test blows up -- it succeeds, but takes 5566 # about 5 minutes as the teststring grows exponentially. 5567 # Worse, since 9x/ME are not pre-emptively multitasking, 5568 # you end up with a "frozen" computer, even though with patience 5569 # the test eventually succeeds (with a max line length of 256k). 5570 # Instead, let's just punt: use the minimum linelength reported by 5571 # all of the supported platforms: 8192 (on NT/2K/XP). 5572 lt_cv_sys_max_cmd_len=8192; 5573 ;; 5574 5575 mint*) 5576 # On MiNT this can take a long time and run out of memory. 5577 lt_cv_sys_max_cmd_len=8192; 5578 ;; 5579 5580 amigaos*) 5581 # On AmigaOS with pdksh, this test takes hours, literally. 5582 # So we just punt and use a minimum line length of 8192. 5583 lt_cv_sys_max_cmd_len=8192; 5584 ;; 5585 5586 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5587 # This has been around since 386BSD, at least. Likely further. 5588 if test -x /sbin/sysctl; then 5589 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5590 elif test -x /usr/sbin/sysctl; then 5591 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5592 else 5593 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5594 fi 5595 # And add a safety zone 5596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5598 ;; 5599 5600 interix*) 5601 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5602 lt_cv_sys_max_cmd_len=196608 5603 ;; 5604 5605 osf*) 5606 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5607 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5608 # nice to cause kernel panics so lets avoid the loop below. 5609 # First set a reasonable default. 5610 lt_cv_sys_max_cmd_len=16384 5611 # 5612 if test -x /sbin/sysconfig; then 5613 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5614 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5615 esac 5616 fi 5617 ;; 5618 sco3.2v5*) 5619 lt_cv_sys_max_cmd_len=102400 5620 ;; 5621 sysv5* | sco5v6* | sysv4.2uw2*) 5622 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5623 if test -n "$kargmax"; then 5624 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5625 else 5626 lt_cv_sys_max_cmd_len=32768 5627 fi 5628 ;; 5629 *) 5630 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5631 if test -n "$lt_cv_sys_max_cmd_len"; then 5632 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5634 else 5635 # Make teststring a little bigger before we do anything with it. 5636 # a 1K string should be a reasonable start. 5637 for i in 1 2 3 4 5 6 7 8 ; do 5638 teststring=$teststring$teststring 5639 done 5640 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5641 # If test is not a shell built-in, we'll probably end up computing a 5642 # maximum length that is only half of the actual maximum length, but 5643 # we can't tell. 5644 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5645 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5646 test $i != 17 # 1/2 MB should be enough 5647 do 5648 i=`expr $i + 1` 5649 teststring=$teststring$teststring 5650 done 5651 # Only check the string length outside the loop. 5652 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5653 teststring= 5654 # Add a significant safety factor because C++ compilers can tack on 5655 # massive amounts of additional arguments before passing them to the 5656 # linker. It appears as though 1/2 is a usable value. 5657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5658 fi 5659 ;; 5660 esac 5661 5662fi 5663 5664if test -n $lt_cv_sys_max_cmd_len ; then 5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5666$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5667else 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5669$as_echo "none" >&6; } 5670fi 5671max_cmd_len=$lt_cv_sys_max_cmd_len 5672 5673 5674 5675 5676 5677 5678: ${CP="cp -f"} 5679: ${MV="mv -f"} 5680: ${RM="rm -f"} 5681 5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5683$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5684# Try some XSI features 5685xsi_shell=no 5686( _lt_dummy="a/b/c" 5687 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5688 = c,a/b,b/c, \ 5689 && eval 'test $(( 1 + 1 )) -eq 2 \ 5690 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5691 && xsi_shell=yes 5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5693$as_echo "$xsi_shell" >&6; } 5694 5695 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5697$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5698lt_shell_append=no 5699( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5700 >/dev/null 2>&1 \ 5701 && lt_shell_append=yes 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5703$as_echo "$lt_shell_append" >&6; } 5704 5705 5706if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5707 lt_unset=unset 5708else 5709 lt_unset=false 5710fi 5711 5712 5713 5714 5715 5716# test EBCDIC or ASCII 5717case `echo X|tr X '\101'` in 5718 A) # ASCII based system 5719 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5720 lt_SP2NL='tr \040 \012' 5721 lt_NL2SP='tr \015\012 \040\040' 5722 ;; 5723 *) # EBCDIC based system 5724 lt_SP2NL='tr \100 \n' 5725 lt_NL2SP='tr \r\n \100\100' 5726 ;; 5727esac 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5738$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5739if ${lt_cv_to_host_file_cmd+:} false; then : 5740 $as_echo_n "(cached) " >&6 5741else 5742 case $host in 5743 *-*-mingw* ) 5744 case $build in 5745 *-*-mingw* ) # actually msys 5746 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5747 ;; 5748 *-*-cygwin* ) 5749 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5750 ;; 5751 * ) # otherwise, assume *nix 5752 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5753 ;; 5754 esac 5755 ;; 5756 *-*-cygwin* ) 5757 case $build in 5758 *-*-mingw* ) # actually msys 5759 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5760 ;; 5761 *-*-cygwin* ) 5762 lt_cv_to_host_file_cmd=func_convert_file_noop 5763 ;; 5764 * ) # otherwise, assume *nix 5765 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5766 ;; 5767 esac 5768 ;; 5769 * ) # unhandled hosts (and "normal" native builds) 5770 lt_cv_to_host_file_cmd=func_convert_file_noop 5771 ;; 5772esac 5773 5774fi 5775 5776to_host_file_cmd=$lt_cv_to_host_file_cmd 5777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5778$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5779 5780 5781 5782 5783 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5785$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5786if ${lt_cv_to_tool_file_cmd+:} false; then : 5787 $as_echo_n "(cached) " >&6 5788else 5789 #assume ordinary cross tools, or native build. 5790lt_cv_to_tool_file_cmd=func_convert_file_noop 5791case $host in 5792 *-*-mingw* ) 5793 case $build in 5794 *-*-mingw* ) # actually msys 5795 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5796 ;; 5797 esac 5798 ;; 5799esac 5800 5801fi 5802 5803to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5805$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5806 5807 5808 5809 5810 5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5812$as_echo_n "checking for $LD option to reload object files... " >&6; } 5813if ${lt_cv_ld_reload_flag+:} false; then : 5814 $as_echo_n "(cached) " >&6 5815else 5816 lt_cv_ld_reload_flag='-r' 5817fi 5818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5819$as_echo "$lt_cv_ld_reload_flag" >&6; } 5820reload_flag=$lt_cv_ld_reload_flag 5821case $reload_flag in 5822"" | " "*) ;; 5823*) reload_flag=" $reload_flag" ;; 5824esac 5825reload_cmds='$LD$reload_flag -o $output$reload_objs' 5826case $host_os in 5827 cygwin* | mingw* | pw32* | cegcc*) 5828 if test "$GCC" != yes; then 5829 reload_cmds=false 5830 fi 5831 ;; 5832 darwin*) 5833 if test "$GCC" = yes; then 5834 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5835 else 5836 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5837 fi 5838 ;; 5839esac 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849if test -n "$ac_tool_prefix"; then 5850 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5851set dummy ${ac_tool_prefix}objdump; ac_word=$2 5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5853$as_echo_n "checking for $ac_word... " >&6; } 5854if ${ac_cv_prog_OBJDUMP+:} false; then : 5855 $as_echo_n "(cached) " >&6 5856else 5857 if test -n "$OBJDUMP"; then 5858 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5859else 5860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5861for as_dir in $PATH 5862do 5863 IFS=$as_save_IFS 5864 test -z "$as_dir" && as_dir=. 5865 for ac_exec_ext in '' $ac_executable_extensions; do 5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5867 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5869 break 2 5870 fi 5871done 5872 done 5873IFS=$as_save_IFS 5874 5875fi 5876fi 5877OBJDUMP=$ac_cv_prog_OBJDUMP 5878if test -n "$OBJDUMP"; then 5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5880$as_echo "$OBJDUMP" >&6; } 5881else 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5883$as_echo "no" >&6; } 5884fi 5885 5886 5887fi 5888if test -z "$ac_cv_prog_OBJDUMP"; then 5889 ac_ct_OBJDUMP=$OBJDUMP 5890 # Extract the first word of "objdump", so it can be a program name with args. 5891set dummy objdump; ac_word=$2 5892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5893$as_echo_n "checking for $ac_word... " >&6; } 5894if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5895 $as_echo_n "(cached) " >&6 5896else 5897 if test -n "$ac_ct_OBJDUMP"; then 5898 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5899else 5900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5901for as_dir in $PATH 5902do 5903 IFS=$as_save_IFS 5904 test -z "$as_dir" && as_dir=. 5905 for ac_exec_ext in '' $ac_executable_extensions; do 5906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5907 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5909 break 2 5910 fi 5911done 5912 done 5913IFS=$as_save_IFS 5914 5915fi 5916fi 5917ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5918if test -n "$ac_ct_OBJDUMP"; then 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5920$as_echo "$ac_ct_OBJDUMP" >&6; } 5921else 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5923$as_echo "no" >&6; } 5924fi 5925 5926 if test "x$ac_ct_OBJDUMP" = x; then 5927 OBJDUMP="false" 5928 else 5929 case $cross_compiling:$ac_tool_warned in 5930yes:) 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5933ac_tool_warned=yes ;; 5934esac 5935 OBJDUMP=$ac_ct_OBJDUMP 5936 fi 5937else 5938 OBJDUMP="$ac_cv_prog_OBJDUMP" 5939fi 5940 5941test -z "$OBJDUMP" && OBJDUMP=objdump 5942 5943 5944 5945 5946 5947 5948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5949$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5950if ${lt_cv_deplibs_check_method+:} false; then : 5951 $as_echo_n "(cached) " >&6 5952else 5953 lt_cv_file_magic_cmd='$MAGIC_CMD' 5954lt_cv_file_magic_test_file= 5955lt_cv_deplibs_check_method='unknown' 5956# Need to set the preceding variable on all platforms that support 5957# interlibrary dependencies. 5958# 'none' -- dependencies not supported. 5959# `unknown' -- same as none, but documents that we really don't know. 5960# 'pass_all' -- all dependencies passed with no checks. 5961# 'test_compile' -- check by making test program. 5962# 'file_magic [[regex]]' -- check by looking for files in library path 5963# which responds to the $file_magic_cmd with a given extended regex. 5964# If you have `file' or equivalent on your system and you're not sure 5965# whether `pass_all' will *always* work, you probably want this one. 5966 5967case $host_os in 5968aix[4-9]*) 5969 lt_cv_deplibs_check_method=pass_all 5970 ;; 5971 5972beos*) 5973 lt_cv_deplibs_check_method=pass_all 5974 ;; 5975 5976bsdi[45]*) 5977 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5978 lt_cv_file_magic_cmd='/usr/bin/file -L' 5979 lt_cv_file_magic_test_file=/shlib/libc.so 5980 ;; 5981 5982cygwin*) 5983 # func_win32_libid is a shell function defined in ltmain.sh 5984 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5985 lt_cv_file_magic_cmd='func_win32_libid' 5986 ;; 5987 5988mingw* | pw32*) 5989 # Base MSYS/MinGW do not provide the 'file' command needed by 5990 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5991 # unless we find 'file', for example because we are cross-compiling. 5992 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5993 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5994 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5995 lt_cv_file_magic_cmd='func_win32_libid' 5996 else 5997 # Keep this pattern in sync with the one in func_win32_libid. 5998 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5999 lt_cv_file_magic_cmd='$OBJDUMP -f' 6000 fi 6001 ;; 6002 6003cegcc*) 6004 # use the weaker test based on 'objdump'. See mingw*. 6005 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6006 lt_cv_file_magic_cmd='$OBJDUMP -f' 6007 ;; 6008 6009darwin* | rhapsody*) 6010 lt_cv_deplibs_check_method=pass_all 6011 ;; 6012 6013freebsd* | dragonfly*) 6014 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6015 case $host_cpu in 6016 i*86 ) 6017 # Not sure whether the presence of OpenBSD here was a mistake. 6018 # Let's accept both of them until this is cleared up. 6019 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6020 lt_cv_file_magic_cmd=/usr/bin/file 6021 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6022 ;; 6023 esac 6024 else 6025 lt_cv_deplibs_check_method=pass_all 6026 fi 6027 ;; 6028 6029gnu*) 6030 lt_cv_deplibs_check_method=pass_all 6031 ;; 6032 6033haiku*) 6034 lt_cv_deplibs_check_method=pass_all 6035 ;; 6036 6037hpux10.20* | hpux11*) 6038 lt_cv_file_magic_cmd=/usr/bin/file 6039 case $host_cpu in 6040 ia64*) 6041 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6042 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6043 ;; 6044 hppa*64*) 6045 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]' 6046 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6047 ;; 6048 *) 6049 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6050 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6051 ;; 6052 esac 6053 ;; 6054 6055interix[3-9]*) 6056 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6058 ;; 6059 6060irix5* | irix6* | nonstopux*) 6061 case $LD in 6062 *-32|*"-32 ") libmagic=32-bit;; 6063 *-n32|*"-n32 ") libmagic=N32;; 6064 *-64|*"-64 ") libmagic=64-bit;; 6065 *) libmagic=never-match;; 6066 esac 6067 lt_cv_deplibs_check_method=pass_all 6068 ;; 6069 6070# This must be Linux ELF. 6071linux* | k*bsd*-gnu | kopensolaris*-gnu) 6072 lt_cv_deplibs_check_method=pass_all 6073 ;; 6074 6075netbsd* | netbsdelf*-gnu) 6076 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6078 else 6079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6080 fi 6081 ;; 6082 6083newos6*) 6084 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6085 lt_cv_file_magic_cmd=/usr/bin/file 6086 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6087 ;; 6088 6089*nto* | *qnx*) 6090 lt_cv_deplibs_check_method=pass_all 6091 ;; 6092 6093openbsd*) 6094 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6096 else 6097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6098 fi 6099 ;; 6100 6101osf3* | osf4* | osf5*) 6102 lt_cv_deplibs_check_method=pass_all 6103 ;; 6104 6105rdos*) 6106 lt_cv_deplibs_check_method=pass_all 6107 ;; 6108 6109solaris*) 6110 lt_cv_deplibs_check_method=pass_all 6111 ;; 6112 6113sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6114 lt_cv_deplibs_check_method=pass_all 6115 ;; 6116 6117sysv4 | sysv4.3*) 6118 case $host_vendor in 6119 motorola) 6120 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]' 6121 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6122 ;; 6123 ncr) 6124 lt_cv_deplibs_check_method=pass_all 6125 ;; 6126 sequent) 6127 lt_cv_file_magic_cmd='/bin/file' 6128 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6129 ;; 6130 sni) 6131 lt_cv_file_magic_cmd='/bin/file' 6132 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6133 lt_cv_file_magic_test_file=/lib/libc.so 6134 ;; 6135 siemens) 6136 lt_cv_deplibs_check_method=pass_all 6137 ;; 6138 pc) 6139 lt_cv_deplibs_check_method=pass_all 6140 ;; 6141 esac 6142 ;; 6143 6144tpf*) 6145 lt_cv_deplibs_check_method=pass_all 6146 ;; 6147esac 6148 6149fi 6150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6151$as_echo "$lt_cv_deplibs_check_method" >&6; } 6152 6153file_magic_glob= 6154want_nocaseglob=no 6155if test "$build" = "$host"; then 6156 case $host_os in 6157 mingw* | pw32*) 6158 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6159 want_nocaseglob=yes 6160 else 6161 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6162 fi 6163 ;; 6164 esac 6165fi 6166 6167file_magic_cmd=$lt_cv_file_magic_cmd 6168deplibs_check_method=$lt_cv_deplibs_check_method 6169test -z "$deplibs_check_method" && deplibs_check_method=unknown 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192if test -n "$ac_tool_prefix"; then 6193 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6194set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6196$as_echo_n "checking for $ac_word... " >&6; } 6197if ${ac_cv_prog_DLLTOOL+:} false; then : 6198 $as_echo_n "(cached) " >&6 6199else 6200 if test -n "$DLLTOOL"; then 6201 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6202else 6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6204for as_dir in $PATH 6205do 6206 IFS=$as_save_IFS 6207 test -z "$as_dir" && as_dir=. 6208 for ac_exec_ext in '' $ac_executable_extensions; do 6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6210 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6212 break 2 6213 fi 6214done 6215 done 6216IFS=$as_save_IFS 6217 6218fi 6219fi 6220DLLTOOL=$ac_cv_prog_DLLTOOL 6221if test -n "$DLLTOOL"; then 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6223$as_echo "$DLLTOOL" >&6; } 6224else 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6226$as_echo "no" >&6; } 6227fi 6228 6229 6230fi 6231if test -z "$ac_cv_prog_DLLTOOL"; then 6232 ac_ct_DLLTOOL=$DLLTOOL 6233 # Extract the first word of "dlltool", so it can be a program name with args. 6234set dummy dlltool; ac_word=$2 6235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6236$as_echo_n "checking for $ac_word... " >&6; } 6237if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6238 $as_echo_n "(cached) " >&6 6239else 6240 if test -n "$ac_ct_DLLTOOL"; then 6241 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6242else 6243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6244for as_dir in $PATH 6245do 6246 IFS=$as_save_IFS 6247 test -z "$as_dir" && as_dir=. 6248 for ac_exec_ext in '' $ac_executable_extensions; do 6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6250 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6252 break 2 6253 fi 6254done 6255 done 6256IFS=$as_save_IFS 6257 6258fi 6259fi 6260ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6261if test -n "$ac_ct_DLLTOOL"; then 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6263$as_echo "$ac_ct_DLLTOOL" >&6; } 6264else 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6266$as_echo "no" >&6; } 6267fi 6268 6269 if test "x$ac_ct_DLLTOOL" = x; then 6270 DLLTOOL="false" 6271 else 6272 case $cross_compiling:$ac_tool_warned in 6273yes:) 6274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6276ac_tool_warned=yes ;; 6277esac 6278 DLLTOOL=$ac_ct_DLLTOOL 6279 fi 6280else 6281 DLLTOOL="$ac_cv_prog_DLLTOOL" 6282fi 6283 6284test -z "$DLLTOOL" && DLLTOOL=dlltool 6285 6286 6287 6288 6289 6290 6291 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6293$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6294if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6295 $as_echo_n "(cached) " >&6 6296else 6297 lt_cv_sharedlib_from_linklib_cmd='unknown' 6298 6299case $host_os in 6300cygwin* | mingw* | pw32* | cegcc*) 6301 # two different shell functions defined in ltmain.sh 6302 # decide which to use based on capabilities of $DLLTOOL 6303 case `$DLLTOOL --help 2>&1` in 6304 *--identify-strict*) 6305 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6306 ;; 6307 *) 6308 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6309 ;; 6310 esac 6311 ;; 6312*) 6313 # fallback: assume linklib IS sharedlib 6314 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6315 ;; 6316esac 6317 6318fi 6319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6320$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6321sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6322test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6323 6324 6325 6326 6327 6328 6329 6330 6331if test -n "$ac_tool_prefix"; then 6332 for ac_prog in ar 6333 do 6334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6335set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6337$as_echo_n "checking for $ac_word... " >&6; } 6338if ${ac_cv_prog_AR+:} false; then : 6339 $as_echo_n "(cached) " >&6 6340else 6341 if test -n "$AR"; then 6342 ac_cv_prog_AR="$AR" # Let the user override the test. 6343else 6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6345for as_dir in $PATH 6346do 6347 IFS=$as_save_IFS 6348 test -z "$as_dir" && as_dir=. 6349 for ac_exec_ext in '' $ac_executable_extensions; do 6350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6351 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6353 break 2 6354 fi 6355done 6356 done 6357IFS=$as_save_IFS 6358 6359fi 6360fi 6361AR=$ac_cv_prog_AR 6362if test -n "$AR"; then 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6364$as_echo "$AR" >&6; } 6365else 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6367$as_echo "no" >&6; } 6368fi 6369 6370 6371 test -n "$AR" && break 6372 done 6373fi 6374if test -z "$AR"; then 6375 ac_ct_AR=$AR 6376 for ac_prog in ar 6377do 6378 # Extract the first word of "$ac_prog", so it can be a program name with args. 6379set dummy $ac_prog; ac_word=$2 6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6381$as_echo_n "checking for $ac_word... " >&6; } 6382if ${ac_cv_prog_ac_ct_AR+:} false; then : 6383 $as_echo_n "(cached) " >&6 6384else 6385 if test -n "$ac_ct_AR"; then 6386 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6387else 6388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6389for as_dir in $PATH 6390do 6391 IFS=$as_save_IFS 6392 test -z "$as_dir" && as_dir=. 6393 for ac_exec_ext in '' $ac_executable_extensions; do 6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6395 ac_cv_prog_ac_ct_AR="$ac_prog" 6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6397 break 2 6398 fi 6399done 6400 done 6401IFS=$as_save_IFS 6402 6403fi 6404fi 6405ac_ct_AR=$ac_cv_prog_ac_ct_AR 6406if test -n "$ac_ct_AR"; then 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6408$as_echo "$ac_ct_AR" >&6; } 6409else 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6411$as_echo "no" >&6; } 6412fi 6413 6414 6415 test -n "$ac_ct_AR" && break 6416done 6417 6418 if test "x$ac_ct_AR" = x; then 6419 AR="false" 6420 else 6421 case $cross_compiling:$ac_tool_warned in 6422yes:) 6423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6425ac_tool_warned=yes ;; 6426esac 6427 AR=$ac_ct_AR 6428 fi 6429fi 6430 6431: ${AR=ar} 6432: ${AR_FLAGS=cru} 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6445$as_echo_n "checking for archiver @FILE support... " >&6; } 6446if ${lt_cv_ar_at_file+:} false; then : 6447 $as_echo_n "(cached) " >&6 6448else 6449 lt_cv_ar_at_file=no 6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6451/* end confdefs.h. */ 6452 6453int 6454main () 6455{ 6456 6457 ; 6458 return 0; 6459} 6460_ACEOF 6461if ac_fn_c_try_compile "$LINENO"; then : 6462 echo conftest.$ac_objext > conftest.lst 6463 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6465 (eval $lt_ar_try) 2>&5 6466 ac_status=$? 6467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6468 test $ac_status = 0; } 6469 if test "$ac_status" -eq 0; then 6470 # Ensure the archiver fails upon bogus file names. 6471 rm -f conftest.$ac_objext libconftest.a 6472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6473 (eval $lt_ar_try) 2>&5 6474 ac_status=$? 6475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6476 test $ac_status = 0; } 6477 if test "$ac_status" -ne 0; then 6478 lt_cv_ar_at_file=@ 6479 fi 6480 fi 6481 rm -f conftest.* libconftest.a 6482 6483fi 6484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6485 6486fi 6487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6488$as_echo "$lt_cv_ar_at_file" >&6; } 6489 6490if test "x$lt_cv_ar_at_file" = xno; then 6491 archiver_list_spec= 6492else 6493 archiver_list_spec=$lt_cv_ar_at_file 6494fi 6495 6496 6497 6498 6499 6500 6501 6502if test -n "$ac_tool_prefix"; then 6503 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6504set dummy ${ac_tool_prefix}strip; ac_word=$2 6505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6506$as_echo_n "checking for $ac_word... " >&6; } 6507if ${ac_cv_prog_STRIP+:} false; then : 6508 $as_echo_n "(cached) " >&6 6509else 6510 if test -n "$STRIP"; then 6511 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6512else 6513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6514for as_dir in $PATH 6515do 6516 IFS=$as_save_IFS 6517 test -z "$as_dir" && as_dir=. 6518 for ac_exec_ext in '' $ac_executable_extensions; do 6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6520 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6522 break 2 6523 fi 6524done 6525 done 6526IFS=$as_save_IFS 6527 6528fi 6529fi 6530STRIP=$ac_cv_prog_STRIP 6531if test -n "$STRIP"; then 6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6533$as_echo "$STRIP" >&6; } 6534else 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6536$as_echo "no" >&6; } 6537fi 6538 6539 6540fi 6541if test -z "$ac_cv_prog_STRIP"; then 6542 ac_ct_STRIP=$STRIP 6543 # Extract the first word of "strip", so it can be a program name with args. 6544set dummy strip; ac_word=$2 6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6546$as_echo_n "checking for $ac_word... " >&6; } 6547if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6548 $as_echo_n "(cached) " >&6 6549else 6550 if test -n "$ac_ct_STRIP"; then 6551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6552else 6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6554for as_dir in $PATH 6555do 6556 IFS=$as_save_IFS 6557 test -z "$as_dir" && as_dir=. 6558 for ac_exec_ext in '' $ac_executable_extensions; do 6559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6560 ac_cv_prog_ac_ct_STRIP="strip" 6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6562 break 2 6563 fi 6564done 6565 done 6566IFS=$as_save_IFS 6567 6568fi 6569fi 6570ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6571if test -n "$ac_ct_STRIP"; then 6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6573$as_echo "$ac_ct_STRIP" >&6; } 6574else 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6576$as_echo "no" >&6; } 6577fi 6578 6579 if test "x$ac_ct_STRIP" = x; then 6580 STRIP=":" 6581 else 6582 case $cross_compiling:$ac_tool_warned in 6583yes:) 6584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6586ac_tool_warned=yes ;; 6587esac 6588 STRIP=$ac_ct_STRIP 6589 fi 6590else 6591 STRIP="$ac_cv_prog_STRIP" 6592fi 6593 6594test -z "$STRIP" && STRIP=: 6595 6596 6597 6598 6599 6600 6601if test -n "$ac_tool_prefix"; then 6602 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6603set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6605$as_echo_n "checking for $ac_word... " >&6; } 6606if ${ac_cv_prog_RANLIB+:} false; then : 6607 $as_echo_n "(cached) " >&6 6608else 6609 if test -n "$RANLIB"; then 6610 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6611else 6612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6613for as_dir in $PATH 6614do 6615 IFS=$as_save_IFS 6616 test -z "$as_dir" && as_dir=. 6617 for ac_exec_ext in '' $ac_executable_extensions; do 6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6619 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6621 break 2 6622 fi 6623done 6624 done 6625IFS=$as_save_IFS 6626 6627fi 6628fi 6629RANLIB=$ac_cv_prog_RANLIB 6630if test -n "$RANLIB"; then 6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6632$as_echo "$RANLIB" >&6; } 6633else 6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6635$as_echo "no" >&6; } 6636fi 6637 6638 6639fi 6640if test -z "$ac_cv_prog_RANLIB"; then 6641 ac_ct_RANLIB=$RANLIB 6642 # Extract the first word of "ranlib", so it can be a program name with args. 6643set dummy ranlib; ac_word=$2 6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6645$as_echo_n "checking for $ac_word... " >&6; } 6646if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6647 $as_echo_n "(cached) " >&6 6648else 6649 if test -n "$ac_ct_RANLIB"; then 6650 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6651else 6652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6653for as_dir in $PATH 6654do 6655 IFS=$as_save_IFS 6656 test -z "$as_dir" && as_dir=. 6657 for ac_exec_ext in '' $ac_executable_extensions; do 6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6659 ac_cv_prog_ac_ct_RANLIB="ranlib" 6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6661 break 2 6662 fi 6663done 6664 done 6665IFS=$as_save_IFS 6666 6667fi 6668fi 6669ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6670if test -n "$ac_ct_RANLIB"; then 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6672$as_echo "$ac_ct_RANLIB" >&6; } 6673else 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6675$as_echo "no" >&6; } 6676fi 6677 6678 if test "x$ac_ct_RANLIB" = x; then 6679 RANLIB=":" 6680 else 6681 case $cross_compiling:$ac_tool_warned in 6682yes:) 6683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6685ac_tool_warned=yes ;; 6686esac 6687 RANLIB=$ac_ct_RANLIB 6688 fi 6689else 6690 RANLIB="$ac_cv_prog_RANLIB" 6691fi 6692 6693test -z "$RANLIB" && RANLIB=: 6694 6695 6696 6697 6698 6699 6700# Determine commands to create old-style static archives. 6701old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6702old_postinstall_cmds='chmod 644 $oldlib' 6703old_postuninstall_cmds= 6704 6705if test -n "$RANLIB"; then 6706 case $host_os in 6707 openbsd*) 6708 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6709 ;; 6710 *) 6711 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6712 ;; 6713 esac 6714 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6715fi 6716 6717case $host_os in 6718 darwin*) 6719 lock_old_archive_extraction=yes ;; 6720 *) 6721 lock_old_archive_extraction=no ;; 6722esac 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762# If no C compiler was specified, use CC. 6763LTCC=${LTCC-"$CC"} 6764 6765# If no C compiler flags were specified, use CFLAGS. 6766LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6767 6768# Allow CC to be a program name with arguments. 6769compiler=$CC 6770 6771 6772# Check for command to grab the raw symbol name followed by C symbol from nm. 6773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6774$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6775if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6776 $as_echo_n "(cached) " >&6 6777else 6778 6779# These are sane defaults that work on at least a few old systems. 6780# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6781 6782# Character class describing NM global symbol codes. 6783symcode='[BCDEGRST]' 6784 6785# Regexp to match symbols that can be accessed directly from C. 6786sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6787 6788# Define system-specific variables. 6789case $host_os in 6790aix*) 6791 symcode='[BCDT]' 6792 ;; 6793cygwin* | mingw* | pw32* | cegcc*) 6794 symcode='[ABCDGISTW]' 6795 ;; 6796hpux*) 6797 if test "$host_cpu" = ia64; then 6798 symcode='[ABCDEGRST]' 6799 fi 6800 ;; 6801irix* | nonstopux*) 6802 symcode='[BCDEGRST]' 6803 ;; 6804osf*) 6805 symcode='[BCDEGQRST]' 6806 ;; 6807solaris*) 6808 symcode='[BDRT]' 6809 ;; 6810sco3.2v5*) 6811 symcode='[DT]' 6812 ;; 6813sysv4.2uw2*) 6814 symcode='[DT]' 6815 ;; 6816sysv5* | sco5v6* | unixware* | OpenUNIX*) 6817 symcode='[ABDT]' 6818 ;; 6819sysv4) 6820 symcode='[DFNSTU]' 6821 ;; 6822esac 6823 6824# If we're using GNU nm, then use its standard symbol codes. 6825case `$NM -V 2>&1` in 6826*GNU* | *'with BFD'*) 6827 symcode='[ABCDGIRSTW]' ;; 6828esac 6829 6830# Transform an extracted symbol line into a proper C declaration. 6831# Some systems (esp. on ia64) link data and code symbols differently, 6832# so use this general approach. 6833lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6834 6835# Transform an extracted symbol line into symbol name and symbol address 6836lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6837lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6838 6839# Handle CRLF in mingw tool chain 6840opt_cr= 6841case $build_os in 6842mingw*) 6843 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6844 ;; 6845esac 6846 6847# Try without a prefix underscore, then with it. 6848for ac_symprfx in "" "_"; do 6849 6850 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6851 symxfrm="\\1 $ac_symprfx\\2 \\2" 6852 6853 # Write the raw and C identifiers. 6854 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6855 # Fake it for dumpbin and say T for any non-static function 6856 # and D for any global variable. 6857 # Also find C++ and __fastcall symbols from MSVC++, 6858 # which start with @ or ?. 6859 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6860" {last_section=section; section=\$ 3};"\ 6861" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6862" \$ 0!~/External *\|/{next};"\ 6863" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6864" {if(hide[section]) next};"\ 6865" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6866" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6867" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6868" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6869" ' prfx=^$ac_symprfx" 6870 else 6871 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6872 fi 6873 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6874 6875 # Check to see that the pipe works correctly. 6876 pipe_works=no 6877 6878 rm -f conftest* 6879 cat > conftest.$ac_ext <<_LT_EOF 6880#ifdef __cplusplus 6881extern "C" { 6882#endif 6883char nm_test_var; 6884void nm_test_func(void); 6885void nm_test_func(void){} 6886#ifdef __cplusplus 6887} 6888#endif 6889int main(){nm_test_var='a';nm_test_func();return(0);} 6890_LT_EOF 6891 6892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6893 (eval $ac_compile) 2>&5 6894 ac_status=$? 6895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6896 test $ac_status = 0; }; then 6897 # Now try to grab the symbols. 6898 nlist=conftest.nm 6899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6900 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6901 ac_status=$? 6902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6903 test $ac_status = 0; } && test -s "$nlist"; then 6904 # Try sorting and uniquifying the output. 6905 if sort "$nlist" | uniq > "$nlist"T; then 6906 mv -f "$nlist"T "$nlist" 6907 else 6908 rm -f "$nlist"T 6909 fi 6910 6911 # Make sure that we snagged all the symbols we need. 6912 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6913 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6914 cat <<_LT_EOF > conftest.$ac_ext 6915/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6916#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6917/* DATA imports from DLLs on WIN32 con't be const, because runtime 6918 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6919# define LT_DLSYM_CONST 6920#elif defined(__osf__) 6921/* This system does not cope well with relocations in const data. */ 6922# define LT_DLSYM_CONST 6923#else 6924# define LT_DLSYM_CONST const 6925#endif 6926 6927#ifdef __cplusplus 6928extern "C" { 6929#endif 6930 6931_LT_EOF 6932 # Now generate the symbol file. 6933 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6934 6935 cat <<_LT_EOF >> conftest.$ac_ext 6936 6937/* The mapping between symbol names and symbols. */ 6938LT_DLSYM_CONST struct { 6939 const char *name; 6940 void *address; 6941} 6942lt__PROGRAM__LTX_preloaded_symbols[] = 6943{ 6944 { "@PROGRAM@", (void *) 0 }, 6945_LT_EOF 6946 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6947 cat <<\_LT_EOF >> conftest.$ac_ext 6948 {0, (void *) 0} 6949}; 6950 6951/* This works around a problem in FreeBSD linker */ 6952#ifdef FREEBSD_WORKAROUND 6953static const void *lt_preloaded_setup() { 6954 return lt__PROGRAM__LTX_preloaded_symbols; 6955} 6956#endif 6957 6958#ifdef __cplusplus 6959} 6960#endif 6961_LT_EOF 6962 # Now try linking the two files. 6963 mv conftest.$ac_objext conftstm.$ac_objext 6964 lt_globsym_save_LIBS=$LIBS 6965 lt_globsym_save_CFLAGS=$CFLAGS 6966 LIBS="conftstm.$ac_objext" 6967 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6969 (eval $ac_link) 2>&5 6970 ac_status=$? 6971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6972 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6973 pipe_works=yes 6974 fi 6975 LIBS=$lt_globsym_save_LIBS 6976 CFLAGS=$lt_globsym_save_CFLAGS 6977 else 6978 echo "cannot find nm_test_func in $nlist" >&5 6979 fi 6980 else 6981 echo "cannot find nm_test_var in $nlist" >&5 6982 fi 6983 else 6984 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6985 fi 6986 else 6987 echo "$progname: failed program was:" >&5 6988 cat conftest.$ac_ext >&5 6989 fi 6990 rm -rf conftest* conftst* 6991 6992 # Do not use the global_symbol_pipe unless it works. 6993 if test "$pipe_works" = yes; then 6994 break 6995 else 6996 lt_cv_sys_global_symbol_pipe= 6997 fi 6998done 6999 7000fi 7001 7002if test -z "$lt_cv_sys_global_symbol_pipe"; then 7003 lt_cv_sys_global_symbol_to_cdecl= 7004fi 7005if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7007$as_echo "failed" >&6; } 7008else 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7010$as_echo "ok" >&6; } 7011fi 7012 7013# Response file support. 7014if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7015 nm_file_list_spec='@' 7016elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7017 nm_file_list_spec='@' 7018fi 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7047$as_echo_n "checking for sysroot... " >&6; } 7048 7049# Check whether --with-sysroot was given. 7050if test "${with_sysroot+set}" = set; then : 7051 withval=$with_sysroot; 7052else 7053 with_sysroot=no 7054fi 7055 7056 7057lt_sysroot= 7058case ${with_sysroot} in #( 7059 yes) 7060 if test "$GCC" = yes; then 7061 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7062 fi 7063 ;; #( 7064 /*) 7065 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7066 ;; #( 7067 no|'') 7068 ;; #( 7069 *) 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7071$as_echo "${with_sysroot}" >&6; } 7072 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7073 ;; 7074esac 7075 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7077$as_echo "${lt_sysroot:-no}" >&6; } 7078 7079 7080 7081 7082 7083# Check whether --enable-libtool-lock was given. 7084if test "${enable_libtool_lock+set}" = set; then : 7085 enableval=$enable_libtool_lock; 7086fi 7087 7088test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7089 7090# Some flags need to be propagated to the compiler or linker for good 7091# libtool support. 7092case $host in 7093ia64-*-hpux*) 7094 # Find out which ABI we are using. 7095 echo 'int i;' > conftest.$ac_ext 7096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7097 (eval $ac_compile) 2>&5 7098 ac_status=$? 7099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7100 test $ac_status = 0; }; then 7101 case `/usr/bin/file conftest.$ac_objext` in 7102 *ELF-32*) 7103 HPUX_IA64_MODE="32" 7104 ;; 7105 *ELF-64*) 7106 HPUX_IA64_MODE="64" 7107 ;; 7108 esac 7109 fi 7110 rm -rf conftest* 7111 ;; 7112*-*-irix6*) 7113 # Find out which ABI we are using. 7114 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7116 (eval $ac_compile) 2>&5 7117 ac_status=$? 7118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7119 test $ac_status = 0; }; then 7120 if test "$lt_cv_prog_gnu_ld" = yes; then 7121 case `/usr/bin/file conftest.$ac_objext` in 7122 *32-bit*) 7123 LD="${LD-ld} -melf32bsmip" 7124 ;; 7125 *N32*) 7126 LD="${LD-ld} -melf32bmipn32" 7127 ;; 7128 *64-bit*) 7129 LD="${LD-ld} -melf64bmip" 7130 ;; 7131 esac 7132 else 7133 case `/usr/bin/file conftest.$ac_objext` in 7134 *32-bit*) 7135 LD="${LD-ld} -32" 7136 ;; 7137 *N32*) 7138 LD="${LD-ld} -n32" 7139 ;; 7140 *64-bit*) 7141 LD="${LD-ld} -64" 7142 ;; 7143 esac 7144 fi 7145 fi 7146 rm -rf conftest* 7147 ;; 7148 7149x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7150s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7151 # Find out which ABI we are using. 7152 echo 'int i;' > conftest.$ac_ext 7153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7154 (eval $ac_compile) 2>&5 7155 ac_status=$? 7156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7157 test $ac_status = 0; }; then 7158 case `/usr/bin/file conftest.o` in 7159 *32-bit*) 7160 case $host in 7161 x86_64-*kfreebsd*-gnu) 7162 LD="${LD-ld} -m elf_i386_fbsd" 7163 ;; 7164 x86_64-*linux*) 7165 LD="${LD-ld} -m elf_i386" 7166 ;; 7167 ppc64-*linux*|powerpc64-*linux*) 7168 LD="${LD-ld} -m elf32ppclinux" 7169 ;; 7170 s390x-*linux*) 7171 LD="${LD-ld} -m elf_s390" 7172 ;; 7173 sparc64-*linux*) 7174 LD="${LD-ld} -m elf32_sparc" 7175 ;; 7176 esac 7177 ;; 7178 *64-bit*) 7179 case $host in 7180 x86_64-*kfreebsd*-gnu) 7181 LD="${LD-ld} -m elf_x86_64_fbsd" 7182 ;; 7183 x86_64-*linux*) 7184 LD="${LD-ld} -m elf_x86_64" 7185 ;; 7186 ppc*-*linux*|powerpc*-*linux*) 7187 LD="${LD-ld} -m elf64ppc" 7188 ;; 7189 s390*-*linux*|s390*-*tpf*) 7190 LD="${LD-ld} -m elf64_s390" 7191 ;; 7192 sparc*-*linux*) 7193 LD="${LD-ld} -m elf64_sparc" 7194 ;; 7195 esac 7196 ;; 7197 esac 7198 fi 7199 rm -rf conftest* 7200 ;; 7201 7202*-*-sco3.2v5*) 7203 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7204 SAVE_CFLAGS="$CFLAGS" 7205 CFLAGS="$CFLAGS -belf" 7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7207$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7208if ${lt_cv_cc_needs_belf+:} false; then : 7209 $as_echo_n "(cached) " >&6 7210else 7211 ac_ext=c 7212ac_cpp='$CPP $CPPFLAGS' 7213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7215ac_compiler_gnu=$ac_cv_c_compiler_gnu 7216 7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7218/* end confdefs.h. */ 7219 7220int 7221main () 7222{ 7223 7224 ; 7225 return 0; 7226} 7227_ACEOF 7228if ac_fn_c_try_link "$LINENO"; then : 7229 lt_cv_cc_needs_belf=yes 7230else 7231 lt_cv_cc_needs_belf=no 7232fi 7233rm -f core conftest.err conftest.$ac_objext \ 7234 conftest$ac_exeext conftest.$ac_ext 7235 ac_ext=c 7236ac_cpp='$CPP $CPPFLAGS' 7237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7239ac_compiler_gnu=$ac_cv_c_compiler_gnu 7240 7241fi 7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7243$as_echo "$lt_cv_cc_needs_belf" >&6; } 7244 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7245 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7246 CFLAGS="$SAVE_CFLAGS" 7247 fi 7248 ;; 7249sparc*-*solaris*) 7250 # Find out which ABI we are using. 7251 echo 'int i;' > conftest.$ac_ext 7252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7253 (eval $ac_compile) 2>&5 7254 ac_status=$? 7255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7256 test $ac_status = 0; }; then 7257 case `/usr/bin/file conftest.o` in 7258 *64-bit*) 7259 case $lt_cv_prog_gnu_ld in 7260 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7261 *) 7262 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7263 LD="${LD-ld} -64" 7264 fi 7265 ;; 7266 esac 7267 ;; 7268 esac 7269 fi 7270 rm -rf conftest* 7271 ;; 7272esac 7273 7274need_locks="$enable_libtool_lock" 7275 7276if test -n "$ac_tool_prefix"; then 7277 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7278set dummy ${ac_tool_prefix}mt; ac_word=$2 7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7280$as_echo_n "checking for $ac_word... " >&6; } 7281if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7282 $as_echo_n "(cached) " >&6 7283else 7284 if test -n "$MANIFEST_TOOL"; then 7285 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7286else 7287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7288for as_dir in $PATH 7289do 7290 IFS=$as_save_IFS 7291 test -z "$as_dir" && as_dir=. 7292 for ac_exec_ext in '' $ac_executable_extensions; do 7293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7294 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7296 break 2 7297 fi 7298done 7299 done 7300IFS=$as_save_IFS 7301 7302fi 7303fi 7304MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7305if test -n "$MANIFEST_TOOL"; then 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7307$as_echo "$MANIFEST_TOOL" >&6; } 7308else 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7310$as_echo "no" >&6; } 7311fi 7312 7313 7314fi 7315if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7316 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7317 # Extract the first word of "mt", so it can be a program name with args. 7318set dummy mt; ac_word=$2 7319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7320$as_echo_n "checking for $ac_word... " >&6; } 7321if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7322 $as_echo_n "(cached) " >&6 7323else 7324 if test -n "$ac_ct_MANIFEST_TOOL"; then 7325 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7326else 7327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7328for as_dir in $PATH 7329do 7330 IFS=$as_save_IFS 7331 test -z "$as_dir" && as_dir=. 7332 for ac_exec_ext in '' $ac_executable_extensions; do 7333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7334 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7336 break 2 7337 fi 7338done 7339 done 7340IFS=$as_save_IFS 7341 7342fi 7343fi 7344ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7345if test -n "$ac_ct_MANIFEST_TOOL"; then 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7347$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7348else 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7350$as_echo "no" >&6; } 7351fi 7352 7353 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7354 MANIFEST_TOOL=":" 7355 else 7356 case $cross_compiling:$ac_tool_warned in 7357yes:) 7358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7360ac_tool_warned=yes ;; 7361esac 7362 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7363 fi 7364else 7365 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7366fi 7367 7368test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7370$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7371if ${lt_cv_path_mainfest_tool+:} false; then : 7372 $as_echo_n "(cached) " >&6 7373else 7374 lt_cv_path_mainfest_tool=no 7375 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7376 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7377 cat conftest.err >&5 7378 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7379 lt_cv_path_mainfest_tool=yes 7380 fi 7381 rm -f conftest* 7382fi 7383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7384$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7385if test "x$lt_cv_path_mainfest_tool" != xyes; then 7386 MANIFEST_TOOL=: 7387fi 7388 7389 7390 7391 7392 7393 7394 case $host_os in 7395 rhapsody* | darwin*) 7396 if test -n "$ac_tool_prefix"; then 7397 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7398set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7400$as_echo_n "checking for $ac_word... " >&6; } 7401if ${ac_cv_prog_DSYMUTIL+:} false; then : 7402 $as_echo_n "(cached) " >&6 7403else 7404 if test -n "$DSYMUTIL"; then 7405 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7406else 7407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7408for as_dir in $PATH 7409do 7410 IFS=$as_save_IFS 7411 test -z "$as_dir" && as_dir=. 7412 for ac_exec_ext in '' $ac_executable_extensions; do 7413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7414 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7416 break 2 7417 fi 7418done 7419 done 7420IFS=$as_save_IFS 7421 7422fi 7423fi 7424DSYMUTIL=$ac_cv_prog_DSYMUTIL 7425if test -n "$DSYMUTIL"; then 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7427$as_echo "$DSYMUTIL" >&6; } 7428else 7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7430$as_echo "no" >&6; } 7431fi 7432 7433 7434fi 7435if test -z "$ac_cv_prog_DSYMUTIL"; then 7436 ac_ct_DSYMUTIL=$DSYMUTIL 7437 # Extract the first word of "dsymutil", so it can be a program name with args. 7438set dummy dsymutil; ac_word=$2 7439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7440$as_echo_n "checking for $ac_word... " >&6; } 7441if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7442 $as_echo_n "(cached) " >&6 7443else 7444 if test -n "$ac_ct_DSYMUTIL"; then 7445 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7446else 7447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7448for as_dir in $PATH 7449do 7450 IFS=$as_save_IFS 7451 test -z "$as_dir" && as_dir=. 7452 for ac_exec_ext in '' $ac_executable_extensions; do 7453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7454 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7456 break 2 7457 fi 7458done 7459 done 7460IFS=$as_save_IFS 7461 7462fi 7463fi 7464ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7465if test -n "$ac_ct_DSYMUTIL"; then 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7467$as_echo "$ac_ct_DSYMUTIL" >&6; } 7468else 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7470$as_echo "no" >&6; } 7471fi 7472 7473 if test "x$ac_ct_DSYMUTIL" = x; then 7474 DSYMUTIL=":" 7475 else 7476 case $cross_compiling:$ac_tool_warned in 7477yes:) 7478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7480ac_tool_warned=yes ;; 7481esac 7482 DSYMUTIL=$ac_ct_DSYMUTIL 7483 fi 7484else 7485 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7486fi 7487 7488 if test -n "$ac_tool_prefix"; then 7489 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7490set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7492$as_echo_n "checking for $ac_word... " >&6; } 7493if ${ac_cv_prog_NMEDIT+:} false; then : 7494 $as_echo_n "(cached) " >&6 7495else 7496 if test -n "$NMEDIT"; then 7497 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7498else 7499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7500for as_dir in $PATH 7501do 7502 IFS=$as_save_IFS 7503 test -z "$as_dir" && as_dir=. 7504 for ac_exec_ext in '' $ac_executable_extensions; do 7505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7506 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7508 break 2 7509 fi 7510done 7511 done 7512IFS=$as_save_IFS 7513 7514fi 7515fi 7516NMEDIT=$ac_cv_prog_NMEDIT 7517if test -n "$NMEDIT"; then 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7519$as_echo "$NMEDIT" >&6; } 7520else 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7522$as_echo "no" >&6; } 7523fi 7524 7525 7526fi 7527if test -z "$ac_cv_prog_NMEDIT"; then 7528 ac_ct_NMEDIT=$NMEDIT 7529 # Extract the first word of "nmedit", so it can be a program name with args. 7530set dummy nmedit; ac_word=$2 7531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7532$as_echo_n "checking for $ac_word... " >&6; } 7533if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7534 $as_echo_n "(cached) " >&6 7535else 7536 if test -n "$ac_ct_NMEDIT"; then 7537 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7538else 7539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7540for as_dir in $PATH 7541do 7542 IFS=$as_save_IFS 7543 test -z "$as_dir" && as_dir=. 7544 for ac_exec_ext in '' $ac_executable_extensions; do 7545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7546 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7548 break 2 7549 fi 7550done 7551 done 7552IFS=$as_save_IFS 7553 7554fi 7555fi 7556ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7557if test -n "$ac_ct_NMEDIT"; then 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7559$as_echo "$ac_ct_NMEDIT" >&6; } 7560else 7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7562$as_echo "no" >&6; } 7563fi 7564 7565 if test "x$ac_ct_NMEDIT" = x; then 7566 NMEDIT=":" 7567 else 7568 case $cross_compiling:$ac_tool_warned in 7569yes:) 7570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7572ac_tool_warned=yes ;; 7573esac 7574 NMEDIT=$ac_ct_NMEDIT 7575 fi 7576else 7577 NMEDIT="$ac_cv_prog_NMEDIT" 7578fi 7579 7580 if test -n "$ac_tool_prefix"; then 7581 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7582set dummy ${ac_tool_prefix}lipo; ac_word=$2 7583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7584$as_echo_n "checking for $ac_word... " >&6; } 7585if ${ac_cv_prog_LIPO+:} false; then : 7586 $as_echo_n "(cached) " >&6 7587else 7588 if test -n "$LIPO"; then 7589 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7590else 7591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7592for as_dir in $PATH 7593do 7594 IFS=$as_save_IFS 7595 test -z "$as_dir" && as_dir=. 7596 for ac_exec_ext in '' $ac_executable_extensions; do 7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7598 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7600 break 2 7601 fi 7602done 7603 done 7604IFS=$as_save_IFS 7605 7606fi 7607fi 7608LIPO=$ac_cv_prog_LIPO 7609if test -n "$LIPO"; then 7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7611$as_echo "$LIPO" >&6; } 7612else 7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7614$as_echo "no" >&6; } 7615fi 7616 7617 7618fi 7619if test -z "$ac_cv_prog_LIPO"; then 7620 ac_ct_LIPO=$LIPO 7621 # Extract the first word of "lipo", so it can be a program name with args. 7622set dummy lipo; ac_word=$2 7623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7624$as_echo_n "checking for $ac_word... " >&6; } 7625if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7626 $as_echo_n "(cached) " >&6 7627else 7628 if test -n "$ac_ct_LIPO"; then 7629 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7630else 7631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7632for as_dir in $PATH 7633do 7634 IFS=$as_save_IFS 7635 test -z "$as_dir" && as_dir=. 7636 for ac_exec_ext in '' $ac_executable_extensions; do 7637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7638 ac_cv_prog_ac_ct_LIPO="lipo" 7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7640 break 2 7641 fi 7642done 7643 done 7644IFS=$as_save_IFS 7645 7646fi 7647fi 7648ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7649if test -n "$ac_ct_LIPO"; then 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7651$as_echo "$ac_ct_LIPO" >&6; } 7652else 7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7654$as_echo "no" >&6; } 7655fi 7656 7657 if test "x$ac_ct_LIPO" = x; then 7658 LIPO=":" 7659 else 7660 case $cross_compiling:$ac_tool_warned in 7661yes:) 7662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7664ac_tool_warned=yes ;; 7665esac 7666 LIPO=$ac_ct_LIPO 7667 fi 7668else 7669 LIPO="$ac_cv_prog_LIPO" 7670fi 7671 7672 if test -n "$ac_tool_prefix"; then 7673 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7674set dummy ${ac_tool_prefix}otool; ac_word=$2 7675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7676$as_echo_n "checking for $ac_word... " >&6; } 7677if ${ac_cv_prog_OTOOL+:} false; then : 7678 $as_echo_n "(cached) " >&6 7679else 7680 if test -n "$OTOOL"; then 7681 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7682else 7683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7684for as_dir in $PATH 7685do 7686 IFS=$as_save_IFS 7687 test -z "$as_dir" && as_dir=. 7688 for ac_exec_ext in '' $ac_executable_extensions; do 7689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7690 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7692 break 2 7693 fi 7694done 7695 done 7696IFS=$as_save_IFS 7697 7698fi 7699fi 7700OTOOL=$ac_cv_prog_OTOOL 7701if test -n "$OTOOL"; then 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7703$as_echo "$OTOOL" >&6; } 7704else 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7706$as_echo "no" >&6; } 7707fi 7708 7709 7710fi 7711if test -z "$ac_cv_prog_OTOOL"; then 7712 ac_ct_OTOOL=$OTOOL 7713 # Extract the first word of "otool", so it can be a program name with args. 7714set dummy otool; ac_word=$2 7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7716$as_echo_n "checking for $ac_word... " >&6; } 7717if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7718 $as_echo_n "(cached) " >&6 7719else 7720 if test -n "$ac_ct_OTOOL"; then 7721 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7722else 7723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7724for as_dir in $PATH 7725do 7726 IFS=$as_save_IFS 7727 test -z "$as_dir" && as_dir=. 7728 for ac_exec_ext in '' $ac_executable_extensions; do 7729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7730 ac_cv_prog_ac_ct_OTOOL="otool" 7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7732 break 2 7733 fi 7734done 7735 done 7736IFS=$as_save_IFS 7737 7738fi 7739fi 7740ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7741if test -n "$ac_ct_OTOOL"; then 7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7743$as_echo "$ac_ct_OTOOL" >&6; } 7744else 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7746$as_echo "no" >&6; } 7747fi 7748 7749 if test "x$ac_ct_OTOOL" = x; then 7750 OTOOL=":" 7751 else 7752 case $cross_compiling:$ac_tool_warned in 7753yes:) 7754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7756ac_tool_warned=yes ;; 7757esac 7758 OTOOL=$ac_ct_OTOOL 7759 fi 7760else 7761 OTOOL="$ac_cv_prog_OTOOL" 7762fi 7763 7764 if test -n "$ac_tool_prefix"; then 7765 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7766set dummy ${ac_tool_prefix}otool64; ac_word=$2 7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7768$as_echo_n "checking for $ac_word... " >&6; } 7769if ${ac_cv_prog_OTOOL64+:} false; then : 7770 $as_echo_n "(cached) " >&6 7771else 7772 if test -n "$OTOOL64"; then 7773 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7774else 7775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7776for as_dir in $PATH 7777do 7778 IFS=$as_save_IFS 7779 test -z "$as_dir" && as_dir=. 7780 for ac_exec_ext in '' $ac_executable_extensions; do 7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7782 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7784 break 2 7785 fi 7786done 7787 done 7788IFS=$as_save_IFS 7789 7790fi 7791fi 7792OTOOL64=$ac_cv_prog_OTOOL64 7793if test -n "$OTOOL64"; then 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7795$as_echo "$OTOOL64" >&6; } 7796else 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7798$as_echo "no" >&6; } 7799fi 7800 7801 7802fi 7803if test -z "$ac_cv_prog_OTOOL64"; then 7804 ac_ct_OTOOL64=$OTOOL64 7805 # Extract the first word of "otool64", so it can be a program name with args. 7806set dummy otool64; ac_word=$2 7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7808$as_echo_n "checking for $ac_word... " >&6; } 7809if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7810 $as_echo_n "(cached) " >&6 7811else 7812 if test -n "$ac_ct_OTOOL64"; then 7813 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7814else 7815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7816for as_dir in $PATH 7817do 7818 IFS=$as_save_IFS 7819 test -z "$as_dir" && as_dir=. 7820 for ac_exec_ext in '' $ac_executable_extensions; do 7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7822 ac_cv_prog_ac_ct_OTOOL64="otool64" 7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7824 break 2 7825 fi 7826done 7827 done 7828IFS=$as_save_IFS 7829 7830fi 7831fi 7832ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7833if test -n "$ac_ct_OTOOL64"; then 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7835$as_echo "$ac_ct_OTOOL64" >&6; } 7836else 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7838$as_echo "no" >&6; } 7839fi 7840 7841 if test "x$ac_ct_OTOOL64" = x; then 7842 OTOOL64=":" 7843 else 7844 case $cross_compiling:$ac_tool_warned in 7845yes:) 7846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7848ac_tool_warned=yes ;; 7849esac 7850 OTOOL64=$ac_ct_OTOOL64 7851 fi 7852else 7853 OTOOL64="$ac_cv_prog_OTOOL64" 7854fi 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7883$as_echo_n "checking for -single_module linker flag... " >&6; } 7884if ${lt_cv_apple_cc_single_mod+:} false; then : 7885 $as_echo_n "(cached) " >&6 7886else 7887 lt_cv_apple_cc_single_mod=no 7888 if test -z "${LT_MULTI_MODULE}"; then 7889 # By default we will add the -single_module flag. You can override 7890 # by either setting the environment variable LT_MULTI_MODULE 7891 # non-empty at configure time, or by adding -multi_module to the 7892 # link flags. 7893 rm -rf libconftest.dylib* 7894 echo "int foo(void){return 1;}" > conftest.c 7895 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7896-dynamiclib -Wl,-single_module conftest.c" >&5 7897 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7898 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7899 _lt_result=$? 7900 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7901 lt_cv_apple_cc_single_mod=yes 7902 else 7903 cat conftest.err >&5 7904 fi 7905 rm -rf libconftest.dylib* 7906 rm -f conftest.* 7907 fi 7908fi 7909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7910$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7912$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7913if ${lt_cv_ld_exported_symbols_list+:} false; then : 7914 $as_echo_n "(cached) " >&6 7915else 7916 lt_cv_ld_exported_symbols_list=no 7917 save_LDFLAGS=$LDFLAGS 7918 echo "_main" > conftest.sym 7919 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7921/* end confdefs.h. */ 7922 7923int 7924main () 7925{ 7926 7927 ; 7928 return 0; 7929} 7930_ACEOF 7931if ac_fn_c_try_link "$LINENO"; then : 7932 lt_cv_ld_exported_symbols_list=yes 7933else 7934 lt_cv_ld_exported_symbols_list=no 7935fi 7936rm -f core conftest.err conftest.$ac_objext \ 7937 conftest$ac_exeext conftest.$ac_ext 7938 LDFLAGS="$save_LDFLAGS" 7939 7940fi 7941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7942$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7944$as_echo_n "checking for -force_load linker flag... " >&6; } 7945if ${lt_cv_ld_force_load+:} false; then : 7946 $as_echo_n "(cached) " >&6 7947else 7948 lt_cv_ld_force_load=no 7949 cat > conftest.c << _LT_EOF 7950int forced_loaded() { return 2;} 7951_LT_EOF 7952 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7953 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7954 echo "$AR cru libconftest.a conftest.o" >&5 7955 $AR cru libconftest.a conftest.o 2>&5 7956 echo "$RANLIB libconftest.a" >&5 7957 $RANLIB libconftest.a 2>&5 7958 cat > conftest.c << _LT_EOF 7959int main() { return 0;} 7960_LT_EOF 7961 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7962 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7963 _lt_result=$? 7964 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7965 lt_cv_ld_force_load=yes 7966 else 7967 cat conftest.err >&5 7968 fi 7969 rm -f conftest.err libconftest.a conftest conftest.c 7970 rm -rf conftest.dSYM 7971 7972fi 7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7974$as_echo "$lt_cv_ld_force_load" >&6; } 7975 case $host_os in 7976 rhapsody* | darwin1.[012]) 7977 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7978 darwin1.*) 7979 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7980 darwin*) # darwin 5.x on 7981 # if running on 10.5 or later, the deployment target defaults 7982 # to the OS version, if on x86, and 10.4, the deployment 7983 # target defaults to 10.4. Don't you love it? 7984 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7985 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7986 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7987 10.[012]*) 7988 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7989 10.*) 7990 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7991 esac 7992 ;; 7993 esac 7994 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7995 _lt_dar_single_mod='$single_module' 7996 fi 7997 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7998 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7999 else 8000 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8001 fi 8002 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8003 _lt_dsymutil='~$DSYMUTIL $lib || :' 8004 else 8005 _lt_dsymutil= 8006 fi 8007 ;; 8008 esac 8009 8010ac_ext=c 8011ac_cpp='$CPP $CPPFLAGS' 8012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8014ac_compiler_gnu=$ac_cv_c_compiler_gnu 8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8016$as_echo_n "checking how to run the C preprocessor... " >&6; } 8017# On Suns, sometimes $CPP names a directory. 8018if test -n "$CPP" && test -d "$CPP"; then 8019 CPP= 8020fi 8021if test -z "$CPP"; then 8022 if ${ac_cv_prog_CPP+:} false; then : 8023 $as_echo_n "(cached) " >&6 8024else 8025 # Double quotes because CPP needs to be expanded 8026 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8027 do 8028 ac_preproc_ok=false 8029for ac_c_preproc_warn_flag in '' yes 8030do 8031 # Use a header file that comes with gcc, so configuring glibc 8032 # with a fresh cross-compiler works. 8033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8034 # <limits.h> exists even on freestanding compilers. 8035 # On the NeXT, cc -E runs the code through the compiler's parser, 8036 # not just through cpp. "Syntax error" is here to catch this case. 8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8038/* end confdefs.h. */ 8039#ifdef __STDC__ 8040# include <limits.h> 8041#else 8042# include <assert.h> 8043#endif 8044 Syntax error 8045_ACEOF 8046if ac_fn_c_try_cpp "$LINENO"; then : 8047 8048else 8049 # Broken: fails on valid input. 8050continue 8051fi 8052rm -f conftest.err conftest.i conftest.$ac_ext 8053 8054 # OK, works on sane cases. Now check whether nonexistent headers 8055 # can be detected and how. 8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8057/* end confdefs.h. */ 8058#include <ac_nonexistent.h> 8059_ACEOF 8060if ac_fn_c_try_cpp "$LINENO"; then : 8061 # Broken: success on invalid input. 8062continue 8063else 8064 # Passes both tests. 8065ac_preproc_ok=: 8066break 8067fi 8068rm -f conftest.err conftest.i conftest.$ac_ext 8069 8070done 8071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8072rm -f conftest.i conftest.err conftest.$ac_ext 8073if $ac_preproc_ok; then : 8074 break 8075fi 8076 8077 done 8078 ac_cv_prog_CPP=$CPP 8079 8080fi 8081 CPP=$ac_cv_prog_CPP 8082else 8083 ac_cv_prog_CPP=$CPP 8084fi 8085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8086$as_echo "$CPP" >&6; } 8087ac_preproc_ok=false 8088for ac_c_preproc_warn_flag in '' yes 8089do 8090 # Use a header file that comes with gcc, so configuring glibc 8091 # with a fresh cross-compiler works. 8092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8093 # <limits.h> exists even on freestanding compilers. 8094 # On the NeXT, cc -E runs the code through the compiler's parser, 8095 # not just through cpp. "Syntax error" is here to catch this case. 8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8097/* end confdefs.h. */ 8098#ifdef __STDC__ 8099# include <limits.h> 8100#else 8101# include <assert.h> 8102#endif 8103 Syntax error 8104_ACEOF 8105if ac_fn_c_try_cpp "$LINENO"; then : 8106 8107else 8108 # Broken: fails on valid input. 8109continue 8110fi 8111rm -f conftest.err conftest.i conftest.$ac_ext 8112 8113 # OK, works on sane cases. Now check whether nonexistent headers 8114 # can be detected and how. 8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8116/* end confdefs.h. */ 8117#include <ac_nonexistent.h> 8118_ACEOF 8119if ac_fn_c_try_cpp "$LINENO"; then : 8120 # Broken: success on invalid input. 8121continue 8122else 8123 # Passes both tests. 8124ac_preproc_ok=: 8125break 8126fi 8127rm -f conftest.err conftest.i conftest.$ac_ext 8128 8129done 8130# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8131rm -f conftest.i conftest.err conftest.$ac_ext 8132if $ac_preproc_ok; then : 8133 8134else 8135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8137as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8138See \`config.log' for more details" "$LINENO" 5; } 8139fi 8140 8141ac_ext=c 8142ac_cpp='$CPP $CPPFLAGS' 8143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8145ac_compiler_gnu=$ac_cv_c_compiler_gnu 8146 8147 8148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8149$as_echo_n "checking for ANSI C header files... " >&6; } 8150if ${ac_cv_header_stdc+:} false; then : 8151 $as_echo_n "(cached) " >&6 8152else 8153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8154/* end confdefs.h. */ 8155#include <stdlib.h> 8156#include <stdarg.h> 8157#include <string.h> 8158#include <float.h> 8159 8160int 8161main () 8162{ 8163 8164 ; 8165 return 0; 8166} 8167_ACEOF 8168if ac_fn_c_try_compile "$LINENO"; then : 8169 ac_cv_header_stdc=yes 8170else 8171 ac_cv_header_stdc=no 8172fi 8173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8174 8175if test $ac_cv_header_stdc = yes; then 8176 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8178/* end confdefs.h. */ 8179#include <string.h> 8180 8181_ACEOF 8182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8183 $EGREP "memchr" >/dev/null 2>&1; then : 8184 8185else 8186 ac_cv_header_stdc=no 8187fi 8188rm -f conftest* 8189 8190fi 8191 8192if test $ac_cv_header_stdc = yes; then 8193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8195/* end confdefs.h. */ 8196#include <stdlib.h> 8197 8198_ACEOF 8199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8200 $EGREP "free" >/dev/null 2>&1; then : 8201 8202else 8203 ac_cv_header_stdc=no 8204fi 8205rm -f conftest* 8206 8207fi 8208 8209if test $ac_cv_header_stdc = yes; then 8210 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8211 if test "$cross_compiling" = yes; then : 8212 : 8213else 8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8215/* end confdefs.h. */ 8216#include <ctype.h> 8217#include <stdlib.h> 8218#if ((' ' & 0x0FF) == 0x020) 8219# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8220# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8221#else 8222# define ISLOWER(c) \ 8223 (('a' <= (c) && (c) <= 'i') \ 8224 || ('j' <= (c) && (c) <= 'r') \ 8225 || ('s' <= (c) && (c) <= 'z')) 8226# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8227#endif 8228 8229#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8230int 8231main () 8232{ 8233 int i; 8234 for (i = 0; i < 256; i++) 8235 if (XOR (islower (i), ISLOWER (i)) 8236 || toupper (i) != TOUPPER (i)) 8237 return 2; 8238 return 0; 8239} 8240_ACEOF 8241if ac_fn_c_try_run "$LINENO"; then : 8242 8243else 8244 ac_cv_header_stdc=no 8245fi 8246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8247 conftest.$ac_objext conftest.beam conftest.$ac_ext 8248fi 8249 8250fi 8251fi 8252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8253$as_echo "$ac_cv_header_stdc" >&6; } 8254if test $ac_cv_header_stdc = yes; then 8255 8256$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8257 8258fi 8259 8260# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8261for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8262 inttypes.h stdint.h unistd.h 8263do : 8264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8265ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8266" 8267if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8268 cat >>confdefs.h <<_ACEOF 8269#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8270_ACEOF 8271 8272fi 8273 8274done 8275 8276 8277for ac_header in dlfcn.h 8278do : 8279 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8280" 8281if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8282 cat >>confdefs.h <<_ACEOF 8283#define HAVE_DLFCN_H 1 8284_ACEOF 8285 8286fi 8287 8288done 8289 8290 8291 8292 8293func_stripname_cnf () 8294{ 8295 case ${2} in 8296 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 8297 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 8298 esac 8299} # func_stripname_cnf 8300 8301 8302 8303 8304 8305# Set options 8306 8307 8308 8309 enable_dlopen=no 8310 8311 8312 8313 # Check whether --enable-shared was given. 8314if test "${enable_shared+set}" = set; then : 8315 enableval=$enable_shared; p=${PACKAGE-default} 8316 case $enableval in 8317 yes) enable_shared=yes ;; 8318 no) enable_shared=no ;; 8319 *) 8320 enable_shared=no 8321 # Look at the argument we got. We use all the common list separators. 8322 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8323 for pkg in $enableval; do 8324 IFS="$lt_save_ifs" 8325 if test "X$pkg" = "X$p"; then 8326 enable_shared=yes 8327 fi 8328 done 8329 IFS="$lt_save_ifs" 8330 ;; 8331 esac 8332else 8333 enable_shared=yes 8334fi 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 # Check whether --enable-static was given. 8345if test "${enable_static+set}" = set; then : 8346 enableval=$enable_static; p=${PACKAGE-default} 8347 case $enableval in 8348 yes) enable_static=yes ;; 8349 no) enable_static=no ;; 8350 *) 8351 enable_static=no 8352 # Look at the argument we got. We use all the common list separators. 8353 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8354 for pkg in $enableval; do 8355 IFS="$lt_save_ifs" 8356 if test "X$pkg" = "X$p"; then 8357 enable_static=yes 8358 fi 8359 done 8360 IFS="$lt_save_ifs" 8361 ;; 8362 esac 8363else 8364 enable_static=yes 8365fi 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376# Check whether --with-pic was given. 8377if test "${with_pic+set}" = set; then : 8378 withval=$with_pic; pic_mode="$withval" 8379else 8380 pic_mode=default 8381fi 8382 8383 8384test -z "$pic_mode" && pic_mode=default 8385 8386 8387 8388 8389 8390 8391 8392 # Check whether --enable-fast-install was given. 8393if test "${enable_fast_install+set}" = set; then : 8394 enableval=$enable_fast_install; p=${PACKAGE-default} 8395 case $enableval in 8396 yes) enable_fast_install=yes ;; 8397 no) enable_fast_install=no ;; 8398 *) 8399 enable_fast_install=no 8400 # Look at the argument we got. We use all the common list separators. 8401 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8402 for pkg in $enableval; do 8403 IFS="$lt_save_ifs" 8404 if test "X$pkg" = "X$p"; then 8405 enable_fast_install=yes 8406 fi 8407 done 8408 IFS="$lt_save_ifs" 8409 ;; 8410 esac 8411else 8412 enable_fast_install=yes 8413fi 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425# This can be used to rebuild libtool when needed 8426LIBTOOL_DEPS="$ltmain" 8427 8428# Always use our own libtool. 8429LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456test -z "$LN_S" && LN_S="ln -s" 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471if test -n "${ZSH_VERSION+set}" ; then 8472 setopt NO_GLOB_SUBST 8473fi 8474 8475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8476$as_echo_n "checking for objdir... " >&6; } 8477if ${lt_cv_objdir+:} false; then : 8478 $as_echo_n "(cached) " >&6 8479else 8480 rm -f .libs 2>/dev/null 8481mkdir .libs 2>/dev/null 8482if test -d .libs; then 8483 lt_cv_objdir=.libs 8484else 8485 # MS-DOS does not allow filenames that begin with a dot. 8486 lt_cv_objdir=_libs 8487fi 8488rmdir .libs 2>/dev/null 8489fi 8490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8491$as_echo "$lt_cv_objdir" >&6; } 8492objdir=$lt_cv_objdir 8493 8494 8495 8496 8497 8498cat >>confdefs.h <<_ACEOF 8499#define LT_OBJDIR "$lt_cv_objdir/" 8500_ACEOF 8501 8502 8503 8504 8505case $host_os in 8506aix3*) 8507 # AIX sometimes has problems with the GCC collect2 program. For some 8508 # reason, if we set the COLLECT_NAMES environment variable, the problems 8509 # vanish in a puff of smoke. 8510 if test "X${COLLECT_NAMES+set}" != Xset; then 8511 COLLECT_NAMES= 8512 export COLLECT_NAMES 8513 fi 8514 ;; 8515esac 8516 8517# Global variables: 8518ofile=libtool 8519can_build_shared=yes 8520 8521# All known linkers require a `.a' archive for static linking (except MSVC, 8522# which needs '.lib'). 8523libext=a 8524 8525with_gnu_ld="$lt_cv_prog_gnu_ld" 8526 8527old_CC="$CC" 8528old_CFLAGS="$CFLAGS" 8529 8530# Set sane defaults for various variables 8531test -z "$CC" && CC=cc 8532test -z "$LTCC" && LTCC=$CC 8533test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8534test -z "$LD" && LD=ld 8535test -z "$ac_objext" && ac_objext=o 8536 8537for cc_temp in $compiler""; do 8538 case $cc_temp in 8539 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8540 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8541 \-*) ;; 8542 *) break;; 8543 esac 8544done 8545cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8546 8547 8548# Only perform the check for file, if the check method requires it 8549test -z "$MAGIC_CMD" && MAGIC_CMD=file 8550case $deplibs_check_method in 8551file_magic*) 8552 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8554$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8555if ${lt_cv_path_MAGIC_CMD+:} false; then : 8556 $as_echo_n "(cached) " >&6 8557else 8558 case $MAGIC_CMD in 8559[\\/*] | ?:[\\/]*) 8560 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8561 ;; 8562*) 8563 lt_save_MAGIC_CMD="$MAGIC_CMD" 8564 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8565 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8566 for ac_dir in $ac_dummy; do 8567 IFS="$lt_save_ifs" 8568 test -z "$ac_dir" && ac_dir=. 8569 if test -f $ac_dir/${ac_tool_prefix}file; then 8570 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8571 if test -n "$file_magic_test_file"; then 8572 case $deplibs_check_method in 8573 "file_magic "*) 8574 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8575 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8576 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8577 $EGREP "$file_magic_regex" > /dev/null; then 8578 : 8579 else 8580 cat <<_LT_EOF 1>&2 8581 8582*** Warning: the command libtool uses to detect shared libraries, 8583*** $file_magic_cmd, produces output that libtool cannot recognize. 8584*** The result is that libtool may fail to recognize shared libraries 8585*** as such. This will affect the creation of libtool libraries that 8586*** depend on shared libraries, but programs linked with such libtool 8587*** libraries will work regardless of this problem. Nevertheless, you 8588*** may want to report the problem to your system manager and/or to 8589*** bug-libtool@gnu.org 8590 8591_LT_EOF 8592 fi ;; 8593 esac 8594 fi 8595 break 8596 fi 8597 done 8598 IFS="$lt_save_ifs" 8599 MAGIC_CMD="$lt_save_MAGIC_CMD" 8600 ;; 8601esac 8602fi 8603 8604MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8605if test -n "$MAGIC_CMD"; then 8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8607$as_echo "$MAGIC_CMD" >&6; } 8608else 8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8610$as_echo "no" >&6; } 8611fi 8612 8613 8614 8615 8616 8617if test -z "$lt_cv_path_MAGIC_CMD"; then 8618 if test -n "$ac_tool_prefix"; then 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8620$as_echo_n "checking for file... " >&6; } 8621if ${lt_cv_path_MAGIC_CMD+:} false; then : 8622 $as_echo_n "(cached) " >&6 8623else 8624 case $MAGIC_CMD in 8625[\\/*] | ?:[\\/]*) 8626 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8627 ;; 8628*) 8629 lt_save_MAGIC_CMD="$MAGIC_CMD" 8630 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8631 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8632 for ac_dir in $ac_dummy; do 8633 IFS="$lt_save_ifs" 8634 test -z "$ac_dir" && ac_dir=. 8635 if test -f $ac_dir/file; then 8636 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8637 if test -n "$file_magic_test_file"; then 8638 case $deplibs_check_method in 8639 "file_magic "*) 8640 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8641 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8642 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8643 $EGREP "$file_magic_regex" > /dev/null; then 8644 : 8645 else 8646 cat <<_LT_EOF 1>&2 8647 8648*** Warning: the command libtool uses to detect shared libraries, 8649*** $file_magic_cmd, produces output that libtool cannot recognize. 8650*** The result is that libtool may fail to recognize shared libraries 8651*** as such. This will affect the creation of libtool libraries that 8652*** depend on shared libraries, but programs linked with such libtool 8653*** libraries will work regardless of this problem. Nevertheless, you 8654*** may want to report the problem to your system manager and/or to 8655*** bug-libtool@gnu.org 8656 8657_LT_EOF 8658 fi ;; 8659 esac 8660 fi 8661 break 8662 fi 8663 done 8664 IFS="$lt_save_ifs" 8665 MAGIC_CMD="$lt_save_MAGIC_CMD" 8666 ;; 8667esac 8668fi 8669 8670MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8671if test -n "$MAGIC_CMD"; then 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8673$as_echo "$MAGIC_CMD" >&6; } 8674else 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8676$as_echo "no" >&6; } 8677fi 8678 8679 8680 else 8681 MAGIC_CMD=: 8682 fi 8683fi 8684 8685 fi 8686 ;; 8687esac 8688 8689# Use C for the default configuration in the libtool script 8690 8691lt_save_CC="$CC" 8692ac_ext=c 8693ac_cpp='$CPP $CPPFLAGS' 8694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8696ac_compiler_gnu=$ac_cv_c_compiler_gnu 8697 8698 8699# Source file extension for C test sources. 8700ac_ext=c 8701 8702# Object file extension for compiled C test sources. 8703objext=o 8704objext=$objext 8705 8706# Code to be used in simple compile tests 8707lt_simple_compile_test_code="int some_variable = 0;" 8708 8709# Code to be used in simple link tests 8710lt_simple_link_test_code='int main(){return(0);}' 8711 8712 8713 8714 8715 8716 8717 8718# If no C compiler was specified, use CC. 8719LTCC=${LTCC-"$CC"} 8720 8721# If no C compiler flags were specified, use CFLAGS. 8722LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8723 8724# Allow CC to be a program name with arguments. 8725compiler=$CC 8726 8727# Save the default compiler, since it gets overwritten when the other 8728# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8729compiler_DEFAULT=$CC 8730 8731# save warnings/boilerplate of simple test code 8732ac_outfile=conftest.$ac_objext 8733echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8734eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8735_lt_compiler_boilerplate=`cat conftest.err` 8736$RM conftest* 8737 8738ac_outfile=conftest.$ac_objext 8739echo "$lt_simple_link_test_code" >conftest.$ac_ext 8740eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8741_lt_linker_boilerplate=`cat conftest.err` 8742$RM -r conftest* 8743 8744 8745if test -n "$compiler"; then 8746 8747lt_prog_compiler_no_builtin_flag= 8748 8749if test "$GCC" = yes; then 8750 case $cc_basename in 8751 nvcc*) 8752 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8753 *) 8754 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8755 esac 8756 8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8758$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8759if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8760 $as_echo_n "(cached) " >&6 8761else 8762 lt_cv_prog_compiler_rtti_exceptions=no 8763 ac_outfile=conftest.$ac_objext 8764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8765 lt_compiler_flag="-fno-rtti -fno-exceptions" 8766 # Insert the option either (1) after the last *FLAGS variable, or 8767 # (2) before a word containing "conftest.", or (3) at the end. 8768 # Note that $ac_compile itself does not contain backslashes and begins 8769 # with a dollar sign (not a hyphen), so the echo should work correctly. 8770 # The option is referenced via a variable to avoid confusing sed. 8771 lt_compile=`echo "$ac_compile" | $SED \ 8772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8774 -e 's:$: $lt_compiler_flag:'` 8775 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8776 (eval "$lt_compile" 2>conftest.err) 8777 ac_status=$? 8778 cat conftest.err >&5 8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8780 if (exit $ac_status) && test -s "$ac_outfile"; then 8781 # The compiler can only warn and ignore the option if not recognized 8782 # So say no if there are warnings other than the usual output. 8783 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8785 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8786 lt_cv_prog_compiler_rtti_exceptions=yes 8787 fi 8788 fi 8789 $RM conftest* 8790 8791fi 8792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8793$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8794 8795if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8796 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8797else 8798 : 8799fi 8800 8801fi 8802 8803 8804 8805 8806 8807 8808 lt_prog_compiler_wl= 8809lt_prog_compiler_pic= 8810lt_prog_compiler_static= 8811 8812 8813 if test "$GCC" = yes; then 8814 lt_prog_compiler_wl='-Wl,' 8815 lt_prog_compiler_static='-static' 8816 8817 case $host_os in 8818 aix*) 8819 # All AIX code is PIC. 8820 if test "$host_cpu" = ia64; then 8821 # AIX 5 now supports IA64 processor 8822 lt_prog_compiler_static='-Bstatic' 8823 fi 8824 ;; 8825 8826 amigaos*) 8827 case $host_cpu in 8828 powerpc) 8829 # see comment about AmigaOS4 .so support 8830 lt_prog_compiler_pic='-fPIC' 8831 ;; 8832 m68k) 8833 # FIXME: we need at least 68020 code to build shared libraries, but 8834 # adding the `-m68020' flag to GCC prevents building anything better, 8835 # like `-m68040'. 8836 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8837 ;; 8838 esac 8839 ;; 8840 8841 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8842 # PIC is the default for these OSes. 8843 ;; 8844 8845 mingw* | cygwin* | pw32* | os2* | cegcc*) 8846 # This hack is so that the source file can tell whether it is being 8847 # built for inclusion in a dll (and should export symbols for example). 8848 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8849 # (--disable-auto-import) libraries 8850 lt_prog_compiler_pic='-DDLL_EXPORT' 8851 ;; 8852 8853 darwin* | rhapsody*) 8854 # PIC is the default on this platform 8855 # Common symbols not allowed in MH_DYLIB files 8856 lt_prog_compiler_pic='-fno-common' 8857 ;; 8858 8859 haiku*) 8860 # PIC is the default for Haiku. 8861 # The "-static" flag exists, but is broken. 8862 lt_prog_compiler_static= 8863 ;; 8864 8865 hpux*) 8866 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8867 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8868 # sets the default TLS model and affects inlining. 8869 case $host_cpu in 8870 hppa*64*) 8871 # +Z the default 8872 ;; 8873 *) 8874 lt_prog_compiler_pic='-fPIC' 8875 ;; 8876 esac 8877 ;; 8878 8879 interix[3-9]*) 8880 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8881 # Instead, we relocate shared libraries at runtime. 8882 ;; 8883 8884 msdosdjgpp*) 8885 # Just because we use GCC doesn't mean we suddenly get shared libraries 8886 # on systems that don't support them. 8887 lt_prog_compiler_can_build_shared=no 8888 enable_shared=no 8889 ;; 8890 8891 *nto* | *qnx*) 8892 # QNX uses GNU C++, but need to define -shared option too, otherwise 8893 # it will coredump. 8894 lt_prog_compiler_pic='-fPIC -shared' 8895 ;; 8896 8897 sysv4*MP*) 8898 if test -d /usr/nec; then 8899 lt_prog_compiler_pic=-Kconform_pic 8900 fi 8901 ;; 8902 8903 *) 8904 lt_prog_compiler_pic='-fPIC' 8905 ;; 8906 esac 8907 8908 case $cc_basename in 8909 nvcc*) # Cuda Compiler Driver 2.2 8910 lt_prog_compiler_wl='-Xlinker ' 8911 lt_prog_compiler_pic='-Xcompiler -fPIC' 8912 ;; 8913 esac 8914 else 8915 # PORTME Check for flag to pass linker flags through the system compiler. 8916 case $host_os in 8917 aix*) 8918 lt_prog_compiler_wl='-Wl,' 8919 if test "$host_cpu" = ia64; then 8920 # AIX 5 now supports IA64 processor 8921 lt_prog_compiler_static='-Bstatic' 8922 else 8923 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8924 fi 8925 ;; 8926 8927 mingw* | cygwin* | pw32* | os2* | cegcc*) 8928 # This hack is so that the source file can tell whether it is being 8929 # built for inclusion in a dll (and should export symbols for example). 8930 lt_prog_compiler_pic='-DDLL_EXPORT' 8931 ;; 8932 8933 hpux9* | hpux10* | hpux11*) 8934 lt_prog_compiler_wl='-Wl,' 8935 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8936 # not for PA HP-UX. 8937 case $host_cpu in 8938 hppa*64*|ia64*) 8939 # +Z the default 8940 ;; 8941 *) 8942 lt_prog_compiler_pic='+Z' 8943 ;; 8944 esac 8945 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8946 lt_prog_compiler_static='${wl}-a ${wl}archive' 8947 ;; 8948 8949 irix5* | irix6* | nonstopux*) 8950 lt_prog_compiler_wl='-Wl,' 8951 # PIC (with -KPIC) is the default. 8952 lt_prog_compiler_static='-non_shared' 8953 ;; 8954 8955 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8956 case $cc_basename in 8957 # old Intel for x86_64 which still supported -KPIC. 8958 ecc*) 8959 lt_prog_compiler_wl='-Wl,' 8960 lt_prog_compiler_pic='-KPIC' 8961 lt_prog_compiler_static='-static' 8962 ;; 8963 # icc used to be incompatible with GCC. 8964 # ICC 10 doesn't accept -KPIC any more. 8965 icc* | ifort*) 8966 lt_prog_compiler_wl='-Wl,' 8967 lt_prog_compiler_pic='-fPIC' 8968 lt_prog_compiler_static='-static' 8969 ;; 8970 # Lahey Fortran 8.1. 8971 lf95*) 8972 lt_prog_compiler_wl='-Wl,' 8973 lt_prog_compiler_pic='--shared' 8974 lt_prog_compiler_static='--static' 8975 ;; 8976 nagfor*) 8977 # NAG Fortran compiler 8978 lt_prog_compiler_wl='-Wl,-Wl,,' 8979 lt_prog_compiler_pic='-PIC' 8980 lt_prog_compiler_static='-Bstatic' 8981 ;; 8982 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8983 # Portland Group compilers (*not* the Pentium gcc compiler, 8984 # which looks to be a dead project) 8985 lt_prog_compiler_wl='-Wl,' 8986 lt_prog_compiler_pic='-fpic' 8987 lt_prog_compiler_static='-Bstatic' 8988 ;; 8989 ccc*) 8990 lt_prog_compiler_wl='-Wl,' 8991 # All Alpha code is PIC. 8992 lt_prog_compiler_static='-non_shared' 8993 ;; 8994 xl* | bgxl* | bgf* | mpixl*) 8995 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8996 lt_prog_compiler_wl='-Wl,' 8997 lt_prog_compiler_pic='-qpic' 8998 lt_prog_compiler_static='-qstaticlink' 8999 ;; 9000 *) 9001 case `$CC -V 2>&1 | sed 5q` in 9002 *Sun\ F* | *Sun*Fortran*) 9003 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9004 lt_prog_compiler_pic='-KPIC' 9005 lt_prog_compiler_static='-Bstatic' 9006 lt_prog_compiler_wl='' 9007 ;; 9008 *Sun\ C*) 9009 # Sun C 5.9 9010 lt_prog_compiler_pic='-KPIC' 9011 lt_prog_compiler_static='-Bstatic' 9012 lt_prog_compiler_wl='-Wl,' 9013 ;; 9014 esac 9015 ;; 9016 esac 9017 ;; 9018 9019 newsos6) 9020 lt_prog_compiler_pic='-KPIC' 9021 lt_prog_compiler_static='-Bstatic' 9022 ;; 9023 9024 *nto* | *qnx*) 9025 # QNX uses GNU C++, but need to define -shared option too, otherwise 9026 # it will coredump. 9027 lt_prog_compiler_pic='-fPIC -shared' 9028 ;; 9029 9030 osf3* | osf4* | osf5*) 9031 lt_prog_compiler_wl='-Wl,' 9032 # All OSF/1 code is PIC. 9033 lt_prog_compiler_static='-non_shared' 9034 ;; 9035 9036 rdos*) 9037 lt_prog_compiler_static='-non_shared' 9038 ;; 9039 9040 solaris*) 9041 lt_prog_compiler_pic='-KPIC' 9042 lt_prog_compiler_static='-Bstatic' 9043 case $cc_basename in 9044 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9045 lt_prog_compiler_wl='-Qoption ld ';; 9046 *) 9047 lt_prog_compiler_wl='-Wl,';; 9048 esac 9049 ;; 9050 9051 sunos4*) 9052 lt_prog_compiler_wl='-Qoption ld ' 9053 lt_prog_compiler_pic='-PIC' 9054 lt_prog_compiler_static='-Bstatic' 9055 ;; 9056 9057 sysv4 | sysv4.2uw2* | sysv4.3*) 9058 lt_prog_compiler_wl='-Wl,' 9059 lt_prog_compiler_pic='-KPIC' 9060 lt_prog_compiler_static='-Bstatic' 9061 ;; 9062 9063 sysv4*MP*) 9064 if test -d /usr/nec ;then 9065 lt_prog_compiler_pic='-Kconform_pic' 9066 lt_prog_compiler_static='-Bstatic' 9067 fi 9068 ;; 9069 9070 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9071 lt_prog_compiler_wl='-Wl,' 9072 lt_prog_compiler_pic='-KPIC' 9073 lt_prog_compiler_static='-Bstatic' 9074 ;; 9075 9076 unicos*) 9077 lt_prog_compiler_wl='-Wl,' 9078 lt_prog_compiler_can_build_shared=no 9079 ;; 9080 9081 uts4*) 9082 lt_prog_compiler_pic='-pic' 9083 lt_prog_compiler_static='-Bstatic' 9084 ;; 9085 9086 *) 9087 lt_prog_compiler_can_build_shared=no 9088 ;; 9089 esac 9090 fi 9091 9092case $host_os in 9093 # For platforms which do not support PIC, -DPIC is meaningless: 9094 *djgpp*) 9095 lt_prog_compiler_pic= 9096 ;; 9097 *) 9098 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9099 ;; 9100esac 9101 9102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9103$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9104if ${lt_cv_prog_compiler_pic+:} false; then : 9105 $as_echo_n "(cached) " >&6 9106else 9107 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9108fi 9109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9110$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9111lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9112 9113# 9114# Check to make sure the PIC flag actually works. 9115# 9116if test -n "$lt_prog_compiler_pic"; then 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9118$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9119if ${lt_cv_prog_compiler_pic_works+:} false; then : 9120 $as_echo_n "(cached) " >&6 9121else 9122 lt_cv_prog_compiler_pic_works=no 9123 ac_outfile=conftest.$ac_objext 9124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9125 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9126 # Insert the option either (1) after the last *FLAGS variable, or 9127 # (2) before a word containing "conftest.", or (3) at the end. 9128 # Note that $ac_compile itself does not contain backslashes and begins 9129 # with a dollar sign (not a hyphen), so the echo should work correctly. 9130 # The option is referenced via a variable to avoid confusing sed. 9131 lt_compile=`echo "$ac_compile" | $SED \ 9132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9134 -e 's:$: $lt_compiler_flag:'` 9135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9136 (eval "$lt_compile" 2>conftest.err) 9137 ac_status=$? 9138 cat conftest.err >&5 9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9140 if (exit $ac_status) && test -s "$ac_outfile"; then 9141 # The compiler can only warn and ignore the option if not recognized 9142 # So say no if there are warnings other than the usual output. 9143 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9145 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9146 lt_cv_prog_compiler_pic_works=yes 9147 fi 9148 fi 9149 $RM conftest* 9150 9151fi 9152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9153$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9154 9155if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9156 case $lt_prog_compiler_pic in 9157 "" | " "*) ;; 9158 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9159 esac 9160else 9161 lt_prog_compiler_pic= 9162 lt_prog_compiler_can_build_shared=no 9163fi 9164 9165fi 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177# 9178# Check to make sure the static flag actually works. 9179# 9180wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9182$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9183if ${lt_cv_prog_compiler_static_works+:} false; then : 9184 $as_echo_n "(cached) " >&6 9185else 9186 lt_cv_prog_compiler_static_works=no 9187 save_LDFLAGS="$LDFLAGS" 9188 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9189 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9190 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9191 # The linker can only warn and ignore the option if not recognized 9192 # So say no if there are warnings 9193 if test -s conftest.err; then 9194 # Append any errors to the config.log. 9195 cat conftest.err 1>&5 9196 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9198 if diff conftest.exp conftest.er2 >/dev/null; then 9199 lt_cv_prog_compiler_static_works=yes 9200 fi 9201 else 9202 lt_cv_prog_compiler_static_works=yes 9203 fi 9204 fi 9205 $RM -r conftest* 9206 LDFLAGS="$save_LDFLAGS" 9207 9208fi 9209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9210$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9211 9212if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9213 : 9214else 9215 lt_prog_compiler_static= 9216fi 9217 9218 9219 9220 9221 9222 9223 9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9225$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9226if ${lt_cv_prog_compiler_c_o+:} false; then : 9227 $as_echo_n "(cached) " >&6 9228else 9229 lt_cv_prog_compiler_c_o=no 9230 $RM -r conftest 2>/dev/null 9231 mkdir conftest 9232 cd conftest 9233 mkdir out 9234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9235 9236 lt_compiler_flag="-o out/conftest2.$ac_objext" 9237 # Insert the option either (1) after the last *FLAGS variable, or 9238 # (2) before a word containing "conftest.", or (3) at the end. 9239 # Note that $ac_compile itself does not contain backslashes and begins 9240 # with a dollar sign (not a hyphen), so the echo should work correctly. 9241 lt_compile=`echo "$ac_compile" | $SED \ 9242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9244 -e 's:$: $lt_compiler_flag:'` 9245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9246 (eval "$lt_compile" 2>out/conftest.err) 9247 ac_status=$? 9248 cat out/conftest.err >&5 9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9250 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9251 then 9252 # The compiler can only warn and ignore the option if not recognized 9253 # So say no if there are warnings 9254 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9255 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9256 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9257 lt_cv_prog_compiler_c_o=yes 9258 fi 9259 fi 9260 chmod u+w . 2>&5 9261 $RM conftest* 9262 # SGI C++ compiler will create directory out/ii_files/ for 9263 # template instantiation 9264 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9265 $RM out/* && rmdir out 9266 cd .. 9267 $RM -r conftest 9268 $RM conftest* 9269 9270fi 9271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9272$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9273 9274 9275 9276 9277 9278 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9280$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9281if ${lt_cv_prog_compiler_c_o+:} false; then : 9282 $as_echo_n "(cached) " >&6 9283else 9284 lt_cv_prog_compiler_c_o=no 9285 $RM -r conftest 2>/dev/null 9286 mkdir conftest 9287 cd conftest 9288 mkdir out 9289 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9290 9291 lt_compiler_flag="-o out/conftest2.$ac_objext" 9292 # Insert the option either (1) after the last *FLAGS variable, or 9293 # (2) before a word containing "conftest.", or (3) at the end. 9294 # Note that $ac_compile itself does not contain backslashes and begins 9295 # with a dollar sign (not a hyphen), so the echo should work correctly. 9296 lt_compile=`echo "$ac_compile" | $SED \ 9297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9299 -e 's:$: $lt_compiler_flag:'` 9300 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9301 (eval "$lt_compile" 2>out/conftest.err) 9302 ac_status=$? 9303 cat out/conftest.err >&5 9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9305 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9306 then 9307 # The compiler can only warn and ignore the option if not recognized 9308 # So say no if there are warnings 9309 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9310 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9311 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9312 lt_cv_prog_compiler_c_o=yes 9313 fi 9314 fi 9315 chmod u+w . 2>&5 9316 $RM conftest* 9317 # SGI C++ compiler will create directory out/ii_files/ for 9318 # template instantiation 9319 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9320 $RM out/* && rmdir out 9321 cd .. 9322 $RM -r conftest 9323 $RM conftest* 9324 9325fi 9326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9327$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9328 9329 9330 9331 9332hard_links="nottested" 9333if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9334 # do not overwrite the value of need_locks provided by the user 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9336$as_echo_n "checking if we can lock with hard links... " >&6; } 9337 hard_links=yes 9338 $RM conftest* 9339 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9340 touch conftest.a 9341 ln conftest.a conftest.b 2>&5 || hard_links=no 9342 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9344$as_echo "$hard_links" >&6; } 9345 if test "$hard_links" = no; then 9346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9347$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9348 need_locks=warn 9349 fi 9350else 9351 need_locks=no 9352fi 9353 9354 9355 9356 9357 9358 9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9360$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9361 9362 runpath_var= 9363 allow_undefined_flag= 9364 always_export_symbols=no 9365 archive_cmds= 9366 archive_expsym_cmds= 9367 compiler_needs_object=no 9368 enable_shared_with_static_runtimes=no 9369 export_dynamic_flag_spec= 9370 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9371 hardcode_automatic=no 9372 hardcode_direct=no 9373 hardcode_direct_absolute=no 9374 hardcode_libdir_flag_spec= 9375 hardcode_libdir_flag_spec_ld= 9376 hardcode_libdir_separator= 9377 hardcode_minus_L=no 9378 hardcode_shlibpath_var=unsupported 9379 inherit_rpath=no 9380 link_all_deplibs=unknown 9381 module_cmds= 9382 module_expsym_cmds= 9383 old_archive_from_new_cmds= 9384 old_archive_from_expsyms_cmds= 9385 thread_safe_flag_spec= 9386 whole_archive_flag_spec= 9387 # include_expsyms should be a list of space-separated symbols to be *always* 9388 # included in the symbol list 9389 include_expsyms= 9390 # exclude_expsyms can be an extended regexp of symbols to exclude 9391 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9392 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9393 # as well as any symbol that contains `d'. 9394 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9395 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9396 # platforms (ab)use it in PIC code, but their linkers get confused if 9397 # the symbol is explicitly referenced. Since portable code cannot 9398 # rely on this symbol name, it's probably fine to never include it in 9399 # preloaded symbol tables. 9400 # Exclude shared library initialization/finalization symbols. 9401 extract_expsyms_cmds= 9402 9403 case $host_os in 9404 cygwin* | mingw* | pw32* | cegcc*) 9405 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9406 # When not using gcc, we currently assume that we are using 9407 # Microsoft Visual C++. 9408 if test "$GCC" != yes; then 9409 with_gnu_ld=no 9410 fi 9411 ;; 9412 interix*) 9413 # we just hope/assume this is gcc and not c89 (= MSVC++) 9414 with_gnu_ld=yes 9415 ;; 9416 openbsd*) 9417 with_gnu_ld=no 9418 ;; 9419 linux* | k*bsd*-gnu | gnu*) 9420 link_all_deplibs=no 9421 ;; 9422 esac 9423 9424 ld_shlibs=yes 9425 9426 # On some targets, GNU ld is compatible enough with the native linker 9427 # that we're better off using the native interface for both. 9428 lt_use_gnu_ld_interface=no 9429 if test "$with_gnu_ld" = yes; then 9430 case $host_os in 9431 aix*) 9432 # The AIX port of GNU ld has always aspired to compatibility 9433 # with the native linker. However, as the warning in the GNU ld 9434 # block says, versions before 2.19.5* couldn't really create working 9435 # shared libraries, regardless of the interface used. 9436 case `$LD -v 2>&1` in 9437 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9438 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9439 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9440 *) 9441 lt_use_gnu_ld_interface=yes 9442 ;; 9443 esac 9444 ;; 9445 *) 9446 lt_use_gnu_ld_interface=yes 9447 ;; 9448 esac 9449 fi 9450 9451 if test "$lt_use_gnu_ld_interface" = yes; then 9452 # If archive_cmds runs LD, not CC, wlarc should be empty 9453 wlarc='${wl}' 9454 9455 # Set some defaults for GNU ld with shared library support. These 9456 # are reset later if shared libraries are not supported. Putting them 9457 # here allows them to be overridden if necessary. 9458 runpath_var=LD_RUN_PATH 9459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9460 export_dynamic_flag_spec='${wl}--export-dynamic' 9461 # ancient GNU ld didn't support --whole-archive et. al. 9462 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9463 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9464 else 9465 whole_archive_flag_spec= 9466 fi 9467 supports_anon_versioning=no 9468 case `$LD -v 2>&1` in 9469 *GNU\ gold*) supports_anon_versioning=yes ;; 9470 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9471 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9472 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9473 *\ 2.11.*) ;; # other 2.11 versions 9474 *) supports_anon_versioning=yes ;; 9475 esac 9476 9477 # See if GNU ld supports shared libraries. 9478 case $host_os in 9479 aix[3-9]*) 9480 # On AIX/PPC, the GNU linker is very broken 9481 if test "$host_cpu" != ia64; then 9482 ld_shlibs=no 9483 cat <<_LT_EOF 1>&2 9484 9485*** Warning: the GNU linker, at least up to release 2.19, is reported 9486*** to be unable to reliably create shared libraries on AIX. 9487*** Therefore, libtool is disabling shared libraries support. If you 9488*** really care for shared libraries, you may want to install binutils 9489*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9490*** You will then need to restart the configuration process. 9491 9492_LT_EOF 9493 fi 9494 ;; 9495 9496 amigaos*) 9497 case $host_cpu in 9498 powerpc) 9499 # see comment about AmigaOS4 .so support 9500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9501 archive_expsym_cmds='' 9502 ;; 9503 m68k) 9504 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)' 9505 hardcode_libdir_flag_spec='-L$libdir' 9506 hardcode_minus_L=yes 9507 ;; 9508 esac 9509 ;; 9510 9511 beos*) 9512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9513 allow_undefined_flag=unsupported 9514 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9515 # support --undefined. This deserves some investigation. FIXME 9516 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9517 else 9518 ld_shlibs=no 9519 fi 9520 ;; 9521 9522 cygwin* | mingw* | pw32* | cegcc*) 9523 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9524 # as there is no search path for DLLs. 9525 hardcode_libdir_flag_spec='-L$libdir' 9526 export_dynamic_flag_spec='${wl}--export-all-symbols' 9527 allow_undefined_flag=unsupported 9528 always_export_symbols=no 9529 enable_shared_with_static_runtimes=yes 9530 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' 9531 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9532 9533 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9535 # If the export-symbols file already is a .def file (1st line 9536 # is EXPORTS), use it as is; otherwise, prepend... 9537 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9538 cp $export_symbols $output_objdir/$soname.def; 9539 else 9540 echo EXPORTS > $output_objdir/$soname.def; 9541 cat $export_symbols >> $output_objdir/$soname.def; 9542 fi~ 9543 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9544 else 9545 ld_shlibs=no 9546 fi 9547 ;; 9548 9549 haiku*) 9550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9551 link_all_deplibs=yes 9552 ;; 9553 9554 interix[3-9]*) 9555 hardcode_direct=no 9556 hardcode_shlibpath_var=no 9557 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9558 export_dynamic_flag_spec='${wl}-E' 9559 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9560 # Instead, shared libraries are loaded at an image base (0x10000000 by 9561 # default) and relocated if they conflict, which is a slow very memory 9562 # consuming and fragmenting process. To avoid this, we pick a random, 9563 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9564 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9565 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9566 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' 9567 ;; 9568 9569 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9570 tmp_diet=no 9571 if test "$host_os" = linux-dietlibc; then 9572 case $cc_basename in 9573 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9574 esac 9575 fi 9576 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9577 && test "$tmp_diet" = no 9578 then 9579 tmp_addflag=' $pic_flag' 9580 tmp_sharedflag='-shared' 9581 case $cc_basename,$host_cpu in 9582 pgcc*) # Portland Group C compiler 9583 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' 9584 tmp_addflag=' $pic_flag' 9585 ;; 9586 pgf77* | pgf90* | pgf95* | pgfortran*) 9587 # Portland Group f77 and f90 compilers 9588 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' 9589 tmp_addflag=' $pic_flag -Mnomain' ;; 9590 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9591 tmp_addflag=' -i_dynamic' ;; 9592 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9593 tmp_addflag=' -i_dynamic -nofor_main' ;; 9594 ifc* | ifort*) # Intel Fortran compiler 9595 tmp_addflag=' -nofor_main' ;; 9596 lf95*) # Lahey Fortran 8.1 9597 whole_archive_flag_spec= 9598 tmp_sharedflag='--shared' ;; 9599 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9600 tmp_sharedflag='-qmkshrobj' 9601 tmp_addflag= ;; 9602 nvcc*) # Cuda Compiler Driver 2.2 9603 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' 9604 compiler_needs_object=yes 9605 ;; 9606 esac 9607 case `$CC -V 2>&1 | sed 5q` in 9608 *Sun\ C*) # Sun C 5.9 9609 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' 9610 compiler_needs_object=yes 9611 tmp_sharedflag='-G' ;; 9612 *Sun\ F*) # Sun Fortran 8.3 9613 tmp_sharedflag='-G' ;; 9614 esac 9615 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9616 9617 if test "x$supports_anon_versioning" = xyes; then 9618 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9619 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9620 echo "local: *; };" >> $output_objdir/$libname.ver~ 9621 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9622 fi 9623 9624 case $cc_basename in 9625 xlf* | bgf* | bgxlf* | mpixlf*) 9626 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9627 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9628 hardcode_libdir_flag_spec= 9629 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9630 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9631 if test "x$supports_anon_versioning" = xyes; then 9632 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9633 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9634 echo "local: *; };" >> $output_objdir/$libname.ver~ 9635 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9636 fi 9637 ;; 9638 esac 9639 else 9640 ld_shlibs=no 9641 fi 9642 ;; 9643 9644 netbsd* | netbsdelf*-gnu) 9645 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9646 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9647 wlarc= 9648 else 9649 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9650 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9651 fi 9652 ;; 9653 9654 solaris*) 9655 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9656 ld_shlibs=no 9657 cat <<_LT_EOF 1>&2 9658 9659*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9660*** create shared libraries on Solaris systems. Therefore, libtool 9661*** is disabling shared libraries support. We urge you to upgrade GNU 9662*** binutils to release 2.9.1 or newer. Another option is to modify 9663*** your PATH or compiler configuration so that the native linker is 9664*** used, and then restart. 9665 9666_LT_EOF 9667 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9668 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9669 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9670 else 9671 ld_shlibs=no 9672 fi 9673 ;; 9674 9675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9676 case `$LD -v 2>&1` in 9677 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9678 ld_shlibs=no 9679 cat <<_LT_EOF 1>&2 9680 9681*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9682*** reliably create shared libraries on SCO systems. Therefore, libtool 9683*** is disabling shared libraries support. We urge you to upgrade GNU 9684*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9685*** your PATH or compiler configuration so that the native linker is 9686*** used, and then restart. 9687 9688_LT_EOF 9689 ;; 9690 *) 9691 # For security reasons, it is highly recommended that you always 9692 # use absolute paths for naming shared libraries, and exclude the 9693 # DT_RUNPATH tag from executables and libraries. But doing so 9694 # requires that you compile everything twice, which is a pain. 9695 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9698 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9699 else 9700 ld_shlibs=no 9701 fi 9702 ;; 9703 esac 9704 ;; 9705 9706 sunos4*) 9707 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9708 wlarc= 9709 hardcode_direct=yes 9710 hardcode_shlibpath_var=no 9711 ;; 9712 9713 *) 9714 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9715 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9716 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9717 else 9718 ld_shlibs=no 9719 fi 9720 ;; 9721 esac 9722 9723 if test "$ld_shlibs" = no; then 9724 runpath_var= 9725 hardcode_libdir_flag_spec= 9726 export_dynamic_flag_spec= 9727 whole_archive_flag_spec= 9728 fi 9729 else 9730 # PORTME fill in a description of your system's linker (not GNU ld) 9731 case $host_os in 9732 aix3*) 9733 allow_undefined_flag=unsupported 9734 always_export_symbols=yes 9735 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' 9736 # Note: this linker hardcodes the directories in LIBPATH if there 9737 # are no directories specified by -L. 9738 hardcode_minus_L=yes 9739 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9740 # Neither direct hardcoding nor static linking is supported with a 9741 # broken collect2. 9742 hardcode_direct=unsupported 9743 fi 9744 ;; 9745 9746 aix[4-9]*) 9747 if test "$host_cpu" = ia64; then 9748 # On IA64, the linker does run time linking by default, so we don't 9749 # have to do anything special. 9750 aix_use_runtimelinking=no 9751 exp_sym_flag='-Bexport' 9752 no_entry_flag="" 9753 else 9754 # If we're using GNU nm, then we don't want the "-C" option. 9755 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9756 # Also, AIX nm treats weak defined symbols like other global 9757 # defined symbols, whereas GNU nm marks them as "W". 9758 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9759 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9760 else 9761 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9762 fi 9763 aix_use_runtimelinking=no 9764 9765 # Test if we are trying to use run time linking or normal 9766 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9767 # need to do runtime linking. 9768 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9769 for ld_flag in $LDFLAGS; do 9770 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9771 aix_use_runtimelinking=yes 9772 break 9773 fi 9774 done 9775 ;; 9776 esac 9777 9778 exp_sym_flag='-bexport' 9779 no_entry_flag='-bnoentry' 9780 fi 9781 9782 # When large executables or shared objects are built, AIX ld can 9783 # have problems creating the table of contents. If linking a library 9784 # or program results in "error TOC overflow" add -mminimal-toc to 9785 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9786 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9787 9788 archive_cmds='' 9789 hardcode_direct=yes 9790 hardcode_direct_absolute=yes 9791 hardcode_libdir_separator=':' 9792 link_all_deplibs=yes 9793 file_list_spec='${wl}-f,' 9794 9795 if test "$GCC" = yes; then 9796 case $host_os in aix4.[012]|aix4.[012].*) 9797 # We only want to do this on AIX 4.2 and lower, the check 9798 # below for broken collect2 doesn't work under 4.3+ 9799 collect2name=`${CC} -print-prog-name=collect2` 9800 if test -f "$collect2name" && 9801 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9802 then 9803 # We have reworked collect2 9804 : 9805 else 9806 # We have old collect2 9807 hardcode_direct=unsupported 9808 # It fails to find uninstalled libraries when the uninstalled 9809 # path is not listed in the libpath. Setting hardcode_minus_L 9810 # to unsupported forces relinking 9811 hardcode_minus_L=yes 9812 hardcode_libdir_flag_spec='-L$libdir' 9813 hardcode_libdir_separator= 9814 fi 9815 ;; 9816 esac 9817 shared_flag='-shared' 9818 if test "$aix_use_runtimelinking" = yes; then 9819 shared_flag="$shared_flag "'${wl}-G' 9820 fi 9821 link_all_deplibs=no 9822 else 9823 # not using gcc 9824 if test "$host_cpu" = ia64; then 9825 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9826 # chokes on -Wl,-G. The following line is correct: 9827 shared_flag='-G' 9828 else 9829 if test "$aix_use_runtimelinking" = yes; then 9830 shared_flag='${wl}-G' 9831 else 9832 shared_flag='${wl}-bM:SRE' 9833 fi 9834 fi 9835 fi 9836 9837 export_dynamic_flag_spec='${wl}-bexpall' 9838 # It seems that -bexpall does not export symbols beginning with 9839 # underscore (_), so it is better to generate a list of symbols to export. 9840 always_export_symbols=yes 9841 if test "$aix_use_runtimelinking" = yes; then 9842 # Warning - without using the other runtime loading flags (-brtl), 9843 # -berok will link without error, but may produce a broken library. 9844 allow_undefined_flag='-berok' 9845 # Determine the default libpath from the value encoded in an 9846 # empty executable. 9847 if test "${lt_cv_aix_libpath+set}" = set; then 9848 aix_libpath=$lt_cv_aix_libpath 9849else 9850 if ${lt_cv_aix_libpath_+:} false; then : 9851 $as_echo_n "(cached) " >&6 9852else 9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9854/* end confdefs.h. */ 9855 9856int 9857main () 9858{ 9859 9860 ; 9861 return 0; 9862} 9863_ACEOF 9864if ac_fn_c_try_link "$LINENO"; then : 9865 9866 lt_aix_libpath_sed=' 9867 /Import File Strings/,/^$/ { 9868 /^0/ { 9869 s/^0 *\([^ ]*\) *$/\1/ 9870 p 9871 } 9872 }' 9873 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9874 # Check for a 64-bit object if we didn't find anything. 9875 if test -z "$lt_cv_aix_libpath_"; then 9876 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9877 fi 9878fi 9879rm -f core conftest.err conftest.$ac_objext \ 9880 conftest$ac_exeext conftest.$ac_ext 9881 if test -z "$lt_cv_aix_libpath_"; then 9882 lt_cv_aix_libpath_="/usr/lib:/lib" 9883 fi 9884 9885fi 9886 9887 aix_libpath=$lt_cv_aix_libpath_ 9888fi 9889 9890 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9891 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9892 else 9893 if test "$host_cpu" = ia64; then 9894 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9895 allow_undefined_flag="-z nodefs" 9896 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" 9897 else 9898 # Determine the default libpath from the value encoded in an 9899 # empty executable. 9900 if test "${lt_cv_aix_libpath+set}" = set; then 9901 aix_libpath=$lt_cv_aix_libpath 9902else 9903 if ${lt_cv_aix_libpath_+:} false; then : 9904 $as_echo_n "(cached) " >&6 9905else 9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9907/* end confdefs.h. */ 9908 9909int 9910main () 9911{ 9912 9913 ; 9914 return 0; 9915} 9916_ACEOF 9917if ac_fn_c_try_link "$LINENO"; then : 9918 9919 lt_aix_libpath_sed=' 9920 /Import File Strings/,/^$/ { 9921 /^0/ { 9922 s/^0 *\([^ ]*\) *$/\1/ 9923 p 9924 } 9925 }' 9926 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9927 # Check for a 64-bit object if we didn't find anything. 9928 if test -z "$lt_cv_aix_libpath_"; then 9929 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9930 fi 9931fi 9932rm -f core conftest.err conftest.$ac_objext \ 9933 conftest$ac_exeext conftest.$ac_ext 9934 if test -z "$lt_cv_aix_libpath_"; then 9935 lt_cv_aix_libpath_="/usr/lib:/lib" 9936 fi 9937 9938fi 9939 9940 aix_libpath=$lt_cv_aix_libpath_ 9941fi 9942 9943 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9944 # Warning - without using the other run time loading flags, 9945 # -berok will link without error, but may produce a broken library. 9946 no_undefined_flag=' ${wl}-bernotok' 9947 allow_undefined_flag=' ${wl}-berok' 9948 if test "$with_gnu_ld" = yes; then 9949 # We only use this code for GNU lds that support --whole-archive. 9950 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9951 else 9952 # Exported symbols can be pulled into shared objects from archives 9953 whole_archive_flag_spec='$convenience' 9954 fi 9955 archive_cmds_need_lc=yes 9956 # This is similar to how AIX traditionally builds its shared libraries. 9957 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9958 fi 9959 fi 9960 ;; 9961 9962 amigaos*) 9963 case $host_cpu in 9964 powerpc) 9965 # see comment about AmigaOS4 .so support 9966 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9967 archive_expsym_cmds='' 9968 ;; 9969 m68k) 9970 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)' 9971 hardcode_libdir_flag_spec='-L$libdir' 9972 hardcode_minus_L=yes 9973 ;; 9974 esac 9975 ;; 9976 9977 bsdi[45]*) 9978 export_dynamic_flag_spec=-rdynamic 9979 ;; 9980 9981 cygwin* | mingw* | pw32* | cegcc*) 9982 # When not using gcc, we currently assume that we are using 9983 # Microsoft Visual C++. 9984 # hardcode_libdir_flag_spec is actually meaningless, as there is 9985 # no search path for DLLs. 9986 case $cc_basename in 9987 cl*) 9988 # Native MSVC 9989 hardcode_libdir_flag_spec=' ' 9990 allow_undefined_flag=unsupported 9991 always_export_symbols=yes 9992 file_list_spec='@' 9993 # Tell ltmain to make .lib files, not .a files. 9994 libext=lib 9995 # Tell ltmain to make .dll files, not .so files. 9996 shrext_cmds=".dll" 9997 # FIXME: Setting linknames here is a bad hack. 9998 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9999 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10000 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10001 else 10002 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10003 fi~ 10004 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10005 linknames=' 10006 # The linker will not automatically build a static lib if we build a DLL. 10007 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10008 enable_shared_with_static_runtimes=yes 10009 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10010 # Don't use ranlib 10011 old_postinstall_cmds='chmod 644 $oldlib' 10012 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10013 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10014 case $lt_outputfile in 10015 *.exe|*.EXE) ;; 10016 *) 10017 lt_outputfile="$lt_outputfile.exe" 10018 lt_tool_outputfile="$lt_tool_outputfile.exe" 10019 ;; 10020 esac~ 10021 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10022 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10023 $RM "$lt_outputfile.manifest"; 10024 fi' 10025 ;; 10026 *) 10027 # Assume MSVC wrapper 10028 hardcode_libdir_flag_spec=' ' 10029 allow_undefined_flag=unsupported 10030 # Tell ltmain to make .lib files, not .a files. 10031 libext=lib 10032 # Tell ltmain to make .dll files, not .so files. 10033 shrext_cmds=".dll" 10034 # FIXME: Setting linknames here is a bad hack. 10035 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10036 # The linker will automatically build a .lib file if we build a DLL. 10037 old_archive_from_new_cmds='true' 10038 # FIXME: Should let the user specify the lib program. 10039 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10040 enable_shared_with_static_runtimes=yes 10041 ;; 10042 esac 10043 ;; 10044 10045 darwin* | rhapsody*) 10046 10047 10048 archive_cmds_need_lc=no 10049 hardcode_direct=no 10050 hardcode_automatic=yes 10051 hardcode_shlibpath_var=unsupported 10052 if test "$lt_cv_ld_force_load" = "yes"; then 10053 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\"`' 10054 else 10055 whole_archive_flag_spec='' 10056 fi 10057 link_all_deplibs=yes 10058 allow_undefined_flag="$_lt_dar_allow_undefined" 10059 case $cc_basename in 10060 ifort*) _lt_dar_can_shared=yes ;; 10061 *) _lt_dar_can_shared=$GCC ;; 10062 esac 10063 if test "$_lt_dar_can_shared" = "yes"; then 10064 output_verbose_link_cmd=func_echo_all 10065 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10066 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10067 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}" 10068 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}" 10069 10070 else 10071 ld_shlibs=no 10072 fi 10073 10074 ;; 10075 10076 dgux*) 10077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10078 hardcode_libdir_flag_spec='-L$libdir' 10079 hardcode_shlibpath_var=no 10080 ;; 10081 10082 freebsd1*) 10083 ld_shlibs=no 10084 ;; 10085 10086 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10087 # support. Future versions do this automatically, but an explicit c++rt0.o 10088 # does not break anything, and helps significantly (at the cost of a little 10089 # extra space). 10090 freebsd2.2*) 10091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10092 hardcode_libdir_flag_spec='-R$libdir' 10093 hardcode_direct=yes 10094 hardcode_shlibpath_var=no 10095 ;; 10096 10097 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10098 freebsd2*) 10099 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10100 hardcode_direct=yes 10101 hardcode_minus_L=yes 10102 hardcode_shlibpath_var=no 10103 ;; 10104 10105 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10106 freebsd* | dragonfly*) 10107 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10108 hardcode_libdir_flag_spec='-R$libdir' 10109 hardcode_direct=yes 10110 hardcode_shlibpath_var=no 10111 ;; 10112 10113 hpux9*) 10114 if test "$GCC" = yes; then 10115 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10116 else 10117 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10118 fi 10119 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10120 hardcode_libdir_separator=: 10121 hardcode_direct=yes 10122 10123 # hardcode_minus_L: Not really in the search PATH, 10124 # but as the default location of the library. 10125 hardcode_minus_L=yes 10126 export_dynamic_flag_spec='${wl}-E' 10127 ;; 10128 10129 hpux10*) 10130 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10131 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10132 else 10133 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10134 fi 10135 if test "$with_gnu_ld" = no; then 10136 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10137 hardcode_libdir_flag_spec_ld='+b $libdir' 10138 hardcode_libdir_separator=: 10139 hardcode_direct=yes 10140 hardcode_direct_absolute=yes 10141 export_dynamic_flag_spec='${wl}-E' 10142 # hardcode_minus_L: Not really in the search PATH, 10143 # but as the default location of the library. 10144 hardcode_minus_L=yes 10145 fi 10146 ;; 10147 10148 hpux11*) 10149 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10150 case $host_cpu in 10151 hppa*64*) 10152 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10153 ;; 10154 ia64*) 10155 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10156 ;; 10157 *) 10158 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10159 ;; 10160 esac 10161 else 10162 case $host_cpu in 10163 hppa*64*) 10164 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10165 ;; 10166 ia64*) 10167 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10168 ;; 10169 *) 10170 10171 # Older versions of the 11.00 compiler do not understand -b yet 10172 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10174$as_echo_n "checking if $CC understands -b... " >&6; } 10175if ${lt_cv_prog_compiler__b+:} false; then : 10176 $as_echo_n "(cached) " >&6 10177else 10178 lt_cv_prog_compiler__b=no 10179 save_LDFLAGS="$LDFLAGS" 10180 LDFLAGS="$LDFLAGS -b" 10181 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10182 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10183 # The linker can only warn and ignore the option if not recognized 10184 # So say no if there are warnings 10185 if test -s conftest.err; then 10186 # Append any errors to the config.log. 10187 cat conftest.err 1>&5 10188 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10189 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10190 if diff conftest.exp conftest.er2 >/dev/null; then 10191 lt_cv_prog_compiler__b=yes 10192 fi 10193 else 10194 lt_cv_prog_compiler__b=yes 10195 fi 10196 fi 10197 $RM -r conftest* 10198 LDFLAGS="$save_LDFLAGS" 10199 10200fi 10201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10202$as_echo "$lt_cv_prog_compiler__b" >&6; } 10203 10204if test x"$lt_cv_prog_compiler__b" = xyes; then 10205 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10206else 10207 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10208fi 10209 10210 ;; 10211 esac 10212 fi 10213 if test "$with_gnu_ld" = no; then 10214 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10215 hardcode_libdir_separator=: 10216 10217 case $host_cpu in 10218 hppa*64*|ia64*) 10219 hardcode_direct=no 10220 hardcode_shlibpath_var=no 10221 ;; 10222 *) 10223 hardcode_direct=yes 10224 hardcode_direct_absolute=yes 10225 export_dynamic_flag_spec='${wl}-E' 10226 10227 # hardcode_minus_L: Not really in the search PATH, 10228 # but as the default location of the library. 10229 hardcode_minus_L=yes 10230 ;; 10231 esac 10232 fi 10233 ;; 10234 10235 irix5* | irix6* | nonstopux*) 10236 if test "$GCC" = yes; then 10237 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' 10238 # Try to use the -exported_symbol ld option, if it does not 10239 # work, assume that -exports_file does not work either and 10240 # implicitly export all symbols. 10241 # This should be the same for all languages, so no per-tag cache variable. 10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10243$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10244if ${lt_cv_irix_exported_symbol+:} false; then : 10245 $as_echo_n "(cached) " >&6 10246else 10247 save_LDFLAGS="$LDFLAGS" 10248 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10250/* end confdefs.h. */ 10251int foo (void) { return 0; } 10252_ACEOF 10253if ac_fn_c_try_link "$LINENO"; then : 10254 lt_cv_irix_exported_symbol=yes 10255else 10256 lt_cv_irix_exported_symbol=no 10257fi 10258rm -f core conftest.err conftest.$ac_objext \ 10259 conftest$ac_exeext conftest.$ac_ext 10260 LDFLAGS="$save_LDFLAGS" 10261fi 10262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10263$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10264 if test "$lt_cv_irix_exported_symbol" = yes; then 10265 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' 10266 fi 10267 else 10268 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' 10269 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' 10270 fi 10271 archive_cmds_need_lc='no' 10272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10273 hardcode_libdir_separator=: 10274 inherit_rpath=yes 10275 link_all_deplibs=yes 10276 ;; 10277 10278 netbsd* | netbsdelf*-gnu) 10279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10281 else 10282 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10283 fi 10284 hardcode_libdir_flag_spec='-R$libdir' 10285 hardcode_direct=yes 10286 hardcode_shlibpath_var=no 10287 ;; 10288 10289 newsos6) 10290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10291 hardcode_direct=yes 10292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10293 hardcode_libdir_separator=: 10294 hardcode_shlibpath_var=no 10295 ;; 10296 10297 *nto* | *qnx*) 10298 ;; 10299 10300 openbsd*) 10301 if test -f /usr/libexec/ld.so; then 10302 hardcode_direct=yes 10303 hardcode_shlibpath_var=no 10304 hardcode_direct_absolute=yes 10305 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10306 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10307 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10308 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10309 export_dynamic_flag_spec='${wl}-E' 10310 else 10311 case $host_os in 10312 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10314 hardcode_libdir_flag_spec='-R$libdir' 10315 ;; 10316 *) 10317 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10318 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10319 ;; 10320 esac 10321 fi 10322 else 10323 ld_shlibs=no 10324 fi 10325 ;; 10326 10327 os2*) 10328 hardcode_libdir_flag_spec='-L$libdir' 10329 hardcode_minus_L=yes 10330 allow_undefined_flag=unsupported 10331 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10332 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10333 ;; 10334 10335 osf3*) 10336 if test "$GCC" = yes; then 10337 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10338 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' 10339 else 10340 allow_undefined_flag=' -expect_unresolved \*' 10341 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' 10342 fi 10343 archive_cmds_need_lc='no' 10344 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10345 hardcode_libdir_separator=: 10346 ;; 10347 10348 osf4* | osf5*) # as osf3* with the addition of -msym flag 10349 if test "$GCC" = yes; then 10350 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10351 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' 10352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10353 else 10354 allow_undefined_flag=' -expect_unresolved \*' 10355 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' 10356 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~ 10357 $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' 10358 10359 # Both c and cxx compiler support -rpath directly 10360 hardcode_libdir_flag_spec='-rpath $libdir' 10361 fi 10362 archive_cmds_need_lc='no' 10363 hardcode_libdir_separator=: 10364 ;; 10365 10366 solaris*) 10367 no_undefined_flag=' -z defs' 10368 if test "$GCC" = yes; then 10369 wlarc='${wl}' 10370 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10371 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10372 $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' 10373 else 10374 case `$CC -V 2>&1` in 10375 *"Compilers 5.0"*) 10376 wlarc='' 10377 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10378 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10379 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10380 ;; 10381 *) 10382 wlarc='${wl}' 10383 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10384 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10385 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10386 ;; 10387 esac 10388 fi 10389 hardcode_libdir_flag_spec='-R$libdir' 10390 hardcode_shlibpath_var=no 10391 case $host_os in 10392 solaris2.[0-5] | solaris2.[0-5].*) ;; 10393 *) 10394 # The compiler driver will combine and reorder linker options, 10395 # but understands `-z linker_flag'. GCC discards it without `$wl', 10396 # but is careful enough not to reorder. 10397 # Supported since Solaris 2.6 (maybe 2.5.1?) 10398 if test "$GCC" = yes; then 10399 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10400 else 10401 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10402 fi 10403 ;; 10404 esac 10405 link_all_deplibs=yes 10406 ;; 10407 10408 sunos4*) 10409 if test "x$host_vendor" = xsequent; then 10410 # Use $CC to link under sequent, because it throws in some extra .o 10411 # files that make .init and .fini sections work. 10412 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10413 else 10414 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10415 fi 10416 hardcode_libdir_flag_spec='-L$libdir' 10417 hardcode_direct=yes 10418 hardcode_minus_L=yes 10419 hardcode_shlibpath_var=no 10420 ;; 10421 10422 sysv4) 10423 case $host_vendor in 10424 sni) 10425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10426 hardcode_direct=yes # is this really true??? 10427 ;; 10428 siemens) 10429 ## LD is ld it makes a PLAMLIB 10430 ## CC just makes a GrossModule. 10431 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10432 reload_cmds='$CC -r -o $output$reload_objs' 10433 hardcode_direct=no 10434 ;; 10435 motorola) 10436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10437 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10438 ;; 10439 esac 10440 runpath_var='LD_RUN_PATH' 10441 hardcode_shlibpath_var=no 10442 ;; 10443 10444 sysv4.3*) 10445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10446 hardcode_shlibpath_var=no 10447 export_dynamic_flag_spec='-Bexport' 10448 ;; 10449 10450 sysv4*MP*) 10451 if test -d /usr/nec; then 10452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10453 hardcode_shlibpath_var=no 10454 runpath_var=LD_RUN_PATH 10455 hardcode_runpath_var=yes 10456 ld_shlibs=yes 10457 fi 10458 ;; 10459 10460 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10461 no_undefined_flag='${wl}-z,text' 10462 archive_cmds_need_lc=no 10463 hardcode_shlibpath_var=no 10464 runpath_var='LD_RUN_PATH' 10465 10466 if test "$GCC" = yes; then 10467 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10468 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10469 else 10470 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10471 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10472 fi 10473 ;; 10474 10475 sysv5* | sco3.2v5* | sco5v6*) 10476 # Note: We can NOT use -z defs as we might desire, because we do not 10477 # link with -lc, and that would cause any symbols used from libc to 10478 # always be unresolved, which means just about no library would 10479 # ever link correctly. If we're not using GNU ld we use -z text 10480 # though, which does catch some bad symbols but isn't as heavy-handed 10481 # as -z defs. 10482 no_undefined_flag='${wl}-z,text' 10483 allow_undefined_flag='${wl}-z,nodefs' 10484 archive_cmds_need_lc=no 10485 hardcode_shlibpath_var=no 10486 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10487 hardcode_libdir_separator=':' 10488 link_all_deplibs=yes 10489 export_dynamic_flag_spec='${wl}-Bexport' 10490 runpath_var='LD_RUN_PATH' 10491 10492 if test "$GCC" = yes; then 10493 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10494 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10495 else 10496 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10497 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10498 fi 10499 ;; 10500 10501 uts4*) 10502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10503 hardcode_libdir_flag_spec='-L$libdir' 10504 hardcode_shlibpath_var=no 10505 ;; 10506 10507 *) 10508 ld_shlibs=no 10509 ;; 10510 esac 10511 10512 if test x$host_vendor = xsni; then 10513 case $host in 10514 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10515 export_dynamic_flag_spec='${wl}-Blargedynsym' 10516 ;; 10517 esac 10518 fi 10519 fi 10520 10521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10522$as_echo "$ld_shlibs" >&6; } 10523test "$ld_shlibs" = no && can_build_shared=no 10524 10525with_gnu_ld=$with_gnu_ld 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541# 10542# Do we need to explicitly link libc? 10543# 10544case "x$archive_cmds_need_lc" in 10545x|xyes) 10546 # Assume -lc should be added 10547 archive_cmds_need_lc=yes 10548 10549 if test "$enable_shared" = yes && test "$GCC" = yes; then 10550 case $archive_cmds in 10551 *'~'*) 10552 # FIXME: we may have to deal with multi-command sequences. 10553 ;; 10554 '$CC '*) 10555 # Test whether the compiler implicitly links with -lc since on some 10556 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10557 # to ld, don't add -lc before -lgcc. 10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10559$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10560if ${lt_cv_archive_cmds_need_lc+:} false; then : 10561 $as_echo_n "(cached) " >&6 10562else 10563 $RM conftest* 10564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10565 10566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10567 (eval $ac_compile) 2>&5 10568 ac_status=$? 10569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10570 test $ac_status = 0; } 2>conftest.err; then 10571 soname=conftest 10572 lib=conftest 10573 libobjs=conftest.$ac_objext 10574 deplibs= 10575 wl=$lt_prog_compiler_wl 10576 pic_flag=$lt_prog_compiler_pic 10577 compiler_flags=-v 10578 linker_flags=-v 10579 verstring= 10580 output_objdir=. 10581 libname=conftest 10582 lt_save_allow_undefined_flag=$allow_undefined_flag 10583 allow_undefined_flag= 10584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10585 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10586 ac_status=$? 10587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10588 test $ac_status = 0; } 10589 then 10590 lt_cv_archive_cmds_need_lc=no 10591 else 10592 lt_cv_archive_cmds_need_lc=yes 10593 fi 10594 allow_undefined_flag=$lt_save_allow_undefined_flag 10595 else 10596 cat conftest.err 1>&5 10597 fi 10598 $RM conftest* 10599 10600fi 10601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10602$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10603 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10604 ;; 10605 esac 10606 fi 10607 ;; 10608esac 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 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 10765 10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10767$as_echo_n "checking dynamic linker characteristics... " >&6; } 10768 10769if test "$GCC" = yes; then 10770 case $host_os in 10771 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10772 *) lt_awk_arg="/^libraries:/" ;; 10773 esac 10774 case $host_os in 10775 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10776 *) lt_sed_strip_eq="s,=/,/,g" ;; 10777 esac 10778 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10779 case $lt_search_path_spec in 10780 *\;*) 10781 # if the path contains ";" then we assume it to be the separator 10782 # otherwise default to the standard path separator (i.e. ":") - it is 10783 # assumed that no part of a normal pathname contains ";" but that should 10784 # okay in the real world where ";" in dirpaths is itself problematic. 10785 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10786 ;; 10787 *) 10788 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10789 ;; 10790 esac 10791 # Ok, now we have the path, separated by spaces, we can step through it 10792 # and add multilib dir if necessary. 10793 lt_tmp_lt_search_path_spec= 10794 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10795 for lt_sys_path in $lt_search_path_spec; do 10796 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10797 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10798 else 10799 test -d "$lt_sys_path" && \ 10800 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10801 fi 10802 done 10803 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10804BEGIN {RS=" "; FS="/|\n";} { 10805 lt_foo=""; 10806 lt_count=0; 10807 for (lt_i = NF; lt_i > 0; lt_i--) { 10808 if ($lt_i != "" && $lt_i != ".") { 10809 if ($lt_i == "..") { 10810 lt_count++; 10811 } else { 10812 if (lt_count == 0) { 10813 lt_foo="/" $lt_i lt_foo; 10814 } else { 10815 lt_count--; 10816 } 10817 } 10818 } 10819 } 10820 if (lt_foo != "") { lt_freq[lt_foo]++; } 10821 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10822}'` 10823 # AWK program above erroneously prepends '/' to C:/dos/paths 10824 # for these hosts. 10825 case $host_os in 10826 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10827 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10828 esac 10829 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10830else 10831 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10832fi 10833library_names_spec= 10834libname_spec='lib$name' 10835soname_spec= 10836shrext_cmds=".so" 10837postinstall_cmds= 10838postuninstall_cmds= 10839finish_cmds= 10840finish_eval= 10841shlibpath_var= 10842shlibpath_overrides_runpath=unknown 10843version_type=none 10844dynamic_linker="$host_os ld.so" 10845sys_lib_dlsearch_path_spec="/lib /usr/lib" 10846need_lib_prefix=unknown 10847hardcode_into_libs=no 10848 10849# when you set need_version to no, make sure it does not cause -set_version 10850# flags to be left without arguments 10851need_version=unknown 10852 10853case $host_os in 10854aix3*) 10855 version_type=linux 10856 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10857 shlibpath_var=LIBPATH 10858 10859 # AIX 3 has no versioning support, so we append a major version to the name. 10860 soname_spec='${libname}${release}${shared_ext}$major' 10861 ;; 10862 10863aix[4-9]*) 10864 version_type=linux 10865 need_lib_prefix=no 10866 need_version=no 10867 hardcode_into_libs=yes 10868 if test "$host_cpu" = ia64; then 10869 # AIX 5 supports IA64 10870 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10871 shlibpath_var=LD_LIBRARY_PATH 10872 else 10873 # With GCC up to 2.95.x, collect2 would create an import file 10874 # for dependence libraries. The import file would start with 10875 # the line `#! .'. This would cause the generated library to 10876 # depend on `.', always an invalid library. This was fixed in 10877 # development snapshots of GCC prior to 3.0. 10878 case $host_os in 10879 aix4 | aix4.[01] | aix4.[01].*) 10880 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10881 echo ' yes ' 10882 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10883 : 10884 else 10885 can_build_shared=no 10886 fi 10887 ;; 10888 esac 10889 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10890 # soname into executable. Probably we can add versioning support to 10891 # collect2, so additional links can be useful in future. 10892 if test "$aix_use_runtimelinking" = yes; then 10893 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10894 # instead of lib<name>.a to let people know that these are not 10895 # typical AIX shared libraries. 10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10897 else 10898 # We preserve .a as extension for shared libraries through AIX4.2 10899 # and later when we are not doing run time linking. 10900 library_names_spec='${libname}${release}.a $libname.a' 10901 soname_spec='${libname}${release}${shared_ext}$major' 10902 fi 10903 shlibpath_var=LIBPATH 10904 fi 10905 ;; 10906 10907amigaos*) 10908 case $host_cpu in 10909 powerpc) 10910 # Since July 2007 AmigaOS4 officially supports .so libraries. 10911 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10913 ;; 10914 m68k) 10915 library_names_spec='$libname.ixlibrary $libname.a' 10916 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10917 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10918 ;; 10919 esac 10920 ;; 10921 10922beos*) 10923 library_names_spec='${libname}${shared_ext}' 10924 dynamic_linker="$host_os ld.so" 10925 shlibpath_var=LIBRARY_PATH 10926 ;; 10927 10928bsdi[45]*) 10929 version_type=linux 10930 need_version=no 10931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10932 soname_spec='${libname}${release}${shared_ext}$major' 10933 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10934 shlibpath_var=LD_LIBRARY_PATH 10935 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10936 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10937 # the default ld.so.conf also contains /usr/contrib/lib and 10938 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10939 # libtool to hard-code these into programs 10940 ;; 10941 10942cygwin* | mingw* | pw32* | cegcc*) 10943 version_type=windows 10944 shrext_cmds=".dll" 10945 need_version=no 10946 need_lib_prefix=no 10947 10948 case $GCC,$cc_basename in 10949 yes,*) 10950 # gcc 10951 library_names_spec='$libname.dll.a' 10952 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10953 postinstall_cmds='base_file=`basename \${file}`~ 10954 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10955 dldir=$destdir/`dirname \$dlpath`~ 10956 test -d \$dldir || mkdir -p \$dldir~ 10957 $install_prog $dir/$dlname \$dldir/$dlname~ 10958 chmod a+x \$dldir/$dlname~ 10959 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10960 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10961 fi' 10962 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10963 dlpath=$dir/\$dldll~ 10964 $RM \$dlpath' 10965 shlibpath_overrides_runpath=yes 10966 10967 case $host_os in 10968 cygwin*) 10969 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10970 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10971 10972 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10973 ;; 10974 mingw* | cegcc*) 10975 # MinGW DLLs use traditional 'lib' prefix 10976 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10977 ;; 10978 pw32*) 10979 # pw32 DLLs use 'pw' prefix rather than 'lib' 10980 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10981 ;; 10982 esac 10983 dynamic_linker='Win32 ld.exe' 10984 ;; 10985 10986 *,cl*) 10987 # Native MSVC 10988 libname_spec='$name' 10989 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10990 library_names_spec='${libname}.dll.lib' 10991 10992 case $build_os in 10993 mingw*) 10994 sys_lib_search_path_spec= 10995 lt_save_ifs=$IFS 10996 IFS=';' 10997 for lt_path in $LIB 10998 do 10999 IFS=$lt_save_ifs 11000 # Let DOS variable expansion print the short 8.3 style file name. 11001 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11002 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11003 done 11004 IFS=$lt_save_ifs 11005 # Convert to MSYS style. 11006 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11007 ;; 11008 cygwin*) 11009 # Convert to unix form, then to dos form, then back to unix form 11010 # but this time dos style (no spaces!) so that the unix form looks 11011 # like /cygdrive/c/PROGRA~1:/cygdr... 11012 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11013 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11014 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11015 ;; 11016 *) 11017 sys_lib_search_path_spec="$LIB" 11018 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11019 # It is most probably a Windows format PATH. 11020 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11021 else 11022 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11023 fi 11024 # FIXME: find the short name or the path components, as spaces are 11025 # common. (e.g. "Program Files" -> "PROGRA~1") 11026 ;; 11027 esac 11028 11029 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11030 postinstall_cmds='base_file=`basename \${file}`~ 11031 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11032 dldir=$destdir/`dirname \$dlpath`~ 11033 test -d \$dldir || mkdir -p \$dldir~ 11034 $install_prog $dir/$dlname \$dldir/$dlname' 11035 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11036 dlpath=$dir/\$dldll~ 11037 $RM \$dlpath' 11038 shlibpath_overrides_runpath=yes 11039 dynamic_linker='Win32 link.exe' 11040 ;; 11041 11042 *) 11043 # Assume MSVC wrapper 11044 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11045 dynamic_linker='Win32 ld.exe' 11046 ;; 11047 esac 11048 # FIXME: first we should search . and the directory the executable is in 11049 shlibpath_var=PATH 11050 ;; 11051 11052darwin* | rhapsody*) 11053 dynamic_linker="$host_os dyld" 11054 version_type=darwin 11055 need_lib_prefix=no 11056 need_version=no 11057 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11058 soname_spec='${libname}${release}${major}$shared_ext' 11059 shlibpath_overrides_runpath=yes 11060 shlibpath_var=DYLD_LIBRARY_PATH 11061 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11062 11063 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11064 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11065 ;; 11066 11067dgux*) 11068 version_type=linux 11069 need_lib_prefix=no 11070 need_version=no 11071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11072 soname_spec='${libname}${release}${shared_ext}$major' 11073 shlibpath_var=LD_LIBRARY_PATH 11074 ;; 11075 11076freebsd1*) 11077 dynamic_linker=no 11078 ;; 11079 11080freebsd* | dragonfly*) 11081 # DragonFly does not have aout. When/if they implement a new 11082 # versioning mechanism, adjust this. 11083 if test -x /usr/bin/objformat; then 11084 objformat=`/usr/bin/objformat` 11085 else 11086 case $host_os in 11087 freebsd[123]*) objformat=aout ;; 11088 *) objformat=elf ;; 11089 esac 11090 fi 11091 version_type=freebsd-$objformat 11092 case $version_type in 11093 freebsd-elf*) 11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11095 need_version=no 11096 need_lib_prefix=no 11097 ;; 11098 freebsd-*) 11099 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11100 need_version=yes 11101 ;; 11102 esac 11103 shlibpath_var=LD_LIBRARY_PATH 11104 case $host_os in 11105 freebsd2*) 11106 shlibpath_overrides_runpath=yes 11107 ;; 11108 freebsd3.[01]* | freebsdelf3.[01]*) 11109 shlibpath_overrides_runpath=yes 11110 hardcode_into_libs=yes 11111 ;; 11112 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11113 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11114 shlibpath_overrides_runpath=no 11115 hardcode_into_libs=yes 11116 ;; 11117 *) # from 4.6 on, and DragonFly 11118 shlibpath_overrides_runpath=yes 11119 hardcode_into_libs=yes 11120 ;; 11121 esac 11122 ;; 11123 11124gnu*) 11125 version_type=linux 11126 need_lib_prefix=no 11127 need_version=no 11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11129 soname_spec='${libname}${release}${shared_ext}$major' 11130 shlibpath_var=LD_LIBRARY_PATH 11131 shlibpath_overrides_runpath=no 11132 hardcode_into_libs=yes 11133 ;; 11134 11135haiku*) 11136 version_type=linux 11137 need_lib_prefix=no 11138 need_version=no 11139 dynamic_linker="$host_os runtime_loader" 11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11141 soname_spec='${libname}${release}${shared_ext}$major' 11142 shlibpath_var=LIBRARY_PATH 11143 shlibpath_overrides_runpath=yes 11144 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11145 hardcode_into_libs=yes 11146 ;; 11147 11148hpux9* | hpux10* | hpux11*) 11149 # Give a soname corresponding to the major version so that dld.sl refuses to 11150 # link against other versions. 11151 version_type=sunos 11152 need_lib_prefix=no 11153 need_version=no 11154 case $host_cpu in 11155 ia64*) 11156 shrext_cmds='.so' 11157 hardcode_into_libs=yes 11158 dynamic_linker="$host_os dld.so" 11159 shlibpath_var=LD_LIBRARY_PATH 11160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11162 soname_spec='${libname}${release}${shared_ext}$major' 11163 if test "X$HPUX_IA64_MODE" = X32; then 11164 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11165 else 11166 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11167 fi 11168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11169 ;; 11170 hppa*64*) 11171 shrext_cmds='.sl' 11172 hardcode_into_libs=yes 11173 dynamic_linker="$host_os dld.sl" 11174 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11177 soname_spec='${libname}${release}${shared_ext}$major' 11178 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11180 ;; 11181 *) 11182 shrext_cmds='.sl' 11183 dynamic_linker="$host_os dld.sl" 11184 shlibpath_var=SHLIB_PATH 11185 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11187 soname_spec='${libname}${release}${shared_ext}$major' 11188 ;; 11189 esac 11190 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11191 postinstall_cmds='chmod 555 $lib' 11192 # or fails outright, so override atomically: 11193 install_override_mode=555 11194 ;; 11195 11196interix[3-9]*) 11197 version_type=linux 11198 need_lib_prefix=no 11199 need_version=no 11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11201 soname_spec='${libname}${release}${shared_ext}$major' 11202 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11203 shlibpath_var=LD_LIBRARY_PATH 11204 shlibpath_overrides_runpath=no 11205 hardcode_into_libs=yes 11206 ;; 11207 11208irix5* | irix6* | nonstopux*) 11209 case $host_os in 11210 nonstopux*) version_type=nonstopux ;; 11211 *) 11212 if test "$lt_cv_prog_gnu_ld" = yes; then 11213 version_type=linux 11214 else 11215 version_type=irix 11216 fi ;; 11217 esac 11218 need_lib_prefix=no 11219 need_version=no 11220 soname_spec='${libname}${release}${shared_ext}$major' 11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11222 case $host_os in 11223 irix5* | nonstopux*) 11224 libsuff= shlibsuff= 11225 ;; 11226 *) 11227 case $LD in # libtool.m4 will add one of these switches to LD 11228 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11229 libsuff= shlibsuff= libmagic=32-bit;; 11230 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11231 libsuff=32 shlibsuff=N32 libmagic=N32;; 11232 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11233 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11234 *) libsuff= shlibsuff= libmagic=never-match;; 11235 esac 11236 ;; 11237 esac 11238 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11239 shlibpath_overrides_runpath=no 11240 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11241 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11242 hardcode_into_libs=yes 11243 ;; 11244 11245# No shared lib support for Linux oldld, aout, or coff. 11246linux*oldld* | linux*aout* | linux*coff*) 11247 dynamic_linker=no 11248 ;; 11249 11250# This must be Linux ELF. 11251linux* | k*bsd*-gnu | kopensolaris*-gnu) 11252 version_type=linux 11253 need_lib_prefix=no 11254 need_version=no 11255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11256 soname_spec='${libname}${release}${shared_ext}$major' 11257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11258 shlibpath_var=LD_LIBRARY_PATH 11259 shlibpath_overrides_runpath=no 11260 11261 # Some binutils ld are patched to set DT_RUNPATH 11262 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11263 $as_echo_n "(cached) " >&6 11264else 11265 lt_cv_shlibpath_overrides_runpath=no 11266 save_LDFLAGS=$LDFLAGS 11267 save_libdir=$libdir 11268 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11269 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11271/* end confdefs.h. */ 11272 11273int 11274main () 11275{ 11276 11277 ; 11278 return 0; 11279} 11280_ACEOF 11281if ac_fn_c_try_link "$LINENO"; then : 11282 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11283 lt_cv_shlibpath_overrides_runpath=yes 11284fi 11285fi 11286rm -f core conftest.err conftest.$ac_objext \ 11287 conftest$ac_exeext conftest.$ac_ext 11288 LDFLAGS=$save_LDFLAGS 11289 libdir=$save_libdir 11290 11291fi 11292 11293 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11294 11295 # This implies no fast_install, which is unacceptable. 11296 # Some rework will be needed to allow for fast_install 11297 # before this can be enabled. 11298 hardcode_into_libs=yes 11299 11300 # Append ld.so.conf contents to the search path 11301 if test -f /etc/ld.so.conf; then 11302 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' ' '` 11303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11304 fi 11305 11306 # We used to test for /lib/ld.so.1 and disable shared libraries on 11307 # powerpc, because MkLinux only supported shared libraries with the 11308 # GNU dynamic linker. Since this was broken with cross compilers, 11309 # most powerpc-linux boxes support dynamic linking these days and 11310 # people can always --disable-shared, the test was removed, and we 11311 # assume the GNU/Linux dynamic linker is in use. 11312 dynamic_linker='GNU/Linux ld.so' 11313 ;; 11314 11315netbsdelf*-gnu) 11316 version_type=linux 11317 need_lib_prefix=no 11318 need_version=no 11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11320 soname_spec='${libname}${release}${shared_ext}$major' 11321 shlibpath_var=LD_LIBRARY_PATH 11322 shlibpath_overrides_runpath=no 11323 hardcode_into_libs=yes 11324 dynamic_linker='NetBSD ld.elf_so' 11325 ;; 11326 11327netbsd*) 11328 version_type=sunos 11329 need_lib_prefix=no 11330 need_version=no 11331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11334 dynamic_linker='NetBSD (a.out) ld.so' 11335 else 11336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11337 soname_spec='${libname}${release}${shared_ext}$major' 11338 dynamic_linker='NetBSD ld.elf_so' 11339 fi 11340 shlibpath_var=LD_LIBRARY_PATH 11341 shlibpath_overrides_runpath=yes 11342 hardcode_into_libs=yes 11343 ;; 11344 11345newsos6) 11346 version_type=linux 11347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11348 shlibpath_var=LD_LIBRARY_PATH 11349 shlibpath_overrides_runpath=yes 11350 ;; 11351 11352*nto* | *qnx*) 11353 version_type=qnx 11354 need_lib_prefix=no 11355 need_version=no 11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11357 soname_spec='${libname}${release}${shared_ext}$major' 11358 shlibpath_var=LD_LIBRARY_PATH 11359 shlibpath_overrides_runpath=no 11360 hardcode_into_libs=yes 11361 dynamic_linker='ldqnx.so' 11362 ;; 11363 11364openbsd*) 11365 version_type=sunos 11366 sys_lib_dlsearch_path_spec="/usr/lib" 11367 need_lib_prefix=no 11368 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11369 case $host_os in 11370 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11371 *) need_version=no ;; 11372 esac 11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11375 shlibpath_var=LD_LIBRARY_PATH 11376 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11377 case $host_os in 11378 openbsd2.[89] | openbsd2.[89].*) 11379 shlibpath_overrides_runpath=no 11380 ;; 11381 *) 11382 shlibpath_overrides_runpath=yes 11383 ;; 11384 esac 11385 else 11386 shlibpath_overrides_runpath=yes 11387 fi 11388 ;; 11389 11390os2*) 11391 libname_spec='$name' 11392 shrext_cmds=".dll" 11393 need_lib_prefix=no 11394 library_names_spec='$libname${shared_ext} $libname.a' 11395 dynamic_linker='OS/2 ld.exe' 11396 shlibpath_var=LIBPATH 11397 ;; 11398 11399osf3* | osf4* | osf5*) 11400 version_type=osf 11401 need_lib_prefix=no 11402 need_version=no 11403 soname_spec='${libname}${release}${shared_ext}$major' 11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11405 shlibpath_var=LD_LIBRARY_PATH 11406 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11407 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11408 ;; 11409 11410rdos*) 11411 dynamic_linker=no 11412 ;; 11413 11414solaris*) 11415 version_type=linux 11416 need_lib_prefix=no 11417 need_version=no 11418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11419 soname_spec='${libname}${release}${shared_ext}$major' 11420 shlibpath_var=LD_LIBRARY_PATH 11421 shlibpath_overrides_runpath=yes 11422 hardcode_into_libs=yes 11423 # ldd complains unless libraries are executable 11424 postinstall_cmds='chmod +x $lib' 11425 ;; 11426 11427sunos4*) 11428 version_type=sunos 11429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11431 shlibpath_var=LD_LIBRARY_PATH 11432 shlibpath_overrides_runpath=yes 11433 if test "$with_gnu_ld" = yes; then 11434 need_lib_prefix=no 11435 fi 11436 need_version=yes 11437 ;; 11438 11439sysv4 | sysv4.3*) 11440 version_type=linux 11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11442 soname_spec='${libname}${release}${shared_ext}$major' 11443 shlibpath_var=LD_LIBRARY_PATH 11444 case $host_vendor in 11445 sni) 11446 shlibpath_overrides_runpath=no 11447 need_lib_prefix=no 11448 runpath_var=LD_RUN_PATH 11449 ;; 11450 siemens) 11451 need_lib_prefix=no 11452 ;; 11453 motorola) 11454 need_lib_prefix=no 11455 need_version=no 11456 shlibpath_overrides_runpath=no 11457 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11458 ;; 11459 esac 11460 ;; 11461 11462sysv4*MP*) 11463 if test -d /usr/nec ;then 11464 version_type=linux 11465 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11466 soname_spec='$libname${shared_ext}.$major' 11467 shlibpath_var=LD_LIBRARY_PATH 11468 fi 11469 ;; 11470 11471sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11472 version_type=freebsd-elf 11473 need_lib_prefix=no 11474 need_version=no 11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11476 soname_spec='${libname}${release}${shared_ext}$major' 11477 shlibpath_var=LD_LIBRARY_PATH 11478 shlibpath_overrides_runpath=yes 11479 hardcode_into_libs=yes 11480 if test "$with_gnu_ld" = yes; then 11481 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11482 else 11483 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11484 case $host_os in 11485 sco3.2v5*) 11486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11487 ;; 11488 esac 11489 fi 11490 sys_lib_dlsearch_path_spec='/usr/lib' 11491 ;; 11492 11493tpf*) 11494 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11495 version_type=linux 11496 need_lib_prefix=no 11497 need_version=no 11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11499 shlibpath_var=LD_LIBRARY_PATH 11500 shlibpath_overrides_runpath=no 11501 hardcode_into_libs=yes 11502 ;; 11503 11504uts4*) 11505 version_type=linux 11506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11507 soname_spec='${libname}${release}${shared_ext}$major' 11508 shlibpath_var=LD_LIBRARY_PATH 11509 ;; 11510 11511*) 11512 dynamic_linker=no 11513 ;; 11514esac 11515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11516$as_echo "$dynamic_linker" >&6; } 11517test "$dynamic_linker" = no && can_build_shared=no 11518 11519variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11520if test "$GCC" = yes; then 11521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11522fi 11523 11524if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11525 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11526fi 11527if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11528 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11529fi 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11623$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11624hardcode_action= 11625if test -n "$hardcode_libdir_flag_spec" || 11626 test -n "$runpath_var" || 11627 test "X$hardcode_automatic" = "Xyes" ; then 11628 11629 # We can hardcode non-existent directories. 11630 if test "$hardcode_direct" != no && 11631 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11632 # have to relink, otherwise we might link with an installed library 11633 # when we should be linking with a yet-to-be-installed one 11634 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11635 test "$hardcode_minus_L" != no; then 11636 # Linking always hardcodes the temporary library directory. 11637 hardcode_action=relink 11638 else 11639 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11640 hardcode_action=immediate 11641 fi 11642else 11643 # We cannot hardcode anything, or else we can only hardcode existing 11644 # directories. 11645 hardcode_action=unsupported 11646fi 11647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11648$as_echo "$hardcode_action" >&6; } 11649 11650if test "$hardcode_action" = relink || 11651 test "$inherit_rpath" = yes; then 11652 # Fast installation is not supported 11653 enable_fast_install=no 11654elif test "$shlibpath_overrides_runpath" = yes || 11655 test "$enable_shared" = no; then 11656 # Fast installation is not necessary 11657 enable_fast_install=needless 11658fi 11659 11660 11661 11662 11663 11664 11665 if test "x$enable_dlopen" != xyes; then 11666 enable_dlopen=unknown 11667 enable_dlopen_self=unknown 11668 enable_dlopen_self_static=unknown 11669else 11670 lt_cv_dlopen=no 11671 lt_cv_dlopen_libs= 11672 11673 case $host_os in 11674 beos*) 11675 lt_cv_dlopen="load_add_on" 11676 lt_cv_dlopen_libs= 11677 lt_cv_dlopen_self=yes 11678 ;; 11679 11680 mingw* | pw32* | cegcc*) 11681 lt_cv_dlopen="LoadLibrary" 11682 lt_cv_dlopen_libs= 11683 ;; 11684 11685 cygwin*) 11686 lt_cv_dlopen="dlopen" 11687 lt_cv_dlopen_libs= 11688 ;; 11689 11690 darwin*) 11691 # if libdl is installed we need to link against it 11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11693$as_echo_n "checking for dlopen in -ldl... " >&6; } 11694if ${ac_cv_lib_dl_dlopen+:} false; then : 11695 $as_echo_n "(cached) " >&6 11696else 11697 ac_check_lib_save_LIBS=$LIBS 11698LIBS="-ldl $LIBS" 11699cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11700/* end confdefs.h. */ 11701 11702/* Override any GCC internal prototype to avoid an error. 11703 Use char because int might match the return type of a GCC 11704 builtin and then its argument prototype would still apply. */ 11705#ifdef __cplusplus 11706extern "C" 11707#endif 11708char dlopen (); 11709int 11710main () 11711{ 11712return dlopen (); 11713 ; 11714 return 0; 11715} 11716_ACEOF 11717if ac_fn_c_try_link "$LINENO"; then : 11718 ac_cv_lib_dl_dlopen=yes 11719else 11720 ac_cv_lib_dl_dlopen=no 11721fi 11722rm -f core conftest.err conftest.$ac_objext \ 11723 conftest$ac_exeext conftest.$ac_ext 11724LIBS=$ac_check_lib_save_LIBS 11725fi 11726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11727$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11728if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11729 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11730else 11731 11732 lt_cv_dlopen="dyld" 11733 lt_cv_dlopen_libs= 11734 lt_cv_dlopen_self=yes 11735 11736fi 11737 11738 ;; 11739 11740 *) 11741 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11742if test "x$ac_cv_func_shl_load" = xyes; then : 11743 lt_cv_dlopen="shl_load" 11744else 11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11746$as_echo_n "checking for shl_load in -ldld... " >&6; } 11747if ${ac_cv_lib_dld_shl_load+:} false; then : 11748 $as_echo_n "(cached) " >&6 11749else 11750 ac_check_lib_save_LIBS=$LIBS 11751LIBS="-ldld $LIBS" 11752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11753/* end confdefs.h. */ 11754 11755/* Override any GCC internal prototype to avoid an error. 11756 Use char because int might match the return type of a GCC 11757 builtin and then its argument prototype would still apply. */ 11758#ifdef __cplusplus 11759extern "C" 11760#endif 11761char shl_load (); 11762int 11763main () 11764{ 11765return shl_load (); 11766 ; 11767 return 0; 11768} 11769_ACEOF 11770if ac_fn_c_try_link "$LINENO"; then : 11771 ac_cv_lib_dld_shl_load=yes 11772else 11773 ac_cv_lib_dld_shl_load=no 11774fi 11775rm -f core conftest.err conftest.$ac_objext \ 11776 conftest$ac_exeext conftest.$ac_ext 11777LIBS=$ac_check_lib_save_LIBS 11778fi 11779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11780$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11781if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11782 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11783else 11784 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11785if test "x$ac_cv_func_dlopen" = xyes; then : 11786 lt_cv_dlopen="dlopen" 11787else 11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11789$as_echo_n "checking for dlopen in -ldl... " >&6; } 11790if ${ac_cv_lib_dl_dlopen+:} false; then : 11791 $as_echo_n "(cached) " >&6 11792else 11793 ac_check_lib_save_LIBS=$LIBS 11794LIBS="-ldl $LIBS" 11795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11796/* end confdefs.h. */ 11797 11798/* Override any GCC internal prototype to avoid an error. 11799 Use char because int might match the return type of a GCC 11800 builtin and then its argument prototype would still apply. */ 11801#ifdef __cplusplus 11802extern "C" 11803#endif 11804char dlopen (); 11805int 11806main () 11807{ 11808return dlopen (); 11809 ; 11810 return 0; 11811} 11812_ACEOF 11813if ac_fn_c_try_link "$LINENO"; then : 11814 ac_cv_lib_dl_dlopen=yes 11815else 11816 ac_cv_lib_dl_dlopen=no 11817fi 11818rm -f core conftest.err conftest.$ac_objext \ 11819 conftest$ac_exeext conftest.$ac_ext 11820LIBS=$ac_check_lib_save_LIBS 11821fi 11822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11823$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11824if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11825 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11826else 11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11828$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11829if ${ac_cv_lib_svld_dlopen+:} false; then : 11830 $as_echo_n "(cached) " >&6 11831else 11832 ac_check_lib_save_LIBS=$LIBS 11833LIBS="-lsvld $LIBS" 11834cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11835/* end confdefs.h. */ 11836 11837/* Override any GCC internal prototype to avoid an error. 11838 Use char because int might match the return type of a GCC 11839 builtin and then its argument prototype would still apply. */ 11840#ifdef __cplusplus 11841extern "C" 11842#endif 11843char dlopen (); 11844int 11845main () 11846{ 11847return dlopen (); 11848 ; 11849 return 0; 11850} 11851_ACEOF 11852if ac_fn_c_try_link "$LINENO"; then : 11853 ac_cv_lib_svld_dlopen=yes 11854else 11855 ac_cv_lib_svld_dlopen=no 11856fi 11857rm -f core conftest.err conftest.$ac_objext \ 11858 conftest$ac_exeext conftest.$ac_ext 11859LIBS=$ac_check_lib_save_LIBS 11860fi 11861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11862$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11863if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11865else 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11867$as_echo_n "checking for dld_link in -ldld... " >&6; } 11868if ${ac_cv_lib_dld_dld_link+:} false; then : 11869 $as_echo_n "(cached) " >&6 11870else 11871 ac_check_lib_save_LIBS=$LIBS 11872LIBS="-ldld $LIBS" 11873cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11874/* end confdefs.h. */ 11875 11876/* Override any GCC internal prototype to avoid an error. 11877 Use char because int might match the return type of a GCC 11878 builtin and then its argument prototype would still apply. */ 11879#ifdef __cplusplus 11880extern "C" 11881#endif 11882char dld_link (); 11883int 11884main () 11885{ 11886return dld_link (); 11887 ; 11888 return 0; 11889} 11890_ACEOF 11891if ac_fn_c_try_link "$LINENO"; then : 11892 ac_cv_lib_dld_dld_link=yes 11893else 11894 ac_cv_lib_dld_dld_link=no 11895fi 11896rm -f core conftest.err conftest.$ac_objext \ 11897 conftest$ac_exeext conftest.$ac_ext 11898LIBS=$ac_check_lib_save_LIBS 11899fi 11900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11901$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11902if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11903 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11904fi 11905 11906 11907fi 11908 11909 11910fi 11911 11912 11913fi 11914 11915 11916fi 11917 11918 11919fi 11920 11921 ;; 11922 esac 11923 11924 if test "x$lt_cv_dlopen" != xno; then 11925 enable_dlopen=yes 11926 else 11927 enable_dlopen=no 11928 fi 11929 11930 case $lt_cv_dlopen in 11931 dlopen) 11932 save_CPPFLAGS="$CPPFLAGS" 11933 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11934 11935 save_LDFLAGS="$LDFLAGS" 11936 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11937 11938 save_LIBS="$LIBS" 11939 LIBS="$lt_cv_dlopen_libs $LIBS" 11940 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11942$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11943if ${lt_cv_dlopen_self+:} false; then : 11944 $as_echo_n "(cached) " >&6 11945else 11946 if test "$cross_compiling" = yes; then : 11947 lt_cv_dlopen_self=cross 11948else 11949 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11950 lt_status=$lt_dlunknown 11951 cat > conftest.$ac_ext <<_LT_EOF 11952#line $LINENO "configure" 11953#include "confdefs.h" 11954 11955#if HAVE_DLFCN_H 11956#include <dlfcn.h> 11957#endif 11958 11959#include <stdio.h> 11960 11961#ifdef RTLD_GLOBAL 11962# define LT_DLGLOBAL RTLD_GLOBAL 11963#else 11964# ifdef DL_GLOBAL 11965# define LT_DLGLOBAL DL_GLOBAL 11966# else 11967# define LT_DLGLOBAL 0 11968# endif 11969#endif 11970 11971/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11972 find out it does not work in some platform. */ 11973#ifndef LT_DLLAZY_OR_NOW 11974# ifdef RTLD_LAZY 11975# define LT_DLLAZY_OR_NOW RTLD_LAZY 11976# else 11977# ifdef DL_LAZY 11978# define LT_DLLAZY_OR_NOW DL_LAZY 11979# else 11980# ifdef RTLD_NOW 11981# define LT_DLLAZY_OR_NOW RTLD_NOW 11982# else 11983# ifdef DL_NOW 11984# define LT_DLLAZY_OR_NOW DL_NOW 11985# else 11986# define LT_DLLAZY_OR_NOW 0 11987# endif 11988# endif 11989# endif 11990# endif 11991#endif 11992 11993/* When -fvisbility=hidden is used, assume the code has been annotated 11994 correspondingly for the symbols needed. */ 11995#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11996int fnord () __attribute__((visibility("default"))); 11997#endif 11998 11999int fnord () { return 42; } 12000int main () 12001{ 12002 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12003 int status = $lt_dlunknown; 12004 12005 if (self) 12006 { 12007 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12008 else 12009 { 12010 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12011 else puts (dlerror ()); 12012 } 12013 /* dlclose (self); */ 12014 } 12015 else 12016 puts (dlerror ()); 12017 12018 return status; 12019} 12020_LT_EOF 12021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12022 (eval $ac_link) 2>&5 12023 ac_status=$? 12024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12025 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12026 (./conftest; exit; ) >&5 2>/dev/null 12027 lt_status=$? 12028 case x$lt_status in 12029 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12030 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12031 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12032 esac 12033 else : 12034 # compilation failed 12035 lt_cv_dlopen_self=no 12036 fi 12037fi 12038rm -fr conftest* 12039 12040 12041fi 12042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12043$as_echo "$lt_cv_dlopen_self" >&6; } 12044 12045 if test "x$lt_cv_dlopen_self" = xyes; then 12046 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12048$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12049if ${lt_cv_dlopen_self_static+:} false; then : 12050 $as_echo_n "(cached) " >&6 12051else 12052 if test "$cross_compiling" = yes; then : 12053 lt_cv_dlopen_self_static=cross 12054else 12055 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12056 lt_status=$lt_dlunknown 12057 cat > conftest.$ac_ext <<_LT_EOF 12058#line $LINENO "configure" 12059#include "confdefs.h" 12060 12061#if HAVE_DLFCN_H 12062#include <dlfcn.h> 12063#endif 12064 12065#include <stdio.h> 12066 12067#ifdef RTLD_GLOBAL 12068# define LT_DLGLOBAL RTLD_GLOBAL 12069#else 12070# ifdef DL_GLOBAL 12071# define LT_DLGLOBAL DL_GLOBAL 12072# else 12073# define LT_DLGLOBAL 0 12074# endif 12075#endif 12076 12077/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12078 find out it does not work in some platform. */ 12079#ifndef LT_DLLAZY_OR_NOW 12080# ifdef RTLD_LAZY 12081# define LT_DLLAZY_OR_NOW RTLD_LAZY 12082# else 12083# ifdef DL_LAZY 12084# define LT_DLLAZY_OR_NOW DL_LAZY 12085# else 12086# ifdef RTLD_NOW 12087# define LT_DLLAZY_OR_NOW RTLD_NOW 12088# else 12089# ifdef DL_NOW 12090# define LT_DLLAZY_OR_NOW DL_NOW 12091# else 12092# define LT_DLLAZY_OR_NOW 0 12093# endif 12094# endif 12095# endif 12096# endif 12097#endif 12098 12099/* When -fvisbility=hidden is used, assume the code has been annotated 12100 correspondingly for the symbols needed. */ 12101#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12102int fnord () __attribute__((visibility("default"))); 12103#endif 12104 12105int fnord () { return 42; } 12106int main () 12107{ 12108 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12109 int status = $lt_dlunknown; 12110 12111 if (self) 12112 { 12113 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12114 else 12115 { 12116 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12117 else puts (dlerror ()); 12118 } 12119 /* dlclose (self); */ 12120 } 12121 else 12122 puts (dlerror ()); 12123 12124 return status; 12125} 12126_LT_EOF 12127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12128 (eval $ac_link) 2>&5 12129 ac_status=$? 12130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12131 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12132 (./conftest; exit; ) >&5 2>/dev/null 12133 lt_status=$? 12134 case x$lt_status in 12135 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12136 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12137 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12138 esac 12139 else : 12140 # compilation failed 12141 lt_cv_dlopen_self_static=no 12142 fi 12143fi 12144rm -fr conftest* 12145 12146 12147fi 12148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12149$as_echo "$lt_cv_dlopen_self_static" >&6; } 12150 fi 12151 12152 CPPFLAGS="$save_CPPFLAGS" 12153 LDFLAGS="$save_LDFLAGS" 12154 LIBS="$save_LIBS" 12155 ;; 12156 esac 12157 12158 case $lt_cv_dlopen_self in 12159 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12160 *) enable_dlopen_self=unknown ;; 12161 esac 12162 12163 case $lt_cv_dlopen_self_static in 12164 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12165 *) enable_dlopen_self_static=unknown ;; 12166 esac 12167fi 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185striplib= 12186old_striplib= 12187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12188$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12189if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12190 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12191 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12193$as_echo "yes" >&6; } 12194else 12195# FIXME - insert some real tests, host_os isn't really good enough 12196 case $host_os in 12197 darwin*) 12198 if test -n "$STRIP" ; then 12199 striplib="$STRIP -x" 12200 old_striplib="$STRIP -S" 12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12202$as_echo "yes" >&6; } 12203 else 12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12205$as_echo "no" >&6; } 12206 fi 12207 ;; 12208 *) 12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12210$as_echo "no" >&6; } 12211 ;; 12212 esac 12213fi 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 # Report which library types will actually be built 12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12228$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12230$as_echo "$can_build_shared" >&6; } 12231 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12233$as_echo_n "checking whether to build shared libraries... " >&6; } 12234 test "$can_build_shared" = "no" && enable_shared=no 12235 12236 # On AIX, shared libraries and static libraries use the same namespace, and 12237 # are all built from PIC. 12238 case $host_os in 12239 aix3*) 12240 test "$enable_shared" = yes && enable_static=no 12241 if test -n "$RANLIB"; then 12242 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12243 postinstall_cmds='$RANLIB $lib' 12244 fi 12245 ;; 12246 12247 aix[4-9]*) 12248 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12249 test "$enable_shared" = yes && enable_static=no 12250 fi 12251 ;; 12252 esac 12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12254$as_echo "$enable_shared" >&6; } 12255 12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12257$as_echo_n "checking whether to build static libraries... " >&6; } 12258 # Make sure either enable_shared or enable_static is yes. 12259 test "$enable_shared" = yes || enable_static=yes 12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12261$as_echo "$enable_static" >&6; } 12262 12263 12264 12265 12266fi 12267ac_ext=c 12268ac_cpp='$CPP $CPPFLAGS' 12269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12271ac_compiler_gnu=$ac_cv_c_compiler_gnu 12272 12273CC="$lt_save_CC" 12274 12275 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12276 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12277 (test "X$CXX" != "Xg++"))) ; then 12278 ac_ext=cpp 12279ac_cpp='$CXXCPP $CPPFLAGS' 12280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12284$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12285if test -z "$CXXCPP"; then 12286 if ${ac_cv_prog_CXXCPP+:} false; then : 12287 $as_echo_n "(cached) " >&6 12288else 12289 # Double quotes because CXXCPP needs to be expanded 12290 for CXXCPP in "$CXX -E" "/lib/cpp" 12291 do 12292 ac_preproc_ok=false 12293for ac_cxx_preproc_warn_flag in '' yes 12294do 12295 # Use a header file that comes with gcc, so configuring glibc 12296 # with a fresh cross-compiler works. 12297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12298 # <limits.h> exists even on freestanding compilers. 12299 # On the NeXT, cc -E runs the code through the compiler's parser, 12300 # not just through cpp. "Syntax error" is here to catch this case. 12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12302/* end confdefs.h. */ 12303#ifdef __STDC__ 12304# include <limits.h> 12305#else 12306# include <assert.h> 12307#endif 12308 Syntax error 12309_ACEOF 12310if ac_fn_cxx_try_cpp "$LINENO"; then : 12311 12312else 12313 # Broken: fails on valid input. 12314continue 12315fi 12316rm -f conftest.err conftest.i conftest.$ac_ext 12317 12318 # OK, works on sane cases. Now check whether nonexistent headers 12319 # can be detected and how. 12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12321/* end confdefs.h. */ 12322#include <ac_nonexistent.h> 12323_ACEOF 12324if ac_fn_cxx_try_cpp "$LINENO"; then : 12325 # Broken: success on invalid input. 12326continue 12327else 12328 # Passes both tests. 12329ac_preproc_ok=: 12330break 12331fi 12332rm -f conftest.err conftest.i conftest.$ac_ext 12333 12334done 12335# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12336rm -f conftest.i conftest.err conftest.$ac_ext 12337if $ac_preproc_ok; then : 12338 break 12339fi 12340 12341 done 12342 ac_cv_prog_CXXCPP=$CXXCPP 12343 12344fi 12345 CXXCPP=$ac_cv_prog_CXXCPP 12346else 12347 ac_cv_prog_CXXCPP=$CXXCPP 12348fi 12349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12350$as_echo "$CXXCPP" >&6; } 12351ac_preproc_ok=false 12352for ac_cxx_preproc_warn_flag in '' yes 12353do 12354 # Use a header file that comes with gcc, so configuring glibc 12355 # with a fresh cross-compiler works. 12356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12357 # <limits.h> exists even on freestanding compilers. 12358 # On the NeXT, cc -E runs the code through the compiler's parser, 12359 # not just through cpp. "Syntax error" is here to catch this case. 12360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12361/* end confdefs.h. */ 12362#ifdef __STDC__ 12363# include <limits.h> 12364#else 12365# include <assert.h> 12366#endif 12367 Syntax error 12368_ACEOF 12369if ac_fn_cxx_try_cpp "$LINENO"; then : 12370 12371else 12372 # Broken: fails on valid input. 12373continue 12374fi 12375rm -f conftest.err conftest.i conftest.$ac_ext 12376 12377 # OK, works on sane cases. Now check whether nonexistent headers 12378 # can be detected and how. 12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12380/* end confdefs.h. */ 12381#include <ac_nonexistent.h> 12382_ACEOF 12383if ac_fn_cxx_try_cpp "$LINENO"; then : 12384 # Broken: success on invalid input. 12385continue 12386else 12387 # Passes both tests. 12388ac_preproc_ok=: 12389break 12390fi 12391rm -f conftest.err conftest.i conftest.$ac_ext 12392 12393done 12394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12395rm -f conftest.i conftest.err conftest.$ac_ext 12396if $ac_preproc_ok; then : 12397 12398else 12399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12401as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12402See \`config.log' for more details" "$LINENO" 5; } 12403fi 12404 12405ac_ext=c 12406ac_cpp='$CPP $CPPFLAGS' 12407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12409ac_compiler_gnu=$ac_cv_c_compiler_gnu 12410 12411else 12412 _lt_caught_CXX_error=yes 12413fi 12414 12415ac_ext=cpp 12416ac_cpp='$CXXCPP $CPPFLAGS' 12417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12420 12421archive_cmds_need_lc_CXX=no 12422allow_undefined_flag_CXX= 12423always_export_symbols_CXX=no 12424archive_expsym_cmds_CXX= 12425compiler_needs_object_CXX=no 12426export_dynamic_flag_spec_CXX= 12427hardcode_direct_CXX=no 12428hardcode_direct_absolute_CXX=no 12429hardcode_libdir_flag_spec_CXX= 12430hardcode_libdir_flag_spec_ld_CXX= 12431hardcode_libdir_separator_CXX= 12432hardcode_minus_L_CXX=no 12433hardcode_shlibpath_var_CXX=unsupported 12434hardcode_automatic_CXX=no 12435inherit_rpath_CXX=no 12436module_cmds_CXX= 12437module_expsym_cmds_CXX= 12438link_all_deplibs_CXX=unknown 12439old_archive_cmds_CXX=$old_archive_cmds 12440reload_flag_CXX=$reload_flag 12441reload_cmds_CXX=$reload_cmds 12442no_undefined_flag_CXX= 12443whole_archive_flag_spec_CXX= 12444enable_shared_with_static_runtimes_CXX=no 12445 12446# Source file extension for C++ test sources. 12447ac_ext=cpp 12448 12449# Object file extension for compiled C++ test sources. 12450objext=o 12451objext_CXX=$objext 12452 12453# No sense in running all these tests if we already determined that 12454# the CXX compiler isn't working. Some variables (like enable_shared) 12455# are currently assumed to apply to all compilers on this platform, 12456# and will be corrupted by setting them based on a non-working compiler. 12457if test "$_lt_caught_CXX_error" != yes; then 12458 # Code to be used in simple compile tests 12459 lt_simple_compile_test_code="int some_variable = 0;" 12460 12461 # Code to be used in simple link tests 12462 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12463 12464 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12465 12466 12467 12468 12469 12470 12471# If no C compiler was specified, use CC. 12472LTCC=${LTCC-"$CC"} 12473 12474# If no C compiler flags were specified, use CFLAGS. 12475LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12476 12477# Allow CC to be a program name with arguments. 12478compiler=$CC 12479 12480 12481 # save warnings/boilerplate of simple test code 12482 ac_outfile=conftest.$ac_objext 12483echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12484eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12485_lt_compiler_boilerplate=`cat conftest.err` 12486$RM conftest* 12487 12488 ac_outfile=conftest.$ac_objext 12489echo "$lt_simple_link_test_code" >conftest.$ac_ext 12490eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12491_lt_linker_boilerplate=`cat conftest.err` 12492$RM -r conftest* 12493 12494 12495 # Allow CC to be a program name with arguments. 12496 lt_save_CC=$CC 12497 lt_save_CFLAGS=$CFLAGS 12498 lt_save_LD=$LD 12499 lt_save_GCC=$GCC 12500 GCC=$GXX 12501 lt_save_with_gnu_ld=$with_gnu_ld 12502 lt_save_path_LD=$lt_cv_path_LD 12503 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12504 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12505 else 12506 $as_unset lt_cv_prog_gnu_ld 12507 fi 12508 if test -n "${lt_cv_path_LDCXX+set}"; then 12509 lt_cv_path_LD=$lt_cv_path_LDCXX 12510 else 12511 $as_unset lt_cv_path_LD 12512 fi 12513 test -z "${LDCXX+set}" || LD=$LDCXX 12514 CC=${CXX-"c++"} 12515 CFLAGS=$CXXFLAGS 12516 compiler=$CC 12517 compiler_CXX=$CC 12518 for cc_temp in $compiler""; do 12519 case $cc_temp in 12520 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12521 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12522 \-*) ;; 12523 *) break;; 12524 esac 12525done 12526cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12527 12528 12529 if test -n "$compiler"; then 12530 # We don't want -fno-exception when compiling C++ code, so set the 12531 # no_builtin_flag separately 12532 if test "$GXX" = yes; then 12533 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12534 else 12535 lt_prog_compiler_no_builtin_flag_CXX= 12536 fi 12537 12538 if test "$GXX" = yes; then 12539 # Set up default GNU C++ configuration 12540 12541 12542 12543# Check whether --with-gnu-ld was given. 12544if test "${with_gnu_ld+set}" = set; then : 12545 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12546else 12547 with_gnu_ld=no 12548fi 12549 12550ac_prog=ld 12551if test "$GCC" = yes; then 12552 # Check if gcc -print-prog-name=ld gives a path. 12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12554$as_echo_n "checking for ld used by $CC... " >&6; } 12555 case $host in 12556 *-*-mingw*) 12557 # gcc leaves a trailing carriage return which upsets mingw 12558 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12559 *) 12560 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12561 esac 12562 case $ac_prog in 12563 # Accept absolute paths. 12564 [\\/]* | ?:[\\/]*) 12565 re_direlt='/[^/][^/]*/\.\./' 12566 # Canonicalize the pathname of ld 12567 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12568 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12569 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12570 done 12571 test -z "$LD" && LD="$ac_prog" 12572 ;; 12573 "") 12574 # If it fails, then pretend we aren't using GCC. 12575 ac_prog=ld 12576 ;; 12577 *) 12578 # If it is relative, then search for the first ld in PATH. 12579 with_gnu_ld=unknown 12580 ;; 12581 esac 12582elif test "$with_gnu_ld" = yes; then 12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12584$as_echo_n "checking for GNU ld... " >&6; } 12585else 12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12587$as_echo_n "checking for non-GNU ld... " >&6; } 12588fi 12589if ${lt_cv_path_LD+:} false; then : 12590 $as_echo_n "(cached) " >&6 12591else 12592 if test -z "$LD"; then 12593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12594 for ac_dir in $PATH; do 12595 IFS="$lt_save_ifs" 12596 test -z "$ac_dir" && ac_dir=. 12597 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12598 lt_cv_path_LD="$ac_dir/$ac_prog" 12599 # Check to see if the program is GNU ld. I'd rather use --version, 12600 # but apparently some variants of GNU ld only accept -v. 12601 # Break only if it was the GNU/non-GNU ld that we prefer. 12602 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12603 *GNU* | *'with BFD'*) 12604 test "$with_gnu_ld" != no && break 12605 ;; 12606 *) 12607 test "$with_gnu_ld" != yes && break 12608 ;; 12609 esac 12610 fi 12611 done 12612 IFS="$lt_save_ifs" 12613else 12614 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12615fi 12616fi 12617 12618LD="$lt_cv_path_LD" 12619if test -n "$LD"; then 12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12621$as_echo "$LD" >&6; } 12622else 12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12624$as_echo "no" >&6; } 12625fi 12626test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12628$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12629if ${lt_cv_prog_gnu_ld+:} false; then : 12630 $as_echo_n "(cached) " >&6 12631else 12632 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12633case `$LD -v 2>&1 </dev/null` in 12634*GNU* | *'with BFD'*) 12635 lt_cv_prog_gnu_ld=yes 12636 ;; 12637*) 12638 lt_cv_prog_gnu_ld=no 12639 ;; 12640esac 12641fi 12642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12643$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12644with_gnu_ld=$lt_cv_prog_gnu_ld 12645 12646 12647 12648 12649 12650 12651 12652 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12653 # archiving commands below assume that GNU ld is being used. 12654 if test "$with_gnu_ld" = yes; then 12655 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12656 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12657 12658 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12659 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12660 12661 # If archive_cmds runs LD, not CC, wlarc should be empty 12662 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12663 # investigate it a little bit more. (MM) 12664 wlarc='${wl}' 12665 12666 # ancient GNU ld didn't support --whole-archive et. al. 12667 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12668 $GREP 'no-whole-archive' > /dev/null; then 12669 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12670 else 12671 whole_archive_flag_spec_CXX= 12672 fi 12673 else 12674 with_gnu_ld=no 12675 wlarc= 12676 12677 # A generic and very simple default shared library creation 12678 # command for GNU C++ for the case where it uses the native 12679 # linker, instead of GNU ld. If possible, this setting should 12680 # overridden to take advantage of the native linker features on 12681 # the platform it is being used on. 12682 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12683 fi 12684 12685 # Commands to make compiler produce verbose output that lists 12686 # what "hidden" libraries, object files and flags are used when 12687 # linking a shared library. 12688 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12689 12690 else 12691 GXX=no 12692 with_gnu_ld=no 12693 wlarc= 12694 fi 12695 12696 # PORTME: fill in a description of your system's C++ link characteristics 12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12698$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12699 ld_shlibs_CXX=yes 12700 case $host_os in 12701 aix3*) 12702 # FIXME: insert proper C++ library support 12703 ld_shlibs_CXX=no 12704 ;; 12705 aix[4-9]*) 12706 if test "$host_cpu" = ia64; then 12707 # On IA64, the linker does run time linking by default, so we don't 12708 # have to do anything special. 12709 aix_use_runtimelinking=no 12710 exp_sym_flag='-Bexport' 12711 no_entry_flag="" 12712 else 12713 aix_use_runtimelinking=no 12714 12715 # Test if we are trying to use run time linking or normal 12716 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12717 # need to do runtime linking. 12718 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12719 for ld_flag in $LDFLAGS; do 12720 case $ld_flag in 12721 *-brtl*) 12722 aix_use_runtimelinking=yes 12723 break 12724 ;; 12725 esac 12726 done 12727 ;; 12728 esac 12729 12730 exp_sym_flag='-bexport' 12731 no_entry_flag='-bnoentry' 12732 fi 12733 12734 # When large executables or shared objects are built, AIX ld can 12735 # have problems creating the table of contents. If linking a library 12736 # or program results in "error TOC overflow" add -mminimal-toc to 12737 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12738 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12739 12740 archive_cmds_CXX='' 12741 hardcode_direct_CXX=yes 12742 hardcode_direct_absolute_CXX=yes 12743 hardcode_libdir_separator_CXX=':' 12744 link_all_deplibs_CXX=yes 12745 file_list_spec_CXX='${wl}-f,' 12746 12747 if test "$GXX" = yes; then 12748 case $host_os in aix4.[012]|aix4.[012].*) 12749 # We only want to do this on AIX 4.2 and lower, the check 12750 # below for broken collect2 doesn't work under 4.3+ 12751 collect2name=`${CC} -print-prog-name=collect2` 12752 if test -f "$collect2name" && 12753 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12754 then 12755 # We have reworked collect2 12756 : 12757 else 12758 # We have old collect2 12759 hardcode_direct_CXX=unsupported 12760 # It fails to find uninstalled libraries when the uninstalled 12761 # path is not listed in the libpath. Setting hardcode_minus_L 12762 # to unsupported forces relinking 12763 hardcode_minus_L_CXX=yes 12764 hardcode_libdir_flag_spec_CXX='-L$libdir' 12765 hardcode_libdir_separator_CXX= 12766 fi 12767 esac 12768 shared_flag='-shared' 12769 if test "$aix_use_runtimelinking" = yes; then 12770 shared_flag="$shared_flag "'${wl}-G' 12771 fi 12772 else 12773 # not using gcc 12774 if test "$host_cpu" = ia64; then 12775 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12776 # chokes on -Wl,-G. The following line is correct: 12777 shared_flag='-G' 12778 else 12779 if test "$aix_use_runtimelinking" = yes; then 12780 shared_flag='${wl}-G' 12781 else 12782 shared_flag='${wl}-bM:SRE' 12783 fi 12784 fi 12785 fi 12786 12787 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12788 # It seems that -bexpall does not export symbols beginning with 12789 # underscore (_), so it is better to generate a list of symbols to 12790 # export. 12791 always_export_symbols_CXX=yes 12792 if test "$aix_use_runtimelinking" = yes; then 12793 # Warning - without using the other runtime loading flags (-brtl), 12794 # -berok will link without error, but may produce a broken library. 12795 allow_undefined_flag_CXX='-berok' 12796 # Determine the default libpath from the value encoded in an empty 12797 # executable. 12798 if test "${lt_cv_aix_libpath+set}" = set; then 12799 aix_libpath=$lt_cv_aix_libpath 12800else 12801 if ${lt_cv_aix_libpath__CXX+:} false; then : 12802 $as_echo_n "(cached) " >&6 12803else 12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12805/* end confdefs.h. */ 12806 12807int 12808main () 12809{ 12810 12811 ; 12812 return 0; 12813} 12814_ACEOF 12815if ac_fn_cxx_try_link "$LINENO"; then : 12816 12817 lt_aix_libpath_sed=' 12818 /Import File Strings/,/^$/ { 12819 /^0/ { 12820 s/^0 *\([^ ]*\) *$/\1/ 12821 p 12822 } 12823 }' 12824 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12825 # Check for a 64-bit object if we didn't find anything. 12826 if test -z "$lt_cv_aix_libpath__CXX"; then 12827 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12828 fi 12829fi 12830rm -f core conftest.err conftest.$ac_objext \ 12831 conftest$ac_exeext conftest.$ac_ext 12832 if test -z "$lt_cv_aix_libpath__CXX"; then 12833 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12834 fi 12835 12836fi 12837 12838 aix_libpath=$lt_cv_aix_libpath__CXX 12839fi 12840 12841 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12842 12843 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12844 else 12845 if test "$host_cpu" = ia64; then 12846 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12847 allow_undefined_flag_CXX="-z nodefs" 12848 archive_expsym_cmds_CXX="\$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" 12849 else 12850 # Determine the default libpath from the value encoded in an 12851 # empty executable. 12852 if test "${lt_cv_aix_libpath+set}" = set; then 12853 aix_libpath=$lt_cv_aix_libpath 12854else 12855 if ${lt_cv_aix_libpath__CXX+:} false; then : 12856 $as_echo_n "(cached) " >&6 12857else 12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12859/* end confdefs.h. */ 12860 12861int 12862main () 12863{ 12864 12865 ; 12866 return 0; 12867} 12868_ACEOF 12869if ac_fn_cxx_try_link "$LINENO"; then : 12870 12871 lt_aix_libpath_sed=' 12872 /Import File Strings/,/^$/ { 12873 /^0/ { 12874 s/^0 *\([^ ]*\) *$/\1/ 12875 p 12876 } 12877 }' 12878 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12879 # Check for a 64-bit object if we didn't find anything. 12880 if test -z "$lt_cv_aix_libpath__CXX"; then 12881 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12882 fi 12883fi 12884rm -f core conftest.err conftest.$ac_objext \ 12885 conftest$ac_exeext conftest.$ac_ext 12886 if test -z "$lt_cv_aix_libpath__CXX"; then 12887 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12888 fi 12889 12890fi 12891 12892 aix_libpath=$lt_cv_aix_libpath__CXX 12893fi 12894 12895 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12896 # Warning - without using the other run time loading flags, 12897 # -berok will link without error, but may produce a broken library. 12898 no_undefined_flag_CXX=' ${wl}-bernotok' 12899 allow_undefined_flag_CXX=' ${wl}-berok' 12900 if test "$with_gnu_ld" = yes; then 12901 # We only use this code for GNU lds that support --whole-archive. 12902 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12903 else 12904 # Exported symbols can be pulled into shared objects from archives 12905 whole_archive_flag_spec_CXX='$convenience' 12906 fi 12907 archive_cmds_need_lc_CXX=yes 12908 # This is similar to how AIX traditionally builds its shared 12909 # libraries. 12910 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12911 fi 12912 fi 12913 ;; 12914 12915 beos*) 12916 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12917 allow_undefined_flag_CXX=unsupported 12918 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12919 # support --undefined. This deserves some investigation. FIXME 12920 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12921 else 12922 ld_shlibs_CXX=no 12923 fi 12924 ;; 12925 12926 chorus*) 12927 case $cc_basename in 12928 *) 12929 # FIXME: insert proper C++ library support 12930 ld_shlibs_CXX=no 12931 ;; 12932 esac 12933 ;; 12934 12935 cygwin* | mingw* | pw32* | cegcc*) 12936 case $GXX,$cc_basename in 12937 ,cl* | no,cl*) 12938 # Native MSVC 12939 # hardcode_libdir_flag_spec is actually meaningless, as there is 12940 # no search path for DLLs. 12941 hardcode_libdir_flag_spec_CXX=' ' 12942 allow_undefined_flag_CXX=unsupported 12943 always_export_symbols_CXX=yes 12944 file_list_spec_CXX='@' 12945 # Tell ltmain to make .lib files, not .a files. 12946 libext=lib 12947 # Tell ltmain to make .dll files, not .so files. 12948 shrext_cmds=".dll" 12949 # FIXME: Setting linknames here is a bad hack. 12950 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12951 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12952 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12953 else 12954 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12955 fi~ 12956 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12957 linknames=' 12958 # The linker will not automatically build a static lib if we build a DLL. 12959 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 12960 enable_shared_with_static_runtimes_CXX=yes 12961 # Don't use ranlib 12962 old_postinstall_cmds_CXX='chmod 644 $oldlib' 12963 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 12964 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12965 case $lt_outputfile in 12966 *.exe|*.EXE) ;; 12967 *) 12968 lt_outputfile="$lt_outputfile.exe" 12969 lt_tool_outputfile="$lt_tool_outputfile.exe" 12970 ;; 12971 esac~ 12972 func_to_tool_file "$lt_outputfile"~ 12973 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12974 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12975 $RM "$lt_outputfile.manifest"; 12976 fi' 12977 ;; 12978 *) 12979 # g++ 12980 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12981 # as there is no search path for DLLs. 12982 hardcode_libdir_flag_spec_CXX='-L$libdir' 12983 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12984 allow_undefined_flag_CXX=unsupported 12985 always_export_symbols_CXX=no 12986 enable_shared_with_static_runtimes_CXX=yes 12987 12988 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12989 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12990 # If the export-symbols file already is a .def file (1st line 12991 # is EXPORTS), use it as is; otherwise, prepend... 12992 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12993 cp $export_symbols $output_objdir/$soname.def; 12994 else 12995 echo EXPORTS > $output_objdir/$soname.def; 12996 cat $export_symbols >> $output_objdir/$soname.def; 12997 fi~ 12998 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12999 else 13000 ld_shlibs_CXX=no 13001 fi 13002 ;; 13003 esac 13004 ;; 13005 darwin* | rhapsody*) 13006 13007 13008 archive_cmds_need_lc_CXX=no 13009 hardcode_direct_CXX=no 13010 hardcode_automatic_CXX=yes 13011 hardcode_shlibpath_var_CXX=unsupported 13012 if test "$lt_cv_ld_force_load" = "yes"; then 13013 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 13014 else 13015 whole_archive_flag_spec_CXX='' 13016 fi 13017 link_all_deplibs_CXX=yes 13018 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13019 case $cc_basename in 13020 ifort*) _lt_dar_can_shared=yes ;; 13021 *) _lt_dar_can_shared=$GCC ;; 13022 esac 13023 if test "$_lt_dar_can_shared" = "yes"; then 13024 output_verbose_link_cmd=func_echo_all 13025 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 13026 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13027 archive_expsym_cmds_CXX="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}" 13028 module_expsym_cmds_CXX="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}" 13029 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13030 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 13031 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 13032 fi 13033 13034 else 13035 ld_shlibs_CXX=no 13036 fi 13037 13038 ;; 13039 13040 dgux*) 13041 case $cc_basename in 13042 ec++*) 13043 # FIXME: insert proper C++ library support 13044 ld_shlibs_CXX=no 13045 ;; 13046 ghcx*) 13047 # Green Hills C++ Compiler 13048 # FIXME: insert proper C++ library support 13049 ld_shlibs_CXX=no 13050 ;; 13051 *) 13052 # FIXME: insert proper C++ library support 13053 ld_shlibs_CXX=no 13054 ;; 13055 esac 13056 ;; 13057 13058 freebsd[12]*) 13059 # C++ shared libraries reported to be fairly broken before 13060 # switch to ELF 13061 ld_shlibs_CXX=no 13062 ;; 13063 13064 freebsd-elf*) 13065 archive_cmds_need_lc_CXX=no 13066 ;; 13067 13068 freebsd* | dragonfly*) 13069 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13070 # conventions 13071 ld_shlibs_CXX=yes 13072 ;; 13073 13074 gnu*) 13075 ;; 13076 13077 haiku*) 13078 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13079 link_all_deplibs_CXX=yes 13080 ;; 13081 13082 hpux9*) 13083 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13084 hardcode_libdir_separator_CXX=: 13085 export_dynamic_flag_spec_CXX='${wl}-E' 13086 hardcode_direct_CXX=yes 13087 hardcode_minus_L_CXX=yes # Not in the search PATH, 13088 # but as the default 13089 # location of the library. 13090 13091 case $cc_basename in 13092 CC*) 13093 # FIXME: insert proper C++ library support 13094 ld_shlibs_CXX=no 13095 ;; 13096 aCC*) 13097 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13098 # Commands to make compiler produce verbose output that lists 13099 # what "hidden" libraries, object files and flags are used when 13100 # linking a shared library. 13101 # 13102 # There doesn't appear to be a way to prevent this compiler from 13103 # explicitly linking system object files so we need to strip them 13104 # from the output so that they don't get included in the library 13105 # dependencies. 13106 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13107 ;; 13108 *) 13109 if test "$GXX" = yes; then 13110 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13111 else 13112 # FIXME: insert proper C++ library support 13113 ld_shlibs_CXX=no 13114 fi 13115 ;; 13116 esac 13117 ;; 13118 13119 hpux10*|hpux11*) 13120 if test $with_gnu_ld = no; then 13121 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13122 hardcode_libdir_separator_CXX=: 13123 13124 case $host_cpu in 13125 hppa*64*|ia64*) 13126 ;; 13127 *) 13128 export_dynamic_flag_spec_CXX='${wl}-E' 13129 ;; 13130 esac 13131 fi 13132 case $host_cpu in 13133 hppa*64*|ia64*) 13134 hardcode_direct_CXX=no 13135 hardcode_shlibpath_var_CXX=no 13136 ;; 13137 *) 13138 hardcode_direct_CXX=yes 13139 hardcode_direct_absolute_CXX=yes 13140 hardcode_minus_L_CXX=yes # Not in the search PATH, 13141 # but as the default 13142 # location of the library. 13143 ;; 13144 esac 13145 13146 case $cc_basename in 13147 CC*) 13148 # FIXME: insert proper C++ library support 13149 ld_shlibs_CXX=no 13150 ;; 13151 aCC*) 13152 case $host_cpu in 13153 hppa*64*) 13154 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13155 ;; 13156 ia64*) 13157 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13158 ;; 13159 *) 13160 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13161 ;; 13162 esac 13163 # Commands to make compiler produce verbose output that lists 13164 # what "hidden" libraries, object files and flags are used when 13165 # linking a shared library. 13166 # 13167 # There doesn't appear to be a way to prevent this compiler from 13168 # explicitly linking system object files so we need to strip them 13169 # from the output so that they don't get included in the library 13170 # dependencies. 13171 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13172 ;; 13173 *) 13174 if test "$GXX" = yes; then 13175 if test $with_gnu_ld = no; then 13176 case $host_cpu in 13177 hppa*64*) 13178 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13179 ;; 13180 ia64*) 13181 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13182 ;; 13183 *) 13184 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13185 ;; 13186 esac 13187 fi 13188 else 13189 # FIXME: insert proper C++ library support 13190 ld_shlibs_CXX=no 13191 fi 13192 ;; 13193 esac 13194 ;; 13195 13196 interix[3-9]*) 13197 hardcode_direct_CXX=no 13198 hardcode_shlibpath_var_CXX=no 13199 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13200 export_dynamic_flag_spec_CXX='${wl}-E' 13201 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13202 # Instead, shared libraries are loaded at an image base (0x10000000 by 13203 # default) and relocated if they conflict, which is a slow very memory 13204 # consuming and fragmenting process. To avoid this, we pick a random, 13205 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13206 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13207 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13208 archive_expsym_cmds_CXX='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' 13209 ;; 13210 irix5* | irix6*) 13211 case $cc_basename in 13212 CC*) 13213 # SGI C++ 13214 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13215 13216 # Archives containing C++ object files must be created using 13217 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13218 # necessary to make sure instantiated templates are included 13219 # in the archive. 13220 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13221 ;; 13222 *) 13223 if test "$GXX" = yes; then 13224 if test "$with_gnu_ld" = no; then 13225 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 13226 else 13227 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 13228 fi 13229 fi 13230 link_all_deplibs_CXX=yes 13231 ;; 13232 esac 13233 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13234 hardcode_libdir_separator_CXX=: 13235 inherit_rpath_CXX=yes 13236 ;; 13237 13238 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13239 case $cc_basename in 13240 KCC*) 13241 # Kuck and Associates, Inc. (KAI) C++ Compiler 13242 13243 # KCC will only create a shared library if the output file 13244 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13245 # to its proper name (with version) after linking. 13246 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13247 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 13248 # Commands to make compiler produce verbose output that lists 13249 # what "hidden" libraries, object files and flags are used when 13250 # linking a shared library. 13251 # 13252 # There doesn't appear to be a way to prevent this compiler from 13253 # explicitly linking system object files so we need to strip them 13254 # from the output so that they don't get included in the library 13255 # dependencies. 13256 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13257 13258 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13259 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13260 13261 # Archives containing C++ object files must be created using 13262 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13263 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13264 ;; 13265 icpc* | ecpc* ) 13266 # Intel C++ 13267 with_gnu_ld=yes 13268 # version 8.0 and above of icpc choke on multiply defined symbols 13269 # if we add $predep_objects and $postdep_objects, however 7.1 and 13270 # earlier do not add the objects themselves. 13271 case `$CC -V 2>&1` in 13272 *"Version 7."*) 13273 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13274 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13275 ;; 13276 *) # Version 8.0 or newer 13277 tmp_idyn= 13278 case $host_cpu in 13279 ia64*) tmp_idyn=' -i_dynamic';; 13280 esac 13281 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13282 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13283 ;; 13284 esac 13285 archive_cmds_need_lc_CXX=no 13286 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13287 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13288 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13289 ;; 13290 pgCC* | pgcpp*) 13291 # Portland Group C++ compiler 13292 case `$CC -V` in 13293 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13294 prelink_cmds_CXX='tpldir=Template.dir~ 13295 rm -rf $tpldir~ 13296 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13297 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13298 old_archive_cmds_CXX='tpldir=Template.dir~ 13299 rm -rf $tpldir~ 13300 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13301 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13302 $RANLIB $oldlib' 13303 archive_cmds_CXX='tpldir=Template.dir~ 13304 rm -rf $tpldir~ 13305 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13306 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13307 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13308 rm -rf $tpldir~ 13309 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13310 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13311 ;; 13312 *) # Version 6 and above use weak symbols 13313 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13314 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13315 ;; 13316 esac 13317 13318 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13319 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13320 whole_archive_flag_spec_CXX='${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' 13321 ;; 13322 cxx*) 13323 # Compaq C++ 13324 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13325 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 13326 13327 runpath_var=LD_RUN_PATH 13328 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13329 hardcode_libdir_separator_CXX=: 13330 13331 # Commands to make compiler produce verbose output that lists 13332 # what "hidden" libraries, object files and flags are used when 13333 # linking a shared library. 13334 # 13335 # There doesn't appear to be a way to prevent this compiler from 13336 # explicitly linking system object files so we need to strip them 13337 # from the output so that they don't get included in the library 13338 # dependencies. 13339 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 13340 ;; 13341 xl* | mpixl* | bgxl*) 13342 # IBM XL 8.0 on PPC, with GNU ld 13343 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13344 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13345 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13346 if test "x$supports_anon_versioning" = xyes; then 13347 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13349 echo "local: *; };" >> $output_objdir/$libname.ver~ 13350 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13351 fi 13352 ;; 13353 *) 13354 case `$CC -V 2>&1 | sed 5q` in 13355 *Sun\ C*) 13356 # Sun C++ 5.9 13357 no_undefined_flag_CXX=' -zdefs' 13358 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13359 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 13360 hardcode_libdir_flag_spec_CXX='-R$libdir' 13361 whole_archive_flag_spec_CXX='${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' 13362 compiler_needs_object_CXX=yes 13363 13364 # Not sure whether something based on 13365 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13366 # would be better. 13367 output_verbose_link_cmd='func_echo_all' 13368 13369 # Archives containing C++ object files must be created using 13370 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13371 # necessary to make sure instantiated templates are included 13372 # in the archive. 13373 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13374 ;; 13375 esac 13376 ;; 13377 esac 13378 ;; 13379 13380 lynxos*) 13381 # FIXME: insert proper C++ library support 13382 ld_shlibs_CXX=no 13383 ;; 13384 13385 m88k*) 13386 # FIXME: insert proper C++ library support 13387 ld_shlibs_CXX=no 13388 ;; 13389 13390 mvs*) 13391 case $cc_basename in 13392 cxx*) 13393 # FIXME: insert proper C++ library support 13394 ld_shlibs_CXX=no 13395 ;; 13396 *) 13397 # FIXME: insert proper C++ library support 13398 ld_shlibs_CXX=no 13399 ;; 13400 esac 13401 ;; 13402 13403 netbsd*) 13404 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13405 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13406 wlarc= 13407 hardcode_libdir_flag_spec_CXX='-R$libdir' 13408 hardcode_direct_CXX=yes 13409 hardcode_shlibpath_var_CXX=no 13410 fi 13411 # Workaround some broken pre-1.5 toolchains 13412 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13413 ;; 13414 13415 *nto* | *qnx*) 13416 ld_shlibs_CXX=yes 13417 ;; 13418 13419 openbsd2*) 13420 # C++ shared libraries are fairly broken 13421 ld_shlibs_CXX=no 13422 ;; 13423 13424 openbsd*) 13425 if test -f /usr/libexec/ld.so; then 13426 hardcode_direct_CXX=yes 13427 hardcode_shlibpath_var_CXX=no 13428 hardcode_direct_absolute_CXX=yes 13429 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13430 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13431 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13432 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13433 export_dynamic_flag_spec_CXX='${wl}-E' 13434 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13435 fi 13436 output_verbose_link_cmd=func_echo_all 13437 else 13438 ld_shlibs_CXX=no 13439 fi 13440 ;; 13441 13442 osf3* | osf4* | osf5*) 13443 case $cc_basename in 13444 KCC*) 13445 # Kuck and Associates, Inc. (KAI) C++ Compiler 13446 13447 # KCC will only create a shared library if the output file 13448 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13449 # to its proper name (with version) after linking. 13450 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13451 13452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13453 hardcode_libdir_separator_CXX=: 13454 13455 # Archives containing C++ object files must be created using 13456 # the KAI C++ compiler. 13457 case $host in 13458 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13459 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13460 esac 13461 ;; 13462 RCC*) 13463 # Rational C++ 2.4.1 13464 # FIXME: insert proper C++ library support 13465 ld_shlibs_CXX=no 13466 ;; 13467 cxx*) 13468 case $host in 13469 osf3*) 13470 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13471 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13472 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13473 ;; 13474 *) 13475 allow_undefined_flag_CXX=' -expect_unresolved \*' 13476 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13477 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13478 echo "-hidden">> $lib.exp~ 13479 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 13480 $RM $lib.exp' 13481 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13482 ;; 13483 esac 13484 13485 hardcode_libdir_separator_CXX=: 13486 13487 # Commands to make compiler produce verbose output that lists 13488 # what "hidden" libraries, object files and flags are used when 13489 # linking a shared library. 13490 # 13491 # There doesn't appear to be a way to prevent this compiler from 13492 # explicitly linking system object files so we need to strip them 13493 # from the output so that they don't get included in the library 13494 # dependencies. 13495 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13496 ;; 13497 *) 13498 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13499 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13500 case $host in 13501 osf3*) 13502 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 13503 ;; 13504 *) 13505 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 13506 ;; 13507 esac 13508 13509 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13510 hardcode_libdir_separator_CXX=: 13511 13512 # Commands to make compiler produce verbose output that lists 13513 # what "hidden" libraries, object files and flags are used when 13514 # linking a shared library. 13515 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13516 13517 else 13518 # FIXME: insert proper C++ library support 13519 ld_shlibs_CXX=no 13520 fi 13521 ;; 13522 esac 13523 ;; 13524 13525 psos*) 13526 # FIXME: insert proper C++ library support 13527 ld_shlibs_CXX=no 13528 ;; 13529 13530 sunos4*) 13531 case $cc_basename in 13532 CC*) 13533 # Sun C++ 4.x 13534 # FIXME: insert proper C++ library support 13535 ld_shlibs_CXX=no 13536 ;; 13537 lcc*) 13538 # Lucid 13539 # FIXME: insert proper C++ library support 13540 ld_shlibs_CXX=no 13541 ;; 13542 *) 13543 # FIXME: insert proper C++ library support 13544 ld_shlibs_CXX=no 13545 ;; 13546 esac 13547 ;; 13548 13549 solaris*) 13550 case $cc_basename in 13551 CC* | sunCC*) 13552 # Sun C++ 4.2, 5.x and Centerline C++ 13553 archive_cmds_need_lc_CXX=yes 13554 no_undefined_flag_CXX=' -zdefs' 13555 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13556 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13557 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13558 13559 hardcode_libdir_flag_spec_CXX='-R$libdir' 13560 hardcode_shlibpath_var_CXX=no 13561 case $host_os in 13562 solaris2.[0-5] | solaris2.[0-5].*) ;; 13563 *) 13564 # The compiler driver will combine and reorder linker options, 13565 # but understands `-z linker_flag'. 13566 # Supported since Solaris 2.6 (maybe 2.5.1?) 13567 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13568 ;; 13569 esac 13570 link_all_deplibs_CXX=yes 13571 13572 output_verbose_link_cmd='func_echo_all' 13573 13574 # Archives containing C++ object files must be created using 13575 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13576 # necessary to make sure instantiated templates are included 13577 # in the archive. 13578 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13579 ;; 13580 gcx*) 13581 # Green Hills C++ Compiler 13582 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13583 13584 # The C++ compiler must be used to create the archive. 13585 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13586 ;; 13587 *) 13588 # GNU C++ compiler with Solaris linker 13589 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13590 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13591 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13592 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13593 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13594 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13595 13596 # Commands to make compiler produce verbose output that lists 13597 # what "hidden" libraries, object files and flags are used when 13598 # linking a shared library. 13599 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13600 else 13601 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13602 # platform. 13603 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13604 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13605 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13606 13607 # Commands to make compiler produce verbose output that lists 13608 # what "hidden" libraries, object files and flags are used when 13609 # linking a shared library. 13610 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13611 fi 13612 13613 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13614 case $host_os in 13615 solaris2.[0-5] | solaris2.[0-5].*) ;; 13616 *) 13617 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13618 ;; 13619 esac 13620 fi 13621 ;; 13622 esac 13623 ;; 13624 13625 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13626 no_undefined_flag_CXX='${wl}-z,text' 13627 archive_cmds_need_lc_CXX=no 13628 hardcode_shlibpath_var_CXX=no 13629 runpath_var='LD_RUN_PATH' 13630 13631 case $cc_basename in 13632 CC*) 13633 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13634 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13635 ;; 13636 *) 13637 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13638 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13639 ;; 13640 esac 13641 ;; 13642 13643 sysv5* | sco3.2v5* | sco5v6*) 13644 # Note: We can NOT use -z defs as we might desire, because we do not 13645 # link with -lc, and that would cause any symbols used from libc to 13646 # always be unresolved, which means just about no library would 13647 # ever link correctly. If we're not using GNU ld we use -z text 13648 # though, which does catch some bad symbols but isn't as heavy-handed 13649 # as -z defs. 13650 no_undefined_flag_CXX='${wl}-z,text' 13651 allow_undefined_flag_CXX='${wl}-z,nodefs' 13652 archive_cmds_need_lc_CXX=no 13653 hardcode_shlibpath_var_CXX=no 13654 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13655 hardcode_libdir_separator_CXX=':' 13656 link_all_deplibs_CXX=yes 13657 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13658 runpath_var='LD_RUN_PATH' 13659 13660 case $cc_basename in 13661 CC*) 13662 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13663 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13664 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13665 '"$old_archive_cmds_CXX" 13666 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13667 '"$reload_cmds_CXX" 13668 ;; 13669 *) 13670 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13671 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13672 ;; 13673 esac 13674 ;; 13675 13676 tandem*) 13677 case $cc_basename in 13678 NCC*) 13679 # NonStop-UX NCC 3.20 13680 # FIXME: insert proper C++ library support 13681 ld_shlibs_CXX=no 13682 ;; 13683 *) 13684 # FIXME: insert proper C++ library support 13685 ld_shlibs_CXX=no 13686 ;; 13687 esac 13688 ;; 13689 13690 vxworks*) 13691 # FIXME: insert proper C++ library support 13692 ld_shlibs_CXX=no 13693 ;; 13694 13695 *) 13696 # FIXME: insert proper C++ library support 13697 ld_shlibs_CXX=no 13698 ;; 13699 esac 13700 13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13702$as_echo "$ld_shlibs_CXX" >&6; } 13703 test "$ld_shlibs_CXX" = no && can_build_shared=no 13704 13705 GCC_CXX="$GXX" 13706 LD_CXX="$LD" 13707 13708 ## CAVEAT EMPTOR: 13709 ## There is no encapsulation within the following macros, do not change 13710 ## the running order or otherwise move them around unless you know exactly 13711 ## what you are doing... 13712 # Dependencies to place before and after the object being linked: 13713predep_objects_CXX= 13714postdep_objects_CXX= 13715predeps_CXX= 13716postdeps_CXX= 13717compiler_lib_search_path_CXX= 13718 13719cat > conftest.$ac_ext <<_LT_EOF 13720class Foo 13721{ 13722public: 13723 Foo (void) { a = 0; } 13724private: 13725 int a; 13726}; 13727_LT_EOF 13728 13729 13730_lt_libdeps_save_CFLAGS=$CFLAGS 13731case "$CC $CFLAGS " in #( 13732*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13733*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13734esac 13735 13736if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13737 (eval $ac_compile) 2>&5 13738 ac_status=$? 13739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13740 test $ac_status = 0; }; then 13741 # Parse the compiler output and extract the necessary 13742 # objects, libraries and library flags. 13743 13744 # Sentinel used to keep track of whether or not we are before 13745 # the conftest object file. 13746 pre_test_object_deps_done=no 13747 13748 for p in `eval "$output_verbose_link_cmd"`; do 13749 case ${prev}${p} in 13750 13751 -L* | -R* | -l*) 13752 # Some compilers place space between "-{L,R}" and the path. 13753 # Remove the space. 13754 if test $p = "-L" || 13755 test $p = "-R"; then 13756 prev=$p 13757 continue 13758 fi 13759 13760 # Expand the sysroot to ease extracting the directories later. 13761 if test -z "$prev"; then 13762 case $p in 13763 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 13764 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 13765 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 13766 esac 13767 fi 13768 case $p in 13769 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13770 esac 13771 if test "$pre_test_object_deps_done" = no; then 13772 case ${prev} in 13773 -L | -R) 13774 # Internal compiler library paths should come after those 13775 # provided the user. The postdeps already come after the 13776 # user supplied libs so there is no need to process them. 13777 if test -z "$compiler_lib_search_path_CXX"; then 13778 compiler_lib_search_path_CXX="${prev}${p}" 13779 else 13780 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13781 fi 13782 ;; 13783 # The "-l" case would never come before the object being 13784 # linked, so don't bother handling this case. 13785 esac 13786 else 13787 if test -z "$postdeps_CXX"; then 13788 postdeps_CXX="${prev}${p}" 13789 else 13790 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13791 fi 13792 fi 13793 prev= 13794 ;; 13795 13796 *.lto.$objext) ;; # Ignore GCC LTO objects 13797 *.$objext) 13798 # This assumes that the test object file only shows up 13799 # once in the compiler output. 13800 if test "$p" = "conftest.$objext"; then 13801 pre_test_object_deps_done=yes 13802 continue 13803 fi 13804 13805 if test "$pre_test_object_deps_done" = no; then 13806 if test -z "$predep_objects_CXX"; then 13807 predep_objects_CXX="$p" 13808 else 13809 predep_objects_CXX="$predep_objects_CXX $p" 13810 fi 13811 else 13812 if test -z "$postdep_objects_CXX"; then 13813 postdep_objects_CXX="$p" 13814 else 13815 postdep_objects_CXX="$postdep_objects_CXX $p" 13816 fi 13817 fi 13818 ;; 13819 13820 *) ;; # Ignore the rest. 13821 13822 esac 13823 done 13824 13825 # Clean up. 13826 rm -f a.out a.exe 13827else 13828 echo "libtool.m4: error: problem compiling CXX test program" 13829fi 13830 13831$RM -f confest.$objext 13832CFLAGS=$_lt_libdeps_save_CFLAGS 13833 13834# PORTME: override above test on systems where it is broken 13835case $host_os in 13836interix[3-9]*) 13837 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13838 # hack all around it, let's just trust "g++" to DTRT. 13839 predep_objects_CXX= 13840 postdep_objects_CXX= 13841 postdeps_CXX= 13842 ;; 13843 13844linux*) 13845 case `$CC -V 2>&1 | sed 5q` in 13846 *Sun\ C*) 13847 # Sun C++ 5.9 13848 13849 # The more standards-conforming stlport4 library is 13850 # incompatible with the Cstd library. Avoid specifying 13851 # it if it's in CXXFLAGS. Ignore libCrun as 13852 # -library=stlport4 depends on it. 13853 case " $CXX $CXXFLAGS " in 13854 *" -library=stlport4 "*) 13855 solaris_use_stlport4=yes 13856 ;; 13857 esac 13858 13859 if test "$solaris_use_stlport4" != yes; then 13860 postdeps_CXX='-library=Cstd -library=Crun' 13861 fi 13862 ;; 13863 esac 13864 ;; 13865 13866solaris*) 13867 case $cc_basename in 13868 CC* | sunCC*) 13869 # The more standards-conforming stlport4 library is 13870 # incompatible with the Cstd library. Avoid specifying 13871 # it if it's in CXXFLAGS. Ignore libCrun as 13872 # -library=stlport4 depends on it. 13873 case " $CXX $CXXFLAGS " in 13874 *" -library=stlport4 "*) 13875 solaris_use_stlport4=yes 13876 ;; 13877 esac 13878 13879 # Adding this requires a known-good setup of shared libraries for 13880 # Sun compiler versions before 5.6, else PIC objects from an old 13881 # archive will be linked into the output, leading to subtle bugs. 13882 if test "$solaris_use_stlport4" != yes; then 13883 postdeps_CXX='-library=Cstd -library=Crun' 13884 fi 13885 ;; 13886 esac 13887 ;; 13888esac 13889 13890 13891case " $postdeps_CXX " in 13892*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13893esac 13894 compiler_lib_search_dirs_CXX= 13895if test -n "${compiler_lib_search_path_CXX}"; then 13896 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13897fi 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 lt_prog_compiler_wl_CXX= 13930lt_prog_compiler_pic_CXX= 13931lt_prog_compiler_static_CXX= 13932 13933 13934 # C++ specific cases for pic, static, wl, etc. 13935 if test "$GXX" = yes; then 13936 lt_prog_compiler_wl_CXX='-Wl,' 13937 lt_prog_compiler_static_CXX='-static' 13938 13939 case $host_os in 13940 aix*) 13941 # All AIX code is PIC. 13942 if test "$host_cpu" = ia64; then 13943 # AIX 5 now supports IA64 processor 13944 lt_prog_compiler_static_CXX='-Bstatic' 13945 fi 13946 ;; 13947 13948 amigaos*) 13949 case $host_cpu in 13950 powerpc) 13951 # see comment about AmigaOS4 .so support 13952 lt_prog_compiler_pic_CXX='-fPIC' 13953 ;; 13954 m68k) 13955 # FIXME: we need at least 68020 code to build shared libraries, but 13956 # adding the `-m68020' flag to GCC prevents building anything better, 13957 # like `-m68040'. 13958 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13959 ;; 13960 esac 13961 ;; 13962 13963 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13964 # PIC is the default for these OSes. 13965 ;; 13966 mingw* | cygwin* | os2* | pw32* | cegcc*) 13967 # This hack is so that the source file can tell whether it is being 13968 # built for inclusion in a dll (and should export symbols for example). 13969 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13970 # (--disable-auto-import) libraries 13971 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13972 ;; 13973 darwin* | rhapsody*) 13974 # PIC is the default on this platform 13975 # Common symbols not allowed in MH_DYLIB files 13976 lt_prog_compiler_pic_CXX='-fno-common' 13977 ;; 13978 *djgpp*) 13979 # DJGPP does not support shared libraries at all 13980 lt_prog_compiler_pic_CXX= 13981 ;; 13982 haiku*) 13983 # PIC is the default for Haiku. 13984 # The "-static" flag exists, but is broken. 13985 lt_prog_compiler_static_CXX= 13986 ;; 13987 interix[3-9]*) 13988 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13989 # Instead, we relocate shared libraries at runtime. 13990 ;; 13991 sysv4*MP*) 13992 if test -d /usr/nec; then 13993 lt_prog_compiler_pic_CXX=-Kconform_pic 13994 fi 13995 ;; 13996 hpux*) 13997 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13998 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13999 # sets the default TLS model and affects inlining. 14000 case $host_cpu in 14001 hppa*64*) 14002 ;; 14003 *) 14004 lt_prog_compiler_pic_CXX='-fPIC' 14005 ;; 14006 esac 14007 ;; 14008 *qnx* | *nto*) 14009 # QNX uses GNU C++, but need to define -shared option too, otherwise 14010 # it will coredump. 14011 lt_prog_compiler_pic_CXX='-fPIC -shared' 14012 ;; 14013 *) 14014 lt_prog_compiler_pic_CXX='-fPIC' 14015 ;; 14016 esac 14017 else 14018 case $host_os in 14019 aix[4-9]*) 14020 # All AIX code is PIC. 14021 if test "$host_cpu" = ia64; then 14022 # AIX 5 now supports IA64 processor 14023 lt_prog_compiler_static_CXX='-Bstatic' 14024 else 14025 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14026 fi 14027 ;; 14028 chorus*) 14029 case $cc_basename in 14030 cxch68*) 14031 # Green Hills C++ Compiler 14032 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 14033 ;; 14034 esac 14035 ;; 14036 mingw* | cygwin* | os2* | pw32* | cegcc*) 14037 # This hack is so that the source file can tell whether it is being 14038 # built for inclusion in a dll (and should export symbols for example). 14039 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14040 ;; 14041 dgux*) 14042 case $cc_basename in 14043 ec++*) 14044 lt_prog_compiler_pic_CXX='-KPIC' 14045 ;; 14046 ghcx*) 14047 # Green Hills C++ Compiler 14048 lt_prog_compiler_pic_CXX='-pic' 14049 ;; 14050 *) 14051 ;; 14052 esac 14053 ;; 14054 freebsd* | dragonfly*) 14055 # FreeBSD uses GNU C++ 14056 ;; 14057 hpux9* | hpux10* | hpux11*) 14058 case $cc_basename in 14059 CC*) 14060 lt_prog_compiler_wl_CXX='-Wl,' 14061 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14062 if test "$host_cpu" != ia64; then 14063 lt_prog_compiler_pic_CXX='+Z' 14064 fi 14065 ;; 14066 aCC*) 14067 lt_prog_compiler_wl_CXX='-Wl,' 14068 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14069 case $host_cpu in 14070 hppa*64*|ia64*) 14071 # +Z the default 14072 ;; 14073 *) 14074 lt_prog_compiler_pic_CXX='+Z' 14075 ;; 14076 esac 14077 ;; 14078 *) 14079 ;; 14080 esac 14081 ;; 14082 interix*) 14083 # This is c89, which is MS Visual C++ (no shared libs) 14084 # Anyone wants to do a port? 14085 ;; 14086 irix5* | irix6* | nonstopux*) 14087 case $cc_basename in 14088 CC*) 14089 lt_prog_compiler_wl_CXX='-Wl,' 14090 lt_prog_compiler_static_CXX='-non_shared' 14091 # CC pic flag -KPIC is the default. 14092 ;; 14093 *) 14094 ;; 14095 esac 14096 ;; 14097 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14098 case $cc_basename in 14099 KCC*) 14100 # KAI C++ Compiler 14101 lt_prog_compiler_wl_CXX='--backend -Wl,' 14102 lt_prog_compiler_pic_CXX='-fPIC' 14103 ;; 14104 ecpc* ) 14105 # old Intel C++ for x86_64 which still supported -KPIC. 14106 lt_prog_compiler_wl_CXX='-Wl,' 14107 lt_prog_compiler_pic_CXX='-KPIC' 14108 lt_prog_compiler_static_CXX='-static' 14109 ;; 14110 icpc* ) 14111 # Intel C++, used to be incompatible with GCC. 14112 # ICC 10 doesn't accept -KPIC any more. 14113 lt_prog_compiler_wl_CXX='-Wl,' 14114 lt_prog_compiler_pic_CXX='-fPIC' 14115 lt_prog_compiler_static_CXX='-static' 14116 ;; 14117 pgCC* | pgcpp*) 14118 # Portland Group C++ compiler 14119 lt_prog_compiler_wl_CXX='-Wl,' 14120 lt_prog_compiler_pic_CXX='-fpic' 14121 lt_prog_compiler_static_CXX='-Bstatic' 14122 ;; 14123 cxx*) 14124 # Compaq C++ 14125 # Make sure the PIC flag is empty. It appears that all Alpha 14126 # Linux and Compaq Tru64 Unix objects are PIC. 14127 lt_prog_compiler_pic_CXX= 14128 lt_prog_compiler_static_CXX='-non_shared' 14129 ;; 14130 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14131 # IBM XL 8.0, 9.0 on PPC and BlueGene 14132 lt_prog_compiler_wl_CXX='-Wl,' 14133 lt_prog_compiler_pic_CXX='-qpic' 14134 lt_prog_compiler_static_CXX='-qstaticlink' 14135 ;; 14136 *) 14137 case `$CC -V 2>&1 | sed 5q` in 14138 *Sun\ C*) 14139 # Sun C++ 5.9 14140 lt_prog_compiler_pic_CXX='-KPIC' 14141 lt_prog_compiler_static_CXX='-Bstatic' 14142 lt_prog_compiler_wl_CXX='-Qoption ld ' 14143 ;; 14144 esac 14145 ;; 14146 esac 14147 ;; 14148 lynxos*) 14149 ;; 14150 m88k*) 14151 ;; 14152 mvs*) 14153 case $cc_basename in 14154 cxx*) 14155 lt_prog_compiler_pic_CXX='-W c,exportall' 14156 ;; 14157 *) 14158 ;; 14159 esac 14160 ;; 14161 netbsd* | netbsdelf*-gnu) 14162 ;; 14163 *qnx* | *nto*) 14164 # QNX uses GNU C++, but need to define -shared option too, otherwise 14165 # it will coredump. 14166 lt_prog_compiler_pic_CXX='-fPIC -shared' 14167 ;; 14168 osf3* | osf4* | osf5*) 14169 case $cc_basename in 14170 KCC*) 14171 lt_prog_compiler_wl_CXX='--backend -Wl,' 14172 ;; 14173 RCC*) 14174 # Rational C++ 2.4.1 14175 lt_prog_compiler_pic_CXX='-pic' 14176 ;; 14177 cxx*) 14178 # Digital/Compaq C++ 14179 lt_prog_compiler_wl_CXX='-Wl,' 14180 # Make sure the PIC flag is empty. It appears that all Alpha 14181 # Linux and Compaq Tru64 Unix objects are PIC. 14182 lt_prog_compiler_pic_CXX= 14183 lt_prog_compiler_static_CXX='-non_shared' 14184 ;; 14185 *) 14186 ;; 14187 esac 14188 ;; 14189 psos*) 14190 ;; 14191 solaris*) 14192 case $cc_basename in 14193 CC* | sunCC*) 14194 # Sun C++ 4.2, 5.x and Centerline C++ 14195 lt_prog_compiler_pic_CXX='-KPIC' 14196 lt_prog_compiler_static_CXX='-Bstatic' 14197 lt_prog_compiler_wl_CXX='-Qoption ld ' 14198 ;; 14199 gcx*) 14200 # Green Hills C++ Compiler 14201 lt_prog_compiler_pic_CXX='-PIC' 14202 ;; 14203 *) 14204 ;; 14205 esac 14206 ;; 14207 sunos4*) 14208 case $cc_basename in 14209 CC*) 14210 # Sun C++ 4.x 14211 lt_prog_compiler_pic_CXX='-pic' 14212 lt_prog_compiler_static_CXX='-Bstatic' 14213 ;; 14214 lcc*) 14215 # Lucid 14216 lt_prog_compiler_pic_CXX='-pic' 14217 ;; 14218 *) 14219 ;; 14220 esac 14221 ;; 14222 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14223 case $cc_basename in 14224 CC*) 14225 lt_prog_compiler_wl_CXX='-Wl,' 14226 lt_prog_compiler_pic_CXX='-KPIC' 14227 lt_prog_compiler_static_CXX='-Bstatic' 14228 ;; 14229 esac 14230 ;; 14231 tandem*) 14232 case $cc_basename in 14233 NCC*) 14234 # NonStop-UX NCC 3.20 14235 lt_prog_compiler_pic_CXX='-KPIC' 14236 ;; 14237 *) 14238 ;; 14239 esac 14240 ;; 14241 vxworks*) 14242 ;; 14243 *) 14244 lt_prog_compiler_can_build_shared_CXX=no 14245 ;; 14246 esac 14247 fi 14248 14249case $host_os in 14250 # For platforms which do not support PIC, -DPIC is meaningless: 14251 *djgpp*) 14252 lt_prog_compiler_pic_CXX= 14253 ;; 14254 *) 14255 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14256 ;; 14257esac 14258 14259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14260$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14261if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14262 $as_echo_n "(cached) " >&6 14263else 14264 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14265fi 14266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14267$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14268lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14269 14270# 14271# Check to make sure the PIC flag actually works. 14272# 14273if test -n "$lt_prog_compiler_pic_CXX"; then 14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14275$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14276if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14277 $as_echo_n "(cached) " >&6 14278else 14279 lt_cv_prog_compiler_pic_works_CXX=no 14280 ac_outfile=conftest.$ac_objext 14281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14282 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14283 # Insert the option either (1) after the last *FLAGS variable, or 14284 # (2) before a word containing "conftest.", or (3) at the end. 14285 # Note that $ac_compile itself does not contain backslashes and begins 14286 # with a dollar sign (not a hyphen), so the echo should work correctly. 14287 # The option is referenced via a variable to avoid confusing sed. 14288 lt_compile=`echo "$ac_compile" | $SED \ 14289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14291 -e 's:$: $lt_compiler_flag:'` 14292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14293 (eval "$lt_compile" 2>conftest.err) 14294 ac_status=$? 14295 cat conftest.err >&5 14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14297 if (exit $ac_status) && test -s "$ac_outfile"; then 14298 # The compiler can only warn and ignore the option if not recognized 14299 # So say no if there are warnings other than the usual output. 14300 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14302 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14303 lt_cv_prog_compiler_pic_works_CXX=yes 14304 fi 14305 fi 14306 $RM conftest* 14307 14308fi 14309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14310$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14311 14312if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14313 case $lt_prog_compiler_pic_CXX in 14314 "" | " "*) ;; 14315 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14316 esac 14317else 14318 lt_prog_compiler_pic_CXX= 14319 lt_prog_compiler_can_build_shared_CXX=no 14320fi 14321 14322fi 14323 14324 14325 14326 14327 14328# 14329# Check to make sure the static flag actually works. 14330# 14331wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14333$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14334if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14335 $as_echo_n "(cached) " >&6 14336else 14337 lt_cv_prog_compiler_static_works_CXX=no 14338 save_LDFLAGS="$LDFLAGS" 14339 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14340 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14341 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14342 # The linker can only warn and ignore the option if not recognized 14343 # So say no if there are warnings 14344 if test -s conftest.err; then 14345 # Append any errors to the config.log. 14346 cat conftest.err 1>&5 14347 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14348 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14349 if diff conftest.exp conftest.er2 >/dev/null; then 14350 lt_cv_prog_compiler_static_works_CXX=yes 14351 fi 14352 else 14353 lt_cv_prog_compiler_static_works_CXX=yes 14354 fi 14355 fi 14356 $RM -r conftest* 14357 LDFLAGS="$save_LDFLAGS" 14358 14359fi 14360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14361$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14362 14363if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14364 : 14365else 14366 lt_prog_compiler_static_CXX= 14367fi 14368 14369 14370 14371 14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14373$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14374if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14375 $as_echo_n "(cached) " >&6 14376else 14377 lt_cv_prog_compiler_c_o_CXX=no 14378 $RM -r conftest 2>/dev/null 14379 mkdir conftest 14380 cd conftest 14381 mkdir out 14382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14383 14384 lt_compiler_flag="-o out/conftest2.$ac_objext" 14385 # Insert the option either (1) after the last *FLAGS variable, or 14386 # (2) before a word containing "conftest.", or (3) at the end. 14387 # Note that $ac_compile itself does not contain backslashes and begins 14388 # with a dollar sign (not a hyphen), so the echo should work correctly. 14389 lt_compile=`echo "$ac_compile" | $SED \ 14390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14392 -e 's:$: $lt_compiler_flag:'` 14393 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14394 (eval "$lt_compile" 2>out/conftest.err) 14395 ac_status=$? 14396 cat out/conftest.err >&5 14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14398 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14399 then 14400 # The compiler can only warn and ignore the option if not recognized 14401 # So say no if there are warnings 14402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14403 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14404 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14405 lt_cv_prog_compiler_c_o_CXX=yes 14406 fi 14407 fi 14408 chmod u+w . 2>&5 14409 $RM conftest* 14410 # SGI C++ compiler will create directory out/ii_files/ for 14411 # template instantiation 14412 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14413 $RM out/* && rmdir out 14414 cd .. 14415 $RM -r conftest 14416 $RM conftest* 14417 14418fi 14419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14420$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14421 14422 14423 14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14425$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14426if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14427 $as_echo_n "(cached) " >&6 14428else 14429 lt_cv_prog_compiler_c_o_CXX=no 14430 $RM -r conftest 2>/dev/null 14431 mkdir conftest 14432 cd conftest 14433 mkdir out 14434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14435 14436 lt_compiler_flag="-o out/conftest2.$ac_objext" 14437 # Insert the option either (1) after the last *FLAGS variable, or 14438 # (2) before a word containing "conftest.", or (3) at the end. 14439 # Note that $ac_compile itself does not contain backslashes and begins 14440 # with a dollar sign (not a hyphen), so the echo should work correctly. 14441 lt_compile=`echo "$ac_compile" | $SED \ 14442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14444 -e 's:$: $lt_compiler_flag:'` 14445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14446 (eval "$lt_compile" 2>out/conftest.err) 14447 ac_status=$? 14448 cat out/conftest.err >&5 14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14450 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14451 then 14452 # The compiler can only warn and ignore the option if not recognized 14453 # So say no if there are warnings 14454 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14455 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14456 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14457 lt_cv_prog_compiler_c_o_CXX=yes 14458 fi 14459 fi 14460 chmod u+w . 2>&5 14461 $RM conftest* 14462 # SGI C++ compiler will create directory out/ii_files/ for 14463 # template instantiation 14464 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14465 $RM out/* && rmdir out 14466 cd .. 14467 $RM -r conftest 14468 $RM conftest* 14469 14470fi 14471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14472$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14473 14474 14475 14476 14477hard_links="nottested" 14478if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14479 # do not overwrite the value of need_locks provided by the user 14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14481$as_echo_n "checking if we can lock with hard links... " >&6; } 14482 hard_links=yes 14483 $RM conftest* 14484 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14485 touch conftest.a 14486 ln conftest.a conftest.b 2>&5 || hard_links=no 14487 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14489$as_echo "$hard_links" >&6; } 14490 if test "$hard_links" = no; then 14491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14492$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14493 need_locks=warn 14494 fi 14495else 14496 need_locks=no 14497fi 14498 14499 14500 14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14502$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14503 14504 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14505 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14506 case $host_os in 14507 aix[4-9]*) 14508 # If we're using GNU nm, then we don't want the "-C" option. 14509 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14510 # Also, AIX nm treats weak defined symbols like other global defined 14511 # symbols, whereas GNU nm marks them as "W". 14512 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14513 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14514 else 14515 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14516 fi 14517 ;; 14518 pw32*) 14519 export_symbols_cmds_CXX="$ltdll_cmds" 14520 ;; 14521 cygwin* | mingw* | cegcc*) 14522 case $cc_basename in 14523 cl*) ;; 14524 *) 14525 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14526 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14527 ;; 14528 esac 14529 ;; 14530 linux* | k*bsd*-gnu | gnu*) 14531 link_all_deplibs_CXX=no 14532 ;; 14533 *) 14534 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14535 ;; 14536 esac 14537 14538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14539$as_echo "$ld_shlibs_CXX" >&6; } 14540test "$ld_shlibs_CXX" = no && can_build_shared=no 14541 14542with_gnu_ld_CXX=$with_gnu_ld 14543 14544 14545 14546 14547 14548 14549# 14550# Do we need to explicitly link libc? 14551# 14552case "x$archive_cmds_need_lc_CXX" in 14553x|xyes) 14554 # Assume -lc should be added 14555 archive_cmds_need_lc_CXX=yes 14556 14557 if test "$enable_shared" = yes && test "$GCC" = yes; then 14558 case $archive_cmds_CXX in 14559 *'~'*) 14560 # FIXME: we may have to deal with multi-command sequences. 14561 ;; 14562 '$CC '*) 14563 # Test whether the compiler implicitly links with -lc since on some 14564 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14565 # to ld, don't add -lc before -lgcc. 14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14567$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14568if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14569 $as_echo_n "(cached) " >&6 14570else 14571 $RM conftest* 14572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14573 14574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14575 (eval $ac_compile) 2>&5 14576 ac_status=$? 14577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14578 test $ac_status = 0; } 2>conftest.err; then 14579 soname=conftest 14580 lib=conftest 14581 libobjs=conftest.$ac_objext 14582 deplibs= 14583 wl=$lt_prog_compiler_wl_CXX 14584 pic_flag=$lt_prog_compiler_pic_CXX 14585 compiler_flags=-v 14586 linker_flags=-v 14587 verstring= 14588 output_objdir=. 14589 libname=conftest 14590 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14591 allow_undefined_flag_CXX= 14592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14593 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14594 ac_status=$? 14595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14596 test $ac_status = 0; } 14597 then 14598 lt_cv_archive_cmds_need_lc_CXX=no 14599 else 14600 lt_cv_archive_cmds_need_lc_CXX=yes 14601 fi 14602 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14603 else 14604 cat conftest.err 1>&5 14605 fi 14606 $RM conftest* 14607 14608fi 14609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14610$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14611 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14612 ;; 14613 esac 14614 fi 14615 ;; 14616esac 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14682$as_echo_n "checking dynamic linker characteristics... " >&6; } 14683 14684library_names_spec= 14685libname_spec='lib$name' 14686soname_spec= 14687shrext_cmds=".so" 14688postinstall_cmds= 14689postuninstall_cmds= 14690finish_cmds= 14691finish_eval= 14692shlibpath_var= 14693shlibpath_overrides_runpath=unknown 14694version_type=none 14695dynamic_linker="$host_os ld.so" 14696sys_lib_dlsearch_path_spec="/lib /usr/lib" 14697need_lib_prefix=unknown 14698hardcode_into_libs=no 14699 14700# when you set need_version to no, make sure it does not cause -set_version 14701# flags to be left without arguments 14702need_version=unknown 14703 14704case $host_os in 14705aix3*) 14706 version_type=linux 14707 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14708 shlibpath_var=LIBPATH 14709 14710 # AIX 3 has no versioning support, so we append a major version to the name. 14711 soname_spec='${libname}${release}${shared_ext}$major' 14712 ;; 14713 14714aix[4-9]*) 14715 version_type=linux 14716 need_lib_prefix=no 14717 need_version=no 14718 hardcode_into_libs=yes 14719 if test "$host_cpu" = ia64; then 14720 # AIX 5 supports IA64 14721 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14722 shlibpath_var=LD_LIBRARY_PATH 14723 else 14724 # With GCC up to 2.95.x, collect2 would create an import file 14725 # for dependence libraries. The import file would start with 14726 # the line `#! .'. This would cause the generated library to 14727 # depend on `.', always an invalid library. This was fixed in 14728 # development snapshots of GCC prior to 3.0. 14729 case $host_os in 14730 aix4 | aix4.[01] | aix4.[01].*) 14731 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14732 echo ' yes ' 14733 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14734 : 14735 else 14736 can_build_shared=no 14737 fi 14738 ;; 14739 esac 14740 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14741 # soname into executable. Probably we can add versioning support to 14742 # collect2, so additional links can be useful in future. 14743 if test "$aix_use_runtimelinking" = yes; then 14744 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14745 # instead of lib<name>.a to let people know that these are not 14746 # typical AIX shared libraries. 14747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14748 else 14749 # We preserve .a as extension for shared libraries through AIX4.2 14750 # and later when we are not doing run time linking. 14751 library_names_spec='${libname}${release}.a $libname.a' 14752 soname_spec='${libname}${release}${shared_ext}$major' 14753 fi 14754 shlibpath_var=LIBPATH 14755 fi 14756 ;; 14757 14758amigaos*) 14759 case $host_cpu in 14760 powerpc) 14761 # Since July 2007 AmigaOS4 officially supports .so libraries. 14762 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14764 ;; 14765 m68k) 14766 library_names_spec='$libname.ixlibrary $libname.a' 14767 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14768 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14769 ;; 14770 esac 14771 ;; 14772 14773beos*) 14774 library_names_spec='${libname}${shared_ext}' 14775 dynamic_linker="$host_os ld.so" 14776 shlibpath_var=LIBRARY_PATH 14777 ;; 14778 14779bsdi[45]*) 14780 version_type=linux 14781 need_version=no 14782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14783 soname_spec='${libname}${release}${shared_ext}$major' 14784 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14785 shlibpath_var=LD_LIBRARY_PATH 14786 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14787 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14788 # the default ld.so.conf also contains /usr/contrib/lib and 14789 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14790 # libtool to hard-code these into programs 14791 ;; 14792 14793cygwin* | mingw* | pw32* | cegcc*) 14794 version_type=windows 14795 shrext_cmds=".dll" 14796 need_version=no 14797 need_lib_prefix=no 14798 14799 case $GCC,$cc_basename in 14800 yes,*) 14801 # gcc 14802 library_names_spec='$libname.dll.a' 14803 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14804 postinstall_cmds='base_file=`basename \${file}`~ 14805 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14806 dldir=$destdir/`dirname \$dlpath`~ 14807 test -d \$dldir || mkdir -p \$dldir~ 14808 $install_prog $dir/$dlname \$dldir/$dlname~ 14809 chmod a+x \$dldir/$dlname~ 14810 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14811 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14812 fi' 14813 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14814 dlpath=$dir/\$dldll~ 14815 $RM \$dlpath' 14816 shlibpath_overrides_runpath=yes 14817 14818 case $host_os in 14819 cygwin*) 14820 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14821 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14822 14823 ;; 14824 mingw* | cegcc*) 14825 # MinGW DLLs use traditional 'lib' prefix 14826 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14827 ;; 14828 pw32*) 14829 # pw32 DLLs use 'pw' prefix rather than 'lib' 14830 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14831 ;; 14832 esac 14833 dynamic_linker='Win32 ld.exe' 14834 ;; 14835 14836 *,cl*) 14837 # Native MSVC 14838 libname_spec='$name' 14839 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14840 library_names_spec='${libname}.dll.lib' 14841 14842 case $build_os in 14843 mingw*) 14844 sys_lib_search_path_spec= 14845 lt_save_ifs=$IFS 14846 IFS=';' 14847 for lt_path in $LIB 14848 do 14849 IFS=$lt_save_ifs 14850 # Let DOS variable expansion print the short 8.3 style file name. 14851 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14852 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14853 done 14854 IFS=$lt_save_ifs 14855 # Convert to MSYS style. 14856 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14857 ;; 14858 cygwin*) 14859 # Convert to unix form, then to dos form, then back to unix form 14860 # but this time dos style (no spaces!) so that the unix form looks 14861 # like /cygdrive/c/PROGRA~1:/cygdr... 14862 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14863 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14864 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14865 ;; 14866 *) 14867 sys_lib_search_path_spec="$LIB" 14868 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14869 # It is most probably a Windows format PATH. 14870 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14871 else 14872 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14873 fi 14874 # FIXME: find the short name or the path components, as spaces are 14875 # common. (e.g. "Program Files" -> "PROGRA~1") 14876 ;; 14877 esac 14878 14879 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14880 postinstall_cmds='base_file=`basename \${file}`~ 14881 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14882 dldir=$destdir/`dirname \$dlpath`~ 14883 test -d \$dldir || mkdir -p \$dldir~ 14884 $install_prog $dir/$dlname \$dldir/$dlname' 14885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14886 dlpath=$dir/\$dldll~ 14887 $RM \$dlpath' 14888 shlibpath_overrides_runpath=yes 14889 dynamic_linker='Win32 link.exe' 14890 ;; 14891 14892 *) 14893 # Assume MSVC wrapper 14894 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14895 dynamic_linker='Win32 ld.exe' 14896 ;; 14897 esac 14898 # FIXME: first we should search . and the directory the executable is in 14899 shlibpath_var=PATH 14900 ;; 14901 14902darwin* | rhapsody*) 14903 dynamic_linker="$host_os dyld" 14904 version_type=darwin 14905 need_lib_prefix=no 14906 need_version=no 14907 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14908 soname_spec='${libname}${release}${major}$shared_ext' 14909 shlibpath_overrides_runpath=yes 14910 shlibpath_var=DYLD_LIBRARY_PATH 14911 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14912 14913 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14914 ;; 14915 14916dgux*) 14917 version_type=linux 14918 need_lib_prefix=no 14919 need_version=no 14920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14921 soname_spec='${libname}${release}${shared_ext}$major' 14922 shlibpath_var=LD_LIBRARY_PATH 14923 ;; 14924 14925freebsd1*) 14926 dynamic_linker=no 14927 ;; 14928 14929freebsd* | dragonfly*) 14930 # DragonFly does not have aout. When/if they implement a new 14931 # versioning mechanism, adjust this. 14932 if test -x /usr/bin/objformat; then 14933 objformat=`/usr/bin/objformat` 14934 else 14935 case $host_os in 14936 freebsd[123]*) objformat=aout ;; 14937 *) objformat=elf ;; 14938 esac 14939 fi 14940 version_type=freebsd-$objformat 14941 case $version_type in 14942 freebsd-elf*) 14943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14944 need_version=no 14945 need_lib_prefix=no 14946 ;; 14947 freebsd-*) 14948 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14949 need_version=yes 14950 ;; 14951 esac 14952 shlibpath_var=LD_LIBRARY_PATH 14953 case $host_os in 14954 freebsd2*) 14955 shlibpath_overrides_runpath=yes 14956 ;; 14957 freebsd3.[01]* | freebsdelf3.[01]*) 14958 shlibpath_overrides_runpath=yes 14959 hardcode_into_libs=yes 14960 ;; 14961 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14962 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14963 shlibpath_overrides_runpath=no 14964 hardcode_into_libs=yes 14965 ;; 14966 *) # from 4.6 on, and DragonFly 14967 shlibpath_overrides_runpath=yes 14968 hardcode_into_libs=yes 14969 ;; 14970 esac 14971 ;; 14972 14973gnu*) 14974 version_type=linux 14975 need_lib_prefix=no 14976 need_version=no 14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14978 soname_spec='${libname}${release}${shared_ext}$major' 14979 shlibpath_var=LD_LIBRARY_PATH 14980 shlibpath_overrides_runpath=no 14981 hardcode_into_libs=yes 14982 ;; 14983 14984haiku*) 14985 version_type=linux 14986 need_lib_prefix=no 14987 need_version=no 14988 dynamic_linker="$host_os runtime_loader" 14989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14990 soname_spec='${libname}${release}${shared_ext}$major' 14991 shlibpath_var=LIBRARY_PATH 14992 shlibpath_overrides_runpath=yes 14993 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14994 hardcode_into_libs=yes 14995 ;; 14996 14997hpux9* | hpux10* | hpux11*) 14998 # Give a soname corresponding to the major version so that dld.sl refuses to 14999 # link against other versions. 15000 version_type=sunos 15001 need_lib_prefix=no 15002 need_version=no 15003 case $host_cpu in 15004 ia64*) 15005 shrext_cmds='.so' 15006 hardcode_into_libs=yes 15007 dynamic_linker="$host_os dld.so" 15008 shlibpath_var=LD_LIBRARY_PATH 15009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15011 soname_spec='${libname}${release}${shared_ext}$major' 15012 if test "X$HPUX_IA64_MODE" = X32; then 15013 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15014 else 15015 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15016 fi 15017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15018 ;; 15019 hppa*64*) 15020 shrext_cmds='.sl' 15021 hardcode_into_libs=yes 15022 dynamic_linker="$host_os dld.sl" 15023 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15026 soname_spec='${libname}${release}${shared_ext}$major' 15027 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15029 ;; 15030 *) 15031 shrext_cmds='.sl' 15032 dynamic_linker="$host_os dld.sl" 15033 shlibpath_var=SHLIB_PATH 15034 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15036 soname_spec='${libname}${release}${shared_ext}$major' 15037 ;; 15038 esac 15039 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15040 postinstall_cmds='chmod 555 $lib' 15041 # or fails outright, so override atomically: 15042 install_override_mode=555 15043 ;; 15044 15045interix[3-9]*) 15046 version_type=linux 15047 need_lib_prefix=no 15048 need_version=no 15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15050 soname_spec='${libname}${release}${shared_ext}$major' 15051 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15052 shlibpath_var=LD_LIBRARY_PATH 15053 shlibpath_overrides_runpath=no 15054 hardcode_into_libs=yes 15055 ;; 15056 15057irix5* | irix6* | nonstopux*) 15058 case $host_os in 15059 nonstopux*) version_type=nonstopux ;; 15060 *) 15061 if test "$lt_cv_prog_gnu_ld" = yes; then 15062 version_type=linux 15063 else 15064 version_type=irix 15065 fi ;; 15066 esac 15067 need_lib_prefix=no 15068 need_version=no 15069 soname_spec='${libname}${release}${shared_ext}$major' 15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15071 case $host_os in 15072 irix5* | nonstopux*) 15073 libsuff= shlibsuff= 15074 ;; 15075 *) 15076 case $LD in # libtool.m4 will add one of these switches to LD 15077 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15078 libsuff= shlibsuff= libmagic=32-bit;; 15079 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15080 libsuff=32 shlibsuff=N32 libmagic=N32;; 15081 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15082 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15083 *) libsuff= shlibsuff= libmagic=never-match;; 15084 esac 15085 ;; 15086 esac 15087 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15088 shlibpath_overrides_runpath=no 15089 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15090 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15091 hardcode_into_libs=yes 15092 ;; 15093 15094# No shared lib support for Linux oldld, aout, or coff. 15095linux*oldld* | linux*aout* | linux*coff*) 15096 dynamic_linker=no 15097 ;; 15098 15099# This must be Linux ELF. 15100linux* | k*bsd*-gnu | kopensolaris*-gnu) 15101 version_type=linux 15102 need_lib_prefix=no 15103 need_version=no 15104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15105 soname_spec='${libname}${release}${shared_ext}$major' 15106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15107 shlibpath_var=LD_LIBRARY_PATH 15108 shlibpath_overrides_runpath=no 15109 15110 # Some binutils ld are patched to set DT_RUNPATH 15111 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15112 $as_echo_n "(cached) " >&6 15113else 15114 lt_cv_shlibpath_overrides_runpath=no 15115 save_LDFLAGS=$LDFLAGS 15116 save_libdir=$libdir 15117 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15118 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15120/* end confdefs.h. */ 15121 15122int 15123main () 15124{ 15125 15126 ; 15127 return 0; 15128} 15129_ACEOF 15130if ac_fn_cxx_try_link "$LINENO"; then : 15131 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15132 lt_cv_shlibpath_overrides_runpath=yes 15133fi 15134fi 15135rm -f core conftest.err conftest.$ac_objext \ 15136 conftest$ac_exeext conftest.$ac_ext 15137 LDFLAGS=$save_LDFLAGS 15138 libdir=$save_libdir 15139 15140fi 15141 15142 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15143 15144 # This implies no fast_install, which is unacceptable. 15145 # Some rework will be needed to allow for fast_install 15146 # before this can be enabled. 15147 hardcode_into_libs=yes 15148 15149 # Append ld.so.conf contents to the search path 15150 if test -f /etc/ld.so.conf; then 15151 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' ' '` 15152 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15153 fi 15154 15155 # We used to test for /lib/ld.so.1 and disable shared libraries on 15156 # powerpc, because MkLinux only supported shared libraries with the 15157 # GNU dynamic linker. Since this was broken with cross compilers, 15158 # most powerpc-linux boxes support dynamic linking these days and 15159 # people can always --disable-shared, the test was removed, and we 15160 # assume the GNU/Linux dynamic linker is in use. 15161 dynamic_linker='GNU/Linux ld.so' 15162 ;; 15163 15164netbsdelf*-gnu) 15165 version_type=linux 15166 need_lib_prefix=no 15167 need_version=no 15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15169 soname_spec='${libname}${release}${shared_ext}$major' 15170 shlibpath_var=LD_LIBRARY_PATH 15171 shlibpath_overrides_runpath=no 15172 hardcode_into_libs=yes 15173 dynamic_linker='NetBSD ld.elf_so' 15174 ;; 15175 15176netbsd*) 15177 version_type=sunos 15178 need_lib_prefix=no 15179 need_version=no 15180 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15183 dynamic_linker='NetBSD (a.out) ld.so' 15184 else 15185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15186 soname_spec='${libname}${release}${shared_ext}$major' 15187 dynamic_linker='NetBSD ld.elf_so' 15188 fi 15189 shlibpath_var=LD_LIBRARY_PATH 15190 shlibpath_overrides_runpath=yes 15191 hardcode_into_libs=yes 15192 ;; 15193 15194newsos6) 15195 version_type=linux 15196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15197 shlibpath_var=LD_LIBRARY_PATH 15198 shlibpath_overrides_runpath=yes 15199 ;; 15200 15201*nto* | *qnx*) 15202 version_type=qnx 15203 need_lib_prefix=no 15204 need_version=no 15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15206 soname_spec='${libname}${release}${shared_ext}$major' 15207 shlibpath_var=LD_LIBRARY_PATH 15208 shlibpath_overrides_runpath=no 15209 hardcode_into_libs=yes 15210 dynamic_linker='ldqnx.so' 15211 ;; 15212 15213openbsd*) 15214 version_type=sunos 15215 sys_lib_dlsearch_path_spec="/usr/lib" 15216 need_lib_prefix=no 15217 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15218 case $host_os in 15219 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15220 *) need_version=no ;; 15221 esac 15222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15224 shlibpath_var=LD_LIBRARY_PATH 15225 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15226 case $host_os in 15227 openbsd2.[89] | openbsd2.[89].*) 15228 shlibpath_overrides_runpath=no 15229 ;; 15230 *) 15231 shlibpath_overrides_runpath=yes 15232 ;; 15233 esac 15234 else 15235 shlibpath_overrides_runpath=yes 15236 fi 15237 ;; 15238 15239os2*) 15240 libname_spec='$name' 15241 shrext_cmds=".dll" 15242 need_lib_prefix=no 15243 library_names_spec='$libname${shared_ext} $libname.a' 15244 dynamic_linker='OS/2 ld.exe' 15245 shlibpath_var=LIBPATH 15246 ;; 15247 15248osf3* | osf4* | osf5*) 15249 version_type=osf 15250 need_lib_prefix=no 15251 need_version=no 15252 soname_spec='${libname}${release}${shared_ext}$major' 15253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15254 shlibpath_var=LD_LIBRARY_PATH 15255 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15256 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15257 ;; 15258 15259rdos*) 15260 dynamic_linker=no 15261 ;; 15262 15263solaris*) 15264 version_type=linux 15265 need_lib_prefix=no 15266 need_version=no 15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15268 soname_spec='${libname}${release}${shared_ext}$major' 15269 shlibpath_var=LD_LIBRARY_PATH 15270 shlibpath_overrides_runpath=yes 15271 hardcode_into_libs=yes 15272 # ldd complains unless libraries are executable 15273 postinstall_cmds='chmod +x $lib' 15274 ;; 15275 15276sunos4*) 15277 version_type=sunos 15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15279 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15280 shlibpath_var=LD_LIBRARY_PATH 15281 shlibpath_overrides_runpath=yes 15282 if test "$with_gnu_ld" = yes; then 15283 need_lib_prefix=no 15284 fi 15285 need_version=yes 15286 ;; 15287 15288sysv4 | sysv4.3*) 15289 version_type=linux 15290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15291 soname_spec='${libname}${release}${shared_ext}$major' 15292 shlibpath_var=LD_LIBRARY_PATH 15293 case $host_vendor in 15294 sni) 15295 shlibpath_overrides_runpath=no 15296 need_lib_prefix=no 15297 runpath_var=LD_RUN_PATH 15298 ;; 15299 siemens) 15300 need_lib_prefix=no 15301 ;; 15302 motorola) 15303 need_lib_prefix=no 15304 need_version=no 15305 shlibpath_overrides_runpath=no 15306 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15307 ;; 15308 esac 15309 ;; 15310 15311sysv4*MP*) 15312 if test -d /usr/nec ;then 15313 version_type=linux 15314 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15315 soname_spec='$libname${shared_ext}.$major' 15316 shlibpath_var=LD_LIBRARY_PATH 15317 fi 15318 ;; 15319 15320sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15321 version_type=freebsd-elf 15322 need_lib_prefix=no 15323 need_version=no 15324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15325 soname_spec='${libname}${release}${shared_ext}$major' 15326 shlibpath_var=LD_LIBRARY_PATH 15327 shlibpath_overrides_runpath=yes 15328 hardcode_into_libs=yes 15329 if test "$with_gnu_ld" = yes; then 15330 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15331 else 15332 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15333 case $host_os in 15334 sco3.2v5*) 15335 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15336 ;; 15337 esac 15338 fi 15339 sys_lib_dlsearch_path_spec='/usr/lib' 15340 ;; 15341 15342tpf*) 15343 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15344 version_type=linux 15345 need_lib_prefix=no 15346 need_version=no 15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15348 shlibpath_var=LD_LIBRARY_PATH 15349 shlibpath_overrides_runpath=no 15350 hardcode_into_libs=yes 15351 ;; 15352 15353uts4*) 15354 version_type=linux 15355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15356 soname_spec='${libname}${release}${shared_ext}$major' 15357 shlibpath_var=LD_LIBRARY_PATH 15358 ;; 15359 15360*) 15361 dynamic_linker=no 15362 ;; 15363esac 15364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15365$as_echo "$dynamic_linker" >&6; } 15366test "$dynamic_linker" = no && can_build_shared=no 15367 15368variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15369if test "$GCC" = yes; then 15370 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15371fi 15372 15373if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15374 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15375fi 15376if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15377 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15378fi 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15418$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15419hardcode_action_CXX= 15420if test -n "$hardcode_libdir_flag_spec_CXX" || 15421 test -n "$runpath_var_CXX" || 15422 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15423 15424 # We can hardcode non-existent directories. 15425 if test "$hardcode_direct_CXX" != no && 15426 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15427 # have to relink, otherwise we might link with an installed library 15428 # when we should be linking with a yet-to-be-installed one 15429 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15430 test "$hardcode_minus_L_CXX" != no; then 15431 # Linking always hardcodes the temporary library directory. 15432 hardcode_action_CXX=relink 15433 else 15434 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15435 hardcode_action_CXX=immediate 15436 fi 15437else 15438 # We cannot hardcode anything, or else we can only hardcode existing 15439 # directories. 15440 hardcode_action_CXX=unsupported 15441fi 15442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15443$as_echo "$hardcode_action_CXX" >&6; } 15444 15445if test "$hardcode_action_CXX" = relink || 15446 test "$inherit_rpath_CXX" = yes; then 15447 # Fast installation is not supported 15448 enable_fast_install=no 15449elif test "$shlibpath_overrides_runpath" = yes || 15450 test "$enable_shared" = no; then 15451 # Fast installation is not necessary 15452 enable_fast_install=needless 15453fi 15454 15455 15456 15457 15458 15459 15460 15461 fi # test -n "$compiler" 15462 15463 CC=$lt_save_CC 15464 CFLAGS=$lt_save_CFLAGS 15465 LDCXX=$LD 15466 LD=$lt_save_LD 15467 GCC=$lt_save_GCC 15468 with_gnu_ld=$lt_save_with_gnu_ld 15469 lt_cv_path_LDCXX=$lt_cv_path_LD 15470 lt_cv_path_LD=$lt_save_path_LD 15471 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15472 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15473fi # test "$_lt_caught_CXX_error" != yes 15474 15475ac_ext=c 15476ac_cpp='$CPP $CPPFLAGS' 15477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15479ac_compiler_gnu=$ac_cv_c_compiler_gnu 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 ac_config_commands="$ac_config_commands libtool" 15494 15495 15496 15497 15498# Only expand once: 15499 15500 15501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 15502$as_echo_n "checking for ANSI C header files... " >&6; } 15503if ${ac_cv_header_stdc+:} false; then : 15504 $as_echo_n "(cached) " >&6 15505else 15506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15507/* end confdefs.h. */ 15508#include <stdlib.h> 15509#include <stdarg.h> 15510#include <string.h> 15511#include <float.h> 15512 15513int 15514main () 15515{ 15516 15517 ; 15518 return 0; 15519} 15520_ACEOF 15521if ac_fn_c_try_compile "$LINENO"; then : 15522 ac_cv_header_stdc=yes 15523else 15524 ac_cv_header_stdc=no 15525fi 15526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15527 15528if test $ac_cv_header_stdc = yes; then 15529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15531/* end confdefs.h. */ 15532#include <string.h> 15533 15534_ACEOF 15535if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15536 $EGREP "memchr" >/dev/null 2>&1; then : 15537 15538else 15539 ac_cv_header_stdc=no 15540fi 15541rm -f conftest* 15542 15543fi 15544 15545if test $ac_cv_header_stdc = yes; then 15546 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15548/* end confdefs.h. */ 15549#include <stdlib.h> 15550 15551_ACEOF 15552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15553 $EGREP "free" >/dev/null 2>&1; then : 15554 15555else 15556 ac_cv_header_stdc=no 15557fi 15558rm -f conftest* 15559 15560fi 15561 15562if test $ac_cv_header_stdc = yes; then 15563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15564 if test "$cross_compiling" = yes; then : 15565 : 15566else 15567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15568/* end confdefs.h. */ 15569#include <ctype.h> 15570#include <stdlib.h> 15571#if ((' ' & 0x0FF) == 0x020) 15572# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15573# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15574#else 15575# define ISLOWER(c) \ 15576 (('a' <= (c) && (c) <= 'i') \ 15577 || ('j' <= (c) && (c) <= 'r') \ 15578 || ('s' <= (c) && (c) <= 'z')) 15579# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15580#endif 15581 15582#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15583int 15584main () 15585{ 15586 int i; 15587 for (i = 0; i < 256; i++) 15588 if (XOR (islower (i), ISLOWER (i)) 15589 || toupper (i) != TOUPPER (i)) 15590 return 2; 15591 return 0; 15592} 15593_ACEOF 15594if ac_fn_c_try_run "$LINENO"; then : 15595 15596else 15597 ac_cv_header_stdc=no 15598fi 15599rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15600 conftest.$ac_objext conftest.beam conftest.$ac_ext 15601fi 15602 15603fi 15604fi 15605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 15606$as_echo "$ac_cv_header_stdc" >&6; } 15607if test $ac_cv_header_stdc = yes; then 15608 15609$as_echo "#define STDC_HEADERS 1" >>confdefs.h 15610 15611fi 15612 15613 15614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 15615$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 15616if ${ac_cv_c_const+:} false; then : 15617 $as_echo_n "(cached) " >&6 15618else 15619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15620/* end confdefs.h. */ 15621 15622int 15623main () 15624{ 15625/* FIXME: Include the comments suggested by Paul. */ 15626#ifndef __cplusplus 15627 /* Ultrix mips cc rejects this. */ 15628 typedef int charset[2]; 15629 const charset cs; 15630 /* SunOS 4.1.1 cc rejects this. */ 15631 char const *const *pcpcc; 15632 char **ppc; 15633 /* NEC SVR4.0.2 mips cc rejects this. */ 15634 struct point {int x, y;}; 15635 static struct point const zero = {0,0}; 15636 /* AIX XL C 1.02.0.0 rejects this. 15637 It does not let you subtract one const X* pointer from another in 15638 an arm of an if-expression whose if-part is not a constant 15639 expression */ 15640 const char *g = "string"; 15641 pcpcc = &g + (g ? g-g : 0); 15642 /* HPUX 7.0 cc rejects these. */ 15643 ++pcpcc; 15644 ppc = (char**) pcpcc; 15645 pcpcc = (char const *const *) ppc; 15646 { /* SCO 3.2v4 cc rejects this. */ 15647 char *t; 15648 char const *s = 0 ? (char *) 0 : (char const *) 0; 15649 15650 *t++ = 0; 15651 if (s) return 0; 15652 } 15653 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 15654 int x[] = {25, 17}; 15655 const int *foo = &x[0]; 15656 ++foo; 15657 } 15658 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 15659 typedef const int *iptr; 15660 iptr p = 0; 15661 ++p; 15662 } 15663 { /* AIX XL C 1.02.0.0 rejects this saying 15664 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 15665 struct s { int j; const int *ap[3]; }; 15666 struct s *b; b->j = 5; 15667 } 15668 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 15669 const int foo = 10; 15670 if (!foo) return 0; 15671 } 15672 return !cs[0] && !zero.x; 15673#endif 15674 15675 ; 15676 return 0; 15677} 15678_ACEOF 15679if ac_fn_c_try_compile "$LINENO"; then : 15680 ac_cv_c_const=yes 15681else 15682 ac_cv_c_const=no 15683fi 15684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15685fi 15686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 15687$as_echo "$ac_cv_c_const" >&6; } 15688if test $ac_cv_c_const = no; then 15689 15690$as_echo "#define const /**/" >>confdefs.h 15691 15692fi 15693 15694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 15695$as_echo_n "checking for inline... " >&6; } 15696if ${ac_cv_c_inline+:} false; then : 15697 $as_echo_n "(cached) " >&6 15698else 15699 ac_cv_c_inline=no 15700for ac_kw in inline __inline__ __inline; do 15701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15702/* end confdefs.h. */ 15703#ifndef __cplusplus 15704typedef int foo_t; 15705static $ac_kw foo_t static_foo () {return 0; } 15706$ac_kw foo_t foo () {return 0; } 15707#endif 15708 15709_ACEOF 15710if ac_fn_c_try_compile "$LINENO"; then : 15711 ac_cv_c_inline=$ac_kw 15712fi 15713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15714 test "$ac_cv_c_inline" != no && break 15715done 15716 15717fi 15718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 15719$as_echo "$ac_cv_c_inline" >&6; } 15720 15721case $ac_cv_c_inline in 15722 inline | yes) ;; 15723 *) 15724 case $ac_cv_c_inline in 15725 no) ac_val=;; 15726 *) ac_val=$ac_cv_c_inline;; 15727 esac 15728 cat >>confdefs.h <<_ACEOF 15729#ifndef __cplusplus 15730#define inline $ac_val 15731#endif 15732_ACEOF 15733 ;; 15734esac 15735 15736ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 15737if test "x$ac_cv_type_size_t" = xyes; then : 15738 15739else 15740 15741cat >>confdefs.h <<_ACEOF 15742#define size_t unsigned int 15743_ACEOF 15744 15745fi 15746 15747 15748# Check whether we are doing a native build 15749 if test "${cross_compiling}" = "no"; then 15750 NATIVE_BUILD_TRUE= 15751 NATIVE_BUILD_FALSE='#' 15752else 15753 NATIVE_BUILD_TRUE='#' 15754 NATIVE_BUILD_FALSE= 15755fi 15756 15757 15758for ac_header in inttypes.h 15759do : 15760 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 15761if test "x$ac_cv_header_inttypes_h" = xyes; then : 15762 cat >>confdefs.h <<_ACEOF 15763#define HAVE_INTTYPES_H 1 15764_ACEOF 15765 STDINT_HEADER="<inttypes.h>" 15766else 15767 for ac_header in sys/inttypes.h 15768do : 15769 ac_fn_c_check_header_mongrel "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default" 15770if test "x$ac_cv_header_sys_inttypes_h" = xyes; then : 15771 cat >>confdefs.h <<_ACEOF 15772#define HAVE_SYS_INTTYPES_H 1 15773_ACEOF 15774 STDINT_HEADER="<sys/inttypes.h>" 15775else 15776 for ac_header in sys/_inttypes.h 15777do : 15778 ac_fn_c_check_header_mongrel "$LINENO" "sys/_inttypes.h" "ac_cv_header_sys__inttypes_h" "$ac_includes_default" 15779if test "x$ac_cv_header_sys__inttypes_h" = xyes; then : 15780 cat >>confdefs.h <<_ACEOF 15781#define HAVE_SYS__INTTYPES_H 1 15782_ACEOF 15783 STDINT_HEADER="<sys/_inttypes.h>" 15784else 15785 for ac_header in stdint.h 15786do : 15787 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 15788if test "x$ac_cv_header_stdint_h" = xyes; then : 15789 cat >>confdefs.h <<_ACEOF 15790#define HAVE_STDINT_H 1 15791_ACEOF 15792 STDINT_HEADER="<stdint.h>" 15793else 15794 as_fn_error $? "cannot find C99 integer headers" "$LINENO" 5 15795fi 15796 15797done 15798 15799fi 15800 15801done 15802 15803fi 15804 15805done 15806 15807fi 15808 15809done 15810 15811 15812cat >>confdefs.h <<_ACEOF 15813#define STDINT_HEADER ${STDINT_HEADER} 15814_ACEOF 15815 15816 15817 15818# $system should contain the name of this file. It may be used by some 15819# of the build scripts to do things that are specific to one single 15820# type of system. 15821 15822cat >>confdefs.h <<_ACEOF 15823#define SYSTEMTYPE "${target_os}" 15824_ACEOF 15825 15826 15827SYSTEM="${target_os}" 15828MATH_LIBS="-lm" 15829case "${target_os}" in 15830 *hpux*) 15831 15832$as_echo "#define ARRAY_BROKEN 1" >>confdefs.h 15833 15834 ;; 15835 *mingw32*) 15836 ELK_CFLAGS="${ELK_CFLAGS} -DELK_BUILD_DLL" 15837 ELK_LDFLAGS="${ELK_LDFLAGS} -no-undefined" 15838 MATH_LIBS="" 15839 SYSTEM="mingw32" 15840 ;; 15841 *cygwin*) 15842 SYSTEM="cygwin" 15843 ;; 15844 *darwin*) 15845 15846$as_echo "#define SYS_DARWIN 1" >>confdefs.h 15847 15848 ;; 15849esac 15850ELK_LIBS="${ELK_LIBS} ${MATH_LIBS}" 15851 15852# Various required headers 15853for ac_header in pwd.h grp.h sys/resource.h 15854do : 15855 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15856ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15857if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15858 cat >>confdefs.h <<_ACEOF 15859#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15860_ACEOF 15861 15862fi 15863 15864done 15865 15866 15867# The UNIX extension likes to know which of the following system calls, 15868# library functions, and include files are supported by the system. 15869for ac_header in utime.h sys/utime.h sys/wait.h sys/times.h dirent.h netdb.h 15870do : 15871 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15872ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15873if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15874 cat >>confdefs.h <<_ACEOF 15875#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15876_ACEOF 15877 15878fi 15879 15880done 15881 15882for ac_func in waitpid wait3 wait4 vfork uname gethostname gettimeofday ftime 15883do : 15884 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15885ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15886if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15887 cat >>confdefs.h <<_ACEOF 15888#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15889_ACEOF 15890 15891fi 15892done 15893 15894for ac_func in mktemp tmpnam tempnam getcwd getwd rename regcomp environ 15895do : 15896 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15897ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15898if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15899 cat >>confdefs.h <<_ACEOF 15900#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15901_ACEOF 15902 15903fi 15904done 15905 15906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __environ in unistd.h" >&5 15907$as_echo_n "checking for __environ in unistd.h... " >&6; } 15908cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15909/* end confdefs.h. */ 15910#include <unistd.h> 15911 15912_ACEOF 15913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15914 $EGREP "__environ" >/dev/null 2>&1; then : 15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15916$as_echo "yes" >&6; } 15917 15918$as_echo "#define __ENVIRON_IN_UNISTD_H 1" >>confdefs.h 15919 15920else 15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15922$as_echo "no" >&6; } 15923fi 15924rm -f conftest* 15925 15926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for environ in unistd.h" >&5 15927$as_echo_n "checking for environ in unistd.h... " >&6; } 15928cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15929/* end confdefs.h. */ 15930#include <unistd.h> 15931 15932_ACEOF 15933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15934 $EGREP "environ" >/dev/null 2>&1; then : 15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15936$as_echo "yes" >&6; } 15937 15938$as_echo "#define ENVIRON_IN_UNISTD_H 1" >>confdefs.h 15939 15940else 15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15942$as_echo "no" >&6; } 15943fi 15944rm -f conftest* 15945 15946 15947# Does the system support the vprintf library function? If not, 15948# availability of the (non-portable) _doprnt function is assumed. 15949for ac_func in vprintf 15950do : 15951 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 15952if test "x$ac_cv_func_vprintf" = xyes; then : 15953 cat >>confdefs.h <<_ACEOF 15954#define HAVE_VPRINTF 1 15955_ACEOF 15956 15957fi 15958done 15959 15960 15961# Does the directory(3) library follow the POSIX conventions (i.e. 15962# requires the <dirent.h> include file and uses "struct dirent")? 15963# If not, the (obsolete) BSD-style interface with <sys/dir.h> and 15964# "struct direct" is assumed. 15965for ac_func in dirent 15966do : 15967 ac_fn_c_check_func "$LINENO" "dirent" "ac_cv_func_dirent" 15968if test "x$ac_cv_func_dirent" = xyes; then : 15969 cat >>confdefs.h <<_ACEOF 15970#define HAVE_DIRENT 1 15971_ACEOF 15972 15973fi 15974done 15975 15976 15977# Does the system have the random/srandom library functions? If not, 15978# rand/srand will be used instead. 15979for ac_func in random 15980do : 15981 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random" 15982if test "x$ac_cv_func_random" = xyes; then : 15983 cat >>confdefs.h <<_ACEOF 15984#define HAVE_RANDOM 1 15985_ACEOF 15986 15987fi 15988done 15989 15990 15991# Does the system have the index library function? If not, strchr 15992# will be used. 15993for ac_func in index 15994do : 15995 ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index" 15996if test "x$ac_cv_func_index" = xyes; then : 15997 cat >>confdefs.h <<_ACEOF 15998#define HAVE_INDEX 1 15999_ACEOF 16000 16001fi 16002done 16003 16004 16005# Does the system have the bcopy, bzero, and bcmp library functions? 16006# If not, memcpy/memset/memcmp will be used. 16007 16008# Does using the access system call require <unistd.h> to be included? 16009# (Look into the manual page for access if in doubt.) 16010for ac_header in unistd.h 16011do : 16012 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 16013if test "x$ac_cv_header_unistd_h" = xyes; then : 16014 cat >>confdefs.h <<_ACEOF 16015#define HAVE_UNISTD_H 1 16016_ACEOF 16017 16018fi 16019 16020done 16021 16022 16023# If the FIONREAD ioctl command is defined, which file must be included? 16024for ac_header in termios.h sys/ioctl.h sys/filio.h 16025do : 16026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16027ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16028if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16029 cat >>confdefs.h <<_ACEOF 16030#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16031_ACEOF 16032 16033fi 16034 16035done 16036 16037 16038# If getdtablesize() is available to determine the maximum number of open 16039# files per process, set getdtablesize=yes. 16040# Alternatively, if POSIX-style sysconf() can be called with _SC_OPEN_MAX, 16041# set sysconf_open_max=yes. 16042# If neither is set to "yes", an educated guess will be made. 16043for ac_func in getdtablesize 16044do : 16045 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize" 16046if test "x$ac_cv_func_getdtablesize" = xyes; then : 16047 cat >>confdefs.h <<_ACEOF 16048#define HAVE_GETDTABLESIZE 1 16049_ACEOF 16050 16051fi 16052done 16053 16054 16055# If POSIX-style pathconf() can be invoked with _PC_PATH_MAX to determine 16056# the maximum pathname length, set pathconf_path_max=yes. 16057 16058# If the system page size can be determined by calling getpagesize() 16059# set getpagesize=yes. 16060# Alternatively, if sysconf() can be invoked with _SC_PAGESIZE, set 16061# sysconf_pagesize=yes. 16062# These two variables are only required if the generational garbage 16063# collector is used. 16064for ac_func in getpagesize 16065do : 16066 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 16067if test "x$ac_cv_func_getpagesize" = xyes; then : 16068 cat >>confdefs.h <<_ACEOF 16069#define HAVE_GETPAGESIZE 1 16070_ACEOF 16071 16072fi 16073done 16074 16075 16076# Set reliable_signals=bsd if your system supports BSD-style reliable 16077# signals (has sigblock and related functions); set reliable_signals=posix 16078# for POSIX-style signals (sigprocmask, sigsets); otherwise old V7/SysV 16079# signal semantics are assumed. 16080for ac_header in signal.h 16081do : 16082 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 16083if test "x$ac_cv_header_signal_h" = xyes; then : 16084 cat >>confdefs.h <<_ACEOF 16085#define HAVE_SIGNAL_H 1 16086_ACEOF 16087 16088fi 16089 16090done 16091 16092for ac_func in sigprocmask sigblock 16093do : 16094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16095ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16096if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16097 cat >>confdefs.h <<_ACEOF 16098#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16099_ACEOF 16100 16101fi 16102done 16103 16104 16105# To support dynamic loading of object files and "dump", the system's 16106# a.out format has to be known. Choose one of the following: 16107# 16108# coff ecoff xcoff elf macho hp9k convex 16109# 16110# Other values of "aout_format" are interpreted as BSD-style a.out format. 16111if false; then 16112 16113$as_echo "#define COFF 1" >>confdefs.h 16114 16115fi 16116 16117if false; then 16118 16119$as_echo "#define ECOFF 1" >>confdefs.h 16120 16121fi 16122 16123if false; then 16124 16125$as_echo "#define XCOFF 1" >>confdefs.h 16126 16127fi 16128 16129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 16130$as_echo_n "checking for elf_begin in -lelf... " >&6; } 16131if ${ac_cv_lib_elf_elf_begin+:} false; then : 16132 $as_echo_n "(cached) " >&6 16133else 16134 ac_check_lib_save_LIBS=$LIBS 16135LIBS="-lelf $LIBS" 16136cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16137/* end confdefs.h. */ 16138 16139/* Override any GCC internal prototype to avoid an error. 16140 Use char because int might match the return type of a GCC 16141 builtin and then its argument prototype would still apply. */ 16142#ifdef __cplusplus 16143extern "C" 16144#endif 16145char elf_begin (); 16146int 16147main () 16148{ 16149return elf_begin (); 16150 ; 16151 return 0; 16152} 16153_ACEOF 16154if ac_fn_c_try_link "$LINENO"; then : 16155 ac_cv_lib_elf_elf_begin=yes 16156else 16157 ac_cv_lib_elf_elf_begin=no 16158fi 16159rm -f core conftest.err conftest.$ac_objext \ 16160 conftest$ac_exeext conftest.$ac_ext 16161LIBS=$ac_check_lib_save_LIBS 16162fi 16163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 16164$as_echo "$ac_cv_lib_elf_elf_begin" >&6; } 16165if test "x$ac_cv_lib_elf_elf_begin" = xyes; then : 16166 ac_cv_my_have_elf=yes 16167else 16168 ac_cv_my_have_elf=no 16169fi 16170 16171 if test "${ac_cv_my_have_elf}" = "yes"; then 16172 HAVE_LIBELF_TRUE= 16173 HAVE_LIBELF_FALSE='#' 16174else 16175 HAVE_LIBELF_TRUE='#' 16176 HAVE_LIBELF_FALSE= 16177fi 16178 16179 16180if false; then 16181 16182$as_echo "#define MACH_O 1" >>confdefs.h 16183 16184fi 16185 16186if false; then 16187 16188$as_echo "#define CONVEX_AOUT 1" >>confdefs.h 16189 16190fi 16191 16192if false; then 16193 16194$as_echo "#define HP9K 1" >>confdefs.h 16195 16196fi 16197 16198if test "${ac_cv_my_have_elf}" = "yes"; then 16199 16200$as_echo "#define HAVE_LIBELF 1" >>confdefs.h 16201 16202 ELK_LIBS="${ELK_LIBS} -lelf" 16203 ac_cv_my_can_dump=yes 16204else 16205 ac_cv_my_can_dump=no 16206 fi 16207 16208# Which mechanism should be used to dynamically load object files? 16209ac_cv_my_can_load_lib=no 16210 16211# OS X style 16212for ac_header in mach-o/dyld.h 16213do : 16214 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" 16215if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then : 16216 cat >>confdefs.h <<_ACEOF 16217#define HAVE_MACH_O_DYLD_H 1 16218_ACEOF 16219 for ac_func in NSLinkModule 16220do : 16221 ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule" 16222if test "x$ac_cv_func_NSLinkModule" = xyes; then : 16223 cat >>confdefs.h <<_ACEOF 16224#define HAVE_NSLINKMODULE 1 16225_ACEOF 16226 16227$as_echo "#define HAVE_DL_DYLD 1" >>confdefs.h 16228 16229 16230$as_echo "#define SYMS_BEGIN_WITH '_'" >>confdefs.h 16231 16232 ac_cv_my_can_load_lib=yes 16233fi 16234done 16235 16236fi 16237 16238done 16239 16240 16241# HP-UX style 16242if test "${ac_cv_my_can_load_lib}" = "no"; then 16243 for ac_header in dl.h 16244do : 16245 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 16246if test "x$ac_cv_header_dl_h" = xyes; then : 16247 cat >>confdefs.h <<_ACEOF 16248#define HAVE_DL_H 1 16249_ACEOF 16250 16251fi 16252 16253done 16254 16255 ac_cv_my_have_shl_load=no 16256 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 16257if test "x$ac_cv_func_shl_load" = xyes; then : 16258 ac_cv_my_have_shl_load=yes, 16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 16260$as_echo_n "checking for shl_load in -ldld... " >&6; } 16261if ${ac_cv_lib_dld_shl_load+:} false; then : 16262 $as_echo_n "(cached) " >&6 16263else 16264 ac_check_lib_save_LIBS=$LIBS 16265LIBS="-ldld $LIBS" 16266cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16267/* end confdefs.h. */ 16268 16269/* Override any GCC internal prototype to avoid an error. 16270 Use char because int might match the return type of a GCC 16271 builtin and then its argument prototype would still apply. */ 16272#ifdef __cplusplus 16273extern "C" 16274#endif 16275char shl_load (); 16276int 16277main () 16278{ 16279return shl_load (); 16280 ; 16281 return 0; 16282} 16283_ACEOF 16284if ac_fn_c_try_link "$LINENO"; then : 16285 ac_cv_lib_dld_shl_load=yes 16286else 16287 ac_cv_lib_dld_shl_load=no 16288fi 16289rm -f core conftest.err conftest.$ac_objext \ 16290 conftest$ac_exeext conftest.$ac_ext 16291LIBS=$ac_check_lib_save_LIBS 16292fi 16293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 16294$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 16295if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 16296 ac_cv_my_have_shl_load=yes 16297 ELK_LIBS="${ELK_LIBS} -ldld" 16298fi 16299 16300fi 16301 16302 if test "${ac_cv_my_have_shl_load}" = "yes"; then 16303 16304$as_echo "#define HAVE_DL_SHL_LOAD 1" >>confdefs.h 16305 16306 ac_cv_my_can_load_lib=yes 16307 fi 16308fi 16309 16310# Whatever style 16311if test "${ac_cv_my_can_load_lib}" = "no"; then 16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 16313$as_echo_n "checking for dld_link in -ldld... " >&6; } 16314if ${ac_cv_lib_dld_dld_link+:} false; then : 16315 $as_echo_n "(cached) " >&6 16316else 16317 ac_check_lib_save_LIBS=$LIBS 16318LIBS="-ldld $LIBS" 16319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16320/* end confdefs.h. */ 16321 16322/* Override any GCC internal prototype to avoid an error. 16323 Use char because int might match the return type of a GCC 16324 builtin and then its argument prototype would still apply. */ 16325#ifdef __cplusplus 16326extern "C" 16327#endif 16328char dld_link (); 16329int 16330main () 16331{ 16332return dld_link (); 16333 ; 16334 return 0; 16335} 16336_ACEOF 16337if ac_fn_c_try_link "$LINENO"; then : 16338 ac_cv_lib_dld_dld_link=yes 16339else 16340 ac_cv_lib_dld_dld_link=no 16341fi 16342rm -f core conftest.err conftest.$ac_objext \ 16343 conftest$ac_exeext conftest.$ac_ext 16344LIBS=$ac_check_lib_save_LIBS 16345fi 16346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 16347$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 16348if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 16349 ELK_LIBS="${ELK_LIBS} -ldld" 16350 16351$as_echo "#define HAVE_DL_DLD_LINK 1" >>confdefs.h 16352 16353 ac_cv_my_can_load_lib=yes 16354fi 16355 16356fi 16357 16358# BeOS style 16359if test "${ac_cv_my_can_load_lib}" = "no"; then 16360 for ac_header in image.h 16361do : 16362 ac_fn_c_check_header_mongrel "$LINENO" "image.h" "ac_cv_header_image_h" "$ac_includes_default" 16363if test "x$ac_cv_header_image_h" = xyes; then : 16364 cat >>confdefs.h <<_ACEOF 16365#define HAVE_IMAGE_H 1 16366_ACEOF 16367 16368fi 16369 16370done 16371 16372 for ac_func in load_add_on 16373do : 16374 ac_fn_c_check_func "$LINENO" "load_add_on" "ac_cv_func_load_add_on" 16375if test "x$ac_cv_func_load_add_on" = xyes; then : 16376 cat >>confdefs.h <<_ACEOF 16377#define HAVE_LOAD_ADD_ON 1 16378_ACEOF 16379 16380$as_echo "#define HAVE_DL_BEOS 1" >>confdefs.h 16381 16382 ac_cv_my_can_load_lib=yes 16383fi 16384done 16385 16386fi 16387 16388# Win32 style 16389if test "${ac_cv_my_can_load_lib}" = "no"; then 16390 if test "${SYSTEM}" = "mingw32" -o "${SYSTEM}" = "cygwin"; then 16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkernel32" >&5 16392$as_echo_n "checking for main in -lkernel32... " >&6; } 16393if ${ac_cv_lib_kernel32_main+:} false; then : 16394 $as_echo_n "(cached) " >&6 16395else 16396 ac_check_lib_save_LIBS=$LIBS 16397LIBS="-lkernel32 $LIBS" 16398cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16399/* end confdefs.h. */ 16400 16401 16402int 16403main () 16404{ 16405return main (); 16406 ; 16407 return 0; 16408} 16409_ACEOF 16410if ac_fn_c_try_link "$LINENO"; then : 16411 ac_cv_lib_kernel32_main=yes 16412else 16413 ac_cv_lib_kernel32_main=no 16414fi 16415rm -f core conftest.err conftest.$ac_objext \ 16416 conftest$ac_exeext conftest.$ac_ext 16417LIBS=$ac_check_lib_save_LIBS 16418fi 16419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kernel32_main" >&5 16420$as_echo "$ac_cv_lib_kernel32_main" >&6; } 16421if test "x$ac_cv_lib_kernel32_main" = xyes; then : 16422 ELK_LIBS="${ELK_LIBS} -lkernel32" 16423 16424$as_echo "#define HAVE_DL_WINDOWS 1" >>confdefs.h 16425 16426 ac_cv_my_can_load_lib=yes 16427fi 16428 16429 fi 16430fi 16431 16432for ac_header in a.out.h 16433do : 16434 ac_fn_c_check_header_mongrel "$LINENO" "a.out.h" "ac_cv_header_a_out_h" "$ac_includes_default" 16435if test "x$ac_cv_header_a_out_h" = xyes; then : 16436 cat >>confdefs.h <<_ACEOF 16437#define HAVE_A_OUT_H 1 16438_ACEOF 16439 16440fi 16441 16442done 16443 16444 16445# Only test for dlopen() if the others didn't work 16446if test "${ac_cv_my_can_load_lib}" = "no"; then 16447 for ac_header in dlfcn.h sys/dl.h 16448do : 16449 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16450ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16451if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16452 cat >>confdefs.h <<_ACEOF 16453#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16454_ACEOF 16455 16456fi 16457 16458done 16459 16460 ac_cv_my_have_dlopen=no 16461 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 16462if test "x$ac_cv_func_dlopen" = xyes; then : 16463 ac_cv_my_have_dlopen=yes 16464else 16465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16466$as_echo_n "checking for dlopen in -ldl... " >&6; } 16467if ${ac_cv_lib_dl_dlopen+:} false; then : 16468 $as_echo_n "(cached) " >&6 16469else 16470 ac_check_lib_save_LIBS=$LIBS 16471LIBS="-ldl $LIBS" 16472cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16473/* end confdefs.h. */ 16474 16475/* Override any GCC internal prototype to avoid an error. 16476 Use char because int might match the return type of a GCC 16477 builtin and then its argument prototype would still apply. */ 16478#ifdef __cplusplus 16479extern "C" 16480#endif 16481char dlopen (); 16482int 16483main () 16484{ 16485return dlopen (); 16486 ; 16487 return 0; 16488} 16489_ACEOF 16490if ac_fn_c_try_link "$LINENO"; then : 16491 ac_cv_lib_dl_dlopen=yes 16492else 16493 ac_cv_lib_dl_dlopen=no 16494fi 16495rm -f core conftest.err conftest.$ac_objext \ 16496 conftest$ac_exeext conftest.$ac_ext 16497LIBS=$ac_check_lib_save_LIBS 16498fi 16499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16500$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 16501if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 16502 ac_cv_my_have_dlopen=yes 16503 ELK_LIBS="${ELK_LIBS} -ldl" 16504else 16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 16506$as_echo_n "checking for dlopen in -lsvld... " >&6; } 16507if ${ac_cv_lib_svld_dlopen+:} false; then : 16508 $as_echo_n "(cached) " >&6 16509else 16510 ac_check_lib_save_LIBS=$LIBS 16511LIBS="-lsvld $LIBS" 16512cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16513/* end confdefs.h. */ 16514 16515/* Override any GCC internal prototype to avoid an error. 16516 Use char because int might match the return type of a GCC 16517 builtin and then its argument prototype would still apply. */ 16518#ifdef __cplusplus 16519extern "C" 16520#endif 16521char dlopen (); 16522int 16523main () 16524{ 16525return dlopen (); 16526 ; 16527 return 0; 16528} 16529_ACEOF 16530if ac_fn_c_try_link "$LINENO"; then : 16531 ac_cv_lib_svld_dlopen=yes 16532else 16533 ac_cv_lib_svld_dlopen=no 16534fi 16535rm -f core conftest.err conftest.$ac_objext \ 16536 conftest$ac_exeext conftest.$ac_ext 16537LIBS=$ac_check_lib_save_LIBS 16538fi 16539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 16540$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 16541if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 16542 ac_cv_my_have_dlopen=yes 16543 ELK_LIBS="${ELK_LIBS} -lsvld" 16544fi 16545 16546fi 16547 16548fi 16549 16550 if test "${ac_cv_my_have_dlopen}" = "yes"; then 16551 16552$as_echo "#define HAVE_DL_DLOPEN 1" >>confdefs.h 16553 16554 ac_cv_my_can_load_lib=yes 16555 fi 16556fi 16557 16558if test "${ac_cv_my_can_load_lib}" = "yes"; then 16559 16560$as_echo "#define CAN_LOAD_LIB 1" >>confdefs.h 16561 16562fi 16563 16564# Systems with "aout_format=ecoff" may require a call to the cacheflush 16565# system call after an object file has been loaded. Which include file 16566# has to be included in this case? 16567 16568$as_echo "#define CACHECTL_H <sys/cachectl.h>" >>confdefs.h 16569 16570 16571# Is the ANSI-C atexit function supported to register an exit handler? 16572# If not, the exit library function will be redefined and will end in 16573# a call to _exit. 16574for ac_func in atexit 16575do : 16576 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit" 16577if test "x$ac_cv_func_atexit" = xyes; then : 16578 cat >>confdefs.h <<_ACEOF 16579#define HAVE_ATEXIT 1 16580_ACEOF 16581 16582fi 16583done 16584 16585 16586# The symbol prefixes of extension initialization and finalization 16587# functions (without the initial $syms_begin_with). Do not change 16588# these unless the compiler or linker restricts the length of symbols! 16589 16590$as_echo "#define INIT_PREFIX \"elk_init_\"" >>confdefs.h 16591 16592 16593$as_echo "#define FINIT_PREFIX \"elk_finit_\"" >>confdefs.h 16594 16595 16596# Is the "dump" function supported? 16597if test "${ac_cv_my_can_dump}" = "yes"; then 16598 16599$as_echo "#define CAN_DUMP 1" >>confdefs.h 16600 16601fi 16602 16603 # Is the fchmod system call broken or unavailable? 16604 if false; then 16605 16606$as_echo "#define FCHMOD_BROKEN 1" >>confdefs.h 16607 16608 fi 16609 16610 # These four variables are only relevant if the system has the BSD-style 16611 # a.out format. 16612 # segment_size is the segment size of the system's memory management 16613 # unit, i.e. the number to a multiple of which the size of an a.out 16614 # segment (e.g. .text) is rounded up. 16615 # file_text_start is the file offset at which the text segment starts 16616 # in an a.out file. 16617 # mem_text_start is the starting address of the text segment in memory. 16618 # text_length_adj must be set to "sizeof (struct exec)" if the length of 16619 # the text segment stored in the a.out header includes the a.out header 16620 # itself. 16621 16622$as_echo "#define SEG_SIZ 1024" >>confdefs.h 16623 16624 16625$as_echo "#define FILE_TEXT_START N_TXTOFF(hdr)" >>confdefs.h 16626 16627 16628$as_echo "#define MEM_TEXT_START 0" >>confdefs.h 16629 16630 16631$as_echo "#define TEXT_LENGTH_ADJ 0" >>confdefs.h 16632 16633 16634 # Only relevant if "aout_format=coff": the system's pagesize. 16635 16636$as_echo "#define COFF_PAGESIZE 4096" >>confdefs.h 16637 16638 16639 # Only relevant if "aout_format=hp9k" and "load_obj=shl" 16640 16641$as_echo "#define HPSHLIB 1" >>confdefs.h 16642 16643 16644 # Print debug messages when dumping 16645 16646$as_echo "#define DEBUG_DUMP 1" >>confdefs.h 16647 16648 16649# Is the "termio" terminal interface supported by the system? If not, 16650# BSD-style tty handling will be used. 16651 16652$as_echo "#define TERMIO 1" >>confdefs.h 16653 16654 16655# flush_stdio and flush_tty indicate how clear-input/output-port can 16656# flush (purge) a FILE pointer and a TTY file descriptor. 16657# Possible values of flush_stdio: 16658# bsd assume old BSD-style FILE* (with _cnt, _ptr, _base) 16659# fpurge use 4.4BSD-style fpurge stdio library function 16660# Possible values of flush_tty: 16661# tiocflush use TIOCFLUSH ioctl from <sys/ioctl.h> 16662# tcflsh use TCFLSH ioctl from <termio.h> 16663# Leave the variable(s) empty if flushing is not supported. 16664for ac_func in fpurge 16665do : 16666 ac_fn_c_check_func "$LINENO" "fpurge" "ac_cv_func_fpurge" 16667if test "x$ac_cv_func_fpurge" = xyes; then : 16668 cat >>confdefs.h <<_ACEOF 16669#define HAVE_FPURGE 1 16670_ACEOF 16671 16672fi 16673done 16674 16675 16676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-style flushing" >&5 16677$as_echo_n "checking for BSD-style flushing... " >&6; } 16678if ${ac_cv_have_bsd_flush+:} false; then : 16679 $as_echo_n "(cached) " >&6 16680else 16681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16682/* end confdefs.h. */ 16683#include <stdio.h> 16684int 16685main () 16686{ 16687FILE *f; 16688 f->_cnt = 0; 16689 f->_ptr = f->_base; 16690 ; 16691 return 0; 16692} 16693_ACEOF 16694if ac_fn_c_try_compile "$LINENO"; then : 16695 ac_cv_have_bsd_flush=yes 16696else 16697 ac_cv_have_bsd_flush=no 16698fi 16699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16700fi 16701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_bsd_flush" >&5 16702$as_echo "$ac_cv_have_bsd_flush" >&6; } 16703if test "${ac_cv_have_bsd_flush}" = "yes"; then 16704 16705$as_echo "#define HAVE_BSD_FLUSH 1" >>confdefs.h 16706 16707fi 16708 16709for ac_header in termio.h termios.h 16710do : 16711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16712ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16713if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16714 cat >>confdefs.h <<_ACEOF 16715#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16716_ACEOF 16717 16718fi 16719 16720done 16721 16722 16723# The interpreter uses the getrlimit function to determine the maximum 16724# stack size of the running program. If this function is not supported, 16725# set max_stack_size to a (fixed) maximum stack size (in bytes). 16726for ac_func in getrlimit 16727do : 16728 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit" 16729if test "x$ac_cv_func_getrlimit" = xyes; then : 16730 cat >>confdefs.h <<_ACEOF 16731#define HAVE_GETRLIMIT 1 16732_ACEOF 16733 16734fi 16735done 16736 16737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rlimit" >&5 16738$as_echo_n "checking for struct rlimit... " >&6; } 16739if ${ac_cv_have_struct_rlimit+:} false; then : 16740 $as_echo_n "(cached) " >&6 16741else 16742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16743/* end confdefs.h. */ 16744#ifdef HAVE_SYS_TIME_H 16745 # include <sys/time.h> 16746 #endif 16747 #ifdef HAVE_SYS_RESOURCE_H 16748 # include <sys/resource.h> 16749 #endif 16750 #ifdef HAVE_UNISTD_H 16751 # include <unistd.h> 16752 #endif 16753int 16754main () 16755{ 16756struct rlimit rl; 16757 ; 16758 return 0; 16759} 16760_ACEOF 16761if ac_fn_c_try_compile "$LINENO"; then : 16762 ac_cv_have_struct_rlimit=yes 16763else 16764 ac_cv_have_struct_rlimit=no 16765fi 16766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16767fi 16768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_rlimit" >&5 16769$as_echo "$ac_cv_have_struct_rlimit" >&6; } 16770if test "${ac_cv_have_struct_rlimit}" = "yes"; then 16771 16772$as_echo "#define HAVE_STRUCT_RLIMIT 1" >>confdefs.h 16773 16774fi 16775 16776$as_echo "#define DEFAULT_MAX_STACK_SIZE 1024*1024" >>confdefs.h 16777 16778 16779# Is the mprotect system call supported? The generational garbage collector 16780# requires mprotect to implement incremental GC. $mprotect is ignored if 16781# generational_gc is set to "no" in the site file. Set mprotect=mmap if 16782# mprotect is supported, but only for mmap()ed memory. 16783for ac_func in mprotect 16784do : 16785 ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect" 16786if test "x$ac_cv_func_mprotect" = xyes; then : 16787 cat >>confdefs.h <<_ACEOF 16788#define HAVE_MPROTECT 1 16789_ACEOF 16790 16791fi 16792done 16793 16794if false; then 16795 16796$as_echo "#define MPROTECT_SIG 1" >>confdefs.h 16797 16798fi 16799if false; then 16800 16801$as_echo "#define MPROTECT_MMAP 1" >>confdefs.h 16802 16803fi 16804 16805# How can a SIGSEGV or SIGBUS signal handler find out the address of 16806# the faulting memory reference? This variable is only used if 16807# $mprotect is "yes" or "mmap". Possible values are: 16808# 16809# siginfo handler is called with siginfo_t structure (enabled 16810# by a call to sigaction) 16811# sigcontext address is in the sigcontext structure (3rd arg, sc_badvaddr) 16812# arg4 address is delivered to handler as argument #4 16813# aix use an AIX-specific hack to get hold of the bad address 16814# hpux use a HP-UX-specific hack 16815if false; then 16816 16817$as_echo "#define SIGSEGV_SIGINFO 1" >>confdefs.h 16818 16819fi 16820if false; then 16821 16822$as_echo "#define SIGSEGV_SIGCONTEXT 1" >>confdefs.h 16823 16824fi 16825if false; then 16826 16827$as_echo "#define SIGSEGV_ARG4 1" >>confdefs.h 16828 16829fi 16830if false; then 16831 16832$as_echo "#define SIGSEGV_AIX 1" >>confdefs.h 16833 16834fi 16835if false; then 16836 16837$as_echo "#define SIGSEGV_HPUX 1" >>confdefs.h 16838 16839fi 16840 16841# Does the system support the alloca library function, and does this 16842# function actually extend the stack? If in doubt, extract alloca.o 16843# from the C library and check if it contains the symbols malloc and free. 16844# If this is the case, forget it. 16845# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 16846# for constant arguments. Useless! 16847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 16848$as_echo_n "checking for working alloca.h... " >&6; } 16849if ${ac_cv_working_alloca_h+:} false; then : 16850 $as_echo_n "(cached) " >&6 16851else 16852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16853/* end confdefs.h. */ 16854#include <alloca.h> 16855int 16856main () 16857{ 16858char *p = (char *) alloca (2 * sizeof (int)); 16859 if (p) return 0; 16860 ; 16861 return 0; 16862} 16863_ACEOF 16864if ac_fn_c_try_link "$LINENO"; then : 16865 ac_cv_working_alloca_h=yes 16866else 16867 ac_cv_working_alloca_h=no 16868fi 16869rm -f core conftest.err conftest.$ac_objext \ 16870 conftest$ac_exeext conftest.$ac_ext 16871fi 16872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 16873$as_echo "$ac_cv_working_alloca_h" >&6; } 16874if test $ac_cv_working_alloca_h = yes; then 16875 16876$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 16877 16878fi 16879 16880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 16881$as_echo_n "checking for alloca... " >&6; } 16882if ${ac_cv_func_alloca_works+:} false; then : 16883 $as_echo_n "(cached) " >&6 16884else 16885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16886/* end confdefs.h. */ 16887#ifdef __GNUC__ 16888# define alloca __builtin_alloca 16889#else 16890# ifdef _MSC_VER 16891# include <malloc.h> 16892# define alloca _alloca 16893# else 16894# ifdef HAVE_ALLOCA_H 16895# include <alloca.h> 16896# else 16897# ifdef _AIX 16898 #pragma alloca 16899# else 16900# ifndef alloca /* predefined by HP cc +Olibcalls */ 16901void *alloca (size_t); 16902# endif 16903# endif 16904# endif 16905# endif 16906#endif 16907 16908int 16909main () 16910{ 16911char *p = (char *) alloca (1); 16912 if (p) return 0; 16913 ; 16914 return 0; 16915} 16916_ACEOF 16917if ac_fn_c_try_link "$LINENO"; then : 16918 ac_cv_func_alloca_works=yes 16919else 16920 ac_cv_func_alloca_works=no 16921fi 16922rm -f core conftest.err conftest.$ac_objext \ 16923 conftest$ac_exeext conftest.$ac_ext 16924fi 16925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 16926$as_echo "$ac_cv_func_alloca_works" >&6; } 16927 16928if test $ac_cv_func_alloca_works = yes; then 16929 16930$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 16931 16932else 16933 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 16934# that cause trouble. Some versions do not even contain alloca or 16935# contain a buggy version. If you still want to use their alloca, 16936# use ar to extract alloca.o from them instead of compiling alloca.c. 16937 16938ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 16939 16940$as_echo "#define C_ALLOCA 1" >>confdefs.h 16941 16942 16943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 16944$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 16945if ${ac_cv_os_cray+:} false; then : 16946 $as_echo_n "(cached) " >&6 16947else 16948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16949/* end confdefs.h. */ 16950#if defined CRAY && ! defined CRAY2 16951webecray 16952#else 16953wenotbecray 16954#endif 16955 16956_ACEOF 16957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16958 $EGREP "webecray" >/dev/null 2>&1; then : 16959 ac_cv_os_cray=yes 16960else 16961 ac_cv_os_cray=no 16962fi 16963rm -f conftest* 16964 16965fi 16966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 16967$as_echo "$ac_cv_os_cray" >&6; } 16968if test $ac_cv_os_cray = yes; then 16969 for ac_func in _getb67 GETB67 getb67; do 16970 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16971ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16972if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16973 16974cat >>confdefs.h <<_ACEOF 16975#define CRAY_STACKSEG_END $ac_func 16976_ACEOF 16977 16978 break 16979fi 16980 16981 done 16982fi 16983 16984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 16985$as_echo_n "checking stack direction for C alloca... " >&6; } 16986if ${ac_cv_c_stack_direction+:} false; then : 16987 $as_echo_n "(cached) " >&6 16988else 16989 if test "$cross_compiling" = yes; then : 16990 ac_cv_c_stack_direction=0 16991else 16992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16993/* end confdefs.h. */ 16994$ac_includes_default 16995int 16996find_stack_direction () 16997{ 16998 static char *addr = 0; 16999 auto char dummy; 17000 if (addr == 0) 17001 { 17002 addr = &dummy; 17003 return find_stack_direction (); 17004 } 17005 else 17006 return (&dummy > addr) ? 1 : -1; 17007} 17008 17009int 17010main () 17011{ 17012 return find_stack_direction () < 0; 17013} 17014_ACEOF 17015if ac_fn_c_try_run "$LINENO"; then : 17016 ac_cv_c_stack_direction=1 17017else 17018 ac_cv_c_stack_direction=-1 17019fi 17020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17021 conftest.$ac_objext conftest.beam conftest.$ac_ext 17022fi 17023 17024fi 17025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 17026$as_echo "$ac_cv_c_stack_direction" >&6; } 17027cat >>confdefs.h <<_ACEOF 17028#define STACK_DIRECTION $ac_cv_c_stack_direction 17029_ACEOF 17030 17031 17032fi 17033 17034 17035# Must <alloca.h> be included to use alloca? Is "#pragma alloca" required? 17036for ac_header in alloca.h 17037do : 17038 ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default" 17039if test "x$ac_cv_header_alloca_h" = xyes; then : 17040 cat >>confdefs.h <<_ACEOF 17041#define HAVE_ALLOCA_H 1 17042_ACEOF 17043 17044fi 17045 17046done 17047 17048if false; then 17049 17050$as_echo "#define PRAGMA_ALLOCA 1" >>confdefs.h 17051 17052fi 17053 17054# Does the system (or compiler) require certain objects (e.g. doubles) 17055# to be aligned at 8-byte boundaries? If not, 4-byte alignment will 17056# be assumed. 17057if false; then 17058 17059$as_echo "#define ALIGN_8BYTE 1" >>confdefs.h 17060 17061fi 17062 17063# The name of the linker. This is usually just "ld", or /usr/ccs/bin/ld 17064# in SVR4-based systems. 17065 17066$as_echo "#define LD_NAME \"ld\"" >>confdefs.h 17067 17068 17069# Does your C preprocessor support the ANSI-C ## operator, although 17070# __STDC__ is not defined? 17071 17072$as_echo "#define ANSI_CPP 1" >>confdefs.h 17073 17074 17075# Element type of the gidset argument of getgroups(); typically int 17076# or gid_t. Only needed by the UNIX extension. 17077 17078$as_echo "#define GETGROUPS_TYPE gid_t" >>confdefs.h 17079 17080 17081# Do you want to use the generational garbage collector? If not, the 17082# stop-and-copy garbage collector will be used. 17083 17084$as_echo "#define GENERATIONAL_GC 1" >>confdefs.h 17085 17086 17087# The default heap size of the Scheme interpreter in KBytes (if the 17088# stop-and-copy garbage collector is used). 17089 17090$as_echo "#define HEAP_SIZE 1024" >>confdefs.h 17091 17092 17093# The directory where all files are installed by running "make install". We 17094# cannot use AC_DEFINE_UNQUOTED here because ${prefix} is not set until the 17095# end of the configure script. Thanks to Phillip Rulon for spotting that. 17096CPPFLAGS="${CPPFLAGS} -DSCM_DIR=\"\\\"\$(prefix)/share/elk\\\"\"" 17097CPPFLAGS="${CPPFLAGS} -DLIB_DIR=\"\\\"\$(prefix)/lib/elk\\\"\"" 17098 17099#define FIND_AOUT defined(USE_LD) || defined(CAN_DUMP) || defined(INIT_OBJECTS) 17100 17101$as_echo "#define FIND_AOUT 1" >>confdefs.h 17102 17103 17104CFLAGS_save="${CFLAGS}" 17105LDFLAGS_save="${LDFLAGS}" 17106 17107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if \$CXX really works" >&5 17108$as_echo_n "checking if \$CXX really works... " >&6; } 17109if ${ac_cv_my_have_cxx+:} false; then : 17110 $as_echo_n "(cached) " >&6 17111else 17112 ac_ext=cpp 17113ac_cpp='$CXXCPP $CPPFLAGS' 17114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17117 17118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17119/* end confdefs.h. */ 17120 17121int 17122main () 17123{ 17124 17125 ; 17126 return 0; 17127} 17128_ACEOF 17129if ac_fn_cxx_try_compile "$LINENO"; then : 17130 ac_cv_my_have_cxx=yes 17131else 17132 ac_cv_my_have_cxx=no 17133fi 17134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17135 ac_ext=c 17136ac_cpp='$CPP $CPPFLAGS' 17137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17139ac_compiler_gnu=$ac_cv_c_compiler_gnu 17140 17141fi 17142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_my_have_cxx" >&5 17143$as_echo "$ac_cv_my_have_cxx" >&6; } 17144 if test "${ac_cv_my_have_cxx}" = "yes"; then 17145 HAVE_CXX_TRUE= 17146 HAVE_CXX_FALSE='#' 17147else 17148 HAVE_CXX_TRUE='#' 17149 HAVE_CXX_FALSE= 17150fi 17151 17152 17153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if \$CC accepts -Wall" >&5 17154$as_echo_n "checking if \$CC accepts -Wall... " >&6; } 17155if ${ac_cv_c_Wall+:} false; then : 17156 $as_echo_n "(cached) " >&6 17157else 17158 CFLAGS="-Wall ${CFLAGS_save}" 17159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17160/* end confdefs.h. */ 17161 17162int 17163main () 17164{ 17165 17166 ; 17167 return 0; 17168} 17169_ACEOF 17170if ac_fn_c_try_compile "$LINENO"; then : 17171 ac_cv_c_Wall=yes 17172else 17173 ac_cv_c_Wall=no 17174fi 17175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17176fi 17177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_Wall" >&5 17178$as_echo "$ac_cv_c_Wall" >&6; } 17179if test "x${ac_cv_c_Wall}" != "xno"; then 17180 CFLAGS_save="-Wall ${CFLAGS_save}" 17181fi 17182 17183# Code qui fait des warnings == code de porc == deux baffes dans ta gueule 17184CFLAGS_warn="-Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Wmissing-prototypes -Wnested-externs -Wsign-compare" 17185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if \$CC accepts ${CFLAGS_warn}" >&5 17186$as_echo_n "checking if \$CC accepts ${CFLAGS_warn}... " >&6; } 17187if ${ac_cv_c_Wwarn+:} false; then : 17188 $as_echo_n "(cached) " >&6 17189else 17190 CFLAGS="${CFLAGS_warn} ${CFLAGS_save}" 17191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17192/* end confdefs.h. */ 17193 17194int 17195main () 17196{ 17197 17198 ; 17199 return 0; 17200} 17201_ACEOF 17202if ac_fn_c_try_compile "$LINENO"; then : 17203 ac_cv_c_Wwarn=yes 17204else 17205 ac_cv_c_Wwarn=no 17206fi 17207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17208fi 17209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_Wwarn" >&5 17210$as_echo "$ac_cv_c_Wwarn" >&6; } 17211if test "x${ac_cv_c_Wwarn}" != "xno"; then 17212 CFLAGS_save="${CFLAGS_warn} ${CFLAGS_save}" 17213fi 17214 17215CFLAGS="${CFLAGS_save}" 17216LDFLAGS="${LDFLAGS_save}" 17217 17218 if false; then 17219 HAVE_MONITOR_TRUE= 17220 HAVE_MONITOR_FALSE='#' 17221else 17222 HAVE_MONITOR_TRUE='#' 17223 HAVE_MONITOR_FALSE= 17224fi 17225 17226 17227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 17228$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } 17229if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : 17230 $as_echo_n "(cached) " >&6 17231else 17232 ac_check_lib_save_LIBS=$LIBS 17233LIBS="-lgdbm $LIBS" 17234cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17235/* end confdefs.h. */ 17236 17237/* Override any GCC internal prototype to avoid an error. 17238 Use char because int might match the return type of a GCC 17239 builtin and then its argument prototype would still apply. */ 17240#ifdef __cplusplus 17241extern "C" 17242#endif 17243char gdbm_open (); 17244int 17245main () 17246{ 17247return gdbm_open (); 17248 ; 17249 return 0; 17250} 17251_ACEOF 17252if ac_fn_c_try_link "$LINENO"; then : 17253 ac_cv_lib_gdbm_gdbm_open=yes 17254else 17255 ac_cv_lib_gdbm_gdbm_open=no 17256fi 17257rm -f core conftest.err conftest.$ac_objext \ 17258 conftest$ac_exeext conftest.$ac_ext 17259LIBS=$ac_check_lib_save_LIBS 17260fi 17261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 17262$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } 17263if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : 17264 ac_cv_my_have_gdbm=yes 17265else 17266 ac_cv_my_have_gdbm=no 17267fi 17268 17269 if test "${ac_cv_my_have_gdbm}" = "yes"; then 17270 HAVE_GDBM_TRUE= 17271 HAVE_GDBM_FALSE='#' 17272else 17273 HAVE_GDBM_TRUE='#' 17274 HAVE_GDBM_FALSE= 17275fi 17276 17277 17278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 17279$as_echo_n "checking for X... " >&6; } 17280 17281 17282# Check whether --with-x was given. 17283if test "${with_x+set}" = set; then : 17284 withval=$with_x; 17285fi 17286 17287# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 17288if test "x$with_x" = xno; then 17289 # The user explicitly disabled X. 17290 have_x=disabled 17291else 17292 case $x_includes,$x_libraries in #( 17293 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 17294 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 17295 $as_echo_n "(cached) " >&6 17296else 17297 # One or both of the vars are not set, and there is no cached value. 17298ac_x_includes=no ac_x_libraries=no 17299rm -f -r conftest.dir 17300if mkdir conftest.dir; then 17301 cd conftest.dir 17302 cat >Imakefile <<'_ACEOF' 17303incroot: 17304 @echo incroot='${INCROOT}' 17305usrlibdir: 17306 @echo usrlibdir='${USRLIBDIR}' 17307libdir: 17308 @echo libdir='${LIBDIR}' 17309_ACEOF 17310 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 17311 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 17312 for ac_var in incroot usrlibdir libdir; do 17313 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 17314 done 17315 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 17316 for ac_extension in a so sl dylib la dll; do 17317 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 17318 test -f "$ac_im_libdir/libX11.$ac_extension"; then 17319 ac_im_usrlibdir=$ac_im_libdir; break 17320 fi 17321 done 17322 # Screen out bogus values from the imake configuration. They are 17323 # bogus both because they are the default anyway, and because 17324 # using them would break gcc on systems where it needs fixed includes. 17325 case $ac_im_incroot in 17326 /usr/include) ac_x_includes= ;; 17327 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 17328 esac 17329 case $ac_im_usrlibdir in 17330 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 17331 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 17332 esac 17333 fi 17334 cd .. 17335 rm -f -r conftest.dir 17336fi 17337 17338# Standard set of common directories for X headers. 17339# Check X11 before X11Rn because it is often a symlink to the current release. 17340ac_x_header_dirs=' 17341/usr/X11/include 17342/usr/X11R7/include 17343/usr/X11R6/include 17344/usr/X11R5/include 17345/usr/X11R4/include 17346 17347/usr/include/X11 17348/usr/include/X11R7 17349/usr/include/X11R6 17350/usr/include/X11R5 17351/usr/include/X11R4 17352 17353/usr/local/X11/include 17354/usr/local/X11R7/include 17355/usr/local/X11R6/include 17356/usr/local/X11R5/include 17357/usr/local/X11R4/include 17358 17359/usr/local/include/X11 17360/usr/local/include/X11R7 17361/usr/local/include/X11R6 17362/usr/local/include/X11R5 17363/usr/local/include/X11R4 17364 17365/usr/X386/include 17366/usr/x386/include 17367/usr/XFree86/include/X11 17368 17369/usr/include 17370/usr/local/include 17371/usr/unsupported/include 17372/usr/athena/include 17373/usr/local/x11r5/include 17374/usr/lpp/Xamples/include 17375 17376/usr/openwin/include 17377/usr/openwin/share/include' 17378 17379if test "$ac_x_includes" = no; then 17380 # Guess where to find include files, by looking for Xlib.h. 17381 # First, try using that file with no special directory specified. 17382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17383/* end confdefs.h. */ 17384#include <X11/Xlib.h> 17385_ACEOF 17386if ac_fn_c_try_cpp "$LINENO"; then : 17387 # We can compile using X headers with no special include directory. 17388ac_x_includes= 17389else 17390 for ac_dir in $ac_x_header_dirs; do 17391 if test -r "$ac_dir/X11/Xlib.h"; then 17392 ac_x_includes=$ac_dir 17393 break 17394 fi 17395done 17396fi 17397rm -f conftest.err conftest.i conftest.$ac_ext 17398fi # $ac_x_includes = no 17399 17400if test "$ac_x_libraries" = no; then 17401 # Check for the libraries. 17402 # See if we find them without any special options. 17403 # Don't add to $LIBS permanently. 17404 ac_save_LIBS=$LIBS 17405 LIBS="-lX11 $LIBS" 17406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17407/* end confdefs.h. */ 17408#include <X11/Xlib.h> 17409int 17410main () 17411{ 17412XrmInitialize () 17413 ; 17414 return 0; 17415} 17416_ACEOF 17417if ac_fn_c_try_link "$LINENO"; then : 17418 LIBS=$ac_save_LIBS 17419# We can link X programs with no special library path. 17420ac_x_libraries= 17421else 17422 LIBS=$ac_save_LIBS 17423for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 17424do 17425 # Don't even attempt the hair of trying to link an X program! 17426 for ac_extension in a so sl dylib la dll; do 17427 if test -r "$ac_dir/libX11.$ac_extension"; then 17428 ac_x_libraries=$ac_dir 17429 break 2 17430 fi 17431 done 17432done 17433fi 17434rm -f core conftest.err conftest.$ac_objext \ 17435 conftest$ac_exeext conftest.$ac_ext 17436fi # $ac_x_libraries = no 17437 17438case $ac_x_includes,$ac_x_libraries in #( 17439 no,* | *,no | *\'*) 17440 # Didn't find X, or a directory has "'" in its name. 17441 ac_cv_have_x="have_x=no";; #( 17442 *) 17443 # Record where we found X for the cache. 17444 ac_cv_have_x="have_x=yes\ 17445 ac_x_includes='$ac_x_includes'\ 17446 ac_x_libraries='$ac_x_libraries'" 17447esac 17448fi 17449;; #( 17450 *) have_x=yes;; 17451 esac 17452 eval "$ac_cv_have_x" 17453fi # $with_x != no 17454 17455if test "$have_x" != yes; then 17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 17457$as_echo "$have_x" >&6; } 17458 no_x=yes 17459else 17460 # If each of the values was on the command line, it overrides each guess. 17461 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 17462 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 17463 # Update the cache value to reflect the command line values. 17464 ac_cv_have_x="have_x=yes\ 17465 ac_x_includes='$x_includes'\ 17466 ac_x_libraries='$x_libraries'" 17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 17468$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 17469fi 17470 17471if test -n "${x_includes}"; then x_cflags="-I${x_includes}"; fi 17472if test -n "${x_libraries}"; then x_libs="-I${x_libraries}"; fi 17473 17474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5 17475$as_echo_n "checking for XOpenDisplay in -lX11... " >&6; } 17476if ${ac_cv_lib_X11_XOpenDisplay+:} false; then : 17477 $as_echo_n "(cached) " >&6 17478else 17479 ac_check_lib_save_LIBS=$LIBS 17480LIBS="-lX11 ${x_libs} $LIBS" 17481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17482/* end confdefs.h. */ 17483 17484/* Override any GCC internal prototype to avoid an error. 17485 Use char because int might match the return type of a GCC 17486 builtin and then its argument prototype would still apply. */ 17487#ifdef __cplusplus 17488extern "C" 17489#endif 17490char XOpenDisplay (); 17491int 17492main () 17493{ 17494return XOpenDisplay (); 17495 ; 17496 return 0; 17497} 17498_ACEOF 17499if ac_fn_c_try_link "$LINENO"; then : 17500 ac_cv_lib_X11_XOpenDisplay=yes 17501else 17502 ac_cv_lib_X11_XOpenDisplay=no 17503fi 17504rm -f core conftest.err conftest.$ac_objext \ 17505 conftest$ac_exeext conftest.$ac_ext 17506LIBS=$ac_check_lib_save_LIBS 17507fi 17508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5 17509$as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; } 17510if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then : 17511 ac_cv_my_have_x11=yes 17512 X_CFLAGS="${x_cflags}" 17513 X_LIBS="${x_libs} -lX11" 17514else 17515 ac_cv_my_have_x11=no 17516fi 17517 17518 if test "${ac_cv_my_have_x11}" = "yes"; then 17519 HAVE_X11_TRUE= 17520 HAVE_X11_FALSE='#' 17521else 17522 HAVE_X11_TRUE='#' 17523 HAVE_X11_FALSE= 17524fi 17525 17526 17527 17528 17529if test "${cross_compiling}" = "no"; then 17530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtFree in -lXt" >&5 17531$as_echo_n "checking for XtFree in -lXt... " >&6; } 17532if ${ac_cv_lib_Xt_XtFree+:} false; then : 17533 $as_echo_n "(cached) " >&6 17534else 17535 ac_check_lib_save_LIBS=$LIBS 17536LIBS="-lXt -lSM -lICE -lXext -lX11 ${x_libs} $LIBS" 17537cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17538/* end confdefs.h. */ 17539 17540/* Override any GCC internal prototype to avoid an error. 17541 Use char because int might match the return type of a GCC 17542 builtin and then its argument prototype would still apply. */ 17543#ifdef __cplusplus 17544extern "C" 17545#endif 17546char XtFree (); 17547int 17548main () 17549{ 17550return XtFree (); 17551 ; 17552 return 0; 17553} 17554_ACEOF 17555if ac_fn_c_try_link "$LINENO"; then : 17556 ac_cv_lib_Xt_XtFree=yes 17557else 17558 ac_cv_lib_Xt_XtFree=no 17559fi 17560rm -f core conftest.err conftest.$ac_objext \ 17561 conftest$ac_exeext conftest.$ac_ext 17562LIBS=$ac_check_lib_save_LIBS 17563fi 17564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtFree" >&5 17565$as_echo "$ac_cv_lib_Xt_XtFree" >&6; } 17566if test "x$ac_cv_lib_Xt_XtFree" = xyes; then : 17567 ac_cv_my_have_xt=yes 17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuDrawLogo in -lXmu" >&5 17569$as_echo_n "checking for XmuDrawLogo in -lXmu... " >&6; } 17570if ${ac_cv_lib_Xmu_XmuDrawLogo+:} false; then : 17571 $as_echo_n "(cached) " >&6 17572else 17573 ac_check_lib_save_LIBS=$LIBS 17574LIBS="-lXmu -lXt -lSM -lICE -lXext -lX11 ${x_libs} $LIBS" 17575cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17576/* end confdefs.h. */ 17577 17578/* Override any GCC internal prototype to avoid an error. 17579 Use char because int might match the return type of a GCC 17580 builtin and then its argument prototype would still apply. */ 17581#ifdef __cplusplus 17582extern "C" 17583#endif 17584char XmuDrawLogo (); 17585int 17586main () 17587{ 17588return XmuDrawLogo (); 17589 ; 17590 return 0; 17591} 17592_ACEOF 17593if ac_fn_c_try_link "$LINENO"; then : 17594 ac_cv_lib_Xmu_XmuDrawLogo=yes 17595else 17596 ac_cv_lib_Xmu_XmuDrawLogo=no 17597fi 17598rm -f core conftest.err conftest.$ac_objext \ 17599 conftest$ac_exeext conftest.$ac_ext 17600LIBS=$ac_check_lib_save_LIBS 17601fi 17602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuDrawLogo" >&5 17603$as_echo "$ac_cv_lib_Xmu_XmuDrawLogo" >&6; } 17604if test "x$ac_cv_lib_Xmu_XmuDrawLogo" = xyes; then : 17605 XT_CFLAGS="${x_cflags}" 17606 XT_LIBS="${x_libs} -lXmu -lXt -lSM -lICE -lXext -lX11" 17607else 17608 XT_CFLAGS="${x_cflags}" 17609 XT_LIBS="${x_libs} -lXt -lSM -lICE -lXext -lX11" 17610fi 17611 17612else 17613 ac_cv_my_have_xt=no 17614fi 17615 17616else 17617 ac_cv_my_have_xt=no 17618fi 17619 if test "${ac_cv_my_have_xt}" = "yes"; then 17620 HAVE_XT_TRUE= 17621 HAVE_XT_FALSE='#' 17622else 17623 HAVE_XT_TRUE='#' 17624 HAVE_XT_FALSE= 17625fi 17626 17627 17628 17629 17630if test "${cross_compiling}" = "no"; then 17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawTextSearch in -lXaw" >&5 17632$as_echo_n "checking for XawTextSearch in -lXaw... " >&6; } 17633if ${ac_cv_lib_Xaw_XawTextSearch+:} false; then : 17634 $as_echo_n "(cached) " >&6 17635else 17636 ac_check_lib_save_LIBS=$LIBS 17637LIBS="-lXaw ${XT_LIBS} $LIBS" 17638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17639/* end confdefs.h. */ 17640 17641/* Override any GCC internal prototype to avoid an error. 17642 Use char because int might match the return type of a GCC 17643 builtin and then its argument prototype would still apply. */ 17644#ifdef __cplusplus 17645extern "C" 17646#endif 17647char XawTextSearch (); 17648int 17649main () 17650{ 17651return XawTextSearch (); 17652 ; 17653 return 0; 17654} 17655_ACEOF 17656if ac_fn_c_try_link "$LINENO"; then : 17657 ac_cv_lib_Xaw_XawTextSearch=yes 17658else 17659 ac_cv_lib_Xaw_XawTextSearch=no 17660fi 17661rm -f core conftest.err conftest.$ac_objext \ 17662 conftest$ac_exeext conftest.$ac_ext 17663LIBS=$ac_check_lib_save_LIBS 17664fi 17665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw_XawTextSearch" >&5 17666$as_echo "$ac_cv_lib_Xaw_XawTextSearch" >&6; } 17667if test "x$ac_cv_lib_Xaw_XawTextSearch" = xyes; then : 17668 ac_cv_my_have_xaw=yes 17669 XAW_CFLAGS="${x_cflags}" 17670 XAW_LIBS="${x_libs} -lXaw ${XT_LIBS}" 17671else 17672 ac_cv_my_have_xaw=no 17673fi 17674 17675else 17676 ac_cv_my_have_xaw="no (cross-compiling)" 17677fi 17678 if test "${ac_cv_my_have_xaw}" = "yes"; then 17679 HAVE_XAW_TRUE= 17680 HAVE_XAW_FALSE='#' 17681else 17682 HAVE_XAW_TRUE='#' 17683 HAVE_XAW_FALSE= 17684fi 17685 17686 17687 17688 17689if test "${cross_compiling}" = "no"; then 17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmStringConcat in -lXm" >&5 17691$as_echo_n "checking for XmStringConcat in -lXm... " >&6; } 17692if ${ac_cv_lib_Xm_XmStringConcat+:} false; then : 17693 $as_echo_n "(cached) " >&6 17694else 17695 ac_check_lib_save_LIBS=$LIBS 17696LIBS="-lXm ${XT_LIBS} $LIBS" 17697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17698/* end confdefs.h. */ 17699 17700/* Override any GCC internal prototype to avoid an error. 17701 Use char because int might match the return type of a GCC 17702 builtin and then its argument prototype would still apply. */ 17703#ifdef __cplusplus 17704extern "C" 17705#endif 17706char XmStringConcat (); 17707int 17708main () 17709{ 17710return XmStringConcat (); 17711 ; 17712 return 0; 17713} 17714_ACEOF 17715if ac_fn_c_try_link "$LINENO"; then : 17716 ac_cv_lib_Xm_XmStringConcat=yes 17717else 17718 ac_cv_lib_Xm_XmStringConcat=no 17719fi 17720rm -f core conftest.err conftest.$ac_objext \ 17721 conftest$ac_exeext conftest.$ac_ext 17722LIBS=$ac_check_lib_save_LIBS 17723fi 17724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_XmStringConcat" >&5 17725$as_echo "$ac_cv_lib_Xm_XmStringConcat" >&6; } 17726if test "x$ac_cv_lib_Xm_XmStringConcat" = xyes; then : 17727 ac_cv_my_have_motif=yes 17728 MOTIF_CFLAGS="${x_cflags} -I/usr/include/Xm" 17729 MOTIF_LIBS="${x_libs} -lXm ${XT_LIBS}" 17730else 17731 ac_cv_my_have_motif=no 17732fi 17733 17734else 17735 ac_cv_my_have_motif="no (cross-compiling)" 17736fi 17737 if test "${ac_cv_my_have_motif}" = "yes"; then 17738 HAVE_MOTIF_TRUE= 17739 HAVE_MOTIF_FALSE='#' 17740else 17741 HAVE_MOTIF_TRUE='#' 17742 HAVE_MOTIF_FALSE= 17743fi 17744 17745 17746 17747 17748INCLUDES="${INCLUDES} -I\$(top_srcdir)/include -I\$(top_builddir)/include" 17749 17750 17751 17752 17753 17754 17755for ac_prog in gawk mawk nawk awk 17756do 17757 # Extract the first word of "$ac_prog", so it can be a program name with args. 17758set dummy $ac_prog; ac_word=$2 17759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17760$as_echo_n "checking for $ac_word... " >&6; } 17761if ${ac_cv_prog_AWK+:} false; then : 17762 $as_echo_n "(cached) " >&6 17763else 17764 if test -n "$AWK"; then 17765 ac_cv_prog_AWK="$AWK" # Let the user override the test. 17766else 17767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17768for as_dir in $PATH 17769do 17770 IFS=$as_save_IFS 17771 test -z "$as_dir" && as_dir=. 17772 for ac_exec_ext in '' $ac_executable_extensions; do 17773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17774 ac_cv_prog_AWK="$ac_prog" 17775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17776 break 2 17777 fi 17778done 17779 done 17780IFS=$as_save_IFS 17781 17782fi 17783fi 17784AWK=$ac_cv_prog_AWK 17785if test -n "$AWK"; then 17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 17787$as_echo "$AWK" >&6; } 17788else 17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17790$as_echo "no" >&6; } 17791fi 17792 17793 17794 test -n "$AWK" && break 17795done 17796 17797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for groff -ms" >&5 17798$as_echo_n "checking for groff -ms... " >&6; } 17799if echo foo | groff -ms >/dev/null 2>&1; then 17800 ac_cv_my_have_groff=yes 17801else 17802 ac_cv_my_have_groff=no 17803fi 17804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_my_have_groff}" >&5 17805$as_echo "${ac_cv_my_have_groff}" >&6; } 17806 if test "${ac_cv_my_have_groff}" = "yes"; then 17807 HAVE_GROFF_TRUE= 17808 HAVE_GROFF_FALSE='#' 17809else 17810 HAVE_GROFF_TRUE='#' 17811 HAVE_GROFF_FALSE= 17812fi 17813 17814 17815 17816ac_config_files="$ac_config_files Makefile doc/Makefile doc/bitstring/Makefile doc/cprog/Makefile doc/kernel/Makefile doc/man/Makefile doc/oops/Makefile doc/record/Makefile doc/regexp/Makefile doc/unix/Makefile doc/usenix/Makefile doc/util/Makefile doc/xlib/Makefile doc/xt/Makefile examples/Makefile include/Makefile lib/Makefile lib/misc/Makefile lib/unix/Makefile lib/xlib/Makefile lib/xwidgets/Makefile lib/xwidgets/xaw/Makefile lib/xwidgets/motif/Makefile scm/Makefile src/Makefile test/Makefile" 17817 17818ac_config_files="$ac_config_files scm/slib.scm include/site.h" 17819 17820ac_config_files="$ac_config_files test/check-gc" 17821 17822ac_config_files="$ac_config_files test/check-gc2" 17823 17824ac_config_files="$ac_config_files test/check-r4rs" 17825 17826 17827cat >confcache <<\_ACEOF 17828# This file is a shell script that caches the results of configure 17829# tests run on this system so they can be shared between configure 17830# scripts and configure runs, see configure's option --config-cache. 17831# It is not useful on other systems. If it contains results you don't 17832# want to keep, you may remove or edit it. 17833# 17834# config.status only pays attention to the cache file if you give it 17835# the --recheck option to rerun configure. 17836# 17837# `ac_cv_env_foo' variables (set or unset) will be overridden when 17838# loading this file, other *unset* `ac_cv_foo' will be assigned the 17839# following values. 17840 17841_ACEOF 17842 17843# The following way of writing the cache mishandles newlines in values, 17844# but we know of no workaround that is simple, portable, and efficient. 17845# So, we kill variables containing newlines. 17846# Ultrix sh set writes to stderr and can't be redirected directly, 17847# and sets the high bit in the cache file unless we assign to the vars. 17848( 17849 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17850 eval ac_val=\$$ac_var 17851 case $ac_val in #( 17852 *${as_nl}*) 17853 case $ac_var in #( 17854 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17855$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17856 esac 17857 case $ac_var in #( 17858 _ | IFS | as_nl) ;; #( 17859 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17860 *) { eval $ac_var=; unset $ac_var;} ;; 17861 esac ;; 17862 esac 17863 done 17864 17865 (set) 2>&1 | 17866 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17867 *${as_nl}ac_space=\ *) 17868 # `set' does not quote correctly, so add quotes: double-quote 17869 # substitution turns \\\\ into \\, and sed turns \\ into \. 17870 sed -n \ 17871 "s/'/'\\\\''/g; 17872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17873 ;; #( 17874 *) 17875 # `set' quotes correctly as required by POSIX, so do not add quotes. 17876 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17877 ;; 17878 esac | 17879 sort 17880) | 17881 sed ' 17882 /^ac_cv_env_/b end 17883 t clear 17884 :clear 17885 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17886 t end 17887 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17888 :end' >>confcache 17889if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17890 if test -w "$cache_file"; then 17891 if test "x$cache_file" != "x/dev/null"; then 17892 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17893$as_echo "$as_me: updating cache $cache_file" >&6;} 17894 if test ! -f "$cache_file" || test -h "$cache_file"; then 17895 cat confcache >"$cache_file" 17896 else 17897 case $cache_file in #( 17898 */* | ?:*) 17899 mv -f confcache "$cache_file"$$ && 17900 mv -f "$cache_file"$$ "$cache_file" ;; #( 17901 *) 17902 mv -f confcache "$cache_file" ;; 17903 esac 17904 fi 17905 fi 17906 else 17907 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17908$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17909 fi 17910fi 17911rm -f confcache 17912 17913test "x$prefix" = xNONE && prefix=$ac_default_prefix 17914# Let make expand exec_prefix. 17915test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17916 17917DEFS=-DHAVE_CONFIG_H 17918 17919ac_libobjs= 17920ac_ltlibobjs= 17921U= 17922for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17923 # 1. Remove the extension, and $U if already installed. 17924 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17925 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17926 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17927 # will be set to the directory where LIBOBJS objects are built. 17928 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17929 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17930done 17931LIBOBJS=$ac_libobjs 17932 17933LTLIBOBJS=$ac_ltlibobjs 17934 17935 17936 if test -n "$EXEEXT"; then 17937 am__EXEEXT_TRUE= 17938 am__EXEEXT_FALSE='#' 17939else 17940 am__EXEEXT_TRUE='#' 17941 am__EXEEXT_FALSE= 17942fi 17943 17944if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17945 as_fn_error $? "conditional \"AMDEP\" was never defined. 17946Usually this means the macro was only invoked conditionally." "$LINENO" 5 17947fi 17948if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17949 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17950Usually this means the macro was only invoked conditionally." "$LINENO" 5 17951fi 17952if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17953 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17954Usually this means the macro was only invoked conditionally." "$LINENO" 5 17955fi 17956if test -z "${NATIVE_BUILD_TRUE}" && test -z "${NATIVE_BUILD_FALSE}"; then 17957 as_fn_error $? "conditional \"NATIVE_BUILD\" was never defined. 17958Usually this means the macro was only invoked conditionally." "$LINENO" 5 17959fi 17960if test -z "${HAVE_LIBELF_TRUE}" && test -z "${HAVE_LIBELF_FALSE}"; then 17961 as_fn_error $? "conditional \"HAVE_LIBELF\" was never defined. 17962Usually this means the macro was only invoked conditionally." "$LINENO" 5 17963fi 17964if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then 17965 as_fn_error $? "conditional \"HAVE_CXX\" was never defined. 17966Usually this means the macro was only invoked conditionally." "$LINENO" 5 17967fi 17968if test -z "${HAVE_MONITOR_TRUE}" && test -z "${HAVE_MONITOR_FALSE}"; then 17969 as_fn_error $? "conditional \"HAVE_MONITOR\" was never defined. 17970Usually this means the macro was only invoked conditionally." "$LINENO" 5 17971fi 17972if test -z "${HAVE_GDBM_TRUE}" && test -z "${HAVE_GDBM_FALSE}"; then 17973 as_fn_error $? "conditional \"HAVE_GDBM\" was never defined. 17974Usually this means the macro was only invoked conditionally." "$LINENO" 5 17975fi 17976if test -z "${HAVE_X11_TRUE}" && test -z "${HAVE_X11_FALSE}"; then 17977 as_fn_error $? "conditional \"HAVE_X11\" was never defined. 17978Usually this means the macro was only invoked conditionally." "$LINENO" 5 17979fi 17980if test -z "${HAVE_XT_TRUE}" && test -z "${HAVE_XT_FALSE}"; then 17981 as_fn_error $? "conditional \"HAVE_XT\" was never defined. 17982Usually this means the macro was only invoked conditionally." "$LINENO" 5 17983fi 17984if test -z "${HAVE_XAW_TRUE}" && test -z "${HAVE_XAW_FALSE}"; then 17985 as_fn_error $? "conditional \"HAVE_XAW\" was never defined. 17986Usually this means the macro was only invoked conditionally." "$LINENO" 5 17987fi 17988if test -z "${HAVE_MOTIF_TRUE}" && test -z "${HAVE_MOTIF_FALSE}"; then 17989 as_fn_error $? "conditional \"HAVE_MOTIF\" was never defined. 17990Usually this means the macro was only invoked conditionally." "$LINENO" 5 17991fi 17992if test -z "${HAVE_GROFF_TRUE}" && test -z "${HAVE_GROFF_FALSE}"; then 17993 as_fn_error $? "conditional \"HAVE_GROFF\" was never defined. 17994Usually this means the macro was only invoked conditionally." "$LINENO" 5 17995fi 17996 17997: "${CONFIG_STATUS=./config.status}" 17998ac_write_fail=0 17999ac_clean_files_save=$ac_clean_files 18000ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18001{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18002$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18003as_write_fail=0 18004cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18005#! $SHELL 18006# Generated by $as_me. 18007# Run this file to recreate the current configuration. 18008# Compiler output produced by configure, useful for debugging 18009# configure, is in config.log if it exists. 18010 18011debug=false 18012ac_cs_recheck=false 18013ac_cs_silent=false 18014 18015SHELL=\${CONFIG_SHELL-$SHELL} 18016export SHELL 18017_ASEOF 18018cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18019## -------------------- ## 18020## M4sh Initialization. ## 18021## -------------------- ## 18022 18023# Be more Bourne compatible 18024DUALCASE=1; export DUALCASE # for MKS sh 18025if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18026 emulate sh 18027 NULLCMD=: 18028 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18029 # is contrary to our usage. Disable this feature. 18030 alias -g '${1+"$@"}'='"$@"' 18031 setopt NO_GLOB_SUBST 18032else 18033 case `(set -o) 2>/dev/null` in #( 18034 *posix*) : 18035 set -o posix ;; #( 18036 *) : 18037 ;; 18038esac 18039fi 18040 18041 18042as_nl=' 18043' 18044export as_nl 18045# Printing a long string crashes Solaris 7 /usr/bin/printf. 18046as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18047as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18048as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18049# Prefer a ksh shell builtin over an external printf program on Solaris, 18050# but without wasting forks for bash or zsh. 18051if test -z "$BASH_VERSION$ZSH_VERSION" \ 18052 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18053 as_echo='print -r --' 18054 as_echo_n='print -rn --' 18055elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18056 as_echo='printf %s\n' 18057 as_echo_n='printf %s' 18058else 18059 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18060 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18061 as_echo_n='/usr/ucb/echo -n' 18062 else 18063 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18064 as_echo_n_body='eval 18065 arg=$1; 18066 case $arg in #( 18067 *"$as_nl"*) 18068 expr "X$arg" : "X\\(.*\\)$as_nl"; 18069 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18070 esac; 18071 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18072 ' 18073 export as_echo_n_body 18074 as_echo_n='sh -c $as_echo_n_body as_echo' 18075 fi 18076 export as_echo_body 18077 as_echo='sh -c $as_echo_body as_echo' 18078fi 18079 18080# The user is always right. 18081if test "${PATH_SEPARATOR+set}" != set; then 18082 PATH_SEPARATOR=: 18083 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18084 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18085 PATH_SEPARATOR=';' 18086 } 18087fi 18088 18089 18090# IFS 18091# We need space, tab and new line, in precisely that order. Quoting is 18092# there to prevent editors from complaining about space-tab. 18093# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18094# splitting by setting IFS to empty value.) 18095IFS=" "" $as_nl" 18096 18097# Find who we are. Look in the path if we contain no directory separator. 18098as_myself= 18099case $0 in #(( 18100 *[\\/]* ) as_myself=$0 ;; 18101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18102for as_dir in $PATH 18103do 18104 IFS=$as_save_IFS 18105 test -z "$as_dir" && as_dir=. 18106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18107 done 18108IFS=$as_save_IFS 18109 18110 ;; 18111esac 18112# We did not find ourselves, most probably we were run as `sh COMMAND' 18113# in which case we are not to be found in the path. 18114if test "x$as_myself" = x; then 18115 as_myself=$0 18116fi 18117if test ! -f "$as_myself"; then 18118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18119 exit 1 18120fi 18121 18122# Unset variables that we do not need and which cause bugs (e.g. in 18123# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18124# suppresses any "Segmentation fault" message there. '((' could 18125# trigger a bug in pdksh 5.2.14. 18126for as_var in BASH_ENV ENV MAIL MAILPATH 18127do eval test x\${$as_var+set} = xset \ 18128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18129done 18130PS1='$ ' 18131PS2='> ' 18132PS4='+ ' 18133 18134# NLS nuisances. 18135LC_ALL=C 18136export LC_ALL 18137LANGUAGE=C 18138export LANGUAGE 18139 18140# CDPATH. 18141(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18142 18143 18144# as_fn_error STATUS ERROR [LINENO LOG_FD] 18145# ---------------------------------------- 18146# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18147# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18148# script with STATUS, using 1 if that was 0. 18149as_fn_error () 18150{ 18151 as_status=$1; test $as_status -eq 0 && as_status=1 18152 if test "$4"; then 18153 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18154 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18155 fi 18156 $as_echo "$as_me: error: $2" >&2 18157 as_fn_exit $as_status 18158} # as_fn_error 18159 18160 18161# as_fn_set_status STATUS 18162# ----------------------- 18163# Set $? to STATUS, without forking. 18164as_fn_set_status () 18165{ 18166 return $1 18167} # as_fn_set_status 18168 18169# as_fn_exit STATUS 18170# ----------------- 18171# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18172as_fn_exit () 18173{ 18174 set +e 18175 as_fn_set_status $1 18176 exit $1 18177} # as_fn_exit 18178 18179# as_fn_unset VAR 18180# --------------- 18181# Portably unset VAR. 18182as_fn_unset () 18183{ 18184 { eval $1=; unset $1;} 18185} 18186as_unset=as_fn_unset 18187# as_fn_append VAR VALUE 18188# ---------------------- 18189# Append the text in VALUE to the end of the definition contained in VAR. Take 18190# advantage of any shell optimizations that allow amortized linear growth over 18191# repeated appends, instead of the typical quadratic growth present in naive 18192# implementations. 18193if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18194 eval 'as_fn_append () 18195 { 18196 eval $1+=\$2 18197 }' 18198else 18199 as_fn_append () 18200 { 18201 eval $1=\$$1\$2 18202 } 18203fi # as_fn_append 18204 18205# as_fn_arith ARG... 18206# ------------------ 18207# Perform arithmetic evaluation on the ARGs, and store the result in the 18208# global $as_val. Take advantage of shells that can avoid forks. The arguments 18209# must be portable across $(()) and expr. 18210if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18211 eval 'as_fn_arith () 18212 { 18213 as_val=$(( $* )) 18214 }' 18215else 18216 as_fn_arith () 18217 { 18218 as_val=`expr "$@" || test $? -eq 1` 18219 } 18220fi # as_fn_arith 18221 18222 18223if expr a : '\(a\)' >/dev/null 2>&1 && 18224 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18225 as_expr=expr 18226else 18227 as_expr=false 18228fi 18229 18230if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18231 as_basename=basename 18232else 18233 as_basename=false 18234fi 18235 18236if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18237 as_dirname=dirname 18238else 18239 as_dirname=false 18240fi 18241 18242as_me=`$as_basename -- "$0" || 18243$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18244 X"$0" : 'X\(//\)$' \| \ 18245 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18246$as_echo X/"$0" | 18247 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18248 s//\1/ 18249 q 18250 } 18251 /^X\/\(\/\/\)$/{ 18252 s//\1/ 18253 q 18254 } 18255 /^X\/\(\/\).*/{ 18256 s//\1/ 18257 q 18258 } 18259 s/.*/./; q'` 18260 18261# Avoid depending upon Character Ranges. 18262as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18263as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18264as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18265as_cr_digits='0123456789' 18266as_cr_alnum=$as_cr_Letters$as_cr_digits 18267 18268ECHO_C= ECHO_N= ECHO_T= 18269case `echo -n x` in #((((( 18270-n*) 18271 case `echo 'xy\c'` in 18272 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18273 xy) ECHO_C='\c';; 18274 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18275 ECHO_T=' ';; 18276 esac;; 18277*) 18278 ECHO_N='-n';; 18279esac 18280 18281rm -f conf$$ conf$$.exe conf$$.file 18282if test -d conf$$.dir; then 18283 rm -f conf$$.dir/conf$$.file 18284else 18285 rm -f conf$$.dir 18286 mkdir conf$$.dir 2>/dev/null 18287fi 18288if (echo >conf$$.file) 2>/dev/null; then 18289 if ln -s conf$$.file conf$$ 2>/dev/null; then 18290 as_ln_s='ln -s' 18291 # ... but there are two gotchas: 18292 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18293 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18294 # In both cases, we have to default to `cp -p'. 18295 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18296 as_ln_s='cp -p' 18297 elif ln conf$$.file conf$$ 2>/dev/null; then 18298 as_ln_s=ln 18299 else 18300 as_ln_s='cp -p' 18301 fi 18302else 18303 as_ln_s='cp -p' 18304fi 18305rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18306rmdir conf$$.dir 2>/dev/null 18307 18308 18309# as_fn_mkdir_p 18310# ------------- 18311# Create "$as_dir" as a directory, including parents if necessary. 18312as_fn_mkdir_p () 18313{ 18314 18315 case $as_dir in #( 18316 -*) as_dir=./$as_dir;; 18317 esac 18318 test -d "$as_dir" || eval $as_mkdir_p || { 18319 as_dirs= 18320 while :; do 18321 case $as_dir in #( 18322 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18323 *) as_qdir=$as_dir;; 18324 esac 18325 as_dirs="'$as_qdir' $as_dirs" 18326 as_dir=`$as_dirname -- "$as_dir" || 18327$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18328 X"$as_dir" : 'X\(//\)[^/]' \| \ 18329 X"$as_dir" : 'X\(//\)$' \| \ 18330 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18331$as_echo X"$as_dir" | 18332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18333 s//\1/ 18334 q 18335 } 18336 /^X\(\/\/\)[^/].*/{ 18337 s//\1/ 18338 q 18339 } 18340 /^X\(\/\/\)$/{ 18341 s//\1/ 18342 q 18343 } 18344 /^X\(\/\).*/{ 18345 s//\1/ 18346 q 18347 } 18348 s/.*/./; q'` 18349 test -d "$as_dir" && break 18350 done 18351 test -z "$as_dirs" || eval "mkdir $as_dirs" 18352 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18353 18354 18355} # as_fn_mkdir_p 18356if mkdir -p . 2>/dev/null; then 18357 as_mkdir_p='mkdir -p "$as_dir"' 18358else 18359 test -d ./-p && rmdir ./-p 18360 as_mkdir_p=false 18361fi 18362 18363if test -x / >/dev/null 2>&1; then 18364 as_test_x='test -x' 18365else 18366 if ls -dL / >/dev/null 2>&1; then 18367 as_ls_L_option=L 18368 else 18369 as_ls_L_option= 18370 fi 18371 as_test_x=' 18372 eval sh -c '\'' 18373 if test -d "$1"; then 18374 test -d "$1/."; 18375 else 18376 case $1 in #( 18377 -*)set "./$1";; 18378 esac; 18379 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18380 ???[sx]*):;;*)false;;esac;fi 18381 '\'' sh 18382 ' 18383fi 18384as_executable_p=$as_test_x 18385 18386# Sed expression to map a string onto a valid CPP name. 18387as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18388 18389# Sed expression to map a string onto a valid variable name. 18390as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18391 18392 18393exec 6>&1 18394## ----------------------------------- ## 18395## Main body of $CONFIG_STATUS script. ## 18396## ----------------------------------- ## 18397_ASEOF 18398test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18399 18400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18401# Save the log message, to keep $0 and so on meaningful, and to 18402# report actual input values of CONFIG_FILES etc. instead of their 18403# values after options handling. 18404ac_log=" 18405This file was extended by $as_me, which was 18406generated by GNU Autoconf 2.68. Invocation command line was 18407 18408 CONFIG_FILES = $CONFIG_FILES 18409 CONFIG_HEADERS = $CONFIG_HEADERS 18410 CONFIG_LINKS = $CONFIG_LINKS 18411 CONFIG_COMMANDS = $CONFIG_COMMANDS 18412 $ $0 $@ 18413 18414on `(hostname || uname -n) 2>/dev/null | sed 1q` 18415" 18416 18417_ACEOF 18418 18419case $ac_config_files in *" 18420"*) set x $ac_config_files; shift; ac_config_files=$*;; 18421esac 18422 18423case $ac_config_headers in *" 18424"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18425esac 18426 18427 18428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18429# Files that config.status was made for. 18430config_files="$ac_config_files" 18431config_headers="$ac_config_headers" 18432config_commands="$ac_config_commands" 18433 18434_ACEOF 18435 18436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18437ac_cs_usage="\ 18438\`$as_me' instantiates files and other configuration actions 18439from templates according to the current configuration. Unless the files 18440and actions are specified as TAGs, all are instantiated by default. 18441 18442Usage: $0 [OPTION]... [TAG]... 18443 18444 -h, --help print this help, then exit 18445 -V, --version print version number and configuration settings, then exit 18446 --config print configuration, then exit 18447 -q, --quiet, --silent 18448 do not print progress messages 18449 -d, --debug don't remove temporary files 18450 --recheck update $as_me by reconfiguring in the same conditions 18451 --file=FILE[:TEMPLATE] 18452 instantiate the configuration file FILE 18453 --header=FILE[:TEMPLATE] 18454 instantiate the configuration header FILE 18455 18456Configuration files: 18457$config_files 18458 18459Configuration headers: 18460$config_headers 18461 18462Configuration commands: 18463$config_commands 18464 18465Report bugs to the package provider." 18466 18467_ACEOF 18468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18469ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18470ac_cs_version="\\ 18471config.status 18472configured by $0, generated by GNU Autoconf 2.68, 18473 with options \\"\$ac_cs_config\\" 18474 18475Copyright (C) 2010 Free Software Foundation, Inc. 18476This config.status script is free software; the Free Software Foundation 18477gives unlimited permission to copy, distribute and modify it." 18478 18479ac_pwd='$ac_pwd' 18480srcdir='$srcdir' 18481INSTALL='$INSTALL' 18482MKDIR_P='$MKDIR_P' 18483AWK='$AWK' 18484test -n "\$AWK" || AWK=awk 18485_ACEOF 18486 18487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18488# The default lists apply if the user does not specify any file. 18489ac_need_defaults=: 18490while test $# != 0 18491do 18492 case $1 in 18493 --*=?*) 18494 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18495 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18496 ac_shift=: 18497 ;; 18498 --*=) 18499 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18500 ac_optarg= 18501 ac_shift=: 18502 ;; 18503 *) 18504 ac_option=$1 18505 ac_optarg=$2 18506 ac_shift=shift 18507 ;; 18508 esac 18509 18510 case $ac_option in 18511 # Handling of the options. 18512 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18513 ac_cs_recheck=: ;; 18514 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18515 $as_echo "$ac_cs_version"; exit ;; 18516 --config | --confi | --conf | --con | --co | --c ) 18517 $as_echo "$ac_cs_config"; exit ;; 18518 --debug | --debu | --deb | --de | --d | -d ) 18519 debug=: ;; 18520 --file | --fil | --fi | --f ) 18521 $ac_shift 18522 case $ac_optarg in 18523 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18524 '') as_fn_error $? "missing file argument" ;; 18525 esac 18526 as_fn_append CONFIG_FILES " '$ac_optarg'" 18527 ac_need_defaults=false;; 18528 --header | --heade | --head | --hea ) 18529 $ac_shift 18530 case $ac_optarg in 18531 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18532 esac 18533 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18534 ac_need_defaults=false;; 18535 --he | --h) 18536 # Conflict between --help and --header 18537 as_fn_error $? "ambiguous option: \`$1' 18538Try \`$0 --help' for more information.";; 18539 --help | --hel | -h ) 18540 $as_echo "$ac_cs_usage"; exit ;; 18541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18542 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18543 ac_cs_silent=: ;; 18544 18545 # This is an error. 18546 -*) as_fn_error $? "unrecognized option: \`$1' 18547Try \`$0 --help' for more information." ;; 18548 18549 *) as_fn_append ac_config_targets " $1" 18550 ac_need_defaults=false ;; 18551 18552 esac 18553 shift 18554done 18555 18556ac_configure_extra_args= 18557 18558if $ac_cs_silent; then 18559 exec 6>/dev/null 18560 ac_configure_extra_args="$ac_configure_extra_args --silent" 18561fi 18562 18563_ACEOF 18564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18565if \$ac_cs_recheck; then 18566 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18567 shift 18568 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18569 CONFIG_SHELL='$SHELL' 18570 export CONFIG_SHELL 18571 exec "\$@" 18572fi 18573 18574_ACEOF 18575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18576exec 5>>config.log 18577{ 18578 echo 18579 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18580## Running $as_me. ## 18581_ASBOX 18582 $as_echo "$ac_log" 18583} >&5 18584 18585_ACEOF 18586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18587# 18588# INIT-COMMANDS 18589# 18590AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18591 18592 18593# The HP-UX ksh and POSIX shell print the target directory to stdout 18594# if CDPATH is set. 18595(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18596 18597sed_quote_subst='$sed_quote_subst' 18598double_quote_subst='$double_quote_subst' 18599delay_variable_subst='$delay_variable_subst' 18600AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 18601DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18602OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18603macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18604macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18605enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18606enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18607pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18608enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18609SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18610ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18611host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18612host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18613host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18614build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18615build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18616build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18617SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18618Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18619GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18620EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18621FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18622LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18623NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18624LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18625max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18626ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18627exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18628lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18629lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18630lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18631lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18632lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18633reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18634reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18635deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18636file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18637file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18638want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18639sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18640AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18641AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18642archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18643STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18644RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18645old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18646old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18647old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18648lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18649CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18650CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18651compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18652GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18653lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18654lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18655lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18656lt_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"`' 18657nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18658lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18659objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18660MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18661lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18662lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18663lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18664lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18665lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18666need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18667MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18668DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18669NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18670LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18671OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18672OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18673libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18674shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18675extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18676archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18677enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18678export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18679whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18680compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18681old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18682old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18683archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18684archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18685module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18686module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18687with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18688allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18689no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18690hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18691hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 18692hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18693hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18694hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18695hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18696hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18697hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18698inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18699link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18700always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18701export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18702exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18703include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18704prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18705postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18706file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18707variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18708need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18709need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18710version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18711runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18712shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18713shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18714libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18715library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18716soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18717install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18718postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18719postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18720finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18721finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18722hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18723sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18724sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18725hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18726enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18727enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18728enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18729old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18730striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18731compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18732predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18733postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18734predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18735postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18736compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18737LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 18738reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 18739reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18740old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18741compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 18742GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 18743lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 18744lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 18745lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 18746lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 18747lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 18748archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 18749enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 18750export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18751whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18752compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 18753old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18754old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18755archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18756archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18757module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18758module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18759with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 18760allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18761no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18762hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18763hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 18764hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 18765hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 18766hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 18767hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 18768hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 18769hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 18770inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 18771link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 18772always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 18773export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18774exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18775include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18776prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18777postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18778file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 18779hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 18780compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 18781predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18782postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18783predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 18784postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 18785compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 18786 18787LTCC='$LTCC' 18788LTCFLAGS='$LTCFLAGS' 18789compiler='$compiler_DEFAULT' 18790 18791# A function that is used when there is no print builtin or printf. 18792func_fallback_echo () 18793{ 18794 eval 'cat <<_LTECHO_EOF 18795\$1 18796_LTECHO_EOF' 18797} 18798 18799# Quote evaled strings. 18800for var in AS \ 18801DLLTOOL \ 18802OBJDUMP \ 18803SHELL \ 18804ECHO \ 18805SED \ 18806GREP \ 18807EGREP \ 18808FGREP \ 18809LD \ 18810NM \ 18811LN_S \ 18812lt_SP2NL \ 18813lt_NL2SP \ 18814reload_flag \ 18815deplibs_check_method \ 18816file_magic_cmd \ 18817file_magic_glob \ 18818want_nocaseglob \ 18819sharedlib_from_linklib_cmd \ 18820AR \ 18821AR_FLAGS \ 18822archiver_list_spec \ 18823STRIP \ 18824RANLIB \ 18825CC \ 18826CFLAGS \ 18827compiler \ 18828lt_cv_sys_global_symbol_pipe \ 18829lt_cv_sys_global_symbol_to_cdecl \ 18830lt_cv_sys_global_symbol_to_c_name_address \ 18831lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18832nm_file_list_spec \ 18833lt_prog_compiler_no_builtin_flag \ 18834lt_prog_compiler_pic \ 18835lt_prog_compiler_wl \ 18836lt_prog_compiler_static \ 18837lt_cv_prog_compiler_c_o \ 18838need_locks \ 18839MANIFEST_TOOL \ 18840DSYMUTIL \ 18841NMEDIT \ 18842LIPO \ 18843OTOOL \ 18844OTOOL64 \ 18845shrext_cmds \ 18846export_dynamic_flag_spec \ 18847whole_archive_flag_spec \ 18848compiler_needs_object \ 18849with_gnu_ld \ 18850allow_undefined_flag \ 18851no_undefined_flag \ 18852hardcode_libdir_flag_spec \ 18853hardcode_libdir_flag_spec_ld \ 18854hardcode_libdir_separator \ 18855exclude_expsyms \ 18856include_expsyms \ 18857file_list_spec \ 18858variables_saved_for_relink \ 18859libname_spec \ 18860library_names_spec \ 18861soname_spec \ 18862install_override_mode \ 18863finish_eval \ 18864old_striplib \ 18865striplib \ 18866compiler_lib_search_dirs \ 18867predep_objects \ 18868postdep_objects \ 18869predeps \ 18870postdeps \ 18871compiler_lib_search_path \ 18872LD_CXX \ 18873reload_flag_CXX \ 18874compiler_CXX \ 18875lt_prog_compiler_no_builtin_flag_CXX \ 18876lt_prog_compiler_pic_CXX \ 18877lt_prog_compiler_wl_CXX \ 18878lt_prog_compiler_static_CXX \ 18879lt_cv_prog_compiler_c_o_CXX \ 18880export_dynamic_flag_spec_CXX \ 18881whole_archive_flag_spec_CXX \ 18882compiler_needs_object_CXX \ 18883with_gnu_ld_CXX \ 18884allow_undefined_flag_CXX \ 18885no_undefined_flag_CXX \ 18886hardcode_libdir_flag_spec_CXX \ 18887hardcode_libdir_flag_spec_ld_CXX \ 18888hardcode_libdir_separator_CXX \ 18889exclude_expsyms_CXX \ 18890include_expsyms_CXX \ 18891file_list_spec_CXX \ 18892compiler_lib_search_dirs_CXX \ 18893predep_objects_CXX \ 18894postdep_objects_CXX \ 18895predeps_CXX \ 18896postdeps_CXX \ 18897compiler_lib_search_path_CXX; do 18898 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18899 *[\\\\\\\`\\"\\\$]*) 18900 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18901 ;; 18902 *) 18903 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18904 ;; 18905 esac 18906done 18907 18908# Double-quote double-evaled strings. 18909for var in reload_cmds \ 18910old_postinstall_cmds \ 18911old_postuninstall_cmds \ 18912old_archive_cmds \ 18913extract_expsyms_cmds \ 18914old_archive_from_new_cmds \ 18915old_archive_from_expsyms_cmds \ 18916archive_cmds \ 18917archive_expsym_cmds \ 18918module_cmds \ 18919module_expsym_cmds \ 18920export_symbols_cmds \ 18921prelink_cmds \ 18922postlink_cmds \ 18923postinstall_cmds \ 18924postuninstall_cmds \ 18925finish_cmds \ 18926sys_lib_search_path_spec \ 18927sys_lib_dlsearch_path_spec \ 18928reload_cmds_CXX \ 18929old_archive_cmds_CXX \ 18930old_archive_from_new_cmds_CXX \ 18931old_archive_from_expsyms_cmds_CXX \ 18932archive_cmds_CXX \ 18933archive_expsym_cmds_CXX \ 18934module_cmds_CXX \ 18935module_expsym_cmds_CXX \ 18936export_symbols_cmds_CXX \ 18937prelink_cmds_CXX \ 18938postlink_cmds_CXX; do 18939 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18940 *[\\\\\\\`\\"\\\$]*) 18941 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18942 ;; 18943 *) 18944 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18945 ;; 18946 esac 18947done 18948 18949ac_aux_dir='$ac_aux_dir' 18950xsi_shell='$xsi_shell' 18951lt_shell_append='$lt_shell_append' 18952 18953# See if we are running on zsh, and set the options which allow our 18954# commands through without removal of \ escapes INIT. 18955if test -n "\${ZSH_VERSION+set}" ; then 18956 setopt NO_GLOB_SUBST 18957fi 18958 18959 18960 PACKAGE='$PACKAGE' 18961 VERSION='$VERSION' 18962 TIMESTAMP='$TIMESTAMP' 18963 RM='$RM' 18964 ofile='$ofile' 18965 18966 18967 18968 18969 18970 18971_ACEOF 18972 18973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18974 18975# Handling of arguments. 18976for ac_config_target in $ac_config_targets 18977do 18978 case $ac_config_target in 18979 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18980 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18981 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18982 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18983 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 18984 "doc/bitstring/Makefile") CONFIG_FILES="$CONFIG_FILES doc/bitstring/Makefile" ;; 18985 "doc/cprog/Makefile") CONFIG_FILES="$CONFIG_FILES doc/cprog/Makefile" ;; 18986 "doc/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES doc/kernel/Makefile" ;; 18987 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; 18988 "doc/oops/Makefile") CONFIG_FILES="$CONFIG_FILES doc/oops/Makefile" ;; 18989 "doc/record/Makefile") CONFIG_FILES="$CONFIG_FILES doc/record/Makefile" ;; 18990 "doc/regexp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/regexp/Makefile" ;; 18991 "doc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES doc/unix/Makefile" ;; 18992 "doc/usenix/Makefile") CONFIG_FILES="$CONFIG_FILES doc/usenix/Makefile" ;; 18993 "doc/util/Makefile") CONFIG_FILES="$CONFIG_FILES doc/util/Makefile" ;; 18994 "doc/xlib/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xlib/Makefile" ;; 18995 "doc/xt/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xt/Makefile" ;; 18996 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 18997 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 18998 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 18999 "lib/misc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/misc/Makefile" ;; 19000 "lib/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/unix/Makefile" ;; 19001 "lib/xlib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/xlib/Makefile" ;; 19002 "lib/xwidgets/Makefile") CONFIG_FILES="$CONFIG_FILES lib/xwidgets/Makefile" ;; 19003 "lib/xwidgets/xaw/Makefile") CONFIG_FILES="$CONFIG_FILES lib/xwidgets/xaw/Makefile" ;; 19004 "lib/xwidgets/motif/Makefile") CONFIG_FILES="$CONFIG_FILES lib/xwidgets/motif/Makefile" ;; 19005 "scm/Makefile") CONFIG_FILES="$CONFIG_FILES scm/Makefile" ;; 19006 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19007 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 19008 "scm/slib.scm") CONFIG_FILES="$CONFIG_FILES scm/slib.scm" ;; 19009 "include/site.h") CONFIG_FILES="$CONFIG_FILES include/site.h" ;; 19010 "test/check-gc") CONFIG_FILES="$CONFIG_FILES test/check-gc" ;; 19011 "test/check-gc2") CONFIG_FILES="$CONFIG_FILES test/check-gc2" ;; 19012 "test/check-r4rs") CONFIG_FILES="$CONFIG_FILES test/check-r4rs" ;; 19013 19014 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19015 esac 19016done 19017 19018 19019# If the user did not use the arguments to specify the items to instantiate, 19020# then the envvar interface is used. Set only those that are not. 19021# We use the long form for the default assignment because of an extremely 19022# bizarre bug on SunOS 4.1.3. 19023if $ac_need_defaults; then 19024 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19025 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19026 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19027fi 19028 19029# Have a temporary directory for convenience. Make it in the build tree 19030# simply because there is no reason against having it here, and in addition, 19031# creating and moving files from /tmp can sometimes cause problems. 19032# Hook for its removal unless debugging. 19033# Note that there is a small window in which the directory will not be cleaned: 19034# after its creation but before its name has been assigned to `$tmp'. 19035$debug || 19036{ 19037 tmp= ac_tmp= 19038 trap 'exit_status=$? 19039 : "${ac_tmp:=$tmp}" 19040 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19041' 0 19042 trap 'as_fn_exit 1' 1 2 13 15 19043} 19044# Create a (secure) tmp directory for tmp files. 19045 19046{ 19047 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19048 test -d "$tmp" 19049} || 19050{ 19051 tmp=./conf$$-$RANDOM 19052 (umask 077 && mkdir "$tmp") 19053} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19054ac_tmp=$tmp 19055 19056# Set up the scripts for CONFIG_FILES section. 19057# No need to generate them if there are no CONFIG_FILES. 19058# This happens for instance with `./config.status config.h'. 19059if test -n "$CONFIG_FILES"; then 19060 19061 19062ac_cr=`echo X | tr X '\015'` 19063# On cygwin, bash can eat \r inside `` if the user requested igncr. 19064# But we know of no other shell where ac_cr would be empty at this 19065# point, so we can use a bashism as a fallback. 19066if test "x$ac_cr" = x; then 19067 eval ac_cr=\$\'\\r\' 19068fi 19069ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19070if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19071 ac_cs_awk_cr='\\r' 19072else 19073 ac_cs_awk_cr=$ac_cr 19074fi 19075 19076echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19077_ACEOF 19078 19079 19080{ 19081 echo "cat >conf$$subs.awk <<_ACEOF" && 19082 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19083 echo "_ACEOF" 19084} >conf$$subs.sh || 19085 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19086ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19087ac_delim='%!_!# ' 19088for ac_last_try in false false false false false :; do 19089 . ./conf$$subs.sh || 19090 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19091 19092 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19093 if test $ac_delim_n = $ac_delim_num; then 19094 break 19095 elif $ac_last_try; then 19096 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19097 else 19098 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19099 fi 19100done 19101rm -f conf$$subs.sh 19102 19103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19104cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19105_ACEOF 19106sed -n ' 19107h 19108s/^/S["/; s/!.*/"]=/ 19109p 19110g 19111s/^[^!]*!// 19112:repl 19113t repl 19114s/'"$ac_delim"'$// 19115t delim 19116:nl 19117h 19118s/\(.\{148\}\)..*/\1/ 19119t more1 19120s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19121p 19122n 19123b repl 19124:more1 19125s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19126p 19127g 19128s/.\{148\}// 19129t nl 19130:delim 19131h 19132s/\(.\{148\}\)..*/\1/ 19133t more2 19134s/["\\]/\\&/g; s/^/"/; s/$/"/ 19135p 19136b 19137:more2 19138s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19139p 19140g 19141s/.\{148\}// 19142t delim 19143' <conf$$subs.awk | sed ' 19144/^[^""]/{ 19145 N 19146 s/\n// 19147} 19148' >>$CONFIG_STATUS || ac_write_fail=1 19149rm -f conf$$subs.awk 19150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19151_ACAWK 19152cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19153 for (key in S) S_is_set[key] = 1 19154 FS = "" 19155 19156} 19157{ 19158 line = $ 0 19159 nfields = split(line, field, "@") 19160 substed = 0 19161 len = length(field[1]) 19162 for (i = 2; i < nfields; i++) { 19163 key = field[i] 19164 keylen = length(key) 19165 if (S_is_set[key]) { 19166 value = S[key] 19167 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19168 len += length(value) + length(field[++i]) 19169 substed = 1 19170 } else 19171 len += 1 + keylen 19172 } 19173 19174 print line 19175} 19176 19177_ACAWK 19178_ACEOF 19179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19180if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19181 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19182else 19183 cat 19184fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19185 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19186_ACEOF 19187 19188# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19189# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19190# trailing colons and then remove the whole line if VPATH becomes empty 19191# (actually we leave an empty line to preserve line numbers). 19192if test "x$srcdir" = x.; then 19193 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19194h 19195s/// 19196s/^/:/ 19197s/[ ]*$/:/ 19198s/:\$(srcdir):/:/g 19199s/:\${srcdir}:/:/g 19200s/:@srcdir@:/:/g 19201s/^:*// 19202s/:*$// 19203x 19204s/\(=[ ]*\).*/\1/ 19205G 19206s/\n// 19207s/^[^=]*=[ ]*$// 19208}' 19209fi 19210 19211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19212fi # test -n "$CONFIG_FILES" 19213 19214# Set up the scripts for CONFIG_HEADERS section. 19215# No need to generate them if there are no CONFIG_HEADERS. 19216# This happens for instance with `./config.status Makefile'. 19217if test -n "$CONFIG_HEADERS"; then 19218cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19219BEGIN { 19220_ACEOF 19221 19222# Transform confdefs.h into an awk script `defines.awk', embedded as 19223# here-document in config.status, that substitutes the proper values into 19224# config.h.in to produce config.h. 19225 19226# Create a delimiter string that does not exist in confdefs.h, to ease 19227# handling of long lines. 19228ac_delim='%!_!# ' 19229for ac_last_try in false false :; do 19230 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19231 if test -z "$ac_tt"; then 19232 break 19233 elif $ac_last_try; then 19234 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19235 else 19236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19237 fi 19238done 19239 19240# For the awk script, D is an array of macro values keyed by name, 19241# likewise P contains macro parameters if any. Preserve backslash 19242# newline sequences. 19243 19244ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19245sed -n ' 19246s/.\{148\}/&'"$ac_delim"'/g 19247t rset 19248:rset 19249s/^[ ]*#[ ]*define[ ][ ]*/ / 19250t def 19251d 19252:def 19253s/\\$// 19254t bsnl 19255s/["\\]/\\&/g 19256s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19257D["\1"]=" \3"/p 19258s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19259d 19260:bsnl 19261s/["\\]/\\&/g 19262s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19263D["\1"]=" \3\\\\\\n"\\/p 19264t cont 19265s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19266t cont 19267d 19268:cont 19269n 19270s/.\{148\}/&'"$ac_delim"'/g 19271t clear 19272:clear 19273s/\\$// 19274t bsnlc 19275s/["\\]/\\&/g; s/^/"/; s/$/"/p 19276d 19277:bsnlc 19278s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19279b cont 19280' <confdefs.h | sed ' 19281s/'"$ac_delim"'/"\\\ 19282"/g' >>$CONFIG_STATUS || ac_write_fail=1 19283 19284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19285 for (key in D) D_is_set[key] = 1 19286 FS = "" 19287} 19288/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19289 line = \$ 0 19290 split(line, arg, " ") 19291 if (arg[1] == "#") { 19292 defundef = arg[2] 19293 mac1 = arg[3] 19294 } else { 19295 defundef = substr(arg[1], 2) 19296 mac1 = arg[2] 19297 } 19298 split(mac1, mac2, "(") #) 19299 macro = mac2[1] 19300 prefix = substr(line, 1, index(line, defundef) - 1) 19301 if (D_is_set[macro]) { 19302 # Preserve the white space surrounding the "#". 19303 print prefix "define", macro P[macro] D[macro] 19304 next 19305 } else { 19306 # Replace #undef with comments. This is necessary, for example, 19307 # in the case of _POSIX_SOURCE, which is predefined and required 19308 # on some systems where configure will not decide to define it. 19309 if (defundef == "undef") { 19310 print "/*", prefix defundef, macro, "*/" 19311 next 19312 } 19313 } 19314} 19315{ print } 19316_ACAWK 19317_ACEOF 19318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19319 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19320fi # test -n "$CONFIG_HEADERS" 19321 19322 19323eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19324shift 19325for ac_tag 19326do 19327 case $ac_tag in 19328 :[FHLC]) ac_mode=$ac_tag; continue;; 19329 esac 19330 case $ac_mode$ac_tag in 19331 :[FHL]*:*);; 19332 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19333 :[FH]-) ac_tag=-:-;; 19334 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19335 esac 19336 ac_save_IFS=$IFS 19337 IFS=: 19338 set x $ac_tag 19339 IFS=$ac_save_IFS 19340 shift 19341 ac_file=$1 19342 shift 19343 19344 case $ac_mode in 19345 :L) ac_source=$1;; 19346 :[FH]) 19347 ac_file_inputs= 19348 for ac_f 19349 do 19350 case $ac_f in 19351 -) ac_f="$ac_tmp/stdin";; 19352 *) # Look for the file first in the build tree, then in the source tree 19353 # (if the path is not absolute). The absolute path cannot be DOS-style, 19354 # because $ac_f cannot contain `:'. 19355 test -f "$ac_f" || 19356 case $ac_f in 19357 [\\/$]*) false;; 19358 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19359 esac || 19360 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19361 esac 19362 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19363 as_fn_append ac_file_inputs " '$ac_f'" 19364 done 19365 19366 # Let's still pretend it is `configure' which instantiates (i.e., don't 19367 # use $as_me), people would be surprised to read: 19368 # /* config.h. Generated by config.status. */ 19369 configure_input='Generated from '` 19370 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19371 `' by configure.' 19372 if test x"$ac_file" != x-; then 19373 configure_input="$ac_file. $configure_input" 19374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19375$as_echo "$as_me: creating $ac_file" >&6;} 19376 fi 19377 # Neutralize special characters interpreted by sed in replacement strings. 19378 case $configure_input in #( 19379 *\&* | *\|* | *\\* ) 19380 ac_sed_conf_input=`$as_echo "$configure_input" | 19381 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19382 *) ac_sed_conf_input=$configure_input;; 19383 esac 19384 19385 case $ac_tag in 19386 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19388 esac 19389 ;; 19390 esac 19391 19392 ac_dir=`$as_dirname -- "$ac_file" || 19393$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19394 X"$ac_file" : 'X\(//\)[^/]' \| \ 19395 X"$ac_file" : 'X\(//\)$' \| \ 19396 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19397$as_echo X"$ac_file" | 19398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19399 s//\1/ 19400 q 19401 } 19402 /^X\(\/\/\)[^/].*/{ 19403 s//\1/ 19404 q 19405 } 19406 /^X\(\/\/\)$/{ 19407 s//\1/ 19408 q 19409 } 19410 /^X\(\/\).*/{ 19411 s//\1/ 19412 q 19413 } 19414 s/.*/./; q'` 19415 as_dir="$ac_dir"; as_fn_mkdir_p 19416 ac_builddir=. 19417 19418case "$ac_dir" in 19419.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19420*) 19421 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19422 # A ".." for each directory in $ac_dir_suffix. 19423 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19424 case $ac_top_builddir_sub in 19425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19427 esac ;; 19428esac 19429ac_abs_top_builddir=$ac_pwd 19430ac_abs_builddir=$ac_pwd$ac_dir_suffix 19431# for backward compatibility: 19432ac_top_builddir=$ac_top_build_prefix 19433 19434case $srcdir in 19435 .) # We are building in place. 19436 ac_srcdir=. 19437 ac_top_srcdir=$ac_top_builddir_sub 19438 ac_abs_top_srcdir=$ac_pwd ;; 19439 [\\/]* | ?:[\\/]* ) # Absolute name. 19440 ac_srcdir=$srcdir$ac_dir_suffix; 19441 ac_top_srcdir=$srcdir 19442 ac_abs_top_srcdir=$srcdir ;; 19443 *) # Relative name. 19444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19445 ac_top_srcdir=$ac_top_build_prefix$srcdir 19446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19447esac 19448ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19449 19450 19451 case $ac_mode in 19452 :F) 19453 # 19454 # CONFIG_FILE 19455 # 19456 19457 case $INSTALL in 19458 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19459 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19460 esac 19461 ac_MKDIR_P=$MKDIR_P 19462 case $MKDIR_P in 19463 [\\/$]* | ?:[\\/]* ) ;; 19464 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19465 esac 19466_ACEOF 19467 19468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19469# If the template does not know about datarootdir, expand it. 19470# FIXME: This hack should be removed a few years after 2.60. 19471ac_datarootdir_hack=; ac_datarootdir_seen= 19472ac_sed_dataroot=' 19473/datarootdir/ { 19474 p 19475 q 19476} 19477/@datadir@/p 19478/@docdir@/p 19479/@infodir@/p 19480/@localedir@/p 19481/@mandir@/p' 19482case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19483*datarootdir*) ac_datarootdir_seen=yes;; 19484*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19486$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19487_ACEOF 19488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19489 ac_datarootdir_hack=' 19490 s&@datadir@&$datadir&g 19491 s&@docdir@&$docdir&g 19492 s&@infodir@&$infodir&g 19493 s&@localedir@&$localedir&g 19494 s&@mandir@&$mandir&g 19495 s&\\\${datarootdir}&$datarootdir&g' ;; 19496esac 19497_ACEOF 19498 19499# Neutralize VPATH when `$srcdir' = `.'. 19500# Shell code in configure.ac might set extrasub. 19501# FIXME: do we really want to maintain this feature? 19502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19503ac_sed_extra="$ac_vpsub 19504$extrasub 19505_ACEOF 19506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19507:t 19508/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19509s|@configure_input@|$ac_sed_conf_input|;t t 19510s&@top_builddir@&$ac_top_builddir_sub&;t t 19511s&@top_build_prefix@&$ac_top_build_prefix&;t t 19512s&@srcdir@&$ac_srcdir&;t t 19513s&@abs_srcdir@&$ac_abs_srcdir&;t t 19514s&@top_srcdir@&$ac_top_srcdir&;t t 19515s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19516s&@builddir@&$ac_builddir&;t t 19517s&@abs_builddir@&$ac_abs_builddir&;t t 19518s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19519s&@INSTALL@&$ac_INSTALL&;t t 19520s&@MKDIR_P@&$ac_MKDIR_P&;t t 19521$ac_datarootdir_hack 19522" 19523eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19524 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19525 19526test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19527 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19528 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19529 "$ac_tmp/out"`; test -z "$ac_out"; } && 19530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19531which seems to be undefined. Please make sure it is defined" >&5 19532$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19533which seems to be undefined. Please make sure it is defined" >&2;} 19534 19535 rm -f "$ac_tmp/stdin" 19536 case $ac_file in 19537 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19538 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19539 esac \ 19540 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19541 ;; 19542 :H) 19543 # 19544 # CONFIG_HEADER 19545 # 19546 if test x"$ac_file" != x-; then 19547 { 19548 $as_echo "/* $configure_input */" \ 19549 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19550 } >"$ac_tmp/config.h" \ 19551 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19552 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19553 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19554$as_echo "$as_me: $ac_file is unchanged" >&6;} 19555 else 19556 rm -f "$ac_file" 19557 mv "$ac_tmp/config.h" "$ac_file" \ 19558 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19559 fi 19560 else 19561 $as_echo "/* $configure_input */" \ 19562 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19563 || as_fn_error $? "could not create -" "$LINENO" 5 19564 fi 19565# Compute "$ac_file"'s index in $config_headers. 19566_am_arg="$ac_file" 19567_am_stamp_count=1 19568for _am_header in $config_headers :; do 19569 case $_am_header in 19570 $_am_arg | $_am_arg:* ) 19571 break ;; 19572 * ) 19573 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19574 esac 19575done 19576echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19577$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19578 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19579 X"$_am_arg" : 'X\(//\)$' \| \ 19580 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19581$as_echo X"$_am_arg" | 19582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19583 s//\1/ 19584 q 19585 } 19586 /^X\(\/\/\)[^/].*/{ 19587 s//\1/ 19588 q 19589 } 19590 /^X\(\/\/\)$/{ 19591 s//\1/ 19592 q 19593 } 19594 /^X\(\/\).*/{ 19595 s//\1/ 19596 q 19597 } 19598 s/.*/./; q'`/stamp-h$_am_stamp_count 19599 ;; 19600 19601 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19602$as_echo "$as_me: executing $ac_file commands" >&6;} 19603 ;; 19604 esac 19605 19606 19607 case $ac_file$ac_mode in 19608 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19609 # Autoconf 2.62 quotes --file arguments for eval, but not when files 19610 # are listed without --file. Let's play safe and only enable the eval 19611 # if we detect the quoting. 19612 case $CONFIG_FILES in 19613 *\'*) eval set x "$CONFIG_FILES" ;; 19614 *) set x $CONFIG_FILES ;; 19615 esac 19616 shift 19617 for mf 19618 do 19619 # Strip MF so we end up with the name of the file. 19620 mf=`echo "$mf" | sed -e 's/:.*$//'` 19621 # Check whether this is an Automake generated Makefile or not. 19622 # We used to match only the files named `Makefile.in', but 19623 # some people rename them; so instead we look at the file content. 19624 # Grep'ing the first line is not enough: some people post-process 19625 # each Makefile.in and add a new line on top of each file to say so. 19626 # Grep'ing the whole file is not good either: AIX grep has a line 19627 # limit of 2048, but all sed's we know have understand at least 4000. 19628 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19629 dirpart=`$as_dirname -- "$mf" || 19630$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19631 X"$mf" : 'X\(//\)[^/]' \| \ 19632 X"$mf" : 'X\(//\)$' \| \ 19633 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19634$as_echo X"$mf" | 19635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19636 s//\1/ 19637 q 19638 } 19639 /^X\(\/\/\)[^/].*/{ 19640 s//\1/ 19641 q 19642 } 19643 /^X\(\/\/\)$/{ 19644 s//\1/ 19645 q 19646 } 19647 /^X\(\/\).*/{ 19648 s//\1/ 19649 q 19650 } 19651 s/.*/./; q'` 19652 else 19653 continue 19654 fi 19655 # Extract the definition of DEPDIR, am__include, and am__quote 19656 # from the Makefile without running `make'. 19657 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19658 test -z "$DEPDIR" && continue 19659 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19660 test -z "am__include" && continue 19661 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19662 # When using ansi2knr, U may be empty or an underscore; expand it 19663 U=`sed -n 's/^U = //p' < "$mf"` 19664 # Find all dependency output files, they are included files with 19665 # $(DEPDIR) in their names. We invoke sed twice because it is the 19666 # simplest approach to changing $(DEPDIR) to its actual value in the 19667 # expansion. 19668 for file in `sed -n " 19669 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19670 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 19671 # Make sure the directory exists. 19672 test -f "$dirpart/$file" && continue 19673 fdir=`$as_dirname -- "$file" || 19674$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19675 X"$file" : 'X\(//\)[^/]' \| \ 19676 X"$file" : 'X\(//\)$' \| \ 19677 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19678$as_echo X"$file" | 19679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19680 s//\1/ 19681 q 19682 } 19683 /^X\(\/\/\)[^/].*/{ 19684 s//\1/ 19685 q 19686 } 19687 /^X\(\/\/\)$/{ 19688 s//\1/ 19689 q 19690 } 19691 /^X\(\/\).*/{ 19692 s//\1/ 19693 q 19694 } 19695 s/.*/./; q'` 19696 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19697 # echo "creating $dirpart/$file" 19698 echo '# dummy' > "$dirpart/$file" 19699 done 19700 done 19701} 19702 ;; 19703 "libtool":C) 19704 19705 # See if we are running on zsh, and set the options which allow our 19706 # commands through without removal of \ escapes. 19707 if test -n "${ZSH_VERSION+set}" ; then 19708 setopt NO_GLOB_SUBST 19709 fi 19710 19711 cfgfile="${ofile}T" 19712 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19713 $RM "$cfgfile" 19714 19715 cat <<_LT_EOF >> "$cfgfile" 19716#! $SHELL 19717 19718# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19719# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19720# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19721# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19722# 19723# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19724# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 19725# Inc. 19726# Written by Gordon Matzigkeit, 1996 19727# 19728# This file is part of GNU Libtool. 19729# 19730# GNU Libtool is free software; you can redistribute it and/or 19731# modify it under the terms of the GNU General Public License as 19732# published by the Free Software Foundation; either version 2 of 19733# the License, or (at your option) any later version. 19734# 19735# As a special exception to the GNU General Public License, 19736# if you distribute this file as part of a program or library that 19737# is built using GNU Libtool, you may include this file under the 19738# same distribution terms that you use for the rest of that program. 19739# 19740# GNU Libtool is distributed in the hope that it will be useful, 19741# but WITHOUT ANY WARRANTY; without even the implied warranty of 19742# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19743# GNU General Public License for more details. 19744# 19745# You should have received a copy of the GNU General Public License 19746# along with GNU Libtool; see the file COPYING. If not, a copy 19747# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19748# obtained by writing to the Free Software Foundation, Inc., 19749# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19750 19751 19752# The names of the tagged configurations supported by this script. 19753available_tags="CXX " 19754 19755# ### BEGIN LIBTOOL CONFIG 19756 19757# Assembler program. 19758AS=$lt_AS 19759 19760# DLL creation program. 19761DLLTOOL=$lt_DLLTOOL 19762 19763# Object dumper program. 19764OBJDUMP=$lt_OBJDUMP 19765 19766# Which release of libtool.m4 was used? 19767macro_version=$macro_version 19768macro_revision=$macro_revision 19769 19770# Whether or not to build shared libraries. 19771build_libtool_libs=$enable_shared 19772 19773# Whether or not to build static libraries. 19774build_old_libs=$enable_static 19775 19776# What type of objects to build. 19777pic_mode=$pic_mode 19778 19779# Whether or not to optimize for fast installation. 19780fast_install=$enable_fast_install 19781 19782# Shell to use when invoking shell scripts. 19783SHELL=$lt_SHELL 19784 19785# An echo program that protects backslashes. 19786ECHO=$lt_ECHO 19787 19788# The host system. 19789host_alias=$host_alias 19790host=$host 19791host_os=$host_os 19792 19793# The build system. 19794build_alias=$build_alias 19795build=$build 19796build_os=$build_os 19797 19798# A sed program that does not truncate output. 19799SED=$lt_SED 19800 19801# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19802Xsed="\$SED -e 1s/^X//" 19803 19804# A grep program that handles long lines. 19805GREP=$lt_GREP 19806 19807# An ERE matcher. 19808EGREP=$lt_EGREP 19809 19810# A literal string matcher. 19811FGREP=$lt_FGREP 19812 19813# A BSD- or MS-compatible name lister. 19814NM=$lt_NM 19815 19816# Whether we need soft or hard links. 19817LN_S=$lt_LN_S 19818 19819# What is the maximum length of a command? 19820max_cmd_len=$max_cmd_len 19821 19822# Object file suffix (normally "o"). 19823objext=$ac_objext 19824 19825# Executable file suffix (normally ""). 19826exeext=$exeext 19827 19828# whether the shell understands "unset". 19829lt_unset=$lt_unset 19830 19831# turn spaces into newlines. 19832SP2NL=$lt_lt_SP2NL 19833 19834# turn newlines into spaces. 19835NL2SP=$lt_lt_NL2SP 19836 19837# convert \$build file names to \$host format. 19838to_host_file_cmd=$lt_cv_to_host_file_cmd 19839 19840# convert \$build files to toolchain format. 19841to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19842 19843# Method to check whether dependent libraries are shared objects. 19844deplibs_check_method=$lt_deplibs_check_method 19845 19846# Command to use when deplibs_check_method = "file_magic". 19847file_magic_cmd=$lt_file_magic_cmd 19848 19849# How to find potential files when deplibs_check_method = "file_magic". 19850file_magic_glob=$lt_file_magic_glob 19851 19852# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19853want_nocaseglob=$lt_want_nocaseglob 19854 19855# Command to associate shared and link libraries. 19856sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19857 19858# The archiver. 19859AR=$lt_AR 19860 19861# Flags to create an archive. 19862AR_FLAGS=$lt_AR_FLAGS 19863 19864# How to feed a file listing to the archiver. 19865archiver_list_spec=$lt_archiver_list_spec 19866 19867# A symbol stripping program. 19868STRIP=$lt_STRIP 19869 19870# Commands used to install an old-style archive. 19871RANLIB=$lt_RANLIB 19872old_postinstall_cmds=$lt_old_postinstall_cmds 19873old_postuninstall_cmds=$lt_old_postuninstall_cmds 19874 19875# Whether to use a lock for old archive extraction. 19876lock_old_archive_extraction=$lock_old_archive_extraction 19877 19878# A C compiler. 19879LTCC=$lt_CC 19880 19881# LTCC compiler flags. 19882LTCFLAGS=$lt_CFLAGS 19883 19884# Take the output of nm and produce a listing of raw symbols and C names. 19885global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19886 19887# Transform the output of nm in a proper C declaration. 19888global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19889 19890# Transform the output of nm in a C name address pair. 19891global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19892 19893# Transform the output of nm in a C name address pair when lib prefix is needed. 19894global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19895 19896# Specify filename containing input files for \$NM. 19897nm_file_list_spec=$lt_nm_file_list_spec 19898 19899# The root where to search for dependent libraries,and in which our libraries should be installed. 19900lt_sysroot=$lt_sysroot 19901 19902# The name of the directory that contains temporary libtool files. 19903objdir=$objdir 19904 19905# Used to examine libraries when file_magic_cmd begins with "file". 19906MAGIC_CMD=$MAGIC_CMD 19907 19908# Must we lock files when doing compilation? 19909need_locks=$lt_need_locks 19910 19911# Manifest tool. 19912MANIFEST_TOOL=$lt_MANIFEST_TOOL 19913 19914# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19915DSYMUTIL=$lt_DSYMUTIL 19916 19917# Tool to change global to local symbols on Mac OS X. 19918NMEDIT=$lt_NMEDIT 19919 19920# Tool to manipulate fat objects and archives on Mac OS X. 19921LIPO=$lt_LIPO 19922 19923# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19924OTOOL=$lt_OTOOL 19925 19926# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19927OTOOL64=$lt_OTOOL64 19928 19929# Old archive suffix (normally "a"). 19930libext=$libext 19931 19932# Shared library suffix (normally ".so"). 19933shrext_cmds=$lt_shrext_cmds 19934 19935# The commands to extract the exported symbol list from a shared archive. 19936extract_expsyms_cmds=$lt_extract_expsyms_cmds 19937 19938# Variables whose values should be saved in libtool wrapper scripts and 19939# restored at link time. 19940variables_saved_for_relink=$lt_variables_saved_for_relink 19941 19942# Do we need the "lib" prefix for modules? 19943need_lib_prefix=$need_lib_prefix 19944 19945# Do we need a version for libraries? 19946need_version=$need_version 19947 19948# Library versioning type. 19949version_type=$version_type 19950 19951# Shared library runtime path variable. 19952runpath_var=$runpath_var 19953 19954# Shared library path variable. 19955shlibpath_var=$shlibpath_var 19956 19957# Is shlibpath searched before the hard-coded library search path? 19958shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19959 19960# Format of library name prefix. 19961libname_spec=$lt_libname_spec 19962 19963# List of archive names. First name is the real one, the rest are links. 19964# The last name is the one that the linker finds with -lNAME 19965library_names_spec=$lt_library_names_spec 19966 19967# The coded name of the library, if different from the real name. 19968soname_spec=$lt_soname_spec 19969 19970# Permission mode override for installation of shared libraries. 19971install_override_mode=$lt_install_override_mode 19972 19973# Command to use after installation of a shared archive. 19974postinstall_cmds=$lt_postinstall_cmds 19975 19976# Command to use after uninstallation of a shared archive. 19977postuninstall_cmds=$lt_postuninstall_cmds 19978 19979# Commands used to finish a libtool library installation in a directory. 19980finish_cmds=$lt_finish_cmds 19981 19982# As "finish_cmds", except a single script fragment to be evaled but 19983# not shown. 19984finish_eval=$lt_finish_eval 19985 19986# Whether we should hardcode library paths into libraries. 19987hardcode_into_libs=$hardcode_into_libs 19988 19989# Compile-time system search path for libraries. 19990sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19991 19992# Run-time system search path for libraries. 19993sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19994 19995# Whether dlopen is supported. 19996dlopen_support=$enable_dlopen 19997 19998# Whether dlopen of programs is supported. 19999dlopen_self=$enable_dlopen_self 20000 20001# Whether dlopen of statically linked programs is supported. 20002dlopen_self_static=$enable_dlopen_self_static 20003 20004# Commands to strip libraries. 20005old_striplib=$lt_old_striplib 20006striplib=$lt_striplib 20007 20008 20009# The linker used to build libraries. 20010LD=$lt_LD 20011 20012# How to create reloadable object files. 20013reload_flag=$lt_reload_flag 20014reload_cmds=$lt_reload_cmds 20015 20016# Commands used to build an old-style archive. 20017old_archive_cmds=$lt_old_archive_cmds 20018 20019# A language specific compiler. 20020CC=$lt_compiler 20021 20022# Is the compiler the GNU compiler? 20023with_gcc=$GCC 20024 20025# Compiler flag to turn off builtin functions. 20026no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20027 20028# Additional compiler flags for building library objects. 20029pic_flag=$lt_lt_prog_compiler_pic 20030 20031# How to pass a linker flag through the compiler. 20032wl=$lt_lt_prog_compiler_wl 20033 20034# Compiler flag to prevent dynamic linking. 20035link_static_flag=$lt_lt_prog_compiler_static 20036 20037# Does compiler simultaneously support -c and -o options? 20038compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20039 20040# Whether or not to add -lc for building shared libraries. 20041build_libtool_need_lc=$archive_cmds_need_lc 20042 20043# Whether or not to disallow shared libs when runtime libs are static. 20044allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20045 20046# Compiler flag to allow reflexive dlopens. 20047export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20048 20049# Compiler flag to generate shared objects directly from archives. 20050whole_archive_flag_spec=$lt_whole_archive_flag_spec 20051 20052# Whether the compiler copes with passing no objects directly. 20053compiler_needs_object=$lt_compiler_needs_object 20054 20055# Create an old-style archive from a shared archive. 20056old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20057 20058# Create a temporary old-style archive to link instead of a shared archive. 20059old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20060 20061# Commands used to build a shared archive. 20062archive_cmds=$lt_archive_cmds 20063archive_expsym_cmds=$lt_archive_expsym_cmds 20064 20065# Commands used to build a loadable module if different from building 20066# a shared archive. 20067module_cmds=$lt_module_cmds 20068module_expsym_cmds=$lt_module_expsym_cmds 20069 20070# Whether we are building with GNU ld or not. 20071with_gnu_ld=$lt_with_gnu_ld 20072 20073# Flag that allows shared libraries with undefined symbols to be built. 20074allow_undefined_flag=$lt_allow_undefined_flag 20075 20076# Flag that enforces no undefined symbols. 20077no_undefined_flag=$lt_no_undefined_flag 20078 20079# Flag to hardcode \$libdir into a binary during linking. 20080# This must work even if \$libdir does not exist 20081hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20082 20083# If ld is used when linking, flag to hardcode \$libdir into a binary 20084# during linking. This must work even if \$libdir does not exist. 20085hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 20086 20087# Whether we need a single "-rpath" flag with a separated argument. 20088hardcode_libdir_separator=$lt_hardcode_libdir_separator 20089 20090# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20091# DIR into the resulting binary. 20092hardcode_direct=$hardcode_direct 20093 20094# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20095# DIR into the resulting binary and the resulting library dependency is 20096# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20097# library is relocated. 20098hardcode_direct_absolute=$hardcode_direct_absolute 20099 20100# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20101# into the resulting binary. 20102hardcode_minus_L=$hardcode_minus_L 20103 20104# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20105# into the resulting binary. 20106hardcode_shlibpath_var=$hardcode_shlibpath_var 20107 20108# Set to "yes" if building a shared library automatically hardcodes DIR 20109# into the library and all subsequent libraries and executables linked 20110# against it. 20111hardcode_automatic=$hardcode_automatic 20112 20113# Set to yes if linker adds runtime paths of dependent libraries 20114# to runtime path list. 20115inherit_rpath=$inherit_rpath 20116 20117# Whether libtool must link a program against all its dependency libraries. 20118link_all_deplibs=$link_all_deplibs 20119 20120# Set to "yes" if exported symbols are required. 20121always_export_symbols=$always_export_symbols 20122 20123# The commands to list exported symbols. 20124export_symbols_cmds=$lt_export_symbols_cmds 20125 20126# Symbols that should not be listed in the preloaded symbols. 20127exclude_expsyms=$lt_exclude_expsyms 20128 20129# Symbols that must always be exported. 20130include_expsyms=$lt_include_expsyms 20131 20132# Commands necessary for linking programs (against libraries) with templates. 20133prelink_cmds=$lt_prelink_cmds 20134 20135# Commands necessary for finishing linking programs. 20136postlink_cmds=$lt_postlink_cmds 20137 20138# Specify filename containing input files. 20139file_list_spec=$lt_file_list_spec 20140 20141# How to hardcode a shared library path into an executable. 20142hardcode_action=$hardcode_action 20143 20144# The directories searched by this compiler when creating a shared library. 20145compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 20146 20147# Dependencies to place before and after the objects being linked to 20148# create a shared library. 20149predep_objects=$lt_predep_objects 20150postdep_objects=$lt_postdep_objects 20151predeps=$lt_predeps 20152postdeps=$lt_postdeps 20153 20154# The library search path used internally by the compiler when linking 20155# a shared library. 20156compiler_lib_search_path=$lt_compiler_lib_search_path 20157 20158# ### END LIBTOOL CONFIG 20159 20160_LT_EOF 20161 20162 case $host_os in 20163 aix3*) 20164 cat <<\_LT_EOF >> "$cfgfile" 20165# AIX sometimes has problems with the GCC collect2 program. For some 20166# reason, if we set the COLLECT_NAMES environment variable, the problems 20167# vanish in a puff of smoke. 20168if test "X${COLLECT_NAMES+set}" != Xset; then 20169 COLLECT_NAMES= 20170 export COLLECT_NAMES 20171fi 20172_LT_EOF 20173 ;; 20174 esac 20175 20176 20177ltmain="$ac_aux_dir/ltmain.sh" 20178 20179 20180 # We use sed instead of cat because bash on DJGPP gets confused if 20181 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20182 # text mode, it properly converts lines to CR/LF. This bash problem 20183 # is reportedly fixed, but why not run on old versions too? 20184 sed '$q' "$ltmain" >> "$cfgfile" \ 20185 || (rm -f "$cfgfile"; exit 1) 20186 20187 if test x"$xsi_shell" = xyes; then 20188 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20189func_dirname ()\ 20190{\ 20191\ case ${1} in\ 20192\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20193\ * ) func_dirname_result="${3}" ;;\ 20194\ esac\ 20195} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20196 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20197 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20198test 0 -eq $? || _lt_function_replace_fail=: 20199 20200 20201 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20202func_basename ()\ 20203{\ 20204\ func_basename_result="${1##*/}"\ 20205} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20206 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20207 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20208test 0 -eq $? || _lt_function_replace_fail=: 20209 20210 20211 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20212func_dirname_and_basename ()\ 20213{\ 20214\ case ${1} in\ 20215\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20216\ * ) func_dirname_result="${3}" ;;\ 20217\ esac\ 20218\ func_basename_result="${1##*/}"\ 20219} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20220 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20221 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20222test 0 -eq $? || _lt_function_replace_fail=: 20223 20224 20225 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20226func_stripname ()\ 20227{\ 20228\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20229\ # positional parameters, so assign one to ordinary parameter first.\ 20230\ func_stripname_result=${3}\ 20231\ func_stripname_result=${func_stripname_result#"${1}"}\ 20232\ func_stripname_result=${func_stripname_result%"${2}"}\ 20233} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20234 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20235 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20236test 0 -eq $? || _lt_function_replace_fail=: 20237 20238 20239 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20240func_split_long_opt ()\ 20241{\ 20242\ func_split_long_opt_name=${1%%=*}\ 20243\ func_split_long_opt_arg=${1#*=}\ 20244} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20245 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20246 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20247test 0 -eq $? || _lt_function_replace_fail=: 20248 20249 20250 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20251func_split_short_opt ()\ 20252{\ 20253\ func_split_short_opt_arg=${1#??}\ 20254\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20255} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20256 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20257 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20258test 0 -eq $? || _lt_function_replace_fail=: 20259 20260 20261 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20262func_lo2o ()\ 20263{\ 20264\ case ${1} in\ 20265\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20266\ *) func_lo2o_result=${1} ;;\ 20267\ esac\ 20268} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20269 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20270 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20271test 0 -eq $? || _lt_function_replace_fail=: 20272 20273 20274 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20275func_xform ()\ 20276{\ 20277 func_xform_result=${1%.*}.lo\ 20278} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20279 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20280 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20281test 0 -eq $? || _lt_function_replace_fail=: 20282 20283 20284 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20285func_arith ()\ 20286{\ 20287 func_arith_result=$(( $* ))\ 20288} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20289 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20290 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20291test 0 -eq $? || _lt_function_replace_fail=: 20292 20293 20294 sed -e '/^func_len ()$/,/^} # func_len /c\ 20295func_len ()\ 20296{\ 20297 func_len_result=${#1}\ 20298} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20299 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20300 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20301test 0 -eq $? || _lt_function_replace_fail=: 20302 20303fi 20304 20305if test x"$lt_shell_append" = xyes; then 20306 sed -e '/^func_append ()$/,/^} # func_append /c\ 20307func_append ()\ 20308{\ 20309 eval "${1}+=\\${2}"\ 20310} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20311 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20312 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20313test 0 -eq $? || _lt_function_replace_fail=: 20314 20315 20316 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20317func_append_quoted ()\ 20318{\ 20319\ func_quote_for_eval "${2}"\ 20320\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20321} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20322 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20323 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20324test 0 -eq $? || _lt_function_replace_fail=: 20325 20326 20327 # Save a `func_append' function call where possible by direct use of '+=' 20328 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20329 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20330 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20331 test 0 -eq $? || _lt_function_replace_fail=: 20332else 20333 # Save a `func_append' function call even when '+=' is not available 20334 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20335 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20336 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20337 test 0 -eq $? || _lt_function_replace_fail=: 20338fi 20339 20340if test x"$_lt_function_replace_fail" = x":"; then 20341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20342$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20343fi 20344 20345 20346 mv -f "$cfgfile" "$ofile" || 20347 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20348 chmod +x "$ofile" 20349 20350 20351 cat <<_LT_EOF >> "$ofile" 20352 20353# ### BEGIN LIBTOOL TAG CONFIG: CXX 20354 20355# The linker used to build libraries. 20356LD=$lt_LD_CXX 20357 20358# How to create reloadable object files. 20359reload_flag=$lt_reload_flag_CXX 20360reload_cmds=$lt_reload_cmds_CXX 20361 20362# Commands used to build an old-style archive. 20363old_archive_cmds=$lt_old_archive_cmds_CXX 20364 20365# A language specific compiler. 20366CC=$lt_compiler_CXX 20367 20368# Is the compiler the GNU compiler? 20369with_gcc=$GCC_CXX 20370 20371# Compiler flag to turn off builtin functions. 20372no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 20373 20374# Additional compiler flags for building library objects. 20375pic_flag=$lt_lt_prog_compiler_pic_CXX 20376 20377# How to pass a linker flag through the compiler. 20378wl=$lt_lt_prog_compiler_wl_CXX 20379 20380# Compiler flag to prevent dynamic linking. 20381link_static_flag=$lt_lt_prog_compiler_static_CXX 20382 20383# Does compiler simultaneously support -c and -o options? 20384compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 20385 20386# Whether or not to add -lc for building shared libraries. 20387build_libtool_need_lc=$archive_cmds_need_lc_CXX 20388 20389# Whether or not to disallow shared libs when runtime libs are static. 20390allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 20391 20392# Compiler flag to allow reflexive dlopens. 20393export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 20394 20395# Compiler flag to generate shared objects directly from archives. 20396whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 20397 20398# Whether the compiler copes with passing no objects directly. 20399compiler_needs_object=$lt_compiler_needs_object_CXX 20400 20401# Create an old-style archive from a shared archive. 20402old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 20403 20404# Create a temporary old-style archive to link instead of a shared archive. 20405old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 20406 20407# Commands used to build a shared archive. 20408archive_cmds=$lt_archive_cmds_CXX 20409archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 20410 20411# Commands used to build a loadable module if different from building 20412# a shared archive. 20413module_cmds=$lt_module_cmds_CXX 20414module_expsym_cmds=$lt_module_expsym_cmds_CXX 20415 20416# Whether we are building with GNU ld or not. 20417with_gnu_ld=$lt_with_gnu_ld_CXX 20418 20419# Flag that allows shared libraries with undefined symbols to be built. 20420allow_undefined_flag=$lt_allow_undefined_flag_CXX 20421 20422# Flag that enforces no undefined symbols. 20423no_undefined_flag=$lt_no_undefined_flag_CXX 20424 20425# Flag to hardcode \$libdir into a binary during linking. 20426# This must work even if \$libdir does not exist 20427hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 20428 20429# If ld is used when linking, flag to hardcode \$libdir into a binary 20430# during linking. This must work even if \$libdir does not exist. 20431hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 20432 20433# Whether we need a single "-rpath" flag with a separated argument. 20434hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 20435 20436# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20437# DIR into the resulting binary. 20438hardcode_direct=$hardcode_direct_CXX 20439 20440# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20441# DIR into the resulting binary and the resulting library dependency is 20442# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20443# library is relocated. 20444hardcode_direct_absolute=$hardcode_direct_absolute_CXX 20445 20446# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20447# into the resulting binary. 20448hardcode_minus_L=$hardcode_minus_L_CXX 20449 20450# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20451# into the resulting binary. 20452hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 20453 20454# Set to "yes" if building a shared library automatically hardcodes DIR 20455# into the library and all subsequent libraries and executables linked 20456# against it. 20457hardcode_automatic=$hardcode_automatic_CXX 20458 20459# Set to yes if linker adds runtime paths of dependent libraries 20460# to runtime path list. 20461inherit_rpath=$inherit_rpath_CXX 20462 20463# Whether libtool must link a program against all its dependency libraries. 20464link_all_deplibs=$link_all_deplibs_CXX 20465 20466# Set to "yes" if exported symbols are required. 20467always_export_symbols=$always_export_symbols_CXX 20468 20469# The commands to list exported symbols. 20470export_symbols_cmds=$lt_export_symbols_cmds_CXX 20471 20472# Symbols that should not be listed in the preloaded symbols. 20473exclude_expsyms=$lt_exclude_expsyms_CXX 20474 20475# Symbols that must always be exported. 20476include_expsyms=$lt_include_expsyms_CXX 20477 20478# Commands necessary for linking programs (against libraries) with templates. 20479prelink_cmds=$lt_prelink_cmds_CXX 20480 20481# Commands necessary for finishing linking programs. 20482postlink_cmds=$lt_postlink_cmds_CXX 20483 20484# Specify filename containing input files. 20485file_list_spec=$lt_file_list_spec_CXX 20486 20487# How to hardcode a shared library path into an executable. 20488hardcode_action=$hardcode_action_CXX 20489 20490# The directories searched by this compiler when creating a shared library. 20491compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 20492 20493# Dependencies to place before and after the objects being linked to 20494# create a shared library. 20495predep_objects=$lt_predep_objects_CXX 20496postdep_objects=$lt_postdep_objects_CXX 20497predeps=$lt_predeps_CXX 20498postdeps=$lt_postdeps_CXX 20499 20500# The library search path used internally by the compiler when linking 20501# a shared library. 20502compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 20503 20504# ### END LIBTOOL TAG CONFIG: CXX 20505_LT_EOF 20506 20507 ;; 20508 "test/check-gc":F) chmod 0755 test/check-gc ;; 20509 "test/check-gc2":F) chmod 0755 test/check-gc2 ;; 20510 "test/check-r4rs":F) chmod 0755 test/check-r4rs ;; 20511 20512 esac 20513done # for ac_tag 20514 20515 20516as_fn_exit 0 20517_ACEOF 20518ac_clean_files=$ac_clean_files_save 20519 20520test $ac_write_fail = 0 || 20521 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20522 20523 20524# configure is writing to config.log, and then calls config.status. 20525# config.status does its own redirection, appending to config.log. 20526# Unfortunately, on DOS this fails, as config.log is still kept open 20527# by configure, so config.status won't be able to write to it; its 20528# output is simply discarded. So we exec the FD to /dev/null, 20529# effectively closing config.log, so it can be properly (re)opened and 20530# appended to by config.status. When coming back to configure, we 20531# need to make the FD available again. 20532if test "$no_create" != yes; then 20533 ac_cs_success=: 20534 ac_config_status_args= 20535 test "$silent" = yes && 20536 ac_config_status_args="$ac_config_status_args --quiet" 20537 exec 5>/dev/null 20538 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20539 exec 5>>config.log 20540 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20541 # would make configure fail if this is the last instruction. 20542 $ac_cs_success || as_fn_exit 1 20543fi 20544if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20546$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20547fi 20548 20549 20550cat << EOF 20551 20552Elk configuration summary 20553------------------------- 20554build C++ plugins: ${ac_cv_my_have_cxx} 20555libgdbm support: ${ac_cv_my_have_gdbm} 20556X11 support: ${ac_cv_my_have_x11} 20557Xaw support: ${ac_cv_my_have_xaw} 20558Motif support: ${ac_cv_my_have_motif} 20559build documentation: ${ac_cv_my_have_groff} 20560EOF 20561 20562