1#! /bin/sh 2# From configure.ac Revision. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.69 for Redland librdf Language bindings 1.0.17.1. 5# 6# Report bugs to <http://bugs.librdf.org/>. 7# 8# 9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33esac 34fi 35 36 37as_nl=' 38' 39export as_nl 40# Printing a long string crashes Solaris 7 /usr/bin/printf. 41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44# Prefer a ksh shell builtin over an external printf program on Solaris, 45# but without wasting forks for bash or zsh. 46if test -z "$BASH_VERSION$ZSH_VERSION" \ 47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='print -r --' 49 as_echo_n='print -rn --' 50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in #( 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73fi 74 75# The user is always right. 76if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# IFS 86# We need space, tab and new line, in precisely that order. Quoting is 87# there to prevent editors from complaining about space-tab. 88# (If _AS_PATH_WALK were called with IFS unset, it would disable word 89# splitting by setting IFS to empty value.) 90IFS=" "" $as_nl" 91 92# Find who we are. Look in the path if we contain no directory separator. 93as_myself= 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138# Use a proper internal environment variable to ensure we don't fall 139 # into an infinite loop, continuously re-executing ourselves. 140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 141 _as_can_reexec=no; export _as_can_reexec; 142 # We cannot yet assume a decent shell, so we have to provide a 143# neutralization value for shells without unset; and this also 144# works around shells that cannot unset nonexistent variables. 145# Preserve -v and -x to the replacement shell. 146BASH_ENV=/dev/null 147ENV=/dev/null 148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 149case $- in # (((( 150 *v*x* | *x*v* ) as_opts=-vx ;; 151 *v* ) as_opts=-v ;; 152 *x* ) as_opts=-x ;; 153 * ) as_opts= ;; 154esac 155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 156# Admittedly, this is quite paranoid, since all the known shells bail 157# out after a failed `exec'. 158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 159as_fn_exit 255 160 fi 161 # We don't want this to propagate to other subprocesses. 162 { _as_can_reexec=; unset _as_can_reexec;} 163if test "x$CONFIG_SHELL" = x; then 164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 165 emulate sh 166 NULLCMD=: 167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 168 # is contrary to our usage. Disable this feature. 169 alias -g '\${1+\"\$@\"}'='\"\$@\"' 170 setopt NO_GLOB_SUBST 171else 172 case \`(set -o) 2>/dev/null\` in #( 173 *posix*) : 174 set -o posix ;; #( 175 *) : 176 ;; 177esac 178fi 179" 180 as_required="as_fn_return () { (exit \$1); } 181as_fn_success () { as_fn_return 0; } 182as_fn_failure () { as_fn_return 1; } 183as_fn_ret_success () { return 0; } 184as_fn_ret_failure () { return 1; } 185 186exitcode=0 187as_fn_success || { exitcode=1; echo as_fn_success failed.; } 188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 192 193else 194 exitcode=1; echo positional parameters were not saved. 195fi 196test x\$exitcode = x0 || exit 1 197test -x / || exit 1" 198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 210test \$(( 1 + 1 )) = 2 || exit 1" 211 if (eval "$as_required") 2>/dev/null; then : 212 as_have_required=yes 213else 214 as_have_required=no 215fi 216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 217 218else 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220as_found=false 221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 222do 223 IFS=$as_save_IFS 224 test -z "$as_dir" && as_dir=. 225 as_found=: 226 case $as_dir in #( 227 /*) 228 for as_base in sh bash ksh sh5; do 229 # Try only shells that exist, to save several forks. 230 as_shell=$as_dir/$as_base 231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 233 CONFIG_SHELL=$as_shell as_have_required=yes 234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 235 break 2 236fi 237fi 238 done;; 239 esac 240 as_found=false 241done 242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi; } 246IFS=$as_save_IFS 247 248 249 if test "x$CONFIG_SHELL" != x; then : 250 export CONFIG_SHELL 251 # We cannot yet assume a decent shell, so we have to provide a 252# neutralization value for shells without unset; and this also 253# works around shells that cannot unset nonexistent variables. 254# Preserve -v and -x to the replacement shell. 255BASH_ENV=/dev/null 256ENV=/dev/null 257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 258case $- in # (((( 259 *v*x* | *x*v* ) as_opts=-vx ;; 260 *v* ) as_opts=-v ;; 261 *x* ) as_opts=-x ;; 262 * ) as_opts= ;; 263esac 264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 265# Admittedly, this is quite paranoid, since all the known shells bail 266# out after a failed `exec'. 267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 268exit 255 269fi 270 271 if test x$as_have_required = xno; then : 272 $as_echo "$0: This script requires a shell more modern than all" 273 $as_echo "$0: the shells that I found on your system." 274 if test x${ZSH_VERSION+set} = xset ; then 275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 $as_echo "$0: Please tell bug-autoconf@gnu.org and 279$0: http://bugs.librdf.org/ about your system, including 280$0: any error possibly output before this message. Then 281$0: install a modern shell, or manually run the script 282$0: under such a shell if you do 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='Redland librdf Language bindings' 593PACKAGE_TARNAME='redland-bindings' 594PACKAGE_VERSION='1.0.17.1' 595PACKAGE_STRING='Redland librdf Language bindings 1.0.17.1' 596PACKAGE_BUGREPORT='http://bugs.librdf.org/' 597PACKAGE_URL='' 598 599ac_unique_file="perl/example.pl" 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 640abs_top_builddir 641abs_top_srcdir 642STANDARD_CFLAGS 643ECHO 644MEM_LIBS 645MEM 646RASQAL_LDFLAGS 647RAPTOR_LDFLAGS 648LIBRDF_LDFLAGS 649LIBRDF_CPPFLAGS 650SD 651REDLAND_SWIG 652REDLAND_RUN 653REDLAND_VERSION 654REDLAND_CONFIG 655RUBY_VERSION 656PHP_VERSION 657RUBY_ARCH_INSTALLDIR 658RUBY_INSTALLDIR 659RUBY_SO_SUFFIX 660RUBY_INCLUDES 661RUBY_LDFLAGS 662RUBY_CFLAGS 663RUBY_PACKAGE 664PYTHON_VERSION 665PYTHON_LIB 666PYTHON_INCLUDES 667PYTHON_LIBEXT 668PYTHON_LDFLAGS 669PERL_MAKEMAKER_ARGS 670PERL_VERSION 671PHP_SWIG 672PHP_SO_SUFFIX 673PHP_LDFLAGS 674PHP_CFLAGS 675PHP_EXTENSION_DIR 676PHP_INCLUDES 677PHP_CONFIG 678LUA_LDFLAGS 679LUA_CFLAGS 680SWIG_PYTHON_ARGS 681PERLMAN3DIR 682PERLINSTALLSITEARCH 683PKG_CONFIG 684SWIG 685RUBY 686PHP 687PERL 688PYTHON 689LUA 690TAR 691CPP 692OTOOL64 693OTOOL 694LIPO 695NMEDIT 696DSYMUTIL 697MANIFEST_TOOL 698RANLIB 699ac_ct_AR 700AR 701DLLTOOL 702OBJDUMP 703NM 704ac_ct_DUMPBIN 705DUMPBIN 706LD 707FGREP 708EGREP 709GREP 710SED 711LIBTOOL 712LN_S 713am__fastdepCC_FALSE 714am__fastdepCC_TRUE 715CCDEPMODE 716am__nodep 717AMDEPBACKSLASH 718AMDEP_FALSE 719AMDEP_TRUE 720am__quote 721am__include 722DEPDIR 723OBJEXT 724EXEEXT 725ac_ct_CC 726CPPFLAGS 727LDFLAGS 728CFLAGS 729CC 730host_os 731host_vendor 732host_cpu 733host 734build_os 735build_vendor 736build_cpu 737build 738MAINT 739MAINTAINER_MODE_FALSE 740MAINTAINER_MODE_TRUE 741am__untar 742am__tar 743AMTAR 744am__leading_dot 745SET_MAKE 746AWK 747mkdir_p 748MKDIR_P 749INSTALL_STRIP_PROGRAM 750STRIP 751install_sh 752MAKEINFO 753AUTOHEADER 754AUTOMAKE 755AUTOCONF 756ACLOCAL 757VERSION 758PACKAGE 759CYGPATH_W 760am__isrc 761INSTALL_DATA 762INSTALL_SCRIPT 763INSTALL_PROGRAM 764target_alias 765host_alias 766build_alias 767LIBS 768ECHO_T 769ECHO_N 770ECHO_C 771DEFS 772mandir 773localedir 774libdir 775psdir 776pdfdir 777dvidir 778htmldir 779infodir 780docdir 781oldincludedir 782includedir 783localstatedir 784sharedstatedir 785sysconfdir 786datadir 787datarootdir 788libexecdir 789sbindir 790bindir 791program_transform_name 792prefix 793exec_prefix 794PACKAGE_URL 795PACKAGE_BUGREPORT 796PACKAGE_STRING 797PACKAGE_VERSION 798PACKAGE_TARNAME 799PACKAGE_NAME 800PATH_SEPARATOR 801SHELL' 802ac_subst_files='' 803ac_user_opts=' 804enable_option_checking 805enable_maintainer_mode 806enable_dependency_tracking 807enable_shared 808enable_static 809with_pic 810enable_fast_install 811with_gnu_ld 812with_sysroot 813enable_libtool_lock 814with_lua 815with_php_linking 816with_perl 817with_perl_makemaker_args 818with_python 819with_python_ldflags 820with_python_libext 821with_python_get_python_lib_args 822with_ruby_arch_install_dir_variable 823with_ruby_arch_install_dir 824with_ruby_install_dir_variable 825with_ruby_install_dir 826with_ruby_linking 827with_php 828with_ruby 829enable_release 830' 831 ac_precious_vars='build_alias 832host_alias 833target_alias 834CC 835CFLAGS 836LDFLAGS 837LIBS 838CPPFLAGS 839CPP 840PYTHON_LDFLAGS 841PYTHON_LIBEXT 842PYTHON_INCLUDES 843PYTHON_LIB' 844 845 846# Initialize some variables set by options. 847ac_init_help= 848ac_init_version=false 849ac_unrecognized_opts= 850ac_unrecognized_sep= 851# The variables have the same names as the options, with 852# dashes changed to underlines. 853cache_file=/dev/null 854exec_prefix=NONE 855no_create= 856no_recursion= 857prefix=NONE 858program_prefix=NONE 859program_suffix=NONE 860program_transform_name=s,x,x, 861silent= 862site= 863srcdir= 864verbose= 865x_includes=NONE 866x_libraries=NONE 867 868# Installation directory options. 869# These are left unexpanded so users can "make install exec_prefix=/foo" 870# and all the variables that are supposed to be based on exec_prefix 871# by default will actually change. 872# Use braces instead of parens because sh, perl, etc. also accept them. 873# (The list follows the same order as the GNU Coding Standards.) 874bindir='${exec_prefix}/bin' 875sbindir='${exec_prefix}/sbin' 876libexecdir='${exec_prefix}/libexec' 877datarootdir='${prefix}/share' 878datadir='${datarootdir}' 879sysconfdir='${prefix}/etc' 880sharedstatedir='${prefix}/com' 881localstatedir='${prefix}/var' 882includedir='${prefix}/include' 883oldincludedir='/usr/include' 884docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 885infodir='${datarootdir}/info' 886htmldir='${docdir}' 887dvidir='${docdir}' 888pdfdir='${docdir}' 889psdir='${docdir}' 890libdir='${exec_prefix}/lib' 891localedir='${datarootdir}/locale' 892mandir='${datarootdir}/man' 893 894ac_prev= 895ac_dashdash= 896for ac_option 897do 898 # If the previous option needs an argument, assign it. 899 if test -n "$ac_prev"; then 900 eval $ac_prev=\$ac_option 901 ac_prev= 902 continue 903 fi 904 905 case $ac_option in 906 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 907 *=) ac_optarg= ;; 908 *) ac_optarg=yes ;; 909 esac 910 911 # Accept the important Cygnus configure options, so we can diagnose typos. 912 913 case $ac_dashdash$ac_option in 914 --) 915 ac_dashdash=yes ;; 916 917 -bindir | --bindir | --bindi | --bind | --bin | --bi) 918 ac_prev=bindir ;; 919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 920 bindir=$ac_optarg ;; 921 922 -build | --build | --buil | --bui | --bu) 923 ac_prev=build_alias ;; 924 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 925 build_alias=$ac_optarg ;; 926 927 -cache-file | --cache-file | --cache-fil | --cache-fi \ 928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 929 ac_prev=cache_file ;; 930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 932 cache_file=$ac_optarg ;; 933 934 --config-cache | -C) 935 cache_file=config.cache ;; 936 937 -datadir | --datadir | --datadi | --datad) 938 ac_prev=datadir ;; 939 -datadir=* | --datadir=* | --datadi=* | --datad=*) 940 datadir=$ac_optarg ;; 941 942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 943 | --dataroo | --dataro | --datar) 944 ac_prev=datarootdir ;; 945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 947 datarootdir=$ac_optarg ;; 948 949 -disable-* | --disable-*) 950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 951 # Reject names that are not valid shell variable names. 952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 953 as_fn_error $? "invalid feature name: $ac_useropt" 954 ac_useropt_orig=$ac_useropt 955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 956 case $ac_user_opts in 957 *" 958"enable_$ac_useropt" 959"*) ;; 960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 961 ac_unrecognized_sep=', ';; 962 esac 963 eval enable_$ac_useropt=no ;; 964 965 -docdir | --docdir | --docdi | --doc | --do) 966 ac_prev=docdir ;; 967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 968 docdir=$ac_optarg ;; 969 970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 971 ac_prev=dvidir ;; 972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 973 dvidir=$ac_optarg ;; 974 975 -enable-* | --enable-*) 976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 977 # Reject names that are not valid shell variable names. 978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 979 as_fn_error $? "invalid feature name: $ac_useropt" 980 ac_useropt_orig=$ac_useropt 981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 982 case $ac_user_opts in 983 *" 984"enable_$ac_useropt" 985"*) ;; 986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 987 ac_unrecognized_sep=', ';; 988 esac 989 eval enable_$ac_useropt=\$ac_optarg ;; 990 991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 993 | --exec | --exe | --ex) 994 ac_prev=exec_prefix ;; 995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 997 | --exec=* | --exe=* | --ex=*) 998 exec_prefix=$ac_optarg ;; 999 1000 -gas | --gas | --ga | --g) 1001 # Obsolete; use --with-gas. 1002 with_gas=yes ;; 1003 1004 -help | --help | --hel | --he | -h) 1005 ac_init_help=long ;; 1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1007 ac_init_help=recursive ;; 1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1009 ac_init_help=short ;; 1010 1011 -host | --host | --hos | --ho) 1012 ac_prev=host_alias ;; 1013 -host=* | --host=* | --hos=* | --ho=*) 1014 host_alias=$ac_optarg ;; 1015 1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1017 ac_prev=htmldir ;; 1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1019 | --ht=*) 1020 htmldir=$ac_optarg ;; 1021 1022 -includedir | --includedir | --includedi | --included | --include \ 1023 | --includ | --inclu | --incl | --inc) 1024 ac_prev=includedir ;; 1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1026 | --includ=* | --inclu=* | --incl=* | --inc=*) 1027 includedir=$ac_optarg ;; 1028 1029 -infodir | --infodir | --infodi | --infod | --info | --inf) 1030 ac_prev=infodir ;; 1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1032 infodir=$ac_optarg ;; 1033 1034 -libdir | --libdir | --libdi | --libd) 1035 ac_prev=libdir ;; 1036 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1037 libdir=$ac_optarg ;; 1038 1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1040 | --libexe | --libex | --libe) 1041 ac_prev=libexecdir ;; 1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1043 | --libexe=* | --libex=* | --libe=*) 1044 libexecdir=$ac_optarg ;; 1045 1046 -localedir | --localedir | --localedi | --localed | --locale) 1047 ac_prev=localedir ;; 1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1049 localedir=$ac_optarg ;; 1050 1051 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1052 | --localstate | --localstat | --localsta | --localst | --locals) 1053 ac_prev=localstatedir ;; 1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1056 localstatedir=$ac_optarg ;; 1057 1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1059 ac_prev=mandir ;; 1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1061 mandir=$ac_optarg ;; 1062 1063 -nfp | --nfp | --nf) 1064 # Obsolete; use --without-fp. 1065 with_fp=no ;; 1066 1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1068 | --no-cr | --no-c | -n) 1069 no_create=yes ;; 1070 1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1073 no_recursion=yes ;; 1074 1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1077 | --oldin | --oldi | --old | --ol | --o) 1078 ac_prev=oldincludedir ;; 1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1082 oldincludedir=$ac_optarg ;; 1083 1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1085 ac_prev=prefix ;; 1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1087 prefix=$ac_optarg ;; 1088 1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1090 | --program-pre | --program-pr | --program-p) 1091 ac_prev=program_prefix ;; 1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1094 program_prefix=$ac_optarg ;; 1095 1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1097 | --program-suf | --program-su | --program-s) 1098 ac_prev=program_suffix ;; 1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1101 program_suffix=$ac_optarg ;; 1102 1103 -program-transform-name | --program-transform-name \ 1104 | --program-transform-nam | --program-transform-na \ 1105 | --program-transform-n | --program-transform- \ 1106 | --program-transform | --program-transfor \ 1107 | --program-transfo | --program-transf \ 1108 | --program-trans | --program-tran \ 1109 | --progr-tra | --program-tr | --program-t) 1110 ac_prev=program_transform_name ;; 1111 -program-transform-name=* | --program-transform-name=* \ 1112 | --program-transform-nam=* | --program-transform-na=* \ 1113 | --program-transform-n=* | --program-transform-=* \ 1114 | --program-transform=* | --program-transfor=* \ 1115 | --program-transfo=* | --program-transf=* \ 1116 | --program-trans=* | --program-tran=* \ 1117 | --progr-tra=* | --program-tr=* | --program-t=*) 1118 program_transform_name=$ac_optarg ;; 1119 1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1121 ac_prev=pdfdir ;; 1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1123 pdfdir=$ac_optarg ;; 1124 1125 -psdir | --psdir | --psdi | --psd | --ps) 1126 ac_prev=psdir ;; 1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1128 psdir=$ac_optarg ;; 1129 1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1131 | -silent | --silent | --silen | --sile | --sil) 1132 silent=yes ;; 1133 1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1135 ac_prev=sbindir ;; 1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1137 | --sbi=* | --sb=*) 1138 sbindir=$ac_optarg ;; 1139 1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1142 | --sharedst | --shareds | --shared | --share | --shar \ 1143 | --sha | --sh) 1144 ac_prev=sharedstatedir ;; 1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1148 | --sha=* | --sh=*) 1149 sharedstatedir=$ac_optarg ;; 1150 1151 -site | --site | --sit) 1152 ac_prev=site ;; 1153 -site=* | --site=* | --sit=*) 1154 site=$ac_optarg ;; 1155 1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1157 ac_prev=srcdir ;; 1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1159 srcdir=$ac_optarg ;; 1160 1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1162 | --syscon | --sysco | --sysc | --sys | --sy) 1163 ac_prev=sysconfdir ;; 1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1166 sysconfdir=$ac_optarg ;; 1167 1168 -target | --target | --targe | --targ | --tar | --ta | --t) 1169 ac_prev=target_alias ;; 1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1171 target_alias=$ac_optarg ;; 1172 1173 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1174 verbose=yes ;; 1175 1176 -version | --version | --versio | --versi | --vers | -V) 1177 ac_init_version=: ;; 1178 1179 -with-* | --with-*) 1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1181 # Reject names that are not valid shell variable names. 1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1183 as_fn_error $? "invalid package name: $ac_useropt" 1184 ac_useropt_orig=$ac_useropt 1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1186 case $ac_user_opts in 1187 *" 1188"with_$ac_useropt" 1189"*) ;; 1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1191 ac_unrecognized_sep=', ';; 1192 esac 1193 eval with_$ac_useropt=\$ac_optarg ;; 1194 1195 -without-* | --without-*) 1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1197 # Reject names that are not valid shell variable names. 1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1199 as_fn_error $? "invalid package name: $ac_useropt" 1200 ac_useropt_orig=$ac_useropt 1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1202 case $ac_user_opts in 1203 *" 1204"with_$ac_useropt" 1205"*) ;; 1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1207 ac_unrecognized_sep=', ';; 1208 esac 1209 eval with_$ac_useropt=no ;; 1210 1211 --x) 1212 # Obsolete; use --with-x. 1213 with_x=yes ;; 1214 1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1216 | --x-incl | --x-inc | --x-in | --x-i) 1217 ac_prev=x_includes ;; 1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1220 x_includes=$ac_optarg ;; 1221 1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1224 ac_prev=x_libraries ;; 1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1227 x_libraries=$ac_optarg ;; 1228 1229 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1230Try \`$0 --help' for more information" 1231 ;; 1232 1233 *=*) 1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1235 # Reject names that are not valid shell variable names. 1236 case $ac_envvar in #( 1237 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1238 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1239 esac 1240 eval $ac_envvar=\$ac_optarg 1241 export $ac_envvar ;; 1242 1243 *) 1244 # FIXME: should be removed in autoconf 3.0. 1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1248 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1249 ;; 1250 1251 esac 1252done 1253 1254if test -n "$ac_prev"; then 1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1256 as_fn_error $? "missing argument to $ac_option" 1257fi 1258 1259if test -n "$ac_unrecognized_opts"; then 1260 case $enable_option_checking in 1261 no) ;; 1262 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1264 esac 1265fi 1266 1267# Check all directory arguments for consistency. 1268for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1269 datadir sysconfdir sharedstatedir localstatedir includedir \ 1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1271 libdir localedir mandir 1272do 1273 eval ac_val=\$$ac_var 1274 # Remove trailing slashes. 1275 case $ac_val in 1276 */ ) 1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1278 eval $ac_var=\$ac_val;; 1279 esac 1280 # Be sure to have absolute directory names. 1281 case $ac_val in 1282 [\\/$]* | ?:[\\/]* ) continue;; 1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1284 esac 1285 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1286done 1287 1288# There might be people who depend on the old broken behavior: `$host' 1289# used to hold the argument of --host etc. 1290# FIXME: To remove some day. 1291build=$build_alias 1292host=$host_alias 1293target=$target_alias 1294 1295# FIXME: To remove some day. 1296if test "x$host_alias" != x; then 1297 if test "x$build_alias" = x; then 1298 cross_compiling=maybe 1299 elif test "x$build_alias" != "x$host_alias"; then 1300 cross_compiling=yes 1301 fi 1302fi 1303 1304ac_tool_prefix= 1305test -n "$host_alias" && ac_tool_prefix=$host_alias- 1306 1307test "$silent" = yes && exec 6>/dev/null 1308 1309 1310ac_pwd=`pwd` && test -n "$ac_pwd" && 1311ac_ls_di=`ls -di .` && 1312ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1313 as_fn_error $? "working directory cannot be determined" 1314test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1315 as_fn_error $? "pwd does not report name of working directory" 1316 1317 1318# Find the source files, if location was not specified. 1319if test -z "$srcdir"; then 1320 ac_srcdir_defaulted=yes 1321 # Try the directory containing this script, then the parent directory. 1322 ac_confdir=`$as_dirname -- "$as_myself" || 1323$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1324 X"$as_myself" : 'X\(//\)[^/]' \| \ 1325 X"$as_myself" : 'X\(//\)$' \| \ 1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1327$as_echo X"$as_myself" | 1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1329 s//\1/ 1330 q 1331 } 1332 /^X\(\/\/\)[^/].*/{ 1333 s//\1/ 1334 q 1335 } 1336 /^X\(\/\/\)$/{ 1337 s//\1/ 1338 q 1339 } 1340 /^X\(\/\).*/{ 1341 s//\1/ 1342 q 1343 } 1344 s/.*/./; q'` 1345 srcdir=$ac_confdir 1346 if test ! -r "$srcdir/$ac_unique_file"; then 1347 srcdir=.. 1348 fi 1349else 1350 ac_srcdir_defaulted=no 1351fi 1352if test ! -r "$srcdir/$ac_unique_file"; then 1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1354 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1355fi 1356ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1357ac_abs_confdir=`( 1358 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1359 pwd)` 1360# When building in place, set srcdir=. 1361if test "$ac_abs_confdir" = "$ac_pwd"; then 1362 srcdir=. 1363fi 1364# Remove unnecessary trailing slashes from srcdir. 1365# Double slashes in file names in object file debugging info 1366# mess up M-x gdb in Emacs. 1367case $srcdir in 1368*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1369esac 1370for ac_var in $ac_precious_vars; do 1371 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1372 eval ac_env_${ac_var}_value=\$${ac_var} 1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1374 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1375done 1376 1377# 1378# Report the --help message. 1379# 1380if test "$ac_init_help" = "long"; then 1381 # Omit some internal or obsolete options to make the list less imposing. 1382 # This message is too long to be a string in the A/UX 3.1 sh. 1383 cat <<_ACEOF 1384\`configure' configures Redland librdf Language bindings 1.0.17.1 to adapt to many kinds of systems. 1385 1386Usage: $0 [OPTION]... [VAR=VALUE]... 1387 1388To assign environment variables (e.g., CC, CFLAGS...), specify them as 1389VAR=VALUE. See below for descriptions of some of the useful variables. 1390 1391Defaults for the options are specified in brackets. 1392 1393Configuration: 1394 -h, --help display this help and exit 1395 --help=short display options specific to this package 1396 --help=recursive display the short help of all the included packages 1397 -V, --version display version information and exit 1398 -q, --quiet, --silent do not print \`checking ...' messages 1399 --cache-file=FILE cache test results in FILE [disabled] 1400 -C, --config-cache alias for \`--cache-file=config.cache' 1401 -n, --no-create do not create output files 1402 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1403 1404Installation directories: 1405 --prefix=PREFIX install architecture-independent files in PREFIX 1406 [$ac_default_prefix] 1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1408 [PREFIX] 1409 1410By default, \`make install' will install all the files in 1411\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1412an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1413for instance \`--prefix=\$HOME'. 1414 1415For better control, use the options below. 1416 1417Fine tuning of the installation directories: 1418 --bindir=DIR user executables [EPREFIX/bin] 1419 --sbindir=DIR system admin executables [EPREFIX/sbin] 1420 --libexecdir=DIR program executables [EPREFIX/libexec] 1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1424 --libdir=DIR object code libraries [EPREFIX/lib] 1425 --includedir=DIR C header files [PREFIX/include] 1426 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1429 --infodir=DIR info documentation [DATAROOTDIR/info] 1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1431 --mandir=DIR man documentation [DATAROOTDIR/man] 1432 --docdir=DIR documentation root 1433 [DATAROOTDIR/doc/redland-bindings] 1434 --htmldir=DIR html documentation [DOCDIR] 1435 --dvidir=DIR dvi documentation [DOCDIR] 1436 --pdfdir=DIR pdf documentation [DOCDIR] 1437 --psdir=DIR ps documentation [DOCDIR] 1438_ACEOF 1439 1440 cat <<\_ACEOF 1441 1442Program names: 1443 --program-prefix=PREFIX prepend PREFIX to installed program names 1444 --program-suffix=SUFFIX append SUFFIX to installed program names 1445 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1446 1447System types: 1448 --build=BUILD configure for building on BUILD [guessed] 1449 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1450_ACEOF 1451fi 1452 1453if test -n "$ac_init_help"; then 1454 case $ac_init_help in 1455 short | recursive ) echo "Configuration of Redland librdf Language bindings 1.0.17.1:";; 1456 esac 1457 cat <<\_ACEOF 1458 1459Optional Features: 1460 --disable-option-checking ignore unrecognized --enable/--with options 1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1463 --enable-maintainer-mode enable make rules and dependencies not useful 1464 (and sometimes confusing) to the casual installer 1465 --disable-dependency-tracking speeds up one-time build 1466 --enable-dependency-tracking do not reject slow dependency extractors 1467 --enable-shared[=PKGS] build shared libraries [default=yes] 1468 --enable-static[=PKGS] build static libraries [default=yes] 1469 --enable-fast-install[=PKGS] 1470 optimize for fast installation [default=yes] 1471 --disable-libtool-lock avoid locking (might break parallel builds) 1472 --enable-release Turn on optimizations (for maintainer). 1473 1474Optional Packages: 1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1477 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1478 both] 1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1480 --with-sysroot=DIR Search for dependent libraries within DIR 1481 (or the compiler's sysroot if not specified). 1482 --with-lua(=LUA) Enable the Lua interface 1483 --with-php-linking=TYPE Set PHP module linking type (so, dylib, bundle) 1484 --with-perl(=PERL) Enable the Perl interface 1485 --with-perl-makemaker-options=ARGS Set args for Perl Makefile.PL invocation (default '') 1486 --with-python(=PYTHON) Enable the Python interface 1487 --with-python-ldflags(=FLAGS) Set the Python linker flags 1488 --with-python-libext(=EXT) Python shared library file extension (default .so) 1489 --with-python-get-python-lib-args=ARGS Set args for Python distutils.sysconfig.get_python_lib() function (default '') 1490 --with-ruby-arch-install-dir-variable=NAME Set Ruby arch install directory config variable (default 'archdir') 1491 --with-ruby-arch-install-dir=NAME Set Ruby install directory (default 'auto') 1492 --with-ruby-install-dir-variable=NAME Set Ruby install directory config variable (default 'rubylibdir') 1493 --with-ruby-install-dir=NAME Set Ruby install directory (default 'auto') 1494 --with-ruby-linking=TYPE Set Ruby module linking type (so, dylib, bundle) 1495 --with-php(=PHP) Enable the PHP interface 1496 --with-ruby(=RUBY) Enable the Ruby interface 1497 1498Some influential environment variables: 1499 CC C compiler command 1500 CFLAGS C compiler flags 1501 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1502 nonstandard directory <lib dir> 1503 LIBS libraries to pass to the linker, e.g. -l<library> 1504 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1505 you have headers in a nonstandard directory <include dir> 1506 CPP C preprocessor 1507 PYTHON_LDFLAGS 1508 Python shared library link lines 1509 PYTHON_LIBEXT 1510 Python shared library file extension 1511 PYTHON_INCLUDES 1512 Install location of python includes 1513 PYTHON_LIB Install location of python libraries 1514 1515Use these variables to override the choices made by `configure' or to help 1516it to find libraries and programs with nonstandard names/locations. 1517 1518Report bugs to <http://bugs.librdf.org/>. 1519_ACEOF 1520ac_status=$? 1521fi 1522 1523if test "$ac_init_help" = "recursive"; then 1524 # If there are subdirs, report their specific --help. 1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1526 test -d "$ac_dir" || 1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1528 continue 1529 ac_builddir=. 1530 1531case "$ac_dir" in 1532.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1533*) 1534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1535 # A ".." for each directory in $ac_dir_suffix. 1536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1537 case $ac_top_builddir_sub in 1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1540 esac ;; 1541esac 1542ac_abs_top_builddir=$ac_pwd 1543ac_abs_builddir=$ac_pwd$ac_dir_suffix 1544# for backward compatibility: 1545ac_top_builddir=$ac_top_build_prefix 1546 1547case $srcdir in 1548 .) # We are building in place. 1549 ac_srcdir=. 1550 ac_top_srcdir=$ac_top_builddir_sub 1551 ac_abs_top_srcdir=$ac_pwd ;; 1552 [\\/]* | ?:[\\/]* ) # Absolute name. 1553 ac_srcdir=$srcdir$ac_dir_suffix; 1554 ac_top_srcdir=$srcdir 1555 ac_abs_top_srcdir=$srcdir ;; 1556 *) # Relative name. 1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1558 ac_top_srcdir=$ac_top_build_prefix$srcdir 1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1560esac 1561ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1562 1563 cd "$ac_dir" || { ac_status=$?; continue; } 1564 # Check for guested configure. 1565 if test -f "$ac_srcdir/configure.gnu"; then 1566 echo && 1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1568 elif test -f "$ac_srcdir/configure"; then 1569 echo && 1570 $SHELL "$ac_srcdir/configure" --help=recursive 1571 else 1572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1573 fi || ac_status=$? 1574 cd "$ac_pwd" || { ac_status=$?; break; } 1575 done 1576fi 1577 1578test -n "$ac_init_help" && exit $ac_status 1579if $ac_init_version; then 1580 cat <<\_ACEOF 1581Redland librdf Language bindings configure 1.0.17.1 1582generated by GNU Autoconf 2.69 1583 1584Copyright (C) 2012 Free Software Foundation, Inc. 1585This configure script is free software; the Free Software Foundation 1586gives unlimited permission to copy, distribute and modify it. 1587_ACEOF 1588 exit 1589fi 1590 1591## ------------------------ ## 1592## Autoconf initialization. ## 1593## ------------------------ ## 1594 1595# ac_fn_c_try_compile LINENO 1596# -------------------------- 1597# Try to compile conftest.$ac_ext, and return whether this succeeded. 1598ac_fn_c_try_compile () 1599{ 1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1601 rm -f conftest.$ac_objext 1602 if { { ac_try="$ac_compile" 1603case "(($ac_try" in 1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1605 *) ac_try_echo=$ac_try;; 1606esac 1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1608$as_echo "$ac_try_echo"; } >&5 1609 (eval "$ac_compile") 2>conftest.err 1610 ac_status=$? 1611 if test -s conftest.err; then 1612 grep -v '^ *+' conftest.err >conftest.er1 1613 cat conftest.er1 >&5 1614 mv -f conftest.er1 conftest.err 1615 fi 1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1617 test $ac_status = 0; } && { 1618 test -z "$ac_c_werror_flag" || 1619 test ! -s conftest.err 1620 } && test -s conftest.$ac_objext; then : 1621 ac_retval=0 1622else 1623 $as_echo "$as_me: failed program was:" >&5 1624sed 's/^/| /' conftest.$ac_ext >&5 1625 1626 ac_retval=1 1627fi 1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1629 as_fn_set_status $ac_retval 1630 1631} # ac_fn_c_try_compile 1632 1633# ac_fn_c_try_link LINENO 1634# ----------------------- 1635# Try to link conftest.$ac_ext, and return whether this succeeded. 1636ac_fn_c_try_link () 1637{ 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639 rm -f conftest.$ac_objext conftest$ac_exeext 1640 if { { ac_try="$ac_link" 1641case "(($ac_try" in 1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1643 *) ac_try_echo=$ac_try;; 1644esac 1645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1646$as_echo "$ac_try_echo"; } >&5 1647 (eval "$ac_link") 2>conftest.err 1648 ac_status=$? 1649 if test -s conftest.err; then 1650 grep -v '^ *+' conftest.err >conftest.er1 1651 cat conftest.er1 >&5 1652 mv -f conftest.er1 conftest.err 1653 fi 1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1655 test $ac_status = 0; } && { 1656 test -z "$ac_c_werror_flag" || 1657 test ! -s conftest.err 1658 } && test -s conftest$ac_exeext && { 1659 test "$cross_compiling" = yes || 1660 test -x conftest$ac_exeext 1661 }; then : 1662 ac_retval=0 1663else 1664 $as_echo "$as_me: failed program was:" >&5 1665sed 's/^/| /' conftest.$ac_ext >&5 1666 1667 ac_retval=1 1668fi 1669 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1670 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1671 # interfere with the next link command; also delete a directory that is 1672 # left behind by Apple's compiler. We do this before executing the actions. 1673 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1675 as_fn_set_status $ac_retval 1676 1677} # ac_fn_c_try_link 1678 1679# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1680# ------------------------------------------------------- 1681# Tests whether HEADER exists and can be compiled using the include files in 1682# INCLUDES, setting the cache variable VAR accordingly. 1683ac_fn_c_check_header_compile () 1684{ 1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1687$as_echo_n "checking for $2... " >&6; } 1688if eval \${$3+:} false; then : 1689 $as_echo_n "(cached) " >&6 1690else 1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1692/* end confdefs.h. */ 1693$4 1694#include <$2> 1695_ACEOF 1696if ac_fn_c_try_compile "$LINENO"; then : 1697 eval "$3=yes" 1698else 1699 eval "$3=no" 1700fi 1701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1702fi 1703eval ac_res=\$$3 1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1705$as_echo "$ac_res" >&6; } 1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1707 1708} # ac_fn_c_check_header_compile 1709 1710# ac_fn_c_try_cpp LINENO 1711# ---------------------- 1712# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1713ac_fn_c_try_cpp () 1714{ 1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1716 if { { ac_try="$ac_cpp conftest.$ac_ext" 1717case "(($ac_try" in 1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1719 *) ac_try_echo=$ac_try;; 1720esac 1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1722$as_echo "$ac_try_echo"; } >&5 1723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1724 ac_status=$? 1725 if test -s conftest.err; then 1726 grep -v '^ *+' conftest.err >conftest.er1 1727 cat conftest.er1 >&5 1728 mv -f conftest.er1 conftest.err 1729 fi 1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1731 test $ac_status = 0; } > conftest.i && { 1732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1733 test ! -s conftest.err 1734 }; then : 1735 ac_retval=0 1736else 1737 $as_echo "$as_me: failed program was:" >&5 1738sed 's/^/| /' conftest.$ac_ext >&5 1739 1740 ac_retval=1 1741fi 1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1743 as_fn_set_status $ac_retval 1744 1745} # ac_fn_c_try_cpp 1746 1747# ac_fn_c_try_run LINENO 1748# ---------------------- 1749# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1750# that executables *can* be run. 1751ac_fn_c_try_run () 1752{ 1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1754 if { { ac_try="$ac_link" 1755case "(($ac_try" in 1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1757 *) ac_try_echo=$ac_try;; 1758esac 1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1760$as_echo "$ac_try_echo"; } >&5 1761 (eval "$ac_link") 2>&5 1762 ac_status=$? 1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1764 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1765 { { case "(($ac_try" in 1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1767 *) ac_try_echo=$ac_try;; 1768esac 1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1770$as_echo "$ac_try_echo"; } >&5 1771 (eval "$ac_try") 2>&5 1772 ac_status=$? 1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1774 test $ac_status = 0; }; }; then : 1775 ac_retval=0 1776else 1777 $as_echo "$as_me: program exited with status $ac_status" >&5 1778 $as_echo "$as_me: failed program was:" >&5 1779sed 's/^/| /' conftest.$ac_ext >&5 1780 1781 ac_retval=$ac_status 1782fi 1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1785 as_fn_set_status $ac_retval 1786 1787} # ac_fn_c_try_run 1788 1789# ac_fn_c_check_func LINENO FUNC VAR 1790# ---------------------------------- 1791# Tests whether FUNC exists, setting the cache variable VAR accordingly 1792ac_fn_c_check_func () 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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1801/* end confdefs.h. */ 1802/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1803 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1804#define $2 innocuous_$2 1805 1806/* System header to define __stub macros and hopefully few prototypes, 1807 which can conflict with char $2 (); below. 1808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1809 <limits.h> exists even on freestanding compilers. */ 1810 1811#ifdef __STDC__ 1812# include <limits.h> 1813#else 1814# include <assert.h> 1815#endif 1816 1817#undef $2 1818 1819/* Override any GCC internal prototype to avoid an error. 1820 Use char because int might match the return type of a GCC 1821 builtin and then its argument prototype would still apply. */ 1822#ifdef __cplusplus 1823extern "C" 1824#endif 1825char $2 (); 1826/* The GNU C library defines this for functions which it implements 1827 to always fail with ENOSYS. Some functions are actually named 1828 something starting with __ and the normal name is an alias. */ 1829#if defined __stub_$2 || defined __stub___$2 1830choke me 1831#endif 1832 1833int 1834main () 1835{ 1836return $2 (); 1837 ; 1838 return 0; 1839} 1840_ACEOF 1841if ac_fn_c_try_link "$LINENO"; then : 1842 eval "$3=yes" 1843else 1844 eval "$3=no" 1845fi 1846rm -f core conftest.err conftest.$ac_objext \ 1847 conftest$ac_exeext conftest.$ac_ext 1848fi 1849eval ac_res=\$$3 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1851$as_echo "$ac_res" >&6; } 1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1853 1854} # ac_fn_c_check_func 1855cat >config.log <<_ACEOF 1856This file contains any messages produced by compilers while 1857running configure, to aid debugging if configure makes a mistake. 1858 1859It was created by Redland librdf Language bindings $as_me 1.0.17.1, which was 1860generated by GNU Autoconf 2.69. Invocation command line was 1861 1862 $ $0 $@ 1863 1864_ACEOF 1865exec 5>>config.log 1866{ 1867cat <<_ASUNAME 1868## --------- ## 1869## Platform. ## 1870## --------- ## 1871 1872hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1873uname -m = `(uname -m) 2>/dev/null || echo unknown` 1874uname -r = `(uname -r) 2>/dev/null || echo unknown` 1875uname -s = `(uname -s) 2>/dev/null || echo unknown` 1876uname -v = `(uname -v) 2>/dev/null || echo unknown` 1877 1878/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1879/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1880 1881/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1882/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1883/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1884/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1885/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1886/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1887/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1888 1889_ASUNAME 1890 1891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1892for as_dir in $PATH 1893do 1894 IFS=$as_save_IFS 1895 test -z "$as_dir" && as_dir=. 1896 $as_echo "PATH: $as_dir" 1897 done 1898IFS=$as_save_IFS 1899 1900} >&5 1901 1902cat >&5 <<_ACEOF 1903 1904 1905## ----------- ## 1906## Core tests. ## 1907## ----------- ## 1908 1909_ACEOF 1910 1911 1912# Keep a trace of the command line. 1913# Strip out --no-create and --no-recursion so they do not pile up. 1914# Strip out --silent because we don't want to record it for future runs. 1915# Also quote any args containing shell meta-characters. 1916# Make two passes to allow for proper duplicate-argument suppression. 1917ac_configure_args= 1918ac_configure_args0= 1919ac_configure_args1= 1920ac_must_keep_next=false 1921for ac_pass in 1 2 1922do 1923 for ac_arg 1924 do 1925 case $ac_arg in 1926 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1927 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1928 | -silent | --silent | --silen | --sile | --sil) 1929 continue ;; 1930 *\'*) 1931 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1932 esac 1933 case $ac_pass in 1934 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1935 2) 1936 as_fn_append ac_configure_args1 " '$ac_arg'" 1937 if test $ac_must_keep_next = true; then 1938 ac_must_keep_next=false # Got value, back to normal. 1939 else 1940 case $ac_arg in 1941 *=* | --config-cache | -C | -disable-* | --disable-* \ 1942 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1943 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1944 | -with-* | --with-* | -without-* | --without-* | --x) 1945 case "$ac_configure_args0 " in 1946 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1947 esac 1948 ;; 1949 -* ) ac_must_keep_next=true ;; 1950 esac 1951 fi 1952 as_fn_append ac_configure_args " '$ac_arg'" 1953 ;; 1954 esac 1955 done 1956done 1957{ ac_configure_args0=; unset ac_configure_args0;} 1958{ ac_configure_args1=; unset ac_configure_args1;} 1959 1960# When interrupted or exit'd, cleanup temporary files, and complete 1961# config.log. We remove comments because anyway the quotes in there 1962# would cause problems or look ugly. 1963# WARNING: Use '\'' to represent an apostrophe within the trap. 1964# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1965trap 'exit_status=$? 1966 # Save into config.log some information that might help in debugging. 1967 { 1968 echo 1969 1970 $as_echo "## ---------------- ## 1971## Cache variables. ## 1972## ---------------- ##" 1973 echo 1974 # The following way of writing the cache mishandles newlines in values, 1975( 1976 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1977 eval ac_val=\$$ac_var 1978 case $ac_val in #( 1979 *${as_nl}*) 1980 case $ac_var in #( 1981 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1982$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1983 esac 1984 case $ac_var in #( 1985 _ | IFS | as_nl) ;; #( 1986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1987 *) { eval $ac_var=; unset $ac_var;} ;; 1988 esac ;; 1989 esac 1990 done 1991 (set) 2>&1 | 1992 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1993 *${as_nl}ac_space=\ *) 1994 sed -n \ 1995 "s/'\''/'\''\\\\'\'''\''/g; 1996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1997 ;; #( 1998 *) 1999 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2000 ;; 2001 esac | 2002 sort 2003) 2004 echo 2005 2006 $as_echo "## ----------------- ## 2007## Output variables. ## 2008## ----------------- ##" 2009 echo 2010 for ac_var in $ac_subst_vars 2011 do 2012 eval ac_val=\$$ac_var 2013 case $ac_val in 2014 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2015 esac 2016 $as_echo "$ac_var='\''$ac_val'\''" 2017 done | sort 2018 echo 2019 2020 if test -n "$ac_subst_files"; then 2021 $as_echo "## ------------------- ## 2022## File substitutions. ## 2023## ------------------- ##" 2024 echo 2025 for ac_var in $ac_subst_files 2026 do 2027 eval ac_val=\$$ac_var 2028 case $ac_val in 2029 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2030 esac 2031 $as_echo "$ac_var='\''$ac_val'\''" 2032 done | sort 2033 echo 2034 fi 2035 2036 if test -s confdefs.h; then 2037 $as_echo "## ----------- ## 2038## confdefs.h. ## 2039## ----------- ##" 2040 echo 2041 cat confdefs.h 2042 echo 2043 fi 2044 test "$ac_signal" != 0 && 2045 $as_echo "$as_me: caught signal $ac_signal" 2046 $as_echo "$as_me: exit $exit_status" 2047 } >&5 2048 rm -f core *.core core.conftest.* && 2049 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2050 exit $exit_status 2051' 0 2052for ac_signal in 1 2 13 15; do 2053 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2054done 2055ac_signal=0 2056 2057# confdefs.h avoids OS command line length limits that DEFS can exceed. 2058rm -f -r conftest* confdefs.h 2059 2060$as_echo "/* confdefs.h */" > confdefs.h 2061 2062# Predefined preprocessor variables. 2063 2064cat >>confdefs.h <<_ACEOF 2065#define PACKAGE_NAME "$PACKAGE_NAME" 2066_ACEOF 2067 2068cat >>confdefs.h <<_ACEOF 2069#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2070_ACEOF 2071 2072cat >>confdefs.h <<_ACEOF 2073#define PACKAGE_VERSION "$PACKAGE_VERSION" 2074_ACEOF 2075 2076cat >>confdefs.h <<_ACEOF 2077#define PACKAGE_STRING "$PACKAGE_STRING" 2078_ACEOF 2079 2080cat >>confdefs.h <<_ACEOF 2081#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2082_ACEOF 2083 2084cat >>confdefs.h <<_ACEOF 2085#define PACKAGE_URL "$PACKAGE_URL" 2086_ACEOF 2087 2088 2089# Let the site file select an alternate cache file if it wants to. 2090# Prefer an explicitly selected file to automatically selected ones. 2091ac_site_file1=NONE 2092ac_site_file2=NONE 2093if test -n "$CONFIG_SITE"; then 2094 # We do not want a PATH search for config.site. 2095 case $CONFIG_SITE in #(( 2096 -*) ac_site_file1=./$CONFIG_SITE;; 2097 */*) ac_site_file1=$CONFIG_SITE;; 2098 *) ac_site_file1=./$CONFIG_SITE;; 2099 esac 2100elif test "x$prefix" != xNONE; then 2101 ac_site_file1=$prefix/share/config.site 2102 ac_site_file2=$prefix/etc/config.site 2103else 2104 ac_site_file1=$ac_default_prefix/share/config.site 2105 ac_site_file2=$ac_default_prefix/etc/config.site 2106fi 2107for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2108do 2109 test "x$ac_site_file" = xNONE && continue 2110 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2111 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2112$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2113 sed 's/^/| /' "$ac_site_file" >&5 2114 . "$ac_site_file" \ 2115 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2117as_fn_error $? "failed to load site script $ac_site_file 2118See \`config.log' for more details" "$LINENO" 5; } 2119 fi 2120done 2121 2122if test -r "$cache_file"; then 2123 # Some versions of bash will fail to source /dev/null (special files 2124 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2125 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2127$as_echo "$as_me: loading cache $cache_file" >&6;} 2128 case $cache_file in 2129 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2130 *) . "./$cache_file";; 2131 esac 2132 fi 2133else 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2135$as_echo "$as_me: creating cache $cache_file" >&6;} 2136 >$cache_file 2137fi 2138 2139# Check that the precious variables saved in the cache have kept the same 2140# value. 2141ac_cache_corrupted=false 2142for ac_var in $ac_precious_vars; do 2143 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2144 eval ac_new_set=\$ac_env_${ac_var}_set 2145 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2146 eval ac_new_val=\$ac_env_${ac_var}_value 2147 case $ac_old_set,$ac_new_set in 2148 set,) 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2150$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2151 ac_cache_corrupted=: ;; 2152 ,set) 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2154$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2155 ac_cache_corrupted=: ;; 2156 ,);; 2157 *) 2158 if test "x$ac_old_val" != "x$ac_new_val"; then 2159 # differences in whitespace do not lead to failure. 2160 ac_old_val_w=`echo x $ac_old_val` 2161 ac_new_val_w=`echo x $ac_new_val` 2162 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2164$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2165 ac_cache_corrupted=: 2166 else 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2168$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2169 eval $ac_var=\$ac_old_val 2170 fi 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2172$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2174$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2175 fi;; 2176 esac 2177 # Pass precious variables to config.status. 2178 if test "$ac_new_set" = set; then 2179 case $ac_new_val in 2180 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2181 *) ac_arg=$ac_var=$ac_new_val ;; 2182 esac 2183 case " $ac_configure_args " in 2184 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2185 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2186 esac 2187 fi 2188done 2189if $ac_cache_corrupted; then 2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2193$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2194 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2195fi 2196## -------------------- ## 2197## Main body of script. ## 2198## -------------------- ## 2199 2200ac_ext=c 2201ac_cpp='$CPP $CPPFLAGS' 2202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2204ac_compiler_gnu=$ac_cv_c_compiler_gnu 2205 2206 2207 2208 2209ac_config_headers="$ac_config_headers bindings_config.h" 2210 2211ac_aux_dir= 2212for ac_dir in build "$srcdir"/build; do 2213 if test -f "$ac_dir/install-sh"; then 2214 ac_aux_dir=$ac_dir 2215 ac_install_sh="$ac_aux_dir/install-sh -c" 2216 break 2217 elif test -f "$ac_dir/install.sh"; then 2218 ac_aux_dir=$ac_dir 2219 ac_install_sh="$ac_aux_dir/install.sh -c" 2220 break 2221 elif test -f "$ac_dir/shtool"; then 2222 ac_aux_dir=$ac_dir 2223 ac_install_sh="$ac_aux_dir/shtool install -c" 2224 break 2225 fi 2226done 2227if test -z "$ac_aux_dir"; then 2228 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5 2229fi 2230 2231# These three variables are undocumented and unsupported, 2232# and are intended to be withdrawn in a future Autoconf release. 2233# They can cause serious problems if a builder's source tree is in a directory 2234# whose full name contains unusual characters. 2235ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2236ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2237ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2238 2239 2240 2241am__api_version='1.11' 2242 2243# Find a good install program. We prefer a C program (faster), 2244# so one script is as good as another. But avoid the broken or 2245# incompatible versions: 2246# SysV /etc/install, /usr/sbin/install 2247# SunOS /usr/etc/install 2248# IRIX /sbin/install 2249# AIX /bin/install 2250# AmigaOS /C/install, which installs bootblocks on floppy discs 2251# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2252# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2253# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2254# OS/2's system install, which has a completely different semantic 2255# ./install, which can be erroneously created by make from ./install.sh. 2256# Reject install programs that cannot install multiple files. 2257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2258$as_echo_n "checking for a BSD-compatible install... " >&6; } 2259if test -z "$INSTALL"; then 2260if ${ac_cv_path_install+:} false; then : 2261 $as_echo_n "(cached) " >&6 2262else 2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2264for as_dir in $PATH 2265do 2266 IFS=$as_save_IFS 2267 test -z "$as_dir" && as_dir=. 2268 # Account for people who put trailing slashes in PATH elements. 2269case $as_dir/ in #(( 2270 ./ | .// | /[cC]/* | \ 2271 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2272 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2273 /usr/ucb/* ) ;; 2274 *) 2275 # OSF1 and SCO ODT 3.0 have their own names for install. 2276 # Don't use installbsd from OSF since it installs stuff as root 2277 # by default. 2278 for ac_prog in ginstall scoinst install; do 2279 for ac_exec_ext in '' $ac_executable_extensions; do 2280 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2281 if test $ac_prog = install && 2282 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2283 # AIX install. It has an incompatible calling convention. 2284 : 2285 elif test $ac_prog = install && 2286 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2287 # program-specific install script used by HP pwplus--don't use. 2288 : 2289 else 2290 rm -rf conftest.one conftest.two conftest.dir 2291 echo one > conftest.one 2292 echo two > conftest.two 2293 mkdir conftest.dir 2294 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2295 test -s conftest.one && test -s conftest.two && 2296 test -s conftest.dir/conftest.one && 2297 test -s conftest.dir/conftest.two 2298 then 2299 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2300 break 3 2301 fi 2302 fi 2303 fi 2304 done 2305 done 2306 ;; 2307esac 2308 2309 done 2310IFS=$as_save_IFS 2311 2312rm -rf conftest.one conftest.two conftest.dir 2313 2314fi 2315 if test "${ac_cv_path_install+set}" = set; then 2316 INSTALL=$ac_cv_path_install 2317 else 2318 # As a last resort, use the slow shell script. Don't cache a 2319 # value for INSTALL within a source directory, because that will 2320 # break other packages using the cache if that directory is 2321 # removed, or if the value is a relative name. 2322 INSTALL=$ac_install_sh 2323 fi 2324fi 2325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2326$as_echo "$INSTALL" >&6; } 2327 2328# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2329# It thinks the first close brace ends the variable substitution. 2330test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2331 2332test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2333 2334test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2335 2336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2337$as_echo_n "checking whether build environment is sane... " >&6; } 2338# Just in case 2339sleep 1 2340echo timestamp > conftest.file 2341# Reject unsafe characters in $srcdir or the absolute working directory 2342# name. Accept space and tab only in the latter. 2343am_lf=' 2344' 2345case `pwd` in 2346 *[\\\"\#\$\&\'\`$am_lf]*) 2347 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2348esac 2349case $srcdir in 2350 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2351 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2352esac 2353 2354# Do `set' in a subshell so we don't clobber the current shell's 2355# arguments. Must try -L first in case configure is actually a 2356# symlink; some systems play weird games with the mod time of symlinks 2357# (eg FreeBSD returns the mod time of the symlink's containing 2358# directory). 2359if ( 2360 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2361 if test "$*" = "X"; then 2362 # -L didn't work. 2363 set X `ls -t "$srcdir/configure" conftest.file` 2364 fi 2365 rm -f conftest.file 2366 if test "$*" != "X $srcdir/configure conftest.file" \ 2367 && test "$*" != "X conftest.file $srcdir/configure"; then 2368 2369 # If neither matched, then we have a broken ls. This can happen 2370 # if, for instance, CONFIG_SHELL is bash and it inherits a 2371 # broken ls alias from the environment. This has actually 2372 # happened. Such a system could not be considered "sane". 2373 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2374alias in your environment" "$LINENO" 5 2375 fi 2376 2377 test "$2" = conftest.file 2378 ) 2379then 2380 # Ok. 2381 : 2382else 2383 as_fn_error $? "newly created file is older than distributed files! 2384Check your system clock" "$LINENO" 5 2385fi 2386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2387$as_echo "yes" >&6; } 2388test "$program_prefix" != NONE && 2389 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2390# Use a double $ so make ignores it. 2391test "$program_suffix" != NONE && 2392 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2393# Double any \ or $. 2394# By default was `s,x,x', remove it if useless. 2395ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2396program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2397 2398# expand $ac_aux_dir to an absolute path 2399am_aux_dir=`cd $ac_aux_dir && pwd` 2400 2401if test x"${MISSING+set}" != xset; then 2402 case $am_aux_dir in 2403 *\ * | *\ *) 2404 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2405 *) 2406 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2407 esac 2408fi 2409# Use eval to expand $SHELL 2410if eval "$MISSING --run true"; then 2411 am_missing_run="$MISSING --run " 2412else 2413 am_missing_run= 2414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2415$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2416fi 2417 2418if test x"${install_sh}" != xset; then 2419 case $am_aux_dir in 2420 *\ * | *\ *) 2421 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2422 *) 2423 install_sh="\${SHELL} $am_aux_dir/install-sh" 2424 esac 2425fi 2426 2427# Installed binaries are usually stripped using `strip' when the user 2428# run `make install-strip'. However `strip' might not be the right 2429# tool to use in cross-compilation environments, therefore Automake 2430# will honor the `STRIP' environment variable to overrule this program. 2431if test "$cross_compiling" != no; then 2432 if test -n "$ac_tool_prefix"; then 2433 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2434set dummy ${ac_tool_prefix}strip; ac_word=$2 2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2436$as_echo_n "checking for $ac_word... " >&6; } 2437if ${ac_cv_prog_STRIP+:} false; then : 2438 $as_echo_n "(cached) " >&6 2439else 2440 if test -n "$STRIP"; then 2441 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2442else 2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2444for as_dir in $PATH 2445do 2446 IFS=$as_save_IFS 2447 test -z "$as_dir" && as_dir=. 2448 for ac_exec_ext in '' $ac_executable_extensions; do 2449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2450 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2452 break 2 2453 fi 2454done 2455 done 2456IFS=$as_save_IFS 2457 2458fi 2459fi 2460STRIP=$ac_cv_prog_STRIP 2461if test -n "$STRIP"; then 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2463$as_echo "$STRIP" >&6; } 2464else 2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2466$as_echo "no" >&6; } 2467fi 2468 2469 2470fi 2471if test -z "$ac_cv_prog_STRIP"; then 2472 ac_ct_STRIP=$STRIP 2473 # Extract the first word of "strip", so it can be a program name with args. 2474set dummy strip; ac_word=$2 2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2476$as_echo_n "checking for $ac_word... " >&6; } 2477if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2478 $as_echo_n "(cached) " >&6 2479else 2480 if test -n "$ac_ct_STRIP"; then 2481 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2482else 2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2484for as_dir in $PATH 2485do 2486 IFS=$as_save_IFS 2487 test -z "$as_dir" && as_dir=. 2488 for ac_exec_ext in '' $ac_executable_extensions; do 2489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2490 ac_cv_prog_ac_ct_STRIP="strip" 2491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2492 break 2 2493 fi 2494done 2495 done 2496IFS=$as_save_IFS 2497 2498fi 2499fi 2500ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2501if test -n "$ac_ct_STRIP"; then 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2503$as_echo "$ac_ct_STRIP" >&6; } 2504else 2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2506$as_echo "no" >&6; } 2507fi 2508 2509 if test "x$ac_ct_STRIP" = x; then 2510 STRIP=":" 2511 else 2512 case $cross_compiling:$ac_tool_warned in 2513yes:) 2514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2516ac_tool_warned=yes ;; 2517esac 2518 STRIP=$ac_ct_STRIP 2519 fi 2520else 2521 STRIP="$ac_cv_prog_STRIP" 2522fi 2523 2524fi 2525INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2526 2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2528$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2529if test -z "$MKDIR_P"; then 2530 if ${ac_cv_path_mkdir+:} false; then : 2531 $as_echo_n "(cached) " >&6 2532else 2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2534for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2535do 2536 IFS=$as_save_IFS 2537 test -z "$as_dir" && as_dir=. 2538 for ac_prog in mkdir gmkdir; do 2539 for ac_exec_ext in '' $ac_executable_extensions; do 2540 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2541 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2542 'mkdir (GNU coreutils) '* | \ 2543 'mkdir (coreutils) '* | \ 2544 'mkdir (fileutils) '4.1*) 2545 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2546 break 3;; 2547 esac 2548 done 2549 done 2550 done 2551IFS=$as_save_IFS 2552 2553fi 2554 2555 test -d ./--version && rmdir ./--version 2556 if test "${ac_cv_path_mkdir+set}" = set; then 2557 MKDIR_P="$ac_cv_path_mkdir -p" 2558 else 2559 # As a last resort, use the slow shell script. Don't cache a 2560 # value for MKDIR_P within a source directory, because that will 2561 # break other packages using the cache if that directory is 2562 # removed, or if the value is a relative name. 2563 MKDIR_P="$ac_install_sh -d" 2564 fi 2565fi 2566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2567$as_echo "$MKDIR_P" >&6; } 2568 2569mkdir_p="$MKDIR_P" 2570case $mkdir_p in 2571 [\\/$]* | ?:[\\/]*) ;; 2572 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2573esac 2574 2575for ac_prog in gawk mawk nawk awk 2576do 2577 # Extract the first word of "$ac_prog", so it can be a program name with args. 2578set dummy $ac_prog; ac_word=$2 2579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2580$as_echo_n "checking for $ac_word... " >&6; } 2581if ${ac_cv_prog_AWK+:} false; then : 2582 $as_echo_n "(cached) " >&6 2583else 2584 if test -n "$AWK"; then 2585 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2586else 2587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2588for as_dir in $PATH 2589do 2590 IFS=$as_save_IFS 2591 test -z "$as_dir" && as_dir=. 2592 for ac_exec_ext in '' $ac_executable_extensions; do 2593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2594 ac_cv_prog_AWK="$ac_prog" 2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2596 break 2 2597 fi 2598done 2599 done 2600IFS=$as_save_IFS 2601 2602fi 2603fi 2604AWK=$ac_cv_prog_AWK 2605if test -n "$AWK"; then 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2607$as_echo "$AWK" >&6; } 2608else 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2610$as_echo "no" >&6; } 2611fi 2612 2613 2614 test -n "$AWK" && break 2615done 2616 2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2618$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2619set x ${MAKE-make} 2620ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2621if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2622 $as_echo_n "(cached) " >&6 2623else 2624 cat >conftest.make <<\_ACEOF 2625SHELL = /bin/sh 2626all: 2627 @echo '@@@%%%=$(MAKE)=@@@%%%' 2628_ACEOF 2629# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2630case `${MAKE-make} -f conftest.make 2>/dev/null` in 2631 *@@@%%%=?*=@@@%%%*) 2632 eval ac_cv_prog_make_${ac_make}_set=yes;; 2633 *) 2634 eval ac_cv_prog_make_${ac_make}_set=no;; 2635esac 2636rm -f conftest.make 2637fi 2638if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2640$as_echo "yes" >&6; } 2641 SET_MAKE= 2642else 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2644$as_echo "no" >&6; } 2645 SET_MAKE="MAKE=${MAKE-make}" 2646fi 2647 2648rm -rf .tst 2>/dev/null 2649mkdir .tst 2>/dev/null 2650if test -d .tst; then 2651 am__leading_dot=. 2652else 2653 am__leading_dot=_ 2654fi 2655rmdir .tst 2>/dev/null 2656 2657if test "`cd $srcdir && pwd`" != "`pwd`"; then 2658 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2659 # is not polluted with repeated "-I." 2660 am__isrc=' -I$(srcdir)' 2661 # test to see if srcdir already configured 2662 if test -f $srcdir/config.status; then 2663 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2664 fi 2665fi 2666 2667# test whether we have cygpath 2668if test -z "$CYGPATH_W"; then 2669 if (cygpath --version) >/dev/null 2>/dev/null; then 2670 CYGPATH_W='cygpath -w' 2671 else 2672 CYGPATH_W=echo 2673 fi 2674fi 2675 2676 2677# Define the identity of the package. 2678 PACKAGE='redland-bindings' 2679 VERSION='1.0.17.1' 2680 2681 2682cat >>confdefs.h <<_ACEOF 2683#define PACKAGE "$PACKAGE" 2684_ACEOF 2685 2686 2687cat >>confdefs.h <<_ACEOF 2688#define VERSION "$VERSION" 2689_ACEOF 2690 2691# Some tools Automake needs. 2692 2693ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2694 2695 2696AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2697 2698 2699AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2700 2701 2702AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2703 2704 2705MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2706 2707# We need awk for the "check" target. The system "awk" is bad on 2708# some platforms. 2709# Always define AMTAR for backward compatibility. Yes, it's still used 2710# in the wild :-( We should find a proper way to deprecate it ... 2711AMTAR='$${TAR-tar}' 2712 2713am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2714 2715 2716 2717 2718 2719 2720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2721$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2722 # Check whether --enable-maintainer-mode was given. 2723if test "${enable_maintainer_mode+set}" = set; then : 2724 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2725else 2726 USE_MAINTAINER_MODE=no 2727fi 2728 2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2730$as_echo "$USE_MAINTAINER_MODE" >&6; } 2731 if test $USE_MAINTAINER_MODE = yes; then 2732 MAINTAINER_MODE_TRUE= 2733 MAINTAINER_MODE_FALSE='#' 2734else 2735 MAINTAINER_MODE_TRUE='#' 2736 MAINTAINER_MODE_FALSE= 2737fi 2738 2739 MAINT=$MAINTAINER_MODE_TRUE 2740 2741 2742 2743MIN_REDLAND_VERSION=1.0.15 2744 2745# Make sure we can run config.sub. 2746$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2747 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2748 2749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2750$as_echo_n "checking build system type... " >&6; } 2751if ${ac_cv_build+:} false; then : 2752 $as_echo_n "(cached) " >&6 2753else 2754 ac_build_alias=$build_alias 2755test "x$ac_build_alias" = x && 2756 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2757test "x$ac_build_alias" = x && 2758 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2759ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2760 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2761 2762fi 2763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2764$as_echo "$ac_cv_build" >&6; } 2765case $ac_cv_build in 2766*-*-*) ;; 2767*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2768esac 2769build=$ac_cv_build 2770ac_save_IFS=$IFS; IFS='-' 2771set x $ac_cv_build 2772shift 2773build_cpu=$1 2774build_vendor=$2 2775shift; shift 2776# Remember, the first character of IFS is used to create $*, 2777# except with old shells: 2778build_os=$* 2779IFS=$ac_save_IFS 2780case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2781 2782 2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2784$as_echo_n "checking host system type... " >&6; } 2785if ${ac_cv_host+:} false; then : 2786 $as_echo_n "(cached) " >&6 2787else 2788 if test "x$host_alias" = x; then 2789 ac_cv_host=$ac_cv_build 2790else 2791 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2793fi 2794 2795fi 2796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2797$as_echo "$ac_cv_host" >&6; } 2798case $ac_cv_host in 2799*-*-*) ;; 2800*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2801esac 2802host=$ac_cv_host 2803ac_save_IFS=$IFS; IFS='-' 2804set x $ac_cv_host 2805shift 2806host_cpu=$1 2807host_vendor=$2 2808shift; shift 2809# Remember, the first character of IFS is used to create $*, 2810# except with old shells: 2811host_os=$* 2812IFS=$ac_save_IFS 2813case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2814 2815 2816 2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2818$as_echo_n "checking whether build environment is sane... " >&6; } 2819# Just in case 2820sleep 1 2821echo timestamp > conftest.file 2822# Reject unsafe characters in $srcdir or the absolute working directory 2823# name. Accept space and tab only in the latter. 2824am_lf=' 2825' 2826case `pwd` in 2827 *[\\\"\#\$\&\'\`$am_lf]*) 2828 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2829esac 2830case $srcdir in 2831 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2832 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2833esac 2834 2835# Do `set' in a subshell so we don't clobber the current shell's 2836# arguments. Must try -L first in case configure is actually a 2837# symlink; some systems play weird games with the mod time of symlinks 2838# (eg FreeBSD returns the mod time of the symlink's containing 2839# directory). 2840if ( 2841 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2842 if test "$*" = "X"; then 2843 # -L didn't work. 2844 set X `ls -t "$srcdir/configure" conftest.file` 2845 fi 2846 rm -f conftest.file 2847 if test "$*" != "X $srcdir/configure conftest.file" \ 2848 && test "$*" != "X conftest.file $srcdir/configure"; then 2849 2850 # If neither matched, then we have a broken ls. This can happen 2851 # if, for instance, CONFIG_SHELL is bash and it inherits a 2852 # broken ls alias from the environment. This has actually 2853 # happened. Such a system could not be considered "sane". 2854 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2855alias in your environment" "$LINENO" 5 2856 fi 2857 2858 test "$2" = conftest.file 2859 ) 2860then 2861 # Ok. 2862 : 2863else 2864 as_fn_error $? "newly created file is older than distributed files! 2865Check your system clock" "$LINENO" 5 2866fi 2867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2868$as_echo "yes" >&6; } 2869ac_ext=c 2870ac_cpp='$CPP $CPPFLAGS' 2871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2873ac_compiler_gnu=$ac_cv_c_compiler_gnu 2874if test -n "$ac_tool_prefix"; then 2875 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2876set dummy ${ac_tool_prefix}gcc; ac_word=$2 2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2878$as_echo_n "checking for $ac_word... " >&6; } 2879if ${ac_cv_prog_CC+:} false; then : 2880 $as_echo_n "(cached) " >&6 2881else 2882 if test -n "$CC"; then 2883 ac_cv_prog_CC="$CC" # Let the user override the test. 2884else 2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2886for as_dir in $PATH 2887do 2888 IFS=$as_save_IFS 2889 test -z "$as_dir" && as_dir=. 2890 for ac_exec_ext in '' $ac_executable_extensions; do 2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2892 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2894 break 2 2895 fi 2896done 2897 done 2898IFS=$as_save_IFS 2899 2900fi 2901fi 2902CC=$ac_cv_prog_CC 2903if test -n "$CC"; then 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2905$as_echo "$CC" >&6; } 2906else 2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2908$as_echo "no" >&6; } 2909fi 2910 2911 2912fi 2913if test -z "$ac_cv_prog_CC"; then 2914 ac_ct_CC=$CC 2915 # Extract the first word of "gcc", so it can be a program name with args. 2916set dummy gcc; ac_word=$2 2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2918$as_echo_n "checking for $ac_word... " >&6; } 2919if ${ac_cv_prog_ac_ct_CC+:} false; then : 2920 $as_echo_n "(cached) " >&6 2921else 2922 if test -n "$ac_ct_CC"; then 2923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2924else 2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2926for as_dir in $PATH 2927do 2928 IFS=$as_save_IFS 2929 test -z "$as_dir" && as_dir=. 2930 for ac_exec_ext in '' $ac_executable_extensions; do 2931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2932 ac_cv_prog_ac_ct_CC="gcc" 2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2934 break 2 2935 fi 2936done 2937 done 2938IFS=$as_save_IFS 2939 2940fi 2941fi 2942ac_ct_CC=$ac_cv_prog_ac_ct_CC 2943if test -n "$ac_ct_CC"; then 2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2945$as_echo "$ac_ct_CC" >&6; } 2946else 2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2948$as_echo "no" >&6; } 2949fi 2950 2951 if test "x$ac_ct_CC" = x; then 2952 CC="" 2953 else 2954 case $cross_compiling:$ac_tool_warned in 2955yes:) 2956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2958ac_tool_warned=yes ;; 2959esac 2960 CC=$ac_ct_CC 2961 fi 2962else 2963 CC="$ac_cv_prog_CC" 2964fi 2965 2966if test -z "$CC"; then 2967 if test -n "$ac_tool_prefix"; then 2968 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2969set dummy ${ac_tool_prefix}cc; ac_word=$2 2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2971$as_echo_n "checking for $ac_word... " >&6; } 2972if ${ac_cv_prog_CC+:} false; then : 2973 $as_echo_n "(cached) " >&6 2974else 2975 if test -n "$CC"; then 2976 ac_cv_prog_CC="$CC" # Let the user override the test. 2977else 2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2979for as_dir in $PATH 2980do 2981 IFS=$as_save_IFS 2982 test -z "$as_dir" && as_dir=. 2983 for ac_exec_ext in '' $ac_executable_extensions; do 2984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2985 ac_cv_prog_CC="${ac_tool_prefix}cc" 2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2987 break 2 2988 fi 2989done 2990 done 2991IFS=$as_save_IFS 2992 2993fi 2994fi 2995CC=$ac_cv_prog_CC 2996if test -n "$CC"; then 2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2998$as_echo "$CC" >&6; } 2999else 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3001$as_echo "no" >&6; } 3002fi 3003 3004 3005 fi 3006fi 3007if test -z "$CC"; then 3008 # Extract the first word of "cc", so it can be a program name with args. 3009set dummy cc; ac_word=$2 3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3011$as_echo_n "checking for $ac_word... " >&6; } 3012if ${ac_cv_prog_CC+:} false; then : 3013 $as_echo_n "(cached) " >&6 3014else 3015 if test -n "$CC"; then 3016 ac_cv_prog_CC="$CC" # Let the user override the test. 3017else 3018 ac_prog_rejected=no 3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3020for as_dir in $PATH 3021do 3022 IFS=$as_save_IFS 3023 test -z "$as_dir" && as_dir=. 3024 for ac_exec_ext in '' $ac_executable_extensions; do 3025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3026 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3027 ac_prog_rejected=yes 3028 continue 3029 fi 3030 ac_cv_prog_CC="cc" 3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3032 break 2 3033 fi 3034done 3035 done 3036IFS=$as_save_IFS 3037 3038if test $ac_prog_rejected = yes; then 3039 # We found a bogon in the path, so make sure we never use it. 3040 set dummy $ac_cv_prog_CC 3041 shift 3042 if test $# != 0; then 3043 # We chose a different compiler from the bogus one. 3044 # However, it has the same basename, so the bogon will be chosen 3045 # first if we set CC to just the basename; use the full file name. 3046 shift 3047 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3048 fi 3049fi 3050fi 3051fi 3052CC=$ac_cv_prog_CC 3053if test -n "$CC"; then 3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3055$as_echo "$CC" >&6; } 3056else 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3058$as_echo "no" >&6; } 3059fi 3060 3061 3062fi 3063if test -z "$CC"; then 3064 if test -n "$ac_tool_prefix"; then 3065 for ac_prog in cl.exe 3066 do 3067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3068set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3070$as_echo_n "checking for $ac_word... " >&6; } 3071if ${ac_cv_prog_CC+:} false; then : 3072 $as_echo_n "(cached) " >&6 3073else 3074 if test -n "$CC"; then 3075 ac_cv_prog_CC="$CC" # Let the user override the test. 3076else 3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3078for as_dir in $PATH 3079do 3080 IFS=$as_save_IFS 3081 test -z "$as_dir" && as_dir=. 3082 for ac_exec_ext in '' $ac_executable_extensions; do 3083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3086 break 2 3087 fi 3088done 3089 done 3090IFS=$as_save_IFS 3091 3092fi 3093fi 3094CC=$ac_cv_prog_CC 3095if test -n "$CC"; then 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3097$as_echo "$CC" >&6; } 3098else 3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3100$as_echo "no" >&6; } 3101fi 3102 3103 3104 test -n "$CC" && break 3105 done 3106fi 3107if test -z "$CC"; then 3108 ac_ct_CC=$CC 3109 for ac_prog in cl.exe 3110do 3111 # Extract the first word of "$ac_prog", so it can be a program name with args. 3112set dummy $ac_prog; ac_word=$2 3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3114$as_echo_n "checking for $ac_word... " >&6; } 3115if ${ac_cv_prog_ac_ct_CC+:} false; then : 3116 $as_echo_n "(cached) " >&6 3117else 3118 if test -n "$ac_ct_CC"; then 3119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3120else 3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3122for as_dir in $PATH 3123do 3124 IFS=$as_save_IFS 3125 test -z "$as_dir" && as_dir=. 3126 for ac_exec_ext in '' $ac_executable_extensions; do 3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3128 ac_cv_prog_ac_ct_CC="$ac_prog" 3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3130 break 2 3131 fi 3132done 3133 done 3134IFS=$as_save_IFS 3135 3136fi 3137fi 3138ac_ct_CC=$ac_cv_prog_ac_ct_CC 3139if test -n "$ac_ct_CC"; then 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3141$as_echo "$ac_ct_CC" >&6; } 3142else 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3144$as_echo "no" >&6; } 3145fi 3146 3147 3148 test -n "$ac_ct_CC" && break 3149done 3150 3151 if test "x$ac_ct_CC" = x; then 3152 CC="" 3153 else 3154 case $cross_compiling:$ac_tool_warned in 3155yes:) 3156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3158ac_tool_warned=yes ;; 3159esac 3160 CC=$ac_ct_CC 3161 fi 3162fi 3163 3164fi 3165 3166 3167test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3169as_fn_error $? "no acceptable C compiler found in \$PATH 3170See \`config.log' for more details" "$LINENO" 5; } 3171 3172# Provide some information about the compiler. 3173$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3174set X $ac_compile 3175ac_compiler=$2 3176for ac_option in --version -v -V -qversion; do 3177 { { ac_try="$ac_compiler $ac_option >&5" 3178case "(($ac_try" in 3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3180 *) ac_try_echo=$ac_try;; 3181esac 3182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3183$as_echo "$ac_try_echo"; } >&5 3184 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3185 ac_status=$? 3186 if test -s conftest.err; then 3187 sed '10a\ 3188... rest of stderr output deleted ... 3189 10q' conftest.err >conftest.er1 3190 cat conftest.er1 >&5 3191 fi 3192 rm -f conftest.er1 conftest.err 3193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3194 test $ac_status = 0; } 3195done 3196 3197cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3198/* end confdefs.h. */ 3199 3200int 3201main () 3202{ 3203 3204 ; 3205 return 0; 3206} 3207_ACEOF 3208ac_clean_files_save=$ac_clean_files 3209ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3210# Try to create an executable without -o first, disregard a.out. 3211# It will help us diagnose broken compilers, and finding out an intuition 3212# of exeext. 3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3214$as_echo_n "checking whether the C compiler works... " >&6; } 3215ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3216 3217# The possible output files: 3218ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3219 3220ac_rmfiles= 3221for ac_file in $ac_files 3222do 3223 case $ac_file in 3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3225 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3226 esac 3227done 3228rm -f $ac_rmfiles 3229 3230if { { ac_try="$ac_link_default" 3231case "(($ac_try" in 3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3233 *) ac_try_echo=$ac_try;; 3234esac 3235eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3236$as_echo "$ac_try_echo"; } >&5 3237 (eval "$ac_link_default") 2>&5 3238 ac_status=$? 3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3240 test $ac_status = 0; }; then : 3241 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3242# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3243# in a Makefile. We should not override ac_cv_exeext if it was cached, 3244# so that the user can short-circuit this test for compilers unknown to 3245# Autoconf. 3246for ac_file in $ac_files '' 3247do 3248 test -f "$ac_file" || continue 3249 case $ac_file in 3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3251 ;; 3252 [ab].out ) 3253 # We found the default executable, but exeext='' is most 3254 # certainly right. 3255 break;; 3256 *.* ) 3257 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3258 then :; else 3259 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3260 fi 3261 # We set ac_cv_exeext here because the later test for it is not 3262 # safe: cross compilers may not add the suffix if given an `-o' 3263 # argument, so we may need to know it at that point already. 3264 # Even if this section looks crufty: it has the advantage of 3265 # actually working. 3266 break;; 3267 * ) 3268 break;; 3269 esac 3270done 3271test "$ac_cv_exeext" = no && ac_cv_exeext= 3272 3273else 3274 ac_file='' 3275fi 3276if test -z "$ac_file"; then : 3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3278$as_echo "no" >&6; } 3279$as_echo "$as_me: failed program was:" >&5 3280sed 's/^/| /' conftest.$ac_ext >&5 3281 3282{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3284as_fn_error 77 "C compiler cannot create executables 3285See \`config.log' for more details" "$LINENO" 5; } 3286else 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3288$as_echo "yes" >&6; } 3289fi 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3291$as_echo_n "checking for C compiler default output file name... " >&6; } 3292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3293$as_echo "$ac_file" >&6; } 3294ac_exeext=$ac_cv_exeext 3295 3296rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3297ac_clean_files=$ac_clean_files_save 3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3299$as_echo_n "checking for suffix of executables... " >&6; } 3300if { { ac_try="$ac_link" 3301case "(($ac_try" in 3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3303 *) ac_try_echo=$ac_try;; 3304esac 3305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3306$as_echo "$ac_try_echo"; } >&5 3307 (eval "$ac_link") 2>&5 3308 ac_status=$? 3309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3310 test $ac_status = 0; }; then : 3311 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3312# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3313# work properly (i.e., refer to `conftest.exe'), while it won't with 3314# `rm'. 3315for ac_file in conftest.exe conftest conftest.*; do 3316 test -f "$ac_file" || continue 3317 case $ac_file in 3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3319 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3320 break;; 3321 * ) break;; 3322 esac 3323done 3324else 3325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3327as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3328See \`config.log' for more details" "$LINENO" 5; } 3329fi 3330rm -f conftest conftest$ac_cv_exeext 3331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3332$as_echo "$ac_cv_exeext" >&6; } 3333 3334rm -f conftest.$ac_ext 3335EXEEXT=$ac_cv_exeext 3336ac_exeext=$EXEEXT 3337cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3338/* end confdefs.h. */ 3339#include <stdio.h> 3340int 3341main () 3342{ 3343FILE *f = fopen ("conftest.out", "w"); 3344 return ferror (f) || fclose (f) != 0; 3345 3346 ; 3347 return 0; 3348} 3349_ACEOF 3350ac_clean_files="$ac_clean_files conftest.out" 3351# Check that the compiler produces executables we can run. If not, either 3352# the compiler is broken, or we cross compile. 3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3354$as_echo_n "checking whether we are cross compiling... " >&6; } 3355if test "$cross_compiling" != yes; then 3356 { { ac_try="$ac_link" 3357case "(($ac_try" in 3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3359 *) ac_try_echo=$ac_try;; 3360esac 3361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3362$as_echo "$ac_try_echo"; } >&5 3363 (eval "$ac_link") 2>&5 3364 ac_status=$? 3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3366 test $ac_status = 0; } 3367 if { ac_try='./conftest$ac_cv_exeext' 3368 { { case "(($ac_try" in 3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3370 *) ac_try_echo=$ac_try;; 3371esac 3372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3373$as_echo "$ac_try_echo"; } >&5 3374 (eval "$ac_try") 2>&5 3375 ac_status=$? 3376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3377 test $ac_status = 0; }; }; then 3378 cross_compiling=no 3379 else 3380 if test "$cross_compiling" = maybe; then 3381 cross_compiling=yes 3382 else 3383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3385as_fn_error $? "cannot run C compiled programs. 3386If you meant to cross compile, use \`--host'. 3387See \`config.log' for more details" "$LINENO" 5; } 3388 fi 3389 fi 3390fi 3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3392$as_echo "$cross_compiling" >&6; } 3393 3394rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3395ac_clean_files=$ac_clean_files_save 3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3397$as_echo_n "checking for suffix of object files... " >&6; } 3398if ${ac_cv_objext+:} false; then : 3399 $as_echo_n "(cached) " >&6 3400else 3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3402/* end confdefs.h. */ 3403 3404int 3405main () 3406{ 3407 3408 ; 3409 return 0; 3410} 3411_ACEOF 3412rm -f conftest.o conftest.obj 3413if { { ac_try="$ac_compile" 3414case "(($ac_try" in 3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3416 *) ac_try_echo=$ac_try;; 3417esac 3418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3419$as_echo "$ac_try_echo"; } >&5 3420 (eval "$ac_compile") 2>&5 3421 ac_status=$? 3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3423 test $ac_status = 0; }; then : 3424 for ac_file in conftest.o conftest.obj conftest.*; do 3425 test -f "$ac_file" || continue; 3426 case $ac_file in 3427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3428 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3429 break;; 3430 esac 3431done 3432else 3433 $as_echo "$as_me: failed program was:" >&5 3434sed 's/^/| /' conftest.$ac_ext >&5 3435 3436{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3438as_fn_error $? "cannot compute suffix of object files: cannot compile 3439See \`config.log' for more details" "$LINENO" 5; } 3440fi 3441rm -f conftest.$ac_cv_objext conftest.$ac_ext 3442fi 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3444$as_echo "$ac_cv_objext" >&6; } 3445OBJEXT=$ac_cv_objext 3446ac_objext=$OBJEXT 3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3448$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3449if ${ac_cv_c_compiler_gnu+:} false; then : 3450 $as_echo_n "(cached) " >&6 3451else 3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3453/* end confdefs.h. */ 3454 3455int 3456main () 3457{ 3458#ifndef __GNUC__ 3459 choke me 3460#endif 3461 3462 ; 3463 return 0; 3464} 3465_ACEOF 3466if ac_fn_c_try_compile "$LINENO"; then : 3467 ac_compiler_gnu=yes 3468else 3469 ac_compiler_gnu=no 3470fi 3471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3472ac_cv_c_compiler_gnu=$ac_compiler_gnu 3473 3474fi 3475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3476$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3477if test $ac_compiler_gnu = yes; then 3478 GCC=yes 3479else 3480 GCC= 3481fi 3482ac_test_CFLAGS=${CFLAGS+set} 3483ac_save_CFLAGS=$CFLAGS 3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3485$as_echo_n "checking whether $CC accepts -g... " >&6; } 3486if ${ac_cv_prog_cc_g+:} false; then : 3487 $as_echo_n "(cached) " >&6 3488else 3489 ac_save_c_werror_flag=$ac_c_werror_flag 3490 ac_c_werror_flag=yes 3491 ac_cv_prog_cc_g=no 3492 CFLAGS="-g" 3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3494/* end confdefs.h. */ 3495 3496int 3497main () 3498{ 3499 3500 ; 3501 return 0; 3502} 3503_ACEOF 3504if ac_fn_c_try_compile "$LINENO"; then : 3505 ac_cv_prog_cc_g=yes 3506else 3507 CFLAGS="" 3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3509/* end confdefs.h. */ 3510 3511int 3512main () 3513{ 3514 3515 ; 3516 return 0; 3517} 3518_ACEOF 3519if ac_fn_c_try_compile "$LINENO"; then : 3520 3521else 3522 ac_c_werror_flag=$ac_save_c_werror_flag 3523 CFLAGS="-g" 3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3525/* end confdefs.h. */ 3526 3527int 3528main () 3529{ 3530 3531 ; 3532 return 0; 3533} 3534_ACEOF 3535if ac_fn_c_try_compile "$LINENO"; then : 3536 ac_cv_prog_cc_g=yes 3537fi 3538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3539fi 3540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3541fi 3542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3543 ac_c_werror_flag=$ac_save_c_werror_flag 3544fi 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3546$as_echo "$ac_cv_prog_cc_g" >&6; } 3547if test "$ac_test_CFLAGS" = set; then 3548 CFLAGS=$ac_save_CFLAGS 3549elif test $ac_cv_prog_cc_g = yes; then 3550 if test "$GCC" = yes; then 3551 CFLAGS="-g -O2" 3552 else 3553 CFLAGS="-g" 3554 fi 3555else 3556 if test "$GCC" = yes; then 3557 CFLAGS="-O2" 3558 else 3559 CFLAGS= 3560 fi 3561fi 3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3563$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3564if ${ac_cv_prog_cc_c89+:} false; then : 3565 $as_echo_n "(cached) " >&6 3566else 3567 ac_cv_prog_cc_c89=no 3568ac_save_CC=$CC 3569cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3570/* end confdefs.h. */ 3571#include <stdarg.h> 3572#include <stdio.h> 3573struct stat; 3574/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3575struct buf { int x; }; 3576FILE * (*rcsopen) (struct buf *, struct stat *, int); 3577static char *e (p, i) 3578 char **p; 3579 int i; 3580{ 3581 return p[i]; 3582} 3583static char *f (char * (*g) (char **, int), char **p, ...) 3584{ 3585 char *s; 3586 va_list v; 3587 va_start (v,p); 3588 s = g (p, va_arg (v,int)); 3589 va_end (v); 3590 return s; 3591} 3592 3593/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3594 function prototypes and stuff, but not '\xHH' hex character constants. 3595 These don't provoke an error unfortunately, instead are silently treated 3596 as 'x'. The following induces an error, until -std is added to get 3597 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3598 array size at least. It's necessary to write '\x00'==0 to get something 3599 that's true only with -std. */ 3600int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3601 3602/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3603 inside strings and character constants. */ 3604#define FOO(x) 'x' 3605int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3606 3607int test (int i, double x); 3608struct s1 {int (*f) (int a);}; 3609struct s2 {int (*f) (double a);}; 3610int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3611int argc; 3612char **argv; 3613int 3614main () 3615{ 3616return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3617 ; 3618 return 0; 3619} 3620_ACEOF 3621for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3622 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3623do 3624 CC="$ac_save_CC $ac_arg" 3625 if ac_fn_c_try_compile "$LINENO"; then : 3626 ac_cv_prog_cc_c89=$ac_arg 3627fi 3628rm -f core conftest.err conftest.$ac_objext 3629 test "x$ac_cv_prog_cc_c89" != "xno" && break 3630done 3631rm -f conftest.$ac_ext 3632CC=$ac_save_CC 3633 3634fi 3635# AC_CACHE_VAL 3636case "x$ac_cv_prog_cc_c89" in 3637 x) 3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3639$as_echo "none needed" >&6; } ;; 3640 xno) 3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3642$as_echo "unsupported" >&6; } ;; 3643 *) 3644 CC="$CC $ac_cv_prog_cc_c89" 3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3646$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3647esac 3648if test "x$ac_cv_prog_cc_c89" != xno; then : 3649 3650fi 3651 3652ac_ext=c 3653ac_cpp='$CPP $CPPFLAGS' 3654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3656ac_compiler_gnu=$ac_cv_c_compiler_gnu 3657DEPDIR="${am__leading_dot}deps" 3658 3659ac_config_commands="$ac_config_commands depfiles" 3660 3661 3662am_make=${MAKE-make} 3663cat > confinc << 'END' 3664am__doit: 3665 @echo this is the am__doit target 3666.PHONY: am__doit 3667END 3668# If we don't find an include directive, just comment out the code. 3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3670$as_echo_n "checking for style of include used by $am_make... " >&6; } 3671am__include="#" 3672am__quote= 3673_am_result=none 3674# First try GNU make style include. 3675echo "include confinc" > confmf 3676# Ignore all kinds of additional output from `make'. 3677case `$am_make -s -f confmf 2> /dev/null` in #( 3678*the\ am__doit\ target*) 3679 am__include=include 3680 am__quote= 3681 _am_result=GNU 3682 ;; 3683esac 3684# Now try BSD make style include. 3685if test "$am__include" = "#"; then 3686 echo '.include "confinc"' > confmf 3687 case `$am_make -s -f confmf 2> /dev/null` in #( 3688 *the\ am__doit\ target*) 3689 am__include=.include 3690 am__quote="\"" 3691 _am_result=BSD 3692 ;; 3693 esac 3694fi 3695 3696 3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3698$as_echo "$_am_result" >&6; } 3699rm -f confinc confmf 3700 3701# Check whether --enable-dependency-tracking was given. 3702if test "${enable_dependency_tracking+set}" = set; then : 3703 enableval=$enable_dependency_tracking; 3704fi 3705 3706if test "x$enable_dependency_tracking" != xno; then 3707 am_depcomp="$ac_aux_dir/depcomp" 3708 AMDEPBACKSLASH='\' 3709 am__nodep='_no' 3710fi 3711 if test "x$enable_dependency_tracking" != xno; then 3712 AMDEP_TRUE= 3713 AMDEP_FALSE='#' 3714else 3715 AMDEP_TRUE='#' 3716 AMDEP_FALSE= 3717fi 3718 3719 3720 3721depcc="$CC" am_compiler_list= 3722 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3724$as_echo_n "checking dependency style of $depcc... " >&6; } 3725if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3726 $as_echo_n "(cached) " >&6 3727else 3728 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3729 # We make a subdir and do the tests there. Otherwise we can end up 3730 # making bogus files that we don't know about and never remove. For 3731 # instance it was reported that on HP-UX the gcc test will end up 3732 # making a dummy file named `D' -- because `-MD' means `put the output 3733 # in D'. 3734 rm -rf conftest.dir 3735 mkdir conftest.dir 3736 # Copy depcomp to subdir because otherwise we won't find it if we're 3737 # using a relative directory. 3738 cp "$am_depcomp" conftest.dir 3739 cd conftest.dir 3740 # We will build objects and dependencies in a subdirectory because 3741 # it helps to detect inapplicable dependency modes. For instance 3742 # both Tru64's cc and ICC support -MD to output dependencies as a 3743 # side effect of compilation, but ICC will put the dependencies in 3744 # the current directory while Tru64 will put them in the object 3745 # directory. 3746 mkdir sub 3747 3748 am_cv_CC_dependencies_compiler_type=none 3749 if test "$am_compiler_list" = ""; then 3750 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3751 fi 3752 am__universal=false 3753 case " $depcc " in #( 3754 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3755 esac 3756 3757 for depmode in $am_compiler_list; do 3758 # Setup a source with many dependencies, because some compilers 3759 # like to wrap large dependency lists on column 80 (with \), and 3760 # we should not choose a depcomp mode which is confused by this. 3761 # 3762 # We need to recreate these files for each test, as the compiler may 3763 # overwrite some of them when testing with obscure command lines. 3764 # This happens at least with the AIX C compiler. 3765 : > sub/conftest.c 3766 for i in 1 2 3 4 5 6; do 3767 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3768 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3769 # Solaris 8's {/usr,}/bin/sh. 3770 touch sub/conftst$i.h 3771 done 3772 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3773 3774 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3775 # mode. It turns out that the SunPro C++ compiler does not properly 3776 # handle `-M -o', and we need to detect this. Also, some Intel 3777 # versions had trouble with output in subdirs 3778 am__obj=sub/conftest.${OBJEXT-o} 3779 am__minus_obj="-o $am__obj" 3780 case $depmode in 3781 gcc) 3782 # This depmode causes a compiler race in universal mode. 3783 test "$am__universal" = false || continue 3784 ;; 3785 nosideeffect) 3786 # after this tag, mechanisms are not by side-effect, so they'll 3787 # only be used when explicitly requested 3788 if test "x$enable_dependency_tracking" = xyes; then 3789 continue 3790 else 3791 break 3792 fi 3793 ;; 3794 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3795 # This compiler won't grok `-c -o', but also, the minuso test has 3796 # not run yet. These depmodes are late enough in the game, and 3797 # so weak that their functioning should not be impacted. 3798 am__obj=conftest.${OBJEXT-o} 3799 am__minus_obj= 3800 ;; 3801 none) break ;; 3802 esac 3803 if depmode=$depmode \ 3804 source=sub/conftest.c object=$am__obj \ 3805 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3806 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3807 >/dev/null 2>conftest.err && 3808 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3809 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3810 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3811 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3812 # icc doesn't choke on unknown options, it will just issue warnings 3813 # or remarks (even with -Werror). So we grep stderr for any message 3814 # that says an option was ignored or not supported. 3815 # When given -MP, icc 7.0 and 7.1 complain thusly: 3816 # icc: Command line warning: ignoring option '-M'; no argument required 3817 # The diagnosis changed in icc 8.0: 3818 # icc: Command line remark: option '-MP' not supported 3819 if (grep 'ignoring option' conftest.err || 3820 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3821 am_cv_CC_dependencies_compiler_type=$depmode 3822 break 3823 fi 3824 fi 3825 done 3826 3827 cd .. 3828 rm -rf conftest.dir 3829else 3830 am_cv_CC_dependencies_compiler_type=none 3831fi 3832 3833fi 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3835$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3836CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3837 3838 if 3839 test "x$enable_dependency_tracking" != xno \ 3840 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3841 am__fastdepCC_TRUE= 3842 am__fastdepCC_FALSE='#' 3843else 3844 am__fastdepCC_TRUE='#' 3845 am__fastdepCC_FALSE= 3846fi 3847 3848 3849if test "x$CC" != xcc; then 3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 3851$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 3852else 3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 3854$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 3855fi 3856set dummy $CC; ac_cc=`$as_echo "$2" | 3857 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3858if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 3859 $as_echo_n "(cached) " >&6 3860else 3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3862/* end confdefs.h. */ 3863 3864int 3865main () 3866{ 3867 3868 ; 3869 return 0; 3870} 3871_ACEOF 3872# Make sure it works both with $CC and with simple cc. 3873# We do the test twice because some compilers refuse to overwrite an 3874# existing .o file with -o, though they will create one. 3875ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3876rm -f conftest2.* 3877if { { case "(($ac_try" in 3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3879 *) ac_try_echo=$ac_try;; 3880esac 3881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3882$as_echo "$ac_try_echo"; } >&5 3883 (eval "$ac_try") 2>&5 3884 ac_status=$? 3885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3886 test $ac_status = 0; } && 3887 test -f conftest2.$ac_objext && { { case "(($ac_try" in 3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3889 *) ac_try_echo=$ac_try;; 3890esac 3891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3892$as_echo "$ac_try_echo"; } >&5 3893 (eval "$ac_try") 2>&5 3894 ac_status=$? 3895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3896 test $ac_status = 0; }; 3897then 3898 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 3899 if test "x$CC" != xcc; then 3900 # Test first that cc exists at all. 3901 if { ac_try='cc -c conftest.$ac_ext >&5' 3902 { { case "(($ac_try" in 3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3904 *) ac_try_echo=$ac_try;; 3905esac 3906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3907$as_echo "$ac_try_echo"; } >&5 3908 (eval "$ac_try") 2>&5 3909 ac_status=$? 3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3911 test $ac_status = 0; }; }; then 3912 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3913 rm -f conftest2.* 3914 if { { case "(($ac_try" in 3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3916 *) ac_try_echo=$ac_try;; 3917esac 3918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3919$as_echo "$ac_try_echo"; } >&5 3920 (eval "$ac_try") 2>&5 3921 ac_status=$? 3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3923 test $ac_status = 0; } && 3924 test -f conftest2.$ac_objext && { { case "(($ac_try" in 3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3926 *) ac_try_echo=$ac_try;; 3927esac 3928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3929$as_echo "$ac_try_echo"; } >&5 3930 (eval "$ac_try") 2>&5 3931 ac_status=$? 3932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3933 test $ac_status = 0; }; 3934 then 3935 # cc works too. 3936 : 3937 else 3938 # cc exists but doesn't like -o. 3939 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3940 fi 3941 fi 3942 fi 3943else 3944 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3945fi 3946rm -f core conftest* 3947 3948fi 3949if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3951$as_echo "yes" >&6; } 3952else 3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3954$as_echo "no" >&6; } 3955 3956$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 3957 3958fi 3959 3960# FIXME: we rely on the cache variable name because 3961# there is no other way. 3962set dummy $CC 3963am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3964eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 3965if test "$am_t" != yes; then 3966 # Losing compiler, so override with the script. 3967 # FIXME: It is wrong to rewrite CC. 3968 # But if we don't then we get into trouble of one sort or another. 3969 # A longer-term fix would be to have automake use am__CC in this case, 3970 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3971 CC="$am_aux_dir/compile $CC" 3972fi 3973 3974 3975 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3977$as_echo_n "checking whether ln -s works... " >&6; } 3978LN_S=$as_ln_s 3979if test "$LN_S" = "ln -s"; then 3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3981$as_echo "yes" >&6; } 3982else 3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3984$as_echo "no, using $LN_S" >&6; } 3985fi 3986 3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3988$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3989set x ${MAKE-make} 3990ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3991if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3992 $as_echo_n "(cached) " >&6 3993else 3994 cat >conftest.make <<\_ACEOF 3995SHELL = /bin/sh 3996all: 3997 @echo '@@@%%%=$(MAKE)=@@@%%%' 3998_ACEOF 3999# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4000case `${MAKE-make} -f conftest.make 2>/dev/null` in 4001 *@@@%%%=?*=@@@%%%*) 4002 eval ac_cv_prog_make_${ac_make}_set=yes;; 4003 *) 4004 eval ac_cv_prog_make_${ac_make}_set=no;; 4005esac 4006rm -f conftest.make 4007fi 4008if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4010$as_echo "yes" >&6; } 4011 SET_MAKE= 4012else 4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4014$as_echo "no" >&6; } 4015 SET_MAKE="MAKE=${MAKE-make}" 4016fi 4017 4018 4019 4020 4021 4022 4023case `pwd` in 4024 *\ * | *\ *) 4025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4026$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4027esac 4028 4029 4030 4031macro_version='2.4.2' 4032macro_revision='1.3337' 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046ltmain="$ac_aux_dir/ltmain.sh" 4047 4048# Backslashify metacharacters that are still active within 4049# double-quoted strings. 4050sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4051 4052# Same as above, but do not quote variable references. 4053double_quote_subst='s/\(["`\\]\)/\\\1/g' 4054 4055# Sed substitution to delay expansion of an escaped shell variable in a 4056# double_quote_subst'ed string. 4057delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4058 4059# Sed substitution to delay expansion of an escaped single quote. 4060delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4061 4062# Sed substitution to avoid accidental globbing in evaled expressions 4063no_glob_subst='s/\*/\\\*/g' 4064 4065ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4066ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4067ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4068 4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4070$as_echo_n "checking how to print strings... " >&6; } 4071# Test print first, because it will be a builtin if present. 4072if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4073 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4074 ECHO='print -r --' 4075elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4076 ECHO='printf %s\n' 4077else 4078 # Use this function as a fallback that always works. 4079 func_fallback_echo () 4080 { 4081 eval 'cat <<_LTECHO_EOF 4082$1 4083_LTECHO_EOF' 4084 } 4085 ECHO='func_fallback_echo' 4086fi 4087 4088# func_echo_all arg... 4089# Invoke $ECHO with all args, space-separated. 4090func_echo_all () 4091{ 4092 $ECHO "" 4093} 4094 4095case "$ECHO" in 4096 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4097$as_echo "printf" >&6; } ;; 4098 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4099$as_echo "print -r" >&6; } ;; 4100 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4101$as_echo "cat" >&6; } ;; 4102esac 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4118$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4119if ${ac_cv_path_SED+:} false; then : 4120 $as_echo_n "(cached) " >&6 4121else 4122 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4123 for ac_i in 1 2 3 4 5 6 7; do 4124 ac_script="$ac_script$as_nl$ac_script" 4125 done 4126 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4127 { ac_script=; unset ac_script;} 4128 if test -z "$SED"; then 4129 ac_path_SED_found=false 4130 # Loop through the user's path and test for each of PROGNAME-LIST 4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4132for as_dir in $PATH 4133do 4134 IFS=$as_save_IFS 4135 test -z "$as_dir" && as_dir=. 4136 for ac_prog in sed gsed; do 4137 for ac_exec_ext in '' $ac_executable_extensions; do 4138 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4139 as_fn_executable_p "$ac_path_SED" || continue 4140# Check for GNU ac_path_SED and select it if it is found. 4141 # Check for GNU $ac_path_SED 4142case `"$ac_path_SED" --version 2>&1` in 4143*GNU*) 4144 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4145*) 4146 ac_count=0 4147 $as_echo_n 0123456789 >"conftest.in" 4148 while : 4149 do 4150 cat "conftest.in" "conftest.in" >"conftest.tmp" 4151 mv "conftest.tmp" "conftest.in" 4152 cp "conftest.in" "conftest.nl" 4153 $as_echo '' >> "conftest.nl" 4154 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4156 as_fn_arith $ac_count + 1 && ac_count=$as_val 4157 if test $ac_count -gt ${ac_path_SED_max-0}; then 4158 # Best one so far, save it but keep looking for a better one 4159 ac_cv_path_SED="$ac_path_SED" 4160 ac_path_SED_max=$ac_count 4161 fi 4162 # 10*(2^10) chars as input seems more than enough 4163 test $ac_count -gt 10 && break 4164 done 4165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4166esac 4167 4168 $ac_path_SED_found && break 3 4169 done 4170 done 4171 done 4172IFS=$as_save_IFS 4173 if test -z "$ac_cv_path_SED"; then 4174 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4175 fi 4176else 4177 ac_cv_path_SED=$SED 4178fi 4179 4180fi 4181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4182$as_echo "$ac_cv_path_SED" >&6; } 4183 SED="$ac_cv_path_SED" 4184 rm -f conftest.sed 4185 4186test -z "$SED" && SED=sed 4187Xsed="$SED -e 1s/^X//" 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4200$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4201if ${ac_cv_path_GREP+:} false; then : 4202 $as_echo_n "(cached) " >&6 4203else 4204 if test -z "$GREP"; then 4205 ac_path_GREP_found=false 4206 # Loop through the user's path and test for each of PROGNAME-LIST 4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4208for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4209do 4210 IFS=$as_save_IFS 4211 test -z "$as_dir" && as_dir=. 4212 for ac_prog in grep ggrep; do 4213 for ac_exec_ext in '' $ac_executable_extensions; do 4214 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4215 as_fn_executable_p "$ac_path_GREP" || continue 4216# Check for GNU ac_path_GREP and select it if it is found. 4217 # Check for GNU $ac_path_GREP 4218case `"$ac_path_GREP" --version 2>&1` in 4219*GNU*) 4220 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4221*) 4222 ac_count=0 4223 $as_echo_n 0123456789 >"conftest.in" 4224 while : 4225 do 4226 cat "conftest.in" "conftest.in" >"conftest.tmp" 4227 mv "conftest.tmp" "conftest.in" 4228 cp "conftest.in" "conftest.nl" 4229 $as_echo 'GREP' >> "conftest.nl" 4230 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4232 as_fn_arith $ac_count + 1 && ac_count=$as_val 4233 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4234 # Best one so far, save it but keep looking for a better one 4235 ac_cv_path_GREP="$ac_path_GREP" 4236 ac_path_GREP_max=$ac_count 4237 fi 4238 # 10*(2^10) chars as input seems more than enough 4239 test $ac_count -gt 10 && break 4240 done 4241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4242esac 4243 4244 $ac_path_GREP_found && break 3 4245 done 4246 done 4247 done 4248IFS=$as_save_IFS 4249 if test -z "$ac_cv_path_GREP"; then 4250 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4251 fi 4252else 4253 ac_cv_path_GREP=$GREP 4254fi 4255 4256fi 4257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4258$as_echo "$ac_cv_path_GREP" >&6; } 4259 GREP="$ac_cv_path_GREP" 4260 4261 4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4263$as_echo_n "checking for egrep... " >&6; } 4264if ${ac_cv_path_EGREP+:} false; then : 4265 $as_echo_n "(cached) " >&6 4266else 4267 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4268 then ac_cv_path_EGREP="$GREP -E" 4269 else 4270 if test -z "$EGREP"; then 4271 ac_path_EGREP_found=false 4272 # Loop through the user's path and test for each of PROGNAME-LIST 4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4274for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4275do 4276 IFS=$as_save_IFS 4277 test -z "$as_dir" && as_dir=. 4278 for ac_prog in egrep; do 4279 for ac_exec_ext in '' $ac_executable_extensions; do 4280 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4281 as_fn_executable_p "$ac_path_EGREP" || continue 4282# Check for GNU ac_path_EGREP and select it if it is found. 4283 # Check for GNU $ac_path_EGREP 4284case `"$ac_path_EGREP" --version 2>&1` in 4285*GNU*) 4286 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4287*) 4288 ac_count=0 4289 $as_echo_n 0123456789 >"conftest.in" 4290 while : 4291 do 4292 cat "conftest.in" "conftest.in" >"conftest.tmp" 4293 mv "conftest.tmp" "conftest.in" 4294 cp "conftest.in" "conftest.nl" 4295 $as_echo 'EGREP' >> "conftest.nl" 4296 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4298 as_fn_arith $ac_count + 1 && ac_count=$as_val 4299 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4300 # Best one so far, save it but keep looking for a better one 4301 ac_cv_path_EGREP="$ac_path_EGREP" 4302 ac_path_EGREP_max=$ac_count 4303 fi 4304 # 10*(2^10) chars as input seems more than enough 4305 test $ac_count -gt 10 && break 4306 done 4307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4308esac 4309 4310 $ac_path_EGREP_found && break 3 4311 done 4312 done 4313 done 4314IFS=$as_save_IFS 4315 if test -z "$ac_cv_path_EGREP"; then 4316 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4317 fi 4318else 4319 ac_cv_path_EGREP=$EGREP 4320fi 4321 4322 fi 4323fi 4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4325$as_echo "$ac_cv_path_EGREP" >&6; } 4326 EGREP="$ac_cv_path_EGREP" 4327 4328 4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4330$as_echo_n "checking for fgrep... " >&6; } 4331if ${ac_cv_path_FGREP+:} false; then : 4332 $as_echo_n "(cached) " >&6 4333else 4334 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4335 then ac_cv_path_FGREP="$GREP -F" 4336 else 4337 if test -z "$FGREP"; then 4338 ac_path_FGREP_found=false 4339 # Loop through the user's path and test for each of PROGNAME-LIST 4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4341for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4342do 4343 IFS=$as_save_IFS 4344 test -z "$as_dir" && as_dir=. 4345 for ac_prog in fgrep; do 4346 for ac_exec_ext in '' $ac_executable_extensions; do 4347 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4348 as_fn_executable_p "$ac_path_FGREP" || continue 4349# Check for GNU ac_path_FGREP and select it if it is found. 4350 # Check for GNU $ac_path_FGREP 4351case `"$ac_path_FGREP" --version 2>&1` in 4352*GNU*) 4353 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4354*) 4355 ac_count=0 4356 $as_echo_n 0123456789 >"conftest.in" 4357 while : 4358 do 4359 cat "conftest.in" "conftest.in" >"conftest.tmp" 4360 mv "conftest.tmp" "conftest.in" 4361 cp "conftest.in" "conftest.nl" 4362 $as_echo 'FGREP' >> "conftest.nl" 4363 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4365 as_fn_arith $ac_count + 1 && ac_count=$as_val 4366 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4367 # Best one so far, save it but keep looking for a better one 4368 ac_cv_path_FGREP="$ac_path_FGREP" 4369 ac_path_FGREP_max=$ac_count 4370 fi 4371 # 10*(2^10) chars as input seems more than enough 4372 test $ac_count -gt 10 && break 4373 done 4374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4375esac 4376 4377 $ac_path_FGREP_found && break 3 4378 done 4379 done 4380 done 4381IFS=$as_save_IFS 4382 if test -z "$ac_cv_path_FGREP"; then 4383 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4384 fi 4385else 4386 ac_cv_path_FGREP=$FGREP 4387fi 4388 4389 fi 4390fi 4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4392$as_echo "$ac_cv_path_FGREP" >&6; } 4393 FGREP="$ac_cv_path_FGREP" 4394 4395 4396test -z "$GREP" && GREP=grep 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416# Check whether --with-gnu-ld was given. 4417if test "${with_gnu_ld+set}" = set; then : 4418 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4419else 4420 with_gnu_ld=no 4421fi 4422 4423ac_prog=ld 4424if test "$GCC" = yes; then 4425 # Check if gcc -print-prog-name=ld gives a path. 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4427$as_echo_n "checking for ld used by $CC... " >&6; } 4428 case $host in 4429 *-*-mingw*) 4430 # gcc leaves a trailing carriage return which upsets mingw 4431 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4432 *) 4433 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4434 esac 4435 case $ac_prog in 4436 # Accept absolute paths. 4437 [\\/]* | ?:[\\/]*) 4438 re_direlt='/[^/][^/]*/\.\./' 4439 # Canonicalize the pathname of ld 4440 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4441 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4442 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4443 done 4444 test -z "$LD" && LD="$ac_prog" 4445 ;; 4446 "") 4447 # If it fails, then pretend we aren't using GCC. 4448 ac_prog=ld 4449 ;; 4450 *) 4451 # If it is relative, then search for the first ld in PATH. 4452 with_gnu_ld=unknown 4453 ;; 4454 esac 4455elif test "$with_gnu_ld" = yes; then 4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4457$as_echo_n "checking for GNU ld... " >&6; } 4458else 4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4460$as_echo_n "checking for non-GNU ld... " >&6; } 4461fi 4462if ${lt_cv_path_LD+:} false; then : 4463 $as_echo_n "(cached) " >&6 4464else 4465 if test -z "$LD"; then 4466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4467 for ac_dir in $PATH; do 4468 IFS="$lt_save_ifs" 4469 test -z "$ac_dir" && ac_dir=. 4470 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4471 lt_cv_path_LD="$ac_dir/$ac_prog" 4472 # Check to see if the program is GNU ld. I'd rather use --version, 4473 # but apparently some variants of GNU ld only accept -v. 4474 # Break only if it was the GNU/non-GNU ld that we prefer. 4475 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4476 *GNU* | *'with BFD'*) 4477 test "$with_gnu_ld" != no && break 4478 ;; 4479 *) 4480 test "$with_gnu_ld" != yes && break 4481 ;; 4482 esac 4483 fi 4484 done 4485 IFS="$lt_save_ifs" 4486else 4487 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4488fi 4489fi 4490 4491LD="$lt_cv_path_LD" 4492if test -n "$LD"; then 4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4494$as_echo "$LD" >&6; } 4495else 4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4497$as_echo "no" >&6; } 4498fi 4499test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4501$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4502if ${lt_cv_prog_gnu_ld+:} false; then : 4503 $as_echo_n "(cached) " >&6 4504else 4505 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4506case `$LD -v 2>&1 </dev/null` in 4507*GNU* | *'with BFD'*) 4508 lt_cv_prog_gnu_ld=yes 4509 ;; 4510*) 4511 lt_cv_prog_gnu_ld=no 4512 ;; 4513esac 4514fi 4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4516$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4517with_gnu_ld=$lt_cv_prog_gnu_ld 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4528$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4529if ${lt_cv_path_NM+:} false; then : 4530 $as_echo_n "(cached) " >&6 4531else 4532 if test -n "$NM"; then 4533 # Let the user override the test. 4534 lt_cv_path_NM="$NM" 4535else 4536 lt_nm_to_check="${ac_tool_prefix}nm" 4537 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4538 lt_nm_to_check="$lt_nm_to_check nm" 4539 fi 4540 for lt_tmp_nm in $lt_nm_to_check; do 4541 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4542 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4543 IFS="$lt_save_ifs" 4544 test -z "$ac_dir" && ac_dir=. 4545 tmp_nm="$ac_dir/$lt_tmp_nm" 4546 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4547 # Check to see if the nm accepts a BSD-compat flag. 4548 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4549 # nm: unknown option "B" ignored 4550 # Tru64's nm complains that /dev/null is an invalid object file 4551 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4552 */dev/null* | *'Invalid file or object type'*) 4553 lt_cv_path_NM="$tmp_nm -B" 4554 break 4555 ;; 4556 *) 4557 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4558 */dev/null*) 4559 lt_cv_path_NM="$tmp_nm -p" 4560 break 4561 ;; 4562 *) 4563 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4564 continue # so that we can try to find one that supports BSD flags 4565 ;; 4566 esac 4567 ;; 4568 esac 4569 fi 4570 done 4571 IFS="$lt_save_ifs" 4572 done 4573 : ${lt_cv_path_NM=no} 4574fi 4575fi 4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4577$as_echo "$lt_cv_path_NM" >&6; } 4578if test "$lt_cv_path_NM" != "no"; then 4579 NM="$lt_cv_path_NM" 4580else 4581 # Didn't find any BSD compatible name lister, look for dumpbin. 4582 if test -n "$DUMPBIN"; then : 4583 # Let the user override the test. 4584 else 4585 if test -n "$ac_tool_prefix"; then 4586 for ac_prog in dumpbin "link -dump" 4587 do 4588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4589set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4591$as_echo_n "checking for $ac_word... " >&6; } 4592if ${ac_cv_prog_DUMPBIN+:} false; then : 4593 $as_echo_n "(cached) " >&6 4594else 4595 if test -n "$DUMPBIN"; then 4596 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4597else 4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4599for as_dir in $PATH 4600do 4601 IFS=$as_save_IFS 4602 test -z "$as_dir" && as_dir=. 4603 for ac_exec_ext in '' $ac_executable_extensions; do 4604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4605 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4607 break 2 4608 fi 4609done 4610 done 4611IFS=$as_save_IFS 4612 4613fi 4614fi 4615DUMPBIN=$ac_cv_prog_DUMPBIN 4616if test -n "$DUMPBIN"; then 4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4618$as_echo "$DUMPBIN" >&6; } 4619else 4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4621$as_echo "no" >&6; } 4622fi 4623 4624 4625 test -n "$DUMPBIN" && break 4626 done 4627fi 4628if test -z "$DUMPBIN"; then 4629 ac_ct_DUMPBIN=$DUMPBIN 4630 for ac_prog in dumpbin "link -dump" 4631do 4632 # Extract the first word of "$ac_prog", so it can be a program name with args. 4633set dummy $ac_prog; ac_word=$2 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4635$as_echo_n "checking for $ac_word... " >&6; } 4636if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4637 $as_echo_n "(cached) " >&6 4638else 4639 if test -n "$ac_ct_DUMPBIN"; then 4640 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4641else 4642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4643for as_dir in $PATH 4644do 4645 IFS=$as_save_IFS 4646 test -z "$as_dir" && as_dir=. 4647 for ac_exec_ext in '' $ac_executable_extensions; do 4648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4649 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4651 break 2 4652 fi 4653done 4654 done 4655IFS=$as_save_IFS 4656 4657fi 4658fi 4659ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4660if test -n "$ac_ct_DUMPBIN"; then 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4662$as_echo "$ac_ct_DUMPBIN" >&6; } 4663else 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4665$as_echo "no" >&6; } 4666fi 4667 4668 4669 test -n "$ac_ct_DUMPBIN" && break 4670done 4671 4672 if test "x$ac_ct_DUMPBIN" = x; then 4673 DUMPBIN=":" 4674 else 4675 case $cross_compiling:$ac_tool_warned in 4676yes:) 4677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4679ac_tool_warned=yes ;; 4680esac 4681 DUMPBIN=$ac_ct_DUMPBIN 4682 fi 4683fi 4684 4685 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4686 *COFF*) 4687 DUMPBIN="$DUMPBIN -symbols" 4688 ;; 4689 *) 4690 DUMPBIN=: 4691 ;; 4692 esac 4693 fi 4694 4695 if test "$DUMPBIN" != ":"; then 4696 NM="$DUMPBIN" 4697 fi 4698fi 4699test -z "$NM" && NM=nm 4700 4701 4702 4703 4704 4705 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4707$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4708if ${lt_cv_nm_interface+:} false; then : 4709 $as_echo_n "(cached) " >&6 4710else 4711 lt_cv_nm_interface="BSD nm" 4712 echo "int some_variable = 0;" > conftest.$ac_ext 4713 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4714 (eval "$ac_compile" 2>conftest.err) 4715 cat conftest.err >&5 4716 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4717 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4718 cat conftest.err >&5 4719 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4720 cat conftest.out >&5 4721 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4722 lt_cv_nm_interface="MS dumpbin" 4723 fi 4724 rm -f conftest* 4725fi 4726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4727$as_echo "$lt_cv_nm_interface" >&6; } 4728 4729# find the maximum length of command line arguments 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4731$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4732if ${lt_cv_sys_max_cmd_len+:} false; then : 4733 $as_echo_n "(cached) " >&6 4734else 4735 i=0 4736 teststring="ABCD" 4737 4738 case $build_os in 4739 msdosdjgpp*) 4740 # On DJGPP, this test can blow up pretty badly due to problems in libc 4741 # (any single argument exceeding 2000 bytes causes a buffer overrun 4742 # during glob expansion). Even if it were fixed, the result of this 4743 # check would be larger than it should be. 4744 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4745 ;; 4746 4747 gnu*) 4748 # Under GNU Hurd, this test is not required because there is 4749 # no limit to the length of command line arguments. 4750 # Libtool will interpret -1 as no limit whatsoever 4751 lt_cv_sys_max_cmd_len=-1; 4752 ;; 4753 4754 cygwin* | mingw* | cegcc*) 4755 # On Win9x/ME, this test blows up -- it succeeds, but takes 4756 # about 5 minutes as the teststring grows exponentially. 4757 # Worse, since 9x/ME are not pre-emptively multitasking, 4758 # you end up with a "frozen" computer, even though with patience 4759 # the test eventually succeeds (with a max line length of 256k). 4760 # Instead, let's just punt: use the minimum linelength reported by 4761 # all of the supported platforms: 8192 (on NT/2K/XP). 4762 lt_cv_sys_max_cmd_len=8192; 4763 ;; 4764 4765 mint*) 4766 # On MiNT this can take a long time and run out of memory. 4767 lt_cv_sys_max_cmd_len=8192; 4768 ;; 4769 4770 amigaos*) 4771 # On AmigaOS with pdksh, this test takes hours, literally. 4772 # So we just punt and use a minimum line length of 8192. 4773 lt_cv_sys_max_cmd_len=8192; 4774 ;; 4775 4776 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4777 # This has been around since 386BSD, at least. Likely further. 4778 if test -x /sbin/sysctl; then 4779 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4780 elif test -x /usr/sbin/sysctl; then 4781 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4782 else 4783 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4784 fi 4785 # And add a safety zone 4786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4788 ;; 4789 4790 interix*) 4791 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4792 lt_cv_sys_max_cmd_len=196608 4793 ;; 4794 4795 os2*) 4796 # The test takes a long time on OS/2. 4797 lt_cv_sys_max_cmd_len=8192 4798 ;; 4799 4800 osf*) 4801 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4802 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4803 # nice to cause kernel panics so lets avoid the loop below. 4804 # First set a reasonable default. 4805 lt_cv_sys_max_cmd_len=16384 4806 # 4807 if test -x /sbin/sysconfig; then 4808 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4809 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4810 esac 4811 fi 4812 ;; 4813 sco3.2v5*) 4814 lt_cv_sys_max_cmd_len=102400 4815 ;; 4816 sysv5* | sco5v6* | sysv4.2uw2*) 4817 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4818 if test -n "$kargmax"; then 4819 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4820 else 4821 lt_cv_sys_max_cmd_len=32768 4822 fi 4823 ;; 4824 *) 4825 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4826 if test -n "$lt_cv_sys_max_cmd_len"; then 4827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4829 else 4830 # Make teststring a little bigger before we do anything with it. 4831 # a 1K string should be a reasonable start. 4832 for i in 1 2 3 4 5 6 7 8 ; do 4833 teststring=$teststring$teststring 4834 done 4835 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4836 # If test is not a shell built-in, we'll probably end up computing a 4837 # maximum length that is only half of the actual maximum length, but 4838 # we can't tell. 4839 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4840 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4841 test $i != 17 # 1/2 MB should be enough 4842 do 4843 i=`expr $i + 1` 4844 teststring=$teststring$teststring 4845 done 4846 # Only check the string length outside the loop. 4847 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4848 teststring= 4849 # Add a significant safety factor because C++ compilers can tack on 4850 # massive amounts of additional arguments before passing them to the 4851 # linker. It appears as though 1/2 is a usable value. 4852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4853 fi 4854 ;; 4855 esac 4856 4857fi 4858 4859if test -n $lt_cv_sys_max_cmd_len ; then 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4861$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4862else 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4864$as_echo "none" >&6; } 4865fi 4866max_cmd_len=$lt_cv_sys_max_cmd_len 4867 4868 4869 4870 4871 4872 4873: ${CP="cp -f"} 4874: ${MV="mv -f"} 4875: ${RM="rm -f"} 4876 4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4878$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4879# Try some XSI features 4880xsi_shell=no 4881( _lt_dummy="a/b/c" 4882 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4883 = c,a/b,b/c, \ 4884 && eval 'test $(( 1 + 1 )) -eq 2 \ 4885 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4886 && xsi_shell=yes 4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4888$as_echo "$xsi_shell" >&6; } 4889 4890 4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4892$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4893lt_shell_append=no 4894( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4895 >/dev/null 2>&1 \ 4896 && lt_shell_append=yes 4897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4898$as_echo "$lt_shell_append" >&6; } 4899 4900 4901if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4902 lt_unset=unset 4903else 4904 lt_unset=false 4905fi 4906 4907 4908 4909 4910 4911# test EBCDIC or ASCII 4912case `echo X|tr X '\101'` in 4913 A) # ASCII based system 4914 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4915 lt_SP2NL='tr \040 \012' 4916 lt_NL2SP='tr \015\012 \040\040' 4917 ;; 4918 *) # EBCDIC based system 4919 lt_SP2NL='tr \100 \n' 4920 lt_NL2SP='tr \r\n \100\100' 4921 ;; 4922esac 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4933$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4934if ${lt_cv_to_host_file_cmd+:} false; then : 4935 $as_echo_n "(cached) " >&6 4936else 4937 case $host in 4938 *-*-mingw* ) 4939 case $build in 4940 *-*-mingw* ) # actually msys 4941 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4942 ;; 4943 *-*-cygwin* ) 4944 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4945 ;; 4946 * ) # otherwise, assume *nix 4947 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4948 ;; 4949 esac 4950 ;; 4951 *-*-cygwin* ) 4952 case $build in 4953 *-*-mingw* ) # actually msys 4954 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4955 ;; 4956 *-*-cygwin* ) 4957 lt_cv_to_host_file_cmd=func_convert_file_noop 4958 ;; 4959 * ) # otherwise, assume *nix 4960 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4961 ;; 4962 esac 4963 ;; 4964 * ) # unhandled hosts (and "normal" native builds) 4965 lt_cv_to_host_file_cmd=func_convert_file_noop 4966 ;; 4967esac 4968 4969fi 4970 4971to_host_file_cmd=$lt_cv_to_host_file_cmd 4972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4973$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4974 4975 4976 4977 4978 4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4980$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4981if ${lt_cv_to_tool_file_cmd+:} false; then : 4982 $as_echo_n "(cached) " >&6 4983else 4984 #assume ordinary cross tools, or native build. 4985lt_cv_to_tool_file_cmd=func_convert_file_noop 4986case $host in 4987 *-*-mingw* ) 4988 case $build in 4989 *-*-mingw* ) # actually msys 4990 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4991 ;; 4992 esac 4993 ;; 4994esac 4995 4996fi 4997 4998to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5000$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5001 5002 5003 5004 5005 5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5007$as_echo_n "checking for $LD option to reload object files... " >&6; } 5008if ${lt_cv_ld_reload_flag+:} false; then : 5009 $as_echo_n "(cached) " >&6 5010else 5011 lt_cv_ld_reload_flag='-r' 5012fi 5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5014$as_echo "$lt_cv_ld_reload_flag" >&6; } 5015reload_flag=$lt_cv_ld_reload_flag 5016case $reload_flag in 5017"" | " "*) ;; 5018*) reload_flag=" $reload_flag" ;; 5019esac 5020reload_cmds='$LD$reload_flag -o $output$reload_objs' 5021case $host_os in 5022 cygwin* | mingw* | pw32* | cegcc*) 5023 if test "$GCC" != yes; then 5024 reload_cmds=false 5025 fi 5026 ;; 5027 darwin*) 5028 if test "$GCC" = yes; then 5029 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5030 else 5031 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5032 fi 5033 ;; 5034esac 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044if test -n "$ac_tool_prefix"; then 5045 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5046set dummy ${ac_tool_prefix}objdump; ac_word=$2 5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5048$as_echo_n "checking for $ac_word... " >&6; } 5049if ${ac_cv_prog_OBJDUMP+:} false; then : 5050 $as_echo_n "(cached) " >&6 5051else 5052 if test -n "$OBJDUMP"; then 5053 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5054else 5055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5056for as_dir in $PATH 5057do 5058 IFS=$as_save_IFS 5059 test -z "$as_dir" && as_dir=. 5060 for ac_exec_ext in '' $ac_executable_extensions; do 5061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5062 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5064 break 2 5065 fi 5066done 5067 done 5068IFS=$as_save_IFS 5069 5070fi 5071fi 5072OBJDUMP=$ac_cv_prog_OBJDUMP 5073if test -n "$OBJDUMP"; then 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5075$as_echo "$OBJDUMP" >&6; } 5076else 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5078$as_echo "no" >&6; } 5079fi 5080 5081 5082fi 5083if test -z "$ac_cv_prog_OBJDUMP"; then 5084 ac_ct_OBJDUMP=$OBJDUMP 5085 # Extract the first word of "objdump", so it can be a program name with args. 5086set dummy objdump; ac_word=$2 5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5088$as_echo_n "checking for $ac_word... " >&6; } 5089if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5090 $as_echo_n "(cached) " >&6 5091else 5092 if test -n "$ac_ct_OBJDUMP"; then 5093 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5094else 5095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5096for as_dir in $PATH 5097do 5098 IFS=$as_save_IFS 5099 test -z "$as_dir" && as_dir=. 5100 for ac_exec_ext in '' $ac_executable_extensions; do 5101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5102 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5104 break 2 5105 fi 5106done 5107 done 5108IFS=$as_save_IFS 5109 5110fi 5111fi 5112ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5113if test -n "$ac_ct_OBJDUMP"; then 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5115$as_echo "$ac_ct_OBJDUMP" >&6; } 5116else 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5118$as_echo "no" >&6; } 5119fi 5120 5121 if test "x$ac_ct_OBJDUMP" = x; then 5122 OBJDUMP="false" 5123 else 5124 case $cross_compiling:$ac_tool_warned in 5125yes:) 5126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5128ac_tool_warned=yes ;; 5129esac 5130 OBJDUMP=$ac_ct_OBJDUMP 5131 fi 5132else 5133 OBJDUMP="$ac_cv_prog_OBJDUMP" 5134fi 5135 5136test -z "$OBJDUMP" && OBJDUMP=objdump 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5147$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5148if ${lt_cv_deplibs_check_method+:} false; then : 5149 $as_echo_n "(cached) " >&6 5150else 5151 lt_cv_file_magic_cmd='$MAGIC_CMD' 5152lt_cv_file_magic_test_file= 5153lt_cv_deplibs_check_method='unknown' 5154# Need to set the preceding variable on all platforms that support 5155# interlibrary dependencies. 5156# 'none' -- dependencies not supported. 5157# `unknown' -- same as none, but documents that we really don't know. 5158# 'pass_all' -- all dependencies passed with no checks. 5159# 'test_compile' -- check by making test program. 5160# 'file_magic [[regex]]' -- check by looking for files in library path 5161# which responds to the $file_magic_cmd with a given extended regex. 5162# If you have `file' or equivalent on your system and you're not sure 5163# whether `pass_all' will *always* work, you probably want this one. 5164 5165case $host_os in 5166aix[4-9]*) 5167 lt_cv_deplibs_check_method=pass_all 5168 ;; 5169 5170beos*) 5171 lt_cv_deplibs_check_method=pass_all 5172 ;; 5173 5174bsdi[45]*) 5175 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5176 lt_cv_file_magic_cmd='/usr/bin/file -L' 5177 lt_cv_file_magic_test_file=/shlib/libc.so 5178 ;; 5179 5180cygwin*) 5181 # func_win32_libid is a shell function defined in ltmain.sh 5182 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5183 lt_cv_file_magic_cmd='func_win32_libid' 5184 ;; 5185 5186mingw* | pw32*) 5187 # Base MSYS/MinGW do not provide the 'file' command needed by 5188 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5189 # unless we find 'file', for example because we are cross-compiling. 5190 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5191 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5192 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5193 lt_cv_file_magic_cmd='func_win32_libid' 5194 else 5195 # Keep this pattern in sync with the one in func_win32_libid. 5196 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5197 lt_cv_file_magic_cmd='$OBJDUMP -f' 5198 fi 5199 ;; 5200 5201cegcc*) 5202 # use the weaker test based on 'objdump'. See mingw*. 5203 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5204 lt_cv_file_magic_cmd='$OBJDUMP -f' 5205 ;; 5206 5207darwin* | rhapsody*) 5208 lt_cv_deplibs_check_method=pass_all 5209 ;; 5210 5211freebsd* | dragonfly*) 5212 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5213 case $host_cpu in 5214 i*86 ) 5215 # Not sure whether the presence of OpenBSD here was a mistake. 5216 # Let's accept both of them until this is cleared up. 5217 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5218 lt_cv_file_magic_cmd=/usr/bin/file 5219 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5220 ;; 5221 esac 5222 else 5223 lt_cv_deplibs_check_method=pass_all 5224 fi 5225 ;; 5226 5227haiku*) 5228 lt_cv_deplibs_check_method=pass_all 5229 ;; 5230 5231hpux10.20* | hpux11*) 5232 lt_cv_file_magic_cmd=/usr/bin/file 5233 case $host_cpu in 5234 ia64*) 5235 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5236 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5237 ;; 5238 hppa*64*) 5239 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]' 5240 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5241 ;; 5242 *) 5243 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5244 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5245 ;; 5246 esac 5247 ;; 5248 5249interix[3-9]*) 5250 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5251 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5252 ;; 5253 5254irix5* | irix6* | nonstopux*) 5255 case $LD in 5256 *-32|*"-32 ") libmagic=32-bit;; 5257 *-n32|*"-n32 ") libmagic=N32;; 5258 *-64|*"-64 ") libmagic=64-bit;; 5259 *) libmagic=never-match;; 5260 esac 5261 lt_cv_deplibs_check_method=pass_all 5262 ;; 5263 5264# This must be glibc/ELF. 5265linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5266 lt_cv_deplibs_check_method=pass_all 5267 ;; 5268 5269netbsd* | netbsdelf*-gnu) 5270 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5272 else 5273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5274 fi 5275 ;; 5276 5277newos6*) 5278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5279 lt_cv_file_magic_cmd=/usr/bin/file 5280 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5281 ;; 5282 5283*nto* | *qnx*) 5284 lt_cv_deplibs_check_method=pass_all 5285 ;; 5286 5287openbsd*) 5288 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5290 else 5291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5292 fi 5293 ;; 5294 5295osf3* | osf4* | osf5*) 5296 lt_cv_deplibs_check_method=pass_all 5297 ;; 5298 5299rdos*) 5300 lt_cv_deplibs_check_method=pass_all 5301 ;; 5302 5303solaris*) 5304 lt_cv_deplibs_check_method=pass_all 5305 ;; 5306 5307sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5308 lt_cv_deplibs_check_method=pass_all 5309 ;; 5310 5311sysv4 | sysv4.3*) 5312 case $host_vendor in 5313 motorola) 5314 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]' 5315 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5316 ;; 5317 ncr) 5318 lt_cv_deplibs_check_method=pass_all 5319 ;; 5320 sequent) 5321 lt_cv_file_magic_cmd='/bin/file' 5322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5323 ;; 5324 sni) 5325 lt_cv_file_magic_cmd='/bin/file' 5326 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5327 lt_cv_file_magic_test_file=/lib/libc.so 5328 ;; 5329 siemens) 5330 lt_cv_deplibs_check_method=pass_all 5331 ;; 5332 pc) 5333 lt_cv_deplibs_check_method=pass_all 5334 ;; 5335 esac 5336 ;; 5337 5338tpf*) 5339 lt_cv_deplibs_check_method=pass_all 5340 ;; 5341esac 5342 5343fi 5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5345$as_echo "$lt_cv_deplibs_check_method" >&6; } 5346 5347file_magic_glob= 5348want_nocaseglob=no 5349if test "$build" = "$host"; then 5350 case $host_os in 5351 mingw* | pw32*) 5352 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5353 want_nocaseglob=yes 5354 else 5355 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5356 fi 5357 ;; 5358 esac 5359fi 5360 5361file_magic_cmd=$lt_cv_file_magic_cmd 5362deplibs_check_method=$lt_cv_deplibs_check_method 5363test -z "$deplibs_check_method" && deplibs_check_method=unknown 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386if test -n "$ac_tool_prefix"; then 5387 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5388set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5390$as_echo_n "checking for $ac_word... " >&6; } 5391if ${ac_cv_prog_DLLTOOL+:} false; then : 5392 $as_echo_n "(cached) " >&6 5393else 5394 if test -n "$DLLTOOL"; then 5395 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5396else 5397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5398for as_dir in $PATH 5399do 5400 IFS=$as_save_IFS 5401 test -z "$as_dir" && as_dir=. 5402 for ac_exec_ext in '' $ac_executable_extensions; do 5403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5404 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5406 break 2 5407 fi 5408done 5409 done 5410IFS=$as_save_IFS 5411 5412fi 5413fi 5414DLLTOOL=$ac_cv_prog_DLLTOOL 5415if test -n "$DLLTOOL"; then 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5417$as_echo "$DLLTOOL" >&6; } 5418else 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5420$as_echo "no" >&6; } 5421fi 5422 5423 5424fi 5425if test -z "$ac_cv_prog_DLLTOOL"; then 5426 ac_ct_DLLTOOL=$DLLTOOL 5427 # Extract the first word of "dlltool", so it can be a program name with args. 5428set dummy dlltool; ac_word=$2 5429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5430$as_echo_n "checking for $ac_word... " >&6; } 5431if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5432 $as_echo_n "(cached) " >&6 5433else 5434 if test -n "$ac_ct_DLLTOOL"; then 5435 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5436else 5437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5438for as_dir in $PATH 5439do 5440 IFS=$as_save_IFS 5441 test -z "$as_dir" && as_dir=. 5442 for ac_exec_ext in '' $ac_executable_extensions; do 5443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5444 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5446 break 2 5447 fi 5448done 5449 done 5450IFS=$as_save_IFS 5451 5452fi 5453fi 5454ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5455if test -n "$ac_ct_DLLTOOL"; then 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5457$as_echo "$ac_ct_DLLTOOL" >&6; } 5458else 5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5460$as_echo "no" >&6; } 5461fi 5462 5463 if test "x$ac_ct_DLLTOOL" = x; then 5464 DLLTOOL="false" 5465 else 5466 case $cross_compiling:$ac_tool_warned in 5467yes:) 5468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5470ac_tool_warned=yes ;; 5471esac 5472 DLLTOOL=$ac_ct_DLLTOOL 5473 fi 5474else 5475 DLLTOOL="$ac_cv_prog_DLLTOOL" 5476fi 5477 5478test -z "$DLLTOOL" && DLLTOOL=dlltool 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5490$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5491if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5492 $as_echo_n "(cached) " >&6 5493else 5494 lt_cv_sharedlib_from_linklib_cmd='unknown' 5495 5496case $host_os in 5497cygwin* | mingw* | pw32* | cegcc*) 5498 # two different shell functions defined in ltmain.sh 5499 # decide which to use based on capabilities of $DLLTOOL 5500 case `$DLLTOOL --help 2>&1` in 5501 *--identify-strict*) 5502 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5503 ;; 5504 *) 5505 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5506 ;; 5507 esac 5508 ;; 5509*) 5510 # fallback: assume linklib IS sharedlib 5511 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5512 ;; 5513esac 5514 5515fi 5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5517$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5518sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5519test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5520 5521 5522 5523 5524 5525 5526 5527 5528if test -n "$ac_tool_prefix"; then 5529 for ac_prog in ar 5530 do 5531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5532set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5534$as_echo_n "checking for $ac_word... " >&6; } 5535if ${ac_cv_prog_AR+:} false; then : 5536 $as_echo_n "(cached) " >&6 5537else 5538 if test -n "$AR"; then 5539 ac_cv_prog_AR="$AR" # Let the user override the test. 5540else 5541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5542for as_dir in $PATH 5543do 5544 IFS=$as_save_IFS 5545 test -z "$as_dir" && as_dir=. 5546 for ac_exec_ext in '' $ac_executable_extensions; do 5547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5548 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5550 break 2 5551 fi 5552done 5553 done 5554IFS=$as_save_IFS 5555 5556fi 5557fi 5558AR=$ac_cv_prog_AR 5559if test -n "$AR"; then 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5561$as_echo "$AR" >&6; } 5562else 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5564$as_echo "no" >&6; } 5565fi 5566 5567 5568 test -n "$AR" && break 5569 done 5570fi 5571if test -z "$AR"; then 5572 ac_ct_AR=$AR 5573 for ac_prog in ar 5574do 5575 # Extract the first word of "$ac_prog", so it can be a program name with args. 5576set dummy $ac_prog; ac_word=$2 5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5578$as_echo_n "checking for $ac_word... " >&6; } 5579if ${ac_cv_prog_ac_ct_AR+:} false; then : 5580 $as_echo_n "(cached) " >&6 5581else 5582 if test -n "$ac_ct_AR"; then 5583 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5584else 5585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5586for as_dir in $PATH 5587do 5588 IFS=$as_save_IFS 5589 test -z "$as_dir" && as_dir=. 5590 for ac_exec_ext in '' $ac_executable_extensions; do 5591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5592 ac_cv_prog_ac_ct_AR="$ac_prog" 5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5594 break 2 5595 fi 5596done 5597 done 5598IFS=$as_save_IFS 5599 5600fi 5601fi 5602ac_ct_AR=$ac_cv_prog_ac_ct_AR 5603if test -n "$ac_ct_AR"; then 5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5605$as_echo "$ac_ct_AR" >&6; } 5606else 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5608$as_echo "no" >&6; } 5609fi 5610 5611 5612 test -n "$ac_ct_AR" && break 5613done 5614 5615 if test "x$ac_ct_AR" = x; then 5616 AR="false" 5617 else 5618 case $cross_compiling:$ac_tool_warned in 5619yes:) 5620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5622ac_tool_warned=yes ;; 5623esac 5624 AR=$ac_ct_AR 5625 fi 5626fi 5627 5628: ${AR=ar} 5629: ${AR_FLAGS=cru} 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5642$as_echo_n "checking for archiver @FILE support... " >&6; } 5643if ${lt_cv_ar_at_file+:} false; then : 5644 $as_echo_n "(cached) " >&6 5645else 5646 lt_cv_ar_at_file=no 5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5648/* end confdefs.h. */ 5649 5650int 5651main () 5652{ 5653 5654 ; 5655 return 0; 5656} 5657_ACEOF 5658if ac_fn_c_try_compile "$LINENO"; then : 5659 echo conftest.$ac_objext > conftest.lst 5660 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5662 (eval $lt_ar_try) 2>&5 5663 ac_status=$? 5664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5665 test $ac_status = 0; } 5666 if test "$ac_status" -eq 0; then 5667 # Ensure the archiver fails upon bogus file names. 5668 rm -f conftest.$ac_objext libconftest.a 5669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5670 (eval $lt_ar_try) 2>&5 5671 ac_status=$? 5672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5673 test $ac_status = 0; } 5674 if test "$ac_status" -ne 0; then 5675 lt_cv_ar_at_file=@ 5676 fi 5677 fi 5678 rm -f conftest.* libconftest.a 5679 5680fi 5681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5682 5683fi 5684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5685$as_echo "$lt_cv_ar_at_file" >&6; } 5686 5687if test "x$lt_cv_ar_at_file" = xno; then 5688 archiver_list_spec= 5689else 5690 archiver_list_spec=$lt_cv_ar_at_file 5691fi 5692 5693 5694 5695 5696 5697 5698 5699if test -n "$ac_tool_prefix"; then 5700 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5701set dummy ${ac_tool_prefix}strip; ac_word=$2 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5703$as_echo_n "checking for $ac_word... " >&6; } 5704if ${ac_cv_prog_STRIP+:} false; then : 5705 $as_echo_n "(cached) " >&6 5706else 5707 if test -n "$STRIP"; then 5708 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5709else 5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5711for as_dir in $PATH 5712do 5713 IFS=$as_save_IFS 5714 test -z "$as_dir" && as_dir=. 5715 for ac_exec_ext in '' $ac_executable_extensions; do 5716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5717 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5719 break 2 5720 fi 5721done 5722 done 5723IFS=$as_save_IFS 5724 5725fi 5726fi 5727STRIP=$ac_cv_prog_STRIP 5728if test -n "$STRIP"; then 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5730$as_echo "$STRIP" >&6; } 5731else 5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5733$as_echo "no" >&6; } 5734fi 5735 5736 5737fi 5738if test -z "$ac_cv_prog_STRIP"; then 5739 ac_ct_STRIP=$STRIP 5740 # Extract the first word of "strip", so it can be a program name with args. 5741set dummy strip; ac_word=$2 5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5743$as_echo_n "checking for $ac_word... " >&6; } 5744if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5745 $as_echo_n "(cached) " >&6 5746else 5747 if test -n "$ac_ct_STRIP"; then 5748 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5749else 5750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5751for as_dir in $PATH 5752do 5753 IFS=$as_save_IFS 5754 test -z "$as_dir" && as_dir=. 5755 for ac_exec_ext in '' $ac_executable_extensions; do 5756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5757 ac_cv_prog_ac_ct_STRIP="strip" 5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5759 break 2 5760 fi 5761done 5762 done 5763IFS=$as_save_IFS 5764 5765fi 5766fi 5767ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5768if test -n "$ac_ct_STRIP"; then 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5770$as_echo "$ac_ct_STRIP" >&6; } 5771else 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5773$as_echo "no" >&6; } 5774fi 5775 5776 if test "x$ac_ct_STRIP" = x; then 5777 STRIP=":" 5778 else 5779 case $cross_compiling:$ac_tool_warned in 5780yes:) 5781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5783ac_tool_warned=yes ;; 5784esac 5785 STRIP=$ac_ct_STRIP 5786 fi 5787else 5788 STRIP="$ac_cv_prog_STRIP" 5789fi 5790 5791test -z "$STRIP" && STRIP=: 5792 5793 5794 5795 5796 5797 5798if test -n "$ac_tool_prefix"; then 5799 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5800set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5802$as_echo_n "checking for $ac_word... " >&6; } 5803if ${ac_cv_prog_RANLIB+:} false; then : 5804 $as_echo_n "(cached) " >&6 5805else 5806 if test -n "$RANLIB"; then 5807 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5808else 5809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5810for as_dir in $PATH 5811do 5812 IFS=$as_save_IFS 5813 test -z "$as_dir" && as_dir=. 5814 for ac_exec_ext in '' $ac_executable_extensions; do 5815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5816 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5818 break 2 5819 fi 5820done 5821 done 5822IFS=$as_save_IFS 5823 5824fi 5825fi 5826RANLIB=$ac_cv_prog_RANLIB 5827if test -n "$RANLIB"; then 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5829$as_echo "$RANLIB" >&6; } 5830else 5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5832$as_echo "no" >&6; } 5833fi 5834 5835 5836fi 5837if test -z "$ac_cv_prog_RANLIB"; then 5838 ac_ct_RANLIB=$RANLIB 5839 # Extract the first word of "ranlib", so it can be a program name with args. 5840set dummy ranlib; ac_word=$2 5841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5842$as_echo_n "checking for $ac_word... " >&6; } 5843if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5844 $as_echo_n "(cached) " >&6 5845else 5846 if test -n "$ac_ct_RANLIB"; then 5847 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5848else 5849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5850for as_dir in $PATH 5851do 5852 IFS=$as_save_IFS 5853 test -z "$as_dir" && as_dir=. 5854 for ac_exec_ext in '' $ac_executable_extensions; do 5855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5856 ac_cv_prog_ac_ct_RANLIB="ranlib" 5857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5858 break 2 5859 fi 5860done 5861 done 5862IFS=$as_save_IFS 5863 5864fi 5865fi 5866ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5867if test -n "$ac_ct_RANLIB"; then 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5869$as_echo "$ac_ct_RANLIB" >&6; } 5870else 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5872$as_echo "no" >&6; } 5873fi 5874 5875 if test "x$ac_ct_RANLIB" = x; then 5876 RANLIB=":" 5877 else 5878 case $cross_compiling:$ac_tool_warned in 5879yes:) 5880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5882ac_tool_warned=yes ;; 5883esac 5884 RANLIB=$ac_ct_RANLIB 5885 fi 5886else 5887 RANLIB="$ac_cv_prog_RANLIB" 5888fi 5889 5890test -z "$RANLIB" && RANLIB=: 5891 5892 5893 5894 5895 5896 5897# Determine commands to create old-style static archives. 5898old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5899old_postinstall_cmds='chmod 644 $oldlib' 5900old_postuninstall_cmds= 5901 5902if test -n "$RANLIB"; then 5903 case $host_os in 5904 openbsd*) 5905 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5906 ;; 5907 *) 5908 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5909 ;; 5910 esac 5911 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5912fi 5913 5914case $host_os in 5915 darwin*) 5916 lock_old_archive_extraction=yes ;; 5917 *) 5918 lock_old_archive_extraction=no ;; 5919esac 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959# If no C compiler was specified, use CC. 5960LTCC=${LTCC-"$CC"} 5961 5962# If no C compiler flags were specified, use CFLAGS. 5963LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5964 5965# Allow CC to be a program name with arguments. 5966compiler=$CC 5967 5968 5969# Check for command to grab the raw symbol name followed by C symbol from nm. 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5971$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5972if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5973 $as_echo_n "(cached) " >&6 5974else 5975 5976# These are sane defaults that work on at least a few old systems. 5977# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5978 5979# Character class describing NM global symbol codes. 5980symcode='[BCDEGRST]' 5981 5982# Regexp to match symbols that can be accessed directly from C. 5983sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5984 5985# Define system-specific variables. 5986case $host_os in 5987aix*) 5988 symcode='[BCDT]' 5989 ;; 5990cygwin* | mingw* | pw32* | cegcc*) 5991 symcode='[ABCDGISTW]' 5992 ;; 5993hpux*) 5994 if test "$host_cpu" = ia64; then 5995 symcode='[ABCDEGRST]' 5996 fi 5997 ;; 5998irix* | nonstopux*) 5999 symcode='[BCDEGRST]' 6000 ;; 6001osf*) 6002 symcode='[BCDEGQRST]' 6003 ;; 6004solaris*) 6005 symcode='[BDRT]' 6006 ;; 6007sco3.2v5*) 6008 symcode='[DT]' 6009 ;; 6010sysv4.2uw2*) 6011 symcode='[DT]' 6012 ;; 6013sysv5* | sco5v6* | unixware* | OpenUNIX*) 6014 symcode='[ABDT]' 6015 ;; 6016sysv4) 6017 symcode='[DFNSTU]' 6018 ;; 6019esac 6020 6021# If we're using GNU nm, then use its standard symbol codes. 6022case `$NM -V 2>&1` in 6023*GNU* | *'with BFD'*) 6024 symcode='[ABCDGIRSTW]' ;; 6025esac 6026 6027# Transform an extracted symbol line into a proper C declaration. 6028# Some systems (esp. on ia64) link data and code symbols differently, 6029# so use this general approach. 6030lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6031 6032# Transform an extracted symbol line into symbol name and symbol address 6033lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6034lt_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'" 6035 6036# Handle CRLF in mingw tool chain 6037opt_cr= 6038case $build_os in 6039mingw*) 6040 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6041 ;; 6042esac 6043 6044# Try without a prefix underscore, then with it. 6045for ac_symprfx in "" "_"; do 6046 6047 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6048 symxfrm="\\1 $ac_symprfx\\2 \\2" 6049 6050 # Write the raw and C identifiers. 6051 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6052 # Fake it for dumpbin and say T for any non-static function 6053 # and D for any global variable. 6054 # Also find C++ and __fastcall symbols from MSVC++, 6055 # which start with @ or ?. 6056 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6057" {last_section=section; section=\$ 3};"\ 6058" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6059" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6060" \$ 0!~/External *\|/{next};"\ 6061" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6062" {if(hide[section]) next};"\ 6063" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6064" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6065" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6066" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6067" ' prfx=^$ac_symprfx" 6068 else 6069 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6070 fi 6071 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6072 6073 # Check to see that the pipe works correctly. 6074 pipe_works=no 6075 6076 rm -f conftest* 6077 cat > conftest.$ac_ext <<_LT_EOF 6078#ifdef __cplusplus 6079extern "C" { 6080#endif 6081char nm_test_var; 6082void nm_test_func(void); 6083void nm_test_func(void){} 6084#ifdef __cplusplus 6085} 6086#endif 6087int main(){nm_test_var='a';nm_test_func();return(0);} 6088_LT_EOF 6089 6090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6091 (eval $ac_compile) 2>&5 6092 ac_status=$? 6093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6094 test $ac_status = 0; }; then 6095 # Now try to grab the symbols. 6096 nlist=conftest.nm 6097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6098 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6099 ac_status=$? 6100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6101 test $ac_status = 0; } && test -s "$nlist"; then 6102 # Try sorting and uniquifying the output. 6103 if sort "$nlist" | uniq > "$nlist"T; then 6104 mv -f "$nlist"T "$nlist" 6105 else 6106 rm -f "$nlist"T 6107 fi 6108 6109 # Make sure that we snagged all the symbols we need. 6110 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6111 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6112 cat <<_LT_EOF > conftest.$ac_ext 6113/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6114#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6115/* DATA imports from DLLs on WIN32 con't be const, because runtime 6116 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6117# define LT_DLSYM_CONST 6118#elif defined(__osf__) 6119/* This system does not cope well with relocations in const data. */ 6120# define LT_DLSYM_CONST 6121#else 6122# define LT_DLSYM_CONST const 6123#endif 6124 6125#ifdef __cplusplus 6126extern "C" { 6127#endif 6128 6129_LT_EOF 6130 # Now generate the symbol file. 6131 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6132 6133 cat <<_LT_EOF >> conftest.$ac_ext 6134 6135/* The mapping between symbol names and symbols. */ 6136LT_DLSYM_CONST struct { 6137 const char *name; 6138 void *address; 6139} 6140lt__PROGRAM__LTX_preloaded_symbols[] = 6141{ 6142 { "@PROGRAM@", (void *) 0 }, 6143_LT_EOF 6144 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6145 cat <<\_LT_EOF >> conftest.$ac_ext 6146 {0, (void *) 0} 6147}; 6148 6149/* This works around a problem in FreeBSD linker */ 6150#ifdef FREEBSD_WORKAROUND 6151static const void *lt_preloaded_setup() { 6152 return lt__PROGRAM__LTX_preloaded_symbols; 6153} 6154#endif 6155 6156#ifdef __cplusplus 6157} 6158#endif 6159_LT_EOF 6160 # Now try linking the two files. 6161 mv conftest.$ac_objext conftstm.$ac_objext 6162 lt_globsym_save_LIBS=$LIBS 6163 lt_globsym_save_CFLAGS=$CFLAGS 6164 LIBS="conftstm.$ac_objext" 6165 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6167 (eval $ac_link) 2>&5 6168 ac_status=$? 6169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6170 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6171 pipe_works=yes 6172 fi 6173 LIBS=$lt_globsym_save_LIBS 6174 CFLAGS=$lt_globsym_save_CFLAGS 6175 else 6176 echo "cannot find nm_test_func in $nlist" >&5 6177 fi 6178 else 6179 echo "cannot find nm_test_var in $nlist" >&5 6180 fi 6181 else 6182 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6183 fi 6184 else 6185 echo "$progname: failed program was:" >&5 6186 cat conftest.$ac_ext >&5 6187 fi 6188 rm -rf conftest* conftst* 6189 6190 # Do not use the global_symbol_pipe unless it works. 6191 if test "$pipe_works" = yes; then 6192 break 6193 else 6194 lt_cv_sys_global_symbol_pipe= 6195 fi 6196done 6197 6198fi 6199 6200if test -z "$lt_cv_sys_global_symbol_pipe"; then 6201 lt_cv_sys_global_symbol_to_cdecl= 6202fi 6203if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6205$as_echo "failed" >&6; } 6206else 6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6208$as_echo "ok" >&6; } 6209fi 6210 6211# Response file support. 6212if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6213 nm_file_list_spec='@' 6214elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6215 nm_file_list_spec='@' 6216fi 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6245$as_echo_n "checking for sysroot... " >&6; } 6246 6247# Check whether --with-sysroot was given. 6248if test "${with_sysroot+set}" = set; then : 6249 withval=$with_sysroot; 6250else 6251 with_sysroot=no 6252fi 6253 6254 6255lt_sysroot= 6256case ${with_sysroot} in #( 6257 yes) 6258 if test "$GCC" = yes; then 6259 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6260 fi 6261 ;; #( 6262 /*) 6263 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6264 ;; #( 6265 no|'') 6266 ;; #( 6267 *) 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6269$as_echo "${with_sysroot}" >&6; } 6270 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6271 ;; 6272esac 6273 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6275$as_echo "${lt_sysroot:-no}" >&6; } 6276 6277 6278 6279 6280 6281# Check whether --enable-libtool-lock was given. 6282if test "${enable_libtool_lock+set}" = set; then : 6283 enableval=$enable_libtool_lock; 6284fi 6285 6286test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6287 6288# Some flags need to be propagated to the compiler or linker for good 6289# libtool support. 6290case $host in 6291ia64-*-hpux*) 6292 # Find out which ABI we are using. 6293 echo 'int i;' > conftest.$ac_ext 6294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6295 (eval $ac_compile) 2>&5 6296 ac_status=$? 6297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6298 test $ac_status = 0; }; then 6299 case `/usr/bin/file conftest.$ac_objext` in 6300 *ELF-32*) 6301 HPUX_IA64_MODE="32" 6302 ;; 6303 *ELF-64*) 6304 HPUX_IA64_MODE="64" 6305 ;; 6306 esac 6307 fi 6308 rm -rf conftest* 6309 ;; 6310*-*-irix6*) 6311 # Find out which ABI we are using. 6312 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6314 (eval $ac_compile) 2>&5 6315 ac_status=$? 6316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6317 test $ac_status = 0; }; then 6318 if test "$lt_cv_prog_gnu_ld" = yes; then 6319 case `/usr/bin/file conftest.$ac_objext` in 6320 *32-bit*) 6321 LD="${LD-ld} -melf32bsmip" 6322 ;; 6323 *N32*) 6324 LD="${LD-ld} -melf32bmipn32" 6325 ;; 6326 *64-bit*) 6327 LD="${LD-ld} -melf64bmip" 6328 ;; 6329 esac 6330 else 6331 case `/usr/bin/file conftest.$ac_objext` in 6332 *32-bit*) 6333 LD="${LD-ld} -32" 6334 ;; 6335 *N32*) 6336 LD="${LD-ld} -n32" 6337 ;; 6338 *64-bit*) 6339 LD="${LD-ld} -64" 6340 ;; 6341 esac 6342 fi 6343 fi 6344 rm -rf conftest* 6345 ;; 6346 6347x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6348s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6349 # Find out which ABI we are using. 6350 echo 'int i;' > conftest.$ac_ext 6351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6352 (eval $ac_compile) 2>&5 6353 ac_status=$? 6354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6355 test $ac_status = 0; }; then 6356 case `/usr/bin/file conftest.o` in 6357 *32-bit*) 6358 case $host in 6359 x86_64-*kfreebsd*-gnu) 6360 LD="${LD-ld} -m elf_i386_fbsd" 6361 ;; 6362 x86_64-*linux*) 6363 LD="${LD-ld} -m elf_i386" 6364 ;; 6365 ppc64-*linux*|powerpc64-*linux*) 6366 LD="${LD-ld} -m elf32ppclinux" 6367 ;; 6368 s390x-*linux*) 6369 LD="${LD-ld} -m elf_s390" 6370 ;; 6371 sparc64-*linux*) 6372 LD="${LD-ld} -m elf32_sparc" 6373 ;; 6374 esac 6375 ;; 6376 *64-bit*) 6377 case $host in 6378 x86_64-*kfreebsd*-gnu) 6379 LD="${LD-ld} -m elf_x86_64_fbsd" 6380 ;; 6381 x86_64-*linux*) 6382 LD="${LD-ld} -m elf_x86_64" 6383 ;; 6384 ppc*-*linux*|powerpc*-*linux*) 6385 LD="${LD-ld} -m elf64ppc" 6386 ;; 6387 s390*-*linux*|s390*-*tpf*) 6388 LD="${LD-ld} -m elf64_s390" 6389 ;; 6390 sparc*-*linux*) 6391 LD="${LD-ld} -m elf64_sparc" 6392 ;; 6393 esac 6394 ;; 6395 esac 6396 fi 6397 rm -rf conftest* 6398 ;; 6399 6400*-*-sco3.2v5*) 6401 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6402 SAVE_CFLAGS="$CFLAGS" 6403 CFLAGS="$CFLAGS -belf" 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6405$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6406if ${lt_cv_cc_needs_belf+:} false; then : 6407 $as_echo_n "(cached) " >&6 6408else 6409 ac_ext=c 6410ac_cpp='$CPP $CPPFLAGS' 6411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6413ac_compiler_gnu=$ac_cv_c_compiler_gnu 6414 6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6416/* end confdefs.h. */ 6417 6418int 6419main () 6420{ 6421 6422 ; 6423 return 0; 6424} 6425_ACEOF 6426if ac_fn_c_try_link "$LINENO"; then : 6427 lt_cv_cc_needs_belf=yes 6428else 6429 lt_cv_cc_needs_belf=no 6430fi 6431rm -f core conftest.err conftest.$ac_objext \ 6432 conftest$ac_exeext conftest.$ac_ext 6433 ac_ext=c 6434ac_cpp='$CPP $CPPFLAGS' 6435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6437ac_compiler_gnu=$ac_cv_c_compiler_gnu 6438 6439fi 6440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6441$as_echo "$lt_cv_cc_needs_belf" >&6; } 6442 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6443 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6444 CFLAGS="$SAVE_CFLAGS" 6445 fi 6446 ;; 6447*-*solaris*) 6448 # Find out which ABI we are using. 6449 echo 'int i;' > conftest.$ac_ext 6450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6451 (eval $ac_compile) 2>&5 6452 ac_status=$? 6453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6454 test $ac_status = 0; }; then 6455 case `/usr/bin/file conftest.o` in 6456 *64-bit*) 6457 case $lt_cv_prog_gnu_ld in 6458 yes*) 6459 case $host in 6460 i?86-*-solaris*) 6461 LD="${LD-ld} -m elf_x86_64" 6462 ;; 6463 sparc*-*-solaris*) 6464 LD="${LD-ld} -m elf64_sparc" 6465 ;; 6466 esac 6467 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6468 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6469 LD="${LD-ld}_sol2" 6470 fi 6471 ;; 6472 *) 6473 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6474 LD="${LD-ld} -64" 6475 fi 6476 ;; 6477 esac 6478 ;; 6479 esac 6480 fi 6481 rm -rf conftest* 6482 ;; 6483esac 6484 6485need_locks="$enable_libtool_lock" 6486 6487if test -n "$ac_tool_prefix"; then 6488 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6489set dummy ${ac_tool_prefix}mt; ac_word=$2 6490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6491$as_echo_n "checking for $ac_word... " >&6; } 6492if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6493 $as_echo_n "(cached) " >&6 6494else 6495 if test -n "$MANIFEST_TOOL"; then 6496 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6497else 6498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6499for as_dir in $PATH 6500do 6501 IFS=$as_save_IFS 6502 test -z "$as_dir" && as_dir=. 6503 for ac_exec_ext in '' $ac_executable_extensions; do 6504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6505 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6507 break 2 6508 fi 6509done 6510 done 6511IFS=$as_save_IFS 6512 6513fi 6514fi 6515MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6516if test -n "$MANIFEST_TOOL"; then 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6518$as_echo "$MANIFEST_TOOL" >&6; } 6519else 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6521$as_echo "no" >&6; } 6522fi 6523 6524 6525fi 6526if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6527 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6528 # Extract the first word of "mt", so it can be a program name with args. 6529set dummy mt; ac_word=$2 6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6531$as_echo_n "checking for $ac_word... " >&6; } 6532if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6533 $as_echo_n "(cached) " >&6 6534else 6535 if test -n "$ac_ct_MANIFEST_TOOL"; then 6536 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6537else 6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6539for as_dir in $PATH 6540do 6541 IFS=$as_save_IFS 6542 test -z "$as_dir" && as_dir=. 6543 for ac_exec_ext in '' $ac_executable_extensions; do 6544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6545 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6547 break 2 6548 fi 6549done 6550 done 6551IFS=$as_save_IFS 6552 6553fi 6554fi 6555ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6556if test -n "$ac_ct_MANIFEST_TOOL"; then 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6558$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6559else 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6561$as_echo "no" >&6; } 6562fi 6563 6564 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6565 MANIFEST_TOOL=":" 6566 else 6567 case $cross_compiling:$ac_tool_warned in 6568yes:) 6569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6571ac_tool_warned=yes ;; 6572esac 6573 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6574 fi 6575else 6576 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6577fi 6578 6579test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6581$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6582if ${lt_cv_path_mainfest_tool+:} false; then : 6583 $as_echo_n "(cached) " >&6 6584else 6585 lt_cv_path_mainfest_tool=no 6586 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6587 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6588 cat conftest.err >&5 6589 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6590 lt_cv_path_mainfest_tool=yes 6591 fi 6592 rm -f conftest* 6593fi 6594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6595$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6596if test "x$lt_cv_path_mainfest_tool" != xyes; then 6597 MANIFEST_TOOL=: 6598fi 6599 6600 6601 6602 6603 6604 6605 case $host_os in 6606 rhapsody* | darwin*) 6607 if test -n "$ac_tool_prefix"; then 6608 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6609set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6611$as_echo_n "checking for $ac_word... " >&6; } 6612if ${ac_cv_prog_DSYMUTIL+:} false; then : 6613 $as_echo_n "(cached) " >&6 6614else 6615 if test -n "$DSYMUTIL"; then 6616 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6617else 6618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6619for as_dir in $PATH 6620do 6621 IFS=$as_save_IFS 6622 test -z "$as_dir" && as_dir=. 6623 for ac_exec_ext in '' $ac_executable_extensions; do 6624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6625 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6627 break 2 6628 fi 6629done 6630 done 6631IFS=$as_save_IFS 6632 6633fi 6634fi 6635DSYMUTIL=$ac_cv_prog_DSYMUTIL 6636if test -n "$DSYMUTIL"; then 6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6638$as_echo "$DSYMUTIL" >&6; } 6639else 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6641$as_echo "no" >&6; } 6642fi 6643 6644 6645fi 6646if test -z "$ac_cv_prog_DSYMUTIL"; then 6647 ac_ct_DSYMUTIL=$DSYMUTIL 6648 # Extract the first word of "dsymutil", so it can be a program name with args. 6649set dummy dsymutil; ac_word=$2 6650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6651$as_echo_n "checking for $ac_word... " >&6; } 6652if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6653 $as_echo_n "(cached) " >&6 6654else 6655 if test -n "$ac_ct_DSYMUTIL"; then 6656 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6657else 6658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6659for as_dir in $PATH 6660do 6661 IFS=$as_save_IFS 6662 test -z "$as_dir" && as_dir=. 6663 for ac_exec_ext in '' $ac_executable_extensions; do 6664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6665 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6667 break 2 6668 fi 6669done 6670 done 6671IFS=$as_save_IFS 6672 6673fi 6674fi 6675ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6676if test -n "$ac_ct_DSYMUTIL"; then 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6678$as_echo "$ac_ct_DSYMUTIL" >&6; } 6679else 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6681$as_echo "no" >&6; } 6682fi 6683 6684 if test "x$ac_ct_DSYMUTIL" = x; then 6685 DSYMUTIL=":" 6686 else 6687 case $cross_compiling:$ac_tool_warned in 6688yes:) 6689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6691ac_tool_warned=yes ;; 6692esac 6693 DSYMUTIL=$ac_ct_DSYMUTIL 6694 fi 6695else 6696 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6697fi 6698 6699 if test -n "$ac_tool_prefix"; then 6700 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6701set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6703$as_echo_n "checking for $ac_word... " >&6; } 6704if ${ac_cv_prog_NMEDIT+:} false; then : 6705 $as_echo_n "(cached) " >&6 6706else 6707 if test -n "$NMEDIT"; then 6708 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6709else 6710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6711for as_dir in $PATH 6712do 6713 IFS=$as_save_IFS 6714 test -z "$as_dir" && as_dir=. 6715 for ac_exec_ext in '' $ac_executable_extensions; do 6716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6717 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6719 break 2 6720 fi 6721done 6722 done 6723IFS=$as_save_IFS 6724 6725fi 6726fi 6727NMEDIT=$ac_cv_prog_NMEDIT 6728if test -n "$NMEDIT"; then 6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6730$as_echo "$NMEDIT" >&6; } 6731else 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6733$as_echo "no" >&6; } 6734fi 6735 6736 6737fi 6738if test -z "$ac_cv_prog_NMEDIT"; then 6739 ac_ct_NMEDIT=$NMEDIT 6740 # Extract the first word of "nmedit", so it can be a program name with args. 6741set dummy nmedit; ac_word=$2 6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6743$as_echo_n "checking for $ac_word... " >&6; } 6744if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6745 $as_echo_n "(cached) " >&6 6746else 6747 if test -n "$ac_ct_NMEDIT"; then 6748 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6749else 6750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6751for as_dir in $PATH 6752do 6753 IFS=$as_save_IFS 6754 test -z "$as_dir" && as_dir=. 6755 for ac_exec_ext in '' $ac_executable_extensions; do 6756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6757 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6759 break 2 6760 fi 6761done 6762 done 6763IFS=$as_save_IFS 6764 6765fi 6766fi 6767ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6768if test -n "$ac_ct_NMEDIT"; then 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6770$as_echo "$ac_ct_NMEDIT" >&6; } 6771else 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6773$as_echo "no" >&6; } 6774fi 6775 6776 if test "x$ac_ct_NMEDIT" = x; then 6777 NMEDIT=":" 6778 else 6779 case $cross_compiling:$ac_tool_warned in 6780yes:) 6781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6783ac_tool_warned=yes ;; 6784esac 6785 NMEDIT=$ac_ct_NMEDIT 6786 fi 6787else 6788 NMEDIT="$ac_cv_prog_NMEDIT" 6789fi 6790 6791 if test -n "$ac_tool_prefix"; then 6792 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6793set dummy ${ac_tool_prefix}lipo; ac_word=$2 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6795$as_echo_n "checking for $ac_word... " >&6; } 6796if ${ac_cv_prog_LIPO+:} false; then : 6797 $as_echo_n "(cached) " >&6 6798else 6799 if test -n "$LIPO"; then 6800 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6801else 6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6803for as_dir in $PATH 6804do 6805 IFS=$as_save_IFS 6806 test -z "$as_dir" && as_dir=. 6807 for ac_exec_ext in '' $ac_executable_extensions; do 6808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6809 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6811 break 2 6812 fi 6813done 6814 done 6815IFS=$as_save_IFS 6816 6817fi 6818fi 6819LIPO=$ac_cv_prog_LIPO 6820if test -n "$LIPO"; then 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6822$as_echo "$LIPO" >&6; } 6823else 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6825$as_echo "no" >&6; } 6826fi 6827 6828 6829fi 6830if test -z "$ac_cv_prog_LIPO"; then 6831 ac_ct_LIPO=$LIPO 6832 # Extract the first word of "lipo", so it can be a program name with args. 6833set dummy lipo; ac_word=$2 6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6835$as_echo_n "checking for $ac_word... " >&6; } 6836if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6837 $as_echo_n "(cached) " >&6 6838else 6839 if test -n "$ac_ct_LIPO"; then 6840 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6841else 6842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6843for as_dir in $PATH 6844do 6845 IFS=$as_save_IFS 6846 test -z "$as_dir" && as_dir=. 6847 for ac_exec_ext in '' $ac_executable_extensions; do 6848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6849 ac_cv_prog_ac_ct_LIPO="lipo" 6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6851 break 2 6852 fi 6853done 6854 done 6855IFS=$as_save_IFS 6856 6857fi 6858fi 6859ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6860if test -n "$ac_ct_LIPO"; then 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6862$as_echo "$ac_ct_LIPO" >&6; } 6863else 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6865$as_echo "no" >&6; } 6866fi 6867 6868 if test "x$ac_ct_LIPO" = x; then 6869 LIPO=":" 6870 else 6871 case $cross_compiling:$ac_tool_warned in 6872yes:) 6873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6875ac_tool_warned=yes ;; 6876esac 6877 LIPO=$ac_ct_LIPO 6878 fi 6879else 6880 LIPO="$ac_cv_prog_LIPO" 6881fi 6882 6883 if test -n "$ac_tool_prefix"; then 6884 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6885set dummy ${ac_tool_prefix}otool; ac_word=$2 6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6887$as_echo_n "checking for $ac_word... " >&6; } 6888if ${ac_cv_prog_OTOOL+:} false; then : 6889 $as_echo_n "(cached) " >&6 6890else 6891 if test -n "$OTOOL"; then 6892 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6893else 6894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6895for as_dir in $PATH 6896do 6897 IFS=$as_save_IFS 6898 test -z "$as_dir" && as_dir=. 6899 for ac_exec_ext in '' $ac_executable_extensions; do 6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6901 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6903 break 2 6904 fi 6905done 6906 done 6907IFS=$as_save_IFS 6908 6909fi 6910fi 6911OTOOL=$ac_cv_prog_OTOOL 6912if test -n "$OTOOL"; then 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6914$as_echo "$OTOOL" >&6; } 6915else 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6917$as_echo "no" >&6; } 6918fi 6919 6920 6921fi 6922if test -z "$ac_cv_prog_OTOOL"; then 6923 ac_ct_OTOOL=$OTOOL 6924 # Extract the first word of "otool", so it can be a program name with args. 6925set dummy otool; ac_word=$2 6926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6927$as_echo_n "checking for $ac_word... " >&6; } 6928if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6929 $as_echo_n "(cached) " >&6 6930else 6931 if test -n "$ac_ct_OTOOL"; then 6932 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6933else 6934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6935for as_dir in $PATH 6936do 6937 IFS=$as_save_IFS 6938 test -z "$as_dir" && as_dir=. 6939 for ac_exec_ext in '' $ac_executable_extensions; do 6940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6941 ac_cv_prog_ac_ct_OTOOL="otool" 6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6943 break 2 6944 fi 6945done 6946 done 6947IFS=$as_save_IFS 6948 6949fi 6950fi 6951ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6952if test -n "$ac_ct_OTOOL"; then 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6954$as_echo "$ac_ct_OTOOL" >&6; } 6955else 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6957$as_echo "no" >&6; } 6958fi 6959 6960 if test "x$ac_ct_OTOOL" = x; then 6961 OTOOL=":" 6962 else 6963 case $cross_compiling:$ac_tool_warned in 6964yes:) 6965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6967ac_tool_warned=yes ;; 6968esac 6969 OTOOL=$ac_ct_OTOOL 6970 fi 6971else 6972 OTOOL="$ac_cv_prog_OTOOL" 6973fi 6974 6975 if test -n "$ac_tool_prefix"; then 6976 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6977set dummy ${ac_tool_prefix}otool64; ac_word=$2 6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6979$as_echo_n "checking for $ac_word... " >&6; } 6980if ${ac_cv_prog_OTOOL64+:} false; then : 6981 $as_echo_n "(cached) " >&6 6982else 6983 if test -n "$OTOOL64"; then 6984 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6985else 6986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6987for as_dir in $PATH 6988do 6989 IFS=$as_save_IFS 6990 test -z "$as_dir" && as_dir=. 6991 for ac_exec_ext in '' $ac_executable_extensions; do 6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6993 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6995 break 2 6996 fi 6997done 6998 done 6999IFS=$as_save_IFS 7000 7001fi 7002fi 7003OTOOL64=$ac_cv_prog_OTOOL64 7004if test -n "$OTOOL64"; then 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7006$as_echo "$OTOOL64" >&6; } 7007else 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7009$as_echo "no" >&6; } 7010fi 7011 7012 7013fi 7014if test -z "$ac_cv_prog_OTOOL64"; then 7015 ac_ct_OTOOL64=$OTOOL64 7016 # Extract the first word of "otool64", so it can be a program name with args. 7017set dummy otool64; ac_word=$2 7018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7019$as_echo_n "checking for $ac_word... " >&6; } 7020if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7021 $as_echo_n "(cached) " >&6 7022else 7023 if test -n "$ac_ct_OTOOL64"; then 7024 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7025else 7026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7027for as_dir in $PATH 7028do 7029 IFS=$as_save_IFS 7030 test -z "$as_dir" && as_dir=. 7031 for ac_exec_ext in '' $ac_executable_extensions; do 7032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7033 ac_cv_prog_ac_ct_OTOOL64="otool64" 7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7035 break 2 7036 fi 7037done 7038 done 7039IFS=$as_save_IFS 7040 7041fi 7042fi 7043ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7044if test -n "$ac_ct_OTOOL64"; then 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7046$as_echo "$ac_ct_OTOOL64" >&6; } 7047else 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7049$as_echo "no" >&6; } 7050fi 7051 7052 if test "x$ac_ct_OTOOL64" = x; then 7053 OTOOL64=":" 7054 else 7055 case $cross_compiling:$ac_tool_warned in 7056yes:) 7057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7059ac_tool_warned=yes ;; 7060esac 7061 OTOOL64=$ac_ct_OTOOL64 7062 fi 7063else 7064 OTOOL64="$ac_cv_prog_OTOOL64" 7065fi 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7094$as_echo_n "checking for -single_module linker flag... " >&6; } 7095if ${lt_cv_apple_cc_single_mod+:} false; then : 7096 $as_echo_n "(cached) " >&6 7097else 7098 lt_cv_apple_cc_single_mod=no 7099 if test -z "${LT_MULTI_MODULE}"; then 7100 # By default we will add the -single_module flag. You can override 7101 # by either setting the environment variable LT_MULTI_MODULE 7102 # non-empty at configure time, or by adding -multi_module to the 7103 # link flags. 7104 rm -rf libconftest.dylib* 7105 echo "int foo(void){return 1;}" > conftest.c 7106 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7107-dynamiclib -Wl,-single_module conftest.c" >&5 7108 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7109 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7110 _lt_result=$? 7111 # If there is a non-empty error log, and "single_module" 7112 # appears in it, assume the flag caused a linker warning 7113 if test -s conftest.err && $GREP single_module conftest.err; then 7114 cat conftest.err >&5 7115 # Otherwise, if the output was created with a 0 exit code from 7116 # the compiler, it worked. 7117 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7118 lt_cv_apple_cc_single_mod=yes 7119 else 7120 cat conftest.err >&5 7121 fi 7122 rm -rf libconftest.dylib* 7123 rm -f conftest.* 7124 fi 7125fi 7126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7127$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7128 7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7130$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7131if ${lt_cv_ld_exported_symbols_list+:} false; then : 7132 $as_echo_n "(cached) " >&6 7133else 7134 lt_cv_ld_exported_symbols_list=no 7135 save_LDFLAGS=$LDFLAGS 7136 echo "_main" > conftest.sym 7137 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7139/* end confdefs.h. */ 7140 7141int 7142main () 7143{ 7144 7145 ; 7146 return 0; 7147} 7148_ACEOF 7149if ac_fn_c_try_link "$LINENO"; then : 7150 lt_cv_ld_exported_symbols_list=yes 7151else 7152 lt_cv_ld_exported_symbols_list=no 7153fi 7154rm -f core conftest.err conftest.$ac_objext \ 7155 conftest$ac_exeext conftest.$ac_ext 7156 LDFLAGS="$save_LDFLAGS" 7157 7158fi 7159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7160$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7161 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7163$as_echo_n "checking for -force_load linker flag... " >&6; } 7164if ${lt_cv_ld_force_load+:} false; then : 7165 $as_echo_n "(cached) " >&6 7166else 7167 lt_cv_ld_force_load=no 7168 cat > conftest.c << _LT_EOF 7169int forced_loaded() { return 2;} 7170_LT_EOF 7171 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7172 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7173 echo "$AR cru libconftest.a conftest.o" >&5 7174 $AR cru libconftest.a conftest.o 2>&5 7175 echo "$RANLIB libconftest.a" >&5 7176 $RANLIB libconftest.a 2>&5 7177 cat > conftest.c << _LT_EOF 7178int main() { return 0;} 7179_LT_EOF 7180 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7181 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7182 _lt_result=$? 7183 if test -s conftest.err && $GREP force_load conftest.err; then 7184 cat conftest.err >&5 7185 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7186 lt_cv_ld_force_load=yes 7187 else 7188 cat conftest.err >&5 7189 fi 7190 rm -f conftest.err libconftest.a conftest conftest.c 7191 rm -rf conftest.dSYM 7192 7193fi 7194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7195$as_echo "$lt_cv_ld_force_load" >&6; } 7196 case $host_os in 7197 rhapsody* | darwin1.[012]) 7198 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7199 darwin1.*) 7200 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7201 darwin*) # darwin 5.x on 7202 # if running on 10.5 or later, the deployment target defaults 7203 # to the OS version, if on x86, and 10.4, the deployment 7204 # target defaults to 10.4. Don't you love it? 7205 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7206 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7207 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7208 10.[012]*) 7209 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7210 10.*) 7211 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7212 esac 7213 ;; 7214 esac 7215 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7216 _lt_dar_single_mod='$single_module' 7217 fi 7218 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7219 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7220 else 7221 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7222 fi 7223 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7224 _lt_dsymutil='~$DSYMUTIL $lib || :' 7225 else 7226 _lt_dsymutil= 7227 fi 7228 ;; 7229 esac 7230 7231ac_ext=c 7232ac_cpp='$CPP $CPPFLAGS' 7233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7235ac_compiler_gnu=$ac_cv_c_compiler_gnu 7236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7237$as_echo_n "checking how to run the C preprocessor... " >&6; } 7238# On Suns, sometimes $CPP names a directory. 7239if test -n "$CPP" && test -d "$CPP"; then 7240 CPP= 7241fi 7242if test -z "$CPP"; then 7243 if ${ac_cv_prog_CPP+:} false; then : 7244 $as_echo_n "(cached) " >&6 7245else 7246 # Double quotes because CPP needs to be expanded 7247 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7248 do 7249 ac_preproc_ok=false 7250for ac_c_preproc_warn_flag in '' yes 7251do 7252 # Use a header file that comes with gcc, so configuring glibc 7253 # with a fresh cross-compiler works. 7254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7255 # <limits.h> exists even on freestanding compilers. 7256 # On the NeXT, cc -E runs the code through the compiler's parser, 7257 # not just through cpp. "Syntax error" is here to catch this case. 7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7259/* end confdefs.h. */ 7260#ifdef __STDC__ 7261# include <limits.h> 7262#else 7263# include <assert.h> 7264#endif 7265 Syntax error 7266_ACEOF 7267if ac_fn_c_try_cpp "$LINENO"; then : 7268 7269else 7270 # Broken: fails on valid input. 7271continue 7272fi 7273rm -f conftest.err conftest.i conftest.$ac_ext 7274 7275 # OK, works on sane cases. Now check whether nonexistent headers 7276 # can be detected and how. 7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7278/* end confdefs.h. */ 7279#include <ac_nonexistent.h> 7280_ACEOF 7281if ac_fn_c_try_cpp "$LINENO"; then : 7282 # Broken: success on invalid input. 7283continue 7284else 7285 # Passes both tests. 7286ac_preproc_ok=: 7287break 7288fi 7289rm -f conftest.err conftest.i conftest.$ac_ext 7290 7291done 7292# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7293rm -f conftest.i conftest.err conftest.$ac_ext 7294if $ac_preproc_ok; then : 7295 break 7296fi 7297 7298 done 7299 ac_cv_prog_CPP=$CPP 7300 7301fi 7302 CPP=$ac_cv_prog_CPP 7303else 7304 ac_cv_prog_CPP=$CPP 7305fi 7306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7307$as_echo "$CPP" >&6; } 7308ac_preproc_ok=false 7309for ac_c_preproc_warn_flag in '' yes 7310do 7311 # Use a header file that comes with gcc, so configuring glibc 7312 # with a fresh cross-compiler works. 7313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7314 # <limits.h> exists even on freestanding compilers. 7315 # On the NeXT, cc -E runs the code through the compiler's parser, 7316 # not just through cpp. "Syntax error" is here to catch this case. 7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7318/* end confdefs.h. */ 7319#ifdef __STDC__ 7320# include <limits.h> 7321#else 7322# include <assert.h> 7323#endif 7324 Syntax error 7325_ACEOF 7326if ac_fn_c_try_cpp "$LINENO"; then : 7327 7328else 7329 # Broken: fails on valid input. 7330continue 7331fi 7332rm -f conftest.err conftest.i conftest.$ac_ext 7333 7334 # OK, works on sane cases. Now check whether nonexistent headers 7335 # can be detected and how. 7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7337/* end confdefs.h. */ 7338#include <ac_nonexistent.h> 7339_ACEOF 7340if ac_fn_c_try_cpp "$LINENO"; then : 7341 # Broken: success on invalid input. 7342continue 7343else 7344 # Passes both tests. 7345ac_preproc_ok=: 7346break 7347fi 7348rm -f conftest.err conftest.i conftest.$ac_ext 7349 7350done 7351# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7352rm -f conftest.i conftest.err conftest.$ac_ext 7353if $ac_preproc_ok; then : 7354 7355else 7356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7358as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7359See \`config.log' for more details" "$LINENO" 5; } 7360fi 7361 7362ac_ext=c 7363ac_cpp='$CPP $CPPFLAGS' 7364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7366ac_compiler_gnu=$ac_cv_c_compiler_gnu 7367 7368 7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7370$as_echo_n "checking for ANSI C header files... " >&6; } 7371if ${ac_cv_header_stdc+:} false; then : 7372 $as_echo_n "(cached) " >&6 7373else 7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7375/* end confdefs.h. */ 7376#include <stdlib.h> 7377#include <stdarg.h> 7378#include <string.h> 7379#include <float.h> 7380 7381int 7382main () 7383{ 7384 7385 ; 7386 return 0; 7387} 7388_ACEOF 7389if ac_fn_c_try_compile "$LINENO"; then : 7390 ac_cv_header_stdc=yes 7391else 7392 ac_cv_header_stdc=no 7393fi 7394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7395 7396if test $ac_cv_header_stdc = yes; then 7397 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7399/* end confdefs.h. */ 7400#include <string.h> 7401 7402_ACEOF 7403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7404 $EGREP "memchr" >/dev/null 2>&1; then : 7405 7406else 7407 ac_cv_header_stdc=no 7408fi 7409rm -f conftest* 7410 7411fi 7412 7413if test $ac_cv_header_stdc = yes; then 7414 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7416/* end confdefs.h. */ 7417#include <stdlib.h> 7418 7419_ACEOF 7420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7421 $EGREP "free" >/dev/null 2>&1; then : 7422 7423else 7424 ac_cv_header_stdc=no 7425fi 7426rm -f conftest* 7427 7428fi 7429 7430if test $ac_cv_header_stdc = yes; then 7431 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7432 if test "$cross_compiling" = yes; then : 7433 : 7434else 7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7436/* end confdefs.h. */ 7437#include <ctype.h> 7438#include <stdlib.h> 7439#if ((' ' & 0x0FF) == 0x020) 7440# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7441# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7442#else 7443# define ISLOWER(c) \ 7444 (('a' <= (c) && (c) <= 'i') \ 7445 || ('j' <= (c) && (c) <= 'r') \ 7446 || ('s' <= (c) && (c) <= 'z')) 7447# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7448#endif 7449 7450#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7451int 7452main () 7453{ 7454 int i; 7455 for (i = 0; i < 256; i++) 7456 if (XOR (islower (i), ISLOWER (i)) 7457 || toupper (i) != TOUPPER (i)) 7458 return 2; 7459 return 0; 7460} 7461_ACEOF 7462if ac_fn_c_try_run "$LINENO"; then : 7463 7464else 7465 ac_cv_header_stdc=no 7466fi 7467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7468 conftest.$ac_objext conftest.beam conftest.$ac_ext 7469fi 7470 7471fi 7472fi 7473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7474$as_echo "$ac_cv_header_stdc" >&6; } 7475if test $ac_cv_header_stdc = yes; then 7476 7477$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7478 7479fi 7480 7481# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7482for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7483 inttypes.h stdint.h unistd.h 7484do : 7485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7486ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7487" 7488if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7489 cat >>confdefs.h <<_ACEOF 7490#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7491_ACEOF 7492 7493fi 7494 7495done 7496 7497 7498for ac_header in dlfcn.h 7499do : 7500 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7501" 7502if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7503 cat >>confdefs.h <<_ACEOF 7504#define HAVE_DLFCN_H 1 7505_ACEOF 7506 7507fi 7508 7509done 7510 7511 7512 7513 7514 7515# Set options 7516 7517 7518 7519 enable_dlopen=no 7520 7521 7522 enable_win32_dll=no 7523 7524 7525 # Check whether --enable-shared was given. 7526if test "${enable_shared+set}" = set; then : 7527 enableval=$enable_shared; p=${PACKAGE-default} 7528 case $enableval in 7529 yes) enable_shared=yes ;; 7530 no) enable_shared=no ;; 7531 *) 7532 enable_shared=no 7533 # Look at the argument we got. We use all the common list separators. 7534 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7535 for pkg in $enableval; do 7536 IFS="$lt_save_ifs" 7537 if test "X$pkg" = "X$p"; then 7538 enable_shared=yes 7539 fi 7540 done 7541 IFS="$lt_save_ifs" 7542 ;; 7543 esac 7544else 7545 enable_shared=yes 7546fi 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 # Check whether --enable-static was given. 7557if test "${enable_static+set}" = set; then : 7558 enableval=$enable_static; p=${PACKAGE-default} 7559 case $enableval in 7560 yes) enable_static=yes ;; 7561 no) enable_static=no ;; 7562 *) 7563 enable_static=no 7564 # Look at the argument we got. We use all the common list separators. 7565 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7566 for pkg in $enableval; do 7567 IFS="$lt_save_ifs" 7568 if test "X$pkg" = "X$p"; then 7569 enable_static=yes 7570 fi 7571 done 7572 IFS="$lt_save_ifs" 7573 ;; 7574 esac 7575else 7576 enable_static=yes 7577fi 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588# Check whether --with-pic was given. 7589if test "${with_pic+set}" = set; then : 7590 withval=$with_pic; lt_p=${PACKAGE-default} 7591 case $withval in 7592 yes|no) pic_mode=$withval ;; 7593 *) 7594 pic_mode=default 7595 # Look at the argument we got. We use all the common list separators. 7596 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7597 for lt_pkg in $withval; do 7598 IFS="$lt_save_ifs" 7599 if test "X$lt_pkg" = "X$lt_p"; then 7600 pic_mode=yes 7601 fi 7602 done 7603 IFS="$lt_save_ifs" 7604 ;; 7605 esac 7606else 7607 pic_mode=default 7608fi 7609 7610 7611test -z "$pic_mode" && pic_mode=default 7612 7613 7614 7615 7616 7617 7618 7619 # Check whether --enable-fast-install was given. 7620if test "${enable_fast_install+set}" = set; then : 7621 enableval=$enable_fast_install; p=${PACKAGE-default} 7622 case $enableval in 7623 yes) enable_fast_install=yes ;; 7624 no) enable_fast_install=no ;; 7625 *) 7626 enable_fast_install=no 7627 # Look at the argument we got. We use all the common list separators. 7628 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7629 for pkg in $enableval; do 7630 IFS="$lt_save_ifs" 7631 if test "X$pkg" = "X$p"; then 7632 enable_fast_install=yes 7633 fi 7634 done 7635 IFS="$lt_save_ifs" 7636 ;; 7637 esac 7638else 7639 enable_fast_install=yes 7640fi 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652# This can be used to rebuild libtool when needed 7653LIBTOOL_DEPS="$ltmain" 7654 7655# Always use our own libtool. 7656LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687test -z "$LN_S" && LN_S="ln -s" 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702if test -n "${ZSH_VERSION+set}" ; then 7703 setopt NO_GLOB_SUBST 7704fi 7705 7706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7707$as_echo_n "checking for objdir... " >&6; } 7708if ${lt_cv_objdir+:} false; then : 7709 $as_echo_n "(cached) " >&6 7710else 7711 rm -f .libs 2>/dev/null 7712mkdir .libs 2>/dev/null 7713if test -d .libs; then 7714 lt_cv_objdir=.libs 7715else 7716 # MS-DOS does not allow filenames that begin with a dot. 7717 lt_cv_objdir=_libs 7718fi 7719rmdir .libs 2>/dev/null 7720fi 7721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7722$as_echo "$lt_cv_objdir" >&6; } 7723objdir=$lt_cv_objdir 7724 7725 7726 7727 7728 7729cat >>confdefs.h <<_ACEOF 7730#define LT_OBJDIR "$lt_cv_objdir/" 7731_ACEOF 7732 7733 7734 7735 7736case $host_os in 7737aix3*) 7738 # AIX sometimes has problems with the GCC collect2 program. For some 7739 # reason, if we set the COLLECT_NAMES environment variable, the problems 7740 # vanish in a puff of smoke. 7741 if test "X${COLLECT_NAMES+set}" != Xset; then 7742 COLLECT_NAMES= 7743 export COLLECT_NAMES 7744 fi 7745 ;; 7746esac 7747 7748# Global variables: 7749ofile=libtool 7750can_build_shared=yes 7751 7752# All known linkers require a `.a' archive for static linking (except MSVC, 7753# which needs '.lib'). 7754libext=a 7755 7756with_gnu_ld="$lt_cv_prog_gnu_ld" 7757 7758old_CC="$CC" 7759old_CFLAGS="$CFLAGS" 7760 7761# Set sane defaults for various variables 7762test -z "$CC" && CC=cc 7763test -z "$LTCC" && LTCC=$CC 7764test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7765test -z "$LD" && LD=ld 7766test -z "$ac_objext" && ac_objext=o 7767 7768for cc_temp in $compiler""; do 7769 case $cc_temp in 7770 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7771 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7772 \-*) ;; 7773 *) break;; 7774 esac 7775done 7776cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7777 7778 7779# Only perform the check for file, if the check method requires it 7780test -z "$MAGIC_CMD" && MAGIC_CMD=file 7781case $deplibs_check_method in 7782file_magic*) 7783 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7785$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7786if ${lt_cv_path_MAGIC_CMD+:} false; then : 7787 $as_echo_n "(cached) " >&6 7788else 7789 case $MAGIC_CMD in 7790[\\/*] | ?:[\\/]*) 7791 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7792 ;; 7793*) 7794 lt_save_MAGIC_CMD="$MAGIC_CMD" 7795 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7796 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7797 for ac_dir in $ac_dummy; do 7798 IFS="$lt_save_ifs" 7799 test -z "$ac_dir" && ac_dir=. 7800 if test -f $ac_dir/${ac_tool_prefix}file; then 7801 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7802 if test -n "$file_magic_test_file"; then 7803 case $deplibs_check_method in 7804 "file_magic "*) 7805 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7806 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7807 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7808 $EGREP "$file_magic_regex" > /dev/null; then 7809 : 7810 else 7811 cat <<_LT_EOF 1>&2 7812 7813*** Warning: the command libtool uses to detect shared libraries, 7814*** $file_magic_cmd, produces output that libtool cannot recognize. 7815*** The result is that libtool may fail to recognize shared libraries 7816*** as such. This will affect the creation of libtool libraries that 7817*** depend on shared libraries, but programs linked with such libtool 7818*** libraries will work regardless of this problem. Nevertheless, you 7819*** may want to report the problem to your system manager and/or to 7820*** bug-libtool@gnu.org 7821 7822_LT_EOF 7823 fi ;; 7824 esac 7825 fi 7826 break 7827 fi 7828 done 7829 IFS="$lt_save_ifs" 7830 MAGIC_CMD="$lt_save_MAGIC_CMD" 7831 ;; 7832esac 7833fi 7834 7835MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7836if test -n "$MAGIC_CMD"; then 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7838$as_echo "$MAGIC_CMD" >&6; } 7839else 7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7841$as_echo "no" >&6; } 7842fi 7843 7844 7845 7846 7847 7848if test -z "$lt_cv_path_MAGIC_CMD"; then 7849 if test -n "$ac_tool_prefix"; then 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7851$as_echo_n "checking for file... " >&6; } 7852if ${lt_cv_path_MAGIC_CMD+:} false; then : 7853 $as_echo_n "(cached) " >&6 7854else 7855 case $MAGIC_CMD in 7856[\\/*] | ?:[\\/]*) 7857 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7858 ;; 7859*) 7860 lt_save_MAGIC_CMD="$MAGIC_CMD" 7861 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7862 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7863 for ac_dir in $ac_dummy; do 7864 IFS="$lt_save_ifs" 7865 test -z "$ac_dir" && ac_dir=. 7866 if test -f $ac_dir/file; then 7867 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7868 if test -n "$file_magic_test_file"; then 7869 case $deplibs_check_method in 7870 "file_magic "*) 7871 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7872 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7873 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7874 $EGREP "$file_magic_regex" > /dev/null; then 7875 : 7876 else 7877 cat <<_LT_EOF 1>&2 7878 7879*** Warning: the command libtool uses to detect shared libraries, 7880*** $file_magic_cmd, produces output that libtool cannot recognize. 7881*** The result is that libtool may fail to recognize shared libraries 7882*** as such. This will affect the creation of libtool libraries that 7883*** depend on shared libraries, but programs linked with such libtool 7884*** libraries will work regardless of this problem. Nevertheless, you 7885*** may want to report the problem to your system manager and/or to 7886*** bug-libtool@gnu.org 7887 7888_LT_EOF 7889 fi ;; 7890 esac 7891 fi 7892 break 7893 fi 7894 done 7895 IFS="$lt_save_ifs" 7896 MAGIC_CMD="$lt_save_MAGIC_CMD" 7897 ;; 7898esac 7899fi 7900 7901MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7902if test -n "$MAGIC_CMD"; then 7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7904$as_echo "$MAGIC_CMD" >&6; } 7905else 7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7907$as_echo "no" >&6; } 7908fi 7909 7910 7911 else 7912 MAGIC_CMD=: 7913 fi 7914fi 7915 7916 fi 7917 ;; 7918esac 7919 7920# Use C for the default configuration in the libtool script 7921 7922lt_save_CC="$CC" 7923ac_ext=c 7924ac_cpp='$CPP $CPPFLAGS' 7925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7927ac_compiler_gnu=$ac_cv_c_compiler_gnu 7928 7929 7930# Source file extension for C test sources. 7931ac_ext=c 7932 7933# Object file extension for compiled C test sources. 7934objext=o 7935objext=$objext 7936 7937# Code to be used in simple compile tests 7938lt_simple_compile_test_code="int some_variable = 0;" 7939 7940# Code to be used in simple link tests 7941lt_simple_link_test_code='int main(){return(0);}' 7942 7943 7944 7945 7946 7947 7948 7949# If no C compiler was specified, use CC. 7950LTCC=${LTCC-"$CC"} 7951 7952# If no C compiler flags were specified, use CFLAGS. 7953LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7954 7955# Allow CC to be a program name with arguments. 7956compiler=$CC 7957 7958# Save the default compiler, since it gets overwritten when the other 7959# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7960compiler_DEFAULT=$CC 7961 7962# save warnings/boilerplate of simple test code 7963ac_outfile=conftest.$ac_objext 7964echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7965eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7966_lt_compiler_boilerplate=`cat conftest.err` 7967$RM conftest* 7968 7969ac_outfile=conftest.$ac_objext 7970echo "$lt_simple_link_test_code" >conftest.$ac_ext 7971eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7972_lt_linker_boilerplate=`cat conftest.err` 7973$RM -r conftest* 7974 7975 7976if test -n "$compiler"; then 7977 7978lt_prog_compiler_no_builtin_flag= 7979 7980if test "$GCC" = yes; then 7981 case $cc_basename in 7982 nvcc*) 7983 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7984 *) 7985 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7986 esac 7987 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7989$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7990if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7991 $as_echo_n "(cached) " >&6 7992else 7993 lt_cv_prog_compiler_rtti_exceptions=no 7994 ac_outfile=conftest.$ac_objext 7995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7996 lt_compiler_flag="-fno-rtti -fno-exceptions" 7997 # Insert the option either (1) after the last *FLAGS variable, or 7998 # (2) before a word containing "conftest.", or (3) at the end. 7999 # Note that $ac_compile itself does not contain backslashes and begins 8000 # with a dollar sign (not a hyphen), so the echo should work correctly. 8001 # The option is referenced via a variable to avoid confusing sed. 8002 lt_compile=`echo "$ac_compile" | $SED \ 8003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8005 -e 's:$: $lt_compiler_flag:'` 8006 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8007 (eval "$lt_compile" 2>conftest.err) 8008 ac_status=$? 8009 cat conftest.err >&5 8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8011 if (exit $ac_status) && test -s "$ac_outfile"; then 8012 # The compiler can only warn and ignore the option if not recognized 8013 # So say no if there are warnings other than the usual output. 8014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8016 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8017 lt_cv_prog_compiler_rtti_exceptions=yes 8018 fi 8019 fi 8020 $RM conftest* 8021 8022fi 8023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8024$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8025 8026if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8027 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8028else 8029 : 8030fi 8031 8032fi 8033 8034 8035 8036 8037 8038 8039 lt_prog_compiler_wl= 8040lt_prog_compiler_pic= 8041lt_prog_compiler_static= 8042 8043 8044 if test "$GCC" = yes; then 8045 lt_prog_compiler_wl='-Wl,' 8046 lt_prog_compiler_static='-static' 8047 8048 case $host_os in 8049 aix*) 8050 # All AIX code is PIC. 8051 if test "$host_cpu" = ia64; then 8052 # AIX 5 now supports IA64 processor 8053 lt_prog_compiler_static='-Bstatic' 8054 fi 8055 ;; 8056 8057 amigaos*) 8058 case $host_cpu in 8059 powerpc) 8060 # see comment about AmigaOS4 .so support 8061 lt_prog_compiler_pic='-fPIC' 8062 ;; 8063 m68k) 8064 # FIXME: we need at least 68020 code to build shared libraries, but 8065 # adding the `-m68020' flag to GCC prevents building anything better, 8066 # like `-m68040'. 8067 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8068 ;; 8069 esac 8070 ;; 8071 8072 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8073 # PIC is the default for these OSes. 8074 ;; 8075 8076 mingw* | cygwin* | pw32* | os2* | cegcc*) 8077 # This hack is so that the source file can tell whether it is being 8078 # built for inclusion in a dll (and should export symbols for example). 8079 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8080 # (--disable-auto-import) libraries 8081 lt_prog_compiler_pic='-DDLL_EXPORT' 8082 ;; 8083 8084 darwin* | rhapsody*) 8085 # PIC is the default on this platform 8086 # Common symbols not allowed in MH_DYLIB files 8087 lt_prog_compiler_pic='-fno-common' 8088 ;; 8089 8090 haiku*) 8091 # PIC is the default for Haiku. 8092 # The "-static" flag exists, but is broken. 8093 lt_prog_compiler_static= 8094 ;; 8095 8096 hpux*) 8097 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8098 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8099 # sets the default TLS model and affects inlining. 8100 case $host_cpu in 8101 hppa*64*) 8102 # +Z the default 8103 ;; 8104 *) 8105 lt_prog_compiler_pic='-fPIC' 8106 ;; 8107 esac 8108 ;; 8109 8110 interix[3-9]*) 8111 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8112 # Instead, we relocate shared libraries at runtime. 8113 ;; 8114 8115 msdosdjgpp*) 8116 # Just because we use GCC doesn't mean we suddenly get shared libraries 8117 # on systems that don't support them. 8118 lt_prog_compiler_can_build_shared=no 8119 enable_shared=no 8120 ;; 8121 8122 *nto* | *qnx*) 8123 # QNX uses GNU C++, but need to define -shared option too, otherwise 8124 # it will coredump. 8125 lt_prog_compiler_pic='-fPIC -shared' 8126 ;; 8127 8128 sysv4*MP*) 8129 if test -d /usr/nec; then 8130 lt_prog_compiler_pic=-Kconform_pic 8131 fi 8132 ;; 8133 8134 *) 8135 lt_prog_compiler_pic='-fPIC' 8136 ;; 8137 esac 8138 8139 case $cc_basename in 8140 nvcc*) # Cuda Compiler Driver 2.2 8141 lt_prog_compiler_wl='-Xlinker ' 8142 if test -n "$lt_prog_compiler_pic"; then 8143 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8144 fi 8145 ;; 8146 esac 8147 else 8148 # PORTME Check for flag to pass linker flags through the system compiler. 8149 case $host_os in 8150 aix*) 8151 lt_prog_compiler_wl='-Wl,' 8152 if test "$host_cpu" = ia64; then 8153 # AIX 5 now supports IA64 processor 8154 lt_prog_compiler_static='-Bstatic' 8155 else 8156 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8157 fi 8158 ;; 8159 8160 mingw* | cygwin* | pw32* | os2* | cegcc*) 8161 # This hack is so that the source file can tell whether it is being 8162 # built for inclusion in a dll (and should export symbols for example). 8163 lt_prog_compiler_pic='-DDLL_EXPORT' 8164 ;; 8165 8166 hpux9* | hpux10* | hpux11*) 8167 lt_prog_compiler_wl='-Wl,' 8168 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8169 # not for PA HP-UX. 8170 case $host_cpu in 8171 hppa*64*|ia64*) 8172 # +Z the default 8173 ;; 8174 *) 8175 lt_prog_compiler_pic='+Z' 8176 ;; 8177 esac 8178 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8179 lt_prog_compiler_static='${wl}-a ${wl}archive' 8180 ;; 8181 8182 irix5* | irix6* | nonstopux*) 8183 lt_prog_compiler_wl='-Wl,' 8184 # PIC (with -KPIC) is the default. 8185 lt_prog_compiler_static='-non_shared' 8186 ;; 8187 8188 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8189 case $cc_basename in 8190 # old Intel for x86_64 which still supported -KPIC. 8191 ecc*) 8192 lt_prog_compiler_wl='-Wl,' 8193 lt_prog_compiler_pic='-KPIC' 8194 lt_prog_compiler_static='-static' 8195 ;; 8196 # icc used to be incompatible with GCC. 8197 # ICC 10 doesn't accept -KPIC any more. 8198 icc* | ifort*) 8199 lt_prog_compiler_wl='-Wl,' 8200 lt_prog_compiler_pic='-fPIC' 8201 lt_prog_compiler_static='-static' 8202 ;; 8203 # Lahey Fortran 8.1. 8204 lf95*) 8205 lt_prog_compiler_wl='-Wl,' 8206 lt_prog_compiler_pic='--shared' 8207 lt_prog_compiler_static='--static' 8208 ;; 8209 nagfor*) 8210 # NAG Fortran compiler 8211 lt_prog_compiler_wl='-Wl,-Wl,,' 8212 lt_prog_compiler_pic='-PIC' 8213 lt_prog_compiler_static='-Bstatic' 8214 ;; 8215 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8216 # Portland Group compilers (*not* the Pentium gcc compiler, 8217 # which looks to be a dead project) 8218 lt_prog_compiler_wl='-Wl,' 8219 lt_prog_compiler_pic='-fpic' 8220 lt_prog_compiler_static='-Bstatic' 8221 ;; 8222 ccc*) 8223 lt_prog_compiler_wl='-Wl,' 8224 # All Alpha code is PIC. 8225 lt_prog_compiler_static='-non_shared' 8226 ;; 8227 xl* | bgxl* | bgf* | mpixl*) 8228 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8229 lt_prog_compiler_wl='-Wl,' 8230 lt_prog_compiler_pic='-qpic' 8231 lt_prog_compiler_static='-qstaticlink' 8232 ;; 8233 *) 8234 case `$CC -V 2>&1 | sed 5q` in 8235 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8236 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8237 lt_prog_compiler_pic='-KPIC' 8238 lt_prog_compiler_static='-Bstatic' 8239 lt_prog_compiler_wl='' 8240 ;; 8241 *Sun\ F* | *Sun*Fortran*) 8242 lt_prog_compiler_pic='-KPIC' 8243 lt_prog_compiler_static='-Bstatic' 8244 lt_prog_compiler_wl='-Qoption ld ' 8245 ;; 8246 *Sun\ C*) 8247 # Sun C 5.9 8248 lt_prog_compiler_pic='-KPIC' 8249 lt_prog_compiler_static='-Bstatic' 8250 lt_prog_compiler_wl='-Wl,' 8251 ;; 8252 *Intel*\ [CF]*Compiler*) 8253 lt_prog_compiler_wl='-Wl,' 8254 lt_prog_compiler_pic='-fPIC' 8255 lt_prog_compiler_static='-static' 8256 ;; 8257 *Portland\ Group*) 8258 lt_prog_compiler_wl='-Wl,' 8259 lt_prog_compiler_pic='-fpic' 8260 lt_prog_compiler_static='-Bstatic' 8261 ;; 8262 esac 8263 ;; 8264 esac 8265 ;; 8266 8267 newsos6) 8268 lt_prog_compiler_pic='-KPIC' 8269 lt_prog_compiler_static='-Bstatic' 8270 ;; 8271 8272 *nto* | *qnx*) 8273 # QNX uses GNU C++, but need to define -shared option too, otherwise 8274 # it will coredump. 8275 lt_prog_compiler_pic='-fPIC -shared' 8276 ;; 8277 8278 osf3* | osf4* | osf5*) 8279 lt_prog_compiler_wl='-Wl,' 8280 # All OSF/1 code is PIC. 8281 lt_prog_compiler_static='-non_shared' 8282 ;; 8283 8284 rdos*) 8285 lt_prog_compiler_static='-non_shared' 8286 ;; 8287 8288 solaris*) 8289 lt_prog_compiler_pic='-KPIC' 8290 lt_prog_compiler_static='-Bstatic' 8291 case $cc_basename in 8292 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8293 lt_prog_compiler_wl='-Qoption ld ';; 8294 *) 8295 lt_prog_compiler_wl='-Wl,';; 8296 esac 8297 ;; 8298 8299 sunos4*) 8300 lt_prog_compiler_wl='-Qoption ld ' 8301 lt_prog_compiler_pic='-PIC' 8302 lt_prog_compiler_static='-Bstatic' 8303 ;; 8304 8305 sysv4 | sysv4.2uw2* | sysv4.3*) 8306 lt_prog_compiler_wl='-Wl,' 8307 lt_prog_compiler_pic='-KPIC' 8308 lt_prog_compiler_static='-Bstatic' 8309 ;; 8310 8311 sysv4*MP*) 8312 if test -d /usr/nec ;then 8313 lt_prog_compiler_pic='-Kconform_pic' 8314 lt_prog_compiler_static='-Bstatic' 8315 fi 8316 ;; 8317 8318 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8319 lt_prog_compiler_wl='-Wl,' 8320 lt_prog_compiler_pic='-KPIC' 8321 lt_prog_compiler_static='-Bstatic' 8322 ;; 8323 8324 unicos*) 8325 lt_prog_compiler_wl='-Wl,' 8326 lt_prog_compiler_can_build_shared=no 8327 ;; 8328 8329 uts4*) 8330 lt_prog_compiler_pic='-pic' 8331 lt_prog_compiler_static='-Bstatic' 8332 ;; 8333 8334 *) 8335 lt_prog_compiler_can_build_shared=no 8336 ;; 8337 esac 8338 fi 8339 8340case $host_os in 8341 # For platforms which do not support PIC, -DPIC is meaningless: 8342 *djgpp*) 8343 lt_prog_compiler_pic= 8344 ;; 8345 *) 8346 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8347 ;; 8348esac 8349 8350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8351$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8352if ${lt_cv_prog_compiler_pic+:} false; then : 8353 $as_echo_n "(cached) " >&6 8354else 8355 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8356fi 8357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8358$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8359lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8360 8361# 8362# Check to make sure the PIC flag actually works. 8363# 8364if test -n "$lt_prog_compiler_pic"; then 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8366$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8367if ${lt_cv_prog_compiler_pic_works+:} false; then : 8368 $as_echo_n "(cached) " >&6 8369else 8370 lt_cv_prog_compiler_pic_works=no 8371 ac_outfile=conftest.$ac_objext 8372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8373 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8374 # Insert the option either (1) after the last *FLAGS variable, or 8375 # (2) before a word containing "conftest.", or (3) at the end. 8376 # Note that $ac_compile itself does not contain backslashes and begins 8377 # with a dollar sign (not a hyphen), so the echo should work correctly. 8378 # The option is referenced via a variable to avoid confusing sed. 8379 lt_compile=`echo "$ac_compile" | $SED \ 8380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8382 -e 's:$: $lt_compiler_flag:'` 8383 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8384 (eval "$lt_compile" 2>conftest.err) 8385 ac_status=$? 8386 cat conftest.err >&5 8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8388 if (exit $ac_status) && test -s "$ac_outfile"; then 8389 # The compiler can only warn and ignore the option if not recognized 8390 # So say no if there are warnings other than the usual output. 8391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8393 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8394 lt_cv_prog_compiler_pic_works=yes 8395 fi 8396 fi 8397 $RM conftest* 8398 8399fi 8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8401$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8402 8403if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8404 case $lt_prog_compiler_pic in 8405 "" | " "*) ;; 8406 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8407 esac 8408else 8409 lt_prog_compiler_pic= 8410 lt_prog_compiler_can_build_shared=no 8411fi 8412 8413fi 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425# 8426# Check to make sure the static flag actually works. 8427# 8428wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8430$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8431if ${lt_cv_prog_compiler_static_works+:} false; then : 8432 $as_echo_n "(cached) " >&6 8433else 8434 lt_cv_prog_compiler_static_works=no 8435 save_LDFLAGS="$LDFLAGS" 8436 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8437 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8438 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8439 # The linker can only warn and ignore the option if not recognized 8440 # So say no if there are warnings 8441 if test -s conftest.err; then 8442 # Append any errors to the config.log. 8443 cat conftest.err 1>&5 8444 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8446 if diff conftest.exp conftest.er2 >/dev/null; then 8447 lt_cv_prog_compiler_static_works=yes 8448 fi 8449 else 8450 lt_cv_prog_compiler_static_works=yes 8451 fi 8452 fi 8453 $RM -r conftest* 8454 LDFLAGS="$save_LDFLAGS" 8455 8456fi 8457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8458$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8459 8460if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8461 : 8462else 8463 lt_prog_compiler_static= 8464fi 8465 8466 8467 8468 8469 8470 8471 8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8473$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8474if ${lt_cv_prog_compiler_c_o+:} false; then : 8475 $as_echo_n "(cached) " >&6 8476else 8477 lt_cv_prog_compiler_c_o=no 8478 $RM -r conftest 2>/dev/null 8479 mkdir conftest 8480 cd conftest 8481 mkdir out 8482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8483 8484 lt_compiler_flag="-o out/conftest2.$ac_objext" 8485 # Insert the option either (1) after the last *FLAGS variable, or 8486 # (2) before a word containing "conftest.", or (3) at the end. 8487 # Note that $ac_compile itself does not contain backslashes and begins 8488 # with a dollar sign (not a hyphen), so the echo should work correctly. 8489 lt_compile=`echo "$ac_compile" | $SED \ 8490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8492 -e 's:$: $lt_compiler_flag:'` 8493 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8494 (eval "$lt_compile" 2>out/conftest.err) 8495 ac_status=$? 8496 cat out/conftest.err >&5 8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8498 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8499 then 8500 # The compiler can only warn and ignore the option if not recognized 8501 # So say no if there are warnings 8502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8503 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8504 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8505 lt_cv_prog_compiler_c_o=yes 8506 fi 8507 fi 8508 chmod u+w . 2>&5 8509 $RM conftest* 8510 # SGI C++ compiler will create directory out/ii_files/ for 8511 # template instantiation 8512 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8513 $RM out/* && rmdir out 8514 cd .. 8515 $RM -r conftest 8516 $RM conftest* 8517 8518fi 8519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8520$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8521 8522 8523 8524 8525 8526 8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8528$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8529if ${lt_cv_prog_compiler_c_o+:} false; then : 8530 $as_echo_n "(cached) " >&6 8531else 8532 lt_cv_prog_compiler_c_o=no 8533 $RM -r conftest 2>/dev/null 8534 mkdir conftest 8535 cd conftest 8536 mkdir out 8537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8538 8539 lt_compiler_flag="-o out/conftest2.$ac_objext" 8540 # Insert the option either (1) after the last *FLAGS variable, or 8541 # (2) before a word containing "conftest.", or (3) at the end. 8542 # Note that $ac_compile itself does not contain backslashes and begins 8543 # with a dollar sign (not a hyphen), so the echo should work correctly. 8544 lt_compile=`echo "$ac_compile" | $SED \ 8545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8547 -e 's:$: $lt_compiler_flag:'` 8548 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8549 (eval "$lt_compile" 2>out/conftest.err) 8550 ac_status=$? 8551 cat out/conftest.err >&5 8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8553 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8554 then 8555 # The compiler can only warn and ignore the option if not recognized 8556 # So say no if there are warnings 8557 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8558 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8559 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8560 lt_cv_prog_compiler_c_o=yes 8561 fi 8562 fi 8563 chmod u+w . 2>&5 8564 $RM conftest* 8565 # SGI C++ compiler will create directory out/ii_files/ for 8566 # template instantiation 8567 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8568 $RM out/* && rmdir out 8569 cd .. 8570 $RM -r conftest 8571 $RM conftest* 8572 8573fi 8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8575$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8576 8577 8578 8579 8580hard_links="nottested" 8581if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8582 # do not overwrite the value of need_locks provided by the user 8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8584$as_echo_n "checking if we can lock with hard links... " >&6; } 8585 hard_links=yes 8586 $RM conftest* 8587 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8588 touch conftest.a 8589 ln conftest.a conftest.b 2>&5 || hard_links=no 8590 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8592$as_echo "$hard_links" >&6; } 8593 if test "$hard_links" = no; then 8594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8595$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8596 need_locks=warn 8597 fi 8598else 8599 need_locks=no 8600fi 8601 8602 8603 8604 8605 8606 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8608$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8609 8610 runpath_var= 8611 allow_undefined_flag= 8612 always_export_symbols=no 8613 archive_cmds= 8614 archive_expsym_cmds= 8615 compiler_needs_object=no 8616 enable_shared_with_static_runtimes=no 8617 export_dynamic_flag_spec= 8618 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8619 hardcode_automatic=no 8620 hardcode_direct=no 8621 hardcode_direct_absolute=no 8622 hardcode_libdir_flag_spec= 8623 hardcode_libdir_separator= 8624 hardcode_minus_L=no 8625 hardcode_shlibpath_var=unsupported 8626 inherit_rpath=no 8627 link_all_deplibs=unknown 8628 module_cmds= 8629 module_expsym_cmds= 8630 old_archive_from_new_cmds= 8631 old_archive_from_expsyms_cmds= 8632 thread_safe_flag_spec= 8633 whole_archive_flag_spec= 8634 # include_expsyms should be a list of space-separated symbols to be *always* 8635 # included in the symbol list 8636 include_expsyms= 8637 # exclude_expsyms can be an extended regexp of symbols to exclude 8638 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8639 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8640 # as well as any symbol that contains `d'. 8641 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8642 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8643 # platforms (ab)use it in PIC code, but their linkers get confused if 8644 # the symbol is explicitly referenced. Since portable code cannot 8645 # rely on this symbol name, it's probably fine to never include it in 8646 # preloaded symbol tables. 8647 # Exclude shared library initialization/finalization symbols. 8648 extract_expsyms_cmds= 8649 8650 case $host_os in 8651 cygwin* | mingw* | pw32* | cegcc*) 8652 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8653 # When not using gcc, we currently assume that we are using 8654 # Microsoft Visual C++. 8655 if test "$GCC" != yes; then 8656 with_gnu_ld=no 8657 fi 8658 ;; 8659 interix*) 8660 # we just hope/assume this is gcc and not c89 (= MSVC++) 8661 with_gnu_ld=yes 8662 ;; 8663 openbsd*) 8664 with_gnu_ld=no 8665 ;; 8666 linux* | k*bsd*-gnu | gnu*) 8667 link_all_deplibs=no 8668 ;; 8669 esac 8670 8671 ld_shlibs=yes 8672 8673 # On some targets, GNU ld is compatible enough with the native linker 8674 # that we're better off using the native interface for both. 8675 lt_use_gnu_ld_interface=no 8676 if test "$with_gnu_ld" = yes; then 8677 case $host_os in 8678 aix*) 8679 # The AIX port of GNU ld has always aspired to compatibility 8680 # with the native linker. However, as the warning in the GNU ld 8681 # block says, versions before 2.19.5* couldn't really create working 8682 # shared libraries, regardless of the interface used. 8683 case `$LD -v 2>&1` in 8684 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8685 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8686 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8687 *) 8688 lt_use_gnu_ld_interface=yes 8689 ;; 8690 esac 8691 ;; 8692 *) 8693 lt_use_gnu_ld_interface=yes 8694 ;; 8695 esac 8696 fi 8697 8698 if test "$lt_use_gnu_ld_interface" = yes; then 8699 # If archive_cmds runs LD, not CC, wlarc should be empty 8700 wlarc='${wl}' 8701 8702 # Set some defaults for GNU ld with shared library support. These 8703 # are reset later if shared libraries are not supported. Putting them 8704 # here allows them to be overridden if necessary. 8705 runpath_var=LD_RUN_PATH 8706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8707 export_dynamic_flag_spec='${wl}--export-dynamic' 8708 # ancient GNU ld didn't support --whole-archive et. al. 8709 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8710 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8711 else 8712 whole_archive_flag_spec= 8713 fi 8714 supports_anon_versioning=no 8715 case `$LD -v 2>&1` in 8716 *GNU\ gold*) supports_anon_versioning=yes ;; 8717 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8718 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8719 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8720 *\ 2.11.*) ;; # other 2.11 versions 8721 *) supports_anon_versioning=yes ;; 8722 esac 8723 8724 # See if GNU ld supports shared libraries. 8725 case $host_os in 8726 aix[3-9]*) 8727 # On AIX/PPC, the GNU linker is very broken 8728 if test "$host_cpu" != ia64; then 8729 ld_shlibs=no 8730 cat <<_LT_EOF 1>&2 8731 8732*** Warning: the GNU linker, at least up to release 2.19, is reported 8733*** to be unable to reliably create shared libraries on AIX. 8734*** Therefore, libtool is disabling shared libraries support. If you 8735*** really care for shared libraries, you may want to install binutils 8736*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8737*** You will then need to restart the configuration process. 8738 8739_LT_EOF 8740 fi 8741 ;; 8742 8743 amigaos*) 8744 case $host_cpu in 8745 powerpc) 8746 # see comment about AmigaOS4 .so support 8747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8748 archive_expsym_cmds='' 8749 ;; 8750 m68k) 8751 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)' 8752 hardcode_libdir_flag_spec='-L$libdir' 8753 hardcode_minus_L=yes 8754 ;; 8755 esac 8756 ;; 8757 8758 beos*) 8759 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8760 allow_undefined_flag=unsupported 8761 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8762 # support --undefined. This deserves some investigation. FIXME 8763 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8764 else 8765 ld_shlibs=no 8766 fi 8767 ;; 8768 8769 cygwin* | mingw* | pw32* | cegcc*) 8770 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8771 # as there is no search path for DLLs. 8772 hardcode_libdir_flag_spec='-L$libdir' 8773 export_dynamic_flag_spec='${wl}--export-all-symbols' 8774 allow_undefined_flag=unsupported 8775 always_export_symbols=no 8776 enable_shared_with_static_runtimes=yes 8777 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' 8778 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8779 8780 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8782 # If the export-symbols file already is a .def file (1st line 8783 # is EXPORTS), use it as is; otherwise, prepend... 8784 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8785 cp $export_symbols $output_objdir/$soname.def; 8786 else 8787 echo EXPORTS > $output_objdir/$soname.def; 8788 cat $export_symbols >> $output_objdir/$soname.def; 8789 fi~ 8790 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8791 else 8792 ld_shlibs=no 8793 fi 8794 ;; 8795 8796 haiku*) 8797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8798 link_all_deplibs=yes 8799 ;; 8800 8801 interix[3-9]*) 8802 hardcode_direct=no 8803 hardcode_shlibpath_var=no 8804 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8805 export_dynamic_flag_spec='${wl}-E' 8806 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8807 # Instead, shared libraries are loaded at an image base (0x10000000 by 8808 # default) and relocated if they conflict, which is a slow very memory 8809 # consuming and fragmenting process. To avoid this, we pick a random, 8810 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8811 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8812 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8813 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' 8814 ;; 8815 8816 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8817 tmp_diet=no 8818 if test "$host_os" = linux-dietlibc; then 8819 case $cc_basename in 8820 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8821 esac 8822 fi 8823 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8824 && test "$tmp_diet" = no 8825 then 8826 tmp_addflag=' $pic_flag' 8827 tmp_sharedflag='-shared' 8828 case $cc_basename,$host_cpu in 8829 pgcc*) # Portland Group C compiler 8830 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' 8831 tmp_addflag=' $pic_flag' 8832 ;; 8833 pgf77* | pgf90* | pgf95* | pgfortran*) 8834 # Portland Group f77 and f90 compilers 8835 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' 8836 tmp_addflag=' $pic_flag -Mnomain' ;; 8837 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8838 tmp_addflag=' -i_dynamic' ;; 8839 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8840 tmp_addflag=' -i_dynamic -nofor_main' ;; 8841 ifc* | ifort*) # Intel Fortran compiler 8842 tmp_addflag=' -nofor_main' ;; 8843 lf95*) # Lahey Fortran 8.1 8844 whole_archive_flag_spec= 8845 tmp_sharedflag='--shared' ;; 8846 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8847 tmp_sharedflag='-qmkshrobj' 8848 tmp_addflag= ;; 8849 nvcc*) # Cuda Compiler Driver 2.2 8850 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' 8851 compiler_needs_object=yes 8852 ;; 8853 esac 8854 case `$CC -V 2>&1 | sed 5q` in 8855 *Sun\ C*) # Sun C 5.9 8856 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' 8857 compiler_needs_object=yes 8858 tmp_sharedflag='-G' ;; 8859 *Sun\ F*) # Sun Fortran 8.3 8860 tmp_sharedflag='-G' ;; 8861 esac 8862 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8863 8864 if test "x$supports_anon_versioning" = xyes; then 8865 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8866 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8867 echo "local: *; };" >> $output_objdir/$libname.ver~ 8868 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8869 fi 8870 8871 case $cc_basename in 8872 xlf* | bgf* | bgxlf* | mpixlf*) 8873 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8874 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8876 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8877 if test "x$supports_anon_versioning" = xyes; then 8878 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8880 echo "local: *; };" >> $output_objdir/$libname.ver~ 8881 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8882 fi 8883 ;; 8884 esac 8885 else 8886 ld_shlibs=no 8887 fi 8888 ;; 8889 8890 netbsd* | netbsdelf*-gnu) 8891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8892 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8893 wlarc= 8894 else 8895 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8896 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8897 fi 8898 ;; 8899 8900 solaris*) 8901 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8902 ld_shlibs=no 8903 cat <<_LT_EOF 1>&2 8904 8905*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8906*** create shared libraries on Solaris systems. Therefore, libtool 8907*** is disabling shared libraries support. We urge you to upgrade GNU 8908*** binutils to release 2.9.1 or newer. Another option is to modify 8909*** your PATH or compiler configuration so that the native linker is 8910*** used, and then restart. 8911 8912_LT_EOF 8913 elif $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 8921 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8922 case `$LD -v 2>&1` in 8923 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8924 ld_shlibs=no 8925 cat <<_LT_EOF 1>&2 8926 8927*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8928*** reliably create shared libraries on SCO systems. Therefore, libtool 8929*** is disabling shared libraries support. We urge you to upgrade GNU 8930*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8931*** your PATH or compiler configuration so that the native linker is 8932*** used, and then restart. 8933 8934_LT_EOF 8935 ;; 8936 *) 8937 # For security reasons, it is highly recommended that you always 8938 # use absolute paths for naming shared libraries, and exclude the 8939 # DT_RUNPATH tag from executables and libraries. But doing so 8940 # requires that you compile everything twice, which is a pain. 8941 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8942 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8944 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8945 else 8946 ld_shlibs=no 8947 fi 8948 ;; 8949 esac 8950 ;; 8951 8952 sunos4*) 8953 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8954 wlarc= 8955 hardcode_direct=yes 8956 hardcode_shlibpath_var=no 8957 ;; 8958 8959 *) 8960 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8961 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8962 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8963 else 8964 ld_shlibs=no 8965 fi 8966 ;; 8967 esac 8968 8969 if test "$ld_shlibs" = no; then 8970 runpath_var= 8971 hardcode_libdir_flag_spec= 8972 export_dynamic_flag_spec= 8973 whole_archive_flag_spec= 8974 fi 8975 else 8976 # PORTME fill in a description of your system's linker (not GNU ld) 8977 case $host_os in 8978 aix3*) 8979 allow_undefined_flag=unsupported 8980 always_export_symbols=yes 8981 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' 8982 # Note: this linker hardcodes the directories in LIBPATH if there 8983 # are no directories specified by -L. 8984 hardcode_minus_L=yes 8985 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8986 # Neither direct hardcoding nor static linking is supported with a 8987 # broken collect2. 8988 hardcode_direct=unsupported 8989 fi 8990 ;; 8991 8992 aix[4-9]*) 8993 if test "$host_cpu" = ia64; then 8994 # On IA64, the linker does run time linking by default, so we don't 8995 # have to do anything special. 8996 aix_use_runtimelinking=no 8997 exp_sym_flag='-Bexport' 8998 no_entry_flag="" 8999 else 9000 # If we're using GNU nm, then we don't want the "-C" option. 9001 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9002 # Also, AIX nm treats weak defined symbols like other global 9003 # defined symbols, whereas GNU nm marks them as "W". 9004 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9005 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' 9006 else 9007 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' 9008 fi 9009 aix_use_runtimelinking=no 9010 9011 # Test if we are trying to use run time linking or normal 9012 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9013 # need to do runtime linking. 9014 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9015 for ld_flag in $LDFLAGS; do 9016 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9017 aix_use_runtimelinking=yes 9018 break 9019 fi 9020 done 9021 ;; 9022 esac 9023 9024 exp_sym_flag='-bexport' 9025 no_entry_flag='-bnoentry' 9026 fi 9027 9028 # When large executables or shared objects are built, AIX ld can 9029 # have problems creating the table of contents. If linking a library 9030 # or program results in "error TOC overflow" add -mminimal-toc to 9031 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9032 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9033 9034 archive_cmds='' 9035 hardcode_direct=yes 9036 hardcode_direct_absolute=yes 9037 hardcode_libdir_separator=':' 9038 link_all_deplibs=yes 9039 file_list_spec='${wl}-f,' 9040 9041 if test "$GCC" = yes; then 9042 case $host_os in aix4.[012]|aix4.[012].*) 9043 # We only want to do this on AIX 4.2 and lower, the check 9044 # below for broken collect2 doesn't work under 4.3+ 9045 collect2name=`${CC} -print-prog-name=collect2` 9046 if test -f "$collect2name" && 9047 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9048 then 9049 # We have reworked collect2 9050 : 9051 else 9052 # We have old collect2 9053 hardcode_direct=unsupported 9054 # It fails to find uninstalled libraries when the uninstalled 9055 # path is not listed in the libpath. Setting hardcode_minus_L 9056 # to unsupported forces relinking 9057 hardcode_minus_L=yes 9058 hardcode_libdir_flag_spec='-L$libdir' 9059 hardcode_libdir_separator= 9060 fi 9061 ;; 9062 esac 9063 shared_flag='-shared' 9064 if test "$aix_use_runtimelinking" = yes; then 9065 shared_flag="$shared_flag "'${wl}-G' 9066 fi 9067 link_all_deplibs=no 9068 else 9069 # not using gcc 9070 if test "$host_cpu" = ia64; then 9071 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9072 # chokes on -Wl,-G. The following line is correct: 9073 shared_flag='-G' 9074 else 9075 if test "$aix_use_runtimelinking" = yes; then 9076 shared_flag='${wl}-G' 9077 else 9078 shared_flag='${wl}-bM:SRE' 9079 fi 9080 fi 9081 fi 9082 9083 export_dynamic_flag_spec='${wl}-bexpall' 9084 # It seems that -bexpall does not export symbols beginning with 9085 # underscore (_), so it is better to generate a list of symbols to export. 9086 always_export_symbols=yes 9087 if test "$aix_use_runtimelinking" = yes; then 9088 # Warning - without using the other runtime loading flags (-brtl), 9089 # -berok will link without error, but may produce a broken library. 9090 allow_undefined_flag='-berok' 9091 # Determine the default libpath from the value encoded in an 9092 # empty executable. 9093 if test "${lt_cv_aix_libpath+set}" = set; then 9094 aix_libpath=$lt_cv_aix_libpath 9095else 9096 if ${lt_cv_aix_libpath_+:} false; then : 9097 $as_echo_n "(cached) " >&6 9098else 9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9100/* end confdefs.h. */ 9101 9102int 9103main () 9104{ 9105 9106 ; 9107 return 0; 9108} 9109_ACEOF 9110if ac_fn_c_try_link "$LINENO"; then : 9111 9112 lt_aix_libpath_sed=' 9113 /Import File Strings/,/^$/ { 9114 /^0/ { 9115 s/^0 *\([^ ]*\) *$/\1/ 9116 p 9117 } 9118 }' 9119 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9120 # Check for a 64-bit object if we didn't find anything. 9121 if test -z "$lt_cv_aix_libpath_"; then 9122 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9123 fi 9124fi 9125rm -f core conftest.err conftest.$ac_objext \ 9126 conftest$ac_exeext conftest.$ac_ext 9127 if test -z "$lt_cv_aix_libpath_"; then 9128 lt_cv_aix_libpath_="/usr/lib:/lib" 9129 fi 9130 9131fi 9132 9133 aix_libpath=$lt_cv_aix_libpath_ 9134fi 9135 9136 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9137 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" 9138 else 9139 if test "$host_cpu" = ia64; then 9140 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9141 allow_undefined_flag="-z nodefs" 9142 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" 9143 else 9144 # Determine the default libpath from the value encoded in an 9145 # empty executable. 9146 if test "${lt_cv_aix_libpath+set}" = set; then 9147 aix_libpath=$lt_cv_aix_libpath 9148else 9149 if ${lt_cv_aix_libpath_+:} false; then : 9150 $as_echo_n "(cached) " >&6 9151else 9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9153/* end confdefs.h. */ 9154 9155int 9156main () 9157{ 9158 9159 ; 9160 return 0; 9161} 9162_ACEOF 9163if ac_fn_c_try_link "$LINENO"; then : 9164 9165 lt_aix_libpath_sed=' 9166 /Import File Strings/,/^$/ { 9167 /^0/ { 9168 s/^0 *\([^ ]*\) *$/\1/ 9169 p 9170 } 9171 }' 9172 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9173 # Check for a 64-bit object if we didn't find anything. 9174 if test -z "$lt_cv_aix_libpath_"; then 9175 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9176 fi 9177fi 9178rm -f core conftest.err conftest.$ac_objext \ 9179 conftest$ac_exeext conftest.$ac_ext 9180 if test -z "$lt_cv_aix_libpath_"; then 9181 lt_cv_aix_libpath_="/usr/lib:/lib" 9182 fi 9183 9184fi 9185 9186 aix_libpath=$lt_cv_aix_libpath_ 9187fi 9188 9189 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9190 # Warning - without using the other run time loading flags, 9191 # -berok will link without error, but may produce a broken library. 9192 no_undefined_flag=' ${wl}-bernotok' 9193 allow_undefined_flag=' ${wl}-berok' 9194 if test "$with_gnu_ld" = yes; then 9195 # We only use this code for GNU lds that support --whole-archive. 9196 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9197 else 9198 # Exported symbols can be pulled into shared objects from archives 9199 whole_archive_flag_spec='$convenience' 9200 fi 9201 archive_cmds_need_lc=yes 9202 # This is similar to how AIX traditionally builds its shared libraries. 9203 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' 9204 fi 9205 fi 9206 ;; 9207 9208 amigaos*) 9209 case $host_cpu in 9210 powerpc) 9211 # see comment about AmigaOS4 .so support 9212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9213 archive_expsym_cmds='' 9214 ;; 9215 m68k) 9216 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)' 9217 hardcode_libdir_flag_spec='-L$libdir' 9218 hardcode_minus_L=yes 9219 ;; 9220 esac 9221 ;; 9222 9223 bsdi[45]*) 9224 export_dynamic_flag_spec=-rdynamic 9225 ;; 9226 9227 cygwin* | mingw* | pw32* | cegcc*) 9228 # When not using gcc, we currently assume that we are using 9229 # Microsoft Visual C++. 9230 # hardcode_libdir_flag_spec is actually meaningless, as there is 9231 # no search path for DLLs. 9232 case $cc_basename in 9233 cl*) 9234 # Native MSVC 9235 hardcode_libdir_flag_spec=' ' 9236 allow_undefined_flag=unsupported 9237 always_export_symbols=yes 9238 file_list_spec='@' 9239 # Tell ltmain to make .lib files, not .a files. 9240 libext=lib 9241 # Tell ltmain to make .dll files, not .so files. 9242 shrext_cmds=".dll" 9243 # FIXME: Setting linknames here is a bad hack. 9244 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9245 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9246 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9247 else 9248 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9249 fi~ 9250 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9251 linknames=' 9252 # The linker will not automatically build a static lib if we build a DLL. 9253 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9254 enable_shared_with_static_runtimes=yes 9255 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9256 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9257 # Don't use ranlib 9258 old_postinstall_cmds='chmod 644 $oldlib' 9259 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9260 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9261 case $lt_outputfile in 9262 *.exe|*.EXE) ;; 9263 *) 9264 lt_outputfile="$lt_outputfile.exe" 9265 lt_tool_outputfile="$lt_tool_outputfile.exe" 9266 ;; 9267 esac~ 9268 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9269 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9270 $RM "$lt_outputfile.manifest"; 9271 fi' 9272 ;; 9273 *) 9274 # Assume MSVC wrapper 9275 hardcode_libdir_flag_spec=' ' 9276 allow_undefined_flag=unsupported 9277 # Tell ltmain to make .lib files, not .a files. 9278 libext=lib 9279 # Tell ltmain to make .dll files, not .so files. 9280 shrext_cmds=".dll" 9281 # FIXME: Setting linknames here is a bad hack. 9282 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9283 # The linker will automatically build a .lib file if we build a DLL. 9284 old_archive_from_new_cmds='true' 9285 # FIXME: Should let the user specify the lib program. 9286 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9287 enable_shared_with_static_runtimes=yes 9288 ;; 9289 esac 9290 ;; 9291 9292 darwin* | rhapsody*) 9293 9294 9295 archive_cmds_need_lc=no 9296 hardcode_direct=no 9297 hardcode_automatic=yes 9298 hardcode_shlibpath_var=unsupported 9299 if test "$lt_cv_ld_force_load" = "yes"; then 9300 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\"`' 9301 9302 else 9303 whole_archive_flag_spec='' 9304 fi 9305 link_all_deplibs=yes 9306 allow_undefined_flag="$_lt_dar_allow_undefined" 9307 case $cc_basename in 9308 ifort*) _lt_dar_can_shared=yes ;; 9309 *) _lt_dar_can_shared=$GCC ;; 9310 esac 9311 if test "$_lt_dar_can_shared" = "yes"; then 9312 output_verbose_link_cmd=func_echo_all 9313 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9314 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9315 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}" 9316 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}" 9317 9318 else 9319 ld_shlibs=no 9320 fi 9321 9322 ;; 9323 9324 dgux*) 9325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9326 hardcode_libdir_flag_spec='-L$libdir' 9327 hardcode_shlibpath_var=no 9328 ;; 9329 9330 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9331 # support. Future versions do this automatically, but an explicit c++rt0.o 9332 # does not break anything, and helps significantly (at the cost of a little 9333 # extra space). 9334 freebsd2.2*) 9335 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9336 hardcode_libdir_flag_spec='-R$libdir' 9337 hardcode_direct=yes 9338 hardcode_shlibpath_var=no 9339 ;; 9340 9341 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9342 freebsd2.*) 9343 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9344 hardcode_direct=yes 9345 hardcode_minus_L=yes 9346 hardcode_shlibpath_var=no 9347 ;; 9348 9349 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9350 freebsd* | dragonfly*) 9351 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9352 hardcode_libdir_flag_spec='-R$libdir' 9353 hardcode_direct=yes 9354 hardcode_shlibpath_var=no 9355 ;; 9356 9357 hpux9*) 9358 if test "$GCC" = yes; then 9359 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' 9360 else 9361 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' 9362 fi 9363 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9364 hardcode_libdir_separator=: 9365 hardcode_direct=yes 9366 9367 # hardcode_minus_L: Not really in the search PATH, 9368 # but as the default location of the library. 9369 hardcode_minus_L=yes 9370 export_dynamic_flag_spec='${wl}-E' 9371 ;; 9372 9373 hpux10*) 9374 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9375 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9376 else 9377 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9378 fi 9379 if test "$with_gnu_ld" = no; then 9380 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9381 hardcode_libdir_separator=: 9382 hardcode_direct=yes 9383 hardcode_direct_absolute=yes 9384 export_dynamic_flag_spec='${wl}-E' 9385 # hardcode_minus_L: Not really in the search PATH, 9386 # but as the default location of the library. 9387 hardcode_minus_L=yes 9388 fi 9389 ;; 9390 9391 hpux11*) 9392 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9393 case $host_cpu in 9394 hppa*64*) 9395 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9396 ;; 9397 ia64*) 9398 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9399 ;; 9400 *) 9401 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9402 ;; 9403 esac 9404 else 9405 case $host_cpu in 9406 hppa*64*) 9407 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9408 ;; 9409 ia64*) 9410 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9411 ;; 9412 *) 9413 9414 # Older versions of the 11.00 compiler do not understand -b yet 9415 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9417$as_echo_n "checking if $CC understands -b... " >&6; } 9418if ${lt_cv_prog_compiler__b+:} false; then : 9419 $as_echo_n "(cached) " >&6 9420else 9421 lt_cv_prog_compiler__b=no 9422 save_LDFLAGS="$LDFLAGS" 9423 LDFLAGS="$LDFLAGS -b" 9424 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9425 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9426 # The linker can only warn and ignore the option if not recognized 9427 # So say no if there are warnings 9428 if test -s conftest.err; then 9429 # Append any errors to the config.log. 9430 cat conftest.err 1>&5 9431 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9433 if diff conftest.exp conftest.er2 >/dev/null; then 9434 lt_cv_prog_compiler__b=yes 9435 fi 9436 else 9437 lt_cv_prog_compiler__b=yes 9438 fi 9439 fi 9440 $RM -r conftest* 9441 LDFLAGS="$save_LDFLAGS" 9442 9443fi 9444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9445$as_echo "$lt_cv_prog_compiler__b" >&6; } 9446 9447if test x"$lt_cv_prog_compiler__b" = xyes; then 9448 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9449else 9450 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9451fi 9452 9453 ;; 9454 esac 9455 fi 9456 if test "$with_gnu_ld" = no; then 9457 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9458 hardcode_libdir_separator=: 9459 9460 case $host_cpu in 9461 hppa*64*|ia64*) 9462 hardcode_direct=no 9463 hardcode_shlibpath_var=no 9464 ;; 9465 *) 9466 hardcode_direct=yes 9467 hardcode_direct_absolute=yes 9468 export_dynamic_flag_spec='${wl}-E' 9469 9470 # hardcode_minus_L: Not really in the search PATH, 9471 # but as the default location of the library. 9472 hardcode_minus_L=yes 9473 ;; 9474 esac 9475 fi 9476 ;; 9477 9478 irix5* | irix6* | nonstopux*) 9479 if test "$GCC" = yes; then 9480 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' 9481 # Try to use the -exported_symbol ld option, if it does not 9482 # work, assume that -exports_file does not work either and 9483 # implicitly export all symbols. 9484 # This should be the same for all languages, so no per-tag cache variable. 9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9486$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9487if ${lt_cv_irix_exported_symbol+:} false; then : 9488 $as_echo_n "(cached) " >&6 9489else 9490 save_LDFLAGS="$LDFLAGS" 9491 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9493/* end confdefs.h. */ 9494int foo (void) { return 0; } 9495_ACEOF 9496if ac_fn_c_try_link "$LINENO"; then : 9497 lt_cv_irix_exported_symbol=yes 9498else 9499 lt_cv_irix_exported_symbol=no 9500fi 9501rm -f core conftest.err conftest.$ac_objext \ 9502 conftest$ac_exeext conftest.$ac_ext 9503 LDFLAGS="$save_LDFLAGS" 9504fi 9505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9506$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9507 if test "$lt_cv_irix_exported_symbol" = yes; then 9508 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' 9509 fi 9510 else 9511 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' 9512 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' 9513 fi 9514 archive_cmds_need_lc='no' 9515 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9516 hardcode_libdir_separator=: 9517 inherit_rpath=yes 9518 link_all_deplibs=yes 9519 ;; 9520 9521 netbsd* | netbsdelf*-gnu) 9522 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9524 else 9525 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9526 fi 9527 hardcode_libdir_flag_spec='-R$libdir' 9528 hardcode_direct=yes 9529 hardcode_shlibpath_var=no 9530 ;; 9531 9532 newsos6) 9533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9534 hardcode_direct=yes 9535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9536 hardcode_libdir_separator=: 9537 hardcode_shlibpath_var=no 9538 ;; 9539 9540 *nto* | *qnx*) 9541 ;; 9542 9543 openbsd*) 9544 if test -f /usr/libexec/ld.so; then 9545 hardcode_direct=yes 9546 hardcode_shlibpath_var=no 9547 hardcode_direct_absolute=yes 9548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9549 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9550 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9551 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9552 export_dynamic_flag_spec='${wl}-E' 9553 else 9554 case $host_os in 9555 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9557 hardcode_libdir_flag_spec='-R$libdir' 9558 ;; 9559 *) 9560 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9561 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9562 ;; 9563 esac 9564 fi 9565 else 9566 ld_shlibs=no 9567 fi 9568 ;; 9569 9570 os2*) 9571 hardcode_libdir_flag_spec='-L$libdir' 9572 hardcode_minus_L=yes 9573 allow_undefined_flag=unsupported 9574 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' 9575 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9576 ;; 9577 9578 osf3*) 9579 if test "$GCC" = yes; then 9580 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9581 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' 9582 else 9583 allow_undefined_flag=' -expect_unresolved \*' 9584 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' 9585 fi 9586 archive_cmds_need_lc='no' 9587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9588 hardcode_libdir_separator=: 9589 ;; 9590 9591 osf4* | osf5*) # as osf3* with the addition of -msym flag 9592 if test "$GCC" = yes; then 9593 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9594 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' 9595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9596 else 9597 allow_undefined_flag=' -expect_unresolved \*' 9598 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' 9599 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~ 9600 $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' 9601 9602 # Both c and cxx compiler support -rpath directly 9603 hardcode_libdir_flag_spec='-rpath $libdir' 9604 fi 9605 archive_cmds_need_lc='no' 9606 hardcode_libdir_separator=: 9607 ;; 9608 9609 solaris*) 9610 no_undefined_flag=' -z defs' 9611 if test "$GCC" = yes; then 9612 wlarc='${wl}' 9613 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9614 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9615 $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' 9616 else 9617 case `$CC -V 2>&1` in 9618 *"Compilers 5.0"*) 9619 wlarc='' 9620 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9621 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9622 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9623 ;; 9624 *) 9625 wlarc='${wl}' 9626 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9627 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9628 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9629 ;; 9630 esac 9631 fi 9632 hardcode_libdir_flag_spec='-R$libdir' 9633 hardcode_shlibpath_var=no 9634 case $host_os in 9635 solaris2.[0-5] | solaris2.[0-5].*) ;; 9636 *) 9637 # The compiler driver will combine and reorder linker options, 9638 # but understands `-z linker_flag'. GCC discards it without `$wl', 9639 # but is careful enough not to reorder. 9640 # Supported since Solaris 2.6 (maybe 2.5.1?) 9641 if test "$GCC" = yes; then 9642 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9643 else 9644 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9645 fi 9646 ;; 9647 esac 9648 link_all_deplibs=yes 9649 ;; 9650 9651 sunos4*) 9652 if test "x$host_vendor" = xsequent; then 9653 # Use $CC to link under sequent, because it throws in some extra .o 9654 # files that make .init and .fini sections work. 9655 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9656 else 9657 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9658 fi 9659 hardcode_libdir_flag_spec='-L$libdir' 9660 hardcode_direct=yes 9661 hardcode_minus_L=yes 9662 hardcode_shlibpath_var=no 9663 ;; 9664 9665 sysv4) 9666 case $host_vendor in 9667 sni) 9668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9669 hardcode_direct=yes # is this really true??? 9670 ;; 9671 siemens) 9672 ## LD is ld it makes a PLAMLIB 9673 ## CC just makes a GrossModule. 9674 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9675 reload_cmds='$CC -r -o $output$reload_objs' 9676 hardcode_direct=no 9677 ;; 9678 motorola) 9679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9680 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9681 ;; 9682 esac 9683 runpath_var='LD_RUN_PATH' 9684 hardcode_shlibpath_var=no 9685 ;; 9686 9687 sysv4.3*) 9688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9689 hardcode_shlibpath_var=no 9690 export_dynamic_flag_spec='-Bexport' 9691 ;; 9692 9693 sysv4*MP*) 9694 if test -d /usr/nec; then 9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9696 hardcode_shlibpath_var=no 9697 runpath_var=LD_RUN_PATH 9698 hardcode_runpath_var=yes 9699 ld_shlibs=yes 9700 fi 9701 ;; 9702 9703 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9704 no_undefined_flag='${wl}-z,text' 9705 archive_cmds_need_lc=no 9706 hardcode_shlibpath_var=no 9707 runpath_var='LD_RUN_PATH' 9708 9709 if test "$GCC" = yes; then 9710 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9711 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9712 else 9713 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9714 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9715 fi 9716 ;; 9717 9718 sysv5* | sco3.2v5* | sco5v6*) 9719 # Note: We can NOT use -z defs as we might desire, because we do not 9720 # link with -lc, and that would cause any symbols used from libc to 9721 # always be unresolved, which means just about no library would 9722 # ever link correctly. If we're not using GNU ld we use -z text 9723 # though, which does catch some bad symbols but isn't as heavy-handed 9724 # as -z defs. 9725 no_undefined_flag='${wl}-z,text' 9726 allow_undefined_flag='${wl}-z,nodefs' 9727 archive_cmds_need_lc=no 9728 hardcode_shlibpath_var=no 9729 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9730 hardcode_libdir_separator=':' 9731 link_all_deplibs=yes 9732 export_dynamic_flag_spec='${wl}-Bexport' 9733 runpath_var='LD_RUN_PATH' 9734 9735 if test "$GCC" = yes; then 9736 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9737 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9738 else 9739 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9740 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9741 fi 9742 ;; 9743 9744 uts4*) 9745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9746 hardcode_libdir_flag_spec='-L$libdir' 9747 hardcode_shlibpath_var=no 9748 ;; 9749 9750 *) 9751 ld_shlibs=no 9752 ;; 9753 esac 9754 9755 if test x$host_vendor = xsni; then 9756 case $host in 9757 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9758 export_dynamic_flag_spec='${wl}-Blargedynsym' 9759 ;; 9760 esac 9761 fi 9762 fi 9763 9764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9765$as_echo "$ld_shlibs" >&6; } 9766test "$ld_shlibs" = no && can_build_shared=no 9767 9768with_gnu_ld=$with_gnu_ld 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784# 9785# Do we need to explicitly link libc? 9786# 9787case "x$archive_cmds_need_lc" in 9788x|xyes) 9789 # Assume -lc should be added 9790 archive_cmds_need_lc=yes 9791 9792 if test "$enable_shared" = yes && test "$GCC" = yes; then 9793 case $archive_cmds in 9794 *'~'*) 9795 # FIXME: we may have to deal with multi-command sequences. 9796 ;; 9797 '$CC '*) 9798 # Test whether the compiler implicitly links with -lc since on some 9799 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9800 # to ld, don't add -lc before -lgcc. 9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9802$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9803if ${lt_cv_archive_cmds_need_lc+:} false; then : 9804 $as_echo_n "(cached) " >&6 9805else 9806 $RM conftest* 9807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9808 9809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9810 (eval $ac_compile) 2>&5 9811 ac_status=$? 9812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9813 test $ac_status = 0; } 2>conftest.err; then 9814 soname=conftest 9815 lib=conftest 9816 libobjs=conftest.$ac_objext 9817 deplibs= 9818 wl=$lt_prog_compiler_wl 9819 pic_flag=$lt_prog_compiler_pic 9820 compiler_flags=-v 9821 linker_flags=-v 9822 verstring= 9823 output_objdir=. 9824 libname=conftest 9825 lt_save_allow_undefined_flag=$allow_undefined_flag 9826 allow_undefined_flag= 9827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9828 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9829 ac_status=$? 9830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9831 test $ac_status = 0; } 9832 then 9833 lt_cv_archive_cmds_need_lc=no 9834 else 9835 lt_cv_archive_cmds_need_lc=yes 9836 fi 9837 allow_undefined_flag=$lt_save_allow_undefined_flag 9838 else 9839 cat conftest.err 1>&5 9840 fi 9841 $RM conftest* 9842 9843fi 9844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9845$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9846 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9847 ;; 9848 esac 9849 fi 9850 ;; 9851esac 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 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10005$as_echo_n "checking dynamic linker characteristics... " >&6; } 10006 10007if test "$GCC" = yes; then 10008 case $host_os in 10009 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10010 *) lt_awk_arg="/^libraries:/" ;; 10011 esac 10012 case $host_os in 10013 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10014 *) lt_sed_strip_eq="s,=/,/,g" ;; 10015 esac 10016 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10017 case $lt_search_path_spec in 10018 *\;*) 10019 # if the path contains ";" then we assume it to be the separator 10020 # otherwise default to the standard path separator (i.e. ":") - it is 10021 # assumed that no part of a normal pathname contains ";" but that should 10022 # okay in the real world where ";" in dirpaths is itself problematic. 10023 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10024 ;; 10025 *) 10026 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10027 ;; 10028 esac 10029 # Ok, now we have the path, separated by spaces, we can step through it 10030 # and add multilib dir if necessary. 10031 lt_tmp_lt_search_path_spec= 10032 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10033 for lt_sys_path in $lt_search_path_spec; do 10034 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10035 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10036 else 10037 test -d "$lt_sys_path" && \ 10038 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10039 fi 10040 done 10041 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10042BEGIN {RS=" "; FS="/|\n";} { 10043 lt_foo=""; 10044 lt_count=0; 10045 for (lt_i = NF; lt_i > 0; lt_i--) { 10046 if ($lt_i != "" && $lt_i != ".") { 10047 if ($lt_i == "..") { 10048 lt_count++; 10049 } else { 10050 if (lt_count == 0) { 10051 lt_foo="/" $lt_i lt_foo; 10052 } else { 10053 lt_count--; 10054 } 10055 } 10056 } 10057 } 10058 if (lt_foo != "") { lt_freq[lt_foo]++; } 10059 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10060}'` 10061 # AWK program above erroneously prepends '/' to C:/dos/paths 10062 # for these hosts. 10063 case $host_os in 10064 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10065 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10066 esac 10067 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10068else 10069 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10070fi 10071library_names_spec= 10072libname_spec='lib$name' 10073soname_spec= 10074shrext_cmds=".so" 10075postinstall_cmds= 10076postuninstall_cmds= 10077finish_cmds= 10078finish_eval= 10079shlibpath_var= 10080shlibpath_overrides_runpath=unknown 10081version_type=none 10082dynamic_linker="$host_os ld.so" 10083sys_lib_dlsearch_path_spec="/lib /usr/lib" 10084need_lib_prefix=unknown 10085hardcode_into_libs=no 10086 10087# when you set need_version to no, make sure it does not cause -set_version 10088# flags to be left without arguments 10089need_version=unknown 10090 10091case $host_os in 10092aix3*) 10093 version_type=linux # correct to gnu/linux during the next big refactor 10094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10095 shlibpath_var=LIBPATH 10096 10097 # AIX 3 has no versioning support, so we append a major version to the name. 10098 soname_spec='${libname}${release}${shared_ext}$major' 10099 ;; 10100 10101aix[4-9]*) 10102 version_type=linux # correct to gnu/linux during the next big refactor 10103 need_lib_prefix=no 10104 need_version=no 10105 hardcode_into_libs=yes 10106 if test "$host_cpu" = ia64; then 10107 # AIX 5 supports IA64 10108 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10109 shlibpath_var=LD_LIBRARY_PATH 10110 else 10111 # With GCC up to 2.95.x, collect2 would create an import file 10112 # for dependence libraries. The import file would start with 10113 # the line `#! .'. This would cause the generated library to 10114 # depend on `.', always an invalid library. This was fixed in 10115 # development snapshots of GCC prior to 3.0. 10116 case $host_os in 10117 aix4 | aix4.[01] | aix4.[01].*) 10118 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10119 echo ' yes ' 10120 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10121 : 10122 else 10123 can_build_shared=no 10124 fi 10125 ;; 10126 esac 10127 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10128 # soname into executable. Probably we can add versioning support to 10129 # collect2, so additional links can be useful in future. 10130 if test "$aix_use_runtimelinking" = yes; then 10131 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10132 # instead of lib<name>.a to let people know that these are not 10133 # typical AIX shared libraries. 10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10135 else 10136 # We preserve .a as extension for shared libraries through AIX4.2 10137 # and later when we are not doing run time linking. 10138 library_names_spec='${libname}${release}.a $libname.a' 10139 soname_spec='${libname}${release}${shared_ext}$major' 10140 fi 10141 shlibpath_var=LIBPATH 10142 fi 10143 ;; 10144 10145amigaos*) 10146 case $host_cpu in 10147 powerpc) 10148 # Since July 2007 AmigaOS4 officially supports .so libraries. 10149 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10151 ;; 10152 m68k) 10153 library_names_spec='$libname.ixlibrary $libname.a' 10154 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10155 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' 10156 ;; 10157 esac 10158 ;; 10159 10160beos*) 10161 library_names_spec='${libname}${shared_ext}' 10162 dynamic_linker="$host_os ld.so" 10163 shlibpath_var=LIBRARY_PATH 10164 ;; 10165 10166bsdi[45]*) 10167 version_type=linux # correct to gnu/linux during the next big refactor 10168 need_version=no 10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10170 soname_spec='${libname}${release}${shared_ext}$major' 10171 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10172 shlibpath_var=LD_LIBRARY_PATH 10173 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10174 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10175 # the default ld.so.conf also contains /usr/contrib/lib and 10176 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10177 # libtool to hard-code these into programs 10178 ;; 10179 10180cygwin* | mingw* | pw32* | cegcc*) 10181 version_type=windows 10182 shrext_cmds=".dll" 10183 need_version=no 10184 need_lib_prefix=no 10185 10186 case $GCC,$cc_basename in 10187 yes,*) 10188 # gcc 10189 library_names_spec='$libname.dll.a' 10190 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10191 postinstall_cmds='base_file=`basename \${file}`~ 10192 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10193 dldir=$destdir/`dirname \$dlpath`~ 10194 test -d \$dldir || mkdir -p \$dldir~ 10195 $install_prog $dir/$dlname \$dldir/$dlname~ 10196 chmod a+x \$dldir/$dlname~ 10197 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10198 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10199 fi' 10200 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10201 dlpath=$dir/\$dldll~ 10202 $RM \$dlpath' 10203 shlibpath_overrides_runpath=yes 10204 10205 case $host_os in 10206 cygwin*) 10207 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10208 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10209 10210 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10211 ;; 10212 mingw* | cegcc*) 10213 # MinGW DLLs use traditional 'lib' prefix 10214 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10215 ;; 10216 pw32*) 10217 # pw32 DLLs use 'pw' prefix rather than 'lib' 10218 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10219 ;; 10220 esac 10221 dynamic_linker='Win32 ld.exe' 10222 ;; 10223 10224 *,cl*) 10225 # Native MSVC 10226 libname_spec='$name' 10227 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10228 library_names_spec='${libname}.dll.lib' 10229 10230 case $build_os in 10231 mingw*) 10232 sys_lib_search_path_spec= 10233 lt_save_ifs=$IFS 10234 IFS=';' 10235 for lt_path in $LIB 10236 do 10237 IFS=$lt_save_ifs 10238 # Let DOS variable expansion print the short 8.3 style file name. 10239 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10240 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10241 done 10242 IFS=$lt_save_ifs 10243 # Convert to MSYS style. 10244 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10245 ;; 10246 cygwin*) 10247 # Convert to unix form, then to dos form, then back to unix form 10248 # but this time dos style (no spaces!) so that the unix form looks 10249 # like /cygdrive/c/PROGRA~1:/cygdr... 10250 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10251 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10252 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10253 ;; 10254 *) 10255 sys_lib_search_path_spec="$LIB" 10256 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10257 # It is most probably a Windows format PATH. 10258 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10259 else 10260 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10261 fi 10262 # FIXME: find the short name or the path components, as spaces are 10263 # common. (e.g. "Program Files" -> "PROGRA~1") 10264 ;; 10265 esac 10266 10267 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10268 postinstall_cmds='base_file=`basename \${file}`~ 10269 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10270 dldir=$destdir/`dirname \$dlpath`~ 10271 test -d \$dldir || mkdir -p \$dldir~ 10272 $install_prog $dir/$dlname \$dldir/$dlname' 10273 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10274 dlpath=$dir/\$dldll~ 10275 $RM \$dlpath' 10276 shlibpath_overrides_runpath=yes 10277 dynamic_linker='Win32 link.exe' 10278 ;; 10279 10280 *) 10281 # Assume MSVC wrapper 10282 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10283 dynamic_linker='Win32 ld.exe' 10284 ;; 10285 esac 10286 # FIXME: first we should search . and the directory the executable is in 10287 shlibpath_var=PATH 10288 ;; 10289 10290darwin* | rhapsody*) 10291 dynamic_linker="$host_os dyld" 10292 version_type=darwin 10293 need_lib_prefix=no 10294 need_version=no 10295 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10296 soname_spec='${libname}${release}${major}$shared_ext' 10297 shlibpath_overrides_runpath=yes 10298 shlibpath_var=DYLD_LIBRARY_PATH 10299 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10300 10301 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10302 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10303 ;; 10304 10305dgux*) 10306 version_type=linux # correct to gnu/linux during the next big refactor 10307 need_lib_prefix=no 10308 need_version=no 10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10310 soname_spec='${libname}${release}${shared_ext}$major' 10311 shlibpath_var=LD_LIBRARY_PATH 10312 ;; 10313 10314freebsd* | dragonfly*) 10315 # DragonFly does not have aout. When/if they implement a new 10316 # versioning mechanism, adjust this. 10317 if test -x /usr/bin/objformat; then 10318 objformat=`/usr/bin/objformat` 10319 else 10320 case $host_os in 10321 freebsd[23].*) objformat=aout ;; 10322 *) objformat=elf ;; 10323 esac 10324 fi 10325 version_type=freebsd-$objformat 10326 case $version_type in 10327 freebsd-elf*) 10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10329 need_version=no 10330 need_lib_prefix=no 10331 ;; 10332 freebsd-*) 10333 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10334 need_version=yes 10335 ;; 10336 esac 10337 shlibpath_var=LD_LIBRARY_PATH 10338 case $host_os in 10339 freebsd2.*) 10340 shlibpath_overrides_runpath=yes 10341 ;; 10342 freebsd3.[01]* | freebsdelf3.[01]*) 10343 shlibpath_overrides_runpath=yes 10344 hardcode_into_libs=yes 10345 ;; 10346 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10347 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10348 shlibpath_overrides_runpath=no 10349 hardcode_into_libs=yes 10350 ;; 10351 *) # from 4.6 on, and DragonFly 10352 shlibpath_overrides_runpath=yes 10353 hardcode_into_libs=yes 10354 ;; 10355 esac 10356 ;; 10357 10358haiku*) 10359 version_type=linux # correct to gnu/linux during the next big refactor 10360 need_lib_prefix=no 10361 need_version=no 10362 dynamic_linker="$host_os runtime_loader" 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 shlibpath_var=LIBRARY_PATH 10366 shlibpath_overrides_runpath=yes 10367 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10368 hardcode_into_libs=yes 10369 ;; 10370 10371hpux9* | hpux10* | hpux11*) 10372 # Give a soname corresponding to the major version so that dld.sl refuses to 10373 # link against other versions. 10374 version_type=sunos 10375 need_lib_prefix=no 10376 need_version=no 10377 case $host_cpu in 10378 ia64*) 10379 shrext_cmds='.so' 10380 hardcode_into_libs=yes 10381 dynamic_linker="$host_os dld.so" 10382 shlibpath_var=LD_LIBRARY_PATH 10383 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10385 soname_spec='${libname}${release}${shared_ext}$major' 10386 if test "X$HPUX_IA64_MODE" = X32; then 10387 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10388 else 10389 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10390 fi 10391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10392 ;; 10393 hppa*64*) 10394 shrext_cmds='.sl' 10395 hardcode_into_libs=yes 10396 dynamic_linker="$host_os dld.sl" 10397 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10398 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10400 soname_spec='${libname}${release}${shared_ext}$major' 10401 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10402 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10403 ;; 10404 *) 10405 shrext_cmds='.sl' 10406 dynamic_linker="$host_os dld.sl" 10407 shlibpath_var=SHLIB_PATH 10408 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10410 soname_spec='${libname}${release}${shared_ext}$major' 10411 ;; 10412 esac 10413 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10414 postinstall_cmds='chmod 555 $lib' 10415 # or fails outright, so override atomically: 10416 install_override_mode=555 10417 ;; 10418 10419interix[3-9]*) 10420 version_type=linux # correct to gnu/linux during the next big refactor 10421 need_lib_prefix=no 10422 need_version=no 10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10424 soname_spec='${libname}${release}${shared_ext}$major' 10425 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10426 shlibpath_var=LD_LIBRARY_PATH 10427 shlibpath_overrides_runpath=no 10428 hardcode_into_libs=yes 10429 ;; 10430 10431irix5* | irix6* | nonstopux*) 10432 case $host_os in 10433 nonstopux*) version_type=nonstopux ;; 10434 *) 10435 if test "$lt_cv_prog_gnu_ld" = yes; then 10436 version_type=linux # correct to gnu/linux during the next big refactor 10437 else 10438 version_type=irix 10439 fi ;; 10440 esac 10441 need_lib_prefix=no 10442 need_version=no 10443 soname_spec='${libname}${release}${shared_ext}$major' 10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10445 case $host_os in 10446 irix5* | nonstopux*) 10447 libsuff= shlibsuff= 10448 ;; 10449 *) 10450 case $LD in # libtool.m4 will add one of these switches to LD 10451 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10452 libsuff= shlibsuff= libmagic=32-bit;; 10453 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10454 libsuff=32 shlibsuff=N32 libmagic=N32;; 10455 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10456 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10457 *) libsuff= shlibsuff= libmagic=never-match;; 10458 esac 10459 ;; 10460 esac 10461 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10462 shlibpath_overrides_runpath=no 10463 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10464 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10465 hardcode_into_libs=yes 10466 ;; 10467 10468# No shared lib support for Linux oldld, aout, or coff. 10469linux*oldld* | linux*aout* | linux*coff*) 10470 dynamic_linker=no 10471 ;; 10472 10473# This must be glibc/ELF. 10474linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10475 version_type=linux # correct to gnu/linux during the next big refactor 10476 need_lib_prefix=no 10477 need_version=no 10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10479 soname_spec='${libname}${release}${shared_ext}$major' 10480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10481 shlibpath_var=LD_LIBRARY_PATH 10482 shlibpath_overrides_runpath=no 10483 10484 # Some binutils ld are patched to set DT_RUNPATH 10485 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10486 $as_echo_n "(cached) " >&6 10487else 10488 lt_cv_shlibpath_overrides_runpath=no 10489 save_LDFLAGS=$LDFLAGS 10490 save_libdir=$libdir 10491 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10492 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10494/* end confdefs.h. */ 10495 10496int 10497main () 10498{ 10499 10500 ; 10501 return 0; 10502} 10503_ACEOF 10504if ac_fn_c_try_link "$LINENO"; then : 10505 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10506 lt_cv_shlibpath_overrides_runpath=yes 10507fi 10508fi 10509rm -f core conftest.err conftest.$ac_objext \ 10510 conftest$ac_exeext conftest.$ac_ext 10511 LDFLAGS=$save_LDFLAGS 10512 libdir=$save_libdir 10513 10514fi 10515 10516 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10517 10518 # This implies no fast_install, which is unacceptable. 10519 # Some rework will be needed to allow for fast_install 10520 # before this can be enabled. 10521 hardcode_into_libs=yes 10522 10523 # Append ld.so.conf contents to the search path 10524 if test -f /etc/ld.so.conf; then 10525 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' ' '` 10526 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10527 fi 10528 10529 # We used to test for /lib/ld.so.1 and disable shared libraries on 10530 # powerpc, because MkLinux only supported shared libraries with the 10531 # GNU dynamic linker. Since this was broken with cross compilers, 10532 # most powerpc-linux boxes support dynamic linking these days and 10533 # people can always --disable-shared, the test was removed, and we 10534 # assume the GNU/Linux dynamic linker is in use. 10535 dynamic_linker='GNU/Linux ld.so' 10536 ;; 10537 10538netbsdelf*-gnu) 10539 version_type=linux 10540 need_lib_prefix=no 10541 need_version=no 10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10543 soname_spec='${libname}${release}${shared_ext}$major' 10544 shlibpath_var=LD_LIBRARY_PATH 10545 shlibpath_overrides_runpath=no 10546 hardcode_into_libs=yes 10547 dynamic_linker='NetBSD ld.elf_so' 10548 ;; 10549 10550netbsd*) 10551 version_type=sunos 10552 need_lib_prefix=no 10553 need_version=no 10554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10557 dynamic_linker='NetBSD (a.out) ld.so' 10558 else 10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10560 soname_spec='${libname}${release}${shared_ext}$major' 10561 dynamic_linker='NetBSD ld.elf_so' 10562 fi 10563 shlibpath_var=LD_LIBRARY_PATH 10564 shlibpath_overrides_runpath=yes 10565 hardcode_into_libs=yes 10566 ;; 10567 10568newsos6) 10569 version_type=linux # correct to gnu/linux during the next big refactor 10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10571 shlibpath_var=LD_LIBRARY_PATH 10572 shlibpath_overrides_runpath=yes 10573 ;; 10574 10575*nto* | *qnx*) 10576 version_type=qnx 10577 need_lib_prefix=no 10578 need_version=no 10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10580 soname_spec='${libname}${release}${shared_ext}$major' 10581 shlibpath_var=LD_LIBRARY_PATH 10582 shlibpath_overrides_runpath=no 10583 hardcode_into_libs=yes 10584 dynamic_linker='ldqnx.so' 10585 ;; 10586 10587openbsd*) 10588 version_type=sunos 10589 sys_lib_dlsearch_path_spec="/usr/lib" 10590 need_lib_prefix=no 10591 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10592 case $host_os in 10593 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10594 *) need_version=no ;; 10595 esac 10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10598 shlibpath_var=LD_LIBRARY_PATH 10599 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10600 case $host_os in 10601 openbsd2.[89] | openbsd2.[89].*) 10602 shlibpath_overrides_runpath=no 10603 ;; 10604 *) 10605 shlibpath_overrides_runpath=yes 10606 ;; 10607 esac 10608 else 10609 shlibpath_overrides_runpath=yes 10610 fi 10611 ;; 10612 10613os2*) 10614 libname_spec='$name' 10615 shrext_cmds=".dll" 10616 need_lib_prefix=no 10617 library_names_spec='$libname${shared_ext} $libname.a' 10618 dynamic_linker='OS/2 ld.exe' 10619 shlibpath_var=LIBPATH 10620 ;; 10621 10622osf3* | osf4* | osf5*) 10623 version_type=osf 10624 need_lib_prefix=no 10625 need_version=no 10626 soname_spec='${libname}${release}${shared_ext}$major' 10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10628 shlibpath_var=LD_LIBRARY_PATH 10629 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10630 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10631 ;; 10632 10633rdos*) 10634 dynamic_linker=no 10635 ;; 10636 10637solaris*) 10638 version_type=linux # correct to gnu/linux during the next big refactor 10639 need_lib_prefix=no 10640 need_version=no 10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10642 soname_spec='${libname}${release}${shared_ext}$major' 10643 shlibpath_var=LD_LIBRARY_PATH 10644 shlibpath_overrides_runpath=yes 10645 hardcode_into_libs=yes 10646 # ldd complains unless libraries are executable 10647 postinstall_cmds='chmod +x $lib' 10648 ;; 10649 10650sunos4*) 10651 version_type=sunos 10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10653 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10654 shlibpath_var=LD_LIBRARY_PATH 10655 shlibpath_overrides_runpath=yes 10656 if test "$with_gnu_ld" = yes; then 10657 need_lib_prefix=no 10658 fi 10659 need_version=yes 10660 ;; 10661 10662sysv4 | sysv4.3*) 10663 version_type=linux # correct to gnu/linux during the next big refactor 10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10665 soname_spec='${libname}${release}${shared_ext}$major' 10666 shlibpath_var=LD_LIBRARY_PATH 10667 case $host_vendor in 10668 sni) 10669 shlibpath_overrides_runpath=no 10670 need_lib_prefix=no 10671 runpath_var=LD_RUN_PATH 10672 ;; 10673 siemens) 10674 need_lib_prefix=no 10675 ;; 10676 motorola) 10677 need_lib_prefix=no 10678 need_version=no 10679 shlibpath_overrides_runpath=no 10680 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10681 ;; 10682 esac 10683 ;; 10684 10685sysv4*MP*) 10686 if test -d /usr/nec ;then 10687 version_type=linux # correct to gnu/linux during the next big refactor 10688 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10689 soname_spec='$libname${shared_ext}.$major' 10690 shlibpath_var=LD_LIBRARY_PATH 10691 fi 10692 ;; 10693 10694sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10695 version_type=freebsd-elf 10696 need_lib_prefix=no 10697 need_version=no 10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10699 soname_spec='${libname}${release}${shared_ext}$major' 10700 shlibpath_var=LD_LIBRARY_PATH 10701 shlibpath_overrides_runpath=yes 10702 hardcode_into_libs=yes 10703 if test "$with_gnu_ld" = yes; then 10704 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10705 else 10706 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10707 case $host_os in 10708 sco3.2v5*) 10709 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10710 ;; 10711 esac 10712 fi 10713 sys_lib_dlsearch_path_spec='/usr/lib' 10714 ;; 10715 10716tpf*) 10717 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10718 version_type=linux # correct to gnu/linux during the next big refactor 10719 need_lib_prefix=no 10720 need_version=no 10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10722 shlibpath_var=LD_LIBRARY_PATH 10723 shlibpath_overrides_runpath=no 10724 hardcode_into_libs=yes 10725 ;; 10726 10727uts4*) 10728 version_type=linux # correct to gnu/linux during the next big refactor 10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10730 soname_spec='${libname}${release}${shared_ext}$major' 10731 shlibpath_var=LD_LIBRARY_PATH 10732 ;; 10733 10734*) 10735 dynamic_linker=no 10736 ;; 10737esac 10738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10739$as_echo "$dynamic_linker" >&6; } 10740test "$dynamic_linker" = no && can_build_shared=no 10741 10742variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10743if test "$GCC" = yes; then 10744 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10745fi 10746 10747if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10748 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10749fi 10750if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10751 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10752fi 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 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10846$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10847hardcode_action= 10848if test -n "$hardcode_libdir_flag_spec" || 10849 test -n "$runpath_var" || 10850 test "X$hardcode_automatic" = "Xyes" ; then 10851 10852 # We can hardcode non-existent directories. 10853 if test "$hardcode_direct" != no && 10854 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10855 # have to relink, otherwise we might link with an installed library 10856 # when we should be linking with a yet-to-be-installed one 10857 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10858 test "$hardcode_minus_L" != no; then 10859 # Linking always hardcodes the temporary library directory. 10860 hardcode_action=relink 10861 else 10862 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10863 hardcode_action=immediate 10864 fi 10865else 10866 # We cannot hardcode anything, or else we can only hardcode existing 10867 # directories. 10868 hardcode_action=unsupported 10869fi 10870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10871$as_echo "$hardcode_action" >&6; } 10872 10873if test "$hardcode_action" = relink || 10874 test "$inherit_rpath" = yes; then 10875 # Fast installation is not supported 10876 enable_fast_install=no 10877elif test "$shlibpath_overrides_runpath" = yes || 10878 test "$enable_shared" = no; then 10879 # Fast installation is not necessary 10880 enable_fast_install=needless 10881fi 10882 10883 10884 10885 10886 10887 10888 if test "x$enable_dlopen" != xyes; then 10889 enable_dlopen=unknown 10890 enable_dlopen_self=unknown 10891 enable_dlopen_self_static=unknown 10892else 10893 lt_cv_dlopen=no 10894 lt_cv_dlopen_libs= 10895 10896 case $host_os in 10897 beos*) 10898 lt_cv_dlopen="load_add_on" 10899 lt_cv_dlopen_libs= 10900 lt_cv_dlopen_self=yes 10901 ;; 10902 10903 mingw* | pw32* | cegcc*) 10904 lt_cv_dlopen="LoadLibrary" 10905 lt_cv_dlopen_libs= 10906 ;; 10907 10908 cygwin*) 10909 lt_cv_dlopen="dlopen" 10910 lt_cv_dlopen_libs= 10911 ;; 10912 10913 darwin*) 10914 # if libdl is installed we need to link against it 10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10916$as_echo_n "checking for dlopen in -ldl... " >&6; } 10917if ${ac_cv_lib_dl_dlopen+:} false; then : 10918 $as_echo_n "(cached) " >&6 10919else 10920 ac_check_lib_save_LIBS=$LIBS 10921LIBS="-ldl $LIBS" 10922cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10923/* end confdefs.h. */ 10924 10925/* Override any GCC internal prototype to avoid an error. 10926 Use char because int might match the return type of a GCC 10927 builtin and then its argument prototype would still apply. */ 10928#ifdef __cplusplus 10929extern "C" 10930#endif 10931char dlopen (); 10932int 10933main () 10934{ 10935return dlopen (); 10936 ; 10937 return 0; 10938} 10939_ACEOF 10940if ac_fn_c_try_link "$LINENO"; then : 10941 ac_cv_lib_dl_dlopen=yes 10942else 10943 ac_cv_lib_dl_dlopen=no 10944fi 10945rm -f core conftest.err conftest.$ac_objext \ 10946 conftest$ac_exeext conftest.$ac_ext 10947LIBS=$ac_check_lib_save_LIBS 10948fi 10949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10950$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10951if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10952 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10953else 10954 10955 lt_cv_dlopen="dyld" 10956 lt_cv_dlopen_libs= 10957 lt_cv_dlopen_self=yes 10958 10959fi 10960 10961 ;; 10962 10963 *) 10964 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10965if test "x$ac_cv_func_shl_load" = xyes; then : 10966 lt_cv_dlopen="shl_load" 10967else 10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10969$as_echo_n "checking for shl_load in -ldld... " >&6; } 10970if ${ac_cv_lib_dld_shl_load+:} false; then : 10971 $as_echo_n "(cached) " >&6 10972else 10973 ac_check_lib_save_LIBS=$LIBS 10974LIBS="-ldld $LIBS" 10975cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10976/* end confdefs.h. */ 10977 10978/* Override any GCC internal prototype to avoid an error. 10979 Use char because int might match the return type of a GCC 10980 builtin and then its argument prototype would still apply. */ 10981#ifdef __cplusplus 10982extern "C" 10983#endif 10984char shl_load (); 10985int 10986main () 10987{ 10988return shl_load (); 10989 ; 10990 return 0; 10991} 10992_ACEOF 10993if ac_fn_c_try_link "$LINENO"; then : 10994 ac_cv_lib_dld_shl_load=yes 10995else 10996 ac_cv_lib_dld_shl_load=no 10997fi 10998rm -f core conftest.err conftest.$ac_objext \ 10999 conftest$ac_exeext conftest.$ac_ext 11000LIBS=$ac_check_lib_save_LIBS 11001fi 11002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11003$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11004if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11005 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11006else 11007 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11008if test "x$ac_cv_func_dlopen" = xyes; then : 11009 lt_cv_dlopen="dlopen" 11010else 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11012$as_echo_n "checking for dlopen in -ldl... " >&6; } 11013if ${ac_cv_lib_dl_dlopen+:} false; then : 11014 $as_echo_n "(cached) " >&6 11015else 11016 ac_check_lib_save_LIBS=$LIBS 11017LIBS="-ldl $LIBS" 11018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11019/* end confdefs.h. */ 11020 11021/* Override any GCC internal prototype to avoid an error. 11022 Use char because int might match the return type of a GCC 11023 builtin and then its argument prototype would still apply. */ 11024#ifdef __cplusplus 11025extern "C" 11026#endif 11027char dlopen (); 11028int 11029main () 11030{ 11031return dlopen (); 11032 ; 11033 return 0; 11034} 11035_ACEOF 11036if ac_fn_c_try_link "$LINENO"; then : 11037 ac_cv_lib_dl_dlopen=yes 11038else 11039 ac_cv_lib_dl_dlopen=no 11040fi 11041rm -f core conftest.err conftest.$ac_objext \ 11042 conftest$ac_exeext conftest.$ac_ext 11043LIBS=$ac_check_lib_save_LIBS 11044fi 11045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11046$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11047if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11048 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11049else 11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11051$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11052if ${ac_cv_lib_svld_dlopen+:} false; then : 11053 $as_echo_n "(cached) " >&6 11054else 11055 ac_check_lib_save_LIBS=$LIBS 11056LIBS="-lsvld $LIBS" 11057cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11058/* end confdefs.h. */ 11059 11060/* Override any GCC internal prototype to avoid an error. 11061 Use char because int might match the return type of a GCC 11062 builtin and then its argument prototype would still apply. */ 11063#ifdef __cplusplus 11064extern "C" 11065#endif 11066char dlopen (); 11067int 11068main () 11069{ 11070return dlopen (); 11071 ; 11072 return 0; 11073} 11074_ACEOF 11075if ac_fn_c_try_link "$LINENO"; then : 11076 ac_cv_lib_svld_dlopen=yes 11077else 11078 ac_cv_lib_svld_dlopen=no 11079fi 11080rm -f core conftest.err conftest.$ac_objext \ 11081 conftest$ac_exeext conftest.$ac_ext 11082LIBS=$ac_check_lib_save_LIBS 11083fi 11084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11085$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11086if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11087 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11088else 11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11090$as_echo_n "checking for dld_link in -ldld... " >&6; } 11091if ${ac_cv_lib_dld_dld_link+:} false; then : 11092 $as_echo_n "(cached) " >&6 11093else 11094 ac_check_lib_save_LIBS=$LIBS 11095LIBS="-ldld $LIBS" 11096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11097/* end confdefs.h. */ 11098 11099/* Override any GCC internal prototype to avoid an error. 11100 Use char because int might match the return type of a GCC 11101 builtin and then its argument prototype would still apply. */ 11102#ifdef __cplusplus 11103extern "C" 11104#endif 11105char dld_link (); 11106int 11107main () 11108{ 11109return dld_link (); 11110 ; 11111 return 0; 11112} 11113_ACEOF 11114if ac_fn_c_try_link "$LINENO"; then : 11115 ac_cv_lib_dld_dld_link=yes 11116else 11117 ac_cv_lib_dld_dld_link=no 11118fi 11119rm -f core conftest.err conftest.$ac_objext \ 11120 conftest$ac_exeext conftest.$ac_ext 11121LIBS=$ac_check_lib_save_LIBS 11122fi 11123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11124$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11125if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11126 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11127fi 11128 11129 11130fi 11131 11132 11133fi 11134 11135 11136fi 11137 11138 11139fi 11140 11141 11142fi 11143 11144 ;; 11145 esac 11146 11147 if test "x$lt_cv_dlopen" != xno; then 11148 enable_dlopen=yes 11149 else 11150 enable_dlopen=no 11151 fi 11152 11153 case $lt_cv_dlopen in 11154 dlopen) 11155 save_CPPFLAGS="$CPPFLAGS" 11156 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11157 11158 save_LDFLAGS="$LDFLAGS" 11159 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11160 11161 save_LIBS="$LIBS" 11162 LIBS="$lt_cv_dlopen_libs $LIBS" 11163 11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11165$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11166if ${lt_cv_dlopen_self+:} false; then : 11167 $as_echo_n "(cached) " >&6 11168else 11169 if test "$cross_compiling" = yes; then : 11170 lt_cv_dlopen_self=cross 11171else 11172 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11173 lt_status=$lt_dlunknown 11174 cat > conftest.$ac_ext <<_LT_EOF 11175#line $LINENO "configure" 11176#include "confdefs.h" 11177 11178#if HAVE_DLFCN_H 11179#include <dlfcn.h> 11180#endif 11181 11182#include <stdio.h> 11183 11184#ifdef RTLD_GLOBAL 11185# define LT_DLGLOBAL RTLD_GLOBAL 11186#else 11187# ifdef DL_GLOBAL 11188# define LT_DLGLOBAL DL_GLOBAL 11189# else 11190# define LT_DLGLOBAL 0 11191# endif 11192#endif 11193 11194/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11195 find out it does not work in some platform. */ 11196#ifndef LT_DLLAZY_OR_NOW 11197# ifdef RTLD_LAZY 11198# define LT_DLLAZY_OR_NOW RTLD_LAZY 11199# else 11200# ifdef DL_LAZY 11201# define LT_DLLAZY_OR_NOW DL_LAZY 11202# else 11203# ifdef RTLD_NOW 11204# define LT_DLLAZY_OR_NOW RTLD_NOW 11205# else 11206# ifdef DL_NOW 11207# define LT_DLLAZY_OR_NOW DL_NOW 11208# else 11209# define LT_DLLAZY_OR_NOW 0 11210# endif 11211# endif 11212# endif 11213# endif 11214#endif 11215 11216/* When -fvisbility=hidden is used, assume the code has been annotated 11217 correspondingly for the symbols needed. */ 11218#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11219int fnord () __attribute__((visibility("default"))); 11220#endif 11221 11222int fnord () { return 42; } 11223int main () 11224{ 11225 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11226 int status = $lt_dlunknown; 11227 11228 if (self) 11229 { 11230 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11231 else 11232 { 11233 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11234 else puts (dlerror ()); 11235 } 11236 /* dlclose (self); */ 11237 } 11238 else 11239 puts (dlerror ()); 11240 11241 return status; 11242} 11243_LT_EOF 11244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11245 (eval $ac_link) 2>&5 11246 ac_status=$? 11247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11248 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11249 (./conftest; exit; ) >&5 2>/dev/null 11250 lt_status=$? 11251 case x$lt_status in 11252 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11253 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11254 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11255 esac 11256 else : 11257 # compilation failed 11258 lt_cv_dlopen_self=no 11259 fi 11260fi 11261rm -fr conftest* 11262 11263 11264fi 11265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11266$as_echo "$lt_cv_dlopen_self" >&6; } 11267 11268 if test "x$lt_cv_dlopen_self" = xyes; then 11269 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11271$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11272if ${lt_cv_dlopen_self_static+:} false; then : 11273 $as_echo_n "(cached) " >&6 11274else 11275 if test "$cross_compiling" = yes; then : 11276 lt_cv_dlopen_self_static=cross 11277else 11278 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11279 lt_status=$lt_dlunknown 11280 cat > conftest.$ac_ext <<_LT_EOF 11281#line $LINENO "configure" 11282#include "confdefs.h" 11283 11284#if HAVE_DLFCN_H 11285#include <dlfcn.h> 11286#endif 11287 11288#include <stdio.h> 11289 11290#ifdef RTLD_GLOBAL 11291# define LT_DLGLOBAL RTLD_GLOBAL 11292#else 11293# ifdef DL_GLOBAL 11294# define LT_DLGLOBAL DL_GLOBAL 11295# else 11296# define LT_DLGLOBAL 0 11297# endif 11298#endif 11299 11300/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11301 find out it does not work in some platform. */ 11302#ifndef LT_DLLAZY_OR_NOW 11303# ifdef RTLD_LAZY 11304# define LT_DLLAZY_OR_NOW RTLD_LAZY 11305# else 11306# ifdef DL_LAZY 11307# define LT_DLLAZY_OR_NOW DL_LAZY 11308# else 11309# ifdef RTLD_NOW 11310# define LT_DLLAZY_OR_NOW RTLD_NOW 11311# else 11312# ifdef DL_NOW 11313# define LT_DLLAZY_OR_NOW DL_NOW 11314# else 11315# define LT_DLLAZY_OR_NOW 0 11316# endif 11317# endif 11318# endif 11319# endif 11320#endif 11321 11322/* When -fvisbility=hidden is used, assume the code has been annotated 11323 correspondingly for the symbols needed. */ 11324#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11325int fnord () __attribute__((visibility("default"))); 11326#endif 11327 11328int fnord () { return 42; } 11329int main () 11330{ 11331 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11332 int status = $lt_dlunknown; 11333 11334 if (self) 11335 { 11336 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11337 else 11338 { 11339 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11340 else puts (dlerror ()); 11341 } 11342 /* dlclose (self); */ 11343 } 11344 else 11345 puts (dlerror ()); 11346 11347 return status; 11348} 11349_LT_EOF 11350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11351 (eval $ac_link) 2>&5 11352 ac_status=$? 11353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11354 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11355 (./conftest; exit; ) >&5 2>/dev/null 11356 lt_status=$? 11357 case x$lt_status in 11358 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11359 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11360 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11361 esac 11362 else : 11363 # compilation failed 11364 lt_cv_dlopen_self_static=no 11365 fi 11366fi 11367rm -fr conftest* 11368 11369 11370fi 11371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11372$as_echo "$lt_cv_dlopen_self_static" >&6; } 11373 fi 11374 11375 CPPFLAGS="$save_CPPFLAGS" 11376 LDFLAGS="$save_LDFLAGS" 11377 LIBS="$save_LIBS" 11378 ;; 11379 esac 11380 11381 case $lt_cv_dlopen_self in 11382 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11383 *) enable_dlopen_self=unknown ;; 11384 esac 11385 11386 case $lt_cv_dlopen_self_static in 11387 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11388 *) enable_dlopen_self_static=unknown ;; 11389 esac 11390fi 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408striplib= 11409old_striplib= 11410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11411$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11412if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11413 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11414 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11416$as_echo "yes" >&6; } 11417else 11418# FIXME - insert some real tests, host_os isn't really good enough 11419 case $host_os in 11420 darwin*) 11421 if test -n "$STRIP" ; then 11422 striplib="$STRIP -x" 11423 old_striplib="$STRIP -S" 11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11425$as_echo "yes" >&6; } 11426 else 11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11428$as_echo "no" >&6; } 11429 fi 11430 ;; 11431 *) 11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11433$as_echo "no" >&6; } 11434 ;; 11435 esac 11436fi 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 # Report which library types will actually be built 11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11451$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11453$as_echo "$can_build_shared" >&6; } 11454 11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11456$as_echo_n "checking whether to build shared libraries... " >&6; } 11457 test "$can_build_shared" = "no" && enable_shared=no 11458 11459 # On AIX, shared libraries and static libraries use the same namespace, and 11460 # are all built from PIC. 11461 case $host_os in 11462 aix3*) 11463 test "$enable_shared" = yes && enable_static=no 11464 if test -n "$RANLIB"; then 11465 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11466 postinstall_cmds='$RANLIB $lib' 11467 fi 11468 ;; 11469 11470 aix[4-9]*) 11471 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11472 test "$enable_shared" = yes && enable_static=no 11473 fi 11474 ;; 11475 esac 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11477$as_echo "$enable_shared" >&6; } 11478 11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11480$as_echo_n "checking whether to build static libraries... " >&6; } 11481 # Make sure either enable_shared or enable_static is yes. 11482 test "$enable_shared" = yes || enable_static=yes 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11484$as_echo "$enable_static" >&6; } 11485 11486 11487 11488 11489fi 11490ac_ext=c 11491ac_cpp='$CPP $CPPFLAGS' 11492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11494ac_compiler_gnu=$ac_cv_c_compiler_gnu 11495 11496CC="$lt_save_CC" 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 ac_config_commands="$ac_config_commands libtool" 11513 11514 11515 11516 11517# Only expand once: 11518 11519 11520 11521# Find a tar command for 'make dist' 11522for ac_prog in gnutar gtar tar 11523do 11524 # Extract the first word of "$ac_prog", so it can be a program name with args. 11525set dummy $ac_prog; ac_word=$2 11526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11527$as_echo_n "checking for $ac_word... " >&6; } 11528if ${ac_cv_prog_TAR+:} false; then : 11529 $as_echo_n "(cached) " >&6 11530else 11531 if test -n "$TAR"; then 11532 ac_cv_prog_TAR="$TAR" # Let the user override the test. 11533else 11534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11535for as_dir in $PATH 11536do 11537 IFS=$as_save_IFS 11538 test -z "$as_dir" && as_dir=. 11539 for ac_exec_ext in '' $ac_executable_extensions; do 11540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11541 ac_cv_prog_TAR="$ac_prog" 11542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11543 break 2 11544 fi 11545done 11546 done 11547IFS=$as_save_IFS 11548 11549fi 11550fi 11551TAR=$ac_cv_prog_TAR 11552if test -n "$TAR"; then 11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11554$as_echo "$TAR" >&6; } 11555else 11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11557$as_echo "no" >&6; } 11558fi 11559 11560 11561 test -n "$TAR" && break 11562done 11563 11564 11565for ac_prog in lua 11566do 11567 # Extract the first word of "$ac_prog", so it can be a program name with args. 11568set dummy $ac_prog; ac_word=$2 11569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11570$as_echo_n "checking for $ac_word... " >&6; } 11571if ${ac_cv_prog_LUA+:} false; then : 11572 $as_echo_n "(cached) " >&6 11573else 11574 if test -n "$LUA"; then 11575 ac_cv_prog_LUA="$LUA" # Let the user override the test. 11576else 11577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11578for as_dir in $PATH 11579do 11580 IFS=$as_save_IFS 11581 test -z "$as_dir" && as_dir=. 11582 for ac_exec_ext in '' $ac_executable_extensions; do 11583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11584 ac_cv_prog_LUA="$ac_prog" 11585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11586 break 2 11587 fi 11588done 11589 done 11590IFS=$as_save_IFS 11591 11592fi 11593fi 11594LUA=$ac_cv_prog_LUA 11595if test -n "$LUA"; then 11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA" >&5 11597$as_echo "$LUA" >&6; } 11598else 11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11600$as_echo "no" >&6; } 11601fi 11602 11603 11604 test -n "$LUA" && break 11605done 11606 11607for ac_prog in python 11608do 11609 # Extract the first word of "$ac_prog", so it can be a program name with args. 11610set dummy $ac_prog; ac_word=$2 11611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11612$as_echo_n "checking for $ac_word... " >&6; } 11613if ${ac_cv_prog_PYTHON+:} false; then : 11614 $as_echo_n "(cached) " >&6 11615else 11616 if test -n "$PYTHON"; then 11617 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. 11618else 11619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11620for as_dir in $PATH 11621do 11622 IFS=$as_save_IFS 11623 test -z "$as_dir" && as_dir=. 11624 for ac_exec_ext in '' $ac_executable_extensions; do 11625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11626 ac_cv_prog_PYTHON="$ac_prog" 11627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11628 break 2 11629 fi 11630done 11631 done 11632IFS=$as_save_IFS 11633 11634fi 11635fi 11636PYTHON=$ac_cv_prog_PYTHON 11637if test -n "$PYTHON"; then 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 11639$as_echo "$PYTHON" >&6; } 11640else 11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11642$as_echo "no" >&6; } 11643fi 11644 11645 11646 test -n "$PYTHON" && break 11647done 11648 11649for ac_prog in perl 11650do 11651 # Extract the first word of "$ac_prog", so it can be a program name with args. 11652set dummy $ac_prog; ac_word=$2 11653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11654$as_echo_n "checking for $ac_word... " >&6; } 11655if ${ac_cv_prog_PERL+:} false; then : 11656 $as_echo_n "(cached) " >&6 11657else 11658 if test -n "$PERL"; then 11659 ac_cv_prog_PERL="$PERL" # Let the user override the test. 11660else 11661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11662for as_dir in $PATH 11663do 11664 IFS=$as_save_IFS 11665 test -z "$as_dir" && as_dir=. 11666 for ac_exec_ext in '' $ac_executable_extensions; do 11667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11668 ac_cv_prog_PERL="$ac_prog" 11669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11670 break 2 11671 fi 11672done 11673 done 11674IFS=$as_save_IFS 11675 11676fi 11677fi 11678PERL=$ac_cv_prog_PERL 11679if test -n "$PERL"; then 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 11681$as_echo "$PERL" >&6; } 11682else 11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11684$as_echo "no" >&6; } 11685fi 11686 11687 11688 test -n "$PERL" && break 11689done 11690 11691for ac_prog in php 11692do 11693 # Extract the first word of "$ac_prog", so it can be a program name with args. 11694set dummy $ac_prog; ac_word=$2 11695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11696$as_echo_n "checking for $ac_word... " >&6; } 11697if ${ac_cv_prog_PHP+:} false; then : 11698 $as_echo_n "(cached) " >&6 11699else 11700 if test -n "$PHP"; then 11701 ac_cv_prog_PHP="$PHP" # Let the user override the test. 11702else 11703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11704for as_dir in $PATH 11705do 11706 IFS=$as_save_IFS 11707 test -z "$as_dir" && as_dir=. 11708 for ac_exec_ext in '' $ac_executable_extensions; do 11709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11710 ac_cv_prog_PHP="$ac_prog" 11711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11712 break 2 11713 fi 11714done 11715 done 11716IFS=$as_save_IFS 11717 11718fi 11719fi 11720PHP=$ac_cv_prog_PHP 11721if test -n "$PHP"; then 11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5 11723$as_echo "$PHP" >&6; } 11724else 11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11726$as_echo "no" >&6; } 11727fi 11728 11729 11730 test -n "$PHP" && break 11731done 11732 11733for ac_prog in ruby 11734do 11735 # Extract the first word of "$ac_prog", so it can be a program name with args. 11736set dummy $ac_prog; ac_word=$2 11737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11738$as_echo_n "checking for $ac_word... " >&6; } 11739if ${ac_cv_prog_RUBY+:} false; then : 11740 $as_echo_n "(cached) " >&6 11741else 11742 if test -n "$RUBY"; then 11743 ac_cv_prog_RUBY="$RUBY" # Let the user override the test. 11744else 11745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11746for as_dir in $PATH 11747do 11748 IFS=$as_save_IFS 11749 test -z "$as_dir" && as_dir=. 11750 for ac_exec_ext in '' $ac_executable_extensions; do 11751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11752 ac_cv_prog_RUBY="$ac_prog" 11753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11754 break 2 11755 fi 11756done 11757 done 11758IFS=$as_save_IFS 11759 11760fi 11761fi 11762RUBY=$ac_cv_prog_RUBY 11763if test -n "$RUBY"; then 11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5 11765$as_echo "$RUBY" >&6; } 11766else 11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11768$as_echo "no" >&6; } 11769fi 11770 11771 11772 test -n "$RUBY" && break 11773done 11774 11775for ac_prog in swig 11776do 11777 # Extract the first word of "$ac_prog", so it can be a program name with args. 11778set dummy $ac_prog; ac_word=$2 11779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11780$as_echo_n "checking for $ac_word... " >&6; } 11781if ${ac_cv_prog_SWIG+:} false; then : 11782 $as_echo_n "(cached) " >&6 11783else 11784 if test -n "$SWIG"; then 11785 ac_cv_prog_SWIG="$SWIG" # Let the user override the test. 11786else 11787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11788for as_dir in $PATH 11789do 11790 IFS=$as_save_IFS 11791 test -z "$as_dir" && as_dir=. 11792 for ac_exec_ext in '' $ac_executable_extensions; do 11793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11794 ac_cv_prog_SWIG="$ac_prog" 11795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11796 break 2 11797 fi 11798done 11799 done 11800IFS=$as_save_IFS 11801 11802fi 11803fi 11804SWIG=$ac_cv_prog_SWIG 11805if test -n "$SWIG"; then 11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 11807$as_echo "$SWIG" >&6; } 11808else 11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11810$as_echo "no" >&6; } 11811fi 11812 11813 11814 test -n "$SWIG" && break 11815done 11816 11817# Gnome 11818for ac_prog in pkg-config 11819do 11820 # Extract the first word of "$ac_prog", so it can be a program name with args. 11821set dummy $ac_prog; ac_word=$2 11822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11823$as_echo_n "checking for $ac_word... " >&6; } 11824if ${ac_cv_prog_PKG_CONFIG+:} false; then : 11825 $as_echo_n "(cached) " >&6 11826else 11827 if test -n "$PKG_CONFIG"; then 11828 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 11829else 11830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11831for as_dir in $PATH 11832do 11833 IFS=$as_save_IFS 11834 test -z "$as_dir" && as_dir=. 11835 for ac_exec_ext in '' $ac_executable_extensions; do 11836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11837 ac_cv_prog_PKG_CONFIG="$ac_prog" 11838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11839 break 2 11840 fi 11841done 11842 done 11843IFS=$as_save_IFS 11844 11845fi 11846fi 11847PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 11848if test -n "$PKG_CONFIG"; then 11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11850$as_echo "$PKG_CONFIG" >&6; } 11851else 11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11853$as_echo "no" >&6; } 11854fi 11855 11856 11857 test -n "$PKG_CONFIG" && break 11858done 11859 11860 11861if test "X$PERL" != "X"; then 11862 PERLINSTALLSITEARCH=`$PERL -MConfig -e 'print $Config{installsitearch};'` 11863 PERLMAN3DIR=`$PERL -MConfig -e 'print $Config{man3dir};'` 11864else 11865 PERLINSTALLSITEARCH=none 11866 PERLMAN3DIR=none 11867fi 11868 11869 11870 11871SWIG_MIN_VERSION=1.3.26 11872SWIG_RECOMMENDED_VERSION=2.0.0 11873 11874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG support" >&5 11875$as_echo_n "checking SWIG support... " >&6; } 11876if test "X$SWIG" != "X"; then 11877 SWIG_VERSION=`$SWIG -version 2>&1 |sed -ne 's/^SWIG Version //p'` 11878 SWIG_VERSION_DEC=`echo $SWIG_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'` 11879 11880 SWIG_MIN_VERSION_DEC=`echo $SWIG_MIN_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'` 11881 SWIG_REC_VERSION_DEC=`echo $SWIG_RECOMMENDED_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'` 11882 11883 if test $SWIG_VERSION_DEC -ge $SWIG_MIN_VERSION_DEC; then 11884 if test $SWIG_VERSION_DEC -ge $SWIG_REC_VERSION_DEC; then 11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION - OK" >&5 11886$as_echo "$SWIG_VERSION - OK" >&6; } 11887 else 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION - OK but $SWIG_RECOMMENDED_VERSION recommended" >&5 11889$as_echo "$SWIG_VERSION - OK but $SWIG_RECOMMENDED_VERSION recommended" >&6; } 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG $SWIG_RECOMMENDED_VERSION will be REQUIRED from the next release" >&5 11891$as_echo "$as_me: WARNING: SWIG $SWIG_RECOMMENDED_VERSION will be REQUIRED from the next release" >&2;} 11892 fi 11893 else 11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION - too old to generate language interfaces" >&5 11895$as_echo "$SWIG_VERSION - too old to generate language interfaces" >&6; } 11896 if test -r $srcdir/perl/CORE_wrap.c ; then 11897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Pre-generated language interface files are present" >&5 11898$as_echo "$as_me: WARNING: Pre-generated language interface files are present" >&2;} 11899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you want to change the interfaces you will need" >&5 11900$as_echo "$as_me: WARNING: If you want to change the interfaces you will need" >&2;} 11901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version $SWIG_MIN_VERSION from http://www.swig.org/" >&5 11902$as_echo "$as_me: WARNING: SWIG version $SWIG_MIN_VERSION from http://www.swig.org/" >&2;} 11903 else 11904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: There are no pre-generated language interface files" >&5 11905$as_echo "$as_me: WARNING: There are no pre-generated language interface files" >&2;} 11906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Redland language interfaces will NOT build." >&5 11907$as_echo "$as_me: WARNING: Redland language interfaces will NOT build." >&2;} 11908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you want to build them you will need" >&5 11909$as_echo "$as_me: WARNING: If you want to build them you will need" >&2;} 11910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version $SWIG_MIN_VERSION from http://www.swig.org/" >&5 11911$as_echo "$as_me: WARNING: SWIG version $SWIG_MIN_VERSION from http://www.swig.org/" >&2;} 11912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Alternatively copy the pre-generated interface" >&5 11913$as_echo "$as_me: WARNING: Alternatively copy the pre-generated interface" >&2;} 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: files from a released version" >&5 11915$as_echo "$as_me: WARNING: files from a released version" >&2;} 11916 fi 11917 fi 11918else 11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present - using pre-generated interface files" >&5 11920$as_echo "not present - using pre-generated interface files" >&6; } 11921fi 11922 11923 11924 11925 11926languages= 11927languages_available= 11928 11929 11930 11931 11932# Check whether --with-lua was given. 11933if test "${with_lua+set}" = set; then : 11934 withval=$with_lua; with_lua="$withval" 11935else 11936 with_lua="no" 11937fi 11938 11939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Enable LUA API" >&5 11940$as_echo_n "checking Enable LUA API... " >&6; } 11941if test "X$with_lua" != Xno ; then 11942 if test "X$with_lua" != Xyes; then 11943 LUA=$with_lua 11944 fi 11945 with_lua=yes 11946fi 11947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua" >&5 11948$as_echo "$with_lua" >&6; } 11949 11950LUA_VERSION= 11951LUA_CFLAGS= 11952LUA_LDFLAGS= 11953if test "X$with_lua" = Xyes -a -n "$PKG_CONFIG"; then 11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA Version" >&5 11955$as_echo_n "checking LUA Version... " >&6; } 11956 LUA_PKGCONFIG=$LUA 11957 LUA_VERSION=`$PKG_CONFIG $LUA_PKGCONFIG --modversion` 11958 LUA_CFLAGS=`$PKG_CONFIG $LUA_PKGCONFIG --cflags` 11959 LUA_LDFLAGS=`$PKG_CONFIG $LUA_PKGCONFIG --libs` 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA_VERSION" >&5 11961$as_echo "$LUA_VERSION" >&6; } 11962fi 11963 11964 11965 11966if test "X$LUA_VERSION" != X; then 11967 languages_available="$languages_available lua($LUA_VERSION)" 11968 if test $with_lua = yes; then 11969 languages="$languages lua" 11970 fi 11971fi 11972 11973 11974# Extract the first word of "php-config", so it can be a program name with args. 11975set dummy php-config; ac_word=$2 11976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11977$as_echo_n "checking for $ac_word... " >&6; } 11978if ${ac_cv_prog_PHP_CONFIG+:} false; then : 11979 $as_echo_n "(cached) " >&6 11980else 11981 if test -n "$PHP_CONFIG"; then 11982 ac_cv_prog_PHP_CONFIG="$PHP_CONFIG" # Let the user override the test. 11983else 11984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11985for as_dir in $PATH 11986do 11987 IFS=$as_save_IFS 11988 test -z "$as_dir" && as_dir=. 11989 for ac_exec_ext in '' $ac_executable_extensions; do 11990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11991 ac_cv_prog_PHP_CONFIG="php-config" 11992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11993 break 2 11994 fi 11995done 11996 done 11997IFS=$as_save_IFS 11998 11999fi 12000fi 12001PHP_CONFIG=$ac_cv_prog_PHP_CONFIG 12002if test -n "$PHP_CONFIG"; then 12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CONFIG" >&5 12004$as_echo "$PHP_CONFIG" >&6; } 12005else 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12007$as_echo "no" >&6; } 12008fi 12009 12010 12011if test "X$PHP_CONFIG" != X ; then 12012 12013 PHP_VERSION=`$PHP_CONFIG --version` 12014 PHP_INCLUDES=`$PHP_CONFIG --includes` 12015 PHP_EXTENSION_DIR=`$PHP_CONFIG --extension-dir` 12016 12017 if test $PHP_VERSION '>' 5.0.0; then 12018 PHP_SWIG="-php5" 12019 else 12020 PHP_SWIG="-php4" 12021 fi 12022 12023 # Configure these if PHP_SO_SUFFIX is missing 12024 if test "X$PHP_SO_SUFFIX" = "X"; then 12025 # OSX/Darwin default is bundle 12026 if test `uname` = Darwin; then 12027 # FIXME - how to decide between bundle and dylib? 12028 php_linking=bundle 12029 else 12030 php_linking=so 12031 fi 12032 12033# Check whether --with-php-linking was given. 12034if test "${with_php_linking+set}" = set; then : 12035 withval=$with_php_linking; php_linking="$withval" 12036fi 12037 12038 case $php_linking in 12039 so) 12040 PHP_LDFLAGS="-shared" 12041 PHP_CFLAGS= 12042 ;; 12043 dylib) 12044 PHP_LDFLAGS="-flat_namespace -undefined suppress" 12045 PHP_CFLAGS="-fno-common" 12046 ;; 12047 bundle) 12048 PHP_LDFLAGS="-bundle -flat_namespace -undefined suppress" 12049 PHP_CFLAGS="-fno-common" 12050 ;; 12051 *) 12052 as_fn_error $? "No such PHP linking type $php_linking" "$LINENO" 5 12053 ;; 12054 esac 12055 PHP_SO_SUFFIX=$php_linking 12056 fi 12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PHP Linking" >&5 12058$as_echo_n "checking PHP Linking... " >&6; } 12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compile '$PHP_CFLAGS' link '$PHP_LDFLAGS' suffix $PHP_SO_SUFFIX" >&5 12060$as_echo "compile '$PHP_CFLAGS' link '$PHP_LDFLAGS' suffix $PHP_SO_SUFFIX" >&6; } 12061 12062else 12063 # This allows 'make clean' in the php directory to work when 12064 # php isn't available 12065 PHP=: 12066 PHP_SWIG= 12067 PHP_INCLUDES= 12068 PHP_EXTENSION_DIR= 12069 PHP_CFLAGS= 12070 PHP_LDFLAGS= 12071 PHP_SO_SUFFIX= 12072fi 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082# Check whether --with-perl was given. 12083if test "${with_perl+set}" = set; then : 12084 withval=$with_perl; with_perl="$withval" 12085else 12086 with_perl="no" 12087fi 12088 12089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Enable Perl API" >&5 12090$as_echo_n "checking Enable Perl API... " >&6; } 12091if test "X$with_perl" != Xno ; then 12092 if test "X$with_perl" != Xyes; then 12093 PERL=$with_perl 12094 fi 12095 with_perl=yes 12096fi 12097 12098PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}' 2>/dev/null` 12099if test "X$PERL_VERSION" != X; then 12100 languages_available="$languages_available perl($PERL_VERSION)" 12101 if test $with_perl = yes; then 12102 languages="$languages perl" 12103 fi 12104fi 12105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5 12106$as_echo "$with_perl" >&6; } 12107 12108 12109 12110# Check whether --with-perl-makemaker-args was given. 12111if test "${with_perl_makemaker_args+set}" = set; then : 12112 withval=$with_perl_makemaker_args; perl_makemaker_args="$withval" 12113else 12114 perl_makemaker_args="" 12115fi 12116 12117PERL_MAKEMAKER_ARGS="$perl_makemaker_args" 12118 12119 12120 12121 12122# Check whether --with-python was given. 12123if test "${with_python+set}" = set; then : 12124 withval=$with_python; with_python="$withval" 12125else 12126 with_python="no" 12127fi 12128 12129 12130# envariable override --with-python-ldflags and --with-libext 12131 12132 12133 12134 12135 12136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Enable Python API" >&5 12137$as_echo_n "checking Enable Python API... " >&6; } 12138if test "X$with_python" != Xno; then 12139 if test "X$with_python" != Xyes; then 12140 PYTHON=$with_python 12141 fi 12142 with_python=yes 12143fi 12144 12145PYTHON_VERSION=`$PYTHON -c 'import sys; print(sys.version[:3])' 2>/dev/null` 12146if test "X$PYTHON_VERSION" != X; then 12147 languages_available="$languages_available python($PYTHON_VERSION)" 12148 if test $with_python = yes; then 12149 languages="$languages python" 12150 fi 12151fi 12152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python $PYTHON_VERSION" >&5 12153$as_echo "$with_python $PYTHON_VERSION" >&6; } 12154 12155 12156if test "X$PYTHON" != X; then 12157 12158 if test "X$PYTHON_LDFLAGS" = X; then 12159 12160# Check whether --with-python_ldflags was given. 12161if test "${with_python_ldflags+set}" = set; then : 12162 withval=$with_python_ldflags; with_python_ldflags="$withval" 12163else 12164 with_python_ldflags="" 12165fi 12166 12167 if test "X$with_python_ldflags" != X; then 12168 PYTHON_LDFLAGS=$with_python_ldflags 12169 fi 12170 fi 12171 12172 if test "X$PYTHON_LIBEXT" = X; then 12173 python_default_libext=`$PYTHON -c 'from distutils import sysconfig; print(sysconfig.get_config_var("SO"))'` 12174 12175# Check whether --with-python-libext was given. 12176if test "${with_python_libext+set}" = set; then : 12177 withval=$with_python_libext; with_python_libext="$withval" 12178else 12179 with_python_libext=$python_default_libext 12180fi 12181 12182 if test "X$with_python_libext" != X; then 12183 PYTHON_LIBEXT=$with_python_libext 12184 fi 12185 fi 12186 12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python includes" >&5 12188$as_echo_n "checking Python includes... " >&6; } 12189 python_prefix=`$PYTHON -c 'import sys; print(sys.prefix)' 2>/dev/null` 12190 python_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"` 12191 12192 if test "X$PYTHON_INCLUDES" != X; then 12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using user includes: $PYTHON_INCLUDES" >&5 12194$as_echo "using user includes: $PYTHON_INCLUDES" >&6; } 12195 else 12196 python_includes=`$PYTHON -c 'from distutils import sysconfig; print(sysconfig.get_python_inc())'` 12197 PYTHON_INCLUDES="-I$python_includes" 12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCLUDES" >&5 12199$as_echo "$PYTHON_INCLUDES" >&6; } 12200 fi 12201 12202 12203# Check whether --with-python-get-python-lib-args was given. 12204if test "${with_python_get_python_lib_args+set}" = set; then : 12205 withval=$with_python_get_python_lib_args; get_python_lib_args="$withval" 12206else 12207 get_python_lib_args="" 12208fi 12209 12210 12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python libs" >&5 12212$as_echo_n "checking Python libs... " >&6; } 12213 if test "X$PYTHON_LIB" != X; then 12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using user lib: $PYTHON_LIB" >&5 12215$as_echo "using user lib: $PYTHON_LIB" >&6; } 12216 else 12217 PYTHON_LIB=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib($get_python_lib_args))"` 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LIB" >&5 12219$as_echo "$PYTHON_LIB" >&6; } 12220 fi 12221 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python LDFLAGS" >&5 12223$as_echo_n "checking Python LDFLAGS... " >&6; } 12224 if test "X$PYTHON_LDFLAGS" != X; then 12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using user ldflags: $PYTHON_LDFLAGS" >&5 12226$as_echo "using user ldflags: $PYTHON_LDFLAGS" >&6; } 12227 else 12228 # Guess PYTHON_LDFLAGS if not passed in 12229 if test `uname` = Darwin; then 12230 PYTHON_LDFLAGS="-Wl,-F. -Wl,-F. -bundle" 12231 if echo $python_prefix | grep Frameworks >/dev/null; then 12232 fpath=`echo $python_prefix | sed -e 's,Frameworks/.*$,Frameworks,'` 12233 PYTHON_LDFLAGS="$PYTHON_LDFLAGS -F$fpath -framework Python" 12234 fi 12235 else 12236 PYTHON_LDFLAGS="-shared" 12237 fi 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: guessed flags: $PYTHON_LDFLAGS" >&5 12239$as_echo "guessed flags: $PYTHON_LDFLAGS" >&6; } 12240 fi 12241 12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python shared library file extension" >&5 12243$as_echo_n "checking Python shared library file extension... " >&6; } 12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LIBEXT" >&5 12245$as_echo "$PYTHON_LIBEXT" >&6; } 12246else 12247 # This allows 'make clean' in the python directory to work when 12248 # python isn't available 12249 PYTHON=: 12250fi 12251 12252 12253 12254# Check whether --with-ruby-arch-install-dir-variable was given. 12255if test "${with_ruby_arch_install_dir_variable+set}" = set; then : 12256 withval=$with_ruby_arch_install_dir_variable; ruby_arch_install_dir_variable="$withval" 12257else 12258 ruby_arch_install_dir_variable="archdir" 12259fi 12260 12261 12262 12263# Check whether --with-ruby-arch-install-dir was given. 12264if test "${with_ruby_arch_install_dir+set}" = set; then : 12265 withval=$with_ruby_arch_install_dir; ruby_arch_install_dir="$withval" 12266else 12267 ruby_arch_install_dir="auto" 12268fi 12269 12270 12271 12272# Check whether --with-ruby-install-dir-variable was given. 12273if test "${with_ruby_install_dir_variable+set}" = set; then : 12274 withval=$with_ruby_install_dir_variable; ruby_install_dir_variable="$withval" 12275else 12276 ruby_install_dir_variable="rubylibdir" 12277fi 12278 12279 12280 12281# Check whether --with-ruby-install-dir was given. 12282if test "${with_ruby_install_dir+set}" = set; then : 12283 withval=$with_ruby_install_dir; ruby_install_dir="$withval" 12284else 12285 ruby_install_dir="auto" 12286fi 12287 12288 12289RUBY_PACKAGE=redland 12290RUBY_CFLAGS= 12291RUBY_LDFLAGS= 12292RUBY_INCLUDES= 12293RUBY_SO_SUFFIX= 12294RUBY_INSTALLDIR= 12295RUBY_ARCH_INSTALLDIR= 12296if test "X$RUBY" != X; then 12297 RUBY_ARCHDIR=`$RUBY -rrbconfig -e "print RbConfig::CONFIG['archdir']"` 12298 ruby_install_dir_config=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['$ruby_install_dir_variable']"` 12299 ruby_header_dir_config=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['rubyhdrdir']"` 12300 ruby_arch_config=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['arch']"` 12301 ruby_arch_header_dir_config=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['rubyarchhdrdir']"` 12302 ruby_arch_install_dir_config=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['$ruby_arch_install_dir_variable']"` 12303 librubyarg_shared=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG['LIBRUBYARG_SHARED']"` 12304 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby installation dir" >&5 12306$as_echo_n "checking Ruby installation dir... " >&6; } 12307 if test "X$ruby_install_dir" != "Xauto"; then 12308 RUBY_INSTALLDIR=$ruby_install_dir 12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_INSTALLDIR from user" >&5 12310$as_echo "$RUBY_INSTALLDIR from user" >&6; } 12311 else 12312 RUBY_INSTALLDIR=$ruby_install_dir_config 12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_INSTALLDIR from RbConfig::CONFIG $ruby_install_dir_variable" >&5 12314$as_echo "$RUBY_INSTALLDIR from RbConfig::CONFIG $ruby_install_dir_variable" >&6; } 12315 fi 12316 12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby arch installation dir" >&5 12318$as_echo_n "checking Ruby arch installation dir... " >&6; } 12319 if test "X$ruby_arch_install_dir" != "Xauto"; then 12320 RUBY_ARCH_INSTALLDIR=$ruby_arch_install_dir 12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_ARCH_INSTALLDIR from user" >&5 12322$as_echo "$RUBY_ARCH_INSTALLDIR from user" >&6; } 12323 else 12324 RUBY_ARCH_INSTALLDIR=$ruby_arch_install_dir_config 12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_ARCH_INSTALLDIR from RbConfig::CONFIG $ruby_arch_install_dir_variable" >&5 12326$as_echo "$RUBY_ARCH_INSTALLDIR from RbConfig::CONFIG $ruby_arch_install_dir_variable" >&6; } 12327 fi 12328 12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby headers dir" >&5 12330$as_echo_n "checking Ruby headers dir... " >&6; } 12331 if test "X$ruby_header_dir_config" != "Xnil" -a "X$ruby_header_dir_config" != "X"; then 12332 if test -d "$ruby_arch_header_dir_config"; then 12333 RUBY_INCLUDES="$RUBY_INCLUDES -I$ruby_header_dir_config -I$ruby_arch_header_dir_config" 12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_INCLUDES from RbConfig::CONFIG rubyhdrdir and rubyarchhdrdir" >&5 12335$as_echo "$RUBY_INCLUDES from RbConfig::CONFIG rubyhdrdir and rubyarchhdrdir" >&6; } 12336 elif test -d "$ruby_header_dir_config/$ruby_arch_config"; then 12337 RUBY_INCLUDES="$RUBY_INCLUDES -I$ruby_header_dir_config -I$ruby_header_dir_config/$ruby_arch_config" 12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_INCLUDES from RbConfig::CONFIG rubyhdrdir and arch" >&5 12339$as_echo "$RUBY_INCLUDES from RbConfig::CONFIG rubyhdrdir and arch" >&6; } 12340 fi 12341 else 12342 if test -r "$RUBY_ARCHDIR/ruby.h"; then 12343 RUBY_INCLUDES="$RUBY_INCLUDES -I$RUBY_ARCHDIR" 12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_INCLUDES from arch dir" >&5 12345$as_echo "$RUBY_INCLUDES from arch dir" >&6; } 12346 else 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ruby.h not found - unable to compile Redland ruby bindings" >&5 12348$as_echo "ruby.h not found - unable to compile Redland ruby bindings" >&6; } 12349 fi 12350 fi 12351 12352 # OSX/Darwin default is bundle 12353 if test `uname` = Darwin; then 12354 # FIXME - how to decide between bundle and dylib? 12355 ruby_linking=bundle 12356 else 12357 ruby_linking=so 12358 fi 12359 12360# Check whether --with-ruby-linking was given. 12361if test "${with_ruby_linking+set}" = set; then : 12362 withval=$with_ruby_linking; ruby_linking="$withval" 12363fi 12364 12365 case $ruby_linking in 12366 so) 12367 RUBY_LDFLAGS="$RUBY_LDFLAGS -shared $librubyarg_shared" 12368 ;; 12369 dylib) 12370 RUBY_LDFLAGS="$RUBY_LDFLAGS -flat_namespace -undefined suppress $librubyarg_shared" 12371 RUBY_CFLAGS="$RUBY_CFLAGS -fno-common" 12372 ;; 12373 bundle) 12374 RUBY_LDFLAGS="$RUBY_LDFLAGS -bundle -flat_namespace -undefined suppress $librubyarg_shared" 12375 RUBY_CFLAGS="$RUBY_CFLAGS -fno-common" 12376 ;; 12377 *) 12378 as_fn_error $? "No such RUBY linking type $ruby_linking" "$LINENO" 5 12379 ;; 12380 esac 12381 RUBY_SO_SUFFIX=$ruby_linking 12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby Linking" >&5 12383$as_echo_n "checking Ruby Linking... " >&6; } 12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compile '$RUBY_CFLAGS' link '$RUBY_LDFLAGS' suffix $RUBY_SO_SUFFIX" >&5 12385$as_echo "compile '$RUBY_CFLAGS' link '$RUBY_LDFLAGS' suffix $RUBY_SO_SUFFIX" >&6; } 12386else 12387 # This allows 'make clean' in the ruby directory to work when 12388 # ruby isn't available 12389 RUBY=: 12390fi 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401# Check whether --with-php was given. 12402if test "${with_php+set}" = set; then : 12403 withval=$with_php; with_php="$withval" 12404else 12405 with_php="no" 12406fi 12407 12408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Enable PHP API" >&5 12409$as_echo_n "checking Enable PHP API... " >&6; } 12410if test "X$with_php" != Xno ; then 12411 if test "X$with_php" != Xyes; then 12412 PHP=$with_php 12413 fi 12414 with_php=yes 12415fi 12416 12417PHP_VERSION=`php-config --version 2>/dev/null` 12418if test "X$PHP_VERSION" != X; then 12419 languages_available="$languages_available php($PHP_VERSION)" 12420 if test $with_php = yes; then 12421 languages="$languages php" 12422 fi 12423fi 12424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_php" >&5 12425$as_echo "$with_php" >&6; } 12426 12427 12428 12429 12430# Check whether --with-ruby was given. 12431if test "${with_ruby+set}" = set; then : 12432 withval=$with_ruby; with_ruby="$withval" 12433else 12434 with_ruby="no" 12435fi 12436 12437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Enable Ruby API" >&5 12438$as_echo_n "checking Enable Ruby API... " >&6; } 12439if test "X$with_ruby" != Xno ; then 12440 if test "X$with_ruby" != Xyes; then 12441 RUBY=$with_ruby 12442 fi 12443 with_ruby=yes 12444fi 12445 12446RUBY_VERSION=`$RUBY --version 2>/dev/null | $AWK '{print $2}'` 12447if test "X$RUBY_VERSION" != X; then 12448 languages_available="$languages_available ruby($RUBY_VERSION)" 12449 if test $with_ruby = yes; then 12450 languages="$languages ruby" 12451 fi 12452fi 12453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ruby" >&5 12454$as_echo "$with_ruby" >&6; } 12455 12456 12457 12458 12459 12460ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 12461 12462 12463AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 12464 12465 12466AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} 12467 12468 12469AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 12470 12471 12472 12473release_version=no 12474# Check whether --enable-release was given. 12475if test "${enable_release+set}" = set; then : 12476 enableval=$enable_release; \ 12477 if test "$enableval" = "yes"; then \ 12478 release_version=yes 12479fi; 12480fi 12481 12482 12483if test "$USE_MAINTAINER_MODE" = yes -a $release_version = no; then 12484 CFLAGS=`echo $CFLAGS | sed s/-O2//` 12485 CXXFLAGS=`echo $CXXFLAGS | sed s/-O2//` 12486 CPPFLAGS=`echo $CPPFLAGS | sed s/-O2//` 12487fi 12488 12489 12490 12491# if using gcc... 12492if test "$ac_cv_c_compiler_gnu" = yes; then 12493 STANDARD_CFLAGS= 12494 MAINTAINER_CFLAGS="-Wall -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls" 12495else 12496 STANDARD_CFLAGS= 12497 MAINTAINER_CFLAGS= 12498fi 12499 12500 12501# Externally linked libraries - appear in redland-config 12502# -Dfoo -Idir 12503LIBRDF_CPPFLAGS=$CPPFLAGS 12504# -Ldir -llib 12505LIBRDF_LDFLAGS="$LDFLAGS $LIBS" 12506 12507 12508 12509 12510# redland is REQUIRED 12511OUR_REDLAND_VERSION=`echo $PACKAGE_VERSION | sed -e 's,\.[0-9]$,,'` 12512OUR_REDLAND_VERSION_DEC=`echo $OUR_REDLAND_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'` 12513 12514REDLAND_VERSION= 12515 12516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for redland" >&5 12517$as_echo_n "checking for redland... " >&6; } 12518if $PKG_CONFIG --exists redland; then 12519 REDLAND_CONFIG="$PKG_CONFIG redland" 12520 REDLAND_VERSION=`$PKG_CONFIG redland --modversion` 12521 REDLAND_VERSION_DEC=`echo $REDLAND_VERSION | $AWK -F. '{printf("%d\n", 10000*$1 + 100*$2 + $3)};'` 12522 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REDLAND_VERSION" >&5 12524$as_echo "$REDLAND_VERSION" >&6; } 12525else 12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12527$as_echo "not found" >&6; } 12528 12529 as_fn_error $? "Redland is not installed - see http://librdf.org/ to get a version $OUR_REDLAND_VERSION or newer" "$LINENO" 5 12530fi 12531 12532 12533if $PKG_CONFIG --atleast-version=$MIN_REDLAND_VERSION redland; then 12534 : 12535else 12536 as_fn_error $? "Redland version $REDLAND_VERSION found. $MIN_REDLAND_VERSION or newer is required - see http://librdf.org/" "$LINENO" 5 12537fi 12538 12539 12540REDLAND_RUN= 12541 12542 12543 12544 12545 12546REDLAND_SWIG=`$PKG_CONFIG redland --variable=swig` 12547 12548 12549LIBRDF_CPPFLAGS="$LIBRDF_CPPFLAGS `$PKG_CONFIG redland --cflags`" 12550LIBRDF_LDFLAGS="$LIBRDF_LDFLAGS `$PKG_CONFIG redland --libs`" 12551 12552RAPTOR_LDFLAGS=`$PKG_CONFIG raptor2 --libs` 12553RASQAL_LDFLAGS=`$PKG_CONFIG rasqal --libs` 12554 12555 12556 12557SD="$languages" 12558 12559 12560 12561 12562# Make final changes to cflags 12563MEM= 12564MEM_LIBS= 12565 12566STANDARD_CFLAGS="$STANDARD_CFLAGS $CFLAGS" 12567if test "$USE_MAINTAINER_MODE" = yes; then 12568 CFLAGS="$MAINTAINER_CFLAGS $CFLAGS" 12569fi 12570 12571LIBS= 12572CPPFLAGS= 12573LDFLAGS= 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588abs_top_srcdir=`cd $srcdir; pwd` 12589 12590abs_top_builddir=`pwd` 12591 12592 12593ac_config_files="$ac_config_files Makefile bindings.rdf docs/Makefile perl/Makefile perl/t/Makefile perl/lib/Makefile perl/lib/RDF/Makefile perl/lib/RDF/Redland/Makefile lua/Makefile php/Makefile python/Makefile python/test/Makefile ruby/Makefile ruby/test/Makefile ruby/lib/Makefile ruby/lib/rdf/Makefile ruby/lib/rdf/redland/Makefile ruby/lib/rdf/redland/schemas/Makefile data/Makefile" 12594 12595ac_config_files="$ac_config_files redland-bindings.spec" 12596 12597ac_config_files="$ac_config_files perl/lib/RDF/Redland.pm" 12598 12599 12600cat >confcache <<\_ACEOF 12601# This file is a shell script that caches the results of configure 12602# tests run on this system so they can be shared between configure 12603# scripts and configure runs, see configure's option --config-cache. 12604# It is not useful on other systems. If it contains results you don't 12605# want to keep, you may remove or edit it. 12606# 12607# config.status only pays attention to the cache file if you give it 12608# the --recheck option to rerun configure. 12609# 12610# `ac_cv_env_foo' variables (set or unset) will be overridden when 12611# loading this file, other *unset* `ac_cv_foo' will be assigned the 12612# following values. 12613 12614_ACEOF 12615 12616# The following way of writing the cache mishandles newlines in values, 12617# but we know of no workaround that is simple, portable, and efficient. 12618# So, we kill variables containing newlines. 12619# Ultrix sh set writes to stderr and can't be redirected directly, 12620# and sets the high bit in the cache file unless we assign to the vars. 12621( 12622 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12623 eval ac_val=\$$ac_var 12624 case $ac_val in #( 12625 *${as_nl}*) 12626 case $ac_var in #( 12627 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12628$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12629 esac 12630 case $ac_var in #( 12631 _ | IFS | as_nl) ;; #( 12632 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12633 *) { eval $ac_var=; unset $ac_var;} ;; 12634 esac ;; 12635 esac 12636 done 12637 12638 (set) 2>&1 | 12639 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12640 *${as_nl}ac_space=\ *) 12641 # `set' does not quote correctly, so add quotes: double-quote 12642 # substitution turns \\\\ into \\, and sed turns \\ into \. 12643 sed -n \ 12644 "s/'/'\\\\''/g; 12645 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12646 ;; #( 12647 *) 12648 # `set' quotes correctly as required by POSIX, so do not add quotes. 12649 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12650 ;; 12651 esac | 12652 sort 12653) | 12654 sed ' 12655 /^ac_cv_env_/b end 12656 t clear 12657 :clear 12658 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12659 t end 12660 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12661 :end' >>confcache 12662if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12663 if test -w "$cache_file"; then 12664 if test "x$cache_file" != "x/dev/null"; then 12665 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12666$as_echo "$as_me: updating cache $cache_file" >&6;} 12667 if test ! -f "$cache_file" || test -h "$cache_file"; then 12668 cat confcache >"$cache_file" 12669 else 12670 case $cache_file in #( 12671 */* | ?:*) 12672 mv -f confcache "$cache_file"$$ && 12673 mv -f "$cache_file"$$ "$cache_file" ;; #( 12674 *) 12675 mv -f confcache "$cache_file" ;; 12676 esac 12677 fi 12678 fi 12679 else 12680 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12681$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12682 fi 12683fi 12684rm -f confcache 12685 12686test "x$prefix" = xNONE && prefix=$ac_default_prefix 12687# Let make expand exec_prefix. 12688test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12689 12690DEFS=-DHAVE_CONFIG_H 12691 12692ac_libobjs= 12693ac_ltlibobjs= 12694U= 12695for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12696 # 1. Remove the extension, and $U if already installed. 12697 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12698 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12699 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12700 # will be set to the directory where LIBOBJS objects are built. 12701 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12702 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12703done 12704LIBOBJS=$ac_libobjs 12705 12706LTLIBOBJS=$ac_ltlibobjs 12707 12708 12709 if test -n "$EXEEXT"; then 12710 am__EXEEXT_TRUE= 12711 am__EXEEXT_FALSE='#' 12712else 12713 am__EXEEXT_TRUE='#' 12714 am__EXEEXT_FALSE= 12715fi 12716 12717if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 12718 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 12719Usually this means the macro was only invoked conditionally." "$LINENO" 5 12720fi 12721if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12722 as_fn_error $? "conditional \"AMDEP\" was never defined. 12723Usually this means the macro was only invoked conditionally." "$LINENO" 5 12724fi 12725if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12726 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12727Usually this means the macro was only invoked conditionally." "$LINENO" 5 12728fi 12729 12730: "${CONFIG_STATUS=./config.status}" 12731ac_write_fail=0 12732ac_clean_files_save=$ac_clean_files 12733ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12734{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12735$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12736as_write_fail=0 12737cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12738#! $SHELL 12739# Generated by $as_me. 12740# Run this file to recreate the current configuration. 12741# Compiler output produced by configure, useful for debugging 12742# configure, is in config.log if it exists. 12743 12744debug=false 12745ac_cs_recheck=false 12746ac_cs_silent=false 12747 12748SHELL=\${CONFIG_SHELL-$SHELL} 12749export SHELL 12750_ASEOF 12751cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12752## -------------------- ## 12753## M4sh Initialization. ## 12754## -------------------- ## 12755 12756# Be more Bourne compatible 12757DUALCASE=1; export DUALCASE # for MKS sh 12758if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12759 emulate sh 12760 NULLCMD=: 12761 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12762 # is contrary to our usage. Disable this feature. 12763 alias -g '${1+"$@"}'='"$@"' 12764 setopt NO_GLOB_SUBST 12765else 12766 case `(set -o) 2>/dev/null` in #( 12767 *posix*) : 12768 set -o posix ;; #( 12769 *) : 12770 ;; 12771esac 12772fi 12773 12774 12775as_nl=' 12776' 12777export as_nl 12778# Printing a long string crashes Solaris 7 /usr/bin/printf. 12779as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12780as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12781as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12782# Prefer a ksh shell builtin over an external printf program on Solaris, 12783# but without wasting forks for bash or zsh. 12784if test -z "$BASH_VERSION$ZSH_VERSION" \ 12785 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12786 as_echo='print -r --' 12787 as_echo_n='print -rn --' 12788elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12789 as_echo='printf %s\n' 12790 as_echo_n='printf %s' 12791else 12792 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12793 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12794 as_echo_n='/usr/ucb/echo -n' 12795 else 12796 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12797 as_echo_n_body='eval 12798 arg=$1; 12799 case $arg in #( 12800 *"$as_nl"*) 12801 expr "X$arg" : "X\\(.*\\)$as_nl"; 12802 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12803 esac; 12804 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12805 ' 12806 export as_echo_n_body 12807 as_echo_n='sh -c $as_echo_n_body as_echo' 12808 fi 12809 export as_echo_body 12810 as_echo='sh -c $as_echo_body as_echo' 12811fi 12812 12813# The user is always right. 12814if test "${PATH_SEPARATOR+set}" != set; then 12815 PATH_SEPARATOR=: 12816 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12817 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12818 PATH_SEPARATOR=';' 12819 } 12820fi 12821 12822 12823# IFS 12824# We need space, tab and new line, in precisely that order. Quoting is 12825# there to prevent editors from complaining about space-tab. 12826# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12827# splitting by setting IFS to empty value.) 12828IFS=" "" $as_nl" 12829 12830# Find who we are. Look in the path if we contain no directory separator. 12831as_myself= 12832case $0 in #(( 12833 *[\\/]* ) as_myself=$0 ;; 12834 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12835for as_dir in $PATH 12836do 12837 IFS=$as_save_IFS 12838 test -z "$as_dir" && as_dir=. 12839 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12840 done 12841IFS=$as_save_IFS 12842 12843 ;; 12844esac 12845# We did not find ourselves, most probably we were run as `sh COMMAND' 12846# in which case we are not to be found in the path. 12847if test "x$as_myself" = x; then 12848 as_myself=$0 12849fi 12850if test ! -f "$as_myself"; then 12851 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12852 exit 1 12853fi 12854 12855# Unset variables that we do not need and which cause bugs (e.g. in 12856# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12857# suppresses any "Segmentation fault" message there. '((' could 12858# trigger a bug in pdksh 5.2.14. 12859for as_var in BASH_ENV ENV MAIL MAILPATH 12860do eval test x\${$as_var+set} = xset \ 12861 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12862done 12863PS1='$ ' 12864PS2='> ' 12865PS4='+ ' 12866 12867# NLS nuisances. 12868LC_ALL=C 12869export LC_ALL 12870LANGUAGE=C 12871export LANGUAGE 12872 12873# CDPATH. 12874(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12875 12876 12877# as_fn_error STATUS ERROR [LINENO LOG_FD] 12878# ---------------------------------------- 12879# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12880# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12881# script with STATUS, using 1 if that was 0. 12882as_fn_error () 12883{ 12884 as_status=$1; test $as_status -eq 0 && as_status=1 12885 if test "$4"; then 12886 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12887 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12888 fi 12889 $as_echo "$as_me: error: $2" >&2 12890 as_fn_exit $as_status 12891} # as_fn_error 12892 12893 12894# as_fn_set_status STATUS 12895# ----------------------- 12896# Set $? to STATUS, without forking. 12897as_fn_set_status () 12898{ 12899 return $1 12900} # as_fn_set_status 12901 12902# as_fn_exit STATUS 12903# ----------------- 12904# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12905as_fn_exit () 12906{ 12907 set +e 12908 as_fn_set_status $1 12909 exit $1 12910} # as_fn_exit 12911 12912# as_fn_unset VAR 12913# --------------- 12914# Portably unset VAR. 12915as_fn_unset () 12916{ 12917 { eval $1=; unset $1;} 12918} 12919as_unset=as_fn_unset 12920# as_fn_append VAR VALUE 12921# ---------------------- 12922# Append the text in VALUE to the end of the definition contained in VAR. Take 12923# advantage of any shell optimizations that allow amortized linear growth over 12924# repeated appends, instead of the typical quadratic growth present in naive 12925# implementations. 12926if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12927 eval 'as_fn_append () 12928 { 12929 eval $1+=\$2 12930 }' 12931else 12932 as_fn_append () 12933 { 12934 eval $1=\$$1\$2 12935 } 12936fi # as_fn_append 12937 12938# as_fn_arith ARG... 12939# ------------------ 12940# Perform arithmetic evaluation on the ARGs, and store the result in the 12941# global $as_val. Take advantage of shells that can avoid forks. The arguments 12942# must be portable across $(()) and expr. 12943if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12944 eval 'as_fn_arith () 12945 { 12946 as_val=$(( $* )) 12947 }' 12948else 12949 as_fn_arith () 12950 { 12951 as_val=`expr "$@" || test $? -eq 1` 12952 } 12953fi # as_fn_arith 12954 12955 12956if expr a : '\(a\)' >/dev/null 2>&1 && 12957 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12958 as_expr=expr 12959else 12960 as_expr=false 12961fi 12962 12963if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12964 as_basename=basename 12965else 12966 as_basename=false 12967fi 12968 12969if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12970 as_dirname=dirname 12971else 12972 as_dirname=false 12973fi 12974 12975as_me=`$as_basename -- "$0" || 12976$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12977 X"$0" : 'X\(//\)$' \| \ 12978 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12979$as_echo X/"$0" | 12980 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12981 s//\1/ 12982 q 12983 } 12984 /^X\/\(\/\/\)$/{ 12985 s//\1/ 12986 q 12987 } 12988 /^X\/\(\/\).*/{ 12989 s//\1/ 12990 q 12991 } 12992 s/.*/./; q'` 12993 12994# Avoid depending upon Character Ranges. 12995as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12996as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12997as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12998as_cr_digits='0123456789' 12999as_cr_alnum=$as_cr_Letters$as_cr_digits 13000 13001ECHO_C= ECHO_N= ECHO_T= 13002case `echo -n x` in #((((( 13003-n*) 13004 case `echo 'xy\c'` in 13005 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13006 xy) ECHO_C='\c';; 13007 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13008 ECHO_T=' ';; 13009 esac;; 13010*) 13011 ECHO_N='-n';; 13012esac 13013 13014rm -f conf$$ conf$$.exe conf$$.file 13015if test -d conf$$.dir; then 13016 rm -f conf$$.dir/conf$$.file 13017else 13018 rm -f conf$$.dir 13019 mkdir conf$$.dir 2>/dev/null 13020fi 13021if (echo >conf$$.file) 2>/dev/null; then 13022 if ln -s conf$$.file conf$$ 2>/dev/null; then 13023 as_ln_s='ln -s' 13024 # ... but there are two gotchas: 13025 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13026 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13027 # In both cases, we have to default to `cp -pR'. 13028 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13029 as_ln_s='cp -pR' 13030 elif ln conf$$.file conf$$ 2>/dev/null; then 13031 as_ln_s=ln 13032 else 13033 as_ln_s='cp -pR' 13034 fi 13035else 13036 as_ln_s='cp -pR' 13037fi 13038rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13039rmdir conf$$.dir 2>/dev/null 13040 13041 13042# as_fn_mkdir_p 13043# ------------- 13044# Create "$as_dir" as a directory, including parents if necessary. 13045as_fn_mkdir_p () 13046{ 13047 13048 case $as_dir in #( 13049 -*) as_dir=./$as_dir;; 13050 esac 13051 test -d "$as_dir" || eval $as_mkdir_p || { 13052 as_dirs= 13053 while :; do 13054 case $as_dir in #( 13055 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13056 *) as_qdir=$as_dir;; 13057 esac 13058 as_dirs="'$as_qdir' $as_dirs" 13059 as_dir=`$as_dirname -- "$as_dir" || 13060$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13061 X"$as_dir" : 'X\(//\)[^/]' \| \ 13062 X"$as_dir" : 'X\(//\)$' \| \ 13063 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13064$as_echo X"$as_dir" | 13065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13066 s//\1/ 13067 q 13068 } 13069 /^X\(\/\/\)[^/].*/{ 13070 s//\1/ 13071 q 13072 } 13073 /^X\(\/\/\)$/{ 13074 s//\1/ 13075 q 13076 } 13077 /^X\(\/\).*/{ 13078 s//\1/ 13079 q 13080 } 13081 s/.*/./; q'` 13082 test -d "$as_dir" && break 13083 done 13084 test -z "$as_dirs" || eval "mkdir $as_dirs" 13085 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13086 13087 13088} # as_fn_mkdir_p 13089if mkdir -p . 2>/dev/null; then 13090 as_mkdir_p='mkdir -p "$as_dir"' 13091else 13092 test -d ./-p && rmdir ./-p 13093 as_mkdir_p=false 13094fi 13095 13096 13097# as_fn_executable_p FILE 13098# ----------------------- 13099# Test if FILE is an executable regular file. 13100as_fn_executable_p () 13101{ 13102 test -f "$1" && test -x "$1" 13103} # as_fn_executable_p 13104as_test_x='test -x' 13105as_executable_p=as_fn_executable_p 13106 13107# Sed expression to map a string onto a valid CPP name. 13108as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13109 13110# Sed expression to map a string onto a valid variable name. 13111as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13112 13113 13114exec 6>&1 13115## ----------------------------------- ## 13116## Main body of $CONFIG_STATUS script. ## 13117## ----------------------------------- ## 13118_ASEOF 13119test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13120 13121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13122# Save the log message, to keep $0 and so on meaningful, and to 13123# report actual input values of CONFIG_FILES etc. instead of their 13124# values after options handling. 13125ac_log=" 13126This file was extended by Redland librdf Language bindings $as_me 1.0.17.1, which was 13127generated by GNU Autoconf 2.69. Invocation command line was 13128 13129 CONFIG_FILES = $CONFIG_FILES 13130 CONFIG_HEADERS = $CONFIG_HEADERS 13131 CONFIG_LINKS = $CONFIG_LINKS 13132 CONFIG_COMMANDS = $CONFIG_COMMANDS 13133 $ $0 $@ 13134 13135on `(hostname || uname -n) 2>/dev/null | sed 1q` 13136" 13137 13138_ACEOF 13139 13140case $ac_config_files in *" 13141"*) set x $ac_config_files; shift; ac_config_files=$*;; 13142esac 13143 13144case $ac_config_headers in *" 13145"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13146esac 13147 13148 13149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13150# Files that config.status was made for. 13151config_files="$ac_config_files" 13152config_headers="$ac_config_headers" 13153config_commands="$ac_config_commands" 13154 13155_ACEOF 13156 13157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13158ac_cs_usage="\ 13159\`$as_me' instantiates files and other configuration actions 13160from templates according to the current configuration. Unless the files 13161and actions are specified as TAGs, all are instantiated by default. 13162 13163Usage: $0 [OPTION]... [TAG]... 13164 13165 -h, --help print this help, then exit 13166 -V, --version print version number and configuration settings, then exit 13167 --config print configuration, then exit 13168 -q, --quiet, --silent 13169 do not print progress messages 13170 -d, --debug don't remove temporary files 13171 --recheck update $as_me by reconfiguring in the same conditions 13172 --file=FILE[:TEMPLATE] 13173 instantiate the configuration file FILE 13174 --header=FILE[:TEMPLATE] 13175 instantiate the configuration header FILE 13176 13177Configuration files: 13178$config_files 13179 13180Configuration headers: 13181$config_headers 13182 13183Configuration commands: 13184$config_commands 13185 13186Report bugs to <http://bugs.librdf.org/>." 13187 13188_ACEOF 13189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13190ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13191ac_cs_version="\\ 13192Redland librdf Language bindings config.status 1.0.17.1 13193configured by $0, generated by GNU Autoconf 2.69, 13194 with options \\"\$ac_cs_config\\" 13195 13196Copyright (C) 2012 Free Software Foundation, Inc. 13197This config.status script is free software; the Free Software Foundation 13198gives unlimited permission to copy, distribute and modify it." 13199 13200ac_pwd='$ac_pwd' 13201srcdir='$srcdir' 13202INSTALL='$INSTALL' 13203MKDIR_P='$MKDIR_P' 13204AWK='$AWK' 13205test -n "\$AWK" || AWK=awk 13206_ACEOF 13207 13208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13209# The default lists apply if the user does not specify any file. 13210ac_need_defaults=: 13211while test $# != 0 13212do 13213 case $1 in 13214 --*=?*) 13215 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13216 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13217 ac_shift=: 13218 ;; 13219 --*=) 13220 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13221 ac_optarg= 13222 ac_shift=: 13223 ;; 13224 *) 13225 ac_option=$1 13226 ac_optarg=$2 13227 ac_shift=shift 13228 ;; 13229 esac 13230 13231 case $ac_option in 13232 # Handling of the options. 13233 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13234 ac_cs_recheck=: ;; 13235 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13236 $as_echo "$ac_cs_version"; exit ;; 13237 --config | --confi | --conf | --con | --co | --c ) 13238 $as_echo "$ac_cs_config"; exit ;; 13239 --debug | --debu | --deb | --de | --d | -d ) 13240 debug=: ;; 13241 --file | --fil | --fi | --f ) 13242 $ac_shift 13243 case $ac_optarg in 13244 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13245 '') as_fn_error $? "missing file argument" ;; 13246 esac 13247 as_fn_append CONFIG_FILES " '$ac_optarg'" 13248 ac_need_defaults=false;; 13249 --header | --heade | --head | --hea ) 13250 $ac_shift 13251 case $ac_optarg in 13252 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13253 esac 13254 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13255 ac_need_defaults=false;; 13256 --he | --h) 13257 # Conflict between --help and --header 13258 as_fn_error $? "ambiguous option: \`$1' 13259Try \`$0 --help' for more information.";; 13260 --help | --hel | -h ) 13261 $as_echo "$ac_cs_usage"; exit ;; 13262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13263 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13264 ac_cs_silent=: ;; 13265 13266 # This is an error. 13267 -*) as_fn_error $? "unrecognized option: \`$1' 13268Try \`$0 --help' for more information." ;; 13269 13270 *) as_fn_append ac_config_targets " $1" 13271 ac_need_defaults=false ;; 13272 13273 esac 13274 shift 13275done 13276 13277ac_configure_extra_args= 13278 13279if $ac_cs_silent; then 13280 exec 6>/dev/null 13281 ac_configure_extra_args="$ac_configure_extra_args --silent" 13282fi 13283 13284_ACEOF 13285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13286if \$ac_cs_recheck; then 13287 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13288 shift 13289 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13290 CONFIG_SHELL='$SHELL' 13291 export CONFIG_SHELL 13292 exec "\$@" 13293fi 13294 13295_ACEOF 13296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13297exec 5>>config.log 13298{ 13299 echo 13300 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13301## Running $as_me. ## 13302_ASBOX 13303 $as_echo "$ac_log" 13304} >&5 13305 13306_ACEOF 13307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13308# 13309# INIT-COMMANDS 13310# 13311AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13312 13313 13314# The HP-UX ksh and POSIX shell print the target directory to stdout 13315# if CDPATH is set. 13316(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13317 13318sed_quote_subst='$sed_quote_subst' 13319double_quote_subst='$double_quote_subst' 13320delay_variable_subst='$delay_variable_subst' 13321macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13322macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13323enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13324enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13325pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13326enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13327SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13328ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13329PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13330host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13331host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13332host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13333build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13334build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13335build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13336SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13337Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13338GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13339EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13340FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13341LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13342NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13343LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13344max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13345ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13346exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13347lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13348lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13349lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13350lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13351lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13352reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13353reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13354OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13355deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13356file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13357file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13358want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13359DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13360sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13361AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13362AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13363archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13364STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13365RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13366old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13367old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13368old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13369lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13370CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13371CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13372compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13373GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13374lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13375lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13376lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13377lt_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"`' 13378nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13379lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13380objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13381MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13382lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13383lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13384lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13385lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13386lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13387need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13388MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13389DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13390NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13391LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13392OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13393OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13394libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13395shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13396extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13397archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13398enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13399export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13400whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13401compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13402old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13403old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13404archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13405archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13406module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13407module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13408with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13409allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13410no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13411hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13412hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13413hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13414hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13415hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13416hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13417hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13418inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13419link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13420always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13421export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13422exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13423include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13424prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13425postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13426file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13427variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13428need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13429need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13430version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13431runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13432shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13433shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13434libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13435library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13436soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13437install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13438postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13439postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13440finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13441finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13442hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13443sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13444sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 13445hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13446enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13447enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13448enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13449old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13450striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13451 13452LTCC='$LTCC' 13453LTCFLAGS='$LTCFLAGS' 13454compiler='$compiler_DEFAULT' 13455 13456# A function that is used when there is no print builtin or printf. 13457func_fallback_echo () 13458{ 13459 eval 'cat <<_LTECHO_EOF 13460\$1 13461_LTECHO_EOF' 13462} 13463 13464# Quote evaled strings. 13465for var in SHELL \ 13466ECHO \ 13467PATH_SEPARATOR \ 13468SED \ 13469GREP \ 13470EGREP \ 13471FGREP \ 13472LD \ 13473NM \ 13474LN_S \ 13475lt_SP2NL \ 13476lt_NL2SP \ 13477reload_flag \ 13478OBJDUMP \ 13479deplibs_check_method \ 13480file_magic_cmd \ 13481file_magic_glob \ 13482want_nocaseglob \ 13483DLLTOOL \ 13484sharedlib_from_linklib_cmd \ 13485AR \ 13486AR_FLAGS \ 13487archiver_list_spec \ 13488STRIP \ 13489RANLIB \ 13490CC \ 13491CFLAGS \ 13492compiler \ 13493lt_cv_sys_global_symbol_pipe \ 13494lt_cv_sys_global_symbol_to_cdecl \ 13495lt_cv_sys_global_symbol_to_c_name_address \ 13496lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13497nm_file_list_spec \ 13498lt_prog_compiler_no_builtin_flag \ 13499lt_prog_compiler_pic \ 13500lt_prog_compiler_wl \ 13501lt_prog_compiler_static \ 13502lt_cv_prog_compiler_c_o \ 13503need_locks \ 13504MANIFEST_TOOL \ 13505DSYMUTIL \ 13506NMEDIT \ 13507LIPO \ 13508OTOOL \ 13509OTOOL64 \ 13510shrext_cmds \ 13511export_dynamic_flag_spec \ 13512whole_archive_flag_spec \ 13513compiler_needs_object \ 13514with_gnu_ld \ 13515allow_undefined_flag \ 13516no_undefined_flag \ 13517hardcode_libdir_flag_spec \ 13518hardcode_libdir_separator \ 13519exclude_expsyms \ 13520include_expsyms \ 13521file_list_spec \ 13522variables_saved_for_relink \ 13523libname_spec \ 13524library_names_spec \ 13525soname_spec \ 13526install_override_mode \ 13527finish_eval \ 13528old_striplib \ 13529striplib; do 13530 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13531 *[\\\\\\\`\\"\\\$]*) 13532 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13533 ;; 13534 *) 13535 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13536 ;; 13537 esac 13538done 13539 13540# Double-quote double-evaled strings. 13541for var in reload_cmds \ 13542old_postinstall_cmds \ 13543old_postuninstall_cmds \ 13544old_archive_cmds \ 13545extract_expsyms_cmds \ 13546old_archive_from_new_cmds \ 13547old_archive_from_expsyms_cmds \ 13548archive_cmds \ 13549archive_expsym_cmds \ 13550module_cmds \ 13551module_expsym_cmds \ 13552export_symbols_cmds \ 13553prelink_cmds \ 13554postlink_cmds \ 13555postinstall_cmds \ 13556postuninstall_cmds \ 13557finish_cmds \ 13558sys_lib_search_path_spec \ 13559sys_lib_dlsearch_path_spec; do 13560 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13561 *[\\\\\\\`\\"\\\$]*) 13562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13563 ;; 13564 *) 13565 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13566 ;; 13567 esac 13568done 13569 13570ac_aux_dir='$ac_aux_dir' 13571xsi_shell='$xsi_shell' 13572lt_shell_append='$lt_shell_append' 13573 13574# See if we are running on zsh, and set the options which allow our 13575# commands through without removal of \ escapes INIT. 13576if test -n "\${ZSH_VERSION+set}" ; then 13577 setopt NO_GLOB_SUBST 13578fi 13579 13580 13581 PACKAGE='$PACKAGE' 13582 VERSION='$VERSION' 13583 TIMESTAMP='$TIMESTAMP' 13584 RM='$RM' 13585 ofile='$ofile' 13586 13587 13588 13589 13590_ACEOF 13591 13592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13593 13594# Handling of arguments. 13595for ac_config_target in $ac_config_targets 13596do 13597 case $ac_config_target in 13598 "bindings_config.h") CONFIG_HEADERS="$CONFIG_HEADERS bindings_config.h" ;; 13599 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13600 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13601 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13602 "bindings.rdf") CONFIG_FILES="$CONFIG_FILES bindings.rdf" ;; 13603 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 13604 "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;; 13605 "perl/t/Makefile") CONFIG_FILES="$CONFIG_FILES perl/t/Makefile" ;; 13606 "perl/lib/Makefile") CONFIG_FILES="$CONFIG_FILES perl/lib/Makefile" ;; 13607 "perl/lib/RDF/Makefile") CONFIG_FILES="$CONFIG_FILES perl/lib/RDF/Makefile" ;; 13608 "perl/lib/RDF/Redland/Makefile") CONFIG_FILES="$CONFIG_FILES perl/lib/RDF/Redland/Makefile" ;; 13609 "lua/Makefile") CONFIG_FILES="$CONFIG_FILES lua/Makefile" ;; 13610 "php/Makefile") CONFIG_FILES="$CONFIG_FILES php/Makefile" ;; 13611 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; 13612 "python/test/Makefile") CONFIG_FILES="$CONFIG_FILES python/test/Makefile" ;; 13613 "ruby/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/Makefile" ;; 13614 "ruby/test/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/test/Makefile" ;; 13615 "ruby/lib/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/lib/Makefile" ;; 13616 "ruby/lib/rdf/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/lib/rdf/Makefile" ;; 13617 "ruby/lib/rdf/redland/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/lib/rdf/redland/Makefile" ;; 13618 "ruby/lib/rdf/redland/schemas/Makefile") CONFIG_FILES="$CONFIG_FILES ruby/lib/rdf/redland/schemas/Makefile" ;; 13619 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; 13620 "redland-bindings.spec") CONFIG_FILES="$CONFIG_FILES redland-bindings.spec" ;; 13621 "perl/lib/RDF/Redland.pm") CONFIG_FILES="$CONFIG_FILES perl/lib/RDF/Redland.pm" ;; 13622 13623 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13624 esac 13625done 13626 13627 13628# If the user did not use the arguments to specify the items to instantiate, 13629# then the envvar interface is used. Set only those that are not. 13630# We use the long form for the default assignment because of an extremely 13631# bizarre bug on SunOS 4.1.3. 13632if $ac_need_defaults; then 13633 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13634 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13635 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13636fi 13637 13638# Have a temporary directory for convenience. Make it in the build tree 13639# simply because there is no reason against having it here, and in addition, 13640# creating and moving files from /tmp can sometimes cause problems. 13641# Hook for its removal unless debugging. 13642# Note that there is a small window in which the directory will not be cleaned: 13643# after its creation but before its name has been assigned to `$tmp'. 13644$debug || 13645{ 13646 tmp= ac_tmp= 13647 trap 'exit_status=$? 13648 : "${ac_tmp:=$tmp}" 13649 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13650' 0 13651 trap 'as_fn_exit 1' 1 2 13 15 13652} 13653# Create a (secure) tmp directory for tmp files. 13654 13655{ 13656 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13657 test -d "$tmp" 13658} || 13659{ 13660 tmp=./conf$$-$RANDOM 13661 (umask 077 && mkdir "$tmp") 13662} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13663ac_tmp=$tmp 13664 13665# Set up the scripts for CONFIG_FILES section. 13666# No need to generate them if there are no CONFIG_FILES. 13667# This happens for instance with `./config.status config.h'. 13668if test -n "$CONFIG_FILES"; then 13669 13670 13671ac_cr=`echo X | tr X '\015'` 13672# On cygwin, bash can eat \r inside `` if the user requested igncr. 13673# But we know of no other shell where ac_cr would be empty at this 13674# point, so we can use a bashism as a fallback. 13675if test "x$ac_cr" = x; then 13676 eval ac_cr=\$\'\\r\' 13677fi 13678ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13679if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13680 ac_cs_awk_cr='\\r' 13681else 13682 ac_cs_awk_cr=$ac_cr 13683fi 13684 13685echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13686_ACEOF 13687 13688 13689{ 13690 echo "cat >conf$$subs.awk <<_ACEOF" && 13691 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13692 echo "_ACEOF" 13693} >conf$$subs.sh || 13694 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13695ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13696ac_delim='%!_!# ' 13697for ac_last_try in false false false false false :; do 13698 . ./conf$$subs.sh || 13699 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13700 13701 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13702 if test $ac_delim_n = $ac_delim_num; then 13703 break 13704 elif $ac_last_try; then 13705 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13706 else 13707 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13708 fi 13709done 13710rm -f conf$$subs.sh 13711 13712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13713cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13714_ACEOF 13715sed -n ' 13716h 13717s/^/S["/; s/!.*/"]=/ 13718p 13719g 13720s/^[^!]*!// 13721:repl 13722t repl 13723s/'"$ac_delim"'$// 13724t delim 13725:nl 13726h 13727s/\(.\{148\}\)..*/\1/ 13728t more1 13729s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13730p 13731n 13732b repl 13733:more1 13734s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13735p 13736g 13737s/.\{148\}// 13738t nl 13739:delim 13740h 13741s/\(.\{148\}\)..*/\1/ 13742t more2 13743s/["\\]/\\&/g; s/^/"/; s/$/"/ 13744p 13745b 13746:more2 13747s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13748p 13749g 13750s/.\{148\}// 13751t delim 13752' <conf$$subs.awk | sed ' 13753/^[^""]/{ 13754 N 13755 s/\n// 13756} 13757' >>$CONFIG_STATUS || ac_write_fail=1 13758rm -f conf$$subs.awk 13759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13760_ACAWK 13761cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13762 for (key in S) S_is_set[key] = 1 13763 FS = "" 13764 13765} 13766{ 13767 line = $ 0 13768 nfields = split(line, field, "@") 13769 substed = 0 13770 len = length(field[1]) 13771 for (i = 2; i < nfields; i++) { 13772 key = field[i] 13773 keylen = length(key) 13774 if (S_is_set[key]) { 13775 value = S[key] 13776 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13777 len += length(value) + length(field[++i]) 13778 substed = 1 13779 } else 13780 len += 1 + keylen 13781 } 13782 13783 print line 13784} 13785 13786_ACAWK 13787_ACEOF 13788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13789if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13790 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13791else 13792 cat 13793fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13794 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13795_ACEOF 13796 13797# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13798# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13799# trailing colons and then remove the whole line if VPATH becomes empty 13800# (actually we leave an empty line to preserve line numbers). 13801if test "x$srcdir" = x.; then 13802 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13803h 13804s/// 13805s/^/:/ 13806s/[ ]*$/:/ 13807s/:\$(srcdir):/:/g 13808s/:\${srcdir}:/:/g 13809s/:@srcdir@:/:/g 13810s/^:*// 13811s/:*$// 13812x 13813s/\(=[ ]*\).*/\1/ 13814G 13815s/\n// 13816s/^[^=]*=[ ]*$// 13817}' 13818fi 13819 13820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13821fi # test -n "$CONFIG_FILES" 13822 13823# Set up the scripts for CONFIG_HEADERS section. 13824# No need to generate them if there are no CONFIG_HEADERS. 13825# This happens for instance with `./config.status Makefile'. 13826if test -n "$CONFIG_HEADERS"; then 13827cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13828BEGIN { 13829_ACEOF 13830 13831# Transform confdefs.h into an awk script `defines.awk', embedded as 13832# here-document in config.status, that substitutes the proper values into 13833# config.h.in to produce config.h. 13834 13835# Create a delimiter string that does not exist in confdefs.h, to ease 13836# handling of long lines. 13837ac_delim='%!_!# ' 13838for ac_last_try in false false :; do 13839 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13840 if test -z "$ac_tt"; then 13841 break 13842 elif $ac_last_try; then 13843 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13844 else 13845 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13846 fi 13847done 13848 13849# For the awk script, D is an array of macro values keyed by name, 13850# likewise P contains macro parameters if any. Preserve backslash 13851# newline sequences. 13852 13853ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13854sed -n ' 13855s/.\{148\}/&'"$ac_delim"'/g 13856t rset 13857:rset 13858s/^[ ]*#[ ]*define[ ][ ]*/ / 13859t def 13860d 13861:def 13862s/\\$// 13863t bsnl 13864s/["\\]/\\&/g 13865s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13866D["\1"]=" \3"/p 13867s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13868d 13869:bsnl 13870s/["\\]/\\&/g 13871s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13872D["\1"]=" \3\\\\\\n"\\/p 13873t cont 13874s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13875t cont 13876d 13877:cont 13878n 13879s/.\{148\}/&'"$ac_delim"'/g 13880t clear 13881:clear 13882s/\\$// 13883t bsnlc 13884s/["\\]/\\&/g; s/^/"/; s/$/"/p 13885d 13886:bsnlc 13887s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13888b cont 13889' <confdefs.h | sed ' 13890s/'"$ac_delim"'/"\\\ 13891"/g' >>$CONFIG_STATUS || ac_write_fail=1 13892 13893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13894 for (key in D) D_is_set[key] = 1 13895 FS = "" 13896} 13897/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13898 line = \$ 0 13899 split(line, arg, " ") 13900 if (arg[1] == "#") { 13901 defundef = arg[2] 13902 mac1 = arg[3] 13903 } else { 13904 defundef = substr(arg[1], 2) 13905 mac1 = arg[2] 13906 } 13907 split(mac1, mac2, "(") #) 13908 macro = mac2[1] 13909 prefix = substr(line, 1, index(line, defundef) - 1) 13910 if (D_is_set[macro]) { 13911 # Preserve the white space surrounding the "#". 13912 print prefix "define", macro P[macro] D[macro] 13913 next 13914 } else { 13915 # Replace #undef with comments. This is necessary, for example, 13916 # in the case of _POSIX_SOURCE, which is predefined and required 13917 # on some systems where configure will not decide to define it. 13918 if (defundef == "undef") { 13919 print "/*", prefix defundef, macro, "*/" 13920 next 13921 } 13922 } 13923} 13924{ print } 13925_ACAWK 13926_ACEOF 13927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13928 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13929fi # test -n "$CONFIG_HEADERS" 13930 13931 13932eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13933shift 13934for ac_tag 13935do 13936 case $ac_tag in 13937 :[FHLC]) ac_mode=$ac_tag; continue;; 13938 esac 13939 case $ac_mode$ac_tag in 13940 :[FHL]*:*);; 13941 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13942 :[FH]-) ac_tag=-:-;; 13943 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13944 esac 13945 ac_save_IFS=$IFS 13946 IFS=: 13947 set x $ac_tag 13948 IFS=$ac_save_IFS 13949 shift 13950 ac_file=$1 13951 shift 13952 13953 case $ac_mode in 13954 :L) ac_source=$1;; 13955 :[FH]) 13956 ac_file_inputs= 13957 for ac_f 13958 do 13959 case $ac_f in 13960 -) ac_f="$ac_tmp/stdin";; 13961 *) # Look for the file first in the build tree, then in the source tree 13962 # (if the path is not absolute). The absolute path cannot be DOS-style, 13963 # because $ac_f cannot contain `:'. 13964 test -f "$ac_f" || 13965 case $ac_f in 13966 [\\/$]*) false;; 13967 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13968 esac || 13969 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13970 esac 13971 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13972 as_fn_append ac_file_inputs " '$ac_f'" 13973 done 13974 13975 # Let's still pretend it is `configure' which instantiates (i.e., don't 13976 # use $as_me), people would be surprised to read: 13977 # /* config.h. Generated by config.status. */ 13978 configure_input='Generated from '` 13979 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13980 `' by configure.' 13981 if test x"$ac_file" != x-; then 13982 configure_input="$ac_file. $configure_input" 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13984$as_echo "$as_me: creating $ac_file" >&6;} 13985 fi 13986 # Neutralize special characters interpreted by sed in replacement strings. 13987 case $configure_input in #( 13988 *\&* | *\|* | *\\* ) 13989 ac_sed_conf_input=`$as_echo "$configure_input" | 13990 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13991 *) ac_sed_conf_input=$configure_input;; 13992 esac 13993 13994 case $ac_tag in 13995 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13997 esac 13998 ;; 13999 esac 14000 14001 ac_dir=`$as_dirname -- "$ac_file" || 14002$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14003 X"$ac_file" : 'X\(//\)[^/]' \| \ 14004 X"$ac_file" : 'X\(//\)$' \| \ 14005 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14006$as_echo X"$ac_file" | 14007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14008 s//\1/ 14009 q 14010 } 14011 /^X\(\/\/\)[^/].*/{ 14012 s//\1/ 14013 q 14014 } 14015 /^X\(\/\/\)$/{ 14016 s//\1/ 14017 q 14018 } 14019 /^X\(\/\).*/{ 14020 s//\1/ 14021 q 14022 } 14023 s/.*/./; q'` 14024 as_dir="$ac_dir"; as_fn_mkdir_p 14025 ac_builddir=. 14026 14027case "$ac_dir" in 14028.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14029*) 14030 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14031 # A ".." for each directory in $ac_dir_suffix. 14032 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14033 case $ac_top_builddir_sub in 14034 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14035 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14036 esac ;; 14037esac 14038ac_abs_top_builddir=$ac_pwd 14039ac_abs_builddir=$ac_pwd$ac_dir_suffix 14040# for backward compatibility: 14041ac_top_builddir=$ac_top_build_prefix 14042 14043case $srcdir in 14044 .) # We are building in place. 14045 ac_srcdir=. 14046 ac_top_srcdir=$ac_top_builddir_sub 14047 ac_abs_top_srcdir=$ac_pwd ;; 14048 [\\/]* | ?:[\\/]* ) # Absolute name. 14049 ac_srcdir=$srcdir$ac_dir_suffix; 14050 ac_top_srcdir=$srcdir 14051 ac_abs_top_srcdir=$srcdir ;; 14052 *) # Relative name. 14053 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14054 ac_top_srcdir=$ac_top_build_prefix$srcdir 14055 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14056esac 14057ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14058 14059 14060 case $ac_mode in 14061 :F) 14062 # 14063 # CONFIG_FILE 14064 # 14065 14066 case $INSTALL in 14067 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14068 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14069 esac 14070 ac_MKDIR_P=$MKDIR_P 14071 case $MKDIR_P in 14072 [\\/$]* | ?:[\\/]* ) ;; 14073 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14074 esac 14075_ACEOF 14076 14077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14078# If the template does not know about datarootdir, expand it. 14079# FIXME: This hack should be removed a few years after 2.60. 14080ac_datarootdir_hack=; ac_datarootdir_seen= 14081ac_sed_dataroot=' 14082/datarootdir/ { 14083 p 14084 q 14085} 14086/@datadir@/p 14087/@docdir@/p 14088/@infodir@/p 14089/@localedir@/p 14090/@mandir@/p' 14091case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14092*datarootdir*) ac_datarootdir_seen=yes;; 14093*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14095$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14096_ACEOF 14097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14098 ac_datarootdir_hack=' 14099 s&@datadir@&$datadir&g 14100 s&@docdir@&$docdir&g 14101 s&@infodir@&$infodir&g 14102 s&@localedir@&$localedir&g 14103 s&@mandir@&$mandir&g 14104 s&\\\${datarootdir}&$datarootdir&g' ;; 14105esac 14106_ACEOF 14107 14108# Neutralize VPATH when `$srcdir' = `.'. 14109# Shell code in configure.ac might set extrasub. 14110# FIXME: do we really want to maintain this feature? 14111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14112ac_sed_extra="$ac_vpsub 14113$extrasub 14114_ACEOF 14115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14116:t 14117/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14118s|@configure_input@|$ac_sed_conf_input|;t t 14119s&@top_builddir@&$ac_top_builddir_sub&;t t 14120s&@top_build_prefix@&$ac_top_build_prefix&;t t 14121s&@srcdir@&$ac_srcdir&;t t 14122s&@abs_srcdir@&$ac_abs_srcdir&;t t 14123s&@top_srcdir@&$ac_top_srcdir&;t t 14124s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14125s&@builddir@&$ac_builddir&;t t 14126s&@abs_builddir@&$ac_abs_builddir&;t t 14127s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14128s&@INSTALL@&$ac_INSTALL&;t t 14129s&@MKDIR_P@&$ac_MKDIR_P&;t t 14130$ac_datarootdir_hack 14131" 14132eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14133 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14134 14135test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14136 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14137 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14138 "$ac_tmp/out"`; test -z "$ac_out"; } && 14139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14140which seems to be undefined. Please make sure it is defined" >&5 14141$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14142which seems to be undefined. Please make sure it is defined" >&2;} 14143 14144 rm -f "$ac_tmp/stdin" 14145 case $ac_file in 14146 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14147 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14148 esac \ 14149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14150 ;; 14151 :H) 14152 # 14153 # CONFIG_HEADER 14154 # 14155 if test x"$ac_file" != x-; then 14156 { 14157 $as_echo "/* $configure_input */" \ 14158 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14159 } >"$ac_tmp/config.h" \ 14160 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14161 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14162 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14163$as_echo "$as_me: $ac_file is unchanged" >&6;} 14164 else 14165 rm -f "$ac_file" 14166 mv "$ac_tmp/config.h" "$ac_file" \ 14167 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14168 fi 14169 else 14170 $as_echo "/* $configure_input */" \ 14171 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14172 || as_fn_error $? "could not create -" "$LINENO" 5 14173 fi 14174# Compute "$ac_file"'s index in $config_headers. 14175_am_arg="$ac_file" 14176_am_stamp_count=1 14177for _am_header in $config_headers :; do 14178 case $_am_header in 14179 $_am_arg | $_am_arg:* ) 14180 break ;; 14181 * ) 14182 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14183 esac 14184done 14185echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14186$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14187 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14188 X"$_am_arg" : 'X\(//\)$' \| \ 14189 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14190$as_echo X"$_am_arg" | 14191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14192 s//\1/ 14193 q 14194 } 14195 /^X\(\/\/\)[^/].*/{ 14196 s//\1/ 14197 q 14198 } 14199 /^X\(\/\/\)$/{ 14200 s//\1/ 14201 q 14202 } 14203 /^X\(\/\).*/{ 14204 s//\1/ 14205 q 14206 } 14207 s/.*/./; q'`/stamp-h$_am_stamp_count 14208 ;; 14209 14210 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14211$as_echo "$as_me: executing $ac_file commands" >&6;} 14212 ;; 14213 esac 14214 14215 14216 case $ac_file$ac_mode in 14217 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14218 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14219 # are listed without --file. Let's play safe and only enable the eval 14220 # if we detect the quoting. 14221 case $CONFIG_FILES in 14222 *\'*) eval set x "$CONFIG_FILES" ;; 14223 *) set x $CONFIG_FILES ;; 14224 esac 14225 shift 14226 for mf 14227 do 14228 # Strip MF so we end up with the name of the file. 14229 mf=`echo "$mf" | sed -e 's/:.*$//'` 14230 # Check whether this is an Automake generated Makefile or not. 14231 # We used to match only the files named `Makefile.in', but 14232 # some people rename them; so instead we look at the file content. 14233 # Grep'ing the first line is not enough: some people post-process 14234 # each Makefile.in and add a new line on top of each file to say so. 14235 # Grep'ing the whole file is not good either: AIX grep has a line 14236 # limit of 2048, but all sed's we know have understand at least 4000. 14237 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14238 dirpart=`$as_dirname -- "$mf" || 14239$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14240 X"$mf" : 'X\(//\)[^/]' \| \ 14241 X"$mf" : 'X\(//\)$' \| \ 14242 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14243$as_echo X"$mf" | 14244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14245 s//\1/ 14246 q 14247 } 14248 /^X\(\/\/\)[^/].*/{ 14249 s//\1/ 14250 q 14251 } 14252 /^X\(\/\/\)$/{ 14253 s//\1/ 14254 q 14255 } 14256 /^X\(\/\).*/{ 14257 s//\1/ 14258 q 14259 } 14260 s/.*/./; q'` 14261 else 14262 continue 14263 fi 14264 # Extract the definition of DEPDIR, am__include, and am__quote 14265 # from the Makefile without running `make'. 14266 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14267 test -z "$DEPDIR" && continue 14268 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14269 test -z "am__include" && continue 14270 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14271 # When using ansi2knr, U may be empty or an underscore; expand it 14272 U=`sed -n 's/^U = //p' < "$mf"` 14273 # Find all dependency output files, they are included files with 14274 # $(DEPDIR) in their names. We invoke sed twice because it is the 14275 # simplest approach to changing $(DEPDIR) to its actual value in the 14276 # expansion. 14277 for file in `sed -n " 14278 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14279 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14280 # Make sure the directory exists. 14281 test -f "$dirpart/$file" && continue 14282 fdir=`$as_dirname -- "$file" || 14283$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14284 X"$file" : 'X\(//\)[^/]' \| \ 14285 X"$file" : 'X\(//\)$' \| \ 14286 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14287$as_echo X"$file" | 14288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14289 s//\1/ 14290 q 14291 } 14292 /^X\(\/\/\)[^/].*/{ 14293 s//\1/ 14294 q 14295 } 14296 /^X\(\/\/\)$/{ 14297 s//\1/ 14298 q 14299 } 14300 /^X\(\/\).*/{ 14301 s//\1/ 14302 q 14303 } 14304 s/.*/./; q'` 14305 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14306 # echo "creating $dirpart/$file" 14307 echo '# dummy' > "$dirpart/$file" 14308 done 14309 done 14310} 14311 ;; 14312 "libtool":C) 14313 14314 # See if we are running on zsh, and set the options which allow our 14315 # commands through without removal of \ escapes. 14316 if test -n "${ZSH_VERSION+set}" ; then 14317 setopt NO_GLOB_SUBST 14318 fi 14319 14320 cfgfile="${ofile}T" 14321 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14322 $RM "$cfgfile" 14323 14324 cat <<_LT_EOF >> "$cfgfile" 14325#! $SHELL 14326 14327# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14328# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14329# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14330# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14331# 14332# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14333# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 14334# Foundation, Inc. 14335# Written by Gordon Matzigkeit, 1996 14336# 14337# This file is part of GNU Libtool. 14338# 14339# GNU Libtool is free software; you can redistribute it and/or 14340# modify it under the terms of the GNU General Public License as 14341# published by the Free Software Foundation; either version 2 of 14342# the License, or (at your option) any later version. 14343# 14344# As a special exception to the GNU General Public License, 14345# if you distribute this file as part of a program or library that 14346# is built using GNU Libtool, you may include this file under the 14347# same distribution terms that you use for the rest of that program. 14348# 14349# GNU Libtool is distributed in the hope that it will be useful, 14350# but WITHOUT ANY WARRANTY; without even the implied warranty of 14351# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14352# GNU General Public License for more details. 14353# 14354# You should have received a copy of the GNU General Public License 14355# along with GNU Libtool; see the file COPYING. If not, a copy 14356# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14357# obtained by writing to the Free Software Foundation, Inc., 14358# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14359 14360 14361# The names of the tagged configurations supported by this script. 14362available_tags="" 14363 14364# ### BEGIN LIBTOOL CONFIG 14365 14366# Which release of libtool.m4 was used? 14367macro_version=$macro_version 14368macro_revision=$macro_revision 14369 14370# Whether or not to build shared libraries. 14371build_libtool_libs=$enable_shared 14372 14373# Whether or not to build static libraries. 14374build_old_libs=$enable_static 14375 14376# What type of objects to build. 14377pic_mode=$pic_mode 14378 14379# Whether or not to optimize for fast installation. 14380fast_install=$enable_fast_install 14381 14382# Shell to use when invoking shell scripts. 14383SHELL=$lt_SHELL 14384 14385# An echo program that protects backslashes. 14386ECHO=$lt_ECHO 14387 14388# The PATH separator for the build system. 14389PATH_SEPARATOR=$lt_PATH_SEPARATOR 14390 14391# The host system. 14392host_alias=$host_alias 14393host=$host 14394host_os=$host_os 14395 14396# The build system. 14397build_alias=$build_alias 14398build=$build 14399build_os=$build_os 14400 14401# A sed program that does not truncate output. 14402SED=$lt_SED 14403 14404# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14405Xsed="\$SED -e 1s/^X//" 14406 14407# A grep program that handles long lines. 14408GREP=$lt_GREP 14409 14410# An ERE matcher. 14411EGREP=$lt_EGREP 14412 14413# A literal string matcher. 14414FGREP=$lt_FGREP 14415 14416# A BSD- or MS-compatible name lister. 14417NM=$lt_NM 14418 14419# Whether we need soft or hard links. 14420LN_S=$lt_LN_S 14421 14422# What is the maximum length of a command? 14423max_cmd_len=$max_cmd_len 14424 14425# Object file suffix (normally "o"). 14426objext=$ac_objext 14427 14428# Executable file suffix (normally ""). 14429exeext=$exeext 14430 14431# whether the shell understands "unset". 14432lt_unset=$lt_unset 14433 14434# turn spaces into newlines. 14435SP2NL=$lt_lt_SP2NL 14436 14437# turn newlines into spaces. 14438NL2SP=$lt_lt_NL2SP 14439 14440# convert \$build file names to \$host format. 14441to_host_file_cmd=$lt_cv_to_host_file_cmd 14442 14443# convert \$build files to toolchain format. 14444to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14445 14446# An object symbol dumper. 14447OBJDUMP=$lt_OBJDUMP 14448 14449# Method to check whether dependent libraries are shared objects. 14450deplibs_check_method=$lt_deplibs_check_method 14451 14452# Command to use when deplibs_check_method = "file_magic". 14453file_magic_cmd=$lt_file_magic_cmd 14454 14455# How to find potential files when deplibs_check_method = "file_magic". 14456file_magic_glob=$lt_file_magic_glob 14457 14458# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14459want_nocaseglob=$lt_want_nocaseglob 14460 14461# DLL creation program. 14462DLLTOOL=$lt_DLLTOOL 14463 14464# Command to associate shared and link libraries. 14465sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14466 14467# The archiver. 14468AR=$lt_AR 14469 14470# Flags to create an archive. 14471AR_FLAGS=$lt_AR_FLAGS 14472 14473# How to feed a file listing to the archiver. 14474archiver_list_spec=$lt_archiver_list_spec 14475 14476# A symbol stripping program. 14477STRIP=$lt_STRIP 14478 14479# Commands used to install an old-style archive. 14480RANLIB=$lt_RANLIB 14481old_postinstall_cmds=$lt_old_postinstall_cmds 14482old_postuninstall_cmds=$lt_old_postuninstall_cmds 14483 14484# Whether to use a lock for old archive extraction. 14485lock_old_archive_extraction=$lock_old_archive_extraction 14486 14487# A C compiler. 14488LTCC=$lt_CC 14489 14490# LTCC compiler flags. 14491LTCFLAGS=$lt_CFLAGS 14492 14493# Take the output of nm and produce a listing of raw symbols and C names. 14494global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14495 14496# Transform the output of nm in a proper C declaration. 14497global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14498 14499# Transform the output of nm in a C name address pair. 14500global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14501 14502# Transform the output of nm in a C name address pair when lib prefix is needed. 14503global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14504 14505# Specify filename containing input files for \$NM. 14506nm_file_list_spec=$lt_nm_file_list_spec 14507 14508# The root where to search for dependent libraries,and in which our libraries should be installed. 14509lt_sysroot=$lt_sysroot 14510 14511# The name of the directory that contains temporary libtool files. 14512objdir=$objdir 14513 14514# Used to examine libraries when file_magic_cmd begins with "file". 14515MAGIC_CMD=$MAGIC_CMD 14516 14517# Must we lock files when doing compilation? 14518need_locks=$lt_need_locks 14519 14520# Manifest tool. 14521MANIFEST_TOOL=$lt_MANIFEST_TOOL 14522 14523# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14524DSYMUTIL=$lt_DSYMUTIL 14525 14526# Tool to change global to local symbols on Mac OS X. 14527NMEDIT=$lt_NMEDIT 14528 14529# Tool to manipulate fat objects and archives on Mac OS X. 14530LIPO=$lt_LIPO 14531 14532# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14533OTOOL=$lt_OTOOL 14534 14535# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14536OTOOL64=$lt_OTOOL64 14537 14538# Old archive suffix (normally "a"). 14539libext=$libext 14540 14541# Shared library suffix (normally ".so"). 14542shrext_cmds=$lt_shrext_cmds 14543 14544# The commands to extract the exported symbol list from a shared archive. 14545extract_expsyms_cmds=$lt_extract_expsyms_cmds 14546 14547# Variables whose values should be saved in libtool wrapper scripts and 14548# restored at link time. 14549variables_saved_for_relink=$lt_variables_saved_for_relink 14550 14551# Do we need the "lib" prefix for modules? 14552need_lib_prefix=$need_lib_prefix 14553 14554# Do we need a version for libraries? 14555need_version=$need_version 14556 14557# Library versioning type. 14558version_type=$version_type 14559 14560# Shared library runtime path variable. 14561runpath_var=$runpath_var 14562 14563# Shared library path variable. 14564shlibpath_var=$shlibpath_var 14565 14566# Is shlibpath searched before the hard-coded library search path? 14567shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14568 14569# Format of library name prefix. 14570libname_spec=$lt_libname_spec 14571 14572# List of archive names. First name is the real one, the rest are links. 14573# The last name is the one that the linker finds with -lNAME 14574library_names_spec=$lt_library_names_spec 14575 14576# The coded name of the library, if different from the real name. 14577soname_spec=$lt_soname_spec 14578 14579# Permission mode override for installation of shared libraries. 14580install_override_mode=$lt_install_override_mode 14581 14582# Command to use after installation of a shared archive. 14583postinstall_cmds=$lt_postinstall_cmds 14584 14585# Command to use after uninstallation of a shared archive. 14586postuninstall_cmds=$lt_postuninstall_cmds 14587 14588# Commands used to finish a libtool library installation in a directory. 14589finish_cmds=$lt_finish_cmds 14590 14591# As "finish_cmds", except a single script fragment to be evaled but 14592# not shown. 14593finish_eval=$lt_finish_eval 14594 14595# Whether we should hardcode library paths into libraries. 14596hardcode_into_libs=$hardcode_into_libs 14597 14598# Compile-time system search path for libraries. 14599sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14600 14601# Run-time system search path for libraries. 14602sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14603 14604# Whether dlopen is supported. 14605dlopen_support=$enable_dlopen 14606 14607# Whether dlopen of programs is supported. 14608dlopen_self=$enable_dlopen_self 14609 14610# Whether dlopen of statically linked programs is supported. 14611dlopen_self_static=$enable_dlopen_self_static 14612 14613# Commands to strip libraries. 14614old_striplib=$lt_old_striplib 14615striplib=$lt_striplib 14616 14617 14618# The linker used to build libraries. 14619LD=$lt_LD 14620 14621# How to create reloadable object files. 14622reload_flag=$lt_reload_flag 14623reload_cmds=$lt_reload_cmds 14624 14625# Commands used to build an old-style archive. 14626old_archive_cmds=$lt_old_archive_cmds 14627 14628# A language specific compiler. 14629CC=$lt_compiler 14630 14631# Is the compiler the GNU compiler? 14632with_gcc=$GCC 14633 14634# Compiler flag to turn off builtin functions. 14635no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14636 14637# Additional compiler flags for building library objects. 14638pic_flag=$lt_lt_prog_compiler_pic 14639 14640# How to pass a linker flag through the compiler. 14641wl=$lt_lt_prog_compiler_wl 14642 14643# Compiler flag to prevent dynamic linking. 14644link_static_flag=$lt_lt_prog_compiler_static 14645 14646# Does compiler simultaneously support -c and -o options? 14647compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14648 14649# Whether or not to add -lc for building shared libraries. 14650build_libtool_need_lc=$archive_cmds_need_lc 14651 14652# Whether or not to disallow shared libs when runtime libs are static. 14653allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14654 14655# Compiler flag to allow reflexive dlopens. 14656export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14657 14658# Compiler flag to generate shared objects directly from archives. 14659whole_archive_flag_spec=$lt_whole_archive_flag_spec 14660 14661# Whether the compiler copes with passing no objects directly. 14662compiler_needs_object=$lt_compiler_needs_object 14663 14664# Create an old-style archive from a shared archive. 14665old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14666 14667# Create a temporary old-style archive to link instead of a shared archive. 14668old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14669 14670# Commands used to build a shared archive. 14671archive_cmds=$lt_archive_cmds 14672archive_expsym_cmds=$lt_archive_expsym_cmds 14673 14674# Commands used to build a loadable module if different from building 14675# a shared archive. 14676module_cmds=$lt_module_cmds 14677module_expsym_cmds=$lt_module_expsym_cmds 14678 14679# Whether we are building with GNU ld or not. 14680with_gnu_ld=$lt_with_gnu_ld 14681 14682# Flag that allows shared libraries with undefined symbols to be built. 14683allow_undefined_flag=$lt_allow_undefined_flag 14684 14685# Flag that enforces no undefined symbols. 14686no_undefined_flag=$lt_no_undefined_flag 14687 14688# Flag to hardcode \$libdir into a binary during linking. 14689# This must work even if \$libdir does not exist 14690hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14691 14692# Whether we need a single "-rpath" flag with a separated argument. 14693hardcode_libdir_separator=$lt_hardcode_libdir_separator 14694 14695# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14696# DIR into the resulting binary. 14697hardcode_direct=$hardcode_direct 14698 14699# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14700# DIR into the resulting binary and the resulting library dependency is 14701# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14702# library is relocated. 14703hardcode_direct_absolute=$hardcode_direct_absolute 14704 14705# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14706# into the resulting binary. 14707hardcode_minus_L=$hardcode_minus_L 14708 14709# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14710# into the resulting binary. 14711hardcode_shlibpath_var=$hardcode_shlibpath_var 14712 14713# Set to "yes" if building a shared library automatically hardcodes DIR 14714# into the library and all subsequent libraries and executables linked 14715# against it. 14716hardcode_automatic=$hardcode_automatic 14717 14718# Set to yes if linker adds runtime paths of dependent libraries 14719# to runtime path list. 14720inherit_rpath=$inherit_rpath 14721 14722# Whether libtool must link a program against all its dependency libraries. 14723link_all_deplibs=$link_all_deplibs 14724 14725# Set to "yes" if exported symbols are required. 14726always_export_symbols=$always_export_symbols 14727 14728# The commands to list exported symbols. 14729export_symbols_cmds=$lt_export_symbols_cmds 14730 14731# Symbols that should not be listed in the preloaded symbols. 14732exclude_expsyms=$lt_exclude_expsyms 14733 14734# Symbols that must always be exported. 14735include_expsyms=$lt_include_expsyms 14736 14737# Commands necessary for linking programs (against libraries) with templates. 14738prelink_cmds=$lt_prelink_cmds 14739 14740# Commands necessary for finishing linking programs. 14741postlink_cmds=$lt_postlink_cmds 14742 14743# Specify filename containing input files. 14744file_list_spec=$lt_file_list_spec 14745 14746# How to hardcode a shared library path into an executable. 14747hardcode_action=$hardcode_action 14748 14749# ### END LIBTOOL CONFIG 14750 14751_LT_EOF 14752 14753 case $host_os in 14754 aix3*) 14755 cat <<\_LT_EOF >> "$cfgfile" 14756# AIX sometimes has problems with the GCC collect2 program. For some 14757# reason, if we set the COLLECT_NAMES environment variable, the problems 14758# vanish in a puff of smoke. 14759if test "X${COLLECT_NAMES+set}" != Xset; then 14760 COLLECT_NAMES= 14761 export COLLECT_NAMES 14762fi 14763_LT_EOF 14764 ;; 14765 esac 14766 14767 14768ltmain="$ac_aux_dir/ltmain.sh" 14769 14770 14771 # We use sed instead of cat because bash on DJGPP gets confused if 14772 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14773 # text mode, it properly converts lines to CR/LF. This bash problem 14774 # is reportedly fixed, but why not run on old versions too? 14775 sed '$q' "$ltmain" >> "$cfgfile" \ 14776 || (rm -f "$cfgfile"; exit 1) 14777 14778 if test x"$xsi_shell" = xyes; then 14779 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 14780func_dirname ()\ 14781{\ 14782\ case ${1} in\ 14783\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14784\ * ) func_dirname_result="${3}" ;;\ 14785\ esac\ 14786} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 14787 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14788 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14789test 0 -eq $? || _lt_function_replace_fail=: 14790 14791 14792 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 14793func_basename ()\ 14794{\ 14795\ func_basename_result="${1##*/}"\ 14796} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14797 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14798 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14799test 0 -eq $? || _lt_function_replace_fail=: 14800 14801 14802 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 14803func_dirname_and_basename ()\ 14804{\ 14805\ case ${1} in\ 14806\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14807\ * ) func_dirname_result="${3}" ;;\ 14808\ esac\ 14809\ func_basename_result="${1##*/}"\ 14810} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14811 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14812 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14813test 0 -eq $? || _lt_function_replace_fail=: 14814 14815 14816 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 14817func_stripname ()\ 14818{\ 14819\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 14820\ # positional parameters, so assign one to ordinary parameter first.\ 14821\ func_stripname_result=${3}\ 14822\ func_stripname_result=${func_stripname_result#"${1}"}\ 14823\ func_stripname_result=${func_stripname_result%"${2}"}\ 14824} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 14825 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14827test 0 -eq $? || _lt_function_replace_fail=: 14828 14829 14830 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 14831func_split_long_opt ()\ 14832{\ 14833\ func_split_long_opt_name=${1%%=*}\ 14834\ func_split_long_opt_arg=${1#*=}\ 14835} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14836 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14837 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14838test 0 -eq $? || _lt_function_replace_fail=: 14839 14840 14841 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 14842func_split_short_opt ()\ 14843{\ 14844\ func_split_short_opt_arg=${1#??}\ 14845\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 14846} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14847 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14849test 0 -eq $? || _lt_function_replace_fail=: 14850 14851 14852 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 14853func_lo2o ()\ 14854{\ 14855\ case ${1} in\ 14856\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 14857\ *) func_lo2o_result=${1} ;;\ 14858\ esac\ 14859} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 14860 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14861 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14862test 0 -eq $? || _lt_function_replace_fail=: 14863 14864 14865 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 14866func_xform ()\ 14867{\ 14868 func_xform_result=${1%.*}.lo\ 14869} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 14870 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14871 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14872test 0 -eq $? || _lt_function_replace_fail=: 14873 14874 14875 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 14876func_arith ()\ 14877{\ 14878 func_arith_result=$(( $* ))\ 14879} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 14880 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14881 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14882test 0 -eq $? || _lt_function_replace_fail=: 14883 14884 14885 sed -e '/^func_len ()$/,/^} # func_len /c\ 14886func_len ()\ 14887{\ 14888 func_len_result=${#1}\ 14889} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 14890 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14891 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14892test 0 -eq $? || _lt_function_replace_fail=: 14893 14894fi 14895 14896if test x"$lt_shell_append" = xyes; then 14897 sed -e '/^func_append ()$/,/^} # func_append /c\ 14898func_append ()\ 14899{\ 14900 eval "${1}+=\\${2}"\ 14901} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 14902 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14904test 0 -eq $? || _lt_function_replace_fail=: 14905 14906 14907 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 14908func_append_quoted ()\ 14909{\ 14910\ func_quote_for_eval "${2}"\ 14911\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 14912} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 14913 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14915test 0 -eq $? || _lt_function_replace_fail=: 14916 14917 14918 # Save a `func_append' function call where possible by direct use of '+=' 14919 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 14920 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14921 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14922 test 0 -eq $? || _lt_function_replace_fail=: 14923else 14924 # Save a `func_append' function call even when '+=' is not available 14925 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 14926 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14928 test 0 -eq $? || _lt_function_replace_fail=: 14929fi 14930 14931if test x"$_lt_function_replace_fail" = x":"; then 14932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 14933$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 14934fi 14935 14936 14937 mv -f "$cfgfile" "$ofile" || 14938 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14939 chmod +x "$ofile" 14940 14941 ;; 14942 14943 esac 14944done # for ac_tag 14945 14946 14947as_fn_exit 0 14948_ACEOF 14949ac_clean_files=$ac_clean_files_save 14950 14951test $ac_write_fail = 0 || 14952 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14953 14954 14955# configure is writing to config.log, and then calls config.status. 14956# config.status does its own redirection, appending to config.log. 14957# Unfortunately, on DOS this fails, as config.log is still kept open 14958# by configure, so config.status won't be able to write to it; its 14959# output is simply discarded. So we exec the FD to /dev/null, 14960# effectively closing config.log, so it can be properly (re)opened and 14961# appended to by config.status. When coming back to configure, we 14962# need to make the FD available again. 14963if test "$no_create" != yes; then 14964 ac_cs_success=: 14965 ac_config_status_args= 14966 test "$silent" = yes && 14967 ac_config_status_args="$ac_config_status_args --quiet" 14968 exec 5>/dev/null 14969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14970 exec 5>>config.log 14971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14972 # would make configure fail if this is the last instruction. 14973 $ac_cs_success || as_fn_exit 1 14974fi 14975if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14977$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14978fi 14979 14980 14981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 14982Redland build summary: 14983 Redland: $REDLAND_VERSION 14984 Language APIs built: $languages 14985" >&5 14986$as_echo " 14987Redland build summary: 14988 Redland: $REDLAND_VERSION 14989 Language APIs built: $languages 14990" >&6; } 14991