1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.67. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 8# Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177else 178 as_have_required=no 179fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184as_found=false 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200fi 201fi 202 done;; 203 esac 204 as_found=false 205done 206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209fi; } 210IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 232$0: including any error possibly output before this 233$0: message. Then install a modern shell, or manually run 234$0: the script under such a shell if you do have one." 235 fi 236 exit 1 237fi 238fi 239fi 240SHELL=${CONFIG_SHELL-/bin/sh} 241export SHELL 242# Unset more variables known to interfere with behavior of common tools. 243CLICOLOR_FORCE= GREP_OPTIONS= 244unset CLICOLOR_FORCE GREP_OPTIONS 245 246## --------------------- ## 247## M4sh Shell Functions. ## 248## --------------------- ## 249# as_fn_unset VAR 250# --------------- 251# Portably unset VAR. 252as_fn_unset () 253{ 254 { eval $1=; unset $1;} 255} 256as_unset=as_fn_unset 257 258# as_fn_set_status STATUS 259# ----------------------- 260# Set $? to STATUS, without forking. 261as_fn_set_status () 262{ 263 return $1 264} # as_fn_set_status 265 266# as_fn_exit STATUS 267# ----------------- 268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 269as_fn_exit () 270{ 271 set +e 272 as_fn_set_status $1 273 exit $1 274} # as_fn_exit 275 276# as_fn_mkdir_p 277# ------------- 278# Create "$as_dir" as a directory, including parents if necessary. 279as_fn_mkdir_p () 280{ 281 282 case $as_dir in #( 283 -*) as_dir=./$as_dir;; 284 esac 285 test -d "$as_dir" || eval $as_mkdir_p || { 286 as_dirs= 287 while :; do 288 case $as_dir in #( 289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 290 *) as_qdir=$as_dir;; 291 esac 292 as_dirs="'$as_qdir' $as_dirs" 293 as_dir=`$as_dirname -- "$as_dir" || 294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 295 X"$as_dir" : 'X\(//\)[^/]' \| \ 296 X"$as_dir" : 'X\(//\)$' \| \ 297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 298$as_echo X"$as_dir" | 299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 300 s//\1/ 301 q 302 } 303 /^X\(\/\/\)[^/].*/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\).*/{ 312 s//\1/ 313 q 314 } 315 s/.*/./; q'` 316 test -d "$as_dir" && break 317 done 318 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 320 321 322} # as_fn_mkdir_p 323# as_fn_append VAR VALUE 324# ---------------------- 325# Append the text in VALUE to the end of the definition contained in VAR. Take 326# advantage of any shell optimizations that allow amortized linear growth over 327# repeated appends, instead of the typical quadratic growth present in naive 328# implementations. 329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 330 eval 'as_fn_append () 331 { 332 eval $1+=\$2 333 }' 334else 335 as_fn_append () 336 { 337 eval $1=\$$1\$2 338 } 339fi # as_fn_append 340 341# as_fn_arith ARG... 342# ------------------ 343# Perform arithmetic evaluation on the ARGs, and store the result in the 344# global $as_val. Take advantage of shells that can avoid forks. The arguments 345# must be portable across $(()) and expr. 346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 347 eval 'as_fn_arith () 348 { 349 as_val=$(( $* )) 350 }' 351else 352 as_fn_arith () 353 { 354 as_val=`expr "$@" || test $? -eq 1` 355 } 356fi # as_fn_arith 357 358 359# as_fn_error STATUS ERROR [LINENO LOG_FD] 360# ---------------------------------------- 361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363# script with STATUS, using 1 if that was 0. 364as_fn_error () 365{ 366 as_status=$1; test $as_status -eq 0 && as_status=1 367 if test "$4"; then 368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 370 fi 371 $as_echo "$as_me: error: $2" >&2 372 as_fn_exit $as_status 373} # as_fn_error 374 375if expr a : '\(a\)' >/dev/null 2>&1 && 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 377 as_expr=expr 378else 379 as_expr=false 380fi 381 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 383 as_basename=basename 384else 385 as_basename=false 386fi 387 388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 389 as_dirname=dirname 390else 391 as_dirname=false 392fi 393 394as_me=`$as_basename -- "$0" || 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 396 X"$0" : 'X\(//\)$' \| \ 397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 398$as_echo X/"$0" | 399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 400 s//\1/ 401 q 402 } 403 /^X\/\(\/\/\)$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\).*/{ 408 s//\1/ 409 q 410 } 411 s/.*/./; q'` 412 413# Avoid depending upon Character Ranges. 414as_cr_letters='abcdefghijklmnopqrstuvwxyz' 415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 416as_cr_Letters=$as_cr_letters$as_cr_LETTERS 417as_cr_digits='0123456789' 418as_cr_alnum=$as_cr_Letters$as_cr_digits 419 420 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 426 sed -n ' 427 p 428 /[$]LINENO/= 429 ' <$as_myself | 430 sed ' 431 s/[$]LINENO.*/&-/ 432 t lineno 433 b 434 :lineno 435 N 436 :loop 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 438 t loop 439 s/-\n.*// 440 ' >$as_me.lineno && 441 chmod +x "$as_me.lineno" || 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 443 444 # Don't try to exec as it changes $[0], causing all sort of problems 445 # (the dirname of $[0] is not the place where we might find the 446 # original and so on. Autoconf is especially sensitive to this). 447 . "./$as_me.lineno" 448 # Exit status is that of the last command. 449 exit 450} 451 452ECHO_C= ECHO_N= ECHO_T= 453case `echo -n x` in #((((( 454-n*) 455 case `echo 'xy\c'` in 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 457 xy) ECHO_C='\c';; 458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 459 ECHO_T=' ';; 460 esac;; 461*) 462 ECHO_N='-n';; 463esac 464 465rm -f conf$$ conf$$.exe conf$$.file 466if test -d conf$$.dir; then 467 rm -f conf$$.dir/conf$$.file 468else 469 rm -f conf$$.dir 470 mkdir conf$$.dir 2>/dev/null 471fi 472if (echo >conf$$.file) 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then 474 as_ln_s='ln -s' 475 # ... but there are two gotchas: 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 478 # In both cases, we have to default to `cp -p'. 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 480 as_ln_s='cp -p' 481 elif ln conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s=ln 483 else 484 as_ln_s='cp -p' 485 fi 486else 487 as_ln_s='cp -p' 488fi 489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 490rmdir conf$$.dir 2>/dev/null 491 492if mkdir -p . 2>/dev/null; then 493 as_mkdir_p='mkdir -p "$as_dir"' 494else 495 test -d ./-p && rmdir ./-p 496 as_mkdir_p=false 497fi 498 499if test -x / >/dev/null 2>&1; then 500 as_test_x='test -x' 501else 502 if ls -dL / >/dev/null 2>&1; then 503 as_ls_L_option=L 504 else 505 as_ls_L_option= 506 fi 507 as_test_x=' 508 eval sh -c '\'' 509 if test -d "$1"; then 510 test -d "$1/."; 511 else 512 case $1 in #( 513 -*)set "./$1";; 514 esac; 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 516 ???[sx]*):;;*)false;;esac;fi 517 '\'' sh 518 ' 519fi 520as_executable_p=$as_test_x 521 522# Sed expression to map a string onto a valid CPP name. 523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 524 525# Sed expression to map a string onto a valid variable name. 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 527 528 529 530# Check that we are running under the correct shell. 531SHELL=${CONFIG_SHELL-/bin/sh} 532 533case X$lt_ECHO in 534X*--fallback-echo) 535 # Remove one level of quotation (which was required for Make). 536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 537 ;; 538esac 539 540ECHO=${lt_ECHO-echo} 541if test "X$1" = X--no-reexec; then 542 # Discard the --no-reexec flag, and continue. 543 shift 544elif test "X$1" = X--fallback-echo; then 545 # Avoid inline document here, it may be left over 546 : 547elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 548 # Yippee, $ECHO works! 549 : 550else 551 # Restart under the correct shell. 552 exec $SHELL "$0" --no-reexec ${1+"$@"} 553fi 554 555if test "X$1" = X--fallback-echo; then 556 # used as fallback echo 557 shift 558 cat <<_LT_EOF 559$* 560_LT_EOF 561 exit 0 562fi 563 564# The HP-UX ksh and POSIX shell print the target directory to stdout 565# if CDPATH is set. 566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 567 568if test -z "$lt_ECHO"; then 569 if test "X${echo_test_string+set}" != Xset; then 570 # find a string as large as possible, as long as the shell can cope with it 571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 573 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 575 then 576 break 577 fi 578 done 579 fi 580 581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 583 test "X$echo_testing_string" = "X$echo_test_string"; then 584 : 585 else 586 # The Solaris, AIX, and Digital Unix default echo programs unquote 587 # backslashes. This makes it impossible to quote backslashes using 588 # echo "$something" | sed 's/\\/\\\\/g' 589 # 590 # So, first we look for a working echo in the user's PATH. 591 592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 593 for dir in $PATH /usr/ucb; do 594 IFS="$lt_save_ifs" 595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 598 test "X$echo_testing_string" = "X$echo_test_string"; then 599 ECHO="$dir/echo" 600 break 601 fi 602 done 603 IFS="$lt_save_ifs" 604 605 if test "X$ECHO" = Xecho; then 606 # We didn't find a better echo, so look for alternatives. 607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 # This shell has a builtin print -r that does the trick. 611 ECHO='print -r' 612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 613 test "X$CONFIG_SHELL" != X/bin/ksh; then 614 # If we have ksh, try running configure again with it. 615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 616 export ORIGINAL_CONFIG_SHELL 617 CONFIG_SHELL=/bin/ksh 618 export CONFIG_SHELL 619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 620 else 621 # Try using printf. 622 ECHO='printf %s\n' 623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 625 test "X$echo_testing_string" = "X$echo_test_string"; then 626 # Cool, printf works 627 : 628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 629 test "X$echo_testing_string" = 'X\t' && 630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 631 test "X$echo_testing_string" = "X$echo_test_string"; then 632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 633 export CONFIG_SHELL 634 SHELL="$CONFIG_SHELL" 635 export SHELL 636 ECHO="$CONFIG_SHELL $0 --fallback-echo" 637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 638 test "X$echo_testing_string" = 'X\t' && 639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 640 test "X$echo_testing_string" = "X$echo_test_string"; then 641 ECHO="$CONFIG_SHELL $0 --fallback-echo" 642 else 643 # maybe with a smaller string... 644 prev=: 645 646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 648 then 649 break 650 fi 651 prev="$cmd" 652 done 653 654 if test "$prev" != 'sed 50q "$0"'; then 655 echo_test_string=`eval $prev` 656 export echo_test_string 657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 658 else 659 # Oops. We lost completely, so just stick with echo. 660 ECHO=echo 661 fi 662 fi 663 fi 664 fi 665 fi 666fi 667 668# Copy echo and quote the copy suitably for passing to libtool from 669# the Makefile, instead of quoting the original, which is used later. 670lt_ECHO=$ECHO 671if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 673fi 674 675 676 677 678test -n "$DJDIR" || exec 7<&0 </dev/null 679exec 6>&1 680 681# Name of the host. 682# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 683# so uname gets run too. 684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 685 686# 687# Initializations. 688# 689ac_default_prefix=/usr/local 690ac_clean_files= 691ac_config_libobj_dir=. 692LIBOBJS= 693cross_compiling=no 694subdirs= 695MFLAGS= 696MAKEFLAGS= 697 698# Identity of this package. 699PACKAGE_NAME= 700PACKAGE_TARNAME= 701PACKAGE_VERSION= 702PACKAGE_STRING= 703PACKAGE_BUGREPORT= 704PACKAGE_URL= 705 706ac_unique_file="src/common.h" 707# Factoring default headers for most tests. 708ac_includes_default="\ 709#include <stdio.h> 710#ifdef HAVE_SYS_TYPES_H 711# include <sys/types.h> 712#endif 713#ifdef HAVE_SYS_STAT_H 714# include <sys/stat.h> 715#endif 716#ifdef STDC_HEADERS 717# include <stdlib.h> 718# include <stddef.h> 719#else 720# ifdef HAVE_STDLIB_H 721# include <stdlib.h> 722# endif 723#endif 724#ifdef HAVE_STRING_H 725# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 726# include <memory.h> 727# endif 728# include <string.h> 729#endif 730#ifdef HAVE_STRINGS_H 731# include <strings.h> 732#endif 733#ifdef HAVE_INTTYPES_H 734# include <inttypes.h> 735#endif 736#ifdef HAVE_STDINT_H 737# include <stdint.h> 738#endif 739#ifdef HAVE_UNISTD_H 740# include <unistd.h> 741#endif" 742 743gt_needs= 744ac_subst_vars='am__EXEEXT_FALSE 745am__EXEEXT_TRUE 746LTLIBOBJS 747LIBOBJS 748GTK_LIBS 749GTK_CFLAGS 750GLIB_LIBS 751GLIB_CFLAGS 752PKG_CONFIG_LIBDIR 753PKG_CONFIG_PATH 754POSUB 755LTLIBINTL 756LIBINTL 757INTLLIBS 758LTLIBICONV 759LIBICONV 760INTL_MACOSX_LIBS 761XGETTEXT_EXTRA_OPTIONS 762MSGMERGE 763XGETTEXT_015 764XGETTEXT 765GMSGFMT_015 766MSGFMT_015 767GMSGFMT 768MSGFMT 769GETTEXT_MACRO_VERSION 770USE_NLS 771GETTEXT_PACKAGE 772OTOOL64 773OTOOL 774LIPO 775NMEDIT 776DSYMUTIL 777lt_ECHO 778RANLIB 779AR 780OBJDUMP 781LN_S 782NM 783ac_ct_DUMPBIN 784DUMPBIN 785LD 786FGREP 787EGREP 788GREP 789SED 790host_os 791host_vendor 792host_cpu 793host 794build_os 795build_vendor 796build_cpu 797build 798LIBTOOL 799CPP 800am__fastdepCC_FALSE 801am__fastdepCC_TRUE 802CCDEPMODE 803AMDEPBACKSLASH 804AMDEP_FALSE 805AMDEP_TRUE 806am__quote 807am__include 808DEPDIR 809OBJEXT 810EXEEXT 811ac_ct_CC 812CPPFLAGS 813LDFLAGS 814CFLAGS 815CC 816MAINT 817MAINTAINER_MODE_FALSE 818MAINTAINER_MODE_TRUE 819LT_AGE 820LT_REVISION 821LT_CURRENT 822LT_RELEASE 823PKG_CONFIG 824EXTRA_VERSION 825MICRO_VERSION 826MINOR_VERSION 827MAJOR_VERSION 828am__untar 829am__tar 830AMTAR 831am__leading_dot 832SET_MAKE 833AWK 834mkdir_p 835MKDIR_P 836INSTALL_STRIP_PROGRAM 837STRIP 838install_sh 839MAKEINFO 840AUTOHEADER 841AUTOMAKE 842AUTOCONF 843ACLOCAL 844VERSION 845PACKAGE 846CYGPATH_W 847am__isrc 848INSTALL_DATA 849INSTALL_SCRIPT 850INSTALL_PROGRAM 851target_alias 852host_alias 853build_alias 854LIBS 855ECHO_T 856ECHO_N 857ECHO_C 858DEFS 859mandir 860localedir 861libdir 862psdir 863pdfdir 864dvidir 865htmldir 866infodir 867docdir 868oldincludedir 869includedir 870localstatedir 871sharedstatedir 872sysconfdir 873datadir 874datarootdir 875libexecdir 876sbindir 877bindir 878program_transform_name 879prefix 880exec_prefix 881PACKAGE_URL 882PACKAGE_BUGREPORT 883PACKAGE_STRING 884PACKAGE_VERSION 885PACKAGE_TARNAME 886PACKAGE_NAME 887PATH_SEPARATOR 888SHELL' 889ac_subst_files='' 890ac_user_opts=' 891enable_option_checking 892enable_maintainer_mode 893enable_dependency_tracking 894enable_shared 895enable_static 896with_pic 897enable_fast_install 898with_gnu_ld 899enable_libtool_lock 900enable_nls 901enable_rpath 902with_libiconv_prefix 903with_libintl_prefix 904enable_deprecated 905' 906 ac_precious_vars='build_alias 907host_alias 908target_alias 909CC 910CFLAGS 911LDFLAGS 912LIBS 913CPPFLAGS 914CPP 915PKG_CONFIG 916PKG_CONFIG_PATH 917PKG_CONFIG_LIBDIR 918GLIB_CFLAGS 919GLIB_LIBS 920GTK_CFLAGS 921GTK_LIBS' 922 923 924# Initialize some variables set by options. 925ac_init_help= 926ac_init_version=false 927ac_unrecognized_opts= 928ac_unrecognized_sep= 929# The variables have the same names as the options, with 930# dashes changed to underlines. 931cache_file=/dev/null 932exec_prefix=NONE 933no_create= 934no_recursion= 935prefix=NONE 936program_prefix=NONE 937program_suffix=NONE 938program_transform_name=s,x,x, 939silent= 940site= 941srcdir= 942verbose= 943x_includes=NONE 944x_libraries=NONE 945 946# Installation directory options. 947# These are left unexpanded so users can "make install exec_prefix=/foo" 948# and all the variables that are supposed to be based on exec_prefix 949# by default will actually change. 950# Use braces instead of parens because sh, perl, etc. also accept them. 951# (The list follows the same order as the GNU Coding Standards.) 952bindir='${exec_prefix}/bin' 953sbindir='${exec_prefix}/sbin' 954libexecdir='${exec_prefix}/libexec' 955datarootdir='${prefix}/share' 956datadir='${datarootdir}' 957sysconfdir='${prefix}/etc' 958sharedstatedir='${prefix}/com' 959localstatedir='${prefix}/var' 960includedir='${prefix}/include' 961oldincludedir='/usr/include' 962docdir='${datarootdir}/doc/${PACKAGE}' 963infodir='${datarootdir}/info' 964htmldir='${docdir}' 965dvidir='${docdir}' 966pdfdir='${docdir}' 967psdir='${docdir}' 968libdir='${exec_prefix}/lib' 969localedir='${datarootdir}/locale' 970mandir='${datarootdir}/man' 971 972ac_prev= 973ac_dashdash= 974for ac_option 975do 976 # If the previous option needs an argument, assign it. 977 if test -n "$ac_prev"; then 978 eval $ac_prev=\$ac_option 979 ac_prev= 980 continue 981 fi 982 983 case $ac_option in 984 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 985 *=) ac_optarg= ;; 986 *) ac_optarg=yes ;; 987 esac 988 989 # Accept the important Cygnus configure options, so we can diagnose typos. 990 991 case $ac_dashdash$ac_option in 992 --) 993 ac_dashdash=yes ;; 994 995 -bindir | --bindir | --bindi | --bind | --bin | --bi) 996 ac_prev=bindir ;; 997 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 998 bindir=$ac_optarg ;; 999 1000 -build | --build | --buil | --bui | --bu) 1001 ac_prev=build_alias ;; 1002 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1003 build_alias=$ac_optarg ;; 1004 1005 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1006 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1007 ac_prev=cache_file ;; 1008 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1009 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1010 cache_file=$ac_optarg ;; 1011 1012 --config-cache | -C) 1013 cache_file=config.cache ;; 1014 1015 -datadir | --datadir | --datadi | --datad) 1016 ac_prev=datadir ;; 1017 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1018 datadir=$ac_optarg ;; 1019 1020 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1021 | --dataroo | --dataro | --datar) 1022 ac_prev=datarootdir ;; 1023 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1024 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1025 datarootdir=$ac_optarg ;; 1026 1027 -disable-* | --disable-*) 1028 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1029 # Reject names that are not valid shell variable names. 1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1031 as_fn_error $? "invalid feature name: $ac_useropt" 1032 ac_useropt_orig=$ac_useropt 1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1034 case $ac_user_opts in 1035 *" 1036"enable_$ac_useropt" 1037"*) ;; 1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1039 ac_unrecognized_sep=', ';; 1040 esac 1041 eval enable_$ac_useropt=no ;; 1042 1043 -docdir | --docdir | --docdi | --doc | --do) 1044 ac_prev=docdir ;; 1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1046 docdir=$ac_optarg ;; 1047 1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1049 ac_prev=dvidir ;; 1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1051 dvidir=$ac_optarg ;; 1052 1053 -enable-* | --enable-*) 1054 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1055 # Reject names that are not valid shell variable names. 1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1057 as_fn_error $? "invalid feature name: $ac_useropt" 1058 ac_useropt_orig=$ac_useropt 1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1060 case $ac_user_opts in 1061 *" 1062"enable_$ac_useropt" 1063"*) ;; 1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1065 ac_unrecognized_sep=', ';; 1066 esac 1067 eval enable_$ac_useropt=\$ac_optarg ;; 1068 1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1071 | --exec | --exe | --ex) 1072 ac_prev=exec_prefix ;; 1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1075 | --exec=* | --exe=* | --ex=*) 1076 exec_prefix=$ac_optarg ;; 1077 1078 -gas | --gas | --ga | --g) 1079 # Obsolete; use --with-gas. 1080 with_gas=yes ;; 1081 1082 -help | --help | --hel | --he | -h) 1083 ac_init_help=long ;; 1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1085 ac_init_help=recursive ;; 1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1087 ac_init_help=short ;; 1088 1089 -host | --host | --hos | --ho) 1090 ac_prev=host_alias ;; 1091 -host=* | --host=* | --hos=* | --ho=*) 1092 host_alias=$ac_optarg ;; 1093 1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1095 ac_prev=htmldir ;; 1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1097 | --ht=*) 1098 htmldir=$ac_optarg ;; 1099 1100 -includedir | --includedir | --includedi | --included | --include \ 1101 | --includ | --inclu | --incl | --inc) 1102 ac_prev=includedir ;; 1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1104 | --includ=* | --inclu=* | --incl=* | --inc=*) 1105 includedir=$ac_optarg ;; 1106 1107 -infodir | --infodir | --infodi | --infod | --info | --inf) 1108 ac_prev=infodir ;; 1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1110 infodir=$ac_optarg ;; 1111 1112 -libdir | --libdir | --libdi | --libd) 1113 ac_prev=libdir ;; 1114 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1115 libdir=$ac_optarg ;; 1116 1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1118 | --libexe | --libex | --libe) 1119 ac_prev=libexecdir ;; 1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1121 | --libexe=* | --libex=* | --libe=*) 1122 libexecdir=$ac_optarg ;; 1123 1124 -localedir | --localedir | --localedi | --localed | --locale) 1125 ac_prev=localedir ;; 1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1127 localedir=$ac_optarg ;; 1128 1129 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1130 | --localstate | --localstat | --localsta | --localst | --locals) 1131 ac_prev=localstatedir ;; 1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1134 localstatedir=$ac_optarg ;; 1135 1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1137 ac_prev=mandir ;; 1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1139 mandir=$ac_optarg ;; 1140 1141 -nfp | --nfp | --nf) 1142 # Obsolete; use --without-fp. 1143 with_fp=no ;; 1144 1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1146 | --no-cr | --no-c | -n) 1147 no_create=yes ;; 1148 1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1151 no_recursion=yes ;; 1152 1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1155 | --oldin | --oldi | --old | --ol | --o) 1156 ac_prev=oldincludedir ;; 1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1160 oldincludedir=$ac_optarg ;; 1161 1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1163 ac_prev=prefix ;; 1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1165 prefix=$ac_optarg ;; 1166 1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1168 | --program-pre | --program-pr | --program-p) 1169 ac_prev=program_prefix ;; 1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1172 program_prefix=$ac_optarg ;; 1173 1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1175 | --program-suf | --program-su | --program-s) 1176 ac_prev=program_suffix ;; 1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1179 program_suffix=$ac_optarg ;; 1180 1181 -program-transform-name | --program-transform-name \ 1182 | --program-transform-nam | --program-transform-na \ 1183 | --program-transform-n | --program-transform- \ 1184 | --program-transform | --program-transfor \ 1185 | --program-transfo | --program-transf \ 1186 | --program-trans | --program-tran \ 1187 | --progr-tra | --program-tr | --program-t) 1188 ac_prev=program_transform_name ;; 1189 -program-transform-name=* | --program-transform-name=* \ 1190 | --program-transform-nam=* | --program-transform-na=* \ 1191 | --program-transform-n=* | --program-transform-=* \ 1192 | --program-transform=* | --program-transfor=* \ 1193 | --program-transfo=* | --program-transf=* \ 1194 | --program-trans=* | --program-tran=* \ 1195 | --progr-tra=* | --program-tr=* | --program-t=*) 1196 program_transform_name=$ac_optarg ;; 1197 1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1199 ac_prev=pdfdir ;; 1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1201 pdfdir=$ac_optarg ;; 1202 1203 -psdir | --psdir | --psdi | --psd | --ps) 1204 ac_prev=psdir ;; 1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1206 psdir=$ac_optarg ;; 1207 1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1209 | -silent | --silent | --silen | --sile | --sil) 1210 silent=yes ;; 1211 1212 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1213 ac_prev=sbindir ;; 1214 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1215 | --sbi=* | --sb=*) 1216 sbindir=$ac_optarg ;; 1217 1218 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1219 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1220 | --sharedst | --shareds | --shared | --share | --shar \ 1221 | --sha | --sh) 1222 ac_prev=sharedstatedir ;; 1223 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1224 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1225 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1226 | --sha=* | --sh=*) 1227 sharedstatedir=$ac_optarg ;; 1228 1229 -site | --site | --sit) 1230 ac_prev=site ;; 1231 -site=* | --site=* | --sit=*) 1232 site=$ac_optarg ;; 1233 1234 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1235 ac_prev=srcdir ;; 1236 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1237 srcdir=$ac_optarg ;; 1238 1239 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1240 | --syscon | --sysco | --sysc | --sys | --sy) 1241 ac_prev=sysconfdir ;; 1242 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1243 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1244 sysconfdir=$ac_optarg ;; 1245 1246 -target | --target | --targe | --targ | --tar | --ta | --t) 1247 ac_prev=target_alias ;; 1248 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1249 target_alias=$ac_optarg ;; 1250 1251 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1252 verbose=yes ;; 1253 1254 -version | --version | --versio | --versi | --vers | -V) 1255 ac_init_version=: ;; 1256 1257 -with-* | --with-*) 1258 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1259 # Reject names that are not valid shell variable names. 1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1261 as_fn_error $? "invalid package name: $ac_useropt" 1262 ac_useropt_orig=$ac_useropt 1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1264 case $ac_user_opts in 1265 *" 1266"with_$ac_useropt" 1267"*) ;; 1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1269 ac_unrecognized_sep=', ';; 1270 esac 1271 eval with_$ac_useropt=\$ac_optarg ;; 1272 1273 -without-* | --without-*) 1274 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1275 # Reject names that are not valid shell variable names. 1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1277 as_fn_error $? "invalid package name: $ac_useropt" 1278 ac_useropt_orig=$ac_useropt 1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1280 case $ac_user_opts in 1281 *" 1282"with_$ac_useropt" 1283"*) ;; 1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1285 ac_unrecognized_sep=', ';; 1286 esac 1287 eval with_$ac_useropt=no ;; 1288 1289 --x) 1290 # Obsolete; use --with-x. 1291 with_x=yes ;; 1292 1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1294 | --x-incl | --x-inc | --x-in | --x-i) 1295 ac_prev=x_includes ;; 1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1298 x_includes=$ac_optarg ;; 1299 1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1302 ac_prev=x_libraries ;; 1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1305 x_libraries=$ac_optarg ;; 1306 1307 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1308Try \`$0 --help' for more information" 1309 ;; 1310 1311 *=*) 1312 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1313 # Reject names that are not valid shell variable names. 1314 case $ac_envvar in #( 1315 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1316 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1317 esac 1318 eval $ac_envvar=\$ac_optarg 1319 export $ac_envvar ;; 1320 1321 *) 1322 # FIXME: should be removed in autoconf 3.0. 1323 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1325 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1326 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1327 ;; 1328 1329 esac 1330done 1331 1332if test -n "$ac_prev"; then 1333 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1334 as_fn_error $? "missing argument to $ac_option" 1335fi 1336 1337if test -n "$ac_unrecognized_opts"; then 1338 case $enable_option_checking in 1339 no) ;; 1340 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1341 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1342 esac 1343fi 1344 1345# Check all directory arguments for consistency. 1346for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1347 datadir sysconfdir sharedstatedir localstatedir includedir \ 1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1349 libdir localedir mandir 1350do 1351 eval ac_val=\$$ac_var 1352 # Remove trailing slashes. 1353 case $ac_val in 1354 */ ) 1355 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1356 eval $ac_var=\$ac_val;; 1357 esac 1358 # Be sure to have absolute directory names. 1359 case $ac_val in 1360 [\\/$]* | ?:[\\/]* ) continue;; 1361 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1362 esac 1363 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1364done 1365 1366# There might be people who depend on the old broken behavior: `$host' 1367# used to hold the argument of --host etc. 1368# FIXME: To remove some day. 1369build=$build_alias 1370host=$host_alias 1371target=$target_alias 1372 1373# FIXME: To remove some day. 1374if test "x$host_alias" != x; then 1375 if test "x$build_alias" = x; then 1376 cross_compiling=maybe 1377 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1378 If a cross compiler is detected then cross compile mode will be used" >&2 1379 elif test "x$build_alias" != "x$host_alias"; then 1380 cross_compiling=yes 1381 fi 1382fi 1383 1384ac_tool_prefix= 1385test -n "$host_alias" && ac_tool_prefix=$host_alias- 1386 1387test "$silent" = yes && exec 6>/dev/null 1388 1389 1390ac_pwd=`pwd` && test -n "$ac_pwd" && 1391ac_ls_di=`ls -di .` && 1392ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1393 as_fn_error $? "working directory cannot be determined" 1394test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1395 as_fn_error $? "pwd does not report name of working directory" 1396 1397 1398# Find the source files, if location was not specified. 1399if test -z "$srcdir"; then 1400 ac_srcdir_defaulted=yes 1401 # Try the directory containing this script, then the parent directory. 1402 ac_confdir=`$as_dirname -- "$as_myself" || 1403$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1404 X"$as_myself" : 'X\(//\)[^/]' \| \ 1405 X"$as_myself" : 'X\(//\)$' \| \ 1406 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1407$as_echo X"$as_myself" | 1408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1409 s//\1/ 1410 q 1411 } 1412 /^X\(\/\/\)[^/].*/{ 1413 s//\1/ 1414 q 1415 } 1416 /^X\(\/\/\)$/{ 1417 s//\1/ 1418 q 1419 } 1420 /^X\(\/\).*/{ 1421 s//\1/ 1422 q 1423 } 1424 s/.*/./; q'` 1425 srcdir=$ac_confdir 1426 if test ! -r "$srcdir/$ac_unique_file"; then 1427 srcdir=.. 1428 fi 1429else 1430 ac_srcdir_defaulted=no 1431fi 1432if test ! -r "$srcdir/$ac_unique_file"; then 1433 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1434 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1435fi 1436ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1437ac_abs_confdir=`( 1438 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1439 pwd)` 1440# When building in place, set srcdir=. 1441if test "$ac_abs_confdir" = "$ac_pwd"; then 1442 srcdir=. 1443fi 1444# Remove unnecessary trailing slashes from srcdir. 1445# Double slashes in file names in object file debugging info 1446# mess up M-x gdb in Emacs. 1447case $srcdir in 1448*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1449esac 1450for ac_var in $ac_precious_vars; do 1451 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1452 eval ac_env_${ac_var}_value=\$${ac_var} 1453 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1454 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1455done 1456 1457# 1458# Report the --help message. 1459# 1460if test "$ac_init_help" = "long"; then 1461 # Omit some internal or obsolete options to make the list less imposing. 1462 # This message is too long to be a string in the A/UX 3.1 sh. 1463 cat <<_ACEOF 1464\`configure' configures this package to adapt to many kinds of systems. 1465 1466Usage: $0 [OPTION]... [VAR=VALUE]... 1467 1468To assign environment variables (e.g., CC, CFLAGS...), specify them as 1469VAR=VALUE. See below for descriptions of some of the useful variables. 1470 1471Defaults for the options are specified in brackets. 1472 1473Configuration: 1474 -h, --help display this help and exit 1475 --help=short display options specific to this package 1476 --help=recursive display the short help of all the included packages 1477 -V, --version display version information and exit 1478 -q, --quiet, --silent do not print \`checking ...' messages 1479 --cache-file=FILE cache test results in FILE [disabled] 1480 -C, --config-cache alias for \`--cache-file=config.cache' 1481 -n, --no-create do not create output files 1482 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1483 1484Installation directories: 1485 --prefix=PREFIX install architecture-independent files in PREFIX 1486 [$ac_default_prefix] 1487 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1488 [PREFIX] 1489 1490By default, \`make install' will install all the files in 1491\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1492an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1493for instance \`--prefix=\$HOME'. 1494 1495For better control, use the options below. 1496 1497Fine tuning of the installation directories: 1498 --bindir=DIR user executables [EPREFIX/bin] 1499 --sbindir=DIR system admin executables [EPREFIX/sbin] 1500 --libexecdir=DIR program executables [EPREFIX/libexec] 1501 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1502 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1503 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1504 --libdir=DIR object code libraries [EPREFIX/lib] 1505 --includedir=DIR C header files [PREFIX/include] 1506 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1507 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1508 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1509 --infodir=DIR info documentation [DATAROOTDIR/info] 1510 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1511 --mandir=DIR man documentation [DATAROOTDIR/man] 1512 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1513 --htmldir=DIR html documentation [DOCDIR] 1514 --dvidir=DIR dvi documentation [DOCDIR] 1515 --pdfdir=DIR pdf documentation [DOCDIR] 1516 --psdir=DIR ps documentation [DOCDIR] 1517_ACEOF 1518 1519 cat <<\_ACEOF 1520 1521Program names: 1522 --program-prefix=PREFIX prepend PREFIX to installed program names 1523 --program-suffix=SUFFIX append SUFFIX to installed program names 1524 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1525 1526System types: 1527 --build=BUILD configure for building on BUILD [guessed] 1528 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1529_ACEOF 1530fi 1531 1532if test -n "$ac_init_help"; then 1533 1534 cat <<\_ACEOF 1535 1536Optional Features: 1537 --disable-option-checking ignore unrecognized --enable/--with options 1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1540 --enable-maintainer-mode enable make rules and dependencies not useful 1541 (and sometimes confusing) to the casual installer 1542 --disable-dependency-tracking speeds up one-time build 1543 --enable-dependency-tracking do not reject slow dependency extractors 1544 --enable-shared[=PKGS] build shared libraries [default=yes] 1545 --enable-static[=PKGS] build static libraries [default=yes] 1546 --enable-fast-install[=PKGS] 1547 optimize for fast installation [default=yes] 1548 --disable-libtool-lock avoid locking (might break parallel builds) 1549 --disable-nls do not use Native Language Support 1550 --disable-rpath do not hardcode runtime library paths 1551 --disable-deprecated Disable deprecated GTK functions. 1552 1553Optional Packages: 1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1556 --with-pic try to use only PIC/non-PIC objects [default=use 1557 both] 1558 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1559 --with-gnu-ld assume the C compiler uses GNU ld default=no 1560 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1561 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1562 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1563 --without-libintl-prefix don't search for libintl in includedir and libdir 1564 1565Some influential environment variables: 1566 CC C compiler command 1567 CFLAGS C compiler flags 1568 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1569 nonstandard directory <lib dir> 1570 LIBS libraries to pass to the linker, e.g. -l<library> 1571 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1572 you have headers in a nonstandard directory <include dir> 1573 CPP C preprocessor 1574 PKG_CONFIG path to pkg-config utility 1575 PKG_CONFIG_PATH 1576 directories to add to pkg-config's search path 1577 PKG_CONFIG_LIBDIR 1578 path overriding pkg-config's built-in search path 1579 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1580 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1581 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config 1582 GTK_LIBS linker flags for GTK, overriding pkg-config 1583 1584Use these variables to override the choices made by `configure' or to help 1585it to find libraries and programs with nonstandard names/locations. 1586 1587Report bugs to the package provider. 1588_ACEOF 1589ac_status=$? 1590fi 1591 1592if test "$ac_init_help" = "recursive"; then 1593 # If there are subdirs, report their specific --help. 1594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1595 test -d "$ac_dir" || 1596 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1597 continue 1598 ac_builddir=. 1599 1600case "$ac_dir" in 1601.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1602*) 1603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1604 # A ".." for each directory in $ac_dir_suffix. 1605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1606 case $ac_top_builddir_sub in 1607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1609 esac ;; 1610esac 1611ac_abs_top_builddir=$ac_pwd 1612ac_abs_builddir=$ac_pwd$ac_dir_suffix 1613# for backward compatibility: 1614ac_top_builddir=$ac_top_build_prefix 1615 1616case $srcdir in 1617 .) # We are building in place. 1618 ac_srcdir=. 1619 ac_top_srcdir=$ac_top_builddir_sub 1620 ac_abs_top_srcdir=$ac_pwd ;; 1621 [\\/]* | ?:[\\/]* ) # Absolute name. 1622 ac_srcdir=$srcdir$ac_dir_suffix; 1623 ac_top_srcdir=$srcdir 1624 ac_abs_top_srcdir=$srcdir ;; 1625 *) # Relative name. 1626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1627 ac_top_srcdir=$ac_top_build_prefix$srcdir 1628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1629esac 1630ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1631 1632 cd "$ac_dir" || { ac_status=$?; continue; } 1633 # Check for guested configure. 1634 if test -f "$ac_srcdir/configure.gnu"; then 1635 echo && 1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1637 elif test -f "$ac_srcdir/configure"; then 1638 echo && 1639 $SHELL "$ac_srcdir/configure" --help=recursive 1640 else 1641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1642 fi || ac_status=$? 1643 cd "$ac_pwd" || { ac_status=$?; break; } 1644 done 1645fi 1646 1647test -n "$ac_init_help" && exit $ac_status 1648if $ac_init_version; then 1649 cat <<\_ACEOF 1650configure 1651generated by GNU Autoconf 2.67 1652 1653Copyright (C) 2010 Free Software Foundation, Inc. 1654This configure script is free software; the Free Software Foundation 1655gives unlimited permission to copy, distribute and modify it. 1656_ACEOF 1657 exit 1658fi 1659 1660## ------------------------ ## 1661## Autoconf initialization. ## 1662## ------------------------ ## 1663 1664# ac_fn_c_try_compile LINENO 1665# -------------------------- 1666# Try to compile conftest.$ac_ext, and return whether this succeeded. 1667ac_fn_c_try_compile () 1668{ 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 rm -f conftest.$ac_objext 1671 if { { ac_try="$ac_compile" 1672case "(($ac_try" in 1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1674 *) ac_try_echo=$ac_try;; 1675esac 1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1677$as_echo "$ac_try_echo"; } >&5 1678 (eval "$ac_compile") 2>conftest.err 1679 ac_status=$? 1680 if test -s conftest.err; then 1681 grep -v '^ *+' conftest.err >conftest.er1 1682 cat conftest.er1 >&5 1683 mv -f conftest.er1 conftest.err 1684 fi 1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1686 test $ac_status = 0; } && { 1687 test -z "$ac_c_werror_flag" || 1688 test ! -s conftest.err 1689 } && test -s conftest.$ac_objext; then : 1690 ac_retval=0 1691else 1692 $as_echo "$as_me: failed program was:" >&5 1693sed 's/^/| /' conftest.$ac_ext >&5 1694 1695 ac_retval=1 1696fi 1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1698 as_fn_set_status $ac_retval 1699 1700} # ac_fn_c_try_compile 1701 1702# ac_fn_c_try_link LINENO 1703# ----------------------- 1704# Try to link conftest.$ac_ext, and return whether this succeeded. 1705ac_fn_c_try_link () 1706{ 1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1708 rm -f conftest.$ac_objext conftest$ac_exeext 1709 if { { ac_try="$ac_link" 1710case "(($ac_try" in 1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1712 *) ac_try_echo=$ac_try;; 1713esac 1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1715$as_echo "$ac_try_echo"; } >&5 1716 (eval "$ac_link") 2>conftest.err 1717 ac_status=$? 1718 if test -s conftest.err; then 1719 grep -v '^ *+' conftest.err >conftest.er1 1720 cat conftest.er1 >&5 1721 mv -f conftest.er1 conftest.err 1722 fi 1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1724 test $ac_status = 0; } && { 1725 test -z "$ac_c_werror_flag" || 1726 test ! -s conftest.err 1727 } && test -s conftest$ac_exeext && { 1728 test "$cross_compiling" = yes || 1729 $as_test_x conftest$ac_exeext 1730 }; then : 1731 ac_retval=0 1732else 1733 $as_echo "$as_me: failed program was:" >&5 1734sed 's/^/| /' conftest.$ac_ext >&5 1735 1736 ac_retval=1 1737fi 1738 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1739 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1740 # interfere with the next link command; also delete a directory that is 1741 # left behind by Apple's compiler. We do this before executing the actions. 1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1744 as_fn_set_status $ac_retval 1745 1746} # ac_fn_c_try_link 1747 1748# ac_fn_c_try_cpp LINENO 1749# ---------------------- 1750# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1751ac_fn_c_try_cpp () 1752{ 1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1754 if { { ac_try="$ac_cpp conftest.$ac_ext" 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_cpp conftest.$ac_ext") 2>conftest.err 1762 ac_status=$? 1763 if test -s conftest.err; then 1764 grep -v '^ *+' conftest.err >conftest.er1 1765 cat conftest.er1 >&5 1766 mv -f conftest.er1 conftest.err 1767 fi 1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1769 test $ac_status = 0; } > conftest.i && { 1770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1771 test ! -s conftest.err 1772 }; then : 1773 ac_retval=0 1774else 1775 $as_echo "$as_me: failed program was:" >&5 1776sed 's/^/| /' conftest.$ac_ext >&5 1777 1778 ac_retval=1 1779fi 1780 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1781 as_fn_set_status $ac_retval 1782 1783} # ac_fn_c_try_cpp 1784 1785# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1786# ------------------------------------------------------- 1787# Tests whether HEADER exists and can be compiled using the include files in 1788# INCLUDES, setting the cache variable VAR accordingly. 1789ac_fn_c_check_header_compile () 1790{ 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1793$as_echo_n "checking for $2... " >&6; } 1794if eval "test \"\${$3+set}\"" = set; then : 1795 $as_echo_n "(cached) " >&6 1796else 1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1798/* end confdefs.h. */ 1799$4 1800#include <$2> 1801_ACEOF 1802if ac_fn_c_try_compile "$LINENO"; then : 1803 eval "$3=yes" 1804else 1805 eval "$3=no" 1806fi 1807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1808fi 1809eval ac_res=\$$3 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1811$as_echo "$ac_res" >&6; } 1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1813 1814} # ac_fn_c_check_header_compile 1815 1816# ac_fn_c_try_run LINENO 1817# ---------------------- 1818# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1819# that executables *can* be run. 1820ac_fn_c_try_run () 1821{ 1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1823 if { { ac_try="$ac_link" 1824case "(($ac_try" in 1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1826 *) ac_try_echo=$ac_try;; 1827esac 1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1829$as_echo "$ac_try_echo"; } >&5 1830 (eval "$ac_link") 2>&5 1831 ac_status=$? 1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1833 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1834 { { case "(($ac_try" in 1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1836 *) ac_try_echo=$ac_try;; 1837esac 1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1839$as_echo "$ac_try_echo"; } >&5 1840 (eval "$ac_try") 2>&5 1841 ac_status=$? 1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1843 test $ac_status = 0; }; }; then : 1844 ac_retval=0 1845else 1846 $as_echo "$as_me: program exited with status $ac_status" >&5 1847 $as_echo "$as_me: failed program was:" >&5 1848sed 's/^/| /' conftest.$ac_ext >&5 1849 1850 ac_retval=$ac_status 1851fi 1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1854 as_fn_set_status $ac_retval 1855 1856} # ac_fn_c_try_run 1857 1858# ac_fn_c_check_func LINENO FUNC VAR 1859# ---------------------------------- 1860# Tests whether FUNC exists, setting the cache variable VAR accordingly 1861ac_fn_c_check_func () 1862{ 1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1865$as_echo_n "checking for $2... " >&6; } 1866if eval "test \"\${$3+set}\"" = set; then : 1867 $as_echo_n "(cached) " >&6 1868else 1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1870/* end confdefs.h. */ 1871/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1872 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1873#define $2 innocuous_$2 1874 1875/* System header to define __stub macros and hopefully few prototypes, 1876 which can conflict with char $2 (); below. 1877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1878 <limits.h> exists even on freestanding compilers. */ 1879 1880#ifdef __STDC__ 1881# include <limits.h> 1882#else 1883# include <assert.h> 1884#endif 1885 1886#undef $2 1887 1888/* Override any GCC internal prototype to avoid an error. 1889 Use char because int might match the return type of a GCC 1890 builtin and then its argument prototype would still apply. */ 1891#ifdef __cplusplus 1892extern "C" 1893#endif 1894char $2 (); 1895/* The GNU C library defines this for functions which it implements 1896 to always fail with ENOSYS. Some functions are actually named 1897 something starting with __ and the normal name is an alias. */ 1898#if defined __stub_$2 || defined __stub___$2 1899choke me 1900#endif 1901 1902int 1903main () 1904{ 1905return $2 (); 1906 ; 1907 return 0; 1908} 1909_ACEOF 1910if ac_fn_c_try_link "$LINENO"; then : 1911 eval "$3=yes" 1912else 1913 eval "$3=no" 1914fi 1915rm -f core conftest.err conftest.$ac_objext \ 1916 conftest$ac_exeext conftest.$ac_ext 1917fi 1918eval ac_res=\$$3 1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1920$as_echo "$ac_res" >&6; } 1921 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1922 1923} # ac_fn_c_check_func 1924 1925# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1926# ------------------------------------------------------- 1927# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1928# the include files in INCLUDES and setting the cache variable VAR 1929# accordingly. 1930ac_fn_c_check_header_mongrel () 1931{ 1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1933 if eval "test \"\${$3+set}\"" = set; then : 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1935$as_echo_n "checking for $2... " >&6; } 1936if eval "test \"\${$3+set}\"" = set; then : 1937 $as_echo_n "(cached) " >&6 1938fi 1939eval ac_res=\$$3 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1941$as_echo "$ac_res" >&6; } 1942else 1943 # Is the header compilable? 1944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1945$as_echo_n "checking $2 usability... " >&6; } 1946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1947/* end confdefs.h. */ 1948$4 1949#include <$2> 1950_ACEOF 1951if ac_fn_c_try_compile "$LINENO"; then : 1952 ac_header_compiler=yes 1953else 1954 ac_header_compiler=no 1955fi 1956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1958$as_echo "$ac_header_compiler" >&6; } 1959 1960# Is the header present? 1961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1962$as_echo_n "checking $2 presence... " >&6; } 1963cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1964/* end confdefs.h. */ 1965#include <$2> 1966_ACEOF 1967if ac_fn_c_try_cpp "$LINENO"; then : 1968 ac_header_preproc=yes 1969else 1970 ac_header_preproc=no 1971fi 1972rm -f conftest.err conftest.i conftest.$ac_ext 1973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1974$as_echo "$ac_header_preproc" >&6; } 1975 1976# So? What about this header? 1977case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1978 yes:no: ) 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1980$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1982$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1983 ;; 1984 no:yes:* ) 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1986$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1988$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1990$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1992$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1994$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1995 ;; 1996esac 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1998$as_echo_n "checking for $2... " >&6; } 1999if eval "test \"\${$3+set}\"" = set; then : 2000 $as_echo_n "(cached) " >&6 2001else 2002 eval "$3=\$ac_header_compiler" 2003fi 2004eval ac_res=\$$3 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2006$as_echo "$ac_res" >&6; } 2007fi 2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2009 2010} # ac_fn_c_check_header_mongrel 2011 2012# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2013# ------------------------------------------- 2014# Tests whether TYPE exists after having included INCLUDES, setting cache 2015# variable VAR accordingly. 2016ac_fn_c_check_type () 2017{ 2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2020$as_echo_n "checking for $2... " >&6; } 2021if eval "test \"\${$3+set}\"" = set; then : 2022 $as_echo_n "(cached) " >&6 2023else 2024 eval "$3=no" 2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2026/* end confdefs.h. */ 2027$4 2028int 2029main () 2030{ 2031if (sizeof ($2)) 2032 return 0; 2033 ; 2034 return 0; 2035} 2036_ACEOF 2037if ac_fn_c_try_compile "$LINENO"; then : 2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2039/* end confdefs.h. */ 2040$4 2041int 2042main () 2043{ 2044if (sizeof (($2))) 2045 return 0; 2046 ; 2047 return 0; 2048} 2049_ACEOF 2050if ac_fn_c_try_compile "$LINENO"; then : 2051 2052else 2053 eval "$3=yes" 2054fi 2055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2056fi 2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2058fi 2059eval ac_res=\$$3 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2061$as_echo "$ac_res" >&6; } 2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2063 2064} # ac_fn_c_check_type 2065cat >config.log <<_ACEOF 2066This file contains any messages produced by compilers while 2067running configure, to aid debugging if configure makes a mistake. 2068 2069It was created by $as_me, which was 2070generated by GNU Autoconf 2.67. Invocation command line was 2071 2072 $ $0 $@ 2073 2074_ACEOF 2075exec 5>>config.log 2076{ 2077cat <<_ASUNAME 2078## --------- ## 2079## Platform. ## 2080## --------- ## 2081 2082hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2083uname -m = `(uname -m) 2>/dev/null || echo unknown` 2084uname -r = `(uname -r) 2>/dev/null || echo unknown` 2085uname -s = `(uname -s) 2>/dev/null || echo unknown` 2086uname -v = `(uname -v) 2>/dev/null || echo unknown` 2087 2088/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2089/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2090 2091/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2092/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2093/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2094/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2095/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2096/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2097/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2098 2099_ASUNAME 2100 2101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2102for as_dir in $PATH 2103do 2104 IFS=$as_save_IFS 2105 test -z "$as_dir" && as_dir=. 2106 $as_echo "PATH: $as_dir" 2107 done 2108IFS=$as_save_IFS 2109 2110} >&5 2111 2112cat >&5 <<_ACEOF 2113 2114 2115## ----------- ## 2116## Core tests. ## 2117## ----------- ## 2118 2119_ACEOF 2120 2121 2122# Keep a trace of the command line. 2123# Strip out --no-create and --no-recursion so they do not pile up. 2124# Strip out --silent because we don't want to record it for future runs. 2125# Also quote any args containing shell meta-characters. 2126# Make two passes to allow for proper duplicate-argument suppression. 2127ac_configure_args= 2128ac_configure_args0= 2129ac_configure_args1= 2130ac_must_keep_next=false 2131for ac_pass in 1 2 2132do 2133 for ac_arg 2134 do 2135 case $ac_arg in 2136 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2138 | -silent | --silent | --silen | --sile | --sil) 2139 continue ;; 2140 *\'*) 2141 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2142 esac 2143 case $ac_pass in 2144 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2145 2) 2146 as_fn_append ac_configure_args1 " '$ac_arg'" 2147 if test $ac_must_keep_next = true; then 2148 ac_must_keep_next=false # Got value, back to normal. 2149 else 2150 case $ac_arg in 2151 *=* | --config-cache | -C | -disable-* | --disable-* \ 2152 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2153 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2154 | -with-* | --with-* | -without-* | --without-* | --x) 2155 case "$ac_configure_args0 " in 2156 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2157 esac 2158 ;; 2159 -* ) ac_must_keep_next=true ;; 2160 esac 2161 fi 2162 as_fn_append ac_configure_args " '$ac_arg'" 2163 ;; 2164 esac 2165 done 2166done 2167{ ac_configure_args0=; unset ac_configure_args0;} 2168{ ac_configure_args1=; unset ac_configure_args1;} 2169 2170# When interrupted or exit'd, cleanup temporary files, and complete 2171# config.log. We remove comments because anyway the quotes in there 2172# would cause problems or look ugly. 2173# WARNING: Use '\'' to represent an apostrophe within the trap. 2174# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2175trap 'exit_status=$? 2176 # Save into config.log some information that might help in debugging. 2177 { 2178 echo 2179 2180 $as_echo "## ---------------- ## 2181## Cache variables. ## 2182## ---------------- ##" 2183 echo 2184 # The following way of writing the cache mishandles newlines in values, 2185( 2186 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2187 eval ac_val=\$$ac_var 2188 case $ac_val in #( 2189 *${as_nl}*) 2190 case $ac_var in #( 2191 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2192$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2193 esac 2194 case $ac_var in #( 2195 _ | IFS | as_nl) ;; #( 2196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2197 *) { eval $ac_var=; unset $ac_var;} ;; 2198 esac ;; 2199 esac 2200 done 2201 (set) 2>&1 | 2202 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2203 *${as_nl}ac_space=\ *) 2204 sed -n \ 2205 "s/'\''/'\''\\\\'\'''\''/g; 2206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2207 ;; #( 2208 *) 2209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2210 ;; 2211 esac | 2212 sort 2213) 2214 echo 2215 2216 $as_echo "## ----------------- ## 2217## Output variables. ## 2218## ----------------- ##" 2219 echo 2220 for ac_var in $ac_subst_vars 2221 do 2222 eval ac_val=\$$ac_var 2223 case $ac_val in 2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2225 esac 2226 $as_echo "$ac_var='\''$ac_val'\''" 2227 done | sort 2228 echo 2229 2230 if test -n "$ac_subst_files"; then 2231 $as_echo "## ------------------- ## 2232## File substitutions. ## 2233## ------------------- ##" 2234 echo 2235 for ac_var in $ac_subst_files 2236 do 2237 eval ac_val=\$$ac_var 2238 case $ac_val in 2239 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2240 esac 2241 $as_echo "$ac_var='\''$ac_val'\''" 2242 done | sort 2243 echo 2244 fi 2245 2246 if test -s confdefs.h; then 2247 $as_echo "## ----------- ## 2248## confdefs.h. ## 2249## ----------- ##" 2250 echo 2251 cat confdefs.h 2252 echo 2253 fi 2254 test "$ac_signal" != 0 && 2255 $as_echo "$as_me: caught signal $ac_signal" 2256 $as_echo "$as_me: exit $exit_status" 2257 } >&5 2258 rm -f core *.core core.conftest.* && 2259 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2260 exit $exit_status 2261' 0 2262for ac_signal in 1 2 13 15; do 2263 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2264done 2265ac_signal=0 2266 2267# confdefs.h avoids OS command line length limits that DEFS can exceed. 2268rm -f -r conftest* confdefs.h 2269 2270$as_echo "/* confdefs.h */" > confdefs.h 2271 2272# Predefined preprocessor variables. 2273 2274cat >>confdefs.h <<_ACEOF 2275#define PACKAGE_NAME "$PACKAGE_NAME" 2276_ACEOF 2277 2278cat >>confdefs.h <<_ACEOF 2279#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2280_ACEOF 2281 2282cat >>confdefs.h <<_ACEOF 2283#define PACKAGE_VERSION "$PACKAGE_VERSION" 2284_ACEOF 2285 2286cat >>confdefs.h <<_ACEOF 2287#define PACKAGE_STRING "$PACKAGE_STRING" 2288_ACEOF 2289 2290cat >>confdefs.h <<_ACEOF 2291#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2292_ACEOF 2293 2294cat >>confdefs.h <<_ACEOF 2295#define PACKAGE_URL "$PACKAGE_URL" 2296_ACEOF 2297 2298 2299# Let the site file select an alternate cache file if it wants to. 2300# Prefer an explicitly selected file to automatically selected ones. 2301ac_site_file1=NONE 2302ac_site_file2=NONE 2303if test -n "$CONFIG_SITE"; then 2304 # We do not want a PATH search for config.site. 2305 case $CONFIG_SITE in #(( 2306 -*) ac_site_file1=./$CONFIG_SITE;; 2307 */*) ac_site_file1=$CONFIG_SITE;; 2308 *) ac_site_file1=./$CONFIG_SITE;; 2309 esac 2310elif test "x$prefix" != xNONE; then 2311 ac_site_file1=$prefix/share/config.site 2312 ac_site_file2=$prefix/etc/config.site 2313else 2314 ac_site_file1=$ac_default_prefix/share/config.site 2315 ac_site_file2=$ac_default_prefix/etc/config.site 2316fi 2317for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2318do 2319 test "x$ac_site_file" = xNONE && continue 2320 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2322$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2323 sed 's/^/| /' "$ac_site_file" >&5 2324 . "$ac_site_file" \ 2325 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2327as_fn_error $? "failed to load site script $ac_site_file 2328See \`config.log' for more details" "$LINENO" 5 ; } 2329 fi 2330done 2331 2332if test -r "$cache_file"; then 2333 # Some versions of bash will fail to source /dev/null (special files 2334 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2335 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2337$as_echo "$as_me: loading cache $cache_file" >&6;} 2338 case $cache_file in 2339 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2340 *) . "./$cache_file";; 2341 esac 2342 fi 2343else 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2345$as_echo "$as_me: creating cache $cache_file" >&6;} 2346 >$cache_file 2347fi 2348 2349gt_needs="$gt_needs " 2350# Check that the precious variables saved in the cache have kept the same 2351# value. 2352ac_cache_corrupted=false 2353for ac_var in $ac_precious_vars; do 2354 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2355 eval ac_new_set=\$ac_env_${ac_var}_set 2356 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2357 eval ac_new_val=\$ac_env_${ac_var}_value 2358 case $ac_old_set,$ac_new_set in 2359 set,) 2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2361$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2362 ac_cache_corrupted=: ;; 2363 ,set) 2364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2365$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2366 ac_cache_corrupted=: ;; 2367 ,);; 2368 *) 2369 if test "x$ac_old_val" != "x$ac_new_val"; then 2370 # differences in whitespace do not lead to failure. 2371 ac_old_val_w=`echo x $ac_old_val` 2372 ac_new_val_w=`echo x $ac_new_val` 2373 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2375$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2376 ac_cache_corrupted=: 2377 else 2378 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2379$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2380 eval $ac_var=\$ac_old_val 2381 fi 2382 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2383$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2384 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2385$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2386 fi;; 2387 esac 2388 # Pass precious variables to config.status. 2389 if test "$ac_new_set" = set; then 2390 case $ac_new_val in 2391 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2392 *) ac_arg=$ac_var=$ac_new_val ;; 2393 esac 2394 case " $ac_configure_args " in 2395 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2396 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2397 esac 2398 fi 2399done 2400if $ac_cache_corrupted; then 2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2404$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2405 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2406fi 2407## -------------------- ## 2408## Main body of script. ## 2409## -------------------- ## 2410 2411ac_ext=c 2412ac_cpp='$CPP $CPPFLAGS' 2413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2415ac_compiler_gnu=$ac_cv_c_compiler_gnu 2416 2417 2418ac_aux_dir= 2419for ac_dir in config "$srcdir"/config; do 2420 if test -f "$ac_dir/install-sh"; then 2421 ac_aux_dir=$ac_dir 2422 ac_install_sh="$ac_aux_dir/install-sh -c" 2423 break 2424 elif test -f "$ac_dir/install.sh"; then 2425 ac_aux_dir=$ac_dir 2426 ac_install_sh="$ac_aux_dir/install.sh -c" 2427 break 2428 elif test -f "$ac_dir/shtool"; then 2429 ac_aux_dir=$ac_dir 2430 ac_install_sh="$ac_aux_dir/shtool install -c" 2431 break 2432 fi 2433done 2434if test -z "$ac_aux_dir"; then 2435 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2436fi 2437 2438# These three variables are undocumented and unsupported, 2439# and are intended to be withdrawn in a future Autoconf release. 2440# They can cause serious problems if a builder's source tree is in a directory 2441# whose full name contains unusual characters. 2442ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2443ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2444ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2445 2446 2447 2448PACKAGE=ripperX 2449 2450MAJOR_VERSION=2 2451MINOR_VERSION=7 2452MICRO_VERSION=3 2453EXTRA_VERSION= 2454 2455VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_VERSION} 2456 2457am__api_version='1.11' 2458 2459# Find a good install program. We prefer a C program (faster), 2460# so one script is as good as another. But avoid the broken or 2461# incompatible versions: 2462# SysV /etc/install, /usr/sbin/install 2463# SunOS /usr/etc/install 2464# IRIX /sbin/install 2465# AIX /bin/install 2466# AmigaOS /C/install, which installs bootblocks on floppy discs 2467# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2468# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2469# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2470# OS/2's system install, which has a completely different semantic 2471# ./install, which can be erroneously created by make from ./install.sh. 2472# Reject install programs that cannot install multiple files. 2473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2474$as_echo_n "checking for a BSD-compatible install... " >&6; } 2475if test -z "$INSTALL"; then 2476if test "${ac_cv_path_install+set}" = set; then : 2477 $as_echo_n "(cached) " >&6 2478else 2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2480for as_dir in $PATH 2481do 2482 IFS=$as_save_IFS 2483 test -z "$as_dir" && as_dir=. 2484 # Account for people who put trailing slashes in PATH elements. 2485case $as_dir/ in #(( 2486 ./ | .// | /[cC]/* | \ 2487 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2488 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2489 /usr/ucb/* ) ;; 2490 *) 2491 # OSF1 and SCO ODT 3.0 have their own names for install. 2492 # Don't use installbsd from OSF since it installs stuff as root 2493 # by default. 2494 for ac_prog in ginstall scoinst install; do 2495 for ac_exec_ext in '' $ac_executable_extensions; do 2496 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2497 if test $ac_prog = install && 2498 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2499 # AIX install. It has an incompatible calling convention. 2500 : 2501 elif test $ac_prog = install && 2502 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2503 # program-specific install script used by HP pwplus--don't use. 2504 : 2505 else 2506 rm -rf conftest.one conftest.two conftest.dir 2507 echo one > conftest.one 2508 echo two > conftest.two 2509 mkdir conftest.dir 2510 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2511 test -s conftest.one && test -s conftest.two && 2512 test -s conftest.dir/conftest.one && 2513 test -s conftest.dir/conftest.two 2514 then 2515 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2516 break 3 2517 fi 2518 fi 2519 fi 2520 done 2521 done 2522 ;; 2523esac 2524 2525 done 2526IFS=$as_save_IFS 2527 2528rm -rf conftest.one conftest.two conftest.dir 2529 2530fi 2531 if test "${ac_cv_path_install+set}" = set; then 2532 INSTALL=$ac_cv_path_install 2533 else 2534 # As a last resort, use the slow shell script. Don't cache a 2535 # value for INSTALL within a source directory, because that will 2536 # break other packages using the cache if that directory is 2537 # removed, or if the value is a relative name. 2538 INSTALL=$ac_install_sh 2539 fi 2540fi 2541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2542$as_echo "$INSTALL" >&6; } 2543 2544# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2545# It thinks the first close brace ends the variable substitution. 2546test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2547 2548test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2549 2550test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2551 2552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2553$as_echo_n "checking whether build environment is sane... " >&6; } 2554# Just in case 2555sleep 1 2556echo timestamp > conftest.file 2557# Reject unsafe characters in $srcdir or the absolute working directory 2558# name. Accept space and tab only in the latter. 2559am_lf=' 2560' 2561case `pwd` in 2562 *[\\\"\#\$\&\'\`$am_lf]*) 2563 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; 2564esac 2565case $srcdir in 2566 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2567 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; 2568esac 2569 2570# Do `set' in a subshell so we don't clobber the current shell's 2571# arguments. Must try -L first in case configure is actually a 2572# symlink; some systems play weird games with the mod time of symlinks 2573# (eg FreeBSD returns the mod time of the symlink's containing 2574# directory). 2575if ( 2576 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2577 if test "$*" = "X"; then 2578 # -L didn't work. 2579 set X `ls -t "$srcdir/configure" conftest.file` 2580 fi 2581 rm -f conftest.file 2582 if test "$*" != "X $srcdir/configure conftest.file" \ 2583 && test "$*" != "X conftest.file $srcdir/configure"; then 2584 2585 # If neither matched, then we have a broken ls. This can happen 2586 # if, for instance, CONFIG_SHELL is bash and it inherits a 2587 # broken ls alias from the environment. This has actually 2588 # happened. Such a system could not be considered "sane". 2589 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2590alias in your environment" "$LINENO" 5 2591 fi 2592 2593 test "$2" = conftest.file 2594 ) 2595then 2596 # Ok. 2597 : 2598else 2599 as_fn_error $? "newly created file is older than distributed files! 2600Check your system clock" "$LINENO" 5 2601fi 2602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2603$as_echo "yes" >&6; } 2604test "$program_prefix" != NONE && 2605 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2606# Use a double $ so make ignores it. 2607test "$program_suffix" != NONE && 2608 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2609# Double any \ or $. 2610# By default was `s,x,x', remove it if useless. 2611ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2612program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2613 2614# expand $ac_aux_dir to an absolute path 2615am_aux_dir=`cd $ac_aux_dir && pwd` 2616 2617if test x"${MISSING+set}" != xset; then 2618 case $am_aux_dir in 2619 *\ * | *\ *) 2620 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2621 *) 2622 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2623 esac 2624fi 2625# Use eval to expand $SHELL 2626if eval "$MISSING --run true"; then 2627 am_missing_run="$MISSING --run " 2628else 2629 am_missing_run= 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2631$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2632fi 2633 2634if test x"${install_sh}" != xset; then 2635 case $am_aux_dir in 2636 *\ * | *\ *) 2637 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2638 *) 2639 install_sh="\${SHELL} $am_aux_dir/install-sh" 2640 esac 2641fi 2642 2643# Installed binaries are usually stripped using `strip' when the user 2644# run `make install-strip'. However `strip' might not be the right 2645# tool to use in cross-compilation environments, therefore Automake 2646# will honor the `STRIP' environment variable to overrule this program. 2647if test "$cross_compiling" != no; then 2648 if test -n "$ac_tool_prefix"; then 2649 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2650set dummy ${ac_tool_prefix}strip; ac_word=$2 2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2652$as_echo_n "checking for $ac_word... " >&6; } 2653if test "${ac_cv_prog_STRIP+set}" = set; then : 2654 $as_echo_n "(cached) " >&6 2655else 2656 if test -n "$STRIP"; then 2657 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2658else 2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2660for as_dir in $PATH 2661do 2662 IFS=$as_save_IFS 2663 test -z "$as_dir" && as_dir=. 2664 for ac_exec_ext in '' $ac_executable_extensions; do 2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2666 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2668 break 2 2669 fi 2670done 2671 done 2672IFS=$as_save_IFS 2673 2674fi 2675fi 2676STRIP=$ac_cv_prog_STRIP 2677if test -n "$STRIP"; then 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2679$as_echo "$STRIP" >&6; } 2680else 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2682$as_echo "no" >&6; } 2683fi 2684 2685 2686fi 2687if test -z "$ac_cv_prog_STRIP"; then 2688 ac_ct_STRIP=$STRIP 2689 # Extract the first word of "strip", so it can be a program name with args. 2690set dummy strip; ac_word=$2 2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2692$as_echo_n "checking for $ac_word... " >&6; } 2693if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2694 $as_echo_n "(cached) " >&6 2695else 2696 if test -n "$ac_ct_STRIP"; then 2697 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2698else 2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2700for as_dir in $PATH 2701do 2702 IFS=$as_save_IFS 2703 test -z "$as_dir" && as_dir=. 2704 for ac_exec_ext in '' $ac_executable_extensions; do 2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2706 ac_cv_prog_ac_ct_STRIP="strip" 2707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2708 break 2 2709 fi 2710done 2711 done 2712IFS=$as_save_IFS 2713 2714fi 2715fi 2716ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2717if test -n "$ac_ct_STRIP"; then 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2719$as_echo "$ac_ct_STRIP" >&6; } 2720else 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2722$as_echo "no" >&6; } 2723fi 2724 2725 if test "x$ac_ct_STRIP" = x; then 2726 STRIP=":" 2727 else 2728 case $cross_compiling:$ac_tool_warned in 2729yes:) 2730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2732ac_tool_warned=yes ;; 2733esac 2734 STRIP=$ac_ct_STRIP 2735 fi 2736else 2737 STRIP="$ac_cv_prog_STRIP" 2738fi 2739 2740fi 2741INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2742 2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2744$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2745if test -z "$MKDIR_P"; then 2746 if test "${ac_cv_path_mkdir+set}" = set; then : 2747 $as_echo_n "(cached) " >&6 2748else 2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2750for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2751do 2752 IFS=$as_save_IFS 2753 test -z "$as_dir" && as_dir=. 2754 for ac_prog in mkdir gmkdir; do 2755 for ac_exec_ext in '' $ac_executable_extensions; do 2756 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2757 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2758 'mkdir (GNU coreutils) '* | \ 2759 'mkdir (coreutils) '* | \ 2760 'mkdir (fileutils) '4.1*) 2761 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2762 break 3;; 2763 esac 2764 done 2765 done 2766 done 2767IFS=$as_save_IFS 2768 2769fi 2770 2771 test -d ./--version && rmdir ./--version 2772 if test "${ac_cv_path_mkdir+set}" = set; then 2773 MKDIR_P="$ac_cv_path_mkdir -p" 2774 else 2775 # As a last resort, use the slow shell script. Don't cache a 2776 # value for MKDIR_P within a source directory, because that will 2777 # break other packages using the cache if that directory is 2778 # removed, or if the value is a relative name. 2779 MKDIR_P="$ac_install_sh -d" 2780 fi 2781fi 2782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2783$as_echo "$MKDIR_P" >&6; } 2784 2785mkdir_p="$MKDIR_P" 2786case $mkdir_p in 2787 [\\/$]* | ?:[\\/]*) ;; 2788 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2789esac 2790 2791for ac_prog in gawk mawk nawk awk 2792do 2793 # Extract the first word of "$ac_prog", so it can be a program name with args. 2794set dummy $ac_prog; ac_word=$2 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2796$as_echo_n "checking for $ac_word... " >&6; } 2797if test "${ac_cv_prog_AWK+set}" = set; then : 2798 $as_echo_n "(cached) " >&6 2799else 2800 if test -n "$AWK"; then 2801 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2802else 2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2804for as_dir in $PATH 2805do 2806 IFS=$as_save_IFS 2807 test -z "$as_dir" && as_dir=. 2808 for ac_exec_ext in '' $ac_executable_extensions; do 2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2810 ac_cv_prog_AWK="$ac_prog" 2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2812 break 2 2813 fi 2814done 2815 done 2816IFS=$as_save_IFS 2817 2818fi 2819fi 2820AWK=$ac_cv_prog_AWK 2821if test -n "$AWK"; then 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2823$as_echo "$AWK" >&6; } 2824else 2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2826$as_echo "no" >&6; } 2827fi 2828 2829 2830 test -n "$AWK" && break 2831done 2832 2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2834$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2835set x ${MAKE-make} 2836ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2837if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 2838 $as_echo_n "(cached) " >&6 2839else 2840 cat >conftest.make <<\_ACEOF 2841SHELL = /bin/sh 2842all: 2843 @echo '@@@%%%=$(MAKE)=@@@%%%' 2844_ACEOF 2845# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2846case `${MAKE-make} -f conftest.make 2>/dev/null` in 2847 *@@@%%%=?*=@@@%%%*) 2848 eval ac_cv_prog_make_${ac_make}_set=yes;; 2849 *) 2850 eval ac_cv_prog_make_${ac_make}_set=no;; 2851esac 2852rm -f conftest.make 2853fi 2854if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2856$as_echo "yes" >&6; } 2857 SET_MAKE= 2858else 2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2860$as_echo "no" >&6; } 2861 SET_MAKE="MAKE=${MAKE-make}" 2862fi 2863 2864rm -rf .tst 2>/dev/null 2865mkdir .tst 2>/dev/null 2866if test -d .tst; then 2867 am__leading_dot=. 2868else 2869 am__leading_dot=_ 2870fi 2871rmdir .tst 2>/dev/null 2872 2873if test "`cd $srcdir && pwd`" != "`pwd`"; then 2874 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2875 # is not polluted with repeated "-I." 2876 am__isrc=' -I$(srcdir)' 2877 # test to see if srcdir already configured 2878 if test -f $srcdir/config.status; then 2879 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2880 fi 2881fi 2882 2883# test whether we have cygpath 2884if test -z "$CYGPATH_W"; then 2885 if (cygpath --version) >/dev/null 2>/dev/null; then 2886 CYGPATH_W='cygpath -w' 2887 else 2888 CYGPATH_W=echo 2889 fi 2890fi 2891 2892 2893# Define the identity of the package. 2894 PACKAGE=$PACKAGE 2895 VERSION=$VERSION 2896 2897 2898# Some tools Automake needs. 2899 2900ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2901 2902 2903AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2904 2905 2906AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2907 2908 2909AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2910 2911 2912MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2913 2914# We need awk for the "check" target. The system "awk" is bad on 2915# some platforms. 2916# Always define AMTAR for backward compatibility. 2917 2918AMTAR=${AMTAR-"${am_missing_run}tar"} 2919 2920am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933# Extract the first word of "pkg-config", so it can be a program name with args. 2934set dummy pkg-config; ac_word=$2 2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2936$as_echo_n "checking for $ac_word... " >&6; } 2937if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 2938 $as_echo_n "(cached) " >&6 2939else 2940 case $PKG_CONFIG in 2941 [\\/]* | ?:[\\/]*) 2942 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 2943 ;; 2944 *) 2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2946for as_dir in $PATH 2947do 2948 IFS=$as_save_IFS 2949 test -z "$as_dir" && as_dir=. 2950 for ac_exec_ext in '' $ac_executable_extensions; do 2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2952 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2954 break 2 2955 fi 2956done 2957 done 2958IFS=$as_save_IFS 2959 2960 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 2961 ;; 2962esac 2963fi 2964PKG_CONFIG=$ac_cv_path_PKG_CONFIG 2965if test -n "$PKG_CONFIG"; then 2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 2967$as_echo "$PKG_CONFIG" >&6; } 2968else 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2970$as_echo "no" >&6; } 2971fi 2972 2973 2974if test x$PKG_CONFIG = xno ; then 2975 as_fn_error $? "*** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/" "$LINENO" 5 2976fi 2977 2978LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION 2979LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE` 2980LT_REVISION=$INTERFACE_AGE 2981LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE` 2982 2983 2984 2985 2986 2987ac_config_headers="$ac_config_headers config.h" 2988 2989 2990 2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2992$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2993 # Check whether --enable-maintainer-mode was given. 2994if test "${enable_maintainer_mode+set}" = set; then : 2995 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2996else 2997 USE_MAINTAINER_MODE=no 2998fi 2999 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3001$as_echo "$USE_MAINTAINER_MODE" >&6; } 3002 if test $USE_MAINTAINER_MODE = yes; then 3003 MAINTAINER_MODE_TRUE= 3004 MAINTAINER_MODE_FALSE='#' 3005else 3006 MAINTAINER_MODE_TRUE='#' 3007 MAINTAINER_MODE_FALSE= 3008fi 3009 3010 MAINT=$MAINTAINER_MODE_TRUE 3011 3012 3013 3014ac_ext=c 3015ac_cpp='$CPP $CPPFLAGS' 3016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3018ac_compiler_gnu=$ac_cv_c_compiler_gnu 3019if test -n "$ac_tool_prefix"; then 3020 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3021set dummy ${ac_tool_prefix}gcc; ac_word=$2 3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3023$as_echo_n "checking for $ac_word... " >&6; } 3024if test "${ac_cv_prog_CC+set}" = set; then : 3025 $as_echo_n "(cached) " >&6 3026else 3027 if test -n "$CC"; then 3028 ac_cv_prog_CC="$CC" # Let the user override the test. 3029else 3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3031for as_dir in $PATH 3032do 3033 IFS=$as_save_IFS 3034 test -z "$as_dir" && as_dir=. 3035 for ac_exec_ext in '' $ac_executable_extensions; do 3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3037 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3039 break 2 3040 fi 3041done 3042 done 3043IFS=$as_save_IFS 3044 3045fi 3046fi 3047CC=$ac_cv_prog_CC 3048if test -n "$CC"; then 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3050$as_echo "$CC" >&6; } 3051else 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3053$as_echo "no" >&6; } 3054fi 3055 3056 3057fi 3058if test -z "$ac_cv_prog_CC"; then 3059 ac_ct_CC=$CC 3060 # Extract the first word of "gcc", so it can be a program name with args. 3061set dummy gcc; ac_word=$2 3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3063$as_echo_n "checking for $ac_word... " >&6; } 3064if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3065 $as_echo_n "(cached) " >&6 3066else 3067 if test -n "$ac_ct_CC"; then 3068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3069else 3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3071for as_dir in $PATH 3072do 3073 IFS=$as_save_IFS 3074 test -z "$as_dir" && as_dir=. 3075 for ac_exec_ext in '' $ac_executable_extensions; do 3076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3077 ac_cv_prog_ac_ct_CC="gcc" 3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3079 break 2 3080 fi 3081done 3082 done 3083IFS=$as_save_IFS 3084 3085fi 3086fi 3087ac_ct_CC=$ac_cv_prog_ac_ct_CC 3088if test -n "$ac_ct_CC"; then 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3090$as_echo "$ac_ct_CC" >&6; } 3091else 3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3093$as_echo "no" >&6; } 3094fi 3095 3096 if test "x$ac_ct_CC" = x; then 3097 CC="" 3098 else 3099 case $cross_compiling:$ac_tool_warned in 3100yes:) 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3103ac_tool_warned=yes ;; 3104esac 3105 CC=$ac_ct_CC 3106 fi 3107else 3108 CC="$ac_cv_prog_CC" 3109fi 3110 3111if test -z "$CC"; then 3112 if test -n "$ac_tool_prefix"; then 3113 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3114set dummy ${ac_tool_prefix}cc; ac_word=$2 3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3116$as_echo_n "checking for $ac_word... " >&6; } 3117if test "${ac_cv_prog_CC+set}" = set; then : 3118 $as_echo_n "(cached) " >&6 3119else 3120 if test -n "$CC"; then 3121 ac_cv_prog_CC="$CC" # Let the user override the test. 3122else 3123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3124for as_dir in $PATH 3125do 3126 IFS=$as_save_IFS 3127 test -z "$as_dir" && as_dir=. 3128 for ac_exec_ext in '' $ac_executable_extensions; do 3129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3130 ac_cv_prog_CC="${ac_tool_prefix}cc" 3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3132 break 2 3133 fi 3134done 3135 done 3136IFS=$as_save_IFS 3137 3138fi 3139fi 3140CC=$ac_cv_prog_CC 3141if test -n "$CC"; then 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3143$as_echo "$CC" >&6; } 3144else 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3146$as_echo "no" >&6; } 3147fi 3148 3149 3150 fi 3151fi 3152if test -z "$CC"; then 3153 # Extract the first word of "cc", so it can be a program name with args. 3154set dummy cc; ac_word=$2 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3156$as_echo_n "checking for $ac_word... " >&6; } 3157if test "${ac_cv_prog_CC+set}" = set; then : 3158 $as_echo_n "(cached) " >&6 3159else 3160 if test -n "$CC"; then 3161 ac_cv_prog_CC="$CC" # Let the user override the test. 3162else 3163 ac_prog_rejected=no 3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3165for as_dir in $PATH 3166do 3167 IFS=$as_save_IFS 3168 test -z "$as_dir" && as_dir=. 3169 for ac_exec_ext in '' $ac_executable_extensions; do 3170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3171 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3172 ac_prog_rejected=yes 3173 continue 3174 fi 3175 ac_cv_prog_CC="cc" 3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3177 break 2 3178 fi 3179done 3180 done 3181IFS=$as_save_IFS 3182 3183if test $ac_prog_rejected = yes; then 3184 # We found a bogon in the path, so make sure we never use it. 3185 set dummy $ac_cv_prog_CC 3186 shift 3187 if test $# != 0; then 3188 # We chose a different compiler from the bogus one. 3189 # However, it has the same basename, so the bogon will be chosen 3190 # first if we set CC to just the basename; use the full file name. 3191 shift 3192 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3193 fi 3194fi 3195fi 3196fi 3197CC=$ac_cv_prog_CC 3198if test -n "$CC"; then 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3200$as_echo "$CC" >&6; } 3201else 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3203$as_echo "no" >&6; } 3204fi 3205 3206 3207fi 3208if test -z "$CC"; then 3209 if test -n "$ac_tool_prefix"; then 3210 for ac_prog in cl.exe 3211 do 3212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3213set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3215$as_echo_n "checking for $ac_word... " >&6; } 3216if test "${ac_cv_prog_CC+set}" = set; then : 3217 $as_echo_n "(cached) " >&6 3218else 3219 if test -n "$CC"; then 3220 ac_cv_prog_CC="$CC" # Let the user override the test. 3221else 3222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3223for as_dir in $PATH 3224do 3225 IFS=$as_save_IFS 3226 test -z "$as_dir" && as_dir=. 3227 for ac_exec_ext in '' $ac_executable_extensions; do 3228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3229 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3231 break 2 3232 fi 3233done 3234 done 3235IFS=$as_save_IFS 3236 3237fi 3238fi 3239CC=$ac_cv_prog_CC 3240if test -n "$CC"; then 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3242$as_echo "$CC" >&6; } 3243else 3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3245$as_echo "no" >&6; } 3246fi 3247 3248 3249 test -n "$CC" && break 3250 done 3251fi 3252if test -z "$CC"; then 3253 ac_ct_CC=$CC 3254 for ac_prog in cl.exe 3255do 3256 # Extract the first word of "$ac_prog", so it can be a program name with args. 3257set dummy $ac_prog; ac_word=$2 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3259$as_echo_n "checking for $ac_word... " >&6; } 3260if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3261 $as_echo_n "(cached) " >&6 3262else 3263 if test -n "$ac_ct_CC"; then 3264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3265else 3266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3267for as_dir in $PATH 3268do 3269 IFS=$as_save_IFS 3270 test -z "$as_dir" && as_dir=. 3271 for ac_exec_ext in '' $ac_executable_extensions; do 3272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3273 ac_cv_prog_ac_ct_CC="$ac_prog" 3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3275 break 2 3276 fi 3277done 3278 done 3279IFS=$as_save_IFS 3280 3281fi 3282fi 3283ac_ct_CC=$ac_cv_prog_ac_ct_CC 3284if test -n "$ac_ct_CC"; then 3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3286$as_echo "$ac_ct_CC" >&6; } 3287else 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3289$as_echo "no" >&6; } 3290fi 3291 3292 3293 test -n "$ac_ct_CC" && break 3294done 3295 3296 if test "x$ac_ct_CC" = x; then 3297 CC="" 3298 else 3299 case $cross_compiling:$ac_tool_warned in 3300yes:) 3301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3303ac_tool_warned=yes ;; 3304esac 3305 CC=$ac_ct_CC 3306 fi 3307fi 3308 3309fi 3310 3311 3312test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3314as_fn_error $? "no acceptable C compiler found in \$PATH 3315See \`config.log' for more details" "$LINENO" 5 ; } 3316 3317# Provide some information about the compiler. 3318$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3319set X $ac_compile 3320ac_compiler=$2 3321for ac_option in --version -v -V -qversion; do 3322 { { ac_try="$ac_compiler $ac_option >&5" 3323case "(($ac_try" in 3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3325 *) ac_try_echo=$ac_try;; 3326esac 3327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3328$as_echo "$ac_try_echo"; } >&5 3329 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3330 ac_status=$? 3331 if test -s conftest.err; then 3332 sed '10a\ 3333... rest of stderr output deleted ... 3334 10q' conftest.err >conftest.er1 3335 cat conftest.er1 >&5 3336 fi 3337 rm -f conftest.er1 conftest.err 3338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3339 test $ac_status = 0; } 3340done 3341 3342cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3343/* end confdefs.h. */ 3344 3345int 3346main () 3347{ 3348 3349 ; 3350 return 0; 3351} 3352_ACEOF 3353ac_clean_files_save=$ac_clean_files 3354ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3355# Try to create an executable without -o first, disregard a.out. 3356# It will help us diagnose broken compilers, and finding out an intuition 3357# of exeext. 3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3359$as_echo_n "checking whether the C compiler works... " >&6; } 3360ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3361 3362# The possible output files: 3363ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3364 3365ac_rmfiles= 3366for ac_file in $ac_files 3367do 3368 case $ac_file in 3369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3370 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3371 esac 3372done 3373rm -f $ac_rmfiles 3374 3375if { { ac_try="$ac_link_default" 3376case "(($ac_try" in 3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3378 *) ac_try_echo=$ac_try;; 3379esac 3380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3381$as_echo "$ac_try_echo"; } >&5 3382 (eval "$ac_link_default") 2>&5 3383 ac_status=$? 3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3385 test $ac_status = 0; }; then : 3386 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3387# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3388# in a Makefile. We should not override ac_cv_exeext if it was cached, 3389# so that the user can short-circuit this test for compilers unknown to 3390# Autoconf. 3391for ac_file in $ac_files '' 3392do 3393 test -f "$ac_file" || continue 3394 case $ac_file in 3395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3396 ;; 3397 [ab].out ) 3398 # We found the default executable, but exeext='' is most 3399 # certainly right. 3400 break;; 3401 *.* ) 3402 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3403 then :; else 3404 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3405 fi 3406 # We set ac_cv_exeext here because the later test for it is not 3407 # safe: cross compilers may not add the suffix if given an `-o' 3408 # argument, so we may need to know it at that point already. 3409 # Even if this section looks crufty: it has the advantage of 3410 # actually working. 3411 break;; 3412 * ) 3413 break;; 3414 esac 3415done 3416test "$ac_cv_exeext" = no && ac_cv_exeext= 3417 3418else 3419 ac_file='' 3420fi 3421if test -z "$ac_file"; then : 3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3423$as_echo "no" >&6; } 3424$as_echo "$as_me: failed program was:" >&5 3425sed 's/^/| /' conftest.$ac_ext >&5 3426 3427{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3429as_fn_error 77 "C compiler cannot create executables 3430See \`config.log' for more details" "$LINENO" 5 ; } 3431else 3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3433$as_echo "yes" >&6; } 3434fi 3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3436$as_echo_n "checking for C compiler default output file name... " >&6; } 3437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3438$as_echo "$ac_file" >&6; } 3439ac_exeext=$ac_cv_exeext 3440 3441rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3442ac_clean_files=$ac_clean_files_save 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3444$as_echo_n "checking for suffix of executables... " >&6; } 3445if { { ac_try="$ac_link" 3446case "(($ac_try" in 3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3448 *) ac_try_echo=$ac_try;; 3449esac 3450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3451$as_echo "$ac_try_echo"; } >&5 3452 (eval "$ac_link") 2>&5 3453 ac_status=$? 3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3455 test $ac_status = 0; }; then : 3456 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3457# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3458# work properly (i.e., refer to `conftest.exe'), while it won't with 3459# `rm'. 3460for ac_file in conftest.exe conftest conftest.*; do 3461 test -f "$ac_file" || continue 3462 case $ac_file in 3463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3464 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3465 break;; 3466 * ) break;; 3467 esac 3468done 3469else 3470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3472as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3473See \`config.log' for more details" "$LINENO" 5 ; } 3474fi 3475rm -f conftest conftest$ac_cv_exeext 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3477$as_echo "$ac_cv_exeext" >&6; } 3478 3479rm -f conftest.$ac_ext 3480EXEEXT=$ac_cv_exeext 3481ac_exeext=$EXEEXT 3482cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3483/* end confdefs.h. */ 3484#include <stdio.h> 3485int 3486main () 3487{ 3488FILE *f = fopen ("conftest.out", "w"); 3489 return ferror (f) || fclose (f) != 0; 3490 3491 ; 3492 return 0; 3493} 3494_ACEOF 3495ac_clean_files="$ac_clean_files conftest.out" 3496# Check that the compiler produces executables we can run. If not, either 3497# the compiler is broken, or we cross compile. 3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3499$as_echo_n "checking whether we are cross compiling... " >&6; } 3500if test "$cross_compiling" != yes; then 3501 { { ac_try="$ac_link" 3502case "(($ac_try" in 3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3504 *) ac_try_echo=$ac_try;; 3505esac 3506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3507$as_echo "$ac_try_echo"; } >&5 3508 (eval "$ac_link") 2>&5 3509 ac_status=$? 3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3511 test $ac_status = 0; } 3512 if { ac_try='./conftest$ac_cv_exeext' 3513 { { case "(($ac_try" in 3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3515 *) ac_try_echo=$ac_try;; 3516esac 3517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3518$as_echo "$ac_try_echo"; } >&5 3519 (eval "$ac_try") 2>&5 3520 ac_status=$? 3521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3522 test $ac_status = 0; }; }; then 3523 cross_compiling=no 3524 else 3525 if test "$cross_compiling" = maybe; then 3526 cross_compiling=yes 3527 else 3528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3530as_fn_error $? "cannot run C compiled programs. 3531If you meant to cross compile, use \`--host'. 3532See \`config.log' for more details" "$LINENO" 5 ; } 3533 fi 3534 fi 3535fi 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3537$as_echo "$cross_compiling" >&6; } 3538 3539rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3540ac_clean_files=$ac_clean_files_save 3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3542$as_echo_n "checking for suffix of object files... " >&6; } 3543if test "${ac_cv_objext+set}" = set; then : 3544 $as_echo_n "(cached) " >&6 3545else 3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3547/* end confdefs.h. */ 3548 3549int 3550main () 3551{ 3552 3553 ; 3554 return 0; 3555} 3556_ACEOF 3557rm -f conftest.o conftest.obj 3558if { { ac_try="$ac_compile" 3559case "(($ac_try" in 3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3561 *) ac_try_echo=$ac_try;; 3562esac 3563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3564$as_echo "$ac_try_echo"; } >&5 3565 (eval "$ac_compile") 2>&5 3566 ac_status=$? 3567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3568 test $ac_status = 0; }; then : 3569 for ac_file in conftest.o conftest.obj conftest.*; do 3570 test -f "$ac_file" || continue; 3571 case $ac_file in 3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3573 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3574 break;; 3575 esac 3576done 3577else 3578 $as_echo "$as_me: failed program was:" >&5 3579sed 's/^/| /' conftest.$ac_ext >&5 3580 3581{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3583as_fn_error $? "cannot compute suffix of object files: cannot compile 3584See \`config.log' for more details" "$LINENO" 5 ; } 3585fi 3586rm -f conftest.$ac_cv_objext conftest.$ac_ext 3587fi 3588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3589$as_echo "$ac_cv_objext" >&6; } 3590OBJEXT=$ac_cv_objext 3591ac_objext=$OBJEXT 3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3593$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3594if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3595 $as_echo_n "(cached) " >&6 3596else 3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3598/* end confdefs.h. */ 3599 3600int 3601main () 3602{ 3603#ifndef __GNUC__ 3604 choke me 3605#endif 3606 3607 ; 3608 return 0; 3609} 3610_ACEOF 3611if ac_fn_c_try_compile "$LINENO"; then : 3612 ac_compiler_gnu=yes 3613else 3614 ac_compiler_gnu=no 3615fi 3616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3617ac_cv_c_compiler_gnu=$ac_compiler_gnu 3618 3619fi 3620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3621$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3622if test $ac_compiler_gnu = yes; then 3623 GCC=yes 3624else 3625 GCC= 3626fi 3627ac_test_CFLAGS=${CFLAGS+set} 3628ac_save_CFLAGS=$CFLAGS 3629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3630$as_echo_n "checking whether $CC accepts -g... " >&6; } 3631if test "${ac_cv_prog_cc_g+set}" = set; then : 3632 $as_echo_n "(cached) " >&6 3633else 3634 ac_save_c_werror_flag=$ac_c_werror_flag 3635 ac_c_werror_flag=yes 3636 ac_cv_prog_cc_g=no 3637 CFLAGS="-g" 3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3639/* end confdefs.h. */ 3640 3641int 3642main () 3643{ 3644 3645 ; 3646 return 0; 3647} 3648_ACEOF 3649if ac_fn_c_try_compile "$LINENO"; then : 3650 ac_cv_prog_cc_g=yes 3651else 3652 CFLAGS="" 3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3654/* end confdefs.h. */ 3655 3656int 3657main () 3658{ 3659 3660 ; 3661 return 0; 3662} 3663_ACEOF 3664if ac_fn_c_try_compile "$LINENO"; then : 3665 3666else 3667 ac_c_werror_flag=$ac_save_c_werror_flag 3668 CFLAGS="-g" 3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3670/* end confdefs.h. */ 3671 3672int 3673main () 3674{ 3675 3676 ; 3677 return 0; 3678} 3679_ACEOF 3680if ac_fn_c_try_compile "$LINENO"; then : 3681 ac_cv_prog_cc_g=yes 3682fi 3683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3684fi 3685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3686fi 3687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3688 ac_c_werror_flag=$ac_save_c_werror_flag 3689fi 3690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3691$as_echo "$ac_cv_prog_cc_g" >&6; } 3692if test "$ac_test_CFLAGS" = set; then 3693 CFLAGS=$ac_save_CFLAGS 3694elif test $ac_cv_prog_cc_g = yes; then 3695 if test "$GCC" = yes; then 3696 CFLAGS="-g -O2" 3697 else 3698 CFLAGS="-g" 3699 fi 3700else 3701 if test "$GCC" = yes; then 3702 CFLAGS="-O2" 3703 else 3704 CFLAGS= 3705 fi 3706fi 3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3708$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3709if test "${ac_cv_prog_cc_c89+set}" = set; then : 3710 $as_echo_n "(cached) " >&6 3711else 3712 ac_cv_prog_cc_c89=no 3713ac_save_CC=$CC 3714cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3715/* end confdefs.h. */ 3716#include <stdarg.h> 3717#include <stdio.h> 3718#include <sys/types.h> 3719#include <sys/stat.h> 3720/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3721struct buf { int x; }; 3722FILE * (*rcsopen) (struct buf *, struct stat *, int); 3723static char *e (p, i) 3724 char **p; 3725 int i; 3726{ 3727 return p[i]; 3728} 3729static char *f (char * (*g) (char **, int), char **p, ...) 3730{ 3731 char *s; 3732 va_list v; 3733 va_start (v,p); 3734 s = g (p, va_arg (v,int)); 3735 va_end (v); 3736 return s; 3737} 3738 3739/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3740 function prototypes and stuff, but not '\xHH' hex character constants. 3741 These don't provoke an error unfortunately, instead are silently treated 3742 as 'x'. The following induces an error, until -std is added to get 3743 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3744 array size at least. It's necessary to write '\x00'==0 to get something 3745 that's true only with -std. */ 3746int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3747 3748/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3749 inside strings and character constants. */ 3750#define FOO(x) 'x' 3751int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3752 3753int test (int i, double x); 3754struct s1 {int (*f) (int a);}; 3755struct s2 {int (*f) (double a);}; 3756int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3757int argc; 3758char **argv; 3759int 3760main () 3761{ 3762return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3763 ; 3764 return 0; 3765} 3766_ACEOF 3767for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3768 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3769do 3770 CC="$ac_save_CC $ac_arg" 3771 if ac_fn_c_try_compile "$LINENO"; then : 3772 ac_cv_prog_cc_c89=$ac_arg 3773fi 3774rm -f core conftest.err conftest.$ac_objext 3775 test "x$ac_cv_prog_cc_c89" != "xno" && break 3776done 3777rm -f conftest.$ac_ext 3778CC=$ac_save_CC 3779 3780fi 3781# AC_CACHE_VAL 3782case "x$ac_cv_prog_cc_c89" in 3783 x) 3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3785$as_echo "none needed" >&6; } ;; 3786 xno) 3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3788$as_echo "unsupported" >&6; } ;; 3789 *) 3790 CC="$CC $ac_cv_prog_cc_c89" 3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3792$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3793esac 3794if test "x$ac_cv_prog_cc_c89" != xno; then : 3795 3796fi 3797 3798ac_ext=c 3799ac_cpp='$CPP $CPPFLAGS' 3800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3802ac_compiler_gnu=$ac_cv_c_compiler_gnu 3803DEPDIR="${am__leading_dot}deps" 3804 3805ac_config_commands="$ac_config_commands depfiles" 3806 3807 3808am_make=${MAKE-make} 3809cat > confinc << 'END' 3810am__doit: 3811 @echo this is the am__doit target 3812.PHONY: am__doit 3813END 3814# If we don't find an include directive, just comment out the code. 3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3816$as_echo_n "checking for style of include used by $am_make... " >&6; } 3817am__include="#" 3818am__quote= 3819_am_result=none 3820# First try GNU make style include. 3821echo "include confinc" > confmf 3822# Ignore all kinds of additional output from `make'. 3823case `$am_make -s -f confmf 2> /dev/null` in #( 3824*the\ am__doit\ target*) 3825 am__include=include 3826 am__quote= 3827 _am_result=GNU 3828 ;; 3829esac 3830# Now try BSD make style include. 3831if test "$am__include" = "#"; then 3832 echo '.include "confinc"' > confmf 3833 case `$am_make -s -f confmf 2> /dev/null` in #( 3834 *the\ am__doit\ target*) 3835 am__include=.include 3836 am__quote="\"" 3837 _am_result=BSD 3838 ;; 3839 esac 3840fi 3841 3842 3843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3844$as_echo "$_am_result" >&6; } 3845rm -f confinc confmf 3846 3847# Check whether --enable-dependency-tracking was given. 3848if test "${enable_dependency_tracking+set}" = set; then : 3849 enableval=$enable_dependency_tracking; 3850fi 3851 3852if test "x$enable_dependency_tracking" != xno; then 3853 am_depcomp="$ac_aux_dir/depcomp" 3854 AMDEPBACKSLASH='\' 3855fi 3856 if test "x$enable_dependency_tracking" != xno; then 3857 AMDEP_TRUE= 3858 AMDEP_FALSE='#' 3859else 3860 AMDEP_TRUE='#' 3861 AMDEP_FALSE= 3862fi 3863 3864 3865 3866depcc="$CC" am_compiler_list= 3867 3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3869$as_echo_n "checking dependency style of $depcc... " >&6; } 3870if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3871 $as_echo_n "(cached) " >&6 3872else 3873 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3874 # We make a subdir and do the tests there. Otherwise we can end up 3875 # making bogus files that we don't know about and never remove. For 3876 # instance it was reported that on HP-UX the gcc test will end up 3877 # making a dummy file named `D' -- because `-MD' means `put the output 3878 # in D'. 3879 mkdir conftest.dir 3880 # Copy depcomp to subdir because otherwise we won't find it if we're 3881 # using a relative directory. 3882 cp "$am_depcomp" conftest.dir 3883 cd conftest.dir 3884 # We will build objects and dependencies in a subdirectory because 3885 # it helps to detect inapplicable dependency modes. For instance 3886 # both Tru64's cc and ICC support -MD to output dependencies as a 3887 # side effect of compilation, but ICC will put the dependencies in 3888 # the current directory while Tru64 will put them in the object 3889 # directory. 3890 mkdir sub 3891 3892 am_cv_CC_dependencies_compiler_type=none 3893 if test "$am_compiler_list" = ""; then 3894 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3895 fi 3896 am__universal=false 3897 case " $depcc " in #( 3898 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3899 esac 3900 3901 for depmode in $am_compiler_list; do 3902 # Setup a source with many dependencies, because some compilers 3903 # like to wrap large dependency lists on column 80 (with \), and 3904 # we should not choose a depcomp mode which is confused by this. 3905 # 3906 # We need to recreate these files for each test, as the compiler may 3907 # overwrite some of them when testing with obscure command lines. 3908 # This happens at least with the AIX C compiler. 3909 : > sub/conftest.c 3910 for i in 1 2 3 4 5 6; do 3911 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3912 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3913 # Solaris 8's {/usr,}/bin/sh. 3914 touch sub/conftst$i.h 3915 done 3916 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3917 3918 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3919 # mode. It turns out that the SunPro C++ compiler does not properly 3920 # handle `-M -o', and we need to detect this. Also, some Intel 3921 # versions had trouble with output in subdirs 3922 am__obj=sub/conftest.${OBJEXT-o} 3923 am__minus_obj="-o $am__obj" 3924 case $depmode in 3925 gcc) 3926 # This depmode causes a compiler race in universal mode. 3927 test "$am__universal" = false || continue 3928 ;; 3929 nosideeffect) 3930 # after this tag, mechanisms are not by side-effect, so they'll 3931 # only be used when explicitly requested 3932 if test "x$enable_dependency_tracking" = xyes; then 3933 continue 3934 else 3935 break 3936 fi 3937 ;; 3938 msvisualcpp | msvcmsys) 3939 # This compiler won't grok `-c -o', but also, the minuso test has 3940 # not run yet. These depmodes are late enough in the game, and 3941 # so weak that their functioning should not be impacted. 3942 am__obj=conftest.${OBJEXT-o} 3943 am__minus_obj= 3944 ;; 3945 none) break ;; 3946 esac 3947 if depmode=$depmode \ 3948 source=sub/conftest.c object=$am__obj \ 3949 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3950 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3951 >/dev/null 2>conftest.err && 3952 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3953 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3954 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3955 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3956 # icc doesn't choke on unknown options, it will just issue warnings 3957 # or remarks (even with -Werror). So we grep stderr for any message 3958 # that says an option was ignored or not supported. 3959 # When given -MP, icc 7.0 and 7.1 complain thusly: 3960 # icc: Command line warning: ignoring option '-M'; no argument required 3961 # The diagnosis changed in icc 8.0: 3962 # icc: Command line remark: option '-MP' not supported 3963 if (grep 'ignoring option' conftest.err || 3964 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3965 am_cv_CC_dependencies_compiler_type=$depmode 3966 break 3967 fi 3968 fi 3969 done 3970 3971 cd .. 3972 rm -rf conftest.dir 3973else 3974 am_cv_CC_dependencies_compiler_type=none 3975fi 3976 3977fi 3978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3979$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3980CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3981 3982 if 3983 test "x$enable_dependency_tracking" != xno \ 3984 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3985 am__fastdepCC_TRUE= 3986 am__fastdepCC_FALSE='#' 3987else 3988 am__fastdepCC_TRUE='#' 3989 am__fastdepCC_FALSE= 3990fi 3991 3992 3993 3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3995$as_echo_n "checking for library containing strerror... " >&6; } 3996if test "${ac_cv_search_strerror+set}" = set; then : 3997 $as_echo_n "(cached) " >&6 3998else 3999 ac_func_search_save_LIBS=$LIBS 4000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4001/* end confdefs.h. */ 4002 4003/* Override any GCC internal prototype to avoid an error. 4004 Use char because int might match the return type of a GCC 4005 builtin and then its argument prototype would still apply. */ 4006#ifdef __cplusplus 4007extern "C" 4008#endif 4009char strerror (); 4010int 4011main () 4012{ 4013return strerror (); 4014 ; 4015 return 0; 4016} 4017_ACEOF 4018for ac_lib in '' cposix; do 4019 if test -z "$ac_lib"; then 4020 ac_res="none required" 4021 else 4022 ac_res=-l$ac_lib 4023 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4024 fi 4025 if ac_fn_c_try_link "$LINENO"; then : 4026 ac_cv_search_strerror=$ac_res 4027fi 4028rm -f core conftest.err conftest.$ac_objext \ 4029 conftest$ac_exeext 4030 if test "${ac_cv_search_strerror+set}" = set; then : 4031 break 4032fi 4033done 4034if test "${ac_cv_search_strerror+set}" = set; then : 4035 4036else 4037 ac_cv_search_strerror=no 4038fi 4039rm conftest.$ac_ext 4040LIBS=$ac_func_search_save_LIBS 4041fi 4042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 4043$as_echo "$ac_cv_search_strerror" >&6; } 4044ac_res=$ac_cv_search_strerror 4045if test "$ac_res" != no; then : 4046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4047 4048fi 4049 4050 4051ac_ext=c 4052ac_cpp='$CPP $CPPFLAGS' 4053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4055ac_compiler_gnu=$ac_cv_c_compiler_gnu 4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4057$as_echo_n "checking how to run the C preprocessor... " >&6; } 4058# On Suns, sometimes $CPP names a directory. 4059if test -n "$CPP" && test -d "$CPP"; then 4060 CPP= 4061fi 4062if test -z "$CPP"; then 4063 if test "${ac_cv_prog_CPP+set}" = set; then : 4064 $as_echo_n "(cached) " >&6 4065else 4066 # Double quotes because CPP needs to be expanded 4067 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4068 do 4069 ac_preproc_ok=false 4070for ac_c_preproc_warn_flag in '' yes 4071do 4072 # Use a header file that comes with gcc, so configuring glibc 4073 # with a fresh cross-compiler works. 4074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4075 # <limits.h> exists even on freestanding compilers. 4076 # On the NeXT, cc -E runs the code through the compiler's parser, 4077 # not just through cpp. "Syntax error" is here to catch this case. 4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4079/* end confdefs.h. */ 4080#ifdef __STDC__ 4081# include <limits.h> 4082#else 4083# include <assert.h> 4084#endif 4085 Syntax error 4086_ACEOF 4087if ac_fn_c_try_cpp "$LINENO"; then : 4088 4089else 4090 # Broken: fails on valid input. 4091continue 4092fi 4093rm -f conftest.err conftest.i conftest.$ac_ext 4094 4095 # OK, works on sane cases. Now check whether nonexistent headers 4096 # can be detected and how. 4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4098/* end confdefs.h. */ 4099#include <ac_nonexistent.h> 4100_ACEOF 4101if ac_fn_c_try_cpp "$LINENO"; then : 4102 # Broken: success on invalid input. 4103continue 4104else 4105 # Passes both tests. 4106ac_preproc_ok=: 4107break 4108fi 4109rm -f conftest.err conftest.i conftest.$ac_ext 4110 4111done 4112# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4113rm -f conftest.i conftest.err conftest.$ac_ext 4114if $ac_preproc_ok; then : 4115 break 4116fi 4117 4118 done 4119 ac_cv_prog_CPP=$CPP 4120 4121fi 4122 CPP=$ac_cv_prog_CPP 4123else 4124 ac_cv_prog_CPP=$CPP 4125fi 4126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4127$as_echo "$CPP" >&6; } 4128ac_preproc_ok=false 4129for ac_c_preproc_warn_flag in '' yes 4130do 4131 # Use a header file that comes with gcc, so configuring glibc 4132 # with a fresh cross-compiler works. 4133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4134 # <limits.h> exists even on freestanding compilers. 4135 # On the NeXT, cc -E runs the code through the compiler's parser, 4136 # not just through cpp. "Syntax error" is here to catch this case. 4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4138/* end confdefs.h. */ 4139#ifdef __STDC__ 4140# include <limits.h> 4141#else 4142# include <assert.h> 4143#endif 4144 Syntax error 4145_ACEOF 4146if ac_fn_c_try_cpp "$LINENO"; then : 4147 4148else 4149 # Broken: fails on valid input. 4150continue 4151fi 4152rm -f conftest.err conftest.i conftest.$ac_ext 4153 4154 # OK, works on sane cases. Now check whether nonexistent headers 4155 # can be detected and how. 4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4157/* end confdefs.h. */ 4158#include <ac_nonexistent.h> 4159_ACEOF 4160if ac_fn_c_try_cpp "$LINENO"; then : 4161 # Broken: success on invalid input. 4162continue 4163else 4164 # Passes both tests. 4165ac_preproc_ok=: 4166break 4167fi 4168rm -f conftest.err conftest.i conftest.$ac_ext 4169 4170done 4171# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4172rm -f conftest.i conftest.err conftest.$ac_ext 4173if $ac_preproc_ok; then : 4174 4175else 4176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4178as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4179See \`config.log' for more details" "$LINENO" 5 ; } 4180fi 4181 4182ac_ext=c 4183ac_cpp='$CPP $CPPFLAGS' 4184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4186ac_compiler_gnu=$ac_cv_c_compiler_gnu 4187 4188case `pwd` in 4189 *\ * | *\ *) 4190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4191$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4192esac 4193 4194 4195 4196macro_version='2.2.6b' 4197macro_revision='1.3017' 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211ltmain="$ac_aux_dir/ltmain.sh" 4212 4213# Make sure we can run config.sub. 4214$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4215 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4216 4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4218$as_echo_n "checking build system type... " >&6; } 4219if test "${ac_cv_build+set}" = set; then : 4220 $as_echo_n "(cached) " >&6 4221else 4222 ac_build_alias=$build_alias 4223test "x$ac_build_alias" = x && 4224 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4225test "x$ac_build_alias" = x && 4226 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4227ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4228 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4229 4230fi 4231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4232$as_echo "$ac_cv_build" >&6; } 4233case $ac_cv_build in 4234*-*-*) ;; 4235*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; 4236esac 4237build=$ac_cv_build 4238ac_save_IFS=$IFS; IFS='-' 4239set x $ac_cv_build 4240shift 4241build_cpu=$1 4242build_vendor=$2 4243shift; shift 4244# Remember, the first character of IFS is used to create $*, 4245# except with old shells: 4246build_os=$* 4247IFS=$ac_save_IFS 4248case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4249 4250 4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4252$as_echo_n "checking host system type... " >&6; } 4253if test "${ac_cv_host+set}" = set; then : 4254 $as_echo_n "(cached) " >&6 4255else 4256 if test "x$host_alias" = x; then 4257 ac_cv_host=$ac_cv_build 4258else 4259 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4260 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4261fi 4262 4263fi 4264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4265$as_echo "$ac_cv_host" >&6; } 4266case $ac_cv_host in 4267*-*-*) ;; 4268*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; 4269esac 4270host=$ac_cv_host 4271ac_save_IFS=$IFS; IFS='-' 4272set x $ac_cv_host 4273shift 4274host_cpu=$1 4275host_vendor=$2 4276shift; shift 4277# Remember, the first character of IFS is used to create $*, 4278# except with old shells: 4279host_os=$* 4280IFS=$ac_save_IFS 4281case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4282 4283 4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4285$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4286if test "${ac_cv_path_SED+set}" = set; then : 4287 $as_echo_n "(cached) " >&6 4288else 4289 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4290 for ac_i in 1 2 3 4 5 6 7; do 4291 ac_script="$ac_script$as_nl$ac_script" 4292 done 4293 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4294 { ac_script=; unset ac_script;} 4295 if test -z "$SED"; then 4296 ac_path_SED_found=false 4297 # Loop through the user's path and test for each of PROGNAME-LIST 4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4299for as_dir in $PATH 4300do 4301 IFS=$as_save_IFS 4302 test -z "$as_dir" && as_dir=. 4303 for ac_prog in sed gsed; do 4304 for ac_exec_ext in '' $ac_executable_extensions; do 4305 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4306 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4307# Check for GNU ac_path_SED and select it if it is found. 4308 # Check for GNU $ac_path_SED 4309case `"$ac_path_SED" --version 2>&1` in 4310*GNU*) 4311 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4312*) 4313 ac_count=0 4314 $as_echo_n 0123456789 >"conftest.in" 4315 while : 4316 do 4317 cat "conftest.in" "conftest.in" >"conftest.tmp" 4318 mv "conftest.tmp" "conftest.in" 4319 cp "conftest.in" "conftest.nl" 4320 $as_echo '' >> "conftest.nl" 4321 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4323 as_fn_arith $ac_count + 1 && ac_count=$as_val 4324 if test $ac_count -gt ${ac_path_SED_max-0}; then 4325 # Best one so far, save it but keep looking for a better one 4326 ac_cv_path_SED="$ac_path_SED" 4327 ac_path_SED_max=$ac_count 4328 fi 4329 # 10*(2^10) chars as input seems more than enough 4330 test $ac_count -gt 10 && break 4331 done 4332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4333esac 4334 4335 $ac_path_SED_found && break 3 4336 done 4337 done 4338 done 4339IFS=$as_save_IFS 4340 if test -z "$ac_cv_path_SED"; then 4341 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4342 fi 4343else 4344 ac_cv_path_SED=$SED 4345fi 4346 4347fi 4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4349$as_echo "$ac_cv_path_SED" >&6; } 4350 SED="$ac_cv_path_SED" 4351 rm -f conftest.sed 4352 4353test -z "$SED" && SED=sed 4354Xsed="$SED -e 1s/^X//" 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4367$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4368if test "${ac_cv_path_GREP+set}" = set; then : 4369 $as_echo_n "(cached) " >&6 4370else 4371 if test -z "$GREP"; then 4372 ac_path_GREP_found=false 4373 # Loop through the user's path and test for each of PROGNAME-LIST 4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4375for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4376do 4377 IFS=$as_save_IFS 4378 test -z "$as_dir" && as_dir=. 4379 for ac_prog in grep ggrep; do 4380 for ac_exec_ext in '' $ac_executable_extensions; do 4381 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4382 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4383# Check for GNU ac_path_GREP and select it if it is found. 4384 # Check for GNU $ac_path_GREP 4385case `"$ac_path_GREP" --version 2>&1` in 4386*GNU*) 4387 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4388*) 4389 ac_count=0 4390 $as_echo_n 0123456789 >"conftest.in" 4391 while : 4392 do 4393 cat "conftest.in" "conftest.in" >"conftest.tmp" 4394 mv "conftest.tmp" "conftest.in" 4395 cp "conftest.in" "conftest.nl" 4396 $as_echo 'GREP' >> "conftest.nl" 4397 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4399 as_fn_arith $ac_count + 1 && ac_count=$as_val 4400 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4401 # Best one so far, save it but keep looking for a better one 4402 ac_cv_path_GREP="$ac_path_GREP" 4403 ac_path_GREP_max=$ac_count 4404 fi 4405 # 10*(2^10) chars as input seems more than enough 4406 test $ac_count -gt 10 && break 4407 done 4408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4409esac 4410 4411 $ac_path_GREP_found && break 3 4412 done 4413 done 4414 done 4415IFS=$as_save_IFS 4416 if test -z "$ac_cv_path_GREP"; then 4417 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4418 fi 4419else 4420 ac_cv_path_GREP=$GREP 4421fi 4422 4423fi 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4425$as_echo "$ac_cv_path_GREP" >&6; } 4426 GREP="$ac_cv_path_GREP" 4427 4428 4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4430$as_echo_n "checking for egrep... " >&6; } 4431if test "${ac_cv_path_EGREP+set}" = set; then : 4432 $as_echo_n "(cached) " >&6 4433else 4434 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4435 then ac_cv_path_EGREP="$GREP -E" 4436 else 4437 if test -z "$EGREP"; then 4438 ac_path_EGREP_found=false 4439 # Loop through the user's path and test for each of PROGNAME-LIST 4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4441for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4442do 4443 IFS=$as_save_IFS 4444 test -z "$as_dir" && as_dir=. 4445 for ac_prog in egrep; do 4446 for ac_exec_ext in '' $ac_executable_extensions; do 4447 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4448 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4449# Check for GNU ac_path_EGREP and select it if it is found. 4450 # Check for GNU $ac_path_EGREP 4451case `"$ac_path_EGREP" --version 2>&1` in 4452*GNU*) 4453 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4454*) 4455 ac_count=0 4456 $as_echo_n 0123456789 >"conftest.in" 4457 while : 4458 do 4459 cat "conftest.in" "conftest.in" >"conftest.tmp" 4460 mv "conftest.tmp" "conftest.in" 4461 cp "conftest.in" "conftest.nl" 4462 $as_echo 'EGREP' >> "conftest.nl" 4463 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4464 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4465 as_fn_arith $ac_count + 1 && ac_count=$as_val 4466 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4467 # Best one so far, save it but keep looking for a better one 4468 ac_cv_path_EGREP="$ac_path_EGREP" 4469 ac_path_EGREP_max=$ac_count 4470 fi 4471 # 10*(2^10) chars as input seems more than enough 4472 test $ac_count -gt 10 && break 4473 done 4474 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4475esac 4476 4477 $ac_path_EGREP_found && break 3 4478 done 4479 done 4480 done 4481IFS=$as_save_IFS 4482 if test -z "$ac_cv_path_EGREP"; then 4483 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4484 fi 4485else 4486 ac_cv_path_EGREP=$EGREP 4487fi 4488 4489 fi 4490fi 4491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4492$as_echo "$ac_cv_path_EGREP" >&6; } 4493 EGREP="$ac_cv_path_EGREP" 4494 4495 4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4497$as_echo_n "checking for fgrep... " >&6; } 4498if test "${ac_cv_path_FGREP+set}" = set; then : 4499 $as_echo_n "(cached) " >&6 4500else 4501 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4502 then ac_cv_path_FGREP="$GREP -F" 4503 else 4504 if test -z "$FGREP"; then 4505 ac_path_FGREP_found=false 4506 # Loop through the user's path and test for each of PROGNAME-LIST 4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4508for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4509do 4510 IFS=$as_save_IFS 4511 test -z "$as_dir" && as_dir=. 4512 for ac_prog in fgrep; do 4513 for ac_exec_ext in '' $ac_executable_extensions; do 4514 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4515 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4516# Check for GNU ac_path_FGREP and select it if it is found. 4517 # Check for GNU $ac_path_FGREP 4518case `"$ac_path_FGREP" --version 2>&1` in 4519*GNU*) 4520 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4521*) 4522 ac_count=0 4523 $as_echo_n 0123456789 >"conftest.in" 4524 while : 4525 do 4526 cat "conftest.in" "conftest.in" >"conftest.tmp" 4527 mv "conftest.tmp" "conftest.in" 4528 cp "conftest.in" "conftest.nl" 4529 $as_echo 'FGREP' >> "conftest.nl" 4530 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4532 as_fn_arith $ac_count + 1 && ac_count=$as_val 4533 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4534 # Best one so far, save it but keep looking for a better one 4535 ac_cv_path_FGREP="$ac_path_FGREP" 4536 ac_path_FGREP_max=$ac_count 4537 fi 4538 # 10*(2^10) chars as input seems more than enough 4539 test $ac_count -gt 10 && break 4540 done 4541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4542esac 4543 4544 $ac_path_FGREP_found && break 3 4545 done 4546 done 4547 done 4548IFS=$as_save_IFS 4549 if test -z "$ac_cv_path_FGREP"; then 4550 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4551 fi 4552else 4553 ac_cv_path_FGREP=$FGREP 4554fi 4555 4556 fi 4557fi 4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4559$as_echo "$ac_cv_path_FGREP" >&6; } 4560 FGREP="$ac_cv_path_FGREP" 4561 4562 4563test -z "$GREP" && GREP=grep 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583# Check whether --with-gnu-ld was given. 4584if test "${with_gnu_ld+set}" = set; then : 4585 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4586else 4587 with_gnu_ld=no 4588fi 4589 4590ac_prog=ld 4591if test "$GCC" = yes; then 4592 # Check if gcc -print-prog-name=ld gives a path. 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4594$as_echo_n "checking for ld used by $CC... " >&6; } 4595 case $host in 4596 *-*-mingw*) 4597 # gcc leaves a trailing carriage return which upsets mingw 4598 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4599 *) 4600 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4601 esac 4602 case $ac_prog in 4603 # Accept absolute paths. 4604 [\\/]* | ?:[\\/]*) 4605 re_direlt='/[^/][^/]*/\.\./' 4606 # Canonicalize the pathname of ld 4607 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4608 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4609 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4610 done 4611 test -z "$LD" && LD="$ac_prog" 4612 ;; 4613 "") 4614 # If it fails, then pretend we aren't using GCC. 4615 ac_prog=ld 4616 ;; 4617 *) 4618 # If it is relative, then search for the first ld in PATH. 4619 with_gnu_ld=unknown 4620 ;; 4621 esac 4622elif test "$with_gnu_ld" = yes; then 4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4624$as_echo_n "checking for GNU ld... " >&6; } 4625else 4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4627$as_echo_n "checking for non-GNU ld... " >&6; } 4628fi 4629if test "${lt_cv_path_LD+set}" = set; then : 4630 $as_echo_n "(cached) " >&6 4631else 4632 if test -z "$LD"; then 4633 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4634 for ac_dir in $PATH; do 4635 IFS="$lt_save_ifs" 4636 test -z "$ac_dir" && ac_dir=. 4637 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4638 lt_cv_path_LD="$ac_dir/$ac_prog" 4639 # Check to see if the program is GNU ld. I'd rather use --version, 4640 # but apparently some variants of GNU ld only accept -v. 4641 # Break only if it was the GNU/non-GNU ld that we prefer. 4642 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4643 *GNU* | *'with BFD'*) 4644 test "$with_gnu_ld" != no && break 4645 ;; 4646 *) 4647 test "$with_gnu_ld" != yes && break 4648 ;; 4649 esac 4650 fi 4651 done 4652 IFS="$lt_save_ifs" 4653else 4654 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4655fi 4656fi 4657 4658LD="$lt_cv_path_LD" 4659if test -n "$LD"; then 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4661$as_echo "$LD" >&6; } 4662else 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4664$as_echo "no" >&6; } 4665fi 4666test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4668$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4669if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4670 $as_echo_n "(cached) " >&6 4671else 4672 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4673case `$LD -v 2>&1 </dev/null` in 4674*GNU* | *'with BFD'*) 4675 lt_cv_prog_gnu_ld=yes 4676 ;; 4677*) 4678 lt_cv_prog_gnu_ld=no 4679 ;; 4680esac 4681fi 4682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4683$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4684with_gnu_ld=$lt_cv_prog_gnu_ld 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4695$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4696if test "${lt_cv_path_NM+set}" = set; then : 4697 $as_echo_n "(cached) " >&6 4698else 4699 if test -n "$NM"; then 4700 # Let the user override the test. 4701 lt_cv_path_NM="$NM" 4702else 4703 lt_nm_to_check="${ac_tool_prefix}nm" 4704 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4705 lt_nm_to_check="$lt_nm_to_check nm" 4706 fi 4707 for lt_tmp_nm in $lt_nm_to_check; do 4708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4709 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4710 IFS="$lt_save_ifs" 4711 test -z "$ac_dir" && ac_dir=. 4712 tmp_nm="$ac_dir/$lt_tmp_nm" 4713 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4714 # Check to see if the nm accepts a BSD-compat flag. 4715 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4716 # nm: unknown option "B" ignored 4717 # Tru64's nm complains that /dev/null is an invalid object file 4718 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4719 */dev/null* | *'Invalid file or object type'*) 4720 lt_cv_path_NM="$tmp_nm -B" 4721 break 4722 ;; 4723 *) 4724 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4725 */dev/null*) 4726 lt_cv_path_NM="$tmp_nm -p" 4727 break 4728 ;; 4729 *) 4730 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4731 continue # so that we can try to find one that supports BSD flags 4732 ;; 4733 esac 4734 ;; 4735 esac 4736 fi 4737 done 4738 IFS="$lt_save_ifs" 4739 done 4740 : ${lt_cv_path_NM=no} 4741fi 4742fi 4743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4744$as_echo "$lt_cv_path_NM" >&6; } 4745if test "$lt_cv_path_NM" != "no"; then 4746 NM="$lt_cv_path_NM" 4747else 4748 # Didn't find any BSD compatible name lister, look for dumpbin. 4749 if test -n "$ac_tool_prefix"; then 4750 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4751 do 4752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4753set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4755$as_echo_n "checking for $ac_word... " >&6; } 4756if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4757 $as_echo_n "(cached) " >&6 4758else 4759 if test -n "$DUMPBIN"; then 4760 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4761else 4762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4763for as_dir in $PATH 4764do 4765 IFS=$as_save_IFS 4766 test -z "$as_dir" && as_dir=. 4767 for ac_exec_ext in '' $ac_executable_extensions; do 4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4769 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4771 break 2 4772 fi 4773done 4774 done 4775IFS=$as_save_IFS 4776 4777fi 4778fi 4779DUMPBIN=$ac_cv_prog_DUMPBIN 4780if test -n "$DUMPBIN"; then 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4782$as_echo "$DUMPBIN" >&6; } 4783else 4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4785$as_echo "no" >&6; } 4786fi 4787 4788 4789 test -n "$DUMPBIN" && break 4790 done 4791fi 4792if test -z "$DUMPBIN"; then 4793 ac_ct_DUMPBIN=$DUMPBIN 4794 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4795do 4796 # Extract the first word of "$ac_prog", so it can be a program name with args. 4797set dummy $ac_prog; ac_word=$2 4798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4799$as_echo_n "checking for $ac_word... " >&6; } 4800if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4801 $as_echo_n "(cached) " >&6 4802else 4803 if test -n "$ac_ct_DUMPBIN"; then 4804 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4805else 4806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4807for as_dir in $PATH 4808do 4809 IFS=$as_save_IFS 4810 test -z "$as_dir" && as_dir=. 4811 for ac_exec_ext in '' $ac_executable_extensions; do 4812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4813 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4815 break 2 4816 fi 4817done 4818 done 4819IFS=$as_save_IFS 4820 4821fi 4822fi 4823ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4824if test -n "$ac_ct_DUMPBIN"; then 4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4826$as_echo "$ac_ct_DUMPBIN" >&6; } 4827else 4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4829$as_echo "no" >&6; } 4830fi 4831 4832 4833 test -n "$ac_ct_DUMPBIN" && break 4834done 4835 4836 if test "x$ac_ct_DUMPBIN" = x; then 4837 DUMPBIN=":" 4838 else 4839 case $cross_compiling:$ac_tool_warned in 4840yes:) 4841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4843ac_tool_warned=yes ;; 4844esac 4845 DUMPBIN=$ac_ct_DUMPBIN 4846 fi 4847fi 4848 4849 4850 if test "$DUMPBIN" != ":"; then 4851 NM="$DUMPBIN" 4852 fi 4853fi 4854test -z "$NM" && NM=nm 4855 4856 4857 4858 4859 4860 4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4862$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4863if test "${lt_cv_nm_interface+set}" = set; then : 4864 $as_echo_n "(cached) " >&6 4865else 4866 lt_cv_nm_interface="BSD nm" 4867 echo "int some_variable = 0;" > conftest.$ac_ext 4868 (eval echo "\"\$as_me:4868: $ac_compile\"" >&5) 4869 (eval "$ac_compile" 2>conftest.err) 4870 cat conftest.err >&5 4871 (eval echo "\"\$as_me:4871: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4872 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4873 cat conftest.err >&5 4874 (eval echo "\"\$as_me:4874: output\"" >&5) 4875 cat conftest.out >&5 4876 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4877 lt_cv_nm_interface="MS dumpbin" 4878 fi 4879 rm -f conftest* 4880fi 4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4882$as_echo "$lt_cv_nm_interface" >&6; } 4883 4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4885$as_echo_n "checking whether ln -s works... " >&6; } 4886LN_S=$as_ln_s 4887if test "$LN_S" = "ln -s"; then 4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4889$as_echo "yes" >&6; } 4890else 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4892$as_echo "no, using $LN_S" >&6; } 4893fi 4894 4895# find the maximum length of command line arguments 4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4897$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4898if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 4899 $as_echo_n "(cached) " >&6 4900else 4901 i=0 4902 teststring="ABCD" 4903 4904 case $build_os in 4905 msdosdjgpp*) 4906 # On DJGPP, this test can blow up pretty badly due to problems in libc 4907 # (any single argument exceeding 2000 bytes causes a buffer overrun 4908 # during glob expansion). Even if it were fixed, the result of this 4909 # check would be larger than it should be. 4910 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4911 ;; 4912 4913 gnu*) 4914 # Under GNU Hurd, this test is not required because there is 4915 # no limit to the length of command line arguments. 4916 # Libtool will interpret -1 as no limit whatsoever 4917 lt_cv_sys_max_cmd_len=-1; 4918 ;; 4919 4920 cygwin* | mingw* | cegcc*) 4921 # On Win9x/ME, this test blows up -- it succeeds, but takes 4922 # about 5 minutes as the teststring grows exponentially. 4923 # Worse, since 9x/ME are not pre-emptively multitasking, 4924 # you end up with a "frozen" computer, even though with patience 4925 # the test eventually succeeds (with a max line length of 256k). 4926 # Instead, let's just punt: use the minimum linelength reported by 4927 # all of the supported platforms: 8192 (on NT/2K/XP). 4928 lt_cv_sys_max_cmd_len=8192; 4929 ;; 4930 4931 amigaos*) 4932 # On AmigaOS with pdksh, this test takes hours, literally. 4933 # So we just punt and use a minimum line length of 8192. 4934 lt_cv_sys_max_cmd_len=8192; 4935 ;; 4936 4937 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4938 # This has been around since 386BSD, at least. Likely further. 4939 if test -x /sbin/sysctl; then 4940 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4941 elif test -x /usr/sbin/sysctl; then 4942 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4943 else 4944 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4945 fi 4946 # And add a safety zone 4947 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4949 ;; 4950 4951 interix*) 4952 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4953 lt_cv_sys_max_cmd_len=196608 4954 ;; 4955 4956 osf*) 4957 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4958 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4959 # nice to cause kernel panics so lets avoid the loop below. 4960 # First set a reasonable default. 4961 lt_cv_sys_max_cmd_len=16384 4962 # 4963 if test -x /sbin/sysconfig; then 4964 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4965 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4966 esac 4967 fi 4968 ;; 4969 sco3.2v5*) 4970 lt_cv_sys_max_cmd_len=102400 4971 ;; 4972 sysv5* | sco5v6* | sysv4.2uw2*) 4973 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4974 if test -n "$kargmax"; then 4975 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4976 else 4977 lt_cv_sys_max_cmd_len=32768 4978 fi 4979 ;; 4980 *) 4981 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4982 if test -n "$lt_cv_sys_max_cmd_len"; then 4983 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4984 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4985 else 4986 # Make teststring a little bigger before we do anything with it. 4987 # a 1K string should be a reasonable start. 4988 for i in 1 2 3 4 5 6 7 8 ; do 4989 teststring=$teststring$teststring 4990 done 4991 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4992 # If test is not a shell built-in, we'll probably end up computing a 4993 # maximum length that is only half of the actual maximum length, but 4994 # we can't tell. 4995 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4996 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4997 test $i != 17 # 1/2 MB should be enough 4998 do 4999 i=`expr $i + 1` 5000 teststring=$teststring$teststring 5001 done 5002 # Only check the string length outside the loop. 5003 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5004 teststring= 5005 # Add a significant safety factor because C++ compilers can tack on 5006 # massive amounts of additional arguments before passing them to the 5007 # linker. It appears as though 1/2 is a usable value. 5008 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5009 fi 5010 ;; 5011 esac 5012 5013fi 5014 5015if test -n $lt_cv_sys_max_cmd_len ; then 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5017$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5018else 5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5020$as_echo "none" >&6; } 5021fi 5022max_cmd_len=$lt_cv_sys_max_cmd_len 5023 5024 5025 5026 5027 5028 5029: ${CP="cp -f"} 5030: ${MV="mv -f"} 5031: ${RM="rm -f"} 5032 5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5034$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5035# Try some XSI features 5036xsi_shell=no 5037( _lt_dummy="a/b/c" 5038 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5039 = c,a/b,, \ 5040 && eval 'test $(( 1 + 1 )) -eq 2 \ 5041 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5042 && xsi_shell=yes 5043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5044$as_echo "$xsi_shell" >&6; } 5045 5046 5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5048$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5049lt_shell_append=no 5050( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5051 >/dev/null 2>&1 \ 5052 && lt_shell_append=yes 5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5054$as_echo "$lt_shell_append" >&6; } 5055 5056 5057if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5058 lt_unset=unset 5059else 5060 lt_unset=false 5061fi 5062 5063 5064 5065 5066 5067# test EBCDIC or ASCII 5068case `echo X|tr X '\101'` in 5069 A) # ASCII based system 5070 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5071 lt_SP2NL='tr \040 \012' 5072 lt_NL2SP='tr \015\012 \040\040' 5073 ;; 5074 *) # EBCDIC based system 5075 lt_SP2NL='tr \100 \n' 5076 lt_NL2SP='tr \r\n \100\100' 5077 ;; 5078esac 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5089$as_echo_n "checking for $LD option to reload object files... " >&6; } 5090if test "${lt_cv_ld_reload_flag+set}" = set; then : 5091 $as_echo_n "(cached) " >&6 5092else 5093 lt_cv_ld_reload_flag='-r' 5094fi 5095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5096$as_echo "$lt_cv_ld_reload_flag" >&6; } 5097reload_flag=$lt_cv_ld_reload_flag 5098case $reload_flag in 5099"" | " "*) ;; 5100*) reload_flag=" $reload_flag" ;; 5101esac 5102reload_cmds='$LD$reload_flag -o $output$reload_objs' 5103case $host_os in 5104 darwin*) 5105 if test "$GCC" = yes; then 5106 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5107 else 5108 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5109 fi 5110 ;; 5111esac 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121if test -n "$ac_tool_prefix"; then 5122 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5123set dummy ${ac_tool_prefix}objdump; ac_word=$2 5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5125$as_echo_n "checking for $ac_word... " >&6; } 5126if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5127 $as_echo_n "(cached) " >&6 5128else 5129 if test -n "$OBJDUMP"; then 5130 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5131else 5132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5133for as_dir in $PATH 5134do 5135 IFS=$as_save_IFS 5136 test -z "$as_dir" && as_dir=. 5137 for ac_exec_ext in '' $ac_executable_extensions; do 5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5139 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5141 break 2 5142 fi 5143done 5144 done 5145IFS=$as_save_IFS 5146 5147fi 5148fi 5149OBJDUMP=$ac_cv_prog_OBJDUMP 5150if test -n "$OBJDUMP"; then 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5152$as_echo "$OBJDUMP" >&6; } 5153else 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5155$as_echo "no" >&6; } 5156fi 5157 5158 5159fi 5160if test -z "$ac_cv_prog_OBJDUMP"; then 5161 ac_ct_OBJDUMP=$OBJDUMP 5162 # Extract the first word of "objdump", so it can be a program name with args. 5163set dummy objdump; ac_word=$2 5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5165$as_echo_n "checking for $ac_word... " >&6; } 5166if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5167 $as_echo_n "(cached) " >&6 5168else 5169 if test -n "$ac_ct_OBJDUMP"; then 5170 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5171else 5172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5173for as_dir in $PATH 5174do 5175 IFS=$as_save_IFS 5176 test -z "$as_dir" && as_dir=. 5177 for ac_exec_ext in '' $ac_executable_extensions; do 5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5179 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5181 break 2 5182 fi 5183done 5184 done 5185IFS=$as_save_IFS 5186 5187fi 5188fi 5189ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5190if test -n "$ac_ct_OBJDUMP"; then 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5192$as_echo "$ac_ct_OBJDUMP" >&6; } 5193else 5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5195$as_echo "no" >&6; } 5196fi 5197 5198 if test "x$ac_ct_OBJDUMP" = x; then 5199 OBJDUMP="false" 5200 else 5201 case $cross_compiling:$ac_tool_warned in 5202yes:) 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5205ac_tool_warned=yes ;; 5206esac 5207 OBJDUMP=$ac_ct_OBJDUMP 5208 fi 5209else 5210 OBJDUMP="$ac_cv_prog_OBJDUMP" 5211fi 5212 5213test -z "$OBJDUMP" && OBJDUMP=objdump 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5224$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5225if test "${lt_cv_deplibs_check_method+set}" = set; then : 5226 $as_echo_n "(cached) " >&6 5227else 5228 lt_cv_file_magic_cmd='$MAGIC_CMD' 5229lt_cv_file_magic_test_file= 5230lt_cv_deplibs_check_method='unknown' 5231# Need to set the preceding variable on all platforms that support 5232# interlibrary dependencies. 5233# 'none' -- dependencies not supported. 5234# `unknown' -- same as none, but documents that we really don't know. 5235# 'pass_all' -- all dependencies passed with no checks. 5236# 'test_compile' -- check by making test program. 5237# 'file_magic [[regex]]' -- check by looking for files in library path 5238# which responds to the $file_magic_cmd with a given extended regex. 5239# If you have `file' or equivalent on your system and you're not sure 5240# whether `pass_all' will *always* work, you probably want this one. 5241 5242case $host_os in 5243aix[4-9]*) 5244 lt_cv_deplibs_check_method=pass_all 5245 ;; 5246 5247beos*) 5248 lt_cv_deplibs_check_method=pass_all 5249 ;; 5250 5251bsdi[45]*) 5252 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5253 lt_cv_file_magic_cmd='/usr/bin/file -L' 5254 lt_cv_file_magic_test_file=/shlib/libc.so 5255 ;; 5256 5257cygwin*) 5258 # func_win32_libid is a shell function defined in ltmain.sh 5259 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5260 lt_cv_file_magic_cmd='func_win32_libid' 5261 ;; 5262 5263mingw* | pw32*) 5264 # Base MSYS/MinGW do not provide the 'file' command needed by 5265 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5266 # unless we find 'file', for example because we are cross-compiling. 5267 if ( file / ) >/dev/null 2>&1; then 5268 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5269 lt_cv_file_magic_cmd='func_win32_libid' 5270 else 5271 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5272 lt_cv_file_magic_cmd='$OBJDUMP -f' 5273 fi 5274 ;; 5275 5276cegcc) 5277 # use the weaker test based on 'objdump'. See mingw*. 5278 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5279 lt_cv_file_magic_cmd='$OBJDUMP -f' 5280 ;; 5281 5282darwin* | rhapsody*) 5283 lt_cv_deplibs_check_method=pass_all 5284 ;; 5285 5286freebsd* | dragonfly*) 5287 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5288 case $host_cpu in 5289 i*86 ) 5290 # Not sure whether the presence of OpenBSD here was a mistake. 5291 # Let's accept both of them until this is cleared up. 5292 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5293 lt_cv_file_magic_cmd=/usr/bin/file 5294 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5295 ;; 5296 esac 5297 else 5298 lt_cv_deplibs_check_method=pass_all 5299 fi 5300 ;; 5301 5302gnu*) 5303 lt_cv_deplibs_check_method=pass_all 5304 ;; 5305 5306hpux10.20* | hpux11*) 5307 lt_cv_file_magic_cmd=/usr/bin/file 5308 case $host_cpu in 5309 ia64*) 5310 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5311 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5312 ;; 5313 hppa*64*) 5314 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 5315 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5316 ;; 5317 *) 5318 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5319 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5320 ;; 5321 esac 5322 ;; 5323 5324interix[3-9]*) 5325 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5327 ;; 5328 5329irix5* | irix6* | nonstopux*) 5330 case $LD in 5331 *-32|*"-32 ") libmagic=32-bit;; 5332 *-n32|*"-n32 ") libmagic=N32;; 5333 *-64|*"-64 ") libmagic=64-bit;; 5334 *) libmagic=never-match;; 5335 esac 5336 lt_cv_deplibs_check_method=pass_all 5337 ;; 5338 5339# This must be Linux ELF. 5340linux* | k*bsd*-gnu | kopensolaris*-gnu) 5341 lt_cv_deplibs_check_method=pass_all 5342 ;; 5343 5344netbsd* | netbsdelf*-gnu) 5345 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5347 else 5348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5349 fi 5350 ;; 5351 5352newos6*) 5353 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5354 lt_cv_file_magic_cmd=/usr/bin/file 5355 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5356 ;; 5357 5358*nto* | *qnx*) 5359 lt_cv_deplibs_check_method=pass_all 5360 ;; 5361 5362openbsd*) 5363 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5365 else 5366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5367 fi 5368 ;; 5369 5370osf3* | osf4* | osf5*) 5371 lt_cv_deplibs_check_method=pass_all 5372 ;; 5373 5374rdos*) 5375 lt_cv_deplibs_check_method=pass_all 5376 ;; 5377 5378solaris*) 5379 lt_cv_deplibs_check_method=pass_all 5380 ;; 5381 5382sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5383 lt_cv_deplibs_check_method=pass_all 5384 ;; 5385 5386sysv4 | sysv4.3*) 5387 case $host_vendor in 5388 motorola) 5389 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]' 5390 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5391 ;; 5392 ncr) 5393 lt_cv_deplibs_check_method=pass_all 5394 ;; 5395 sequent) 5396 lt_cv_file_magic_cmd='/bin/file' 5397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5398 ;; 5399 sni) 5400 lt_cv_file_magic_cmd='/bin/file' 5401 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5402 lt_cv_file_magic_test_file=/lib/libc.so 5403 ;; 5404 siemens) 5405 lt_cv_deplibs_check_method=pass_all 5406 ;; 5407 pc) 5408 lt_cv_deplibs_check_method=pass_all 5409 ;; 5410 esac 5411 ;; 5412 5413tpf*) 5414 lt_cv_deplibs_check_method=pass_all 5415 ;; 5416esac 5417 5418fi 5419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5420$as_echo "$lt_cv_deplibs_check_method" >&6; } 5421file_magic_cmd=$lt_cv_file_magic_cmd 5422deplibs_check_method=$lt_cv_deplibs_check_method 5423test -z "$deplibs_check_method" && deplibs_check_method=unknown 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436if test -n "$ac_tool_prefix"; then 5437 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5438set dummy ${ac_tool_prefix}ar; ac_word=$2 5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5440$as_echo_n "checking for $ac_word... " >&6; } 5441if test "${ac_cv_prog_AR+set}" = set; then : 5442 $as_echo_n "(cached) " >&6 5443else 5444 if test -n "$AR"; then 5445 ac_cv_prog_AR="$AR" # Let the user override the test. 5446else 5447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5448for as_dir in $PATH 5449do 5450 IFS=$as_save_IFS 5451 test -z "$as_dir" && as_dir=. 5452 for ac_exec_ext in '' $ac_executable_extensions; do 5453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5454 ac_cv_prog_AR="${ac_tool_prefix}ar" 5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5456 break 2 5457 fi 5458done 5459 done 5460IFS=$as_save_IFS 5461 5462fi 5463fi 5464AR=$ac_cv_prog_AR 5465if test -n "$AR"; then 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5467$as_echo "$AR" >&6; } 5468else 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5470$as_echo "no" >&6; } 5471fi 5472 5473 5474fi 5475if test -z "$ac_cv_prog_AR"; then 5476 ac_ct_AR=$AR 5477 # Extract the first word of "ar", so it can be a program name with args. 5478set dummy ar; ac_word=$2 5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5480$as_echo_n "checking for $ac_word... " >&6; } 5481if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 if test -n "$ac_ct_AR"; then 5485 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5486else 5487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5488for as_dir in $PATH 5489do 5490 IFS=$as_save_IFS 5491 test -z "$as_dir" && as_dir=. 5492 for ac_exec_ext in '' $ac_executable_extensions; do 5493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5494 ac_cv_prog_ac_ct_AR="ar" 5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5496 break 2 5497 fi 5498done 5499 done 5500IFS=$as_save_IFS 5501 5502fi 5503fi 5504ac_ct_AR=$ac_cv_prog_ac_ct_AR 5505if test -n "$ac_ct_AR"; then 5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5507$as_echo "$ac_ct_AR" >&6; } 5508else 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5510$as_echo "no" >&6; } 5511fi 5512 5513 if test "x$ac_ct_AR" = x; then 5514 AR="false" 5515 else 5516 case $cross_compiling:$ac_tool_warned in 5517yes:) 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5520ac_tool_warned=yes ;; 5521esac 5522 AR=$ac_ct_AR 5523 fi 5524else 5525 AR="$ac_cv_prog_AR" 5526fi 5527 5528test -z "$AR" && AR=ar 5529test -z "$AR_FLAGS" && AR_FLAGS=cru 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541if test -n "$ac_tool_prefix"; then 5542 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5543set dummy ${ac_tool_prefix}strip; ac_word=$2 5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5545$as_echo_n "checking for $ac_word... " >&6; } 5546if test "${ac_cv_prog_STRIP+set}" = set; then : 5547 $as_echo_n "(cached) " >&6 5548else 5549 if test -n "$STRIP"; then 5550 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5551else 5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5553for as_dir in $PATH 5554do 5555 IFS=$as_save_IFS 5556 test -z "$as_dir" && as_dir=. 5557 for ac_exec_ext in '' $ac_executable_extensions; do 5558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5559 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5561 break 2 5562 fi 5563done 5564 done 5565IFS=$as_save_IFS 5566 5567fi 5568fi 5569STRIP=$ac_cv_prog_STRIP 5570if test -n "$STRIP"; then 5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5572$as_echo "$STRIP" >&6; } 5573else 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5575$as_echo "no" >&6; } 5576fi 5577 5578 5579fi 5580if test -z "$ac_cv_prog_STRIP"; then 5581 ac_ct_STRIP=$STRIP 5582 # Extract the first word of "strip", so it can be a program name with args. 5583set dummy strip; ac_word=$2 5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5585$as_echo_n "checking for $ac_word... " >&6; } 5586if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5587 $as_echo_n "(cached) " >&6 5588else 5589 if test -n "$ac_ct_STRIP"; then 5590 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5591else 5592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5593for as_dir in $PATH 5594do 5595 IFS=$as_save_IFS 5596 test -z "$as_dir" && as_dir=. 5597 for ac_exec_ext in '' $ac_executable_extensions; do 5598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5599 ac_cv_prog_ac_ct_STRIP="strip" 5600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5601 break 2 5602 fi 5603done 5604 done 5605IFS=$as_save_IFS 5606 5607fi 5608fi 5609ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5610if test -n "$ac_ct_STRIP"; then 5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5612$as_echo "$ac_ct_STRIP" >&6; } 5613else 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5615$as_echo "no" >&6; } 5616fi 5617 5618 if test "x$ac_ct_STRIP" = x; then 5619 STRIP=":" 5620 else 5621 case $cross_compiling:$ac_tool_warned in 5622yes:) 5623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5625ac_tool_warned=yes ;; 5626esac 5627 STRIP=$ac_ct_STRIP 5628 fi 5629else 5630 STRIP="$ac_cv_prog_STRIP" 5631fi 5632 5633test -z "$STRIP" && STRIP=: 5634 5635 5636 5637 5638 5639 5640if test -n "$ac_tool_prefix"; then 5641 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5642set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5644$as_echo_n "checking for $ac_word... " >&6; } 5645if test "${ac_cv_prog_RANLIB+set}" = set; then : 5646 $as_echo_n "(cached) " >&6 5647else 5648 if test -n "$RANLIB"; then 5649 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5650else 5651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5652for as_dir in $PATH 5653do 5654 IFS=$as_save_IFS 5655 test -z "$as_dir" && as_dir=. 5656 for ac_exec_ext in '' $ac_executable_extensions; do 5657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5658 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5660 break 2 5661 fi 5662done 5663 done 5664IFS=$as_save_IFS 5665 5666fi 5667fi 5668RANLIB=$ac_cv_prog_RANLIB 5669if test -n "$RANLIB"; then 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5671$as_echo "$RANLIB" >&6; } 5672else 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5674$as_echo "no" >&6; } 5675fi 5676 5677 5678fi 5679if test -z "$ac_cv_prog_RANLIB"; then 5680 ac_ct_RANLIB=$RANLIB 5681 # Extract the first word of "ranlib", so it can be a program name with args. 5682set dummy ranlib; ac_word=$2 5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5684$as_echo_n "checking for $ac_word... " >&6; } 5685if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5686 $as_echo_n "(cached) " >&6 5687else 5688 if test -n "$ac_ct_RANLIB"; then 5689 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5690else 5691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5692for as_dir in $PATH 5693do 5694 IFS=$as_save_IFS 5695 test -z "$as_dir" && as_dir=. 5696 for ac_exec_ext in '' $ac_executable_extensions; do 5697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5698 ac_cv_prog_ac_ct_RANLIB="ranlib" 5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5700 break 2 5701 fi 5702done 5703 done 5704IFS=$as_save_IFS 5705 5706fi 5707fi 5708ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5709if test -n "$ac_ct_RANLIB"; then 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5711$as_echo "$ac_ct_RANLIB" >&6; } 5712else 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5714$as_echo "no" >&6; } 5715fi 5716 5717 if test "x$ac_ct_RANLIB" = x; then 5718 RANLIB=":" 5719 else 5720 case $cross_compiling:$ac_tool_warned in 5721yes:) 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5724ac_tool_warned=yes ;; 5725esac 5726 RANLIB=$ac_ct_RANLIB 5727 fi 5728else 5729 RANLIB="$ac_cv_prog_RANLIB" 5730fi 5731 5732test -z "$RANLIB" && RANLIB=: 5733 5734 5735 5736 5737 5738 5739# Determine commands to create old-style static archives. 5740old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5741old_postinstall_cmds='chmod 644 $oldlib' 5742old_postuninstall_cmds= 5743 5744if test -n "$RANLIB"; then 5745 case $host_os in 5746 openbsd*) 5747 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5748 ;; 5749 *) 5750 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5751 ;; 5752 esac 5753 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5754fi 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789# If no C compiler was specified, use CC. 5790LTCC=${LTCC-"$CC"} 5791 5792# If no C compiler flags were specified, use CFLAGS. 5793LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5794 5795# Allow CC to be a program name with arguments. 5796compiler=$CC 5797 5798 5799# Check for command to grab the raw symbol name followed by C symbol from nm. 5800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5801$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5802if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5803 $as_echo_n "(cached) " >&6 5804else 5805 5806# These are sane defaults that work on at least a few old systems. 5807# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5808 5809# Character class describing NM global symbol codes. 5810symcode='[BCDEGRST]' 5811 5812# Regexp to match symbols that can be accessed directly from C. 5813sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5814 5815# Define system-specific variables. 5816case $host_os in 5817aix*) 5818 symcode='[BCDT]' 5819 ;; 5820cygwin* | mingw* | pw32* | cegcc*) 5821 symcode='[ABCDGISTW]' 5822 ;; 5823hpux*) 5824 if test "$host_cpu" = ia64; then 5825 symcode='[ABCDEGRST]' 5826 fi 5827 ;; 5828irix* | nonstopux*) 5829 symcode='[BCDEGRST]' 5830 ;; 5831osf*) 5832 symcode='[BCDEGQRST]' 5833 ;; 5834solaris*) 5835 symcode='[BDRT]' 5836 ;; 5837sco3.2v5*) 5838 symcode='[DT]' 5839 ;; 5840sysv4.2uw2*) 5841 symcode='[DT]' 5842 ;; 5843sysv5* | sco5v6* | unixware* | OpenUNIX*) 5844 symcode='[ABDT]' 5845 ;; 5846sysv4) 5847 symcode='[DFNSTU]' 5848 ;; 5849esac 5850 5851# If we're using GNU nm, then use its standard symbol codes. 5852case `$NM -V 2>&1` in 5853*GNU* | *'with BFD'*) 5854 symcode='[ABCDGIRSTW]' ;; 5855esac 5856 5857# Transform an extracted symbol line into a proper C declaration. 5858# Some systems (esp. on ia64) link data and code symbols differently, 5859# so use this general approach. 5860lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5861 5862# Transform an extracted symbol line into symbol name and symbol address 5863lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5864lt_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'" 5865 5866# Handle CRLF in mingw tool chain 5867opt_cr= 5868case $build_os in 5869mingw*) 5870 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5871 ;; 5872esac 5873 5874# Try without a prefix underscore, then with it. 5875for ac_symprfx in "" "_"; do 5876 5877 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5878 symxfrm="\\1 $ac_symprfx\\2 \\2" 5879 5880 # Write the raw and C identifiers. 5881 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5882 # Fake it for dumpbin and say T for any non-static function 5883 # and D for any global variable. 5884 # Also find C++ and __fastcall symbols from MSVC++, 5885 # which start with @ or ?. 5886 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5887" {last_section=section; section=\$ 3};"\ 5888" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5889" \$ 0!~/External *\|/{next};"\ 5890" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5891" {if(hide[section]) next};"\ 5892" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5893" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5894" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5895" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5896" ' prfx=^$ac_symprfx" 5897 else 5898 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5899 fi 5900 5901 # Check to see that the pipe works correctly. 5902 pipe_works=no 5903 5904 rm -f conftest* 5905 cat > conftest.$ac_ext <<_LT_EOF 5906#ifdef __cplusplus 5907extern "C" { 5908#endif 5909char nm_test_var; 5910void nm_test_func(void); 5911void nm_test_func(void){} 5912#ifdef __cplusplus 5913} 5914#endif 5915int main(){nm_test_var='a';nm_test_func();return(0);} 5916_LT_EOF 5917 5918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5919 (eval $ac_compile) 2>&5 5920 ac_status=$? 5921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5922 test $ac_status = 0; }; then 5923 # Now try to grab the symbols. 5924 nlist=conftest.nm 5925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 5926 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5927 ac_status=$? 5928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5929 test $ac_status = 0; } && test -s "$nlist"; then 5930 # Try sorting and uniquifying the output. 5931 if sort "$nlist" | uniq > "$nlist"T; then 5932 mv -f "$nlist"T "$nlist" 5933 else 5934 rm -f "$nlist"T 5935 fi 5936 5937 # Make sure that we snagged all the symbols we need. 5938 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5939 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5940 cat <<_LT_EOF > conftest.$ac_ext 5941#ifdef __cplusplus 5942extern "C" { 5943#endif 5944 5945_LT_EOF 5946 # Now generate the symbol file. 5947 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5948 5949 cat <<_LT_EOF >> conftest.$ac_ext 5950 5951/* The mapping between symbol names and symbols. */ 5952const struct { 5953 const char *name; 5954 void *address; 5955} 5956lt__PROGRAM__LTX_preloaded_symbols[] = 5957{ 5958 { "@PROGRAM@", (void *) 0 }, 5959_LT_EOF 5960 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5961 cat <<\_LT_EOF >> conftest.$ac_ext 5962 {0, (void *) 0} 5963}; 5964 5965/* This works around a problem in FreeBSD linker */ 5966#ifdef FREEBSD_WORKAROUND 5967static const void *lt_preloaded_setup() { 5968 return lt__PROGRAM__LTX_preloaded_symbols; 5969} 5970#endif 5971 5972#ifdef __cplusplus 5973} 5974#endif 5975_LT_EOF 5976 # Now try linking the two files. 5977 mv conftest.$ac_objext conftstm.$ac_objext 5978 lt_save_LIBS="$LIBS" 5979 lt_save_CFLAGS="$CFLAGS" 5980 LIBS="conftstm.$ac_objext" 5981 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5983 (eval $ac_link) 2>&5 5984 ac_status=$? 5985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5986 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5987 pipe_works=yes 5988 fi 5989 LIBS="$lt_save_LIBS" 5990 CFLAGS="$lt_save_CFLAGS" 5991 else 5992 echo "cannot find nm_test_func in $nlist" >&5 5993 fi 5994 else 5995 echo "cannot find nm_test_var in $nlist" >&5 5996 fi 5997 else 5998 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5999 fi 6000 else 6001 echo "$progname: failed program was:" >&5 6002 cat conftest.$ac_ext >&5 6003 fi 6004 rm -rf conftest* conftst* 6005 6006 # Do not use the global_symbol_pipe unless it works. 6007 if test "$pipe_works" = yes; then 6008 break 6009 else 6010 lt_cv_sys_global_symbol_pipe= 6011 fi 6012done 6013 6014fi 6015 6016if test -z "$lt_cv_sys_global_symbol_pipe"; then 6017 lt_cv_sys_global_symbol_to_cdecl= 6018fi 6019if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6021$as_echo "failed" >&6; } 6022else 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6024$as_echo "ok" >&6; } 6025fi 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048# Check whether --enable-libtool-lock was given. 6049if test "${enable_libtool_lock+set}" = set; then : 6050 enableval=$enable_libtool_lock; 6051fi 6052 6053test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6054 6055# Some flags need to be propagated to the compiler or linker for good 6056# libtool support. 6057case $host in 6058ia64-*-hpux*) 6059 # Find out which ABI we are using. 6060 echo 'int i;' > conftest.$ac_ext 6061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6062 (eval $ac_compile) 2>&5 6063 ac_status=$? 6064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6065 test $ac_status = 0; }; then 6066 case `/usr/bin/file conftest.$ac_objext` in 6067 *ELF-32*) 6068 HPUX_IA64_MODE="32" 6069 ;; 6070 *ELF-64*) 6071 HPUX_IA64_MODE="64" 6072 ;; 6073 esac 6074 fi 6075 rm -rf conftest* 6076 ;; 6077*-*-irix6*) 6078 # Find out which ABI we are using. 6079 echo '#line 6079 "configure"' > conftest.$ac_ext 6080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6081 (eval $ac_compile) 2>&5 6082 ac_status=$? 6083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6084 test $ac_status = 0; }; then 6085 if test "$lt_cv_prog_gnu_ld" = yes; then 6086 case `/usr/bin/file conftest.$ac_objext` in 6087 *32-bit*) 6088 LD="${LD-ld} -melf32bsmip" 6089 ;; 6090 *N32*) 6091 LD="${LD-ld} -melf32bmipn32" 6092 ;; 6093 *64-bit*) 6094 LD="${LD-ld} -melf64bmip" 6095 ;; 6096 esac 6097 else 6098 case `/usr/bin/file conftest.$ac_objext` in 6099 *32-bit*) 6100 LD="${LD-ld} -32" 6101 ;; 6102 *N32*) 6103 LD="${LD-ld} -n32" 6104 ;; 6105 *64-bit*) 6106 LD="${LD-ld} -64" 6107 ;; 6108 esac 6109 fi 6110 fi 6111 rm -rf conftest* 6112 ;; 6113 6114x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6115s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6116 # Find out which ABI we are using. 6117 echo 'int i;' > conftest.$ac_ext 6118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6119 (eval $ac_compile) 2>&5 6120 ac_status=$? 6121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6122 test $ac_status = 0; }; then 6123 case `/usr/bin/file conftest.o` in 6124 *32-bit*) 6125 case $host in 6126 x86_64-*kfreebsd*-gnu) 6127 LD="${LD-ld} -m elf_i386_fbsd" 6128 ;; 6129 x86_64-*linux*) 6130 LD="${LD-ld} -m elf_i386" 6131 ;; 6132 ppc64-*linux*|powerpc64-*linux*) 6133 LD="${LD-ld} -m elf32ppclinux" 6134 ;; 6135 s390x-*linux*) 6136 LD="${LD-ld} -m elf_s390" 6137 ;; 6138 sparc64-*linux*) 6139 LD="${LD-ld} -m elf32_sparc" 6140 ;; 6141 esac 6142 ;; 6143 *64-bit*) 6144 case $host in 6145 x86_64-*kfreebsd*-gnu) 6146 LD="${LD-ld} -m elf_x86_64_fbsd" 6147 ;; 6148 x86_64-*linux*) 6149 LD="${LD-ld} -m elf_x86_64" 6150 ;; 6151 ppc*-*linux*|powerpc*-*linux*) 6152 LD="${LD-ld} -m elf64ppc" 6153 ;; 6154 s390*-*linux*|s390*-*tpf*) 6155 LD="${LD-ld} -m elf64_s390" 6156 ;; 6157 sparc*-*linux*) 6158 LD="${LD-ld} -m elf64_sparc" 6159 ;; 6160 esac 6161 ;; 6162 esac 6163 fi 6164 rm -rf conftest* 6165 ;; 6166 6167*-*-sco3.2v5*) 6168 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6169 SAVE_CFLAGS="$CFLAGS" 6170 CFLAGS="$CFLAGS -belf" 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6172$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6173if test "${lt_cv_cc_needs_belf+set}" = set; then : 6174 $as_echo_n "(cached) " >&6 6175else 6176 ac_ext=c 6177ac_cpp='$CPP $CPPFLAGS' 6178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6180ac_compiler_gnu=$ac_cv_c_compiler_gnu 6181 6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6183/* end confdefs.h. */ 6184 6185int 6186main () 6187{ 6188 6189 ; 6190 return 0; 6191} 6192_ACEOF 6193if ac_fn_c_try_link "$LINENO"; then : 6194 lt_cv_cc_needs_belf=yes 6195else 6196 lt_cv_cc_needs_belf=no 6197fi 6198rm -f core conftest.err conftest.$ac_objext \ 6199 conftest$ac_exeext conftest.$ac_ext 6200 ac_ext=c 6201ac_cpp='$CPP $CPPFLAGS' 6202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6204ac_compiler_gnu=$ac_cv_c_compiler_gnu 6205 6206fi 6207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6208$as_echo "$lt_cv_cc_needs_belf" >&6; } 6209 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6210 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6211 CFLAGS="$SAVE_CFLAGS" 6212 fi 6213 ;; 6214sparc*-*solaris*) 6215 # Find out which ABI we are using. 6216 echo 'int i;' > conftest.$ac_ext 6217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6218 (eval $ac_compile) 2>&5 6219 ac_status=$? 6220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6221 test $ac_status = 0; }; then 6222 case `/usr/bin/file conftest.o` in 6223 *64-bit*) 6224 case $lt_cv_prog_gnu_ld in 6225 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6226 *) 6227 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6228 LD="${LD-ld} -64" 6229 fi 6230 ;; 6231 esac 6232 ;; 6233 esac 6234 fi 6235 rm -rf conftest* 6236 ;; 6237esac 6238 6239need_locks="$enable_libtool_lock" 6240 6241 6242 case $host_os in 6243 rhapsody* | darwin*) 6244 if test -n "$ac_tool_prefix"; then 6245 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6246set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6248$as_echo_n "checking for $ac_word... " >&6; } 6249if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6250 $as_echo_n "(cached) " >&6 6251else 6252 if test -n "$DSYMUTIL"; then 6253 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6254else 6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6256for as_dir in $PATH 6257do 6258 IFS=$as_save_IFS 6259 test -z "$as_dir" && as_dir=. 6260 for ac_exec_ext in '' $ac_executable_extensions; do 6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6262 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6264 break 2 6265 fi 6266done 6267 done 6268IFS=$as_save_IFS 6269 6270fi 6271fi 6272DSYMUTIL=$ac_cv_prog_DSYMUTIL 6273if test -n "$DSYMUTIL"; then 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6275$as_echo "$DSYMUTIL" >&6; } 6276else 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6278$as_echo "no" >&6; } 6279fi 6280 6281 6282fi 6283if test -z "$ac_cv_prog_DSYMUTIL"; then 6284 ac_ct_DSYMUTIL=$DSYMUTIL 6285 # Extract the first word of "dsymutil", so it can be a program name with args. 6286set dummy dsymutil; ac_word=$2 6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6288$as_echo_n "checking for $ac_word... " >&6; } 6289if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6290 $as_echo_n "(cached) " >&6 6291else 6292 if test -n "$ac_ct_DSYMUTIL"; then 6293 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6294else 6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6296for as_dir in $PATH 6297do 6298 IFS=$as_save_IFS 6299 test -z "$as_dir" && as_dir=. 6300 for ac_exec_ext in '' $ac_executable_extensions; do 6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6302 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6304 break 2 6305 fi 6306done 6307 done 6308IFS=$as_save_IFS 6309 6310fi 6311fi 6312ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6313if test -n "$ac_ct_DSYMUTIL"; then 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6315$as_echo "$ac_ct_DSYMUTIL" >&6; } 6316else 6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6318$as_echo "no" >&6; } 6319fi 6320 6321 if test "x$ac_ct_DSYMUTIL" = x; then 6322 DSYMUTIL=":" 6323 else 6324 case $cross_compiling:$ac_tool_warned in 6325yes:) 6326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6328ac_tool_warned=yes ;; 6329esac 6330 DSYMUTIL=$ac_ct_DSYMUTIL 6331 fi 6332else 6333 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6334fi 6335 6336 if test -n "$ac_tool_prefix"; then 6337 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6338set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6340$as_echo_n "checking for $ac_word... " >&6; } 6341if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6342 $as_echo_n "(cached) " >&6 6343else 6344 if test -n "$NMEDIT"; then 6345 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6346else 6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6348for as_dir in $PATH 6349do 6350 IFS=$as_save_IFS 6351 test -z "$as_dir" && as_dir=. 6352 for ac_exec_ext in '' $ac_executable_extensions; do 6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6354 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6356 break 2 6357 fi 6358done 6359 done 6360IFS=$as_save_IFS 6361 6362fi 6363fi 6364NMEDIT=$ac_cv_prog_NMEDIT 6365if test -n "$NMEDIT"; then 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6367$as_echo "$NMEDIT" >&6; } 6368else 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6370$as_echo "no" >&6; } 6371fi 6372 6373 6374fi 6375if test -z "$ac_cv_prog_NMEDIT"; then 6376 ac_ct_NMEDIT=$NMEDIT 6377 # Extract the first word of "nmedit", so it can be a program name with args. 6378set dummy nmedit; ac_word=$2 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6380$as_echo_n "checking for $ac_word... " >&6; } 6381if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6382 $as_echo_n "(cached) " >&6 6383else 6384 if test -n "$ac_ct_NMEDIT"; then 6385 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6386else 6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6388for as_dir in $PATH 6389do 6390 IFS=$as_save_IFS 6391 test -z "$as_dir" && as_dir=. 6392 for ac_exec_ext in '' $ac_executable_extensions; do 6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6394 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6396 break 2 6397 fi 6398done 6399 done 6400IFS=$as_save_IFS 6401 6402fi 6403fi 6404ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6405if test -n "$ac_ct_NMEDIT"; then 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6407$as_echo "$ac_ct_NMEDIT" >&6; } 6408else 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6410$as_echo "no" >&6; } 6411fi 6412 6413 if test "x$ac_ct_NMEDIT" = x; then 6414 NMEDIT=":" 6415 else 6416 case $cross_compiling:$ac_tool_warned in 6417yes:) 6418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6420ac_tool_warned=yes ;; 6421esac 6422 NMEDIT=$ac_ct_NMEDIT 6423 fi 6424else 6425 NMEDIT="$ac_cv_prog_NMEDIT" 6426fi 6427 6428 if test -n "$ac_tool_prefix"; then 6429 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6430set dummy ${ac_tool_prefix}lipo; ac_word=$2 6431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6432$as_echo_n "checking for $ac_word... " >&6; } 6433if test "${ac_cv_prog_LIPO+set}" = set; then : 6434 $as_echo_n "(cached) " >&6 6435else 6436 if test -n "$LIPO"; then 6437 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6438else 6439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6440for as_dir in $PATH 6441do 6442 IFS=$as_save_IFS 6443 test -z "$as_dir" && as_dir=. 6444 for ac_exec_ext in '' $ac_executable_extensions; do 6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6446 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6448 break 2 6449 fi 6450done 6451 done 6452IFS=$as_save_IFS 6453 6454fi 6455fi 6456LIPO=$ac_cv_prog_LIPO 6457if test -n "$LIPO"; then 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6459$as_echo "$LIPO" >&6; } 6460else 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6462$as_echo "no" >&6; } 6463fi 6464 6465 6466fi 6467if test -z "$ac_cv_prog_LIPO"; then 6468 ac_ct_LIPO=$LIPO 6469 # Extract the first word of "lipo", so it can be a program name with args. 6470set dummy lipo; ac_word=$2 6471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6472$as_echo_n "checking for $ac_word... " >&6; } 6473if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6474 $as_echo_n "(cached) " >&6 6475else 6476 if test -n "$ac_ct_LIPO"; then 6477 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6478else 6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6480for as_dir in $PATH 6481do 6482 IFS=$as_save_IFS 6483 test -z "$as_dir" && as_dir=. 6484 for ac_exec_ext in '' $ac_executable_extensions; do 6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6486 ac_cv_prog_ac_ct_LIPO="lipo" 6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6488 break 2 6489 fi 6490done 6491 done 6492IFS=$as_save_IFS 6493 6494fi 6495fi 6496ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6497if test -n "$ac_ct_LIPO"; then 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6499$as_echo "$ac_ct_LIPO" >&6; } 6500else 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6502$as_echo "no" >&6; } 6503fi 6504 6505 if test "x$ac_ct_LIPO" = x; then 6506 LIPO=":" 6507 else 6508 case $cross_compiling:$ac_tool_warned in 6509yes:) 6510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6512ac_tool_warned=yes ;; 6513esac 6514 LIPO=$ac_ct_LIPO 6515 fi 6516else 6517 LIPO="$ac_cv_prog_LIPO" 6518fi 6519 6520 if test -n "$ac_tool_prefix"; then 6521 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6522set dummy ${ac_tool_prefix}otool; ac_word=$2 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6524$as_echo_n "checking for $ac_word... " >&6; } 6525if test "${ac_cv_prog_OTOOL+set}" = set; then : 6526 $as_echo_n "(cached) " >&6 6527else 6528 if test -n "$OTOOL"; then 6529 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6530else 6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6532for as_dir in $PATH 6533do 6534 IFS=$as_save_IFS 6535 test -z "$as_dir" && as_dir=. 6536 for ac_exec_ext in '' $ac_executable_extensions; do 6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6538 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6540 break 2 6541 fi 6542done 6543 done 6544IFS=$as_save_IFS 6545 6546fi 6547fi 6548OTOOL=$ac_cv_prog_OTOOL 6549if test -n "$OTOOL"; then 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6551$as_echo "$OTOOL" >&6; } 6552else 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6554$as_echo "no" >&6; } 6555fi 6556 6557 6558fi 6559if test -z "$ac_cv_prog_OTOOL"; then 6560 ac_ct_OTOOL=$OTOOL 6561 # Extract the first word of "otool", so it can be a program name with args. 6562set dummy otool; ac_word=$2 6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6564$as_echo_n "checking for $ac_word... " >&6; } 6565if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6566 $as_echo_n "(cached) " >&6 6567else 6568 if test -n "$ac_ct_OTOOL"; then 6569 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6570else 6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6572for as_dir in $PATH 6573do 6574 IFS=$as_save_IFS 6575 test -z "$as_dir" && as_dir=. 6576 for ac_exec_ext in '' $ac_executable_extensions; do 6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6578 ac_cv_prog_ac_ct_OTOOL="otool" 6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6580 break 2 6581 fi 6582done 6583 done 6584IFS=$as_save_IFS 6585 6586fi 6587fi 6588ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6589if test -n "$ac_ct_OTOOL"; then 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6591$as_echo "$ac_ct_OTOOL" >&6; } 6592else 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6594$as_echo "no" >&6; } 6595fi 6596 6597 if test "x$ac_ct_OTOOL" = x; then 6598 OTOOL=":" 6599 else 6600 case $cross_compiling:$ac_tool_warned in 6601yes:) 6602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6604ac_tool_warned=yes ;; 6605esac 6606 OTOOL=$ac_ct_OTOOL 6607 fi 6608else 6609 OTOOL="$ac_cv_prog_OTOOL" 6610fi 6611 6612 if test -n "$ac_tool_prefix"; then 6613 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6614set dummy ${ac_tool_prefix}otool64; ac_word=$2 6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6616$as_echo_n "checking for $ac_word... " >&6; } 6617if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6618 $as_echo_n "(cached) " >&6 6619else 6620 if test -n "$OTOOL64"; then 6621 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6622else 6623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6624for as_dir in $PATH 6625do 6626 IFS=$as_save_IFS 6627 test -z "$as_dir" && as_dir=. 6628 for ac_exec_ext in '' $ac_executable_extensions; do 6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6630 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6632 break 2 6633 fi 6634done 6635 done 6636IFS=$as_save_IFS 6637 6638fi 6639fi 6640OTOOL64=$ac_cv_prog_OTOOL64 6641if test -n "$OTOOL64"; then 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6643$as_echo "$OTOOL64" >&6; } 6644else 6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6646$as_echo "no" >&6; } 6647fi 6648 6649 6650fi 6651if test -z "$ac_cv_prog_OTOOL64"; then 6652 ac_ct_OTOOL64=$OTOOL64 6653 # Extract the first word of "otool64", so it can be a program name with args. 6654set dummy otool64; ac_word=$2 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6656$as_echo_n "checking for $ac_word... " >&6; } 6657if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6658 $as_echo_n "(cached) " >&6 6659else 6660 if test -n "$ac_ct_OTOOL64"; then 6661 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6662else 6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6664for as_dir in $PATH 6665do 6666 IFS=$as_save_IFS 6667 test -z "$as_dir" && as_dir=. 6668 for ac_exec_ext in '' $ac_executable_extensions; do 6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6670 ac_cv_prog_ac_ct_OTOOL64="otool64" 6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6672 break 2 6673 fi 6674done 6675 done 6676IFS=$as_save_IFS 6677 6678fi 6679fi 6680ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6681if test -n "$ac_ct_OTOOL64"; then 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6683$as_echo "$ac_ct_OTOOL64" >&6; } 6684else 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6686$as_echo "no" >&6; } 6687fi 6688 6689 if test "x$ac_ct_OTOOL64" = x; then 6690 OTOOL64=":" 6691 else 6692 case $cross_compiling:$ac_tool_warned in 6693yes:) 6694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6696ac_tool_warned=yes ;; 6697esac 6698 OTOOL64=$ac_ct_OTOOL64 6699 fi 6700else 6701 OTOOL64="$ac_cv_prog_OTOOL64" 6702fi 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6731$as_echo_n "checking for -single_module linker flag... " >&6; } 6732if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6733 $as_echo_n "(cached) " >&6 6734else 6735 lt_cv_apple_cc_single_mod=no 6736 if test -z "${LT_MULTI_MODULE}"; then 6737 # By default we will add the -single_module flag. You can override 6738 # by either setting the environment variable LT_MULTI_MODULE 6739 # non-empty at configure time, or by adding -multi_module to the 6740 # link flags. 6741 rm -rf libconftest.dylib* 6742 echo "int foo(void){return 1;}" > conftest.c 6743 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6744-dynamiclib -Wl,-single_module conftest.c" >&5 6745 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6746 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6747 _lt_result=$? 6748 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6749 lt_cv_apple_cc_single_mod=yes 6750 else 6751 cat conftest.err >&5 6752 fi 6753 rm -rf libconftest.dylib* 6754 rm -f conftest.* 6755 fi 6756fi 6757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6758$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6760$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6761if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6762 $as_echo_n "(cached) " >&6 6763else 6764 lt_cv_ld_exported_symbols_list=no 6765 save_LDFLAGS=$LDFLAGS 6766 echo "_main" > conftest.sym 6767 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6769/* end confdefs.h. */ 6770 6771int 6772main () 6773{ 6774 6775 ; 6776 return 0; 6777} 6778_ACEOF 6779if ac_fn_c_try_link "$LINENO"; then : 6780 lt_cv_ld_exported_symbols_list=yes 6781else 6782 lt_cv_ld_exported_symbols_list=no 6783fi 6784rm -f core conftest.err conftest.$ac_objext \ 6785 conftest$ac_exeext conftest.$ac_ext 6786 LDFLAGS="$save_LDFLAGS" 6787 6788fi 6789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6790$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6791 case $host_os in 6792 rhapsody* | darwin1.[012]) 6793 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6794 darwin1.*) 6795 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6796 darwin*) # darwin 5.x on 6797 # if running on 10.5 or later, the deployment target defaults 6798 # to the OS version, if on x86, and 10.4, the deployment 6799 # target defaults to 10.4. Don't you love it? 6800 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6801 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6802 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6803 10.[012]*) 6804 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6805 10.*) 6806 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6807 esac 6808 ;; 6809 esac 6810 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6811 _lt_dar_single_mod='$single_module' 6812 fi 6813 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6814 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6815 else 6816 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6817 fi 6818 if test "$DSYMUTIL" != ":"; then 6819 _lt_dsymutil='~$DSYMUTIL $lib || :' 6820 else 6821 _lt_dsymutil= 6822 fi 6823 ;; 6824 esac 6825 6826 6827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6828$as_echo_n "checking for ANSI C header files... " >&6; } 6829if test "${ac_cv_header_stdc+set}" = set; then : 6830 $as_echo_n "(cached) " >&6 6831else 6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6833/* end confdefs.h. */ 6834#include <stdlib.h> 6835#include <stdarg.h> 6836#include <string.h> 6837#include <float.h> 6838 6839int 6840main () 6841{ 6842 6843 ; 6844 return 0; 6845} 6846_ACEOF 6847if ac_fn_c_try_compile "$LINENO"; then : 6848 ac_cv_header_stdc=yes 6849else 6850 ac_cv_header_stdc=no 6851fi 6852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6853 6854if test $ac_cv_header_stdc = yes; then 6855 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6857/* end confdefs.h. */ 6858#include <string.h> 6859 6860_ACEOF 6861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6862 $EGREP "memchr" >/dev/null 2>&1; then : 6863 6864else 6865 ac_cv_header_stdc=no 6866fi 6867rm -f conftest* 6868 6869fi 6870 6871if test $ac_cv_header_stdc = yes; then 6872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6874/* end confdefs.h. */ 6875#include <stdlib.h> 6876 6877_ACEOF 6878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6879 $EGREP "free" >/dev/null 2>&1; then : 6880 6881else 6882 ac_cv_header_stdc=no 6883fi 6884rm -f conftest* 6885 6886fi 6887 6888if test $ac_cv_header_stdc = yes; then 6889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6890 if test "$cross_compiling" = yes; then : 6891 : 6892else 6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6894/* end confdefs.h. */ 6895#include <ctype.h> 6896#include <stdlib.h> 6897#if ((' ' & 0x0FF) == 0x020) 6898# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6899# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6900#else 6901# define ISLOWER(c) \ 6902 (('a' <= (c) && (c) <= 'i') \ 6903 || ('j' <= (c) && (c) <= 'r') \ 6904 || ('s' <= (c) && (c) <= 'z')) 6905# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6906#endif 6907 6908#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6909int 6910main () 6911{ 6912 int i; 6913 for (i = 0; i < 256; i++) 6914 if (XOR (islower (i), ISLOWER (i)) 6915 || toupper (i) != TOUPPER (i)) 6916 return 2; 6917 return 0; 6918} 6919_ACEOF 6920if ac_fn_c_try_run "$LINENO"; then : 6921 6922else 6923 ac_cv_header_stdc=no 6924fi 6925rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6926 conftest.$ac_objext conftest.beam conftest.$ac_ext 6927fi 6928 6929fi 6930fi 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6932$as_echo "$ac_cv_header_stdc" >&6; } 6933if test $ac_cv_header_stdc = yes; then 6934 6935$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6936 6937fi 6938 6939# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6940for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6941 inttypes.h stdint.h unistd.h 6942do : 6943 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6944ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6945" 6946if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6947 cat >>confdefs.h <<_ACEOF 6948#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6949_ACEOF 6950 6951fi 6952 6953done 6954 6955 6956for ac_header in dlfcn.h 6957do : 6958 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6959" 6960if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 6961 cat >>confdefs.h <<_ACEOF 6962#define HAVE_DLFCN_H 1 6963_ACEOF 6964 6965fi 6966 6967done 6968 6969 6970 6971# Set options 6972 6973 6974 6975 enable_dlopen=no 6976 6977 6978 enable_win32_dll=no 6979 6980 6981 # Check whether --enable-shared was given. 6982if test "${enable_shared+set}" = set; then : 6983 enableval=$enable_shared; p=${PACKAGE-default} 6984 case $enableval in 6985 yes) enable_shared=yes ;; 6986 no) enable_shared=no ;; 6987 *) 6988 enable_shared=no 6989 # Look at the argument we got. We use all the common list separators. 6990 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6991 for pkg in $enableval; do 6992 IFS="$lt_save_ifs" 6993 if test "X$pkg" = "X$p"; then 6994 enable_shared=yes 6995 fi 6996 done 6997 IFS="$lt_save_ifs" 6998 ;; 6999 esac 7000else 7001 enable_shared=yes 7002fi 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 # Check whether --enable-static was given. 7013if test "${enable_static+set}" = set; then : 7014 enableval=$enable_static; p=${PACKAGE-default} 7015 case $enableval in 7016 yes) enable_static=yes ;; 7017 no) enable_static=no ;; 7018 *) 7019 enable_static=no 7020 # Look at the argument we got. We use all the common list separators. 7021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7022 for pkg in $enableval; do 7023 IFS="$lt_save_ifs" 7024 if test "X$pkg" = "X$p"; then 7025 enable_static=yes 7026 fi 7027 done 7028 IFS="$lt_save_ifs" 7029 ;; 7030 esac 7031else 7032 enable_static=yes 7033fi 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044# Check whether --with-pic was given. 7045if test "${with_pic+set}" = set; then : 7046 withval=$with_pic; pic_mode="$withval" 7047else 7048 pic_mode=default 7049fi 7050 7051 7052test -z "$pic_mode" && pic_mode=default 7053 7054 7055 7056 7057 7058 7059 7060 # Check whether --enable-fast-install was given. 7061if test "${enable_fast_install+set}" = set; then : 7062 enableval=$enable_fast_install; p=${PACKAGE-default} 7063 case $enableval in 7064 yes) enable_fast_install=yes ;; 7065 no) enable_fast_install=no ;; 7066 *) 7067 enable_fast_install=no 7068 # Look at the argument we got. We use all the common list separators. 7069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7070 for pkg in $enableval; do 7071 IFS="$lt_save_ifs" 7072 if test "X$pkg" = "X$p"; then 7073 enable_fast_install=yes 7074 fi 7075 done 7076 IFS="$lt_save_ifs" 7077 ;; 7078 esac 7079else 7080 enable_fast_install=yes 7081fi 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093# This can be used to rebuild libtool when needed 7094LIBTOOL_DEPS="$ltmain" 7095 7096# Always use our own libtool. 7097LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123test -z "$LN_S" && LN_S="ln -s" 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138if test -n "${ZSH_VERSION+set}" ; then 7139 setopt NO_GLOB_SUBST 7140fi 7141 7142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7143$as_echo_n "checking for objdir... " >&6; } 7144if test "${lt_cv_objdir+set}" = set; then : 7145 $as_echo_n "(cached) " >&6 7146else 7147 rm -f .libs 2>/dev/null 7148mkdir .libs 2>/dev/null 7149if test -d .libs; then 7150 lt_cv_objdir=.libs 7151else 7152 # MS-DOS does not allow filenames that begin with a dot. 7153 lt_cv_objdir=_libs 7154fi 7155rmdir .libs 2>/dev/null 7156fi 7157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7158$as_echo "$lt_cv_objdir" >&6; } 7159objdir=$lt_cv_objdir 7160 7161 7162 7163 7164 7165cat >>confdefs.h <<_ACEOF 7166#define LT_OBJDIR "$lt_cv_objdir/" 7167_ACEOF 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185case $host_os in 7186aix3*) 7187 # AIX sometimes has problems with the GCC collect2 program. For some 7188 # reason, if we set the COLLECT_NAMES environment variable, the problems 7189 # vanish in a puff of smoke. 7190 if test "X${COLLECT_NAMES+set}" != Xset; then 7191 COLLECT_NAMES= 7192 export COLLECT_NAMES 7193 fi 7194 ;; 7195esac 7196 7197# Sed substitution that helps us do robust quoting. It backslashifies 7198# metacharacters that are still active within double-quoted strings. 7199sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7200 7201# Same as above, but do not quote variable references. 7202double_quote_subst='s/\(["`\\]\)/\\\1/g' 7203 7204# Sed substitution to delay expansion of an escaped shell variable in a 7205# double_quote_subst'ed string. 7206delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7207 7208# Sed substitution to delay expansion of an escaped single quote. 7209delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7210 7211# Sed substitution to avoid accidental globbing in evaled expressions 7212no_glob_subst='s/\*/\\\*/g' 7213 7214# Global variables: 7215ofile=libtool 7216can_build_shared=yes 7217 7218# All known linkers require a `.a' archive for static linking (except MSVC, 7219# which needs '.lib'). 7220libext=a 7221 7222with_gnu_ld="$lt_cv_prog_gnu_ld" 7223 7224old_CC="$CC" 7225old_CFLAGS="$CFLAGS" 7226 7227# Set sane defaults for various variables 7228test -z "$CC" && CC=cc 7229test -z "$LTCC" && LTCC=$CC 7230test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7231test -z "$LD" && LD=ld 7232test -z "$ac_objext" && ac_objext=o 7233 7234for cc_temp in $compiler""; do 7235 case $cc_temp in 7236 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7237 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7238 \-*) ;; 7239 *) break;; 7240 esac 7241done 7242cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7243 7244 7245# Only perform the check for file, if the check method requires it 7246test -z "$MAGIC_CMD" && MAGIC_CMD=file 7247case $deplibs_check_method in 7248file_magic*) 7249 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7251$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7252if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7253 $as_echo_n "(cached) " >&6 7254else 7255 case $MAGIC_CMD in 7256[\\/*] | ?:[\\/]*) 7257 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7258 ;; 7259*) 7260 lt_save_MAGIC_CMD="$MAGIC_CMD" 7261 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7262 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7263 for ac_dir in $ac_dummy; do 7264 IFS="$lt_save_ifs" 7265 test -z "$ac_dir" && ac_dir=. 7266 if test -f $ac_dir/${ac_tool_prefix}file; then 7267 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7268 if test -n "$file_magic_test_file"; then 7269 case $deplibs_check_method in 7270 "file_magic "*) 7271 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7273 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7274 $EGREP "$file_magic_regex" > /dev/null; then 7275 : 7276 else 7277 cat <<_LT_EOF 1>&2 7278 7279*** Warning: the command libtool uses to detect shared libraries, 7280*** $file_magic_cmd, produces output that libtool cannot recognize. 7281*** The result is that libtool may fail to recognize shared libraries 7282*** as such. This will affect the creation of libtool libraries that 7283*** depend on shared libraries, but programs linked with such libtool 7284*** libraries will work regardless of this problem. Nevertheless, you 7285*** may want to report the problem to your system manager and/or to 7286*** bug-libtool@gnu.org 7287 7288_LT_EOF 7289 fi ;; 7290 esac 7291 fi 7292 break 7293 fi 7294 done 7295 IFS="$lt_save_ifs" 7296 MAGIC_CMD="$lt_save_MAGIC_CMD" 7297 ;; 7298esac 7299fi 7300 7301MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7302if test -n "$MAGIC_CMD"; then 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7304$as_echo "$MAGIC_CMD" >&6; } 7305else 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7307$as_echo "no" >&6; } 7308fi 7309 7310 7311 7312 7313 7314if test -z "$lt_cv_path_MAGIC_CMD"; then 7315 if test -n "$ac_tool_prefix"; then 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7317$as_echo_n "checking for file... " >&6; } 7318if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7319 $as_echo_n "(cached) " >&6 7320else 7321 case $MAGIC_CMD in 7322[\\/*] | ?:[\\/]*) 7323 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7324 ;; 7325*) 7326 lt_save_MAGIC_CMD="$MAGIC_CMD" 7327 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7328 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7329 for ac_dir in $ac_dummy; do 7330 IFS="$lt_save_ifs" 7331 test -z "$ac_dir" && ac_dir=. 7332 if test -f $ac_dir/file; then 7333 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7334 if test -n "$file_magic_test_file"; then 7335 case $deplibs_check_method in 7336 "file_magic "*) 7337 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7339 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7340 $EGREP "$file_magic_regex" > /dev/null; then 7341 : 7342 else 7343 cat <<_LT_EOF 1>&2 7344 7345*** Warning: the command libtool uses to detect shared libraries, 7346*** $file_magic_cmd, produces output that libtool cannot recognize. 7347*** The result is that libtool may fail to recognize shared libraries 7348*** as such. This will affect the creation of libtool libraries that 7349*** depend on shared libraries, but programs linked with such libtool 7350*** libraries will work regardless of this problem. Nevertheless, you 7351*** may want to report the problem to your system manager and/or to 7352*** bug-libtool@gnu.org 7353 7354_LT_EOF 7355 fi ;; 7356 esac 7357 fi 7358 break 7359 fi 7360 done 7361 IFS="$lt_save_ifs" 7362 MAGIC_CMD="$lt_save_MAGIC_CMD" 7363 ;; 7364esac 7365fi 7366 7367MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7368if test -n "$MAGIC_CMD"; then 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7370$as_echo "$MAGIC_CMD" >&6; } 7371else 7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7373$as_echo "no" >&6; } 7374fi 7375 7376 7377 else 7378 MAGIC_CMD=: 7379 fi 7380fi 7381 7382 fi 7383 ;; 7384esac 7385 7386# Use C for the default configuration in the libtool script 7387 7388lt_save_CC="$CC" 7389ac_ext=c 7390ac_cpp='$CPP $CPPFLAGS' 7391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7393ac_compiler_gnu=$ac_cv_c_compiler_gnu 7394 7395 7396# Source file extension for C test sources. 7397ac_ext=c 7398 7399# Object file extension for compiled C test sources. 7400objext=o 7401objext=$objext 7402 7403# Code to be used in simple compile tests 7404lt_simple_compile_test_code="int some_variable = 0;" 7405 7406# Code to be used in simple link tests 7407lt_simple_link_test_code='int main(){return(0);}' 7408 7409 7410 7411 7412 7413 7414 7415# If no C compiler was specified, use CC. 7416LTCC=${LTCC-"$CC"} 7417 7418# If no C compiler flags were specified, use CFLAGS. 7419LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7420 7421# Allow CC to be a program name with arguments. 7422compiler=$CC 7423 7424# Save the default compiler, since it gets overwritten when the other 7425# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7426compiler_DEFAULT=$CC 7427 7428# save warnings/boilerplate of simple test code 7429ac_outfile=conftest.$ac_objext 7430echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7431eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7432_lt_compiler_boilerplate=`cat conftest.err` 7433$RM conftest* 7434 7435ac_outfile=conftest.$ac_objext 7436echo "$lt_simple_link_test_code" >conftest.$ac_ext 7437eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7438_lt_linker_boilerplate=`cat conftest.err` 7439$RM -r conftest* 7440 7441 7442if test -n "$compiler"; then 7443 7444lt_prog_compiler_no_builtin_flag= 7445 7446if test "$GCC" = yes; then 7447 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7448 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7450$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7451if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7452 $as_echo_n "(cached) " >&6 7453else 7454 lt_cv_prog_compiler_rtti_exceptions=no 7455 ac_outfile=conftest.$ac_objext 7456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7457 lt_compiler_flag="-fno-rtti -fno-exceptions" 7458 # Insert the option either (1) after the last *FLAGS variable, or 7459 # (2) before a word containing "conftest.", or (3) at the end. 7460 # Note that $ac_compile itself does not contain backslashes and begins 7461 # with a dollar sign (not a hyphen), so the echo should work correctly. 7462 # The option is referenced via a variable to avoid confusing sed. 7463 lt_compile=`echo "$ac_compile" | $SED \ 7464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7466 -e 's:$: $lt_compiler_flag:'` 7467 (eval echo "\"\$as_me:7467: $lt_compile\"" >&5) 7468 (eval "$lt_compile" 2>conftest.err) 7469 ac_status=$? 7470 cat conftest.err >&5 7471 echo "$as_me:7471: \$? = $ac_status" >&5 7472 if (exit $ac_status) && test -s "$ac_outfile"; then 7473 # The compiler can only warn and ignore the option if not recognized 7474 # So say no if there are warnings other than the usual output. 7475 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7477 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7478 lt_cv_prog_compiler_rtti_exceptions=yes 7479 fi 7480 fi 7481 $RM conftest* 7482 7483fi 7484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7485$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7486 7487if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7488 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7489else 7490 : 7491fi 7492 7493fi 7494 7495 7496 7497 7498 7499 7500 lt_prog_compiler_wl= 7501lt_prog_compiler_pic= 7502lt_prog_compiler_static= 7503 7504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7505$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7506 7507 if test "$GCC" = yes; then 7508 lt_prog_compiler_wl='-Wl,' 7509 lt_prog_compiler_static='-static' 7510 7511 case $host_os in 7512 aix*) 7513 # All AIX code is PIC. 7514 if test "$host_cpu" = ia64; then 7515 # AIX 5 now supports IA64 processor 7516 lt_prog_compiler_static='-Bstatic' 7517 fi 7518 ;; 7519 7520 amigaos*) 7521 case $host_cpu in 7522 powerpc) 7523 # see comment about AmigaOS4 .so support 7524 lt_prog_compiler_pic='-fPIC' 7525 ;; 7526 m68k) 7527 # FIXME: we need at least 68020 code to build shared libraries, but 7528 # adding the `-m68020' flag to GCC prevents building anything better, 7529 # like `-m68040'. 7530 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7531 ;; 7532 esac 7533 ;; 7534 7535 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7536 # PIC is the default for these OSes. 7537 ;; 7538 7539 mingw* | cygwin* | pw32* | os2* | cegcc*) 7540 # This hack is so that the source file can tell whether it is being 7541 # built for inclusion in a dll (and should export symbols for example). 7542 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7543 # (--disable-auto-import) libraries 7544 lt_prog_compiler_pic='-DDLL_EXPORT' 7545 ;; 7546 7547 darwin* | rhapsody*) 7548 # PIC is the default on this platform 7549 # Common symbols not allowed in MH_DYLIB files 7550 lt_prog_compiler_pic='-fno-common' 7551 ;; 7552 7553 hpux*) 7554 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7555 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7556 # sets the default TLS model and affects inlining. 7557 case $host_cpu in 7558 hppa*64*) 7559 # +Z the default 7560 ;; 7561 *) 7562 lt_prog_compiler_pic='-fPIC' 7563 ;; 7564 esac 7565 ;; 7566 7567 interix[3-9]*) 7568 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7569 # Instead, we relocate shared libraries at runtime. 7570 ;; 7571 7572 msdosdjgpp*) 7573 # Just because we use GCC doesn't mean we suddenly get shared libraries 7574 # on systems that don't support them. 7575 lt_prog_compiler_can_build_shared=no 7576 enable_shared=no 7577 ;; 7578 7579 *nto* | *qnx*) 7580 # QNX uses GNU C++, but need to define -shared option too, otherwise 7581 # it will coredump. 7582 lt_prog_compiler_pic='-fPIC -shared' 7583 ;; 7584 7585 sysv4*MP*) 7586 if test -d /usr/nec; then 7587 lt_prog_compiler_pic=-Kconform_pic 7588 fi 7589 ;; 7590 7591 *) 7592 lt_prog_compiler_pic='-fPIC' 7593 ;; 7594 esac 7595 else 7596 # PORTME Check for flag to pass linker flags through the system compiler. 7597 case $host_os in 7598 aix*) 7599 lt_prog_compiler_wl='-Wl,' 7600 if test "$host_cpu" = ia64; then 7601 # AIX 5 now supports IA64 processor 7602 lt_prog_compiler_static='-Bstatic' 7603 else 7604 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7605 fi 7606 ;; 7607 7608 mingw* | cygwin* | pw32* | os2* | cegcc*) 7609 # This hack is so that the source file can tell whether it is being 7610 # built for inclusion in a dll (and should export symbols for example). 7611 lt_prog_compiler_pic='-DDLL_EXPORT' 7612 ;; 7613 7614 hpux9* | hpux10* | hpux11*) 7615 lt_prog_compiler_wl='-Wl,' 7616 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7617 # not for PA HP-UX. 7618 case $host_cpu in 7619 hppa*64*|ia64*) 7620 # +Z the default 7621 ;; 7622 *) 7623 lt_prog_compiler_pic='+Z' 7624 ;; 7625 esac 7626 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7627 lt_prog_compiler_static='${wl}-a ${wl}archive' 7628 ;; 7629 7630 irix5* | irix6* | nonstopux*) 7631 lt_prog_compiler_wl='-Wl,' 7632 # PIC (with -KPIC) is the default. 7633 lt_prog_compiler_static='-non_shared' 7634 ;; 7635 7636 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7637 case $cc_basename in 7638 # old Intel for x86_64 which still supported -KPIC. 7639 ecc*) 7640 lt_prog_compiler_wl='-Wl,' 7641 lt_prog_compiler_pic='-KPIC' 7642 lt_prog_compiler_static='-static' 7643 ;; 7644 # icc used to be incompatible with GCC. 7645 # ICC 10 doesn't accept -KPIC any more. 7646 icc* | ifort*) 7647 lt_prog_compiler_wl='-Wl,' 7648 lt_prog_compiler_pic='-fPIC' 7649 lt_prog_compiler_static='-static' 7650 ;; 7651 # Lahey Fortran 8.1. 7652 lf95*) 7653 lt_prog_compiler_wl='-Wl,' 7654 lt_prog_compiler_pic='--shared' 7655 lt_prog_compiler_static='--static' 7656 ;; 7657 pgcc* | pgf77* | pgf90* | pgf95*) 7658 # Portland Group compilers (*not* the Pentium gcc compiler, 7659 # which looks to be a dead project) 7660 lt_prog_compiler_wl='-Wl,' 7661 lt_prog_compiler_pic='-fpic' 7662 lt_prog_compiler_static='-Bstatic' 7663 ;; 7664 ccc*) 7665 lt_prog_compiler_wl='-Wl,' 7666 # All Alpha code is PIC. 7667 lt_prog_compiler_static='-non_shared' 7668 ;; 7669 xl*) 7670 # IBM XL C 8.0/Fortran 10.1 on PPC 7671 lt_prog_compiler_wl='-Wl,' 7672 lt_prog_compiler_pic='-qpic' 7673 lt_prog_compiler_static='-qstaticlink' 7674 ;; 7675 *) 7676 case `$CC -V 2>&1 | sed 5q` in 7677 *Sun\ C*) 7678 # Sun C 5.9 7679 lt_prog_compiler_pic='-KPIC' 7680 lt_prog_compiler_static='-Bstatic' 7681 lt_prog_compiler_wl='-Wl,' 7682 ;; 7683 *Sun\ F*) 7684 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7685 lt_prog_compiler_pic='-KPIC' 7686 lt_prog_compiler_static='-Bstatic' 7687 lt_prog_compiler_wl='' 7688 ;; 7689 esac 7690 ;; 7691 esac 7692 ;; 7693 7694 newsos6) 7695 lt_prog_compiler_pic='-KPIC' 7696 lt_prog_compiler_static='-Bstatic' 7697 ;; 7698 7699 *nto* | *qnx*) 7700 # QNX uses GNU C++, but need to define -shared option too, otherwise 7701 # it will coredump. 7702 lt_prog_compiler_pic='-fPIC -shared' 7703 ;; 7704 7705 osf3* | osf4* | osf5*) 7706 lt_prog_compiler_wl='-Wl,' 7707 # All OSF/1 code is PIC. 7708 lt_prog_compiler_static='-non_shared' 7709 ;; 7710 7711 rdos*) 7712 lt_prog_compiler_static='-non_shared' 7713 ;; 7714 7715 solaris*) 7716 lt_prog_compiler_pic='-KPIC' 7717 lt_prog_compiler_static='-Bstatic' 7718 case $cc_basename in 7719 f77* | f90* | f95*) 7720 lt_prog_compiler_wl='-Qoption ld ';; 7721 *) 7722 lt_prog_compiler_wl='-Wl,';; 7723 esac 7724 ;; 7725 7726 sunos4*) 7727 lt_prog_compiler_wl='-Qoption ld ' 7728 lt_prog_compiler_pic='-PIC' 7729 lt_prog_compiler_static='-Bstatic' 7730 ;; 7731 7732 sysv4 | sysv4.2uw2* | sysv4.3*) 7733 lt_prog_compiler_wl='-Wl,' 7734 lt_prog_compiler_pic='-KPIC' 7735 lt_prog_compiler_static='-Bstatic' 7736 ;; 7737 7738 sysv4*MP*) 7739 if test -d /usr/nec ;then 7740 lt_prog_compiler_pic='-Kconform_pic' 7741 lt_prog_compiler_static='-Bstatic' 7742 fi 7743 ;; 7744 7745 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7746 lt_prog_compiler_wl='-Wl,' 7747 lt_prog_compiler_pic='-KPIC' 7748 lt_prog_compiler_static='-Bstatic' 7749 ;; 7750 7751 unicos*) 7752 lt_prog_compiler_wl='-Wl,' 7753 lt_prog_compiler_can_build_shared=no 7754 ;; 7755 7756 uts4*) 7757 lt_prog_compiler_pic='-pic' 7758 lt_prog_compiler_static='-Bstatic' 7759 ;; 7760 7761 *) 7762 lt_prog_compiler_can_build_shared=no 7763 ;; 7764 esac 7765 fi 7766 7767case $host_os in 7768 # For platforms which do not support PIC, -DPIC is meaningless: 7769 *djgpp*) 7770 lt_prog_compiler_pic= 7771 ;; 7772 *) 7773 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7774 ;; 7775esac 7776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7777$as_echo "$lt_prog_compiler_pic" >&6; } 7778 7779 7780 7781 7782 7783 7784# 7785# Check to make sure the PIC flag actually works. 7786# 7787if test -n "$lt_prog_compiler_pic"; then 7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7789$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7790if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7791 $as_echo_n "(cached) " >&6 7792else 7793 lt_cv_prog_compiler_pic_works=no 7794 ac_outfile=conftest.$ac_objext 7795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7796 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7797 # Insert the option either (1) after the last *FLAGS variable, or 7798 # (2) before a word containing "conftest.", or (3) at the end. 7799 # Note that $ac_compile itself does not contain backslashes and begins 7800 # with a dollar sign (not a hyphen), so the echo should work correctly. 7801 # The option is referenced via a variable to avoid confusing sed. 7802 lt_compile=`echo "$ac_compile" | $SED \ 7803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7805 -e 's:$: $lt_compiler_flag:'` 7806 (eval echo "\"\$as_me:7806: $lt_compile\"" >&5) 7807 (eval "$lt_compile" 2>conftest.err) 7808 ac_status=$? 7809 cat conftest.err >&5 7810 echo "$as_me:7810: \$? = $ac_status" >&5 7811 if (exit $ac_status) && test -s "$ac_outfile"; then 7812 # The compiler can only warn and ignore the option if not recognized 7813 # So say no if there are warnings other than the usual output. 7814 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7816 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7817 lt_cv_prog_compiler_pic_works=yes 7818 fi 7819 fi 7820 $RM conftest* 7821 7822fi 7823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7824$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7825 7826if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7827 case $lt_prog_compiler_pic in 7828 "" | " "*) ;; 7829 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7830 esac 7831else 7832 lt_prog_compiler_pic= 7833 lt_prog_compiler_can_build_shared=no 7834fi 7835 7836fi 7837 7838 7839 7840 7841 7842 7843# 7844# Check to make sure the static flag actually works. 7845# 7846wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7848$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7849if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7850 $as_echo_n "(cached) " >&6 7851else 7852 lt_cv_prog_compiler_static_works=no 7853 save_LDFLAGS="$LDFLAGS" 7854 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7855 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7856 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7857 # The linker can only warn and ignore the option if not recognized 7858 # So say no if there are warnings 7859 if test -s conftest.err; then 7860 # Append any errors to the config.log. 7861 cat conftest.err 1>&5 7862 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7863 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7864 if diff conftest.exp conftest.er2 >/dev/null; then 7865 lt_cv_prog_compiler_static_works=yes 7866 fi 7867 else 7868 lt_cv_prog_compiler_static_works=yes 7869 fi 7870 fi 7871 $RM -r conftest* 7872 LDFLAGS="$save_LDFLAGS" 7873 7874fi 7875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7876$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7877 7878if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7879 : 7880else 7881 lt_prog_compiler_static= 7882fi 7883 7884 7885 7886 7887 7888 7889 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7891$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7892if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7893 $as_echo_n "(cached) " >&6 7894else 7895 lt_cv_prog_compiler_c_o=no 7896 $RM -r conftest 2>/dev/null 7897 mkdir conftest 7898 cd conftest 7899 mkdir out 7900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7901 7902 lt_compiler_flag="-o out/conftest2.$ac_objext" 7903 # Insert the option either (1) after the last *FLAGS variable, or 7904 # (2) before a word containing "conftest.", or (3) at the end. 7905 # Note that $ac_compile itself does not contain backslashes and begins 7906 # with a dollar sign (not a hyphen), so the echo should work correctly. 7907 lt_compile=`echo "$ac_compile" | $SED \ 7908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7910 -e 's:$: $lt_compiler_flag:'` 7911 (eval echo "\"\$as_me:7911: $lt_compile\"" >&5) 7912 (eval "$lt_compile" 2>out/conftest.err) 7913 ac_status=$? 7914 cat out/conftest.err >&5 7915 echo "$as_me:7915: \$? = $ac_status" >&5 7916 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7917 then 7918 # The compiler can only warn and ignore the option if not recognized 7919 # So say no if there are warnings 7920 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7921 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7922 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7923 lt_cv_prog_compiler_c_o=yes 7924 fi 7925 fi 7926 chmod u+w . 2>&5 7927 $RM conftest* 7928 # SGI C++ compiler will create directory out/ii_files/ for 7929 # template instantiation 7930 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7931 $RM out/* && rmdir out 7932 cd .. 7933 $RM -r conftest 7934 $RM conftest* 7935 7936fi 7937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7938$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7939 7940 7941 7942 7943 7944 7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7946$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7947if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7948 $as_echo_n "(cached) " >&6 7949else 7950 lt_cv_prog_compiler_c_o=no 7951 $RM -r conftest 2>/dev/null 7952 mkdir conftest 7953 cd conftest 7954 mkdir out 7955 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7956 7957 lt_compiler_flag="-o out/conftest2.$ac_objext" 7958 # Insert the option either (1) after the last *FLAGS variable, or 7959 # (2) before a word containing "conftest.", or (3) at the end. 7960 # Note that $ac_compile itself does not contain backslashes and begins 7961 # with a dollar sign (not a hyphen), so the echo should work correctly. 7962 lt_compile=`echo "$ac_compile" | $SED \ 7963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7965 -e 's:$: $lt_compiler_flag:'` 7966 (eval echo "\"\$as_me:7966: $lt_compile\"" >&5) 7967 (eval "$lt_compile" 2>out/conftest.err) 7968 ac_status=$? 7969 cat out/conftest.err >&5 7970 echo "$as_me:7970: \$? = $ac_status" >&5 7971 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7972 then 7973 # The compiler can only warn and ignore the option if not recognized 7974 # So say no if there are warnings 7975 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7976 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7977 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7978 lt_cv_prog_compiler_c_o=yes 7979 fi 7980 fi 7981 chmod u+w . 2>&5 7982 $RM conftest* 7983 # SGI C++ compiler will create directory out/ii_files/ for 7984 # template instantiation 7985 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7986 $RM out/* && rmdir out 7987 cd .. 7988 $RM -r conftest 7989 $RM conftest* 7990 7991fi 7992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7993$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7994 7995 7996 7997 7998hard_links="nottested" 7999if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8000 # do not overwrite the value of need_locks provided by the user 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8002$as_echo_n "checking if we can lock with hard links... " >&6; } 8003 hard_links=yes 8004 $RM conftest* 8005 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8006 touch conftest.a 8007 ln conftest.a conftest.b 2>&5 || hard_links=no 8008 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8010$as_echo "$hard_links" >&6; } 8011 if test "$hard_links" = no; then 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8013$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8014 need_locks=warn 8015 fi 8016else 8017 need_locks=no 8018fi 8019 8020 8021 8022 8023 8024 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8026$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8027 8028 runpath_var= 8029 allow_undefined_flag= 8030 always_export_symbols=no 8031 archive_cmds= 8032 archive_expsym_cmds= 8033 compiler_needs_object=no 8034 enable_shared_with_static_runtimes=no 8035 export_dynamic_flag_spec= 8036 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8037 hardcode_automatic=no 8038 hardcode_direct=no 8039 hardcode_direct_absolute=no 8040 hardcode_libdir_flag_spec= 8041 hardcode_libdir_flag_spec_ld= 8042 hardcode_libdir_separator= 8043 hardcode_minus_L=no 8044 hardcode_shlibpath_var=unsupported 8045 inherit_rpath=no 8046 link_all_deplibs=unknown 8047 module_cmds= 8048 module_expsym_cmds= 8049 old_archive_from_new_cmds= 8050 old_archive_from_expsyms_cmds= 8051 thread_safe_flag_spec= 8052 whole_archive_flag_spec= 8053 # include_expsyms should be a list of space-separated symbols to be *always* 8054 # included in the symbol list 8055 include_expsyms= 8056 # exclude_expsyms can be an extended regexp of symbols to exclude 8057 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8058 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8059 # as well as any symbol that contains `d'. 8060 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8061 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8062 # platforms (ab)use it in PIC code, but their linkers get confused if 8063 # the symbol is explicitly referenced. Since portable code cannot 8064 # rely on this symbol name, it's probably fine to never include it in 8065 # preloaded symbol tables. 8066 # Exclude shared library initialization/finalization symbols. 8067 extract_expsyms_cmds= 8068 8069 case $host_os in 8070 cygwin* | mingw* | pw32* | cegcc*) 8071 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8072 # When not using gcc, we currently assume that we are using 8073 # Microsoft Visual C++. 8074 if test "$GCC" != yes; then 8075 with_gnu_ld=no 8076 fi 8077 ;; 8078 interix*) 8079 # we just hope/assume this is gcc and not c89 (= MSVC++) 8080 with_gnu_ld=yes 8081 ;; 8082 openbsd*) 8083 with_gnu_ld=no 8084 ;; 8085 linux* | k*bsd*-gnu) 8086 link_all_deplibs=no 8087 ;; 8088 esac 8089 8090 ld_shlibs=yes 8091 if test "$with_gnu_ld" = yes; then 8092 # If archive_cmds runs LD, not CC, wlarc should be empty 8093 wlarc='${wl}' 8094 8095 # Set some defaults for GNU ld with shared library support. These 8096 # are reset later if shared libraries are not supported. Putting them 8097 # here allows them to be overridden if necessary. 8098 runpath_var=LD_RUN_PATH 8099 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8100 export_dynamic_flag_spec='${wl}--export-dynamic' 8101 # ancient GNU ld didn't support --whole-archive et. al. 8102 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8103 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8104 else 8105 whole_archive_flag_spec= 8106 fi 8107 supports_anon_versioning=no 8108 case `$LD -v 2>&1` in 8109 *GNU\ gold*) supports_anon_versioning=yes ;; 8110 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8111 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8112 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8113 *\ 2.11.*) ;; # other 2.11 versions 8114 *) supports_anon_versioning=yes ;; 8115 esac 8116 8117 # See if GNU ld supports shared libraries. 8118 case $host_os in 8119 aix[3-9]*) 8120 # On AIX/PPC, the GNU linker is very broken 8121 if test "$host_cpu" != ia64; then 8122 ld_shlibs=no 8123 cat <<_LT_EOF 1>&2 8124 8125*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8126*** to be unable to reliably create shared libraries on AIX. 8127*** Therefore, libtool is disabling shared libraries support. If you 8128*** really care for shared libraries, you may want to modify your PATH 8129*** so that a non-GNU linker is found, and then restart. 8130 8131_LT_EOF 8132 fi 8133 ;; 8134 8135 amigaos*) 8136 case $host_cpu in 8137 powerpc) 8138 # see comment about AmigaOS4 .so support 8139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8140 archive_expsym_cmds='' 8141 ;; 8142 m68k) 8143 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)' 8144 hardcode_libdir_flag_spec='-L$libdir' 8145 hardcode_minus_L=yes 8146 ;; 8147 esac 8148 ;; 8149 8150 beos*) 8151 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8152 allow_undefined_flag=unsupported 8153 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8154 # support --undefined. This deserves some investigation. FIXME 8155 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8156 else 8157 ld_shlibs=no 8158 fi 8159 ;; 8160 8161 cygwin* | mingw* | pw32* | cegcc*) 8162 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8163 # as there is no search path for DLLs. 8164 hardcode_libdir_flag_spec='-L$libdir' 8165 allow_undefined_flag=unsupported 8166 always_export_symbols=no 8167 enable_shared_with_static_runtimes=yes 8168 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8169 8170 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8172 # If the export-symbols file already is a .def file (1st line 8173 # is EXPORTS), use it as is; otherwise, prepend... 8174 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8175 cp $export_symbols $output_objdir/$soname.def; 8176 else 8177 echo EXPORTS > $output_objdir/$soname.def; 8178 cat $export_symbols >> $output_objdir/$soname.def; 8179 fi~ 8180 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8181 else 8182 ld_shlibs=no 8183 fi 8184 ;; 8185 8186 interix[3-9]*) 8187 hardcode_direct=no 8188 hardcode_shlibpath_var=no 8189 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8190 export_dynamic_flag_spec='${wl}-E' 8191 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8192 # Instead, shared libraries are loaded at an image base (0x10000000 by 8193 # default) and relocated if they conflict, which is a slow very memory 8194 # consuming and fragmenting process. To avoid this, we pick a random, 8195 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8196 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8197 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8198 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' 8199 ;; 8200 8201 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8202 tmp_diet=no 8203 if test "$host_os" = linux-dietlibc; then 8204 case $cc_basename in 8205 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8206 esac 8207 fi 8208 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8209 && test "$tmp_diet" = no 8210 then 8211 tmp_addflag= 8212 tmp_sharedflag='-shared' 8213 case $cc_basename,$host_cpu in 8214 pgcc*) # Portland Group C compiler 8215 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8216 tmp_addflag=' $pic_flag' 8217 ;; 8218 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8219 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8220 tmp_addflag=' $pic_flag -Mnomain' ;; 8221 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8222 tmp_addflag=' -i_dynamic' ;; 8223 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8224 tmp_addflag=' -i_dynamic -nofor_main' ;; 8225 ifc* | ifort*) # Intel Fortran compiler 8226 tmp_addflag=' -nofor_main' ;; 8227 lf95*) # Lahey Fortran 8.1 8228 whole_archive_flag_spec= 8229 tmp_sharedflag='--shared' ;; 8230 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8231 tmp_sharedflag='-qmkshrobj' 8232 tmp_addflag= ;; 8233 esac 8234 case `$CC -V 2>&1 | sed 5q` in 8235 *Sun\ C*) # Sun C 5.9 8236 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8237 compiler_needs_object=yes 8238 tmp_sharedflag='-G' ;; 8239 *Sun\ F*) # Sun Fortran 8.3 8240 tmp_sharedflag='-G' ;; 8241 esac 8242 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8243 8244 if test "x$supports_anon_versioning" = xyes; then 8245 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8247 echo "local: *; };" >> $output_objdir/$libname.ver~ 8248 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8249 fi 8250 8251 case $cc_basename in 8252 xlf*) 8253 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8254 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8255 hardcode_libdir_flag_spec= 8256 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8257 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8258 if test "x$supports_anon_versioning" = xyes; then 8259 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8261 echo "local: *; };" >> $output_objdir/$libname.ver~ 8262 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8263 fi 8264 ;; 8265 esac 8266 else 8267 ld_shlibs=no 8268 fi 8269 ;; 8270 8271 netbsd* | netbsdelf*-gnu) 8272 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8273 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8274 wlarc= 8275 else 8276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8278 fi 8279 ;; 8280 8281 solaris*) 8282 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8283 ld_shlibs=no 8284 cat <<_LT_EOF 1>&2 8285 8286*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8287*** create shared libraries on Solaris systems. Therefore, libtool 8288*** is disabling shared libraries support. We urge you to upgrade GNU 8289*** binutils to release 2.9.1 or newer. Another option is to modify 8290*** your PATH or compiler configuration so that the native linker is 8291*** used, and then restart. 8292 8293_LT_EOF 8294 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8296 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8297 else 8298 ld_shlibs=no 8299 fi 8300 ;; 8301 8302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8303 case `$LD -v 2>&1` in 8304 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8305 ld_shlibs=no 8306 cat <<_LT_EOF 1>&2 8307 8308*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8309*** reliably create shared libraries on SCO systems. Therefore, libtool 8310*** is disabling shared libraries support. We urge you to upgrade GNU 8311*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8312*** your PATH or compiler configuration so that the native linker is 8313*** used, and then restart. 8314 8315_LT_EOF 8316 ;; 8317 *) 8318 # For security reasons, it is highly recommended that you always 8319 # use absolute paths for naming shared libraries, and exclude the 8320 # DT_RUNPATH tag from executables and libraries. But doing so 8321 # requires that you compile everything twice, which is a pain. 8322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8326 else 8327 ld_shlibs=no 8328 fi 8329 ;; 8330 esac 8331 ;; 8332 8333 sunos4*) 8334 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8335 wlarc= 8336 hardcode_direct=yes 8337 hardcode_shlibpath_var=no 8338 ;; 8339 8340 *) 8341 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8344 else 8345 ld_shlibs=no 8346 fi 8347 ;; 8348 esac 8349 8350 if test "$ld_shlibs" = no; then 8351 runpath_var= 8352 hardcode_libdir_flag_spec= 8353 export_dynamic_flag_spec= 8354 whole_archive_flag_spec= 8355 fi 8356 else 8357 # PORTME fill in a description of your system's linker (not GNU ld) 8358 case $host_os in 8359 aix3*) 8360 allow_undefined_flag=unsupported 8361 always_export_symbols=yes 8362 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' 8363 # Note: this linker hardcodes the directories in LIBPATH if there 8364 # are no directories specified by -L. 8365 hardcode_minus_L=yes 8366 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8367 # Neither direct hardcoding nor static linking is supported with a 8368 # broken collect2. 8369 hardcode_direct=unsupported 8370 fi 8371 ;; 8372 8373 aix[4-9]*) 8374 if test "$host_cpu" = ia64; then 8375 # On IA64, the linker does run time linking by default, so we don't 8376 # have to do anything special. 8377 aix_use_runtimelinking=no 8378 exp_sym_flag='-Bexport' 8379 no_entry_flag="" 8380 else 8381 # If we're using GNU nm, then we don't want the "-C" option. 8382 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8383 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8384 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8385 else 8386 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' 8387 fi 8388 aix_use_runtimelinking=no 8389 8390 # Test if we are trying to use run time linking or normal 8391 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8392 # need to do runtime linking. 8393 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8394 for ld_flag in $LDFLAGS; do 8395 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8396 aix_use_runtimelinking=yes 8397 break 8398 fi 8399 done 8400 ;; 8401 esac 8402 8403 exp_sym_flag='-bexport' 8404 no_entry_flag='-bnoentry' 8405 fi 8406 8407 # When large executables or shared objects are built, AIX ld can 8408 # have problems creating the table of contents. If linking a library 8409 # or program results in "error TOC overflow" add -mminimal-toc to 8410 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8411 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8412 8413 archive_cmds='' 8414 hardcode_direct=yes 8415 hardcode_direct_absolute=yes 8416 hardcode_libdir_separator=':' 8417 link_all_deplibs=yes 8418 file_list_spec='${wl}-f,' 8419 8420 if test "$GCC" = yes; then 8421 case $host_os in aix4.[012]|aix4.[012].*) 8422 # We only want to do this on AIX 4.2 and lower, the check 8423 # below for broken collect2 doesn't work under 4.3+ 8424 collect2name=`${CC} -print-prog-name=collect2` 8425 if test -f "$collect2name" && 8426 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8427 then 8428 # We have reworked collect2 8429 : 8430 else 8431 # We have old collect2 8432 hardcode_direct=unsupported 8433 # It fails to find uninstalled libraries when the uninstalled 8434 # path is not listed in the libpath. Setting hardcode_minus_L 8435 # to unsupported forces relinking 8436 hardcode_minus_L=yes 8437 hardcode_libdir_flag_spec='-L$libdir' 8438 hardcode_libdir_separator= 8439 fi 8440 ;; 8441 esac 8442 shared_flag='-shared' 8443 if test "$aix_use_runtimelinking" = yes; then 8444 shared_flag="$shared_flag "'${wl}-G' 8445 fi 8446 link_all_deplibs=no 8447 else 8448 # not using gcc 8449 if test "$host_cpu" = ia64; then 8450 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8451 # chokes on -Wl,-G. The following line is correct: 8452 shared_flag='-G' 8453 else 8454 if test "$aix_use_runtimelinking" = yes; then 8455 shared_flag='${wl}-G' 8456 else 8457 shared_flag='${wl}-bM:SRE' 8458 fi 8459 fi 8460 fi 8461 8462 export_dynamic_flag_spec='${wl}-bexpall' 8463 # It seems that -bexpall does not export symbols beginning with 8464 # underscore (_), so it is better to generate a list of symbols to export. 8465 always_export_symbols=yes 8466 if test "$aix_use_runtimelinking" = yes; then 8467 # Warning - without using the other runtime loading flags (-brtl), 8468 # -berok will link without error, but may produce a broken library. 8469 allow_undefined_flag='-berok' 8470 # Determine the default libpath from the value encoded in an 8471 # empty executable. 8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8473/* end confdefs.h. */ 8474 8475int 8476main () 8477{ 8478 8479 ; 8480 return 0; 8481} 8482_ACEOF 8483if ac_fn_c_try_link "$LINENO"; then : 8484 8485lt_aix_libpath_sed=' 8486 /Import File Strings/,/^$/ { 8487 /^0/ { 8488 s/^0 *\(.*\)$/\1/ 8489 p 8490 } 8491 }' 8492aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8493# Check for a 64-bit object if we didn't find anything. 8494if test -z "$aix_libpath"; then 8495 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8496fi 8497fi 8498rm -f core conftest.err conftest.$ac_objext \ 8499 conftest$ac_exeext conftest.$ac_ext 8500if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8501 8502 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8503 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8504 else 8505 if test "$host_cpu" = ia64; then 8506 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8507 allow_undefined_flag="-z nodefs" 8508 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" 8509 else 8510 # Determine the default libpath from the value encoded in an 8511 # empty executable. 8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8513/* end confdefs.h. */ 8514 8515int 8516main () 8517{ 8518 8519 ; 8520 return 0; 8521} 8522_ACEOF 8523if ac_fn_c_try_link "$LINENO"; then : 8524 8525lt_aix_libpath_sed=' 8526 /Import File Strings/,/^$/ { 8527 /^0/ { 8528 s/^0 *\(.*\)$/\1/ 8529 p 8530 } 8531 }' 8532aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8533# Check for a 64-bit object if we didn't find anything. 8534if test -z "$aix_libpath"; then 8535 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8536fi 8537fi 8538rm -f core conftest.err conftest.$ac_objext \ 8539 conftest$ac_exeext conftest.$ac_ext 8540if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8541 8542 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8543 # Warning - without using the other run time loading flags, 8544 # -berok will link without error, but may produce a broken library. 8545 no_undefined_flag=' ${wl}-bernotok' 8546 allow_undefined_flag=' ${wl}-berok' 8547 # Exported symbols can be pulled into shared objects from archives 8548 whole_archive_flag_spec='$convenience' 8549 archive_cmds_need_lc=yes 8550 # This is similar to how AIX traditionally builds its shared libraries. 8551 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' 8552 fi 8553 fi 8554 ;; 8555 8556 amigaos*) 8557 case $host_cpu in 8558 powerpc) 8559 # see comment about AmigaOS4 .so support 8560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8561 archive_expsym_cmds='' 8562 ;; 8563 m68k) 8564 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)' 8565 hardcode_libdir_flag_spec='-L$libdir' 8566 hardcode_minus_L=yes 8567 ;; 8568 esac 8569 ;; 8570 8571 bsdi[45]*) 8572 export_dynamic_flag_spec=-rdynamic 8573 ;; 8574 8575 cygwin* | mingw* | pw32* | cegcc*) 8576 # When not using gcc, we currently assume that we are using 8577 # Microsoft Visual C++. 8578 # hardcode_libdir_flag_spec is actually meaningless, as there is 8579 # no search path for DLLs. 8580 hardcode_libdir_flag_spec=' ' 8581 allow_undefined_flag=unsupported 8582 # Tell ltmain to make .lib files, not .a files. 8583 libext=lib 8584 # Tell ltmain to make .dll files, not .so files. 8585 shrext_cmds=".dll" 8586 # FIXME: Setting linknames here is a bad hack. 8587 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8588 # The linker will automatically build a .lib file if we build a DLL. 8589 old_archive_from_new_cmds='true' 8590 # FIXME: Should let the user specify the lib program. 8591 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8592 fix_srcfile_path='`cygpath -w "$srcfile"`' 8593 enable_shared_with_static_runtimes=yes 8594 ;; 8595 8596 darwin* | rhapsody*) 8597 8598 8599 archive_cmds_need_lc=no 8600 hardcode_direct=no 8601 hardcode_automatic=yes 8602 hardcode_shlibpath_var=unsupported 8603 whole_archive_flag_spec='' 8604 link_all_deplibs=yes 8605 allow_undefined_flag="$_lt_dar_allow_undefined" 8606 case $cc_basename in 8607 ifort*) _lt_dar_can_shared=yes ;; 8608 *) _lt_dar_can_shared=$GCC ;; 8609 esac 8610 if test "$_lt_dar_can_shared" = "yes"; then 8611 output_verbose_link_cmd=echo 8612 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8613 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8614 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}" 8615 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}" 8616 8617 else 8618 ld_shlibs=no 8619 fi 8620 8621 ;; 8622 8623 dgux*) 8624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8625 hardcode_libdir_flag_spec='-L$libdir' 8626 hardcode_shlibpath_var=no 8627 ;; 8628 8629 freebsd1*) 8630 ld_shlibs=no 8631 ;; 8632 8633 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8634 # support. Future versions do this automatically, but an explicit c++rt0.o 8635 # does not break anything, and helps significantly (at the cost of a little 8636 # extra space). 8637 freebsd2.2*) 8638 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8639 hardcode_libdir_flag_spec='-R$libdir' 8640 hardcode_direct=yes 8641 hardcode_shlibpath_var=no 8642 ;; 8643 8644 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8645 freebsd2*) 8646 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8647 hardcode_direct=yes 8648 hardcode_minus_L=yes 8649 hardcode_shlibpath_var=no 8650 ;; 8651 8652 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8653 freebsd* | dragonfly*) 8654 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8655 hardcode_libdir_flag_spec='-R$libdir' 8656 hardcode_direct=yes 8657 hardcode_shlibpath_var=no 8658 ;; 8659 8660 hpux9*) 8661 if test "$GCC" = yes; then 8662 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8663 else 8664 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' 8665 fi 8666 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8667 hardcode_libdir_separator=: 8668 hardcode_direct=yes 8669 8670 # hardcode_minus_L: Not really in the search PATH, 8671 # but as the default location of the library. 8672 hardcode_minus_L=yes 8673 export_dynamic_flag_spec='${wl}-E' 8674 ;; 8675 8676 hpux10*) 8677 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8678 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8679 else 8680 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8681 fi 8682 if test "$with_gnu_ld" = no; then 8683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8684 hardcode_libdir_flag_spec_ld='+b $libdir' 8685 hardcode_libdir_separator=: 8686 hardcode_direct=yes 8687 hardcode_direct_absolute=yes 8688 export_dynamic_flag_spec='${wl}-E' 8689 # hardcode_minus_L: Not really in the search PATH, 8690 # but as the default location of the library. 8691 hardcode_minus_L=yes 8692 fi 8693 ;; 8694 8695 hpux11*) 8696 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8697 case $host_cpu in 8698 hppa*64*) 8699 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8700 ;; 8701 ia64*) 8702 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8703 ;; 8704 *) 8705 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8706 ;; 8707 esac 8708 else 8709 case $host_cpu in 8710 hppa*64*) 8711 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8712 ;; 8713 ia64*) 8714 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8715 ;; 8716 *) 8717 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8718 ;; 8719 esac 8720 fi 8721 if test "$with_gnu_ld" = no; then 8722 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8723 hardcode_libdir_separator=: 8724 8725 case $host_cpu in 8726 hppa*64*|ia64*) 8727 hardcode_direct=no 8728 hardcode_shlibpath_var=no 8729 ;; 8730 *) 8731 hardcode_direct=yes 8732 hardcode_direct_absolute=yes 8733 export_dynamic_flag_spec='${wl}-E' 8734 8735 # hardcode_minus_L: Not really in the search PATH, 8736 # but as the default location of the library. 8737 hardcode_minus_L=yes 8738 ;; 8739 esac 8740 fi 8741 ;; 8742 8743 irix5* | irix6* | nonstopux*) 8744 if test "$GCC" = yes; then 8745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8746 # Try to use the -exported_symbol ld option, if it does not 8747 # work, assume that -exports_file does not work either and 8748 # implicitly export all symbols. 8749 save_LDFLAGS="$LDFLAGS" 8750 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8752/* end confdefs.h. */ 8753int foo(void) {} 8754_ACEOF 8755if ac_fn_c_try_link "$LINENO"; then : 8756 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 8757 8758fi 8759rm -f core conftest.err conftest.$ac_objext \ 8760 conftest$ac_exeext conftest.$ac_ext 8761 LDFLAGS="$save_LDFLAGS" 8762 else 8763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8764 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 8765 fi 8766 archive_cmds_need_lc='no' 8767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8768 hardcode_libdir_separator=: 8769 inherit_rpath=yes 8770 link_all_deplibs=yes 8771 ;; 8772 8773 netbsd* | netbsdelf*-gnu) 8774 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8776 else 8777 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8778 fi 8779 hardcode_libdir_flag_spec='-R$libdir' 8780 hardcode_direct=yes 8781 hardcode_shlibpath_var=no 8782 ;; 8783 8784 newsos6) 8785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8786 hardcode_direct=yes 8787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8788 hardcode_libdir_separator=: 8789 hardcode_shlibpath_var=no 8790 ;; 8791 8792 *nto* | *qnx*) 8793 ;; 8794 8795 openbsd*) 8796 if test -f /usr/libexec/ld.so; then 8797 hardcode_direct=yes 8798 hardcode_shlibpath_var=no 8799 hardcode_direct_absolute=yes 8800 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8801 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8802 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8803 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8804 export_dynamic_flag_spec='${wl}-E' 8805 else 8806 case $host_os in 8807 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8809 hardcode_libdir_flag_spec='-R$libdir' 8810 ;; 8811 *) 8812 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8813 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8814 ;; 8815 esac 8816 fi 8817 else 8818 ld_shlibs=no 8819 fi 8820 ;; 8821 8822 os2*) 8823 hardcode_libdir_flag_spec='-L$libdir' 8824 hardcode_minus_L=yes 8825 allow_undefined_flag=unsupported 8826 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' 8827 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8828 ;; 8829 8830 osf3*) 8831 if test "$GCC" = yes; then 8832 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8833 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8834 else 8835 allow_undefined_flag=' -expect_unresolved \*' 8836 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8837 fi 8838 archive_cmds_need_lc='no' 8839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8840 hardcode_libdir_separator=: 8841 ;; 8842 8843 osf4* | osf5*) # as osf3* with the addition of -msym flag 8844 if test "$GCC" = yes; then 8845 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8846 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8848 else 8849 allow_undefined_flag=' -expect_unresolved \*' 8850 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8851 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~ 8852 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 8853 8854 # Both c and cxx compiler support -rpath directly 8855 hardcode_libdir_flag_spec='-rpath $libdir' 8856 fi 8857 archive_cmds_need_lc='no' 8858 hardcode_libdir_separator=: 8859 ;; 8860 8861 solaris*) 8862 no_undefined_flag=' -z defs' 8863 if test "$GCC" = yes; then 8864 wlarc='${wl}' 8865 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8866 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8867 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8868 else 8869 case `$CC -V 2>&1` in 8870 *"Compilers 5.0"*) 8871 wlarc='' 8872 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8873 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8874 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8875 ;; 8876 *) 8877 wlarc='${wl}' 8878 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8880 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8881 ;; 8882 esac 8883 fi 8884 hardcode_libdir_flag_spec='-R$libdir' 8885 hardcode_shlibpath_var=no 8886 case $host_os in 8887 solaris2.[0-5] | solaris2.[0-5].*) ;; 8888 *) 8889 # The compiler driver will combine and reorder linker options, 8890 # but understands `-z linker_flag'. GCC discards it without `$wl', 8891 # but is careful enough not to reorder. 8892 # Supported since Solaris 2.6 (maybe 2.5.1?) 8893 if test "$GCC" = yes; then 8894 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8895 else 8896 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8897 fi 8898 ;; 8899 esac 8900 link_all_deplibs=yes 8901 ;; 8902 8903 sunos4*) 8904 if test "x$host_vendor" = xsequent; then 8905 # Use $CC to link under sequent, because it throws in some extra .o 8906 # files that make .init and .fini sections work. 8907 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8908 else 8909 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8910 fi 8911 hardcode_libdir_flag_spec='-L$libdir' 8912 hardcode_direct=yes 8913 hardcode_minus_L=yes 8914 hardcode_shlibpath_var=no 8915 ;; 8916 8917 sysv4) 8918 case $host_vendor in 8919 sni) 8920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8921 hardcode_direct=yes # is this really true??? 8922 ;; 8923 siemens) 8924 ## LD is ld it makes a PLAMLIB 8925 ## CC just makes a GrossModule. 8926 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8927 reload_cmds='$CC -r -o $output$reload_objs' 8928 hardcode_direct=no 8929 ;; 8930 motorola) 8931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8932 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8933 ;; 8934 esac 8935 runpath_var='LD_RUN_PATH' 8936 hardcode_shlibpath_var=no 8937 ;; 8938 8939 sysv4.3*) 8940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8941 hardcode_shlibpath_var=no 8942 export_dynamic_flag_spec='-Bexport' 8943 ;; 8944 8945 sysv4*MP*) 8946 if test -d /usr/nec; then 8947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8948 hardcode_shlibpath_var=no 8949 runpath_var=LD_RUN_PATH 8950 hardcode_runpath_var=yes 8951 ld_shlibs=yes 8952 fi 8953 ;; 8954 8955 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8956 no_undefined_flag='${wl}-z,text' 8957 archive_cmds_need_lc=no 8958 hardcode_shlibpath_var=no 8959 runpath_var='LD_RUN_PATH' 8960 8961 if test "$GCC" = yes; then 8962 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8963 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8964 else 8965 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8966 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8967 fi 8968 ;; 8969 8970 sysv5* | sco3.2v5* | sco5v6*) 8971 # Note: We can NOT use -z defs as we might desire, because we do not 8972 # link with -lc, and that would cause any symbols used from libc to 8973 # always be unresolved, which means just about no library would 8974 # ever link correctly. If we're not using GNU ld we use -z text 8975 # though, which does catch some bad symbols but isn't as heavy-handed 8976 # as -z defs. 8977 no_undefined_flag='${wl}-z,text' 8978 allow_undefined_flag='${wl}-z,nodefs' 8979 archive_cmds_need_lc=no 8980 hardcode_shlibpath_var=no 8981 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8982 hardcode_libdir_separator=':' 8983 link_all_deplibs=yes 8984 export_dynamic_flag_spec='${wl}-Bexport' 8985 runpath_var='LD_RUN_PATH' 8986 8987 if test "$GCC" = yes; then 8988 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8989 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8990 else 8991 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8992 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8993 fi 8994 ;; 8995 8996 uts4*) 8997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8998 hardcode_libdir_flag_spec='-L$libdir' 8999 hardcode_shlibpath_var=no 9000 ;; 9001 9002 *) 9003 ld_shlibs=no 9004 ;; 9005 esac 9006 9007 if test x$host_vendor = xsni; then 9008 case $host in 9009 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9010 export_dynamic_flag_spec='${wl}-Blargedynsym' 9011 ;; 9012 esac 9013 fi 9014 fi 9015 9016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9017$as_echo "$ld_shlibs" >&6; } 9018test "$ld_shlibs" = no && can_build_shared=no 9019 9020with_gnu_ld=$with_gnu_ld 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036# 9037# Do we need to explicitly link libc? 9038# 9039case "x$archive_cmds_need_lc" in 9040x|xyes) 9041 # Assume -lc should be added 9042 archive_cmds_need_lc=yes 9043 9044 if test "$enable_shared" = yes && test "$GCC" = yes; then 9045 case $archive_cmds in 9046 *'~'*) 9047 # FIXME: we may have to deal with multi-command sequences. 9048 ;; 9049 '$CC '*) 9050 # Test whether the compiler implicitly links with -lc since on some 9051 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9052 # to ld, don't add -lc before -lgcc. 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9054$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9055 $RM conftest* 9056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9057 9058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9059 (eval $ac_compile) 2>&5 9060 ac_status=$? 9061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9062 test $ac_status = 0; } 2>conftest.err; then 9063 soname=conftest 9064 lib=conftest 9065 libobjs=conftest.$ac_objext 9066 deplibs= 9067 wl=$lt_prog_compiler_wl 9068 pic_flag=$lt_prog_compiler_pic 9069 compiler_flags=-v 9070 linker_flags=-v 9071 verstring= 9072 output_objdir=. 9073 libname=conftest 9074 lt_save_allow_undefined_flag=$allow_undefined_flag 9075 allow_undefined_flag= 9076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9077 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9078 ac_status=$? 9079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9080 test $ac_status = 0; } 9081 then 9082 archive_cmds_need_lc=no 9083 else 9084 archive_cmds_need_lc=yes 9085 fi 9086 allow_undefined_flag=$lt_save_allow_undefined_flag 9087 else 9088 cat conftest.err 1>&5 9089 fi 9090 $RM conftest* 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9092$as_echo "$archive_cmds_need_lc" >&6; } 9093 ;; 9094 esac 9095 fi 9096 ;; 9097esac 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9256$as_echo_n "checking dynamic linker characteristics... " >&6; } 9257 9258if test "$GCC" = yes; then 9259 case $host_os in 9260 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9261 *) lt_awk_arg="/^libraries:/" ;; 9262 esac 9263 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9264 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9265 # if the path contains ";" then we assume it to be the separator 9266 # otherwise default to the standard path separator (i.e. ":") - it is 9267 # assumed that no part of a normal pathname contains ";" but that should 9268 # okay in the real world where ";" in dirpaths is itself problematic. 9269 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9270 else 9271 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9272 fi 9273 # Ok, now we have the path, separated by spaces, we can step through it 9274 # and add multilib dir if necessary. 9275 lt_tmp_lt_search_path_spec= 9276 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9277 for lt_sys_path in $lt_search_path_spec; do 9278 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9279 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9280 else 9281 test -d "$lt_sys_path" && \ 9282 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9283 fi 9284 done 9285 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9286BEGIN {RS=" "; FS="/|\n";} { 9287 lt_foo=""; 9288 lt_count=0; 9289 for (lt_i = NF; lt_i > 0; lt_i--) { 9290 if ($lt_i != "" && $lt_i != ".") { 9291 if ($lt_i == "..") { 9292 lt_count++; 9293 } else { 9294 if (lt_count == 0) { 9295 lt_foo="/" $lt_i lt_foo; 9296 } else { 9297 lt_count--; 9298 } 9299 } 9300 } 9301 } 9302 if (lt_foo != "") { lt_freq[lt_foo]++; } 9303 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9304}'` 9305 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9306else 9307 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9308fi 9309library_names_spec= 9310libname_spec='lib$name' 9311soname_spec= 9312shrext_cmds=".so" 9313postinstall_cmds= 9314postuninstall_cmds= 9315finish_cmds= 9316finish_eval= 9317shlibpath_var= 9318shlibpath_overrides_runpath=unknown 9319version_type=none 9320dynamic_linker="$host_os ld.so" 9321sys_lib_dlsearch_path_spec="/lib /usr/lib" 9322need_lib_prefix=unknown 9323hardcode_into_libs=no 9324 9325# when you set need_version to no, make sure it does not cause -set_version 9326# flags to be left without arguments 9327need_version=unknown 9328 9329case $host_os in 9330aix3*) 9331 version_type=linux 9332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9333 shlibpath_var=LIBPATH 9334 9335 # AIX 3 has no versioning support, so we append a major version to the name. 9336 soname_spec='${libname}${release}${shared_ext}$major' 9337 ;; 9338 9339aix[4-9]*) 9340 version_type=linux 9341 need_lib_prefix=no 9342 need_version=no 9343 hardcode_into_libs=yes 9344 if test "$host_cpu" = ia64; then 9345 # AIX 5 supports IA64 9346 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9347 shlibpath_var=LD_LIBRARY_PATH 9348 else 9349 # With GCC up to 2.95.x, collect2 would create an import file 9350 # for dependence libraries. The import file would start with 9351 # the line `#! .'. This would cause the generated library to 9352 # depend on `.', always an invalid library. This was fixed in 9353 # development snapshots of GCC prior to 3.0. 9354 case $host_os in 9355 aix4 | aix4.[01] | aix4.[01].*) 9356 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9357 echo ' yes ' 9358 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9359 : 9360 else 9361 can_build_shared=no 9362 fi 9363 ;; 9364 esac 9365 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9366 # soname into executable. Probably we can add versioning support to 9367 # collect2, so additional links can be useful in future. 9368 if test "$aix_use_runtimelinking" = yes; then 9369 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9370 # instead of lib<name>.a to let people know that these are not 9371 # typical AIX shared libraries. 9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9373 else 9374 # We preserve .a as extension for shared libraries through AIX4.2 9375 # and later when we are not doing run time linking. 9376 library_names_spec='${libname}${release}.a $libname.a' 9377 soname_spec='${libname}${release}${shared_ext}$major' 9378 fi 9379 shlibpath_var=LIBPATH 9380 fi 9381 ;; 9382 9383amigaos*) 9384 case $host_cpu in 9385 powerpc) 9386 # Since July 2007 AmigaOS4 officially supports .so libraries. 9387 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9389 ;; 9390 m68k) 9391 library_names_spec='$libname.ixlibrary $libname.a' 9392 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9393 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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' 9394 ;; 9395 esac 9396 ;; 9397 9398beos*) 9399 library_names_spec='${libname}${shared_ext}' 9400 dynamic_linker="$host_os ld.so" 9401 shlibpath_var=LIBRARY_PATH 9402 ;; 9403 9404bsdi[45]*) 9405 version_type=linux 9406 need_version=no 9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9408 soname_spec='${libname}${release}${shared_ext}$major' 9409 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9410 shlibpath_var=LD_LIBRARY_PATH 9411 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9412 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9413 # the default ld.so.conf also contains /usr/contrib/lib and 9414 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9415 # libtool to hard-code these into programs 9416 ;; 9417 9418cygwin* | mingw* | pw32* | cegcc*) 9419 version_type=windows 9420 shrext_cmds=".dll" 9421 need_version=no 9422 need_lib_prefix=no 9423 9424 case $GCC,$host_os in 9425 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9426 library_names_spec='$libname.dll.a' 9427 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9428 postinstall_cmds='base_file=`basename \${file}`~ 9429 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9430 dldir=$destdir/`dirname \$dlpath`~ 9431 test -d \$dldir || mkdir -p \$dldir~ 9432 $install_prog $dir/$dlname \$dldir/$dlname~ 9433 chmod a+x \$dldir/$dlname~ 9434 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9435 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9436 fi' 9437 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9438 dlpath=$dir/\$dldll~ 9439 $RM \$dlpath' 9440 shlibpath_overrides_runpath=yes 9441 9442 case $host_os in 9443 cygwin*) 9444 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9445 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9446 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9447 ;; 9448 mingw* | cegcc*) 9449 # MinGW DLLs use traditional 'lib' prefix 9450 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9451 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9452 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9453 # It is most probably a Windows format PATH printed by 9454 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9455 # path with ; separators, and with drive letters. We can handle the 9456 # drive letters (cygwin fileutils understands them), so leave them, 9457 # especially as we might pass files found there to a mingw objdump, 9458 # which wouldn't understand a cygwinified path. Ahh. 9459 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9460 else 9461 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9462 fi 9463 ;; 9464 pw32*) 9465 # pw32 DLLs use 'pw' prefix rather than 'lib' 9466 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9467 ;; 9468 esac 9469 ;; 9470 9471 *) 9472 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9473 ;; 9474 esac 9475 dynamic_linker='Win32 ld.exe' 9476 # FIXME: first we should search . and the directory the executable is in 9477 shlibpath_var=PATH 9478 ;; 9479 9480darwin* | rhapsody*) 9481 dynamic_linker="$host_os dyld" 9482 version_type=darwin 9483 need_lib_prefix=no 9484 need_version=no 9485 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9486 soname_spec='${libname}${release}${major}$shared_ext' 9487 shlibpath_overrides_runpath=yes 9488 shlibpath_var=DYLD_LIBRARY_PATH 9489 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9490 9491 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9492 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9493 ;; 9494 9495dgux*) 9496 version_type=linux 9497 need_lib_prefix=no 9498 need_version=no 9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9500 soname_spec='${libname}${release}${shared_ext}$major' 9501 shlibpath_var=LD_LIBRARY_PATH 9502 ;; 9503 9504freebsd1*) 9505 dynamic_linker=no 9506 ;; 9507 9508freebsd* | dragonfly*) 9509 # DragonFly does not have aout. When/if they implement a new 9510 # versioning mechanism, adjust this. 9511 if test -x /usr/bin/objformat; then 9512 objformat=`/usr/bin/objformat` 9513 else 9514 case $host_os in 9515 freebsd[123]*) objformat=aout ;; 9516 *) objformat=elf ;; 9517 esac 9518 fi 9519 version_type=freebsd-$objformat 9520 case $version_type in 9521 freebsd-elf*) 9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9523 need_version=no 9524 need_lib_prefix=no 9525 ;; 9526 freebsd-*) 9527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9528 need_version=yes 9529 ;; 9530 esac 9531 shlibpath_var=LD_LIBRARY_PATH 9532 case $host_os in 9533 freebsd2*) 9534 shlibpath_overrides_runpath=yes 9535 ;; 9536 freebsd3.[01]* | freebsdelf3.[01]*) 9537 shlibpath_overrides_runpath=yes 9538 hardcode_into_libs=yes 9539 ;; 9540 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9541 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9542 shlibpath_overrides_runpath=no 9543 hardcode_into_libs=yes 9544 ;; 9545 *) # from 4.6 on, and DragonFly 9546 shlibpath_overrides_runpath=yes 9547 hardcode_into_libs=yes 9548 ;; 9549 esac 9550 ;; 9551 9552gnu*) 9553 version_type=linux 9554 need_lib_prefix=no 9555 need_version=no 9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9557 soname_spec='${libname}${release}${shared_ext}$major' 9558 shlibpath_var=LD_LIBRARY_PATH 9559 hardcode_into_libs=yes 9560 ;; 9561 9562hpux9* | hpux10* | hpux11*) 9563 # Give a soname corresponding to the major version so that dld.sl refuses to 9564 # link against other versions. 9565 version_type=sunos 9566 need_lib_prefix=no 9567 need_version=no 9568 case $host_cpu in 9569 ia64*) 9570 shrext_cmds='.so' 9571 hardcode_into_libs=yes 9572 dynamic_linker="$host_os dld.so" 9573 shlibpath_var=LD_LIBRARY_PATH 9574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9576 soname_spec='${libname}${release}${shared_ext}$major' 9577 if test "X$HPUX_IA64_MODE" = X32; then 9578 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9579 else 9580 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9581 fi 9582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9583 ;; 9584 hppa*64*) 9585 shrext_cmds='.sl' 9586 hardcode_into_libs=yes 9587 dynamic_linker="$host_os dld.sl" 9588 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9591 soname_spec='${libname}${release}${shared_ext}$major' 9592 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9593 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9594 ;; 9595 *) 9596 shrext_cmds='.sl' 9597 dynamic_linker="$host_os dld.sl" 9598 shlibpath_var=SHLIB_PATH 9599 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9601 soname_spec='${libname}${release}${shared_ext}$major' 9602 ;; 9603 esac 9604 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9605 postinstall_cmds='chmod 555 $lib' 9606 ;; 9607 9608interix[3-9]*) 9609 version_type=linux 9610 need_lib_prefix=no 9611 need_version=no 9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9613 soname_spec='${libname}${release}${shared_ext}$major' 9614 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9615 shlibpath_var=LD_LIBRARY_PATH 9616 shlibpath_overrides_runpath=no 9617 hardcode_into_libs=yes 9618 ;; 9619 9620irix5* | irix6* | nonstopux*) 9621 case $host_os in 9622 nonstopux*) version_type=nonstopux ;; 9623 *) 9624 if test "$lt_cv_prog_gnu_ld" = yes; then 9625 version_type=linux 9626 else 9627 version_type=irix 9628 fi ;; 9629 esac 9630 need_lib_prefix=no 9631 need_version=no 9632 soname_spec='${libname}${release}${shared_ext}$major' 9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9634 case $host_os in 9635 irix5* | nonstopux*) 9636 libsuff= shlibsuff= 9637 ;; 9638 *) 9639 case $LD in # libtool.m4 will add one of these switches to LD 9640 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9641 libsuff= shlibsuff= libmagic=32-bit;; 9642 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9643 libsuff=32 shlibsuff=N32 libmagic=N32;; 9644 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9645 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9646 *) libsuff= shlibsuff= libmagic=never-match;; 9647 esac 9648 ;; 9649 esac 9650 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9651 shlibpath_overrides_runpath=no 9652 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9653 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9654 hardcode_into_libs=yes 9655 ;; 9656 9657# No shared lib support for Linux oldld, aout, or coff. 9658linux*oldld* | linux*aout* | linux*coff*) 9659 dynamic_linker=no 9660 ;; 9661 9662# This must be Linux ELF. 9663linux* | k*bsd*-gnu | kopensolaris*-gnu) 9664 version_type=linux 9665 need_lib_prefix=no 9666 need_version=no 9667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9668 soname_spec='${libname}${release}${shared_ext}$major' 9669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9670 shlibpath_var=LD_LIBRARY_PATH 9671 shlibpath_overrides_runpath=no 9672 # Some binutils ld are patched to set DT_RUNPATH 9673 save_LDFLAGS=$LDFLAGS 9674 save_libdir=$libdir 9675 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9676 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9678/* end confdefs.h. */ 9679 9680int 9681main () 9682{ 9683 9684 ; 9685 return 0; 9686} 9687_ACEOF 9688if ac_fn_c_try_link "$LINENO"; then : 9689 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9690 shlibpath_overrides_runpath=yes 9691fi 9692fi 9693rm -f core conftest.err conftest.$ac_objext \ 9694 conftest$ac_exeext conftest.$ac_ext 9695 LDFLAGS=$save_LDFLAGS 9696 libdir=$save_libdir 9697 9698 # This implies no fast_install, which is unacceptable. 9699 # Some rework will be needed to allow for fast_install 9700 # before this can be enabled. 9701 hardcode_into_libs=yes 9702 9703 # Append ld.so.conf contents to the search path 9704 if test -f /etc/ld.so.conf; then 9705 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;/^$/d' | tr '\n' ' '` 9706 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9707 fi 9708 9709 # We used to test for /lib/ld.so.1 and disable shared libraries on 9710 # powerpc, because MkLinux only supported shared libraries with the 9711 # GNU dynamic linker. Since this was broken with cross compilers, 9712 # most powerpc-linux boxes support dynamic linking these days and 9713 # people can always --disable-shared, the test was removed, and we 9714 # assume the GNU/Linux dynamic linker is in use. 9715 dynamic_linker='GNU/Linux ld.so' 9716 ;; 9717 9718netbsdelf*-gnu) 9719 version_type=linux 9720 need_lib_prefix=no 9721 need_version=no 9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9723 soname_spec='${libname}${release}${shared_ext}$major' 9724 shlibpath_var=LD_LIBRARY_PATH 9725 shlibpath_overrides_runpath=no 9726 hardcode_into_libs=yes 9727 dynamic_linker='NetBSD ld.elf_so' 9728 ;; 9729 9730netbsd*) 9731 version_type=sunos 9732 need_lib_prefix=no 9733 need_version=no 9734 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9737 dynamic_linker='NetBSD (a.out) ld.so' 9738 else 9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9740 soname_spec='${libname}${release}${shared_ext}$major' 9741 dynamic_linker='NetBSD ld.elf_so' 9742 fi 9743 shlibpath_var=LD_LIBRARY_PATH 9744 shlibpath_overrides_runpath=yes 9745 hardcode_into_libs=yes 9746 ;; 9747 9748newsos6) 9749 version_type=linux 9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9751 shlibpath_var=LD_LIBRARY_PATH 9752 shlibpath_overrides_runpath=yes 9753 ;; 9754 9755*nto* | *qnx*) 9756 version_type=qnx 9757 need_lib_prefix=no 9758 need_version=no 9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9760 soname_spec='${libname}${release}${shared_ext}$major' 9761 shlibpath_var=LD_LIBRARY_PATH 9762 shlibpath_overrides_runpath=no 9763 hardcode_into_libs=yes 9764 dynamic_linker='ldqnx.so' 9765 ;; 9766 9767openbsd*) 9768 version_type=sunos 9769 sys_lib_dlsearch_path_spec="/usr/lib" 9770 need_lib_prefix=no 9771 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9772 case $host_os in 9773 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9774 *) need_version=no ;; 9775 esac 9776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9778 shlibpath_var=LD_LIBRARY_PATH 9779 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9780 case $host_os in 9781 openbsd2.[89] | openbsd2.[89].*) 9782 shlibpath_overrides_runpath=no 9783 ;; 9784 *) 9785 shlibpath_overrides_runpath=yes 9786 ;; 9787 esac 9788 else 9789 shlibpath_overrides_runpath=yes 9790 fi 9791 ;; 9792 9793os2*) 9794 libname_spec='$name' 9795 shrext_cmds=".dll" 9796 need_lib_prefix=no 9797 library_names_spec='$libname${shared_ext} $libname.a' 9798 dynamic_linker='OS/2 ld.exe' 9799 shlibpath_var=LIBPATH 9800 ;; 9801 9802osf3* | osf4* | osf5*) 9803 version_type=osf 9804 need_lib_prefix=no 9805 need_version=no 9806 soname_spec='${libname}${release}${shared_ext}$major' 9807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9808 shlibpath_var=LD_LIBRARY_PATH 9809 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9810 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9811 ;; 9812 9813rdos*) 9814 dynamic_linker=no 9815 ;; 9816 9817solaris*) 9818 version_type=linux 9819 need_lib_prefix=no 9820 need_version=no 9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9822 soname_spec='${libname}${release}${shared_ext}$major' 9823 shlibpath_var=LD_LIBRARY_PATH 9824 shlibpath_overrides_runpath=yes 9825 hardcode_into_libs=yes 9826 # ldd complains unless libraries are executable 9827 postinstall_cmds='chmod +x $lib' 9828 ;; 9829 9830sunos4*) 9831 version_type=sunos 9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9833 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9834 shlibpath_var=LD_LIBRARY_PATH 9835 shlibpath_overrides_runpath=yes 9836 if test "$with_gnu_ld" = yes; then 9837 need_lib_prefix=no 9838 fi 9839 need_version=yes 9840 ;; 9841 9842sysv4 | sysv4.3*) 9843 version_type=linux 9844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9845 soname_spec='${libname}${release}${shared_ext}$major' 9846 shlibpath_var=LD_LIBRARY_PATH 9847 case $host_vendor in 9848 sni) 9849 shlibpath_overrides_runpath=no 9850 need_lib_prefix=no 9851 runpath_var=LD_RUN_PATH 9852 ;; 9853 siemens) 9854 need_lib_prefix=no 9855 ;; 9856 motorola) 9857 need_lib_prefix=no 9858 need_version=no 9859 shlibpath_overrides_runpath=no 9860 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9861 ;; 9862 esac 9863 ;; 9864 9865sysv4*MP*) 9866 if test -d /usr/nec ;then 9867 version_type=linux 9868 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9869 soname_spec='$libname${shared_ext}.$major' 9870 shlibpath_var=LD_LIBRARY_PATH 9871 fi 9872 ;; 9873 9874sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9875 version_type=freebsd-elf 9876 need_lib_prefix=no 9877 need_version=no 9878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9879 soname_spec='${libname}${release}${shared_ext}$major' 9880 shlibpath_var=LD_LIBRARY_PATH 9881 shlibpath_overrides_runpath=yes 9882 hardcode_into_libs=yes 9883 if test "$with_gnu_ld" = yes; then 9884 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9885 else 9886 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9887 case $host_os in 9888 sco3.2v5*) 9889 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9890 ;; 9891 esac 9892 fi 9893 sys_lib_dlsearch_path_spec='/usr/lib' 9894 ;; 9895 9896tpf*) 9897 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9898 version_type=linux 9899 need_lib_prefix=no 9900 need_version=no 9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9902 shlibpath_var=LD_LIBRARY_PATH 9903 shlibpath_overrides_runpath=no 9904 hardcode_into_libs=yes 9905 ;; 9906 9907uts4*) 9908 version_type=linux 9909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9910 soname_spec='${libname}${release}${shared_ext}$major' 9911 shlibpath_var=LD_LIBRARY_PATH 9912 ;; 9913 9914*) 9915 dynamic_linker=no 9916 ;; 9917esac 9918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9919$as_echo "$dynamic_linker" >&6; } 9920test "$dynamic_linker" = no && can_build_shared=no 9921 9922variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9923if test "$GCC" = yes; then 9924 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9925fi 9926 9927if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9928 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9929fi 9930if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9931 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9932fi 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 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10021$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10022hardcode_action= 10023if test -n "$hardcode_libdir_flag_spec" || 10024 test -n "$runpath_var" || 10025 test "X$hardcode_automatic" = "Xyes" ; then 10026 10027 # We can hardcode non-existent directories. 10028 if test "$hardcode_direct" != no && 10029 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10030 # have to relink, otherwise we might link with an installed library 10031 # when we should be linking with a yet-to-be-installed one 10032 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10033 test "$hardcode_minus_L" != no; then 10034 # Linking always hardcodes the temporary library directory. 10035 hardcode_action=relink 10036 else 10037 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10038 hardcode_action=immediate 10039 fi 10040else 10041 # We cannot hardcode anything, or else we can only hardcode existing 10042 # directories. 10043 hardcode_action=unsupported 10044fi 10045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10046$as_echo "$hardcode_action" >&6; } 10047 10048if test "$hardcode_action" = relink || 10049 test "$inherit_rpath" = yes; then 10050 # Fast installation is not supported 10051 enable_fast_install=no 10052elif test "$shlibpath_overrides_runpath" = yes || 10053 test "$enable_shared" = no; then 10054 # Fast installation is not necessary 10055 enable_fast_install=needless 10056fi 10057 10058 10059 10060 10061 10062 10063 if test "x$enable_dlopen" != xyes; then 10064 enable_dlopen=unknown 10065 enable_dlopen_self=unknown 10066 enable_dlopen_self_static=unknown 10067else 10068 lt_cv_dlopen=no 10069 lt_cv_dlopen_libs= 10070 10071 case $host_os in 10072 beos*) 10073 lt_cv_dlopen="load_add_on" 10074 lt_cv_dlopen_libs= 10075 lt_cv_dlopen_self=yes 10076 ;; 10077 10078 mingw* | pw32* | cegcc*) 10079 lt_cv_dlopen="LoadLibrary" 10080 lt_cv_dlopen_libs= 10081 ;; 10082 10083 cygwin*) 10084 lt_cv_dlopen="dlopen" 10085 lt_cv_dlopen_libs= 10086 ;; 10087 10088 darwin*) 10089 # if libdl is installed we need to link against it 10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10091$as_echo_n "checking for dlopen in -ldl... " >&6; } 10092if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10093 $as_echo_n "(cached) " >&6 10094else 10095 ac_check_lib_save_LIBS=$LIBS 10096LIBS="-ldl $LIBS" 10097cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10098/* end confdefs.h. */ 10099 10100/* Override any GCC internal prototype to avoid an error. 10101 Use char because int might match the return type of a GCC 10102 builtin and then its argument prototype would still apply. */ 10103#ifdef __cplusplus 10104extern "C" 10105#endif 10106char dlopen (); 10107int 10108main () 10109{ 10110return dlopen (); 10111 ; 10112 return 0; 10113} 10114_ACEOF 10115if ac_fn_c_try_link "$LINENO"; then : 10116 ac_cv_lib_dl_dlopen=yes 10117else 10118 ac_cv_lib_dl_dlopen=no 10119fi 10120rm -f core conftest.err conftest.$ac_objext \ 10121 conftest$ac_exeext conftest.$ac_ext 10122LIBS=$ac_check_lib_save_LIBS 10123fi 10124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10125$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10126if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10127 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10128else 10129 10130 lt_cv_dlopen="dyld" 10131 lt_cv_dlopen_libs= 10132 lt_cv_dlopen_self=yes 10133 10134fi 10135 10136 ;; 10137 10138 *) 10139 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10140if test "x$ac_cv_func_shl_load" = x""yes; then : 10141 lt_cv_dlopen="shl_load" 10142else 10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10144$as_echo_n "checking for shl_load in -ldld... " >&6; } 10145if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10146 $as_echo_n "(cached) " >&6 10147else 10148 ac_check_lib_save_LIBS=$LIBS 10149LIBS="-ldld $LIBS" 10150cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10151/* end confdefs.h. */ 10152 10153/* Override any GCC internal prototype to avoid an error. 10154 Use char because int might match the return type of a GCC 10155 builtin and then its argument prototype would still apply. */ 10156#ifdef __cplusplus 10157extern "C" 10158#endif 10159char shl_load (); 10160int 10161main () 10162{ 10163return shl_load (); 10164 ; 10165 return 0; 10166} 10167_ACEOF 10168if ac_fn_c_try_link "$LINENO"; then : 10169 ac_cv_lib_dld_shl_load=yes 10170else 10171 ac_cv_lib_dld_shl_load=no 10172fi 10173rm -f core conftest.err conftest.$ac_objext \ 10174 conftest$ac_exeext conftest.$ac_ext 10175LIBS=$ac_check_lib_save_LIBS 10176fi 10177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10178$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10179if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10180 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10181else 10182 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10183if test "x$ac_cv_func_dlopen" = x""yes; then : 10184 lt_cv_dlopen="dlopen" 10185else 10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10187$as_echo_n "checking for dlopen in -ldl... " >&6; } 10188if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10189 $as_echo_n "(cached) " >&6 10190else 10191 ac_check_lib_save_LIBS=$LIBS 10192LIBS="-ldl $LIBS" 10193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10194/* end confdefs.h. */ 10195 10196/* Override any GCC internal prototype to avoid an error. 10197 Use char because int might match the return type of a GCC 10198 builtin and then its argument prototype would still apply. */ 10199#ifdef __cplusplus 10200extern "C" 10201#endif 10202char dlopen (); 10203int 10204main () 10205{ 10206return dlopen (); 10207 ; 10208 return 0; 10209} 10210_ACEOF 10211if ac_fn_c_try_link "$LINENO"; then : 10212 ac_cv_lib_dl_dlopen=yes 10213else 10214 ac_cv_lib_dl_dlopen=no 10215fi 10216rm -f core conftest.err conftest.$ac_objext \ 10217 conftest$ac_exeext conftest.$ac_ext 10218LIBS=$ac_check_lib_save_LIBS 10219fi 10220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10221$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10222if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10224else 10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10226$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10227if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10228 $as_echo_n "(cached) " >&6 10229else 10230 ac_check_lib_save_LIBS=$LIBS 10231LIBS="-lsvld $LIBS" 10232cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10233/* end confdefs.h. */ 10234 10235/* Override any GCC internal prototype to avoid an error. 10236 Use char because int might match the return type of a GCC 10237 builtin and then its argument prototype would still apply. */ 10238#ifdef __cplusplus 10239extern "C" 10240#endif 10241char dlopen (); 10242int 10243main () 10244{ 10245return dlopen (); 10246 ; 10247 return 0; 10248} 10249_ACEOF 10250if ac_fn_c_try_link "$LINENO"; then : 10251 ac_cv_lib_svld_dlopen=yes 10252else 10253 ac_cv_lib_svld_dlopen=no 10254fi 10255rm -f core conftest.err conftest.$ac_objext \ 10256 conftest$ac_exeext conftest.$ac_ext 10257LIBS=$ac_check_lib_save_LIBS 10258fi 10259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10260$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10261if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10262 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10263else 10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10265$as_echo_n "checking for dld_link in -ldld... " >&6; } 10266if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10267 $as_echo_n "(cached) " >&6 10268else 10269 ac_check_lib_save_LIBS=$LIBS 10270LIBS="-ldld $LIBS" 10271cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10272/* end confdefs.h. */ 10273 10274/* Override any GCC internal prototype to avoid an error. 10275 Use char because int might match the return type of a GCC 10276 builtin and then its argument prototype would still apply. */ 10277#ifdef __cplusplus 10278extern "C" 10279#endif 10280char dld_link (); 10281int 10282main () 10283{ 10284return dld_link (); 10285 ; 10286 return 0; 10287} 10288_ACEOF 10289if ac_fn_c_try_link "$LINENO"; then : 10290 ac_cv_lib_dld_dld_link=yes 10291else 10292 ac_cv_lib_dld_dld_link=no 10293fi 10294rm -f core conftest.err conftest.$ac_objext \ 10295 conftest$ac_exeext conftest.$ac_ext 10296LIBS=$ac_check_lib_save_LIBS 10297fi 10298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10299$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10300if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10301 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10302fi 10303 10304 10305fi 10306 10307 10308fi 10309 10310 10311fi 10312 10313 10314fi 10315 10316 10317fi 10318 10319 ;; 10320 esac 10321 10322 if test "x$lt_cv_dlopen" != xno; then 10323 enable_dlopen=yes 10324 else 10325 enable_dlopen=no 10326 fi 10327 10328 case $lt_cv_dlopen in 10329 dlopen) 10330 save_CPPFLAGS="$CPPFLAGS" 10331 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10332 10333 save_LDFLAGS="$LDFLAGS" 10334 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10335 10336 save_LIBS="$LIBS" 10337 LIBS="$lt_cv_dlopen_libs $LIBS" 10338 10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10340$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10341if test "${lt_cv_dlopen_self+set}" = set; then : 10342 $as_echo_n "(cached) " >&6 10343else 10344 if test "$cross_compiling" = yes; then : 10345 lt_cv_dlopen_self=cross 10346else 10347 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10348 lt_status=$lt_dlunknown 10349 cat > conftest.$ac_ext <<_LT_EOF 10350#line 10350 "configure" 10351#include "confdefs.h" 10352 10353#if HAVE_DLFCN_H 10354#include <dlfcn.h> 10355#endif 10356 10357#include <stdio.h> 10358 10359#ifdef RTLD_GLOBAL 10360# define LT_DLGLOBAL RTLD_GLOBAL 10361#else 10362# ifdef DL_GLOBAL 10363# define LT_DLGLOBAL DL_GLOBAL 10364# else 10365# define LT_DLGLOBAL 0 10366# endif 10367#endif 10368 10369/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10370 find out it does not work in some platform. */ 10371#ifndef LT_DLLAZY_OR_NOW 10372# ifdef RTLD_LAZY 10373# define LT_DLLAZY_OR_NOW RTLD_LAZY 10374# else 10375# ifdef DL_LAZY 10376# define LT_DLLAZY_OR_NOW DL_LAZY 10377# else 10378# ifdef RTLD_NOW 10379# define LT_DLLAZY_OR_NOW RTLD_NOW 10380# else 10381# ifdef DL_NOW 10382# define LT_DLLAZY_OR_NOW DL_NOW 10383# else 10384# define LT_DLLAZY_OR_NOW 0 10385# endif 10386# endif 10387# endif 10388# endif 10389#endif 10390 10391void fnord() { int i=42;} 10392int main () 10393{ 10394 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10395 int status = $lt_dlunknown; 10396 10397 if (self) 10398 { 10399 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10400 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10401 /* dlclose (self); */ 10402 } 10403 else 10404 puts (dlerror ()); 10405 10406 return status; 10407} 10408_LT_EOF 10409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10410 (eval $ac_link) 2>&5 10411 ac_status=$? 10412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10413 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10414 (./conftest; exit; ) >&5 2>/dev/null 10415 lt_status=$? 10416 case x$lt_status in 10417 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10418 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10419 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10420 esac 10421 else : 10422 # compilation failed 10423 lt_cv_dlopen_self=no 10424 fi 10425fi 10426rm -fr conftest* 10427 10428 10429fi 10430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10431$as_echo "$lt_cv_dlopen_self" >&6; } 10432 10433 if test "x$lt_cv_dlopen_self" = xyes; then 10434 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10436$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10437if test "${lt_cv_dlopen_self_static+set}" = set; then : 10438 $as_echo_n "(cached) " >&6 10439else 10440 if test "$cross_compiling" = yes; then : 10441 lt_cv_dlopen_self_static=cross 10442else 10443 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10444 lt_status=$lt_dlunknown 10445 cat > conftest.$ac_ext <<_LT_EOF 10446#line 10446 "configure" 10447#include "confdefs.h" 10448 10449#if HAVE_DLFCN_H 10450#include <dlfcn.h> 10451#endif 10452 10453#include <stdio.h> 10454 10455#ifdef RTLD_GLOBAL 10456# define LT_DLGLOBAL RTLD_GLOBAL 10457#else 10458# ifdef DL_GLOBAL 10459# define LT_DLGLOBAL DL_GLOBAL 10460# else 10461# define LT_DLGLOBAL 0 10462# endif 10463#endif 10464 10465/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10466 find out it does not work in some platform. */ 10467#ifndef LT_DLLAZY_OR_NOW 10468# ifdef RTLD_LAZY 10469# define LT_DLLAZY_OR_NOW RTLD_LAZY 10470# else 10471# ifdef DL_LAZY 10472# define LT_DLLAZY_OR_NOW DL_LAZY 10473# else 10474# ifdef RTLD_NOW 10475# define LT_DLLAZY_OR_NOW RTLD_NOW 10476# else 10477# ifdef DL_NOW 10478# define LT_DLLAZY_OR_NOW DL_NOW 10479# else 10480# define LT_DLLAZY_OR_NOW 0 10481# endif 10482# endif 10483# endif 10484# endif 10485#endif 10486 10487void fnord() { int i=42;} 10488int main () 10489{ 10490 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10491 int status = $lt_dlunknown; 10492 10493 if (self) 10494 { 10495 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10496 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10497 /* dlclose (self); */ 10498 } 10499 else 10500 puts (dlerror ()); 10501 10502 return status; 10503} 10504_LT_EOF 10505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10506 (eval $ac_link) 2>&5 10507 ac_status=$? 10508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10509 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10510 (./conftest; exit; ) >&5 2>/dev/null 10511 lt_status=$? 10512 case x$lt_status in 10513 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10514 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10515 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10516 esac 10517 else : 10518 # compilation failed 10519 lt_cv_dlopen_self_static=no 10520 fi 10521fi 10522rm -fr conftest* 10523 10524 10525fi 10526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10527$as_echo "$lt_cv_dlopen_self_static" >&6; } 10528 fi 10529 10530 CPPFLAGS="$save_CPPFLAGS" 10531 LDFLAGS="$save_LDFLAGS" 10532 LIBS="$save_LIBS" 10533 ;; 10534 esac 10535 10536 case $lt_cv_dlopen_self in 10537 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10538 *) enable_dlopen_self=unknown ;; 10539 esac 10540 10541 case $lt_cv_dlopen_self_static in 10542 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10543 *) enable_dlopen_self_static=unknown ;; 10544 esac 10545fi 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563striplib= 10564old_striplib= 10565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10566$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10567if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10568 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10569 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10571$as_echo "yes" >&6; } 10572else 10573# FIXME - insert some real tests, host_os isn't really good enough 10574 case $host_os in 10575 darwin*) 10576 if test -n "$STRIP" ; then 10577 striplib="$STRIP -x" 10578 old_striplib="$STRIP -S" 10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10580$as_echo "yes" >&6; } 10581 else 10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10583$as_echo "no" >&6; } 10584 fi 10585 ;; 10586 *) 10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10588$as_echo "no" >&6; } 10589 ;; 10590 esac 10591fi 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 # Report which library types will actually be built 10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10606$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10608$as_echo "$can_build_shared" >&6; } 10609 10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10611$as_echo_n "checking whether to build shared libraries... " >&6; } 10612 test "$can_build_shared" = "no" && enable_shared=no 10613 10614 # On AIX, shared libraries and static libraries use the same namespace, and 10615 # are all built from PIC. 10616 case $host_os in 10617 aix3*) 10618 test "$enable_shared" = yes && enable_static=no 10619 if test -n "$RANLIB"; then 10620 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10621 postinstall_cmds='$RANLIB $lib' 10622 fi 10623 ;; 10624 10625 aix[4-9]*) 10626 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10627 test "$enable_shared" = yes && enable_static=no 10628 fi 10629 ;; 10630 esac 10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10632$as_echo "$enable_shared" >&6; } 10633 10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10635$as_echo_n "checking whether to build static libraries... " >&6; } 10636 # Make sure either enable_shared or enable_static is yes. 10637 test "$enable_shared" = yes || enable_static=yes 10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10639$as_echo "$enable_static" >&6; } 10640 10641 10642 10643 10644fi 10645ac_ext=c 10646ac_cpp='$CPP $CPPFLAGS' 10647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10649ac_compiler_gnu=$ac_cv_c_compiler_gnu 10650 10651CC="$lt_save_CC" 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 ac_config_commands="$ac_config_commands libtool" 10666 10667 10668 10669 10670# Only expand once: 10671 10672 10673ac_header_dirent=no 10674for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10675 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 10677$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 10678if eval "test \"\${$as_ac_Header+set}\"" = set; then : 10679 $as_echo_n "(cached) " >&6 10680else 10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10682/* end confdefs.h. */ 10683#include <sys/types.h> 10684#include <$ac_hdr> 10685 10686int 10687main () 10688{ 10689if ((DIR *) 0) 10690return 0; 10691 ; 10692 return 0; 10693} 10694_ACEOF 10695if ac_fn_c_try_compile "$LINENO"; then : 10696 eval "$as_ac_Header=yes" 10697else 10698 eval "$as_ac_Header=no" 10699fi 10700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10701fi 10702eval ac_res=\$$as_ac_Header 10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10704$as_echo "$ac_res" >&6; } 10705if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10706 cat >>confdefs.h <<_ACEOF 10707#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10708_ACEOF 10709 10710ac_header_dirent=$ac_hdr; break 10711fi 10712 10713done 10714# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10715if test $ac_header_dirent = dirent.h; then 10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10717$as_echo_n "checking for library containing opendir... " >&6; } 10718if test "${ac_cv_search_opendir+set}" = set; then : 10719 $as_echo_n "(cached) " >&6 10720else 10721 ac_func_search_save_LIBS=$LIBS 10722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10723/* end confdefs.h. */ 10724 10725/* Override any GCC internal prototype to avoid an error. 10726 Use char because int might match the return type of a GCC 10727 builtin and then its argument prototype would still apply. */ 10728#ifdef __cplusplus 10729extern "C" 10730#endif 10731char opendir (); 10732int 10733main () 10734{ 10735return opendir (); 10736 ; 10737 return 0; 10738} 10739_ACEOF 10740for ac_lib in '' dir; do 10741 if test -z "$ac_lib"; then 10742 ac_res="none required" 10743 else 10744 ac_res=-l$ac_lib 10745 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10746 fi 10747 if ac_fn_c_try_link "$LINENO"; then : 10748 ac_cv_search_opendir=$ac_res 10749fi 10750rm -f core conftest.err conftest.$ac_objext \ 10751 conftest$ac_exeext 10752 if test "${ac_cv_search_opendir+set}" = set; then : 10753 break 10754fi 10755done 10756if test "${ac_cv_search_opendir+set}" = set; then : 10757 10758else 10759 ac_cv_search_opendir=no 10760fi 10761rm conftest.$ac_ext 10762LIBS=$ac_func_search_save_LIBS 10763fi 10764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10765$as_echo "$ac_cv_search_opendir" >&6; } 10766ac_res=$ac_cv_search_opendir 10767if test "$ac_res" != no; then : 10768 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10769 10770fi 10771 10772else 10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10774$as_echo_n "checking for library containing opendir... " >&6; } 10775if test "${ac_cv_search_opendir+set}" = set; then : 10776 $as_echo_n "(cached) " >&6 10777else 10778 ac_func_search_save_LIBS=$LIBS 10779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10780/* end confdefs.h. */ 10781 10782/* Override any GCC internal prototype to avoid an error. 10783 Use char because int might match the return type of a GCC 10784 builtin and then its argument prototype would still apply. */ 10785#ifdef __cplusplus 10786extern "C" 10787#endif 10788char opendir (); 10789int 10790main () 10791{ 10792return opendir (); 10793 ; 10794 return 0; 10795} 10796_ACEOF 10797for ac_lib in '' x; do 10798 if test -z "$ac_lib"; then 10799 ac_res="none required" 10800 else 10801 ac_res=-l$ac_lib 10802 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10803 fi 10804 if ac_fn_c_try_link "$LINENO"; then : 10805 ac_cv_search_opendir=$ac_res 10806fi 10807rm -f core conftest.err conftest.$ac_objext \ 10808 conftest$ac_exeext 10809 if test "${ac_cv_search_opendir+set}" = set; then : 10810 break 10811fi 10812done 10813if test "${ac_cv_search_opendir+set}" = set; then : 10814 10815else 10816 ac_cv_search_opendir=no 10817fi 10818rm conftest.$ac_ext 10819LIBS=$ac_func_search_save_LIBS 10820fi 10821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10822$as_echo "$ac_cv_search_opendir" >&6; } 10823ac_res=$ac_cv_search_opendir 10824if test "$ac_res" != no; then : 10825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10826 10827fi 10828 10829fi 10830 10831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 10832$as_echo_n "checking for ANSI C header files... " >&6; } 10833if test "${ac_cv_header_stdc+set}" = set; then : 10834 $as_echo_n "(cached) " >&6 10835else 10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10837/* end confdefs.h. */ 10838#include <stdlib.h> 10839#include <stdarg.h> 10840#include <string.h> 10841#include <float.h> 10842 10843int 10844main () 10845{ 10846 10847 ; 10848 return 0; 10849} 10850_ACEOF 10851if ac_fn_c_try_compile "$LINENO"; then : 10852 ac_cv_header_stdc=yes 10853else 10854 ac_cv_header_stdc=no 10855fi 10856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10857 10858if test $ac_cv_header_stdc = yes; then 10859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10861/* end confdefs.h. */ 10862#include <string.h> 10863 10864_ACEOF 10865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10866 $EGREP "memchr" >/dev/null 2>&1; then : 10867 10868else 10869 ac_cv_header_stdc=no 10870fi 10871rm -f conftest* 10872 10873fi 10874 10875if test $ac_cv_header_stdc = yes; then 10876 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10878/* end confdefs.h. */ 10879#include <stdlib.h> 10880 10881_ACEOF 10882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10883 $EGREP "free" >/dev/null 2>&1; then : 10884 10885else 10886 ac_cv_header_stdc=no 10887fi 10888rm -f conftest* 10889 10890fi 10891 10892if test $ac_cv_header_stdc = yes; then 10893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10894 if test "$cross_compiling" = yes; then : 10895 : 10896else 10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10898/* end confdefs.h. */ 10899#include <ctype.h> 10900#include <stdlib.h> 10901#if ((' ' & 0x0FF) == 0x020) 10902# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10903# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10904#else 10905# define ISLOWER(c) \ 10906 (('a' <= (c) && (c) <= 'i') \ 10907 || ('j' <= (c) && (c) <= 'r') \ 10908 || ('s' <= (c) && (c) <= 'z')) 10909# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10910#endif 10911 10912#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10913int 10914main () 10915{ 10916 int i; 10917 for (i = 0; i < 256; i++) 10918 if (XOR (islower (i), ISLOWER (i)) 10919 || toupper (i) != TOUPPER (i)) 10920 return 2; 10921 return 0; 10922} 10923_ACEOF 10924if ac_fn_c_try_run "$LINENO"; then : 10925 10926else 10927 ac_cv_header_stdc=no 10928fi 10929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10930 conftest.$ac_objext conftest.beam conftest.$ac_ext 10931fi 10932 10933fi 10934fi 10935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 10936$as_echo "$ac_cv_header_stdc" >&6; } 10937if test $ac_cv_header_stdc = yes; then 10938 10939$as_echo "#define STDC_HEADERS 1" >>confdefs.h 10940 10941fi 10942 10943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 10944$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 10945if test "${ac_cv_header_sys_wait_h+set}" = set; then : 10946 $as_echo_n "(cached) " >&6 10947else 10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10949/* end confdefs.h. */ 10950#include <sys/types.h> 10951#include <sys/wait.h> 10952#ifndef WEXITSTATUS 10953# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 10954#endif 10955#ifndef WIFEXITED 10956# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 10957#endif 10958 10959int 10960main () 10961{ 10962 int s; 10963 wait (&s); 10964 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 10965 ; 10966 return 0; 10967} 10968_ACEOF 10969if ac_fn_c_try_compile "$LINENO"; then : 10970 ac_cv_header_sys_wait_h=yes 10971else 10972 ac_cv_header_sys_wait_h=no 10973fi 10974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10975fi 10976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 10977$as_echo "$ac_cv_header_sys_wait_h" >&6; } 10978if test $ac_cv_header_sys_wait_h = yes; then 10979 10980$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 10981 10982fi 10983 10984for ac_header in pty.h fcntl.h strings.h sys/ioctl.h unistd.h 10985do : 10986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10987ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10988if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10989 cat >>confdefs.h <<_ACEOF 10990#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10991_ACEOF 10992 10993fi 10994 10995done 10996 10997 10998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 10999$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 11000if test "${ac_cv_c_const+set}" = set; then : 11001 $as_echo_n "(cached) " >&6 11002else 11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11004/* end confdefs.h. */ 11005 11006int 11007main () 11008{ 11009/* FIXME: Include the comments suggested by Paul. */ 11010#ifndef __cplusplus 11011 /* Ultrix mips cc rejects this. */ 11012 typedef int charset[2]; 11013 const charset cs; 11014 /* SunOS 4.1.1 cc rejects this. */ 11015 char const *const *pcpcc; 11016 char **ppc; 11017 /* NEC SVR4.0.2 mips cc rejects this. */ 11018 struct point {int x, y;}; 11019 static struct point const zero = {0,0}; 11020 /* AIX XL C 1.02.0.0 rejects this. 11021 It does not let you subtract one const X* pointer from another in 11022 an arm of an if-expression whose if-part is not a constant 11023 expression */ 11024 const char *g = "string"; 11025 pcpcc = &g + (g ? g-g : 0); 11026 /* HPUX 7.0 cc rejects these. */ 11027 ++pcpcc; 11028 ppc = (char**) pcpcc; 11029 pcpcc = (char const *const *) ppc; 11030 { /* SCO 3.2v4 cc rejects this. */ 11031 char *t; 11032 char const *s = 0 ? (char *) 0 : (char const *) 0; 11033 11034 *t++ = 0; 11035 if (s) return 0; 11036 } 11037 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11038 int x[] = {25, 17}; 11039 const int *foo = &x[0]; 11040 ++foo; 11041 } 11042 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11043 typedef const int *iptr; 11044 iptr p = 0; 11045 ++p; 11046 } 11047 { /* AIX XL C 1.02.0.0 rejects this saying 11048 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11049 struct s { int j; const int *ap[3]; }; 11050 struct s *b; b->j = 5; 11051 } 11052 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11053 const int foo = 10; 11054 if (!foo) return 0; 11055 } 11056 return !cs[0] && !zero.x; 11057#endif 11058 11059 ; 11060 return 0; 11061} 11062_ACEOF 11063if ac_fn_c_try_compile "$LINENO"; then : 11064 ac_cv_c_const=yes 11065else 11066 ac_cv_c_const=no 11067fi 11068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11069fi 11070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 11071$as_echo "$ac_cv_c_const" >&6; } 11072if test $ac_cv_c_const = no; then 11073 11074$as_echo "#define const /**/" >>confdefs.h 11075 11076fi 11077 11078ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 11079if test "x$ac_cv_type_pid_t" = x""yes; then : 11080 11081else 11082 11083cat >>confdefs.h <<_ACEOF 11084#define pid_t int 11085_ACEOF 11086 11087fi 11088 11089ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 11090if test "x$ac_cv_type_size_t" = x""yes; then : 11091 11092else 11093 11094cat >>confdefs.h <<_ACEOF 11095#define size_t unsigned int 11096_ACEOF 11097 11098fi 11099 11100 11101 11102CFLAGS="$CFLAGS -Wall" 11103 11104for ac_func in socket strcspn strdup strerror strstr 11105do : 11106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11107ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11108if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11109 cat >>confdefs.h <<_ACEOF 11110#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11111_ACEOF 11112 11113fi 11114done 11115 11116for ac_func in openpty 11117do : 11118 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" 11119if test "x$ac_cv_func_openpty" = x""yes; then : 11120 cat >>confdefs.h <<_ACEOF 11121#define HAVE_OPENPTY 1 11122_ACEOF 11123 11124else 11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 11126$as_echo_n "checking for openpty in -lutil... " >&6; } 11127if test "${ac_cv_lib_util_openpty+set}" = set; then : 11128 $as_echo_n "(cached) " >&6 11129else 11130 ac_check_lib_save_LIBS=$LIBS 11131LIBS="-lutil $LIBS" 11132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11133/* end confdefs.h. */ 11134 11135/* Override any GCC internal prototype to avoid an error. 11136 Use char because int might match the return type of a GCC 11137 builtin and then its argument prototype would still apply. */ 11138#ifdef __cplusplus 11139extern "C" 11140#endif 11141char openpty (); 11142int 11143main () 11144{ 11145return openpty (); 11146 ; 11147 return 0; 11148} 11149_ACEOF 11150if ac_fn_c_try_link "$LINENO"; then : 11151 ac_cv_lib_util_openpty=yes 11152else 11153 ac_cv_lib_util_openpty=no 11154fi 11155rm -f core conftest.err conftest.$ac_objext \ 11156 conftest$ac_exeext conftest.$ac_ext 11157LIBS=$ac_check_lib_save_LIBS 11158fi 11159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 11160$as_echo "$ac_cv_lib_util_openpty" >&6; } 11161if test "x$ac_cv_lib_util_openpty" = x""yes; then : 11162 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h 11163 11164 LIBS="$LIBS -lutil -lz -lm" 11165 11166fi 11167 11168fi 11169done 11170 11171 11172ALL_LINGUAS="en_GB es it gl de" 11173GETTEXT_PACKAGE=ripperX 11174 11175 11176cat >>confdefs.h <<_ACEOF 11177#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" 11178_ACEOF 11179 11180 11181 11182 11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 11184$as_echo_n "checking whether NLS is requested... " >&6; } 11185 # Check whether --enable-nls was given. 11186if test "${enable_nls+set}" = set; then : 11187 enableval=$enable_nls; USE_NLS=$enableval 11188else 11189 USE_NLS=yes 11190fi 11191 11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 11193$as_echo "$USE_NLS" >&6; } 11194 11195 11196 11197 11198 GETTEXT_MACRO_VERSION=0.18 11199 11200 11201 11202 11203# Prepare PATH_SEPARATOR. 11204# The user is always right. 11205if test "${PATH_SEPARATOR+set}" != set; then 11206 echo "#! /bin/sh" >conf$$.sh 11207 echo "exit 0" >>conf$$.sh 11208 chmod +x conf$$.sh 11209 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11210 PATH_SEPARATOR=';' 11211 else 11212 PATH_SEPARATOR=: 11213 fi 11214 rm -f conf$$.sh 11215fi 11216 11217# Find out how to test for executable files. Don't use a zero-byte file, 11218# as systems may use methods other than mode bits to determine executability. 11219cat >conf$$.file <<_ASEOF 11220#! /bin/sh 11221exit 0 11222_ASEOF 11223chmod +x conf$$.file 11224if test -x conf$$.file >/dev/null 2>&1; then 11225 ac_executable_p="test -x" 11226else 11227 ac_executable_p="test -f" 11228fi 11229rm -f conf$$.file 11230 11231# Extract the first word of "msgfmt", so it can be a program name with args. 11232set dummy msgfmt; ac_word=$2 11233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11234$as_echo_n "checking for $ac_word... " >&6; } 11235if test "${ac_cv_path_MSGFMT+set}" = set; then : 11236 $as_echo_n "(cached) " >&6 11237else 11238 case "$MSGFMT" in 11239 [\\/]* | ?:[\\/]*) 11240 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 11241 ;; 11242 *) 11243 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11244 for ac_dir in $PATH; do 11245 IFS="$ac_save_IFS" 11246 test -z "$ac_dir" && ac_dir=. 11247 for ac_exec_ext in '' $ac_executable_extensions; do 11248 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11249 echo "$as_me: trying $ac_dir/$ac_word..." >&5 11250 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 11251 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 11252 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 11253 break 2 11254 fi 11255 fi 11256 done 11257 done 11258 IFS="$ac_save_IFS" 11259 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 11260 ;; 11261esac 11262fi 11263MSGFMT="$ac_cv_path_MSGFMT" 11264if test "$MSGFMT" != ":"; then 11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 11266$as_echo "$MSGFMT" >&6; } 11267else 11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11269$as_echo "no" >&6; } 11270fi 11271 11272 # Extract the first word of "gmsgfmt", so it can be a program name with args. 11273set dummy gmsgfmt; ac_word=$2 11274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11275$as_echo_n "checking for $ac_word... " >&6; } 11276if test "${ac_cv_path_GMSGFMT+set}" = set; then : 11277 $as_echo_n "(cached) " >&6 11278else 11279 case $GMSGFMT in 11280 [\\/]* | ?:[\\/]*) 11281 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 11282 ;; 11283 *) 11284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11285for as_dir in $PATH 11286do 11287 IFS=$as_save_IFS 11288 test -z "$as_dir" && as_dir=. 11289 for ac_exec_ext in '' $ac_executable_extensions; do 11290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11291 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 11292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11293 break 2 11294 fi 11295done 11296 done 11297IFS=$as_save_IFS 11298 11299 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 11300 ;; 11301esac 11302fi 11303GMSGFMT=$ac_cv_path_GMSGFMT 11304if test -n "$GMSGFMT"; then 11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 11306$as_echo "$GMSGFMT" >&6; } 11307else 11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11309$as_echo "no" >&6; } 11310fi 11311 11312 11313 11314 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 11315 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 11316 *) MSGFMT_015=$MSGFMT ;; 11317 esac 11318 11319 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 11320 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 11321 *) GMSGFMT_015=$GMSGFMT ;; 11322 esac 11323 11324 11325 11326# Prepare PATH_SEPARATOR. 11327# The user is always right. 11328if test "${PATH_SEPARATOR+set}" != set; then 11329 echo "#! /bin/sh" >conf$$.sh 11330 echo "exit 0" >>conf$$.sh 11331 chmod +x conf$$.sh 11332 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11333 PATH_SEPARATOR=';' 11334 else 11335 PATH_SEPARATOR=: 11336 fi 11337 rm -f conf$$.sh 11338fi 11339 11340# Find out how to test for executable files. Don't use a zero-byte file, 11341# as systems may use methods other than mode bits to determine executability. 11342cat >conf$$.file <<_ASEOF 11343#! /bin/sh 11344exit 0 11345_ASEOF 11346chmod +x conf$$.file 11347if test -x conf$$.file >/dev/null 2>&1; then 11348 ac_executable_p="test -x" 11349else 11350 ac_executable_p="test -f" 11351fi 11352rm -f conf$$.file 11353 11354# Extract the first word of "xgettext", so it can be a program name with args. 11355set dummy xgettext; ac_word=$2 11356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11357$as_echo_n "checking for $ac_word... " >&6; } 11358if test "${ac_cv_path_XGETTEXT+set}" = set; then : 11359 $as_echo_n "(cached) " >&6 11360else 11361 case "$XGETTEXT" in 11362 [\\/]* | ?:[\\/]*) 11363 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 11364 ;; 11365 *) 11366 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11367 for ac_dir in $PATH; do 11368 IFS="$ac_save_IFS" 11369 test -z "$ac_dir" && ac_dir=. 11370 for ac_exec_ext in '' $ac_executable_extensions; do 11371 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11372 echo "$as_me: trying $ac_dir/$ac_word..." >&5 11373 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 11374 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 11375 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 11376 break 2 11377 fi 11378 fi 11379 done 11380 done 11381 IFS="$ac_save_IFS" 11382 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 11383 ;; 11384esac 11385fi 11386XGETTEXT="$ac_cv_path_XGETTEXT" 11387if test "$XGETTEXT" != ":"; then 11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 11389$as_echo "$XGETTEXT" >&6; } 11390else 11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11392$as_echo "no" >&6; } 11393fi 11394 11395 rm -f messages.po 11396 11397 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 11398 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 11399 *) XGETTEXT_015=$XGETTEXT ;; 11400 esac 11401 11402 11403 11404# Prepare PATH_SEPARATOR. 11405# The user is always right. 11406if test "${PATH_SEPARATOR+set}" != set; then 11407 echo "#! /bin/sh" >conf$$.sh 11408 echo "exit 0" >>conf$$.sh 11409 chmod +x conf$$.sh 11410 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11411 PATH_SEPARATOR=';' 11412 else 11413 PATH_SEPARATOR=: 11414 fi 11415 rm -f conf$$.sh 11416fi 11417 11418# Find out how to test for executable files. Don't use a zero-byte file, 11419# as systems may use methods other than mode bits to determine executability. 11420cat >conf$$.file <<_ASEOF 11421#! /bin/sh 11422exit 0 11423_ASEOF 11424chmod +x conf$$.file 11425if test -x conf$$.file >/dev/null 2>&1; then 11426 ac_executable_p="test -x" 11427else 11428 ac_executable_p="test -f" 11429fi 11430rm -f conf$$.file 11431 11432# Extract the first word of "msgmerge", so it can be a program name with args. 11433set dummy msgmerge; ac_word=$2 11434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11435$as_echo_n "checking for $ac_word... " >&6; } 11436if test "${ac_cv_path_MSGMERGE+set}" = set; then : 11437 $as_echo_n "(cached) " >&6 11438else 11439 case "$MSGMERGE" in 11440 [\\/]* | ?:[\\/]*) 11441 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 11442 ;; 11443 *) 11444 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11445 for ac_dir in $PATH; do 11446 IFS="$ac_save_IFS" 11447 test -z "$ac_dir" && ac_dir=. 11448 for ac_exec_ext in '' $ac_executable_extensions; do 11449 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11450 echo "$as_me: trying $ac_dir/$ac_word..." >&5 11451 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 11452 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 11453 break 2 11454 fi 11455 fi 11456 done 11457 done 11458 IFS="$ac_save_IFS" 11459 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 11460 ;; 11461esac 11462fi 11463MSGMERGE="$ac_cv_path_MSGMERGE" 11464if test "$MSGMERGE" != ":"; then 11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 11466$as_echo "$MSGMERGE" >&6; } 11467else 11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11469$as_echo "no" >&6; } 11470fi 11471 11472 11473 test -n "$localedir" || localedir='${datadir}/locale' 11474 11475 11476 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 11477 11478 11479 ac_config_commands="$ac_config_commands po-directories" 11480 11481 11482 11483 if test "X$prefix" = "XNONE"; then 11484 acl_final_prefix="$ac_default_prefix" 11485 else 11486 acl_final_prefix="$prefix" 11487 fi 11488 if test "X$exec_prefix" = "XNONE"; then 11489 acl_final_exec_prefix='${prefix}' 11490 else 11491 acl_final_exec_prefix="$exec_prefix" 11492 fi 11493 acl_save_prefix="$prefix" 11494 prefix="$acl_final_prefix" 11495 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 11496 prefix="$acl_save_prefix" 11497 11498 11499# Check whether --with-gnu-ld was given. 11500if test "${with_gnu_ld+set}" = set; then : 11501 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11502else 11503 with_gnu_ld=no 11504fi 11505 11506# Prepare PATH_SEPARATOR. 11507# The user is always right. 11508if test "${PATH_SEPARATOR+set}" != set; then 11509 echo "#! /bin/sh" >conf$$.sh 11510 echo "exit 0" >>conf$$.sh 11511 chmod +x conf$$.sh 11512 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11513 PATH_SEPARATOR=';' 11514 else 11515 PATH_SEPARATOR=: 11516 fi 11517 rm -f conf$$.sh 11518fi 11519ac_prog=ld 11520if test "$GCC" = yes; then 11521 # Check if gcc -print-prog-name=ld gives a path. 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 11523$as_echo_n "checking for ld used by GCC... " >&6; } 11524 case $host in 11525 *-*-mingw*) 11526 # gcc leaves a trailing carriage return which upsets mingw 11527 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11528 *) 11529 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11530 esac 11531 case $ac_prog in 11532 # Accept absolute paths. 11533 [\\/]* | [A-Za-z]:[\\/]*) 11534 re_direlt='/[^/][^/]*/\.\./' 11535 # Canonicalize the path of ld 11536 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 11537 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11538 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 11539 done 11540 test -z "$LD" && LD="$ac_prog" 11541 ;; 11542 "") 11543 # If it fails, then pretend we aren't using GCC. 11544 ac_prog=ld 11545 ;; 11546 *) 11547 # If it is relative, then search for the first ld in PATH. 11548 with_gnu_ld=unknown 11549 ;; 11550 esac 11551elif test "$with_gnu_ld" = yes; then 11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11553$as_echo_n "checking for GNU ld... " >&6; } 11554else 11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11556$as_echo_n "checking for non-GNU ld... " >&6; } 11557fi 11558if test "${acl_cv_path_LD+set}" = set; then : 11559 $as_echo_n "(cached) " >&6 11560else 11561 if test -z "$LD"; then 11562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 11563 for ac_dir in $PATH; do 11564 test -z "$ac_dir" && ac_dir=. 11565 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11566 acl_cv_path_LD="$ac_dir/$ac_prog" 11567 # Check to see if the program is GNU ld. I'd rather use --version, 11568 # but apparently some GNU ld's only accept -v. 11569 # Break only if it was the GNU/non-GNU ld that we prefer. 11570 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 11571 *GNU* | *'with BFD'*) 11572 test "$with_gnu_ld" != no && break ;; 11573 *) 11574 test "$with_gnu_ld" != yes && break ;; 11575 esac 11576 fi 11577 done 11578 IFS="$ac_save_ifs" 11579else 11580 acl_cv_path_LD="$LD" # Let the user override the test with a path. 11581fi 11582fi 11583 11584LD="$acl_cv_path_LD" 11585if test -n "$LD"; then 11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11587$as_echo "$LD" >&6; } 11588else 11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11590$as_echo "no" >&6; } 11591fi 11592test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11594$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11595if test "${acl_cv_prog_gnu_ld+set}" = set; then : 11596 $as_echo_n "(cached) " >&6 11597else 11598 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 11599case `$LD -v 2>&1 </dev/null` in 11600*GNU* | *'with BFD'*) 11601 acl_cv_prog_gnu_ld=yes ;; 11602*) 11603 acl_cv_prog_gnu_ld=no ;; 11604esac 11605fi 11606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 11607$as_echo "$acl_cv_prog_gnu_ld" >&6; } 11608with_gnu_ld=$acl_cv_prog_gnu_ld 11609 11610 11611 11612 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 11614$as_echo_n "checking for shared library run path origin... " >&6; } 11615if test "${acl_cv_rpath+set}" = set; then : 11616 $as_echo_n "(cached) " >&6 11617else 11618 11619 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 11620 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 11621 . ./conftest.sh 11622 rm -f ./conftest.sh 11623 acl_cv_rpath=done 11624 11625fi 11626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 11627$as_echo "$acl_cv_rpath" >&6; } 11628 wl="$acl_cv_wl" 11629 acl_libext="$acl_cv_libext" 11630 acl_shlibext="$acl_cv_shlibext" 11631 acl_libname_spec="$acl_cv_libname_spec" 11632 acl_library_names_spec="$acl_cv_library_names_spec" 11633 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 11634 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 11635 acl_hardcode_direct="$acl_cv_hardcode_direct" 11636 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 11637 # Check whether --enable-rpath was given. 11638if test "${enable_rpath+set}" = set; then : 11639 enableval=$enable_rpath; : 11640else 11641 enable_rpath=yes 11642fi 11643 11644 11645 11646 11647 acl_libdirstem=lib 11648 acl_libdirstem2= 11649 case "$host_os" in 11650 solaris*) 11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 11652$as_echo_n "checking for 64-bit host... " >&6; } 11653if test "${gl_cv_solaris_64bit+set}" = set; then : 11654 $as_echo_n "(cached) " >&6 11655else 11656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11657/* end confdefs.h. */ 11658 11659#ifdef _LP64 11660sixtyfour bits 11661#endif 11662 11663_ACEOF 11664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11665 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 11666 gl_cv_solaris_64bit=yes 11667else 11668 gl_cv_solaris_64bit=no 11669fi 11670rm -f conftest* 11671 11672 11673fi 11674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 11675$as_echo "$gl_cv_solaris_64bit" >&6; } 11676 if test $gl_cv_solaris_64bit = yes; then 11677 acl_libdirstem=lib/64 11678 case "$host_cpu" in 11679 sparc*) acl_libdirstem2=lib/sparcv9 ;; 11680 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 11681 esac 11682 fi 11683 ;; 11684 *) 11685 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 11686 if test -n "$searchpath"; then 11687 acl_save_IFS="${IFS= }"; IFS=":" 11688 for searchdir in $searchpath; do 11689 if test -d "$searchdir"; then 11690 case "$searchdir" in 11691 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 11692 */../ | */.. ) 11693 # Better ignore directories of this form. They are misleading. 11694 ;; 11695 *) searchdir=`cd "$searchdir" && pwd` 11696 case "$searchdir" in 11697 */lib64 ) acl_libdirstem=lib64 ;; 11698 esac ;; 11699 esac 11700 fi 11701 done 11702 IFS="$acl_save_IFS" 11703 fi 11704 ;; 11705 esac 11706 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 use_additional=yes 11720 11721 acl_save_prefix="$prefix" 11722 prefix="$acl_final_prefix" 11723 acl_save_exec_prefix="$exec_prefix" 11724 exec_prefix="$acl_final_exec_prefix" 11725 11726 eval additional_includedir=\"$includedir\" 11727 eval additional_libdir=\"$libdir\" 11728 11729 exec_prefix="$acl_save_exec_prefix" 11730 prefix="$acl_save_prefix" 11731 11732 11733# Check whether --with-libiconv-prefix was given. 11734if test "${with_libiconv_prefix+set}" = set; then : 11735 withval=$with_libiconv_prefix; 11736 if test "X$withval" = "Xno"; then 11737 use_additional=no 11738 else 11739 if test "X$withval" = "X"; then 11740 11741 acl_save_prefix="$prefix" 11742 prefix="$acl_final_prefix" 11743 acl_save_exec_prefix="$exec_prefix" 11744 exec_prefix="$acl_final_exec_prefix" 11745 11746 eval additional_includedir=\"$includedir\" 11747 eval additional_libdir=\"$libdir\" 11748 11749 exec_prefix="$acl_save_exec_prefix" 11750 prefix="$acl_save_prefix" 11751 11752 else 11753 additional_includedir="$withval/include" 11754 additional_libdir="$withval/$acl_libdirstem" 11755 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 11756 && ! test -d "$withval/$acl_libdirstem"; then 11757 additional_libdir="$withval/$acl_libdirstem2" 11758 fi 11759 fi 11760 fi 11761 11762fi 11763 11764 LIBICONV= 11765 LTLIBICONV= 11766 INCICONV= 11767 LIBICONV_PREFIX= 11768 HAVE_LIBICONV= 11769 rpathdirs= 11770 ltrpathdirs= 11771 names_already_handled= 11772 names_next_round='iconv ' 11773 while test -n "$names_next_round"; do 11774 names_this_round="$names_next_round" 11775 names_next_round= 11776 for name in $names_this_round; do 11777 already_handled= 11778 for n in $names_already_handled; do 11779 if test "$n" = "$name"; then 11780 already_handled=yes 11781 break 11782 fi 11783 done 11784 if test -z "$already_handled"; then 11785 names_already_handled="$names_already_handled $name" 11786 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 11787 eval value=\"\$HAVE_LIB$uppername\" 11788 if test -n "$value"; then 11789 if test "$value" = yes; then 11790 eval value=\"\$LIB$uppername\" 11791 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 11792 eval value=\"\$LTLIB$uppername\" 11793 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 11794 else 11795 : 11796 fi 11797 else 11798 found_dir= 11799 found_la= 11800 found_so= 11801 found_a= 11802 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 11803 if test -n "$acl_shlibext"; then 11804 shrext=".$acl_shlibext" # typically: shrext=.so 11805 else 11806 shrext= 11807 fi 11808 if test $use_additional = yes; then 11809 dir="$additional_libdir" 11810 if test -n "$acl_shlibext"; then 11811 if test -f "$dir/$libname$shrext"; then 11812 found_dir="$dir" 11813 found_so="$dir/$libname$shrext" 11814 else 11815 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 11816 ver=`(cd "$dir" && \ 11817 for f in "$libname$shrext".*; do echo "$f"; done \ 11818 | sed -e "s,^$libname$shrext\\\\.,," \ 11819 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 11820 | sed 1q ) 2>/dev/null` 11821 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 11822 found_dir="$dir" 11823 found_so="$dir/$libname$shrext.$ver" 11824 fi 11825 else 11826 eval library_names=\"$acl_library_names_spec\" 11827 for f in $library_names; do 11828 if test -f "$dir/$f"; then 11829 found_dir="$dir" 11830 found_so="$dir/$f" 11831 break 11832 fi 11833 done 11834 fi 11835 fi 11836 fi 11837 if test "X$found_dir" = "X"; then 11838 if test -f "$dir/$libname.$acl_libext"; then 11839 found_dir="$dir" 11840 found_a="$dir/$libname.$acl_libext" 11841 fi 11842 fi 11843 if test "X$found_dir" != "X"; then 11844 if test -f "$dir/$libname.la"; then 11845 found_la="$dir/$libname.la" 11846 fi 11847 fi 11848 fi 11849 if test "X$found_dir" = "X"; then 11850 for x in $LDFLAGS $LTLIBICONV; do 11851 11852 acl_save_prefix="$prefix" 11853 prefix="$acl_final_prefix" 11854 acl_save_exec_prefix="$exec_prefix" 11855 exec_prefix="$acl_final_exec_prefix" 11856 eval x=\"$x\" 11857 exec_prefix="$acl_save_exec_prefix" 11858 prefix="$acl_save_prefix" 11859 11860 case "$x" in 11861 -L*) 11862 dir=`echo "X$x" | sed -e 's/^X-L//'` 11863 if test -n "$acl_shlibext"; then 11864 if test -f "$dir/$libname$shrext"; then 11865 found_dir="$dir" 11866 found_so="$dir/$libname$shrext" 11867 else 11868 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 11869 ver=`(cd "$dir" && \ 11870 for f in "$libname$shrext".*; do echo "$f"; done \ 11871 | sed -e "s,^$libname$shrext\\\\.,," \ 11872 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 11873 | sed 1q ) 2>/dev/null` 11874 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 11875 found_dir="$dir" 11876 found_so="$dir/$libname$shrext.$ver" 11877 fi 11878 else 11879 eval library_names=\"$acl_library_names_spec\" 11880 for f in $library_names; do 11881 if test -f "$dir/$f"; then 11882 found_dir="$dir" 11883 found_so="$dir/$f" 11884 break 11885 fi 11886 done 11887 fi 11888 fi 11889 fi 11890 if test "X$found_dir" = "X"; then 11891 if test -f "$dir/$libname.$acl_libext"; then 11892 found_dir="$dir" 11893 found_a="$dir/$libname.$acl_libext" 11894 fi 11895 fi 11896 if test "X$found_dir" != "X"; then 11897 if test -f "$dir/$libname.la"; then 11898 found_la="$dir/$libname.la" 11899 fi 11900 fi 11901 ;; 11902 esac 11903 if test "X$found_dir" != "X"; then 11904 break 11905 fi 11906 done 11907 fi 11908 if test "X$found_dir" != "X"; then 11909 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 11910 if test "X$found_so" != "X"; then 11911 if test "$enable_rpath" = no \ 11912 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 11913 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 11914 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11915 else 11916 haveit= 11917 for x in $ltrpathdirs; do 11918 if test "X$x" = "X$found_dir"; then 11919 haveit=yes 11920 break 11921 fi 11922 done 11923 if test -z "$haveit"; then 11924 ltrpathdirs="$ltrpathdirs $found_dir" 11925 fi 11926 if test "$acl_hardcode_direct" = yes; then 11927 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11928 else 11929 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 11930 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11931 haveit= 11932 for x in $rpathdirs; do 11933 if test "X$x" = "X$found_dir"; then 11934 haveit=yes 11935 break 11936 fi 11937 done 11938 if test -z "$haveit"; then 11939 rpathdirs="$rpathdirs $found_dir" 11940 fi 11941 else 11942 haveit= 11943 for x in $LDFLAGS $LIBICONV; do 11944 11945 acl_save_prefix="$prefix" 11946 prefix="$acl_final_prefix" 11947 acl_save_exec_prefix="$exec_prefix" 11948 exec_prefix="$acl_final_exec_prefix" 11949 eval x=\"$x\" 11950 exec_prefix="$acl_save_exec_prefix" 11951 prefix="$acl_save_prefix" 11952 11953 if test "X$x" = "X-L$found_dir"; then 11954 haveit=yes 11955 break 11956 fi 11957 done 11958 if test -z "$haveit"; then 11959 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 11960 fi 11961 if test "$acl_hardcode_minus_L" != no; then 11962 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11963 else 11964 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 11965 fi 11966 fi 11967 fi 11968 fi 11969 else 11970 if test "X$found_a" != "X"; then 11971 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 11972 else 11973 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 11974 fi 11975 fi 11976 additional_includedir= 11977 case "$found_dir" in 11978 */$acl_libdirstem | */$acl_libdirstem/) 11979 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 11980 if test "$name" = 'iconv'; then 11981 LIBICONV_PREFIX="$basedir" 11982 fi 11983 additional_includedir="$basedir/include" 11984 ;; 11985 */$acl_libdirstem2 | */$acl_libdirstem2/) 11986 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 11987 if test "$name" = 'iconv'; then 11988 LIBICONV_PREFIX="$basedir" 11989 fi 11990 additional_includedir="$basedir/include" 11991 ;; 11992 esac 11993 if test "X$additional_includedir" != "X"; then 11994 if test "X$additional_includedir" != "X/usr/include"; then 11995 haveit= 11996 if test "X$additional_includedir" = "X/usr/local/include"; then 11997 if test -n "$GCC"; then 11998 case $host_os in 11999 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 12000 esac 12001 fi 12002 fi 12003 if test -z "$haveit"; then 12004 for x in $CPPFLAGS $INCICONV; do 12005 12006 acl_save_prefix="$prefix" 12007 prefix="$acl_final_prefix" 12008 acl_save_exec_prefix="$exec_prefix" 12009 exec_prefix="$acl_final_exec_prefix" 12010 eval x=\"$x\" 12011 exec_prefix="$acl_save_exec_prefix" 12012 prefix="$acl_save_prefix" 12013 12014 if test "X$x" = "X-I$additional_includedir"; then 12015 haveit=yes 12016 break 12017 fi 12018 done 12019 if test -z "$haveit"; then 12020 if test -d "$additional_includedir"; then 12021 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 12022 fi 12023 fi 12024 fi 12025 fi 12026 fi 12027 if test -n "$found_la"; then 12028 save_libdir="$libdir" 12029 case "$found_la" in 12030 */* | *\\*) . "$found_la" ;; 12031 *) . "./$found_la" ;; 12032 esac 12033 libdir="$save_libdir" 12034 for dep in $dependency_libs; do 12035 case "$dep" in 12036 -L*) 12037 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 12038 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 12039 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 12040 haveit= 12041 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 12042 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 12043 if test -n "$GCC"; then 12044 case $host_os in 12045 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 12046 esac 12047 fi 12048 fi 12049 if test -z "$haveit"; then 12050 haveit= 12051 for x in $LDFLAGS $LIBICONV; do 12052 12053 acl_save_prefix="$prefix" 12054 prefix="$acl_final_prefix" 12055 acl_save_exec_prefix="$exec_prefix" 12056 exec_prefix="$acl_final_exec_prefix" 12057 eval x=\"$x\" 12058 exec_prefix="$acl_save_exec_prefix" 12059 prefix="$acl_save_prefix" 12060 12061 if test "X$x" = "X-L$additional_libdir"; then 12062 haveit=yes 12063 break 12064 fi 12065 done 12066 if test -z "$haveit"; then 12067 if test -d "$additional_libdir"; then 12068 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 12069 fi 12070 fi 12071 haveit= 12072 for x in $LDFLAGS $LTLIBICONV; do 12073 12074 acl_save_prefix="$prefix" 12075 prefix="$acl_final_prefix" 12076 acl_save_exec_prefix="$exec_prefix" 12077 exec_prefix="$acl_final_exec_prefix" 12078 eval x=\"$x\" 12079 exec_prefix="$acl_save_exec_prefix" 12080 prefix="$acl_save_prefix" 12081 12082 if test "X$x" = "X-L$additional_libdir"; then 12083 haveit=yes 12084 break 12085 fi 12086 done 12087 if test -z "$haveit"; then 12088 if test -d "$additional_libdir"; then 12089 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 12090 fi 12091 fi 12092 fi 12093 fi 12094 ;; 12095 -R*) 12096 dir=`echo "X$dep" | sed -e 's/^X-R//'` 12097 if test "$enable_rpath" != no; then 12098 haveit= 12099 for x in $rpathdirs; do 12100 if test "X$x" = "X$dir"; then 12101 haveit=yes 12102 break 12103 fi 12104 done 12105 if test -z "$haveit"; then 12106 rpathdirs="$rpathdirs $dir" 12107 fi 12108 haveit= 12109 for x in $ltrpathdirs; do 12110 if test "X$x" = "X$dir"; then 12111 haveit=yes 12112 break 12113 fi 12114 done 12115 if test -z "$haveit"; then 12116 ltrpathdirs="$ltrpathdirs $dir" 12117 fi 12118 fi 12119 ;; 12120 -l*) 12121 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 12122 ;; 12123 *.la) 12124 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 12125 ;; 12126 *) 12127 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 12128 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 12129 ;; 12130 esac 12131 done 12132 fi 12133 else 12134 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 12135 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 12136 fi 12137 fi 12138 fi 12139 done 12140 done 12141 if test "X$rpathdirs" != "X"; then 12142 if test -n "$acl_hardcode_libdir_separator"; then 12143 alldirs= 12144 for found_dir in $rpathdirs; do 12145 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 12146 done 12147 acl_save_libdir="$libdir" 12148 libdir="$alldirs" 12149 eval flag=\"$acl_hardcode_libdir_flag_spec\" 12150 libdir="$acl_save_libdir" 12151 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 12152 else 12153 for found_dir in $rpathdirs; do 12154 acl_save_libdir="$libdir" 12155 libdir="$found_dir" 12156 eval flag=\"$acl_hardcode_libdir_flag_spec\" 12157 libdir="$acl_save_libdir" 12158 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 12159 done 12160 fi 12161 fi 12162 if test "X$ltrpathdirs" != "X"; then 12163 for found_dir in $ltrpathdirs; do 12164 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 12165 done 12166 fi 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 12199$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 12200if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then : 12201 $as_echo_n "(cached) " >&6 12202else 12203 gt_save_LIBS="$LIBS" 12204 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12206/* end confdefs.h. */ 12207#include <CoreFoundation/CFPreferences.h> 12208int 12209main () 12210{ 12211CFPreferencesCopyAppValue(NULL, NULL) 12212 ; 12213 return 0; 12214} 12215_ACEOF 12216if ac_fn_c_try_link "$LINENO"; then : 12217 gt_cv_func_CFPreferencesCopyAppValue=yes 12218else 12219 gt_cv_func_CFPreferencesCopyAppValue=no 12220fi 12221rm -f core conftest.err conftest.$ac_objext \ 12222 conftest$ac_exeext conftest.$ac_ext 12223 LIBS="$gt_save_LIBS" 12224fi 12225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 12226$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 12227 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 12228 12229$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 12230 12231 fi 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 12233$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 12234if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then : 12235 $as_echo_n "(cached) " >&6 12236else 12237 gt_save_LIBS="$LIBS" 12238 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12240/* end confdefs.h. */ 12241#include <CoreFoundation/CFLocale.h> 12242int 12243main () 12244{ 12245CFLocaleCopyCurrent(); 12246 ; 12247 return 0; 12248} 12249_ACEOF 12250if ac_fn_c_try_link "$LINENO"; then : 12251 gt_cv_func_CFLocaleCopyCurrent=yes 12252else 12253 gt_cv_func_CFLocaleCopyCurrent=no 12254fi 12255rm -f core conftest.err conftest.$ac_objext \ 12256 conftest$ac_exeext conftest.$ac_ext 12257 LIBS="$gt_save_LIBS" 12258fi 12259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 12260$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 12261 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 12262 12263$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 12264 12265 fi 12266 INTL_MACOSX_LIBS= 12267 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 12268 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 12269 fi 12270 12271 12272 12273 12274 12275 12276 LIBINTL= 12277 LTLIBINTL= 12278 POSUB= 12279 12280 case " $gt_needs " in 12281 *" need-formatstring-macros "*) gt_api_version=3 ;; 12282 *" need-ngettext "*) gt_api_version=2 ;; 12283 *) gt_api_version=1 ;; 12284 esac 12285 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 12286 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 12287 12288 if test "$USE_NLS" = "yes"; then 12289 gt_use_preinstalled_gnugettext=no 12290 12291 12292 if test $gt_api_version -ge 3; then 12293 gt_revision_test_code=' 12294#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 12295#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 12296#endif 12297typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 12298' 12299 else 12300 gt_revision_test_code= 12301 fi 12302 if test $gt_api_version -ge 2; then 12303 gt_expression_test_code=' + * ngettext ("", "", 0)' 12304 else 12305 gt_expression_test_code= 12306 fi 12307 12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 12309$as_echo_n "checking for GNU gettext in libc... " >&6; } 12310if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then : 12311 $as_echo_n "(cached) " >&6 12312else 12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12314/* end confdefs.h. */ 12315#include <libintl.h> 12316$gt_revision_test_code 12317extern int _nl_msg_cat_cntr; 12318extern int *_nl_domain_bindings; 12319int 12320main () 12321{ 12322bindtextdomain ("", ""); 12323return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 12324 ; 12325 return 0; 12326} 12327_ACEOF 12328if ac_fn_c_try_link "$LINENO"; then : 12329 eval "$gt_func_gnugettext_libc=yes" 12330else 12331 eval "$gt_func_gnugettext_libc=no" 12332fi 12333rm -f core conftest.err conftest.$ac_objext \ 12334 conftest$ac_exeext conftest.$ac_ext 12335fi 12336eval ac_res=\$$gt_func_gnugettext_libc 12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12338$as_echo "$ac_res" >&6; } 12339 12340 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 12341 12342 12343 12344 12345 12346 am_save_CPPFLAGS="$CPPFLAGS" 12347 12348 for element in $INCICONV; do 12349 haveit= 12350 for x in $CPPFLAGS; do 12351 12352 acl_save_prefix="$prefix" 12353 prefix="$acl_final_prefix" 12354 acl_save_exec_prefix="$exec_prefix" 12355 exec_prefix="$acl_final_exec_prefix" 12356 eval x=\"$x\" 12357 exec_prefix="$acl_save_exec_prefix" 12358 prefix="$acl_save_prefix" 12359 12360 if test "X$x" = "X$element"; then 12361 haveit=yes 12362 break 12363 fi 12364 done 12365 if test -z "$haveit"; then 12366 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 12367 fi 12368 done 12369 12370 12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 12372$as_echo_n "checking for iconv... " >&6; } 12373if test "${am_cv_func_iconv+set}" = set; then : 12374 $as_echo_n "(cached) " >&6 12375else 12376 12377 am_cv_func_iconv="no, consider installing GNU libiconv" 12378 am_cv_lib_iconv=no 12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12380/* end confdefs.h. */ 12381#include <stdlib.h> 12382#include <iconv.h> 12383int 12384main () 12385{ 12386iconv_t cd = iconv_open("",""); 12387 iconv(cd,NULL,NULL,NULL,NULL); 12388 iconv_close(cd); 12389 ; 12390 return 0; 12391} 12392_ACEOF 12393if ac_fn_c_try_link "$LINENO"; then : 12394 am_cv_func_iconv=yes 12395fi 12396rm -f core conftest.err conftest.$ac_objext \ 12397 conftest$ac_exeext conftest.$ac_ext 12398 if test "$am_cv_func_iconv" != yes; then 12399 am_save_LIBS="$LIBS" 12400 LIBS="$LIBS $LIBICONV" 12401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12402/* end confdefs.h. */ 12403#include <stdlib.h> 12404#include <iconv.h> 12405int 12406main () 12407{ 12408iconv_t cd = iconv_open("",""); 12409 iconv(cd,NULL,NULL,NULL,NULL); 12410 iconv_close(cd); 12411 ; 12412 return 0; 12413} 12414_ACEOF 12415if ac_fn_c_try_link "$LINENO"; then : 12416 am_cv_lib_iconv=yes 12417 am_cv_func_iconv=yes 12418fi 12419rm -f core conftest.err conftest.$ac_objext \ 12420 conftest$ac_exeext conftest.$ac_ext 12421 LIBS="$am_save_LIBS" 12422 fi 12423 12424fi 12425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 12426$as_echo "$am_cv_func_iconv" >&6; } 12427 if test "$am_cv_func_iconv" = yes; then 12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 12429$as_echo_n "checking for working iconv... " >&6; } 12430if test "${am_cv_func_iconv_works+set}" = set; then : 12431 $as_echo_n "(cached) " >&6 12432else 12433 12434 am_save_LIBS="$LIBS" 12435 if test $am_cv_lib_iconv = yes; then 12436 LIBS="$LIBS $LIBICONV" 12437 fi 12438 if test "$cross_compiling" = yes; then : 12439 case "$host_os" in 12440 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 12441 *) am_cv_func_iconv_works="guessing yes" ;; 12442 esac 12443else 12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12445/* end confdefs.h. */ 12446 12447#include <iconv.h> 12448#include <string.h> 12449int main () 12450{ 12451 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 12452 returns. */ 12453 { 12454 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 12455 if (cd_utf8_to_88591 != (iconv_t)(-1)) 12456 { 12457 static const char input[] = "\342\202\254"; /* EURO SIGN */ 12458 char buf[10]; 12459 const char *inptr = input; 12460 size_t inbytesleft = strlen (input); 12461 char *outptr = buf; 12462 size_t outbytesleft = sizeof (buf); 12463 size_t res = iconv (cd_utf8_to_88591, 12464 (char **) &inptr, &inbytesleft, 12465 &outptr, &outbytesleft); 12466 if (res == 0) 12467 return 1; 12468 } 12469 } 12470 /* Test against Solaris 10 bug: Failures are not distinguishable from 12471 successful returns. */ 12472 { 12473 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 12474 if (cd_ascii_to_88591 != (iconv_t)(-1)) 12475 { 12476 static const char input[] = "\263"; 12477 char buf[10]; 12478 const char *inptr = input; 12479 size_t inbytesleft = strlen (input); 12480 char *outptr = buf; 12481 size_t outbytesleft = sizeof (buf); 12482 size_t res = iconv (cd_ascii_to_88591, 12483 (char **) &inptr, &inbytesleft, 12484 &outptr, &outbytesleft); 12485 if (res == 0) 12486 return 1; 12487 } 12488 } 12489#if 0 /* This bug could be worked around by the caller. */ 12490 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 12491 { 12492 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 12493 if (cd_88591_to_utf8 != (iconv_t)(-1)) 12494 { 12495 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 12496 char buf[50]; 12497 const char *inptr = input; 12498 size_t inbytesleft = strlen (input); 12499 char *outptr = buf; 12500 size_t outbytesleft = sizeof (buf); 12501 size_t res = iconv (cd_88591_to_utf8, 12502 (char **) &inptr, &inbytesleft, 12503 &outptr, &outbytesleft); 12504 if ((int)res > 0) 12505 return 1; 12506 } 12507 } 12508#endif 12509 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 12510 provided. */ 12511 if (/* Try standardized names. */ 12512 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 12513 /* Try IRIX, OSF/1 names. */ 12514 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 12515 /* Try AIX names. */ 12516 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 12517 /* Try HP-UX names. */ 12518 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 12519 return 1; 12520 return 0; 12521} 12522_ACEOF 12523if ac_fn_c_try_run "$LINENO"; then : 12524 am_cv_func_iconv_works=yes 12525else 12526 am_cv_func_iconv_works=no 12527fi 12528rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12529 conftest.$ac_objext conftest.beam conftest.$ac_ext 12530fi 12531 12532 LIBS="$am_save_LIBS" 12533 12534fi 12535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 12536$as_echo "$am_cv_func_iconv_works" >&6; } 12537 case "$am_cv_func_iconv_works" in 12538 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 12539 *) am_func_iconv=yes ;; 12540 esac 12541 else 12542 am_func_iconv=no am_cv_lib_iconv=no 12543 fi 12544 if test "$am_func_iconv" = yes; then 12545 12546$as_echo "#define HAVE_ICONV 1" >>confdefs.h 12547 12548 fi 12549 if test "$am_cv_lib_iconv" = yes; then 12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 12551$as_echo_n "checking how to link with libiconv... " >&6; } 12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 12553$as_echo "$LIBICONV" >&6; } 12554 else 12555 CPPFLAGS="$am_save_CPPFLAGS" 12556 LIBICONV= 12557 LTLIBICONV= 12558 fi 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 use_additional=yes 12571 12572 acl_save_prefix="$prefix" 12573 prefix="$acl_final_prefix" 12574 acl_save_exec_prefix="$exec_prefix" 12575 exec_prefix="$acl_final_exec_prefix" 12576 12577 eval additional_includedir=\"$includedir\" 12578 eval additional_libdir=\"$libdir\" 12579 12580 exec_prefix="$acl_save_exec_prefix" 12581 prefix="$acl_save_prefix" 12582 12583 12584# Check whether --with-libintl-prefix was given. 12585if test "${with_libintl_prefix+set}" = set; then : 12586 withval=$with_libintl_prefix; 12587 if test "X$withval" = "Xno"; then 12588 use_additional=no 12589 else 12590 if test "X$withval" = "X"; then 12591 12592 acl_save_prefix="$prefix" 12593 prefix="$acl_final_prefix" 12594 acl_save_exec_prefix="$exec_prefix" 12595 exec_prefix="$acl_final_exec_prefix" 12596 12597 eval additional_includedir=\"$includedir\" 12598 eval additional_libdir=\"$libdir\" 12599 12600 exec_prefix="$acl_save_exec_prefix" 12601 prefix="$acl_save_prefix" 12602 12603 else 12604 additional_includedir="$withval/include" 12605 additional_libdir="$withval/$acl_libdirstem" 12606 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 12607 && ! test -d "$withval/$acl_libdirstem"; then 12608 additional_libdir="$withval/$acl_libdirstem2" 12609 fi 12610 fi 12611 fi 12612 12613fi 12614 12615 LIBINTL= 12616 LTLIBINTL= 12617 INCINTL= 12618 LIBINTL_PREFIX= 12619 HAVE_LIBINTL= 12620 rpathdirs= 12621 ltrpathdirs= 12622 names_already_handled= 12623 names_next_round='intl ' 12624 while test -n "$names_next_round"; do 12625 names_this_round="$names_next_round" 12626 names_next_round= 12627 for name in $names_this_round; do 12628 already_handled= 12629 for n in $names_already_handled; do 12630 if test "$n" = "$name"; then 12631 already_handled=yes 12632 break 12633 fi 12634 done 12635 if test -z "$already_handled"; then 12636 names_already_handled="$names_already_handled $name" 12637 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 12638 eval value=\"\$HAVE_LIB$uppername\" 12639 if test -n "$value"; then 12640 if test "$value" = yes; then 12641 eval value=\"\$LIB$uppername\" 12642 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 12643 eval value=\"\$LTLIB$uppername\" 12644 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 12645 else 12646 : 12647 fi 12648 else 12649 found_dir= 12650 found_la= 12651 found_so= 12652 found_a= 12653 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 12654 if test -n "$acl_shlibext"; then 12655 shrext=".$acl_shlibext" # typically: shrext=.so 12656 else 12657 shrext= 12658 fi 12659 if test $use_additional = yes; then 12660 dir="$additional_libdir" 12661 if test -n "$acl_shlibext"; then 12662 if test -f "$dir/$libname$shrext"; then 12663 found_dir="$dir" 12664 found_so="$dir/$libname$shrext" 12665 else 12666 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 12667 ver=`(cd "$dir" && \ 12668 for f in "$libname$shrext".*; do echo "$f"; done \ 12669 | sed -e "s,^$libname$shrext\\\\.,," \ 12670 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 12671 | sed 1q ) 2>/dev/null` 12672 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 12673 found_dir="$dir" 12674 found_so="$dir/$libname$shrext.$ver" 12675 fi 12676 else 12677 eval library_names=\"$acl_library_names_spec\" 12678 for f in $library_names; do 12679 if test -f "$dir/$f"; then 12680 found_dir="$dir" 12681 found_so="$dir/$f" 12682 break 12683 fi 12684 done 12685 fi 12686 fi 12687 fi 12688 if test "X$found_dir" = "X"; then 12689 if test -f "$dir/$libname.$acl_libext"; then 12690 found_dir="$dir" 12691 found_a="$dir/$libname.$acl_libext" 12692 fi 12693 fi 12694 if test "X$found_dir" != "X"; then 12695 if test -f "$dir/$libname.la"; then 12696 found_la="$dir/$libname.la" 12697 fi 12698 fi 12699 fi 12700 if test "X$found_dir" = "X"; then 12701 for x in $LDFLAGS $LTLIBINTL; do 12702 12703 acl_save_prefix="$prefix" 12704 prefix="$acl_final_prefix" 12705 acl_save_exec_prefix="$exec_prefix" 12706 exec_prefix="$acl_final_exec_prefix" 12707 eval x=\"$x\" 12708 exec_prefix="$acl_save_exec_prefix" 12709 prefix="$acl_save_prefix" 12710 12711 case "$x" in 12712 -L*) 12713 dir=`echo "X$x" | sed -e 's/^X-L//'` 12714 if test -n "$acl_shlibext"; then 12715 if test -f "$dir/$libname$shrext"; then 12716 found_dir="$dir" 12717 found_so="$dir/$libname$shrext" 12718 else 12719 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 12720 ver=`(cd "$dir" && \ 12721 for f in "$libname$shrext".*; do echo "$f"; done \ 12722 | sed -e "s,^$libname$shrext\\\\.,," \ 12723 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 12724 | sed 1q ) 2>/dev/null` 12725 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 12726 found_dir="$dir" 12727 found_so="$dir/$libname$shrext.$ver" 12728 fi 12729 else 12730 eval library_names=\"$acl_library_names_spec\" 12731 for f in $library_names; do 12732 if test -f "$dir/$f"; then 12733 found_dir="$dir" 12734 found_so="$dir/$f" 12735 break 12736 fi 12737 done 12738 fi 12739 fi 12740 fi 12741 if test "X$found_dir" = "X"; then 12742 if test -f "$dir/$libname.$acl_libext"; then 12743 found_dir="$dir" 12744 found_a="$dir/$libname.$acl_libext" 12745 fi 12746 fi 12747 if test "X$found_dir" != "X"; then 12748 if test -f "$dir/$libname.la"; then 12749 found_la="$dir/$libname.la" 12750 fi 12751 fi 12752 ;; 12753 esac 12754 if test "X$found_dir" != "X"; then 12755 break 12756 fi 12757 done 12758 fi 12759 if test "X$found_dir" != "X"; then 12760 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 12761 if test "X$found_so" != "X"; then 12762 if test "$enable_rpath" = no \ 12763 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 12764 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 12765 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12766 else 12767 haveit= 12768 for x in $ltrpathdirs; do 12769 if test "X$x" = "X$found_dir"; then 12770 haveit=yes 12771 break 12772 fi 12773 done 12774 if test -z "$haveit"; then 12775 ltrpathdirs="$ltrpathdirs $found_dir" 12776 fi 12777 if test "$acl_hardcode_direct" = yes; then 12778 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12779 else 12780 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 12781 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12782 haveit= 12783 for x in $rpathdirs; do 12784 if test "X$x" = "X$found_dir"; then 12785 haveit=yes 12786 break 12787 fi 12788 done 12789 if test -z "$haveit"; then 12790 rpathdirs="$rpathdirs $found_dir" 12791 fi 12792 else 12793 haveit= 12794 for x in $LDFLAGS $LIBINTL; do 12795 12796 acl_save_prefix="$prefix" 12797 prefix="$acl_final_prefix" 12798 acl_save_exec_prefix="$exec_prefix" 12799 exec_prefix="$acl_final_exec_prefix" 12800 eval x=\"$x\" 12801 exec_prefix="$acl_save_exec_prefix" 12802 prefix="$acl_save_prefix" 12803 12804 if test "X$x" = "X-L$found_dir"; then 12805 haveit=yes 12806 break 12807 fi 12808 done 12809 if test -z "$haveit"; then 12810 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 12811 fi 12812 if test "$acl_hardcode_minus_L" != no; then 12813 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12814 else 12815 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 12816 fi 12817 fi 12818 fi 12819 fi 12820 else 12821 if test "X$found_a" != "X"; then 12822 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 12823 else 12824 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 12825 fi 12826 fi 12827 additional_includedir= 12828 case "$found_dir" in 12829 */$acl_libdirstem | */$acl_libdirstem/) 12830 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 12831 if test "$name" = 'intl'; then 12832 LIBINTL_PREFIX="$basedir" 12833 fi 12834 additional_includedir="$basedir/include" 12835 ;; 12836 */$acl_libdirstem2 | */$acl_libdirstem2/) 12837 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 12838 if test "$name" = 'intl'; then 12839 LIBINTL_PREFIX="$basedir" 12840 fi 12841 additional_includedir="$basedir/include" 12842 ;; 12843 esac 12844 if test "X$additional_includedir" != "X"; then 12845 if test "X$additional_includedir" != "X/usr/include"; then 12846 haveit= 12847 if test "X$additional_includedir" = "X/usr/local/include"; then 12848 if test -n "$GCC"; then 12849 case $host_os in 12850 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 12851 esac 12852 fi 12853 fi 12854 if test -z "$haveit"; then 12855 for x in $CPPFLAGS $INCINTL; do 12856 12857 acl_save_prefix="$prefix" 12858 prefix="$acl_final_prefix" 12859 acl_save_exec_prefix="$exec_prefix" 12860 exec_prefix="$acl_final_exec_prefix" 12861 eval x=\"$x\" 12862 exec_prefix="$acl_save_exec_prefix" 12863 prefix="$acl_save_prefix" 12864 12865 if test "X$x" = "X-I$additional_includedir"; then 12866 haveit=yes 12867 break 12868 fi 12869 done 12870 if test -z "$haveit"; then 12871 if test -d "$additional_includedir"; then 12872 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 12873 fi 12874 fi 12875 fi 12876 fi 12877 fi 12878 if test -n "$found_la"; then 12879 save_libdir="$libdir" 12880 case "$found_la" in 12881 */* | *\\*) . "$found_la" ;; 12882 *) . "./$found_la" ;; 12883 esac 12884 libdir="$save_libdir" 12885 for dep in $dependency_libs; do 12886 case "$dep" in 12887 -L*) 12888 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 12889 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 12890 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 12891 haveit= 12892 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 12893 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 12894 if test -n "$GCC"; then 12895 case $host_os in 12896 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 12897 esac 12898 fi 12899 fi 12900 if test -z "$haveit"; then 12901 haveit= 12902 for x in $LDFLAGS $LIBINTL; do 12903 12904 acl_save_prefix="$prefix" 12905 prefix="$acl_final_prefix" 12906 acl_save_exec_prefix="$exec_prefix" 12907 exec_prefix="$acl_final_exec_prefix" 12908 eval x=\"$x\" 12909 exec_prefix="$acl_save_exec_prefix" 12910 prefix="$acl_save_prefix" 12911 12912 if test "X$x" = "X-L$additional_libdir"; then 12913 haveit=yes 12914 break 12915 fi 12916 done 12917 if test -z "$haveit"; then 12918 if test -d "$additional_libdir"; then 12919 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 12920 fi 12921 fi 12922 haveit= 12923 for x in $LDFLAGS $LTLIBINTL; do 12924 12925 acl_save_prefix="$prefix" 12926 prefix="$acl_final_prefix" 12927 acl_save_exec_prefix="$exec_prefix" 12928 exec_prefix="$acl_final_exec_prefix" 12929 eval x=\"$x\" 12930 exec_prefix="$acl_save_exec_prefix" 12931 prefix="$acl_save_prefix" 12932 12933 if test "X$x" = "X-L$additional_libdir"; then 12934 haveit=yes 12935 break 12936 fi 12937 done 12938 if test -z "$haveit"; then 12939 if test -d "$additional_libdir"; then 12940 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 12941 fi 12942 fi 12943 fi 12944 fi 12945 ;; 12946 -R*) 12947 dir=`echo "X$dep" | sed -e 's/^X-R//'` 12948 if test "$enable_rpath" != no; then 12949 haveit= 12950 for x in $rpathdirs; do 12951 if test "X$x" = "X$dir"; then 12952 haveit=yes 12953 break 12954 fi 12955 done 12956 if test -z "$haveit"; then 12957 rpathdirs="$rpathdirs $dir" 12958 fi 12959 haveit= 12960 for x in $ltrpathdirs; do 12961 if test "X$x" = "X$dir"; then 12962 haveit=yes 12963 break 12964 fi 12965 done 12966 if test -z "$haveit"; then 12967 ltrpathdirs="$ltrpathdirs $dir" 12968 fi 12969 fi 12970 ;; 12971 -l*) 12972 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 12973 ;; 12974 *.la) 12975 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 12976 ;; 12977 *) 12978 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 12979 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 12980 ;; 12981 esac 12982 done 12983 fi 12984 else 12985 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 12986 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 12987 fi 12988 fi 12989 fi 12990 done 12991 done 12992 if test "X$rpathdirs" != "X"; then 12993 if test -n "$acl_hardcode_libdir_separator"; then 12994 alldirs= 12995 for found_dir in $rpathdirs; do 12996 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 12997 done 12998 acl_save_libdir="$libdir" 12999 libdir="$alldirs" 13000 eval flag=\"$acl_hardcode_libdir_flag_spec\" 13001 libdir="$acl_save_libdir" 13002 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 13003 else 13004 for found_dir in $rpathdirs; do 13005 acl_save_libdir="$libdir" 13006 libdir="$found_dir" 13007 eval flag=\"$acl_hardcode_libdir_flag_spec\" 13008 libdir="$acl_save_libdir" 13009 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 13010 done 13011 fi 13012 fi 13013 if test "X$ltrpathdirs" != "X"; then 13014 for found_dir in $ltrpathdirs; do 13015 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 13016 done 13017 fi 13018 13019 13020 13021 13022 13023 13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 13025$as_echo_n "checking for GNU gettext in libintl... " >&6; } 13026if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then : 13027 $as_echo_n "(cached) " >&6 13028else 13029 gt_save_CPPFLAGS="$CPPFLAGS" 13030 CPPFLAGS="$CPPFLAGS $INCINTL" 13031 gt_save_LIBS="$LIBS" 13032 LIBS="$LIBS $LIBINTL" 13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13034/* end confdefs.h. */ 13035#include <libintl.h> 13036$gt_revision_test_code 13037extern int _nl_msg_cat_cntr; 13038extern 13039#ifdef __cplusplus 13040"C" 13041#endif 13042const char *_nl_expand_alias (const char *); 13043int 13044main () 13045{ 13046bindtextdomain ("", ""); 13047return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 13048 ; 13049 return 0; 13050} 13051_ACEOF 13052if ac_fn_c_try_link "$LINENO"; then : 13053 eval "$gt_func_gnugettext_libintl=yes" 13054else 13055 eval "$gt_func_gnugettext_libintl=no" 13056fi 13057rm -f core conftest.err conftest.$ac_objext \ 13058 conftest$ac_exeext conftest.$ac_ext 13059 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 13060 LIBS="$LIBS $LIBICONV" 13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13062/* end confdefs.h. */ 13063#include <libintl.h> 13064$gt_revision_test_code 13065extern int _nl_msg_cat_cntr; 13066extern 13067#ifdef __cplusplus 13068"C" 13069#endif 13070const char *_nl_expand_alias (const char *); 13071int 13072main () 13073{ 13074bindtextdomain ("", ""); 13075return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 13076 ; 13077 return 0; 13078} 13079_ACEOF 13080if ac_fn_c_try_link "$LINENO"; then : 13081 LIBINTL="$LIBINTL $LIBICONV" 13082 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 13083 eval "$gt_func_gnugettext_libintl=yes" 13084 13085fi 13086rm -f core conftest.err conftest.$ac_objext \ 13087 conftest$ac_exeext conftest.$ac_ext 13088 fi 13089 CPPFLAGS="$gt_save_CPPFLAGS" 13090 LIBS="$gt_save_LIBS" 13091fi 13092eval ac_res=\$$gt_func_gnugettext_libintl 13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13094$as_echo "$ac_res" >&6; } 13095 fi 13096 13097 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 13098 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 13099 && test "$PACKAGE" != gettext-runtime \ 13100 && test "$PACKAGE" != gettext-tools; }; then 13101 gt_use_preinstalled_gnugettext=yes 13102 else 13103 LIBINTL= 13104 LTLIBINTL= 13105 INCINTL= 13106 fi 13107 13108 13109 13110 if test -n "$INTL_MACOSX_LIBS"; then 13111 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13112 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13113 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 13114 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 13115 fi 13116 fi 13117 13118 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13119 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13120 13121$as_echo "#define ENABLE_NLS 1" >>confdefs.h 13122 13123 else 13124 USE_NLS=no 13125 fi 13126 fi 13127 13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 13129$as_echo_n "checking whether to use NLS... " >&6; } 13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 13131$as_echo "$USE_NLS" >&6; } 13132 if test "$USE_NLS" = "yes"; then 13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 13134$as_echo_n "checking where the gettext function comes from... " >&6; } 13135 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13136 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 13137 gt_source="external libintl" 13138 else 13139 gt_source="libc" 13140 fi 13141 else 13142 gt_source="included intl directory" 13143 fi 13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 13145$as_echo "$gt_source" >&6; } 13146 fi 13147 13148 if test "$USE_NLS" = "yes"; then 13149 13150 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13151 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 13153$as_echo_n "checking how to link with libintl... " >&6; } 13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 13155$as_echo "$LIBINTL" >&6; } 13156 13157 for element in $INCINTL; do 13158 haveit= 13159 for x in $CPPFLAGS; do 13160 13161 acl_save_prefix="$prefix" 13162 prefix="$acl_final_prefix" 13163 acl_save_exec_prefix="$exec_prefix" 13164 exec_prefix="$acl_final_exec_prefix" 13165 eval x=\"$x\" 13166 exec_prefix="$acl_save_exec_prefix" 13167 prefix="$acl_save_prefix" 13168 13169 if test "X$x" = "X$element"; then 13170 haveit=yes 13171 break 13172 fi 13173 done 13174 if test -z "$haveit"; then 13175 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 13176 fi 13177 done 13178 13179 fi 13180 13181 13182$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 13183 13184 13185$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 13186 13187 fi 13188 13189 POSUB=po 13190 fi 13191 13192 13193 13194 INTLLIBS="$LIBINTL" 13195 13196 13197 13198 13199 13200 13201 13202if test "x${datarootdir}" = 'x${prefix}/share'; then 13203 if test "x${prefix}" = "xNONE"; then 13204 13205cat >>confdefs.h <<_ACEOF 13206#define PACKAGE_DATA_DIR "${ac_default_prefix}/share/${PACKAGE}" 13207_ACEOF 13208 13209 else 13210 13211cat >>confdefs.h <<_ACEOF 13212#define PACKAGE_DATA_DIR "${prefix}/share/${PACKAGE}" 13213_ACEOF 13214 13215 fi 13216else 13217 13218cat >>confdefs.h <<_ACEOF 13219#define PACKAGE_DATA_DIR "${datarootdir}/${PACKAGE}" 13220_ACEOF 13221 13222fi 13223 13224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale in -lxpg4" >&5 13225$as_echo_n "checking for setlocale in -lxpg4... " >&6; } 13226if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then : 13227 $as_echo_n "(cached) " >&6 13228else 13229 ac_check_lib_save_LIBS=$LIBS 13230LIBS="-lxpg4 $LIBS" 13231cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13232/* end confdefs.h. */ 13233 13234/* Override any GCC internal prototype to avoid an error. 13235 Use char because int might match the return type of a GCC 13236 builtin and then its argument prototype would still apply. */ 13237#ifdef __cplusplus 13238extern "C" 13239#endif 13240char setlocale (); 13241int 13242main () 13243{ 13244return setlocale (); 13245 ; 13246 return 0; 13247} 13248_ACEOF 13249if ac_fn_c_try_link "$LINENO"; then : 13250 ac_cv_lib_xpg4_setlocale=yes 13251else 13252 ac_cv_lib_xpg4_setlocale=no 13253fi 13254rm -f core conftest.err conftest.$ac_objext \ 13255 conftest$ac_exeext conftest.$ac_ext 13256LIBS=$ac_check_lib_save_LIBS 13257fi 13258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4_setlocale" >&5 13259$as_echo "$ac_cv_lib_xpg4_setlocale" >&6; } 13260if test "x$ac_cv_lib_xpg4_setlocale" = x""yes; then : 13261 cat >>confdefs.h <<_ACEOF 13262#define HAVE_LIBXPG4 1 13263_ACEOF 13264 13265 LIBS="-lxpg4 $LIBS" 13266 13267fi 13268 13269 13270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ID3Tag_Link in -lid3" >&5 13271$as_echo_n "checking for ID3Tag_Link in -lid3... " >&6; } 13272if test "${ac_cv_lib_id3_ID3Tag_Link+set}" = set; then : 13273 $as_echo_n "(cached) " >&6 13274else 13275 ac_check_lib_save_LIBS=$LIBS 13276LIBS="-lid3 $LIBS" 13277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13278/* end confdefs.h. */ 13279 13280/* Override any GCC internal prototype to avoid an error. 13281 Use char because int might match the return type of a GCC 13282 builtin and then its argument prototype would still apply. */ 13283#ifdef __cplusplus 13284extern "C" 13285#endif 13286char ID3Tag_Link (); 13287int 13288main () 13289{ 13290return ID3Tag_Link (); 13291 ; 13292 return 0; 13293} 13294_ACEOF 13295if ac_fn_c_try_link "$LINENO"; then : 13296 ac_cv_lib_id3_ID3Tag_Link=yes 13297else 13298 ac_cv_lib_id3_ID3Tag_Link=no 13299fi 13300rm -f core conftest.err conftest.$ac_objext \ 13301 conftest$ac_exeext conftest.$ac_ext 13302LIBS=$ac_check_lib_save_LIBS 13303fi 13304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_id3_ID3Tag_Link" >&5 13305$as_echo "$ac_cv_lib_id3_ID3Tag_Link" >&6; } 13306if test "x$ac_cv_lib_id3_ID3Tag_Link" = x""yes; then : 13307 cat >>confdefs.h <<_ACEOF 13308#define HAVE_LIBID3 1 13309_ACEOF 13310 13311 LIBS="-lid3 $LIBS" 13312 13313else 13314 ID3_LIBS="" ac_have_id3="no" 13315fi 13316 13317if test x"$ac_have_id3" = xno; then 13318 as_fn_error $? "libid3 not found" "$LINENO" 5 13319fi 13320 13321 13322 13323 13324 13325 13326 13327if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13328 if test -n "$ac_tool_prefix"; then 13329 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13330set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13332$as_echo_n "checking for $ac_word... " >&6; } 13333if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 13334 $as_echo_n "(cached) " >&6 13335else 13336 case $PKG_CONFIG in 13337 [\\/]* | ?:[\\/]*) 13338 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13339 ;; 13340 *) 13341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13342for as_dir in $PATH 13343do 13344 IFS=$as_save_IFS 13345 test -z "$as_dir" && as_dir=. 13346 for ac_exec_ext in '' $ac_executable_extensions; do 13347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13348 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13350 break 2 13351 fi 13352done 13353 done 13354IFS=$as_save_IFS 13355 13356 ;; 13357esac 13358fi 13359PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13360if test -n "$PKG_CONFIG"; then 13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13362$as_echo "$PKG_CONFIG" >&6; } 13363else 13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13365$as_echo "no" >&6; } 13366fi 13367 13368 13369fi 13370if test -z "$ac_cv_path_PKG_CONFIG"; then 13371 ac_pt_PKG_CONFIG=$PKG_CONFIG 13372 # Extract the first word of "pkg-config", so it can be a program name with args. 13373set dummy pkg-config; ac_word=$2 13374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13375$as_echo_n "checking for $ac_word... " >&6; } 13376if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 13377 $as_echo_n "(cached) " >&6 13378else 13379 case $ac_pt_PKG_CONFIG in 13380 [\\/]* | ?:[\\/]*) 13381 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13382 ;; 13383 *) 13384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13385for as_dir in $PATH 13386do 13387 IFS=$as_save_IFS 13388 test -z "$as_dir" && as_dir=. 13389 for ac_exec_ext in '' $ac_executable_extensions; do 13390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13391 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13393 break 2 13394 fi 13395done 13396 done 13397IFS=$as_save_IFS 13398 13399 ;; 13400esac 13401fi 13402ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13403if test -n "$ac_pt_PKG_CONFIG"; then 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13405$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13406else 13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13408$as_echo "no" >&6; } 13409fi 13410 13411 if test "x$ac_pt_PKG_CONFIG" = x; then 13412 PKG_CONFIG="" 13413 else 13414 case $cross_compiling:$ac_tool_warned in 13415yes:) 13416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13418ac_tool_warned=yes ;; 13419esac 13420 PKG_CONFIG=$ac_pt_PKG_CONFIG 13421 fi 13422else 13423 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13424fi 13425 13426fi 13427if test -n "$PKG_CONFIG"; then 13428 _pkg_min_version=0.9.0 13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13430$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13431 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13433$as_echo "yes" >&6; } 13434 else 13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13436$as_echo "no" >&6; } 13437 PKG_CONFIG="" 13438 fi 13439fi 13440 13441pkg_failed=no 13442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 13443$as_echo_n "checking for GLIB... " >&6; } 13444 13445if test -n "$GLIB_CFLAGS"; then 13446 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 13447 elif test -n "$PKG_CONFIG"; then 13448 if test -n "$PKG_CONFIG" && \ 13449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6\""; } >&5 13450 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6") 2>&5 13451 ac_status=$? 13452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13453 test $ac_status = 0; }; then 13454 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6" 2>/dev/null` 13455else 13456 pkg_failed=yes 13457fi 13458 else 13459 pkg_failed=untried 13460fi 13461if test -n "$GLIB_LIBS"; then 13462 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 13463 elif test -n "$PKG_CONFIG"; then 13464 if test -n "$PKG_CONFIG" && \ 13465 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6\""; } >&5 13466 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6") 2>&5 13467 ac_status=$? 13468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13469 test $ac_status = 0; }; then 13470 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6" 2>/dev/null` 13471else 13472 pkg_failed=yes 13473fi 13474 else 13475 pkg_failed=untried 13476fi 13477 13478 13479 13480if test $pkg_failed = yes; then 13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13482$as_echo "no" >&6; } 13483 13484if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13485 _pkg_short_errors_supported=yes 13486else 13487 _pkg_short_errors_supported=no 13488fi 13489 if test $_pkg_short_errors_supported = yes; then 13490 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6" 2>&1` 13491 else 13492 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6" 2>&1` 13493 fi 13494 # Put the nasty error message in config.log where it belongs 13495 echo "$GLIB_PKG_ERRORS" >&5 13496 13497 as_fn_error $? "Package requirements (glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6) were not met: 13498 13499$GLIB_PKG_ERRORS 13500 13501Consider adjusting the PKG_CONFIG_PATH environment variable if you 13502installed software in a non-standard prefix. 13503 13504Alternatively, you may set the environment variables GLIB_CFLAGS 13505and GLIB_LIBS to avoid the need to call pkg-config. 13506See the pkg-config man page for more details." "$LINENO" 5 13507elif test $pkg_failed = untried; then 13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13509$as_echo "no" >&6; } 13510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13512as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13513is in your PATH or set the PKG_CONFIG environment variable to the full 13514path to pkg-config. 13515 13516Alternatively, you may set the environment variables GLIB_CFLAGS 13517and GLIB_LIBS to avoid the need to call pkg-config. 13518See the pkg-config man page for more details. 13519 13520To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13521See \`config.log' for more details" "$LINENO" 5 ; } 13522else 13523 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 13524 GLIB_LIBS=$pkg_cv_GLIB_LIBS 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13526$as_echo "yes" >&6; } 13527 13528fi 13529 13530rx_save_LIBS=$LIBS 13531LIBS="$LIBS $GTK_LIBS" 13532for ac_func in bind_textdomain_codeset 13533do : 13534 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 13535if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then : 13536 cat >>confdefs.h <<_ACEOF 13537#define HAVE_BIND_TEXTDOMAIN_CODESET 1 13538_ACEOF 13539 13540fi 13541done 13542 13543LIBS=$rx_save_LIBS 13544 13545 13546pkg_failed=no 13547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 13548$as_echo_n "checking for GTK... " >&6; } 13549 13550if test -n "$GTK_CFLAGS"; then 13551 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" 13552 elif test -n "$PKG_CONFIG"; then 13553 if test -n "$PKG_CONFIG" && \ 13554 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.6\""; } >&5 13555 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.6") 2>&5 13556 ac_status=$? 13557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13558 test $ac_status = 0; }; then 13559 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.6" 2>/dev/null` 13560else 13561 pkg_failed=yes 13562fi 13563 else 13564 pkg_failed=untried 13565fi 13566if test -n "$GTK_LIBS"; then 13567 pkg_cv_GTK_LIBS="$GTK_LIBS" 13568 elif test -n "$PKG_CONFIG"; then 13569 if test -n "$PKG_CONFIG" && \ 13570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.6\""; } >&5 13571 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.6") 2>&5 13572 ac_status=$? 13573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13574 test $ac_status = 0; }; then 13575 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.6" 2>/dev/null` 13576else 13577 pkg_failed=yes 13578fi 13579 else 13580 pkg_failed=untried 13581fi 13582 13583 13584 13585if test $pkg_failed = yes; then 13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13587$as_echo "no" >&6; } 13588 13589if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13590 _pkg_short_errors_supported=yes 13591else 13592 _pkg_short_errors_supported=no 13593fi 13594 if test $_pkg_short_errors_supported = yes; then 13595 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.6" 2>&1` 13596 else 13597 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.6" 2>&1` 13598 fi 13599 # Put the nasty error message in config.log where it belongs 13600 echo "$GTK_PKG_ERRORS" >&5 13601 13602 as_fn_error $? "Package requirements (gtk+-2.0 >= 2.6) were not met: 13603 13604$GTK_PKG_ERRORS 13605 13606Consider adjusting the PKG_CONFIG_PATH environment variable if you 13607installed software in a non-standard prefix. 13608 13609Alternatively, you may set the environment variables GTK_CFLAGS 13610and GTK_LIBS to avoid the need to call pkg-config. 13611See the pkg-config man page for more details." "$LINENO" 5 13612elif test $pkg_failed = untried; then 13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13614$as_echo "no" >&6; } 13615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13617as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13618is in your PATH or set the PKG_CONFIG environment variable to the full 13619path to pkg-config. 13620 13621Alternatively, you may set the environment variables GTK_CFLAGS 13622and GTK_LIBS to avoid the need to call pkg-config. 13623See the pkg-config man page for more details. 13624 13625To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13626See \`config.log' for more details" "$LINENO" 5 ; } 13627else 13628 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS 13629 GTK_LIBS=$pkg_cv_GTK_LIBS 13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13631$as_echo "yes" >&6; } 13632 13633fi 13634 13635# Check whether --enable-deprecated was given. 13636if test "${enable_deprecated+set}" = set; then : 13637 enableval=$enable_deprecated; GTK_CFLAGS="$GTK_CFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" 13638fi 13639 13640 13641 13642 13643 13644ac_config_files="$ac_config_files Makefile po/Makefile.in src/version.h src/Makefile config/Makefile plugins/Makefile ripperX.pc" 13645 13646cat >confcache <<\_ACEOF 13647# This file is a shell script that caches the results of configure 13648# tests run on this system so they can be shared between configure 13649# scripts and configure runs, see configure's option --config-cache. 13650# It is not useful on other systems. If it contains results you don't 13651# want to keep, you may remove or edit it. 13652# 13653# config.status only pays attention to the cache file if you give it 13654# the --recheck option to rerun configure. 13655# 13656# `ac_cv_env_foo' variables (set or unset) will be overridden when 13657# loading this file, other *unset* `ac_cv_foo' will be assigned the 13658# following values. 13659 13660_ACEOF 13661 13662# The following way of writing the cache mishandles newlines in values, 13663# but we know of no workaround that is simple, portable, and efficient. 13664# So, we kill variables containing newlines. 13665# Ultrix sh set writes to stderr and can't be redirected directly, 13666# and sets the high bit in the cache file unless we assign to the vars. 13667( 13668 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13669 eval ac_val=\$$ac_var 13670 case $ac_val in #( 13671 *${as_nl}*) 13672 case $ac_var in #( 13673 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13674$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13675 esac 13676 case $ac_var in #( 13677 _ | IFS | as_nl) ;; #( 13678 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13679 *) { eval $ac_var=; unset $ac_var;} ;; 13680 esac ;; 13681 esac 13682 done 13683 13684 (set) 2>&1 | 13685 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13686 *${as_nl}ac_space=\ *) 13687 # `set' does not quote correctly, so add quotes: double-quote 13688 # substitution turns \\\\ into \\, and sed turns \\ into \. 13689 sed -n \ 13690 "s/'/'\\\\''/g; 13691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13692 ;; #( 13693 *) 13694 # `set' quotes correctly as required by POSIX, so do not add quotes. 13695 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13696 ;; 13697 esac | 13698 sort 13699) | 13700 sed ' 13701 /^ac_cv_env_/b end 13702 t clear 13703 :clear 13704 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13705 t end 13706 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13707 :end' >>confcache 13708if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13709 if test -w "$cache_file"; then 13710 test "x$cache_file" != "x/dev/null" && 13711 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13712$as_echo "$as_me: updating cache $cache_file" >&6;} 13713 cat confcache >$cache_file 13714 else 13715 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13716$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13717 fi 13718fi 13719rm -f confcache 13720 13721test "x$prefix" = xNONE && prefix=$ac_default_prefix 13722# Let make expand exec_prefix. 13723test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13724 13725DEFS=-DHAVE_CONFIG_H 13726 13727ac_libobjs= 13728ac_ltlibobjs= 13729U= 13730for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13731 # 1. Remove the extension, and $U if already installed. 13732 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13733 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13734 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13735 # will be set to the directory where LIBOBJS objects are built. 13736 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13737 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13738done 13739LIBOBJS=$ac_libobjs 13740 13741LTLIBOBJS=$ac_ltlibobjs 13742 13743 13744 if test -n "$EXEEXT"; then 13745 am__EXEEXT_TRUE= 13746 am__EXEEXT_FALSE='#' 13747else 13748 am__EXEEXT_TRUE='#' 13749 am__EXEEXT_FALSE= 13750fi 13751 13752if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13753 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 13754Usually this means the macro was only invoked conditionally." "$LINENO" 5 13755fi 13756if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13757 as_fn_error $? "conditional \"AMDEP\" was never defined. 13758Usually this means the macro was only invoked conditionally." "$LINENO" 5 13759fi 13760if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13761 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13762Usually this means the macro was only invoked conditionally." "$LINENO" 5 13763fi 13764 13765: ${CONFIG_STATUS=./config.status} 13766ac_write_fail=0 13767ac_clean_files_save=$ac_clean_files 13768ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13769{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13770$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13771as_write_fail=0 13772cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13773#! $SHELL 13774# Generated by $as_me. 13775# Run this file to recreate the current configuration. 13776# Compiler output produced by configure, useful for debugging 13777# configure, is in config.log if it exists. 13778 13779debug=false 13780ac_cs_recheck=false 13781ac_cs_silent=false 13782 13783SHELL=\${CONFIG_SHELL-$SHELL} 13784export SHELL 13785_ASEOF 13786cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13787## -------------------- ## 13788## M4sh Initialization. ## 13789## -------------------- ## 13790 13791# Be more Bourne compatible 13792DUALCASE=1; export DUALCASE # for MKS sh 13793if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13794 emulate sh 13795 NULLCMD=: 13796 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13797 # is contrary to our usage. Disable this feature. 13798 alias -g '${1+"$@"}'='"$@"' 13799 setopt NO_GLOB_SUBST 13800else 13801 case `(set -o) 2>/dev/null` in #( 13802 *posix*) : 13803 set -o posix ;; #( 13804 *) : 13805 ;; 13806esac 13807fi 13808 13809 13810as_nl=' 13811' 13812export as_nl 13813# Printing a long string crashes Solaris 7 /usr/bin/printf. 13814as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13815as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13816as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13817# Prefer a ksh shell builtin over an external printf program on Solaris, 13818# but without wasting forks for bash or zsh. 13819if test -z "$BASH_VERSION$ZSH_VERSION" \ 13820 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13821 as_echo='print -r --' 13822 as_echo_n='print -rn --' 13823elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13824 as_echo='printf %s\n' 13825 as_echo_n='printf %s' 13826else 13827 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13828 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13829 as_echo_n='/usr/ucb/echo -n' 13830 else 13831 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13832 as_echo_n_body='eval 13833 arg=$1; 13834 case $arg in #( 13835 *"$as_nl"*) 13836 expr "X$arg" : "X\\(.*\\)$as_nl"; 13837 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13838 esac; 13839 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13840 ' 13841 export as_echo_n_body 13842 as_echo_n='sh -c $as_echo_n_body as_echo' 13843 fi 13844 export as_echo_body 13845 as_echo='sh -c $as_echo_body as_echo' 13846fi 13847 13848# The user is always right. 13849if test "${PATH_SEPARATOR+set}" != set; then 13850 PATH_SEPARATOR=: 13851 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13852 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13853 PATH_SEPARATOR=';' 13854 } 13855fi 13856 13857 13858# IFS 13859# We need space, tab and new line, in precisely that order. Quoting is 13860# there to prevent editors from complaining about space-tab. 13861# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13862# splitting by setting IFS to empty value.) 13863IFS=" "" $as_nl" 13864 13865# Find who we are. Look in the path if we contain no directory separator. 13866case $0 in #(( 13867 *[\\/]* ) as_myself=$0 ;; 13868 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13869for as_dir in $PATH 13870do 13871 IFS=$as_save_IFS 13872 test -z "$as_dir" && as_dir=. 13873 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13874 done 13875IFS=$as_save_IFS 13876 13877 ;; 13878esac 13879# We did not find ourselves, most probably we were run as `sh COMMAND' 13880# in which case we are not to be found in the path. 13881if test "x$as_myself" = x; then 13882 as_myself=$0 13883fi 13884if test ! -f "$as_myself"; then 13885 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13886 exit 1 13887fi 13888 13889# Unset variables that we do not need and which cause bugs (e.g. in 13890# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13891# suppresses any "Segmentation fault" message there. '((' could 13892# trigger a bug in pdksh 5.2.14. 13893for as_var in BASH_ENV ENV MAIL MAILPATH 13894do eval test x\${$as_var+set} = xset \ 13895 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13896done 13897PS1='$ ' 13898PS2='> ' 13899PS4='+ ' 13900 13901# NLS nuisances. 13902LC_ALL=C 13903export LC_ALL 13904LANGUAGE=C 13905export LANGUAGE 13906 13907# CDPATH. 13908(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13909 13910 13911# as_fn_error STATUS ERROR [LINENO LOG_FD] 13912# ---------------------------------------- 13913# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13914# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13915# script with STATUS, using 1 if that was 0. 13916as_fn_error () 13917{ 13918 as_status=$1; test $as_status -eq 0 && as_status=1 13919 if test "$4"; then 13920 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13921 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13922 fi 13923 $as_echo "$as_me: error: $2" >&2 13924 as_fn_exit $as_status 13925} # as_fn_error 13926 13927 13928# as_fn_set_status STATUS 13929# ----------------------- 13930# Set $? to STATUS, without forking. 13931as_fn_set_status () 13932{ 13933 return $1 13934} # as_fn_set_status 13935 13936# as_fn_exit STATUS 13937# ----------------- 13938# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13939as_fn_exit () 13940{ 13941 set +e 13942 as_fn_set_status $1 13943 exit $1 13944} # as_fn_exit 13945 13946# as_fn_unset VAR 13947# --------------- 13948# Portably unset VAR. 13949as_fn_unset () 13950{ 13951 { eval $1=; unset $1;} 13952} 13953as_unset=as_fn_unset 13954# as_fn_append VAR VALUE 13955# ---------------------- 13956# Append the text in VALUE to the end of the definition contained in VAR. Take 13957# advantage of any shell optimizations that allow amortized linear growth over 13958# repeated appends, instead of the typical quadratic growth present in naive 13959# implementations. 13960if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13961 eval 'as_fn_append () 13962 { 13963 eval $1+=\$2 13964 }' 13965else 13966 as_fn_append () 13967 { 13968 eval $1=\$$1\$2 13969 } 13970fi # as_fn_append 13971 13972# as_fn_arith ARG... 13973# ------------------ 13974# Perform arithmetic evaluation on the ARGs, and store the result in the 13975# global $as_val. Take advantage of shells that can avoid forks. The arguments 13976# must be portable across $(()) and expr. 13977if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13978 eval 'as_fn_arith () 13979 { 13980 as_val=$(( $* )) 13981 }' 13982else 13983 as_fn_arith () 13984 { 13985 as_val=`expr "$@" || test $? -eq 1` 13986 } 13987fi # as_fn_arith 13988 13989 13990if expr a : '\(a\)' >/dev/null 2>&1 && 13991 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13992 as_expr=expr 13993else 13994 as_expr=false 13995fi 13996 13997if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13998 as_basename=basename 13999else 14000 as_basename=false 14001fi 14002 14003if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14004 as_dirname=dirname 14005else 14006 as_dirname=false 14007fi 14008 14009as_me=`$as_basename -- "$0" || 14010$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14011 X"$0" : 'X\(//\)$' \| \ 14012 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14013$as_echo X/"$0" | 14014 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14015 s//\1/ 14016 q 14017 } 14018 /^X\/\(\/\/\)$/{ 14019 s//\1/ 14020 q 14021 } 14022 /^X\/\(\/\).*/{ 14023 s//\1/ 14024 q 14025 } 14026 s/.*/./; q'` 14027 14028# Avoid depending upon Character Ranges. 14029as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14030as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14031as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14032as_cr_digits='0123456789' 14033as_cr_alnum=$as_cr_Letters$as_cr_digits 14034 14035ECHO_C= ECHO_N= ECHO_T= 14036case `echo -n x` in #((((( 14037-n*) 14038 case `echo 'xy\c'` in 14039 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14040 xy) ECHO_C='\c';; 14041 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14042 ECHO_T=' ';; 14043 esac;; 14044*) 14045 ECHO_N='-n';; 14046esac 14047 14048rm -f conf$$ conf$$.exe conf$$.file 14049if test -d conf$$.dir; then 14050 rm -f conf$$.dir/conf$$.file 14051else 14052 rm -f conf$$.dir 14053 mkdir conf$$.dir 2>/dev/null 14054fi 14055if (echo >conf$$.file) 2>/dev/null; then 14056 if ln -s conf$$.file conf$$ 2>/dev/null; then 14057 as_ln_s='ln -s' 14058 # ... but there are two gotchas: 14059 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14060 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14061 # In both cases, we have to default to `cp -p'. 14062 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14063 as_ln_s='cp -p' 14064 elif ln conf$$.file conf$$ 2>/dev/null; then 14065 as_ln_s=ln 14066 else 14067 as_ln_s='cp -p' 14068 fi 14069else 14070 as_ln_s='cp -p' 14071fi 14072rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14073rmdir conf$$.dir 2>/dev/null 14074 14075 14076# as_fn_mkdir_p 14077# ------------- 14078# Create "$as_dir" as a directory, including parents if necessary. 14079as_fn_mkdir_p () 14080{ 14081 14082 case $as_dir in #( 14083 -*) as_dir=./$as_dir;; 14084 esac 14085 test -d "$as_dir" || eval $as_mkdir_p || { 14086 as_dirs= 14087 while :; do 14088 case $as_dir in #( 14089 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14090 *) as_qdir=$as_dir;; 14091 esac 14092 as_dirs="'$as_qdir' $as_dirs" 14093 as_dir=`$as_dirname -- "$as_dir" || 14094$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14095 X"$as_dir" : 'X\(//\)[^/]' \| \ 14096 X"$as_dir" : 'X\(//\)$' \| \ 14097 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14098$as_echo X"$as_dir" | 14099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14100 s//\1/ 14101 q 14102 } 14103 /^X\(\/\/\)[^/].*/{ 14104 s//\1/ 14105 q 14106 } 14107 /^X\(\/\/\)$/{ 14108 s//\1/ 14109 q 14110 } 14111 /^X\(\/\).*/{ 14112 s//\1/ 14113 q 14114 } 14115 s/.*/./; q'` 14116 test -d "$as_dir" && break 14117 done 14118 test -z "$as_dirs" || eval "mkdir $as_dirs" 14119 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14120 14121 14122} # as_fn_mkdir_p 14123if mkdir -p . 2>/dev/null; then 14124 as_mkdir_p='mkdir -p "$as_dir"' 14125else 14126 test -d ./-p && rmdir ./-p 14127 as_mkdir_p=false 14128fi 14129 14130if test -x / >/dev/null 2>&1; then 14131 as_test_x='test -x' 14132else 14133 if ls -dL / >/dev/null 2>&1; then 14134 as_ls_L_option=L 14135 else 14136 as_ls_L_option= 14137 fi 14138 as_test_x=' 14139 eval sh -c '\'' 14140 if test -d "$1"; then 14141 test -d "$1/."; 14142 else 14143 case $1 in #( 14144 -*)set "./$1";; 14145 esac; 14146 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 14147 ???[sx]*):;;*)false;;esac;fi 14148 '\'' sh 14149 ' 14150fi 14151as_executable_p=$as_test_x 14152 14153# Sed expression to map a string onto a valid CPP name. 14154as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14155 14156# Sed expression to map a string onto a valid variable name. 14157as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14158 14159 14160exec 6>&1 14161## ----------------------------------- ## 14162## Main body of $CONFIG_STATUS script. ## 14163## ----------------------------------- ## 14164_ASEOF 14165test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14166 14167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14168# Save the log message, to keep $0 and so on meaningful, and to 14169# report actual input values of CONFIG_FILES etc. instead of their 14170# values after options handling. 14171ac_log=" 14172This file was extended by $as_me, which was 14173generated by GNU Autoconf 2.67. Invocation command line was 14174 14175 CONFIG_FILES = $CONFIG_FILES 14176 CONFIG_HEADERS = $CONFIG_HEADERS 14177 CONFIG_LINKS = $CONFIG_LINKS 14178 CONFIG_COMMANDS = $CONFIG_COMMANDS 14179 $ $0 $@ 14180 14181on `(hostname || uname -n) 2>/dev/null | sed 1q` 14182" 14183 14184_ACEOF 14185 14186case $ac_config_files in *" 14187"*) set x $ac_config_files; shift; ac_config_files=$*;; 14188esac 14189 14190case $ac_config_headers in *" 14191"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14192esac 14193 14194 14195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14196# Files that config.status was made for. 14197config_files="$ac_config_files" 14198config_headers="$ac_config_headers" 14199config_commands="$ac_config_commands" 14200 14201_ACEOF 14202 14203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14204ac_cs_usage="\ 14205\`$as_me' instantiates files and other configuration actions 14206from templates according to the current configuration. Unless the files 14207and actions are specified as TAGs, all are instantiated by default. 14208 14209Usage: $0 [OPTION]... [TAG]... 14210 14211 -h, --help print this help, then exit 14212 -V, --version print version number and configuration settings, then exit 14213 --config print configuration, then exit 14214 -q, --quiet, --silent 14215 do not print progress messages 14216 -d, --debug don't remove temporary files 14217 --recheck update $as_me by reconfiguring in the same conditions 14218 --file=FILE[:TEMPLATE] 14219 instantiate the configuration file FILE 14220 --header=FILE[:TEMPLATE] 14221 instantiate the configuration header FILE 14222 14223Configuration files: 14224$config_files 14225 14226Configuration headers: 14227$config_headers 14228 14229Configuration commands: 14230$config_commands 14231 14232Report bugs to the package provider." 14233 14234_ACEOF 14235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14236ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14237ac_cs_version="\\ 14238config.status 14239configured by $0, generated by GNU Autoconf 2.67, 14240 with options \\"\$ac_cs_config\\" 14241 14242Copyright (C) 2010 Free Software Foundation, Inc. 14243This config.status script is free software; the Free Software Foundation 14244gives unlimited permission to copy, distribute and modify it." 14245 14246ac_pwd='$ac_pwd' 14247srcdir='$srcdir' 14248INSTALL='$INSTALL' 14249MKDIR_P='$MKDIR_P' 14250AWK='$AWK' 14251test -n "\$AWK" || AWK=awk 14252_ACEOF 14253 14254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14255# The default lists apply if the user does not specify any file. 14256ac_need_defaults=: 14257while test $# != 0 14258do 14259 case $1 in 14260 --*=?*) 14261 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14262 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14263 ac_shift=: 14264 ;; 14265 --*=) 14266 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14267 ac_optarg= 14268 ac_shift=: 14269 ;; 14270 *) 14271 ac_option=$1 14272 ac_optarg=$2 14273 ac_shift=shift 14274 ;; 14275 esac 14276 14277 case $ac_option in 14278 # Handling of the options. 14279 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14280 ac_cs_recheck=: ;; 14281 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14282 $as_echo "$ac_cs_version"; exit ;; 14283 --config | --confi | --conf | --con | --co | --c ) 14284 $as_echo "$ac_cs_config"; exit ;; 14285 --debug | --debu | --deb | --de | --d | -d ) 14286 debug=: ;; 14287 --file | --fil | --fi | --f ) 14288 $ac_shift 14289 case $ac_optarg in 14290 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14291 '') as_fn_error $? "missing file argument" ;; 14292 esac 14293 as_fn_append CONFIG_FILES " '$ac_optarg'" 14294 ac_need_defaults=false;; 14295 --header | --heade | --head | --hea ) 14296 $ac_shift 14297 case $ac_optarg in 14298 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14299 esac 14300 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14301 ac_need_defaults=false;; 14302 --he | --h) 14303 # Conflict between --help and --header 14304 as_fn_error $? "ambiguous option: \`$1' 14305Try \`$0 --help' for more information.";; 14306 --help | --hel | -h ) 14307 $as_echo "$ac_cs_usage"; exit ;; 14308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14309 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14310 ac_cs_silent=: ;; 14311 14312 # This is an error. 14313 -*) as_fn_error $? "unrecognized option: \`$1' 14314Try \`$0 --help' for more information." ;; 14315 14316 *) as_fn_append ac_config_targets " $1" 14317 ac_need_defaults=false ;; 14318 14319 esac 14320 shift 14321done 14322 14323ac_configure_extra_args= 14324 14325if $ac_cs_silent; then 14326 exec 6>/dev/null 14327 ac_configure_extra_args="$ac_configure_extra_args --silent" 14328fi 14329 14330_ACEOF 14331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14332if \$ac_cs_recheck; then 14333 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14334 shift 14335 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14336 CONFIG_SHELL='$SHELL' 14337 export CONFIG_SHELL 14338 exec "\$@" 14339fi 14340 14341_ACEOF 14342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14343exec 5>>config.log 14344{ 14345 echo 14346 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14347## Running $as_me. ## 14348_ASBOX 14349 $as_echo "$ac_log" 14350} >&5 14351 14352_ACEOF 14353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14354# 14355# INIT-COMMANDS 14356# 14357AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14358 14359 14360# The HP-UX ksh and POSIX shell print the target directory to stdout 14361# if CDPATH is set. 14362(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14363 14364sed_quote_subst='$sed_quote_subst' 14365double_quote_subst='$double_quote_subst' 14366delay_variable_subst='$delay_variable_subst' 14367macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 14368macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 14369enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 14370enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 14371pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 14372enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 14373host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 14374host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 14375host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 14376build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 14377build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 14378build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 14379SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 14380Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 14381GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 14382EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 14383FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 14384LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 14385NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 14386LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 14387max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 14388ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 14389exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 14390lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 14391lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 14392lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 14393reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 14394reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14395OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 14396deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 14397file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 14398AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 14399AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14400STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 14401RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 14402old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14403old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14404old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14405CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 14406CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14407compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 14408GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 14409lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 14410lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 14411lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 14412lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 14413objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 14414SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 14415ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 14416MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 14417lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 14418lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 14419lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 14420lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 14421lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 14422need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 14423DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 14424NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 14425LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 14426OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 14427OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 14428libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 14429shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14430extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14431archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 14432enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 14433export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14434whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14435compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 14436old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14437old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14438archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14439archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14440module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14441module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14442with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 14443allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14444no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14445hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14446hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 14447hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 14448hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 14449hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 14450hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 14451hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14452hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 14453inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 14454link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 14455fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 14456always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 14457export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14458exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14459include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14460prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14461file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 14462variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 14463need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 14464need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 14465version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 14466runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14467shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14468shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 14469libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14470library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 14471soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14472postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14473postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14474finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14475finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 14476hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 14477sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14478sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14479hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 14480enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 14481enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 14482enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 14483old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 14484striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 14485 14486LTCC='$LTCC' 14487LTCFLAGS='$LTCFLAGS' 14488compiler='$compiler_DEFAULT' 14489 14490# Quote evaled strings. 14491for var in SED \ 14492GREP \ 14493EGREP \ 14494FGREP \ 14495LD \ 14496NM \ 14497LN_S \ 14498lt_SP2NL \ 14499lt_NL2SP \ 14500reload_flag \ 14501OBJDUMP \ 14502deplibs_check_method \ 14503file_magic_cmd \ 14504AR \ 14505AR_FLAGS \ 14506STRIP \ 14507RANLIB \ 14508CC \ 14509CFLAGS \ 14510compiler \ 14511lt_cv_sys_global_symbol_pipe \ 14512lt_cv_sys_global_symbol_to_cdecl \ 14513lt_cv_sys_global_symbol_to_c_name_address \ 14514lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14515SHELL \ 14516ECHO \ 14517lt_prog_compiler_no_builtin_flag \ 14518lt_prog_compiler_wl \ 14519lt_prog_compiler_pic \ 14520lt_prog_compiler_static \ 14521lt_cv_prog_compiler_c_o \ 14522need_locks \ 14523DSYMUTIL \ 14524NMEDIT \ 14525LIPO \ 14526OTOOL \ 14527OTOOL64 \ 14528shrext_cmds \ 14529export_dynamic_flag_spec \ 14530whole_archive_flag_spec \ 14531compiler_needs_object \ 14532with_gnu_ld \ 14533allow_undefined_flag \ 14534no_undefined_flag \ 14535hardcode_libdir_flag_spec \ 14536hardcode_libdir_flag_spec_ld \ 14537hardcode_libdir_separator \ 14538fix_srcfile_path \ 14539exclude_expsyms \ 14540include_expsyms \ 14541file_list_spec \ 14542variables_saved_for_relink \ 14543libname_spec \ 14544library_names_spec \ 14545soname_spec \ 14546finish_eval \ 14547old_striplib \ 14548striplib; do 14549 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14550 *[\\\\\\\`\\"\\\$]*) 14551 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14552 ;; 14553 *) 14554 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14555 ;; 14556 esac 14557done 14558 14559# Double-quote double-evaled strings. 14560for var in reload_cmds \ 14561old_postinstall_cmds \ 14562old_postuninstall_cmds \ 14563old_archive_cmds \ 14564extract_expsyms_cmds \ 14565old_archive_from_new_cmds \ 14566old_archive_from_expsyms_cmds \ 14567archive_cmds \ 14568archive_expsym_cmds \ 14569module_cmds \ 14570module_expsym_cmds \ 14571export_symbols_cmds \ 14572prelink_cmds \ 14573postinstall_cmds \ 14574postuninstall_cmds \ 14575finish_cmds \ 14576sys_lib_search_path_spec \ 14577sys_lib_dlsearch_path_spec; do 14578 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14579 *[\\\\\\\`\\"\\\$]*) 14580 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14581 ;; 14582 *) 14583 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14584 ;; 14585 esac 14586done 14587 14588# Fix-up fallback echo if it was mangled by the above quoting rules. 14589case \$lt_ECHO in 14590*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14591 ;; 14592esac 14593 14594ac_aux_dir='$ac_aux_dir' 14595xsi_shell='$xsi_shell' 14596lt_shell_append='$lt_shell_append' 14597 14598# See if we are running on zsh, and set the options which allow our 14599# commands through without removal of \ escapes INIT. 14600if test -n "\${ZSH_VERSION+set}" ; then 14601 setopt NO_GLOB_SUBST 14602fi 14603 14604 14605 PACKAGE='$PACKAGE' 14606 VERSION='$VERSION' 14607 TIMESTAMP='$TIMESTAMP' 14608 RM='$RM' 14609 ofile='$ofile' 14610 14611 14612 14613# Capture the value of obsolete ALL_LINGUAS because we need it to compute 14614 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 14615 # from automake < 1.5. 14616 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 14617 # Capture the value of LINGUAS because we need it to compute CATALOGS. 14618 LINGUAS="${LINGUAS-%UNSET%}" 14619 14620 14621_ACEOF 14622 14623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14624 14625# Handling of arguments. 14626for ac_config_target in $ac_config_targets 14627do 14628 case $ac_config_target in 14629 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14630 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14631 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14632 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 14633 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14634 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 14635 "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;; 14636 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14637 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 14638 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; 14639 "ripperX.pc") CONFIG_FILES="$CONFIG_FILES ripperX.pc" ;; 14640 14641 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 14642 esac 14643done 14644 14645 14646# If the user did not use the arguments to specify the items to instantiate, 14647# then the envvar interface is used. Set only those that are not. 14648# We use the long form for the default assignment because of an extremely 14649# bizarre bug on SunOS 4.1.3. 14650if $ac_need_defaults; then 14651 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14652 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14653 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14654fi 14655 14656# Have a temporary directory for convenience. Make it in the build tree 14657# simply because there is no reason against having it here, and in addition, 14658# creating and moving files from /tmp can sometimes cause problems. 14659# Hook for its removal unless debugging. 14660# Note that there is a small window in which the directory will not be cleaned: 14661# after its creation but before its name has been assigned to `$tmp'. 14662$debug || 14663{ 14664 tmp= 14665 trap 'exit_status=$? 14666 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14667' 0 14668 trap 'as_fn_exit 1' 1 2 13 15 14669} 14670# Create a (secure) tmp directory for tmp files. 14671 14672{ 14673 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14674 test -n "$tmp" && test -d "$tmp" 14675} || 14676{ 14677 tmp=./conf$$-$RANDOM 14678 (umask 077 && mkdir "$tmp") 14679} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14680 14681# Set up the scripts for CONFIG_FILES section. 14682# No need to generate them if there are no CONFIG_FILES. 14683# This happens for instance with `./config.status config.h'. 14684if test -n "$CONFIG_FILES"; then 14685 14686 14687ac_cr=`echo X | tr X '\015'` 14688# On cygwin, bash can eat \r inside `` if the user requested igncr. 14689# But we know of no other shell where ac_cr would be empty at this 14690# point, so we can use a bashism as a fallback. 14691if test "x$ac_cr" = x; then 14692 eval ac_cr=\$\'\\r\' 14693fi 14694ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14695if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14696 ac_cs_awk_cr='\\r' 14697else 14698 ac_cs_awk_cr=$ac_cr 14699fi 14700 14701echo 'BEGIN {' >"$tmp/subs1.awk" && 14702_ACEOF 14703 14704 14705{ 14706 echo "cat >conf$$subs.awk <<_ACEOF" && 14707 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14708 echo "_ACEOF" 14709} >conf$$subs.sh || 14710 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14711ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14712ac_delim='%!_!# ' 14713for ac_last_try in false false false false false :; do 14714 . ./conf$$subs.sh || 14715 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14716 14717 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14718 if test $ac_delim_n = $ac_delim_num; then 14719 break 14720 elif $ac_last_try; then 14721 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14722 else 14723 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14724 fi 14725done 14726rm -f conf$$subs.sh 14727 14728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14729cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14730_ACEOF 14731sed -n ' 14732h 14733s/^/S["/; s/!.*/"]=/ 14734p 14735g 14736s/^[^!]*!// 14737:repl 14738t repl 14739s/'"$ac_delim"'$// 14740t delim 14741:nl 14742h 14743s/\(.\{148\}\)..*/\1/ 14744t more1 14745s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14746p 14747n 14748b repl 14749:more1 14750s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14751p 14752g 14753s/.\{148\}// 14754t nl 14755:delim 14756h 14757s/\(.\{148\}\)..*/\1/ 14758t more2 14759s/["\\]/\\&/g; s/^/"/; s/$/"/ 14760p 14761b 14762:more2 14763s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14764p 14765g 14766s/.\{148\}// 14767t delim 14768' <conf$$subs.awk | sed ' 14769/^[^""]/{ 14770 N 14771 s/\n// 14772} 14773' >>$CONFIG_STATUS || ac_write_fail=1 14774rm -f conf$$subs.awk 14775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14776_ACAWK 14777cat >>"\$tmp/subs1.awk" <<_ACAWK && 14778 for (key in S) S_is_set[key] = 1 14779 FS = "" 14780 14781} 14782{ 14783 line = $ 0 14784 nfields = split(line, field, "@") 14785 substed = 0 14786 len = length(field[1]) 14787 for (i = 2; i < nfields; i++) { 14788 key = field[i] 14789 keylen = length(key) 14790 if (S_is_set[key]) { 14791 value = S[key] 14792 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14793 len += length(value) + length(field[++i]) 14794 substed = 1 14795 } else 14796 len += 1 + keylen 14797 } 14798 14799 print line 14800} 14801 14802_ACAWK 14803_ACEOF 14804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14805if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14806 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14807else 14808 cat 14809fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14810 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14811_ACEOF 14812 14813# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14814# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14815# trailing colons and then remove the whole line if VPATH becomes empty 14816# (actually we leave an empty line to preserve line numbers). 14817if test "x$srcdir" = x.; then 14818 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14819h 14820s/// 14821s/^/:/ 14822s/[ ]*$/:/ 14823s/:\$(srcdir):/:/g 14824s/:\${srcdir}:/:/g 14825s/:@srcdir@:/:/g 14826s/^:*// 14827s/:*$// 14828x 14829s/\(=[ ]*\).*/\1/ 14830G 14831s/\n// 14832s/^[^=]*=[ ]*$// 14833}' 14834fi 14835 14836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14837fi # test -n "$CONFIG_FILES" 14838 14839# Set up the scripts for CONFIG_HEADERS section. 14840# No need to generate them if there are no CONFIG_HEADERS. 14841# This happens for instance with `./config.status Makefile'. 14842if test -n "$CONFIG_HEADERS"; then 14843cat >"$tmp/defines.awk" <<\_ACAWK || 14844BEGIN { 14845_ACEOF 14846 14847# Transform confdefs.h into an awk script `defines.awk', embedded as 14848# here-document in config.status, that substitutes the proper values into 14849# config.h.in to produce config.h. 14850 14851# Create a delimiter string that does not exist in confdefs.h, to ease 14852# handling of long lines. 14853ac_delim='%!_!# ' 14854for ac_last_try in false false :; do 14855 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14856 if test -z "$ac_t"; then 14857 break 14858 elif $ac_last_try; then 14859 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14860 else 14861 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14862 fi 14863done 14864 14865# For the awk script, D is an array of macro values keyed by name, 14866# likewise P contains macro parameters if any. Preserve backslash 14867# newline sequences. 14868 14869ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14870sed -n ' 14871s/.\{148\}/&'"$ac_delim"'/g 14872t rset 14873:rset 14874s/^[ ]*#[ ]*define[ ][ ]*/ / 14875t def 14876d 14877:def 14878s/\\$// 14879t bsnl 14880s/["\\]/\\&/g 14881s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14882D["\1"]=" \3"/p 14883s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14884d 14885:bsnl 14886s/["\\]/\\&/g 14887s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14888D["\1"]=" \3\\\\\\n"\\/p 14889t cont 14890s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14891t cont 14892d 14893:cont 14894n 14895s/.\{148\}/&'"$ac_delim"'/g 14896t clear 14897:clear 14898s/\\$// 14899t bsnlc 14900s/["\\]/\\&/g; s/^/"/; s/$/"/p 14901d 14902:bsnlc 14903s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14904b cont 14905' <confdefs.h | sed ' 14906s/'"$ac_delim"'/"\\\ 14907"/g' >>$CONFIG_STATUS || ac_write_fail=1 14908 14909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14910 for (key in D) D_is_set[key] = 1 14911 FS = "" 14912} 14913/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14914 line = \$ 0 14915 split(line, arg, " ") 14916 if (arg[1] == "#") { 14917 defundef = arg[2] 14918 mac1 = arg[3] 14919 } else { 14920 defundef = substr(arg[1], 2) 14921 mac1 = arg[2] 14922 } 14923 split(mac1, mac2, "(") #) 14924 macro = mac2[1] 14925 prefix = substr(line, 1, index(line, defundef) - 1) 14926 if (D_is_set[macro]) { 14927 # Preserve the white space surrounding the "#". 14928 print prefix "define", macro P[macro] D[macro] 14929 next 14930 } else { 14931 # Replace #undef with comments. This is necessary, for example, 14932 # in the case of _POSIX_SOURCE, which is predefined and required 14933 # on some systems where configure will not decide to define it. 14934 if (defundef == "undef") { 14935 print "/*", prefix defundef, macro, "*/" 14936 next 14937 } 14938 } 14939} 14940{ print } 14941_ACAWK 14942_ACEOF 14943cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14944 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14945fi # test -n "$CONFIG_HEADERS" 14946 14947 14948eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14949shift 14950for ac_tag 14951do 14952 case $ac_tag in 14953 :[FHLC]) ac_mode=$ac_tag; continue;; 14954 esac 14955 case $ac_mode$ac_tag in 14956 :[FHL]*:*);; 14957 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 14958 :[FH]-) ac_tag=-:-;; 14959 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14960 esac 14961 ac_save_IFS=$IFS 14962 IFS=: 14963 set x $ac_tag 14964 IFS=$ac_save_IFS 14965 shift 14966 ac_file=$1 14967 shift 14968 14969 case $ac_mode in 14970 :L) ac_source=$1;; 14971 :[FH]) 14972 ac_file_inputs= 14973 for ac_f 14974 do 14975 case $ac_f in 14976 -) ac_f="$tmp/stdin";; 14977 *) # Look for the file first in the build tree, then in the source tree 14978 # (if the path is not absolute). The absolute path cannot be DOS-style, 14979 # because $ac_f cannot contain `:'. 14980 test -f "$ac_f" || 14981 case $ac_f in 14982 [\\/$]*) false;; 14983 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14984 esac || 14985 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 14986 esac 14987 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14988 as_fn_append ac_file_inputs " '$ac_f'" 14989 done 14990 14991 # Let's still pretend it is `configure' which instantiates (i.e., don't 14992 # use $as_me), people would be surprised to read: 14993 # /* config.h. Generated by config.status. */ 14994 configure_input='Generated from '` 14995 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14996 `' by configure.' 14997 if test x"$ac_file" != x-; then 14998 configure_input="$ac_file. $configure_input" 14999 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15000$as_echo "$as_me: creating $ac_file" >&6;} 15001 fi 15002 # Neutralize special characters interpreted by sed in replacement strings. 15003 case $configure_input in #( 15004 *\&* | *\|* | *\\* ) 15005 ac_sed_conf_input=`$as_echo "$configure_input" | 15006 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15007 *) ac_sed_conf_input=$configure_input;; 15008 esac 15009 15010 case $ac_tag in 15011 *:-:* | *:-) cat >"$tmp/stdin" \ 15012 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15013 esac 15014 ;; 15015 esac 15016 15017 ac_dir=`$as_dirname -- "$ac_file" || 15018$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15019 X"$ac_file" : 'X\(//\)[^/]' \| \ 15020 X"$ac_file" : 'X\(//\)$' \| \ 15021 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15022$as_echo X"$ac_file" | 15023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15024 s//\1/ 15025 q 15026 } 15027 /^X\(\/\/\)[^/].*/{ 15028 s//\1/ 15029 q 15030 } 15031 /^X\(\/\/\)$/{ 15032 s//\1/ 15033 q 15034 } 15035 /^X\(\/\).*/{ 15036 s//\1/ 15037 q 15038 } 15039 s/.*/./; q'` 15040 as_dir="$ac_dir"; as_fn_mkdir_p 15041 ac_builddir=. 15042 15043case "$ac_dir" in 15044.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15045*) 15046 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15047 # A ".." for each directory in $ac_dir_suffix. 15048 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15049 case $ac_top_builddir_sub in 15050 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15051 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15052 esac ;; 15053esac 15054ac_abs_top_builddir=$ac_pwd 15055ac_abs_builddir=$ac_pwd$ac_dir_suffix 15056# for backward compatibility: 15057ac_top_builddir=$ac_top_build_prefix 15058 15059case $srcdir in 15060 .) # We are building in place. 15061 ac_srcdir=. 15062 ac_top_srcdir=$ac_top_builddir_sub 15063 ac_abs_top_srcdir=$ac_pwd ;; 15064 [\\/]* | ?:[\\/]* ) # Absolute name. 15065 ac_srcdir=$srcdir$ac_dir_suffix; 15066 ac_top_srcdir=$srcdir 15067 ac_abs_top_srcdir=$srcdir ;; 15068 *) # Relative name. 15069 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15070 ac_top_srcdir=$ac_top_build_prefix$srcdir 15071 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15072esac 15073ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15074 15075 15076 case $ac_mode in 15077 :F) 15078 # 15079 # CONFIG_FILE 15080 # 15081 15082 case $INSTALL in 15083 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15084 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15085 esac 15086 ac_MKDIR_P=$MKDIR_P 15087 case $MKDIR_P in 15088 [\\/$]* | ?:[\\/]* ) ;; 15089 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15090 esac 15091_ACEOF 15092 15093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15094# If the template does not know about datarootdir, expand it. 15095# FIXME: This hack should be removed a few years after 2.60. 15096ac_datarootdir_hack=; ac_datarootdir_seen= 15097ac_sed_dataroot=' 15098/datarootdir/ { 15099 p 15100 q 15101} 15102/@datadir@/p 15103/@docdir@/p 15104/@infodir@/p 15105/@localedir@/p 15106/@mandir@/p' 15107case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15108*datarootdir*) ac_datarootdir_seen=yes;; 15109*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15111$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15112_ACEOF 15113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15114 ac_datarootdir_hack=' 15115 s&@datadir@&$datadir&g 15116 s&@docdir@&$docdir&g 15117 s&@infodir@&$infodir&g 15118 s&@localedir@&$localedir&g 15119 s&@mandir@&$mandir&g 15120 s&\\\${datarootdir}&$datarootdir&g' ;; 15121esac 15122_ACEOF 15123 15124# Neutralize VPATH when `$srcdir' = `.'. 15125# Shell code in configure.ac might set extrasub. 15126# FIXME: do we really want to maintain this feature? 15127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15128ac_sed_extra="$ac_vpsub 15129$extrasub 15130_ACEOF 15131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15132:t 15133/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15134s|@configure_input@|$ac_sed_conf_input|;t t 15135s&@top_builddir@&$ac_top_builddir_sub&;t t 15136s&@top_build_prefix@&$ac_top_build_prefix&;t t 15137s&@srcdir@&$ac_srcdir&;t t 15138s&@abs_srcdir@&$ac_abs_srcdir&;t t 15139s&@top_srcdir@&$ac_top_srcdir&;t t 15140s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15141s&@builddir@&$ac_builddir&;t t 15142s&@abs_builddir@&$ac_abs_builddir&;t t 15143s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15144s&@INSTALL@&$ac_INSTALL&;t t 15145s&@MKDIR_P@&$ac_MKDIR_P&;t t 15146$ac_datarootdir_hack 15147" 15148eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 15149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15150 15151test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15152 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 15153 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 15154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15155which seems to be undefined. Please make sure it is defined" >&5 15156$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15157which seems to be undefined. Please make sure it is defined" >&2;} 15158 15159 rm -f "$tmp/stdin" 15160 case $ac_file in 15161 -) cat "$tmp/out" && rm -f "$tmp/out";; 15162 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 15163 esac \ 15164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15165 ;; 15166 :H) 15167 # 15168 # CONFIG_HEADER 15169 # 15170 if test x"$ac_file" != x-; then 15171 { 15172 $as_echo "/* $configure_input */" \ 15173 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 15174 } >"$tmp/config.h" \ 15175 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15176 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 15177 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15178$as_echo "$as_me: $ac_file is unchanged" >&6;} 15179 else 15180 rm -f "$ac_file" 15181 mv "$tmp/config.h" "$ac_file" \ 15182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15183 fi 15184 else 15185 $as_echo "/* $configure_input */" \ 15186 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 15187 || as_fn_error $? "could not create -" "$LINENO" 5 15188 fi 15189# Compute "$ac_file"'s index in $config_headers. 15190_am_arg="$ac_file" 15191_am_stamp_count=1 15192for _am_header in $config_headers :; do 15193 case $_am_header in 15194 $_am_arg | $_am_arg:* ) 15195 break ;; 15196 * ) 15197 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15198 esac 15199done 15200echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15201$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15202 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15203 X"$_am_arg" : 'X\(//\)$' \| \ 15204 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15205$as_echo X"$_am_arg" | 15206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15207 s//\1/ 15208 q 15209 } 15210 /^X\(\/\/\)[^/].*/{ 15211 s//\1/ 15212 q 15213 } 15214 /^X\(\/\/\)$/{ 15215 s//\1/ 15216 q 15217 } 15218 /^X\(\/\).*/{ 15219 s//\1/ 15220 q 15221 } 15222 s/.*/./; q'`/stamp-h$_am_stamp_count 15223 ;; 15224 15225 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15226$as_echo "$as_me: executing $ac_file commands" >&6;} 15227 ;; 15228 esac 15229 15230 15231 case $ac_file$ac_mode in 15232 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15233 # Autoconf 2.62 quotes --file arguments for eval, but not when files 15234 # are listed without --file. Let's play safe and only enable the eval 15235 # if we detect the quoting. 15236 case $CONFIG_FILES in 15237 *\'*) eval set x "$CONFIG_FILES" ;; 15238 *) set x $CONFIG_FILES ;; 15239 esac 15240 shift 15241 for mf 15242 do 15243 # Strip MF so we end up with the name of the file. 15244 mf=`echo "$mf" | sed -e 's/:.*$//'` 15245 # Check whether this is an Automake generated Makefile or not. 15246 # We used to match only the files named `Makefile.in', but 15247 # some people rename them; so instead we look at the file content. 15248 # Grep'ing the first line is not enough: some people post-process 15249 # each Makefile.in and add a new line on top of each file to say so. 15250 # Grep'ing the whole file is not good either: AIX grep has a line 15251 # limit of 2048, but all sed's we know have understand at least 4000. 15252 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15253 dirpart=`$as_dirname -- "$mf" || 15254$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15255 X"$mf" : 'X\(//\)[^/]' \| \ 15256 X"$mf" : 'X\(//\)$' \| \ 15257 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15258$as_echo X"$mf" | 15259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15260 s//\1/ 15261 q 15262 } 15263 /^X\(\/\/\)[^/].*/{ 15264 s//\1/ 15265 q 15266 } 15267 /^X\(\/\/\)$/{ 15268 s//\1/ 15269 q 15270 } 15271 /^X\(\/\).*/{ 15272 s//\1/ 15273 q 15274 } 15275 s/.*/./; q'` 15276 else 15277 continue 15278 fi 15279 # Extract the definition of DEPDIR, am__include, and am__quote 15280 # from the Makefile without running `make'. 15281 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15282 test -z "$DEPDIR" && continue 15283 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15284 test -z "am__include" && continue 15285 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15286 # When using ansi2knr, U may be empty or an underscore; expand it 15287 U=`sed -n 's/^U = //p' < "$mf"` 15288 # Find all dependency output files, they are included files with 15289 # $(DEPDIR) in their names. We invoke sed twice because it is the 15290 # simplest approach to changing $(DEPDIR) to its actual value in the 15291 # expansion. 15292 for file in `sed -n " 15293 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15294 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 15295 # Make sure the directory exists. 15296 test -f "$dirpart/$file" && continue 15297 fdir=`$as_dirname -- "$file" || 15298$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15299 X"$file" : 'X\(//\)[^/]' \| \ 15300 X"$file" : 'X\(//\)$' \| \ 15301 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15302$as_echo X"$file" | 15303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15304 s//\1/ 15305 q 15306 } 15307 /^X\(\/\/\)[^/].*/{ 15308 s//\1/ 15309 q 15310 } 15311 /^X\(\/\/\)$/{ 15312 s//\1/ 15313 q 15314 } 15315 /^X\(\/\).*/{ 15316 s//\1/ 15317 q 15318 } 15319 s/.*/./; q'` 15320 as_dir=$dirpart/$fdir; as_fn_mkdir_p 15321 # echo "creating $dirpart/$file" 15322 echo '# dummy' > "$dirpart/$file" 15323 done 15324 done 15325} 15326 ;; 15327 "libtool":C) 15328 15329 # See if we are running on zsh, and set the options which allow our 15330 # commands through without removal of \ escapes. 15331 if test -n "${ZSH_VERSION+set}" ; then 15332 setopt NO_GLOB_SUBST 15333 fi 15334 15335 cfgfile="${ofile}T" 15336 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15337 $RM "$cfgfile" 15338 15339 cat <<_LT_EOF >> "$cfgfile" 15340#! $SHELL 15341 15342# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15343# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15344# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15345# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15346# 15347# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15348# 2006, 2007, 2008 Free Software Foundation, Inc. 15349# Written by Gordon Matzigkeit, 1996 15350# 15351# This file is part of GNU Libtool. 15352# 15353# GNU Libtool is free software; you can redistribute it and/or 15354# modify it under the terms of the GNU General Public License as 15355# published by the Free Software Foundation; either version 2 of 15356# the License, or (at your option) any later version. 15357# 15358# As a special exception to the GNU General Public License, 15359# if you distribute this file as part of a program or library that 15360# is built using GNU Libtool, you may include this file under the 15361# same distribution terms that you use for the rest of that program. 15362# 15363# GNU Libtool is distributed in the hope that it will be useful, 15364# but WITHOUT ANY WARRANTY; without even the implied warranty of 15365# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15366# GNU General Public License for more details. 15367# 15368# You should have received a copy of the GNU General Public License 15369# along with GNU Libtool; see the file COPYING. If not, a copy 15370# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15371# obtained by writing to the Free Software Foundation, Inc., 15372# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15373 15374 15375# The names of the tagged configurations supported by this script. 15376available_tags="" 15377 15378# ### BEGIN LIBTOOL CONFIG 15379 15380# Which release of libtool.m4 was used? 15381macro_version=$macro_version 15382macro_revision=$macro_revision 15383 15384# Whether or not to build shared libraries. 15385build_libtool_libs=$enable_shared 15386 15387# Whether or not to build static libraries. 15388build_old_libs=$enable_static 15389 15390# What type of objects to build. 15391pic_mode=$pic_mode 15392 15393# Whether or not to optimize for fast installation. 15394fast_install=$enable_fast_install 15395 15396# The host system. 15397host_alias=$host_alias 15398host=$host 15399host_os=$host_os 15400 15401# The build system. 15402build_alias=$build_alias 15403build=$build 15404build_os=$build_os 15405 15406# A sed program that does not truncate output. 15407SED=$lt_SED 15408 15409# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15410Xsed="\$SED -e 1s/^X//" 15411 15412# A grep program that handles long lines. 15413GREP=$lt_GREP 15414 15415# An ERE matcher. 15416EGREP=$lt_EGREP 15417 15418# A literal string matcher. 15419FGREP=$lt_FGREP 15420 15421# A BSD- or MS-compatible name lister. 15422NM=$lt_NM 15423 15424# Whether we need soft or hard links. 15425LN_S=$lt_LN_S 15426 15427# What is the maximum length of a command? 15428max_cmd_len=$max_cmd_len 15429 15430# Object file suffix (normally "o"). 15431objext=$ac_objext 15432 15433# Executable file suffix (normally ""). 15434exeext=$exeext 15435 15436# whether the shell understands "unset". 15437lt_unset=$lt_unset 15438 15439# turn spaces into newlines. 15440SP2NL=$lt_lt_SP2NL 15441 15442# turn newlines into spaces. 15443NL2SP=$lt_lt_NL2SP 15444 15445# How to create reloadable object files. 15446reload_flag=$lt_reload_flag 15447reload_cmds=$lt_reload_cmds 15448 15449# An object symbol dumper. 15450OBJDUMP=$lt_OBJDUMP 15451 15452# Method to check whether dependent libraries are shared objects. 15453deplibs_check_method=$lt_deplibs_check_method 15454 15455# Command to use when deplibs_check_method == "file_magic". 15456file_magic_cmd=$lt_file_magic_cmd 15457 15458# The archiver. 15459AR=$lt_AR 15460AR_FLAGS=$lt_AR_FLAGS 15461 15462# A symbol stripping program. 15463STRIP=$lt_STRIP 15464 15465# Commands used to install an old-style archive. 15466RANLIB=$lt_RANLIB 15467old_postinstall_cmds=$lt_old_postinstall_cmds 15468old_postuninstall_cmds=$lt_old_postuninstall_cmds 15469 15470# A C compiler. 15471LTCC=$lt_CC 15472 15473# LTCC compiler flags. 15474LTCFLAGS=$lt_CFLAGS 15475 15476# Take the output of nm and produce a listing of raw symbols and C names. 15477global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15478 15479# Transform the output of nm in a proper C declaration. 15480global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15481 15482# Transform the output of nm in a C name address pair. 15483global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15484 15485# Transform the output of nm in a C name address pair when lib prefix is needed. 15486global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15487 15488# The name of the directory that contains temporary libtool files. 15489objdir=$objdir 15490 15491# Shell to use when invoking shell scripts. 15492SHELL=$lt_SHELL 15493 15494# An echo program that does not interpret backslashes. 15495ECHO=$lt_ECHO 15496 15497# Used to examine libraries when file_magic_cmd begins with "file". 15498MAGIC_CMD=$MAGIC_CMD 15499 15500# Must we lock files when doing compilation? 15501need_locks=$lt_need_locks 15502 15503# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15504DSYMUTIL=$lt_DSYMUTIL 15505 15506# Tool to change global to local symbols on Mac OS X. 15507NMEDIT=$lt_NMEDIT 15508 15509# Tool to manipulate fat objects and archives on Mac OS X. 15510LIPO=$lt_LIPO 15511 15512# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15513OTOOL=$lt_OTOOL 15514 15515# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15516OTOOL64=$lt_OTOOL64 15517 15518# Old archive suffix (normally "a"). 15519libext=$libext 15520 15521# Shared library suffix (normally ".so"). 15522shrext_cmds=$lt_shrext_cmds 15523 15524# The commands to extract the exported symbol list from a shared archive. 15525extract_expsyms_cmds=$lt_extract_expsyms_cmds 15526 15527# Variables whose values should be saved in libtool wrapper scripts and 15528# restored at link time. 15529variables_saved_for_relink=$lt_variables_saved_for_relink 15530 15531# Do we need the "lib" prefix for modules? 15532need_lib_prefix=$need_lib_prefix 15533 15534# Do we need a version for libraries? 15535need_version=$need_version 15536 15537# Library versioning type. 15538version_type=$version_type 15539 15540# Shared library runtime path variable. 15541runpath_var=$runpath_var 15542 15543# Shared library path variable. 15544shlibpath_var=$shlibpath_var 15545 15546# Is shlibpath searched before the hard-coded library search path? 15547shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15548 15549# Format of library name prefix. 15550libname_spec=$lt_libname_spec 15551 15552# List of archive names. First name is the real one, the rest are links. 15553# The last name is the one that the linker finds with -lNAME 15554library_names_spec=$lt_library_names_spec 15555 15556# The coded name of the library, if different from the real name. 15557soname_spec=$lt_soname_spec 15558 15559# Command to use after installation of a shared archive. 15560postinstall_cmds=$lt_postinstall_cmds 15561 15562# Command to use after uninstallation of a shared archive. 15563postuninstall_cmds=$lt_postuninstall_cmds 15564 15565# Commands used to finish a libtool library installation in a directory. 15566finish_cmds=$lt_finish_cmds 15567 15568# As "finish_cmds", except a single script fragment to be evaled but 15569# not shown. 15570finish_eval=$lt_finish_eval 15571 15572# Whether we should hardcode library paths into libraries. 15573hardcode_into_libs=$hardcode_into_libs 15574 15575# Compile-time system search path for libraries. 15576sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15577 15578# Run-time system search path for libraries. 15579sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15580 15581# Whether dlopen is supported. 15582dlopen_support=$enable_dlopen 15583 15584# Whether dlopen of programs is supported. 15585dlopen_self=$enable_dlopen_self 15586 15587# Whether dlopen of statically linked programs is supported. 15588dlopen_self_static=$enable_dlopen_self_static 15589 15590# Commands to strip libraries. 15591old_striplib=$lt_old_striplib 15592striplib=$lt_striplib 15593 15594 15595# The linker used to build libraries. 15596LD=$lt_LD 15597 15598# Commands used to build an old-style archive. 15599old_archive_cmds=$lt_old_archive_cmds 15600 15601# A language specific compiler. 15602CC=$lt_compiler 15603 15604# Is the compiler the GNU compiler? 15605with_gcc=$GCC 15606 15607# Compiler flag to turn off builtin functions. 15608no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15609 15610# How to pass a linker flag through the compiler. 15611wl=$lt_lt_prog_compiler_wl 15612 15613# Additional compiler flags for building library objects. 15614pic_flag=$lt_lt_prog_compiler_pic 15615 15616# Compiler flag to prevent dynamic linking. 15617link_static_flag=$lt_lt_prog_compiler_static 15618 15619# Does compiler simultaneously support -c and -o options? 15620compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15621 15622# Whether or not to add -lc for building shared libraries. 15623build_libtool_need_lc=$archive_cmds_need_lc 15624 15625# Whether or not to disallow shared libs when runtime libs are static. 15626allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15627 15628# Compiler flag to allow reflexive dlopens. 15629export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15630 15631# Compiler flag to generate shared objects directly from archives. 15632whole_archive_flag_spec=$lt_whole_archive_flag_spec 15633 15634# Whether the compiler copes with passing no objects directly. 15635compiler_needs_object=$lt_compiler_needs_object 15636 15637# Create an old-style archive from a shared archive. 15638old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15639 15640# Create a temporary old-style archive to link instead of a shared archive. 15641old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15642 15643# Commands used to build a shared archive. 15644archive_cmds=$lt_archive_cmds 15645archive_expsym_cmds=$lt_archive_expsym_cmds 15646 15647# Commands used to build a loadable module if different from building 15648# a shared archive. 15649module_cmds=$lt_module_cmds 15650module_expsym_cmds=$lt_module_expsym_cmds 15651 15652# Whether we are building with GNU ld or not. 15653with_gnu_ld=$lt_with_gnu_ld 15654 15655# Flag that allows shared libraries with undefined symbols to be built. 15656allow_undefined_flag=$lt_allow_undefined_flag 15657 15658# Flag that enforces no undefined symbols. 15659no_undefined_flag=$lt_no_undefined_flag 15660 15661# Flag to hardcode \$libdir into a binary during linking. 15662# This must work even if \$libdir does not exist 15663hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15664 15665# If ld is used when linking, flag to hardcode \$libdir into a binary 15666# during linking. This must work even if \$libdir does not exist. 15667hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15668 15669# Whether we need a single "-rpath" flag with a separated argument. 15670hardcode_libdir_separator=$lt_hardcode_libdir_separator 15671 15672# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15673# DIR into the resulting binary. 15674hardcode_direct=$hardcode_direct 15675 15676# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15677# DIR into the resulting binary and the resulting library dependency is 15678# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15679# library is relocated. 15680hardcode_direct_absolute=$hardcode_direct_absolute 15681 15682# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15683# into the resulting binary. 15684hardcode_minus_L=$hardcode_minus_L 15685 15686# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15687# into the resulting binary. 15688hardcode_shlibpath_var=$hardcode_shlibpath_var 15689 15690# Set to "yes" if building a shared library automatically hardcodes DIR 15691# into the library and all subsequent libraries and executables linked 15692# against it. 15693hardcode_automatic=$hardcode_automatic 15694 15695# Set to yes if linker adds runtime paths of dependent libraries 15696# to runtime path list. 15697inherit_rpath=$inherit_rpath 15698 15699# Whether libtool must link a program against all its dependency libraries. 15700link_all_deplibs=$link_all_deplibs 15701 15702# Fix the shell variable \$srcfile for the compiler. 15703fix_srcfile_path=$lt_fix_srcfile_path 15704 15705# Set to "yes" if exported symbols are required. 15706always_export_symbols=$always_export_symbols 15707 15708# The commands to list exported symbols. 15709export_symbols_cmds=$lt_export_symbols_cmds 15710 15711# Symbols that should not be listed in the preloaded symbols. 15712exclude_expsyms=$lt_exclude_expsyms 15713 15714# Symbols that must always be exported. 15715include_expsyms=$lt_include_expsyms 15716 15717# Commands necessary for linking programs (against libraries) with templates. 15718prelink_cmds=$lt_prelink_cmds 15719 15720# Specify filename containing input files. 15721file_list_spec=$lt_file_list_spec 15722 15723# How to hardcode a shared library path into an executable. 15724hardcode_action=$hardcode_action 15725 15726# ### END LIBTOOL CONFIG 15727 15728_LT_EOF 15729 15730 case $host_os in 15731 aix3*) 15732 cat <<\_LT_EOF >> "$cfgfile" 15733# AIX sometimes has problems with the GCC collect2 program. For some 15734# reason, if we set the COLLECT_NAMES environment variable, the problems 15735# vanish in a puff of smoke. 15736if test "X${COLLECT_NAMES+set}" != Xset; then 15737 COLLECT_NAMES= 15738 export COLLECT_NAMES 15739fi 15740_LT_EOF 15741 ;; 15742 esac 15743 15744 15745ltmain="$ac_aux_dir/ltmain.sh" 15746 15747 15748 # We use sed instead of cat because bash on DJGPP gets confused if 15749 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15750 # text mode, it properly converts lines to CR/LF. This bash problem 15751 # is reportedly fixed, but why not run on old versions too? 15752 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15753 || (rm -f "$cfgfile"; exit 1) 15754 15755 case $xsi_shell in 15756 yes) 15757 cat << \_LT_EOF >> "$cfgfile" 15758 15759# func_dirname file append nondir_replacement 15760# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15761# otherwise set result to NONDIR_REPLACEMENT. 15762func_dirname () 15763{ 15764 case ${1} in 15765 */*) func_dirname_result="${1%/*}${2}" ;; 15766 * ) func_dirname_result="${3}" ;; 15767 esac 15768} 15769 15770# func_basename file 15771func_basename () 15772{ 15773 func_basename_result="${1##*/}" 15774} 15775 15776# func_dirname_and_basename file append nondir_replacement 15777# perform func_basename and func_dirname in a single function 15778# call: 15779# dirname: Compute the dirname of FILE. If nonempty, 15780# add APPEND to the result, otherwise set result 15781# to NONDIR_REPLACEMENT. 15782# value returned in "$func_dirname_result" 15783# basename: Compute filename of FILE. 15784# value retuned in "$func_basename_result" 15785# Implementation must be kept synchronized with func_dirname 15786# and func_basename. For efficiency, we do not delegate to 15787# those functions but instead duplicate the functionality here. 15788func_dirname_and_basename () 15789{ 15790 case ${1} in 15791 */*) func_dirname_result="${1%/*}${2}" ;; 15792 * ) func_dirname_result="${3}" ;; 15793 esac 15794 func_basename_result="${1##*/}" 15795} 15796 15797# func_stripname prefix suffix name 15798# strip PREFIX and SUFFIX off of NAME. 15799# PREFIX and SUFFIX must not contain globbing or regex special 15800# characters, hashes, percent signs, but SUFFIX may contain a leading 15801# dot (in which case that matches only a dot). 15802func_stripname () 15803{ 15804 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15805 # positional parameters, so assign one to ordinary parameter first. 15806 func_stripname_result=${3} 15807 func_stripname_result=${func_stripname_result#"${1}"} 15808 func_stripname_result=${func_stripname_result%"${2}"} 15809} 15810 15811# func_opt_split 15812func_opt_split () 15813{ 15814 func_opt_split_opt=${1%%=*} 15815 func_opt_split_arg=${1#*=} 15816} 15817 15818# func_lo2o object 15819func_lo2o () 15820{ 15821 case ${1} in 15822 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15823 *) func_lo2o_result=${1} ;; 15824 esac 15825} 15826 15827# func_xform libobj-or-source 15828func_xform () 15829{ 15830 func_xform_result=${1%.*}.lo 15831} 15832 15833# func_arith arithmetic-term... 15834func_arith () 15835{ 15836 func_arith_result=$(( $* )) 15837} 15838 15839# func_len string 15840# STRING may not start with a hyphen. 15841func_len () 15842{ 15843 func_len_result=${#1} 15844} 15845 15846_LT_EOF 15847 ;; 15848 *) # Bourne compatible functions. 15849 cat << \_LT_EOF >> "$cfgfile" 15850 15851# func_dirname file append nondir_replacement 15852# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15853# otherwise set result to NONDIR_REPLACEMENT. 15854func_dirname () 15855{ 15856 # Extract subdirectory from the argument. 15857 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15858 if test "X$func_dirname_result" = "X${1}"; then 15859 func_dirname_result="${3}" 15860 else 15861 func_dirname_result="$func_dirname_result${2}" 15862 fi 15863} 15864 15865# func_basename file 15866func_basename () 15867{ 15868 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15869} 15870 15871 15872# func_stripname prefix suffix name 15873# strip PREFIX and SUFFIX off of NAME. 15874# PREFIX and SUFFIX must not contain globbing or regex special 15875# characters, hashes, percent signs, but SUFFIX may contain a leading 15876# dot (in which case that matches only a dot). 15877# func_strip_suffix prefix name 15878func_stripname () 15879{ 15880 case ${2} in 15881 .*) func_stripname_result=`$ECHO "X${3}" \ 15882 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15883 *) func_stripname_result=`$ECHO "X${3}" \ 15884 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15885 esac 15886} 15887 15888# sed scripts: 15889my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15890my_sed_long_arg='1s/^-[^=]*=//' 15891 15892# func_opt_split 15893func_opt_split () 15894{ 15895 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15896 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15897} 15898 15899# func_lo2o object 15900func_lo2o () 15901{ 15902 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15903} 15904 15905# func_xform libobj-or-source 15906func_xform () 15907{ 15908 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15909} 15910 15911# func_arith arithmetic-term... 15912func_arith () 15913{ 15914 func_arith_result=`expr "$@"` 15915} 15916 15917# func_len string 15918# STRING may not start with a hyphen. 15919func_len () 15920{ 15921 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15922} 15923 15924_LT_EOF 15925esac 15926 15927case $lt_shell_append in 15928 yes) 15929 cat << \_LT_EOF >> "$cfgfile" 15930 15931# func_append var value 15932# Append VALUE to the end of shell variable VAR. 15933func_append () 15934{ 15935 eval "$1+=\$2" 15936} 15937_LT_EOF 15938 ;; 15939 *) 15940 cat << \_LT_EOF >> "$cfgfile" 15941 15942# func_append var value 15943# Append VALUE to the end of shell variable VAR. 15944func_append () 15945{ 15946 eval "$1=\$$1\$2" 15947} 15948 15949_LT_EOF 15950 ;; 15951 esac 15952 15953 15954 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15955 || (rm -f "$cfgfile"; exit 1) 15956 15957 mv -f "$cfgfile" "$ofile" || 15958 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15959 chmod +x "$ofile" 15960 15961 ;; 15962 "po-directories":C) 15963 for ac_file in $CONFIG_FILES; do 15964 # Support "outfile[:infile[:infile...]]" 15965 case "$ac_file" in 15966 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 15967 esac 15968 # PO directories have a Makefile.in generated from Makefile.in.in. 15969 case "$ac_file" in */Makefile.in) 15970 # Adjust a relative srcdir. 15971 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 15972 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 15973 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 15974 # In autoconf-2.13 it is called $ac_given_srcdir. 15975 # In autoconf-2.50 it is called $srcdir. 15976 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 15977 case "$ac_given_srcdir" in 15978 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 15979 /*) top_srcdir="$ac_given_srcdir" ;; 15980 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 15981 esac 15982 # Treat a directory as a PO directory if and only if it has a 15983 # POTFILES.in file. This allows packages to have multiple PO 15984 # directories under different names or in different locations. 15985 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 15986 rm -f "$ac_dir/POTFILES" 15987 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 15988 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 15989 POMAKEFILEDEPS="POTFILES.in" 15990 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 15991 # on $ac_dir but don't depend on user-specified configuration 15992 # parameters. 15993 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 15994 # The LINGUAS file contains the set of available languages. 15995 if test -n "$OBSOLETE_ALL_LINGUAS"; then 15996 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 15997 fi 15998 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 15999 # Hide the ALL_LINGUAS assigment from automake < 1.5. 16000 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 16001 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 16002 else 16003 # The set of available languages was given in configure.in. 16004 # Hide the ALL_LINGUAS assigment from automake < 1.5. 16005 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 16006 fi 16007 # Compute POFILES 16008 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 16009 # Compute UPDATEPOFILES 16010 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 16011 # Compute DUMMYPOFILES 16012 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 16013 # Compute GMOFILES 16014 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 16015 case "$ac_given_srcdir" in 16016 .) srcdirpre= ;; 16017 *) srcdirpre='$(srcdir)/' ;; 16018 esac 16019 POFILES= 16020 UPDATEPOFILES= 16021 DUMMYPOFILES= 16022 GMOFILES= 16023 for lang in $ALL_LINGUAS; do 16024 POFILES="$POFILES $srcdirpre$lang.po" 16025 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 16026 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 16027 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 16028 done 16029 # CATALOGS depends on both $ac_dir and the user's LINGUAS 16030 # environment variable. 16031 INST_LINGUAS= 16032 if test -n "$ALL_LINGUAS"; then 16033 for presentlang in $ALL_LINGUAS; do 16034 useit=no 16035 if test "%UNSET%" != "$LINGUAS"; then 16036 desiredlanguages="$LINGUAS" 16037 else 16038 desiredlanguages="$ALL_LINGUAS" 16039 fi 16040 for desiredlang in $desiredlanguages; do 16041 # Use the presentlang catalog if desiredlang is 16042 # a. equal to presentlang, or 16043 # b. a variant of presentlang (because in this case, 16044 # presentlang can be used as a fallback for messages 16045 # which are not translated in the desiredlang catalog). 16046 case "$desiredlang" in 16047 "$presentlang"*) useit=yes;; 16048 esac 16049 done 16050 if test $useit = yes; then 16051 INST_LINGUAS="$INST_LINGUAS $presentlang" 16052 fi 16053 done 16054 fi 16055 CATALOGS= 16056 if test -n "$INST_LINGUAS"; then 16057 for lang in $INST_LINGUAS; do 16058 CATALOGS="$CATALOGS $lang.gmo" 16059 done 16060 fi 16061 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 16062 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 16063 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 16064 if test -f "$f"; then 16065 case "$f" in 16066 *.orig | *.bak | *~) ;; 16067 *) cat "$f" >> "$ac_dir/Makefile" ;; 16068 esac 16069 fi 16070 done 16071 fi 16072 ;; 16073 esac 16074 done ;; 16075 16076 esac 16077done # for ac_tag 16078 16079 16080as_fn_exit 0 16081_ACEOF 16082ac_clean_files=$ac_clean_files_save 16083 16084test $ac_write_fail = 0 || 16085 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16086 16087 16088# configure is writing to config.log, and then calls config.status. 16089# config.status does its own redirection, appending to config.log. 16090# Unfortunately, on DOS this fails, as config.log is still kept open 16091# by configure, so config.status won't be able to write to it; its 16092# output is simply discarded. So we exec the FD to /dev/null, 16093# effectively closing config.log, so it can be properly (re)opened and 16094# appended to by config.status. When coming back to configure, we 16095# need to make the FD available again. 16096if test "$no_create" != yes; then 16097 ac_cs_success=: 16098 ac_config_status_args= 16099 test "$silent" = yes && 16100 ac_config_status_args="$ac_config_status_args --quiet" 16101 exec 5>/dev/null 16102 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16103 exec 5>>config.log 16104 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16105 # would make configure fail if this is the last instruction. 16106 $ac_cs_success || as_fn_exit 1 16107fi 16108if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16110$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16111fi 16112 16113 16114echo "" 16115echo "$PACKAGE $VERSION" 16116echo "" 16117echo "The binary will be installed in $prefix/bin" 16118echo "" 16119echo "Configure finished, type 'make' to build." 16120