1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for osl 0.8.3. 4# 5# Report bugs to <cedric.bastoul@u-psud.fr,pouchet@cse.ohio-state.edu>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: cedric.bastoul@u-psud.fr,pouchet@cse.ohio-state.edu 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='osl' 593PACKAGE_TARNAME='osl' 594PACKAGE_VERSION='0.8.3' 595PACKAGE_STRING='osl 0.8.3' 596PACKAGE_BUGREPORT='cedric.bastoul@u-psud.fr,pouchet@cse.ohio-state.edu' 597PACKAGE_URL='' 598 599ac_unique_file="include/osl/macros.h" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640VERSION_REVISION 641VERSION_MINOR 642VERSION_MAJOR 643abs_top_srcdir 644ac_aux_dir 645CFLAGS_WARN 646PRTDIAG 647DOXYGEN 648CPP 649OTOOL64 650OTOOL 651LIPO 652NMEDIT 653DSYMUTIL 654MANIFEST_TOOL 655RANLIB 656ac_ct_AR 657AR 658DLLTOOL 659OBJDUMP 660NM 661ac_ct_DUMPBIN 662DUMPBIN 663LD 664FGREP 665EGREP 666GREP 667SED 668host_os 669host_vendor 670host_cpu 671host 672build_os 673build_vendor 674build_cpu 675build 676LIBTOOL 677CD 678LN_S 679am__fastdepCC_FALSE 680am__fastdepCC_TRUE 681CCDEPMODE 682am__nodep 683AMDEPBACKSLASH 684AMDEP_FALSE 685AMDEP_TRUE 686am__quote 687am__include 688DEPDIR 689OBJEXT 690EXEEXT 691ac_ct_CC 692CPPFLAGS 693LDFLAGS 694CFLAGS 695CC 696AM_BACKSLASH 697AM_DEFAULT_VERBOSITY 698AM_DEFAULT_V 699AM_V 700am__untar 701am__tar 702AMTAR 703am__leading_dot 704SET_MAKE 705AWK 706mkdir_p 707MKDIR_P 708INSTALL_STRIP_PROGRAM 709STRIP 710install_sh 711MAKEINFO 712AUTOHEADER 713AUTOMAKE 714AUTOCONF 715ACLOCAL 716VERSION 717PACKAGE 718CYGPATH_W 719am__isrc 720INSTALL_DATA 721INSTALL_SCRIPT 722INSTALL_PROGRAM 723target_alias 724host_alias 725build_alias 726LIBS 727ECHO_T 728ECHO_N 729ECHO_C 730DEFS 731mandir 732localedir 733libdir 734psdir 735pdfdir 736dvidir 737htmldir 738infodir 739docdir 740oldincludedir 741includedir 742localstatedir 743sharedstatedir 744sysconfdir 745datadir 746datarootdir 747libexecdir 748sbindir 749bindir 750program_transform_name 751prefix 752exec_prefix 753PACKAGE_URL 754PACKAGE_BUGREPORT 755PACKAGE_STRING 756PACKAGE_VERSION 757PACKAGE_TARNAME 758PACKAGE_NAME 759PATH_SEPARATOR 760SHELL' 761ac_subst_files='' 762ac_user_opts=' 763enable_option_checking 764enable_silent_rules 765enable_dependency_tracking 766enable_shared 767enable_static 768with_pic 769enable_fast_install 770with_gnu_ld 771with_sysroot 772enable_libtool_lock 773enable_portable_binary 774with_gcc_arch 775with_gmp 776with_gmp_prefix 777with_gmp_exec_prefix 778with_gmp_builddir 779' 780 ac_precious_vars='build_alias 781host_alias 782target_alias 783CC 784CFLAGS 785LDFLAGS 786LIBS 787CPPFLAGS 788CPP' 789 790 791# Initialize some variables set by options. 792ac_init_help= 793ac_init_version=false 794ac_unrecognized_opts= 795ac_unrecognized_sep= 796# The variables have the same names as the options, with 797# dashes changed to underlines. 798cache_file=/dev/null 799exec_prefix=NONE 800no_create= 801no_recursion= 802prefix=NONE 803program_prefix=NONE 804program_suffix=NONE 805program_transform_name=s,x,x, 806silent= 807site= 808srcdir= 809verbose= 810x_includes=NONE 811x_libraries=NONE 812 813# Installation directory options. 814# These are left unexpanded so users can "make install exec_prefix=/foo" 815# and all the variables that are supposed to be based on exec_prefix 816# by default will actually change. 817# Use braces instead of parens because sh, perl, etc. also accept them. 818# (The list follows the same order as the GNU Coding Standards.) 819bindir='${exec_prefix}/bin' 820sbindir='${exec_prefix}/sbin' 821libexecdir='${exec_prefix}/libexec' 822datarootdir='${prefix}/share' 823datadir='${datarootdir}' 824sysconfdir='${prefix}/etc' 825sharedstatedir='${prefix}/com' 826localstatedir='${prefix}/var' 827includedir='${prefix}/include' 828oldincludedir='/usr/include' 829docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 830infodir='${datarootdir}/info' 831htmldir='${docdir}' 832dvidir='${docdir}' 833pdfdir='${docdir}' 834psdir='${docdir}' 835libdir='${exec_prefix}/lib' 836localedir='${datarootdir}/locale' 837mandir='${datarootdir}/man' 838 839ac_prev= 840ac_dashdash= 841for ac_option 842do 843 # If the previous option needs an argument, assign it. 844 if test -n "$ac_prev"; then 845 eval $ac_prev=\$ac_option 846 ac_prev= 847 continue 848 fi 849 850 case $ac_option in 851 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 852 *=) ac_optarg= ;; 853 *) ac_optarg=yes ;; 854 esac 855 856 # Accept the important Cygnus configure options, so we can diagnose typos. 857 858 case $ac_dashdash$ac_option in 859 --) 860 ac_dashdash=yes ;; 861 862 -bindir | --bindir | --bindi | --bind | --bin | --bi) 863 ac_prev=bindir ;; 864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 865 bindir=$ac_optarg ;; 866 867 -build | --build | --buil | --bui | --bu) 868 ac_prev=build_alias ;; 869 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 870 build_alias=$ac_optarg ;; 871 872 -cache-file | --cache-file | --cache-fil | --cache-fi \ 873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 874 ac_prev=cache_file ;; 875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 877 cache_file=$ac_optarg ;; 878 879 --config-cache | -C) 880 cache_file=config.cache ;; 881 882 -datadir | --datadir | --datadi | --datad) 883 ac_prev=datadir ;; 884 -datadir=* | --datadir=* | --datadi=* | --datad=*) 885 datadir=$ac_optarg ;; 886 887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 888 | --dataroo | --dataro | --datar) 889 ac_prev=datarootdir ;; 890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 892 datarootdir=$ac_optarg ;; 893 894 -disable-* | --disable-*) 895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 896 # Reject names that are not valid shell variable names. 897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 898 as_fn_error $? "invalid feature name: $ac_useropt" 899 ac_useropt_orig=$ac_useropt 900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 901 case $ac_user_opts in 902 *" 903"enable_$ac_useropt" 904"*) ;; 905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 906 ac_unrecognized_sep=', ';; 907 esac 908 eval enable_$ac_useropt=no ;; 909 910 -docdir | --docdir | --docdi | --doc | --do) 911 ac_prev=docdir ;; 912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 913 docdir=$ac_optarg ;; 914 915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 916 ac_prev=dvidir ;; 917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 918 dvidir=$ac_optarg ;; 919 920 -enable-* | --enable-*) 921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 922 # Reject names that are not valid shell variable names. 923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 924 as_fn_error $? "invalid feature name: $ac_useropt" 925 ac_useropt_orig=$ac_useropt 926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 927 case $ac_user_opts in 928 *" 929"enable_$ac_useropt" 930"*) ;; 931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 932 ac_unrecognized_sep=', ';; 933 esac 934 eval enable_$ac_useropt=\$ac_optarg ;; 935 936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 938 | --exec | --exe | --ex) 939 ac_prev=exec_prefix ;; 940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 942 | --exec=* | --exe=* | --ex=*) 943 exec_prefix=$ac_optarg ;; 944 945 -gas | --gas | --ga | --g) 946 # Obsolete; use --with-gas. 947 with_gas=yes ;; 948 949 -help | --help | --hel | --he | -h) 950 ac_init_help=long ;; 951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 952 ac_init_help=recursive ;; 953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 954 ac_init_help=short ;; 955 956 -host | --host | --hos | --ho) 957 ac_prev=host_alias ;; 958 -host=* | --host=* | --hos=* | --ho=*) 959 host_alias=$ac_optarg ;; 960 961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 962 ac_prev=htmldir ;; 963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 964 | --ht=*) 965 htmldir=$ac_optarg ;; 966 967 -includedir | --includedir | --includedi | --included | --include \ 968 | --includ | --inclu | --incl | --inc) 969 ac_prev=includedir ;; 970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 971 | --includ=* | --inclu=* | --incl=* | --inc=*) 972 includedir=$ac_optarg ;; 973 974 -infodir | --infodir | --infodi | --infod | --info | --inf) 975 ac_prev=infodir ;; 976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 977 infodir=$ac_optarg ;; 978 979 -libdir | --libdir | --libdi | --libd) 980 ac_prev=libdir ;; 981 -libdir=* | --libdir=* | --libdi=* | --libd=*) 982 libdir=$ac_optarg ;; 983 984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 985 | --libexe | --libex | --libe) 986 ac_prev=libexecdir ;; 987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 988 | --libexe=* | --libex=* | --libe=*) 989 libexecdir=$ac_optarg ;; 990 991 -localedir | --localedir | --localedi | --localed | --locale) 992 ac_prev=localedir ;; 993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 994 localedir=$ac_optarg ;; 995 996 -localstatedir | --localstatedir | --localstatedi | --localstated \ 997 | --localstate | --localstat | --localsta | --localst | --locals) 998 ac_prev=localstatedir ;; 999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1001 localstatedir=$ac_optarg ;; 1002 1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1004 ac_prev=mandir ;; 1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1006 mandir=$ac_optarg ;; 1007 1008 -nfp | --nfp | --nf) 1009 # Obsolete; use --without-fp. 1010 with_fp=no ;; 1011 1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1013 | --no-cr | --no-c | -n) 1014 no_create=yes ;; 1015 1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1018 no_recursion=yes ;; 1019 1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1022 | --oldin | --oldi | --old | --ol | --o) 1023 ac_prev=oldincludedir ;; 1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1027 oldincludedir=$ac_optarg ;; 1028 1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1030 ac_prev=prefix ;; 1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1032 prefix=$ac_optarg ;; 1033 1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1035 | --program-pre | --program-pr | --program-p) 1036 ac_prev=program_prefix ;; 1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1039 program_prefix=$ac_optarg ;; 1040 1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1042 | --program-suf | --program-su | --program-s) 1043 ac_prev=program_suffix ;; 1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1046 program_suffix=$ac_optarg ;; 1047 1048 -program-transform-name | --program-transform-name \ 1049 | --program-transform-nam | --program-transform-na \ 1050 | --program-transform-n | --program-transform- \ 1051 | --program-transform | --program-transfor \ 1052 | --program-transfo | --program-transf \ 1053 | --program-trans | --program-tran \ 1054 | --progr-tra | --program-tr | --program-t) 1055 ac_prev=program_transform_name ;; 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 program_transform_name=$ac_optarg ;; 1064 1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1066 ac_prev=pdfdir ;; 1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1068 pdfdir=$ac_optarg ;; 1069 1070 -psdir | --psdir | --psdi | --psd | --ps) 1071 ac_prev=psdir ;; 1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1073 psdir=$ac_optarg ;; 1074 1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1076 | -silent | --silent | --silen | --sile | --sil) 1077 silent=yes ;; 1078 1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1080 ac_prev=sbindir ;; 1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1082 | --sbi=* | --sb=*) 1083 sbindir=$ac_optarg ;; 1084 1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1087 | --sharedst | --shareds | --shared | --share | --shar \ 1088 | --sha | --sh) 1089 ac_prev=sharedstatedir ;; 1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1093 | --sha=* | --sh=*) 1094 sharedstatedir=$ac_optarg ;; 1095 1096 -site | --site | --sit) 1097 ac_prev=site ;; 1098 -site=* | --site=* | --sit=*) 1099 site=$ac_optarg ;; 1100 1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1102 ac_prev=srcdir ;; 1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1104 srcdir=$ac_optarg ;; 1105 1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1107 | --syscon | --sysco | --sysc | --sys | --sy) 1108 ac_prev=sysconfdir ;; 1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1111 sysconfdir=$ac_optarg ;; 1112 1113 -target | --target | --targe | --targ | --tar | --ta | --t) 1114 ac_prev=target_alias ;; 1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1116 target_alias=$ac_optarg ;; 1117 1118 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1119 verbose=yes ;; 1120 1121 -version | --version | --versio | --versi | --vers | -V) 1122 ac_init_version=: ;; 1123 1124 -with-* | --with-*) 1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1126 # Reject names that are not valid shell variable names. 1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1128 as_fn_error $? "invalid package name: $ac_useropt" 1129 ac_useropt_orig=$ac_useropt 1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1131 case $ac_user_opts in 1132 *" 1133"with_$ac_useropt" 1134"*) ;; 1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1136 ac_unrecognized_sep=', ';; 1137 esac 1138 eval with_$ac_useropt=\$ac_optarg ;; 1139 1140 -without-* | --without-*) 1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1142 # Reject names that are not valid shell variable names. 1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1144 as_fn_error $? "invalid package name: $ac_useropt" 1145 ac_useropt_orig=$ac_useropt 1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1147 case $ac_user_opts in 1148 *" 1149"with_$ac_useropt" 1150"*) ;; 1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1152 ac_unrecognized_sep=', ';; 1153 esac 1154 eval with_$ac_useropt=no ;; 1155 1156 --x) 1157 # Obsolete; use --with-x. 1158 with_x=yes ;; 1159 1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1161 | --x-incl | --x-inc | --x-in | --x-i) 1162 ac_prev=x_includes ;; 1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1165 x_includes=$ac_optarg ;; 1166 1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1169 ac_prev=x_libraries ;; 1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1172 x_libraries=$ac_optarg ;; 1173 1174 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1175Try \`$0 --help' for more information" 1176 ;; 1177 1178 *=*) 1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1180 # Reject names that are not valid shell variable names. 1181 case $ac_envvar in #( 1182 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1183 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1184 esac 1185 eval $ac_envvar=\$ac_optarg 1186 export $ac_envvar ;; 1187 1188 *) 1189 # FIXME: should be removed in autoconf 3.0. 1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1193 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1194 ;; 1195 1196 esac 1197done 1198 1199if test -n "$ac_prev"; then 1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1201 as_fn_error $? "missing argument to $ac_option" 1202fi 1203 1204if test -n "$ac_unrecognized_opts"; then 1205 case $enable_option_checking in 1206 no) ;; 1207 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1209 esac 1210fi 1211 1212# Check all directory arguments for consistency. 1213for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1214 datadir sysconfdir sharedstatedir localstatedir includedir \ 1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1216 libdir localedir mandir 1217do 1218 eval ac_val=\$$ac_var 1219 # Remove trailing slashes. 1220 case $ac_val in 1221 */ ) 1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1223 eval $ac_var=\$ac_val;; 1224 esac 1225 # Be sure to have absolute directory names. 1226 case $ac_val in 1227 [\\/$]* | ?:[\\/]* ) continue;; 1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1229 esac 1230 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1231done 1232 1233# There might be people who depend on the old broken behavior: `$host' 1234# used to hold the argument of --host etc. 1235# FIXME: To remove some day. 1236build=$build_alias 1237host=$host_alias 1238target=$target_alias 1239 1240# FIXME: To remove some day. 1241if test "x$host_alias" != x; then 1242 if test "x$build_alias" = x; then 1243 cross_compiling=maybe 1244 elif test "x$build_alias" != "x$host_alias"; then 1245 cross_compiling=yes 1246 fi 1247fi 1248 1249ac_tool_prefix= 1250test -n "$host_alias" && ac_tool_prefix=$host_alias- 1251 1252test "$silent" = yes && exec 6>/dev/null 1253 1254 1255ac_pwd=`pwd` && test -n "$ac_pwd" && 1256ac_ls_di=`ls -di .` && 1257ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1258 as_fn_error $? "working directory cannot be determined" 1259test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1260 as_fn_error $? "pwd does not report name of working directory" 1261 1262 1263# Find the source files, if location was not specified. 1264if test -z "$srcdir"; then 1265 ac_srcdir_defaulted=yes 1266 # Try the directory containing this script, then the parent directory. 1267 ac_confdir=`$as_dirname -- "$as_myself" || 1268$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1269 X"$as_myself" : 'X\(//\)[^/]' \| \ 1270 X"$as_myself" : 'X\(//\)$' \| \ 1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1272$as_echo X"$as_myself" | 1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1274 s//\1/ 1275 q 1276 } 1277 /^X\(\/\/\)[^/].*/{ 1278 s//\1/ 1279 q 1280 } 1281 /^X\(\/\/\)$/{ 1282 s//\1/ 1283 q 1284 } 1285 /^X\(\/\).*/{ 1286 s//\1/ 1287 q 1288 } 1289 s/.*/./; q'` 1290 srcdir=$ac_confdir 1291 if test ! -r "$srcdir/$ac_unique_file"; then 1292 srcdir=.. 1293 fi 1294else 1295 ac_srcdir_defaulted=no 1296fi 1297if test ! -r "$srcdir/$ac_unique_file"; then 1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1299 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1300fi 1301ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1302ac_abs_confdir=`( 1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1304 pwd)` 1305# When building in place, set srcdir=. 1306if test "$ac_abs_confdir" = "$ac_pwd"; then 1307 srcdir=. 1308fi 1309# Remove unnecessary trailing slashes from srcdir. 1310# Double slashes in file names in object file debugging info 1311# mess up M-x gdb in Emacs. 1312case $srcdir in 1313*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1314esac 1315for ac_var in $ac_precious_vars; do 1316 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1317 eval ac_env_${ac_var}_value=\$${ac_var} 1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1319 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1320done 1321 1322# 1323# Report the --help message. 1324# 1325if test "$ac_init_help" = "long"; then 1326 # Omit some internal or obsolete options to make the list less imposing. 1327 # This message is too long to be a string in the A/UX 3.1 sh. 1328 cat <<_ACEOF 1329\`configure' configures osl 0.8.3 to adapt to many kinds of systems. 1330 1331Usage: $0 [OPTION]... [VAR=VALUE]... 1332 1333To assign environment variables (e.g., CC, CFLAGS...), specify them as 1334VAR=VALUE. See below for descriptions of some of the useful variables. 1335 1336Defaults for the options are specified in brackets. 1337 1338Configuration: 1339 -h, --help display this help and exit 1340 --help=short display options specific to this package 1341 --help=recursive display the short help of all the included packages 1342 -V, --version display version information and exit 1343 -q, --quiet, --silent do not print \`checking ...' messages 1344 --cache-file=FILE cache test results in FILE [disabled] 1345 -C, --config-cache alias for \`--cache-file=config.cache' 1346 -n, --no-create do not create output files 1347 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1348 1349Installation directories: 1350 --prefix=PREFIX install architecture-independent files in PREFIX 1351 [$ac_default_prefix] 1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1353 [PREFIX] 1354 1355By default, \`make install' will install all the files in 1356\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1357an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1358for instance \`--prefix=\$HOME'. 1359 1360For better control, use the options below. 1361 1362Fine tuning of the installation directories: 1363 --bindir=DIR user executables [EPREFIX/bin] 1364 --sbindir=DIR system admin executables [EPREFIX/sbin] 1365 --libexecdir=DIR program executables [EPREFIX/libexec] 1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1369 --libdir=DIR object code libraries [EPREFIX/lib] 1370 --includedir=DIR C header files [PREFIX/include] 1371 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1374 --infodir=DIR info documentation [DATAROOTDIR/info] 1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1376 --mandir=DIR man documentation [DATAROOTDIR/man] 1377 --docdir=DIR documentation root [DATAROOTDIR/doc/osl] 1378 --htmldir=DIR html documentation [DOCDIR] 1379 --dvidir=DIR dvi documentation [DOCDIR] 1380 --pdfdir=DIR pdf documentation [DOCDIR] 1381 --psdir=DIR ps documentation [DOCDIR] 1382_ACEOF 1383 1384 cat <<\_ACEOF 1385 1386Program names: 1387 --program-prefix=PREFIX prepend PREFIX to installed program names 1388 --program-suffix=SUFFIX append SUFFIX to installed program names 1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1390 1391System types: 1392 --build=BUILD configure for building on BUILD [guessed] 1393 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1394_ACEOF 1395fi 1396 1397if test -n "$ac_init_help"; then 1398 case $ac_init_help in 1399 short | recursive ) echo "Configuration of osl 0.8.3:";; 1400 esac 1401 cat <<\_ACEOF 1402 1403Optional Features: 1404 --disable-option-checking ignore unrecognized --enable/--with options 1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1407 --enable-silent-rules less verbose build output (undo: `make V=1') 1408 --disable-silent-rules verbose build output (undo: `make V=0') 1409 --disable-dependency-tracking speeds up one-time build 1410 --enable-dependency-tracking do not reject slow dependency extractors 1411 --enable-shared[=PKGS] build shared libraries [default=yes] 1412 --enable-static[=PKGS] build static libraries [default=yes] 1413 --enable-fast-install[=PKGS] 1414 optimize for fast installation [default=yes] 1415 --disable-libtool-lock avoid locking (might break parallel builds) 1416 --enable-portable-binary 1417 disable compiler optimizations that would produce 1418 unportable binaries 1419 1420Optional Packages: 1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1423 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1424 both] 1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1426 --with-sysroot=DIR Search for dependent libraries within DIR 1427 (or the compiler's sysroot if not specified). 1428 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune, 1429 instead of guessing 1430 --with-gmp=no|system|build 1431 Which gmp to use 1432 --with-gmp-prefix=DIR Prefix of gmp installation 1433 --with-gmp-exec-prefix=DIR 1434 Exec prefix of gmp installation 1435 --with-gmp-builddir=DIR Location of gmp builddir 1436 1437Some influential environment variables: 1438 CC C compiler command 1439 CFLAGS C compiler flags 1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1441 nonstandard directory <lib dir> 1442 LIBS libraries to pass to the linker, e.g. -l<library> 1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1444 you have headers in a nonstandard directory <include dir> 1445 CPP C preprocessor 1446 1447Use these variables to override the choices made by `configure' or to help 1448it to find libraries and programs with nonstandard names/locations. 1449 1450Report bugs to <cedric.bastoul@u-psud.fr,pouchet@cse.ohio-state.edu>. 1451_ACEOF 1452ac_status=$? 1453fi 1454 1455if test "$ac_init_help" = "recursive"; then 1456 # If there are subdirs, report their specific --help. 1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1458 test -d "$ac_dir" || 1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1460 continue 1461 ac_builddir=. 1462 1463case "$ac_dir" in 1464.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1465*) 1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1467 # A ".." for each directory in $ac_dir_suffix. 1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1469 case $ac_top_builddir_sub in 1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1472 esac ;; 1473esac 1474ac_abs_top_builddir=$ac_pwd 1475ac_abs_builddir=$ac_pwd$ac_dir_suffix 1476# for backward compatibility: 1477ac_top_builddir=$ac_top_build_prefix 1478 1479case $srcdir in 1480 .) # We are building in place. 1481 ac_srcdir=. 1482 ac_top_srcdir=$ac_top_builddir_sub 1483 ac_abs_top_srcdir=$ac_pwd ;; 1484 [\\/]* | ?:[\\/]* ) # Absolute name. 1485 ac_srcdir=$srcdir$ac_dir_suffix; 1486 ac_top_srcdir=$srcdir 1487 ac_abs_top_srcdir=$srcdir ;; 1488 *) # Relative name. 1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1490 ac_top_srcdir=$ac_top_build_prefix$srcdir 1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1492esac 1493ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1494 1495 cd "$ac_dir" || { ac_status=$?; continue; } 1496 # Check for guested configure. 1497 if test -f "$ac_srcdir/configure.gnu"; then 1498 echo && 1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1500 elif test -f "$ac_srcdir/configure"; then 1501 echo && 1502 $SHELL "$ac_srcdir/configure" --help=recursive 1503 else 1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1505 fi || ac_status=$? 1506 cd "$ac_pwd" || { ac_status=$?; break; } 1507 done 1508fi 1509 1510test -n "$ac_init_help" && exit $ac_status 1511if $ac_init_version; then 1512 cat <<\_ACEOF 1513osl configure 0.8.3 1514generated by GNU Autoconf 2.69 1515 1516Copyright (C) 2012 Free Software Foundation, Inc. 1517This configure script is free software; the Free Software Foundation 1518gives unlimited permission to copy, distribute and modify it. 1519_ACEOF 1520 exit 1521fi 1522 1523## ------------------------ ## 1524## Autoconf initialization. ## 1525## ------------------------ ## 1526 1527# ac_fn_c_try_compile LINENO 1528# -------------------------- 1529# Try to compile conftest.$ac_ext, and return whether this succeeded. 1530ac_fn_c_try_compile () 1531{ 1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1533 rm -f conftest.$ac_objext 1534 if { { ac_try="$ac_compile" 1535case "(($ac_try" in 1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1537 *) ac_try_echo=$ac_try;; 1538esac 1539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1540$as_echo "$ac_try_echo"; } >&5 1541 (eval "$ac_compile") 2>conftest.err 1542 ac_status=$? 1543 if test -s conftest.err; then 1544 grep -v '^ *+' conftest.err >conftest.er1 1545 cat conftest.er1 >&5 1546 mv -f conftest.er1 conftest.err 1547 fi 1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1549 test $ac_status = 0; } && { 1550 test -z "$ac_c_werror_flag" || 1551 test ! -s conftest.err 1552 } && test -s conftest.$ac_objext; then : 1553 ac_retval=0 1554else 1555 $as_echo "$as_me: failed program was:" >&5 1556sed 's/^/| /' conftest.$ac_ext >&5 1557 1558 ac_retval=1 1559fi 1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1561 as_fn_set_status $ac_retval 1562 1563} # ac_fn_c_try_compile 1564 1565# ac_fn_c_try_link LINENO 1566# ----------------------- 1567# Try to link conftest.$ac_ext, and return whether this succeeded. 1568ac_fn_c_try_link () 1569{ 1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1571 rm -f conftest.$ac_objext conftest$ac_exeext 1572 if { { ac_try="$ac_link" 1573case "(($ac_try" in 1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1575 *) ac_try_echo=$ac_try;; 1576esac 1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1578$as_echo "$ac_try_echo"; } >&5 1579 (eval "$ac_link") 2>conftest.err 1580 ac_status=$? 1581 if test -s conftest.err; then 1582 grep -v '^ *+' conftest.err >conftest.er1 1583 cat conftest.er1 >&5 1584 mv -f conftest.er1 conftest.err 1585 fi 1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1587 test $ac_status = 0; } && { 1588 test -z "$ac_c_werror_flag" || 1589 test ! -s conftest.err 1590 } && test -s conftest$ac_exeext && { 1591 test "$cross_compiling" = yes || 1592 test -x conftest$ac_exeext 1593 }; then : 1594 ac_retval=0 1595else 1596 $as_echo "$as_me: failed program was:" >&5 1597sed 's/^/| /' conftest.$ac_ext >&5 1598 1599 ac_retval=1 1600fi 1601 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1602 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1603 # interfere with the next link command; also delete a directory that is 1604 # left behind by Apple's compiler. We do this before executing the actions. 1605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1607 as_fn_set_status $ac_retval 1608 1609} # ac_fn_c_try_link 1610 1611# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1612# ------------------------------------------------------- 1613# Tests whether HEADER exists and can be compiled using the include files in 1614# INCLUDES, setting the cache variable VAR accordingly. 1615ac_fn_c_check_header_compile () 1616{ 1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1619$as_echo_n "checking for $2... " >&6; } 1620if eval \${$3+:} false; then : 1621 $as_echo_n "(cached) " >&6 1622else 1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1624/* end confdefs.h. */ 1625$4 1626#include <$2> 1627_ACEOF 1628if ac_fn_c_try_compile "$LINENO"; then : 1629 eval "$3=yes" 1630else 1631 eval "$3=no" 1632fi 1633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1634fi 1635eval ac_res=\$$3 1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1637$as_echo "$ac_res" >&6; } 1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1639 1640} # ac_fn_c_check_header_compile 1641 1642# ac_fn_c_try_cpp LINENO 1643# ---------------------- 1644# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1645ac_fn_c_try_cpp () 1646{ 1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1648 if { { ac_try="$ac_cpp conftest.$ac_ext" 1649case "(($ac_try" in 1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1651 *) ac_try_echo=$ac_try;; 1652esac 1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1654$as_echo "$ac_try_echo"; } >&5 1655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1656 ac_status=$? 1657 if test -s conftest.err; then 1658 grep -v '^ *+' conftest.err >conftest.er1 1659 cat conftest.er1 >&5 1660 mv -f conftest.er1 conftest.err 1661 fi 1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1663 test $ac_status = 0; } > conftest.i && { 1664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1665 test ! -s conftest.err 1666 }; then : 1667 ac_retval=0 1668else 1669 $as_echo "$as_me: failed program was:" >&5 1670sed 's/^/| /' conftest.$ac_ext >&5 1671 1672 ac_retval=1 1673fi 1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1675 as_fn_set_status $ac_retval 1676 1677} # ac_fn_c_try_cpp 1678 1679# ac_fn_c_try_run LINENO 1680# ---------------------- 1681# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1682# that executables *can* be run. 1683ac_fn_c_try_run () 1684{ 1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1686 if { { ac_try="$ac_link" 1687case "(($ac_try" in 1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1689 *) ac_try_echo=$ac_try;; 1690esac 1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1692$as_echo "$ac_try_echo"; } >&5 1693 (eval "$ac_link") 2>&5 1694 ac_status=$? 1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1696 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1697 { { case "(($ac_try" in 1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1699 *) ac_try_echo=$ac_try;; 1700esac 1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1702$as_echo "$ac_try_echo"; } >&5 1703 (eval "$ac_try") 2>&5 1704 ac_status=$? 1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1706 test $ac_status = 0; }; }; then : 1707 ac_retval=0 1708else 1709 $as_echo "$as_me: program exited with status $ac_status" >&5 1710 $as_echo "$as_me: failed program was:" >&5 1711sed 's/^/| /' conftest.$ac_ext >&5 1712 1713 ac_retval=$ac_status 1714fi 1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1717 as_fn_set_status $ac_retval 1718 1719} # ac_fn_c_try_run 1720 1721# ac_fn_c_check_func LINENO FUNC VAR 1722# ---------------------------------- 1723# Tests whether FUNC exists, setting the cache variable VAR accordingly 1724ac_fn_c_check_func () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1728$as_echo_n "checking for $2... " >&6; } 1729if eval \${$3+:} false; then : 1730 $as_echo_n "(cached) " >&6 1731else 1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1733/* end confdefs.h. */ 1734/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1735 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1736#define $2 innocuous_$2 1737 1738/* System header to define __stub macros and hopefully few prototypes, 1739 which can conflict with char $2 (); below. 1740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1741 <limits.h> exists even on freestanding compilers. */ 1742 1743#ifdef __STDC__ 1744# include <limits.h> 1745#else 1746# include <assert.h> 1747#endif 1748 1749#undef $2 1750 1751/* Override any GCC internal prototype to avoid an error. 1752 Use char because int might match the return type of a GCC 1753 builtin and then its argument prototype would still apply. */ 1754#ifdef __cplusplus 1755extern "C" 1756#endif 1757char $2 (); 1758/* The GNU C library defines this for functions which it implements 1759 to always fail with ENOSYS. Some functions are actually named 1760 something starting with __ and the normal name is an alias. */ 1761#if defined __stub_$2 || defined __stub___$2 1762choke me 1763#endif 1764 1765int 1766main () 1767{ 1768return $2 (); 1769 ; 1770 return 0; 1771} 1772_ACEOF 1773if ac_fn_c_try_link "$LINENO"; then : 1774 eval "$3=yes" 1775else 1776 eval "$3=no" 1777fi 1778rm -f core conftest.err conftest.$ac_objext \ 1779 conftest$ac_exeext conftest.$ac_ext 1780fi 1781eval ac_res=\$$3 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1783$as_echo "$ac_res" >&6; } 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1785 1786} # ac_fn_c_check_func 1787 1788# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1789# ------------------------------------------- 1790# Tests whether TYPE exists after having included INCLUDES, setting cache 1791# variable VAR accordingly. 1792ac_fn_c_check_type () 1793{ 1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1796$as_echo_n "checking for $2... " >&6; } 1797if eval \${$3+:} false; then : 1798 $as_echo_n "(cached) " >&6 1799else 1800 eval "$3=no" 1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1802/* end confdefs.h. */ 1803$4 1804int 1805main () 1806{ 1807if (sizeof ($2)) 1808 return 0; 1809 ; 1810 return 0; 1811} 1812_ACEOF 1813if ac_fn_c_try_compile "$LINENO"; then : 1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1815/* end confdefs.h. */ 1816$4 1817int 1818main () 1819{ 1820if (sizeof (($2))) 1821 return 0; 1822 ; 1823 return 0; 1824} 1825_ACEOF 1826if ac_fn_c_try_compile "$LINENO"; then : 1827 1828else 1829 eval "$3=yes" 1830fi 1831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1832fi 1833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1834fi 1835eval ac_res=\$$3 1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1837$as_echo "$ac_res" >&6; } 1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1839 1840} # ac_fn_c_check_type 1841 1842# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1843# ------------------------------------------------------- 1844# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1845# the include files in INCLUDES and setting the cache variable VAR 1846# accordingly. 1847ac_fn_c_check_header_mongrel () 1848{ 1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1850 if eval \${$3+:} false; then : 1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1852$as_echo_n "checking for $2... " >&6; } 1853if eval \${$3+:} false; then : 1854 $as_echo_n "(cached) " >&6 1855fi 1856eval ac_res=\$$3 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1858$as_echo "$ac_res" >&6; } 1859else 1860 # Is the header compilable? 1861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1862$as_echo_n "checking $2 usability... " >&6; } 1863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1864/* end confdefs.h. */ 1865$4 1866#include <$2> 1867_ACEOF 1868if ac_fn_c_try_compile "$LINENO"; then : 1869 ac_header_compiler=yes 1870else 1871 ac_header_compiler=no 1872fi 1873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1875$as_echo "$ac_header_compiler" >&6; } 1876 1877# Is the header present? 1878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1879$as_echo_n "checking $2 presence... " >&6; } 1880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1881/* end confdefs.h. */ 1882#include <$2> 1883_ACEOF 1884if ac_fn_c_try_cpp "$LINENO"; then : 1885 ac_header_preproc=yes 1886else 1887 ac_header_preproc=no 1888fi 1889rm -f conftest.err conftest.i conftest.$ac_ext 1890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1891$as_echo "$ac_header_preproc" >&6; } 1892 1893# So? What about this header? 1894case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1895 yes:no: ) 1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1897$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1899$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1900 ;; 1901 no:yes:* ) 1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1903$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1905$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1907$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1909$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1911$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1912( $as_echo "## ppppppppppppppppppppppppppppppppppppppp ## 1913## Report this to cedric.bastoul@u-psud.fr ## 1914## ppppppppppppppppppppppppppppppppppppppp ##" 1915 ) | sed "s/^/$as_me: WARNING: /" >&2 1916 ;; 1917esac 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1919$as_echo_n "checking for $2... " >&6; } 1920if eval \${$3+:} false; then : 1921 $as_echo_n "(cached) " >&6 1922else 1923 eval "$3=\$ac_header_compiler" 1924fi 1925eval ac_res=\$$3 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1927$as_echo "$ac_res" >&6; } 1928fi 1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1930 1931} # ac_fn_c_check_header_mongrel 1932cat >config.log <<_ACEOF 1933This file contains any messages produced by compilers while 1934running configure, to aid debugging if configure makes a mistake. 1935 1936It was created by osl $as_me 0.8.3, which was 1937generated by GNU Autoconf 2.69. Invocation command line was 1938 1939 $ $0 $@ 1940 1941_ACEOF 1942exec 5>>config.log 1943{ 1944cat <<_ASUNAME 1945## --------- ## 1946## Platform. ## 1947## --------- ## 1948 1949hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1950uname -m = `(uname -m) 2>/dev/null || echo unknown` 1951uname -r = `(uname -r) 2>/dev/null || echo unknown` 1952uname -s = `(uname -s) 2>/dev/null || echo unknown` 1953uname -v = `(uname -v) 2>/dev/null || echo unknown` 1954 1955/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1956/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1957 1958/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1959/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1960/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1961/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1962/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1963/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1964/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1965 1966_ASUNAME 1967 1968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1969for as_dir in $PATH 1970do 1971 IFS=$as_save_IFS 1972 test -z "$as_dir" && as_dir=. 1973 $as_echo "PATH: $as_dir" 1974 done 1975IFS=$as_save_IFS 1976 1977} >&5 1978 1979cat >&5 <<_ACEOF 1980 1981 1982## ----------- ## 1983## Core tests. ## 1984## ----------- ## 1985 1986_ACEOF 1987 1988 1989# Keep a trace of the command line. 1990# Strip out --no-create and --no-recursion so they do not pile up. 1991# Strip out --silent because we don't want to record it for future runs. 1992# Also quote any args containing shell meta-characters. 1993# Make two passes to allow for proper duplicate-argument suppression. 1994ac_configure_args= 1995ac_configure_args0= 1996ac_configure_args1= 1997ac_must_keep_next=false 1998for ac_pass in 1 2 1999do 2000 for ac_arg 2001 do 2002 case $ac_arg in 2003 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2005 | -silent | --silent | --silen | --sile | --sil) 2006 continue ;; 2007 *\'*) 2008 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2009 esac 2010 case $ac_pass in 2011 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2012 2) 2013 as_fn_append ac_configure_args1 " '$ac_arg'" 2014 if test $ac_must_keep_next = true; then 2015 ac_must_keep_next=false # Got value, back to normal. 2016 else 2017 case $ac_arg in 2018 *=* | --config-cache | -C | -disable-* | --disable-* \ 2019 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2020 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2021 | -with-* | --with-* | -without-* | --without-* | --x) 2022 case "$ac_configure_args0 " in 2023 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2024 esac 2025 ;; 2026 -* ) ac_must_keep_next=true ;; 2027 esac 2028 fi 2029 as_fn_append ac_configure_args " '$ac_arg'" 2030 ;; 2031 esac 2032 done 2033done 2034{ ac_configure_args0=; unset ac_configure_args0;} 2035{ ac_configure_args1=; unset ac_configure_args1;} 2036 2037# When interrupted or exit'd, cleanup temporary files, and complete 2038# config.log. We remove comments because anyway the quotes in there 2039# would cause problems or look ugly. 2040# WARNING: Use '\'' to represent an apostrophe within the trap. 2041# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2042trap 'exit_status=$? 2043 # Save into config.log some information that might help in debugging. 2044 { 2045 echo 2046 2047 $as_echo "## ---------------- ## 2048## Cache variables. ## 2049## ---------------- ##" 2050 echo 2051 # The following way of writing the cache mishandles newlines in values, 2052( 2053 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2054 eval ac_val=\$$ac_var 2055 case $ac_val in #( 2056 *${as_nl}*) 2057 case $ac_var in #( 2058 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2059$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2060 esac 2061 case $ac_var in #( 2062 _ | IFS | as_nl) ;; #( 2063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2064 *) { eval $ac_var=; unset $ac_var;} ;; 2065 esac ;; 2066 esac 2067 done 2068 (set) 2>&1 | 2069 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2070 *${as_nl}ac_space=\ *) 2071 sed -n \ 2072 "s/'\''/'\''\\\\'\'''\''/g; 2073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2074 ;; #( 2075 *) 2076 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2077 ;; 2078 esac | 2079 sort 2080) 2081 echo 2082 2083 $as_echo "## ----------------- ## 2084## Output variables. ## 2085## ----------------- ##" 2086 echo 2087 for ac_var in $ac_subst_vars 2088 do 2089 eval ac_val=\$$ac_var 2090 case $ac_val in 2091 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2092 esac 2093 $as_echo "$ac_var='\''$ac_val'\''" 2094 done | sort 2095 echo 2096 2097 if test -n "$ac_subst_files"; then 2098 $as_echo "## ------------------- ## 2099## File substitutions. ## 2100## ------------------- ##" 2101 echo 2102 for ac_var in $ac_subst_files 2103 do 2104 eval ac_val=\$$ac_var 2105 case $ac_val in 2106 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2107 esac 2108 $as_echo "$ac_var='\''$ac_val'\''" 2109 done | sort 2110 echo 2111 fi 2112 2113 if test -s confdefs.h; then 2114 $as_echo "## ----------- ## 2115## confdefs.h. ## 2116## ----------- ##" 2117 echo 2118 cat confdefs.h 2119 echo 2120 fi 2121 test "$ac_signal" != 0 && 2122 $as_echo "$as_me: caught signal $ac_signal" 2123 $as_echo "$as_me: exit $exit_status" 2124 } >&5 2125 rm -f core *.core core.conftest.* && 2126 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2127 exit $exit_status 2128' 0 2129for ac_signal in 1 2 13 15; do 2130 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2131done 2132ac_signal=0 2133 2134# confdefs.h avoids OS command line length limits that DEFS can exceed. 2135rm -f -r conftest* confdefs.h 2136 2137$as_echo "/* confdefs.h */" > confdefs.h 2138 2139# Predefined preprocessor variables. 2140 2141cat >>confdefs.h <<_ACEOF 2142#define PACKAGE_NAME "$PACKAGE_NAME" 2143_ACEOF 2144 2145cat >>confdefs.h <<_ACEOF 2146#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2147_ACEOF 2148 2149cat >>confdefs.h <<_ACEOF 2150#define PACKAGE_VERSION "$PACKAGE_VERSION" 2151_ACEOF 2152 2153cat >>confdefs.h <<_ACEOF 2154#define PACKAGE_STRING "$PACKAGE_STRING" 2155_ACEOF 2156 2157cat >>confdefs.h <<_ACEOF 2158#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2159_ACEOF 2160 2161cat >>confdefs.h <<_ACEOF 2162#define PACKAGE_URL "$PACKAGE_URL" 2163_ACEOF 2164 2165 2166# Let the site file select an alternate cache file if it wants to. 2167# Prefer an explicitly selected file to automatically selected ones. 2168ac_site_file1=NONE 2169ac_site_file2=NONE 2170if test -n "$CONFIG_SITE"; then 2171 # We do not want a PATH search for config.site. 2172 case $CONFIG_SITE in #(( 2173 -*) ac_site_file1=./$CONFIG_SITE;; 2174 */*) ac_site_file1=$CONFIG_SITE;; 2175 *) ac_site_file1=./$CONFIG_SITE;; 2176 esac 2177elif test "x$prefix" != xNONE; then 2178 ac_site_file1=$prefix/share/config.site 2179 ac_site_file2=$prefix/etc/config.site 2180else 2181 ac_site_file1=$ac_default_prefix/share/config.site 2182 ac_site_file2=$ac_default_prefix/etc/config.site 2183fi 2184for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2185do 2186 test "x$ac_site_file" = xNONE && continue 2187 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2189$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2190 sed 's/^/| /' "$ac_site_file" >&5 2191 . "$ac_site_file" \ 2192 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2194as_fn_error $? "failed to load site script $ac_site_file 2195See \`config.log' for more details" "$LINENO" 5; } 2196 fi 2197done 2198 2199if test -r "$cache_file"; then 2200 # Some versions of bash will fail to source /dev/null (special files 2201 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2202 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2204$as_echo "$as_me: loading cache $cache_file" >&6;} 2205 case $cache_file in 2206 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2207 *) . "./$cache_file";; 2208 esac 2209 fi 2210else 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2212$as_echo "$as_me: creating cache $cache_file" >&6;} 2213 >$cache_file 2214fi 2215 2216# Check that the precious variables saved in the cache have kept the same 2217# value. 2218ac_cache_corrupted=false 2219for ac_var in $ac_precious_vars; do 2220 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2221 eval ac_new_set=\$ac_env_${ac_var}_set 2222 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2223 eval ac_new_val=\$ac_env_${ac_var}_value 2224 case $ac_old_set,$ac_new_set in 2225 set,) 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2227$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2228 ac_cache_corrupted=: ;; 2229 ,set) 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2231$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2232 ac_cache_corrupted=: ;; 2233 ,);; 2234 *) 2235 if test "x$ac_old_val" != "x$ac_new_val"; then 2236 # differences in whitespace do not lead to failure. 2237 ac_old_val_w=`echo x $ac_old_val` 2238 ac_new_val_w=`echo x $ac_new_val` 2239 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2241$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2242 ac_cache_corrupted=: 2243 else 2244 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2245$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2246 eval $ac_var=\$ac_old_val 2247 fi 2248 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2249$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2251$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2252 fi;; 2253 esac 2254 # Pass precious variables to config.status. 2255 if test "$ac_new_set" = set; then 2256 case $ac_new_val in 2257 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2258 *) ac_arg=$ac_var=$ac_new_val ;; 2259 esac 2260 case " $ac_configure_args " in 2261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2262 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2263 esac 2264 fi 2265done 2266if $ac_cache_corrupted; then 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2270$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2271 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2272fi 2273## -------------------- ## 2274## Main body of script. ## 2275## -------------------- ## 2276 2277ac_ext=c 2278ac_cpp='$CPP $CPPFLAGS' 2279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2281ac_compiler_gnu=$ac_cv_c_compiler_gnu 2282 2283 2284 2285ac_aux_dir= 2286for ac_dir in autoconf "$srcdir"/autoconf; do 2287 if test -f "$ac_dir/install-sh"; then 2288 ac_aux_dir=$ac_dir 2289 ac_install_sh="$ac_aux_dir/install-sh -c" 2290 break 2291 elif test -f "$ac_dir/install.sh"; then 2292 ac_aux_dir=$ac_dir 2293 ac_install_sh="$ac_aux_dir/install.sh -c" 2294 break 2295 elif test -f "$ac_dir/shtool"; then 2296 ac_aux_dir=$ac_dir 2297 ac_install_sh="$ac_aux_dir/shtool install -c" 2298 break 2299 fi 2300done 2301if test -z "$ac_aux_dir"; then 2302 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5 2303fi 2304 2305# These three variables are undocumented and unsupported, 2306# and are intended to be withdrawn in a future Autoconf release. 2307# They can cause serious problems if a builder's source tree is in a directory 2308# whose full name contains unusual characters. 2309ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2310ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2311ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2312 2313 2314 2315 2316am__api_version='1.11' 2317 2318# Find a good install program. We prefer a C program (faster), 2319# so one script is as good as another. But avoid the broken or 2320# incompatible versions: 2321# SysV /etc/install, /usr/sbin/install 2322# SunOS /usr/etc/install 2323# IRIX /sbin/install 2324# AIX /bin/install 2325# AmigaOS /C/install, which installs bootblocks on floppy discs 2326# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2327# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2328# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2329# OS/2's system install, which has a completely different semantic 2330# ./install, which can be erroneously created by make from ./install.sh. 2331# Reject install programs that cannot install multiple files. 2332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2333$as_echo_n "checking for a BSD-compatible install... " >&6; } 2334if test -z "$INSTALL"; then 2335if ${ac_cv_path_install+:} false; then : 2336 $as_echo_n "(cached) " >&6 2337else 2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2339for as_dir in $PATH 2340do 2341 IFS=$as_save_IFS 2342 test -z "$as_dir" && as_dir=. 2343 # Account for people who put trailing slashes in PATH elements. 2344case $as_dir/ in #(( 2345 ./ | .// | /[cC]/* | \ 2346 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2347 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2348 /usr/ucb/* ) ;; 2349 *) 2350 # OSF1 and SCO ODT 3.0 have their own names for install. 2351 # Don't use installbsd from OSF since it installs stuff as root 2352 # by default. 2353 for ac_prog in ginstall scoinst install; do 2354 for ac_exec_ext in '' $ac_executable_extensions; do 2355 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2356 if test $ac_prog = install && 2357 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2358 # AIX install. It has an incompatible calling convention. 2359 : 2360 elif test $ac_prog = install && 2361 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2362 # program-specific install script used by HP pwplus--don't use. 2363 : 2364 else 2365 rm -rf conftest.one conftest.two conftest.dir 2366 echo one > conftest.one 2367 echo two > conftest.two 2368 mkdir conftest.dir 2369 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2370 test -s conftest.one && test -s conftest.two && 2371 test -s conftest.dir/conftest.one && 2372 test -s conftest.dir/conftest.two 2373 then 2374 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2375 break 3 2376 fi 2377 fi 2378 fi 2379 done 2380 done 2381 ;; 2382esac 2383 2384 done 2385IFS=$as_save_IFS 2386 2387rm -rf conftest.one conftest.two conftest.dir 2388 2389fi 2390 if test "${ac_cv_path_install+set}" = set; then 2391 INSTALL=$ac_cv_path_install 2392 else 2393 # As a last resort, use the slow shell script. Don't cache a 2394 # value for INSTALL within a source directory, because that will 2395 # break other packages using the cache if that directory is 2396 # removed, or if the value is a relative name. 2397 INSTALL=$ac_install_sh 2398 fi 2399fi 2400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2401$as_echo "$INSTALL" >&6; } 2402 2403# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2404# It thinks the first close brace ends the variable substitution. 2405test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2406 2407test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2408 2409test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2410 2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2412$as_echo_n "checking whether build environment is sane... " >&6; } 2413# Just in case 2414sleep 1 2415echo timestamp > conftest.file 2416# Reject unsafe characters in $srcdir or the absolute working directory 2417# name. Accept space and tab only in the latter. 2418am_lf=' 2419' 2420case `pwd` in 2421 *[\\\"\#\$\&\'\`$am_lf]*) 2422 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2423esac 2424case $srcdir in 2425 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2426 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2427esac 2428 2429# Do `set' in a subshell so we don't clobber the current shell's 2430# arguments. Must try -L first in case configure is actually a 2431# symlink; some systems play weird games with the mod time of symlinks 2432# (eg FreeBSD returns the mod time of the symlink's containing 2433# directory). 2434if ( 2435 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2436 if test "$*" = "X"; then 2437 # -L didn't work. 2438 set X `ls -t "$srcdir/configure" conftest.file` 2439 fi 2440 rm -f conftest.file 2441 if test "$*" != "X $srcdir/configure conftest.file" \ 2442 && test "$*" != "X conftest.file $srcdir/configure"; then 2443 2444 # If neither matched, then we have a broken ls. This can happen 2445 # if, for instance, CONFIG_SHELL is bash and it inherits a 2446 # broken ls alias from the environment. This has actually 2447 # happened. Such a system could not be considered "sane". 2448 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2449alias in your environment" "$LINENO" 5 2450 fi 2451 2452 test "$2" = conftest.file 2453 ) 2454then 2455 # Ok. 2456 : 2457else 2458 as_fn_error $? "newly created file is older than distributed files! 2459Check your system clock" "$LINENO" 5 2460fi 2461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2462$as_echo "yes" >&6; } 2463test "$program_prefix" != NONE && 2464 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2465# Use a double $ so make ignores it. 2466test "$program_suffix" != NONE && 2467 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2468# Double any \ or $. 2469# By default was `s,x,x', remove it if useless. 2470ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2471program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2472 2473# expand $ac_aux_dir to an absolute path 2474am_aux_dir=`cd $ac_aux_dir && pwd` 2475 2476if test x"${MISSING+set}" != xset; then 2477 case $am_aux_dir in 2478 *\ * | *\ *) 2479 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2480 *) 2481 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2482 esac 2483fi 2484# Use eval to expand $SHELL 2485if eval "$MISSING --run true"; then 2486 am_missing_run="$MISSING --run " 2487else 2488 am_missing_run= 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2490$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2491fi 2492 2493if test x"${install_sh}" != xset; then 2494 case $am_aux_dir in 2495 *\ * | *\ *) 2496 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2497 *) 2498 install_sh="\${SHELL} $am_aux_dir/install-sh" 2499 esac 2500fi 2501 2502# Installed binaries are usually stripped using `strip' when the user 2503# run `make install-strip'. However `strip' might not be the right 2504# tool to use in cross-compilation environments, therefore Automake 2505# will honor the `STRIP' environment variable to overrule this program. 2506if test "$cross_compiling" != no; then 2507 if test -n "$ac_tool_prefix"; then 2508 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2509set dummy ${ac_tool_prefix}strip; ac_word=$2 2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2511$as_echo_n "checking for $ac_word... " >&6; } 2512if ${ac_cv_prog_STRIP+:} false; then : 2513 $as_echo_n "(cached) " >&6 2514else 2515 if test -n "$STRIP"; then 2516 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2517else 2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2519for as_dir in $PATH 2520do 2521 IFS=$as_save_IFS 2522 test -z "$as_dir" && as_dir=. 2523 for ac_exec_ext in '' $ac_executable_extensions; do 2524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2525 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2527 break 2 2528 fi 2529done 2530 done 2531IFS=$as_save_IFS 2532 2533fi 2534fi 2535STRIP=$ac_cv_prog_STRIP 2536if test -n "$STRIP"; then 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2538$as_echo "$STRIP" >&6; } 2539else 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2541$as_echo "no" >&6; } 2542fi 2543 2544 2545fi 2546if test -z "$ac_cv_prog_STRIP"; then 2547 ac_ct_STRIP=$STRIP 2548 # Extract the first word of "strip", so it can be a program name with args. 2549set dummy strip; ac_word=$2 2550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2551$as_echo_n "checking for $ac_word... " >&6; } 2552if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2553 $as_echo_n "(cached) " >&6 2554else 2555 if test -n "$ac_ct_STRIP"; then 2556 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2557else 2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2559for as_dir in $PATH 2560do 2561 IFS=$as_save_IFS 2562 test -z "$as_dir" && as_dir=. 2563 for ac_exec_ext in '' $ac_executable_extensions; do 2564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2565 ac_cv_prog_ac_ct_STRIP="strip" 2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2567 break 2 2568 fi 2569done 2570 done 2571IFS=$as_save_IFS 2572 2573fi 2574fi 2575ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2576if test -n "$ac_ct_STRIP"; then 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2578$as_echo "$ac_ct_STRIP" >&6; } 2579else 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2581$as_echo "no" >&6; } 2582fi 2583 2584 if test "x$ac_ct_STRIP" = x; then 2585 STRIP=":" 2586 else 2587 case $cross_compiling:$ac_tool_warned in 2588yes:) 2589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2591ac_tool_warned=yes ;; 2592esac 2593 STRIP=$ac_ct_STRIP 2594 fi 2595else 2596 STRIP="$ac_cv_prog_STRIP" 2597fi 2598 2599fi 2600INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2601 2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2603$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2604if test -z "$MKDIR_P"; then 2605 if ${ac_cv_path_mkdir+:} false; then : 2606 $as_echo_n "(cached) " >&6 2607else 2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2609for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2610do 2611 IFS=$as_save_IFS 2612 test -z "$as_dir" && as_dir=. 2613 for ac_prog in mkdir gmkdir; do 2614 for ac_exec_ext in '' $ac_executable_extensions; do 2615 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2616 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2617 'mkdir (GNU coreutils) '* | \ 2618 'mkdir (coreutils) '* | \ 2619 'mkdir (fileutils) '4.1*) 2620 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2621 break 3;; 2622 esac 2623 done 2624 done 2625 done 2626IFS=$as_save_IFS 2627 2628fi 2629 2630 test -d ./--version && rmdir ./--version 2631 if test "${ac_cv_path_mkdir+set}" = set; then 2632 MKDIR_P="$ac_cv_path_mkdir -p" 2633 else 2634 # As a last resort, use the slow shell script. Don't cache a 2635 # value for MKDIR_P within a source directory, because that will 2636 # break other packages using the cache if that directory is 2637 # removed, or if the value is a relative name. 2638 MKDIR_P="$ac_install_sh -d" 2639 fi 2640fi 2641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2642$as_echo "$MKDIR_P" >&6; } 2643 2644mkdir_p="$MKDIR_P" 2645case $mkdir_p in 2646 [\\/$]* | ?:[\\/]*) ;; 2647 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2648esac 2649 2650for ac_prog in gawk mawk nawk awk 2651do 2652 # Extract the first word of "$ac_prog", so it can be a program name with args. 2653set dummy $ac_prog; ac_word=$2 2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2655$as_echo_n "checking for $ac_word... " >&6; } 2656if ${ac_cv_prog_AWK+:} false; then : 2657 $as_echo_n "(cached) " >&6 2658else 2659 if test -n "$AWK"; then 2660 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2661else 2662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2663for as_dir in $PATH 2664do 2665 IFS=$as_save_IFS 2666 test -z "$as_dir" && as_dir=. 2667 for ac_exec_ext in '' $ac_executable_extensions; do 2668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2669 ac_cv_prog_AWK="$ac_prog" 2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2671 break 2 2672 fi 2673done 2674 done 2675IFS=$as_save_IFS 2676 2677fi 2678fi 2679AWK=$ac_cv_prog_AWK 2680if test -n "$AWK"; then 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2682$as_echo "$AWK" >&6; } 2683else 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2685$as_echo "no" >&6; } 2686fi 2687 2688 2689 test -n "$AWK" && break 2690done 2691 2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2693$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2694set x ${MAKE-make} 2695ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2696if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2697 $as_echo_n "(cached) " >&6 2698else 2699 cat >conftest.make <<\_ACEOF 2700SHELL = /bin/sh 2701all: 2702 @echo '@@@%%%=$(MAKE)=@@@%%%' 2703_ACEOF 2704# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2705case `${MAKE-make} -f conftest.make 2>/dev/null` in 2706 *@@@%%%=?*=@@@%%%*) 2707 eval ac_cv_prog_make_${ac_make}_set=yes;; 2708 *) 2709 eval ac_cv_prog_make_${ac_make}_set=no;; 2710esac 2711rm -f conftest.make 2712fi 2713if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2715$as_echo "yes" >&6; } 2716 SET_MAKE= 2717else 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2719$as_echo "no" >&6; } 2720 SET_MAKE="MAKE=${MAKE-make}" 2721fi 2722 2723rm -rf .tst 2>/dev/null 2724mkdir .tst 2>/dev/null 2725if test -d .tst; then 2726 am__leading_dot=. 2727else 2728 am__leading_dot=_ 2729fi 2730rmdir .tst 2>/dev/null 2731 2732if test "`cd $srcdir && pwd`" != "`pwd`"; then 2733 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2734 # is not polluted with repeated "-I." 2735 am__isrc=' -I$(srcdir)' 2736 # test to see if srcdir already configured 2737 if test -f $srcdir/config.status; then 2738 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2739 fi 2740fi 2741 2742# test whether we have cygpath 2743if test -z "$CYGPATH_W"; then 2744 if (cygpath --version) >/dev/null 2>/dev/null; then 2745 CYGPATH_W='cygpath -w' 2746 else 2747 CYGPATH_W=echo 2748 fi 2749fi 2750 2751 2752# Define the identity of the package. 2753 PACKAGE='osl' 2754 VERSION='0.8.3' 2755 2756 2757cat >>confdefs.h <<_ACEOF 2758#define PACKAGE "$PACKAGE" 2759_ACEOF 2760 2761 2762cat >>confdefs.h <<_ACEOF 2763#define VERSION "$VERSION" 2764_ACEOF 2765 2766# Some tools Automake needs. 2767 2768ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2769 2770 2771AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2772 2773 2774AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2775 2776 2777AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2778 2779 2780MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2781 2782# We need awk for the "check" target. The system "awk" is bad on 2783# some platforms. 2784# Always define AMTAR for backward compatibility. Yes, it's still used 2785# in the wild :-( We should find a proper way to deprecate it ... 2786AMTAR='$${TAR-tar}' 2787 2788am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2789 2790 2791 2792 2793 2794# Check whether --enable-silent-rules was given. 2795if test "${enable_silent_rules+set}" = set; then : 2796 enableval=$enable_silent_rules; 2797fi 2798 2799case $enable_silent_rules in 2800yes) AM_DEFAULT_VERBOSITY=0;; 2801no) AM_DEFAULT_VERBOSITY=1;; 2802*) AM_DEFAULT_VERBOSITY=0;; 2803esac 2804am_make=${MAKE-make} 2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2806$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2807if ${am_cv_make_support_nested_variables+:} false; then : 2808 $as_echo_n "(cached) " >&6 2809else 2810 if $as_echo 'TRUE=$(BAR$(V)) 2811BAR0=false 2812BAR1=true 2813V=1 2814am__doit: 2815 @$(TRUE) 2816.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2817 am_cv_make_support_nested_variables=yes 2818else 2819 am_cv_make_support_nested_variables=no 2820fi 2821fi 2822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2823$as_echo "$am_cv_make_support_nested_variables" >&6; } 2824if test $am_cv_make_support_nested_variables = yes; then 2825 AM_V='$(V)' 2826 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2827else 2828 AM_V=$AM_DEFAULT_VERBOSITY 2829 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2830fi 2831AM_BACKSLASH='\' 2832 2833 2834 2835 2836 2837ac_ext=c 2838ac_cpp='$CPP $CPPFLAGS' 2839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2841ac_compiler_gnu=$ac_cv_c_compiler_gnu 2842if test -n "$ac_tool_prefix"; then 2843 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2844set dummy ${ac_tool_prefix}gcc; ac_word=$2 2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2846$as_echo_n "checking for $ac_word... " >&6; } 2847if ${ac_cv_prog_CC+:} false; then : 2848 $as_echo_n "(cached) " >&6 2849else 2850 if test -n "$CC"; then 2851 ac_cv_prog_CC="$CC" # Let the user override the test. 2852else 2853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2854for as_dir in $PATH 2855do 2856 IFS=$as_save_IFS 2857 test -z "$as_dir" && as_dir=. 2858 for ac_exec_ext in '' $ac_executable_extensions; do 2859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2860 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2862 break 2 2863 fi 2864done 2865 done 2866IFS=$as_save_IFS 2867 2868fi 2869fi 2870CC=$ac_cv_prog_CC 2871if test -n "$CC"; then 2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2873$as_echo "$CC" >&6; } 2874else 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2876$as_echo "no" >&6; } 2877fi 2878 2879 2880fi 2881if test -z "$ac_cv_prog_CC"; then 2882 ac_ct_CC=$CC 2883 # Extract the first word of "gcc", so it can be a program name with args. 2884set dummy gcc; ac_word=$2 2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2886$as_echo_n "checking for $ac_word... " >&6; } 2887if ${ac_cv_prog_ac_ct_CC+:} false; then : 2888 $as_echo_n "(cached) " >&6 2889else 2890 if test -n "$ac_ct_CC"; then 2891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2892else 2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2894for as_dir in $PATH 2895do 2896 IFS=$as_save_IFS 2897 test -z "$as_dir" && as_dir=. 2898 for ac_exec_ext in '' $ac_executable_extensions; do 2899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2900 ac_cv_prog_ac_ct_CC="gcc" 2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2902 break 2 2903 fi 2904done 2905 done 2906IFS=$as_save_IFS 2907 2908fi 2909fi 2910ac_ct_CC=$ac_cv_prog_ac_ct_CC 2911if test -n "$ac_ct_CC"; then 2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2913$as_echo "$ac_ct_CC" >&6; } 2914else 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2916$as_echo "no" >&6; } 2917fi 2918 2919 if test "x$ac_ct_CC" = x; then 2920 CC="" 2921 else 2922 case $cross_compiling:$ac_tool_warned in 2923yes:) 2924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2926ac_tool_warned=yes ;; 2927esac 2928 CC=$ac_ct_CC 2929 fi 2930else 2931 CC="$ac_cv_prog_CC" 2932fi 2933 2934if test -z "$CC"; then 2935 if test -n "$ac_tool_prefix"; then 2936 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2937set dummy ${ac_tool_prefix}cc; ac_word=$2 2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2939$as_echo_n "checking for $ac_word... " >&6; } 2940if ${ac_cv_prog_CC+:} false; then : 2941 $as_echo_n "(cached) " >&6 2942else 2943 if test -n "$CC"; then 2944 ac_cv_prog_CC="$CC" # Let the user override the test. 2945else 2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2947for as_dir in $PATH 2948do 2949 IFS=$as_save_IFS 2950 test -z "$as_dir" && as_dir=. 2951 for ac_exec_ext in '' $ac_executable_extensions; do 2952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2953 ac_cv_prog_CC="${ac_tool_prefix}cc" 2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2955 break 2 2956 fi 2957done 2958 done 2959IFS=$as_save_IFS 2960 2961fi 2962fi 2963CC=$ac_cv_prog_CC 2964if test -n "$CC"; then 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2966$as_echo "$CC" >&6; } 2967else 2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2969$as_echo "no" >&6; } 2970fi 2971 2972 2973 fi 2974fi 2975if test -z "$CC"; then 2976 # Extract the first word of "cc", so it can be a program name with args. 2977set dummy cc; ac_word=$2 2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2979$as_echo_n "checking for $ac_word... " >&6; } 2980if ${ac_cv_prog_CC+:} false; then : 2981 $as_echo_n "(cached) " >&6 2982else 2983 if test -n "$CC"; then 2984 ac_cv_prog_CC="$CC" # Let the user override the test. 2985else 2986 ac_prog_rejected=no 2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2988for as_dir in $PATH 2989do 2990 IFS=$as_save_IFS 2991 test -z "$as_dir" && as_dir=. 2992 for ac_exec_ext in '' $ac_executable_extensions; do 2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2994 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2995 ac_prog_rejected=yes 2996 continue 2997 fi 2998 ac_cv_prog_CC="cc" 2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3000 break 2 3001 fi 3002done 3003 done 3004IFS=$as_save_IFS 3005 3006if test $ac_prog_rejected = yes; then 3007 # We found a bogon in the path, so make sure we never use it. 3008 set dummy $ac_cv_prog_CC 3009 shift 3010 if test $# != 0; then 3011 # We chose a different compiler from the bogus one. 3012 # However, it has the same basename, so the bogon will be chosen 3013 # first if we set CC to just the basename; use the full file name. 3014 shift 3015 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3016 fi 3017fi 3018fi 3019fi 3020CC=$ac_cv_prog_CC 3021if test -n "$CC"; then 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3023$as_echo "$CC" >&6; } 3024else 3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3026$as_echo "no" >&6; } 3027fi 3028 3029 3030fi 3031if test -z "$CC"; then 3032 if test -n "$ac_tool_prefix"; then 3033 for ac_prog in cl.exe 3034 do 3035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3036set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3038$as_echo_n "checking for $ac_word... " >&6; } 3039if ${ac_cv_prog_CC+:} false; then : 3040 $as_echo_n "(cached) " >&6 3041else 3042 if test -n "$CC"; then 3043 ac_cv_prog_CC="$CC" # Let the user override the test. 3044else 3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3046for as_dir in $PATH 3047do 3048 IFS=$as_save_IFS 3049 test -z "$as_dir" && as_dir=. 3050 for ac_exec_ext in '' $ac_executable_extensions; do 3051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3054 break 2 3055 fi 3056done 3057 done 3058IFS=$as_save_IFS 3059 3060fi 3061fi 3062CC=$ac_cv_prog_CC 3063if test -n "$CC"; then 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3065$as_echo "$CC" >&6; } 3066else 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3068$as_echo "no" >&6; } 3069fi 3070 3071 3072 test -n "$CC" && break 3073 done 3074fi 3075if test -z "$CC"; then 3076 ac_ct_CC=$CC 3077 for ac_prog in cl.exe 3078do 3079 # Extract the first word of "$ac_prog", so it can be a program name with args. 3080set dummy $ac_prog; ac_word=$2 3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3082$as_echo_n "checking for $ac_word... " >&6; } 3083if ${ac_cv_prog_ac_ct_CC+:} false; then : 3084 $as_echo_n "(cached) " >&6 3085else 3086 if test -n "$ac_ct_CC"; then 3087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3088else 3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3090for as_dir in $PATH 3091do 3092 IFS=$as_save_IFS 3093 test -z "$as_dir" && as_dir=. 3094 for ac_exec_ext in '' $ac_executable_extensions; do 3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3096 ac_cv_prog_ac_ct_CC="$ac_prog" 3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3098 break 2 3099 fi 3100done 3101 done 3102IFS=$as_save_IFS 3103 3104fi 3105fi 3106ac_ct_CC=$ac_cv_prog_ac_ct_CC 3107if test -n "$ac_ct_CC"; then 3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3109$as_echo "$ac_ct_CC" >&6; } 3110else 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3112$as_echo "no" >&6; } 3113fi 3114 3115 3116 test -n "$ac_ct_CC" && break 3117done 3118 3119 if test "x$ac_ct_CC" = x; then 3120 CC="" 3121 else 3122 case $cross_compiling:$ac_tool_warned in 3123yes:) 3124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3126ac_tool_warned=yes ;; 3127esac 3128 CC=$ac_ct_CC 3129 fi 3130fi 3131 3132fi 3133 3134 3135test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3137as_fn_error $? "no acceptable C compiler found in \$PATH 3138See \`config.log' for more details" "$LINENO" 5; } 3139 3140# Provide some information about the compiler. 3141$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3142set X $ac_compile 3143ac_compiler=$2 3144for ac_option in --version -v -V -qversion; do 3145 { { ac_try="$ac_compiler $ac_option >&5" 3146case "(($ac_try" in 3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3148 *) ac_try_echo=$ac_try;; 3149esac 3150eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3151$as_echo "$ac_try_echo"; } >&5 3152 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3153 ac_status=$? 3154 if test -s conftest.err; then 3155 sed '10a\ 3156... rest of stderr output deleted ... 3157 10q' conftest.err >conftest.er1 3158 cat conftest.er1 >&5 3159 fi 3160 rm -f conftest.er1 conftest.err 3161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3162 test $ac_status = 0; } 3163done 3164 3165cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3166/* end confdefs.h. */ 3167 3168int 3169main () 3170{ 3171 3172 ; 3173 return 0; 3174} 3175_ACEOF 3176ac_clean_files_save=$ac_clean_files 3177ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3178# Try to create an executable without -o first, disregard a.out. 3179# It will help us diagnose broken compilers, and finding out an intuition 3180# of exeext. 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3182$as_echo_n "checking whether the C compiler works... " >&6; } 3183ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3184 3185# The possible output files: 3186ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3187 3188ac_rmfiles= 3189for ac_file in $ac_files 3190do 3191 case $ac_file in 3192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3193 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3194 esac 3195done 3196rm -f $ac_rmfiles 3197 3198if { { ac_try="$ac_link_default" 3199case "(($ac_try" in 3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3201 *) ac_try_echo=$ac_try;; 3202esac 3203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3204$as_echo "$ac_try_echo"; } >&5 3205 (eval "$ac_link_default") 2>&5 3206 ac_status=$? 3207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3208 test $ac_status = 0; }; then : 3209 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3210# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3211# in a Makefile. We should not override ac_cv_exeext if it was cached, 3212# so that the user can short-circuit this test for compilers unknown to 3213# Autoconf. 3214for ac_file in $ac_files '' 3215do 3216 test -f "$ac_file" || continue 3217 case $ac_file in 3218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3219 ;; 3220 [ab].out ) 3221 # We found the default executable, but exeext='' is most 3222 # certainly right. 3223 break;; 3224 *.* ) 3225 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3226 then :; else 3227 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3228 fi 3229 # We set ac_cv_exeext here because the later test for it is not 3230 # safe: cross compilers may not add the suffix if given an `-o' 3231 # argument, so we may need to know it at that point already. 3232 # Even if this section looks crufty: it has the advantage of 3233 # actually working. 3234 break;; 3235 * ) 3236 break;; 3237 esac 3238done 3239test "$ac_cv_exeext" = no && ac_cv_exeext= 3240 3241else 3242 ac_file='' 3243fi 3244if test -z "$ac_file"; then : 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3246$as_echo "no" >&6; } 3247$as_echo "$as_me: failed program was:" >&5 3248sed 's/^/| /' conftest.$ac_ext >&5 3249 3250{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3252as_fn_error 77 "C compiler cannot create executables 3253See \`config.log' for more details" "$LINENO" 5; } 3254else 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3256$as_echo "yes" >&6; } 3257fi 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3259$as_echo_n "checking for C compiler default output file name... " >&6; } 3260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3261$as_echo "$ac_file" >&6; } 3262ac_exeext=$ac_cv_exeext 3263 3264rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3265ac_clean_files=$ac_clean_files_save 3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3267$as_echo_n "checking for suffix of executables... " >&6; } 3268if { { ac_try="$ac_link" 3269case "(($ac_try" in 3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3271 *) ac_try_echo=$ac_try;; 3272esac 3273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3274$as_echo "$ac_try_echo"; } >&5 3275 (eval "$ac_link") 2>&5 3276 ac_status=$? 3277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3278 test $ac_status = 0; }; then : 3279 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3280# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3281# work properly (i.e., refer to `conftest.exe'), while it won't with 3282# `rm'. 3283for ac_file in conftest.exe conftest conftest.*; do 3284 test -f "$ac_file" || continue 3285 case $ac_file in 3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3288 break;; 3289 * ) break;; 3290 esac 3291done 3292else 3293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3295as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3296See \`config.log' for more details" "$LINENO" 5; } 3297fi 3298rm -f conftest conftest$ac_cv_exeext 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3300$as_echo "$ac_cv_exeext" >&6; } 3301 3302rm -f conftest.$ac_ext 3303EXEEXT=$ac_cv_exeext 3304ac_exeext=$EXEEXT 3305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3306/* end confdefs.h. */ 3307#include <stdio.h> 3308int 3309main () 3310{ 3311FILE *f = fopen ("conftest.out", "w"); 3312 return ferror (f) || fclose (f) != 0; 3313 3314 ; 3315 return 0; 3316} 3317_ACEOF 3318ac_clean_files="$ac_clean_files conftest.out" 3319# Check that the compiler produces executables we can run. If not, either 3320# the compiler is broken, or we cross compile. 3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3322$as_echo_n "checking whether we are cross compiling... " >&6; } 3323if test "$cross_compiling" != yes; then 3324 { { ac_try="$ac_link" 3325case "(($ac_try" in 3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3327 *) ac_try_echo=$ac_try;; 3328esac 3329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3330$as_echo "$ac_try_echo"; } >&5 3331 (eval "$ac_link") 2>&5 3332 ac_status=$? 3333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3334 test $ac_status = 0; } 3335 if { ac_try='./conftest$ac_cv_exeext' 3336 { { case "(($ac_try" in 3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3338 *) ac_try_echo=$ac_try;; 3339esac 3340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3341$as_echo "$ac_try_echo"; } >&5 3342 (eval "$ac_try") 2>&5 3343 ac_status=$? 3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3345 test $ac_status = 0; }; }; then 3346 cross_compiling=no 3347 else 3348 if test "$cross_compiling" = maybe; then 3349 cross_compiling=yes 3350 else 3351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3353as_fn_error $? "cannot run C compiled programs. 3354If you meant to cross compile, use \`--host'. 3355See \`config.log' for more details" "$LINENO" 5; } 3356 fi 3357 fi 3358fi 3359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3360$as_echo "$cross_compiling" >&6; } 3361 3362rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3363ac_clean_files=$ac_clean_files_save 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3365$as_echo_n "checking for suffix of object files... " >&6; } 3366if ${ac_cv_objext+:} false; then : 3367 $as_echo_n "(cached) " >&6 3368else 3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3370/* end confdefs.h. */ 3371 3372int 3373main () 3374{ 3375 3376 ; 3377 return 0; 3378} 3379_ACEOF 3380rm -f conftest.o conftest.obj 3381if { { ac_try="$ac_compile" 3382case "(($ac_try" in 3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3384 *) ac_try_echo=$ac_try;; 3385esac 3386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3387$as_echo "$ac_try_echo"; } >&5 3388 (eval "$ac_compile") 2>&5 3389 ac_status=$? 3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3391 test $ac_status = 0; }; then : 3392 for ac_file in conftest.o conftest.obj conftest.*; do 3393 test -f "$ac_file" || continue; 3394 case $ac_file in 3395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3396 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3397 break;; 3398 esac 3399done 3400else 3401 $as_echo "$as_me: failed program was:" >&5 3402sed 's/^/| /' conftest.$ac_ext >&5 3403 3404{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3406as_fn_error $? "cannot compute suffix of object files: cannot compile 3407See \`config.log' for more details" "$LINENO" 5; } 3408fi 3409rm -f conftest.$ac_cv_objext conftest.$ac_ext 3410fi 3411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3412$as_echo "$ac_cv_objext" >&6; } 3413OBJEXT=$ac_cv_objext 3414ac_objext=$OBJEXT 3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3416$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3417if ${ac_cv_c_compiler_gnu+:} false; then : 3418 $as_echo_n "(cached) " >&6 3419else 3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3421/* end confdefs.h. */ 3422 3423int 3424main () 3425{ 3426#ifndef __GNUC__ 3427 choke me 3428#endif 3429 3430 ; 3431 return 0; 3432} 3433_ACEOF 3434if ac_fn_c_try_compile "$LINENO"; then : 3435 ac_compiler_gnu=yes 3436else 3437 ac_compiler_gnu=no 3438fi 3439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3440ac_cv_c_compiler_gnu=$ac_compiler_gnu 3441 3442fi 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3444$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3445if test $ac_compiler_gnu = yes; then 3446 GCC=yes 3447else 3448 GCC= 3449fi 3450ac_test_CFLAGS=${CFLAGS+set} 3451ac_save_CFLAGS=$CFLAGS 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3453$as_echo_n "checking whether $CC accepts -g... " >&6; } 3454if ${ac_cv_prog_cc_g+:} false; then : 3455 $as_echo_n "(cached) " >&6 3456else 3457 ac_save_c_werror_flag=$ac_c_werror_flag 3458 ac_c_werror_flag=yes 3459 ac_cv_prog_cc_g=no 3460 CFLAGS="-g" 3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3462/* end confdefs.h. */ 3463 3464int 3465main () 3466{ 3467 3468 ; 3469 return 0; 3470} 3471_ACEOF 3472if ac_fn_c_try_compile "$LINENO"; then : 3473 ac_cv_prog_cc_g=yes 3474else 3475 CFLAGS="" 3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3477/* end confdefs.h. */ 3478 3479int 3480main () 3481{ 3482 3483 ; 3484 return 0; 3485} 3486_ACEOF 3487if ac_fn_c_try_compile "$LINENO"; then : 3488 3489else 3490 ac_c_werror_flag=$ac_save_c_werror_flag 3491 CFLAGS="-g" 3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3493/* end confdefs.h. */ 3494 3495int 3496main () 3497{ 3498 3499 ; 3500 return 0; 3501} 3502_ACEOF 3503if ac_fn_c_try_compile "$LINENO"; then : 3504 ac_cv_prog_cc_g=yes 3505fi 3506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3507fi 3508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3509fi 3510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3511 ac_c_werror_flag=$ac_save_c_werror_flag 3512fi 3513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3514$as_echo "$ac_cv_prog_cc_g" >&6; } 3515if test "$ac_test_CFLAGS" = set; then 3516 CFLAGS=$ac_save_CFLAGS 3517elif test $ac_cv_prog_cc_g = yes; then 3518 if test "$GCC" = yes; then 3519 CFLAGS="-g -O2" 3520 else 3521 CFLAGS="-g" 3522 fi 3523else 3524 if test "$GCC" = yes; then 3525 CFLAGS="-O2" 3526 else 3527 CFLAGS= 3528 fi 3529fi 3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3531$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3532if ${ac_cv_prog_cc_c89+:} false; then : 3533 $as_echo_n "(cached) " >&6 3534else 3535 ac_cv_prog_cc_c89=no 3536ac_save_CC=$CC 3537cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3538/* end confdefs.h. */ 3539#include <stdarg.h> 3540#include <stdio.h> 3541struct stat; 3542/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3543struct buf { int x; }; 3544FILE * (*rcsopen) (struct buf *, struct stat *, int); 3545static char *e (p, i) 3546 char **p; 3547 int i; 3548{ 3549 return p[i]; 3550} 3551static char *f (char * (*g) (char **, int), char **p, ...) 3552{ 3553 char *s; 3554 va_list v; 3555 va_start (v,p); 3556 s = g (p, va_arg (v,int)); 3557 va_end (v); 3558 return s; 3559} 3560 3561/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3562 function prototypes and stuff, but not '\xHH' hex character constants. 3563 These don't provoke an error unfortunately, instead are silently treated 3564 as 'x'. The following induces an error, until -std is added to get 3565 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3566 array size at least. It's necessary to write '\x00'==0 to get something 3567 that's true only with -std. */ 3568int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3569 3570/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3571 inside strings and character constants. */ 3572#define FOO(x) 'x' 3573int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3574 3575int test (int i, double x); 3576struct s1 {int (*f) (int a);}; 3577struct s2 {int (*f) (double a);}; 3578int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3579int argc; 3580char **argv; 3581int 3582main () 3583{ 3584return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3585 ; 3586 return 0; 3587} 3588_ACEOF 3589for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3590 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3591do 3592 CC="$ac_save_CC $ac_arg" 3593 if ac_fn_c_try_compile "$LINENO"; then : 3594 ac_cv_prog_cc_c89=$ac_arg 3595fi 3596rm -f core conftest.err conftest.$ac_objext 3597 test "x$ac_cv_prog_cc_c89" != "xno" && break 3598done 3599rm -f conftest.$ac_ext 3600CC=$ac_save_CC 3601 3602fi 3603# AC_CACHE_VAL 3604case "x$ac_cv_prog_cc_c89" in 3605 x) 3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3607$as_echo "none needed" >&6; } ;; 3608 xno) 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3610$as_echo "unsupported" >&6; } ;; 3611 *) 3612 CC="$CC $ac_cv_prog_cc_c89" 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3614$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3615esac 3616if test "x$ac_cv_prog_cc_c89" != xno; then : 3617 3618fi 3619 3620ac_ext=c 3621ac_cpp='$CPP $CPPFLAGS' 3622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3624ac_compiler_gnu=$ac_cv_c_compiler_gnu 3625DEPDIR="${am__leading_dot}deps" 3626 3627ac_config_commands="$ac_config_commands depfiles" 3628 3629 3630am_make=${MAKE-make} 3631cat > confinc << 'END' 3632am__doit: 3633 @echo this is the am__doit target 3634.PHONY: am__doit 3635END 3636# If we don't find an include directive, just comment out the code. 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3638$as_echo_n "checking for style of include used by $am_make... " >&6; } 3639am__include="#" 3640am__quote= 3641_am_result=none 3642# First try GNU make style include. 3643echo "include confinc" > confmf 3644# Ignore all kinds of additional output from `make'. 3645case `$am_make -s -f confmf 2> /dev/null` in #( 3646*the\ am__doit\ target*) 3647 am__include=include 3648 am__quote= 3649 _am_result=GNU 3650 ;; 3651esac 3652# Now try BSD make style include. 3653if test "$am__include" = "#"; then 3654 echo '.include "confinc"' > confmf 3655 case `$am_make -s -f confmf 2> /dev/null` in #( 3656 *the\ am__doit\ target*) 3657 am__include=.include 3658 am__quote="\"" 3659 _am_result=BSD 3660 ;; 3661 esac 3662fi 3663 3664 3665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3666$as_echo "$_am_result" >&6; } 3667rm -f confinc confmf 3668 3669# Check whether --enable-dependency-tracking was given. 3670if test "${enable_dependency_tracking+set}" = set; then : 3671 enableval=$enable_dependency_tracking; 3672fi 3673 3674if test "x$enable_dependency_tracking" != xno; then 3675 am_depcomp="$ac_aux_dir/depcomp" 3676 AMDEPBACKSLASH='\' 3677 am__nodep='_no' 3678fi 3679 if test "x$enable_dependency_tracking" != xno; then 3680 AMDEP_TRUE= 3681 AMDEP_FALSE='#' 3682else 3683 AMDEP_TRUE='#' 3684 AMDEP_FALSE= 3685fi 3686 3687 3688 3689depcc="$CC" am_compiler_list= 3690 3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3692$as_echo_n "checking dependency style of $depcc... " >&6; } 3693if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3694 $as_echo_n "(cached) " >&6 3695else 3696 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3697 # We make a subdir and do the tests there. Otherwise we can end up 3698 # making bogus files that we don't know about and never remove. For 3699 # instance it was reported that on HP-UX the gcc test will end up 3700 # making a dummy file named `D' -- because `-MD' means `put the output 3701 # in D'. 3702 rm -rf conftest.dir 3703 mkdir conftest.dir 3704 # Copy depcomp to subdir because otherwise we won't find it if we're 3705 # using a relative directory. 3706 cp "$am_depcomp" conftest.dir 3707 cd conftest.dir 3708 # We will build objects and dependencies in a subdirectory because 3709 # it helps to detect inapplicable dependency modes. For instance 3710 # both Tru64's cc and ICC support -MD to output dependencies as a 3711 # side effect of compilation, but ICC will put the dependencies in 3712 # the current directory while Tru64 will put them in the object 3713 # directory. 3714 mkdir sub 3715 3716 am_cv_CC_dependencies_compiler_type=none 3717 if test "$am_compiler_list" = ""; then 3718 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3719 fi 3720 am__universal=false 3721 case " $depcc " in #( 3722 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3723 esac 3724 3725 for depmode in $am_compiler_list; do 3726 # Setup a source with many dependencies, because some compilers 3727 # like to wrap large dependency lists on column 80 (with \), and 3728 # we should not choose a depcomp mode which is confused by this. 3729 # 3730 # We need to recreate these files for each test, as the compiler may 3731 # overwrite some of them when testing with obscure command lines. 3732 # This happens at least with the AIX C compiler. 3733 : > sub/conftest.c 3734 for i in 1 2 3 4 5 6; do 3735 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3736 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3737 # Solaris 8's {/usr,}/bin/sh. 3738 touch sub/conftst$i.h 3739 done 3740 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3741 3742 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3743 # mode. It turns out that the SunPro C++ compiler does not properly 3744 # handle `-M -o', and we need to detect this. Also, some Intel 3745 # versions had trouble with output in subdirs 3746 am__obj=sub/conftest.${OBJEXT-o} 3747 am__minus_obj="-o $am__obj" 3748 case $depmode in 3749 gcc) 3750 # This depmode causes a compiler race in universal mode. 3751 test "$am__universal" = false || continue 3752 ;; 3753 nosideeffect) 3754 # after this tag, mechanisms are not by side-effect, so they'll 3755 # only be used when explicitly requested 3756 if test "x$enable_dependency_tracking" = xyes; then 3757 continue 3758 else 3759 break 3760 fi 3761 ;; 3762 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3763 # This compiler won't grok `-c -o', but also, the minuso test has 3764 # not run yet. These depmodes are late enough in the game, and 3765 # so weak that their functioning should not be impacted. 3766 am__obj=conftest.${OBJEXT-o} 3767 am__minus_obj= 3768 ;; 3769 none) break ;; 3770 esac 3771 if depmode=$depmode \ 3772 source=sub/conftest.c object=$am__obj \ 3773 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3774 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3775 >/dev/null 2>conftest.err && 3776 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3777 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3778 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3779 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3780 # icc doesn't choke on unknown options, it will just issue warnings 3781 # or remarks (even with -Werror). So we grep stderr for any message 3782 # that says an option was ignored or not supported. 3783 # When given -MP, icc 7.0 and 7.1 complain thusly: 3784 # icc: Command line warning: ignoring option '-M'; no argument required 3785 # The diagnosis changed in icc 8.0: 3786 # icc: Command line remark: option '-MP' not supported 3787 if (grep 'ignoring option' conftest.err || 3788 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3789 am_cv_CC_dependencies_compiler_type=$depmode 3790 break 3791 fi 3792 fi 3793 done 3794 3795 cd .. 3796 rm -rf conftest.dir 3797else 3798 am_cv_CC_dependencies_compiler_type=none 3799fi 3800 3801fi 3802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3803$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3804CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3805 3806 if 3807 test "x$enable_dependency_tracking" != xno \ 3808 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3809 am__fastdepCC_TRUE= 3810 am__fastdepCC_FALSE='#' 3811else 3812 am__fastdepCC_TRUE='#' 3813 am__fastdepCC_FALSE= 3814fi 3815 3816 3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3818$as_echo_n "checking whether ln -s works... " >&6; } 3819LN_S=$as_ln_s 3820if test "$LN_S" = "ln -s"; then 3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3822$as_echo "yes" >&6; } 3823else 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3825$as_echo "no, using $LN_S" >&6; } 3826fi 3827 3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3829$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3830set x ${MAKE-make} 3831ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3832if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3833 $as_echo_n "(cached) " >&6 3834else 3835 cat >conftest.make <<\_ACEOF 3836SHELL = /bin/sh 3837all: 3838 @echo '@@@%%%=$(MAKE)=@@@%%%' 3839_ACEOF 3840# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3841case `${MAKE-make} -f conftest.make 2>/dev/null` in 3842 *@@@%%%=?*=@@@%%%*) 3843 eval ac_cv_prog_make_${ac_make}_set=yes;; 3844 *) 3845 eval ac_cv_prog_make_${ac_make}_set=no;; 3846esac 3847rm -f conftest.make 3848fi 3849if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3851$as_echo "yes" >&6; } 3852 SET_MAKE= 3853else 3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3855$as_echo "no" >&6; } 3856 SET_MAKE="MAKE=${MAKE-make}" 3857fi 3858 3859# Extract the first word of "cd", so it can be a program name with args. 3860set dummy cd; ac_word=$2 3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3862$as_echo_n "checking for $ac_word... " >&6; } 3863if ${ac_cv_prog_CD+:} false; then : 3864 $as_echo_n "(cached) " >&6 3865else 3866 if test -n "$CD"; then 3867 ac_cv_prog_CD="$CD" # Let the user override the test. 3868else 3869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3870for as_dir in $PATH 3871do 3872 IFS=$as_save_IFS 3873 test -z "$as_dir" && as_dir=. 3874 for ac_exec_ext in '' $ac_executable_extensions; do 3875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3876 ac_cv_prog_CD="" 3877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3878 break 2 3879 fi 3880done 3881 done 3882IFS=$as_save_IFS 3883 3884fi 3885fi 3886CD=$ac_cv_prog_CD 3887if test -n "$CD"; then 3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CD" >&5 3889$as_echo "$CD" >&6; } 3890else 3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3892$as_echo "no" >&6; } 3893fi 3894 3895 3896 3897case `pwd` in 3898 *\ * | *\ *) 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3900$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3901esac 3902 3903 3904 3905macro_version='2.4.2' 3906macro_revision='1.3337' 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920ltmain="$ac_aux_dir/ltmain.sh" 3921 3922# Make sure we can run config.sub. 3923$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3924 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3925 3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3927$as_echo_n "checking build system type... " >&6; } 3928if ${ac_cv_build+:} false; then : 3929 $as_echo_n "(cached) " >&6 3930else 3931 ac_build_alias=$build_alias 3932test "x$ac_build_alias" = x && 3933 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3934test "x$ac_build_alias" = x && 3935 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3936ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3937 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3938 3939fi 3940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3941$as_echo "$ac_cv_build" >&6; } 3942case $ac_cv_build in 3943*-*-*) ;; 3944*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3945esac 3946build=$ac_cv_build 3947ac_save_IFS=$IFS; IFS='-' 3948set x $ac_cv_build 3949shift 3950build_cpu=$1 3951build_vendor=$2 3952shift; shift 3953# Remember, the first character of IFS is used to create $*, 3954# except with old shells: 3955build_os=$* 3956IFS=$ac_save_IFS 3957case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3958 3959 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3961$as_echo_n "checking host system type... " >&6; } 3962if ${ac_cv_host+:} false; then : 3963 $as_echo_n "(cached) " >&6 3964else 3965 if test "x$host_alias" = x; then 3966 ac_cv_host=$ac_cv_build 3967else 3968 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3969 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3970fi 3971 3972fi 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3974$as_echo "$ac_cv_host" >&6; } 3975case $ac_cv_host in 3976*-*-*) ;; 3977*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3978esac 3979host=$ac_cv_host 3980ac_save_IFS=$IFS; IFS='-' 3981set x $ac_cv_host 3982shift 3983host_cpu=$1 3984host_vendor=$2 3985shift; shift 3986# Remember, the first character of IFS is used to create $*, 3987# except with old shells: 3988host_os=$* 3989IFS=$ac_save_IFS 3990case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3991 3992 3993# Backslashify metacharacters that are still active within 3994# double-quoted strings. 3995sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3996 3997# Same as above, but do not quote variable references. 3998double_quote_subst='s/\(["`\\]\)/\\\1/g' 3999 4000# Sed substitution to delay expansion of an escaped shell variable in a 4001# double_quote_subst'ed string. 4002delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4003 4004# Sed substitution to delay expansion of an escaped single quote. 4005delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4006 4007# Sed substitution to avoid accidental globbing in evaled expressions 4008no_glob_subst='s/\*/\\\*/g' 4009 4010ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4011ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4012ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4013 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4015$as_echo_n "checking how to print strings... " >&6; } 4016# Test print first, because it will be a builtin if present. 4017if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4018 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4019 ECHO='print -r --' 4020elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4021 ECHO='printf %s\n' 4022else 4023 # Use this function as a fallback that always works. 4024 func_fallback_echo () 4025 { 4026 eval 'cat <<_LTECHO_EOF 4027$1 4028_LTECHO_EOF' 4029 } 4030 ECHO='func_fallback_echo' 4031fi 4032 4033# func_echo_all arg... 4034# Invoke $ECHO with all args, space-separated. 4035func_echo_all () 4036{ 4037 $ECHO "" 4038} 4039 4040case "$ECHO" in 4041 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4042$as_echo "printf" >&6; } ;; 4043 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4044$as_echo "print -r" >&6; } ;; 4045 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4046$as_echo "cat" >&6; } ;; 4047esac 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4063$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4064if ${ac_cv_path_SED+:} false; then : 4065 $as_echo_n "(cached) " >&6 4066else 4067 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4068 for ac_i in 1 2 3 4 5 6 7; do 4069 ac_script="$ac_script$as_nl$ac_script" 4070 done 4071 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4072 { ac_script=; unset ac_script;} 4073 if test -z "$SED"; then 4074 ac_path_SED_found=false 4075 # Loop through the user's path and test for each of PROGNAME-LIST 4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4077for as_dir in $PATH 4078do 4079 IFS=$as_save_IFS 4080 test -z "$as_dir" && as_dir=. 4081 for ac_prog in sed gsed; do 4082 for ac_exec_ext in '' $ac_executable_extensions; do 4083 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4084 as_fn_executable_p "$ac_path_SED" || continue 4085# Check for GNU ac_path_SED and select it if it is found. 4086 # Check for GNU $ac_path_SED 4087case `"$ac_path_SED" --version 2>&1` in 4088*GNU*) 4089 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4090*) 4091 ac_count=0 4092 $as_echo_n 0123456789 >"conftest.in" 4093 while : 4094 do 4095 cat "conftest.in" "conftest.in" >"conftest.tmp" 4096 mv "conftest.tmp" "conftest.in" 4097 cp "conftest.in" "conftest.nl" 4098 $as_echo '' >> "conftest.nl" 4099 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4101 as_fn_arith $ac_count + 1 && ac_count=$as_val 4102 if test $ac_count -gt ${ac_path_SED_max-0}; then 4103 # Best one so far, save it but keep looking for a better one 4104 ac_cv_path_SED="$ac_path_SED" 4105 ac_path_SED_max=$ac_count 4106 fi 4107 # 10*(2^10) chars as input seems more than enough 4108 test $ac_count -gt 10 && break 4109 done 4110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4111esac 4112 4113 $ac_path_SED_found && break 3 4114 done 4115 done 4116 done 4117IFS=$as_save_IFS 4118 if test -z "$ac_cv_path_SED"; then 4119 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4120 fi 4121else 4122 ac_cv_path_SED=$SED 4123fi 4124 4125fi 4126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4127$as_echo "$ac_cv_path_SED" >&6; } 4128 SED="$ac_cv_path_SED" 4129 rm -f conftest.sed 4130 4131test -z "$SED" && SED=sed 4132Xsed="$SED -e 1s/^X//" 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4145$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4146if ${ac_cv_path_GREP+:} false; then : 4147 $as_echo_n "(cached) " >&6 4148else 4149 if test -z "$GREP"; then 4150 ac_path_GREP_found=false 4151 # Loop through the user's path and test for each of PROGNAME-LIST 4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4153for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4154do 4155 IFS=$as_save_IFS 4156 test -z "$as_dir" && as_dir=. 4157 for ac_prog in grep ggrep; do 4158 for ac_exec_ext in '' $ac_executable_extensions; do 4159 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4160 as_fn_executable_p "$ac_path_GREP" || continue 4161# Check for GNU ac_path_GREP and select it if it is found. 4162 # Check for GNU $ac_path_GREP 4163case `"$ac_path_GREP" --version 2>&1` in 4164*GNU*) 4165 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4166*) 4167 ac_count=0 4168 $as_echo_n 0123456789 >"conftest.in" 4169 while : 4170 do 4171 cat "conftest.in" "conftest.in" >"conftest.tmp" 4172 mv "conftest.tmp" "conftest.in" 4173 cp "conftest.in" "conftest.nl" 4174 $as_echo 'GREP' >> "conftest.nl" 4175 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4177 as_fn_arith $ac_count + 1 && ac_count=$as_val 4178 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4179 # Best one so far, save it but keep looking for a better one 4180 ac_cv_path_GREP="$ac_path_GREP" 4181 ac_path_GREP_max=$ac_count 4182 fi 4183 # 10*(2^10) chars as input seems more than enough 4184 test $ac_count -gt 10 && break 4185 done 4186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4187esac 4188 4189 $ac_path_GREP_found && break 3 4190 done 4191 done 4192 done 4193IFS=$as_save_IFS 4194 if test -z "$ac_cv_path_GREP"; then 4195 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4196 fi 4197else 4198 ac_cv_path_GREP=$GREP 4199fi 4200 4201fi 4202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4203$as_echo "$ac_cv_path_GREP" >&6; } 4204 GREP="$ac_cv_path_GREP" 4205 4206 4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4208$as_echo_n "checking for egrep... " >&6; } 4209if ${ac_cv_path_EGREP+:} false; then : 4210 $as_echo_n "(cached) " >&6 4211else 4212 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4213 then ac_cv_path_EGREP="$GREP -E" 4214 else 4215 if test -z "$EGREP"; then 4216 ac_path_EGREP_found=false 4217 # Loop through the user's path and test for each of PROGNAME-LIST 4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4219for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4220do 4221 IFS=$as_save_IFS 4222 test -z "$as_dir" && as_dir=. 4223 for ac_prog in egrep; do 4224 for ac_exec_ext in '' $ac_executable_extensions; do 4225 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4226 as_fn_executable_p "$ac_path_EGREP" || continue 4227# Check for GNU ac_path_EGREP and select it if it is found. 4228 # Check for GNU $ac_path_EGREP 4229case `"$ac_path_EGREP" --version 2>&1` in 4230*GNU*) 4231 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4232*) 4233 ac_count=0 4234 $as_echo_n 0123456789 >"conftest.in" 4235 while : 4236 do 4237 cat "conftest.in" "conftest.in" >"conftest.tmp" 4238 mv "conftest.tmp" "conftest.in" 4239 cp "conftest.in" "conftest.nl" 4240 $as_echo 'EGREP' >> "conftest.nl" 4241 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4243 as_fn_arith $ac_count + 1 && ac_count=$as_val 4244 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4245 # Best one so far, save it but keep looking for a better one 4246 ac_cv_path_EGREP="$ac_path_EGREP" 4247 ac_path_EGREP_max=$ac_count 4248 fi 4249 # 10*(2^10) chars as input seems more than enough 4250 test $ac_count -gt 10 && break 4251 done 4252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4253esac 4254 4255 $ac_path_EGREP_found && break 3 4256 done 4257 done 4258 done 4259IFS=$as_save_IFS 4260 if test -z "$ac_cv_path_EGREP"; then 4261 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4262 fi 4263else 4264 ac_cv_path_EGREP=$EGREP 4265fi 4266 4267 fi 4268fi 4269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4270$as_echo "$ac_cv_path_EGREP" >&6; } 4271 EGREP="$ac_cv_path_EGREP" 4272 4273 4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4275$as_echo_n "checking for fgrep... " >&6; } 4276if ${ac_cv_path_FGREP+:} false; then : 4277 $as_echo_n "(cached) " >&6 4278else 4279 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4280 then ac_cv_path_FGREP="$GREP -F" 4281 else 4282 if test -z "$FGREP"; then 4283 ac_path_FGREP_found=false 4284 # Loop through the user's path and test for each of PROGNAME-LIST 4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4286for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4287do 4288 IFS=$as_save_IFS 4289 test -z "$as_dir" && as_dir=. 4290 for ac_prog in fgrep; do 4291 for ac_exec_ext in '' $ac_executable_extensions; do 4292 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4293 as_fn_executable_p "$ac_path_FGREP" || continue 4294# Check for GNU ac_path_FGREP and select it if it is found. 4295 # Check for GNU $ac_path_FGREP 4296case `"$ac_path_FGREP" --version 2>&1` in 4297*GNU*) 4298 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4299*) 4300 ac_count=0 4301 $as_echo_n 0123456789 >"conftest.in" 4302 while : 4303 do 4304 cat "conftest.in" "conftest.in" >"conftest.tmp" 4305 mv "conftest.tmp" "conftest.in" 4306 cp "conftest.in" "conftest.nl" 4307 $as_echo 'FGREP' >> "conftest.nl" 4308 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4309 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4310 as_fn_arith $ac_count + 1 && ac_count=$as_val 4311 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4312 # Best one so far, save it but keep looking for a better one 4313 ac_cv_path_FGREP="$ac_path_FGREP" 4314 ac_path_FGREP_max=$ac_count 4315 fi 4316 # 10*(2^10) chars as input seems more than enough 4317 test $ac_count -gt 10 && break 4318 done 4319 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4320esac 4321 4322 $ac_path_FGREP_found && break 3 4323 done 4324 done 4325 done 4326IFS=$as_save_IFS 4327 if test -z "$ac_cv_path_FGREP"; then 4328 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4329 fi 4330else 4331 ac_cv_path_FGREP=$FGREP 4332fi 4333 4334 fi 4335fi 4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4337$as_echo "$ac_cv_path_FGREP" >&6; } 4338 FGREP="$ac_cv_path_FGREP" 4339 4340 4341test -z "$GREP" && GREP=grep 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361# Check whether --with-gnu-ld was given. 4362if test "${with_gnu_ld+set}" = set; then : 4363 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4364else 4365 with_gnu_ld=no 4366fi 4367 4368ac_prog=ld 4369if test "$GCC" = yes; then 4370 # Check if gcc -print-prog-name=ld gives a path. 4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4372$as_echo_n "checking for ld used by $CC... " >&6; } 4373 case $host in 4374 *-*-mingw*) 4375 # gcc leaves a trailing carriage return which upsets mingw 4376 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4377 *) 4378 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4379 esac 4380 case $ac_prog in 4381 # Accept absolute paths. 4382 [\\/]* | ?:[\\/]*) 4383 re_direlt='/[^/][^/]*/\.\./' 4384 # Canonicalize the pathname of ld 4385 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4386 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4387 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4388 done 4389 test -z "$LD" && LD="$ac_prog" 4390 ;; 4391 "") 4392 # If it fails, then pretend we aren't using GCC. 4393 ac_prog=ld 4394 ;; 4395 *) 4396 # If it is relative, then search for the first ld in PATH. 4397 with_gnu_ld=unknown 4398 ;; 4399 esac 4400elif test "$with_gnu_ld" = yes; then 4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4402$as_echo_n "checking for GNU ld... " >&6; } 4403else 4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4405$as_echo_n "checking for non-GNU ld... " >&6; } 4406fi 4407if ${lt_cv_path_LD+:} false; then : 4408 $as_echo_n "(cached) " >&6 4409else 4410 if test -z "$LD"; then 4411 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4412 for ac_dir in $PATH; do 4413 IFS="$lt_save_ifs" 4414 test -z "$ac_dir" && ac_dir=. 4415 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4416 lt_cv_path_LD="$ac_dir/$ac_prog" 4417 # Check to see if the program is GNU ld. I'd rather use --version, 4418 # but apparently some variants of GNU ld only accept -v. 4419 # Break only if it was the GNU/non-GNU ld that we prefer. 4420 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4421 *GNU* | *'with BFD'*) 4422 test "$with_gnu_ld" != no && break 4423 ;; 4424 *) 4425 test "$with_gnu_ld" != yes && break 4426 ;; 4427 esac 4428 fi 4429 done 4430 IFS="$lt_save_ifs" 4431else 4432 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4433fi 4434fi 4435 4436LD="$lt_cv_path_LD" 4437if test -n "$LD"; then 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4439$as_echo "$LD" >&6; } 4440else 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4442$as_echo "no" >&6; } 4443fi 4444test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4446$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4447if ${lt_cv_prog_gnu_ld+:} false; then : 4448 $as_echo_n "(cached) " >&6 4449else 4450 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4451case `$LD -v 2>&1 </dev/null` in 4452*GNU* | *'with BFD'*) 4453 lt_cv_prog_gnu_ld=yes 4454 ;; 4455*) 4456 lt_cv_prog_gnu_ld=no 4457 ;; 4458esac 4459fi 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4461$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4462with_gnu_ld=$lt_cv_prog_gnu_ld 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4473$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4474if ${lt_cv_path_NM+:} false; then : 4475 $as_echo_n "(cached) " >&6 4476else 4477 if test -n "$NM"; then 4478 # Let the user override the test. 4479 lt_cv_path_NM="$NM" 4480else 4481 lt_nm_to_check="${ac_tool_prefix}nm" 4482 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4483 lt_nm_to_check="$lt_nm_to_check nm" 4484 fi 4485 for lt_tmp_nm in $lt_nm_to_check; do 4486 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4487 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4488 IFS="$lt_save_ifs" 4489 test -z "$ac_dir" && ac_dir=. 4490 tmp_nm="$ac_dir/$lt_tmp_nm" 4491 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4492 # Check to see if the nm accepts a BSD-compat flag. 4493 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4494 # nm: unknown option "B" ignored 4495 # Tru64's nm complains that /dev/null is an invalid object file 4496 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4497 */dev/null* | *'Invalid file or object type'*) 4498 lt_cv_path_NM="$tmp_nm -B" 4499 break 4500 ;; 4501 *) 4502 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4503 */dev/null*) 4504 lt_cv_path_NM="$tmp_nm -p" 4505 break 4506 ;; 4507 *) 4508 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4509 continue # so that we can try to find one that supports BSD flags 4510 ;; 4511 esac 4512 ;; 4513 esac 4514 fi 4515 done 4516 IFS="$lt_save_ifs" 4517 done 4518 : ${lt_cv_path_NM=no} 4519fi 4520fi 4521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4522$as_echo "$lt_cv_path_NM" >&6; } 4523if test "$lt_cv_path_NM" != "no"; then 4524 NM="$lt_cv_path_NM" 4525else 4526 # Didn't find any BSD compatible name lister, look for dumpbin. 4527 if test -n "$DUMPBIN"; then : 4528 # Let the user override the test. 4529 else 4530 if test -n "$ac_tool_prefix"; then 4531 for ac_prog in dumpbin "link -dump" 4532 do 4533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4534set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4536$as_echo_n "checking for $ac_word... " >&6; } 4537if ${ac_cv_prog_DUMPBIN+:} false; then : 4538 $as_echo_n "(cached) " >&6 4539else 4540 if test -n "$DUMPBIN"; then 4541 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4542else 4543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4544for as_dir in $PATH 4545do 4546 IFS=$as_save_IFS 4547 test -z "$as_dir" && as_dir=. 4548 for ac_exec_ext in '' $ac_executable_extensions; do 4549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4550 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4552 break 2 4553 fi 4554done 4555 done 4556IFS=$as_save_IFS 4557 4558fi 4559fi 4560DUMPBIN=$ac_cv_prog_DUMPBIN 4561if test -n "$DUMPBIN"; then 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4563$as_echo "$DUMPBIN" >&6; } 4564else 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4566$as_echo "no" >&6; } 4567fi 4568 4569 4570 test -n "$DUMPBIN" && break 4571 done 4572fi 4573if test -z "$DUMPBIN"; then 4574 ac_ct_DUMPBIN=$DUMPBIN 4575 for ac_prog in dumpbin "link -dump" 4576do 4577 # Extract the first word of "$ac_prog", so it can be a program name with args. 4578set dummy $ac_prog; ac_word=$2 4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4580$as_echo_n "checking for $ac_word... " >&6; } 4581if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4582 $as_echo_n "(cached) " >&6 4583else 4584 if test -n "$ac_ct_DUMPBIN"; then 4585 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4586else 4587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4588for as_dir in $PATH 4589do 4590 IFS=$as_save_IFS 4591 test -z "$as_dir" && as_dir=. 4592 for ac_exec_ext in '' $ac_executable_extensions; do 4593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4594 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4596 break 2 4597 fi 4598done 4599 done 4600IFS=$as_save_IFS 4601 4602fi 4603fi 4604ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4605if test -n "$ac_ct_DUMPBIN"; then 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4607$as_echo "$ac_ct_DUMPBIN" >&6; } 4608else 4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4610$as_echo "no" >&6; } 4611fi 4612 4613 4614 test -n "$ac_ct_DUMPBIN" && break 4615done 4616 4617 if test "x$ac_ct_DUMPBIN" = x; then 4618 DUMPBIN=":" 4619 else 4620 case $cross_compiling:$ac_tool_warned in 4621yes:) 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4624ac_tool_warned=yes ;; 4625esac 4626 DUMPBIN=$ac_ct_DUMPBIN 4627 fi 4628fi 4629 4630 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4631 *COFF*) 4632 DUMPBIN="$DUMPBIN -symbols" 4633 ;; 4634 *) 4635 DUMPBIN=: 4636 ;; 4637 esac 4638 fi 4639 4640 if test "$DUMPBIN" != ":"; then 4641 NM="$DUMPBIN" 4642 fi 4643fi 4644test -z "$NM" && NM=nm 4645 4646 4647 4648 4649 4650 4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4652$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4653if ${lt_cv_nm_interface+:} false; then : 4654 $as_echo_n "(cached) " >&6 4655else 4656 lt_cv_nm_interface="BSD nm" 4657 echo "int some_variable = 0;" > conftest.$ac_ext 4658 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4659 (eval "$ac_compile" 2>conftest.err) 4660 cat conftest.err >&5 4661 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4662 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4663 cat conftest.err >&5 4664 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4665 cat conftest.out >&5 4666 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4667 lt_cv_nm_interface="MS dumpbin" 4668 fi 4669 rm -f conftest* 4670fi 4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4672$as_echo "$lt_cv_nm_interface" >&6; } 4673 4674# find the maximum length of command line arguments 4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4676$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4677if ${lt_cv_sys_max_cmd_len+:} false; then : 4678 $as_echo_n "(cached) " >&6 4679else 4680 i=0 4681 teststring="ABCD" 4682 4683 case $build_os in 4684 msdosdjgpp*) 4685 # On DJGPP, this test can blow up pretty badly due to problems in libc 4686 # (any single argument exceeding 2000 bytes causes a buffer overrun 4687 # during glob expansion). Even if it were fixed, the result of this 4688 # check would be larger than it should be. 4689 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4690 ;; 4691 4692 gnu*) 4693 # Under GNU Hurd, this test is not required because there is 4694 # no limit to the length of command line arguments. 4695 # Libtool will interpret -1 as no limit whatsoever 4696 lt_cv_sys_max_cmd_len=-1; 4697 ;; 4698 4699 cygwin* | mingw* | cegcc*) 4700 # On Win9x/ME, this test blows up -- it succeeds, but takes 4701 # about 5 minutes as the teststring grows exponentially. 4702 # Worse, since 9x/ME are not pre-emptively multitasking, 4703 # you end up with a "frozen" computer, even though with patience 4704 # the test eventually succeeds (with a max line length of 256k). 4705 # Instead, let's just punt: use the minimum linelength reported by 4706 # all of the supported platforms: 8192 (on NT/2K/XP). 4707 lt_cv_sys_max_cmd_len=8192; 4708 ;; 4709 4710 mint*) 4711 # On MiNT this can take a long time and run out of memory. 4712 lt_cv_sys_max_cmd_len=8192; 4713 ;; 4714 4715 amigaos*) 4716 # On AmigaOS with pdksh, this test takes hours, literally. 4717 # So we just punt and use a minimum line length of 8192. 4718 lt_cv_sys_max_cmd_len=8192; 4719 ;; 4720 4721 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4722 # This has been around since 386BSD, at least. Likely further. 4723 if test -x /sbin/sysctl; then 4724 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4725 elif test -x /usr/sbin/sysctl; then 4726 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4727 else 4728 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4729 fi 4730 # And add a safety zone 4731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4733 ;; 4734 4735 interix*) 4736 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4737 lt_cv_sys_max_cmd_len=196608 4738 ;; 4739 4740 os2*) 4741 # The test takes a long time on OS/2. 4742 lt_cv_sys_max_cmd_len=8192 4743 ;; 4744 4745 osf*) 4746 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4747 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4748 # nice to cause kernel panics so lets avoid the loop below. 4749 # First set a reasonable default. 4750 lt_cv_sys_max_cmd_len=16384 4751 # 4752 if test -x /sbin/sysconfig; then 4753 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4754 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4755 esac 4756 fi 4757 ;; 4758 sco3.2v5*) 4759 lt_cv_sys_max_cmd_len=102400 4760 ;; 4761 sysv5* | sco5v6* | sysv4.2uw2*) 4762 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4763 if test -n "$kargmax"; then 4764 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4765 else 4766 lt_cv_sys_max_cmd_len=32768 4767 fi 4768 ;; 4769 *) 4770 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4771 if test -n "$lt_cv_sys_max_cmd_len"; then 4772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4774 else 4775 # Make teststring a little bigger before we do anything with it. 4776 # a 1K string should be a reasonable start. 4777 for i in 1 2 3 4 5 6 7 8 ; do 4778 teststring=$teststring$teststring 4779 done 4780 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4781 # If test is not a shell built-in, we'll probably end up computing a 4782 # maximum length that is only half of the actual maximum length, but 4783 # we can't tell. 4784 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4785 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4786 test $i != 17 # 1/2 MB should be enough 4787 do 4788 i=`expr $i + 1` 4789 teststring=$teststring$teststring 4790 done 4791 # Only check the string length outside the loop. 4792 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4793 teststring= 4794 # Add a significant safety factor because C++ compilers can tack on 4795 # massive amounts of additional arguments before passing them to the 4796 # linker. It appears as though 1/2 is a usable value. 4797 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4798 fi 4799 ;; 4800 esac 4801 4802fi 4803 4804if test -n $lt_cv_sys_max_cmd_len ; then 4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4806$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4807else 4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4809$as_echo "none" >&6; } 4810fi 4811max_cmd_len=$lt_cv_sys_max_cmd_len 4812 4813 4814 4815 4816 4817 4818: ${CP="cp -f"} 4819: ${MV="mv -f"} 4820: ${RM="rm -f"} 4821 4822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4823$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4824# Try some XSI features 4825xsi_shell=no 4826( _lt_dummy="a/b/c" 4827 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4828 = c,a/b,b/c, \ 4829 && eval 'test $(( 1 + 1 )) -eq 2 \ 4830 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4831 && xsi_shell=yes 4832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4833$as_echo "$xsi_shell" >&6; } 4834 4835 4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4837$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4838lt_shell_append=no 4839( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4840 >/dev/null 2>&1 \ 4841 && lt_shell_append=yes 4842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4843$as_echo "$lt_shell_append" >&6; } 4844 4845 4846if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4847 lt_unset=unset 4848else 4849 lt_unset=false 4850fi 4851 4852 4853 4854 4855 4856# test EBCDIC or ASCII 4857case `echo X|tr X '\101'` in 4858 A) # ASCII based system 4859 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4860 lt_SP2NL='tr \040 \012' 4861 lt_NL2SP='tr \015\012 \040\040' 4862 ;; 4863 *) # EBCDIC based system 4864 lt_SP2NL='tr \100 \n' 4865 lt_NL2SP='tr \r\n \100\100' 4866 ;; 4867esac 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4878$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4879if ${lt_cv_to_host_file_cmd+:} false; then : 4880 $as_echo_n "(cached) " >&6 4881else 4882 case $host in 4883 *-*-mingw* ) 4884 case $build in 4885 *-*-mingw* ) # actually msys 4886 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4887 ;; 4888 *-*-cygwin* ) 4889 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4890 ;; 4891 * ) # otherwise, assume *nix 4892 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4893 ;; 4894 esac 4895 ;; 4896 *-*-cygwin* ) 4897 case $build in 4898 *-*-mingw* ) # actually msys 4899 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4900 ;; 4901 *-*-cygwin* ) 4902 lt_cv_to_host_file_cmd=func_convert_file_noop 4903 ;; 4904 * ) # otherwise, assume *nix 4905 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4906 ;; 4907 esac 4908 ;; 4909 * ) # unhandled hosts (and "normal" native builds) 4910 lt_cv_to_host_file_cmd=func_convert_file_noop 4911 ;; 4912esac 4913 4914fi 4915 4916to_host_file_cmd=$lt_cv_to_host_file_cmd 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4918$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4919 4920 4921 4922 4923 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4925$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4926if ${lt_cv_to_tool_file_cmd+:} false; then : 4927 $as_echo_n "(cached) " >&6 4928else 4929 #assume ordinary cross tools, or native build. 4930lt_cv_to_tool_file_cmd=func_convert_file_noop 4931case $host in 4932 *-*-mingw* ) 4933 case $build in 4934 *-*-mingw* ) # actually msys 4935 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4936 ;; 4937 esac 4938 ;; 4939esac 4940 4941fi 4942 4943to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4945$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4946 4947 4948 4949 4950 4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4952$as_echo_n "checking for $LD option to reload object files... " >&6; } 4953if ${lt_cv_ld_reload_flag+:} false; then : 4954 $as_echo_n "(cached) " >&6 4955else 4956 lt_cv_ld_reload_flag='-r' 4957fi 4958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4959$as_echo "$lt_cv_ld_reload_flag" >&6; } 4960reload_flag=$lt_cv_ld_reload_flag 4961case $reload_flag in 4962"" | " "*) ;; 4963*) reload_flag=" $reload_flag" ;; 4964esac 4965reload_cmds='$LD$reload_flag -o $output$reload_objs' 4966case $host_os in 4967 cygwin* | mingw* | pw32* | cegcc*) 4968 if test "$GCC" != yes; then 4969 reload_cmds=false 4970 fi 4971 ;; 4972 darwin*) 4973 if test "$GCC" = yes; then 4974 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4975 else 4976 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4977 fi 4978 ;; 4979esac 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989if test -n "$ac_tool_prefix"; then 4990 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4991set dummy ${ac_tool_prefix}objdump; ac_word=$2 4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4993$as_echo_n "checking for $ac_word... " >&6; } 4994if ${ac_cv_prog_OBJDUMP+:} false; then : 4995 $as_echo_n "(cached) " >&6 4996else 4997 if test -n "$OBJDUMP"; then 4998 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4999else 5000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5001for as_dir in $PATH 5002do 5003 IFS=$as_save_IFS 5004 test -z "$as_dir" && as_dir=. 5005 for ac_exec_ext in '' $ac_executable_extensions; do 5006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5007 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5009 break 2 5010 fi 5011done 5012 done 5013IFS=$as_save_IFS 5014 5015fi 5016fi 5017OBJDUMP=$ac_cv_prog_OBJDUMP 5018if test -n "$OBJDUMP"; then 5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5020$as_echo "$OBJDUMP" >&6; } 5021else 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5023$as_echo "no" >&6; } 5024fi 5025 5026 5027fi 5028if test -z "$ac_cv_prog_OBJDUMP"; then 5029 ac_ct_OBJDUMP=$OBJDUMP 5030 # Extract the first word of "objdump", so it can be a program name with args. 5031set dummy objdump; ac_word=$2 5032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5033$as_echo_n "checking for $ac_word... " >&6; } 5034if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5035 $as_echo_n "(cached) " >&6 5036else 5037 if test -n "$ac_ct_OBJDUMP"; then 5038 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5039else 5040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5041for as_dir in $PATH 5042do 5043 IFS=$as_save_IFS 5044 test -z "$as_dir" && as_dir=. 5045 for ac_exec_ext in '' $ac_executable_extensions; do 5046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5047 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5049 break 2 5050 fi 5051done 5052 done 5053IFS=$as_save_IFS 5054 5055fi 5056fi 5057ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5058if test -n "$ac_ct_OBJDUMP"; then 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5060$as_echo "$ac_ct_OBJDUMP" >&6; } 5061else 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5063$as_echo "no" >&6; } 5064fi 5065 5066 if test "x$ac_ct_OBJDUMP" = x; then 5067 OBJDUMP="false" 5068 else 5069 case $cross_compiling:$ac_tool_warned in 5070yes:) 5071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5073ac_tool_warned=yes ;; 5074esac 5075 OBJDUMP=$ac_ct_OBJDUMP 5076 fi 5077else 5078 OBJDUMP="$ac_cv_prog_OBJDUMP" 5079fi 5080 5081test -z "$OBJDUMP" && OBJDUMP=objdump 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5092$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5093if ${lt_cv_deplibs_check_method+:} false; then : 5094 $as_echo_n "(cached) " >&6 5095else 5096 lt_cv_file_magic_cmd='$MAGIC_CMD' 5097lt_cv_file_magic_test_file= 5098lt_cv_deplibs_check_method='unknown' 5099# Need to set the preceding variable on all platforms that support 5100# interlibrary dependencies. 5101# 'none' -- dependencies not supported. 5102# `unknown' -- same as none, but documents that we really don't know. 5103# 'pass_all' -- all dependencies passed with no checks. 5104# 'test_compile' -- check by making test program. 5105# 'file_magic [[regex]]' -- check by looking for files in library path 5106# which responds to the $file_magic_cmd with a given extended regex. 5107# If you have `file' or equivalent on your system and you're not sure 5108# whether `pass_all' will *always* work, you probably want this one. 5109 5110case $host_os in 5111aix[4-9]*) 5112 lt_cv_deplibs_check_method=pass_all 5113 ;; 5114 5115beos*) 5116 lt_cv_deplibs_check_method=pass_all 5117 ;; 5118 5119bsdi[45]*) 5120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5121 lt_cv_file_magic_cmd='/usr/bin/file -L' 5122 lt_cv_file_magic_test_file=/shlib/libc.so 5123 ;; 5124 5125cygwin*) 5126 # func_win32_libid is a shell function defined in ltmain.sh 5127 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5128 lt_cv_file_magic_cmd='func_win32_libid' 5129 ;; 5130 5131mingw* | pw32*) 5132 # Base MSYS/MinGW do not provide the 'file' command needed by 5133 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5134 # unless we find 'file', for example because we are cross-compiling. 5135 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5136 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5137 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5138 lt_cv_file_magic_cmd='func_win32_libid' 5139 else 5140 # Keep this pattern in sync with the one in func_win32_libid. 5141 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5142 lt_cv_file_magic_cmd='$OBJDUMP -f' 5143 fi 5144 ;; 5145 5146cegcc*) 5147 # use the weaker test based on 'objdump'. See mingw*. 5148 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5149 lt_cv_file_magic_cmd='$OBJDUMP -f' 5150 ;; 5151 5152darwin* | rhapsody*) 5153 lt_cv_deplibs_check_method=pass_all 5154 ;; 5155 5156freebsd* | dragonfly*) 5157 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5158 case $host_cpu in 5159 i*86 ) 5160 # Not sure whether the presence of OpenBSD here was a mistake. 5161 # Let's accept both of them until this is cleared up. 5162 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5163 lt_cv_file_magic_cmd=/usr/bin/file 5164 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5165 ;; 5166 esac 5167 else 5168 lt_cv_deplibs_check_method=pass_all 5169 fi 5170 ;; 5171 5172gnu*) 5173 lt_cv_deplibs_check_method=pass_all 5174 ;; 5175 5176haiku*) 5177 lt_cv_deplibs_check_method=pass_all 5178 ;; 5179 5180hpux10.20* | hpux11*) 5181 lt_cv_file_magic_cmd=/usr/bin/file 5182 case $host_cpu in 5183 ia64*) 5184 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5185 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5186 ;; 5187 hppa*64*) 5188 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]' 5189 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5190 ;; 5191 *) 5192 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5193 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5194 ;; 5195 esac 5196 ;; 5197 5198interix[3-9]*) 5199 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5200 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5201 ;; 5202 5203irix5* | irix6* | nonstopux*) 5204 case $LD in 5205 *-32|*"-32 ") libmagic=32-bit;; 5206 *-n32|*"-n32 ") libmagic=N32;; 5207 *-64|*"-64 ") libmagic=64-bit;; 5208 *) libmagic=never-match;; 5209 esac 5210 lt_cv_deplibs_check_method=pass_all 5211 ;; 5212 5213# This must be glibc/ELF. 5214linux* | k*bsd*-gnu | kopensolaris*-gnu) 5215 lt_cv_deplibs_check_method=pass_all 5216 ;; 5217 5218netbsd* | netbsdelf*-gnu) 5219 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5221 else 5222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5223 fi 5224 ;; 5225 5226newos6*) 5227 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5228 lt_cv_file_magic_cmd=/usr/bin/file 5229 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5230 ;; 5231 5232*nto* | *qnx*) 5233 lt_cv_deplibs_check_method=pass_all 5234 ;; 5235 5236openbsd*) 5237 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5239 else 5240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5241 fi 5242 ;; 5243 5244osf3* | osf4* | osf5*) 5245 lt_cv_deplibs_check_method=pass_all 5246 ;; 5247 5248rdos*) 5249 lt_cv_deplibs_check_method=pass_all 5250 ;; 5251 5252solaris*) 5253 lt_cv_deplibs_check_method=pass_all 5254 ;; 5255 5256sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5257 lt_cv_deplibs_check_method=pass_all 5258 ;; 5259 5260sysv4 | sysv4.3*) 5261 case $host_vendor in 5262 motorola) 5263 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]' 5264 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5265 ;; 5266 ncr) 5267 lt_cv_deplibs_check_method=pass_all 5268 ;; 5269 sequent) 5270 lt_cv_file_magic_cmd='/bin/file' 5271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5272 ;; 5273 sni) 5274 lt_cv_file_magic_cmd='/bin/file' 5275 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5276 lt_cv_file_magic_test_file=/lib/libc.so 5277 ;; 5278 siemens) 5279 lt_cv_deplibs_check_method=pass_all 5280 ;; 5281 pc) 5282 lt_cv_deplibs_check_method=pass_all 5283 ;; 5284 esac 5285 ;; 5286 5287tpf*) 5288 lt_cv_deplibs_check_method=pass_all 5289 ;; 5290esac 5291 5292fi 5293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5294$as_echo "$lt_cv_deplibs_check_method" >&6; } 5295 5296file_magic_glob= 5297want_nocaseglob=no 5298if test "$build" = "$host"; then 5299 case $host_os in 5300 mingw* | pw32*) 5301 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5302 want_nocaseglob=yes 5303 else 5304 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5305 fi 5306 ;; 5307 esac 5308fi 5309 5310file_magic_cmd=$lt_cv_file_magic_cmd 5311deplibs_check_method=$lt_cv_deplibs_check_method 5312test -z "$deplibs_check_method" && deplibs_check_method=unknown 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335if test -n "$ac_tool_prefix"; then 5336 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5337set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5339$as_echo_n "checking for $ac_word... " >&6; } 5340if ${ac_cv_prog_DLLTOOL+:} false; then : 5341 $as_echo_n "(cached) " >&6 5342else 5343 if test -n "$DLLTOOL"; then 5344 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5345else 5346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5347for as_dir in $PATH 5348do 5349 IFS=$as_save_IFS 5350 test -z "$as_dir" && as_dir=. 5351 for ac_exec_ext in '' $ac_executable_extensions; do 5352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5353 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5355 break 2 5356 fi 5357done 5358 done 5359IFS=$as_save_IFS 5360 5361fi 5362fi 5363DLLTOOL=$ac_cv_prog_DLLTOOL 5364if test -n "$DLLTOOL"; then 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5366$as_echo "$DLLTOOL" >&6; } 5367else 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5369$as_echo "no" >&6; } 5370fi 5371 5372 5373fi 5374if test -z "$ac_cv_prog_DLLTOOL"; then 5375 ac_ct_DLLTOOL=$DLLTOOL 5376 # Extract the first word of "dlltool", so it can be a program name with args. 5377set dummy dlltool; ac_word=$2 5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5379$as_echo_n "checking for $ac_word... " >&6; } 5380if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5381 $as_echo_n "(cached) " >&6 5382else 5383 if test -n "$ac_ct_DLLTOOL"; then 5384 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5385else 5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5387for as_dir in $PATH 5388do 5389 IFS=$as_save_IFS 5390 test -z "$as_dir" && as_dir=. 5391 for ac_exec_ext in '' $ac_executable_extensions; do 5392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5393 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5395 break 2 5396 fi 5397done 5398 done 5399IFS=$as_save_IFS 5400 5401fi 5402fi 5403ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5404if test -n "$ac_ct_DLLTOOL"; then 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5406$as_echo "$ac_ct_DLLTOOL" >&6; } 5407else 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5409$as_echo "no" >&6; } 5410fi 5411 5412 if test "x$ac_ct_DLLTOOL" = x; then 5413 DLLTOOL="false" 5414 else 5415 case $cross_compiling:$ac_tool_warned in 5416yes:) 5417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5419ac_tool_warned=yes ;; 5420esac 5421 DLLTOOL=$ac_ct_DLLTOOL 5422 fi 5423else 5424 DLLTOOL="$ac_cv_prog_DLLTOOL" 5425fi 5426 5427test -z "$DLLTOOL" && DLLTOOL=dlltool 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5439$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5440if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5441 $as_echo_n "(cached) " >&6 5442else 5443 lt_cv_sharedlib_from_linklib_cmd='unknown' 5444 5445case $host_os in 5446cygwin* | mingw* | pw32* | cegcc*) 5447 # two different shell functions defined in ltmain.sh 5448 # decide which to use based on capabilities of $DLLTOOL 5449 case `$DLLTOOL --help 2>&1` in 5450 *--identify-strict*) 5451 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5452 ;; 5453 *) 5454 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5455 ;; 5456 esac 5457 ;; 5458*) 5459 # fallback: assume linklib IS sharedlib 5460 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5461 ;; 5462esac 5463 5464fi 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5466$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5467sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5468test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5469 5470 5471 5472 5473 5474 5475 5476 5477if test -n "$ac_tool_prefix"; then 5478 for ac_prog in ar 5479 do 5480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5481set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5483$as_echo_n "checking for $ac_word... " >&6; } 5484if ${ac_cv_prog_AR+:} false; then : 5485 $as_echo_n "(cached) " >&6 5486else 5487 if test -n "$AR"; then 5488 ac_cv_prog_AR="$AR" # Let the user override the test. 5489else 5490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5491for as_dir in $PATH 5492do 5493 IFS=$as_save_IFS 5494 test -z "$as_dir" && as_dir=. 5495 for ac_exec_ext in '' $ac_executable_extensions; do 5496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5497 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5499 break 2 5500 fi 5501done 5502 done 5503IFS=$as_save_IFS 5504 5505fi 5506fi 5507AR=$ac_cv_prog_AR 5508if test -n "$AR"; then 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5510$as_echo "$AR" >&6; } 5511else 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5513$as_echo "no" >&6; } 5514fi 5515 5516 5517 test -n "$AR" && break 5518 done 5519fi 5520if test -z "$AR"; then 5521 ac_ct_AR=$AR 5522 for ac_prog in ar 5523do 5524 # Extract the first word of "$ac_prog", so it can be a program name with args. 5525set dummy $ac_prog; ac_word=$2 5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5527$as_echo_n "checking for $ac_word... " >&6; } 5528if ${ac_cv_prog_ac_ct_AR+:} false; then : 5529 $as_echo_n "(cached) " >&6 5530else 5531 if test -n "$ac_ct_AR"; then 5532 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5533else 5534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5535for as_dir in $PATH 5536do 5537 IFS=$as_save_IFS 5538 test -z "$as_dir" && as_dir=. 5539 for ac_exec_ext in '' $ac_executable_extensions; do 5540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5541 ac_cv_prog_ac_ct_AR="$ac_prog" 5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5543 break 2 5544 fi 5545done 5546 done 5547IFS=$as_save_IFS 5548 5549fi 5550fi 5551ac_ct_AR=$ac_cv_prog_ac_ct_AR 5552if test -n "$ac_ct_AR"; then 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5554$as_echo "$ac_ct_AR" >&6; } 5555else 5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5557$as_echo "no" >&6; } 5558fi 5559 5560 5561 test -n "$ac_ct_AR" && break 5562done 5563 5564 if test "x$ac_ct_AR" = x; then 5565 AR="false" 5566 else 5567 case $cross_compiling:$ac_tool_warned in 5568yes:) 5569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5571ac_tool_warned=yes ;; 5572esac 5573 AR=$ac_ct_AR 5574 fi 5575fi 5576 5577: ${AR=ar} 5578: ${AR_FLAGS=cru} 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5591$as_echo_n "checking for archiver @FILE support... " >&6; } 5592if ${lt_cv_ar_at_file+:} false; then : 5593 $as_echo_n "(cached) " >&6 5594else 5595 lt_cv_ar_at_file=no 5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5597/* end confdefs.h. */ 5598 5599int 5600main () 5601{ 5602 5603 ; 5604 return 0; 5605} 5606_ACEOF 5607if ac_fn_c_try_compile "$LINENO"; then : 5608 echo conftest.$ac_objext > conftest.lst 5609 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5611 (eval $lt_ar_try) 2>&5 5612 ac_status=$? 5613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5614 test $ac_status = 0; } 5615 if test "$ac_status" -eq 0; then 5616 # Ensure the archiver fails upon bogus file names. 5617 rm -f conftest.$ac_objext libconftest.a 5618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5619 (eval $lt_ar_try) 2>&5 5620 ac_status=$? 5621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5622 test $ac_status = 0; } 5623 if test "$ac_status" -ne 0; then 5624 lt_cv_ar_at_file=@ 5625 fi 5626 fi 5627 rm -f conftest.* libconftest.a 5628 5629fi 5630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5631 5632fi 5633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5634$as_echo "$lt_cv_ar_at_file" >&6; } 5635 5636if test "x$lt_cv_ar_at_file" = xno; then 5637 archiver_list_spec= 5638else 5639 archiver_list_spec=$lt_cv_ar_at_file 5640fi 5641 5642 5643 5644 5645 5646 5647 5648if test -n "$ac_tool_prefix"; then 5649 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5650set dummy ${ac_tool_prefix}strip; ac_word=$2 5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5652$as_echo_n "checking for $ac_word... " >&6; } 5653if ${ac_cv_prog_STRIP+:} false; then : 5654 $as_echo_n "(cached) " >&6 5655else 5656 if test -n "$STRIP"; then 5657 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5658else 5659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5660for as_dir in $PATH 5661do 5662 IFS=$as_save_IFS 5663 test -z "$as_dir" && as_dir=. 5664 for ac_exec_ext in '' $ac_executable_extensions; do 5665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5666 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5668 break 2 5669 fi 5670done 5671 done 5672IFS=$as_save_IFS 5673 5674fi 5675fi 5676STRIP=$ac_cv_prog_STRIP 5677if test -n "$STRIP"; then 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5679$as_echo "$STRIP" >&6; } 5680else 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5682$as_echo "no" >&6; } 5683fi 5684 5685 5686fi 5687if test -z "$ac_cv_prog_STRIP"; then 5688 ac_ct_STRIP=$STRIP 5689 # Extract the first word of "strip", so it can be a program name with args. 5690set dummy strip; ac_word=$2 5691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5692$as_echo_n "checking for $ac_word... " >&6; } 5693if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5694 $as_echo_n "(cached) " >&6 5695else 5696 if test -n "$ac_ct_STRIP"; then 5697 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5698else 5699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5700for as_dir in $PATH 5701do 5702 IFS=$as_save_IFS 5703 test -z "$as_dir" && as_dir=. 5704 for ac_exec_ext in '' $ac_executable_extensions; do 5705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5706 ac_cv_prog_ac_ct_STRIP="strip" 5707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5708 break 2 5709 fi 5710done 5711 done 5712IFS=$as_save_IFS 5713 5714fi 5715fi 5716ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5717if test -n "$ac_ct_STRIP"; then 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5719$as_echo "$ac_ct_STRIP" >&6; } 5720else 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5722$as_echo "no" >&6; } 5723fi 5724 5725 if test "x$ac_ct_STRIP" = x; then 5726 STRIP=":" 5727 else 5728 case $cross_compiling:$ac_tool_warned in 5729yes:) 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5732ac_tool_warned=yes ;; 5733esac 5734 STRIP=$ac_ct_STRIP 5735 fi 5736else 5737 STRIP="$ac_cv_prog_STRIP" 5738fi 5739 5740test -z "$STRIP" && STRIP=: 5741 5742 5743 5744 5745 5746 5747if test -n "$ac_tool_prefix"; then 5748 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5749set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5751$as_echo_n "checking for $ac_word... " >&6; } 5752if ${ac_cv_prog_RANLIB+:} false; then : 5753 $as_echo_n "(cached) " >&6 5754else 5755 if test -n "$RANLIB"; then 5756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5757else 5758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5759for as_dir in $PATH 5760do 5761 IFS=$as_save_IFS 5762 test -z "$as_dir" && as_dir=. 5763 for ac_exec_ext in '' $ac_executable_extensions; do 5764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5765 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5767 break 2 5768 fi 5769done 5770 done 5771IFS=$as_save_IFS 5772 5773fi 5774fi 5775RANLIB=$ac_cv_prog_RANLIB 5776if test -n "$RANLIB"; then 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5778$as_echo "$RANLIB" >&6; } 5779else 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5781$as_echo "no" >&6; } 5782fi 5783 5784 5785fi 5786if test -z "$ac_cv_prog_RANLIB"; then 5787 ac_ct_RANLIB=$RANLIB 5788 # Extract the first word of "ranlib", so it can be a program name with args. 5789set dummy ranlib; ac_word=$2 5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5791$as_echo_n "checking for $ac_word... " >&6; } 5792if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5793 $as_echo_n "(cached) " >&6 5794else 5795 if test -n "$ac_ct_RANLIB"; then 5796 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5797else 5798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5799for as_dir in $PATH 5800do 5801 IFS=$as_save_IFS 5802 test -z "$as_dir" && as_dir=. 5803 for ac_exec_ext in '' $ac_executable_extensions; do 5804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5805 ac_cv_prog_ac_ct_RANLIB="ranlib" 5806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5807 break 2 5808 fi 5809done 5810 done 5811IFS=$as_save_IFS 5812 5813fi 5814fi 5815ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5816if test -n "$ac_ct_RANLIB"; then 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5818$as_echo "$ac_ct_RANLIB" >&6; } 5819else 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5821$as_echo "no" >&6; } 5822fi 5823 5824 if test "x$ac_ct_RANLIB" = x; then 5825 RANLIB=":" 5826 else 5827 case $cross_compiling:$ac_tool_warned in 5828yes:) 5829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5831ac_tool_warned=yes ;; 5832esac 5833 RANLIB=$ac_ct_RANLIB 5834 fi 5835else 5836 RANLIB="$ac_cv_prog_RANLIB" 5837fi 5838 5839test -z "$RANLIB" && RANLIB=: 5840 5841 5842 5843 5844 5845 5846# Determine commands to create old-style static archives. 5847old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5848old_postinstall_cmds='chmod 644 $oldlib' 5849old_postuninstall_cmds= 5850 5851if test -n "$RANLIB"; then 5852 case $host_os in 5853 openbsd*) 5854 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5855 ;; 5856 *) 5857 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5858 ;; 5859 esac 5860 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5861fi 5862 5863case $host_os in 5864 darwin*) 5865 lock_old_archive_extraction=yes ;; 5866 *) 5867 lock_old_archive_extraction=no ;; 5868esac 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908# If no C compiler was specified, use CC. 5909LTCC=${LTCC-"$CC"} 5910 5911# If no C compiler flags were specified, use CFLAGS. 5912LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5913 5914# Allow CC to be a program name with arguments. 5915compiler=$CC 5916 5917 5918# Check for command to grab the raw symbol name followed by C symbol from nm. 5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5920$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5921if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5922 $as_echo_n "(cached) " >&6 5923else 5924 5925# These are sane defaults that work on at least a few old systems. 5926# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5927 5928# Character class describing NM global symbol codes. 5929symcode='[BCDEGRST]' 5930 5931# Regexp to match symbols that can be accessed directly from C. 5932sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5933 5934# Define system-specific variables. 5935case $host_os in 5936aix*) 5937 symcode='[BCDT]' 5938 ;; 5939cygwin* | mingw* | pw32* | cegcc*) 5940 symcode='[ABCDGISTW]' 5941 ;; 5942hpux*) 5943 if test "$host_cpu" = ia64; then 5944 symcode='[ABCDEGRST]' 5945 fi 5946 ;; 5947irix* | nonstopux*) 5948 symcode='[BCDEGRST]' 5949 ;; 5950osf*) 5951 symcode='[BCDEGQRST]' 5952 ;; 5953solaris*) 5954 symcode='[BDRT]' 5955 ;; 5956sco3.2v5*) 5957 symcode='[DT]' 5958 ;; 5959sysv4.2uw2*) 5960 symcode='[DT]' 5961 ;; 5962sysv5* | sco5v6* | unixware* | OpenUNIX*) 5963 symcode='[ABDT]' 5964 ;; 5965sysv4) 5966 symcode='[DFNSTU]' 5967 ;; 5968esac 5969 5970# If we're using GNU nm, then use its standard symbol codes. 5971case `$NM -V 2>&1` in 5972*GNU* | *'with BFD'*) 5973 symcode='[ABCDGIRSTW]' ;; 5974esac 5975 5976# Transform an extracted symbol line into a proper C declaration. 5977# Some systems (esp. on ia64) link data and code symbols differently, 5978# so use this general approach. 5979lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5980 5981# Transform an extracted symbol line into symbol name and symbol address 5982lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5983lt_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'" 5984 5985# Handle CRLF in mingw tool chain 5986opt_cr= 5987case $build_os in 5988mingw*) 5989 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5990 ;; 5991esac 5992 5993# Try without a prefix underscore, then with it. 5994for ac_symprfx in "" "_"; do 5995 5996 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5997 symxfrm="\\1 $ac_symprfx\\2 \\2" 5998 5999 # Write the raw and C identifiers. 6000 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6001 # Fake it for dumpbin and say T for any non-static function 6002 # and D for any global variable. 6003 # Also find C++ and __fastcall symbols from MSVC++, 6004 # which start with @ or ?. 6005 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6006" {last_section=section; section=\$ 3};"\ 6007" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6008" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6009" \$ 0!~/External *\|/{next};"\ 6010" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6011" {if(hide[section]) next};"\ 6012" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6013" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6014" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6015" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6016" ' prfx=^$ac_symprfx" 6017 else 6018 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6019 fi 6020 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6021 6022 # Check to see that the pipe works correctly. 6023 pipe_works=no 6024 6025 rm -f conftest* 6026 cat > conftest.$ac_ext <<_LT_EOF 6027#ifdef __cplusplus 6028extern "C" { 6029#endif 6030char nm_test_var; 6031void nm_test_func(void); 6032void nm_test_func(void){} 6033#ifdef __cplusplus 6034} 6035#endif 6036int main(){nm_test_var='a';nm_test_func();return(0);} 6037_LT_EOF 6038 6039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6040 (eval $ac_compile) 2>&5 6041 ac_status=$? 6042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6043 test $ac_status = 0; }; then 6044 # Now try to grab the symbols. 6045 nlist=conftest.nm 6046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6047 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6048 ac_status=$? 6049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6050 test $ac_status = 0; } && test -s "$nlist"; then 6051 # Try sorting and uniquifying the output. 6052 if sort "$nlist" | uniq > "$nlist"T; then 6053 mv -f "$nlist"T "$nlist" 6054 else 6055 rm -f "$nlist"T 6056 fi 6057 6058 # Make sure that we snagged all the symbols we need. 6059 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6060 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6061 cat <<_LT_EOF > conftest.$ac_ext 6062/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6063#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6064/* DATA imports from DLLs on WIN32 con't be const, because runtime 6065 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6066# define LT_DLSYM_CONST 6067#elif defined(__osf__) 6068/* This system does not cope well with relocations in const data. */ 6069# define LT_DLSYM_CONST 6070#else 6071# define LT_DLSYM_CONST const 6072#endif 6073 6074#ifdef __cplusplus 6075extern "C" { 6076#endif 6077 6078_LT_EOF 6079 # Now generate the symbol file. 6080 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6081 6082 cat <<_LT_EOF >> conftest.$ac_ext 6083 6084/* The mapping between symbol names and symbols. */ 6085LT_DLSYM_CONST struct { 6086 const char *name; 6087 void *address; 6088} 6089lt__PROGRAM__LTX_preloaded_symbols[] = 6090{ 6091 { "@PROGRAM@", (void *) 0 }, 6092_LT_EOF 6093 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6094 cat <<\_LT_EOF >> conftest.$ac_ext 6095 {0, (void *) 0} 6096}; 6097 6098/* This works around a problem in FreeBSD linker */ 6099#ifdef FREEBSD_WORKAROUND 6100static const void *lt_preloaded_setup() { 6101 return lt__PROGRAM__LTX_preloaded_symbols; 6102} 6103#endif 6104 6105#ifdef __cplusplus 6106} 6107#endif 6108_LT_EOF 6109 # Now try linking the two files. 6110 mv conftest.$ac_objext conftstm.$ac_objext 6111 lt_globsym_save_LIBS=$LIBS 6112 lt_globsym_save_CFLAGS=$CFLAGS 6113 LIBS="conftstm.$ac_objext" 6114 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6116 (eval $ac_link) 2>&5 6117 ac_status=$? 6118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6119 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6120 pipe_works=yes 6121 fi 6122 LIBS=$lt_globsym_save_LIBS 6123 CFLAGS=$lt_globsym_save_CFLAGS 6124 else 6125 echo "cannot find nm_test_func in $nlist" >&5 6126 fi 6127 else 6128 echo "cannot find nm_test_var in $nlist" >&5 6129 fi 6130 else 6131 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6132 fi 6133 else 6134 echo "$progname: failed program was:" >&5 6135 cat conftest.$ac_ext >&5 6136 fi 6137 rm -rf conftest* conftst* 6138 6139 # Do not use the global_symbol_pipe unless it works. 6140 if test "$pipe_works" = yes; then 6141 break 6142 else 6143 lt_cv_sys_global_symbol_pipe= 6144 fi 6145done 6146 6147fi 6148 6149if test -z "$lt_cv_sys_global_symbol_pipe"; then 6150 lt_cv_sys_global_symbol_to_cdecl= 6151fi 6152if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6154$as_echo "failed" >&6; } 6155else 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6157$as_echo "ok" >&6; } 6158fi 6159 6160# Response file support. 6161if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6162 nm_file_list_spec='@' 6163elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6164 nm_file_list_spec='@' 6165fi 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6194$as_echo_n "checking for sysroot... " >&6; } 6195 6196# Check whether --with-sysroot was given. 6197if test "${with_sysroot+set}" = set; then : 6198 withval=$with_sysroot; 6199else 6200 with_sysroot=no 6201fi 6202 6203 6204lt_sysroot= 6205case ${with_sysroot} in #( 6206 yes) 6207 if test "$GCC" = yes; then 6208 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6209 fi 6210 ;; #( 6211 /*) 6212 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6213 ;; #( 6214 no|'') 6215 ;; #( 6216 *) 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6218$as_echo "${with_sysroot}" >&6; } 6219 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6220 ;; 6221esac 6222 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6224$as_echo "${lt_sysroot:-no}" >&6; } 6225 6226 6227 6228 6229 6230# Check whether --enable-libtool-lock was given. 6231if test "${enable_libtool_lock+set}" = set; then : 6232 enableval=$enable_libtool_lock; 6233fi 6234 6235test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6236 6237# Some flags need to be propagated to the compiler or linker for good 6238# libtool support. 6239case $host in 6240ia64-*-hpux*) 6241 # Find out which ABI we are using. 6242 echo 'int i;' > conftest.$ac_ext 6243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6244 (eval $ac_compile) 2>&5 6245 ac_status=$? 6246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6247 test $ac_status = 0; }; then 6248 case `/usr/bin/file conftest.$ac_objext` in 6249 *ELF-32*) 6250 HPUX_IA64_MODE="32" 6251 ;; 6252 *ELF-64*) 6253 HPUX_IA64_MODE="64" 6254 ;; 6255 esac 6256 fi 6257 rm -rf conftest* 6258 ;; 6259*-*-irix6*) 6260 # Find out which ABI we are using. 6261 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6263 (eval $ac_compile) 2>&5 6264 ac_status=$? 6265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6266 test $ac_status = 0; }; then 6267 if test "$lt_cv_prog_gnu_ld" = yes; then 6268 case `/usr/bin/file conftest.$ac_objext` in 6269 *32-bit*) 6270 LD="${LD-ld} -melf32bsmip" 6271 ;; 6272 *N32*) 6273 LD="${LD-ld} -melf32bmipn32" 6274 ;; 6275 *64-bit*) 6276 LD="${LD-ld} -melf64bmip" 6277 ;; 6278 esac 6279 else 6280 case `/usr/bin/file conftest.$ac_objext` in 6281 *32-bit*) 6282 LD="${LD-ld} -32" 6283 ;; 6284 *N32*) 6285 LD="${LD-ld} -n32" 6286 ;; 6287 *64-bit*) 6288 LD="${LD-ld} -64" 6289 ;; 6290 esac 6291 fi 6292 fi 6293 rm -rf conftest* 6294 ;; 6295 6296x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6297s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6298 # Find out which ABI we are using. 6299 echo 'int i;' > conftest.$ac_ext 6300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6301 (eval $ac_compile) 2>&5 6302 ac_status=$? 6303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6304 test $ac_status = 0; }; then 6305 case `/usr/bin/file conftest.o` in 6306 *32-bit*) 6307 case $host in 6308 x86_64-*kfreebsd*-gnu) 6309 LD="${LD-ld} -m elf_i386_fbsd" 6310 ;; 6311 x86_64-*linux*) 6312 LD="${LD-ld} -m elf_i386" 6313 ;; 6314 ppc64-*linux*|powerpc64-*linux*) 6315 LD="${LD-ld} -m elf32ppclinux" 6316 ;; 6317 s390x-*linux*) 6318 LD="${LD-ld} -m elf_s390" 6319 ;; 6320 sparc64-*linux*) 6321 LD="${LD-ld} -m elf32_sparc" 6322 ;; 6323 esac 6324 ;; 6325 *64-bit*) 6326 case $host in 6327 x86_64-*kfreebsd*-gnu) 6328 LD="${LD-ld} -m elf_x86_64_fbsd" 6329 ;; 6330 x86_64-*linux*) 6331 LD="${LD-ld} -m elf_x86_64" 6332 ;; 6333 ppc*-*linux*|powerpc*-*linux*) 6334 LD="${LD-ld} -m elf64ppc" 6335 ;; 6336 s390*-*linux*|s390*-*tpf*) 6337 LD="${LD-ld} -m elf64_s390" 6338 ;; 6339 sparc*-*linux*) 6340 LD="${LD-ld} -m elf64_sparc" 6341 ;; 6342 esac 6343 ;; 6344 esac 6345 fi 6346 rm -rf conftest* 6347 ;; 6348 6349*-*-sco3.2v5*) 6350 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6351 SAVE_CFLAGS="$CFLAGS" 6352 CFLAGS="$CFLAGS -belf" 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6354$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6355if ${lt_cv_cc_needs_belf+:} false; then : 6356 $as_echo_n "(cached) " >&6 6357else 6358 ac_ext=c 6359ac_cpp='$CPP $CPPFLAGS' 6360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6362ac_compiler_gnu=$ac_cv_c_compiler_gnu 6363 6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6365/* end confdefs.h. */ 6366 6367int 6368main () 6369{ 6370 6371 ; 6372 return 0; 6373} 6374_ACEOF 6375if ac_fn_c_try_link "$LINENO"; then : 6376 lt_cv_cc_needs_belf=yes 6377else 6378 lt_cv_cc_needs_belf=no 6379fi 6380rm -f core conftest.err conftest.$ac_objext \ 6381 conftest$ac_exeext conftest.$ac_ext 6382 ac_ext=c 6383ac_cpp='$CPP $CPPFLAGS' 6384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6386ac_compiler_gnu=$ac_cv_c_compiler_gnu 6387 6388fi 6389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6390$as_echo "$lt_cv_cc_needs_belf" >&6; } 6391 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6392 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6393 CFLAGS="$SAVE_CFLAGS" 6394 fi 6395 ;; 6396*-*solaris*) 6397 # Find out which ABI we are using. 6398 echo 'int i;' > conftest.$ac_ext 6399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6400 (eval $ac_compile) 2>&5 6401 ac_status=$? 6402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6403 test $ac_status = 0; }; then 6404 case `/usr/bin/file conftest.o` in 6405 *64-bit*) 6406 case $lt_cv_prog_gnu_ld in 6407 yes*) 6408 case $host in 6409 i?86-*-solaris*) 6410 LD="${LD-ld} -m elf_x86_64" 6411 ;; 6412 sparc*-*-solaris*) 6413 LD="${LD-ld} -m elf64_sparc" 6414 ;; 6415 esac 6416 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6417 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6418 LD="${LD-ld}_sol2" 6419 fi 6420 ;; 6421 *) 6422 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6423 LD="${LD-ld} -64" 6424 fi 6425 ;; 6426 esac 6427 ;; 6428 esac 6429 fi 6430 rm -rf conftest* 6431 ;; 6432esac 6433 6434need_locks="$enable_libtool_lock" 6435 6436if test -n "$ac_tool_prefix"; then 6437 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6438set dummy ${ac_tool_prefix}mt; ac_word=$2 6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6440$as_echo_n "checking for $ac_word... " >&6; } 6441if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6442 $as_echo_n "(cached) " >&6 6443else 6444 if test -n "$MANIFEST_TOOL"; then 6445 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6446else 6447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6448for as_dir in $PATH 6449do 6450 IFS=$as_save_IFS 6451 test -z "$as_dir" && as_dir=. 6452 for ac_exec_ext in '' $ac_executable_extensions; do 6453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6454 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6456 break 2 6457 fi 6458done 6459 done 6460IFS=$as_save_IFS 6461 6462fi 6463fi 6464MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6465if test -n "$MANIFEST_TOOL"; then 6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6467$as_echo "$MANIFEST_TOOL" >&6; } 6468else 6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6470$as_echo "no" >&6; } 6471fi 6472 6473 6474fi 6475if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6476 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6477 # Extract the first word of "mt", so it can be a program name with args. 6478set dummy mt; ac_word=$2 6479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6480$as_echo_n "checking for $ac_word... " >&6; } 6481if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6482 $as_echo_n "(cached) " >&6 6483else 6484 if test -n "$ac_ct_MANIFEST_TOOL"; then 6485 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6486else 6487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6488for as_dir in $PATH 6489do 6490 IFS=$as_save_IFS 6491 test -z "$as_dir" && as_dir=. 6492 for ac_exec_ext in '' $ac_executable_extensions; do 6493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6494 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6496 break 2 6497 fi 6498done 6499 done 6500IFS=$as_save_IFS 6501 6502fi 6503fi 6504ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6505if test -n "$ac_ct_MANIFEST_TOOL"; then 6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6507$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6508else 6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6510$as_echo "no" >&6; } 6511fi 6512 6513 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6514 MANIFEST_TOOL=":" 6515 else 6516 case $cross_compiling:$ac_tool_warned in 6517yes:) 6518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6520ac_tool_warned=yes ;; 6521esac 6522 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6523 fi 6524else 6525 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6526fi 6527 6528test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6530$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6531if ${lt_cv_path_mainfest_tool+:} false; then : 6532 $as_echo_n "(cached) " >&6 6533else 6534 lt_cv_path_mainfest_tool=no 6535 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6536 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6537 cat conftest.err >&5 6538 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6539 lt_cv_path_mainfest_tool=yes 6540 fi 6541 rm -f conftest* 6542fi 6543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6544$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6545if test "x$lt_cv_path_mainfest_tool" != xyes; then 6546 MANIFEST_TOOL=: 6547fi 6548 6549 6550 6551 6552 6553 6554 case $host_os in 6555 rhapsody* | darwin*) 6556 if test -n "$ac_tool_prefix"; then 6557 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6558set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6560$as_echo_n "checking for $ac_word... " >&6; } 6561if ${ac_cv_prog_DSYMUTIL+:} false; then : 6562 $as_echo_n "(cached) " >&6 6563else 6564 if test -n "$DSYMUTIL"; then 6565 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6566else 6567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6568for as_dir in $PATH 6569do 6570 IFS=$as_save_IFS 6571 test -z "$as_dir" && as_dir=. 6572 for ac_exec_ext in '' $ac_executable_extensions; do 6573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6574 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6576 break 2 6577 fi 6578done 6579 done 6580IFS=$as_save_IFS 6581 6582fi 6583fi 6584DSYMUTIL=$ac_cv_prog_DSYMUTIL 6585if test -n "$DSYMUTIL"; then 6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6587$as_echo "$DSYMUTIL" >&6; } 6588else 6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6590$as_echo "no" >&6; } 6591fi 6592 6593 6594fi 6595if test -z "$ac_cv_prog_DSYMUTIL"; then 6596 ac_ct_DSYMUTIL=$DSYMUTIL 6597 # Extract the first word of "dsymutil", so it can be a program name with args. 6598set dummy dsymutil; ac_word=$2 6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6600$as_echo_n "checking for $ac_word... " >&6; } 6601if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6602 $as_echo_n "(cached) " >&6 6603else 6604 if test -n "$ac_ct_DSYMUTIL"; then 6605 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6606else 6607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6608for as_dir in $PATH 6609do 6610 IFS=$as_save_IFS 6611 test -z "$as_dir" && as_dir=. 6612 for ac_exec_ext in '' $ac_executable_extensions; do 6613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6614 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6616 break 2 6617 fi 6618done 6619 done 6620IFS=$as_save_IFS 6621 6622fi 6623fi 6624ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6625if test -n "$ac_ct_DSYMUTIL"; then 6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6627$as_echo "$ac_ct_DSYMUTIL" >&6; } 6628else 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6630$as_echo "no" >&6; } 6631fi 6632 6633 if test "x$ac_ct_DSYMUTIL" = x; then 6634 DSYMUTIL=":" 6635 else 6636 case $cross_compiling:$ac_tool_warned in 6637yes:) 6638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6640ac_tool_warned=yes ;; 6641esac 6642 DSYMUTIL=$ac_ct_DSYMUTIL 6643 fi 6644else 6645 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6646fi 6647 6648 if test -n "$ac_tool_prefix"; then 6649 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6650set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6652$as_echo_n "checking for $ac_word... " >&6; } 6653if ${ac_cv_prog_NMEDIT+:} false; then : 6654 $as_echo_n "(cached) " >&6 6655else 6656 if test -n "$NMEDIT"; then 6657 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6658else 6659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6660for as_dir in $PATH 6661do 6662 IFS=$as_save_IFS 6663 test -z "$as_dir" && as_dir=. 6664 for ac_exec_ext in '' $ac_executable_extensions; do 6665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6666 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6668 break 2 6669 fi 6670done 6671 done 6672IFS=$as_save_IFS 6673 6674fi 6675fi 6676NMEDIT=$ac_cv_prog_NMEDIT 6677if test -n "$NMEDIT"; then 6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6679$as_echo "$NMEDIT" >&6; } 6680else 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6682$as_echo "no" >&6; } 6683fi 6684 6685 6686fi 6687if test -z "$ac_cv_prog_NMEDIT"; then 6688 ac_ct_NMEDIT=$NMEDIT 6689 # Extract the first word of "nmedit", so it can be a program name with args. 6690set dummy nmedit; ac_word=$2 6691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6692$as_echo_n "checking for $ac_word... " >&6; } 6693if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6694 $as_echo_n "(cached) " >&6 6695else 6696 if test -n "$ac_ct_NMEDIT"; then 6697 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6698else 6699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6700for as_dir in $PATH 6701do 6702 IFS=$as_save_IFS 6703 test -z "$as_dir" && as_dir=. 6704 for ac_exec_ext in '' $ac_executable_extensions; do 6705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6706 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6708 break 2 6709 fi 6710done 6711 done 6712IFS=$as_save_IFS 6713 6714fi 6715fi 6716ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6717if test -n "$ac_ct_NMEDIT"; then 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6719$as_echo "$ac_ct_NMEDIT" >&6; } 6720else 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6722$as_echo "no" >&6; } 6723fi 6724 6725 if test "x$ac_ct_NMEDIT" = x; then 6726 NMEDIT=":" 6727 else 6728 case $cross_compiling:$ac_tool_warned in 6729yes:) 6730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6732ac_tool_warned=yes ;; 6733esac 6734 NMEDIT=$ac_ct_NMEDIT 6735 fi 6736else 6737 NMEDIT="$ac_cv_prog_NMEDIT" 6738fi 6739 6740 if test -n "$ac_tool_prefix"; then 6741 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6742set dummy ${ac_tool_prefix}lipo; ac_word=$2 6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6744$as_echo_n "checking for $ac_word... " >&6; } 6745if ${ac_cv_prog_LIPO+:} false; then : 6746 $as_echo_n "(cached) " >&6 6747else 6748 if test -n "$LIPO"; then 6749 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6750else 6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6752for as_dir in $PATH 6753do 6754 IFS=$as_save_IFS 6755 test -z "$as_dir" && as_dir=. 6756 for ac_exec_ext in '' $ac_executable_extensions; do 6757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6758 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6760 break 2 6761 fi 6762done 6763 done 6764IFS=$as_save_IFS 6765 6766fi 6767fi 6768LIPO=$ac_cv_prog_LIPO 6769if test -n "$LIPO"; then 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6771$as_echo "$LIPO" >&6; } 6772else 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6774$as_echo "no" >&6; } 6775fi 6776 6777 6778fi 6779if test -z "$ac_cv_prog_LIPO"; then 6780 ac_ct_LIPO=$LIPO 6781 # Extract the first word of "lipo", so it can be a program name with args. 6782set dummy lipo; ac_word=$2 6783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6784$as_echo_n "checking for $ac_word... " >&6; } 6785if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6786 $as_echo_n "(cached) " >&6 6787else 6788 if test -n "$ac_ct_LIPO"; then 6789 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6790else 6791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6792for as_dir in $PATH 6793do 6794 IFS=$as_save_IFS 6795 test -z "$as_dir" && as_dir=. 6796 for ac_exec_ext in '' $ac_executable_extensions; do 6797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6798 ac_cv_prog_ac_ct_LIPO="lipo" 6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6800 break 2 6801 fi 6802done 6803 done 6804IFS=$as_save_IFS 6805 6806fi 6807fi 6808ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6809if test -n "$ac_ct_LIPO"; then 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6811$as_echo "$ac_ct_LIPO" >&6; } 6812else 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6814$as_echo "no" >&6; } 6815fi 6816 6817 if test "x$ac_ct_LIPO" = x; then 6818 LIPO=":" 6819 else 6820 case $cross_compiling:$ac_tool_warned in 6821yes:) 6822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6824ac_tool_warned=yes ;; 6825esac 6826 LIPO=$ac_ct_LIPO 6827 fi 6828else 6829 LIPO="$ac_cv_prog_LIPO" 6830fi 6831 6832 if test -n "$ac_tool_prefix"; then 6833 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6834set dummy ${ac_tool_prefix}otool; ac_word=$2 6835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6836$as_echo_n "checking for $ac_word... " >&6; } 6837if ${ac_cv_prog_OTOOL+:} false; then : 6838 $as_echo_n "(cached) " >&6 6839else 6840 if test -n "$OTOOL"; then 6841 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6842else 6843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6844for as_dir in $PATH 6845do 6846 IFS=$as_save_IFS 6847 test -z "$as_dir" && as_dir=. 6848 for ac_exec_ext in '' $ac_executable_extensions; do 6849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6850 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6852 break 2 6853 fi 6854done 6855 done 6856IFS=$as_save_IFS 6857 6858fi 6859fi 6860OTOOL=$ac_cv_prog_OTOOL 6861if test -n "$OTOOL"; then 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6863$as_echo "$OTOOL" >&6; } 6864else 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6866$as_echo "no" >&6; } 6867fi 6868 6869 6870fi 6871if test -z "$ac_cv_prog_OTOOL"; then 6872 ac_ct_OTOOL=$OTOOL 6873 # Extract the first word of "otool", so it can be a program name with args. 6874set dummy otool; ac_word=$2 6875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6876$as_echo_n "checking for $ac_word... " >&6; } 6877if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6878 $as_echo_n "(cached) " >&6 6879else 6880 if test -n "$ac_ct_OTOOL"; then 6881 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6882else 6883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6884for as_dir in $PATH 6885do 6886 IFS=$as_save_IFS 6887 test -z "$as_dir" && as_dir=. 6888 for ac_exec_ext in '' $ac_executable_extensions; do 6889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6890 ac_cv_prog_ac_ct_OTOOL="otool" 6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6892 break 2 6893 fi 6894done 6895 done 6896IFS=$as_save_IFS 6897 6898fi 6899fi 6900ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6901if test -n "$ac_ct_OTOOL"; then 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6903$as_echo "$ac_ct_OTOOL" >&6; } 6904else 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6906$as_echo "no" >&6; } 6907fi 6908 6909 if test "x$ac_ct_OTOOL" = x; then 6910 OTOOL=":" 6911 else 6912 case $cross_compiling:$ac_tool_warned in 6913yes:) 6914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6916ac_tool_warned=yes ;; 6917esac 6918 OTOOL=$ac_ct_OTOOL 6919 fi 6920else 6921 OTOOL="$ac_cv_prog_OTOOL" 6922fi 6923 6924 if test -n "$ac_tool_prefix"; then 6925 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6926set dummy ${ac_tool_prefix}otool64; ac_word=$2 6927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6928$as_echo_n "checking for $ac_word... " >&6; } 6929if ${ac_cv_prog_OTOOL64+:} false; then : 6930 $as_echo_n "(cached) " >&6 6931else 6932 if test -n "$OTOOL64"; then 6933 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6934else 6935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6936for as_dir in $PATH 6937do 6938 IFS=$as_save_IFS 6939 test -z "$as_dir" && as_dir=. 6940 for ac_exec_ext in '' $ac_executable_extensions; do 6941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6942 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6944 break 2 6945 fi 6946done 6947 done 6948IFS=$as_save_IFS 6949 6950fi 6951fi 6952OTOOL64=$ac_cv_prog_OTOOL64 6953if test -n "$OTOOL64"; then 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6955$as_echo "$OTOOL64" >&6; } 6956else 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6958$as_echo "no" >&6; } 6959fi 6960 6961 6962fi 6963if test -z "$ac_cv_prog_OTOOL64"; then 6964 ac_ct_OTOOL64=$OTOOL64 6965 # Extract the first word of "otool64", so it can be a program name with args. 6966set dummy otool64; ac_word=$2 6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6968$as_echo_n "checking for $ac_word... " >&6; } 6969if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6970 $as_echo_n "(cached) " >&6 6971else 6972 if test -n "$ac_ct_OTOOL64"; then 6973 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6974else 6975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6976for as_dir in $PATH 6977do 6978 IFS=$as_save_IFS 6979 test -z "$as_dir" && as_dir=. 6980 for ac_exec_ext in '' $ac_executable_extensions; do 6981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6982 ac_cv_prog_ac_ct_OTOOL64="otool64" 6983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6984 break 2 6985 fi 6986done 6987 done 6988IFS=$as_save_IFS 6989 6990fi 6991fi 6992ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6993if test -n "$ac_ct_OTOOL64"; then 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6995$as_echo "$ac_ct_OTOOL64" >&6; } 6996else 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6998$as_echo "no" >&6; } 6999fi 7000 7001 if test "x$ac_ct_OTOOL64" = x; then 7002 OTOOL64=":" 7003 else 7004 case $cross_compiling:$ac_tool_warned in 7005yes:) 7006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7008ac_tool_warned=yes ;; 7009esac 7010 OTOOL64=$ac_ct_OTOOL64 7011 fi 7012else 7013 OTOOL64="$ac_cv_prog_OTOOL64" 7014fi 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7043$as_echo_n "checking for -single_module linker flag... " >&6; } 7044if ${lt_cv_apple_cc_single_mod+:} false; then : 7045 $as_echo_n "(cached) " >&6 7046else 7047 lt_cv_apple_cc_single_mod=no 7048 if test -z "${LT_MULTI_MODULE}"; then 7049 # By default we will add the -single_module flag. You can override 7050 # by either setting the environment variable LT_MULTI_MODULE 7051 # non-empty at configure time, or by adding -multi_module to the 7052 # link flags. 7053 rm -rf libconftest.dylib* 7054 echo "int foo(void){return 1;}" > conftest.c 7055 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7056-dynamiclib -Wl,-single_module conftest.c" >&5 7057 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7058 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7059 _lt_result=$? 7060 # If there is a non-empty error log, and "single_module" 7061 # appears in it, assume the flag caused a linker warning 7062 if test -s conftest.err && $GREP single_module conftest.err; then 7063 cat conftest.err >&5 7064 # Otherwise, if the output was created with a 0 exit code from 7065 # the compiler, it worked. 7066 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7067 lt_cv_apple_cc_single_mod=yes 7068 else 7069 cat conftest.err >&5 7070 fi 7071 rm -rf libconftest.dylib* 7072 rm -f conftest.* 7073 fi 7074fi 7075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7076$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7077 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7079$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7080if ${lt_cv_ld_exported_symbols_list+:} false; then : 7081 $as_echo_n "(cached) " >&6 7082else 7083 lt_cv_ld_exported_symbols_list=no 7084 save_LDFLAGS=$LDFLAGS 7085 echo "_main" > conftest.sym 7086 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7088/* end confdefs.h. */ 7089 7090int 7091main () 7092{ 7093 7094 ; 7095 return 0; 7096} 7097_ACEOF 7098if ac_fn_c_try_link "$LINENO"; then : 7099 lt_cv_ld_exported_symbols_list=yes 7100else 7101 lt_cv_ld_exported_symbols_list=no 7102fi 7103rm -f core conftest.err conftest.$ac_objext \ 7104 conftest$ac_exeext conftest.$ac_ext 7105 LDFLAGS="$save_LDFLAGS" 7106 7107fi 7108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7109$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7110 7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7112$as_echo_n "checking for -force_load linker flag... " >&6; } 7113if ${lt_cv_ld_force_load+:} false; then : 7114 $as_echo_n "(cached) " >&6 7115else 7116 lt_cv_ld_force_load=no 7117 cat > conftest.c << _LT_EOF 7118int forced_loaded() { return 2;} 7119_LT_EOF 7120 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7121 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7122 echo "$AR cru libconftest.a conftest.o" >&5 7123 $AR cru libconftest.a conftest.o 2>&5 7124 echo "$RANLIB libconftest.a" >&5 7125 $RANLIB libconftest.a 2>&5 7126 cat > conftest.c << _LT_EOF 7127int main() { return 0;} 7128_LT_EOF 7129 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7130 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7131 _lt_result=$? 7132 if test -s conftest.err && $GREP force_load conftest.err; then 7133 cat conftest.err >&5 7134 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7135 lt_cv_ld_force_load=yes 7136 else 7137 cat conftest.err >&5 7138 fi 7139 rm -f conftest.err libconftest.a conftest conftest.c 7140 rm -rf conftest.dSYM 7141 7142fi 7143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7144$as_echo "$lt_cv_ld_force_load" >&6; } 7145 case $host_os in 7146 rhapsody* | darwin1.[012]) 7147 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7148 darwin1.*) 7149 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7150 darwin*) # darwin 5.x on 7151 # if running on 10.5 or later, the deployment target defaults 7152 # to the OS version, if on x86, and 10.4, the deployment 7153 # target defaults to 10.4. Don't you love it? 7154 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7155 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7156 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7157 10.[012]*) 7158 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7159 10.*) 7160 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7161 esac 7162 ;; 7163 esac 7164 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7165 _lt_dar_single_mod='$single_module' 7166 fi 7167 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7168 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7169 else 7170 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7171 fi 7172 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7173 _lt_dsymutil='~$DSYMUTIL $lib || :' 7174 else 7175 _lt_dsymutil= 7176 fi 7177 ;; 7178 esac 7179 7180ac_ext=c 7181ac_cpp='$CPP $CPPFLAGS' 7182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7184ac_compiler_gnu=$ac_cv_c_compiler_gnu 7185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7186$as_echo_n "checking how to run the C preprocessor... " >&6; } 7187# On Suns, sometimes $CPP names a directory. 7188if test -n "$CPP" && test -d "$CPP"; then 7189 CPP= 7190fi 7191if test -z "$CPP"; then 7192 if ${ac_cv_prog_CPP+:} false; then : 7193 $as_echo_n "(cached) " >&6 7194else 7195 # Double quotes because CPP needs to be expanded 7196 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7197 do 7198 ac_preproc_ok=false 7199for ac_c_preproc_warn_flag in '' yes 7200do 7201 # Use a header file that comes with gcc, so configuring glibc 7202 # with a fresh cross-compiler works. 7203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7204 # <limits.h> exists even on freestanding compilers. 7205 # On the NeXT, cc -E runs the code through the compiler's parser, 7206 # not just through cpp. "Syntax error" is here to catch this case. 7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7208/* end confdefs.h. */ 7209#ifdef __STDC__ 7210# include <limits.h> 7211#else 7212# include <assert.h> 7213#endif 7214 Syntax error 7215_ACEOF 7216if ac_fn_c_try_cpp "$LINENO"; then : 7217 7218else 7219 # Broken: fails on valid input. 7220continue 7221fi 7222rm -f conftest.err conftest.i conftest.$ac_ext 7223 7224 # OK, works on sane cases. Now check whether nonexistent headers 7225 # can be detected and how. 7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7227/* end confdefs.h. */ 7228#include <ac_nonexistent.h> 7229_ACEOF 7230if ac_fn_c_try_cpp "$LINENO"; then : 7231 # Broken: success on invalid input. 7232continue 7233else 7234 # Passes both tests. 7235ac_preproc_ok=: 7236break 7237fi 7238rm -f conftest.err conftest.i conftest.$ac_ext 7239 7240done 7241# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7242rm -f conftest.i conftest.err conftest.$ac_ext 7243if $ac_preproc_ok; then : 7244 break 7245fi 7246 7247 done 7248 ac_cv_prog_CPP=$CPP 7249 7250fi 7251 CPP=$ac_cv_prog_CPP 7252else 7253 ac_cv_prog_CPP=$CPP 7254fi 7255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7256$as_echo "$CPP" >&6; } 7257ac_preproc_ok=false 7258for ac_c_preproc_warn_flag in '' yes 7259do 7260 # Use a header file that comes with gcc, so configuring glibc 7261 # with a fresh cross-compiler works. 7262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7263 # <limits.h> exists even on freestanding compilers. 7264 # On the NeXT, cc -E runs the code through the compiler's parser, 7265 # not just through cpp. "Syntax error" is here to catch this case. 7266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7267/* end confdefs.h. */ 7268#ifdef __STDC__ 7269# include <limits.h> 7270#else 7271# include <assert.h> 7272#endif 7273 Syntax error 7274_ACEOF 7275if ac_fn_c_try_cpp "$LINENO"; then : 7276 7277else 7278 # Broken: fails on valid input. 7279continue 7280fi 7281rm -f conftest.err conftest.i conftest.$ac_ext 7282 7283 # OK, works on sane cases. Now check whether nonexistent headers 7284 # can be detected and how. 7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7286/* end confdefs.h. */ 7287#include <ac_nonexistent.h> 7288_ACEOF 7289if ac_fn_c_try_cpp "$LINENO"; then : 7290 # Broken: success on invalid input. 7291continue 7292else 7293 # Passes both tests. 7294ac_preproc_ok=: 7295break 7296fi 7297rm -f conftest.err conftest.i conftest.$ac_ext 7298 7299done 7300# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7301rm -f conftest.i conftest.err conftest.$ac_ext 7302if $ac_preproc_ok; then : 7303 7304else 7305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7307as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7308See \`config.log' for more details" "$LINENO" 5; } 7309fi 7310 7311ac_ext=c 7312ac_cpp='$CPP $CPPFLAGS' 7313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7315ac_compiler_gnu=$ac_cv_c_compiler_gnu 7316 7317 7318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7319$as_echo_n "checking for ANSI C header files... " >&6; } 7320if ${ac_cv_header_stdc+:} false; then : 7321 $as_echo_n "(cached) " >&6 7322else 7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7324/* end confdefs.h. */ 7325#include <stdlib.h> 7326#include <stdarg.h> 7327#include <string.h> 7328#include <float.h> 7329 7330int 7331main () 7332{ 7333 7334 ; 7335 return 0; 7336} 7337_ACEOF 7338if ac_fn_c_try_compile "$LINENO"; then : 7339 ac_cv_header_stdc=yes 7340else 7341 ac_cv_header_stdc=no 7342fi 7343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7344 7345if test $ac_cv_header_stdc = yes; then 7346 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7348/* end confdefs.h. */ 7349#include <string.h> 7350 7351_ACEOF 7352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7353 $EGREP "memchr" >/dev/null 2>&1; then : 7354 7355else 7356 ac_cv_header_stdc=no 7357fi 7358rm -f conftest* 7359 7360fi 7361 7362if test $ac_cv_header_stdc = yes; then 7363 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7365/* end confdefs.h. */ 7366#include <stdlib.h> 7367 7368_ACEOF 7369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7370 $EGREP "free" >/dev/null 2>&1; then : 7371 7372else 7373 ac_cv_header_stdc=no 7374fi 7375rm -f conftest* 7376 7377fi 7378 7379if test $ac_cv_header_stdc = yes; then 7380 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7381 if test "$cross_compiling" = yes; then : 7382 : 7383else 7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7385/* end confdefs.h. */ 7386#include <ctype.h> 7387#include <stdlib.h> 7388#if ((' ' & 0x0FF) == 0x020) 7389# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7390# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7391#else 7392# define ISLOWER(c) \ 7393 (('a' <= (c) && (c) <= 'i') \ 7394 || ('j' <= (c) && (c) <= 'r') \ 7395 || ('s' <= (c) && (c) <= 'z')) 7396# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7397#endif 7398 7399#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7400int 7401main () 7402{ 7403 int i; 7404 for (i = 0; i < 256; i++) 7405 if (XOR (islower (i), ISLOWER (i)) 7406 || toupper (i) != TOUPPER (i)) 7407 return 2; 7408 return 0; 7409} 7410_ACEOF 7411if ac_fn_c_try_run "$LINENO"; then : 7412 7413else 7414 ac_cv_header_stdc=no 7415fi 7416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7417 conftest.$ac_objext conftest.beam conftest.$ac_ext 7418fi 7419 7420fi 7421fi 7422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7423$as_echo "$ac_cv_header_stdc" >&6; } 7424if test $ac_cv_header_stdc = yes; then 7425 7426$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7427 7428fi 7429 7430# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7431for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7432 inttypes.h stdint.h unistd.h 7433do : 7434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7435ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7436" 7437if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7438 cat >>confdefs.h <<_ACEOF 7439#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7440_ACEOF 7441 7442fi 7443 7444done 7445 7446 7447for ac_header in dlfcn.h 7448do : 7449 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7450" 7451if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7452 cat >>confdefs.h <<_ACEOF 7453#define HAVE_DLFCN_H 1 7454_ACEOF 7455 7456fi 7457 7458done 7459 7460 7461 7462 7463 7464# Set options 7465 7466 7467 7468 enable_dlopen=no 7469 7470 7471 enable_win32_dll=no 7472 7473 7474 # Check whether --enable-shared was given. 7475if test "${enable_shared+set}" = set; then : 7476 enableval=$enable_shared; p=${PACKAGE-default} 7477 case $enableval in 7478 yes) enable_shared=yes ;; 7479 no) enable_shared=no ;; 7480 *) 7481 enable_shared=no 7482 # Look at the argument we got. We use all the common list separators. 7483 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7484 for pkg in $enableval; do 7485 IFS="$lt_save_ifs" 7486 if test "X$pkg" = "X$p"; then 7487 enable_shared=yes 7488 fi 7489 done 7490 IFS="$lt_save_ifs" 7491 ;; 7492 esac 7493else 7494 enable_shared=yes 7495fi 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 # Check whether --enable-static was given. 7506if test "${enable_static+set}" = set; then : 7507 enableval=$enable_static; p=${PACKAGE-default} 7508 case $enableval in 7509 yes) enable_static=yes ;; 7510 no) enable_static=no ;; 7511 *) 7512 enable_static=no 7513 # Look at the argument we got. We use all the common list separators. 7514 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7515 for pkg in $enableval; do 7516 IFS="$lt_save_ifs" 7517 if test "X$pkg" = "X$p"; then 7518 enable_static=yes 7519 fi 7520 done 7521 IFS="$lt_save_ifs" 7522 ;; 7523 esac 7524else 7525 enable_static=yes 7526fi 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537# Check whether --with-pic was given. 7538if test "${with_pic+set}" = set; then : 7539 withval=$with_pic; lt_p=${PACKAGE-default} 7540 case $withval in 7541 yes|no) pic_mode=$withval ;; 7542 *) 7543 pic_mode=default 7544 # Look at the argument we got. We use all the common list separators. 7545 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7546 for lt_pkg in $withval; do 7547 IFS="$lt_save_ifs" 7548 if test "X$lt_pkg" = "X$lt_p"; then 7549 pic_mode=yes 7550 fi 7551 done 7552 IFS="$lt_save_ifs" 7553 ;; 7554 esac 7555else 7556 pic_mode=default 7557fi 7558 7559 7560test -z "$pic_mode" && pic_mode=default 7561 7562 7563 7564 7565 7566 7567 7568 # Check whether --enable-fast-install was given. 7569if test "${enable_fast_install+set}" = set; then : 7570 enableval=$enable_fast_install; p=${PACKAGE-default} 7571 case $enableval in 7572 yes) enable_fast_install=yes ;; 7573 no) enable_fast_install=no ;; 7574 *) 7575 enable_fast_install=no 7576 # Look at the argument we got. We use all the common list separators. 7577 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7578 for pkg in $enableval; do 7579 IFS="$lt_save_ifs" 7580 if test "X$pkg" = "X$p"; then 7581 enable_fast_install=yes 7582 fi 7583 done 7584 IFS="$lt_save_ifs" 7585 ;; 7586 esac 7587else 7588 enable_fast_install=yes 7589fi 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601# This can be used to rebuild libtool when needed 7602LIBTOOL_DEPS="$ltmain" 7603 7604# Always use our own libtool. 7605LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636test -z "$LN_S" && LN_S="ln -s" 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651if test -n "${ZSH_VERSION+set}" ; then 7652 setopt NO_GLOB_SUBST 7653fi 7654 7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7656$as_echo_n "checking for objdir... " >&6; } 7657if ${lt_cv_objdir+:} false; then : 7658 $as_echo_n "(cached) " >&6 7659else 7660 rm -f .libs 2>/dev/null 7661mkdir .libs 2>/dev/null 7662if test -d .libs; then 7663 lt_cv_objdir=.libs 7664else 7665 # MS-DOS does not allow filenames that begin with a dot. 7666 lt_cv_objdir=_libs 7667fi 7668rmdir .libs 2>/dev/null 7669fi 7670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7671$as_echo "$lt_cv_objdir" >&6; } 7672objdir=$lt_cv_objdir 7673 7674 7675 7676 7677 7678cat >>confdefs.h <<_ACEOF 7679#define LT_OBJDIR "$lt_cv_objdir/" 7680_ACEOF 7681 7682 7683 7684 7685case $host_os in 7686aix3*) 7687 # AIX sometimes has problems with the GCC collect2 program. For some 7688 # reason, if we set the COLLECT_NAMES environment variable, the problems 7689 # vanish in a puff of smoke. 7690 if test "X${COLLECT_NAMES+set}" != Xset; then 7691 COLLECT_NAMES= 7692 export COLLECT_NAMES 7693 fi 7694 ;; 7695esac 7696 7697# Global variables: 7698ofile=libtool 7699can_build_shared=yes 7700 7701# All known linkers require a `.a' archive for static linking (except MSVC, 7702# which needs '.lib'). 7703libext=a 7704 7705with_gnu_ld="$lt_cv_prog_gnu_ld" 7706 7707old_CC="$CC" 7708old_CFLAGS="$CFLAGS" 7709 7710# Set sane defaults for various variables 7711test -z "$CC" && CC=cc 7712test -z "$LTCC" && LTCC=$CC 7713test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7714test -z "$LD" && LD=ld 7715test -z "$ac_objext" && ac_objext=o 7716 7717for cc_temp in $compiler""; do 7718 case $cc_temp in 7719 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7720 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7721 \-*) ;; 7722 *) break;; 7723 esac 7724done 7725cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7726 7727 7728# Only perform the check for file, if the check method requires it 7729test -z "$MAGIC_CMD" && MAGIC_CMD=file 7730case $deplibs_check_method in 7731file_magic*) 7732 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7734$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7735if ${lt_cv_path_MAGIC_CMD+:} false; then : 7736 $as_echo_n "(cached) " >&6 7737else 7738 case $MAGIC_CMD in 7739[\\/*] | ?:[\\/]*) 7740 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7741 ;; 7742*) 7743 lt_save_MAGIC_CMD="$MAGIC_CMD" 7744 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7745 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7746 for ac_dir in $ac_dummy; do 7747 IFS="$lt_save_ifs" 7748 test -z "$ac_dir" && ac_dir=. 7749 if test -f $ac_dir/${ac_tool_prefix}file; then 7750 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7751 if test -n "$file_magic_test_file"; then 7752 case $deplibs_check_method in 7753 "file_magic "*) 7754 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7755 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7756 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7757 $EGREP "$file_magic_regex" > /dev/null; then 7758 : 7759 else 7760 cat <<_LT_EOF 1>&2 7761 7762*** Warning: the command libtool uses to detect shared libraries, 7763*** $file_magic_cmd, produces output that libtool cannot recognize. 7764*** The result is that libtool may fail to recognize shared libraries 7765*** as such. This will affect the creation of libtool libraries that 7766*** depend on shared libraries, but programs linked with such libtool 7767*** libraries will work regardless of this problem. Nevertheless, you 7768*** may want to report the problem to your system manager and/or to 7769*** bug-libtool@gnu.org 7770 7771_LT_EOF 7772 fi ;; 7773 esac 7774 fi 7775 break 7776 fi 7777 done 7778 IFS="$lt_save_ifs" 7779 MAGIC_CMD="$lt_save_MAGIC_CMD" 7780 ;; 7781esac 7782fi 7783 7784MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7785if test -n "$MAGIC_CMD"; then 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7787$as_echo "$MAGIC_CMD" >&6; } 7788else 7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7790$as_echo "no" >&6; } 7791fi 7792 7793 7794 7795 7796 7797if test -z "$lt_cv_path_MAGIC_CMD"; then 7798 if test -n "$ac_tool_prefix"; then 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7800$as_echo_n "checking for file... " >&6; } 7801if ${lt_cv_path_MAGIC_CMD+:} false; then : 7802 $as_echo_n "(cached) " >&6 7803else 7804 case $MAGIC_CMD in 7805[\\/*] | ?:[\\/]*) 7806 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7807 ;; 7808*) 7809 lt_save_MAGIC_CMD="$MAGIC_CMD" 7810 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7811 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7812 for ac_dir in $ac_dummy; do 7813 IFS="$lt_save_ifs" 7814 test -z "$ac_dir" && ac_dir=. 7815 if test -f $ac_dir/file; then 7816 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7817 if test -n "$file_magic_test_file"; then 7818 case $deplibs_check_method in 7819 "file_magic "*) 7820 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7822 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7823 $EGREP "$file_magic_regex" > /dev/null; then 7824 : 7825 else 7826 cat <<_LT_EOF 1>&2 7827 7828*** Warning: the command libtool uses to detect shared libraries, 7829*** $file_magic_cmd, produces output that libtool cannot recognize. 7830*** The result is that libtool may fail to recognize shared libraries 7831*** as such. This will affect the creation of libtool libraries that 7832*** depend on shared libraries, but programs linked with such libtool 7833*** libraries will work regardless of this problem. Nevertheless, you 7834*** may want to report the problem to your system manager and/or to 7835*** bug-libtool@gnu.org 7836 7837_LT_EOF 7838 fi ;; 7839 esac 7840 fi 7841 break 7842 fi 7843 done 7844 IFS="$lt_save_ifs" 7845 MAGIC_CMD="$lt_save_MAGIC_CMD" 7846 ;; 7847esac 7848fi 7849 7850MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7851if test -n "$MAGIC_CMD"; then 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7853$as_echo "$MAGIC_CMD" >&6; } 7854else 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7856$as_echo "no" >&6; } 7857fi 7858 7859 7860 else 7861 MAGIC_CMD=: 7862 fi 7863fi 7864 7865 fi 7866 ;; 7867esac 7868 7869# Use C for the default configuration in the libtool script 7870 7871lt_save_CC="$CC" 7872ac_ext=c 7873ac_cpp='$CPP $CPPFLAGS' 7874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7876ac_compiler_gnu=$ac_cv_c_compiler_gnu 7877 7878 7879# Source file extension for C test sources. 7880ac_ext=c 7881 7882# Object file extension for compiled C test sources. 7883objext=o 7884objext=$objext 7885 7886# Code to be used in simple compile tests 7887lt_simple_compile_test_code="int some_variable = 0;" 7888 7889# Code to be used in simple link tests 7890lt_simple_link_test_code='int main(){return(0);}' 7891 7892 7893 7894 7895 7896 7897 7898# If no C compiler was specified, use CC. 7899LTCC=${LTCC-"$CC"} 7900 7901# If no C compiler flags were specified, use CFLAGS. 7902LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7903 7904# Allow CC to be a program name with arguments. 7905compiler=$CC 7906 7907# Save the default compiler, since it gets overwritten when the other 7908# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7909compiler_DEFAULT=$CC 7910 7911# save warnings/boilerplate of simple test code 7912ac_outfile=conftest.$ac_objext 7913echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7914eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7915_lt_compiler_boilerplate=`cat conftest.err` 7916$RM conftest* 7917 7918ac_outfile=conftest.$ac_objext 7919echo "$lt_simple_link_test_code" >conftest.$ac_ext 7920eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7921_lt_linker_boilerplate=`cat conftest.err` 7922$RM -r conftest* 7923 7924 7925## CAVEAT EMPTOR: 7926## There is no encapsulation within the following macros, do not change 7927## the running order or otherwise move them around unless you know exactly 7928## what you are doing... 7929if test -n "$compiler"; then 7930 7931lt_prog_compiler_no_builtin_flag= 7932 7933if test "$GCC" = yes; then 7934 case $cc_basename in 7935 nvcc*) 7936 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7937 *) 7938 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7939 esac 7940 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7942$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7943if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7944 $as_echo_n "(cached) " >&6 7945else 7946 lt_cv_prog_compiler_rtti_exceptions=no 7947 ac_outfile=conftest.$ac_objext 7948 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7949 lt_compiler_flag="-fno-rtti -fno-exceptions" 7950 # Insert the option either (1) after the last *FLAGS variable, or 7951 # (2) before a word containing "conftest.", or (3) at the end. 7952 # Note that $ac_compile itself does not contain backslashes and begins 7953 # with a dollar sign (not a hyphen), so the echo should work correctly. 7954 # The option is referenced via a variable to avoid confusing sed. 7955 lt_compile=`echo "$ac_compile" | $SED \ 7956 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7958 -e 's:$: $lt_compiler_flag:'` 7959 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7960 (eval "$lt_compile" 2>conftest.err) 7961 ac_status=$? 7962 cat conftest.err >&5 7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7964 if (exit $ac_status) && test -s "$ac_outfile"; then 7965 # The compiler can only warn and ignore the option if not recognized 7966 # So say no if there are warnings other than the usual output. 7967 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7968 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7969 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7970 lt_cv_prog_compiler_rtti_exceptions=yes 7971 fi 7972 fi 7973 $RM conftest* 7974 7975fi 7976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7977$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7978 7979if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7980 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7981else 7982 : 7983fi 7984 7985fi 7986 7987 7988 7989 7990 7991 7992 lt_prog_compiler_wl= 7993lt_prog_compiler_pic= 7994lt_prog_compiler_static= 7995 7996 7997 if test "$GCC" = yes; then 7998 lt_prog_compiler_wl='-Wl,' 7999 lt_prog_compiler_static='-static' 8000 8001 case $host_os in 8002 aix*) 8003 # All AIX code is PIC. 8004 if test "$host_cpu" = ia64; then 8005 # AIX 5 now supports IA64 processor 8006 lt_prog_compiler_static='-Bstatic' 8007 fi 8008 ;; 8009 8010 amigaos*) 8011 case $host_cpu in 8012 powerpc) 8013 # see comment about AmigaOS4 .so support 8014 lt_prog_compiler_pic='-fPIC' 8015 ;; 8016 m68k) 8017 # FIXME: we need at least 68020 code to build shared libraries, but 8018 # adding the `-m68020' flag to GCC prevents building anything better, 8019 # like `-m68040'. 8020 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8021 ;; 8022 esac 8023 ;; 8024 8025 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8026 # PIC is the default for these OSes. 8027 ;; 8028 8029 mingw* | cygwin* | pw32* | os2* | cegcc*) 8030 # This hack is so that the source file can tell whether it is being 8031 # built for inclusion in a dll (and should export symbols for example). 8032 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8033 # (--disable-auto-import) libraries 8034 lt_prog_compiler_pic='-DDLL_EXPORT' 8035 ;; 8036 8037 darwin* | rhapsody*) 8038 # PIC is the default on this platform 8039 # Common symbols not allowed in MH_DYLIB files 8040 lt_prog_compiler_pic='-fno-common' 8041 ;; 8042 8043 haiku*) 8044 # PIC is the default for Haiku. 8045 # The "-static" flag exists, but is broken. 8046 lt_prog_compiler_static= 8047 ;; 8048 8049 hpux*) 8050 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8051 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8052 # sets the default TLS model and affects inlining. 8053 case $host_cpu in 8054 hppa*64*) 8055 # +Z the default 8056 ;; 8057 *) 8058 lt_prog_compiler_pic='-fPIC' 8059 ;; 8060 esac 8061 ;; 8062 8063 interix[3-9]*) 8064 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8065 # Instead, we relocate shared libraries at runtime. 8066 ;; 8067 8068 msdosdjgpp*) 8069 # Just because we use GCC doesn't mean we suddenly get shared libraries 8070 # on systems that don't support them. 8071 lt_prog_compiler_can_build_shared=no 8072 enable_shared=no 8073 ;; 8074 8075 *nto* | *qnx*) 8076 # QNX uses GNU C++, but need to define -shared option too, otherwise 8077 # it will coredump. 8078 lt_prog_compiler_pic='-fPIC -shared' 8079 ;; 8080 8081 sysv4*MP*) 8082 if test -d /usr/nec; then 8083 lt_prog_compiler_pic=-Kconform_pic 8084 fi 8085 ;; 8086 8087 *) 8088 lt_prog_compiler_pic='-fPIC' 8089 ;; 8090 esac 8091 8092 case $cc_basename in 8093 nvcc*) # Cuda Compiler Driver 2.2 8094 lt_prog_compiler_wl='-Xlinker ' 8095 if test -n "$lt_prog_compiler_pic"; then 8096 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8097 fi 8098 ;; 8099 esac 8100 else 8101 # PORTME Check for flag to pass linker flags through the system compiler. 8102 case $host_os in 8103 aix*) 8104 lt_prog_compiler_wl='-Wl,' 8105 if test "$host_cpu" = ia64; then 8106 # AIX 5 now supports IA64 processor 8107 lt_prog_compiler_static='-Bstatic' 8108 else 8109 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8110 fi 8111 ;; 8112 8113 mingw* | cygwin* | pw32* | os2* | cegcc*) 8114 # This hack is so that the source file can tell whether it is being 8115 # built for inclusion in a dll (and should export symbols for example). 8116 lt_prog_compiler_pic='-DDLL_EXPORT' 8117 ;; 8118 8119 hpux9* | hpux10* | hpux11*) 8120 lt_prog_compiler_wl='-Wl,' 8121 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8122 # not for PA HP-UX. 8123 case $host_cpu in 8124 hppa*64*|ia64*) 8125 # +Z the default 8126 ;; 8127 *) 8128 lt_prog_compiler_pic='+Z' 8129 ;; 8130 esac 8131 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8132 lt_prog_compiler_static='${wl}-a ${wl}archive' 8133 ;; 8134 8135 irix5* | irix6* | nonstopux*) 8136 lt_prog_compiler_wl='-Wl,' 8137 # PIC (with -KPIC) is the default. 8138 lt_prog_compiler_static='-non_shared' 8139 ;; 8140 8141 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8142 case $cc_basename in 8143 # old Intel for x86_64 which still supported -KPIC. 8144 ecc*) 8145 lt_prog_compiler_wl='-Wl,' 8146 lt_prog_compiler_pic='-KPIC' 8147 lt_prog_compiler_static='-static' 8148 ;; 8149 # icc used to be incompatible with GCC. 8150 # ICC 10 doesn't accept -KPIC any more. 8151 icc* | ifort*) 8152 lt_prog_compiler_wl='-Wl,' 8153 lt_prog_compiler_pic='-fPIC' 8154 lt_prog_compiler_static='-static' 8155 ;; 8156 # Lahey Fortran 8.1. 8157 lf95*) 8158 lt_prog_compiler_wl='-Wl,' 8159 lt_prog_compiler_pic='--shared' 8160 lt_prog_compiler_static='--static' 8161 ;; 8162 nagfor*) 8163 # NAG Fortran compiler 8164 lt_prog_compiler_wl='-Wl,-Wl,,' 8165 lt_prog_compiler_pic='-PIC' 8166 lt_prog_compiler_static='-Bstatic' 8167 ;; 8168 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8169 # Portland Group compilers (*not* the Pentium gcc compiler, 8170 # which looks to be a dead project) 8171 lt_prog_compiler_wl='-Wl,' 8172 lt_prog_compiler_pic='-fpic' 8173 lt_prog_compiler_static='-Bstatic' 8174 ;; 8175 ccc*) 8176 lt_prog_compiler_wl='-Wl,' 8177 # All Alpha code is PIC. 8178 lt_prog_compiler_static='-non_shared' 8179 ;; 8180 xl* | bgxl* | bgf* | mpixl*) 8181 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8182 lt_prog_compiler_wl='-Wl,' 8183 lt_prog_compiler_pic='-qpic' 8184 lt_prog_compiler_static='-qstaticlink' 8185 ;; 8186 *) 8187 case `$CC -V 2>&1 | sed 5q` in 8188 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8189 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8190 lt_prog_compiler_pic='-KPIC' 8191 lt_prog_compiler_static='-Bstatic' 8192 lt_prog_compiler_wl='' 8193 ;; 8194 *Sun\ F* | *Sun*Fortran*) 8195 lt_prog_compiler_pic='-KPIC' 8196 lt_prog_compiler_static='-Bstatic' 8197 lt_prog_compiler_wl='-Qoption ld ' 8198 ;; 8199 *Sun\ C*) 8200 # Sun C 5.9 8201 lt_prog_compiler_pic='-KPIC' 8202 lt_prog_compiler_static='-Bstatic' 8203 lt_prog_compiler_wl='-Wl,' 8204 ;; 8205 *Intel*\ [CF]*Compiler*) 8206 lt_prog_compiler_wl='-Wl,' 8207 lt_prog_compiler_pic='-fPIC' 8208 lt_prog_compiler_static='-static' 8209 ;; 8210 *Portland\ Group*) 8211 lt_prog_compiler_wl='-Wl,' 8212 lt_prog_compiler_pic='-fpic' 8213 lt_prog_compiler_static='-Bstatic' 8214 ;; 8215 esac 8216 ;; 8217 esac 8218 ;; 8219 8220 newsos6) 8221 lt_prog_compiler_pic='-KPIC' 8222 lt_prog_compiler_static='-Bstatic' 8223 ;; 8224 8225 *nto* | *qnx*) 8226 # QNX uses GNU C++, but need to define -shared option too, otherwise 8227 # it will coredump. 8228 lt_prog_compiler_pic='-fPIC -shared' 8229 ;; 8230 8231 osf3* | osf4* | osf5*) 8232 lt_prog_compiler_wl='-Wl,' 8233 # All OSF/1 code is PIC. 8234 lt_prog_compiler_static='-non_shared' 8235 ;; 8236 8237 rdos*) 8238 lt_prog_compiler_static='-non_shared' 8239 ;; 8240 8241 solaris*) 8242 lt_prog_compiler_pic='-KPIC' 8243 lt_prog_compiler_static='-Bstatic' 8244 case $cc_basename in 8245 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8246 lt_prog_compiler_wl='-Qoption ld ';; 8247 *) 8248 lt_prog_compiler_wl='-Wl,';; 8249 esac 8250 ;; 8251 8252 sunos4*) 8253 lt_prog_compiler_wl='-Qoption ld ' 8254 lt_prog_compiler_pic='-PIC' 8255 lt_prog_compiler_static='-Bstatic' 8256 ;; 8257 8258 sysv4 | sysv4.2uw2* | sysv4.3*) 8259 lt_prog_compiler_wl='-Wl,' 8260 lt_prog_compiler_pic='-KPIC' 8261 lt_prog_compiler_static='-Bstatic' 8262 ;; 8263 8264 sysv4*MP*) 8265 if test -d /usr/nec ;then 8266 lt_prog_compiler_pic='-Kconform_pic' 8267 lt_prog_compiler_static='-Bstatic' 8268 fi 8269 ;; 8270 8271 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8272 lt_prog_compiler_wl='-Wl,' 8273 lt_prog_compiler_pic='-KPIC' 8274 lt_prog_compiler_static='-Bstatic' 8275 ;; 8276 8277 unicos*) 8278 lt_prog_compiler_wl='-Wl,' 8279 lt_prog_compiler_can_build_shared=no 8280 ;; 8281 8282 uts4*) 8283 lt_prog_compiler_pic='-pic' 8284 lt_prog_compiler_static='-Bstatic' 8285 ;; 8286 8287 *) 8288 lt_prog_compiler_can_build_shared=no 8289 ;; 8290 esac 8291 fi 8292 8293case $host_os in 8294 # For platforms which do not support PIC, -DPIC is meaningless: 8295 *djgpp*) 8296 lt_prog_compiler_pic= 8297 ;; 8298 *) 8299 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8300 ;; 8301esac 8302 8303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8304$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8305if ${lt_cv_prog_compiler_pic+:} false; then : 8306 $as_echo_n "(cached) " >&6 8307else 8308 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8309fi 8310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8311$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8312lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8313 8314# 8315# Check to make sure the PIC flag actually works. 8316# 8317if test -n "$lt_prog_compiler_pic"; then 8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8319$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8320if ${lt_cv_prog_compiler_pic_works+:} false; then : 8321 $as_echo_n "(cached) " >&6 8322else 8323 lt_cv_prog_compiler_pic_works=no 8324 ac_outfile=conftest.$ac_objext 8325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8326 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8327 # Insert the option either (1) after the last *FLAGS variable, or 8328 # (2) before a word containing "conftest.", or (3) at the end. 8329 # Note that $ac_compile itself does not contain backslashes and begins 8330 # with a dollar sign (not a hyphen), so the echo should work correctly. 8331 # The option is referenced via a variable to avoid confusing sed. 8332 lt_compile=`echo "$ac_compile" | $SED \ 8333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8335 -e 's:$: $lt_compiler_flag:'` 8336 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8337 (eval "$lt_compile" 2>conftest.err) 8338 ac_status=$? 8339 cat conftest.err >&5 8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8341 if (exit $ac_status) && test -s "$ac_outfile"; then 8342 # The compiler can only warn and ignore the option if not recognized 8343 # So say no if there are warnings other than the usual output. 8344 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8346 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8347 lt_cv_prog_compiler_pic_works=yes 8348 fi 8349 fi 8350 $RM conftest* 8351 8352fi 8353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8354$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8355 8356if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8357 case $lt_prog_compiler_pic in 8358 "" | " "*) ;; 8359 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8360 esac 8361else 8362 lt_prog_compiler_pic= 8363 lt_prog_compiler_can_build_shared=no 8364fi 8365 8366fi 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378# 8379# Check to make sure the static flag actually works. 8380# 8381wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8383$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8384if ${lt_cv_prog_compiler_static_works+:} false; then : 8385 $as_echo_n "(cached) " >&6 8386else 8387 lt_cv_prog_compiler_static_works=no 8388 save_LDFLAGS="$LDFLAGS" 8389 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8390 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8391 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8392 # The linker can only warn and ignore the option if not recognized 8393 # So say no if there are warnings 8394 if test -s conftest.err; then 8395 # Append any errors to the config.log. 8396 cat conftest.err 1>&5 8397 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8399 if diff conftest.exp conftest.er2 >/dev/null; then 8400 lt_cv_prog_compiler_static_works=yes 8401 fi 8402 else 8403 lt_cv_prog_compiler_static_works=yes 8404 fi 8405 fi 8406 $RM -r conftest* 8407 LDFLAGS="$save_LDFLAGS" 8408 8409fi 8410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8411$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8412 8413if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8414 : 8415else 8416 lt_prog_compiler_static= 8417fi 8418 8419 8420 8421 8422 8423 8424 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8426$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8427if ${lt_cv_prog_compiler_c_o+:} false; then : 8428 $as_echo_n "(cached) " >&6 8429else 8430 lt_cv_prog_compiler_c_o=no 8431 $RM -r conftest 2>/dev/null 8432 mkdir conftest 8433 cd conftest 8434 mkdir out 8435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8436 8437 lt_compiler_flag="-o out/conftest2.$ac_objext" 8438 # Insert the option either (1) after the last *FLAGS variable, or 8439 # (2) before a word containing "conftest.", or (3) at the end. 8440 # Note that $ac_compile itself does not contain backslashes and begins 8441 # with a dollar sign (not a hyphen), so the echo should work correctly. 8442 lt_compile=`echo "$ac_compile" | $SED \ 8443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8445 -e 's:$: $lt_compiler_flag:'` 8446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8447 (eval "$lt_compile" 2>out/conftest.err) 8448 ac_status=$? 8449 cat out/conftest.err >&5 8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8451 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8452 then 8453 # The compiler can only warn and ignore the option if not recognized 8454 # So say no if there are warnings 8455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8458 lt_cv_prog_compiler_c_o=yes 8459 fi 8460 fi 8461 chmod u+w . 2>&5 8462 $RM conftest* 8463 # SGI C++ compiler will create directory out/ii_files/ for 8464 # template instantiation 8465 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8466 $RM out/* && rmdir out 8467 cd .. 8468 $RM -r conftest 8469 $RM conftest* 8470 8471fi 8472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8473$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8474 8475 8476 8477 8478 8479 8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8481$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8482if ${lt_cv_prog_compiler_c_o+:} false; then : 8483 $as_echo_n "(cached) " >&6 8484else 8485 lt_cv_prog_compiler_c_o=no 8486 $RM -r conftest 2>/dev/null 8487 mkdir conftest 8488 cd conftest 8489 mkdir out 8490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8491 8492 lt_compiler_flag="-o out/conftest2.$ac_objext" 8493 # Insert the option either (1) after the last *FLAGS variable, or 8494 # (2) before a word containing "conftest.", or (3) at the end. 8495 # Note that $ac_compile itself does not contain backslashes and begins 8496 # with a dollar sign (not a hyphen), so the echo should work correctly. 8497 lt_compile=`echo "$ac_compile" | $SED \ 8498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8500 -e 's:$: $lt_compiler_flag:'` 8501 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8502 (eval "$lt_compile" 2>out/conftest.err) 8503 ac_status=$? 8504 cat out/conftest.err >&5 8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8506 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8507 then 8508 # The compiler can only warn and ignore the option if not recognized 8509 # So say no if there are warnings 8510 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8511 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8512 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8513 lt_cv_prog_compiler_c_o=yes 8514 fi 8515 fi 8516 chmod u+w . 2>&5 8517 $RM conftest* 8518 # SGI C++ compiler will create directory out/ii_files/ for 8519 # template instantiation 8520 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8521 $RM out/* && rmdir out 8522 cd .. 8523 $RM -r conftest 8524 $RM conftest* 8525 8526fi 8527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8528$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8529 8530 8531 8532 8533hard_links="nottested" 8534if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8535 # do not overwrite the value of need_locks provided by the user 8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8537$as_echo_n "checking if we can lock with hard links... " >&6; } 8538 hard_links=yes 8539 $RM conftest* 8540 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8541 touch conftest.a 8542 ln conftest.a conftest.b 2>&5 || hard_links=no 8543 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8545$as_echo "$hard_links" >&6; } 8546 if test "$hard_links" = no; then 8547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8548$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8549 need_locks=warn 8550 fi 8551else 8552 need_locks=no 8553fi 8554 8555 8556 8557 8558 8559 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8561$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8562 8563 runpath_var= 8564 allow_undefined_flag= 8565 always_export_symbols=no 8566 archive_cmds= 8567 archive_expsym_cmds= 8568 compiler_needs_object=no 8569 enable_shared_with_static_runtimes=no 8570 export_dynamic_flag_spec= 8571 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8572 hardcode_automatic=no 8573 hardcode_direct=no 8574 hardcode_direct_absolute=no 8575 hardcode_libdir_flag_spec= 8576 hardcode_libdir_separator= 8577 hardcode_minus_L=no 8578 hardcode_shlibpath_var=unsupported 8579 inherit_rpath=no 8580 link_all_deplibs=unknown 8581 module_cmds= 8582 module_expsym_cmds= 8583 old_archive_from_new_cmds= 8584 old_archive_from_expsyms_cmds= 8585 thread_safe_flag_spec= 8586 whole_archive_flag_spec= 8587 # include_expsyms should be a list of space-separated symbols to be *always* 8588 # included in the symbol list 8589 include_expsyms= 8590 # exclude_expsyms can be an extended regexp of symbols to exclude 8591 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8592 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8593 # as well as any symbol that contains `d'. 8594 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8595 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8596 # platforms (ab)use it in PIC code, but their linkers get confused if 8597 # the symbol is explicitly referenced. Since portable code cannot 8598 # rely on this symbol name, it's probably fine to never include it in 8599 # preloaded symbol tables. 8600 # Exclude shared library initialization/finalization symbols. 8601 extract_expsyms_cmds= 8602 8603 case $host_os in 8604 cygwin* | mingw* | pw32* | cegcc*) 8605 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8606 # When not using gcc, we currently assume that we are using 8607 # Microsoft Visual C++. 8608 if test "$GCC" != yes; then 8609 with_gnu_ld=no 8610 fi 8611 ;; 8612 interix*) 8613 # we just hope/assume this is gcc and not c89 (= MSVC++) 8614 with_gnu_ld=yes 8615 ;; 8616 openbsd*) 8617 with_gnu_ld=no 8618 ;; 8619 linux* | k*bsd*-gnu | gnu*) 8620 link_all_deplibs=no 8621 ;; 8622 esac 8623 8624 ld_shlibs=yes 8625 8626 # On some targets, GNU ld is compatible enough with the native linker 8627 # that we're better off using the native interface for both. 8628 lt_use_gnu_ld_interface=no 8629 if test "$with_gnu_ld" = yes; then 8630 case $host_os in 8631 aix*) 8632 # The AIX port of GNU ld has always aspired to compatibility 8633 # with the native linker. However, as the warning in the GNU ld 8634 # block says, versions before 2.19.5* couldn't really create working 8635 # shared libraries, regardless of the interface used. 8636 case `$LD -v 2>&1` in 8637 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8638 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8639 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8640 *) 8641 lt_use_gnu_ld_interface=yes 8642 ;; 8643 esac 8644 ;; 8645 *) 8646 lt_use_gnu_ld_interface=yes 8647 ;; 8648 esac 8649 fi 8650 8651 if test "$lt_use_gnu_ld_interface" = yes; then 8652 # If archive_cmds runs LD, not CC, wlarc should be empty 8653 wlarc='${wl}' 8654 8655 # Set some defaults for GNU ld with shared library support. These 8656 # are reset later if shared libraries are not supported. Putting them 8657 # here allows them to be overridden if necessary. 8658 runpath_var=LD_RUN_PATH 8659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8660 export_dynamic_flag_spec='${wl}--export-dynamic' 8661 # ancient GNU ld didn't support --whole-archive et. al. 8662 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8663 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8664 else 8665 whole_archive_flag_spec= 8666 fi 8667 supports_anon_versioning=no 8668 case `$LD -v 2>&1` in 8669 *GNU\ gold*) supports_anon_versioning=yes ;; 8670 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8671 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8672 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8673 *\ 2.11.*) ;; # other 2.11 versions 8674 *) supports_anon_versioning=yes ;; 8675 esac 8676 8677 # See if GNU ld supports shared libraries. 8678 case $host_os in 8679 aix[3-9]*) 8680 # On AIX/PPC, the GNU linker is very broken 8681 if test "$host_cpu" != ia64; then 8682 ld_shlibs=no 8683 cat <<_LT_EOF 1>&2 8684 8685*** Warning: the GNU linker, at least up to release 2.19, is reported 8686*** to be unable to reliably create shared libraries on AIX. 8687*** Therefore, libtool is disabling shared libraries support. If you 8688*** really care for shared libraries, you may want to install binutils 8689*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8690*** You will then need to restart the configuration process. 8691 8692_LT_EOF 8693 fi 8694 ;; 8695 8696 amigaos*) 8697 case $host_cpu in 8698 powerpc) 8699 # see comment about AmigaOS4 .so support 8700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8701 archive_expsym_cmds='' 8702 ;; 8703 m68k) 8704 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)' 8705 hardcode_libdir_flag_spec='-L$libdir' 8706 hardcode_minus_L=yes 8707 ;; 8708 esac 8709 ;; 8710 8711 beos*) 8712 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8713 allow_undefined_flag=unsupported 8714 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8715 # support --undefined. This deserves some investigation. FIXME 8716 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8717 else 8718 ld_shlibs=no 8719 fi 8720 ;; 8721 8722 cygwin* | mingw* | pw32* | cegcc*) 8723 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8724 # as there is no search path for DLLs. 8725 hardcode_libdir_flag_spec='-L$libdir' 8726 export_dynamic_flag_spec='${wl}--export-all-symbols' 8727 allow_undefined_flag=unsupported 8728 always_export_symbols=no 8729 enable_shared_with_static_runtimes=yes 8730 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' 8731 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8732 8733 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8735 # If the export-symbols file already is a .def file (1st line 8736 # is EXPORTS), use it as is; otherwise, prepend... 8737 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8738 cp $export_symbols $output_objdir/$soname.def; 8739 else 8740 echo EXPORTS > $output_objdir/$soname.def; 8741 cat $export_symbols >> $output_objdir/$soname.def; 8742 fi~ 8743 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8744 else 8745 ld_shlibs=no 8746 fi 8747 ;; 8748 8749 haiku*) 8750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8751 link_all_deplibs=yes 8752 ;; 8753 8754 interix[3-9]*) 8755 hardcode_direct=no 8756 hardcode_shlibpath_var=no 8757 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8758 export_dynamic_flag_spec='${wl}-E' 8759 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8760 # Instead, shared libraries are loaded at an image base (0x10000000 by 8761 # default) and relocated if they conflict, which is a slow very memory 8762 # consuming and fragmenting process. To avoid this, we pick a random, 8763 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8764 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8765 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8766 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' 8767 ;; 8768 8769 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8770 tmp_diet=no 8771 if test "$host_os" = linux-dietlibc; then 8772 case $cc_basename in 8773 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8774 esac 8775 fi 8776 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8777 && test "$tmp_diet" = no 8778 then 8779 tmp_addflag=' $pic_flag' 8780 tmp_sharedflag='-shared' 8781 case $cc_basename,$host_cpu in 8782 pgcc*) # Portland Group C compiler 8783 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' 8784 tmp_addflag=' $pic_flag' 8785 ;; 8786 pgf77* | pgf90* | pgf95* | pgfortran*) 8787 # Portland Group f77 and f90 compilers 8788 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' 8789 tmp_addflag=' $pic_flag -Mnomain' ;; 8790 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8791 tmp_addflag=' -i_dynamic' ;; 8792 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8793 tmp_addflag=' -i_dynamic -nofor_main' ;; 8794 ifc* | ifort*) # Intel Fortran compiler 8795 tmp_addflag=' -nofor_main' ;; 8796 lf95*) # Lahey Fortran 8.1 8797 whole_archive_flag_spec= 8798 tmp_sharedflag='--shared' ;; 8799 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8800 tmp_sharedflag='-qmkshrobj' 8801 tmp_addflag= ;; 8802 nvcc*) # Cuda Compiler Driver 2.2 8803 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' 8804 compiler_needs_object=yes 8805 ;; 8806 esac 8807 case `$CC -V 2>&1 | sed 5q` in 8808 *Sun\ C*) # Sun C 5.9 8809 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' 8810 compiler_needs_object=yes 8811 tmp_sharedflag='-G' ;; 8812 *Sun\ F*) # Sun Fortran 8.3 8813 tmp_sharedflag='-G' ;; 8814 esac 8815 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8816 8817 if test "x$supports_anon_versioning" = xyes; then 8818 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8819 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8820 echo "local: *; };" >> $output_objdir/$libname.ver~ 8821 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8822 fi 8823 8824 case $cc_basename in 8825 xlf* | bgf* | bgxlf* | mpixlf*) 8826 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8827 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8829 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8830 if test "x$supports_anon_versioning" = xyes; then 8831 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8832 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8833 echo "local: *; };" >> $output_objdir/$libname.ver~ 8834 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8835 fi 8836 ;; 8837 esac 8838 else 8839 ld_shlibs=no 8840 fi 8841 ;; 8842 8843 netbsd* | netbsdelf*-gnu) 8844 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8845 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8846 wlarc= 8847 else 8848 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8849 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8850 fi 8851 ;; 8852 8853 solaris*) 8854 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8855 ld_shlibs=no 8856 cat <<_LT_EOF 1>&2 8857 8858*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8859*** create shared libraries on Solaris systems. Therefore, libtool 8860*** is disabling shared libraries support. We urge you to upgrade GNU 8861*** binutils to release 2.9.1 or newer. Another option is to modify 8862*** your PATH or compiler configuration so that the native linker is 8863*** used, and then restart. 8864 8865_LT_EOF 8866 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8867 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8868 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8869 else 8870 ld_shlibs=no 8871 fi 8872 ;; 8873 8874 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8875 case `$LD -v 2>&1` in 8876 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8877 ld_shlibs=no 8878 cat <<_LT_EOF 1>&2 8879 8880*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8881*** reliably create shared libraries on SCO systems. Therefore, libtool 8882*** is disabling shared libraries support. We urge you to upgrade GNU 8883*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8884*** your PATH or compiler configuration so that the native linker is 8885*** used, and then restart. 8886 8887_LT_EOF 8888 ;; 8889 *) 8890 # For security reasons, it is highly recommended that you always 8891 # use absolute paths for naming shared libraries, and exclude the 8892 # DT_RUNPATH tag from executables and libraries. But doing so 8893 # requires that you compile everything twice, which is a pain. 8894 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8896 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8897 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8898 else 8899 ld_shlibs=no 8900 fi 8901 ;; 8902 esac 8903 ;; 8904 8905 sunos4*) 8906 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8907 wlarc= 8908 hardcode_direct=yes 8909 hardcode_shlibpath_var=no 8910 ;; 8911 8912 *) 8913 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8914 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8915 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8916 else 8917 ld_shlibs=no 8918 fi 8919 ;; 8920 esac 8921 8922 if test "$ld_shlibs" = no; then 8923 runpath_var= 8924 hardcode_libdir_flag_spec= 8925 export_dynamic_flag_spec= 8926 whole_archive_flag_spec= 8927 fi 8928 else 8929 # PORTME fill in a description of your system's linker (not GNU ld) 8930 case $host_os in 8931 aix3*) 8932 allow_undefined_flag=unsupported 8933 always_export_symbols=yes 8934 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' 8935 # Note: this linker hardcodes the directories in LIBPATH if there 8936 # are no directories specified by -L. 8937 hardcode_minus_L=yes 8938 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8939 # Neither direct hardcoding nor static linking is supported with a 8940 # broken collect2. 8941 hardcode_direct=unsupported 8942 fi 8943 ;; 8944 8945 aix[4-9]*) 8946 if test "$host_cpu" = ia64; then 8947 # On IA64, the linker does run time linking by default, so we don't 8948 # have to do anything special. 8949 aix_use_runtimelinking=no 8950 exp_sym_flag='-Bexport' 8951 no_entry_flag="" 8952 else 8953 # If we're using GNU nm, then we don't want the "-C" option. 8954 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8955 # Also, AIX nm treats weak defined symbols like other global 8956 # defined symbols, whereas GNU nm marks them as "W". 8957 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8958 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' 8959 else 8960 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' 8961 fi 8962 aix_use_runtimelinking=no 8963 8964 # Test if we are trying to use run time linking or normal 8965 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8966 # need to do runtime linking. 8967 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8968 for ld_flag in $LDFLAGS; do 8969 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8970 aix_use_runtimelinking=yes 8971 break 8972 fi 8973 done 8974 ;; 8975 esac 8976 8977 exp_sym_flag='-bexport' 8978 no_entry_flag='-bnoentry' 8979 fi 8980 8981 # When large executables or shared objects are built, AIX ld can 8982 # have problems creating the table of contents. If linking a library 8983 # or program results in "error TOC overflow" add -mminimal-toc to 8984 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8985 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8986 8987 archive_cmds='' 8988 hardcode_direct=yes 8989 hardcode_direct_absolute=yes 8990 hardcode_libdir_separator=':' 8991 link_all_deplibs=yes 8992 file_list_spec='${wl}-f,' 8993 8994 if test "$GCC" = yes; then 8995 case $host_os in aix4.[012]|aix4.[012].*) 8996 # We only want to do this on AIX 4.2 and lower, the check 8997 # below for broken collect2 doesn't work under 4.3+ 8998 collect2name=`${CC} -print-prog-name=collect2` 8999 if test -f "$collect2name" && 9000 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9001 then 9002 # We have reworked collect2 9003 : 9004 else 9005 # We have old collect2 9006 hardcode_direct=unsupported 9007 # It fails to find uninstalled libraries when the uninstalled 9008 # path is not listed in the libpath. Setting hardcode_minus_L 9009 # to unsupported forces relinking 9010 hardcode_minus_L=yes 9011 hardcode_libdir_flag_spec='-L$libdir' 9012 hardcode_libdir_separator= 9013 fi 9014 ;; 9015 esac 9016 shared_flag='-shared' 9017 if test "$aix_use_runtimelinking" = yes; then 9018 shared_flag="$shared_flag "'${wl}-G' 9019 fi 9020 link_all_deplibs=no 9021 else 9022 # not using gcc 9023 if test "$host_cpu" = ia64; then 9024 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9025 # chokes on -Wl,-G. The following line is correct: 9026 shared_flag='-G' 9027 else 9028 if test "$aix_use_runtimelinking" = yes; then 9029 shared_flag='${wl}-G' 9030 else 9031 shared_flag='${wl}-bM:SRE' 9032 fi 9033 fi 9034 fi 9035 9036 export_dynamic_flag_spec='${wl}-bexpall' 9037 # It seems that -bexpall does not export symbols beginning with 9038 # underscore (_), so it is better to generate a list of symbols to export. 9039 always_export_symbols=yes 9040 if test "$aix_use_runtimelinking" = yes; then 9041 # Warning - without using the other runtime loading flags (-brtl), 9042 # -berok will link without error, but may produce a broken library. 9043 allow_undefined_flag='-berok' 9044 # Determine the default libpath from the value encoded in an 9045 # empty executable. 9046 if test "${lt_cv_aix_libpath+set}" = set; then 9047 aix_libpath=$lt_cv_aix_libpath 9048else 9049 if ${lt_cv_aix_libpath_+:} false; then : 9050 $as_echo_n "(cached) " >&6 9051else 9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9053/* end confdefs.h. */ 9054 9055int 9056main () 9057{ 9058 9059 ; 9060 return 0; 9061} 9062_ACEOF 9063if ac_fn_c_try_link "$LINENO"; then : 9064 9065 lt_aix_libpath_sed=' 9066 /Import File Strings/,/^$/ { 9067 /^0/ { 9068 s/^0 *\([^ ]*\) *$/\1/ 9069 p 9070 } 9071 }' 9072 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9073 # Check for a 64-bit object if we didn't find anything. 9074 if test -z "$lt_cv_aix_libpath_"; then 9075 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9076 fi 9077fi 9078rm -f core conftest.err conftest.$ac_objext \ 9079 conftest$ac_exeext conftest.$ac_ext 9080 if test -z "$lt_cv_aix_libpath_"; then 9081 lt_cv_aix_libpath_="/usr/lib:/lib" 9082 fi 9083 9084fi 9085 9086 aix_libpath=$lt_cv_aix_libpath_ 9087fi 9088 9089 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9090 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" 9091 else 9092 if test "$host_cpu" = ia64; then 9093 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9094 allow_undefined_flag="-z nodefs" 9095 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" 9096 else 9097 # Determine the default libpath from the value encoded in an 9098 # empty executable. 9099 if test "${lt_cv_aix_libpath+set}" = set; then 9100 aix_libpath=$lt_cv_aix_libpath 9101else 9102 if ${lt_cv_aix_libpath_+:} false; then : 9103 $as_echo_n "(cached) " >&6 9104else 9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9106/* end confdefs.h. */ 9107 9108int 9109main () 9110{ 9111 9112 ; 9113 return 0; 9114} 9115_ACEOF 9116if ac_fn_c_try_link "$LINENO"; then : 9117 9118 lt_aix_libpath_sed=' 9119 /Import File Strings/,/^$/ { 9120 /^0/ { 9121 s/^0 *\([^ ]*\) *$/\1/ 9122 p 9123 } 9124 }' 9125 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9126 # Check for a 64-bit object if we didn't find anything. 9127 if test -z "$lt_cv_aix_libpath_"; then 9128 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9129 fi 9130fi 9131rm -f core conftest.err conftest.$ac_objext \ 9132 conftest$ac_exeext conftest.$ac_ext 9133 if test -z "$lt_cv_aix_libpath_"; then 9134 lt_cv_aix_libpath_="/usr/lib:/lib" 9135 fi 9136 9137fi 9138 9139 aix_libpath=$lt_cv_aix_libpath_ 9140fi 9141 9142 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9143 # Warning - without using the other run time loading flags, 9144 # -berok will link without error, but may produce a broken library. 9145 no_undefined_flag=' ${wl}-bernotok' 9146 allow_undefined_flag=' ${wl}-berok' 9147 if test "$with_gnu_ld" = yes; then 9148 # We only use this code for GNU lds that support --whole-archive. 9149 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9150 else 9151 # Exported symbols can be pulled into shared objects from archives 9152 whole_archive_flag_spec='$convenience' 9153 fi 9154 archive_cmds_need_lc=yes 9155 # This is similar to how AIX traditionally builds its shared libraries. 9156 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' 9157 fi 9158 fi 9159 ;; 9160 9161 amigaos*) 9162 case $host_cpu in 9163 powerpc) 9164 # see comment about AmigaOS4 .so support 9165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9166 archive_expsym_cmds='' 9167 ;; 9168 m68k) 9169 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)' 9170 hardcode_libdir_flag_spec='-L$libdir' 9171 hardcode_minus_L=yes 9172 ;; 9173 esac 9174 ;; 9175 9176 bsdi[45]*) 9177 export_dynamic_flag_spec=-rdynamic 9178 ;; 9179 9180 cygwin* | mingw* | pw32* | cegcc*) 9181 # When not using gcc, we currently assume that we are using 9182 # Microsoft Visual C++. 9183 # hardcode_libdir_flag_spec is actually meaningless, as there is 9184 # no search path for DLLs. 9185 case $cc_basename in 9186 cl*) 9187 # Native MSVC 9188 hardcode_libdir_flag_spec=' ' 9189 allow_undefined_flag=unsupported 9190 always_export_symbols=yes 9191 file_list_spec='@' 9192 # Tell ltmain to make .lib files, not .a files. 9193 libext=lib 9194 # Tell ltmain to make .dll files, not .so files. 9195 shrext_cmds=".dll" 9196 # FIXME: Setting linknames here is a bad hack. 9197 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9198 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9199 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9200 else 9201 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9202 fi~ 9203 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9204 linknames=' 9205 # The linker will not automatically build a static lib if we build a DLL. 9206 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9207 enable_shared_with_static_runtimes=yes 9208 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9209 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9210 # Don't use ranlib 9211 old_postinstall_cmds='chmod 644 $oldlib' 9212 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9213 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9214 case $lt_outputfile in 9215 *.exe|*.EXE) ;; 9216 *) 9217 lt_outputfile="$lt_outputfile.exe" 9218 lt_tool_outputfile="$lt_tool_outputfile.exe" 9219 ;; 9220 esac~ 9221 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9222 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9223 $RM "$lt_outputfile.manifest"; 9224 fi' 9225 ;; 9226 *) 9227 # Assume MSVC wrapper 9228 hardcode_libdir_flag_spec=' ' 9229 allow_undefined_flag=unsupported 9230 # Tell ltmain to make .lib files, not .a files. 9231 libext=lib 9232 # Tell ltmain to make .dll files, not .so files. 9233 shrext_cmds=".dll" 9234 # FIXME: Setting linknames here is a bad hack. 9235 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9236 # The linker will automatically build a .lib file if we build a DLL. 9237 old_archive_from_new_cmds='true' 9238 # FIXME: Should let the user specify the lib program. 9239 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9240 enable_shared_with_static_runtimes=yes 9241 ;; 9242 esac 9243 ;; 9244 9245 darwin* | rhapsody*) 9246 9247 9248 archive_cmds_need_lc=no 9249 hardcode_direct=no 9250 hardcode_automatic=yes 9251 hardcode_shlibpath_var=unsupported 9252 if test "$lt_cv_ld_force_load" = "yes"; then 9253 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\"`' 9254 9255 else 9256 whole_archive_flag_spec='' 9257 fi 9258 link_all_deplibs=yes 9259 allow_undefined_flag="$_lt_dar_allow_undefined" 9260 case $cc_basename in 9261 ifort*) _lt_dar_can_shared=yes ;; 9262 *) _lt_dar_can_shared=$GCC ;; 9263 esac 9264 if test "$_lt_dar_can_shared" = "yes"; then 9265 output_verbose_link_cmd=func_echo_all 9266 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9267 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9268 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}" 9269 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}" 9270 9271 else 9272 ld_shlibs=no 9273 fi 9274 9275 ;; 9276 9277 dgux*) 9278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9279 hardcode_libdir_flag_spec='-L$libdir' 9280 hardcode_shlibpath_var=no 9281 ;; 9282 9283 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9284 # support. Future versions do this automatically, but an explicit c++rt0.o 9285 # does not break anything, and helps significantly (at the cost of a little 9286 # extra space). 9287 freebsd2.2*) 9288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9289 hardcode_libdir_flag_spec='-R$libdir' 9290 hardcode_direct=yes 9291 hardcode_shlibpath_var=no 9292 ;; 9293 9294 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9295 freebsd2.*) 9296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9297 hardcode_direct=yes 9298 hardcode_minus_L=yes 9299 hardcode_shlibpath_var=no 9300 ;; 9301 9302 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9303 freebsd* | dragonfly*) 9304 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9305 hardcode_libdir_flag_spec='-R$libdir' 9306 hardcode_direct=yes 9307 hardcode_shlibpath_var=no 9308 ;; 9309 9310 hpux9*) 9311 if test "$GCC" = yes; then 9312 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' 9313 else 9314 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' 9315 fi 9316 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9317 hardcode_libdir_separator=: 9318 hardcode_direct=yes 9319 9320 # hardcode_minus_L: Not really in the search PATH, 9321 # but as the default location of the library. 9322 hardcode_minus_L=yes 9323 export_dynamic_flag_spec='${wl}-E' 9324 ;; 9325 9326 hpux10*) 9327 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9328 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9329 else 9330 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9331 fi 9332 if test "$with_gnu_ld" = no; then 9333 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9334 hardcode_libdir_separator=: 9335 hardcode_direct=yes 9336 hardcode_direct_absolute=yes 9337 export_dynamic_flag_spec='${wl}-E' 9338 # hardcode_minus_L: Not really in the search PATH, 9339 # but as the default location of the library. 9340 hardcode_minus_L=yes 9341 fi 9342 ;; 9343 9344 hpux11*) 9345 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9346 case $host_cpu in 9347 hppa*64*) 9348 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9349 ;; 9350 ia64*) 9351 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9352 ;; 9353 *) 9354 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9355 ;; 9356 esac 9357 else 9358 case $host_cpu in 9359 hppa*64*) 9360 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9361 ;; 9362 ia64*) 9363 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9364 ;; 9365 *) 9366 9367 # Older versions of the 11.00 compiler do not understand -b yet 9368 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9370$as_echo_n "checking if $CC understands -b... " >&6; } 9371if ${lt_cv_prog_compiler__b+:} false; then : 9372 $as_echo_n "(cached) " >&6 9373else 9374 lt_cv_prog_compiler__b=no 9375 save_LDFLAGS="$LDFLAGS" 9376 LDFLAGS="$LDFLAGS -b" 9377 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9378 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9379 # The linker can only warn and ignore the option if not recognized 9380 # So say no if there are warnings 9381 if test -s conftest.err; then 9382 # Append any errors to the config.log. 9383 cat conftest.err 1>&5 9384 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9386 if diff conftest.exp conftest.er2 >/dev/null; then 9387 lt_cv_prog_compiler__b=yes 9388 fi 9389 else 9390 lt_cv_prog_compiler__b=yes 9391 fi 9392 fi 9393 $RM -r conftest* 9394 LDFLAGS="$save_LDFLAGS" 9395 9396fi 9397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9398$as_echo "$lt_cv_prog_compiler__b" >&6; } 9399 9400if test x"$lt_cv_prog_compiler__b" = xyes; then 9401 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9402else 9403 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9404fi 9405 9406 ;; 9407 esac 9408 fi 9409 if test "$with_gnu_ld" = no; then 9410 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9411 hardcode_libdir_separator=: 9412 9413 case $host_cpu in 9414 hppa*64*|ia64*) 9415 hardcode_direct=no 9416 hardcode_shlibpath_var=no 9417 ;; 9418 *) 9419 hardcode_direct=yes 9420 hardcode_direct_absolute=yes 9421 export_dynamic_flag_spec='${wl}-E' 9422 9423 # hardcode_minus_L: Not really in the search PATH, 9424 # but as the default location of the library. 9425 hardcode_minus_L=yes 9426 ;; 9427 esac 9428 fi 9429 ;; 9430 9431 irix5* | irix6* | nonstopux*) 9432 if test "$GCC" = yes; then 9433 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' 9434 # Try to use the -exported_symbol ld option, if it does not 9435 # work, assume that -exports_file does not work either and 9436 # implicitly export all symbols. 9437 # This should be the same for all languages, so no per-tag cache variable. 9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9439$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9440if ${lt_cv_irix_exported_symbol+:} false; then : 9441 $as_echo_n "(cached) " >&6 9442else 9443 save_LDFLAGS="$LDFLAGS" 9444 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9446/* end confdefs.h. */ 9447int foo (void) { return 0; } 9448_ACEOF 9449if ac_fn_c_try_link "$LINENO"; then : 9450 lt_cv_irix_exported_symbol=yes 9451else 9452 lt_cv_irix_exported_symbol=no 9453fi 9454rm -f core conftest.err conftest.$ac_objext \ 9455 conftest$ac_exeext conftest.$ac_ext 9456 LDFLAGS="$save_LDFLAGS" 9457fi 9458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9459$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9460 if test "$lt_cv_irix_exported_symbol" = yes; then 9461 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' 9462 fi 9463 else 9464 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' 9465 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' 9466 fi 9467 archive_cmds_need_lc='no' 9468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9469 hardcode_libdir_separator=: 9470 inherit_rpath=yes 9471 link_all_deplibs=yes 9472 ;; 9473 9474 netbsd* | netbsdelf*-gnu) 9475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9477 else 9478 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9479 fi 9480 hardcode_libdir_flag_spec='-R$libdir' 9481 hardcode_direct=yes 9482 hardcode_shlibpath_var=no 9483 ;; 9484 9485 newsos6) 9486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9487 hardcode_direct=yes 9488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9489 hardcode_libdir_separator=: 9490 hardcode_shlibpath_var=no 9491 ;; 9492 9493 *nto* | *qnx*) 9494 ;; 9495 9496 openbsd*) 9497 if test -f /usr/libexec/ld.so; then 9498 hardcode_direct=yes 9499 hardcode_shlibpath_var=no 9500 hardcode_direct_absolute=yes 9501 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9502 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9503 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9504 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9505 export_dynamic_flag_spec='${wl}-E' 9506 else 9507 case $host_os in 9508 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9510 hardcode_libdir_flag_spec='-R$libdir' 9511 ;; 9512 *) 9513 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9514 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9515 ;; 9516 esac 9517 fi 9518 else 9519 ld_shlibs=no 9520 fi 9521 ;; 9522 9523 os2*) 9524 hardcode_libdir_flag_spec='-L$libdir' 9525 hardcode_minus_L=yes 9526 allow_undefined_flag=unsupported 9527 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' 9528 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9529 ;; 9530 9531 osf3*) 9532 if test "$GCC" = yes; then 9533 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9534 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' 9535 else 9536 allow_undefined_flag=' -expect_unresolved \*' 9537 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' 9538 fi 9539 archive_cmds_need_lc='no' 9540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9541 hardcode_libdir_separator=: 9542 ;; 9543 9544 osf4* | osf5*) # as osf3* with the addition of -msym flag 9545 if test "$GCC" = yes; then 9546 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9547 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' 9548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9549 else 9550 allow_undefined_flag=' -expect_unresolved \*' 9551 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' 9552 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~ 9553 $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' 9554 9555 # Both c and cxx compiler support -rpath directly 9556 hardcode_libdir_flag_spec='-rpath $libdir' 9557 fi 9558 archive_cmds_need_lc='no' 9559 hardcode_libdir_separator=: 9560 ;; 9561 9562 solaris*) 9563 no_undefined_flag=' -z defs' 9564 if test "$GCC" = yes; then 9565 wlarc='${wl}' 9566 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9567 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9568 $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' 9569 else 9570 case `$CC -V 2>&1` in 9571 *"Compilers 5.0"*) 9572 wlarc='' 9573 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9574 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9575 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9576 ;; 9577 *) 9578 wlarc='${wl}' 9579 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9580 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9581 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9582 ;; 9583 esac 9584 fi 9585 hardcode_libdir_flag_spec='-R$libdir' 9586 hardcode_shlibpath_var=no 9587 case $host_os in 9588 solaris2.[0-5] | solaris2.[0-5].*) ;; 9589 *) 9590 # The compiler driver will combine and reorder linker options, 9591 # but understands `-z linker_flag'. GCC discards it without `$wl', 9592 # but is careful enough not to reorder. 9593 # Supported since Solaris 2.6 (maybe 2.5.1?) 9594 if test "$GCC" = yes; then 9595 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9596 else 9597 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9598 fi 9599 ;; 9600 esac 9601 link_all_deplibs=yes 9602 ;; 9603 9604 sunos4*) 9605 if test "x$host_vendor" = xsequent; then 9606 # Use $CC to link under sequent, because it throws in some extra .o 9607 # files that make .init and .fini sections work. 9608 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9609 else 9610 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9611 fi 9612 hardcode_libdir_flag_spec='-L$libdir' 9613 hardcode_direct=yes 9614 hardcode_minus_L=yes 9615 hardcode_shlibpath_var=no 9616 ;; 9617 9618 sysv4) 9619 case $host_vendor in 9620 sni) 9621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9622 hardcode_direct=yes # is this really true??? 9623 ;; 9624 siemens) 9625 ## LD is ld it makes a PLAMLIB 9626 ## CC just makes a GrossModule. 9627 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9628 reload_cmds='$CC -r -o $output$reload_objs' 9629 hardcode_direct=no 9630 ;; 9631 motorola) 9632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9633 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9634 ;; 9635 esac 9636 runpath_var='LD_RUN_PATH' 9637 hardcode_shlibpath_var=no 9638 ;; 9639 9640 sysv4.3*) 9641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9642 hardcode_shlibpath_var=no 9643 export_dynamic_flag_spec='-Bexport' 9644 ;; 9645 9646 sysv4*MP*) 9647 if test -d /usr/nec; then 9648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9649 hardcode_shlibpath_var=no 9650 runpath_var=LD_RUN_PATH 9651 hardcode_runpath_var=yes 9652 ld_shlibs=yes 9653 fi 9654 ;; 9655 9656 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9657 no_undefined_flag='${wl}-z,text' 9658 archive_cmds_need_lc=no 9659 hardcode_shlibpath_var=no 9660 runpath_var='LD_RUN_PATH' 9661 9662 if test "$GCC" = yes; then 9663 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9664 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9665 else 9666 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9667 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9668 fi 9669 ;; 9670 9671 sysv5* | sco3.2v5* | sco5v6*) 9672 # Note: We can NOT use -z defs as we might desire, because we do not 9673 # link with -lc, and that would cause any symbols used from libc to 9674 # always be unresolved, which means just about no library would 9675 # ever link correctly. If we're not using GNU ld we use -z text 9676 # though, which does catch some bad symbols but isn't as heavy-handed 9677 # as -z defs. 9678 no_undefined_flag='${wl}-z,text' 9679 allow_undefined_flag='${wl}-z,nodefs' 9680 archive_cmds_need_lc=no 9681 hardcode_shlibpath_var=no 9682 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9683 hardcode_libdir_separator=':' 9684 link_all_deplibs=yes 9685 export_dynamic_flag_spec='${wl}-Bexport' 9686 runpath_var='LD_RUN_PATH' 9687 9688 if test "$GCC" = yes; then 9689 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9690 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9691 else 9692 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9693 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9694 fi 9695 ;; 9696 9697 uts4*) 9698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9699 hardcode_libdir_flag_spec='-L$libdir' 9700 hardcode_shlibpath_var=no 9701 ;; 9702 9703 *) 9704 ld_shlibs=no 9705 ;; 9706 esac 9707 9708 if test x$host_vendor = xsni; then 9709 case $host in 9710 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9711 export_dynamic_flag_spec='${wl}-Blargedynsym' 9712 ;; 9713 esac 9714 fi 9715 fi 9716 9717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9718$as_echo "$ld_shlibs" >&6; } 9719test "$ld_shlibs" = no && can_build_shared=no 9720 9721with_gnu_ld=$with_gnu_ld 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737# 9738# Do we need to explicitly link libc? 9739# 9740case "x$archive_cmds_need_lc" in 9741x|xyes) 9742 # Assume -lc should be added 9743 archive_cmds_need_lc=yes 9744 9745 if test "$enable_shared" = yes && test "$GCC" = yes; then 9746 case $archive_cmds in 9747 *'~'*) 9748 # FIXME: we may have to deal with multi-command sequences. 9749 ;; 9750 '$CC '*) 9751 # Test whether the compiler implicitly links with -lc since on some 9752 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9753 # to ld, don't add -lc before -lgcc. 9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9755$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9756if ${lt_cv_archive_cmds_need_lc+:} false; then : 9757 $as_echo_n "(cached) " >&6 9758else 9759 $RM conftest* 9760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9761 9762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9763 (eval $ac_compile) 2>&5 9764 ac_status=$? 9765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9766 test $ac_status = 0; } 2>conftest.err; then 9767 soname=conftest 9768 lib=conftest 9769 libobjs=conftest.$ac_objext 9770 deplibs= 9771 wl=$lt_prog_compiler_wl 9772 pic_flag=$lt_prog_compiler_pic 9773 compiler_flags=-v 9774 linker_flags=-v 9775 verstring= 9776 output_objdir=. 9777 libname=conftest 9778 lt_save_allow_undefined_flag=$allow_undefined_flag 9779 allow_undefined_flag= 9780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9781 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9782 ac_status=$? 9783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9784 test $ac_status = 0; } 9785 then 9786 lt_cv_archive_cmds_need_lc=no 9787 else 9788 lt_cv_archive_cmds_need_lc=yes 9789 fi 9790 allow_undefined_flag=$lt_save_allow_undefined_flag 9791 else 9792 cat conftest.err 1>&5 9793 fi 9794 $RM conftest* 9795 9796fi 9797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9798$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9799 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9800 ;; 9801 esac 9802 fi 9803 ;; 9804esac 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9958$as_echo_n "checking dynamic linker characteristics... " >&6; } 9959 9960if test "$GCC" = yes; then 9961 case $host_os in 9962 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9963 *) lt_awk_arg="/^libraries:/" ;; 9964 esac 9965 case $host_os in 9966 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9967 *) lt_sed_strip_eq="s,=/,/,g" ;; 9968 esac 9969 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9970 case $lt_search_path_spec in 9971 *\;*) 9972 # if the path contains ";" then we assume it to be the separator 9973 # otherwise default to the standard path separator (i.e. ":") - it is 9974 # assumed that no part of a normal pathname contains ";" but that should 9975 # okay in the real world where ";" in dirpaths is itself problematic. 9976 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9977 ;; 9978 *) 9979 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9980 ;; 9981 esac 9982 # Ok, now we have the path, separated by spaces, we can step through it 9983 # and add multilib dir if necessary. 9984 lt_tmp_lt_search_path_spec= 9985 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9986 for lt_sys_path in $lt_search_path_spec; do 9987 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9988 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9989 else 9990 test -d "$lt_sys_path" && \ 9991 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9992 fi 9993 done 9994 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9995BEGIN {RS=" "; FS="/|\n";} { 9996 lt_foo=""; 9997 lt_count=0; 9998 for (lt_i = NF; lt_i > 0; lt_i--) { 9999 if ($lt_i != "" && $lt_i != ".") { 10000 if ($lt_i == "..") { 10001 lt_count++; 10002 } else { 10003 if (lt_count == 0) { 10004 lt_foo="/" $lt_i lt_foo; 10005 } else { 10006 lt_count--; 10007 } 10008 } 10009 } 10010 } 10011 if (lt_foo != "") { lt_freq[lt_foo]++; } 10012 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10013}'` 10014 # AWK program above erroneously prepends '/' to C:/dos/paths 10015 # for these hosts. 10016 case $host_os in 10017 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10018 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10019 esac 10020 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10021else 10022 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10023fi 10024library_names_spec= 10025libname_spec='lib$name' 10026soname_spec= 10027shrext_cmds=".so" 10028postinstall_cmds= 10029postuninstall_cmds= 10030finish_cmds= 10031finish_eval= 10032shlibpath_var= 10033shlibpath_overrides_runpath=unknown 10034version_type=none 10035dynamic_linker="$host_os ld.so" 10036sys_lib_dlsearch_path_spec="/lib /usr/lib" 10037need_lib_prefix=unknown 10038hardcode_into_libs=no 10039 10040# when you set need_version to no, make sure it does not cause -set_version 10041# flags to be left without arguments 10042need_version=unknown 10043 10044case $host_os in 10045aix3*) 10046 version_type=linux # correct to gnu/linux during the next big refactor 10047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10048 shlibpath_var=LIBPATH 10049 10050 # AIX 3 has no versioning support, so we append a major version to the name. 10051 soname_spec='${libname}${release}${shared_ext}$major' 10052 ;; 10053 10054aix[4-9]*) 10055 version_type=linux # correct to gnu/linux during the next big refactor 10056 need_lib_prefix=no 10057 need_version=no 10058 hardcode_into_libs=yes 10059 if test "$host_cpu" = ia64; then 10060 # AIX 5 supports IA64 10061 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10062 shlibpath_var=LD_LIBRARY_PATH 10063 else 10064 # With GCC up to 2.95.x, collect2 would create an import file 10065 # for dependence libraries. The import file would start with 10066 # the line `#! .'. This would cause the generated library to 10067 # depend on `.', always an invalid library. This was fixed in 10068 # development snapshots of GCC prior to 3.0. 10069 case $host_os in 10070 aix4 | aix4.[01] | aix4.[01].*) 10071 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10072 echo ' yes ' 10073 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10074 : 10075 else 10076 can_build_shared=no 10077 fi 10078 ;; 10079 esac 10080 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10081 # soname into executable. Probably we can add versioning support to 10082 # collect2, so additional links can be useful in future. 10083 if test "$aix_use_runtimelinking" = yes; then 10084 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10085 # instead of lib<name>.a to let people know that these are not 10086 # typical AIX shared libraries. 10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10088 else 10089 # We preserve .a as extension for shared libraries through AIX4.2 10090 # and later when we are not doing run time linking. 10091 library_names_spec='${libname}${release}.a $libname.a' 10092 soname_spec='${libname}${release}${shared_ext}$major' 10093 fi 10094 shlibpath_var=LIBPATH 10095 fi 10096 ;; 10097 10098amigaos*) 10099 case $host_cpu in 10100 powerpc) 10101 # Since July 2007 AmigaOS4 officially supports .so libraries. 10102 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10104 ;; 10105 m68k) 10106 library_names_spec='$libname.ixlibrary $libname.a' 10107 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10108 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' 10109 ;; 10110 esac 10111 ;; 10112 10113beos*) 10114 library_names_spec='${libname}${shared_ext}' 10115 dynamic_linker="$host_os ld.so" 10116 shlibpath_var=LIBRARY_PATH 10117 ;; 10118 10119bsdi[45]*) 10120 version_type=linux # correct to gnu/linux during the next big refactor 10121 need_version=no 10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10123 soname_spec='${libname}${release}${shared_ext}$major' 10124 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10125 shlibpath_var=LD_LIBRARY_PATH 10126 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10127 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10128 # the default ld.so.conf also contains /usr/contrib/lib and 10129 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10130 # libtool to hard-code these into programs 10131 ;; 10132 10133cygwin* | mingw* | pw32* | cegcc*) 10134 version_type=windows 10135 shrext_cmds=".dll" 10136 need_version=no 10137 need_lib_prefix=no 10138 10139 case $GCC,$cc_basename in 10140 yes,*) 10141 # gcc 10142 library_names_spec='$libname.dll.a' 10143 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10144 postinstall_cmds='base_file=`basename \${file}`~ 10145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10146 dldir=$destdir/`dirname \$dlpath`~ 10147 test -d \$dldir || mkdir -p \$dldir~ 10148 $install_prog $dir/$dlname \$dldir/$dlname~ 10149 chmod a+x \$dldir/$dlname~ 10150 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10151 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10152 fi' 10153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10154 dlpath=$dir/\$dldll~ 10155 $RM \$dlpath' 10156 shlibpath_overrides_runpath=yes 10157 10158 case $host_os in 10159 cygwin*) 10160 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10161 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10162 10163 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10164 ;; 10165 mingw* | cegcc*) 10166 # MinGW DLLs use traditional 'lib' prefix 10167 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10168 ;; 10169 pw32*) 10170 # pw32 DLLs use 'pw' prefix rather than 'lib' 10171 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10172 ;; 10173 esac 10174 dynamic_linker='Win32 ld.exe' 10175 ;; 10176 10177 *,cl*) 10178 # Native MSVC 10179 libname_spec='$name' 10180 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10181 library_names_spec='${libname}.dll.lib' 10182 10183 case $build_os in 10184 mingw*) 10185 sys_lib_search_path_spec= 10186 lt_save_ifs=$IFS 10187 IFS=';' 10188 for lt_path in $LIB 10189 do 10190 IFS=$lt_save_ifs 10191 # Let DOS variable expansion print the short 8.3 style file name. 10192 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10193 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10194 done 10195 IFS=$lt_save_ifs 10196 # Convert to MSYS style. 10197 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10198 ;; 10199 cygwin*) 10200 # Convert to unix form, then to dos form, then back to unix form 10201 # but this time dos style (no spaces!) so that the unix form looks 10202 # like /cygdrive/c/PROGRA~1:/cygdr... 10203 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10204 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10205 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10206 ;; 10207 *) 10208 sys_lib_search_path_spec="$LIB" 10209 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10210 # It is most probably a Windows format PATH. 10211 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10212 else 10213 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10214 fi 10215 # FIXME: find the short name or the path components, as spaces are 10216 # common. (e.g. "Program Files" -> "PROGRA~1") 10217 ;; 10218 esac 10219 10220 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10221 postinstall_cmds='base_file=`basename \${file}`~ 10222 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10223 dldir=$destdir/`dirname \$dlpath`~ 10224 test -d \$dldir || mkdir -p \$dldir~ 10225 $install_prog $dir/$dlname \$dldir/$dlname' 10226 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10227 dlpath=$dir/\$dldll~ 10228 $RM \$dlpath' 10229 shlibpath_overrides_runpath=yes 10230 dynamic_linker='Win32 link.exe' 10231 ;; 10232 10233 *) 10234 # Assume MSVC wrapper 10235 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10236 dynamic_linker='Win32 ld.exe' 10237 ;; 10238 esac 10239 # FIXME: first we should search . and the directory the executable is in 10240 shlibpath_var=PATH 10241 ;; 10242 10243darwin* | rhapsody*) 10244 dynamic_linker="$host_os dyld" 10245 version_type=darwin 10246 need_lib_prefix=no 10247 need_version=no 10248 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10249 soname_spec='${libname}${release}${major}$shared_ext' 10250 shlibpath_overrides_runpath=yes 10251 shlibpath_var=DYLD_LIBRARY_PATH 10252 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10253 10254 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10255 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10256 ;; 10257 10258dgux*) 10259 version_type=linux # correct to gnu/linux during the next big refactor 10260 need_lib_prefix=no 10261 need_version=no 10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10263 soname_spec='${libname}${release}${shared_ext}$major' 10264 shlibpath_var=LD_LIBRARY_PATH 10265 ;; 10266 10267freebsd* | dragonfly*) 10268 # DragonFly does not have aout. When/if they implement a new 10269 # versioning mechanism, adjust this. 10270 if test -x /usr/bin/objformat; then 10271 objformat=`/usr/bin/objformat` 10272 else 10273 case $host_os in 10274 freebsd[23].*) objformat=aout ;; 10275 *) objformat=elf ;; 10276 esac 10277 fi 10278 version_type=freebsd-$objformat 10279 case $version_type in 10280 freebsd-elf*) 10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10282 need_version=no 10283 need_lib_prefix=no 10284 ;; 10285 freebsd-*) 10286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10287 need_version=yes 10288 ;; 10289 esac 10290 shlibpath_var=LD_LIBRARY_PATH 10291 case $host_os in 10292 freebsd2.*) 10293 shlibpath_overrides_runpath=yes 10294 ;; 10295 freebsd3.[01]* | freebsdelf3.[01]*) 10296 shlibpath_overrides_runpath=yes 10297 hardcode_into_libs=yes 10298 ;; 10299 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10300 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10301 shlibpath_overrides_runpath=no 10302 hardcode_into_libs=yes 10303 ;; 10304 *) # from 4.6 on, and DragonFly 10305 shlibpath_overrides_runpath=yes 10306 hardcode_into_libs=yes 10307 ;; 10308 esac 10309 ;; 10310 10311gnu*) 10312 version_type=linux # correct to gnu/linux during the next big refactor 10313 need_lib_prefix=no 10314 need_version=no 10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10316 soname_spec='${libname}${release}${shared_ext}$major' 10317 shlibpath_var=LD_LIBRARY_PATH 10318 shlibpath_overrides_runpath=no 10319 hardcode_into_libs=yes 10320 ;; 10321 10322haiku*) 10323 version_type=linux # correct to gnu/linux during the next big refactor 10324 need_lib_prefix=no 10325 need_version=no 10326 dynamic_linker="$host_os runtime_loader" 10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10328 soname_spec='${libname}${release}${shared_ext}$major' 10329 shlibpath_var=LIBRARY_PATH 10330 shlibpath_overrides_runpath=yes 10331 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10332 hardcode_into_libs=yes 10333 ;; 10334 10335hpux9* | hpux10* | hpux11*) 10336 # Give a soname corresponding to the major version so that dld.sl refuses to 10337 # link against other versions. 10338 version_type=sunos 10339 need_lib_prefix=no 10340 need_version=no 10341 case $host_cpu in 10342 ia64*) 10343 shrext_cmds='.so' 10344 hardcode_into_libs=yes 10345 dynamic_linker="$host_os dld.so" 10346 shlibpath_var=LD_LIBRARY_PATH 10347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10349 soname_spec='${libname}${release}${shared_ext}$major' 10350 if test "X$HPUX_IA64_MODE" = X32; then 10351 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10352 else 10353 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10354 fi 10355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10356 ;; 10357 hppa*64*) 10358 shrext_cmds='.sl' 10359 hardcode_into_libs=yes 10360 dynamic_linker="$host_os dld.sl" 10361 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10364 soname_spec='${libname}${release}${shared_ext}$major' 10365 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10367 ;; 10368 *) 10369 shrext_cmds='.sl' 10370 dynamic_linker="$host_os dld.sl" 10371 shlibpath_var=SHLIB_PATH 10372 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10374 soname_spec='${libname}${release}${shared_ext}$major' 10375 ;; 10376 esac 10377 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10378 postinstall_cmds='chmod 555 $lib' 10379 # or fails outright, so override atomically: 10380 install_override_mode=555 10381 ;; 10382 10383interix[3-9]*) 10384 version_type=linux # correct to gnu/linux during the next big refactor 10385 need_lib_prefix=no 10386 need_version=no 10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10388 soname_spec='${libname}${release}${shared_ext}$major' 10389 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10390 shlibpath_var=LD_LIBRARY_PATH 10391 shlibpath_overrides_runpath=no 10392 hardcode_into_libs=yes 10393 ;; 10394 10395irix5* | irix6* | nonstopux*) 10396 case $host_os in 10397 nonstopux*) version_type=nonstopux ;; 10398 *) 10399 if test "$lt_cv_prog_gnu_ld" = yes; then 10400 version_type=linux # correct to gnu/linux during the next big refactor 10401 else 10402 version_type=irix 10403 fi ;; 10404 esac 10405 need_lib_prefix=no 10406 need_version=no 10407 soname_spec='${libname}${release}${shared_ext}$major' 10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10409 case $host_os in 10410 irix5* | nonstopux*) 10411 libsuff= shlibsuff= 10412 ;; 10413 *) 10414 case $LD in # libtool.m4 will add one of these switches to LD 10415 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10416 libsuff= shlibsuff= libmagic=32-bit;; 10417 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10418 libsuff=32 shlibsuff=N32 libmagic=N32;; 10419 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10420 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10421 *) libsuff= shlibsuff= libmagic=never-match;; 10422 esac 10423 ;; 10424 esac 10425 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10426 shlibpath_overrides_runpath=no 10427 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10428 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10429 hardcode_into_libs=yes 10430 ;; 10431 10432# No shared lib support for Linux oldld, aout, or coff. 10433linux*oldld* | linux*aout* | linux*coff*) 10434 dynamic_linker=no 10435 ;; 10436 10437# This must be glibc/ELF. 10438linux* | k*bsd*-gnu | kopensolaris*-gnu) 10439 version_type=linux # correct to gnu/linux during the next big refactor 10440 need_lib_prefix=no 10441 need_version=no 10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10443 soname_spec='${libname}${release}${shared_ext}$major' 10444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10445 shlibpath_var=LD_LIBRARY_PATH 10446 shlibpath_overrides_runpath=no 10447 10448 # Some binutils ld are patched to set DT_RUNPATH 10449 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10450 $as_echo_n "(cached) " >&6 10451else 10452 lt_cv_shlibpath_overrides_runpath=no 10453 save_LDFLAGS=$LDFLAGS 10454 save_libdir=$libdir 10455 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10456 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10458/* end confdefs.h. */ 10459 10460int 10461main () 10462{ 10463 10464 ; 10465 return 0; 10466} 10467_ACEOF 10468if ac_fn_c_try_link "$LINENO"; then : 10469 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10470 lt_cv_shlibpath_overrides_runpath=yes 10471fi 10472fi 10473rm -f core conftest.err conftest.$ac_objext \ 10474 conftest$ac_exeext conftest.$ac_ext 10475 LDFLAGS=$save_LDFLAGS 10476 libdir=$save_libdir 10477 10478fi 10479 10480 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10481 10482 # This implies no fast_install, which is unacceptable. 10483 # Some rework will be needed to allow for fast_install 10484 # before this can be enabled. 10485 hardcode_into_libs=yes 10486 10487 # Append ld.so.conf contents to the search path 10488 if test -f /etc/ld.so.conf; then 10489 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' ' '` 10490 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10491 fi 10492 10493 # We used to test for /lib/ld.so.1 and disable shared libraries on 10494 # powerpc, because MkLinux only supported shared libraries with the 10495 # GNU dynamic linker. Since this was broken with cross compilers, 10496 # most powerpc-linux boxes support dynamic linking these days and 10497 # people can always --disable-shared, the test was removed, and we 10498 # assume the GNU/Linux dynamic linker is in use. 10499 dynamic_linker='GNU/Linux ld.so' 10500 ;; 10501 10502netbsdelf*-gnu) 10503 version_type=linux 10504 need_lib_prefix=no 10505 need_version=no 10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10507 soname_spec='${libname}${release}${shared_ext}$major' 10508 shlibpath_var=LD_LIBRARY_PATH 10509 shlibpath_overrides_runpath=no 10510 hardcode_into_libs=yes 10511 dynamic_linker='NetBSD ld.elf_so' 10512 ;; 10513 10514netbsd*) 10515 version_type=sunos 10516 need_lib_prefix=no 10517 need_version=no 10518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10521 dynamic_linker='NetBSD (a.out) ld.so' 10522 else 10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10524 soname_spec='${libname}${release}${shared_ext}$major' 10525 dynamic_linker='NetBSD ld.elf_so' 10526 fi 10527 shlibpath_var=LD_LIBRARY_PATH 10528 shlibpath_overrides_runpath=yes 10529 hardcode_into_libs=yes 10530 ;; 10531 10532newsos6) 10533 version_type=linux # correct to gnu/linux during the next big refactor 10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10535 shlibpath_var=LD_LIBRARY_PATH 10536 shlibpath_overrides_runpath=yes 10537 ;; 10538 10539*nto* | *qnx*) 10540 version_type=qnx 10541 need_lib_prefix=no 10542 need_version=no 10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10544 soname_spec='${libname}${release}${shared_ext}$major' 10545 shlibpath_var=LD_LIBRARY_PATH 10546 shlibpath_overrides_runpath=no 10547 hardcode_into_libs=yes 10548 dynamic_linker='ldqnx.so' 10549 ;; 10550 10551openbsd*) 10552 version_type=sunos 10553 sys_lib_dlsearch_path_spec="/usr/lib" 10554 need_lib_prefix=no 10555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10556 case $host_os in 10557 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10558 *) need_version=no ;; 10559 esac 10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10562 shlibpath_var=LD_LIBRARY_PATH 10563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10564 case $host_os in 10565 openbsd2.[89] | openbsd2.[89].*) 10566 shlibpath_overrides_runpath=no 10567 ;; 10568 *) 10569 shlibpath_overrides_runpath=yes 10570 ;; 10571 esac 10572 else 10573 shlibpath_overrides_runpath=yes 10574 fi 10575 ;; 10576 10577os2*) 10578 libname_spec='$name' 10579 shrext_cmds=".dll" 10580 need_lib_prefix=no 10581 library_names_spec='$libname${shared_ext} $libname.a' 10582 dynamic_linker='OS/2 ld.exe' 10583 shlibpath_var=LIBPATH 10584 ;; 10585 10586osf3* | osf4* | osf5*) 10587 version_type=osf 10588 need_lib_prefix=no 10589 need_version=no 10590 soname_spec='${libname}${release}${shared_ext}$major' 10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10592 shlibpath_var=LD_LIBRARY_PATH 10593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10595 ;; 10596 10597rdos*) 10598 dynamic_linker=no 10599 ;; 10600 10601solaris*) 10602 version_type=linux # correct to gnu/linux during the next big refactor 10603 need_lib_prefix=no 10604 need_version=no 10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10606 soname_spec='${libname}${release}${shared_ext}$major' 10607 shlibpath_var=LD_LIBRARY_PATH 10608 shlibpath_overrides_runpath=yes 10609 hardcode_into_libs=yes 10610 # ldd complains unless libraries are executable 10611 postinstall_cmds='chmod +x $lib' 10612 ;; 10613 10614sunos4*) 10615 version_type=sunos 10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10617 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10618 shlibpath_var=LD_LIBRARY_PATH 10619 shlibpath_overrides_runpath=yes 10620 if test "$with_gnu_ld" = yes; then 10621 need_lib_prefix=no 10622 fi 10623 need_version=yes 10624 ;; 10625 10626sysv4 | sysv4.3*) 10627 version_type=linux # correct to gnu/linux during the next big refactor 10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10629 soname_spec='${libname}${release}${shared_ext}$major' 10630 shlibpath_var=LD_LIBRARY_PATH 10631 case $host_vendor in 10632 sni) 10633 shlibpath_overrides_runpath=no 10634 need_lib_prefix=no 10635 runpath_var=LD_RUN_PATH 10636 ;; 10637 siemens) 10638 need_lib_prefix=no 10639 ;; 10640 motorola) 10641 need_lib_prefix=no 10642 need_version=no 10643 shlibpath_overrides_runpath=no 10644 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10645 ;; 10646 esac 10647 ;; 10648 10649sysv4*MP*) 10650 if test -d /usr/nec ;then 10651 version_type=linux # correct to gnu/linux during the next big refactor 10652 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10653 soname_spec='$libname${shared_ext}.$major' 10654 shlibpath_var=LD_LIBRARY_PATH 10655 fi 10656 ;; 10657 10658sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10659 version_type=freebsd-elf 10660 need_lib_prefix=no 10661 need_version=no 10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10663 soname_spec='${libname}${release}${shared_ext}$major' 10664 shlibpath_var=LD_LIBRARY_PATH 10665 shlibpath_overrides_runpath=yes 10666 hardcode_into_libs=yes 10667 if test "$with_gnu_ld" = yes; then 10668 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10669 else 10670 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10671 case $host_os in 10672 sco3.2v5*) 10673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10674 ;; 10675 esac 10676 fi 10677 sys_lib_dlsearch_path_spec='/usr/lib' 10678 ;; 10679 10680tpf*) 10681 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10682 version_type=linux # correct to gnu/linux during the next big refactor 10683 need_lib_prefix=no 10684 need_version=no 10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10686 shlibpath_var=LD_LIBRARY_PATH 10687 shlibpath_overrides_runpath=no 10688 hardcode_into_libs=yes 10689 ;; 10690 10691uts4*) 10692 version_type=linux # correct to gnu/linux during the next big refactor 10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10694 soname_spec='${libname}${release}${shared_ext}$major' 10695 shlibpath_var=LD_LIBRARY_PATH 10696 ;; 10697 10698*) 10699 dynamic_linker=no 10700 ;; 10701esac 10702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10703$as_echo "$dynamic_linker" >&6; } 10704test "$dynamic_linker" = no && can_build_shared=no 10705 10706variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10707if test "$GCC" = yes; then 10708 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10709fi 10710 10711if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10712 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10713fi 10714if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10715 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10716fi 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 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10810$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10811hardcode_action= 10812if test -n "$hardcode_libdir_flag_spec" || 10813 test -n "$runpath_var" || 10814 test "X$hardcode_automatic" = "Xyes" ; then 10815 10816 # We can hardcode non-existent directories. 10817 if test "$hardcode_direct" != no && 10818 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10819 # have to relink, otherwise we might link with an installed library 10820 # when we should be linking with a yet-to-be-installed one 10821 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10822 test "$hardcode_minus_L" != no; then 10823 # Linking always hardcodes the temporary library directory. 10824 hardcode_action=relink 10825 else 10826 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10827 hardcode_action=immediate 10828 fi 10829else 10830 # We cannot hardcode anything, or else we can only hardcode existing 10831 # directories. 10832 hardcode_action=unsupported 10833fi 10834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10835$as_echo "$hardcode_action" >&6; } 10836 10837if test "$hardcode_action" = relink || 10838 test "$inherit_rpath" = yes; then 10839 # Fast installation is not supported 10840 enable_fast_install=no 10841elif test "$shlibpath_overrides_runpath" = yes || 10842 test "$enable_shared" = no; then 10843 # Fast installation is not necessary 10844 enable_fast_install=needless 10845fi 10846 10847 10848 10849 10850 10851 10852 if test "x$enable_dlopen" != xyes; then 10853 enable_dlopen=unknown 10854 enable_dlopen_self=unknown 10855 enable_dlopen_self_static=unknown 10856else 10857 lt_cv_dlopen=no 10858 lt_cv_dlopen_libs= 10859 10860 case $host_os in 10861 beos*) 10862 lt_cv_dlopen="load_add_on" 10863 lt_cv_dlopen_libs= 10864 lt_cv_dlopen_self=yes 10865 ;; 10866 10867 mingw* | pw32* | cegcc*) 10868 lt_cv_dlopen="LoadLibrary" 10869 lt_cv_dlopen_libs= 10870 ;; 10871 10872 cygwin*) 10873 lt_cv_dlopen="dlopen" 10874 lt_cv_dlopen_libs= 10875 ;; 10876 10877 darwin*) 10878 # if libdl is installed we need to link against it 10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10880$as_echo_n "checking for dlopen in -ldl... " >&6; } 10881if ${ac_cv_lib_dl_dlopen+:} false; then : 10882 $as_echo_n "(cached) " >&6 10883else 10884 ac_check_lib_save_LIBS=$LIBS 10885LIBS="-ldl $LIBS" 10886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10887/* end confdefs.h. */ 10888 10889/* Override any GCC internal prototype to avoid an error. 10890 Use char because int might match the return type of a GCC 10891 builtin and then its argument prototype would still apply. */ 10892#ifdef __cplusplus 10893extern "C" 10894#endif 10895char dlopen (); 10896int 10897main () 10898{ 10899return dlopen (); 10900 ; 10901 return 0; 10902} 10903_ACEOF 10904if ac_fn_c_try_link "$LINENO"; then : 10905 ac_cv_lib_dl_dlopen=yes 10906else 10907 ac_cv_lib_dl_dlopen=no 10908fi 10909rm -f core conftest.err conftest.$ac_objext \ 10910 conftest$ac_exeext conftest.$ac_ext 10911LIBS=$ac_check_lib_save_LIBS 10912fi 10913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10914$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10915if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10916 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10917else 10918 10919 lt_cv_dlopen="dyld" 10920 lt_cv_dlopen_libs= 10921 lt_cv_dlopen_self=yes 10922 10923fi 10924 10925 ;; 10926 10927 *) 10928 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10929if test "x$ac_cv_func_shl_load" = xyes; then : 10930 lt_cv_dlopen="shl_load" 10931else 10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10933$as_echo_n "checking for shl_load in -ldld... " >&6; } 10934if ${ac_cv_lib_dld_shl_load+:} false; then : 10935 $as_echo_n "(cached) " >&6 10936else 10937 ac_check_lib_save_LIBS=$LIBS 10938LIBS="-ldld $LIBS" 10939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10940/* end confdefs.h. */ 10941 10942/* Override any GCC internal prototype to avoid an error. 10943 Use char because int might match the return type of a GCC 10944 builtin and then its argument prototype would still apply. */ 10945#ifdef __cplusplus 10946extern "C" 10947#endif 10948char shl_load (); 10949int 10950main () 10951{ 10952return shl_load (); 10953 ; 10954 return 0; 10955} 10956_ACEOF 10957if ac_fn_c_try_link "$LINENO"; then : 10958 ac_cv_lib_dld_shl_load=yes 10959else 10960 ac_cv_lib_dld_shl_load=no 10961fi 10962rm -f core conftest.err conftest.$ac_objext \ 10963 conftest$ac_exeext conftest.$ac_ext 10964LIBS=$ac_check_lib_save_LIBS 10965fi 10966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10967$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10968if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10969 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10970else 10971 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10972if test "x$ac_cv_func_dlopen" = xyes; then : 10973 lt_cv_dlopen="dlopen" 10974else 10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10976$as_echo_n "checking for dlopen in -ldl... " >&6; } 10977if ${ac_cv_lib_dl_dlopen+:} false; then : 10978 $as_echo_n "(cached) " >&6 10979else 10980 ac_check_lib_save_LIBS=$LIBS 10981LIBS="-ldl $LIBS" 10982cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10983/* end confdefs.h. */ 10984 10985/* Override any GCC internal prototype to avoid an error. 10986 Use char because int might match the return type of a GCC 10987 builtin and then its argument prototype would still apply. */ 10988#ifdef __cplusplus 10989extern "C" 10990#endif 10991char dlopen (); 10992int 10993main () 10994{ 10995return dlopen (); 10996 ; 10997 return 0; 10998} 10999_ACEOF 11000if ac_fn_c_try_link "$LINENO"; then : 11001 ac_cv_lib_dl_dlopen=yes 11002else 11003 ac_cv_lib_dl_dlopen=no 11004fi 11005rm -f core conftest.err conftest.$ac_objext \ 11006 conftest$ac_exeext conftest.$ac_ext 11007LIBS=$ac_check_lib_save_LIBS 11008fi 11009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11010$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11011if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11013else 11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11015$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11016if ${ac_cv_lib_svld_dlopen+:} false; then : 11017 $as_echo_n "(cached) " >&6 11018else 11019 ac_check_lib_save_LIBS=$LIBS 11020LIBS="-lsvld $LIBS" 11021cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11022/* end confdefs.h. */ 11023 11024/* Override any GCC internal prototype to avoid an error. 11025 Use char because int might match the return type of a GCC 11026 builtin and then its argument prototype would still apply. */ 11027#ifdef __cplusplus 11028extern "C" 11029#endif 11030char dlopen (); 11031int 11032main () 11033{ 11034return dlopen (); 11035 ; 11036 return 0; 11037} 11038_ACEOF 11039if ac_fn_c_try_link "$LINENO"; then : 11040 ac_cv_lib_svld_dlopen=yes 11041else 11042 ac_cv_lib_svld_dlopen=no 11043fi 11044rm -f core conftest.err conftest.$ac_objext \ 11045 conftest$ac_exeext conftest.$ac_ext 11046LIBS=$ac_check_lib_save_LIBS 11047fi 11048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11049$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11050if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11051 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11052else 11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11054$as_echo_n "checking for dld_link in -ldld... " >&6; } 11055if ${ac_cv_lib_dld_dld_link+:} false; then : 11056 $as_echo_n "(cached) " >&6 11057else 11058 ac_check_lib_save_LIBS=$LIBS 11059LIBS="-ldld $LIBS" 11060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11061/* end confdefs.h. */ 11062 11063/* Override any GCC internal prototype to avoid an error. 11064 Use char because int might match the return type of a GCC 11065 builtin and then its argument prototype would still apply. */ 11066#ifdef __cplusplus 11067extern "C" 11068#endif 11069char dld_link (); 11070int 11071main () 11072{ 11073return dld_link (); 11074 ; 11075 return 0; 11076} 11077_ACEOF 11078if ac_fn_c_try_link "$LINENO"; then : 11079 ac_cv_lib_dld_dld_link=yes 11080else 11081 ac_cv_lib_dld_dld_link=no 11082fi 11083rm -f core conftest.err conftest.$ac_objext \ 11084 conftest$ac_exeext conftest.$ac_ext 11085LIBS=$ac_check_lib_save_LIBS 11086fi 11087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11088$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11089if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11091fi 11092 11093 11094fi 11095 11096 11097fi 11098 11099 11100fi 11101 11102 11103fi 11104 11105 11106fi 11107 11108 ;; 11109 esac 11110 11111 if test "x$lt_cv_dlopen" != xno; then 11112 enable_dlopen=yes 11113 else 11114 enable_dlopen=no 11115 fi 11116 11117 case $lt_cv_dlopen in 11118 dlopen) 11119 save_CPPFLAGS="$CPPFLAGS" 11120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11121 11122 save_LDFLAGS="$LDFLAGS" 11123 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11124 11125 save_LIBS="$LIBS" 11126 LIBS="$lt_cv_dlopen_libs $LIBS" 11127 11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11129$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11130if ${lt_cv_dlopen_self+:} false; then : 11131 $as_echo_n "(cached) " >&6 11132else 11133 if test "$cross_compiling" = yes; then : 11134 lt_cv_dlopen_self=cross 11135else 11136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11137 lt_status=$lt_dlunknown 11138 cat > conftest.$ac_ext <<_LT_EOF 11139#line $LINENO "configure" 11140#include "confdefs.h" 11141 11142#if HAVE_DLFCN_H 11143#include <dlfcn.h> 11144#endif 11145 11146#include <stdio.h> 11147 11148#ifdef RTLD_GLOBAL 11149# define LT_DLGLOBAL RTLD_GLOBAL 11150#else 11151# ifdef DL_GLOBAL 11152# define LT_DLGLOBAL DL_GLOBAL 11153# else 11154# define LT_DLGLOBAL 0 11155# endif 11156#endif 11157 11158/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11159 find out it does not work in some platform. */ 11160#ifndef LT_DLLAZY_OR_NOW 11161# ifdef RTLD_LAZY 11162# define LT_DLLAZY_OR_NOW RTLD_LAZY 11163# else 11164# ifdef DL_LAZY 11165# define LT_DLLAZY_OR_NOW DL_LAZY 11166# else 11167# ifdef RTLD_NOW 11168# define LT_DLLAZY_OR_NOW RTLD_NOW 11169# else 11170# ifdef DL_NOW 11171# define LT_DLLAZY_OR_NOW DL_NOW 11172# else 11173# define LT_DLLAZY_OR_NOW 0 11174# endif 11175# endif 11176# endif 11177# endif 11178#endif 11179 11180/* When -fvisbility=hidden is used, assume the code has been annotated 11181 correspondingly for the symbols needed. */ 11182#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11183int fnord () __attribute__((visibility("default"))); 11184#endif 11185 11186int fnord () { return 42; } 11187int main () 11188{ 11189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11190 int status = $lt_dlunknown; 11191 11192 if (self) 11193 { 11194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11195 else 11196 { 11197 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11198 else puts (dlerror ()); 11199 } 11200 /* dlclose (self); */ 11201 } 11202 else 11203 puts (dlerror ()); 11204 11205 return status; 11206} 11207_LT_EOF 11208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11209 (eval $ac_link) 2>&5 11210 ac_status=$? 11211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11212 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11213 (./conftest; exit; ) >&5 2>/dev/null 11214 lt_status=$? 11215 case x$lt_status in 11216 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11217 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11218 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11219 esac 11220 else : 11221 # compilation failed 11222 lt_cv_dlopen_self=no 11223 fi 11224fi 11225rm -fr conftest* 11226 11227 11228fi 11229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11230$as_echo "$lt_cv_dlopen_self" >&6; } 11231 11232 if test "x$lt_cv_dlopen_self" = xyes; then 11233 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11235$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11236if ${lt_cv_dlopen_self_static+:} false; then : 11237 $as_echo_n "(cached) " >&6 11238else 11239 if test "$cross_compiling" = yes; then : 11240 lt_cv_dlopen_self_static=cross 11241else 11242 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11243 lt_status=$lt_dlunknown 11244 cat > conftest.$ac_ext <<_LT_EOF 11245#line $LINENO "configure" 11246#include "confdefs.h" 11247 11248#if HAVE_DLFCN_H 11249#include <dlfcn.h> 11250#endif 11251 11252#include <stdio.h> 11253 11254#ifdef RTLD_GLOBAL 11255# define LT_DLGLOBAL RTLD_GLOBAL 11256#else 11257# ifdef DL_GLOBAL 11258# define LT_DLGLOBAL DL_GLOBAL 11259# else 11260# define LT_DLGLOBAL 0 11261# endif 11262#endif 11263 11264/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11265 find out it does not work in some platform. */ 11266#ifndef LT_DLLAZY_OR_NOW 11267# ifdef RTLD_LAZY 11268# define LT_DLLAZY_OR_NOW RTLD_LAZY 11269# else 11270# ifdef DL_LAZY 11271# define LT_DLLAZY_OR_NOW DL_LAZY 11272# else 11273# ifdef RTLD_NOW 11274# define LT_DLLAZY_OR_NOW RTLD_NOW 11275# else 11276# ifdef DL_NOW 11277# define LT_DLLAZY_OR_NOW DL_NOW 11278# else 11279# define LT_DLLAZY_OR_NOW 0 11280# endif 11281# endif 11282# endif 11283# endif 11284#endif 11285 11286/* When -fvisbility=hidden is used, assume the code has been annotated 11287 correspondingly for the symbols needed. */ 11288#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11289int fnord () __attribute__((visibility("default"))); 11290#endif 11291 11292int fnord () { return 42; } 11293int main () 11294{ 11295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11296 int status = $lt_dlunknown; 11297 11298 if (self) 11299 { 11300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11301 else 11302 { 11303 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11304 else puts (dlerror ()); 11305 } 11306 /* dlclose (self); */ 11307 } 11308 else 11309 puts (dlerror ()); 11310 11311 return status; 11312} 11313_LT_EOF 11314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11315 (eval $ac_link) 2>&5 11316 ac_status=$? 11317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11318 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11319 (./conftest; exit; ) >&5 2>/dev/null 11320 lt_status=$? 11321 case x$lt_status in 11322 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11323 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11324 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11325 esac 11326 else : 11327 # compilation failed 11328 lt_cv_dlopen_self_static=no 11329 fi 11330fi 11331rm -fr conftest* 11332 11333 11334fi 11335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11336$as_echo "$lt_cv_dlopen_self_static" >&6; } 11337 fi 11338 11339 CPPFLAGS="$save_CPPFLAGS" 11340 LDFLAGS="$save_LDFLAGS" 11341 LIBS="$save_LIBS" 11342 ;; 11343 esac 11344 11345 case $lt_cv_dlopen_self in 11346 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11347 *) enable_dlopen_self=unknown ;; 11348 esac 11349 11350 case $lt_cv_dlopen_self_static in 11351 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11352 *) enable_dlopen_self_static=unknown ;; 11353 esac 11354fi 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372striplib= 11373old_striplib= 11374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11375$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11376if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11377 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11378 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11380$as_echo "yes" >&6; } 11381else 11382# FIXME - insert some real tests, host_os isn't really good enough 11383 case $host_os in 11384 darwin*) 11385 if test -n "$STRIP" ; then 11386 striplib="$STRIP -x" 11387 old_striplib="$STRIP -S" 11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11389$as_echo "yes" >&6; } 11390 else 11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11392$as_echo "no" >&6; } 11393 fi 11394 ;; 11395 *) 11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11397$as_echo "no" >&6; } 11398 ;; 11399 esac 11400fi 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 # Report which library types will actually be built 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11415$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11417$as_echo "$can_build_shared" >&6; } 11418 11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11420$as_echo_n "checking whether to build shared libraries... " >&6; } 11421 test "$can_build_shared" = "no" && enable_shared=no 11422 11423 # On AIX, shared libraries and static libraries use the same namespace, and 11424 # are all built from PIC. 11425 case $host_os in 11426 aix3*) 11427 test "$enable_shared" = yes && enable_static=no 11428 if test -n "$RANLIB"; then 11429 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11430 postinstall_cmds='$RANLIB $lib' 11431 fi 11432 ;; 11433 11434 aix[4-9]*) 11435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11436 test "$enable_shared" = yes && enable_static=no 11437 fi 11438 ;; 11439 esac 11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11441$as_echo "$enable_shared" >&6; } 11442 11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11444$as_echo_n "checking whether to build static libraries... " >&6; } 11445 # Make sure either enable_shared or enable_static is yes. 11446 test "$enable_shared" = yes || enable_static=yes 11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11448$as_echo "$enable_static" >&6; } 11449 11450 11451 11452 11453fi 11454ac_ext=c 11455ac_cpp='$CPP $CPPFLAGS' 11456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11458ac_compiler_gnu=$ac_cv_c_compiler_gnu 11459 11460CC="$lt_save_CC" 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 ac_config_commands="$ac_config_commands libtool" 11477 11478 11479 11480 11481# Only expand once: 11482 11483 11484for ac_prog in doxygen 11485do 11486 # Extract the first word of "$ac_prog", so it can be a program name with args. 11487set dummy $ac_prog; ac_word=$2 11488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11489$as_echo_n "checking for $ac_word... " >&6; } 11490if ${ac_cv_prog_DOXYGEN+:} false; then : 11491 $as_echo_n "(cached) " >&6 11492else 11493 if test -n "$DOXYGEN"; then 11494 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. 11495else 11496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11497for as_dir in $PATH 11498do 11499 IFS=$as_save_IFS 11500 test -z "$as_dir" && as_dir=. 11501 for ac_exec_ext in '' $ac_executable_extensions; do 11502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11503 ac_cv_prog_DOXYGEN="$ac_prog" 11504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11505 break 2 11506 fi 11507done 11508 done 11509IFS=$as_save_IFS 11510 11511fi 11512fi 11513DOXYGEN=$ac_cv_prog_DOXYGEN 11514if test -n "$DOXYGEN"; then 11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 11516$as_echo "$DOXYGEN" >&6; } 11517else 11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11519$as_echo "no" >&6; } 11520fi 11521 11522 11523 test -n "$DOXYGEN" && break 11524done 11525test -n "$DOXYGEN" || DOXYGEN="doxygen" 11526 11527 11528 11529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 11530$as_echo_n "checking for C compiler vendor... " >&6; } 11531if ${ax_cv_c_compiler_vendor+:} false; then : 11532 $as_echo_n "(cached) " >&6 11533else 11534 ax_cv_c_compiler_vendor=unknown 11535 # note: don't check for gcc first since some other compilers define __GNUC__ 11536 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do 11537 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")" 11538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11539/* end confdefs.h. */ 11540 11541int 11542main () 11543{ 11544 11545#if !($vencpp) 11546 thisisanerror; 11547#endif 11548 11549 ; 11550 return 0; 11551} 11552_ACEOF 11553if ac_fn_c_try_compile "$LINENO"; then : 11554 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break 11555fi 11556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11557 done 11558 11559fi 11560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 11561$as_echo "$ax_cv_c_compiler_vendor" >&6; } 11562 11563 11564 11565 11566 11567 11568# Check whether --enable-portable-binary was given. 11569if test "${enable_portable_binary+set}" = set; then : 11570 enableval=$enable_portable_binary; acx_maxopt_portable=$withval 11571else 11572 acx_maxopt_portable=no 11573fi 11574 11575 11576# Try to determine "good" native compiler flags if none specified via CFLAGS 11577if test "$ac_test_CFLAGS" != "set"; then 11578 CFLAGS="" 11579 case $ax_cv_c_compiler_vendor in 11580 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host" 11581 if test "x$acx_maxopt_portable" = xno; then 11582 CFLAGS="$CFLAGS -arch host" 11583 fi;; 11584 11585 sun) CFLAGS="-native -fast -xO5 -dalign" 11586 if test "x$acx_maxopt_portable" = xyes; then 11587 CFLAGS="$CFLAGS -xarch=generic" 11588 fi;; 11589 11590 hp) CFLAGS="+Oall +Optrs_ansi +DSnative" 11591 if test "x$acx_maxopt_portable" = xyes; then 11592 CFLAGS="$CFLAGS +DAportable" 11593 fi;; 11594 11595 ibm) if test "x$acx_maxopt_portable" = xno; then 11596 xlc_opt="-qarch=auto -qtune=auto" 11597 else 11598 xlc_opt="-qtune=auto" 11599 fi 11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5 11601$as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; } 11602ax_save_FLAGS=$CFLAGS 11603 CFLAGS="$xlc_opt" 11604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11605/* end confdefs.h. */ 11606 11607int 11608main () 11609{ 11610 11611 ; 11612 return 0; 11613} 11614_ACEOF 11615if ac_fn_c_try_compile "$LINENO"; then : 11616 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=yes 11617else 11618 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=no 11619fi 11620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11621 CFLAGS=$ax_save_FLAGS 11622eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh` 11623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 11624$as_echo "$ax_check_compiler_flags" >&6; } 11625if test "x$ax_check_compiler_flags" = xyes; then 11626 CFLAGS="-O3 -qansialias -w $xlc_opt" 11627else 11628 CFLAGS="-O3 -qansialias -w" 11629 echo "******************************************************" 11630 echo "* You seem to have the IBM C compiler. It is *" 11631 echo "* recommended for best performance that you use: *" 11632 echo "* *" 11633 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *" 11634 echo "* ^^^ ^^^ *" 11635 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *" 11636 echo "* CPU you have. (Set the CFLAGS environment var. *" 11637 echo "* and re-run configure.) For more info, man cc. *" 11638 echo "******************************************************" 11639fi 11640 11641 ;; 11642 11643 intel) CFLAGS="-O3 -ansi_alias" 11644 if test "x$acx_maxopt_portable" = xno; then 11645 icc_archflag=unknown 11646 icc_flags="" 11647 case $host_cpu in 11648 i686*|x86_64*) 11649 # icc accepts gcc assembly syntax, so these should work: 11650 11651ac_ext=c 11652ac_cpp='$CPP $CPPFLAGS' 11653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11655ac_compiler_gnu=$ac_cv_c_compiler_gnu 11656 11657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5 11658$as_echo_n "checking for x86 cpuid 0 output... " >&6; } 11659if ${ax_cv_gcc_x86_cpuid_0+:} false; then : 11660 $as_echo_n "(cached) " >&6 11661else 11662 if test "$cross_compiling" = yes; then : 11663 ax_cv_gcc_x86_cpuid_0=unknown 11664else 11665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11666/* end confdefs.h. */ 11667#include <stdio.h> 11668int 11669main () 11670{ 11671 11672 int op = 0, eax, ebx, ecx, edx; 11673 FILE *f; 11674 __asm__("cpuid" 11675 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 11676 : "a" (op)); 11677 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 11678 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 11679 fclose(f); 11680 return 0; 11681 11682 ; 11683 return 0; 11684} 11685_ACEOF 11686if ac_fn_c_try_run "$LINENO"; then : 11687 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid 11688else 11689 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid 11690fi 11691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11692 conftest.$ac_objext conftest.beam conftest.$ac_ext 11693fi 11694 11695fi 11696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5 11697$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; } 11698ac_ext=c 11699ac_cpp='$CPP $CPPFLAGS' 11700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11702ac_compiler_gnu=$ac_cv_c_compiler_gnu 11703 11704 11705 11706ac_ext=c 11707ac_cpp='$CPP $CPPFLAGS' 11708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11710ac_compiler_gnu=$ac_cv_c_compiler_gnu 11711 11712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5 11713$as_echo_n "checking for x86 cpuid 1 output... " >&6; } 11714if ${ax_cv_gcc_x86_cpuid_1+:} false; then : 11715 $as_echo_n "(cached) " >&6 11716else 11717 if test "$cross_compiling" = yes; then : 11718 ax_cv_gcc_x86_cpuid_1=unknown 11719else 11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11721/* end confdefs.h. */ 11722#include <stdio.h> 11723int 11724main () 11725{ 11726 11727 int op = 1, eax, ebx, ecx, edx; 11728 FILE *f; 11729 __asm__("cpuid" 11730 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 11731 : "a" (op)); 11732 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 11733 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 11734 fclose(f); 11735 return 0; 11736 11737 ; 11738 return 0; 11739} 11740_ACEOF 11741if ac_fn_c_try_run "$LINENO"; then : 11742 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid 11743else 11744 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid 11745fi 11746rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11747 conftest.$ac_objext conftest.beam conftest.$ac_ext 11748fi 11749 11750fi 11751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5 11752$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; } 11753ac_ext=c 11754ac_cpp='$CPP $CPPFLAGS' 11755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11757ac_compiler_gnu=$ac_cv_c_compiler_gnu 11758 11759 11760 case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG 11761 *:756e6547:*:*) # Intel 11762 case $ax_cv_gcc_x86_cpuid_1 in 11763 *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";; 11764 *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";; 11765 *f??:*:*:*) icc_flags="-xN -xW -xK";; 11766 esac ;; 11767 esac ;; 11768 esac 11769 if test "x$icc_flags" != x; then 11770 for flag in $icc_flags; do 11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 11772$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 11773ax_save_FLAGS=$CFLAGS 11774 CFLAGS="$flag" 11775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11776/* end confdefs.h. */ 11777 11778int 11779main () 11780{ 11781 11782 ; 11783 return 0; 11784} 11785_ACEOF 11786if ac_fn_c_try_compile "$LINENO"; then : 11787 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes 11788else 11789 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no 11790fi 11791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11792 CFLAGS=$ax_save_FLAGS 11793eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh` 11794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 11795$as_echo "$ax_check_compiler_flags" >&6; } 11796if test "x$ax_check_compiler_flags" = xyes; then 11797 icc_archflag=$flag; break 11798else 11799 : 11800fi 11801 11802 done 11803 fi 11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5 11805$as_echo_n "checking for icc architecture flag... " >&6; } 11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5 11807$as_echo "$icc_archflag" >&6; } 11808 if test "x$icc_archflag" != xunknown; then 11809 CFLAGS="$CFLAGS $icc_archflag" 11810 fi 11811 fi 11812 ;; 11813 11814 gnu) 11815 # default optimization flags for gcc on all systems 11816 CFLAGS="-O3 -fomit-frame-pointer" 11817 11818 # -malign-double for x86 systems 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5 11820$as_echo_n "checking whether C compiler accepts -malign-double... " >&6; } 11821if ${ax_cv_c_flags__malign_double+:} false; then : 11822 $as_echo_n "(cached) " >&6 11823else 11824 11825 ax_save_FLAGS=$CFLAGS 11826 CFLAGS="-malign-double" 11827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11828/* end confdefs.h. */ 11829 11830int 11831main () 11832{ 11833 11834 ; 11835 return 0; 11836} 11837_ACEOF 11838if ac_fn_c_try_compile "$LINENO"; then : 11839 ax_cv_c_flags__malign_double=yes 11840else 11841 ax_cv_c_flags__malign_double=no 11842fi 11843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11844 CFLAGS=$ax_save_FLAGS 11845fi 11846 11847eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double 11848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 11849$as_echo "$ax_check_compiler_flags" >&6; } 11850if test "x$ax_check_compiler_flags" = xyes; then 11851 CFLAGS="$CFLAGS -malign-double" 11852else 11853 : 11854fi 11855 11856 11857 # -fstrict-aliasing for gcc-2.95+ 11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5 11859$as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; } 11860if ${ax_cv_c_flags__fstrict_aliasing+:} false; then : 11861 $as_echo_n "(cached) " >&6 11862else 11863 11864 ax_save_FLAGS=$CFLAGS 11865 CFLAGS="-fstrict-aliasing" 11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11867/* end confdefs.h. */ 11868 11869int 11870main () 11871{ 11872 11873 ; 11874 return 0; 11875} 11876_ACEOF 11877if ac_fn_c_try_compile "$LINENO"; then : 11878 ax_cv_c_flags__fstrict_aliasing=yes 11879else 11880 ax_cv_c_flags__fstrict_aliasing=no 11881fi 11882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11883 CFLAGS=$ax_save_FLAGS 11884fi 11885 11886eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing 11887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 11888$as_echo "$ax_check_compiler_flags" >&6; } 11889if test "x$ax_check_compiler_flags" = xyes; then 11890 CFLAGS="$CFLAGS -fstrict-aliasing" 11891else 11892 : 11893fi 11894 11895 11896 # note that we enable "unsafe" fp optimization with other compilers, too 11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5 11898$as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; } 11899if ${ax_cv_c_flags__ffast_math+:} false; then : 11900 $as_echo_n "(cached) " >&6 11901else 11902 11903 ax_save_FLAGS=$CFLAGS 11904 CFLAGS="-ffast-math" 11905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11906/* end confdefs.h. */ 11907 11908int 11909main () 11910{ 11911 11912 ; 11913 return 0; 11914} 11915_ACEOF 11916if ac_fn_c_try_compile "$LINENO"; then : 11917 ax_cv_c_flags__ffast_math=yes 11918else 11919 ax_cv_c_flags__ffast_math=no 11920fi 11921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11922 CFLAGS=$ax_save_FLAGS 11923fi 11924 11925eval ax_check_compiler_flags=$ax_cv_c_flags__ffast_math 11926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 11927$as_echo "$ax_check_compiler_flags" >&6; } 11928if test "x$ax_check_compiler_flags" = xyes; then 11929 CFLAGS="$CFLAGS -ffast-math" 11930else 11931 : 11932fi 11933 11934 11935 11936 11937 11938 11939# Check whether --with-gcc-arch was given. 11940if test "${with_gcc_arch+set}" = set; then : 11941 withval=$with_gcc_arch; ax_gcc_arch=$withval 11942else 11943 ax_gcc_arch=yes 11944fi 11945 11946 11947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 11948$as_echo_n "checking for gcc architecture flag... " >&6; } 11949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 11950$as_echo "" >&6; } 11951if ${ax_cv_gcc_archflag+:} false; then : 11952 $as_echo_n "(cached) " >&6 11953else 11954 11955ax_cv_gcc_archflag="unknown" 11956 11957if test "$GCC" = yes; then 11958 11959if test "x$ax_gcc_arch" = xyes; then 11960ax_gcc_arch="" 11961if test "$cross_compiling" = no; then 11962case $host_cpu in 11963 i[3456]86*|x86_64*) # use cpuid codes, in part from x86info-1.7 by D. Jones 11964 11965ac_ext=c 11966ac_cpp='$CPP $CPPFLAGS' 11967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11969ac_compiler_gnu=$ac_cv_c_compiler_gnu 11970 11971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5 11972$as_echo_n "checking for x86 cpuid 0 output... " >&6; } 11973if ${ax_cv_gcc_x86_cpuid_0+:} false; then : 11974 $as_echo_n "(cached) " >&6 11975else 11976 if test "$cross_compiling" = yes; then : 11977 ax_cv_gcc_x86_cpuid_0=unknown 11978else 11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11980/* end confdefs.h. */ 11981#include <stdio.h> 11982int 11983main () 11984{ 11985 11986 int op = 0, eax, ebx, ecx, edx; 11987 FILE *f; 11988 __asm__("cpuid" 11989 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 11990 : "a" (op)); 11991 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 11992 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 11993 fclose(f); 11994 return 0; 11995 11996 ; 11997 return 0; 11998} 11999_ACEOF 12000if ac_fn_c_try_run "$LINENO"; then : 12001 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid 12002else 12003 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid 12004fi 12005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12006 conftest.$ac_objext conftest.beam conftest.$ac_ext 12007fi 12008 12009fi 12010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5 12011$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; } 12012ac_ext=c 12013ac_cpp='$CPP $CPPFLAGS' 12014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12016ac_compiler_gnu=$ac_cv_c_compiler_gnu 12017 12018 12019 12020ac_ext=c 12021ac_cpp='$CPP $CPPFLAGS' 12022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12024ac_compiler_gnu=$ac_cv_c_compiler_gnu 12025 12026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5 12027$as_echo_n "checking for x86 cpuid 1 output... " >&6; } 12028if ${ax_cv_gcc_x86_cpuid_1+:} false; then : 12029 $as_echo_n "(cached) " >&6 12030else 12031 if test "$cross_compiling" = yes; then : 12032 ax_cv_gcc_x86_cpuid_1=unknown 12033else 12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12035/* end confdefs.h. */ 12036#include <stdio.h> 12037int 12038main () 12039{ 12040 12041 int op = 1, eax, ebx, ecx, edx; 12042 FILE *f; 12043 __asm__("cpuid" 12044 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 12045 : "a" (op)); 12046 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 12047 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 12048 fclose(f); 12049 return 0; 12050 12051 ; 12052 return 0; 12053} 12054_ACEOF 12055if ac_fn_c_try_run "$LINENO"; then : 12056 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid 12057else 12058 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid 12059fi 12060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12061 conftest.$ac_objext conftest.beam conftest.$ac_ext 12062fi 12063 12064fi 12065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5 12066$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; } 12067ac_ext=c 12068ac_cpp='$CPP $CPPFLAGS' 12069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12071ac_compiler_gnu=$ac_cv_c_compiler_gnu 12072 12073 12074 case $ax_cv_gcc_x86_cpuid_0 in 12075 *:756e6547:*:*) # Intel 12076 case $ax_cv_gcc_x86_cpuid_1 in 12077 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;; 12078 *5??:*:*:*) ax_gcc_arch=pentium ;; 12079 *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; 12080 *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; 12081 *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; 12082 *6[9d]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;; 12083 *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; 12084 *6??:*:*:*) ax_gcc_arch=pentiumpro ;; 12085 *f3[347]:*:*:*|*f41347:*:*:*) 12086 case $host_cpu in 12087 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;; 12088 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;; 12089 esac ;; 12090 *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";; 12091 esac ;; 12092 *:68747541:*:*) # AMD 12093 case $ax_cv_gcc_x86_cpuid_1 in 12094 *5[67]?:*:*:*) ax_gcc_arch=k6 ;; 12095 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;; 12096 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;; 12097 *60?:*:*:*) ax_gcc_arch=k7 ;; 12098 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;; 12099 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;; 12100 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;; 12101 *6[68a]?:*:*:*) 12102 12103ac_ext=c 12104ac_cpp='$CPP $CPPFLAGS' 12105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12107ac_compiler_gnu=$ac_cv_c_compiler_gnu 12108 12109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5 12110$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; } 12111if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then : 12112 $as_echo_n "(cached) " >&6 12113else 12114 if test "$cross_compiling" = yes; then : 12115 ax_cv_gcc_x86_cpuid_0x80000006=unknown 12116else 12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12118/* end confdefs.h. */ 12119#include <stdio.h> 12120int 12121main () 12122{ 12123 12124 int op = 0x80000006, eax, ebx, ecx, edx; 12125 FILE *f; 12126 __asm__("cpuid" 12127 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 12128 : "a" (op)); 12129 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 12130 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 12131 fclose(f); 12132 return 0; 12133 12134 ; 12135 return 0; 12136} 12137_ACEOF 12138if ac_fn_c_try_run "$LINENO"; then : 12139 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid 12140else 12141 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid 12142fi 12143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12144 conftest.$ac_objext conftest.beam conftest.$ac_ext 12145fi 12146 12147fi 12148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5 12149$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; } 12150ac_ext=c 12151ac_cpp='$CPP $CPPFLAGS' 12152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12154ac_compiler_gnu=$ac_cv_c_compiler_gnu 12155 12156 # L2 cache size 12157 case $ax_cv_gcc_x86_cpuid_0x80000006 in 12158 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256 12159 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;; 12160 *) ax_gcc_arch="athlon-4 athlon k7" ;; 12161 esac ;; 12162 *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;; 12163 *f5?:*:*:*) ax_gcc_arch="opteron k8" ;; 12164 *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;; 12165 *f??:*:*:*) ax_gcc_arch="k8" ;; 12166 esac ;; 12167 *:746e6543:*:*) # IDT 12168 case $ax_cv_gcc_x86_cpuid_1 in 12169 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;; 12170 *58?:*:*:*) ax_gcc_arch=winchip2 ;; 12171 *6[78]?:*:*:*) ax_gcc_arch=c3 ;; 12172 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;; 12173 esac ;; 12174 esac 12175 if test x"$ax_gcc_arch" = x; then # fallback 12176 case $host_cpu in 12177 i586*) ax_gcc_arch=pentium ;; 12178 i686*) ax_gcc_arch=pentiumpro ;; 12179 esac 12180 fi 12181 ;; 12182 12183 sparc*) 12184 # Extract the first word of "prtdiag", so it can be a program name with args. 12185set dummy prtdiag; ac_word=$2 12186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12187$as_echo_n "checking for $ac_word... " >&6; } 12188if ${ac_cv_path_PRTDIAG+:} false; then : 12189 $as_echo_n "(cached) " >&6 12190else 12191 case $PRTDIAG in 12192 [\\/]* | ?:[\\/]*) 12193 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path. 12194 ;; 12195 *) 12196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12197as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/" 12198for as_dir in $as_dummy 12199do 12200 IFS=$as_save_IFS 12201 test -z "$as_dir" && as_dir=. 12202 for ac_exec_ext in '' $ac_executable_extensions; do 12203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12204 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext" 12205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12206 break 2 12207 fi 12208done 12209 done 12210IFS=$as_save_IFS 12211 12212 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag" 12213 ;; 12214esac 12215fi 12216PRTDIAG=$ac_cv_path_PRTDIAG 12217if test -n "$PRTDIAG"; then 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5 12219$as_echo "$PRTDIAG" >&6; } 12220else 12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12222$as_echo "no" >&6; } 12223fi 12224 12225 12226 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null` 12227 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters` 12228 case $cputype in 12229 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;; 12230 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;; 12231 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;; 12232 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;; 12233 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;; 12234 *cypress*) ax_gcc_arch=cypress ;; 12235 esac ;; 12236 12237 alphaev5) ax_gcc_arch=ev5 ;; 12238 alphaev56) ax_gcc_arch=ev56 ;; 12239 alphapca56) ax_gcc_arch="pca56 ev56" ;; 12240 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;; 12241 alphaev6) ax_gcc_arch=ev6 ;; 12242 alphaev67) ax_gcc_arch=ev67 ;; 12243 alphaev68) ax_gcc_arch="ev68 ev67" ;; 12244 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;; 12245 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;; 12246 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;; 12247 12248 powerpc*) 12249 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null` 12250 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'` 12251 case $cputype in 12252 *750*) ax_gcc_arch="750 G3" ;; 12253 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;; 12254 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;; 12255 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;; 12256 *970*) ax_gcc_arch="970 G5 power4";; 12257 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";; 12258 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";; 12259 603ev|8240) ax_gcc_arch="$cputype 603e 603";; 12260 *) ax_gcc_arch=$cputype ;; 12261 esac 12262 ax_gcc_arch="$ax_gcc_arch powerpc" 12263 ;; 12264esac 12265fi # not cross-compiling 12266fi # guess arch 12267 12268if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then 12269for arch in $ax_gcc_arch; do 12270 if test "x$acx_maxopt_portable" = xyes; then # if we require portable code 12271 flags="-mtune=$arch" 12272 # -mcpu=$arch and m$arch generate nonportable code on every arch except 12273 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr. 12274 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac 12275 else 12276 flags="-march=$arch -mcpu=$arch -m$arch" 12277 fi 12278 for flag in $flags; do 12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 12280$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 12281ax_save_FLAGS=$CFLAGS 12282 CFLAGS="$flag" 12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12284/* end confdefs.h. */ 12285 12286int 12287main () 12288{ 12289 12290 ; 12291 return 0; 12292} 12293_ACEOF 12294if ac_fn_c_try_compile "$LINENO"; then : 12295 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes 12296else 12297 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no 12298fi 12299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12300 CFLAGS=$ax_save_FLAGS 12301eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh` 12302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 12303$as_echo "$ax_check_compiler_flags" >&6; } 12304if test "x$ax_check_compiler_flags" = xyes; then 12305 ax_cv_gcc_archflag=$flag; break 12306else 12307 : 12308fi 12309 12310 done 12311 test "x$ax_cv_gcc_archflag" = xunknown || break 12312done 12313fi 12314 12315fi # $GCC=yes 12316 12317fi 12318 12319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 12320$as_echo_n "checking for gcc architecture flag... " >&6; } 12321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5 12322$as_echo "$ax_cv_gcc_archflag" >&6; } 12323if test "x$ax_cv_gcc_archflag" = xunknown; then 12324 : 12325else 12326 CFLAGS="$CFLAGS $ax_cv_gcc_archflag" 12327fi 12328 12329 ;; 12330 esac 12331 12332 if test -z "$CFLAGS"; then 12333 echo "" 12334 echo "********************************************************" 12335 echo "* WARNING: Don't know the best CFLAGS for this system *" 12336 echo "* Use ./configure CFLAGS=... to specify your own flags *" 12337 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" 12338 echo "********************************************************" 12339 echo "" 12340 CFLAGS="-O3" 12341 fi 12342 12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5 12344$as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; } 12345ax_save_FLAGS=$CFLAGS 12346 CFLAGS="$CFLAGS" 12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12348/* end confdefs.h. */ 12349 12350int 12351main () 12352{ 12353 12354 ; 12355 return 0; 12356} 12357_ACEOF 12358if ac_fn_c_try_compile "$LINENO"; then : 12359 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=yes 12360else 12361 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=no 12362fi 12363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12364 CFLAGS=$ax_save_FLAGS 12365eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh` 12366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 12367$as_echo "$ax_check_compiler_flags" >&6; } 12368if test "x$ax_check_compiler_flags" = xyes; then 12369 : 12370else 12371 12372 echo "" 12373 echo "********************************************************" 12374 echo "* WARNING: The guessed CFLAGS don't seem to work with *" 12375 echo "* your compiler. *" 12376 echo "* Use ./configure CFLAGS=... to specify your own flags *" 12377 echo "********************************************************" 12378 echo "" 12379 CFLAGS="" 12380 12381fi 12382 12383 12384fi 12385 12386 12387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS_WARN for maximum warnings" >&5 12388$as_echo_n "checking CFLAGS_WARN for maximum warnings... " >&6; } 12389if ${ac_cv_cflags_warn_all+:} false; then : 12390 $as_echo_n "(cached) " >&6 12391else 12392 ac_cv_cflags_warn_all="no, unknown" 12393 12394 ac_ext=c 12395ac_cpp='$CPP $CPPFLAGS' 12396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12398ac_compiler_gnu=$ac_cv_c_compiler_gnu 12399 12400 ac_save_CFLAGS="$CFLAGS" 12401for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # 12402do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12404/* end confdefs.h. */ 12405 12406int 12407main () 12408{ 12409return 0; 12410 ; 12411 return 0; 12412} 12413_ACEOF 12414if ac_fn_c_try_compile "$LINENO"; then : 12415 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 12416fi 12417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12418done 12419 CFLAGS="$ac_save_CFLAGS" 12420 ac_ext=c 12421ac_cpp='$CPP $CPPFLAGS' 12422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12424ac_compiler_gnu=$ac_cv_c_compiler_gnu 12425 12426 12427fi 12428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 12429$as_echo "$ac_cv_cflags_warn_all" >&6; } 12430case ".$ac_cv_cflags_warn_all" in 12431 .ok|.ok,*) ;; 12432 .|.no|.no,*) 12433 ;; 12434 *) 12435 if echo " $CFLAGS_WARN " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null 12436 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS_WARN does contain \$ac_cv_cflags_warn_all"; } >&5 12437 (: CFLAGS_WARN does contain $ac_cv_cflags_warn_all) 2>&5 12438 ac_status=$? 12439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12440 test $ac_status = 0; } 12441 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS_WARN=\"\$CFLAGS_WARN \$ac_cv_cflags_warn_all\""; } >&5 12442 (: CFLAGS_WARN="$CFLAGS_WARN $ac_cv_cflags_warn_all") 2>&5 12443 ac_status=$? 12444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12445 test $ac_status = 0; } 12446 CFLAGS_WARN="$CFLAGS_WARN $ac_cv_cflags_warn_all" 12447 fi 12448 ;; 12449esac 12450 12451 12452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12453$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12454if ${ac_cv_c_const+:} false; then : 12455 $as_echo_n "(cached) " >&6 12456else 12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12458/* end confdefs.h. */ 12459 12460int 12461main () 12462{ 12463 12464#ifndef __cplusplus 12465 /* Ultrix mips cc rejects this sort of thing. */ 12466 typedef int charset[2]; 12467 const charset cs = { 0, 0 }; 12468 /* SunOS 4.1.1 cc rejects this. */ 12469 char const *const *pcpcc; 12470 char **ppc; 12471 /* NEC SVR4.0.2 mips cc rejects this. */ 12472 struct point {int x, y;}; 12473 static struct point const zero = {0,0}; 12474 /* AIX XL C 1.02.0.0 rejects this. 12475 It does not let you subtract one const X* pointer from another in 12476 an arm of an if-expression whose if-part is not a constant 12477 expression */ 12478 const char *g = "string"; 12479 pcpcc = &g + (g ? g-g : 0); 12480 /* HPUX 7.0 cc rejects these. */ 12481 ++pcpcc; 12482 ppc = (char**) pcpcc; 12483 pcpcc = (char const *const *) ppc; 12484 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12485 char tx; 12486 char *t = &tx; 12487 char const *s = 0 ? (char *) 0 : (char const *) 0; 12488 12489 *t++ = 0; 12490 if (s) return 0; 12491 } 12492 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12493 int x[] = {25, 17}; 12494 const int *foo = &x[0]; 12495 ++foo; 12496 } 12497 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12498 typedef const int *iptr; 12499 iptr p = 0; 12500 ++p; 12501 } 12502 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12503 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12504 struct s { int j; const int *ap[3]; } bx; 12505 struct s *b = &bx; b->j = 5; 12506 } 12507 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12508 const int foo = 10; 12509 if (!foo) return 0; 12510 } 12511 return !cs[0] && !zero.x; 12512#endif 12513 12514 ; 12515 return 0; 12516} 12517_ACEOF 12518if ac_fn_c_try_compile "$LINENO"; then : 12519 ac_cv_c_const=yes 12520else 12521 ac_cv_c_const=no 12522fi 12523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12524fi 12525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12526$as_echo "$ac_cv_c_const" >&6; } 12527if test $ac_cv_c_const = no; then 12528 12529$as_echo "#define const /**/" >>confdefs.h 12530 12531fi 12532 12533ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12534if test "x$ac_cv_type_size_t" = xyes; then : 12535 12536else 12537 12538cat >>confdefs.h <<_ACEOF 12539#define size_t unsigned int 12540_ACEOF 12541 12542fi 12543 12544 12545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12546$as_echo_n "checking for ANSI C header files... " >&6; } 12547if ${ac_cv_header_stdc+:} false; then : 12548 $as_echo_n "(cached) " >&6 12549else 12550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12551/* end confdefs.h. */ 12552#include <stdlib.h> 12553#include <stdarg.h> 12554#include <string.h> 12555#include <float.h> 12556 12557int 12558main () 12559{ 12560 12561 ; 12562 return 0; 12563} 12564_ACEOF 12565if ac_fn_c_try_compile "$LINENO"; then : 12566 ac_cv_header_stdc=yes 12567else 12568 ac_cv_header_stdc=no 12569fi 12570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12571 12572if test $ac_cv_header_stdc = yes; then 12573 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12575/* end confdefs.h. */ 12576#include <string.h> 12577 12578_ACEOF 12579if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12580 $EGREP "memchr" >/dev/null 2>&1; then : 12581 12582else 12583 ac_cv_header_stdc=no 12584fi 12585rm -f conftest* 12586 12587fi 12588 12589if test $ac_cv_header_stdc = yes; then 12590 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12592/* end confdefs.h. */ 12593#include <stdlib.h> 12594 12595_ACEOF 12596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12597 $EGREP "free" >/dev/null 2>&1; then : 12598 12599else 12600 ac_cv_header_stdc=no 12601fi 12602rm -f conftest* 12603 12604fi 12605 12606if test $ac_cv_header_stdc = yes; then 12607 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12608 if test "$cross_compiling" = yes; then : 12609 : 12610else 12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12612/* end confdefs.h. */ 12613#include <ctype.h> 12614#include <stdlib.h> 12615#if ((' ' & 0x0FF) == 0x020) 12616# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12617# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12618#else 12619# define ISLOWER(c) \ 12620 (('a' <= (c) && (c) <= 'i') \ 12621 || ('j' <= (c) && (c) <= 'r') \ 12622 || ('s' <= (c) && (c) <= 'z')) 12623# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12624#endif 12625 12626#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12627int 12628main () 12629{ 12630 int i; 12631 for (i = 0; i < 256; i++) 12632 if (XOR (islower (i), ISLOWER (i)) 12633 || toupper (i) != TOUPPER (i)) 12634 return 2; 12635 return 0; 12636} 12637_ACEOF 12638if ac_fn_c_try_run "$LINENO"; then : 12639 12640else 12641 ac_cv_header_stdc=no 12642fi 12643rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12644 conftest.$ac_objext conftest.beam conftest.$ac_ext 12645fi 12646 12647fi 12648fi 12649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12650$as_echo "$ac_cv_header_stdc" >&6; } 12651if test $ac_cv_header_stdc = yes; then 12652 12653$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12654 12655fi 12656 12657for ac_header in errno.h stddef.h stdlib.h string.h strings.h unistd.h 12658do : 12659 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12660ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12661if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12662 cat >>confdefs.h <<_ACEOF 12663#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12664_ACEOF 12665 12666fi 12667 12668done 12669 12670 12671for ac_func in strtol 12672do : 12673 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" 12674if test "x$ac_cv_func_strtol" = xyes; then : 12675 cat >>confdefs.h <<_ACEOF 12676#define HAVE_STRTOL 1 12677_ACEOF 12678 12679fi 12680done 12681 12682 12683 12684 12685 12686gmp_flag="OSL_GMP_IS_HERE" 12687 12688 12689 12690# Check whether --with-gmp was given. 12691if test "${with_gmp+set}" = set; then : 12692 withval=$with_gmp; 12693fi 12694 12695case "system" in 12696no|system|build) 12697 12698# Check whether --with-gmp_prefix was given. 12699if test "${with_gmp_prefix+set}" = set; then : 12700 withval=$with_gmp_prefix; 12701fi 12702 12703 12704# Check whether --with-gmp_exec_prefix was given. 12705if test "${with_gmp_exec_prefix+set}" = set; then : 12706 withval=$with_gmp_exec_prefix; 12707fi 12708 12709esac 12710case "build" in 12711no|system|build) 12712 12713# Check whether --with-gmp_builddir was given. 12714if test "${with_gmp_builddir+set}" = set; then : 12715 withval=$with_gmp_builddir; 12716fi 12717 12718esac 12719if test "x$with_gmp_prefix" != "x" -a "x$with_gmp_exec_prefix" = "x"; then 12720 with_gmp_exec_prefix=$with_gmp_prefix 12721fi 12722if test "x$with_gmp_prefix" != "x" -o "x$with_gmp_exec_prefix" != "x"; then 12723 if test "x$with_gmp" != "x" -a "x$with_gmp" != "xsystem"; then 12724 as_fn_error $? "Setting $with_gmp_prefix implies use of system gmp" "$LINENO" 5 12725 fi 12726 with_gmp="system" 12727fi 12728if test "x$with_gmp_builddir" != "x"; then 12729 if test "x$with_gmp" != "x" -a "x$with_gmp" != "xbuild"; then 12730 as_fn_error $? "Setting $with_gmp_builddir implies use of build gmp" "$LINENO" 5 12731 fi 12732 with_gmp="build" 12733 gmp_srcdir=`echo @abs_srcdir@ | $with_gmp_builddir/config.status --file=-` 12734 { $as_echo "$as_me:${as_lineno-$LINENO}: gmp sources in $gmp_srcdir" >&5 12735$as_echo "$as_me: gmp sources in $gmp_srcdir" >&6;} 12736fi 12737case "$with_gmp" in 12738no|system|build) 12739 ;; 12740*) 12741 if test -d $srcdir/.git -a \ 12742 -d $srcdir/gmp -a \ 12743 ! -d $srcdir/gmp/.git; then 12744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule gmp not initialized" >&5 12745$as_echo "$as_me: WARNING: git repo detected, but submodule gmp not initialized" >&2;} 12746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5 12747$as_echo "$as_me: WARNING: You may want to run" >&2;} 12748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule init" >&5 12749$as_echo "$as_me: WARNING: git submodule init" >&2;} 12750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule update" >&5 12751$as_echo "$as_me: WARNING: git submodule update" >&2;} 12752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sh autogen.sh" >&5 12753$as_echo "$as_me: WARNING: sh autogen.sh" >&2;} 12754 fi 12755 if test -f $srcdir/gmp/configure -a "system" != "no"; then 12756 with_gmp="bundled" 12757 else 12758 with_gmp="system" 12759 fi 12760 ;; 12761esac 12762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which gmp to use" >&5 12763$as_echo_n "checking which gmp to use... " >&6; } 12764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gmp" >&5 12765$as_echo "$with_gmp" >&6; } 12766 12767 12768 12769case "$with_gmp" in 12770build) 12771 CPPFLAGS="-D$gmp_flag -I$with_gmp_builddir $CPPFLAGS" 12772 LDFLAGS="-L$with_gmp_builddir/$lt_cv_objdir $LDFLAGS" 12773 ;; 12774system) 12775 CPPFLAGS="-D$gmp_flag $CPPFLAGS" 12776 if test "x$with_gmp_prefix" != "x"; then 12777 CPPFLAGS="-I$with_gmp_prefix/include $CPPFLAGS" 12778 fi 12779 12780 if test "$with_gmp_exec_prefix" != "yes" ; then 12781 LDFLAGS="-L$with_gmp_exec_prefix/lib $LDFLAGS" 12782 fi 12783 ;; 12784esac 12785case "$with_gmp" in 12786build|system) 12787 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" 12788if test "x$ac_cv_header_gmp_h" = xyes; then : 12789 12790else 12791 as_fn_error $? "\"Can't find gmp headers.\"" "$LINENO" 5 12792fi 12793 12794 12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5 12796$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; } 12797if ${ac_cv_lib_gmp___gmpz_init+:} false; then : 12798 $as_echo_n "(cached) " >&6 12799else 12800 ac_check_lib_save_LIBS=$LIBS 12801LIBS="-lgmp $LIBS" 12802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12803/* end confdefs.h. */ 12804 12805/* Override any GCC internal prototype to avoid an error. 12806 Use char because int might match the return type of a GCC 12807 builtin and then its argument prototype would still apply. */ 12808#ifdef __cplusplus 12809extern "C" 12810#endif 12811char __gmpz_init (); 12812int 12813main () 12814{ 12815return __gmpz_init (); 12816 ; 12817 return 0; 12818} 12819_ACEOF 12820if ac_fn_c_try_link "$LINENO"; then : 12821 ac_cv_lib_gmp___gmpz_init=yes 12822else 12823 ac_cv_lib_gmp___gmpz_init=no 12824fi 12825rm -f core conftest.err conftest.$ac_objext \ 12826 conftest$ac_exeext conftest.$ac_ext 12827LIBS=$ac_check_lib_save_LIBS 12828fi 12829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5 12830$as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; } 12831if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then : 12832 LIBS="$LIBS -lgmp" 12833else 12834 as_fn_error $? "\"Can't find gmp library.\"" "$LINENO" 5 12835fi 12836 12837 ;; 12838esac 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850ac_config_files="$ac_config_files Makefile doc/Makefile doc/Doxyfile include/osl/scop.h tests/Makefile" 12851 12852 12853cat >confcache <<\_ACEOF 12854# This file is a shell script that caches the results of configure 12855# tests run on this system so they can be shared between configure 12856# scripts and configure runs, see configure's option --config-cache. 12857# It is not useful on other systems. If it contains results you don't 12858# want to keep, you may remove or edit it. 12859# 12860# config.status only pays attention to the cache file if you give it 12861# the --recheck option to rerun configure. 12862# 12863# `ac_cv_env_foo' variables (set or unset) will be overridden when 12864# loading this file, other *unset* `ac_cv_foo' will be assigned the 12865# following values. 12866 12867_ACEOF 12868 12869# The following way of writing the cache mishandles newlines in values, 12870# but we know of no workaround that is simple, portable, and efficient. 12871# So, we kill variables containing newlines. 12872# Ultrix sh set writes to stderr and can't be redirected directly, 12873# and sets the high bit in the cache file unless we assign to the vars. 12874( 12875 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12876 eval ac_val=\$$ac_var 12877 case $ac_val in #( 12878 *${as_nl}*) 12879 case $ac_var in #( 12880 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12881$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12882 esac 12883 case $ac_var in #( 12884 _ | IFS | as_nl) ;; #( 12885 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12886 *) { eval $ac_var=; unset $ac_var;} ;; 12887 esac ;; 12888 esac 12889 done 12890 12891 (set) 2>&1 | 12892 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12893 *${as_nl}ac_space=\ *) 12894 # `set' does not quote correctly, so add quotes: double-quote 12895 # substitution turns \\\\ into \\, and sed turns \\ into \. 12896 sed -n \ 12897 "s/'/'\\\\''/g; 12898 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12899 ;; #( 12900 *) 12901 # `set' quotes correctly as required by POSIX, so do not add quotes. 12902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12903 ;; 12904 esac | 12905 sort 12906) | 12907 sed ' 12908 /^ac_cv_env_/b end 12909 t clear 12910 :clear 12911 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12912 t end 12913 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12914 :end' >>confcache 12915if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12916 if test -w "$cache_file"; then 12917 if test "x$cache_file" != "x/dev/null"; then 12918 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12919$as_echo "$as_me: updating cache $cache_file" >&6;} 12920 if test ! -f "$cache_file" || test -h "$cache_file"; then 12921 cat confcache >"$cache_file" 12922 else 12923 case $cache_file in #( 12924 */* | ?:*) 12925 mv -f confcache "$cache_file"$$ && 12926 mv -f "$cache_file"$$ "$cache_file" ;; #( 12927 *) 12928 mv -f confcache "$cache_file" ;; 12929 esac 12930 fi 12931 fi 12932 else 12933 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12934$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12935 fi 12936fi 12937rm -f confcache 12938 12939test "x$prefix" = xNONE && prefix=$ac_default_prefix 12940# Let make expand exec_prefix. 12941test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12942 12943# Transform confdefs.h into DEFS. 12944# Protect against shell expansion while executing Makefile rules. 12945# Protect against Makefile macro expansion. 12946# 12947# If the first sed substitution is executed (which looks for macros that 12948# take arguments), then branch to the quote section. Otherwise, 12949# look for a macro that doesn't take arguments. 12950ac_script=' 12951:mline 12952/\\$/{ 12953 N 12954 s,\\\n,, 12955 b mline 12956} 12957t clear 12958:clear 12959s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 12960t quote 12961s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 12962t quote 12963b any 12964:quote 12965s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 12966s/\[/\\&/g 12967s/\]/\\&/g 12968s/\$/$$/g 12969H 12970:any 12971${ 12972 g 12973 s/^\n// 12974 s/\n/ /g 12975 p 12976} 12977' 12978DEFS=`sed -n "$ac_script" confdefs.h` 12979 12980 12981ac_libobjs= 12982ac_ltlibobjs= 12983U= 12984for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12985 # 1. Remove the extension, and $U if already installed. 12986 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12987 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12988 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12989 # will be set to the directory where LIBOBJS objects are built. 12990 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12991 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12992done 12993LIBOBJS=$ac_libobjs 12994 12995LTLIBOBJS=$ac_ltlibobjs 12996 12997 12998 if test -n "$EXEEXT"; then 12999 am__EXEEXT_TRUE= 13000 am__EXEEXT_FALSE='#' 13001else 13002 am__EXEEXT_TRUE='#' 13003 am__EXEEXT_FALSE= 13004fi 13005 13006if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13007 as_fn_error $? "conditional \"AMDEP\" was never defined. 13008Usually this means the macro was only invoked conditionally." "$LINENO" 5 13009fi 13010if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13011 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13012Usually this means the macro was only invoked conditionally." "$LINENO" 5 13013fi 13014 13015: "${CONFIG_STATUS=./config.status}" 13016ac_write_fail=0 13017ac_clean_files_save=$ac_clean_files 13018ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13019{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13020$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13021as_write_fail=0 13022cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13023#! $SHELL 13024# Generated by $as_me. 13025# Run this file to recreate the current configuration. 13026# Compiler output produced by configure, useful for debugging 13027# configure, is in config.log if it exists. 13028 13029debug=false 13030ac_cs_recheck=false 13031ac_cs_silent=false 13032 13033SHELL=\${CONFIG_SHELL-$SHELL} 13034export SHELL 13035_ASEOF 13036cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13037## -------------------- ## 13038## M4sh Initialization. ## 13039## -------------------- ## 13040 13041# Be more Bourne compatible 13042DUALCASE=1; export DUALCASE # for MKS sh 13043if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13044 emulate sh 13045 NULLCMD=: 13046 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13047 # is contrary to our usage. Disable this feature. 13048 alias -g '${1+"$@"}'='"$@"' 13049 setopt NO_GLOB_SUBST 13050else 13051 case `(set -o) 2>/dev/null` in #( 13052 *posix*) : 13053 set -o posix ;; #( 13054 *) : 13055 ;; 13056esac 13057fi 13058 13059 13060as_nl=' 13061' 13062export as_nl 13063# Printing a long string crashes Solaris 7 /usr/bin/printf. 13064as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13065as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13066as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13067# Prefer a ksh shell builtin over an external printf program on Solaris, 13068# but without wasting forks for bash or zsh. 13069if test -z "$BASH_VERSION$ZSH_VERSION" \ 13070 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13071 as_echo='print -r --' 13072 as_echo_n='print -rn --' 13073elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13074 as_echo='printf %s\n' 13075 as_echo_n='printf %s' 13076else 13077 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13078 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13079 as_echo_n='/usr/ucb/echo -n' 13080 else 13081 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13082 as_echo_n_body='eval 13083 arg=$1; 13084 case $arg in #( 13085 *"$as_nl"*) 13086 expr "X$arg" : "X\\(.*\\)$as_nl"; 13087 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13088 esac; 13089 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13090 ' 13091 export as_echo_n_body 13092 as_echo_n='sh -c $as_echo_n_body as_echo' 13093 fi 13094 export as_echo_body 13095 as_echo='sh -c $as_echo_body as_echo' 13096fi 13097 13098# The user is always right. 13099if test "${PATH_SEPARATOR+set}" != set; then 13100 PATH_SEPARATOR=: 13101 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13102 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13103 PATH_SEPARATOR=';' 13104 } 13105fi 13106 13107 13108# IFS 13109# We need space, tab and new line, in precisely that order. Quoting is 13110# there to prevent editors from complaining about space-tab. 13111# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13112# splitting by setting IFS to empty value.) 13113IFS=" "" $as_nl" 13114 13115# Find who we are. Look in the path if we contain no directory separator. 13116as_myself= 13117case $0 in #(( 13118 *[\\/]* ) as_myself=$0 ;; 13119 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13120for as_dir in $PATH 13121do 13122 IFS=$as_save_IFS 13123 test -z "$as_dir" && as_dir=. 13124 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13125 done 13126IFS=$as_save_IFS 13127 13128 ;; 13129esac 13130# We did not find ourselves, most probably we were run as `sh COMMAND' 13131# in which case we are not to be found in the path. 13132if test "x$as_myself" = x; then 13133 as_myself=$0 13134fi 13135if test ! -f "$as_myself"; then 13136 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13137 exit 1 13138fi 13139 13140# Unset variables that we do not need and which cause bugs (e.g. in 13141# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13142# suppresses any "Segmentation fault" message there. '((' could 13143# trigger a bug in pdksh 5.2.14. 13144for as_var in BASH_ENV ENV MAIL MAILPATH 13145do eval test x\${$as_var+set} = xset \ 13146 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13147done 13148PS1='$ ' 13149PS2='> ' 13150PS4='+ ' 13151 13152# NLS nuisances. 13153LC_ALL=C 13154export LC_ALL 13155LANGUAGE=C 13156export LANGUAGE 13157 13158# CDPATH. 13159(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13160 13161 13162# as_fn_error STATUS ERROR [LINENO LOG_FD] 13163# ---------------------------------------- 13164# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13165# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13166# script with STATUS, using 1 if that was 0. 13167as_fn_error () 13168{ 13169 as_status=$1; test $as_status -eq 0 && as_status=1 13170 if test "$4"; then 13171 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13172 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13173 fi 13174 $as_echo "$as_me: error: $2" >&2 13175 as_fn_exit $as_status 13176} # as_fn_error 13177 13178 13179# as_fn_set_status STATUS 13180# ----------------------- 13181# Set $? to STATUS, without forking. 13182as_fn_set_status () 13183{ 13184 return $1 13185} # as_fn_set_status 13186 13187# as_fn_exit STATUS 13188# ----------------- 13189# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13190as_fn_exit () 13191{ 13192 set +e 13193 as_fn_set_status $1 13194 exit $1 13195} # as_fn_exit 13196 13197# as_fn_unset VAR 13198# --------------- 13199# Portably unset VAR. 13200as_fn_unset () 13201{ 13202 { eval $1=; unset $1;} 13203} 13204as_unset=as_fn_unset 13205# as_fn_append VAR VALUE 13206# ---------------------- 13207# Append the text in VALUE to the end of the definition contained in VAR. Take 13208# advantage of any shell optimizations that allow amortized linear growth over 13209# repeated appends, instead of the typical quadratic growth present in naive 13210# implementations. 13211if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13212 eval 'as_fn_append () 13213 { 13214 eval $1+=\$2 13215 }' 13216else 13217 as_fn_append () 13218 { 13219 eval $1=\$$1\$2 13220 } 13221fi # as_fn_append 13222 13223# as_fn_arith ARG... 13224# ------------------ 13225# Perform arithmetic evaluation on the ARGs, and store the result in the 13226# global $as_val. Take advantage of shells that can avoid forks. The arguments 13227# must be portable across $(()) and expr. 13228if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13229 eval 'as_fn_arith () 13230 { 13231 as_val=$(( $* )) 13232 }' 13233else 13234 as_fn_arith () 13235 { 13236 as_val=`expr "$@" || test $? -eq 1` 13237 } 13238fi # as_fn_arith 13239 13240 13241if expr a : '\(a\)' >/dev/null 2>&1 && 13242 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13243 as_expr=expr 13244else 13245 as_expr=false 13246fi 13247 13248if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13249 as_basename=basename 13250else 13251 as_basename=false 13252fi 13253 13254if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13255 as_dirname=dirname 13256else 13257 as_dirname=false 13258fi 13259 13260as_me=`$as_basename -- "$0" || 13261$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13262 X"$0" : 'X\(//\)$' \| \ 13263 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13264$as_echo X/"$0" | 13265 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13266 s//\1/ 13267 q 13268 } 13269 /^X\/\(\/\/\)$/{ 13270 s//\1/ 13271 q 13272 } 13273 /^X\/\(\/\).*/{ 13274 s//\1/ 13275 q 13276 } 13277 s/.*/./; q'` 13278 13279# Avoid depending upon Character Ranges. 13280as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13281as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13282as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13283as_cr_digits='0123456789' 13284as_cr_alnum=$as_cr_Letters$as_cr_digits 13285 13286ECHO_C= ECHO_N= ECHO_T= 13287case `echo -n x` in #((((( 13288-n*) 13289 case `echo 'xy\c'` in 13290 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13291 xy) ECHO_C='\c';; 13292 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13293 ECHO_T=' ';; 13294 esac;; 13295*) 13296 ECHO_N='-n';; 13297esac 13298 13299rm -f conf$$ conf$$.exe conf$$.file 13300if test -d conf$$.dir; then 13301 rm -f conf$$.dir/conf$$.file 13302else 13303 rm -f conf$$.dir 13304 mkdir conf$$.dir 2>/dev/null 13305fi 13306if (echo >conf$$.file) 2>/dev/null; then 13307 if ln -s conf$$.file conf$$ 2>/dev/null; then 13308 as_ln_s='ln -s' 13309 # ... but there are two gotchas: 13310 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13311 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13312 # In both cases, we have to default to `cp -pR'. 13313 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13314 as_ln_s='cp -pR' 13315 elif ln conf$$.file conf$$ 2>/dev/null; then 13316 as_ln_s=ln 13317 else 13318 as_ln_s='cp -pR' 13319 fi 13320else 13321 as_ln_s='cp -pR' 13322fi 13323rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13324rmdir conf$$.dir 2>/dev/null 13325 13326 13327# as_fn_mkdir_p 13328# ------------- 13329# Create "$as_dir" as a directory, including parents if necessary. 13330as_fn_mkdir_p () 13331{ 13332 13333 case $as_dir in #( 13334 -*) as_dir=./$as_dir;; 13335 esac 13336 test -d "$as_dir" || eval $as_mkdir_p || { 13337 as_dirs= 13338 while :; do 13339 case $as_dir in #( 13340 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13341 *) as_qdir=$as_dir;; 13342 esac 13343 as_dirs="'$as_qdir' $as_dirs" 13344 as_dir=`$as_dirname -- "$as_dir" || 13345$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13346 X"$as_dir" : 'X\(//\)[^/]' \| \ 13347 X"$as_dir" : 'X\(//\)$' \| \ 13348 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13349$as_echo X"$as_dir" | 13350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13351 s//\1/ 13352 q 13353 } 13354 /^X\(\/\/\)[^/].*/{ 13355 s//\1/ 13356 q 13357 } 13358 /^X\(\/\/\)$/{ 13359 s//\1/ 13360 q 13361 } 13362 /^X\(\/\).*/{ 13363 s//\1/ 13364 q 13365 } 13366 s/.*/./; q'` 13367 test -d "$as_dir" && break 13368 done 13369 test -z "$as_dirs" || eval "mkdir $as_dirs" 13370 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13371 13372 13373} # as_fn_mkdir_p 13374if mkdir -p . 2>/dev/null; then 13375 as_mkdir_p='mkdir -p "$as_dir"' 13376else 13377 test -d ./-p && rmdir ./-p 13378 as_mkdir_p=false 13379fi 13380 13381 13382# as_fn_executable_p FILE 13383# ----------------------- 13384# Test if FILE is an executable regular file. 13385as_fn_executable_p () 13386{ 13387 test -f "$1" && test -x "$1" 13388} # as_fn_executable_p 13389as_test_x='test -x' 13390as_executable_p=as_fn_executable_p 13391 13392# Sed expression to map a string onto a valid CPP name. 13393as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13394 13395# Sed expression to map a string onto a valid variable name. 13396as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13397 13398 13399exec 6>&1 13400## ----------------------------------- ## 13401## Main body of $CONFIG_STATUS script. ## 13402## ----------------------------------- ## 13403_ASEOF 13404test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13405 13406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13407# Save the log message, to keep $0 and so on meaningful, and to 13408# report actual input values of CONFIG_FILES etc. instead of their 13409# values after options handling. 13410ac_log=" 13411This file was extended by osl $as_me 0.8.3, which was 13412generated by GNU Autoconf 2.69. Invocation command line was 13413 13414 CONFIG_FILES = $CONFIG_FILES 13415 CONFIG_HEADERS = $CONFIG_HEADERS 13416 CONFIG_LINKS = $CONFIG_LINKS 13417 CONFIG_COMMANDS = $CONFIG_COMMANDS 13418 $ $0 $@ 13419 13420on `(hostname || uname -n) 2>/dev/null | sed 1q` 13421" 13422 13423_ACEOF 13424 13425case $ac_config_files in *" 13426"*) set x $ac_config_files; shift; ac_config_files=$*;; 13427esac 13428 13429 13430 13431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13432# Files that config.status was made for. 13433config_files="$ac_config_files" 13434config_commands="$ac_config_commands" 13435 13436_ACEOF 13437 13438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13439ac_cs_usage="\ 13440\`$as_me' instantiates files and other configuration actions 13441from templates according to the current configuration. Unless the files 13442and actions are specified as TAGs, all are instantiated by default. 13443 13444Usage: $0 [OPTION]... [TAG]... 13445 13446 -h, --help print this help, then exit 13447 -V, --version print version number and configuration settings, then exit 13448 --config print configuration, then exit 13449 -q, --quiet, --silent 13450 do not print progress messages 13451 -d, --debug don't remove temporary files 13452 --recheck update $as_me by reconfiguring in the same conditions 13453 --file=FILE[:TEMPLATE] 13454 instantiate the configuration file FILE 13455 13456Configuration files: 13457$config_files 13458 13459Configuration commands: 13460$config_commands 13461 13462Report bugs to <cedric.bastoul@u-psud.fr,pouchet@cse.ohio-state.edu>." 13463 13464_ACEOF 13465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13466ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13467ac_cs_version="\\ 13468osl config.status 0.8.3 13469configured by $0, generated by GNU Autoconf 2.69, 13470 with options \\"\$ac_cs_config\\" 13471 13472Copyright (C) 2012 Free Software Foundation, Inc. 13473This config.status script is free software; the Free Software Foundation 13474gives unlimited permission to copy, distribute and modify it." 13475 13476ac_pwd='$ac_pwd' 13477srcdir='$srcdir' 13478INSTALL='$INSTALL' 13479MKDIR_P='$MKDIR_P' 13480AWK='$AWK' 13481test -n "\$AWK" || AWK=awk 13482_ACEOF 13483 13484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13485# The default lists apply if the user does not specify any file. 13486ac_need_defaults=: 13487while test $# != 0 13488do 13489 case $1 in 13490 --*=?*) 13491 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13492 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13493 ac_shift=: 13494 ;; 13495 --*=) 13496 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13497 ac_optarg= 13498 ac_shift=: 13499 ;; 13500 *) 13501 ac_option=$1 13502 ac_optarg=$2 13503 ac_shift=shift 13504 ;; 13505 esac 13506 13507 case $ac_option in 13508 # Handling of the options. 13509 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13510 ac_cs_recheck=: ;; 13511 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13512 $as_echo "$ac_cs_version"; exit ;; 13513 --config | --confi | --conf | --con | --co | --c ) 13514 $as_echo "$ac_cs_config"; exit ;; 13515 --debug | --debu | --deb | --de | --d | -d ) 13516 debug=: ;; 13517 --file | --fil | --fi | --f ) 13518 $ac_shift 13519 case $ac_optarg in 13520 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13521 '') as_fn_error $? "missing file argument" ;; 13522 esac 13523 as_fn_append CONFIG_FILES " '$ac_optarg'" 13524 ac_need_defaults=false;; 13525 --he | --h | --help | --hel | -h ) 13526 $as_echo "$ac_cs_usage"; exit ;; 13527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13528 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13529 ac_cs_silent=: ;; 13530 13531 # This is an error. 13532 -*) as_fn_error $? "unrecognized option: \`$1' 13533Try \`$0 --help' for more information." ;; 13534 13535 *) as_fn_append ac_config_targets " $1" 13536 ac_need_defaults=false ;; 13537 13538 esac 13539 shift 13540done 13541 13542ac_configure_extra_args= 13543 13544if $ac_cs_silent; then 13545 exec 6>/dev/null 13546 ac_configure_extra_args="$ac_configure_extra_args --silent" 13547fi 13548 13549_ACEOF 13550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13551if \$ac_cs_recheck; then 13552 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13553 shift 13554 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13555 CONFIG_SHELL='$SHELL' 13556 export CONFIG_SHELL 13557 exec "\$@" 13558fi 13559 13560_ACEOF 13561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13562exec 5>>config.log 13563{ 13564 echo 13565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13566## Running $as_me. ## 13567_ASBOX 13568 $as_echo "$ac_log" 13569} >&5 13570 13571_ACEOF 13572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13573# 13574# INIT-COMMANDS 13575# 13576AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13577 13578 13579# The HP-UX ksh and POSIX shell print the target directory to stdout 13580# if CDPATH is set. 13581(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13582 13583sed_quote_subst='$sed_quote_subst' 13584double_quote_subst='$double_quote_subst' 13585delay_variable_subst='$delay_variable_subst' 13586macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13587macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13588enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13589enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13590pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13591enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13592SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13593ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13594PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13595host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13596host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13597host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13598build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13599build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13600build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13601SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13602Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13603GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13604EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13605FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13606LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13607NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13608LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13609max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13610ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13611exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13612lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13613lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13614lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13615lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13616lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13617reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13618reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13619OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13620deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13621file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13622file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13623want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13624DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13625sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13626AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13627AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13628archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13629STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13630RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13631old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13632old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13633old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13634lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13635CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13636CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13637compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13638GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13639lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13640lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13641lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13642lt_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"`' 13643nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13644lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13645objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13646MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13647lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13648lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13649lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13650lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13651lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13652need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13653MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13654DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13655NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13656LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13657OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13658OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13659libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13660shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13661extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13662archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13663enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13664export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13665whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13666compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13667old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13668old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13669archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13670archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13671module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13672module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13673with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13674allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13675no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13676hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13677hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13678hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13679hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13680hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13681hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13682hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13683inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13684link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13685always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13686export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13687exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13688include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13689prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13690postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13691file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13692variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13693need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13694need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13695version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13696runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13697shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13698shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13699libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13700library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13701soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13702install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13703postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13704postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13705finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13706finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13707hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13708sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13709sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 13710hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13711enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13712enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13713enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13714old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13715striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13716 13717LTCC='$LTCC' 13718LTCFLAGS='$LTCFLAGS' 13719compiler='$compiler_DEFAULT' 13720 13721# A function that is used when there is no print builtin or printf. 13722func_fallback_echo () 13723{ 13724 eval 'cat <<_LTECHO_EOF 13725\$1 13726_LTECHO_EOF' 13727} 13728 13729# Quote evaled strings. 13730for var in SHELL \ 13731ECHO \ 13732PATH_SEPARATOR \ 13733SED \ 13734GREP \ 13735EGREP \ 13736FGREP \ 13737LD \ 13738NM \ 13739LN_S \ 13740lt_SP2NL \ 13741lt_NL2SP \ 13742reload_flag \ 13743OBJDUMP \ 13744deplibs_check_method \ 13745file_magic_cmd \ 13746file_magic_glob \ 13747want_nocaseglob \ 13748DLLTOOL \ 13749sharedlib_from_linklib_cmd \ 13750AR \ 13751AR_FLAGS \ 13752archiver_list_spec \ 13753STRIP \ 13754RANLIB \ 13755CC \ 13756CFLAGS \ 13757compiler \ 13758lt_cv_sys_global_symbol_pipe \ 13759lt_cv_sys_global_symbol_to_cdecl \ 13760lt_cv_sys_global_symbol_to_c_name_address \ 13761lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13762nm_file_list_spec \ 13763lt_prog_compiler_no_builtin_flag \ 13764lt_prog_compiler_pic \ 13765lt_prog_compiler_wl \ 13766lt_prog_compiler_static \ 13767lt_cv_prog_compiler_c_o \ 13768need_locks \ 13769MANIFEST_TOOL \ 13770DSYMUTIL \ 13771NMEDIT \ 13772LIPO \ 13773OTOOL \ 13774OTOOL64 \ 13775shrext_cmds \ 13776export_dynamic_flag_spec \ 13777whole_archive_flag_spec \ 13778compiler_needs_object \ 13779with_gnu_ld \ 13780allow_undefined_flag \ 13781no_undefined_flag \ 13782hardcode_libdir_flag_spec \ 13783hardcode_libdir_separator \ 13784exclude_expsyms \ 13785include_expsyms \ 13786file_list_spec \ 13787variables_saved_for_relink \ 13788libname_spec \ 13789library_names_spec \ 13790soname_spec \ 13791install_override_mode \ 13792finish_eval \ 13793old_striplib \ 13794striplib; do 13795 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13796 *[\\\\\\\`\\"\\\$]*) 13797 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13798 ;; 13799 *) 13800 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13801 ;; 13802 esac 13803done 13804 13805# Double-quote double-evaled strings. 13806for var in reload_cmds \ 13807old_postinstall_cmds \ 13808old_postuninstall_cmds \ 13809old_archive_cmds \ 13810extract_expsyms_cmds \ 13811old_archive_from_new_cmds \ 13812old_archive_from_expsyms_cmds \ 13813archive_cmds \ 13814archive_expsym_cmds \ 13815module_cmds \ 13816module_expsym_cmds \ 13817export_symbols_cmds \ 13818prelink_cmds \ 13819postlink_cmds \ 13820postinstall_cmds \ 13821postuninstall_cmds \ 13822finish_cmds \ 13823sys_lib_search_path_spec \ 13824sys_lib_dlsearch_path_spec; do 13825 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13826 *[\\\\\\\`\\"\\\$]*) 13827 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13828 ;; 13829 *) 13830 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13831 ;; 13832 esac 13833done 13834 13835ac_aux_dir='$ac_aux_dir' 13836xsi_shell='$xsi_shell' 13837lt_shell_append='$lt_shell_append' 13838 13839# See if we are running on zsh, and set the options which allow our 13840# commands through without removal of \ escapes INIT. 13841if test -n "\${ZSH_VERSION+set}" ; then 13842 setopt NO_GLOB_SUBST 13843fi 13844 13845 13846 PACKAGE='$PACKAGE' 13847 VERSION='$VERSION' 13848 TIMESTAMP='$TIMESTAMP' 13849 RM='$RM' 13850 ofile='$ofile' 13851 13852 13853 13854 13855_ACEOF 13856 13857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13858 13859# Handling of arguments. 13860for ac_config_target in $ac_config_targets 13861do 13862 case $ac_config_target in 13863 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13864 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13865 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13866 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13867 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; 13868 "include/osl/scop.h") CONFIG_FILES="$CONFIG_FILES include/osl/scop.h" ;; 13869 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 13870 13871 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13872 esac 13873done 13874 13875 13876# If the user did not use the arguments to specify the items to instantiate, 13877# then the envvar interface is used. Set only those that are not. 13878# We use the long form for the default assignment because of an extremely 13879# bizarre bug on SunOS 4.1.3. 13880if $ac_need_defaults; then 13881 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13882 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13883fi 13884 13885# Have a temporary directory for convenience. Make it in the build tree 13886# simply because there is no reason against having it here, and in addition, 13887# creating and moving files from /tmp can sometimes cause problems. 13888# Hook for its removal unless debugging. 13889# Note that there is a small window in which the directory will not be cleaned: 13890# after its creation but before its name has been assigned to `$tmp'. 13891$debug || 13892{ 13893 tmp= ac_tmp= 13894 trap 'exit_status=$? 13895 : "${ac_tmp:=$tmp}" 13896 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13897' 0 13898 trap 'as_fn_exit 1' 1 2 13 15 13899} 13900# Create a (secure) tmp directory for tmp files. 13901 13902{ 13903 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13904 test -d "$tmp" 13905} || 13906{ 13907 tmp=./conf$$-$RANDOM 13908 (umask 077 && mkdir "$tmp") 13909} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13910ac_tmp=$tmp 13911 13912# Set up the scripts for CONFIG_FILES section. 13913# No need to generate them if there are no CONFIG_FILES. 13914# This happens for instance with `./config.status config.h'. 13915if test -n "$CONFIG_FILES"; then 13916 13917 13918ac_cr=`echo X | tr X '\015'` 13919# On cygwin, bash can eat \r inside `` if the user requested igncr. 13920# But we know of no other shell where ac_cr would be empty at this 13921# point, so we can use a bashism as a fallback. 13922if test "x$ac_cr" = x; then 13923 eval ac_cr=\$\'\\r\' 13924fi 13925ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13926if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13927 ac_cs_awk_cr='\\r' 13928else 13929 ac_cs_awk_cr=$ac_cr 13930fi 13931 13932echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13933_ACEOF 13934 13935 13936{ 13937 echo "cat >conf$$subs.awk <<_ACEOF" && 13938 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13939 echo "_ACEOF" 13940} >conf$$subs.sh || 13941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13942ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13943ac_delim='%!_!# ' 13944for ac_last_try in false false false false false :; do 13945 . ./conf$$subs.sh || 13946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13947 13948 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13949 if test $ac_delim_n = $ac_delim_num; then 13950 break 13951 elif $ac_last_try; then 13952 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13953 else 13954 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13955 fi 13956done 13957rm -f conf$$subs.sh 13958 13959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13960cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13961_ACEOF 13962sed -n ' 13963h 13964s/^/S["/; s/!.*/"]=/ 13965p 13966g 13967s/^[^!]*!// 13968:repl 13969t repl 13970s/'"$ac_delim"'$// 13971t delim 13972:nl 13973h 13974s/\(.\{148\}\)..*/\1/ 13975t more1 13976s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13977p 13978n 13979b repl 13980:more1 13981s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13982p 13983g 13984s/.\{148\}// 13985t nl 13986:delim 13987h 13988s/\(.\{148\}\)..*/\1/ 13989t more2 13990s/["\\]/\\&/g; s/^/"/; s/$/"/ 13991p 13992b 13993:more2 13994s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13995p 13996g 13997s/.\{148\}// 13998t delim 13999' <conf$$subs.awk | sed ' 14000/^[^""]/{ 14001 N 14002 s/\n// 14003} 14004' >>$CONFIG_STATUS || ac_write_fail=1 14005rm -f conf$$subs.awk 14006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14007_ACAWK 14008cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14009 for (key in S) S_is_set[key] = 1 14010 FS = "" 14011 14012} 14013{ 14014 line = $ 0 14015 nfields = split(line, field, "@") 14016 substed = 0 14017 len = length(field[1]) 14018 for (i = 2; i < nfields; i++) { 14019 key = field[i] 14020 keylen = length(key) 14021 if (S_is_set[key]) { 14022 value = S[key] 14023 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14024 len += length(value) + length(field[++i]) 14025 substed = 1 14026 } else 14027 len += 1 + keylen 14028 } 14029 14030 print line 14031} 14032 14033_ACAWK 14034_ACEOF 14035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14036if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14037 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14038else 14039 cat 14040fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14041 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14042_ACEOF 14043 14044# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14045# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14046# trailing colons and then remove the whole line if VPATH becomes empty 14047# (actually we leave an empty line to preserve line numbers). 14048if test "x$srcdir" = x.; then 14049 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14050h 14051s/// 14052s/^/:/ 14053s/[ ]*$/:/ 14054s/:\$(srcdir):/:/g 14055s/:\${srcdir}:/:/g 14056s/:@srcdir@:/:/g 14057s/^:*// 14058s/:*$// 14059x 14060s/\(=[ ]*\).*/\1/ 14061G 14062s/\n// 14063s/^[^=]*=[ ]*$// 14064}' 14065fi 14066 14067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14068fi # test -n "$CONFIG_FILES" 14069 14070 14071eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 14072shift 14073for ac_tag 14074do 14075 case $ac_tag in 14076 :[FHLC]) ac_mode=$ac_tag; continue;; 14077 esac 14078 case $ac_mode$ac_tag in 14079 :[FHL]*:*);; 14080 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14081 :[FH]-) ac_tag=-:-;; 14082 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14083 esac 14084 ac_save_IFS=$IFS 14085 IFS=: 14086 set x $ac_tag 14087 IFS=$ac_save_IFS 14088 shift 14089 ac_file=$1 14090 shift 14091 14092 case $ac_mode in 14093 :L) ac_source=$1;; 14094 :[FH]) 14095 ac_file_inputs= 14096 for ac_f 14097 do 14098 case $ac_f in 14099 -) ac_f="$ac_tmp/stdin";; 14100 *) # Look for the file first in the build tree, then in the source tree 14101 # (if the path is not absolute). The absolute path cannot be DOS-style, 14102 # because $ac_f cannot contain `:'. 14103 test -f "$ac_f" || 14104 case $ac_f in 14105 [\\/$]*) false;; 14106 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14107 esac || 14108 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14109 esac 14110 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14111 as_fn_append ac_file_inputs " '$ac_f'" 14112 done 14113 14114 # Let's still pretend it is `configure' which instantiates (i.e., don't 14115 # use $as_me), people would be surprised to read: 14116 # /* config.h. Generated by config.status. */ 14117 configure_input='Generated from '` 14118 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14119 `' by configure.' 14120 if test x"$ac_file" != x-; then 14121 configure_input="$ac_file. $configure_input" 14122 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14123$as_echo "$as_me: creating $ac_file" >&6;} 14124 fi 14125 # Neutralize special characters interpreted by sed in replacement strings. 14126 case $configure_input in #( 14127 *\&* | *\|* | *\\* ) 14128 ac_sed_conf_input=`$as_echo "$configure_input" | 14129 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14130 *) ac_sed_conf_input=$configure_input;; 14131 esac 14132 14133 case $ac_tag in 14134 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14136 esac 14137 ;; 14138 esac 14139 14140 ac_dir=`$as_dirname -- "$ac_file" || 14141$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14142 X"$ac_file" : 'X\(//\)[^/]' \| \ 14143 X"$ac_file" : 'X\(//\)$' \| \ 14144 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14145$as_echo X"$ac_file" | 14146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14147 s//\1/ 14148 q 14149 } 14150 /^X\(\/\/\)[^/].*/{ 14151 s//\1/ 14152 q 14153 } 14154 /^X\(\/\/\)$/{ 14155 s//\1/ 14156 q 14157 } 14158 /^X\(\/\).*/{ 14159 s//\1/ 14160 q 14161 } 14162 s/.*/./; q'` 14163 as_dir="$ac_dir"; as_fn_mkdir_p 14164 ac_builddir=. 14165 14166case "$ac_dir" in 14167.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14168*) 14169 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14170 # A ".." for each directory in $ac_dir_suffix. 14171 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14172 case $ac_top_builddir_sub in 14173 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14174 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14175 esac ;; 14176esac 14177ac_abs_top_builddir=$ac_pwd 14178ac_abs_builddir=$ac_pwd$ac_dir_suffix 14179# for backward compatibility: 14180ac_top_builddir=$ac_top_build_prefix 14181 14182case $srcdir in 14183 .) # We are building in place. 14184 ac_srcdir=. 14185 ac_top_srcdir=$ac_top_builddir_sub 14186 ac_abs_top_srcdir=$ac_pwd ;; 14187 [\\/]* | ?:[\\/]* ) # Absolute name. 14188 ac_srcdir=$srcdir$ac_dir_suffix; 14189 ac_top_srcdir=$srcdir 14190 ac_abs_top_srcdir=$srcdir ;; 14191 *) # Relative name. 14192 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14193 ac_top_srcdir=$ac_top_build_prefix$srcdir 14194 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14195esac 14196ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14197 14198 14199 case $ac_mode in 14200 :F) 14201 # 14202 # CONFIG_FILE 14203 # 14204 14205 case $INSTALL in 14206 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14207 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14208 esac 14209 ac_MKDIR_P=$MKDIR_P 14210 case $MKDIR_P in 14211 [\\/$]* | ?:[\\/]* ) ;; 14212 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14213 esac 14214_ACEOF 14215 14216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14217# If the template does not know about datarootdir, expand it. 14218# FIXME: This hack should be removed a few years after 2.60. 14219ac_datarootdir_hack=; ac_datarootdir_seen= 14220ac_sed_dataroot=' 14221/datarootdir/ { 14222 p 14223 q 14224} 14225/@datadir@/p 14226/@docdir@/p 14227/@infodir@/p 14228/@localedir@/p 14229/@mandir@/p' 14230case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14231*datarootdir*) ac_datarootdir_seen=yes;; 14232*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14234$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14235_ACEOF 14236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14237 ac_datarootdir_hack=' 14238 s&@datadir@&$datadir&g 14239 s&@docdir@&$docdir&g 14240 s&@infodir@&$infodir&g 14241 s&@localedir@&$localedir&g 14242 s&@mandir@&$mandir&g 14243 s&\\\${datarootdir}&$datarootdir&g' ;; 14244esac 14245_ACEOF 14246 14247# Neutralize VPATH when `$srcdir' = `.'. 14248# Shell code in configure.ac might set extrasub. 14249# FIXME: do we really want to maintain this feature? 14250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14251ac_sed_extra="$ac_vpsub 14252$extrasub 14253_ACEOF 14254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14255:t 14256/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14257s|@configure_input@|$ac_sed_conf_input|;t t 14258s&@top_builddir@&$ac_top_builddir_sub&;t t 14259s&@top_build_prefix@&$ac_top_build_prefix&;t t 14260s&@srcdir@&$ac_srcdir&;t t 14261s&@abs_srcdir@&$ac_abs_srcdir&;t t 14262s&@top_srcdir@&$ac_top_srcdir&;t t 14263s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14264s&@builddir@&$ac_builddir&;t t 14265s&@abs_builddir@&$ac_abs_builddir&;t t 14266s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14267s&@INSTALL@&$ac_INSTALL&;t t 14268s&@MKDIR_P@&$ac_MKDIR_P&;t t 14269$ac_datarootdir_hack 14270" 14271eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14272 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14273 14274test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14275 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14276 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14277 "$ac_tmp/out"`; test -z "$ac_out"; } && 14278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14279which seems to be undefined. Please make sure it is defined" >&5 14280$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14281which seems to be undefined. Please make sure it is defined" >&2;} 14282 14283 rm -f "$ac_tmp/stdin" 14284 case $ac_file in 14285 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14286 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14287 esac \ 14288 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14289 ;; 14290 14291 14292 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14293$as_echo "$as_me: executing $ac_file commands" >&6;} 14294 ;; 14295 esac 14296 14297 14298 case $ac_file$ac_mode in 14299 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14300 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14301 # are listed without --file. Let's play safe and only enable the eval 14302 # if we detect the quoting. 14303 case $CONFIG_FILES in 14304 *\'*) eval set x "$CONFIG_FILES" ;; 14305 *) set x $CONFIG_FILES ;; 14306 esac 14307 shift 14308 for mf 14309 do 14310 # Strip MF so we end up with the name of the file. 14311 mf=`echo "$mf" | sed -e 's/:.*$//'` 14312 # Check whether this is an Automake generated Makefile or not. 14313 # We used to match only the files named `Makefile.in', but 14314 # some people rename them; so instead we look at the file content. 14315 # Grep'ing the first line is not enough: some people post-process 14316 # each Makefile.in and add a new line on top of each file to say so. 14317 # Grep'ing the whole file is not good either: AIX grep has a line 14318 # limit of 2048, but all sed's we know have understand at least 4000. 14319 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14320 dirpart=`$as_dirname -- "$mf" || 14321$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14322 X"$mf" : 'X\(//\)[^/]' \| \ 14323 X"$mf" : 'X\(//\)$' \| \ 14324 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14325$as_echo X"$mf" | 14326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14327 s//\1/ 14328 q 14329 } 14330 /^X\(\/\/\)[^/].*/{ 14331 s//\1/ 14332 q 14333 } 14334 /^X\(\/\/\)$/{ 14335 s//\1/ 14336 q 14337 } 14338 /^X\(\/\).*/{ 14339 s//\1/ 14340 q 14341 } 14342 s/.*/./; q'` 14343 else 14344 continue 14345 fi 14346 # Extract the definition of DEPDIR, am__include, and am__quote 14347 # from the Makefile without running `make'. 14348 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14349 test -z "$DEPDIR" && continue 14350 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14351 test -z "am__include" && continue 14352 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14353 # When using ansi2knr, U may be empty or an underscore; expand it 14354 U=`sed -n 's/^U = //p' < "$mf"` 14355 # Find all dependency output files, they are included files with 14356 # $(DEPDIR) in their names. We invoke sed twice because it is the 14357 # simplest approach to changing $(DEPDIR) to its actual value in the 14358 # expansion. 14359 for file in `sed -n " 14360 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14361 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14362 # Make sure the directory exists. 14363 test -f "$dirpart/$file" && continue 14364 fdir=`$as_dirname -- "$file" || 14365$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14366 X"$file" : 'X\(//\)[^/]' \| \ 14367 X"$file" : 'X\(//\)$' \| \ 14368 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14369$as_echo X"$file" | 14370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14371 s//\1/ 14372 q 14373 } 14374 /^X\(\/\/\)[^/].*/{ 14375 s//\1/ 14376 q 14377 } 14378 /^X\(\/\/\)$/{ 14379 s//\1/ 14380 q 14381 } 14382 /^X\(\/\).*/{ 14383 s//\1/ 14384 q 14385 } 14386 s/.*/./; q'` 14387 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14388 # echo "creating $dirpart/$file" 14389 echo '# dummy' > "$dirpart/$file" 14390 done 14391 done 14392} 14393 ;; 14394 "libtool":C) 14395 14396 # See if we are running on zsh, and set the options which allow our 14397 # commands through without removal of \ escapes. 14398 if test -n "${ZSH_VERSION+set}" ; then 14399 setopt NO_GLOB_SUBST 14400 fi 14401 14402 cfgfile="${ofile}T" 14403 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14404 $RM "$cfgfile" 14405 14406 cat <<_LT_EOF >> "$cfgfile" 14407#! $SHELL 14408 14409# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14410# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14411# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14412# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14413# 14414# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14415# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 14416# Foundation, Inc. 14417# Written by Gordon Matzigkeit, 1996 14418# 14419# This file is part of GNU Libtool. 14420# 14421# GNU Libtool is free software; you can redistribute it and/or 14422# modify it under the terms of the GNU General Public License as 14423# published by the Free Software Foundation; either version 2 of 14424# the License, or (at your option) any later version. 14425# 14426# As a special exception to the GNU General Public License, 14427# if you distribute this file as part of a program or library that 14428# is built using GNU Libtool, you may include this file under the 14429# same distribution terms that you use for the rest of that program. 14430# 14431# GNU Libtool is distributed in the hope that it will be useful, 14432# but WITHOUT ANY WARRANTY; without even the implied warranty of 14433# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14434# GNU General Public License for more details. 14435# 14436# You should have received a copy of the GNU General Public License 14437# along with GNU Libtool; see the file COPYING. If not, a copy 14438# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14439# obtained by writing to the Free Software Foundation, Inc., 14440# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14441 14442 14443# The names of the tagged configurations supported by this script. 14444available_tags="" 14445 14446# ### BEGIN LIBTOOL CONFIG 14447 14448# Which release of libtool.m4 was used? 14449macro_version=$macro_version 14450macro_revision=$macro_revision 14451 14452# Whether or not to build shared libraries. 14453build_libtool_libs=$enable_shared 14454 14455# Whether or not to build static libraries. 14456build_old_libs=$enable_static 14457 14458# What type of objects to build. 14459pic_mode=$pic_mode 14460 14461# Whether or not to optimize for fast installation. 14462fast_install=$enable_fast_install 14463 14464# Shell to use when invoking shell scripts. 14465SHELL=$lt_SHELL 14466 14467# An echo program that protects backslashes. 14468ECHO=$lt_ECHO 14469 14470# The PATH separator for the build system. 14471PATH_SEPARATOR=$lt_PATH_SEPARATOR 14472 14473# The host system. 14474host_alias=$host_alias 14475host=$host 14476host_os=$host_os 14477 14478# The build system. 14479build_alias=$build_alias 14480build=$build 14481build_os=$build_os 14482 14483# A sed program that does not truncate output. 14484SED=$lt_SED 14485 14486# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14487Xsed="\$SED -e 1s/^X//" 14488 14489# A grep program that handles long lines. 14490GREP=$lt_GREP 14491 14492# An ERE matcher. 14493EGREP=$lt_EGREP 14494 14495# A literal string matcher. 14496FGREP=$lt_FGREP 14497 14498# A BSD- or MS-compatible name lister. 14499NM=$lt_NM 14500 14501# Whether we need soft or hard links. 14502LN_S=$lt_LN_S 14503 14504# What is the maximum length of a command? 14505max_cmd_len=$max_cmd_len 14506 14507# Object file suffix (normally "o"). 14508objext=$ac_objext 14509 14510# Executable file suffix (normally ""). 14511exeext=$exeext 14512 14513# whether the shell understands "unset". 14514lt_unset=$lt_unset 14515 14516# turn spaces into newlines. 14517SP2NL=$lt_lt_SP2NL 14518 14519# turn newlines into spaces. 14520NL2SP=$lt_lt_NL2SP 14521 14522# convert \$build file names to \$host format. 14523to_host_file_cmd=$lt_cv_to_host_file_cmd 14524 14525# convert \$build files to toolchain format. 14526to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14527 14528# An object symbol dumper. 14529OBJDUMP=$lt_OBJDUMP 14530 14531# Method to check whether dependent libraries are shared objects. 14532deplibs_check_method=$lt_deplibs_check_method 14533 14534# Command to use when deplibs_check_method = "file_magic". 14535file_magic_cmd=$lt_file_magic_cmd 14536 14537# How to find potential files when deplibs_check_method = "file_magic". 14538file_magic_glob=$lt_file_magic_glob 14539 14540# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14541want_nocaseglob=$lt_want_nocaseglob 14542 14543# DLL creation program. 14544DLLTOOL=$lt_DLLTOOL 14545 14546# Command to associate shared and link libraries. 14547sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14548 14549# The archiver. 14550AR=$lt_AR 14551 14552# Flags to create an archive. 14553AR_FLAGS=$lt_AR_FLAGS 14554 14555# How to feed a file listing to the archiver. 14556archiver_list_spec=$lt_archiver_list_spec 14557 14558# A symbol stripping program. 14559STRIP=$lt_STRIP 14560 14561# Commands used to install an old-style archive. 14562RANLIB=$lt_RANLIB 14563old_postinstall_cmds=$lt_old_postinstall_cmds 14564old_postuninstall_cmds=$lt_old_postuninstall_cmds 14565 14566# Whether to use a lock for old archive extraction. 14567lock_old_archive_extraction=$lock_old_archive_extraction 14568 14569# A C compiler. 14570LTCC=$lt_CC 14571 14572# LTCC compiler flags. 14573LTCFLAGS=$lt_CFLAGS 14574 14575# Take the output of nm and produce a listing of raw symbols and C names. 14576global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14577 14578# Transform the output of nm in a proper C declaration. 14579global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14580 14581# Transform the output of nm in a C name address pair. 14582global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14583 14584# Transform the output of nm in a C name address pair when lib prefix is needed. 14585global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14586 14587# Specify filename containing input files for \$NM. 14588nm_file_list_spec=$lt_nm_file_list_spec 14589 14590# The root where to search for dependent libraries,and in which our libraries should be installed. 14591lt_sysroot=$lt_sysroot 14592 14593# The name of the directory that contains temporary libtool files. 14594objdir=$objdir 14595 14596# Used to examine libraries when file_magic_cmd begins with "file". 14597MAGIC_CMD=$MAGIC_CMD 14598 14599# Must we lock files when doing compilation? 14600need_locks=$lt_need_locks 14601 14602# Manifest tool. 14603MANIFEST_TOOL=$lt_MANIFEST_TOOL 14604 14605# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14606DSYMUTIL=$lt_DSYMUTIL 14607 14608# Tool to change global to local symbols on Mac OS X. 14609NMEDIT=$lt_NMEDIT 14610 14611# Tool to manipulate fat objects and archives on Mac OS X. 14612LIPO=$lt_LIPO 14613 14614# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14615OTOOL=$lt_OTOOL 14616 14617# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14618OTOOL64=$lt_OTOOL64 14619 14620# Old archive suffix (normally "a"). 14621libext=$libext 14622 14623# Shared library suffix (normally ".so"). 14624shrext_cmds=$lt_shrext_cmds 14625 14626# The commands to extract the exported symbol list from a shared archive. 14627extract_expsyms_cmds=$lt_extract_expsyms_cmds 14628 14629# Variables whose values should be saved in libtool wrapper scripts and 14630# restored at link time. 14631variables_saved_for_relink=$lt_variables_saved_for_relink 14632 14633# Do we need the "lib" prefix for modules? 14634need_lib_prefix=$need_lib_prefix 14635 14636# Do we need a version for libraries? 14637need_version=$need_version 14638 14639# Library versioning type. 14640version_type=$version_type 14641 14642# Shared library runtime path variable. 14643runpath_var=$runpath_var 14644 14645# Shared library path variable. 14646shlibpath_var=$shlibpath_var 14647 14648# Is shlibpath searched before the hard-coded library search path? 14649shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14650 14651# Format of library name prefix. 14652libname_spec=$lt_libname_spec 14653 14654# List of archive names. First name is the real one, the rest are links. 14655# The last name is the one that the linker finds with -lNAME 14656library_names_spec=$lt_library_names_spec 14657 14658# The coded name of the library, if different from the real name. 14659soname_spec=$lt_soname_spec 14660 14661# Permission mode override for installation of shared libraries. 14662install_override_mode=$lt_install_override_mode 14663 14664# Command to use after installation of a shared archive. 14665postinstall_cmds=$lt_postinstall_cmds 14666 14667# Command to use after uninstallation of a shared archive. 14668postuninstall_cmds=$lt_postuninstall_cmds 14669 14670# Commands used to finish a libtool library installation in a directory. 14671finish_cmds=$lt_finish_cmds 14672 14673# As "finish_cmds", except a single script fragment to be evaled but 14674# not shown. 14675finish_eval=$lt_finish_eval 14676 14677# Whether we should hardcode library paths into libraries. 14678hardcode_into_libs=$hardcode_into_libs 14679 14680# Compile-time system search path for libraries. 14681sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14682 14683# Run-time system search path for libraries. 14684sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14685 14686# Whether dlopen is supported. 14687dlopen_support=$enable_dlopen 14688 14689# Whether dlopen of programs is supported. 14690dlopen_self=$enable_dlopen_self 14691 14692# Whether dlopen of statically linked programs is supported. 14693dlopen_self_static=$enable_dlopen_self_static 14694 14695# Commands to strip libraries. 14696old_striplib=$lt_old_striplib 14697striplib=$lt_striplib 14698 14699 14700# The linker used to build libraries. 14701LD=$lt_LD 14702 14703# How to create reloadable object files. 14704reload_flag=$lt_reload_flag 14705reload_cmds=$lt_reload_cmds 14706 14707# Commands used to build an old-style archive. 14708old_archive_cmds=$lt_old_archive_cmds 14709 14710# A language specific compiler. 14711CC=$lt_compiler 14712 14713# Is the compiler the GNU compiler? 14714with_gcc=$GCC 14715 14716# Compiler flag to turn off builtin functions. 14717no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14718 14719# Additional compiler flags for building library objects. 14720pic_flag=$lt_lt_prog_compiler_pic 14721 14722# How to pass a linker flag through the compiler. 14723wl=$lt_lt_prog_compiler_wl 14724 14725# Compiler flag to prevent dynamic linking. 14726link_static_flag=$lt_lt_prog_compiler_static 14727 14728# Does compiler simultaneously support -c and -o options? 14729compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14730 14731# Whether or not to add -lc for building shared libraries. 14732build_libtool_need_lc=$archive_cmds_need_lc 14733 14734# Whether or not to disallow shared libs when runtime libs are static. 14735allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14736 14737# Compiler flag to allow reflexive dlopens. 14738export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14739 14740# Compiler flag to generate shared objects directly from archives. 14741whole_archive_flag_spec=$lt_whole_archive_flag_spec 14742 14743# Whether the compiler copes with passing no objects directly. 14744compiler_needs_object=$lt_compiler_needs_object 14745 14746# Create an old-style archive from a shared archive. 14747old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14748 14749# Create a temporary old-style archive to link instead of a shared archive. 14750old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14751 14752# Commands used to build a shared archive. 14753archive_cmds=$lt_archive_cmds 14754archive_expsym_cmds=$lt_archive_expsym_cmds 14755 14756# Commands used to build a loadable module if different from building 14757# a shared archive. 14758module_cmds=$lt_module_cmds 14759module_expsym_cmds=$lt_module_expsym_cmds 14760 14761# Whether we are building with GNU ld or not. 14762with_gnu_ld=$lt_with_gnu_ld 14763 14764# Flag that allows shared libraries with undefined symbols to be built. 14765allow_undefined_flag=$lt_allow_undefined_flag 14766 14767# Flag that enforces no undefined symbols. 14768no_undefined_flag=$lt_no_undefined_flag 14769 14770# Flag to hardcode \$libdir into a binary during linking. 14771# This must work even if \$libdir does not exist 14772hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14773 14774# Whether we need a single "-rpath" flag with a separated argument. 14775hardcode_libdir_separator=$lt_hardcode_libdir_separator 14776 14777# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14778# DIR into the resulting binary. 14779hardcode_direct=$hardcode_direct 14780 14781# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14782# DIR into the resulting binary and the resulting library dependency is 14783# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14784# library is relocated. 14785hardcode_direct_absolute=$hardcode_direct_absolute 14786 14787# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14788# into the resulting binary. 14789hardcode_minus_L=$hardcode_minus_L 14790 14791# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14792# into the resulting binary. 14793hardcode_shlibpath_var=$hardcode_shlibpath_var 14794 14795# Set to "yes" if building a shared library automatically hardcodes DIR 14796# into the library and all subsequent libraries and executables linked 14797# against it. 14798hardcode_automatic=$hardcode_automatic 14799 14800# Set to yes if linker adds runtime paths of dependent libraries 14801# to runtime path list. 14802inherit_rpath=$inherit_rpath 14803 14804# Whether libtool must link a program against all its dependency libraries. 14805link_all_deplibs=$link_all_deplibs 14806 14807# Set to "yes" if exported symbols are required. 14808always_export_symbols=$always_export_symbols 14809 14810# The commands to list exported symbols. 14811export_symbols_cmds=$lt_export_symbols_cmds 14812 14813# Symbols that should not be listed in the preloaded symbols. 14814exclude_expsyms=$lt_exclude_expsyms 14815 14816# Symbols that must always be exported. 14817include_expsyms=$lt_include_expsyms 14818 14819# Commands necessary for linking programs (against libraries) with templates. 14820prelink_cmds=$lt_prelink_cmds 14821 14822# Commands necessary for finishing linking programs. 14823postlink_cmds=$lt_postlink_cmds 14824 14825# Specify filename containing input files. 14826file_list_spec=$lt_file_list_spec 14827 14828# How to hardcode a shared library path into an executable. 14829hardcode_action=$hardcode_action 14830 14831# ### END LIBTOOL CONFIG 14832 14833_LT_EOF 14834 14835 case $host_os in 14836 aix3*) 14837 cat <<\_LT_EOF >> "$cfgfile" 14838# AIX sometimes has problems with the GCC collect2 program. For some 14839# reason, if we set the COLLECT_NAMES environment variable, the problems 14840# vanish in a puff of smoke. 14841if test "X${COLLECT_NAMES+set}" != Xset; then 14842 COLLECT_NAMES= 14843 export COLLECT_NAMES 14844fi 14845_LT_EOF 14846 ;; 14847 esac 14848 14849 14850ltmain="$ac_aux_dir/ltmain.sh" 14851 14852 14853 # We use sed instead of cat because bash on DJGPP gets confused if 14854 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14855 # text mode, it properly converts lines to CR/LF. This bash problem 14856 # is reportedly fixed, but why not run on old versions too? 14857 sed '$q' "$ltmain" >> "$cfgfile" \ 14858 || (rm -f "$cfgfile"; exit 1) 14859 14860 if test x"$xsi_shell" = xyes; then 14861 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 14862func_dirname ()\ 14863{\ 14864\ case ${1} in\ 14865\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14866\ * ) func_dirname_result="${3}" ;;\ 14867\ esac\ 14868} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 14869 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14870 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14871test 0 -eq $? || _lt_function_replace_fail=: 14872 14873 14874 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 14875func_basename ()\ 14876{\ 14877\ func_basename_result="${1##*/}"\ 14878} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14879 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14881test 0 -eq $? || _lt_function_replace_fail=: 14882 14883 14884 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 14885func_dirname_and_basename ()\ 14886{\ 14887\ case ${1} in\ 14888\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14889\ * ) func_dirname_result="${3}" ;;\ 14890\ esac\ 14891\ func_basename_result="${1##*/}"\ 14892} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14893 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14895test 0 -eq $? || _lt_function_replace_fail=: 14896 14897 14898 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 14899func_stripname ()\ 14900{\ 14901\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 14902\ # positional parameters, so assign one to ordinary parameter first.\ 14903\ func_stripname_result=${3}\ 14904\ func_stripname_result=${func_stripname_result#"${1}"}\ 14905\ func_stripname_result=${func_stripname_result%"${2}"}\ 14906} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 14907 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14908 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14909test 0 -eq $? || _lt_function_replace_fail=: 14910 14911 14912 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 14913func_split_long_opt ()\ 14914{\ 14915\ func_split_long_opt_name=${1%%=*}\ 14916\ func_split_long_opt_arg=${1#*=}\ 14917} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14918 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14919 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14920test 0 -eq $? || _lt_function_replace_fail=: 14921 14922 14923 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 14924func_split_short_opt ()\ 14925{\ 14926\ func_split_short_opt_arg=${1#??}\ 14927\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 14928} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14929 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14930 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14931test 0 -eq $? || _lt_function_replace_fail=: 14932 14933 14934 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 14935func_lo2o ()\ 14936{\ 14937\ case ${1} in\ 14938\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 14939\ *) func_lo2o_result=${1} ;;\ 14940\ esac\ 14941} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 14942 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14943 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14944test 0 -eq $? || _lt_function_replace_fail=: 14945 14946 14947 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 14948func_xform ()\ 14949{\ 14950 func_xform_result=${1%.*}.lo\ 14951} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 14952 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14954test 0 -eq $? || _lt_function_replace_fail=: 14955 14956 14957 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 14958func_arith ()\ 14959{\ 14960 func_arith_result=$(( $* ))\ 14961} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 14962 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14963 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14964test 0 -eq $? || _lt_function_replace_fail=: 14965 14966 14967 sed -e '/^func_len ()$/,/^} # func_len /c\ 14968func_len ()\ 14969{\ 14970 func_len_result=${#1}\ 14971} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 14972 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14973 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14974test 0 -eq $? || _lt_function_replace_fail=: 14975 14976fi 14977 14978if test x"$lt_shell_append" = xyes; then 14979 sed -e '/^func_append ()$/,/^} # func_append /c\ 14980func_append ()\ 14981{\ 14982 eval "${1}+=\\${2}"\ 14983} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 14984 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14985 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14986test 0 -eq $? || _lt_function_replace_fail=: 14987 14988 14989 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 14990func_append_quoted ()\ 14991{\ 14992\ func_quote_for_eval "${2}"\ 14993\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 14994} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 14995 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14996 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14997test 0 -eq $? || _lt_function_replace_fail=: 14998 14999 15000 # Save a `func_append' function call where possible by direct use of '+=' 15001 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 15002 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15003 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15004 test 0 -eq $? || _lt_function_replace_fail=: 15005else 15006 # Save a `func_append' function call even when '+=' is not available 15007 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 15008 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15009 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15010 test 0 -eq $? || _lt_function_replace_fail=: 15011fi 15012 15013if test x"$_lt_function_replace_fail" = x":"; then 15014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 15015$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 15016fi 15017 15018 15019 mv -f "$cfgfile" "$ofile" || 15020 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15021 chmod +x "$ofile" 15022 15023 ;; 15024 "Makefile":F) test -z "$CONFIG_HEADERS" || echo timestamp > source/stamp-h.in ;; 15025 "doc/Makefile":F) test -z "$CONFIG_HEADERS" || echo timestamp > source/stamp-h.in ;; 15026 "doc/Doxyfile":F) test -z "$CONFIG_HEADERS" || echo timestamp > source/stamp-h.in ;; 15027 "include/osl/scop.h":F) test -z "$CONFIG_HEADERS" || echo timestamp > source/stamp-h.in ;; 15028 "tests/Makefile":F) test -z "$CONFIG_HEADERS" || echo timestamp > source/stamp-h.in ;; 15029 15030 esac 15031done # for ac_tag 15032 15033 15034as_fn_exit 0 15035_ACEOF 15036ac_clean_files=$ac_clean_files_save 15037 15038test $ac_write_fail = 0 || 15039 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15040 15041 15042# configure is writing to config.log, and then calls config.status. 15043# config.status does its own redirection, appending to config.log. 15044# Unfortunately, on DOS this fails, as config.log is still kept open 15045# by configure, so config.status won't be able to write to it; its 15046# output is simply discarded. So we exec the FD to /dev/null, 15047# effectively closing config.log, so it can be properly (re)opened and 15048# appended to by config.status. When coming back to configure, we 15049# need to make the FD available again. 15050if test "$no_create" != yes; then 15051 ac_cs_success=: 15052 ac_config_status_args= 15053 test "$silent" = yes && 15054 ac_config_status_args="$ac_config_status_args --quiet" 15055 exec 5>/dev/null 15056 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15057 exec 5>>config.log 15058 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15059 # would make configure fail if this is the last instruction. 15060 $ac_cs_success || as_fn_exit 1 15061fi 15062if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15064$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15065fi 15066 15067 15068 15069echo " /*-----------------------------------------------*" 15070echo " * OpenScop Library configuration is OK *" 15071echo " *-----------------------------------------------*/" 15072echo "It appears that your system is OK to start the OpenScop Library compilation." 15073echo "You need now to type \"make\". Then type \"make install\" to install it on your" 15074echo "system (log as root if necessary)." 15075