1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for QuesoGLC 0.7.2. 4# 5# Report bugs to <quesoglc-general@lists.sourceforge.net>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554 555# Check that we are running under the correct shell. 556SHELL=${CONFIG_SHELL-/bin/sh} 557 558case X$lt_ECHO in 559X*--fallback-echo) 560 # Remove one level of quotation (which was required for Make). 561 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 562 ;; 563esac 564 565ECHO=${lt_ECHO-echo} 566if test "X$1" = X--no-reexec; then 567 # Discard the --no-reexec flag, and continue. 568 shift 569elif test "X$1" = X--fallback-echo; then 570 # Avoid inline document here, it may be left over 571 : 572elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 573 # Yippee, $ECHO works! 574 : 575else 576 # Restart under the correct shell. 577 exec $SHELL "$0" --no-reexec ${1+"$@"} 578fi 579 580if test "X$1" = X--fallback-echo; then 581 # used as fallback echo 582 shift 583 cat <<_LT_EOF 584$* 585_LT_EOF 586 exit 0 587fi 588 589# The HP-UX ksh and POSIX shell print the target directory to stdout 590# if CDPATH is set. 591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 592 593if test -z "$lt_ECHO"; then 594 if test "X${echo_test_string+set}" != Xset; then 595 # find a string as large as possible, as long as the shell can cope with it 596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 598 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 599 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 600 then 601 break 602 fi 603 done 604 fi 605 606 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 607 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 608 test "X$echo_testing_string" = "X$echo_test_string"; then 609 : 610 else 611 # The Solaris, AIX, and Digital Unix default echo programs unquote 612 # backslashes. This makes it impossible to quote backslashes using 613 # echo "$something" | sed 's/\\/\\\\/g' 614 # 615 # So, first we look for a working echo in the user's PATH. 616 617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 618 for dir in $PATH /usr/ucb; do 619 IFS="$lt_save_ifs" 620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 623 test "X$echo_testing_string" = "X$echo_test_string"; then 624 ECHO="$dir/echo" 625 break 626 fi 627 done 628 IFS="$lt_save_ifs" 629 630 if test "X$ECHO" = Xecho; then 631 # We didn't find a better echo, so look for alternatives. 632 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 633 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 634 test "X$echo_testing_string" = "X$echo_test_string"; then 635 # This shell has a builtin print -r that does the trick. 636 ECHO='print -r' 637 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 638 test "X$CONFIG_SHELL" != X/bin/ksh; then 639 # If we have ksh, try running configure again with it. 640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 641 export ORIGINAL_CONFIG_SHELL 642 CONFIG_SHELL=/bin/ksh 643 export CONFIG_SHELL 644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 645 else 646 # Try using printf. 647 ECHO='printf %s\n' 648 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 649 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 650 test "X$echo_testing_string" = "X$echo_test_string"; then 651 # Cool, printf works 652 : 653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 654 test "X$echo_testing_string" = 'X\t' && 655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 658 export CONFIG_SHELL 659 SHELL="$CONFIG_SHELL" 660 export SHELL 661 ECHO="$CONFIG_SHELL $0 --fallback-echo" 662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 663 test "X$echo_testing_string" = 'X\t' && 664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 665 test "X$echo_testing_string" = "X$echo_test_string"; then 666 ECHO="$CONFIG_SHELL $0 --fallback-echo" 667 else 668 # maybe with a smaller string... 669 prev=: 670 671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 672 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 673 then 674 break 675 fi 676 prev="$cmd" 677 done 678 679 if test "$prev" != 'sed 50q "$0"'; then 680 echo_test_string=`eval $prev` 681 export echo_test_string 682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 683 else 684 # Oops. We lost completely, so just stick with echo. 685 ECHO=echo 686 fi 687 fi 688 fi 689 fi 690 fi 691fi 692 693# Copy echo and quote the copy suitably for passing to libtool from 694# the Makefile, instead of quoting the original, which is used later. 695lt_ECHO=$ECHO 696if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 697 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 698fi 699 700 701 702 703exec 7<&0 </dev/null 6>&1 704 705# Name of the host. 706# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 707# so uname gets run too. 708ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 709 710# 711# Initializations. 712# 713ac_default_prefix=/usr/local 714ac_clean_files= 715ac_config_libobj_dir=. 716LIBOBJS= 717cross_compiling=no 718subdirs= 719MFLAGS= 720MAKEFLAGS= 721SHELL=${CONFIG_SHELL-/bin/sh} 722 723# Identity of this package. 724PACKAGE_NAME='QuesoGLC' 725PACKAGE_TARNAME='quesoglc' 726PACKAGE_VERSION='0.7.2' 727PACKAGE_STRING='QuesoGLC 0.7.2' 728PACKAGE_BUGREPORT='quesoglc-general@lists.sourceforge.net' 729 730ac_unique_file="src/global.c" 731# Factoring default headers for most tests. 732ac_includes_default="\ 733#include <stdio.h> 734#ifdef HAVE_SYS_TYPES_H 735# include <sys/types.h> 736#endif 737#ifdef HAVE_SYS_STAT_H 738# include <sys/stat.h> 739#endif 740#ifdef STDC_HEADERS 741# include <stdlib.h> 742# include <stddef.h> 743#else 744# ifdef HAVE_STDLIB_H 745# include <stdlib.h> 746# endif 747#endif 748#ifdef HAVE_STRING_H 749# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 750# include <memory.h> 751# endif 752# include <string.h> 753#endif 754#ifdef HAVE_STRINGS_H 755# include <strings.h> 756#endif 757#ifdef HAVE_INTTYPES_H 758# include <inttypes.h> 759#endif 760#ifdef HAVE_STDINT_H 761# include <stdint.h> 762#endif 763#ifdef HAVE_UNISTD_H 764# include <unistd.h> 765#endif" 766 767ac_subst_vars='SHELL 768PATH_SEPARATOR 769PACKAGE_NAME 770PACKAGE_TARNAME 771PACKAGE_VERSION 772PACKAGE_STRING 773PACKAGE_BUGREPORT 774exec_prefix 775prefix 776program_transform_name 777bindir 778sbindir 779libexecdir 780datarootdir 781datadir 782sysconfdir 783sharedstatedir 784localstatedir 785includedir 786oldincludedir 787docdir 788infodir 789htmldir 790dvidir 791pdfdir 792psdir 793libdir 794localedir 795mandir 796DEFS 797ECHO_C 798ECHO_N 799ECHO_T 800LIBS 801build_alias 802host_alias 803target_alias 804INSTALL_PROGRAM 805INSTALL_SCRIPT 806INSTALL_DATA 807am__isrc 808CYGPATH_W 809PACKAGE 810VERSION 811ACLOCAL 812AUTOCONF 813AUTOMAKE 814AUTOHEADER 815MAKEINFO 816install_sh 817STRIP 818INSTALL_STRIP_PROGRAM 819mkdir_p 820AWK 821SET_MAKE 822am__leading_dot 823AMTAR 824am__tar 825am__untar 826CC 827CFLAGS 828LDFLAGS 829CPPFLAGS 830ac_ct_CC 831EXEEXT 832OBJEXT 833DEPDIR 834am__include 835am__quote 836AMDEP_TRUE 837AMDEP_FALSE 838AMDEPBACKSLASH 839CCDEPMODE 840am__fastdepCC_TRUE 841am__fastdepCC_FALSE 842LN_S 843LIBTOOL 844build 845build_cpu 846build_vendor 847build_os 848host 849host_cpu 850host_vendor 851host_os 852SED 853GREP 854EGREP 855FGREP 856LD 857DUMPBIN 858ac_ct_DUMPBIN 859NM 860AR 861RANLIB 862lt_ECHO 863DSYMUTIL 864NMEDIT 865LIPO 866OTOOL 867OTOOL64 868CPP 869acx_pthread_config 870PTHREAD_CC 871PTHREAD_LIBS 872PTHREAD_CFLAGS 873LIBOBJS 874PKG_CONFIG 875FREETYPE2_CFLAGS 876FREETYPE2_LIBS 877FREETYPE_CONFIG 878FONTCONFIG_CFLAGS 879FONTCONFIG_LIBS 880FRIBIDI_CFLAGS 881FRIBIDI_LIBS 882XMKMF 883GL_CFLAGS 884GL_LIBS 885CXX 886CXXFLAGS 887ac_ct_CXX 888CXXDEPMODE 889am__fastdepCXX_TRUE 890am__fastdepCXX_FALSE 891CXXCPP 892GLU_CFLAGS 893GLU_LIBS 894X_CFLAGS 895X_PRE_LIBS 896X_LIBS 897X_EXTRA_LIBS 898GLUT_CFLAGS 899GLUT_LIBS 900EXECUTABLES 901DEBUG_TESTS 902TESTS_WITH_GLUT 903FRIBIDI_OBJ 904GLEW_OBJ 905GLEW_CFLAGS 906PKGCONFIG_REQUIREMENTS 907PKGCONFIG_LIBS_PRIVATE 908PKGCONFIG_INCLUDE 909LTLIBOBJS' 910ac_subst_files='' 911 ac_precious_vars='build_alias 912host_alias 913target_alias 914CC 915CFLAGS 916LDFLAGS 917LIBS 918CPPFLAGS 919CPP 920PKG_CONFIG 921FREETYPE2_CFLAGS 922FREETYPE2_LIBS 923FONTCONFIG_CFLAGS 924FONTCONFIG_LIBS 925FRIBIDI_CFLAGS 926FRIBIDI_LIBS 927XMKMF 928CXX 929CXXFLAGS 930CCC 931CXXCPP' 932 933 934# Initialize some variables set by options. 935ac_init_help= 936ac_init_version=false 937# The variables have the same names as the options, with 938# dashes changed to underlines. 939cache_file=/dev/null 940exec_prefix=NONE 941no_create= 942no_recursion= 943prefix=NONE 944program_prefix=NONE 945program_suffix=NONE 946program_transform_name=s,x,x, 947silent= 948site= 949srcdir= 950verbose= 951x_includes=NONE 952x_libraries=NONE 953 954# Installation directory options. 955# These are left unexpanded so users can "make install exec_prefix=/foo" 956# and all the variables that are supposed to be based on exec_prefix 957# by default will actually change. 958# Use braces instead of parens because sh, perl, etc. also accept them. 959# (The list follows the same order as the GNU Coding Standards.) 960bindir='${exec_prefix}/bin' 961sbindir='${exec_prefix}/sbin' 962libexecdir='${exec_prefix}/libexec' 963datarootdir='${prefix}/share' 964datadir='${datarootdir}' 965sysconfdir='${prefix}/etc' 966sharedstatedir='${prefix}/com' 967localstatedir='${prefix}/var' 968includedir='${prefix}/include' 969oldincludedir='/usr/include' 970docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 971infodir='${datarootdir}/info' 972htmldir='${docdir}' 973dvidir='${docdir}' 974pdfdir='${docdir}' 975psdir='${docdir}' 976libdir='${exec_prefix}/lib' 977localedir='${datarootdir}/locale' 978mandir='${datarootdir}/man' 979 980ac_prev= 981ac_dashdash= 982for ac_option 983do 984 # If the previous option needs an argument, assign it. 985 if test -n "$ac_prev"; then 986 eval $ac_prev=\$ac_option 987 ac_prev= 988 continue 989 fi 990 991 case $ac_option in 992 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 993 *) ac_optarg=yes ;; 994 esac 995 996 # Accept the important Cygnus configure options, so we can diagnose typos. 997 998 case $ac_dashdash$ac_option in 999 --) 1000 ac_dashdash=yes ;; 1001 1002 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1003 ac_prev=bindir ;; 1004 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1005 bindir=$ac_optarg ;; 1006 1007 -build | --build | --buil | --bui | --bu) 1008 ac_prev=build_alias ;; 1009 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1010 build_alias=$ac_optarg ;; 1011 1012 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1014 ac_prev=cache_file ;; 1015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1017 cache_file=$ac_optarg ;; 1018 1019 --config-cache | -C) 1020 cache_file=config.cache ;; 1021 1022 -datadir | --datadir | --datadi | --datad) 1023 ac_prev=datadir ;; 1024 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1025 datadir=$ac_optarg ;; 1026 1027 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1028 | --dataroo | --dataro | --datar) 1029 ac_prev=datarootdir ;; 1030 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1031 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1032 datarootdir=$ac_optarg ;; 1033 1034 -disable-* | --disable-*) 1035 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1036 # Reject names that are not valid shell variable names. 1037 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1038 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1039 { (exit 1); exit 1; }; } 1040 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1041 eval enable_$ac_feature=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_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1055 # Reject names that are not valid shell variable names. 1056 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1057 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1058 { (exit 1); exit 1; }; } 1059 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1060 eval enable_$ac_feature=\$ac_optarg ;; 1061 1062 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1063 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1064 | --exec | --exe | --ex) 1065 ac_prev=exec_prefix ;; 1066 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1067 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1068 | --exec=* | --exe=* | --ex=*) 1069 exec_prefix=$ac_optarg ;; 1070 1071 -gas | --gas | --ga | --g) 1072 # Obsolete; use --with-gas. 1073 with_gas=yes ;; 1074 1075 -help | --help | --hel | --he | -h) 1076 ac_init_help=long ;; 1077 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1078 ac_init_help=recursive ;; 1079 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1080 ac_init_help=short ;; 1081 1082 -host | --host | --hos | --ho) 1083 ac_prev=host_alias ;; 1084 -host=* | --host=* | --hos=* | --ho=*) 1085 host_alias=$ac_optarg ;; 1086 1087 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1088 ac_prev=htmldir ;; 1089 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1090 | --ht=*) 1091 htmldir=$ac_optarg ;; 1092 1093 -includedir | --includedir | --includedi | --included | --include \ 1094 | --includ | --inclu | --incl | --inc) 1095 ac_prev=includedir ;; 1096 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1097 | --includ=* | --inclu=* | --incl=* | --inc=*) 1098 includedir=$ac_optarg ;; 1099 1100 -infodir | --infodir | --infodi | --infod | --info | --inf) 1101 ac_prev=infodir ;; 1102 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1103 infodir=$ac_optarg ;; 1104 1105 -libdir | --libdir | --libdi | --libd) 1106 ac_prev=libdir ;; 1107 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1108 libdir=$ac_optarg ;; 1109 1110 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1111 | --libexe | --libex | --libe) 1112 ac_prev=libexecdir ;; 1113 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1114 | --libexe=* | --libex=* | --libe=*) 1115 libexecdir=$ac_optarg ;; 1116 1117 -localedir | --localedir | --localedi | --localed | --locale) 1118 ac_prev=localedir ;; 1119 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1120 localedir=$ac_optarg ;; 1121 1122 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1123 | --localstate | --localstat | --localsta | --localst | --locals) 1124 ac_prev=localstatedir ;; 1125 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1126 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1127 localstatedir=$ac_optarg ;; 1128 1129 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1130 ac_prev=mandir ;; 1131 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1132 mandir=$ac_optarg ;; 1133 1134 -nfp | --nfp | --nf) 1135 # Obsolete; use --without-fp. 1136 with_fp=no ;; 1137 1138 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1139 | --no-cr | --no-c | -n) 1140 no_create=yes ;; 1141 1142 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1143 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1144 no_recursion=yes ;; 1145 1146 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1147 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1148 | --oldin | --oldi | --old | --ol | --o) 1149 ac_prev=oldincludedir ;; 1150 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1151 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1152 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1153 oldincludedir=$ac_optarg ;; 1154 1155 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1156 ac_prev=prefix ;; 1157 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1158 prefix=$ac_optarg ;; 1159 1160 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1161 | --program-pre | --program-pr | --program-p) 1162 ac_prev=program_prefix ;; 1163 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1164 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1165 program_prefix=$ac_optarg ;; 1166 1167 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1168 | --program-suf | --program-su | --program-s) 1169 ac_prev=program_suffix ;; 1170 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1171 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1172 program_suffix=$ac_optarg ;; 1173 1174 -program-transform-name | --program-transform-name \ 1175 | --program-transform-nam | --program-transform-na \ 1176 | --program-transform-n | --program-transform- \ 1177 | --program-transform | --program-transfor \ 1178 | --program-transfo | --program-transf \ 1179 | --program-trans | --program-tran \ 1180 | --progr-tra | --program-tr | --program-t) 1181 ac_prev=program_transform_name ;; 1182 -program-transform-name=* | --program-transform-name=* \ 1183 | --program-transform-nam=* | --program-transform-na=* \ 1184 | --program-transform-n=* | --program-transform-=* \ 1185 | --program-transform=* | --program-transfor=* \ 1186 | --program-transfo=* | --program-transf=* \ 1187 | --program-trans=* | --program-tran=* \ 1188 | --progr-tra=* | --program-tr=* | --program-t=*) 1189 program_transform_name=$ac_optarg ;; 1190 1191 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1192 ac_prev=pdfdir ;; 1193 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1194 pdfdir=$ac_optarg ;; 1195 1196 -psdir | --psdir | --psdi | --psd | --ps) 1197 ac_prev=psdir ;; 1198 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1199 psdir=$ac_optarg ;; 1200 1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1202 | -silent | --silent | --silen | --sile | --sil) 1203 silent=yes ;; 1204 1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1206 ac_prev=sbindir ;; 1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1208 | --sbi=* | --sb=*) 1209 sbindir=$ac_optarg ;; 1210 1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1213 | --sharedst | --shareds | --shared | --share | --shar \ 1214 | --sha | --sh) 1215 ac_prev=sharedstatedir ;; 1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1219 | --sha=* | --sh=*) 1220 sharedstatedir=$ac_optarg ;; 1221 1222 -site | --site | --sit) 1223 ac_prev=site ;; 1224 -site=* | --site=* | --sit=*) 1225 site=$ac_optarg ;; 1226 1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1228 ac_prev=srcdir ;; 1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1230 srcdir=$ac_optarg ;; 1231 1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1233 | --syscon | --sysco | --sysc | --sys | --sy) 1234 ac_prev=sysconfdir ;; 1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1237 sysconfdir=$ac_optarg ;; 1238 1239 -target | --target | --targe | --targ | --tar | --ta | --t) 1240 ac_prev=target_alias ;; 1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1242 target_alias=$ac_optarg ;; 1243 1244 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1245 verbose=yes ;; 1246 1247 -version | --version | --versio | --versi | --vers | -V) 1248 ac_init_version=: ;; 1249 1250 -with-* | --with-*) 1251 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1252 # Reject names that are not valid shell variable names. 1253 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1254 { echo "$as_me: error: invalid package name: $ac_package" >&2 1255 { (exit 1); exit 1; }; } 1256 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1257 eval with_$ac_package=\$ac_optarg ;; 1258 1259 -without-* | --without-*) 1260 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1261 # Reject names that are not valid shell variable names. 1262 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1263 { echo "$as_me: error: invalid package name: $ac_package" >&2 1264 { (exit 1); exit 1; }; } 1265 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1266 eval with_$ac_package=no ;; 1267 1268 --x) 1269 # Obsolete; use --with-x. 1270 with_x=yes ;; 1271 1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1273 | --x-incl | --x-inc | --x-in | --x-i) 1274 ac_prev=x_includes ;; 1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1277 x_includes=$ac_optarg ;; 1278 1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1281 ac_prev=x_libraries ;; 1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1284 x_libraries=$ac_optarg ;; 1285 1286 -*) { echo "$as_me: error: unrecognized option: $ac_option 1287Try \`$0 --help' for more information." >&2 1288 { (exit 1); exit 1; }; } 1289 ;; 1290 1291 *=*) 1292 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1293 # Reject names that are not valid shell variable names. 1294 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1295 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1296 { (exit 1); exit 1; }; } 1297 eval $ac_envvar=\$ac_optarg 1298 export $ac_envvar ;; 1299 1300 *) 1301 # FIXME: should be removed in autoconf 3.0. 1302 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1304 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1305 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1306 ;; 1307 1308 esac 1309done 1310 1311if test -n "$ac_prev"; then 1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1313 { echo "$as_me: error: missing argument to $ac_option" >&2 1314 { (exit 1); exit 1; }; } 1315fi 1316 1317# Be sure to have absolute directory names. 1318for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1319 datadir sysconfdir sharedstatedir localstatedir includedir \ 1320 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1321 libdir localedir mandir 1322do 1323 eval ac_val=\$$ac_var 1324 case $ac_val in 1325 [\\/$]* | ?:[\\/]* ) continue;; 1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1327 esac 1328 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1329 { (exit 1); exit 1; }; } 1330done 1331 1332# There might be people who depend on the old broken behavior: `$host' 1333# used to hold the argument of --host etc. 1334# FIXME: To remove some day. 1335build=$build_alias 1336host=$host_alias 1337target=$target_alias 1338 1339# FIXME: To remove some day. 1340if test "x$host_alias" != x; then 1341 if test "x$build_alias" = x; then 1342 cross_compiling=maybe 1343 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1344 If a cross compiler is detected then cross compile mode will be used." >&2 1345 elif test "x$build_alias" != "x$host_alias"; then 1346 cross_compiling=yes 1347 fi 1348fi 1349 1350ac_tool_prefix= 1351test -n "$host_alias" && ac_tool_prefix=$host_alias- 1352 1353test "$silent" = yes && exec 6>/dev/null 1354 1355 1356ac_pwd=`pwd` && test -n "$ac_pwd" && 1357ac_ls_di=`ls -di .` && 1358ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1359 { echo "$as_me: error: Working directory cannot be determined" >&2 1360 { (exit 1); exit 1; }; } 1361test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1362 { echo "$as_me: error: pwd does not report name of working directory" >&2 1363 { (exit 1); exit 1; }; } 1364 1365 1366# Find the source files, if location was not specified. 1367if test -z "$srcdir"; then 1368 ac_srcdir_defaulted=yes 1369 # Try the directory containing this script, then the parent directory. 1370 ac_confdir=`$as_dirname -- "$0" || 1371$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1372 X"$0" : 'X\(//\)[^/]' \| \ 1373 X"$0" : 'X\(//\)$' \| \ 1374 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1375echo X"$0" | 1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1377 s//\1/ 1378 q 1379 } 1380 /^X\(\/\/\)[^/].*/{ 1381 s//\1/ 1382 q 1383 } 1384 /^X\(\/\/\)$/{ 1385 s//\1/ 1386 q 1387 } 1388 /^X\(\/\).*/{ 1389 s//\1/ 1390 q 1391 } 1392 s/.*/./; q'` 1393 srcdir=$ac_confdir 1394 if test ! -r "$srcdir/$ac_unique_file"; then 1395 srcdir=.. 1396 fi 1397else 1398 ac_srcdir_defaulted=no 1399fi 1400if test ! -r "$srcdir/$ac_unique_file"; then 1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1402 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1403 { (exit 1); exit 1; }; } 1404fi 1405ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1406ac_abs_confdir=`( 1407 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1408 { (exit 1); exit 1; }; } 1409 pwd)` 1410# When building in place, set srcdir=. 1411if test "$ac_abs_confdir" = "$ac_pwd"; then 1412 srcdir=. 1413fi 1414# Remove unnecessary trailing slashes from srcdir. 1415# Double slashes in file names in object file debugging info 1416# mess up M-x gdb in Emacs. 1417case $srcdir in 1418*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1419esac 1420for ac_var in $ac_precious_vars; do 1421 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1422 eval ac_env_${ac_var}_value=\$${ac_var} 1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1424 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1425done 1426 1427# 1428# Report the --help message. 1429# 1430if test "$ac_init_help" = "long"; then 1431 # Omit some internal or obsolete options to make the list less imposing. 1432 # This message is too long to be a string in the A/UX 3.1 sh. 1433 cat <<_ACEOF 1434\`configure' configures QuesoGLC 0.7.2 to adapt to many kinds of systems. 1435 1436Usage: $0 [OPTION]... [VAR=VALUE]... 1437 1438To assign environment variables (e.g., CC, CFLAGS...), specify them as 1439VAR=VALUE. See below for descriptions of some of the useful variables. 1440 1441Defaults for the options are specified in brackets. 1442 1443Configuration: 1444 -h, --help display this help and exit 1445 --help=short display options specific to this package 1446 --help=recursive display the short help of all the included packages 1447 -V, --version display version information and exit 1448 -q, --quiet, --silent do not print \`checking...' messages 1449 --cache-file=FILE cache test results in FILE [disabled] 1450 -C, --config-cache alias for \`--cache-file=config.cache' 1451 -n, --no-create do not create output files 1452 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1453 1454Installation directories: 1455 --prefix=PREFIX install architecture-independent files in PREFIX 1456 [$ac_default_prefix] 1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1458 [PREFIX] 1459 1460By default, \`make install' will install all the files in 1461\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1462an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1463for instance \`--prefix=\$HOME'. 1464 1465For better control, use the options below. 1466 1467Fine tuning of the installation directories: 1468 --bindir=DIR user executables [EPREFIX/bin] 1469 --sbindir=DIR system admin executables [EPREFIX/sbin] 1470 --libexecdir=DIR program executables [EPREFIX/libexec] 1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1474 --libdir=DIR object code libraries [EPREFIX/lib] 1475 --includedir=DIR C header files [PREFIX/include] 1476 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1479 --infodir=DIR info documentation [DATAROOTDIR/info] 1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1481 --mandir=DIR man documentation [DATAROOTDIR/man] 1482 --docdir=DIR documentation root [DATAROOTDIR/doc/quesoglc] 1483 --htmldir=DIR html documentation [DOCDIR] 1484 --dvidir=DIR dvi documentation [DOCDIR] 1485 --pdfdir=DIR pdf documentation [DOCDIR] 1486 --psdir=DIR ps documentation [DOCDIR] 1487_ACEOF 1488 1489 cat <<\_ACEOF 1490 1491Program names: 1492 --program-prefix=PREFIX prepend PREFIX to installed program names 1493 --program-suffix=SUFFIX append SUFFIX to installed program names 1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1495 1496X features: 1497 --x-includes=DIR X include files are in DIR 1498 --x-libraries=DIR X library files are in DIR 1499 1500System types: 1501 --build=BUILD configure for building on BUILD [guessed] 1502 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1503_ACEOF 1504fi 1505 1506if test -n "$ac_init_help"; then 1507 case $ac_init_help in 1508 short | recursive ) echo "Configuration of QuesoGLC 0.7.2:";; 1509 esac 1510 cat <<\_ACEOF 1511 1512Optional Features: 1513 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1514 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1515 --enable-executables build example and test executables [default=yes] 1516 --enable-debug compile debug version [default=no] 1517 --disable-dependency-tracking speeds up one-time build 1518 --enable-dependency-tracking do not reject slow dependency extractors 1519 --enable-shared[=PKGS] build shared libraries [default=yes] 1520 --enable-static[=PKGS] build static libraries [default=yes] 1521 --enable-fast-install[=PKGS] 1522 optimize for fast installation [default=yes] 1523 --disable-libtool-lock avoid locking (might break parallel builds) 1524 --enable-tls use thread-local storage [default=yes] 1525 1526Optional Packages: 1527 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1528 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1529 --with-fribidi use the FriBiDi system library [default=yes] 1530 --with-glew use the GLEW system library [default=yes] 1531 --with-pic try to use only PIC/non-PIC objects [default=use 1532 both] 1533 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1534 --with-apple-opengl-framework 1535 use Apple OpenGL framework (Mac OS X only) 1536 --with-x use the X Window System 1537 1538Some influential environment variables: 1539 CC C compiler command 1540 CFLAGS C compiler flags 1541 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1542 nonstandard directory <lib dir> 1543 LIBS libraries to pass to the linker, e.g. -l<library> 1544 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1545 you have headers in a nonstandard directory <include dir> 1546 CPP C preprocessor 1547 PKG_CONFIG path to pkg-config utility 1548 FREETYPE2_CFLAGS 1549 C compiler flags for FREETYPE2, overriding pkg-config 1550 FREETYPE2_LIBS 1551 linker flags for FREETYPE2, overriding pkg-config 1552 FONTCONFIG_CFLAGS 1553 C compiler flags for FONTCONFIG, overriding pkg-config 1554 FONTCONFIG_LIBS 1555 linker flags for FONTCONFIG, overriding pkg-config 1556 FRIBIDI_CFLAGS 1557 C compiler flags for FRIBIDI, overriding pkg-config 1558 FRIBIDI_LIBS 1559 linker flags for FRIBIDI, overriding pkg-config 1560 XMKMF Path to xmkmf, Makefile generator for X Window System 1561 CXX C++ compiler command 1562 CXXFLAGS C++ compiler flags 1563 CXXCPP C++ preprocessor 1564 1565Use these variables to override the choices made by `configure' or to help 1566it to find libraries and programs with nonstandard names/locations. 1567 1568Report bugs to <quesoglc-general@lists.sourceforge.net>. 1569_ACEOF 1570ac_status=$? 1571fi 1572 1573if test "$ac_init_help" = "recursive"; then 1574 # If there are subdirs, report their specific --help. 1575 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1576 test -d "$ac_dir" || continue 1577 ac_builddir=. 1578 1579case "$ac_dir" in 1580.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1581*) 1582 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1583 # A ".." for each directory in $ac_dir_suffix. 1584 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1585 case $ac_top_builddir_sub in 1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1588 esac ;; 1589esac 1590ac_abs_top_builddir=$ac_pwd 1591ac_abs_builddir=$ac_pwd$ac_dir_suffix 1592# for backward compatibility: 1593ac_top_builddir=$ac_top_build_prefix 1594 1595case $srcdir in 1596 .) # We are building in place. 1597 ac_srcdir=. 1598 ac_top_srcdir=$ac_top_builddir_sub 1599 ac_abs_top_srcdir=$ac_pwd ;; 1600 [\\/]* | ?:[\\/]* ) # Absolute name. 1601 ac_srcdir=$srcdir$ac_dir_suffix; 1602 ac_top_srcdir=$srcdir 1603 ac_abs_top_srcdir=$srcdir ;; 1604 *) # Relative name. 1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1606 ac_top_srcdir=$ac_top_build_prefix$srcdir 1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1608esac 1609ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1610 1611 cd "$ac_dir" || { ac_status=$?; continue; } 1612 # Check for guested configure. 1613 if test -f "$ac_srcdir/configure.gnu"; then 1614 echo && 1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1616 elif test -f "$ac_srcdir/configure"; then 1617 echo && 1618 $SHELL "$ac_srcdir/configure" --help=recursive 1619 else 1620 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1621 fi || ac_status=$? 1622 cd "$ac_pwd" || { ac_status=$?; break; } 1623 done 1624fi 1625 1626test -n "$ac_init_help" && exit $ac_status 1627if $ac_init_version; then 1628 cat <<\_ACEOF 1629QuesoGLC configure 0.7.2 1630generated by GNU Autoconf 2.61 1631 1632Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16332002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1634This configure script is free software; the Free Software Foundation 1635gives unlimited permission to copy, distribute and modify it. 1636_ACEOF 1637 exit 1638fi 1639cat >config.log <<_ACEOF 1640This file contains any messages produced by compilers while 1641running configure, to aid debugging if configure makes a mistake. 1642 1643It was created by QuesoGLC $as_me 0.7.2, which was 1644generated by GNU Autoconf 2.61. Invocation command line was 1645 1646 $ $0 $@ 1647 1648_ACEOF 1649exec 5>>config.log 1650{ 1651cat <<_ASUNAME 1652## --------- ## 1653## Platform. ## 1654## --------- ## 1655 1656hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1657uname -m = `(uname -m) 2>/dev/null || echo unknown` 1658uname -r = `(uname -r) 2>/dev/null || echo unknown` 1659uname -s = `(uname -s) 2>/dev/null || echo unknown` 1660uname -v = `(uname -v) 2>/dev/null || echo unknown` 1661 1662/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1663/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1664 1665/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1666/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1667/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1668/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1669/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1670/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1671/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1672 1673_ASUNAME 1674 1675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1676for as_dir in $PATH 1677do 1678 IFS=$as_save_IFS 1679 test -z "$as_dir" && as_dir=. 1680 echo "PATH: $as_dir" 1681done 1682IFS=$as_save_IFS 1683 1684} >&5 1685 1686cat >&5 <<_ACEOF 1687 1688 1689## ----------- ## 1690## Core tests. ## 1691## ----------- ## 1692 1693_ACEOF 1694 1695 1696# Keep a trace of the command line. 1697# Strip out --no-create and --no-recursion so they do not pile up. 1698# Strip out --silent because we don't want to record it for future runs. 1699# Also quote any args containing shell meta-characters. 1700# Make two passes to allow for proper duplicate-argument suppression. 1701ac_configure_args= 1702ac_configure_args0= 1703ac_configure_args1= 1704ac_must_keep_next=false 1705for ac_pass in 1 2 1706do 1707 for ac_arg 1708 do 1709 case $ac_arg in 1710 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1712 | -silent | --silent | --silen | --sile | --sil) 1713 continue ;; 1714 *\'*) 1715 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1716 esac 1717 case $ac_pass in 1718 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1719 2) 1720 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1721 if test $ac_must_keep_next = true; then 1722 ac_must_keep_next=false # Got value, back to normal. 1723 else 1724 case $ac_arg in 1725 *=* | --config-cache | -C | -disable-* | --disable-* \ 1726 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1727 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1728 | -with-* | --with-* | -without-* | --without-* | --x) 1729 case "$ac_configure_args0 " in 1730 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1731 esac 1732 ;; 1733 -* ) ac_must_keep_next=true ;; 1734 esac 1735 fi 1736 ac_configure_args="$ac_configure_args '$ac_arg'" 1737 ;; 1738 esac 1739 done 1740done 1741$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1742$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1743 1744# When interrupted or exit'd, cleanup temporary files, and complete 1745# config.log. We remove comments because anyway the quotes in there 1746# would cause problems or look ugly. 1747# WARNING: Use '\'' to represent an apostrophe within the trap. 1748# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1749trap 'exit_status=$? 1750 # Save into config.log some information that might help in debugging. 1751 { 1752 echo 1753 1754 cat <<\_ASBOX 1755## ---------------- ## 1756## Cache variables. ## 1757## ---------------- ## 1758_ASBOX 1759 echo 1760 # The following way of writing the cache mishandles newlines in values, 1761( 1762 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1763 eval ac_val=\$$ac_var 1764 case $ac_val in #( 1765 *${as_nl}*) 1766 case $ac_var in #( 1767 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1768echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1769 esac 1770 case $ac_var in #( 1771 _ | IFS | as_nl) ;; #( 1772 *) $as_unset $ac_var ;; 1773 esac ;; 1774 esac 1775 done 1776 (set) 2>&1 | 1777 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1778 *${as_nl}ac_space=\ *) 1779 sed -n \ 1780 "s/'\''/'\''\\\\'\'''\''/g; 1781 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1782 ;; #( 1783 *) 1784 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1785 ;; 1786 esac | 1787 sort 1788) 1789 echo 1790 1791 cat <<\_ASBOX 1792## ----------------- ## 1793## Output variables. ## 1794## ----------------- ## 1795_ASBOX 1796 echo 1797 for ac_var in $ac_subst_vars 1798 do 1799 eval ac_val=\$$ac_var 1800 case $ac_val in 1801 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1802 esac 1803 echo "$ac_var='\''$ac_val'\''" 1804 done | sort 1805 echo 1806 1807 if test -n "$ac_subst_files"; then 1808 cat <<\_ASBOX 1809## ------------------- ## 1810## File substitutions. ## 1811## ------------------- ## 1812_ASBOX 1813 echo 1814 for ac_var in $ac_subst_files 1815 do 1816 eval ac_val=\$$ac_var 1817 case $ac_val in 1818 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1819 esac 1820 echo "$ac_var='\''$ac_val'\''" 1821 done | sort 1822 echo 1823 fi 1824 1825 if test -s confdefs.h; then 1826 cat <<\_ASBOX 1827## ----------- ## 1828## confdefs.h. ## 1829## ----------- ## 1830_ASBOX 1831 echo 1832 cat confdefs.h 1833 echo 1834 fi 1835 test "$ac_signal" != 0 && 1836 echo "$as_me: caught signal $ac_signal" 1837 echo "$as_me: exit $exit_status" 1838 } >&5 1839 rm -f core *.core core.conftest.* && 1840 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1841 exit $exit_status 1842' 0 1843for ac_signal in 1 2 13 15; do 1844 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1845done 1846ac_signal=0 1847 1848# confdefs.h avoids OS command line length limits that DEFS can exceed. 1849rm -f -r conftest* confdefs.h 1850 1851# Predefined preprocessor variables. 1852 1853cat >>confdefs.h <<_ACEOF 1854#define PACKAGE_NAME "$PACKAGE_NAME" 1855_ACEOF 1856 1857 1858cat >>confdefs.h <<_ACEOF 1859#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1860_ACEOF 1861 1862 1863cat >>confdefs.h <<_ACEOF 1864#define PACKAGE_VERSION "$PACKAGE_VERSION" 1865_ACEOF 1866 1867 1868cat >>confdefs.h <<_ACEOF 1869#define PACKAGE_STRING "$PACKAGE_STRING" 1870_ACEOF 1871 1872 1873cat >>confdefs.h <<_ACEOF 1874#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1875_ACEOF 1876 1877 1878# Let the site file select an alternate cache file if it wants to. 1879# Prefer explicitly selected file to automatically selected ones. 1880if test -n "$CONFIG_SITE"; then 1881 set x "$CONFIG_SITE" 1882elif test "x$prefix" != xNONE; then 1883 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1884else 1885 set x "$ac_default_prefix/share/config.site" \ 1886 "$ac_default_prefix/etc/config.site" 1887fi 1888shift 1889for ac_site_file 1890do 1891 if test -r "$ac_site_file"; then 1892 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1893echo "$as_me: loading site script $ac_site_file" >&6;} 1894 sed 's/^/| /' "$ac_site_file" >&5 1895 . "$ac_site_file" 1896 fi 1897done 1898 1899if test -r "$cache_file"; then 1900 # Some versions of bash will fail to source /dev/null (special 1901 # files actually), so we avoid doing that. 1902 if test -f "$cache_file"; then 1903 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1904echo "$as_me: loading cache $cache_file" >&6;} 1905 case $cache_file in 1906 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1907 *) . "./$cache_file";; 1908 esac 1909 fi 1910else 1911 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1912echo "$as_me: creating cache $cache_file" >&6;} 1913 >$cache_file 1914fi 1915 1916# Check that the precious variables saved in the cache have kept the same 1917# value. 1918ac_cache_corrupted=false 1919for ac_var in $ac_precious_vars; do 1920 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1921 eval ac_new_set=\$ac_env_${ac_var}_set 1922 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1923 eval ac_new_val=\$ac_env_${ac_var}_value 1924 case $ac_old_set,$ac_new_set in 1925 set,) 1926 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1927echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1928 ac_cache_corrupted=: ;; 1929 ,set) 1930 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1931echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1932 ac_cache_corrupted=: ;; 1933 ,);; 1934 *) 1935 if test "x$ac_old_val" != "x$ac_new_val"; then 1936 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1937echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1938 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1939echo "$as_me: former value: $ac_old_val" >&2;} 1940 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1941echo "$as_me: current value: $ac_new_val" >&2;} 1942 ac_cache_corrupted=: 1943 fi;; 1944 esac 1945 # Pass precious variables to config.status. 1946 if test "$ac_new_set" = set; then 1947 case $ac_new_val in 1948 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1949 *) ac_arg=$ac_var=$ac_new_val ;; 1950 esac 1951 case " $ac_configure_args " in 1952 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1953 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1954 esac 1955 fi 1956done 1957if $ac_cache_corrupted; then 1958 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1959echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1960 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1961echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1962 { (exit 1); exit 1; }; } 1963fi 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989ac_ext=c 1990ac_cpp='$CPP $CPPFLAGS' 1991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1993ac_compiler_gnu=$ac_cv_c_compiler_gnu 1994 1995 1996 1997ac_config_headers="$ac_config_headers include/qglc_config.h:include/qglc_config.hin" 1998 1999 2000 2001ac_aux_dir= 2002for ac_dir in build "$srcdir"/build; do 2003 if test -f "$ac_dir/install-sh"; then 2004 ac_aux_dir=$ac_dir 2005 ac_install_sh="$ac_aux_dir/install-sh -c" 2006 break 2007 elif test -f "$ac_dir/install.sh"; then 2008 ac_aux_dir=$ac_dir 2009 ac_install_sh="$ac_aux_dir/install.sh -c" 2010 break 2011 elif test -f "$ac_dir/shtool"; then 2012 ac_aux_dir=$ac_dir 2013 ac_install_sh="$ac_aux_dir/shtool install -c" 2014 break 2015 fi 2016done 2017if test -z "$ac_aux_dir"; then 2018 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5 2019echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;} 2020 { (exit 1); exit 1; }; } 2021fi 2022 2023# These three variables are undocumented and unsupported, 2024# and are intended to be withdrawn in a future Autoconf release. 2025# They can cause serious problems if a builder's source tree is in a directory 2026# whose full name contains unusual characters. 2027ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2028ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2029ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2030 2031 2032 2033# Optional parameters definition. 2034# ------------------------------- 2035 2036 2037# Check whether --with-fribidi was given. 2038if test "${with_fribidi+set}" = set; then 2039 withval=$with_fribidi; 2040else 2041 with_fribidi=yes 2042 2043fi 2044 2045 2046# Check whether --with-glew was given. 2047if test "${with_glew+set}" = set; then 2048 withval=$with_glew; 2049else 2050 with_glew=yes 2051 2052fi 2053 2054# Check whether --enable-executables was given. 2055if test "${enable_executables+set}" = set; then 2056 enableval=$enable_executables; 2057else 2058 enable_executables=yes 2059 2060fi 2061 2062# Check whether --enable-debug was given. 2063if test "${enable_debug+set}" = set; then 2064 enableval=$enable_debug; 2065else 2066 enable_debug=no 2067 2068fi 2069 2070 2071# Init automake. 2072# -------------- 2073 2074am__api_version='1.10' 2075 2076# Find a good install program. We prefer a C program (faster), 2077# so one script is as good as another. But avoid the broken or 2078# incompatible versions: 2079# SysV /etc/install, /usr/sbin/install 2080# SunOS /usr/etc/install 2081# IRIX /sbin/install 2082# AIX /bin/install 2083# AmigaOS /C/install, which installs bootblocks on floppy discs 2084# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2085# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2086# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2087# OS/2's system install, which has a completely different semantic 2088# ./install, which can be erroneously created by make from ./install.sh. 2089{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2090echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2091if test -z "$INSTALL"; then 2092if test "${ac_cv_path_install+set}" = set; then 2093 echo $ECHO_N "(cached) $ECHO_C" >&6 2094else 2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2096for as_dir in $PATH 2097do 2098 IFS=$as_save_IFS 2099 test -z "$as_dir" && as_dir=. 2100 # Account for people who put trailing slashes in PATH elements. 2101case $as_dir/ in 2102 ./ | .// | /cC/* | \ 2103 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2104 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2105 /usr/ucb/* ) ;; 2106 *) 2107 # OSF1 and SCO ODT 3.0 have their own names for install. 2108 # Don't use installbsd from OSF since it installs stuff as root 2109 # by default. 2110 for ac_prog in ginstall scoinst install; do 2111 for ac_exec_ext in '' $ac_executable_extensions; do 2112 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2113 if test $ac_prog = install && 2114 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2115 # AIX install. It has an incompatible calling convention. 2116 : 2117 elif test $ac_prog = install && 2118 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2119 # program-specific install script used by HP pwplus--don't use. 2120 : 2121 else 2122 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2123 break 3 2124 fi 2125 fi 2126 done 2127 done 2128 ;; 2129esac 2130done 2131IFS=$as_save_IFS 2132 2133 2134fi 2135 if test "${ac_cv_path_install+set}" = set; then 2136 INSTALL=$ac_cv_path_install 2137 else 2138 # As a last resort, use the slow shell script. Don't cache a 2139 # value for INSTALL within a source directory, because that will 2140 # break other packages using the cache if that directory is 2141 # removed, or if the value is a relative name. 2142 INSTALL=$ac_install_sh 2143 fi 2144fi 2145{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2146echo "${ECHO_T}$INSTALL" >&6; } 2147 2148# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2149# It thinks the first close brace ends the variable substitution. 2150test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2151 2152test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2153 2154test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2155 2156{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2157echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2158# Just in case 2159sleep 1 2160echo timestamp > conftest.file 2161# Do `set' in a subshell so we don't clobber the current shell's 2162# arguments. Must try -L first in case configure is actually a 2163# symlink; some systems play weird games with the mod time of symlinks 2164# (eg FreeBSD returns the mod time of the symlink's containing 2165# directory). 2166if ( 2167 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2168 if test "$*" = "X"; then 2169 # -L didn't work. 2170 set X `ls -t $srcdir/configure conftest.file` 2171 fi 2172 rm -f conftest.file 2173 if test "$*" != "X $srcdir/configure conftest.file" \ 2174 && test "$*" != "X conftest.file $srcdir/configure"; then 2175 2176 # If neither matched, then we have a broken ls. This can happen 2177 # if, for instance, CONFIG_SHELL is bash and it inherits a 2178 # broken ls alias from the environment. This has actually 2179 # happened. Such a system could not be considered "sane". 2180 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2181alias in your environment" >&5 2182echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2183alias in your environment" >&2;} 2184 { (exit 1); exit 1; }; } 2185 fi 2186 2187 test "$2" = conftest.file 2188 ) 2189then 2190 # Ok. 2191 : 2192else 2193 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2194Check your system clock" >&5 2195echo "$as_me: error: newly created file is older than distributed files! 2196Check your system clock" >&2;} 2197 { (exit 1); exit 1; }; } 2198fi 2199{ echo "$as_me:$LINENO: result: yes" >&5 2200echo "${ECHO_T}yes" >&6; } 2201test "$program_prefix" != NONE && 2202 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2203# Use a double $ so make ignores it. 2204test "$program_suffix" != NONE && 2205 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2206# Double any \ or $. echo might interpret backslashes. 2207# By default was `s,x,x', remove it if useless. 2208cat <<\_ACEOF >conftest.sed 2209s/[\\$]/&&/g;s/;s,x,x,$// 2210_ACEOF 2211program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2212rm -f conftest.sed 2213 2214# expand $ac_aux_dir to an absolute path 2215am_aux_dir=`cd $ac_aux_dir && pwd` 2216 2217test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2218# Use eval to expand $SHELL 2219if eval "$MISSING --run true"; then 2220 am_missing_run="$MISSING --run " 2221else 2222 am_missing_run= 2223 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2224echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2225fi 2226 2227{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2228echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2229if test -z "$MKDIR_P"; then 2230 if test "${ac_cv_path_mkdir+set}" = set; then 2231 echo $ECHO_N "(cached) $ECHO_C" >&6 2232else 2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2234for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2235do 2236 IFS=$as_save_IFS 2237 test -z "$as_dir" && as_dir=. 2238 for ac_prog in mkdir gmkdir; do 2239 for ac_exec_ext in '' $ac_executable_extensions; do 2240 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2241 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2242 'mkdir (GNU coreutils) '* | \ 2243 'mkdir (coreutils) '* | \ 2244 'mkdir (fileutils) '4.1*) 2245 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2246 break 3;; 2247 esac 2248 done 2249 done 2250done 2251IFS=$as_save_IFS 2252 2253fi 2254 2255 if test "${ac_cv_path_mkdir+set}" = set; then 2256 MKDIR_P="$ac_cv_path_mkdir -p" 2257 else 2258 # As a last resort, use the slow shell script. Don't cache a 2259 # value for MKDIR_P within a source directory, because that will 2260 # break other packages using the cache if that directory is 2261 # removed, or if the value is a relative name. 2262 test -d ./--version && rmdir ./--version 2263 MKDIR_P="$ac_install_sh -d" 2264 fi 2265fi 2266{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2267echo "${ECHO_T}$MKDIR_P" >&6; } 2268 2269mkdir_p="$MKDIR_P" 2270case $mkdir_p in 2271 [\\/$]* | ?:[\\/]*) ;; 2272 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2273esac 2274 2275for ac_prog in gawk mawk nawk awk 2276do 2277 # Extract the first word of "$ac_prog", so it can be a program name with args. 2278set dummy $ac_prog; ac_word=$2 2279{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2281if test "${ac_cv_prog_AWK+set}" = set; then 2282 echo $ECHO_N "(cached) $ECHO_C" >&6 2283else 2284 if test -n "$AWK"; then 2285 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2286else 2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2288for as_dir in $PATH 2289do 2290 IFS=$as_save_IFS 2291 test -z "$as_dir" && as_dir=. 2292 for ac_exec_ext in '' $ac_executable_extensions; do 2293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2294 ac_cv_prog_AWK="$ac_prog" 2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2296 break 2 2297 fi 2298done 2299done 2300IFS=$as_save_IFS 2301 2302fi 2303fi 2304AWK=$ac_cv_prog_AWK 2305if test -n "$AWK"; then 2306 { echo "$as_me:$LINENO: result: $AWK" >&5 2307echo "${ECHO_T}$AWK" >&6; } 2308else 2309 { echo "$as_me:$LINENO: result: no" >&5 2310echo "${ECHO_T}no" >&6; } 2311fi 2312 2313 2314 test -n "$AWK" && break 2315done 2316 2317{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2318echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2319set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2320if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2321 echo $ECHO_N "(cached) $ECHO_C" >&6 2322else 2323 cat >conftest.make <<\_ACEOF 2324SHELL = /bin/sh 2325all: 2326 @echo '@@@%%%=$(MAKE)=@@@%%%' 2327_ACEOF 2328# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2329case `${MAKE-make} -f conftest.make 2>/dev/null` in 2330 *@@@%%%=?*=@@@%%%*) 2331 eval ac_cv_prog_make_${ac_make}_set=yes;; 2332 *) 2333 eval ac_cv_prog_make_${ac_make}_set=no;; 2334esac 2335rm -f conftest.make 2336fi 2337if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2338 { echo "$as_me:$LINENO: result: yes" >&5 2339echo "${ECHO_T}yes" >&6; } 2340 SET_MAKE= 2341else 2342 { echo "$as_me:$LINENO: result: no" >&5 2343echo "${ECHO_T}no" >&6; } 2344 SET_MAKE="MAKE=${MAKE-make}" 2345fi 2346 2347rm -rf .tst 2>/dev/null 2348mkdir .tst 2>/dev/null 2349if test -d .tst; then 2350 am__leading_dot=. 2351else 2352 am__leading_dot=_ 2353fi 2354rmdir .tst 2>/dev/null 2355 2356if test "`cd $srcdir && pwd`" != "`pwd`"; then 2357 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2358 # is not polluted with repeated "-I." 2359 am__isrc=' -I$(srcdir)' 2360 # test to see if srcdir already configured 2361 if test -f $srcdir/config.status; then 2362 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2363echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2364 { (exit 1); exit 1; }; } 2365 fi 2366fi 2367 2368# test whether we have cygpath 2369if test -z "$CYGPATH_W"; then 2370 if (cygpath --version) >/dev/null 2>/dev/null; then 2371 CYGPATH_W='cygpath -w' 2372 else 2373 CYGPATH_W=echo 2374 fi 2375fi 2376 2377 2378# Define the identity of the package. 2379 PACKAGE='quesoglc' 2380 VERSION='0.7.2' 2381 2382 2383cat >>confdefs.h <<_ACEOF 2384#define PACKAGE "$PACKAGE" 2385_ACEOF 2386 2387 2388cat >>confdefs.h <<_ACEOF 2389#define VERSION "$VERSION" 2390_ACEOF 2391 2392# Some tools Automake needs. 2393 2394ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2395 2396 2397AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2398 2399 2400AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2401 2402 2403AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2404 2405 2406MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2407 2408install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2409 2410# Installed binaries are usually stripped using `strip' when the user 2411# run `make install-strip'. However `strip' might not be the right 2412# tool to use in cross-compilation environments, therefore Automake 2413# will honor the `STRIP' environment variable to overrule this program. 2414if test "$cross_compiling" != no; then 2415 if test -n "$ac_tool_prefix"; then 2416 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2417set dummy ${ac_tool_prefix}strip; ac_word=$2 2418{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2420if test "${ac_cv_prog_STRIP+set}" = set; then 2421 echo $ECHO_N "(cached) $ECHO_C" >&6 2422else 2423 if test -n "$STRIP"; then 2424 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2425else 2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2427for as_dir in $PATH 2428do 2429 IFS=$as_save_IFS 2430 test -z "$as_dir" && as_dir=. 2431 for ac_exec_ext in '' $ac_executable_extensions; do 2432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2433 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2435 break 2 2436 fi 2437done 2438done 2439IFS=$as_save_IFS 2440 2441fi 2442fi 2443STRIP=$ac_cv_prog_STRIP 2444if test -n "$STRIP"; then 2445 { echo "$as_me:$LINENO: result: $STRIP" >&5 2446echo "${ECHO_T}$STRIP" >&6; } 2447else 2448 { echo "$as_me:$LINENO: result: no" >&5 2449echo "${ECHO_T}no" >&6; } 2450fi 2451 2452 2453fi 2454if test -z "$ac_cv_prog_STRIP"; then 2455 ac_ct_STRIP=$STRIP 2456 # Extract the first word of "strip", so it can be a program name with args. 2457set dummy strip; ac_word=$2 2458{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2460if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2461 echo $ECHO_N "(cached) $ECHO_C" >&6 2462else 2463 if test -n "$ac_ct_STRIP"; then 2464 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2465else 2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2467for as_dir in $PATH 2468do 2469 IFS=$as_save_IFS 2470 test -z "$as_dir" && as_dir=. 2471 for ac_exec_ext in '' $ac_executable_extensions; do 2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2473 ac_cv_prog_ac_ct_STRIP="strip" 2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2475 break 2 2476 fi 2477done 2478done 2479IFS=$as_save_IFS 2480 2481fi 2482fi 2483ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2484if test -n "$ac_ct_STRIP"; then 2485 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2486echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2487else 2488 { echo "$as_me:$LINENO: result: no" >&5 2489echo "${ECHO_T}no" >&6; } 2490fi 2491 2492 if test "x$ac_ct_STRIP" = x; then 2493 STRIP=":" 2494 else 2495 case $cross_compiling:$ac_tool_warned in 2496yes:) 2497{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2498whose name does not start with the host triplet. If you think this 2499configuration is useful to you, please write to autoconf@gnu.org." >&5 2500echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2501whose name does not start with the host triplet. If you think this 2502configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2503ac_tool_warned=yes ;; 2504esac 2505 STRIP=$ac_ct_STRIP 2506 fi 2507else 2508 STRIP="$ac_cv_prog_STRIP" 2509fi 2510 2511fi 2512INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2513 2514# We need awk for the "check" target. The system "awk" is bad on 2515# some platforms. 2516# Always define AMTAR for backward compatibility. 2517 2518AMTAR=${AMTAR-"${am_missing_run}tar"} 2519 2520am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2521 2522 2523 2524 2525 2526 2527 2528# Checks for programs. 2529# -------------------- 2530 2531ac_ext=c 2532ac_cpp='$CPP $CPPFLAGS' 2533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2535ac_compiler_gnu=$ac_cv_c_compiler_gnu 2536if test -n "$ac_tool_prefix"; then 2537 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2538set dummy ${ac_tool_prefix}gcc; ac_word=$2 2539{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2541if test "${ac_cv_prog_CC+set}" = set; then 2542 echo $ECHO_N "(cached) $ECHO_C" >&6 2543else 2544 if test -n "$CC"; then 2545 ac_cv_prog_CC="$CC" # Let the user override the test. 2546else 2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2548for as_dir in $PATH 2549do 2550 IFS=$as_save_IFS 2551 test -z "$as_dir" && as_dir=. 2552 for ac_exec_ext in '' $ac_executable_extensions; do 2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2554 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2556 break 2 2557 fi 2558done 2559done 2560IFS=$as_save_IFS 2561 2562fi 2563fi 2564CC=$ac_cv_prog_CC 2565if test -n "$CC"; then 2566 { echo "$as_me:$LINENO: result: $CC" >&5 2567echo "${ECHO_T}$CC" >&6; } 2568else 2569 { echo "$as_me:$LINENO: result: no" >&5 2570echo "${ECHO_T}no" >&6; } 2571fi 2572 2573 2574fi 2575if test -z "$ac_cv_prog_CC"; then 2576 ac_ct_CC=$CC 2577 # Extract the first word of "gcc", so it can be a program name with args. 2578set dummy gcc; ac_word=$2 2579{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2581if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2582 echo $ECHO_N "(cached) $ECHO_C" >&6 2583else 2584 if test -n "$ac_ct_CC"; then 2585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2586else 2587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2588for as_dir in $PATH 2589do 2590 IFS=$as_save_IFS 2591 test -z "$as_dir" && as_dir=. 2592 for ac_exec_ext in '' $ac_executable_extensions; do 2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2594 ac_cv_prog_ac_ct_CC="gcc" 2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2596 break 2 2597 fi 2598done 2599done 2600IFS=$as_save_IFS 2601 2602fi 2603fi 2604ac_ct_CC=$ac_cv_prog_ac_ct_CC 2605if test -n "$ac_ct_CC"; then 2606 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2607echo "${ECHO_T}$ac_ct_CC" >&6; } 2608else 2609 { echo "$as_me:$LINENO: result: no" >&5 2610echo "${ECHO_T}no" >&6; } 2611fi 2612 2613 if test "x$ac_ct_CC" = x; then 2614 CC="" 2615 else 2616 case $cross_compiling:$ac_tool_warned in 2617yes:) 2618{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2619whose name does not start with the host triplet. If you think this 2620configuration is useful to you, please write to autoconf@gnu.org." >&5 2621echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2622whose name does not start with the host triplet. If you think this 2623configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2624ac_tool_warned=yes ;; 2625esac 2626 CC=$ac_ct_CC 2627 fi 2628else 2629 CC="$ac_cv_prog_CC" 2630fi 2631 2632if test -z "$CC"; then 2633 if test -n "$ac_tool_prefix"; then 2634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2635set dummy ${ac_tool_prefix}cc; ac_word=$2 2636{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2638if test "${ac_cv_prog_CC+set}" = set; then 2639 echo $ECHO_N "(cached) $ECHO_C" >&6 2640else 2641 if test -n "$CC"; then 2642 ac_cv_prog_CC="$CC" # Let the user override the test. 2643else 2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2645for as_dir in $PATH 2646do 2647 IFS=$as_save_IFS 2648 test -z "$as_dir" && as_dir=. 2649 for ac_exec_ext in '' $ac_executable_extensions; do 2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2651 ac_cv_prog_CC="${ac_tool_prefix}cc" 2652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2653 break 2 2654 fi 2655done 2656done 2657IFS=$as_save_IFS 2658 2659fi 2660fi 2661CC=$ac_cv_prog_CC 2662if test -n "$CC"; then 2663 { echo "$as_me:$LINENO: result: $CC" >&5 2664echo "${ECHO_T}$CC" >&6; } 2665else 2666 { echo "$as_me:$LINENO: result: no" >&5 2667echo "${ECHO_T}no" >&6; } 2668fi 2669 2670 2671 fi 2672fi 2673if test -z "$CC"; then 2674 # Extract the first word of "cc", so it can be a program name with args. 2675set dummy cc; ac_word=$2 2676{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2678if test "${ac_cv_prog_CC+set}" = set; then 2679 echo $ECHO_N "(cached) $ECHO_C" >&6 2680else 2681 if test -n "$CC"; then 2682 ac_cv_prog_CC="$CC" # Let the user override the test. 2683else 2684 ac_prog_rejected=no 2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2686for as_dir in $PATH 2687do 2688 IFS=$as_save_IFS 2689 test -z "$as_dir" && as_dir=. 2690 for ac_exec_ext in '' $ac_executable_extensions; do 2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2693 ac_prog_rejected=yes 2694 continue 2695 fi 2696 ac_cv_prog_CC="cc" 2697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2698 break 2 2699 fi 2700done 2701done 2702IFS=$as_save_IFS 2703 2704if test $ac_prog_rejected = yes; then 2705 # We found a bogon in the path, so make sure we never use it. 2706 set dummy $ac_cv_prog_CC 2707 shift 2708 if test $# != 0; then 2709 # We chose a different compiler from the bogus one. 2710 # However, it has the same basename, so the bogon will be chosen 2711 # first if we set CC to just the basename; use the full file name. 2712 shift 2713 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2714 fi 2715fi 2716fi 2717fi 2718CC=$ac_cv_prog_CC 2719if test -n "$CC"; then 2720 { echo "$as_me:$LINENO: result: $CC" >&5 2721echo "${ECHO_T}$CC" >&6; } 2722else 2723 { echo "$as_me:$LINENO: result: no" >&5 2724echo "${ECHO_T}no" >&6; } 2725fi 2726 2727 2728fi 2729if test -z "$CC"; then 2730 if test -n "$ac_tool_prefix"; then 2731 for ac_prog in cl.exe 2732 do 2733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2734set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2735{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2737if test "${ac_cv_prog_CC+set}" = set; then 2738 echo $ECHO_N "(cached) $ECHO_C" >&6 2739else 2740 if test -n "$CC"; then 2741 ac_cv_prog_CC="$CC" # Let the user override the test. 2742else 2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2744for as_dir in $PATH 2745do 2746 IFS=$as_save_IFS 2747 test -z "$as_dir" && as_dir=. 2748 for ac_exec_ext in '' $ac_executable_extensions; do 2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2752 break 2 2753 fi 2754done 2755done 2756IFS=$as_save_IFS 2757 2758fi 2759fi 2760CC=$ac_cv_prog_CC 2761if test -n "$CC"; then 2762 { echo "$as_me:$LINENO: result: $CC" >&5 2763echo "${ECHO_T}$CC" >&6; } 2764else 2765 { echo "$as_me:$LINENO: result: no" >&5 2766echo "${ECHO_T}no" >&6; } 2767fi 2768 2769 2770 test -n "$CC" && break 2771 done 2772fi 2773if test -z "$CC"; then 2774 ac_ct_CC=$CC 2775 for ac_prog in cl.exe 2776do 2777 # Extract the first word of "$ac_prog", so it can be a program name with args. 2778set dummy $ac_prog; ac_word=$2 2779{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2781if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2782 echo $ECHO_N "(cached) $ECHO_C" >&6 2783else 2784 if test -n "$ac_ct_CC"; then 2785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2786else 2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2788for as_dir in $PATH 2789do 2790 IFS=$as_save_IFS 2791 test -z "$as_dir" && as_dir=. 2792 for ac_exec_ext in '' $ac_executable_extensions; do 2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2794 ac_cv_prog_ac_ct_CC="$ac_prog" 2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2796 break 2 2797 fi 2798done 2799done 2800IFS=$as_save_IFS 2801 2802fi 2803fi 2804ac_ct_CC=$ac_cv_prog_ac_ct_CC 2805if test -n "$ac_ct_CC"; then 2806 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2807echo "${ECHO_T}$ac_ct_CC" >&6; } 2808else 2809 { echo "$as_me:$LINENO: result: no" >&5 2810echo "${ECHO_T}no" >&6; } 2811fi 2812 2813 2814 test -n "$ac_ct_CC" && break 2815done 2816 2817 if test "x$ac_ct_CC" = x; then 2818 CC="" 2819 else 2820 case $cross_compiling:$ac_tool_warned in 2821yes:) 2822{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2823whose name does not start with the host triplet. If you think this 2824configuration is useful to you, please write to autoconf@gnu.org." >&5 2825echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2826whose name does not start with the host triplet. If you think this 2827configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2828ac_tool_warned=yes ;; 2829esac 2830 CC=$ac_ct_CC 2831 fi 2832fi 2833 2834fi 2835 2836 2837test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2838See \`config.log' for more details." >&5 2839echo "$as_me: error: no acceptable C compiler found in \$PATH 2840See \`config.log' for more details." >&2;} 2841 { (exit 1); exit 1; }; } 2842 2843# Provide some information about the compiler. 2844echo "$as_me:$LINENO: checking for C compiler version" >&5 2845ac_compiler=`set X $ac_compile; echo $2` 2846{ (ac_try="$ac_compiler --version >&5" 2847case "(($ac_try" in 2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2849 *) ac_try_echo=$ac_try;; 2850esac 2851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2852 (eval "$ac_compiler --version >&5") 2>&5 2853 ac_status=$? 2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2855 (exit $ac_status); } 2856{ (ac_try="$ac_compiler -v >&5" 2857case "(($ac_try" in 2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2859 *) ac_try_echo=$ac_try;; 2860esac 2861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2862 (eval "$ac_compiler -v >&5") 2>&5 2863 ac_status=$? 2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2865 (exit $ac_status); } 2866{ (ac_try="$ac_compiler -V >&5" 2867case "(($ac_try" in 2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2869 *) ac_try_echo=$ac_try;; 2870esac 2871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2872 (eval "$ac_compiler -V >&5") 2>&5 2873 ac_status=$? 2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2875 (exit $ac_status); } 2876 2877cat >conftest.$ac_ext <<_ACEOF 2878/* confdefs.h. */ 2879_ACEOF 2880cat confdefs.h >>conftest.$ac_ext 2881cat >>conftest.$ac_ext <<_ACEOF 2882/* end confdefs.h. */ 2883 2884int 2885main () 2886{ 2887 2888 ; 2889 return 0; 2890} 2891_ACEOF 2892ac_clean_files_save=$ac_clean_files 2893ac_clean_files="$ac_clean_files a.out a.exe b.out" 2894# Try to create an executable without -o first, disregard a.out. 2895# It will help us diagnose broken compilers, and finding out an intuition 2896# of exeext. 2897{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2898echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2899ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2900# 2901# List of possible output files, starting from the most likely. 2902# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2903# only as a last resort. b.out is created by i960 compilers. 2904ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2905# 2906# The IRIX 6 linker writes into existing files which may not be 2907# executable, retaining their permissions. Remove them first so a 2908# subsequent execution test works. 2909ac_rmfiles= 2910for ac_file in $ac_files 2911do 2912 case $ac_file in 2913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2914 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2915 esac 2916done 2917rm -f $ac_rmfiles 2918 2919if { (ac_try="$ac_link_default" 2920case "(($ac_try" in 2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2922 *) ac_try_echo=$ac_try;; 2923esac 2924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2925 (eval "$ac_link_default") 2>&5 2926 ac_status=$? 2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2928 (exit $ac_status); }; then 2929 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2930# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2931# in a Makefile. We should not override ac_cv_exeext if it was cached, 2932# so that the user can short-circuit this test for compilers unknown to 2933# Autoconf. 2934for ac_file in $ac_files '' 2935do 2936 test -f "$ac_file" || continue 2937 case $ac_file in 2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2939 ;; 2940 [ab].out ) 2941 # We found the default executable, but exeext='' is most 2942 # certainly right. 2943 break;; 2944 *.* ) 2945 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2946 then :; else 2947 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2948 fi 2949 # We set ac_cv_exeext here because the later test for it is not 2950 # safe: cross compilers may not add the suffix if given an `-o' 2951 # argument, so we may need to know it at that point already. 2952 # Even if this section looks crufty: it has the advantage of 2953 # actually working. 2954 break;; 2955 * ) 2956 break;; 2957 esac 2958done 2959test "$ac_cv_exeext" = no && ac_cv_exeext= 2960 2961else 2962 ac_file='' 2963fi 2964 2965{ echo "$as_me:$LINENO: result: $ac_file" >&5 2966echo "${ECHO_T}$ac_file" >&6; } 2967if test -z "$ac_file"; then 2968 echo "$as_me: failed program was:" >&5 2969sed 's/^/| /' conftest.$ac_ext >&5 2970 2971{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2972See \`config.log' for more details." >&5 2973echo "$as_me: error: C compiler cannot create executables 2974See \`config.log' for more details." >&2;} 2975 { (exit 77); exit 77; }; } 2976fi 2977 2978ac_exeext=$ac_cv_exeext 2979 2980# Check that the compiler produces executables we can run. If not, either 2981# the compiler is broken, or we cross compile. 2982{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2983echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2984# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2985# If not cross compiling, check that we can run a simple program. 2986if test "$cross_compiling" != yes; then 2987 if { ac_try='./$ac_file' 2988 { (case "(($ac_try" in 2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2990 *) ac_try_echo=$ac_try;; 2991esac 2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2993 (eval "$ac_try") 2>&5 2994 ac_status=$? 2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2996 (exit $ac_status); }; }; then 2997 cross_compiling=no 2998 else 2999 if test "$cross_compiling" = maybe; then 3000 cross_compiling=yes 3001 else 3002 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3003If you meant to cross compile, use \`--host'. 3004See \`config.log' for more details." >&5 3005echo "$as_me: error: cannot run C compiled programs. 3006If you meant to cross compile, use \`--host'. 3007See \`config.log' for more details." >&2;} 3008 { (exit 1); exit 1; }; } 3009 fi 3010 fi 3011fi 3012{ echo "$as_me:$LINENO: result: yes" >&5 3013echo "${ECHO_T}yes" >&6; } 3014 3015rm -f a.out a.exe conftest$ac_cv_exeext b.out 3016ac_clean_files=$ac_clean_files_save 3017# Check that the compiler produces executables we can run. If not, either 3018# the compiler is broken, or we cross compile. 3019{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3020echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3021{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3022echo "${ECHO_T}$cross_compiling" >&6; } 3023 3024{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3025echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3026if { (ac_try="$ac_link" 3027case "(($ac_try" in 3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3029 *) ac_try_echo=$ac_try;; 3030esac 3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3032 (eval "$ac_link") 2>&5 3033 ac_status=$? 3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3035 (exit $ac_status); }; then 3036 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3037# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3038# work properly (i.e., refer to `conftest.exe'), while it won't with 3039# `rm'. 3040for ac_file in conftest.exe conftest conftest.*; do 3041 test -f "$ac_file" || continue 3042 case $ac_file in 3043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3044 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3045 break;; 3046 * ) break;; 3047 esac 3048done 3049else 3050 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3051See \`config.log' for more details." >&5 3052echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3053See \`config.log' for more details." >&2;} 3054 { (exit 1); exit 1; }; } 3055fi 3056 3057rm -f conftest$ac_cv_exeext 3058{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3059echo "${ECHO_T}$ac_cv_exeext" >&6; } 3060 3061rm -f conftest.$ac_ext 3062EXEEXT=$ac_cv_exeext 3063ac_exeext=$EXEEXT 3064{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3065echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3066if test "${ac_cv_objext+set}" = set; then 3067 echo $ECHO_N "(cached) $ECHO_C" >&6 3068else 3069 cat >conftest.$ac_ext <<_ACEOF 3070/* confdefs.h. */ 3071_ACEOF 3072cat confdefs.h >>conftest.$ac_ext 3073cat >>conftest.$ac_ext <<_ACEOF 3074/* end confdefs.h. */ 3075 3076int 3077main () 3078{ 3079 3080 ; 3081 return 0; 3082} 3083_ACEOF 3084rm -f conftest.o conftest.obj 3085if { (ac_try="$ac_compile" 3086case "(($ac_try" in 3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3088 *) ac_try_echo=$ac_try;; 3089esac 3090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3091 (eval "$ac_compile") 2>&5 3092 ac_status=$? 3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3094 (exit $ac_status); }; then 3095 for ac_file in conftest.o conftest.obj conftest.*; do 3096 test -f "$ac_file" || continue; 3097 case $ac_file in 3098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3099 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3100 break;; 3101 esac 3102done 3103else 3104 echo "$as_me: failed program was:" >&5 3105sed 's/^/| /' conftest.$ac_ext >&5 3106 3107{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3108See \`config.log' for more details." >&5 3109echo "$as_me: error: cannot compute suffix of object files: cannot compile 3110See \`config.log' for more details." >&2;} 3111 { (exit 1); exit 1; }; } 3112fi 3113 3114rm -f conftest.$ac_cv_objext conftest.$ac_ext 3115fi 3116{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3117echo "${ECHO_T}$ac_cv_objext" >&6; } 3118OBJEXT=$ac_cv_objext 3119ac_objext=$OBJEXT 3120{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3121echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3122if test "${ac_cv_c_compiler_gnu+set}" = set; then 3123 echo $ECHO_N "(cached) $ECHO_C" >&6 3124else 3125 cat >conftest.$ac_ext <<_ACEOF 3126/* confdefs.h. */ 3127_ACEOF 3128cat confdefs.h >>conftest.$ac_ext 3129cat >>conftest.$ac_ext <<_ACEOF 3130/* end confdefs.h. */ 3131 3132int 3133main () 3134{ 3135#ifndef __GNUC__ 3136 choke me 3137#endif 3138 3139 ; 3140 return 0; 3141} 3142_ACEOF 3143rm -f conftest.$ac_objext 3144if { (ac_try="$ac_compile" 3145case "(($ac_try" in 3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3147 *) ac_try_echo=$ac_try;; 3148esac 3149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3150 (eval "$ac_compile") 2>conftest.er1 3151 ac_status=$? 3152 grep -v '^ *+' conftest.er1 >conftest.err 3153 rm -f conftest.er1 3154 cat conftest.err >&5 3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3156 (exit $ac_status); } && { 3157 test -z "$ac_c_werror_flag" || 3158 test ! -s conftest.err 3159 } && test -s conftest.$ac_objext; then 3160 ac_compiler_gnu=yes 3161else 3162 echo "$as_me: failed program was:" >&5 3163sed 's/^/| /' conftest.$ac_ext >&5 3164 3165 ac_compiler_gnu=no 3166fi 3167 3168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3169ac_cv_c_compiler_gnu=$ac_compiler_gnu 3170 3171fi 3172{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3173echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3174GCC=`test $ac_compiler_gnu = yes && echo yes` 3175ac_test_CFLAGS=${CFLAGS+set} 3176ac_save_CFLAGS=$CFLAGS 3177{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3178echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3179if test "${ac_cv_prog_cc_g+set}" = set; then 3180 echo $ECHO_N "(cached) $ECHO_C" >&6 3181else 3182 ac_save_c_werror_flag=$ac_c_werror_flag 3183 ac_c_werror_flag=yes 3184 ac_cv_prog_cc_g=no 3185 CFLAGS="-g" 3186 cat >conftest.$ac_ext <<_ACEOF 3187/* confdefs.h. */ 3188_ACEOF 3189cat confdefs.h >>conftest.$ac_ext 3190cat >>conftest.$ac_ext <<_ACEOF 3191/* end confdefs.h. */ 3192 3193int 3194main () 3195{ 3196 3197 ; 3198 return 0; 3199} 3200_ACEOF 3201rm -f conftest.$ac_objext 3202if { (ac_try="$ac_compile" 3203case "(($ac_try" in 3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3205 *) ac_try_echo=$ac_try;; 3206esac 3207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3208 (eval "$ac_compile") 2>conftest.er1 3209 ac_status=$? 3210 grep -v '^ *+' conftest.er1 >conftest.err 3211 rm -f conftest.er1 3212 cat conftest.err >&5 3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3214 (exit $ac_status); } && { 3215 test -z "$ac_c_werror_flag" || 3216 test ! -s conftest.err 3217 } && test -s conftest.$ac_objext; then 3218 ac_cv_prog_cc_g=yes 3219else 3220 echo "$as_me: failed program was:" >&5 3221sed 's/^/| /' conftest.$ac_ext >&5 3222 3223 CFLAGS="" 3224 cat >conftest.$ac_ext <<_ACEOF 3225/* confdefs.h. */ 3226_ACEOF 3227cat confdefs.h >>conftest.$ac_ext 3228cat >>conftest.$ac_ext <<_ACEOF 3229/* end confdefs.h. */ 3230 3231int 3232main () 3233{ 3234 3235 ; 3236 return 0; 3237} 3238_ACEOF 3239rm -f conftest.$ac_objext 3240if { (ac_try="$ac_compile" 3241case "(($ac_try" in 3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3243 *) ac_try_echo=$ac_try;; 3244esac 3245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3246 (eval "$ac_compile") 2>conftest.er1 3247 ac_status=$? 3248 grep -v '^ *+' conftest.er1 >conftest.err 3249 rm -f conftest.er1 3250 cat conftest.err >&5 3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3252 (exit $ac_status); } && { 3253 test -z "$ac_c_werror_flag" || 3254 test ! -s conftest.err 3255 } && test -s conftest.$ac_objext; then 3256 : 3257else 3258 echo "$as_me: failed program was:" >&5 3259sed 's/^/| /' conftest.$ac_ext >&5 3260 3261 ac_c_werror_flag=$ac_save_c_werror_flag 3262 CFLAGS="-g" 3263 cat >conftest.$ac_ext <<_ACEOF 3264/* confdefs.h. */ 3265_ACEOF 3266cat confdefs.h >>conftest.$ac_ext 3267cat >>conftest.$ac_ext <<_ACEOF 3268/* end confdefs.h. */ 3269 3270int 3271main () 3272{ 3273 3274 ; 3275 return 0; 3276} 3277_ACEOF 3278rm -f conftest.$ac_objext 3279if { (ac_try="$ac_compile" 3280case "(($ac_try" in 3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3282 *) ac_try_echo=$ac_try;; 3283esac 3284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3285 (eval "$ac_compile") 2>conftest.er1 3286 ac_status=$? 3287 grep -v '^ *+' conftest.er1 >conftest.err 3288 rm -f conftest.er1 3289 cat conftest.err >&5 3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3291 (exit $ac_status); } && { 3292 test -z "$ac_c_werror_flag" || 3293 test ! -s conftest.err 3294 } && test -s conftest.$ac_objext; then 3295 ac_cv_prog_cc_g=yes 3296else 3297 echo "$as_me: failed program was:" >&5 3298sed 's/^/| /' conftest.$ac_ext >&5 3299 3300 3301fi 3302 3303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3304fi 3305 3306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3307fi 3308 3309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3310 ac_c_werror_flag=$ac_save_c_werror_flag 3311fi 3312{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3313echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3314if test "$ac_test_CFLAGS" = set; then 3315 CFLAGS=$ac_save_CFLAGS 3316elif test $ac_cv_prog_cc_g = yes; then 3317 if test "$GCC" = yes; then 3318 CFLAGS="-g -O2" 3319 else 3320 CFLAGS="-g" 3321 fi 3322else 3323 if test "$GCC" = yes; then 3324 CFLAGS="-O2" 3325 else 3326 CFLAGS= 3327 fi 3328fi 3329{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3330echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3331if test "${ac_cv_prog_cc_c89+set}" = set; then 3332 echo $ECHO_N "(cached) $ECHO_C" >&6 3333else 3334 ac_cv_prog_cc_c89=no 3335ac_save_CC=$CC 3336cat >conftest.$ac_ext <<_ACEOF 3337/* confdefs.h. */ 3338_ACEOF 3339cat confdefs.h >>conftest.$ac_ext 3340cat >>conftest.$ac_ext <<_ACEOF 3341/* end confdefs.h. */ 3342#include <stdarg.h> 3343#include <stdio.h> 3344#include <sys/types.h> 3345#include <sys/stat.h> 3346/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3347struct buf { int x; }; 3348FILE * (*rcsopen) (struct buf *, struct stat *, int); 3349static char *e (p, i) 3350 char **p; 3351 int i; 3352{ 3353 return p[i]; 3354} 3355static char *f (char * (*g) (char **, int), char **p, ...) 3356{ 3357 char *s; 3358 va_list v; 3359 va_start (v,p); 3360 s = g (p, va_arg (v,int)); 3361 va_end (v); 3362 return s; 3363} 3364 3365/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3366 function prototypes and stuff, but not '\xHH' hex character constants. 3367 These don't provoke an error unfortunately, instead are silently treated 3368 as 'x'. The following induces an error, until -std is added to get 3369 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3370 array size at least. It's necessary to write '\x00'==0 to get something 3371 that's true only with -std. */ 3372int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3373 3374/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3375 inside strings and character constants. */ 3376#define FOO(x) 'x' 3377int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3378 3379int test (int i, double x); 3380struct s1 {int (*f) (int a);}; 3381struct s2 {int (*f) (double a);}; 3382int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3383int argc; 3384char **argv; 3385int 3386main () 3387{ 3388return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3389 ; 3390 return 0; 3391} 3392_ACEOF 3393for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3394 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3395do 3396 CC="$ac_save_CC $ac_arg" 3397 rm -f conftest.$ac_objext 3398if { (ac_try="$ac_compile" 3399case "(($ac_try" in 3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3401 *) ac_try_echo=$ac_try;; 3402esac 3403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3404 (eval "$ac_compile") 2>conftest.er1 3405 ac_status=$? 3406 grep -v '^ *+' conftest.er1 >conftest.err 3407 rm -f conftest.er1 3408 cat conftest.err >&5 3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3410 (exit $ac_status); } && { 3411 test -z "$ac_c_werror_flag" || 3412 test ! -s conftest.err 3413 } && test -s conftest.$ac_objext; then 3414 ac_cv_prog_cc_c89=$ac_arg 3415else 3416 echo "$as_me: failed program was:" >&5 3417sed 's/^/| /' conftest.$ac_ext >&5 3418 3419 3420fi 3421 3422rm -f core conftest.err conftest.$ac_objext 3423 test "x$ac_cv_prog_cc_c89" != "xno" && break 3424done 3425rm -f conftest.$ac_ext 3426CC=$ac_save_CC 3427 3428fi 3429# AC_CACHE_VAL 3430case "x$ac_cv_prog_cc_c89" in 3431 x) 3432 { echo "$as_me:$LINENO: result: none needed" >&5 3433echo "${ECHO_T}none needed" >&6; } ;; 3434 xno) 3435 { echo "$as_me:$LINENO: result: unsupported" >&5 3436echo "${ECHO_T}unsupported" >&6; } ;; 3437 *) 3438 CC="$CC $ac_cv_prog_cc_c89" 3439 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3440echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3441esac 3442 3443 3444ac_ext=c 3445ac_cpp='$CPP $CPPFLAGS' 3446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3448ac_compiler_gnu=$ac_cv_c_compiler_gnu 3449DEPDIR="${am__leading_dot}deps" 3450 3451ac_config_commands="$ac_config_commands depfiles" 3452 3453 3454am_make=${MAKE-make} 3455cat > confinc << 'END' 3456am__doit: 3457 @echo done 3458.PHONY: am__doit 3459END 3460# If we don't find an include directive, just comment out the code. 3461{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3462echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3463am__include="#" 3464am__quote= 3465_am_result=none 3466# First try GNU make style include. 3467echo "include confinc" > confmf 3468# We grep out `Entering directory' and `Leaving directory' 3469# messages which can occur if `w' ends up in MAKEFLAGS. 3470# In particular we don't look at `^make:' because GNU make might 3471# be invoked under some other name (usually "gmake"), in which 3472# case it prints its new name instead of `make'. 3473if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3474 am__include=include 3475 am__quote= 3476 _am_result=GNU 3477fi 3478# Now try BSD make style include. 3479if test "$am__include" = "#"; then 3480 echo '.include "confinc"' > confmf 3481 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3482 am__include=.include 3483 am__quote="\"" 3484 _am_result=BSD 3485 fi 3486fi 3487 3488 3489{ echo "$as_me:$LINENO: result: $_am_result" >&5 3490echo "${ECHO_T}$_am_result" >&6; } 3491rm -f confinc confmf 3492 3493# Check whether --enable-dependency-tracking was given. 3494if test "${enable_dependency_tracking+set}" = set; then 3495 enableval=$enable_dependency_tracking; 3496fi 3497 3498if test "x$enable_dependency_tracking" != xno; then 3499 am_depcomp="$ac_aux_dir/depcomp" 3500 AMDEPBACKSLASH='\' 3501fi 3502 if test "x$enable_dependency_tracking" != xno; then 3503 AMDEP_TRUE= 3504 AMDEP_FALSE='#' 3505else 3506 AMDEP_TRUE='#' 3507 AMDEP_FALSE= 3508fi 3509 3510 3511 3512depcc="$CC" am_compiler_list= 3513 3514{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3515echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3516if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3517 echo $ECHO_N "(cached) $ECHO_C" >&6 3518else 3519 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3520 # We make a subdir and do the tests there. Otherwise we can end up 3521 # making bogus files that we don't know about and never remove. For 3522 # instance it was reported that on HP-UX the gcc test will end up 3523 # making a dummy file named `D' -- because `-MD' means `put the output 3524 # in D'. 3525 mkdir conftest.dir 3526 # Copy depcomp to subdir because otherwise we won't find it if we're 3527 # using a relative directory. 3528 cp "$am_depcomp" conftest.dir 3529 cd conftest.dir 3530 # We will build objects and dependencies in a subdirectory because 3531 # it helps to detect inapplicable dependency modes. For instance 3532 # both Tru64's cc and ICC support -MD to output dependencies as a 3533 # side effect of compilation, but ICC will put the dependencies in 3534 # the current directory while Tru64 will put them in the object 3535 # directory. 3536 mkdir sub 3537 3538 am_cv_CC_dependencies_compiler_type=none 3539 if test "$am_compiler_list" = ""; then 3540 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3541 fi 3542 for depmode in $am_compiler_list; do 3543 # Setup a source with many dependencies, because some compilers 3544 # like to wrap large dependency lists on column 80 (with \), and 3545 # we should not choose a depcomp mode which is confused by this. 3546 # 3547 # We need to recreate these files for each test, as the compiler may 3548 # overwrite some of them when testing with obscure command lines. 3549 # This happens at least with the AIX C compiler. 3550 : > sub/conftest.c 3551 for i in 1 2 3 4 5 6; do 3552 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3553 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3554 # Solaris 8's {/usr,}/bin/sh. 3555 touch sub/conftst$i.h 3556 done 3557 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3558 3559 case $depmode in 3560 nosideeffect) 3561 # after this tag, mechanisms are not by side-effect, so they'll 3562 # only be used when explicitly requested 3563 if test "x$enable_dependency_tracking" = xyes; then 3564 continue 3565 else 3566 break 3567 fi 3568 ;; 3569 none) break ;; 3570 esac 3571 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3572 # mode. It turns out that the SunPro C++ compiler does not properly 3573 # handle `-M -o', and we need to detect this. 3574 if depmode=$depmode \ 3575 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3576 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3577 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3578 >/dev/null 2>conftest.err && 3579 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3580 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3581 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3582 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3583 # icc doesn't choke on unknown options, it will just issue warnings 3584 # or remarks (even with -Werror). So we grep stderr for any message 3585 # that says an option was ignored or not supported. 3586 # When given -MP, icc 7.0 and 7.1 complain thusly: 3587 # icc: Command line warning: ignoring option '-M'; no argument required 3588 # The diagnosis changed in icc 8.0: 3589 # icc: Command line remark: option '-MP' not supported 3590 if (grep 'ignoring option' conftest.err || 3591 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3592 am_cv_CC_dependencies_compiler_type=$depmode 3593 break 3594 fi 3595 fi 3596 done 3597 3598 cd .. 3599 rm -rf conftest.dir 3600else 3601 am_cv_CC_dependencies_compiler_type=none 3602fi 3603 3604fi 3605{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3606echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3607CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3608 3609 if 3610 test "x$enable_dependency_tracking" != xno \ 3611 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3612 am__fastdepCC_TRUE= 3613 am__fastdepCC_FALSE='#' 3614else 3615 am__fastdepCC_TRUE='#' 3616 am__fastdepCC_FALSE= 3617fi 3618 3619 3620if test "x$CC" != xcc; then 3621 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 3622echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } 3623else 3624 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 3625echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } 3626fi 3627set dummy $CC; ac_cc=`echo $2 | 3628 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3629if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then 3630 echo $ECHO_N "(cached) $ECHO_C" >&6 3631else 3632 cat >conftest.$ac_ext <<_ACEOF 3633/* confdefs.h. */ 3634_ACEOF 3635cat confdefs.h >>conftest.$ac_ext 3636cat >>conftest.$ac_ext <<_ACEOF 3637/* end confdefs.h. */ 3638 3639int 3640main () 3641{ 3642 3643 ; 3644 return 0; 3645} 3646_ACEOF 3647# Make sure it works both with $CC and with simple cc. 3648# We do the test twice because some compilers refuse to overwrite an 3649# existing .o file with -o, though they will create one. 3650ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3651rm -f conftest2.* 3652if { (case "(($ac_try" in 3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3654 *) ac_try_echo=$ac_try;; 3655esac 3656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3657 (eval "$ac_try") 2>&5 3658 ac_status=$? 3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3660 (exit $ac_status); } && 3661 test -f conftest2.$ac_objext && { (case "(($ac_try" in 3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3663 *) ac_try_echo=$ac_try;; 3664esac 3665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3666 (eval "$ac_try") 2>&5 3667 ac_status=$? 3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3669 (exit $ac_status); }; 3670then 3671 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 3672 if test "x$CC" != xcc; then 3673 # Test first that cc exists at all. 3674 if { ac_try='cc -c conftest.$ac_ext >&5' 3675 { (case "(($ac_try" in 3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3677 *) ac_try_echo=$ac_try;; 3678esac 3679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3680 (eval "$ac_try") 2>&5 3681 ac_status=$? 3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3683 (exit $ac_status); }; }; then 3684 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3685 rm -f conftest2.* 3686 if { (case "(($ac_try" in 3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3688 *) ac_try_echo=$ac_try;; 3689esac 3690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3691 (eval "$ac_try") 2>&5 3692 ac_status=$? 3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3694 (exit $ac_status); } && 3695 test -f conftest2.$ac_objext && { (case "(($ac_try" in 3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3697 *) ac_try_echo=$ac_try;; 3698esac 3699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3700 (eval "$ac_try") 2>&5 3701 ac_status=$? 3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3703 (exit $ac_status); }; 3704 then 3705 # cc works too. 3706 : 3707 else 3708 # cc exists but doesn't like -o. 3709 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3710 fi 3711 fi 3712 fi 3713else 3714 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3715fi 3716rm -f core conftest* 3717 3718fi 3719if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 3720 { echo "$as_me:$LINENO: result: yes" >&5 3721echo "${ECHO_T}yes" >&6; } 3722else 3723 { echo "$as_me:$LINENO: result: no" >&5 3724echo "${ECHO_T}no" >&6; } 3725 3726cat >>confdefs.h <<\_ACEOF 3727#define NO_MINUS_C_MINUS_O 1 3728_ACEOF 3729 3730fi 3731 3732# FIXME: we rely on the cache variable name because 3733# there is no other way. 3734set dummy $CC 3735ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3736if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 3737 # Losing compiler, so override with the script. 3738 # FIXME: It is wrong to rewrite CC. 3739 # But if we don't then we get into trouble of one sort or another. 3740 # A longer-term fix would be to have automake use am__CC in this case, 3741 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3742 CC="$am_aux_dir/compile $CC" 3743fi 3744 3745 3746# Find a good install program. We prefer a C program (faster), 3747# so one script is as good as another. But avoid the broken or 3748# incompatible versions: 3749# SysV /etc/install, /usr/sbin/install 3750# SunOS /usr/etc/install 3751# IRIX /sbin/install 3752# AIX /bin/install 3753# AmigaOS /C/install, which installs bootblocks on floppy discs 3754# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3755# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3756# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3757# OS/2's system install, which has a completely different semantic 3758# ./install, which can be erroneously created by make from ./install.sh. 3759{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3760echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3761if test -z "$INSTALL"; then 3762if test "${ac_cv_path_install+set}" = set; then 3763 echo $ECHO_N "(cached) $ECHO_C" >&6 3764else 3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3766for as_dir in $PATH 3767do 3768 IFS=$as_save_IFS 3769 test -z "$as_dir" && as_dir=. 3770 # Account for people who put trailing slashes in PATH elements. 3771case $as_dir/ in 3772 ./ | .// | /cC/* | \ 3773 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3774 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3775 /usr/ucb/* ) ;; 3776 *) 3777 # OSF1 and SCO ODT 3.0 have their own names for install. 3778 # Don't use installbsd from OSF since it installs stuff as root 3779 # by default. 3780 for ac_prog in ginstall scoinst install; do 3781 for ac_exec_ext in '' $ac_executable_extensions; do 3782 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3783 if test $ac_prog = install && 3784 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3785 # AIX install. It has an incompatible calling convention. 3786 : 3787 elif test $ac_prog = install && 3788 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3789 # program-specific install script used by HP pwplus--don't use. 3790 : 3791 else 3792 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3793 break 3 3794 fi 3795 fi 3796 done 3797 done 3798 ;; 3799esac 3800done 3801IFS=$as_save_IFS 3802 3803 3804fi 3805 if test "${ac_cv_path_install+set}" = set; then 3806 INSTALL=$ac_cv_path_install 3807 else 3808 # As a last resort, use the slow shell script. Don't cache a 3809 # value for INSTALL within a source directory, because that will 3810 # break other packages using the cache if that directory is 3811 # removed, or if the value is a relative name. 3812 INSTALL=$ac_install_sh 3813 fi 3814fi 3815{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3816echo "${ECHO_T}$INSTALL" >&6; } 3817 3818# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3819# It thinks the first close brace ends the variable substitution. 3820test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3821 3822test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3823 3824test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3825 3826{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 3827echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 3828LN_S=$as_ln_s 3829if test "$LN_S" = "ln -s"; then 3830 { echo "$as_me:$LINENO: result: yes" >&5 3831echo "${ECHO_T}yes" >&6; } 3832else 3833 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3834echo "${ECHO_T}no, using $LN_S" >&6; } 3835fi 3836 3837case `pwd` in 3838 *\ * | *\ *) 3839 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3840echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3841esac 3842 3843 3844 3845macro_version='2.2.4' 3846macro_revision='1.2976' 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860ltmain="$ac_aux_dir/ltmain.sh" 3861 3862# Make sure we can run config.sub. 3863$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3864 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3865echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3866 { (exit 1); exit 1; }; } 3867 3868{ echo "$as_me:$LINENO: checking build system type" >&5 3869echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3870if test "${ac_cv_build+set}" = set; then 3871 echo $ECHO_N "(cached) $ECHO_C" >&6 3872else 3873 ac_build_alias=$build_alias 3874test "x$ac_build_alias" = x && 3875 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3876test "x$ac_build_alias" = x && 3877 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3878echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3879 { (exit 1); exit 1; }; } 3880ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3881 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3882echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3883 { (exit 1); exit 1; }; } 3884 3885fi 3886{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3887echo "${ECHO_T}$ac_cv_build" >&6; } 3888case $ac_cv_build in 3889*-*-*) ;; 3890*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3891echo "$as_me: error: invalid value of canonical build" >&2;} 3892 { (exit 1); exit 1; }; };; 3893esac 3894build=$ac_cv_build 3895ac_save_IFS=$IFS; IFS='-' 3896set x $ac_cv_build 3897shift 3898build_cpu=$1 3899build_vendor=$2 3900shift; shift 3901# Remember, the first character of IFS is used to create $*, 3902# except with old shells: 3903build_os=$* 3904IFS=$ac_save_IFS 3905case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3906 3907 3908{ echo "$as_me:$LINENO: checking host system type" >&5 3909echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3910if test "${ac_cv_host+set}" = set; then 3911 echo $ECHO_N "(cached) $ECHO_C" >&6 3912else 3913 if test "x$host_alias" = x; then 3914 ac_cv_host=$ac_cv_build 3915else 3916 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3917 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3918echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3919 { (exit 1); exit 1; }; } 3920fi 3921 3922fi 3923{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3924echo "${ECHO_T}$ac_cv_host" >&6; } 3925case $ac_cv_host in 3926*-*-*) ;; 3927*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3928echo "$as_me: error: invalid value of canonical host" >&2;} 3929 { (exit 1); exit 1; }; };; 3930esac 3931host=$ac_cv_host 3932ac_save_IFS=$IFS; IFS='-' 3933set x $ac_cv_host 3934shift 3935host_cpu=$1 3936host_vendor=$2 3937shift; shift 3938# Remember, the first character of IFS is used to create $*, 3939# except with old shells: 3940host_os=$* 3941IFS=$ac_save_IFS 3942case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3943 3944 3945{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3946echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3947if test "${ac_cv_path_SED+set}" = set; then 3948 echo $ECHO_N "(cached) $ECHO_C" >&6 3949else 3950 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3951 for ac_i in 1 2 3 4 5 6 7; do 3952 ac_script="$ac_script$as_nl$ac_script" 3953 done 3954 echo "$ac_script" | sed 99q >conftest.sed 3955 $as_unset ac_script || ac_script= 3956 # Extract the first word of "sed gsed" to use in msg output 3957if test -z "$SED"; then 3958set dummy sed gsed; ac_prog_name=$2 3959if test "${ac_cv_path_SED+set}" = set; then 3960 echo $ECHO_N "(cached) $ECHO_C" >&6 3961else 3962 ac_path_SED_found=false 3963# Loop through the user's path and test for each of PROGNAME-LIST 3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3965for as_dir in $PATH 3966do 3967 IFS=$as_save_IFS 3968 test -z "$as_dir" && as_dir=. 3969 for ac_prog in sed gsed; do 3970 for ac_exec_ext in '' $ac_executable_extensions; do 3971 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3972 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3973 # Check for GNU ac_path_SED and select it if it is found. 3974 # Check for GNU $ac_path_SED 3975case `"$ac_path_SED" --version 2>&1` in 3976*GNU*) 3977 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3978*) 3979 ac_count=0 3980 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3981 while : 3982 do 3983 cat "conftest.in" "conftest.in" >"conftest.tmp" 3984 mv "conftest.tmp" "conftest.in" 3985 cp "conftest.in" "conftest.nl" 3986 echo '' >> "conftest.nl" 3987 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3988 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3989 ac_count=`expr $ac_count + 1` 3990 if test $ac_count -gt ${ac_path_SED_max-0}; then 3991 # Best one so far, save it but keep looking for a better one 3992 ac_cv_path_SED="$ac_path_SED" 3993 ac_path_SED_max=$ac_count 3994 fi 3995 # 10*(2^10) chars as input seems more than enough 3996 test $ac_count -gt 10 && break 3997 done 3998 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3999esac 4000 4001 4002 $ac_path_SED_found && break 3 4003 done 4004done 4005 4006done 4007IFS=$as_save_IFS 4008 4009 4010fi 4011 4012SED="$ac_cv_path_SED" 4013if test -z "$SED"; then 4014 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 4015echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} 4016 { (exit 1); exit 1; }; } 4017fi 4018 4019else 4020 ac_cv_path_SED=$SED 4021fi 4022 4023fi 4024{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 4025echo "${ECHO_T}$ac_cv_path_SED" >&6; } 4026 SED="$ac_cv_path_SED" 4027 rm -f conftest.sed 4028 4029test -z "$SED" && SED=sed 4030Xsed="$SED -e 1s/^X//" 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4043echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4044if test "${ac_cv_path_GREP+set}" = set; then 4045 echo $ECHO_N "(cached) $ECHO_C" >&6 4046else 4047 # Extract the first word of "grep ggrep" to use in msg output 4048if test -z "$GREP"; then 4049set dummy grep ggrep; ac_prog_name=$2 4050if test "${ac_cv_path_GREP+set}" = set; then 4051 echo $ECHO_N "(cached) $ECHO_C" >&6 4052else 4053 ac_path_GREP_found=false 4054# Loop through the user's path and test for each of PROGNAME-LIST 4055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4056for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4057do 4058 IFS=$as_save_IFS 4059 test -z "$as_dir" && as_dir=. 4060 for ac_prog in grep ggrep; do 4061 for ac_exec_ext in '' $ac_executable_extensions; do 4062 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4063 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4064 # Check for GNU ac_path_GREP and select it if it is found. 4065 # Check for GNU $ac_path_GREP 4066case `"$ac_path_GREP" --version 2>&1` in 4067*GNU*) 4068 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4069*) 4070 ac_count=0 4071 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4072 while : 4073 do 4074 cat "conftest.in" "conftest.in" >"conftest.tmp" 4075 mv "conftest.tmp" "conftest.in" 4076 cp "conftest.in" "conftest.nl" 4077 echo 'GREP' >> "conftest.nl" 4078 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4080 ac_count=`expr $ac_count + 1` 4081 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4082 # Best one so far, save it but keep looking for a better one 4083 ac_cv_path_GREP="$ac_path_GREP" 4084 ac_path_GREP_max=$ac_count 4085 fi 4086 # 10*(2^10) chars as input seems more than enough 4087 test $ac_count -gt 10 && break 4088 done 4089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4090esac 4091 4092 4093 $ac_path_GREP_found && break 3 4094 done 4095done 4096 4097done 4098IFS=$as_save_IFS 4099 4100 4101fi 4102 4103GREP="$ac_cv_path_GREP" 4104if test -z "$GREP"; then 4105 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4106echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4107 { (exit 1); exit 1; }; } 4108fi 4109 4110else 4111 ac_cv_path_GREP=$GREP 4112fi 4113 4114 4115fi 4116{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4117echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4118 GREP="$ac_cv_path_GREP" 4119 4120 4121{ echo "$as_me:$LINENO: checking for egrep" >&5 4122echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4123if test "${ac_cv_path_EGREP+set}" = set; then 4124 echo $ECHO_N "(cached) $ECHO_C" >&6 4125else 4126 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4127 then ac_cv_path_EGREP="$GREP -E" 4128 else 4129 # Extract the first word of "egrep" to use in msg output 4130if test -z "$EGREP"; then 4131set dummy egrep; ac_prog_name=$2 4132if test "${ac_cv_path_EGREP+set}" = set; then 4133 echo $ECHO_N "(cached) $ECHO_C" >&6 4134else 4135 ac_path_EGREP_found=false 4136# Loop through the user's path and test for each of PROGNAME-LIST 4137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4138for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4139do 4140 IFS=$as_save_IFS 4141 test -z "$as_dir" && as_dir=. 4142 for ac_prog in egrep; do 4143 for ac_exec_ext in '' $ac_executable_extensions; do 4144 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4145 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4146 # Check for GNU ac_path_EGREP and select it if it is found. 4147 # Check for GNU $ac_path_EGREP 4148case `"$ac_path_EGREP" --version 2>&1` in 4149*GNU*) 4150 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4151*) 4152 ac_count=0 4153 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4154 while : 4155 do 4156 cat "conftest.in" "conftest.in" >"conftest.tmp" 4157 mv "conftest.tmp" "conftest.in" 4158 cp "conftest.in" "conftest.nl" 4159 echo 'EGREP' >> "conftest.nl" 4160 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4162 ac_count=`expr $ac_count + 1` 4163 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4164 # Best one so far, save it but keep looking for a better one 4165 ac_cv_path_EGREP="$ac_path_EGREP" 4166 ac_path_EGREP_max=$ac_count 4167 fi 4168 # 10*(2^10) chars as input seems more than enough 4169 test $ac_count -gt 10 && break 4170 done 4171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4172esac 4173 4174 4175 $ac_path_EGREP_found && break 3 4176 done 4177done 4178 4179done 4180IFS=$as_save_IFS 4181 4182 4183fi 4184 4185EGREP="$ac_cv_path_EGREP" 4186if test -z "$EGREP"; then 4187 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4188echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4189 { (exit 1); exit 1; }; } 4190fi 4191 4192else 4193 ac_cv_path_EGREP=$EGREP 4194fi 4195 4196 4197 fi 4198fi 4199{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4200echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4201 EGREP="$ac_cv_path_EGREP" 4202 4203 4204{ echo "$as_me:$LINENO: checking for fgrep" >&5 4205echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } 4206if test "${ac_cv_path_FGREP+set}" = set; then 4207 echo $ECHO_N "(cached) $ECHO_C" >&6 4208else 4209 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4210 then ac_cv_path_FGREP="$GREP -F" 4211 else 4212 # Extract the first word of "fgrep" to use in msg output 4213if test -z "$FGREP"; then 4214set dummy fgrep; ac_prog_name=$2 4215if test "${ac_cv_path_FGREP+set}" = set; then 4216 echo $ECHO_N "(cached) $ECHO_C" >&6 4217else 4218 ac_path_FGREP_found=false 4219# Loop through the user's path and test for each of PROGNAME-LIST 4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4221for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4222do 4223 IFS=$as_save_IFS 4224 test -z "$as_dir" && as_dir=. 4225 for ac_prog in fgrep; do 4226 for ac_exec_ext in '' $ac_executable_extensions; do 4227 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4228 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4229 # Check for GNU ac_path_FGREP and select it if it is found. 4230 # Check for GNU $ac_path_FGREP 4231case `"$ac_path_FGREP" --version 2>&1` in 4232*GNU*) 4233 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4234*) 4235 ac_count=0 4236 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4237 while : 4238 do 4239 cat "conftest.in" "conftest.in" >"conftest.tmp" 4240 mv "conftest.tmp" "conftest.in" 4241 cp "conftest.in" "conftest.nl" 4242 echo 'FGREP' >> "conftest.nl" 4243 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4245 ac_count=`expr $ac_count + 1` 4246 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4247 # Best one so far, save it but keep looking for a better one 4248 ac_cv_path_FGREP="$ac_path_FGREP" 4249 ac_path_FGREP_max=$ac_count 4250 fi 4251 # 10*(2^10) chars as input seems more than enough 4252 test $ac_count -gt 10 && break 4253 done 4254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4255esac 4256 4257 4258 $ac_path_FGREP_found && break 3 4259 done 4260done 4261 4262done 4263IFS=$as_save_IFS 4264 4265 4266fi 4267 4268FGREP="$ac_cv_path_FGREP" 4269if test -z "$FGREP"; then 4270 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4271echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4272 { (exit 1); exit 1; }; } 4273fi 4274 4275else 4276 ac_cv_path_FGREP=$FGREP 4277fi 4278 4279 4280 fi 4281fi 4282{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4283echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } 4284 FGREP="$ac_cv_path_FGREP" 4285 4286 4287test -z "$GREP" && GREP=grep 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307# Check whether --with-gnu-ld was given. 4308if test "${with_gnu_ld+set}" = set; then 4309 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4310else 4311 with_gnu_ld=no 4312fi 4313 4314ac_prog=ld 4315if test "$GCC" = yes; then 4316 # Check if gcc -print-prog-name=ld gives a path. 4317 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4318echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4319 case $host in 4320 *-*-mingw*) 4321 # gcc leaves a trailing carriage return which upsets mingw 4322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4323 *) 4324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4325 esac 4326 case $ac_prog in 4327 # Accept absolute paths. 4328 [\\/]* | ?:[\\/]*) 4329 re_direlt='/[^/][^/]*/\.\./' 4330 # Canonicalize the pathname of ld 4331 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4332 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4333 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4334 done 4335 test -z "$LD" && LD="$ac_prog" 4336 ;; 4337 "") 4338 # If it fails, then pretend we aren't using GCC. 4339 ac_prog=ld 4340 ;; 4341 *) 4342 # If it is relative, then search for the first ld in PATH. 4343 with_gnu_ld=unknown 4344 ;; 4345 esac 4346elif test "$with_gnu_ld" = yes; then 4347 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4348echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4349else 4350 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4351echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4352fi 4353if test "${lt_cv_path_LD+set}" = set; then 4354 echo $ECHO_N "(cached) $ECHO_C" >&6 4355else 4356 if test -z "$LD"; then 4357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4358 for ac_dir in $PATH; do 4359 IFS="$lt_save_ifs" 4360 test -z "$ac_dir" && ac_dir=. 4361 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4362 lt_cv_path_LD="$ac_dir/$ac_prog" 4363 # Check to see if the program is GNU ld. I'd rather use --version, 4364 # but apparently some variants of GNU ld only accept -v. 4365 # Break only if it was the GNU/non-GNU ld that we prefer. 4366 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4367 *GNU* | *'with BFD'*) 4368 test "$with_gnu_ld" != no && break 4369 ;; 4370 *) 4371 test "$with_gnu_ld" != yes && break 4372 ;; 4373 esac 4374 fi 4375 done 4376 IFS="$lt_save_ifs" 4377else 4378 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4379fi 4380fi 4381 4382LD="$lt_cv_path_LD" 4383if test -n "$LD"; then 4384 { echo "$as_me:$LINENO: result: $LD" >&5 4385echo "${ECHO_T}$LD" >&6; } 4386else 4387 { echo "$as_me:$LINENO: result: no" >&5 4388echo "${ECHO_T}no" >&6; } 4389fi 4390test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4391echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4392 { (exit 1); exit 1; }; } 4393{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4394echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4395if test "${lt_cv_prog_gnu_ld+set}" = set; then 4396 echo $ECHO_N "(cached) $ECHO_C" >&6 4397else 4398 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4399case `$LD -v 2>&1 </dev/null` in 4400*GNU* | *'with BFD'*) 4401 lt_cv_prog_gnu_ld=yes 4402 ;; 4403*) 4404 lt_cv_prog_gnu_ld=no 4405 ;; 4406esac 4407fi 4408{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4409echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4410with_gnu_ld=$lt_cv_prog_gnu_ld 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4421echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } 4422if test "${lt_cv_path_NM+set}" = set; then 4423 echo $ECHO_N "(cached) $ECHO_C" >&6 4424else 4425 if test -n "$NM"; then 4426 # Let the user override the test. 4427 lt_cv_path_NM="$NM" 4428else 4429 lt_nm_to_check="${ac_tool_prefix}nm" 4430 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4431 lt_nm_to_check="$lt_nm_to_check nm" 4432 fi 4433 for lt_tmp_nm in $lt_nm_to_check; do 4434 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4435 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4436 IFS="$lt_save_ifs" 4437 test -z "$ac_dir" && ac_dir=. 4438 tmp_nm="$ac_dir/$lt_tmp_nm" 4439 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4440 # Check to see if the nm accepts a BSD-compat flag. 4441 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4442 # nm: unknown option "B" ignored 4443 # Tru64's nm complains that /dev/null is an invalid object file 4444 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4445 */dev/null* | *'Invalid file or object type'*) 4446 lt_cv_path_NM="$tmp_nm -B" 4447 break 4448 ;; 4449 *) 4450 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4451 */dev/null*) 4452 lt_cv_path_NM="$tmp_nm -p" 4453 break 4454 ;; 4455 *) 4456 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4457 continue # so that we can try to find one that supports BSD flags 4458 ;; 4459 esac 4460 ;; 4461 esac 4462 fi 4463 done 4464 IFS="$lt_save_ifs" 4465 done 4466 : ${lt_cv_path_NM=no} 4467fi 4468fi 4469{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4470echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4471if test "$lt_cv_path_NM" != "no"; then 4472 NM="$lt_cv_path_NM" 4473else 4474 # Didn't find any BSD compatible name lister, look for dumpbin. 4475 if test -n "$ac_tool_prefix"; then 4476 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4477 do 4478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4479set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4480{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4482if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4483 echo $ECHO_N "(cached) $ECHO_C" >&6 4484else 4485 if test -n "$DUMPBIN"; then 4486 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4487else 4488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4489for as_dir in $PATH 4490do 4491 IFS=$as_save_IFS 4492 test -z "$as_dir" && as_dir=. 4493 for ac_exec_ext in '' $ac_executable_extensions; do 4494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4495 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4497 break 2 4498 fi 4499done 4500done 4501IFS=$as_save_IFS 4502 4503fi 4504fi 4505DUMPBIN=$ac_cv_prog_DUMPBIN 4506if test -n "$DUMPBIN"; then 4507 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4508echo "${ECHO_T}$DUMPBIN" >&6; } 4509else 4510 { echo "$as_me:$LINENO: result: no" >&5 4511echo "${ECHO_T}no" >&6; } 4512fi 4513 4514 4515 test -n "$DUMPBIN" && break 4516 done 4517fi 4518if test -z "$DUMPBIN"; then 4519 ac_ct_DUMPBIN=$DUMPBIN 4520 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4521do 4522 # Extract the first word of "$ac_prog", so it can be a program name with args. 4523set dummy $ac_prog; ac_word=$2 4524{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4526if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4527 echo $ECHO_N "(cached) $ECHO_C" >&6 4528else 4529 if test -n "$ac_ct_DUMPBIN"; then 4530 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4531else 4532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4533for as_dir in $PATH 4534do 4535 IFS=$as_save_IFS 4536 test -z "$as_dir" && as_dir=. 4537 for ac_exec_ext in '' $ac_executable_extensions; do 4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4539 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4541 break 2 4542 fi 4543done 4544done 4545IFS=$as_save_IFS 4546 4547fi 4548fi 4549ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4550if test -n "$ac_ct_DUMPBIN"; then 4551 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4552echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } 4553else 4554 { echo "$as_me:$LINENO: result: no" >&5 4555echo "${ECHO_T}no" >&6; } 4556fi 4557 4558 4559 test -n "$ac_ct_DUMPBIN" && break 4560done 4561 4562 if test "x$ac_ct_DUMPBIN" = x; then 4563 DUMPBIN=":" 4564 else 4565 case $cross_compiling:$ac_tool_warned in 4566yes:) 4567{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4568whose name does not start with the host triplet. If you think this 4569configuration is useful to you, please write to autoconf@gnu.org." >&5 4570echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4571whose name does not start with the host triplet. If you think this 4572configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4573ac_tool_warned=yes ;; 4574esac 4575 DUMPBIN=$ac_ct_DUMPBIN 4576 fi 4577fi 4578 4579 4580 if test "$DUMPBIN" != ":"; then 4581 NM="$DUMPBIN" 4582 fi 4583fi 4584test -z "$NM" && NM=nm 4585 4586 4587 4588 4589 4590 4591{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4592echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } 4593if test "${lt_cv_nm_interface+set}" = set; then 4594 echo $ECHO_N "(cached) $ECHO_C" >&6 4595else 4596 lt_cv_nm_interface="BSD nm" 4597 echo "int some_variable = 0;" > conftest.$ac_ext 4598 (eval echo "\"\$as_me:4598: $ac_compile\"" >&5) 4599 (eval "$ac_compile" 2>conftest.err) 4600 cat conftest.err >&5 4601 (eval echo "\"\$as_me:4601: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4602 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4603 cat conftest.err >&5 4604 (eval echo "\"\$as_me:4604: output\"" >&5) 4605 cat conftest.out >&5 4606 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4607 lt_cv_nm_interface="MS dumpbin" 4608 fi 4609 rm -f conftest* 4610fi 4611{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4612echo "${ECHO_T}$lt_cv_nm_interface" >&6; } 4613 4614# find the maximum length of command line arguments 4615{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4616echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 4617if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4618 echo $ECHO_N "(cached) $ECHO_C" >&6 4619else 4620 i=0 4621 teststring="ABCD" 4622 4623 case $build_os in 4624 msdosdjgpp*) 4625 # On DJGPP, this test can blow up pretty badly due to problems in libc 4626 # (any single argument exceeding 2000 bytes causes a buffer overrun 4627 # during glob expansion). Even if it were fixed, the result of this 4628 # check would be larger than it should be. 4629 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4630 ;; 4631 4632 gnu*) 4633 # Under GNU Hurd, this test is not required because there is 4634 # no limit to the length of command line arguments. 4635 # Libtool will interpret -1 as no limit whatsoever 4636 lt_cv_sys_max_cmd_len=-1; 4637 ;; 4638 4639 cygwin* | mingw*) 4640 # On Win9x/ME, this test blows up -- it succeeds, but takes 4641 # about 5 minutes as the teststring grows exponentially. 4642 # Worse, since 9x/ME are not pre-emptively multitasking, 4643 # you end up with a "frozen" computer, even though with patience 4644 # the test eventually succeeds (with a max line length of 256k). 4645 # Instead, let's just punt: use the minimum linelength reported by 4646 # all of the supported platforms: 8192 (on NT/2K/XP). 4647 lt_cv_sys_max_cmd_len=8192; 4648 ;; 4649 4650 amigaos*) 4651 # On AmigaOS with pdksh, this test takes hours, literally. 4652 # So we just punt and use a minimum line length of 8192. 4653 lt_cv_sys_max_cmd_len=8192; 4654 ;; 4655 4656 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4657 # This has been around since 386BSD, at least. Likely further. 4658 if test -x /sbin/sysctl; then 4659 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4660 elif test -x /usr/sbin/sysctl; then 4661 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4662 else 4663 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4664 fi 4665 # And add a safety zone 4666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4668 ;; 4669 4670 interix*) 4671 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4672 lt_cv_sys_max_cmd_len=196608 4673 ;; 4674 4675 osf*) 4676 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4677 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4678 # nice to cause kernel panics so lets avoid the loop below. 4679 # First set a reasonable default. 4680 lt_cv_sys_max_cmd_len=16384 4681 # 4682 if test -x /sbin/sysconfig; then 4683 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4684 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4685 esac 4686 fi 4687 ;; 4688 sco3.2v5*) 4689 lt_cv_sys_max_cmd_len=102400 4690 ;; 4691 sysv5* | sco5v6* | sysv4.2uw2*) 4692 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4693 if test -n "$kargmax"; then 4694 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4695 else 4696 lt_cv_sys_max_cmd_len=32768 4697 fi 4698 ;; 4699 *) 4700 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4701 if test -n "$lt_cv_sys_max_cmd_len"; then 4702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4704 else 4705 # Make teststring a little bigger before we do anything with it. 4706 # a 1K string should be a reasonable start. 4707 for i in 1 2 3 4 5 6 7 8 ; do 4708 teststring=$teststring$teststring 4709 done 4710 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4711 # If test is not a shell built-in, we'll probably end up computing a 4712 # maximum length that is only half of the actual maximum length, but 4713 # we can't tell. 4714 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4715 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4716 test $i != 17 # 1/2 MB should be enough 4717 do 4718 i=`expr $i + 1` 4719 teststring=$teststring$teststring 4720 done 4721 # Only check the string length outside the loop. 4722 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4723 teststring= 4724 # Add a significant safety factor because C++ compilers can tack on 4725 # massive amounts of additional arguments before passing them to the 4726 # linker. It appears as though 1/2 is a usable value. 4727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4728 fi 4729 ;; 4730 esac 4731 4732fi 4733 4734if test -n $lt_cv_sys_max_cmd_len ; then 4735 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4736echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 4737else 4738 { echo "$as_me:$LINENO: result: none" >&5 4739echo "${ECHO_T}none" >&6; } 4740fi 4741max_cmd_len=$lt_cv_sys_max_cmd_len 4742 4743 4744 4745 4746 4747 4748: ${CP="cp -f"} 4749: ${MV="mv -f"} 4750: ${RM="rm -f"} 4751 4752{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4753echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } 4754# Try some XSI features 4755xsi_shell=no 4756( _lt_dummy="a/b/c" 4757 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4758 = c,a/b,, \ 4759 && eval 'test $(( 1 + 1 )) -eq 2 \ 4760 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4761 && xsi_shell=yes 4762{ echo "$as_me:$LINENO: result: $xsi_shell" >&5 4763echo "${ECHO_T}$xsi_shell" >&6; } 4764 4765 4766{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4767echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; } 4768lt_shell_append=no 4769( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4770 >/dev/null 2>&1 \ 4771 && lt_shell_append=yes 4772{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4773echo "${ECHO_T}$lt_shell_append" >&6; } 4774 4775 4776if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4777 lt_unset=unset 4778else 4779 lt_unset=false 4780fi 4781 4782 4783 4784 4785 4786# test EBCDIC or ASCII 4787case `echo X|tr X '\101'` in 4788 A) # ASCII based system 4789 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4790 lt_SP2NL='tr \040 \012' 4791 lt_NL2SP='tr \015\012 \040\040' 4792 ;; 4793 *) # EBCDIC based system 4794 lt_SP2NL='tr \100 \n' 4795 lt_NL2SP='tr \r\n \100\100' 4796 ;; 4797esac 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4808echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4809if test "${lt_cv_ld_reload_flag+set}" = set; then 4810 echo $ECHO_N "(cached) $ECHO_C" >&6 4811else 4812 lt_cv_ld_reload_flag='-r' 4813fi 4814{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4815echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4816reload_flag=$lt_cv_ld_reload_flag 4817case $reload_flag in 4818"" | " "*) ;; 4819*) reload_flag=" $reload_flag" ;; 4820esac 4821reload_cmds='$LD$reload_flag -o $output$reload_objs' 4822case $host_os in 4823 darwin*) 4824 if test "$GCC" = yes; then 4825 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4826 else 4827 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4828 fi 4829 ;; 4830esac 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4842echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 4843if test "${lt_cv_deplibs_check_method+set}" = set; then 4844 echo $ECHO_N "(cached) $ECHO_C" >&6 4845else 4846 lt_cv_file_magic_cmd='$MAGIC_CMD' 4847lt_cv_file_magic_test_file= 4848lt_cv_deplibs_check_method='unknown' 4849# Need to set the preceding variable on all platforms that support 4850# interlibrary dependencies. 4851# 'none' -- dependencies not supported. 4852# `unknown' -- same as none, but documents that we really don't know. 4853# 'pass_all' -- all dependencies passed with no checks. 4854# 'test_compile' -- check by making test program. 4855# 'file_magic [[regex]]' -- check by looking for files in library path 4856# which responds to the $file_magic_cmd with a given extended regex. 4857# If you have `file' or equivalent on your system and you're not sure 4858# whether `pass_all' will *always* work, you probably want this one. 4859 4860case $host_os in 4861aix[4-9]*) 4862 lt_cv_deplibs_check_method=pass_all 4863 ;; 4864 4865beos*) 4866 lt_cv_deplibs_check_method=pass_all 4867 ;; 4868 4869bsdi[45]*) 4870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4871 lt_cv_file_magic_cmd='/usr/bin/file -L' 4872 lt_cv_file_magic_test_file=/shlib/libc.so 4873 ;; 4874 4875cygwin*) 4876 # func_win32_libid is a shell function defined in ltmain.sh 4877 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4878 lt_cv_file_magic_cmd='func_win32_libid' 4879 ;; 4880 4881mingw* | pw32*) 4882 # Base MSYS/MinGW do not provide the 'file' command needed by 4883 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4884 # unless we find 'file', for example because we are cross-compiling. 4885 if ( file / ) >/dev/null 2>&1; then 4886 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4887 lt_cv_file_magic_cmd='func_win32_libid' 4888 else 4889 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4890 lt_cv_file_magic_cmd='$OBJDUMP -f' 4891 fi 4892 ;; 4893 4894darwin* | rhapsody*) 4895 lt_cv_deplibs_check_method=pass_all 4896 ;; 4897 4898freebsd* | dragonfly*) 4899 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4900 case $host_cpu in 4901 i*86 ) 4902 # Not sure whether the presence of OpenBSD here was a mistake. 4903 # Let's accept both of them until this is cleared up. 4904 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4905 lt_cv_file_magic_cmd=/usr/bin/file 4906 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4907 ;; 4908 esac 4909 else 4910 lt_cv_deplibs_check_method=pass_all 4911 fi 4912 ;; 4913 4914gnu*) 4915 lt_cv_deplibs_check_method=pass_all 4916 ;; 4917 4918hpux10.20* | hpux11*) 4919 lt_cv_file_magic_cmd=/usr/bin/file 4920 case $host_cpu in 4921 ia64*) 4922 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4923 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4924 ;; 4925 hppa*64*) 4926 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]' 4927 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4928 ;; 4929 *) 4930 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4931 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4932 ;; 4933 esac 4934 ;; 4935 4936interix[3-9]*) 4937 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4939 ;; 4940 4941irix5* | irix6* | nonstopux*) 4942 case $LD in 4943 *-32|*"-32 ") libmagic=32-bit;; 4944 *-n32|*"-n32 ") libmagic=N32;; 4945 *-64|*"-64 ") libmagic=64-bit;; 4946 *) libmagic=never-match;; 4947 esac 4948 lt_cv_deplibs_check_method=pass_all 4949 ;; 4950 4951# This must be Linux ELF. 4952linux* | k*bsd*-gnu) 4953 lt_cv_deplibs_check_method=pass_all 4954 ;; 4955 4956netbsd* | netbsdelf*-gnu) 4957 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4959 else 4960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4961 fi 4962 ;; 4963 4964newos6*) 4965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4966 lt_cv_file_magic_cmd=/usr/bin/file 4967 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4968 ;; 4969 4970*nto* | *qnx*) 4971 lt_cv_deplibs_check_method=pass_all 4972 ;; 4973 4974openbsd*) 4975 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4977 else 4978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4979 fi 4980 ;; 4981 4982osf3* | osf4* | osf5*) 4983 lt_cv_deplibs_check_method=pass_all 4984 ;; 4985 4986rdos*) 4987 lt_cv_deplibs_check_method=pass_all 4988 ;; 4989 4990solaris*) 4991 lt_cv_deplibs_check_method=pass_all 4992 ;; 4993 4994sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4995 lt_cv_deplibs_check_method=pass_all 4996 ;; 4997 4998sysv4 | sysv4.3*) 4999 case $host_vendor in 5000 motorola) 5001 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]' 5002 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5003 ;; 5004 ncr) 5005 lt_cv_deplibs_check_method=pass_all 5006 ;; 5007 sequent) 5008 lt_cv_file_magic_cmd='/bin/file' 5009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5010 ;; 5011 sni) 5012 lt_cv_file_magic_cmd='/bin/file' 5013 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5014 lt_cv_file_magic_test_file=/lib/libc.so 5015 ;; 5016 siemens) 5017 lt_cv_deplibs_check_method=pass_all 5018 ;; 5019 pc) 5020 lt_cv_deplibs_check_method=pass_all 5021 ;; 5022 esac 5023 ;; 5024 5025tpf*) 5026 lt_cv_deplibs_check_method=pass_all 5027 ;; 5028esac 5029 5030fi 5031{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5032echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 5033file_magic_cmd=$lt_cv_file_magic_cmd 5034deplibs_check_method=$lt_cv_deplibs_check_method 5035test -z "$deplibs_check_method" && deplibs_check_method=unknown 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048if test -n "$ac_tool_prefix"; then 5049 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5050set dummy ${ac_tool_prefix}ar; ac_word=$2 5051{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5053if test "${ac_cv_prog_AR+set}" = set; then 5054 echo $ECHO_N "(cached) $ECHO_C" >&6 5055else 5056 if test -n "$AR"; then 5057 ac_cv_prog_AR="$AR" # Let the user override the test. 5058else 5059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5060for as_dir in $PATH 5061do 5062 IFS=$as_save_IFS 5063 test -z "$as_dir" && as_dir=. 5064 for ac_exec_ext in '' $ac_executable_extensions; do 5065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5066 ac_cv_prog_AR="${ac_tool_prefix}ar" 5067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5068 break 2 5069 fi 5070done 5071done 5072IFS=$as_save_IFS 5073 5074fi 5075fi 5076AR=$ac_cv_prog_AR 5077if test -n "$AR"; then 5078 { echo "$as_me:$LINENO: result: $AR" >&5 5079echo "${ECHO_T}$AR" >&6; } 5080else 5081 { echo "$as_me:$LINENO: result: no" >&5 5082echo "${ECHO_T}no" >&6; } 5083fi 5084 5085 5086fi 5087if test -z "$ac_cv_prog_AR"; then 5088 ac_ct_AR=$AR 5089 # Extract the first word of "ar", so it can be a program name with args. 5090set dummy ar; ac_word=$2 5091{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5093if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5094 echo $ECHO_N "(cached) $ECHO_C" >&6 5095else 5096 if test -n "$ac_ct_AR"; then 5097 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5098else 5099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5100for as_dir in $PATH 5101do 5102 IFS=$as_save_IFS 5103 test -z "$as_dir" && as_dir=. 5104 for ac_exec_ext in '' $ac_executable_extensions; do 5105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5106 ac_cv_prog_ac_ct_AR="ar" 5107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5108 break 2 5109 fi 5110done 5111done 5112IFS=$as_save_IFS 5113 5114fi 5115fi 5116ac_ct_AR=$ac_cv_prog_ac_ct_AR 5117if test -n "$ac_ct_AR"; then 5118 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5119echo "${ECHO_T}$ac_ct_AR" >&6; } 5120else 5121 { echo "$as_me:$LINENO: result: no" >&5 5122echo "${ECHO_T}no" >&6; } 5123fi 5124 5125 if test "x$ac_ct_AR" = x; then 5126 AR="false" 5127 else 5128 case $cross_compiling:$ac_tool_warned in 5129yes:) 5130{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5131whose name does not start with the host triplet. If you think this 5132configuration is useful to you, please write to autoconf@gnu.org." >&5 5133echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5134whose name does not start with the host triplet. If you think this 5135configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5136ac_tool_warned=yes ;; 5137esac 5138 AR=$ac_ct_AR 5139 fi 5140else 5141 AR="$ac_cv_prog_AR" 5142fi 5143 5144test -z "$AR" && AR=ar 5145test -z "$AR_FLAGS" && AR_FLAGS=cru 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157if test -n "$ac_tool_prefix"; then 5158 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5159set dummy ${ac_tool_prefix}strip; ac_word=$2 5160{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5162if test "${ac_cv_prog_STRIP+set}" = set; then 5163 echo $ECHO_N "(cached) $ECHO_C" >&6 5164else 5165 if test -n "$STRIP"; then 5166 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5167else 5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5169for as_dir in $PATH 5170do 5171 IFS=$as_save_IFS 5172 test -z "$as_dir" && as_dir=. 5173 for ac_exec_ext in '' $ac_executable_extensions; do 5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5175 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5177 break 2 5178 fi 5179done 5180done 5181IFS=$as_save_IFS 5182 5183fi 5184fi 5185STRIP=$ac_cv_prog_STRIP 5186if test -n "$STRIP"; then 5187 { echo "$as_me:$LINENO: result: $STRIP" >&5 5188echo "${ECHO_T}$STRIP" >&6; } 5189else 5190 { echo "$as_me:$LINENO: result: no" >&5 5191echo "${ECHO_T}no" >&6; } 5192fi 5193 5194 5195fi 5196if test -z "$ac_cv_prog_STRIP"; then 5197 ac_ct_STRIP=$STRIP 5198 # Extract the first word of "strip", so it can be a program name with args. 5199set dummy strip; ac_word=$2 5200{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5202if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5203 echo $ECHO_N "(cached) $ECHO_C" >&6 5204else 5205 if test -n "$ac_ct_STRIP"; then 5206 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5207else 5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5209for as_dir in $PATH 5210do 5211 IFS=$as_save_IFS 5212 test -z "$as_dir" && as_dir=. 5213 for ac_exec_ext in '' $ac_executable_extensions; do 5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5215 ac_cv_prog_ac_ct_STRIP="strip" 5216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5217 break 2 5218 fi 5219done 5220done 5221IFS=$as_save_IFS 5222 5223fi 5224fi 5225ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5226if test -n "$ac_ct_STRIP"; then 5227 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5228echo "${ECHO_T}$ac_ct_STRIP" >&6; } 5229else 5230 { echo "$as_me:$LINENO: result: no" >&5 5231echo "${ECHO_T}no" >&6; } 5232fi 5233 5234 if test "x$ac_ct_STRIP" = x; then 5235 STRIP=":" 5236 else 5237 case $cross_compiling:$ac_tool_warned in 5238yes:) 5239{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5240whose name does not start with the host triplet. If you think this 5241configuration is useful to you, please write to autoconf@gnu.org." >&5 5242echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5243whose name does not start with the host triplet. If you think this 5244configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5245ac_tool_warned=yes ;; 5246esac 5247 STRIP=$ac_ct_STRIP 5248 fi 5249else 5250 STRIP="$ac_cv_prog_STRIP" 5251fi 5252 5253test -z "$STRIP" && STRIP=: 5254 5255 5256 5257 5258 5259 5260if test -n "$ac_tool_prefix"; then 5261 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5262set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5263{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5265if test "${ac_cv_prog_RANLIB+set}" = set; then 5266 echo $ECHO_N "(cached) $ECHO_C" >&6 5267else 5268 if test -n "$RANLIB"; then 5269 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5270else 5271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5272for as_dir in $PATH 5273do 5274 IFS=$as_save_IFS 5275 test -z "$as_dir" && as_dir=. 5276 for ac_exec_ext in '' $ac_executable_extensions; do 5277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5278 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5280 break 2 5281 fi 5282done 5283done 5284IFS=$as_save_IFS 5285 5286fi 5287fi 5288RANLIB=$ac_cv_prog_RANLIB 5289if test -n "$RANLIB"; then 5290 { echo "$as_me:$LINENO: result: $RANLIB" >&5 5291echo "${ECHO_T}$RANLIB" >&6; } 5292else 5293 { echo "$as_me:$LINENO: result: no" >&5 5294echo "${ECHO_T}no" >&6; } 5295fi 5296 5297 5298fi 5299if test -z "$ac_cv_prog_RANLIB"; then 5300 ac_ct_RANLIB=$RANLIB 5301 # Extract the first word of "ranlib", so it can be a program name with args. 5302set dummy ranlib; ac_word=$2 5303{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5305if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5306 echo $ECHO_N "(cached) $ECHO_C" >&6 5307else 5308 if test -n "$ac_ct_RANLIB"; then 5309 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5310else 5311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5312for as_dir in $PATH 5313do 5314 IFS=$as_save_IFS 5315 test -z "$as_dir" && as_dir=. 5316 for ac_exec_ext in '' $ac_executable_extensions; do 5317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5318 ac_cv_prog_ac_ct_RANLIB="ranlib" 5319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5320 break 2 5321 fi 5322done 5323done 5324IFS=$as_save_IFS 5325 5326fi 5327fi 5328ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5329if test -n "$ac_ct_RANLIB"; then 5330 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5331echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 5332else 5333 { echo "$as_me:$LINENO: result: no" >&5 5334echo "${ECHO_T}no" >&6; } 5335fi 5336 5337 if test "x$ac_ct_RANLIB" = x; then 5338 RANLIB=":" 5339 else 5340 case $cross_compiling:$ac_tool_warned in 5341yes:) 5342{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5343whose name does not start with the host triplet. If you think this 5344configuration is useful to you, please write to autoconf@gnu.org." >&5 5345echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5346whose name does not start with the host triplet. If you think this 5347configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5348ac_tool_warned=yes ;; 5349esac 5350 RANLIB=$ac_ct_RANLIB 5351 fi 5352else 5353 RANLIB="$ac_cv_prog_RANLIB" 5354fi 5355 5356test -z "$RANLIB" && RANLIB=: 5357 5358 5359 5360 5361 5362 5363# Determine commands to create old-style static archives. 5364old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5365old_postinstall_cmds='chmod 644 $oldlib' 5366old_postuninstall_cmds= 5367 5368if test -n "$RANLIB"; then 5369 case $host_os in 5370 openbsd*) 5371 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5372 ;; 5373 *) 5374 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5375 ;; 5376 esac 5377 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5378fi 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413# If no C compiler was specified, use CC. 5414LTCC=${LTCC-"$CC"} 5415 5416# If no C compiler flags were specified, use CFLAGS. 5417LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5418 5419# Allow CC to be a program name with arguments. 5420compiler=$CC 5421 5422 5423# Check for command to grab the raw symbol name followed by C symbol from nm. 5424{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5425echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 5426if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5427 echo $ECHO_N "(cached) $ECHO_C" >&6 5428else 5429 5430# These are sane defaults that work on at least a few old systems. 5431# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5432 5433# Character class describing NM global symbol codes. 5434symcode='[BCDEGRST]' 5435 5436# Regexp to match symbols that can be accessed directly from C. 5437sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5438 5439# Define system-specific variables. 5440case $host_os in 5441aix*) 5442 symcode='[BCDT]' 5443 ;; 5444cygwin* | mingw* | pw32*) 5445 symcode='[ABCDGISTW]' 5446 ;; 5447hpux*) 5448 if test "$host_cpu" = ia64; then 5449 symcode='[ABCDEGRST]' 5450 fi 5451 ;; 5452irix* | nonstopux*) 5453 symcode='[BCDEGRST]' 5454 ;; 5455osf*) 5456 symcode='[BCDEGQRST]' 5457 ;; 5458solaris*) 5459 symcode='[BDRT]' 5460 ;; 5461sco3.2v5*) 5462 symcode='[DT]' 5463 ;; 5464sysv4.2uw2*) 5465 symcode='[DT]' 5466 ;; 5467sysv5* | sco5v6* | unixware* | OpenUNIX*) 5468 symcode='[ABDT]' 5469 ;; 5470sysv4) 5471 symcode='[DFNSTU]' 5472 ;; 5473esac 5474 5475# If we're using GNU nm, then use its standard symbol codes. 5476case `$NM -V 2>&1` in 5477*GNU* | *'with BFD'*) 5478 symcode='[ABCDGIRSTW]' ;; 5479esac 5480 5481# Transform an extracted symbol line into a proper C declaration. 5482# Some systems (esp. on ia64) link data and code symbols differently, 5483# so use this general approach. 5484lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5485 5486# Transform an extracted symbol line into symbol name and symbol address 5487lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5488lt_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'" 5489 5490# Handle CRLF in mingw tool chain 5491opt_cr= 5492case $build_os in 5493mingw*) 5494 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5495 ;; 5496esac 5497 5498# Try without a prefix underscore, then with it. 5499for ac_symprfx in "" "_"; do 5500 5501 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5502 symxfrm="\\1 $ac_symprfx\\2 \\2" 5503 5504 # Write the raw and C identifiers. 5505 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5506 # Fake it for dumpbin and say T for any non-static function 5507 # and D for any global variable. 5508 # Also find C++ and __fastcall symbols from MSVC++, 5509 # which start with @ or ?. 5510 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5511" {last_section=section; section=\$ 3};"\ 5512" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5513" \$ 0!~/External *\|/{next};"\ 5514" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5515" {if(hide[section]) next};"\ 5516" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5517" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5518" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5519" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5520" ' prfx=^$ac_symprfx" 5521 else 5522 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5523 fi 5524 5525 # Check to see that the pipe works correctly. 5526 pipe_works=no 5527 5528 rm -f conftest* 5529 cat > conftest.$ac_ext <<_LT_EOF 5530#ifdef __cplusplus 5531extern "C" { 5532#endif 5533char nm_test_var; 5534void nm_test_func(void); 5535void nm_test_func(void){} 5536#ifdef __cplusplus 5537} 5538#endif 5539int main(){nm_test_var='a';nm_test_func();return(0);} 5540_LT_EOF 5541 5542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5543 (eval $ac_compile) 2>&5 5544 ac_status=$? 5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5546 (exit $ac_status); }; then 5547 # Now try to grab the symbols. 5548 nlist=conftest.nm 5549 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5550 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5551 ac_status=$? 5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5553 (exit $ac_status); } && test -s "$nlist"; then 5554 # Try sorting and uniquifying the output. 5555 if sort "$nlist" | uniq > "$nlist"T; then 5556 mv -f "$nlist"T "$nlist" 5557 else 5558 rm -f "$nlist"T 5559 fi 5560 5561 # Make sure that we snagged all the symbols we need. 5562 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5563 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5564 cat <<_LT_EOF > conftest.$ac_ext 5565#ifdef __cplusplus 5566extern "C" { 5567#endif 5568 5569_LT_EOF 5570 # Now generate the symbol file. 5571 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5572 5573 cat <<_LT_EOF >> conftest.$ac_ext 5574 5575/* The mapping between symbol names and symbols. */ 5576const struct { 5577 const char *name; 5578 void *address; 5579} 5580lt__PROGRAM__LTX_preloaded_symbols[] = 5581{ 5582 { "@PROGRAM@", (void *) 0 }, 5583_LT_EOF 5584 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5585 cat <<\_LT_EOF >> conftest.$ac_ext 5586 {0, (void *) 0} 5587}; 5588 5589/* This works around a problem in FreeBSD linker */ 5590#ifdef FREEBSD_WORKAROUND 5591static const void *lt_preloaded_setup() { 5592 return lt__PROGRAM__LTX_preloaded_symbols; 5593} 5594#endif 5595 5596#ifdef __cplusplus 5597} 5598#endif 5599_LT_EOF 5600 # Now try linking the two files. 5601 mv conftest.$ac_objext conftstm.$ac_objext 5602 lt_save_LIBS="$LIBS" 5603 lt_save_CFLAGS="$CFLAGS" 5604 LIBS="conftstm.$ac_objext" 5605 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5607 (eval $ac_link) 2>&5 5608 ac_status=$? 5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5610 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5611 pipe_works=yes 5612 fi 5613 LIBS="$lt_save_LIBS" 5614 CFLAGS="$lt_save_CFLAGS" 5615 else 5616 echo "cannot find nm_test_func in $nlist" >&5 5617 fi 5618 else 5619 echo "cannot find nm_test_var in $nlist" >&5 5620 fi 5621 else 5622 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5623 fi 5624 else 5625 echo "$progname: failed program was:" >&5 5626 cat conftest.$ac_ext >&5 5627 fi 5628 rm -rf conftest* conftst* 5629 5630 # Do not use the global_symbol_pipe unless it works. 5631 if test "$pipe_works" = yes; then 5632 break 5633 else 5634 lt_cv_sys_global_symbol_pipe= 5635 fi 5636done 5637 5638fi 5639 5640if test -z "$lt_cv_sys_global_symbol_pipe"; then 5641 lt_cv_sys_global_symbol_to_cdecl= 5642fi 5643if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5644 { echo "$as_me:$LINENO: result: failed" >&5 5645echo "${ECHO_T}failed" >&6; } 5646else 5647 { echo "$as_me:$LINENO: result: ok" >&5 5648echo "${ECHO_T}ok" >&6; } 5649fi 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673# Check whether --enable-libtool-lock was given. 5674if test "${enable_libtool_lock+set}" = set; then 5675 enableval=$enable_libtool_lock; 5676fi 5677 5678test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5679 5680# Some flags need to be propagated to the compiler or linker for good 5681# libtool support. 5682case $host in 5683ia64-*-hpux*) 5684 # Find out which ABI we are using. 5685 echo 'int i;' > conftest.$ac_ext 5686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5687 (eval $ac_compile) 2>&5 5688 ac_status=$? 5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5690 (exit $ac_status); }; then 5691 case `/usr/bin/file conftest.$ac_objext` in 5692 *ELF-32*) 5693 HPUX_IA64_MODE="32" 5694 ;; 5695 *ELF-64*) 5696 HPUX_IA64_MODE="64" 5697 ;; 5698 esac 5699 fi 5700 rm -rf conftest* 5701 ;; 5702*-*-irix6*) 5703 # Find out which ABI we are using. 5704 echo '#line 5704 "configure"' > conftest.$ac_ext 5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5706 (eval $ac_compile) 2>&5 5707 ac_status=$? 5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5709 (exit $ac_status); }; then 5710 if test "$lt_cv_prog_gnu_ld" = yes; then 5711 case `/usr/bin/file conftest.$ac_objext` in 5712 *32-bit*) 5713 LD="${LD-ld} -melf32bsmip" 5714 ;; 5715 *N32*) 5716 LD="${LD-ld} -melf32bmipn32" 5717 ;; 5718 *64-bit*) 5719 LD="${LD-ld} -melf64bmip" 5720 ;; 5721 esac 5722 else 5723 case `/usr/bin/file conftest.$ac_objext` in 5724 *32-bit*) 5725 LD="${LD-ld} -32" 5726 ;; 5727 *N32*) 5728 LD="${LD-ld} -n32" 5729 ;; 5730 *64-bit*) 5731 LD="${LD-ld} -64" 5732 ;; 5733 esac 5734 fi 5735 fi 5736 rm -rf conftest* 5737 ;; 5738 5739x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5740s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5741 # Find out which ABI we are using. 5742 echo 'int i;' > conftest.$ac_ext 5743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5744 (eval $ac_compile) 2>&5 5745 ac_status=$? 5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5747 (exit $ac_status); }; then 5748 case `/usr/bin/file conftest.o` in 5749 *32-bit*) 5750 case $host in 5751 x86_64-*kfreebsd*-gnu) 5752 LD="${LD-ld} -m elf_i386_fbsd" 5753 ;; 5754 x86_64-*linux*) 5755 LD="${LD-ld} -m elf_i386" 5756 ;; 5757 ppc64-*linux*|powerpc64-*linux*) 5758 LD="${LD-ld} -m elf32ppclinux" 5759 ;; 5760 s390x-*linux*) 5761 LD="${LD-ld} -m elf_s390" 5762 ;; 5763 sparc64-*linux*) 5764 LD="${LD-ld} -m elf32_sparc" 5765 ;; 5766 esac 5767 ;; 5768 *64-bit*) 5769 case $host in 5770 x86_64-*kfreebsd*-gnu) 5771 LD="${LD-ld} -m elf_x86_64_fbsd" 5772 ;; 5773 x86_64-*linux*) 5774 LD="${LD-ld} -m elf_x86_64" 5775 ;; 5776 ppc*-*linux*|powerpc*-*linux*) 5777 LD="${LD-ld} -m elf64ppc" 5778 ;; 5779 s390*-*linux*|s390*-*tpf*) 5780 LD="${LD-ld} -m elf64_s390" 5781 ;; 5782 sparc*-*linux*) 5783 LD="${LD-ld} -m elf64_sparc" 5784 ;; 5785 esac 5786 ;; 5787 esac 5788 fi 5789 rm -rf conftest* 5790 ;; 5791 5792*-*-sco3.2v5*) 5793 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5794 SAVE_CFLAGS="$CFLAGS" 5795 CFLAGS="$CFLAGS -belf" 5796 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5797echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 5798if test "${lt_cv_cc_needs_belf+set}" = set; then 5799 echo $ECHO_N "(cached) $ECHO_C" >&6 5800else 5801 ac_ext=c 5802ac_cpp='$CPP $CPPFLAGS' 5803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5805ac_compiler_gnu=$ac_cv_c_compiler_gnu 5806 5807 cat >conftest.$ac_ext <<_ACEOF 5808/* confdefs.h. */ 5809_ACEOF 5810cat confdefs.h >>conftest.$ac_ext 5811cat >>conftest.$ac_ext <<_ACEOF 5812/* end confdefs.h. */ 5813 5814int 5815main () 5816{ 5817 5818 ; 5819 return 0; 5820} 5821_ACEOF 5822rm -f conftest.$ac_objext conftest$ac_exeext 5823if { (ac_try="$ac_link" 5824case "(($ac_try" in 5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5826 *) ac_try_echo=$ac_try;; 5827esac 5828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5829 (eval "$ac_link") 2>conftest.er1 5830 ac_status=$? 5831 grep -v '^ *+' conftest.er1 >conftest.err 5832 rm -f conftest.er1 5833 cat conftest.err >&5 5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5835 (exit $ac_status); } && { 5836 test -z "$ac_c_werror_flag" || 5837 test ! -s conftest.err 5838 } && test -s conftest$ac_exeext && 5839 $as_test_x conftest$ac_exeext; then 5840 lt_cv_cc_needs_belf=yes 5841else 5842 echo "$as_me: failed program was:" >&5 5843sed 's/^/| /' conftest.$ac_ext >&5 5844 5845 lt_cv_cc_needs_belf=no 5846fi 5847 5848rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5849 conftest$ac_exeext conftest.$ac_ext 5850 ac_ext=c 5851ac_cpp='$CPP $CPPFLAGS' 5852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5854ac_compiler_gnu=$ac_cv_c_compiler_gnu 5855 5856fi 5857{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5858echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 5859 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5860 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5861 CFLAGS="$SAVE_CFLAGS" 5862 fi 5863 ;; 5864sparc*-*solaris*) 5865 # Find out which ABI we are using. 5866 echo 'int i;' > conftest.$ac_ext 5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5868 (eval $ac_compile) 2>&5 5869 ac_status=$? 5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5871 (exit $ac_status); }; then 5872 case `/usr/bin/file conftest.o` in 5873 *64-bit*) 5874 case $lt_cv_prog_gnu_ld in 5875 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5876 *) 5877 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5878 LD="${LD-ld} -64" 5879 fi 5880 ;; 5881 esac 5882 ;; 5883 esac 5884 fi 5885 rm -rf conftest* 5886 ;; 5887esac 5888 5889need_locks="$enable_libtool_lock" 5890 5891 5892 case $host_os in 5893 rhapsody* | darwin*) 5894 if test -n "$ac_tool_prefix"; then 5895 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5896set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5897{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5899if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5900 echo $ECHO_N "(cached) $ECHO_C" >&6 5901else 5902 if test -n "$DSYMUTIL"; then 5903 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5904else 5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5906for as_dir in $PATH 5907do 5908 IFS=$as_save_IFS 5909 test -z "$as_dir" && as_dir=. 5910 for ac_exec_ext in '' $ac_executable_extensions; do 5911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5912 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5914 break 2 5915 fi 5916done 5917done 5918IFS=$as_save_IFS 5919 5920fi 5921fi 5922DSYMUTIL=$ac_cv_prog_DSYMUTIL 5923if test -n "$DSYMUTIL"; then 5924 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5925echo "${ECHO_T}$DSYMUTIL" >&6; } 5926else 5927 { echo "$as_me:$LINENO: result: no" >&5 5928echo "${ECHO_T}no" >&6; } 5929fi 5930 5931 5932fi 5933if test -z "$ac_cv_prog_DSYMUTIL"; then 5934 ac_ct_DSYMUTIL=$DSYMUTIL 5935 # Extract the first word of "dsymutil", so it can be a program name with args. 5936set dummy dsymutil; ac_word=$2 5937{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5939if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5940 echo $ECHO_N "(cached) $ECHO_C" >&6 5941else 5942 if test -n "$ac_ct_DSYMUTIL"; then 5943 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5944else 5945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5946for as_dir in $PATH 5947do 5948 IFS=$as_save_IFS 5949 test -z "$as_dir" && as_dir=. 5950 for ac_exec_ext in '' $ac_executable_extensions; do 5951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5952 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5954 break 2 5955 fi 5956done 5957done 5958IFS=$as_save_IFS 5959 5960fi 5961fi 5962ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5963if test -n "$ac_ct_DSYMUTIL"; then 5964 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5965echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } 5966else 5967 { echo "$as_me:$LINENO: result: no" >&5 5968echo "${ECHO_T}no" >&6; } 5969fi 5970 5971 if test "x$ac_ct_DSYMUTIL" = x; then 5972 DSYMUTIL=":" 5973 else 5974 case $cross_compiling:$ac_tool_warned in 5975yes:) 5976{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5977whose name does not start with the host triplet. If you think this 5978configuration is useful to you, please write to autoconf@gnu.org." >&5 5979echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5980whose name does not start with the host triplet. If you think this 5981configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5982ac_tool_warned=yes ;; 5983esac 5984 DSYMUTIL=$ac_ct_DSYMUTIL 5985 fi 5986else 5987 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5988fi 5989 5990 if test -n "$ac_tool_prefix"; then 5991 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5992set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5993{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5995if test "${ac_cv_prog_NMEDIT+set}" = set; then 5996 echo $ECHO_N "(cached) $ECHO_C" >&6 5997else 5998 if test -n "$NMEDIT"; then 5999 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6000else 6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6002for as_dir in $PATH 6003do 6004 IFS=$as_save_IFS 6005 test -z "$as_dir" && as_dir=. 6006 for ac_exec_ext in '' $ac_executable_extensions; do 6007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6008 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6010 break 2 6011 fi 6012done 6013done 6014IFS=$as_save_IFS 6015 6016fi 6017fi 6018NMEDIT=$ac_cv_prog_NMEDIT 6019if test -n "$NMEDIT"; then 6020 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 6021echo "${ECHO_T}$NMEDIT" >&6; } 6022else 6023 { echo "$as_me:$LINENO: result: no" >&5 6024echo "${ECHO_T}no" >&6; } 6025fi 6026 6027 6028fi 6029if test -z "$ac_cv_prog_NMEDIT"; then 6030 ac_ct_NMEDIT=$NMEDIT 6031 # Extract the first word of "nmedit", so it can be a program name with args. 6032set dummy nmedit; ac_word=$2 6033{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6035if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6036 echo $ECHO_N "(cached) $ECHO_C" >&6 6037else 6038 if test -n "$ac_ct_NMEDIT"; then 6039 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6040else 6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6042for as_dir in $PATH 6043do 6044 IFS=$as_save_IFS 6045 test -z "$as_dir" && as_dir=. 6046 for ac_exec_ext in '' $ac_executable_extensions; do 6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6048 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6050 break 2 6051 fi 6052done 6053done 6054IFS=$as_save_IFS 6055 6056fi 6057fi 6058ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6059if test -n "$ac_ct_NMEDIT"; then 6060 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6061echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } 6062else 6063 { echo "$as_me:$LINENO: result: no" >&5 6064echo "${ECHO_T}no" >&6; } 6065fi 6066 6067 if test "x$ac_ct_NMEDIT" = x; then 6068 NMEDIT=":" 6069 else 6070 case $cross_compiling:$ac_tool_warned in 6071yes:) 6072{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6073whose name does not start with the host triplet. If you think this 6074configuration is useful to you, please write to autoconf@gnu.org." >&5 6075echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6076whose name does not start with the host triplet. If you think this 6077configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6078ac_tool_warned=yes ;; 6079esac 6080 NMEDIT=$ac_ct_NMEDIT 6081 fi 6082else 6083 NMEDIT="$ac_cv_prog_NMEDIT" 6084fi 6085 6086 if test -n "$ac_tool_prefix"; then 6087 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6088set dummy ${ac_tool_prefix}lipo; ac_word=$2 6089{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6091if test "${ac_cv_prog_LIPO+set}" = set; then 6092 echo $ECHO_N "(cached) $ECHO_C" >&6 6093else 6094 if test -n "$LIPO"; then 6095 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6096else 6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6098for as_dir in $PATH 6099do 6100 IFS=$as_save_IFS 6101 test -z "$as_dir" && as_dir=. 6102 for ac_exec_ext in '' $ac_executable_extensions; do 6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6104 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6106 break 2 6107 fi 6108done 6109done 6110IFS=$as_save_IFS 6111 6112fi 6113fi 6114LIPO=$ac_cv_prog_LIPO 6115if test -n "$LIPO"; then 6116 { echo "$as_me:$LINENO: result: $LIPO" >&5 6117echo "${ECHO_T}$LIPO" >&6; } 6118else 6119 { echo "$as_me:$LINENO: result: no" >&5 6120echo "${ECHO_T}no" >&6; } 6121fi 6122 6123 6124fi 6125if test -z "$ac_cv_prog_LIPO"; then 6126 ac_ct_LIPO=$LIPO 6127 # Extract the first word of "lipo", so it can be a program name with args. 6128set dummy lipo; ac_word=$2 6129{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6131if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6132 echo $ECHO_N "(cached) $ECHO_C" >&6 6133else 6134 if test -n "$ac_ct_LIPO"; then 6135 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6136else 6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6138for as_dir in $PATH 6139do 6140 IFS=$as_save_IFS 6141 test -z "$as_dir" && as_dir=. 6142 for ac_exec_ext in '' $ac_executable_extensions; do 6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6144 ac_cv_prog_ac_ct_LIPO="lipo" 6145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6146 break 2 6147 fi 6148done 6149done 6150IFS=$as_save_IFS 6151 6152fi 6153fi 6154ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6155if test -n "$ac_ct_LIPO"; then 6156 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6157echo "${ECHO_T}$ac_ct_LIPO" >&6; } 6158else 6159 { echo "$as_me:$LINENO: result: no" >&5 6160echo "${ECHO_T}no" >&6; } 6161fi 6162 6163 if test "x$ac_ct_LIPO" = x; then 6164 LIPO=":" 6165 else 6166 case $cross_compiling:$ac_tool_warned in 6167yes:) 6168{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6169whose name does not start with the host triplet. If you think this 6170configuration is useful to you, please write to autoconf@gnu.org." >&5 6171echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6172whose name does not start with the host triplet. If you think this 6173configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6174ac_tool_warned=yes ;; 6175esac 6176 LIPO=$ac_ct_LIPO 6177 fi 6178else 6179 LIPO="$ac_cv_prog_LIPO" 6180fi 6181 6182 if test -n "$ac_tool_prefix"; then 6183 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6184set dummy ${ac_tool_prefix}otool; ac_word=$2 6185{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6187if test "${ac_cv_prog_OTOOL+set}" = set; then 6188 echo $ECHO_N "(cached) $ECHO_C" >&6 6189else 6190 if test -n "$OTOOL"; then 6191 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6192else 6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6194for as_dir in $PATH 6195do 6196 IFS=$as_save_IFS 6197 test -z "$as_dir" && as_dir=. 6198 for ac_exec_ext in '' $ac_executable_extensions; do 6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6200 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6202 break 2 6203 fi 6204done 6205done 6206IFS=$as_save_IFS 6207 6208fi 6209fi 6210OTOOL=$ac_cv_prog_OTOOL 6211if test -n "$OTOOL"; then 6212 { echo "$as_me:$LINENO: result: $OTOOL" >&5 6213echo "${ECHO_T}$OTOOL" >&6; } 6214else 6215 { echo "$as_me:$LINENO: result: no" >&5 6216echo "${ECHO_T}no" >&6; } 6217fi 6218 6219 6220fi 6221if test -z "$ac_cv_prog_OTOOL"; then 6222 ac_ct_OTOOL=$OTOOL 6223 # Extract the first word of "otool", so it can be a program name with args. 6224set dummy otool; ac_word=$2 6225{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6227if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6228 echo $ECHO_N "(cached) $ECHO_C" >&6 6229else 6230 if test -n "$ac_ct_OTOOL"; then 6231 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6232else 6233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6234for as_dir in $PATH 6235do 6236 IFS=$as_save_IFS 6237 test -z "$as_dir" && as_dir=. 6238 for ac_exec_ext in '' $ac_executable_extensions; do 6239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6240 ac_cv_prog_ac_ct_OTOOL="otool" 6241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6242 break 2 6243 fi 6244done 6245done 6246IFS=$as_save_IFS 6247 6248fi 6249fi 6250ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6251if test -n "$ac_ct_OTOOL"; then 6252 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6253echo "${ECHO_T}$ac_ct_OTOOL" >&6; } 6254else 6255 { echo "$as_me:$LINENO: result: no" >&5 6256echo "${ECHO_T}no" >&6; } 6257fi 6258 6259 if test "x$ac_ct_OTOOL" = x; then 6260 OTOOL=":" 6261 else 6262 case $cross_compiling:$ac_tool_warned in 6263yes:) 6264{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6265whose name does not start with the host triplet. If you think this 6266configuration is useful to you, please write to autoconf@gnu.org." >&5 6267echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6268whose name does not start with the host triplet. If you think this 6269configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6270ac_tool_warned=yes ;; 6271esac 6272 OTOOL=$ac_ct_OTOOL 6273 fi 6274else 6275 OTOOL="$ac_cv_prog_OTOOL" 6276fi 6277 6278 if test -n "$ac_tool_prefix"; then 6279 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6280set dummy ${ac_tool_prefix}otool64; ac_word=$2 6281{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6283if test "${ac_cv_prog_OTOOL64+set}" = set; then 6284 echo $ECHO_N "(cached) $ECHO_C" >&6 6285else 6286 if test -n "$OTOOL64"; then 6287 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6288else 6289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6290for as_dir in $PATH 6291do 6292 IFS=$as_save_IFS 6293 test -z "$as_dir" && as_dir=. 6294 for ac_exec_ext in '' $ac_executable_extensions; do 6295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6296 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6298 break 2 6299 fi 6300done 6301done 6302IFS=$as_save_IFS 6303 6304fi 6305fi 6306OTOOL64=$ac_cv_prog_OTOOL64 6307if test -n "$OTOOL64"; then 6308 { echo "$as_me:$LINENO: result: $OTOOL64" >&5 6309echo "${ECHO_T}$OTOOL64" >&6; } 6310else 6311 { echo "$as_me:$LINENO: result: no" >&5 6312echo "${ECHO_T}no" >&6; } 6313fi 6314 6315 6316fi 6317if test -z "$ac_cv_prog_OTOOL64"; then 6318 ac_ct_OTOOL64=$OTOOL64 6319 # Extract the first word of "otool64", so it can be a program name with args. 6320set dummy otool64; ac_word=$2 6321{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6323if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6324 echo $ECHO_N "(cached) $ECHO_C" >&6 6325else 6326 if test -n "$ac_ct_OTOOL64"; then 6327 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6328else 6329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6330for as_dir in $PATH 6331do 6332 IFS=$as_save_IFS 6333 test -z "$as_dir" && as_dir=. 6334 for ac_exec_ext in '' $ac_executable_extensions; do 6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6336 ac_cv_prog_ac_ct_OTOOL64="otool64" 6337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6338 break 2 6339 fi 6340done 6341done 6342IFS=$as_save_IFS 6343 6344fi 6345fi 6346ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6347if test -n "$ac_ct_OTOOL64"; then 6348 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6349echo "${ECHO_T}$ac_ct_OTOOL64" >&6; } 6350else 6351 { echo "$as_me:$LINENO: result: no" >&5 6352echo "${ECHO_T}no" >&6; } 6353fi 6354 6355 if test "x$ac_ct_OTOOL64" = x; then 6356 OTOOL64=":" 6357 else 6358 case $cross_compiling:$ac_tool_warned in 6359yes:) 6360{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6361whose name does not start with the host triplet. If you think this 6362configuration is useful to you, please write to autoconf@gnu.org." >&5 6363echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6364whose name does not start with the host triplet. If you think this 6365configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6366ac_tool_warned=yes ;; 6367esac 6368 OTOOL64=$ac_ct_OTOOL64 6369 fi 6370else 6371 OTOOL64="$ac_cv_prog_OTOOL64" 6372fi 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6401echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } 6402if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6403 echo $ECHO_N "(cached) $ECHO_C" >&6 6404else 6405 lt_cv_apple_cc_single_mod=no 6406 if test -z "${LT_MULTI_MODULE}"; then 6407 # By default we will add the -single_module flag. You can override 6408 # by either setting the environment variable LT_MULTI_MODULE 6409 # non-empty at configure time, or by adding -multi_module to the 6410 # link flags. 6411 rm -rf libconftest.dylib* 6412 echo "int foo(void){return 1;}" > conftest.c 6413 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6414-dynamiclib -Wl,-single_module conftest.c" >&5 6415 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6416 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6417 _lt_result=$? 6418 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6419 lt_cv_apple_cc_single_mod=yes 6420 else 6421 cat conftest.err >&5 6422 fi 6423 rm -rf libconftest.dylib* 6424 rm -f conftest.* 6425 fi 6426fi 6427{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6428echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } 6429 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6430echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } 6431if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6432 echo $ECHO_N "(cached) $ECHO_C" >&6 6433else 6434 lt_cv_ld_exported_symbols_list=no 6435 save_LDFLAGS=$LDFLAGS 6436 echo "_main" > conftest.sym 6437 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6438 cat >conftest.$ac_ext <<_ACEOF 6439/* confdefs.h. */ 6440_ACEOF 6441cat confdefs.h >>conftest.$ac_ext 6442cat >>conftest.$ac_ext <<_ACEOF 6443/* end confdefs.h. */ 6444 6445int 6446main () 6447{ 6448 6449 ; 6450 return 0; 6451} 6452_ACEOF 6453rm -f conftest.$ac_objext conftest$ac_exeext 6454if { (ac_try="$ac_link" 6455case "(($ac_try" in 6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6457 *) ac_try_echo=$ac_try;; 6458esac 6459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6460 (eval "$ac_link") 2>conftest.er1 6461 ac_status=$? 6462 grep -v '^ *+' conftest.er1 >conftest.err 6463 rm -f conftest.er1 6464 cat conftest.err >&5 6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6466 (exit $ac_status); } && { 6467 test -z "$ac_c_werror_flag" || 6468 test ! -s conftest.err 6469 } && test -s conftest$ac_exeext && 6470 $as_test_x conftest$ac_exeext; then 6471 lt_cv_ld_exported_symbols_list=yes 6472else 6473 echo "$as_me: failed program was:" >&5 6474sed 's/^/| /' conftest.$ac_ext >&5 6475 6476 lt_cv_ld_exported_symbols_list=no 6477fi 6478 6479rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6480 conftest$ac_exeext conftest.$ac_ext 6481 LDFLAGS="$save_LDFLAGS" 6482 6483fi 6484{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6485echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } 6486 case $host_os in 6487 rhapsody* | darwin1.[012]) 6488 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6489 darwin1.*) 6490 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6491 darwin*) # darwin 5.x on 6492 # if running on 10.5 or later, the deployment target defaults 6493 # to the OS version, if on x86, and 10.4, the deployment 6494 # target defaults to 10.4. Don't you love it? 6495 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6496 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6497 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6498 10.[012]*) 6499 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6500 10.*) 6501 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6502 esac 6503 ;; 6504 esac 6505 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6506 _lt_dar_single_mod='$single_module' 6507 fi 6508 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6509 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6510 else 6511 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6512 fi 6513 if test "$DSYMUTIL" != ":"; then 6514 _lt_dsymutil='~$DSYMUTIL $lib || :' 6515 else 6516 _lt_dsymutil= 6517 fi 6518 ;; 6519 esac 6520 6521ac_ext=c 6522ac_cpp='$CPP $CPPFLAGS' 6523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6525ac_compiler_gnu=$ac_cv_c_compiler_gnu 6526{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6527echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 6528# On Suns, sometimes $CPP names a directory. 6529if test -n "$CPP" && test -d "$CPP"; then 6530 CPP= 6531fi 6532if test -z "$CPP"; then 6533 if test "${ac_cv_prog_CPP+set}" = set; then 6534 echo $ECHO_N "(cached) $ECHO_C" >&6 6535else 6536 # Double quotes because CPP needs to be expanded 6537 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6538 do 6539 ac_preproc_ok=false 6540for ac_c_preproc_warn_flag in '' yes 6541do 6542 # Use a header file that comes with gcc, so configuring glibc 6543 # with a fresh cross-compiler works. 6544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6545 # <limits.h> exists even on freestanding compilers. 6546 # On the NeXT, cc -E runs the code through the compiler's parser, 6547 # not just through cpp. "Syntax error" is here to catch this case. 6548 cat >conftest.$ac_ext <<_ACEOF 6549/* confdefs.h. */ 6550_ACEOF 6551cat confdefs.h >>conftest.$ac_ext 6552cat >>conftest.$ac_ext <<_ACEOF 6553/* end confdefs.h. */ 6554#ifdef __STDC__ 6555# include <limits.h> 6556#else 6557# include <assert.h> 6558#endif 6559 Syntax error 6560_ACEOF 6561if { (ac_try="$ac_cpp conftest.$ac_ext" 6562case "(($ac_try" in 6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6564 *) ac_try_echo=$ac_try;; 6565esac 6566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6568 ac_status=$? 6569 grep -v '^ *+' conftest.er1 >conftest.err 6570 rm -f conftest.er1 6571 cat conftest.err >&5 6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6573 (exit $ac_status); } >/dev/null && { 6574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6575 test ! -s conftest.err 6576 }; then 6577 : 6578else 6579 echo "$as_me: failed program was:" >&5 6580sed 's/^/| /' conftest.$ac_ext >&5 6581 6582 # Broken: fails on valid input. 6583continue 6584fi 6585 6586rm -f conftest.err conftest.$ac_ext 6587 6588 # OK, works on sane cases. Now check whether nonexistent headers 6589 # can be detected and how. 6590 cat >conftest.$ac_ext <<_ACEOF 6591/* confdefs.h. */ 6592_ACEOF 6593cat confdefs.h >>conftest.$ac_ext 6594cat >>conftest.$ac_ext <<_ACEOF 6595/* end confdefs.h. */ 6596#include <ac_nonexistent.h> 6597_ACEOF 6598if { (ac_try="$ac_cpp conftest.$ac_ext" 6599case "(($ac_try" in 6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6601 *) ac_try_echo=$ac_try;; 6602esac 6603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6605 ac_status=$? 6606 grep -v '^ *+' conftest.er1 >conftest.err 6607 rm -f conftest.er1 6608 cat conftest.err >&5 6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6610 (exit $ac_status); } >/dev/null && { 6611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6612 test ! -s conftest.err 6613 }; then 6614 # Broken: success on invalid input. 6615continue 6616else 6617 echo "$as_me: failed program was:" >&5 6618sed 's/^/| /' conftest.$ac_ext >&5 6619 6620 # Passes both tests. 6621ac_preproc_ok=: 6622break 6623fi 6624 6625rm -f conftest.err conftest.$ac_ext 6626 6627done 6628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6629rm -f conftest.err conftest.$ac_ext 6630if $ac_preproc_ok; then 6631 break 6632fi 6633 6634 done 6635 ac_cv_prog_CPP=$CPP 6636 6637fi 6638 CPP=$ac_cv_prog_CPP 6639else 6640 ac_cv_prog_CPP=$CPP 6641fi 6642{ echo "$as_me:$LINENO: result: $CPP" >&5 6643echo "${ECHO_T}$CPP" >&6; } 6644ac_preproc_ok=false 6645for ac_c_preproc_warn_flag in '' yes 6646do 6647 # Use a header file that comes with gcc, so configuring glibc 6648 # with a fresh cross-compiler works. 6649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6650 # <limits.h> exists even on freestanding compilers. 6651 # On the NeXT, cc -E runs the code through the compiler's parser, 6652 # not just through cpp. "Syntax error" is here to catch this case. 6653 cat >conftest.$ac_ext <<_ACEOF 6654/* confdefs.h. */ 6655_ACEOF 6656cat confdefs.h >>conftest.$ac_ext 6657cat >>conftest.$ac_ext <<_ACEOF 6658/* end confdefs.h. */ 6659#ifdef __STDC__ 6660# include <limits.h> 6661#else 6662# include <assert.h> 6663#endif 6664 Syntax error 6665_ACEOF 6666if { (ac_try="$ac_cpp conftest.$ac_ext" 6667case "(($ac_try" in 6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6669 *) ac_try_echo=$ac_try;; 6670esac 6671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6673 ac_status=$? 6674 grep -v '^ *+' conftest.er1 >conftest.err 6675 rm -f conftest.er1 6676 cat conftest.err >&5 6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6678 (exit $ac_status); } >/dev/null && { 6679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6680 test ! -s conftest.err 6681 }; then 6682 : 6683else 6684 echo "$as_me: failed program was:" >&5 6685sed 's/^/| /' conftest.$ac_ext >&5 6686 6687 # Broken: fails on valid input. 6688continue 6689fi 6690 6691rm -f conftest.err conftest.$ac_ext 6692 6693 # OK, works on sane cases. Now check whether nonexistent headers 6694 # can be detected and how. 6695 cat >conftest.$ac_ext <<_ACEOF 6696/* confdefs.h. */ 6697_ACEOF 6698cat confdefs.h >>conftest.$ac_ext 6699cat >>conftest.$ac_ext <<_ACEOF 6700/* end confdefs.h. */ 6701#include <ac_nonexistent.h> 6702_ACEOF 6703if { (ac_try="$ac_cpp conftest.$ac_ext" 6704case "(($ac_try" in 6705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6706 *) ac_try_echo=$ac_try;; 6707esac 6708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6710 ac_status=$? 6711 grep -v '^ *+' conftest.er1 >conftest.err 6712 rm -f conftest.er1 6713 cat conftest.err >&5 6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6715 (exit $ac_status); } >/dev/null && { 6716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6717 test ! -s conftest.err 6718 }; then 6719 # Broken: success on invalid input. 6720continue 6721else 6722 echo "$as_me: failed program was:" >&5 6723sed 's/^/| /' conftest.$ac_ext >&5 6724 6725 # Passes both tests. 6726ac_preproc_ok=: 6727break 6728fi 6729 6730rm -f conftest.err conftest.$ac_ext 6731 6732done 6733# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6734rm -f conftest.err conftest.$ac_ext 6735if $ac_preproc_ok; then 6736 : 6737else 6738 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6739See \`config.log' for more details." >&5 6740echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6741See \`config.log' for more details." >&2;} 6742 { (exit 1); exit 1; }; } 6743fi 6744 6745ac_ext=c 6746ac_cpp='$CPP $CPPFLAGS' 6747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6749ac_compiler_gnu=$ac_cv_c_compiler_gnu 6750 6751 6752{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6753echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 6754if test "${ac_cv_header_stdc+set}" = set; then 6755 echo $ECHO_N "(cached) $ECHO_C" >&6 6756else 6757 cat >conftest.$ac_ext <<_ACEOF 6758/* confdefs.h. */ 6759_ACEOF 6760cat confdefs.h >>conftest.$ac_ext 6761cat >>conftest.$ac_ext <<_ACEOF 6762/* end confdefs.h. */ 6763#include <stdlib.h> 6764#include <stdarg.h> 6765#include <string.h> 6766#include <float.h> 6767 6768int 6769main () 6770{ 6771 6772 ; 6773 return 0; 6774} 6775_ACEOF 6776rm -f conftest.$ac_objext 6777if { (ac_try="$ac_compile" 6778case "(($ac_try" in 6779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6780 *) ac_try_echo=$ac_try;; 6781esac 6782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6783 (eval "$ac_compile") 2>conftest.er1 6784 ac_status=$? 6785 grep -v '^ *+' conftest.er1 >conftest.err 6786 rm -f conftest.er1 6787 cat conftest.err >&5 6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6789 (exit $ac_status); } && { 6790 test -z "$ac_c_werror_flag" || 6791 test ! -s conftest.err 6792 } && test -s conftest.$ac_objext; then 6793 ac_cv_header_stdc=yes 6794else 6795 echo "$as_me: failed program was:" >&5 6796sed 's/^/| /' conftest.$ac_ext >&5 6797 6798 ac_cv_header_stdc=no 6799fi 6800 6801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6802 6803if test $ac_cv_header_stdc = yes; then 6804 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6805 cat >conftest.$ac_ext <<_ACEOF 6806/* confdefs.h. */ 6807_ACEOF 6808cat confdefs.h >>conftest.$ac_ext 6809cat >>conftest.$ac_ext <<_ACEOF 6810/* end confdefs.h. */ 6811#include <string.h> 6812 6813_ACEOF 6814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6815 $EGREP "memchr" >/dev/null 2>&1; then 6816 : 6817else 6818 ac_cv_header_stdc=no 6819fi 6820rm -f conftest* 6821 6822fi 6823 6824if test $ac_cv_header_stdc = yes; then 6825 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6826 cat >conftest.$ac_ext <<_ACEOF 6827/* confdefs.h. */ 6828_ACEOF 6829cat confdefs.h >>conftest.$ac_ext 6830cat >>conftest.$ac_ext <<_ACEOF 6831/* end confdefs.h. */ 6832#include <stdlib.h> 6833 6834_ACEOF 6835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6836 $EGREP "free" >/dev/null 2>&1; then 6837 : 6838else 6839 ac_cv_header_stdc=no 6840fi 6841rm -f conftest* 6842 6843fi 6844 6845if test $ac_cv_header_stdc = yes; then 6846 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6847 if test "$cross_compiling" = yes; then 6848 : 6849else 6850 cat >conftest.$ac_ext <<_ACEOF 6851/* confdefs.h. */ 6852_ACEOF 6853cat confdefs.h >>conftest.$ac_ext 6854cat >>conftest.$ac_ext <<_ACEOF 6855/* end confdefs.h. */ 6856#include <ctype.h> 6857#include <stdlib.h> 6858#if ((' ' & 0x0FF) == 0x020) 6859# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6860# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6861#else 6862# define ISLOWER(c) \ 6863 (('a' <= (c) && (c) <= 'i') \ 6864 || ('j' <= (c) && (c) <= 'r') \ 6865 || ('s' <= (c) && (c) <= 'z')) 6866# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6867#endif 6868 6869#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6870int 6871main () 6872{ 6873 int i; 6874 for (i = 0; i < 256; i++) 6875 if (XOR (islower (i), ISLOWER (i)) 6876 || toupper (i) != TOUPPER (i)) 6877 return 2; 6878 return 0; 6879} 6880_ACEOF 6881rm -f conftest$ac_exeext 6882if { (ac_try="$ac_link" 6883case "(($ac_try" in 6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6885 *) ac_try_echo=$ac_try;; 6886esac 6887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6888 (eval "$ac_link") 2>&5 6889 ac_status=$? 6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6892 { (case "(($ac_try" in 6893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6894 *) ac_try_echo=$ac_try;; 6895esac 6896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6897 (eval "$ac_try") 2>&5 6898 ac_status=$? 6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6900 (exit $ac_status); }; }; then 6901 : 6902else 6903 echo "$as_me: program exited with status $ac_status" >&5 6904echo "$as_me: failed program was:" >&5 6905sed 's/^/| /' conftest.$ac_ext >&5 6906 6907( exit $ac_status ) 6908ac_cv_header_stdc=no 6909fi 6910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6911fi 6912 6913 6914fi 6915fi 6916{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6917echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 6918if test $ac_cv_header_stdc = yes; then 6919 6920cat >>confdefs.h <<\_ACEOF 6921#define STDC_HEADERS 1 6922_ACEOF 6923 6924fi 6925 6926# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6937 inttypes.h stdint.h unistd.h 6938do 6939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6940{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6943 echo $ECHO_N "(cached) $ECHO_C" >&6 6944else 6945 cat >conftest.$ac_ext <<_ACEOF 6946/* confdefs.h. */ 6947_ACEOF 6948cat confdefs.h >>conftest.$ac_ext 6949cat >>conftest.$ac_ext <<_ACEOF 6950/* end confdefs.h. */ 6951$ac_includes_default 6952 6953#include <$ac_header> 6954_ACEOF 6955rm -f conftest.$ac_objext 6956if { (ac_try="$ac_compile" 6957case "(($ac_try" in 6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6959 *) ac_try_echo=$ac_try;; 6960esac 6961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6962 (eval "$ac_compile") 2>conftest.er1 6963 ac_status=$? 6964 grep -v '^ *+' conftest.er1 >conftest.err 6965 rm -f conftest.er1 6966 cat conftest.err >&5 6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6968 (exit $ac_status); } && { 6969 test -z "$ac_c_werror_flag" || 6970 test ! -s conftest.err 6971 } && test -s conftest.$ac_objext; then 6972 eval "$as_ac_Header=yes" 6973else 6974 echo "$as_me: failed program was:" >&5 6975sed 's/^/| /' conftest.$ac_ext >&5 6976 6977 eval "$as_ac_Header=no" 6978fi 6979 6980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6981fi 6982ac_res=`eval echo '${'$as_ac_Header'}'` 6983 { echo "$as_me:$LINENO: result: $ac_res" >&5 6984echo "${ECHO_T}$ac_res" >&6; } 6985if test `eval echo '${'$as_ac_Header'}'` = yes; then 6986 cat >>confdefs.h <<_ACEOF 6987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6988_ACEOF 6989 6990fi 6991 6992done 6993 6994 6995 6996for ac_header in dlfcn.h 6997do 6998as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6999{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7002 echo $ECHO_N "(cached) $ECHO_C" >&6 7003else 7004 cat >conftest.$ac_ext <<_ACEOF 7005/* confdefs.h. */ 7006_ACEOF 7007cat confdefs.h >>conftest.$ac_ext 7008cat >>conftest.$ac_ext <<_ACEOF 7009/* end confdefs.h. */ 7010$ac_includes_default 7011 7012#include <$ac_header> 7013_ACEOF 7014rm -f conftest.$ac_objext 7015if { (ac_try="$ac_compile" 7016case "(($ac_try" in 7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7018 *) ac_try_echo=$ac_try;; 7019esac 7020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7021 (eval "$ac_compile") 2>conftest.er1 7022 ac_status=$? 7023 grep -v '^ *+' conftest.er1 >conftest.err 7024 rm -f conftest.er1 7025 cat conftest.err >&5 7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7027 (exit $ac_status); } && { 7028 test -z "$ac_c_werror_flag" || 7029 test ! -s conftest.err 7030 } && test -s conftest.$ac_objext; then 7031 eval "$as_ac_Header=yes" 7032else 7033 echo "$as_me: failed program was:" >&5 7034sed 's/^/| /' conftest.$ac_ext >&5 7035 7036 eval "$as_ac_Header=no" 7037fi 7038 7039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7040fi 7041ac_res=`eval echo '${'$as_ac_Header'}'` 7042 { echo "$as_me:$LINENO: result: $ac_res" >&5 7043echo "${ECHO_T}$ac_res" >&6; } 7044if test `eval echo '${'$as_ac_Header'}'` = yes; then 7045 cat >>confdefs.h <<_ACEOF 7046#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7047_ACEOF 7048 7049fi 7050 7051done 7052 7053 7054 7055# Set options 7056 7057 7058 7059 enable_dlopen=no 7060 7061 7062 enable_win32_dll=no 7063 7064 7065 # Check whether --enable-shared was given. 7066if test "${enable_shared+set}" = set; then 7067 enableval=$enable_shared; p=${PACKAGE-default} 7068 case $enableval in 7069 yes) enable_shared=yes ;; 7070 no) enable_shared=no ;; 7071 *) 7072 enable_shared=no 7073 # Look at the argument we got. We use all the common list separators. 7074 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7075 for pkg in $enableval; do 7076 IFS="$lt_save_ifs" 7077 if test "X$pkg" = "X$p"; then 7078 enable_shared=yes 7079 fi 7080 done 7081 IFS="$lt_save_ifs" 7082 ;; 7083 esac 7084else 7085 enable_shared=yes 7086fi 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 # Check whether --enable-static was given. 7097if test "${enable_static+set}" = set; then 7098 enableval=$enable_static; p=${PACKAGE-default} 7099 case $enableval in 7100 yes) enable_static=yes ;; 7101 no) enable_static=no ;; 7102 *) 7103 enable_static=no 7104 # Look at the argument we got. We use all the common list separators. 7105 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7106 for pkg in $enableval; do 7107 IFS="$lt_save_ifs" 7108 if test "X$pkg" = "X$p"; then 7109 enable_static=yes 7110 fi 7111 done 7112 IFS="$lt_save_ifs" 7113 ;; 7114 esac 7115else 7116 enable_static=yes 7117fi 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128# Check whether --with-pic was given. 7129if test "${with_pic+set}" = set; then 7130 withval=$with_pic; pic_mode="$withval" 7131else 7132 pic_mode=default 7133fi 7134 7135 7136test -z "$pic_mode" && pic_mode=default 7137 7138 7139 7140 7141 7142 7143 7144 # Check whether --enable-fast-install was given. 7145if test "${enable_fast_install+set}" = set; then 7146 enableval=$enable_fast_install; p=${PACKAGE-default} 7147 case $enableval in 7148 yes) enable_fast_install=yes ;; 7149 no) enable_fast_install=no ;; 7150 *) 7151 enable_fast_install=no 7152 # Look at the argument we got. We use all the common list separators. 7153 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7154 for pkg in $enableval; do 7155 IFS="$lt_save_ifs" 7156 if test "X$pkg" = "X$p"; then 7157 enable_fast_install=yes 7158 fi 7159 done 7160 IFS="$lt_save_ifs" 7161 ;; 7162 esac 7163else 7164 enable_fast_install=yes 7165fi 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177# This can be used to rebuild libtool when needed 7178LIBTOOL_DEPS="$ltmain" 7179 7180# Always use our own libtool. 7181LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207test -z "$LN_S" && LN_S="ln -s" 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222if test -n "${ZSH_VERSION+set}" ; then 7223 setopt NO_GLOB_SUBST 7224fi 7225 7226{ echo "$as_me:$LINENO: checking for objdir" >&5 7227echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 7228if test "${lt_cv_objdir+set}" = set; then 7229 echo $ECHO_N "(cached) $ECHO_C" >&6 7230else 7231 rm -f .libs 2>/dev/null 7232mkdir .libs 2>/dev/null 7233if test -d .libs; then 7234 lt_cv_objdir=.libs 7235else 7236 # MS-DOS does not allow filenames that begin with a dot. 7237 lt_cv_objdir=_libs 7238fi 7239rmdir .libs 2>/dev/null 7240fi 7241{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7242echo "${ECHO_T}$lt_cv_objdir" >&6; } 7243objdir=$lt_cv_objdir 7244 7245 7246 7247 7248 7249cat >>confdefs.h <<_ACEOF 7250#define LT_OBJDIR "$lt_cv_objdir/" 7251_ACEOF 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269case $host_os in 7270aix3*) 7271 # AIX sometimes has problems with the GCC collect2 program. For some 7272 # reason, if we set the COLLECT_NAMES environment variable, the problems 7273 # vanish in a puff of smoke. 7274 if test "X${COLLECT_NAMES+set}" != Xset; then 7275 COLLECT_NAMES= 7276 export COLLECT_NAMES 7277 fi 7278 ;; 7279esac 7280 7281# Sed substitution that helps us do robust quoting. It backslashifies 7282# metacharacters that are still active within double-quoted strings. 7283sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7284 7285# Same as above, but do not quote variable references. 7286double_quote_subst='s/\(["`\\]\)/\\\1/g' 7287 7288# Sed substitution to delay expansion of an escaped shell variable in a 7289# double_quote_subst'ed string. 7290delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7291 7292# Sed substitution to delay expansion of an escaped single quote. 7293delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7294 7295# Sed substitution to avoid accidental globbing in evaled expressions 7296no_glob_subst='s/\*/\\\*/g' 7297 7298# Global variables: 7299ofile=libtool 7300can_build_shared=yes 7301 7302# All known linkers require a `.a' archive for static linking (except MSVC, 7303# which needs '.lib'). 7304libext=a 7305 7306with_gnu_ld="$lt_cv_prog_gnu_ld" 7307 7308old_CC="$CC" 7309old_CFLAGS="$CFLAGS" 7310 7311# Set sane defaults for various variables 7312test -z "$CC" && CC=cc 7313test -z "$LTCC" && LTCC=$CC 7314test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7315test -z "$LD" && LD=ld 7316test -z "$ac_objext" && ac_objext=o 7317 7318for cc_temp in $compiler""; do 7319 case $cc_temp in 7320 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7321 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7322 \-*) ;; 7323 *) break;; 7324 esac 7325done 7326cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7327 7328 7329# Only perform the check for file, if the check method requires it 7330test -z "$MAGIC_CMD" && MAGIC_CMD=file 7331case $deplibs_check_method in 7332file_magic*) 7333 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7334 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7335echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7336if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7337 echo $ECHO_N "(cached) $ECHO_C" >&6 7338else 7339 case $MAGIC_CMD in 7340[\\/*] | ?:[\\/]*) 7341 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7342 ;; 7343*) 7344 lt_save_MAGIC_CMD="$MAGIC_CMD" 7345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7346 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7347 for ac_dir in $ac_dummy; do 7348 IFS="$lt_save_ifs" 7349 test -z "$ac_dir" && ac_dir=. 7350 if test -f $ac_dir/${ac_tool_prefix}file; then 7351 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7352 if test -n "$file_magic_test_file"; then 7353 case $deplibs_check_method in 7354 "file_magic "*) 7355 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7357 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7358 $EGREP "$file_magic_regex" > /dev/null; then 7359 : 7360 else 7361 cat <<_LT_EOF 1>&2 7362 7363*** Warning: the command libtool uses to detect shared libraries, 7364*** $file_magic_cmd, produces output that libtool cannot recognize. 7365*** The result is that libtool may fail to recognize shared libraries 7366*** as such. This will affect the creation of libtool libraries that 7367*** depend on shared libraries, but programs linked with such libtool 7368*** libraries will work regardless of this problem. Nevertheless, you 7369*** may want to report the problem to your system manager and/or to 7370*** bug-libtool@gnu.org 7371 7372_LT_EOF 7373 fi ;; 7374 esac 7375 fi 7376 break 7377 fi 7378 done 7379 IFS="$lt_save_ifs" 7380 MAGIC_CMD="$lt_save_MAGIC_CMD" 7381 ;; 7382esac 7383fi 7384 7385MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7386if test -n "$MAGIC_CMD"; then 7387 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7388echo "${ECHO_T}$MAGIC_CMD" >&6; } 7389else 7390 { echo "$as_me:$LINENO: result: no" >&5 7391echo "${ECHO_T}no" >&6; } 7392fi 7393 7394 7395 7396 7397 7398if test -z "$lt_cv_path_MAGIC_CMD"; then 7399 if test -n "$ac_tool_prefix"; then 7400 { echo "$as_me:$LINENO: checking for file" >&5 7401echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7402if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7403 echo $ECHO_N "(cached) $ECHO_C" >&6 7404else 7405 case $MAGIC_CMD in 7406[\\/*] | ?:[\\/]*) 7407 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7408 ;; 7409*) 7410 lt_save_MAGIC_CMD="$MAGIC_CMD" 7411 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7412 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7413 for ac_dir in $ac_dummy; do 7414 IFS="$lt_save_ifs" 7415 test -z "$ac_dir" && ac_dir=. 7416 if test -f $ac_dir/file; then 7417 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7418 if test -n "$file_magic_test_file"; then 7419 case $deplibs_check_method in 7420 "file_magic "*) 7421 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7422 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7423 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7424 $EGREP "$file_magic_regex" > /dev/null; then 7425 : 7426 else 7427 cat <<_LT_EOF 1>&2 7428 7429*** Warning: the command libtool uses to detect shared libraries, 7430*** $file_magic_cmd, produces output that libtool cannot recognize. 7431*** The result is that libtool may fail to recognize shared libraries 7432*** as such. This will affect the creation of libtool libraries that 7433*** depend on shared libraries, but programs linked with such libtool 7434*** libraries will work regardless of this problem. Nevertheless, you 7435*** may want to report the problem to your system manager and/or to 7436*** bug-libtool@gnu.org 7437 7438_LT_EOF 7439 fi ;; 7440 esac 7441 fi 7442 break 7443 fi 7444 done 7445 IFS="$lt_save_ifs" 7446 MAGIC_CMD="$lt_save_MAGIC_CMD" 7447 ;; 7448esac 7449fi 7450 7451MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7452if test -n "$MAGIC_CMD"; then 7453 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7454echo "${ECHO_T}$MAGIC_CMD" >&6; } 7455else 7456 { echo "$as_me:$LINENO: result: no" >&5 7457echo "${ECHO_T}no" >&6; } 7458fi 7459 7460 7461 else 7462 MAGIC_CMD=: 7463 fi 7464fi 7465 7466 fi 7467 ;; 7468esac 7469 7470# Use C for the default configuration in the libtool script 7471 7472lt_save_CC="$CC" 7473ac_ext=c 7474ac_cpp='$CPP $CPPFLAGS' 7475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7477ac_compiler_gnu=$ac_cv_c_compiler_gnu 7478 7479 7480# Source file extension for C test sources. 7481ac_ext=c 7482 7483# Object file extension for compiled C test sources. 7484objext=o 7485objext=$objext 7486 7487# Code to be used in simple compile tests 7488lt_simple_compile_test_code="int some_variable = 0;" 7489 7490# Code to be used in simple link tests 7491lt_simple_link_test_code='int main(){return(0);}' 7492 7493 7494 7495 7496 7497 7498 7499# If no C compiler was specified, use CC. 7500LTCC=${LTCC-"$CC"} 7501 7502# If no C compiler flags were specified, use CFLAGS. 7503LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7504 7505# Allow CC to be a program name with arguments. 7506compiler=$CC 7507 7508# Save the default compiler, since it gets overwritten when the other 7509# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7510compiler_DEFAULT=$CC 7511 7512# save warnings/boilerplate of simple test code 7513ac_outfile=conftest.$ac_objext 7514echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7515eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7516_lt_compiler_boilerplate=`cat conftest.err` 7517$RM conftest* 7518 7519ac_outfile=conftest.$ac_objext 7520echo "$lt_simple_link_test_code" >conftest.$ac_ext 7521eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7522_lt_linker_boilerplate=`cat conftest.err` 7523$RM -r conftest* 7524 7525 7526## CAVEAT EMPTOR: 7527## There is no encapsulation within the following macros, do not change 7528## the running order or otherwise move them around unless you know exactly 7529## what you are doing... 7530if test -n "$compiler"; then 7531 7532lt_prog_compiler_no_builtin_flag= 7533 7534if test "$GCC" = yes; then 7535 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7536 7537 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7538echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7539if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7540 echo $ECHO_N "(cached) $ECHO_C" >&6 7541else 7542 lt_cv_prog_compiler_rtti_exceptions=no 7543 ac_outfile=conftest.$ac_objext 7544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7545 lt_compiler_flag="-fno-rtti -fno-exceptions" 7546 # Insert the option either (1) after the last *FLAGS variable, or 7547 # (2) before a word containing "conftest.", or (3) at the end. 7548 # Note that $ac_compile itself does not contain backslashes and begins 7549 # with a dollar sign (not a hyphen), so the echo should work correctly. 7550 # The option is referenced via a variable to avoid confusing sed. 7551 lt_compile=`echo "$ac_compile" | $SED \ 7552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7554 -e 's:$: $lt_compiler_flag:'` 7555 (eval echo "\"\$as_me:7555: $lt_compile\"" >&5) 7556 (eval "$lt_compile" 2>conftest.err) 7557 ac_status=$? 7558 cat conftest.err >&5 7559 echo "$as_me:7559: \$? = $ac_status" >&5 7560 if (exit $ac_status) && test -s "$ac_outfile"; then 7561 # The compiler can only warn and ignore the option if not recognized 7562 # So say no if there are warnings other than the usual output. 7563 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7565 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7566 lt_cv_prog_compiler_rtti_exceptions=yes 7567 fi 7568 fi 7569 $RM conftest* 7570 7571fi 7572{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7573echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7574 7575if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7576 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7577else 7578 : 7579fi 7580 7581fi 7582 7583 7584 7585 7586 7587 7588 lt_prog_compiler_wl= 7589lt_prog_compiler_pic= 7590lt_prog_compiler_static= 7591 7592{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7593echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7594 7595 if test "$GCC" = yes; then 7596 lt_prog_compiler_wl='-Wl,' 7597 lt_prog_compiler_static='-static' 7598 7599 case $host_os in 7600 aix*) 7601 # All AIX code is PIC. 7602 if test "$host_cpu" = ia64; then 7603 # AIX 5 now supports IA64 processor 7604 lt_prog_compiler_static='-Bstatic' 7605 fi 7606 ;; 7607 7608 amigaos*) 7609 case $host_cpu in 7610 powerpc) 7611 # see comment about AmigaOS4 .so support 7612 lt_prog_compiler_pic='-fPIC' 7613 ;; 7614 m68k) 7615 # FIXME: we need at least 68020 code to build shared libraries, but 7616 # adding the `-m68020' flag to GCC prevents building anything better, 7617 # like `-m68040'. 7618 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7619 ;; 7620 esac 7621 ;; 7622 7623 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7624 # PIC is the default for these OSes. 7625 ;; 7626 7627 mingw* | cygwin* | pw32* | os2*) 7628 # This hack is so that the source file can tell whether it is being 7629 # built for inclusion in a dll (and should export symbols for example). 7630 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7631 # (--disable-auto-import) libraries 7632 lt_prog_compiler_pic='-DDLL_EXPORT' 7633 ;; 7634 7635 darwin* | rhapsody*) 7636 # PIC is the default on this platform 7637 # Common symbols not allowed in MH_DYLIB files 7638 lt_prog_compiler_pic='-fno-common' 7639 ;; 7640 7641 hpux*) 7642 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7643 # not for PA HP-UX. 7644 case $host_cpu in 7645 hppa*64*|ia64*) 7646 # +Z the default 7647 ;; 7648 *) 7649 lt_prog_compiler_pic='-fPIC' 7650 ;; 7651 esac 7652 ;; 7653 7654 interix[3-9]*) 7655 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7656 # Instead, we relocate shared libraries at runtime. 7657 ;; 7658 7659 msdosdjgpp*) 7660 # Just because we use GCC doesn't mean we suddenly get shared libraries 7661 # on systems that don't support them. 7662 lt_prog_compiler_can_build_shared=no 7663 enable_shared=no 7664 ;; 7665 7666 *nto* | *qnx*) 7667 # QNX uses GNU C++, but need to define -shared option too, otherwise 7668 # it will coredump. 7669 lt_prog_compiler_pic='-fPIC -shared' 7670 ;; 7671 7672 sysv4*MP*) 7673 if test -d /usr/nec; then 7674 lt_prog_compiler_pic=-Kconform_pic 7675 fi 7676 ;; 7677 7678 *) 7679 lt_prog_compiler_pic='-fPIC' 7680 ;; 7681 esac 7682 else 7683 # PORTME Check for flag to pass linker flags through the system compiler. 7684 case $host_os in 7685 aix*) 7686 lt_prog_compiler_wl='-Wl,' 7687 if test "$host_cpu" = ia64; then 7688 # AIX 5 now supports IA64 processor 7689 lt_prog_compiler_static='-Bstatic' 7690 else 7691 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7692 fi 7693 ;; 7694 7695 mingw* | cygwin* | pw32* | os2*) 7696 # This hack is so that the source file can tell whether it is being 7697 # built for inclusion in a dll (and should export symbols for example). 7698 lt_prog_compiler_pic='-DDLL_EXPORT' 7699 ;; 7700 7701 hpux9* | hpux10* | hpux11*) 7702 lt_prog_compiler_wl='-Wl,' 7703 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7704 # not for PA HP-UX. 7705 case $host_cpu in 7706 hppa*64*|ia64*) 7707 # +Z the default 7708 ;; 7709 *) 7710 lt_prog_compiler_pic='+Z' 7711 ;; 7712 esac 7713 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7714 lt_prog_compiler_static='${wl}-a ${wl}archive' 7715 ;; 7716 7717 irix5* | irix6* | nonstopux*) 7718 lt_prog_compiler_wl='-Wl,' 7719 # PIC (with -KPIC) is the default. 7720 lt_prog_compiler_static='-non_shared' 7721 ;; 7722 7723 linux* | k*bsd*-gnu) 7724 case $cc_basename in 7725 icc* | ecc* | ifort*) 7726 lt_prog_compiler_wl='-Wl,' 7727 lt_prog_compiler_pic='-KPIC' 7728 lt_prog_compiler_static='-static' 7729 ;; 7730 pgcc* | pgf77* | pgf90* | pgf95*) 7731 # Portland Group compilers (*not* the Pentium gcc compiler, 7732 # which looks to be a dead project) 7733 lt_prog_compiler_wl='-Wl,' 7734 lt_prog_compiler_pic='-fpic' 7735 lt_prog_compiler_static='-Bstatic' 7736 ;; 7737 ccc*) 7738 lt_prog_compiler_wl='-Wl,' 7739 # All Alpha code is PIC. 7740 lt_prog_compiler_static='-non_shared' 7741 ;; 7742 xl*) 7743 # IBM XL C 8.0/Fortran 10.1 on PPC 7744 lt_prog_compiler_wl='-Wl,' 7745 lt_prog_compiler_pic='-qpic' 7746 lt_prog_compiler_static='-qstaticlink' 7747 ;; 7748 *) 7749 case `$CC -V 2>&1 | sed 5q` in 7750 *Sun\ C*) 7751 # Sun C 5.9 7752 lt_prog_compiler_pic='-KPIC' 7753 lt_prog_compiler_static='-Bstatic' 7754 lt_prog_compiler_wl='-Wl,' 7755 ;; 7756 *Sun\ F*) 7757 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7758 lt_prog_compiler_pic='-KPIC' 7759 lt_prog_compiler_static='-Bstatic' 7760 lt_prog_compiler_wl='' 7761 ;; 7762 esac 7763 ;; 7764 esac 7765 ;; 7766 7767 newsos6) 7768 lt_prog_compiler_pic='-KPIC' 7769 lt_prog_compiler_static='-Bstatic' 7770 ;; 7771 7772 *nto* | *qnx*) 7773 # QNX uses GNU C++, but need to define -shared option too, otherwise 7774 # it will coredump. 7775 lt_prog_compiler_pic='-fPIC -shared' 7776 ;; 7777 7778 osf3* | osf4* | osf5*) 7779 lt_prog_compiler_wl='-Wl,' 7780 # All OSF/1 code is PIC. 7781 lt_prog_compiler_static='-non_shared' 7782 ;; 7783 7784 rdos*) 7785 lt_prog_compiler_static='-non_shared' 7786 ;; 7787 7788 solaris*) 7789 lt_prog_compiler_pic='-KPIC' 7790 lt_prog_compiler_static='-Bstatic' 7791 case $cc_basename in 7792 f77* | f90* | f95*) 7793 lt_prog_compiler_wl='-Qoption ld ';; 7794 *) 7795 lt_prog_compiler_wl='-Wl,';; 7796 esac 7797 ;; 7798 7799 sunos4*) 7800 lt_prog_compiler_wl='-Qoption ld ' 7801 lt_prog_compiler_pic='-PIC' 7802 lt_prog_compiler_static='-Bstatic' 7803 ;; 7804 7805 sysv4 | sysv4.2uw2* | sysv4.3*) 7806 lt_prog_compiler_wl='-Wl,' 7807 lt_prog_compiler_pic='-KPIC' 7808 lt_prog_compiler_static='-Bstatic' 7809 ;; 7810 7811 sysv4*MP*) 7812 if test -d /usr/nec ;then 7813 lt_prog_compiler_pic='-Kconform_pic' 7814 lt_prog_compiler_static='-Bstatic' 7815 fi 7816 ;; 7817 7818 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7819 lt_prog_compiler_wl='-Wl,' 7820 lt_prog_compiler_pic='-KPIC' 7821 lt_prog_compiler_static='-Bstatic' 7822 ;; 7823 7824 unicos*) 7825 lt_prog_compiler_wl='-Wl,' 7826 lt_prog_compiler_can_build_shared=no 7827 ;; 7828 7829 uts4*) 7830 lt_prog_compiler_pic='-pic' 7831 lt_prog_compiler_static='-Bstatic' 7832 ;; 7833 7834 *) 7835 lt_prog_compiler_can_build_shared=no 7836 ;; 7837 esac 7838 fi 7839 7840case $host_os in 7841 # For platforms which do not support PIC, -DPIC is meaningless: 7842 *djgpp*) 7843 lt_prog_compiler_pic= 7844 ;; 7845 *) 7846 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7847 ;; 7848esac 7849{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7850echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7851 7852 7853 7854 7855 7856 7857# 7858# Check to make sure the PIC flag actually works. 7859# 7860if test -n "$lt_prog_compiler_pic"; then 7861 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7862echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7863if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7864 echo $ECHO_N "(cached) $ECHO_C" >&6 7865else 7866 lt_cv_prog_compiler_pic_works=no 7867 ac_outfile=conftest.$ac_objext 7868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7869 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7870 # Insert the option either (1) after the last *FLAGS variable, or 7871 # (2) before a word containing "conftest.", or (3) at the end. 7872 # Note that $ac_compile itself does not contain backslashes and begins 7873 # with a dollar sign (not a hyphen), so the echo should work correctly. 7874 # The option is referenced via a variable to avoid confusing sed. 7875 lt_compile=`echo "$ac_compile" | $SED \ 7876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7878 -e 's:$: $lt_compiler_flag:'` 7879 (eval echo "\"\$as_me:7879: $lt_compile\"" >&5) 7880 (eval "$lt_compile" 2>conftest.err) 7881 ac_status=$? 7882 cat conftest.err >&5 7883 echo "$as_me:7883: \$? = $ac_status" >&5 7884 if (exit $ac_status) && test -s "$ac_outfile"; then 7885 # The compiler can only warn and ignore the option if not recognized 7886 # So say no if there are warnings other than the usual output. 7887 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7888 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7889 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7890 lt_cv_prog_compiler_pic_works=yes 7891 fi 7892 fi 7893 $RM conftest* 7894 7895fi 7896{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7897echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } 7898 7899if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7900 case $lt_prog_compiler_pic in 7901 "" | " "*) ;; 7902 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7903 esac 7904else 7905 lt_prog_compiler_pic= 7906 lt_prog_compiler_can_build_shared=no 7907fi 7908 7909fi 7910 7911 7912 7913 7914 7915 7916# 7917# Check to make sure the static flag actually works. 7918# 7919wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7920{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7921echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7922if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7923 echo $ECHO_N "(cached) $ECHO_C" >&6 7924else 7925 lt_cv_prog_compiler_static_works=no 7926 save_LDFLAGS="$LDFLAGS" 7927 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7928 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7929 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7930 # The linker can only warn and ignore the option if not recognized 7931 # So say no if there are warnings 7932 if test -s conftest.err; then 7933 # Append any errors to the config.log. 7934 cat conftest.err 1>&5 7935 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7937 if diff conftest.exp conftest.er2 >/dev/null; then 7938 lt_cv_prog_compiler_static_works=yes 7939 fi 7940 else 7941 lt_cv_prog_compiler_static_works=yes 7942 fi 7943 fi 7944 $RM -r conftest* 7945 LDFLAGS="$save_LDFLAGS" 7946 7947fi 7948{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7949echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } 7950 7951if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7952 : 7953else 7954 lt_prog_compiler_static= 7955fi 7956 7957 7958 7959 7960 7961 7962 7963 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7964echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7965if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7966 echo $ECHO_N "(cached) $ECHO_C" >&6 7967else 7968 lt_cv_prog_compiler_c_o=no 7969 $RM -r conftest 2>/dev/null 7970 mkdir conftest 7971 cd conftest 7972 mkdir out 7973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7974 7975 lt_compiler_flag="-o out/conftest2.$ac_objext" 7976 # Insert the option either (1) after the last *FLAGS variable, or 7977 # (2) before a word containing "conftest.", or (3) at the end. 7978 # Note that $ac_compile itself does not contain backslashes and begins 7979 # with a dollar sign (not a hyphen), so the echo should work correctly. 7980 lt_compile=`echo "$ac_compile" | $SED \ 7981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7983 -e 's:$: $lt_compiler_flag:'` 7984 (eval echo "\"\$as_me:7984: $lt_compile\"" >&5) 7985 (eval "$lt_compile" 2>out/conftest.err) 7986 ac_status=$? 7987 cat out/conftest.err >&5 7988 echo "$as_me:7988: \$? = $ac_status" >&5 7989 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7990 then 7991 # The compiler can only warn and ignore the option if not recognized 7992 # So say no if there are warnings 7993 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7994 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7995 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7996 lt_cv_prog_compiler_c_o=yes 7997 fi 7998 fi 7999 chmod u+w . 2>&5 8000 $RM conftest* 8001 # SGI C++ compiler will create directory out/ii_files/ for 8002 # template instantiation 8003 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8004 $RM out/* && rmdir out 8005 cd .. 8006 $RM -r conftest 8007 $RM conftest* 8008 8009fi 8010{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8011echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 8012 8013 8014 8015 8016 8017 8018 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8019echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 8020if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8021 echo $ECHO_N "(cached) $ECHO_C" >&6 8022else 8023 lt_cv_prog_compiler_c_o=no 8024 $RM -r conftest 2>/dev/null 8025 mkdir conftest 8026 cd conftest 8027 mkdir out 8028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8029 8030 lt_compiler_flag="-o out/conftest2.$ac_objext" 8031 # Insert the option either (1) after the last *FLAGS variable, or 8032 # (2) before a word containing "conftest.", or (3) at the end. 8033 # Note that $ac_compile itself does not contain backslashes and begins 8034 # with a dollar sign (not a hyphen), so the echo should work correctly. 8035 lt_compile=`echo "$ac_compile" | $SED \ 8036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8038 -e 's:$: $lt_compiler_flag:'` 8039 (eval echo "\"\$as_me:8039: $lt_compile\"" >&5) 8040 (eval "$lt_compile" 2>out/conftest.err) 8041 ac_status=$? 8042 cat out/conftest.err >&5 8043 echo "$as_me:8043: \$? = $ac_status" >&5 8044 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8045 then 8046 # The compiler can only warn and ignore the option if not recognized 8047 # So say no if there are warnings 8048 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8051 lt_cv_prog_compiler_c_o=yes 8052 fi 8053 fi 8054 chmod u+w . 2>&5 8055 $RM conftest* 8056 # SGI C++ compiler will create directory out/ii_files/ for 8057 # template instantiation 8058 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8059 $RM out/* && rmdir out 8060 cd .. 8061 $RM -r conftest 8062 $RM conftest* 8063 8064fi 8065{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8066echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 8067 8068 8069 8070 8071hard_links="nottested" 8072if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8073 # do not overwrite the value of need_locks provided by the user 8074 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8075echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 8076 hard_links=yes 8077 $RM conftest* 8078 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8079 touch conftest.a 8080 ln conftest.a conftest.b 2>&5 || hard_links=no 8081 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8082 { echo "$as_me:$LINENO: result: $hard_links" >&5 8083echo "${ECHO_T}$hard_links" >&6; } 8084 if test "$hard_links" = no; then 8085 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8086echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8087 need_locks=warn 8088 fi 8089else 8090 need_locks=no 8091fi 8092 8093 8094 8095 8096 8097 8098 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8099echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 8100 8101 runpath_var= 8102 allow_undefined_flag= 8103 always_export_symbols=no 8104 archive_cmds= 8105 archive_expsym_cmds= 8106 compiler_needs_object=no 8107 enable_shared_with_static_runtimes=no 8108 export_dynamic_flag_spec= 8109 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8110 hardcode_automatic=no 8111 hardcode_direct=no 8112 hardcode_direct_absolute=no 8113 hardcode_libdir_flag_spec= 8114 hardcode_libdir_flag_spec_ld= 8115 hardcode_libdir_separator= 8116 hardcode_minus_L=no 8117 hardcode_shlibpath_var=unsupported 8118 inherit_rpath=no 8119 link_all_deplibs=unknown 8120 module_cmds= 8121 module_expsym_cmds= 8122 old_archive_from_new_cmds= 8123 old_archive_from_expsyms_cmds= 8124 thread_safe_flag_spec= 8125 whole_archive_flag_spec= 8126 # include_expsyms should be a list of space-separated symbols to be *always* 8127 # included in the symbol list 8128 include_expsyms= 8129 # exclude_expsyms can be an extended regexp of symbols to exclude 8130 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8131 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8132 # as well as any symbol that contains `d'. 8133 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8134 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8135 # platforms (ab)use it in PIC code, but their linkers get confused if 8136 # the symbol is explicitly referenced. Since portable code cannot 8137 # rely on this symbol name, it's probably fine to never include it in 8138 # preloaded symbol tables. 8139 # Exclude shared library initialization/finalization symbols. 8140 extract_expsyms_cmds= 8141 8142 case $host_os in 8143 cygwin* | mingw* | pw32*) 8144 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8145 # When not using gcc, we currently assume that we are using 8146 # Microsoft Visual C++. 8147 if test "$GCC" != yes; then 8148 with_gnu_ld=no 8149 fi 8150 ;; 8151 interix*) 8152 # we just hope/assume this is gcc and not c89 (= MSVC++) 8153 with_gnu_ld=yes 8154 ;; 8155 openbsd*) 8156 with_gnu_ld=no 8157 ;; 8158 esac 8159 8160 ld_shlibs=yes 8161 if test "$with_gnu_ld" = yes; then 8162 # If archive_cmds runs LD, not CC, wlarc should be empty 8163 wlarc='${wl}' 8164 8165 # Set some defaults for GNU ld with shared library support. These 8166 # are reset later if shared libraries are not supported. Putting them 8167 # here allows them to be overridden if necessary. 8168 runpath_var=LD_RUN_PATH 8169 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8170 export_dynamic_flag_spec='${wl}--export-dynamic' 8171 # ancient GNU ld didn't support --whole-archive et. al. 8172 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8173 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8174 else 8175 whole_archive_flag_spec= 8176 fi 8177 supports_anon_versioning=no 8178 case `$LD -v 2>&1` in 8179 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8180 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8181 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8182 *\ 2.11.*) ;; # other 2.11 versions 8183 *) supports_anon_versioning=yes ;; 8184 esac 8185 8186 # See if GNU ld supports shared libraries. 8187 case $host_os in 8188 aix[3-9]*) 8189 # On AIX/PPC, the GNU linker is very broken 8190 if test "$host_cpu" != ia64; then 8191 ld_shlibs=no 8192 cat <<_LT_EOF 1>&2 8193 8194*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8195*** to be unable to reliably create shared libraries on AIX. 8196*** Therefore, libtool is disabling shared libraries support. If you 8197*** really care for shared libraries, you may want to modify your PATH 8198*** so that a non-GNU linker is found, and then restart. 8199 8200_LT_EOF 8201 fi 8202 ;; 8203 8204 amigaos*) 8205 case $host_cpu in 8206 powerpc) 8207 # see comment about AmigaOS4 .so support 8208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8209 archive_expsym_cmds='' 8210 ;; 8211 m68k) 8212 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)' 8213 hardcode_libdir_flag_spec='-L$libdir' 8214 hardcode_minus_L=yes 8215 ;; 8216 esac 8217 ;; 8218 8219 beos*) 8220 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8221 allow_undefined_flag=unsupported 8222 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8223 # support --undefined. This deserves some investigation. FIXME 8224 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8225 else 8226 ld_shlibs=no 8227 fi 8228 ;; 8229 8230 cygwin* | mingw* | pw32*) 8231 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8232 # as there is no search path for DLLs. 8233 hardcode_libdir_flag_spec='-L$libdir' 8234 allow_undefined_flag=unsupported 8235 always_export_symbols=no 8236 enable_shared_with_static_runtimes=yes 8237 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8238 8239 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8241 # If the export-symbols file already is a .def file (1st line 8242 # is EXPORTS), use it as is; otherwise, prepend... 8243 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8244 cp $export_symbols $output_objdir/$soname.def; 8245 else 8246 echo EXPORTS > $output_objdir/$soname.def; 8247 cat $export_symbols >> $output_objdir/$soname.def; 8248 fi~ 8249 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8250 else 8251 ld_shlibs=no 8252 fi 8253 ;; 8254 8255 interix[3-9]*) 8256 hardcode_direct=no 8257 hardcode_shlibpath_var=no 8258 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8259 export_dynamic_flag_spec='${wl}-E' 8260 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8261 # Instead, shared libraries are loaded at an image base (0x10000000 by 8262 # default) and relocated if they conflict, which is a slow very memory 8263 # consuming and fragmenting process. To avoid this, we pick a random, 8264 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8265 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8266 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8267 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' 8268 ;; 8269 8270 gnu* | linux* | tpf* | k*bsd*-gnu) 8271 tmp_diet=no 8272 if test "$host_os" = linux-dietlibc; then 8273 case $cc_basename in 8274 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8275 esac 8276 fi 8277 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8278 && test "$tmp_diet" = no 8279 then 8280 tmp_addflag= 8281 tmp_sharedflag='-shared' 8282 case $cc_basename,$host_cpu in 8283 pgcc*) # Portland Group C compiler 8284 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' 8285 tmp_addflag=' $pic_flag' 8286 ;; 8287 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8288 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' 8289 tmp_addflag=' $pic_flag -Mnomain' ;; 8290 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8291 tmp_addflag=' -i_dynamic' ;; 8292 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8293 tmp_addflag=' -i_dynamic -nofor_main' ;; 8294 ifc* | ifort*) # Intel Fortran compiler 8295 tmp_addflag=' -nofor_main' ;; 8296 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8297 tmp_sharedflag='-qmkshrobj' 8298 tmp_addflag= ;; 8299 esac 8300 case `$CC -V 2>&1 | sed 5q` in 8301 *Sun\ C*) # Sun C 5.9 8302 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' 8303 compiler_needs_object=yes 8304 tmp_sharedflag='-G' ;; 8305 *Sun\ F*) # Sun Fortran 8.3 8306 tmp_sharedflag='-G' ;; 8307 esac 8308 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8309 8310 if test "x$supports_anon_versioning" = xyes; then 8311 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8312 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8313 echo "local: *; };" >> $output_objdir/$libname.ver~ 8314 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8315 fi 8316 8317 case $cc_basename in 8318 xlf*) 8319 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8320 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8321 hardcode_libdir_flag_spec= 8322 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8323 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8324 if test "x$supports_anon_versioning" = xyes; then 8325 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8326 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8327 echo "local: *; };" >> $output_objdir/$libname.ver~ 8328 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8329 fi 8330 ;; 8331 esac 8332 else 8333 ld_shlibs=no 8334 fi 8335 ;; 8336 8337 netbsd* | netbsdelf*-gnu) 8338 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8339 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8340 wlarc= 8341 else 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 fi 8345 ;; 8346 8347 solaris*) 8348 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8349 ld_shlibs=no 8350 cat <<_LT_EOF 1>&2 8351 8352*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8353*** create shared libraries on Solaris systems. Therefore, libtool 8354*** is disabling shared libraries support. We urge you to upgrade GNU 8355*** binutils to release 2.9.1 or newer. Another option is to modify 8356*** your PATH or compiler configuration so that the native linker is 8357*** used, and then restart. 8358 8359_LT_EOF 8360 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8362 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8363 else 8364 ld_shlibs=no 8365 fi 8366 ;; 8367 8368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8369 case `$LD -v 2>&1` in 8370 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8371 ld_shlibs=no 8372 cat <<_LT_EOF 1>&2 8373 8374*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8375*** reliably create shared libraries on SCO systems. Therefore, libtool 8376*** is disabling shared libraries support. We urge you to upgrade GNU 8377*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8378*** your PATH or compiler configuration so that the native linker is 8379*** used, and then restart. 8380 8381_LT_EOF 8382 ;; 8383 *) 8384 # For security reasons, it is highly recommended that you always 8385 # use absolute paths for naming shared libraries, and exclude the 8386 # DT_RUNPATH tag from executables and libraries. But doing so 8387 # requires that you compile everything twice, which is a pain. 8388 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8389 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8391 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8392 else 8393 ld_shlibs=no 8394 fi 8395 ;; 8396 esac 8397 ;; 8398 8399 sunos4*) 8400 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8401 wlarc= 8402 hardcode_direct=yes 8403 hardcode_shlibpath_var=no 8404 ;; 8405 8406 *) 8407 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8410 else 8411 ld_shlibs=no 8412 fi 8413 ;; 8414 esac 8415 8416 if test "$ld_shlibs" = no; then 8417 runpath_var= 8418 hardcode_libdir_flag_spec= 8419 export_dynamic_flag_spec= 8420 whole_archive_flag_spec= 8421 fi 8422 else 8423 # PORTME fill in a description of your system's linker (not GNU ld) 8424 case $host_os in 8425 aix3*) 8426 allow_undefined_flag=unsupported 8427 always_export_symbols=yes 8428 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' 8429 # Note: this linker hardcodes the directories in LIBPATH if there 8430 # are no directories specified by -L. 8431 hardcode_minus_L=yes 8432 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8433 # Neither direct hardcoding nor static linking is supported with a 8434 # broken collect2. 8435 hardcode_direct=unsupported 8436 fi 8437 ;; 8438 8439 aix[4-9]*) 8440 if test "$host_cpu" = ia64; then 8441 # On IA64, the linker does run time linking by default, so we don't 8442 # have to do anything special. 8443 aix_use_runtimelinking=no 8444 exp_sym_flag='-Bexport' 8445 no_entry_flag="" 8446 else 8447 # If we're using GNU nm, then we don't want the "-C" option. 8448 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8449 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8450 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' 8451 else 8452 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' 8453 fi 8454 aix_use_runtimelinking=no 8455 8456 # Test if we are trying to use run time linking or normal 8457 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8458 # need to do runtime linking. 8459 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8460 for ld_flag in $LDFLAGS; do 8461 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8462 aix_use_runtimelinking=yes 8463 break 8464 fi 8465 done 8466 ;; 8467 esac 8468 8469 exp_sym_flag='-bexport' 8470 no_entry_flag='-bnoentry' 8471 fi 8472 8473 # When large executables or shared objects are built, AIX ld can 8474 # have problems creating the table of contents. If linking a library 8475 # or program results in "error TOC overflow" add -mminimal-toc to 8476 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8477 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8478 8479 archive_cmds='' 8480 hardcode_direct=yes 8481 hardcode_direct_absolute=yes 8482 hardcode_libdir_separator=':' 8483 link_all_deplibs=yes 8484 file_list_spec='${wl}-f,' 8485 8486 if test "$GCC" = yes; then 8487 case $host_os in aix4.[012]|aix4.[012].*) 8488 # We only want to do this on AIX 4.2 and lower, the check 8489 # below for broken collect2 doesn't work under 4.3+ 8490 collect2name=`${CC} -print-prog-name=collect2` 8491 if test -f "$collect2name" && 8492 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8493 then 8494 # We have reworked collect2 8495 : 8496 else 8497 # We have old collect2 8498 hardcode_direct=unsupported 8499 # It fails to find uninstalled libraries when the uninstalled 8500 # path is not listed in the libpath. Setting hardcode_minus_L 8501 # to unsupported forces relinking 8502 hardcode_minus_L=yes 8503 hardcode_libdir_flag_spec='-L$libdir' 8504 hardcode_libdir_separator= 8505 fi 8506 ;; 8507 esac 8508 shared_flag='-shared' 8509 if test "$aix_use_runtimelinking" = yes; then 8510 shared_flag="$shared_flag "'${wl}-G' 8511 fi 8512 link_all_deplibs=no 8513 else 8514 # not using gcc 8515 if test "$host_cpu" = ia64; then 8516 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8517 # chokes on -Wl,-G. The following line is correct: 8518 shared_flag='-G' 8519 else 8520 if test "$aix_use_runtimelinking" = yes; then 8521 shared_flag='${wl}-G' 8522 else 8523 shared_flag='${wl}-bM:SRE' 8524 fi 8525 fi 8526 fi 8527 8528 # It seems that -bexpall does not export symbols beginning with 8529 # underscore (_), so it is better to generate a list of symbols to export. 8530 always_export_symbols=yes 8531 if test "$aix_use_runtimelinking" = yes; then 8532 # Warning - without using the other runtime loading flags (-brtl), 8533 # -berok will link without error, but may produce a broken library. 8534 allow_undefined_flag='-berok' 8535 # Determine the default libpath from the value encoded in an 8536 # empty executable. 8537 cat >conftest.$ac_ext <<_ACEOF 8538/* confdefs.h. */ 8539_ACEOF 8540cat confdefs.h >>conftest.$ac_ext 8541cat >>conftest.$ac_ext <<_ACEOF 8542/* end confdefs.h. */ 8543 8544int 8545main () 8546{ 8547 8548 ; 8549 return 0; 8550} 8551_ACEOF 8552rm -f conftest.$ac_objext conftest$ac_exeext 8553if { (ac_try="$ac_link" 8554case "(($ac_try" in 8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8556 *) ac_try_echo=$ac_try;; 8557esac 8558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8559 (eval "$ac_link") 2>conftest.er1 8560 ac_status=$? 8561 grep -v '^ *+' conftest.er1 >conftest.err 8562 rm -f conftest.er1 8563 cat conftest.err >&5 8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8565 (exit $ac_status); } && { 8566 test -z "$ac_c_werror_flag" || 8567 test ! -s conftest.err 8568 } && test -s conftest$ac_exeext && 8569 $as_test_x conftest$ac_exeext; then 8570 8571lt_aix_libpath_sed=' 8572 /Import File Strings/,/^$/ { 8573 /^0/ { 8574 s/^0 *\(.*\)$/\1/ 8575 p 8576 } 8577 }' 8578aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8579# Check for a 64-bit object if we didn't find anything. 8580if test -z "$aix_libpath"; then 8581 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8582fi 8583else 8584 echo "$as_me: failed program was:" >&5 8585sed 's/^/| /' conftest.$ac_ext >&5 8586 8587 8588fi 8589 8590rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8591 conftest$ac_exeext conftest.$ac_ext 8592if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8593 8594 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8595 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" 8596 else 8597 if test "$host_cpu" = ia64; then 8598 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8599 allow_undefined_flag="-z nodefs" 8600 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" 8601 else 8602 # Determine the default libpath from the value encoded in an 8603 # empty executable. 8604 cat >conftest.$ac_ext <<_ACEOF 8605/* confdefs.h. */ 8606_ACEOF 8607cat confdefs.h >>conftest.$ac_ext 8608cat >>conftest.$ac_ext <<_ACEOF 8609/* end confdefs.h. */ 8610 8611int 8612main () 8613{ 8614 8615 ; 8616 return 0; 8617} 8618_ACEOF 8619rm -f conftest.$ac_objext conftest$ac_exeext 8620if { (ac_try="$ac_link" 8621case "(($ac_try" in 8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8623 *) ac_try_echo=$ac_try;; 8624esac 8625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8626 (eval "$ac_link") 2>conftest.er1 8627 ac_status=$? 8628 grep -v '^ *+' conftest.er1 >conftest.err 8629 rm -f conftest.er1 8630 cat conftest.err >&5 8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8632 (exit $ac_status); } && { 8633 test -z "$ac_c_werror_flag" || 8634 test ! -s conftest.err 8635 } && test -s conftest$ac_exeext && 8636 $as_test_x conftest$ac_exeext; then 8637 8638lt_aix_libpath_sed=' 8639 /Import File Strings/,/^$/ { 8640 /^0/ { 8641 s/^0 *\(.*\)$/\1/ 8642 p 8643 } 8644 }' 8645aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8646# Check for a 64-bit object if we didn't find anything. 8647if test -z "$aix_libpath"; then 8648 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8649fi 8650else 8651 echo "$as_me: failed program was:" >&5 8652sed 's/^/| /' conftest.$ac_ext >&5 8653 8654 8655fi 8656 8657rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8658 conftest$ac_exeext conftest.$ac_ext 8659if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8660 8661 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8662 # Warning - without using the other run time loading flags, 8663 # -berok will link without error, but may produce a broken library. 8664 no_undefined_flag=' ${wl}-bernotok' 8665 allow_undefined_flag=' ${wl}-berok' 8666 # Exported symbols can be pulled into shared objects from archives 8667 whole_archive_flag_spec='$convenience' 8668 archive_cmds_need_lc=yes 8669 # This is similar to how AIX traditionally builds its shared libraries. 8670 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' 8671 fi 8672 fi 8673 ;; 8674 8675 amigaos*) 8676 case $host_cpu in 8677 powerpc) 8678 # see comment about AmigaOS4 .so support 8679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8680 archive_expsym_cmds='' 8681 ;; 8682 m68k) 8683 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)' 8684 hardcode_libdir_flag_spec='-L$libdir' 8685 hardcode_minus_L=yes 8686 ;; 8687 esac 8688 ;; 8689 8690 bsdi[45]*) 8691 export_dynamic_flag_spec=-rdynamic 8692 ;; 8693 8694 cygwin* | mingw* | pw32*) 8695 # When not using gcc, we currently assume that we are using 8696 # Microsoft Visual C++. 8697 # hardcode_libdir_flag_spec is actually meaningless, as there is 8698 # no search path for DLLs. 8699 hardcode_libdir_flag_spec=' ' 8700 allow_undefined_flag=unsupported 8701 # Tell ltmain to make .lib files, not .a files. 8702 libext=lib 8703 # Tell ltmain to make .dll files, not .so files. 8704 shrext_cmds=".dll" 8705 # FIXME: Setting linknames here is a bad hack. 8706 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8707 # The linker will automatically build a .lib file if we build a DLL. 8708 old_archive_from_new_cmds='true' 8709 # FIXME: Should let the user specify the lib program. 8710 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8711 fix_srcfile_path='`cygpath -w "$srcfile"`' 8712 enable_shared_with_static_runtimes=yes 8713 ;; 8714 8715 darwin* | rhapsody*) 8716 8717 8718 archive_cmds_need_lc=no 8719 hardcode_direct=no 8720 hardcode_automatic=yes 8721 hardcode_shlibpath_var=unsupported 8722 whole_archive_flag_spec='' 8723 link_all_deplibs=yes 8724 allow_undefined_flag="$_lt_dar_allow_undefined" 8725 if test "$GCC" = "yes"; then 8726 output_verbose_link_cmd=echo 8727 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8728 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8729 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}" 8730 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}" 8731 8732 else 8733 ld_shlibs=no 8734 fi 8735 8736 ;; 8737 8738 dgux*) 8739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8740 hardcode_libdir_flag_spec='-L$libdir' 8741 hardcode_shlibpath_var=no 8742 ;; 8743 8744 freebsd1*) 8745 ld_shlibs=no 8746 ;; 8747 8748 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8749 # support. Future versions do this automatically, but an explicit c++rt0.o 8750 # does not break anything, and helps significantly (at the cost of a little 8751 # extra space). 8752 freebsd2.2*) 8753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8754 hardcode_libdir_flag_spec='-R$libdir' 8755 hardcode_direct=yes 8756 hardcode_shlibpath_var=no 8757 ;; 8758 8759 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8760 freebsd2*) 8761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8762 hardcode_direct=yes 8763 hardcode_minus_L=yes 8764 hardcode_shlibpath_var=no 8765 ;; 8766 8767 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8768 freebsd* | dragonfly*) 8769 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8770 hardcode_libdir_flag_spec='-R$libdir' 8771 hardcode_direct=yes 8772 hardcode_shlibpath_var=no 8773 ;; 8774 8775 hpux9*) 8776 if test "$GCC" = yes; then 8777 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' 8778 else 8779 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' 8780 fi 8781 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8782 hardcode_libdir_separator=: 8783 hardcode_direct=yes 8784 8785 # hardcode_minus_L: Not really in the search PATH, 8786 # but as the default location of the library. 8787 hardcode_minus_L=yes 8788 export_dynamic_flag_spec='${wl}-E' 8789 ;; 8790 8791 hpux10*) 8792 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8793 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8794 else 8795 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8796 fi 8797 if test "$with_gnu_ld" = no; then 8798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8799 hardcode_libdir_flag_spec_ld='+b $libdir' 8800 hardcode_libdir_separator=: 8801 hardcode_direct=yes 8802 hardcode_direct_absolute=yes 8803 export_dynamic_flag_spec='${wl}-E' 8804 # hardcode_minus_L: Not really in the search PATH, 8805 # but as the default location of the library. 8806 hardcode_minus_L=yes 8807 fi 8808 ;; 8809 8810 hpux11*) 8811 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8812 case $host_cpu in 8813 hppa*64*) 8814 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8815 ;; 8816 ia64*) 8817 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8818 ;; 8819 *) 8820 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8821 ;; 8822 esac 8823 else 8824 case $host_cpu in 8825 hppa*64*) 8826 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8827 ;; 8828 ia64*) 8829 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8830 ;; 8831 *) 8832 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8833 ;; 8834 esac 8835 fi 8836 if test "$with_gnu_ld" = no; then 8837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8838 hardcode_libdir_separator=: 8839 8840 case $host_cpu in 8841 hppa*64*|ia64*) 8842 hardcode_direct=no 8843 hardcode_shlibpath_var=no 8844 ;; 8845 *) 8846 hardcode_direct=yes 8847 hardcode_direct_absolute=yes 8848 export_dynamic_flag_spec='${wl}-E' 8849 8850 # hardcode_minus_L: Not really in the search PATH, 8851 # but as the default location of the library. 8852 hardcode_minus_L=yes 8853 ;; 8854 esac 8855 fi 8856 ;; 8857 8858 irix5* | irix6* | nonstopux*) 8859 if test "$GCC" = yes; then 8860 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' 8861 # Try to use the -exported_symbol ld option, if it does not 8862 # work, assume that -exports_file does not work either and 8863 # implicitly export all symbols. 8864 save_LDFLAGS="$LDFLAGS" 8865 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8866 cat >conftest.$ac_ext <<_ACEOF 8867int foo(void) {} 8868_ACEOF 8869rm -f conftest.$ac_objext conftest$ac_exeext 8870if { (ac_try="$ac_link" 8871case "(($ac_try" in 8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8873 *) ac_try_echo=$ac_try;; 8874esac 8875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8876 (eval "$ac_link") 2>conftest.er1 8877 ac_status=$? 8878 grep -v '^ *+' conftest.er1 >conftest.err 8879 rm -f conftest.er1 8880 cat conftest.err >&5 8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8882 (exit $ac_status); } && { 8883 test -z "$ac_c_werror_flag" || 8884 test ! -s conftest.err 8885 } && test -s conftest$ac_exeext && 8886 $as_test_x conftest$ac_exeext; then 8887 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' 8888 8889else 8890 echo "$as_me: failed program was:" >&5 8891sed 's/^/| /' conftest.$ac_ext >&5 8892 8893 8894fi 8895 8896rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8897 conftest$ac_exeext conftest.$ac_ext 8898 LDFLAGS="$save_LDFLAGS" 8899 else 8900 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' 8901 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' 8902 fi 8903 archive_cmds_need_lc='no' 8904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8905 hardcode_libdir_separator=: 8906 inherit_rpath=yes 8907 link_all_deplibs=yes 8908 ;; 8909 8910 netbsd* | netbsdelf*-gnu) 8911 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8913 else 8914 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8915 fi 8916 hardcode_libdir_flag_spec='-R$libdir' 8917 hardcode_direct=yes 8918 hardcode_shlibpath_var=no 8919 ;; 8920 8921 newsos6) 8922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8923 hardcode_direct=yes 8924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8925 hardcode_libdir_separator=: 8926 hardcode_shlibpath_var=no 8927 ;; 8928 8929 *nto* | *qnx*) 8930 ;; 8931 8932 openbsd*) 8933 if test -f /usr/libexec/ld.so; then 8934 hardcode_direct=yes 8935 hardcode_shlibpath_var=no 8936 hardcode_direct_absolute=yes 8937 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8938 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8939 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8940 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8941 export_dynamic_flag_spec='${wl}-E' 8942 else 8943 case $host_os in 8944 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8945 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8946 hardcode_libdir_flag_spec='-R$libdir' 8947 ;; 8948 *) 8949 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8950 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8951 ;; 8952 esac 8953 fi 8954 else 8955 ld_shlibs=no 8956 fi 8957 ;; 8958 8959 os2*) 8960 hardcode_libdir_flag_spec='-L$libdir' 8961 hardcode_minus_L=yes 8962 allow_undefined_flag=unsupported 8963 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' 8964 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8965 ;; 8966 8967 osf3*) 8968 if test "$GCC" = yes; then 8969 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8970 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' 8971 else 8972 allow_undefined_flag=' -expect_unresolved \*' 8973 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' 8974 fi 8975 archive_cmds_need_lc='no' 8976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8977 hardcode_libdir_separator=: 8978 ;; 8979 8980 osf4* | osf5*) # as osf3* with the addition of -msym flag 8981 if test "$GCC" = yes; then 8982 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8983 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' 8984 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8985 else 8986 allow_undefined_flag=' -expect_unresolved \*' 8987 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' 8988 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~ 8989 $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' 8990 8991 # Both c and cxx compiler support -rpath directly 8992 hardcode_libdir_flag_spec='-rpath $libdir' 8993 fi 8994 archive_cmds_need_lc='no' 8995 hardcode_libdir_separator=: 8996 ;; 8997 8998 solaris*) 8999 no_undefined_flag=' -z defs' 9000 if test "$GCC" = yes; then 9001 wlarc='${wl}' 9002 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9003 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9004 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9005 else 9006 case `$CC -V 2>&1` in 9007 *"Compilers 5.0"*) 9008 wlarc='' 9009 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9010 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9011 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9012 ;; 9013 *) 9014 wlarc='${wl}' 9015 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9016 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9017 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9018 ;; 9019 esac 9020 fi 9021 hardcode_libdir_flag_spec='-R$libdir' 9022 hardcode_shlibpath_var=no 9023 case $host_os in 9024 solaris2.[0-5] | solaris2.[0-5].*) ;; 9025 *) 9026 # The compiler driver will combine and reorder linker options, 9027 # but understands `-z linker_flag'. GCC discards it without `$wl', 9028 # but is careful enough not to reorder. 9029 # Supported since Solaris 2.6 (maybe 2.5.1?) 9030 if test "$GCC" = yes; then 9031 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9032 else 9033 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9034 fi 9035 ;; 9036 esac 9037 link_all_deplibs=yes 9038 ;; 9039 9040 sunos4*) 9041 if test "x$host_vendor" = xsequent; then 9042 # Use $CC to link under sequent, because it throws in some extra .o 9043 # files that make .init and .fini sections work. 9044 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9045 else 9046 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9047 fi 9048 hardcode_libdir_flag_spec='-L$libdir' 9049 hardcode_direct=yes 9050 hardcode_minus_L=yes 9051 hardcode_shlibpath_var=no 9052 ;; 9053 9054 sysv4) 9055 case $host_vendor in 9056 sni) 9057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9058 hardcode_direct=yes # is this really true??? 9059 ;; 9060 siemens) 9061 ## LD is ld it makes a PLAMLIB 9062 ## CC just makes a GrossModule. 9063 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9064 reload_cmds='$CC -r -o $output$reload_objs' 9065 hardcode_direct=no 9066 ;; 9067 motorola) 9068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9069 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9070 ;; 9071 esac 9072 runpath_var='LD_RUN_PATH' 9073 hardcode_shlibpath_var=no 9074 ;; 9075 9076 sysv4.3*) 9077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9078 hardcode_shlibpath_var=no 9079 export_dynamic_flag_spec='-Bexport' 9080 ;; 9081 9082 sysv4*MP*) 9083 if test -d /usr/nec; then 9084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9085 hardcode_shlibpath_var=no 9086 runpath_var=LD_RUN_PATH 9087 hardcode_runpath_var=yes 9088 ld_shlibs=yes 9089 fi 9090 ;; 9091 9092 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9093 no_undefined_flag='${wl}-z,text' 9094 archive_cmds_need_lc=no 9095 hardcode_shlibpath_var=no 9096 runpath_var='LD_RUN_PATH' 9097 9098 if test "$GCC" = yes; then 9099 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9100 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9101 else 9102 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9103 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9104 fi 9105 ;; 9106 9107 sysv5* | sco3.2v5* | sco5v6*) 9108 # Note: We can NOT use -z defs as we might desire, because we do not 9109 # link with -lc, and that would cause any symbols used from libc to 9110 # always be unresolved, which means just about no library would 9111 # ever link correctly. If we're not using GNU ld we use -z text 9112 # though, which does catch some bad symbols but isn't as heavy-handed 9113 # as -z defs. 9114 no_undefined_flag='${wl}-z,text' 9115 allow_undefined_flag='${wl}-z,nodefs' 9116 archive_cmds_need_lc=no 9117 hardcode_shlibpath_var=no 9118 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9119 hardcode_libdir_separator=':' 9120 link_all_deplibs=yes 9121 export_dynamic_flag_spec='${wl}-Bexport' 9122 runpath_var='LD_RUN_PATH' 9123 9124 if test "$GCC" = yes; then 9125 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9126 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9127 else 9128 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9129 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9130 fi 9131 ;; 9132 9133 uts4*) 9134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9135 hardcode_libdir_flag_spec='-L$libdir' 9136 hardcode_shlibpath_var=no 9137 ;; 9138 9139 *) 9140 ld_shlibs=no 9141 ;; 9142 esac 9143 9144 if test x$host_vendor = xsni; then 9145 case $host in 9146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9147 export_dynamic_flag_spec='${wl}-Blargedynsym' 9148 ;; 9149 esac 9150 fi 9151 fi 9152 9153{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9154echo "${ECHO_T}$ld_shlibs" >&6; } 9155test "$ld_shlibs" = no && can_build_shared=no 9156 9157with_gnu_ld=$with_gnu_ld 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173# 9174# Do we need to explicitly link libc? 9175# 9176case "x$archive_cmds_need_lc" in 9177x|xyes) 9178 # Assume -lc should be added 9179 archive_cmds_need_lc=yes 9180 9181 if test "$enable_shared" = yes && test "$GCC" = yes; then 9182 case $archive_cmds in 9183 *'~'*) 9184 # FIXME: we may have to deal with multi-command sequences. 9185 ;; 9186 '$CC '*) 9187 # Test whether the compiler implicitly links with -lc since on some 9188 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9189 # to ld, don't add -lc before -lgcc. 9190 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9191echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 9192 $RM conftest* 9193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9194 9195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9196 (eval $ac_compile) 2>&5 9197 ac_status=$? 9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9199 (exit $ac_status); } 2>conftest.err; then 9200 soname=conftest 9201 lib=conftest 9202 libobjs=conftest.$ac_objext 9203 deplibs= 9204 wl=$lt_prog_compiler_wl 9205 pic_flag=$lt_prog_compiler_pic 9206 compiler_flags=-v 9207 linker_flags=-v 9208 verstring= 9209 output_objdir=. 9210 libname=conftest 9211 lt_save_allow_undefined_flag=$allow_undefined_flag 9212 allow_undefined_flag= 9213 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9214 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9215 ac_status=$? 9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9217 (exit $ac_status); } 9218 then 9219 archive_cmds_need_lc=no 9220 else 9221 archive_cmds_need_lc=yes 9222 fi 9223 allow_undefined_flag=$lt_save_allow_undefined_flag 9224 else 9225 cat conftest.err 1>&5 9226 fi 9227 $RM conftest* 9228 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9229echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 9230 ;; 9231 esac 9232 fi 9233 ;; 9234esac 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9393echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9394 9395if test "$GCC" = yes; then 9396 case $host_os in 9397 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9398 *) lt_awk_arg="/^libraries:/" ;; 9399 esac 9400 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9401 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9402 # if the path contains ";" then we assume it to be the separator 9403 # otherwise default to the standard path separator (i.e. ":") - it is 9404 # assumed that no part of a normal pathname contains ";" but that should 9405 # okay in the real world where ";" in dirpaths is itself problematic. 9406 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9407 else 9408 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9409 fi 9410 # Ok, now we have the path, separated by spaces, we can step through it 9411 # and add multilib dir if necessary. 9412 lt_tmp_lt_search_path_spec= 9413 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9414 for lt_sys_path in $lt_search_path_spec; do 9415 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9416 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9417 else 9418 test -d "$lt_sys_path" && \ 9419 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9420 fi 9421 done 9422 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9423BEGIN {RS=" "; FS="/|\n";} { 9424 lt_foo=""; 9425 lt_count=0; 9426 for (lt_i = NF; lt_i > 0; lt_i--) { 9427 if ($lt_i != "" && $lt_i != ".") { 9428 if ($lt_i == "..") { 9429 lt_count++; 9430 } else { 9431 if (lt_count == 0) { 9432 lt_foo="/" $lt_i lt_foo; 9433 } else { 9434 lt_count--; 9435 } 9436 } 9437 } 9438 } 9439 if (lt_foo != "") { lt_freq[lt_foo]++; } 9440 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9441}'` 9442 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9443else 9444 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9445fi 9446library_names_spec= 9447libname_spec='lib$name' 9448soname_spec= 9449shrext_cmds=".so" 9450postinstall_cmds= 9451postuninstall_cmds= 9452finish_cmds= 9453finish_eval= 9454shlibpath_var= 9455shlibpath_overrides_runpath=unknown 9456version_type=none 9457dynamic_linker="$host_os ld.so" 9458sys_lib_dlsearch_path_spec="/lib /usr/lib" 9459need_lib_prefix=unknown 9460hardcode_into_libs=no 9461 9462# when you set need_version to no, make sure it does not cause -set_version 9463# flags to be left without arguments 9464need_version=unknown 9465 9466case $host_os in 9467aix3*) 9468 version_type=linux 9469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9470 shlibpath_var=LIBPATH 9471 9472 # AIX 3 has no versioning support, so we append a major version to the name. 9473 soname_spec='${libname}${release}${shared_ext}$major' 9474 ;; 9475 9476aix[4-9]*) 9477 version_type=linux 9478 need_lib_prefix=no 9479 need_version=no 9480 hardcode_into_libs=yes 9481 if test "$host_cpu" = ia64; then 9482 # AIX 5 supports IA64 9483 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9484 shlibpath_var=LD_LIBRARY_PATH 9485 else 9486 # With GCC up to 2.95.x, collect2 would create an import file 9487 # for dependence libraries. The import file would start with 9488 # the line `#! .'. This would cause the generated library to 9489 # depend on `.', always an invalid library. This was fixed in 9490 # development snapshots of GCC prior to 3.0. 9491 case $host_os in 9492 aix4 | aix4.[01] | aix4.[01].*) 9493 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9494 echo ' yes ' 9495 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9496 : 9497 else 9498 can_build_shared=no 9499 fi 9500 ;; 9501 esac 9502 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9503 # soname into executable. Probably we can add versioning support to 9504 # collect2, so additional links can be useful in future. 9505 if test "$aix_use_runtimelinking" = yes; then 9506 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9507 # instead of lib<name>.a to let people know that these are not 9508 # typical AIX shared libraries. 9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9510 else 9511 # We preserve .a as extension for shared libraries through AIX4.2 9512 # and later when we are not doing run time linking. 9513 library_names_spec='${libname}${release}.a $libname.a' 9514 soname_spec='${libname}${release}${shared_ext}$major' 9515 fi 9516 shlibpath_var=LIBPATH 9517 fi 9518 ;; 9519 9520amigaos*) 9521 case $host_cpu in 9522 powerpc) 9523 # Since July 2007 AmigaOS4 officially supports .so libraries. 9524 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9526 ;; 9527 m68k) 9528 library_names_spec='$libname.ixlibrary $libname.a' 9529 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9530 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' 9531 ;; 9532 esac 9533 ;; 9534 9535beos*) 9536 library_names_spec='${libname}${shared_ext}' 9537 dynamic_linker="$host_os ld.so" 9538 shlibpath_var=LIBRARY_PATH 9539 ;; 9540 9541bsdi[45]*) 9542 version_type=linux 9543 need_version=no 9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9545 soname_spec='${libname}${release}${shared_ext}$major' 9546 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9547 shlibpath_var=LD_LIBRARY_PATH 9548 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9549 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9550 # the default ld.so.conf also contains /usr/contrib/lib and 9551 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9552 # libtool to hard-code these into programs 9553 ;; 9554 9555cygwin* | mingw* | pw32*) 9556 version_type=windows 9557 shrext_cmds=".dll" 9558 need_version=no 9559 need_lib_prefix=no 9560 9561 case $GCC,$host_os in 9562 yes,cygwin* | yes,mingw* | yes,pw32*) 9563 library_names_spec='$libname.dll.a' 9564 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9565 postinstall_cmds='base_file=`basename \${file}`~ 9566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9567 dldir=$destdir/`dirname \$dlpath`~ 9568 test -d \$dldir || mkdir -p \$dldir~ 9569 $install_prog $dir/$dlname \$dldir/$dlname~ 9570 chmod a+x \$dldir/$dlname~ 9571 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9572 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9573 fi' 9574 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9575 dlpath=$dir/\$dldll~ 9576 $RM \$dlpath' 9577 shlibpath_overrides_runpath=yes 9578 9579 case $host_os in 9580 cygwin*) 9581 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9582 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9583 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9584 ;; 9585 mingw*) 9586 # MinGW DLLs use traditional 'lib' prefix 9587 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9588 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9589 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9590 # It is most probably a Windows format PATH printed by 9591 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9592 # path with ; separators, and with drive letters. We can handle the 9593 # drive letters (cygwin fileutils understands them), so leave them, 9594 # especially as we might pass files found there to a mingw objdump, 9595 # which wouldn't understand a cygwinified path. Ahh. 9596 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9597 else 9598 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9599 fi 9600 ;; 9601 pw32*) 9602 # pw32 DLLs use 'pw' prefix rather than 'lib' 9603 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9604 ;; 9605 esac 9606 ;; 9607 9608 *) 9609 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9610 ;; 9611 esac 9612 dynamic_linker='Win32 ld.exe' 9613 # FIXME: first we should search . and the directory the executable is in 9614 shlibpath_var=PATH 9615 ;; 9616 9617darwin* | rhapsody*) 9618 dynamic_linker="$host_os dyld" 9619 version_type=darwin 9620 need_lib_prefix=no 9621 need_version=no 9622 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9623 soname_spec='${libname}${release}${major}$shared_ext' 9624 shlibpath_overrides_runpath=yes 9625 shlibpath_var=DYLD_LIBRARY_PATH 9626 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9627 9628 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9629 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9630 ;; 9631 9632dgux*) 9633 version_type=linux 9634 need_lib_prefix=no 9635 need_version=no 9636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9637 soname_spec='${libname}${release}${shared_ext}$major' 9638 shlibpath_var=LD_LIBRARY_PATH 9639 ;; 9640 9641freebsd1*) 9642 dynamic_linker=no 9643 ;; 9644 9645freebsd* | dragonfly*) 9646 # DragonFly does not have aout. When/if they implement a new 9647 # versioning mechanism, adjust this. 9648 if test -x /usr/bin/objformat; then 9649 objformat=`/usr/bin/objformat` 9650 else 9651 case $host_os in 9652 freebsd[123]*) objformat=aout ;; 9653 *) objformat=elf ;; 9654 esac 9655 fi 9656 version_type=freebsd-$objformat 9657 case $version_type in 9658 freebsd-elf*) 9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9660 need_version=no 9661 need_lib_prefix=no 9662 ;; 9663 freebsd-*) 9664 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9665 need_version=yes 9666 ;; 9667 esac 9668 shlibpath_var=LD_LIBRARY_PATH 9669 case $host_os in 9670 freebsd2*) 9671 shlibpath_overrides_runpath=yes 9672 ;; 9673 freebsd3.[01]* | freebsdelf3.[01]*) 9674 shlibpath_overrides_runpath=yes 9675 hardcode_into_libs=yes 9676 ;; 9677 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9678 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9679 shlibpath_overrides_runpath=no 9680 hardcode_into_libs=yes 9681 ;; 9682 *) # from 4.6 on, and DragonFly 9683 shlibpath_overrides_runpath=yes 9684 hardcode_into_libs=yes 9685 ;; 9686 esac 9687 ;; 9688 9689gnu*) 9690 version_type=linux 9691 need_lib_prefix=no 9692 need_version=no 9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9694 soname_spec='${libname}${release}${shared_ext}$major' 9695 shlibpath_var=LD_LIBRARY_PATH 9696 hardcode_into_libs=yes 9697 ;; 9698 9699hpux9* | hpux10* | hpux11*) 9700 # Give a soname corresponding to the major version so that dld.sl refuses to 9701 # link against other versions. 9702 version_type=sunos 9703 need_lib_prefix=no 9704 need_version=no 9705 case $host_cpu in 9706 ia64*) 9707 shrext_cmds='.so' 9708 hardcode_into_libs=yes 9709 dynamic_linker="$host_os dld.so" 9710 shlibpath_var=LD_LIBRARY_PATH 9711 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9713 soname_spec='${libname}${release}${shared_ext}$major' 9714 if test "X$HPUX_IA64_MODE" = X32; then 9715 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9716 else 9717 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9718 fi 9719 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9720 ;; 9721 hppa*64*) 9722 shrext_cmds='.sl' 9723 hardcode_into_libs=yes 9724 dynamic_linker="$host_os dld.sl" 9725 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9726 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9728 soname_spec='${libname}${release}${shared_ext}$major' 9729 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9731 ;; 9732 *) 9733 shrext_cmds='.sl' 9734 dynamic_linker="$host_os dld.sl" 9735 shlibpath_var=SHLIB_PATH 9736 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9738 soname_spec='${libname}${release}${shared_ext}$major' 9739 ;; 9740 esac 9741 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9742 postinstall_cmds='chmod 555 $lib' 9743 ;; 9744 9745interix[3-9]*) 9746 version_type=linux 9747 need_lib_prefix=no 9748 need_version=no 9749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9750 soname_spec='${libname}${release}${shared_ext}$major' 9751 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9752 shlibpath_var=LD_LIBRARY_PATH 9753 shlibpath_overrides_runpath=no 9754 hardcode_into_libs=yes 9755 ;; 9756 9757irix5* | irix6* | nonstopux*) 9758 case $host_os in 9759 nonstopux*) version_type=nonstopux ;; 9760 *) 9761 if test "$lt_cv_prog_gnu_ld" = yes; then 9762 version_type=linux 9763 else 9764 version_type=irix 9765 fi ;; 9766 esac 9767 need_lib_prefix=no 9768 need_version=no 9769 soname_spec='${libname}${release}${shared_ext}$major' 9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9771 case $host_os in 9772 irix5* | nonstopux*) 9773 libsuff= shlibsuff= 9774 ;; 9775 *) 9776 case $LD in # libtool.m4 will add one of these switches to LD 9777 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9778 libsuff= shlibsuff= libmagic=32-bit;; 9779 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9780 libsuff=32 shlibsuff=N32 libmagic=N32;; 9781 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9782 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9783 *) libsuff= shlibsuff= libmagic=never-match;; 9784 esac 9785 ;; 9786 esac 9787 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9788 shlibpath_overrides_runpath=no 9789 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9790 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9791 hardcode_into_libs=yes 9792 ;; 9793 9794# No shared lib support for Linux oldld, aout, or coff. 9795linux*oldld* | linux*aout* | linux*coff*) 9796 dynamic_linker=no 9797 ;; 9798 9799# This must be Linux ELF. 9800linux* | k*bsd*-gnu) 9801 version_type=linux 9802 need_lib_prefix=no 9803 need_version=no 9804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9805 soname_spec='${libname}${release}${shared_ext}$major' 9806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9807 shlibpath_var=LD_LIBRARY_PATH 9808 shlibpath_overrides_runpath=no 9809 # Some binutils ld are patched to set DT_RUNPATH 9810 save_LDFLAGS=$LDFLAGS 9811 save_libdir=$libdir 9812 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9813 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9814 cat >conftest.$ac_ext <<_ACEOF 9815/* confdefs.h. */ 9816_ACEOF 9817cat confdefs.h >>conftest.$ac_ext 9818cat >>conftest.$ac_ext <<_ACEOF 9819/* end confdefs.h. */ 9820 9821int 9822main () 9823{ 9824 9825 ; 9826 return 0; 9827} 9828_ACEOF 9829rm -f conftest.$ac_objext conftest$ac_exeext 9830if { (ac_try="$ac_link" 9831case "(($ac_try" in 9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9833 *) ac_try_echo=$ac_try;; 9834esac 9835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9836 (eval "$ac_link") 2>conftest.er1 9837 ac_status=$? 9838 grep -v '^ *+' conftest.er1 >conftest.err 9839 rm -f conftest.er1 9840 cat conftest.err >&5 9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9842 (exit $ac_status); } && { 9843 test -z "$ac_c_werror_flag" || 9844 test ! -s conftest.err 9845 } && test -s conftest$ac_exeext && 9846 $as_test_x conftest$ac_exeext; then 9847 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9848 shlibpath_overrides_runpath=yes 9849fi 9850 9851else 9852 echo "$as_me: failed program was:" >&5 9853sed 's/^/| /' conftest.$ac_ext >&5 9854 9855 9856fi 9857 9858rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9859 conftest$ac_exeext conftest.$ac_ext 9860 LDFLAGS=$save_LDFLAGS 9861 libdir=$save_libdir 9862 9863 # This implies no fast_install, which is unacceptable. 9864 # Some rework will be needed to allow for fast_install 9865 # before this can be enabled. 9866 hardcode_into_libs=yes 9867 9868 # Append ld.so.conf contents to the search path 9869 if test -f /etc/ld.so.conf; then 9870 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' ' '` 9871 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9872 fi 9873 9874 # We used to test for /lib/ld.so.1 and disable shared libraries on 9875 # powerpc, because MkLinux only supported shared libraries with the 9876 # GNU dynamic linker. Since this was broken with cross compilers, 9877 # most powerpc-linux boxes support dynamic linking these days and 9878 # people can always --disable-shared, the test was removed, and we 9879 # assume the GNU/Linux dynamic linker is in use. 9880 dynamic_linker='GNU/Linux ld.so' 9881 ;; 9882 9883netbsdelf*-gnu) 9884 version_type=linux 9885 need_lib_prefix=no 9886 need_version=no 9887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9888 soname_spec='${libname}${release}${shared_ext}$major' 9889 shlibpath_var=LD_LIBRARY_PATH 9890 shlibpath_overrides_runpath=no 9891 hardcode_into_libs=yes 9892 dynamic_linker='NetBSD ld.elf_so' 9893 ;; 9894 9895netbsd*) 9896 version_type=sunos 9897 need_lib_prefix=no 9898 need_version=no 9899 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9902 dynamic_linker='NetBSD (a.out) ld.so' 9903 else 9904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9905 soname_spec='${libname}${release}${shared_ext}$major' 9906 dynamic_linker='NetBSD ld.elf_so' 9907 fi 9908 shlibpath_var=LD_LIBRARY_PATH 9909 shlibpath_overrides_runpath=yes 9910 hardcode_into_libs=yes 9911 ;; 9912 9913newsos6) 9914 version_type=linux 9915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9916 shlibpath_var=LD_LIBRARY_PATH 9917 shlibpath_overrides_runpath=yes 9918 ;; 9919 9920*nto* | *qnx*) 9921 version_type=qnx 9922 need_lib_prefix=no 9923 need_version=no 9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9925 soname_spec='${libname}${release}${shared_ext}$major' 9926 shlibpath_var=LD_LIBRARY_PATH 9927 shlibpath_overrides_runpath=no 9928 hardcode_into_libs=yes 9929 dynamic_linker='ldqnx.so' 9930 ;; 9931 9932openbsd*) 9933 version_type=sunos 9934 sys_lib_dlsearch_path_spec="/usr/lib" 9935 need_lib_prefix=no 9936 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9937 case $host_os in 9938 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9939 *) need_version=no ;; 9940 esac 9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9943 shlibpath_var=LD_LIBRARY_PATH 9944 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9945 case $host_os in 9946 openbsd2.[89] | openbsd2.[89].*) 9947 shlibpath_overrides_runpath=no 9948 ;; 9949 *) 9950 shlibpath_overrides_runpath=yes 9951 ;; 9952 esac 9953 else 9954 shlibpath_overrides_runpath=yes 9955 fi 9956 ;; 9957 9958os2*) 9959 libname_spec='$name' 9960 shrext_cmds=".dll" 9961 need_lib_prefix=no 9962 library_names_spec='$libname${shared_ext} $libname.a' 9963 dynamic_linker='OS/2 ld.exe' 9964 shlibpath_var=LIBPATH 9965 ;; 9966 9967osf3* | osf4* | osf5*) 9968 version_type=osf 9969 need_lib_prefix=no 9970 need_version=no 9971 soname_spec='${libname}${release}${shared_ext}$major' 9972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9973 shlibpath_var=LD_LIBRARY_PATH 9974 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9975 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9976 ;; 9977 9978rdos*) 9979 dynamic_linker=no 9980 ;; 9981 9982solaris*) 9983 version_type=linux 9984 need_lib_prefix=no 9985 need_version=no 9986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9987 soname_spec='${libname}${release}${shared_ext}$major' 9988 shlibpath_var=LD_LIBRARY_PATH 9989 shlibpath_overrides_runpath=yes 9990 hardcode_into_libs=yes 9991 # ldd complains unless libraries are executable 9992 postinstall_cmds='chmod +x $lib' 9993 ;; 9994 9995sunos4*) 9996 version_type=sunos 9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9998 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9999 shlibpath_var=LD_LIBRARY_PATH 10000 shlibpath_overrides_runpath=yes 10001 if test "$with_gnu_ld" = yes; then 10002 need_lib_prefix=no 10003 fi 10004 need_version=yes 10005 ;; 10006 10007sysv4 | sysv4.3*) 10008 version_type=linux 10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10010 soname_spec='${libname}${release}${shared_ext}$major' 10011 shlibpath_var=LD_LIBRARY_PATH 10012 case $host_vendor in 10013 sni) 10014 shlibpath_overrides_runpath=no 10015 need_lib_prefix=no 10016 runpath_var=LD_RUN_PATH 10017 ;; 10018 siemens) 10019 need_lib_prefix=no 10020 ;; 10021 motorola) 10022 need_lib_prefix=no 10023 need_version=no 10024 shlibpath_overrides_runpath=no 10025 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10026 ;; 10027 esac 10028 ;; 10029 10030sysv4*MP*) 10031 if test -d /usr/nec ;then 10032 version_type=linux 10033 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10034 soname_spec='$libname${shared_ext}.$major' 10035 shlibpath_var=LD_LIBRARY_PATH 10036 fi 10037 ;; 10038 10039sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10040 version_type=freebsd-elf 10041 need_lib_prefix=no 10042 need_version=no 10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10044 soname_spec='${libname}${release}${shared_ext}$major' 10045 shlibpath_var=LD_LIBRARY_PATH 10046 shlibpath_overrides_runpath=yes 10047 hardcode_into_libs=yes 10048 if test "$with_gnu_ld" = yes; then 10049 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10050 else 10051 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10052 case $host_os in 10053 sco3.2v5*) 10054 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10055 ;; 10056 esac 10057 fi 10058 sys_lib_dlsearch_path_spec='/usr/lib' 10059 ;; 10060 10061tpf*) 10062 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10063 version_type=linux 10064 need_lib_prefix=no 10065 need_version=no 10066 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10067 shlibpath_var=LD_LIBRARY_PATH 10068 shlibpath_overrides_runpath=no 10069 hardcode_into_libs=yes 10070 ;; 10071 10072uts4*) 10073 version_type=linux 10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10075 soname_spec='${libname}${release}${shared_ext}$major' 10076 shlibpath_var=LD_LIBRARY_PATH 10077 ;; 10078 10079*) 10080 dynamic_linker=no 10081 ;; 10082esac 10083{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10084echo "${ECHO_T}$dynamic_linker" >&6; } 10085test "$dynamic_linker" = no && can_build_shared=no 10086 10087variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10088if test "$GCC" = yes; then 10089 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10090fi 10091 10092if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10093 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10094fi 10095if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10096 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10097fi 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10186echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 10187hardcode_action= 10188if test -n "$hardcode_libdir_flag_spec" || 10189 test -n "$runpath_var" || 10190 test "X$hardcode_automatic" = "Xyes" ; then 10191 10192 # We can hardcode non-existent directories. 10193 if test "$hardcode_direct" != no && 10194 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10195 # have to relink, otherwise we might link with an installed library 10196 # when we should be linking with a yet-to-be-installed one 10197 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10198 test "$hardcode_minus_L" != no; then 10199 # Linking always hardcodes the temporary library directory. 10200 hardcode_action=relink 10201 else 10202 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10203 hardcode_action=immediate 10204 fi 10205else 10206 # We cannot hardcode anything, or else we can only hardcode existing 10207 # directories. 10208 hardcode_action=unsupported 10209fi 10210{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 10211echo "${ECHO_T}$hardcode_action" >&6; } 10212 10213if test "$hardcode_action" = relink || 10214 test "$inherit_rpath" = yes; then 10215 # Fast installation is not supported 10216 enable_fast_install=no 10217elif test "$shlibpath_overrides_runpath" = yes || 10218 test "$enable_shared" = no; then 10219 # Fast installation is not necessary 10220 enable_fast_install=needless 10221fi 10222 10223 10224 10225 10226 10227 10228 if test "x$enable_dlopen" != xyes; then 10229 enable_dlopen=unknown 10230 enable_dlopen_self=unknown 10231 enable_dlopen_self_static=unknown 10232else 10233 lt_cv_dlopen=no 10234 lt_cv_dlopen_libs= 10235 10236 case $host_os in 10237 beos*) 10238 lt_cv_dlopen="load_add_on" 10239 lt_cv_dlopen_libs= 10240 lt_cv_dlopen_self=yes 10241 ;; 10242 10243 mingw* | pw32*) 10244 lt_cv_dlopen="LoadLibrary" 10245 lt_cv_dlopen_libs= 10246 ;; 10247 10248 cygwin*) 10249 lt_cv_dlopen="dlopen" 10250 lt_cv_dlopen_libs= 10251 ;; 10252 10253 darwin*) 10254 # if libdl is installed we need to link against it 10255 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10256echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10257if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10258 echo $ECHO_N "(cached) $ECHO_C" >&6 10259else 10260 ac_check_lib_save_LIBS=$LIBS 10261LIBS="-ldl $LIBS" 10262cat >conftest.$ac_ext <<_ACEOF 10263/* confdefs.h. */ 10264_ACEOF 10265cat confdefs.h >>conftest.$ac_ext 10266cat >>conftest.$ac_ext <<_ACEOF 10267/* end confdefs.h. */ 10268 10269/* Override any GCC internal prototype to avoid an error. 10270 Use char because int might match the return type of a GCC 10271 builtin and then its argument prototype would still apply. */ 10272#ifdef __cplusplus 10273extern "C" 10274#endif 10275char dlopen (); 10276int 10277main () 10278{ 10279return dlopen (); 10280 ; 10281 return 0; 10282} 10283_ACEOF 10284rm -f conftest.$ac_objext conftest$ac_exeext 10285if { (ac_try="$ac_link" 10286case "(($ac_try" in 10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10288 *) ac_try_echo=$ac_try;; 10289esac 10290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10291 (eval "$ac_link") 2>conftest.er1 10292 ac_status=$? 10293 grep -v '^ *+' conftest.er1 >conftest.err 10294 rm -f conftest.er1 10295 cat conftest.err >&5 10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10297 (exit $ac_status); } && { 10298 test -z "$ac_c_werror_flag" || 10299 test ! -s conftest.err 10300 } && test -s conftest$ac_exeext && 10301 $as_test_x conftest$ac_exeext; then 10302 ac_cv_lib_dl_dlopen=yes 10303else 10304 echo "$as_me: failed program was:" >&5 10305sed 's/^/| /' conftest.$ac_ext >&5 10306 10307 ac_cv_lib_dl_dlopen=no 10308fi 10309 10310rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10311 conftest$ac_exeext conftest.$ac_ext 10312LIBS=$ac_check_lib_save_LIBS 10313fi 10314{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10315echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10316if test $ac_cv_lib_dl_dlopen = yes; then 10317 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10318else 10319 10320 lt_cv_dlopen="dyld" 10321 lt_cv_dlopen_libs= 10322 lt_cv_dlopen_self=yes 10323 10324fi 10325 10326 ;; 10327 10328 *) 10329 { echo "$as_me:$LINENO: checking for shl_load" >&5 10330echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 10331if test "${ac_cv_func_shl_load+set}" = set; then 10332 echo $ECHO_N "(cached) $ECHO_C" >&6 10333else 10334 cat >conftest.$ac_ext <<_ACEOF 10335/* confdefs.h. */ 10336_ACEOF 10337cat confdefs.h >>conftest.$ac_ext 10338cat >>conftest.$ac_ext <<_ACEOF 10339/* end confdefs.h. */ 10340/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10341 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10342#define shl_load innocuous_shl_load 10343 10344/* System header to define __stub macros and hopefully few prototypes, 10345 which can conflict with char shl_load (); below. 10346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10347 <limits.h> exists even on freestanding compilers. */ 10348 10349#ifdef __STDC__ 10350# include <limits.h> 10351#else 10352# include <assert.h> 10353#endif 10354 10355#undef shl_load 10356 10357/* Override any GCC internal prototype to avoid an error. 10358 Use char because int might match the return type of a GCC 10359 builtin and then its argument prototype would still apply. */ 10360#ifdef __cplusplus 10361extern "C" 10362#endif 10363char shl_load (); 10364/* The GNU C library defines this for functions which it implements 10365 to always fail with ENOSYS. Some functions are actually named 10366 something starting with __ and the normal name is an alias. */ 10367#if defined __stub_shl_load || defined __stub___shl_load 10368choke me 10369#endif 10370 10371int 10372main () 10373{ 10374return shl_load (); 10375 ; 10376 return 0; 10377} 10378_ACEOF 10379rm -f conftest.$ac_objext conftest$ac_exeext 10380if { (ac_try="$ac_link" 10381case "(($ac_try" in 10382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10383 *) ac_try_echo=$ac_try;; 10384esac 10385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10386 (eval "$ac_link") 2>conftest.er1 10387 ac_status=$? 10388 grep -v '^ *+' conftest.er1 >conftest.err 10389 rm -f conftest.er1 10390 cat conftest.err >&5 10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10392 (exit $ac_status); } && { 10393 test -z "$ac_c_werror_flag" || 10394 test ! -s conftest.err 10395 } && test -s conftest$ac_exeext && 10396 $as_test_x conftest$ac_exeext; then 10397 ac_cv_func_shl_load=yes 10398else 10399 echo "$as_me: failed program was:" >&5 10400sed 's/^/| /' conftest.$ac_ext >&5 10401 10402 ac_cv_func_shl_load=no 10403fi 10404 10405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10406 conftest$ac_exeext conftest.$ac_ext 10407fi 10408{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10409echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 10410if test $ac_cv_func_shl_load = yes; then 10411 lt_cv_dlopen="shl_load" 10412else 10413 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10414echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10415if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10416 echo $ECHO_N "(cached) $ECHO_C" >&6 10417else 10418 ac_check_lib_save_LIBS=$LIBS 10419LIBS="-ldld $LIBS" 10420cat >conftest.$ac_ext <<_ACEOF 10421/* confdefs.h. */ 10422_ACEOF 10423cat confdefs.h >>conftest.$ac_ext 10424cat >>conftest.$ac_ext <<_ACEOF 10425/* end confdefs.h. */ 10426 10427/* Override any GCC internal prototype to avoid an error. 10428 Use char because int might match the return type of a GCC 10429 builtin and then its argument prototype would still apply. */ 10430#ifdef __cplusplus 10431extern "C" 10432#endif 10433char shl_load (); 10434int 10435main () 10436{ 10437return shl_load (); 10438 ; 10439 return 0; 10440} 10441_ACEOF 10442rm -f conftest.$ac_objext conftest$ac_exeext 10443if { (ac_try="$ac_link" 10444case "(($ac_try" in 10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10446 *) ac_try_echo=$ac_try;; 10447esac 10448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10449 (eval "$ac_link") 2>conftest.er1 10450 ac_status=$? 10451 grep -v '^ *+' conftest.er1 >conftest.err 10452 rm -f conftest.er1 10453 cat conftest.err >&5 10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10455 (exit $ac_status); } && { 10456 test -z "$ac_c_werror_flag" || 10457 test ! -s conftest.err 10458 } && test -s conftest$ac_exeext && 10459 $as_test_x conftest$ac_exeext; then 10460 ac_cv_lib_dld_shl_load=yes 10461else 10462 echo "$as_me: failed program was:" >&5 10463sed 's/^/| /' conftest.$ac_ext >&5 10464 10465 ac_cv_lib_dld_shl_load=no 10466fi 10467 10468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10469 conftest$ac_exeext conftest.$ac_ext 10470LIBS=$ac_check_lib_save_LIBS 10471fi 10472{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10473echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10474if test $ac_cv_lib_dld_shl_load = yes; then 10475 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10476else 10477 { echo "$as_me:$LINENO: checking for dlopen" >&5 10478echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 10479if test "${ac_cv_func_dlopen+set}" = set; then 10480 echo $ECHO_N "(cached) $ECHO_C" >&6 10481else 10482 cat >conftest.$ac_ext <<_ACEOF 10483/* confdefs.h. */ 10484_ACEOF 10485cat confdefs.h >>conftest.$ac_ext 10486cat >>conftest.$ac_ext <<_ACEOF 10487/* end confdefs.h. */ 10488/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10489 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10490#define dlopen innocuous_dlopen 10491 10492/* System header to define __stub macros and hopefully few prototypes, 10493 which can conflict with char dlopen (); below. 10494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10495 <limits.h> exists even on freestanding compilers. */ 10496 10497#ifdef __STDC__ 10498# include <limits.h> 10499#else 10500# include <assert.h> 10501#endif 10502 10503#undef dlopen 10504 10505/* Override any GCC internal prototype to avoid an error. 10506 Use char because int might match the return type of a GCC 10507 builtin and then its argument prototype would still apply. */ 10508#ifdef __cplusplus 10509extern "C" 10510#endif 10511char dlopen (); 10512/* The GNU C library defines this for functions which it implements 10513 to always fail with ENOSYS. Some functions are actually named 10514 something starting with __ and the normal name is an alias. */ 10515#if defined __stub_dlopen || defined __stub___dlopen 10516choke me 10517#endif 10518 10519int 10520main () 10521{ 10522return dlopen (); 10523 ; 10524 return 0; 10525} 10526_ACEOF 10527rm -f conftest.$ac_objext conftest$ac_exeext 10528if { (ac_try="$ac_link" 10529case "(($ac_try" in 10530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10531 *) ac_try_echo=$ac_try;; 10532esac 10533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10534 (eval "$ac_link") 2>conftest.er1 10535 ac_status=$? 10536 grep -v '^ *+' conftest.er1 >conftest.err 10537 rm -f conftest.er1 10538 cat conftest.err >&5 10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10540 (exit $ac_status); } && { 10541 test -z "$ac_c_werror_flag" || 10542 test ! -s conftest.err 10543 } && test -s conftest$ac_exeext && 10544 $as_test_x conftest$ac_exeext; then 10545 ac_cv_func_dlopen=yes 10546else 10547 echo "$as_me: failed program was:" >&5 10548sed 's/^/| /' conftest.$ac_ext >&5 10549 10550 ac_cv_func_dlopen=no 10551fi 10552 10553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10554 conftest$ac_exeext conftest.$ac_ext 10555fi 10556{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10557echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 10558if test $ac_cv_func_dlopen = yes; then 10559 lt_cv_dlopen="dlopen" 10560else 10561 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10562echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10563if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10564 echo $ECHO_N "(cached) $ECHO_C" >&6 10565else 10566 ac_check_lib_save_LIBS=$LIBS 10567LIBS="-ldl $LIBS" 10568cat >conftest.$ac_ext <<_ACEOF 10569/* confdefs.h. */ 10570_ACEOF 10571cat confdefs.h >>conftest.$ac_ext 10572cat >>conftest.$ac_ext <<_ACEOF 10573/* end confdefs.h. */ 10574 10575/* Override any GCC internal prototype to avoid an error. 10576 Use char because int might match the return type of a GCC 10577 builtin and then its argument prototype would still apply. */ 10578#ifdef __cplusplus 10579extern "C" 10580#endif 10581char dlopen (); 10582int 10583main () 10584{ 10585return dlopen (); 10586 ; 10587 return 0; 10588} 10589_ACEOF 10590rm -f conftest.$ac_objext conftest$ac_exeext 10591if { (ac_try="$ac_link" 10592case "(($ac_try" in 10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10594 *) ac_try_echo=$ac_try;; 10595esac 10596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10597 (eval "$ac_link") 2>conftest.er1 10598 ac_status=$? 10599 grep -v '^ *+' conftest.er1 >conftest.err 10600 rm -f conftest.er1 10601 cat conftest.err >&5 10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10603 (exit $ac_status); } && { 10604 test -z "$ac_c_werror_flag" || 10605 test ! -s conftest.err 10606 } && test -s conftest$ac_exeext && 10607 $as_test_x conftest$ac_exeext; then 10608 ac_cv_lib_dl_dlopen=yes 10609else 10610 echo "$as_me: failed program was:" >&5 10611sed 's/^/| /' conftest.$ac_ext >&5 10612 10613 ac_cv_lib_dl_dlopen=no 10614fi 10615 10616rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10617 conftest$ac_exeext conftest.$ac_ext 10618LIBS=$ac_check_lib_save_LIBS 10619fi 10620{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10621echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10622if test $ac_cv_lib_dl_dlopen = yes; then 10623 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10624else 10625 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10626echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10627if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10628 echo $ECHO_N "(cached) $ECHO_C" >&6 10629else 10630 ac_check_lib_save_LIBS=$LIBS 10631LIBS="-lsvld $LIBS" 10632cat >conftest.$ac_ext <<_ACEOF 10633/* confdefs.h. */ 10634_ACEOF 10635cat confdefs.h >>conftest.$ac_ext 10636cat >>conftest.$ac_ext <<_ACEOF 10637/* end confdefs.h. */ 10638 10639/* Override any GCC internal prototype to avoid an error. 10640 Use char because int might match the return type of a GCC 10641 builtin and then its argument prototype would still apply. */ 10642#ifdef __cplusplus 10643extern "C" 10644#endif 10645char dlopen (); 10646int 10647main () 10648{ 10649return dlopen (); 10650 ; 10651 return 0; 10652} 10653_ACEOF 10654rm -f conftest.$ac_objext conftest$ac_exeext 10655if { (ac_try="$ac_link" 10656case "(($ac_try" in 10657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10658 *) ac_try_echo=$ac_try;; 10659esac 10660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10661 (eval "$ac_link") 2>conftest.er1 10662 ac_status=$? 10663 grep -v '^ *+' conftest.er1 >conftest.err 10664 rm -f conftest.er1 10665 cat conftest.err >&5 10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10667 (exit $ac_status); } && { 10668 test -z "$ac_c_werror_flag" || 10669 test ! -s conftest.err 10670 } && test -s conftest$ac_exeext && 10671 $as_test_x conftest$ac_exeext; then 10672 ac_cv_lib_svld_dlopen=yes 10673else 10674 echo "$as_me: failed program was:" >&5 10675sed 's/^/| /' conftest.$ac_ext >&5 10676 10677 ac_cv_lib_svld_dlopen=no 10678fi 10679 10680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10681 conftest$ac_exeext conftest.$ac_ext 10682LIBS=$ac_check_lib_save_LIBS 10683fi 10684{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10685echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10686if test $ac_cv_lib_svld_dlopen = yes; then 10687 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10688else 10689 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10690echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10691if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10692 echo $ECHO_N "(cached) $ECHO_C" >&6 10693else 10694 ac_check_lib_save_LIBS=$LIBS 10695LIBS="-ldld $LIBS" 10696cat >conftest.$ac_ext <<_ACEOF 10697/* confdefs.h. */ 10698_ACEOF 10699cat confdefs.h >>conftest.$ac_ext 10700cat >>conftest.$ac_ext <<_ACEOF 10701/* end confdefs.h. */ 10702 10703/* Override any GCC internal prototype to avoid an error. 10704 Use char because int might match the return type of a GCC 10705 builtin and then its argument prototype would still apply. */ 10706#ifdef __cplusplus 10707extern "C" 10708#endif 10709char dld_link (); 10710int 10711main () 10712{ 10713return dld_link (); 10714 ; 10715 return 0; 10716} 10717_ACEOF 10718rm -f conftest.$ac_objext conftest$ac_exeext 10719if { (ac_try="$ac_link" 10720case "(($ac_try" in 10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10722 *) ac_try_echo=$ac_try;; 10723esac 10724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10725 (eval "$ac_link") 2>conftest.er1 10726 ac_status=$? 10727 grep -v '^ *+' conftest.er1 >conftest.err 10728 rm -f conftest.er1 10729 cat conftest.err >&5 10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10731 (exit $ac_status); } && { 10732 test -z "$ac_c_werror_flag" || 10733 test ! -s conftest.err 10734 } && test -s conftest$ac_exeext && 10735 $as_test_x conftest$ac_exeext; then 10736 ac_cv_lib_dld_dld_link=yes 10737else 10738 echo "$as_me: failed program was:" >&5 10739sed 's/^/| /' conftest.$ac_ext >&5 10740 10741 ac_cv_lib_dld_dld_link=no 10742fi 10743 10744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10745 conftest$ac_exeext conftest.$ac_ext 10746LIBS=$ac_check_lib_save_LIBS 10747fi 10748{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10749echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10750if test $ac_cv_lib_dld_dld_link = yes; then 10751 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10752fi 10753 10754 10755fi 10756 10757 10758fi 10759 10760 10761fi 10762 10763 10764fi 10765 10766 10767fi 10768 10769 ;; 10770 esac 10771 10772 if test "x$lt_cv_dlopen" != xno; then 10773 enable_dlopen=yes 10774 else 10775 enable_dlopen=no 10776 fi 10777 10778 case $lt_cv_dlopen in 10779 dlopen) 10780 save_CPPFLAGS="$CPPFLAGS" 10781 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10782 10783 save_LDFLAGS="$LDFLAGS" 10784 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10785 10786 save_LIBS="$LIBS" 10787 LIBS="$lt_cv_dlopen_libs $LIBS" 10788 10789 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10790echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10791if test "${lt_cv_dlopen_self+set}" = set; then 10792 echo $ECHO_N "(cached) $ECHO_C" >&6 10793else 10794 if test "$cross_compiling" = yes; then : 10795 lt_cv_dlopen_self=cross 10796else 10797 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10798 lt_status=$lt_dlunknown 10799 cat > conftest.$ac_ext <<_LT_EOF 10800#line 10800 "configure" 10801#include "confdefs.h" 10802 10803#if HAVE_DLFCN_H 10804#include <dlfcn.h> 10805#endif 10806 10807#include <stdio.h> 10808 10809#ifdef RTLD_GLOBAL 10810# define LT_DLGLOBAL RTLD_GLOBAL 10811#else 10812# ifdef DL_GLOBAL 10813# define LT_DLGLOBAL DL_GLOBAL 10814# else 10815# define LT_DLGLOBAL 0 10816# endif 10817#endif 10818 10819/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10820 find out it does not work in some platform. */ 10821#ifndef LT_DLLAZY_OR_NOW 10822# ifdef RTLD_LAZY 10823# define LT_DLLAZY_OR_NOW RTLD_LAZY 10824# else 10825# ifdef DL_LAZY 10826# define LT_DLLAZY_OR_NOW DL_LAZY 10827# else 10828# ifdef RTLD_NOW 10829# define LT_DLLAZY_OR_NOW RTLD_NOW 10830# else 10831# ifdef DL_NOW 10832# define LT_DLLAZY_OR_NOW DL_NOW 10833# else 10834# define LT_DLLAZY_OR_NOW 0 10835# endif 10836# endif 10837# endif 10838# endif 10839#endif 10840 10841#ifdef __cplusplus 10842extern "C" void exit (int); 10843#endif 10844 10845void fnord() { int i=42;} 10846int main () 10847{ 10848 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10849 int status = $lt_dlunknown; 10850 10851 if (self) 10852 { 10853 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10854 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10855 /* dlclose (self); */ 10856 } 10857 else 10858 puts (dlerror ()); 10859 10860 exit (status); 10861} 10862_LT_EOF 10863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10864 (eval $ac_link) 2>&5 10865 ac_status=$? 10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10867 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10868 (./conftest; exit; ) >&5 2>/dev/null 10869 lt_status=$? 10870 case x$lt_status in 10871 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10872 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10873 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10874 esac 10875 else : 10876 # compilation failed 10877 lt_cv_dlopen_self=no 10878 fi 10879fi 10880rm -fr conftest* 10881 10882 10883fi 10884{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10885echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10886 10887 if test "x$lt_cv_dlopen_self" = xyes; then 10888 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10889 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10890echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10891if test "${lt_cv_dlopen_self_static+set}" = set; then 10892 echo $ECHO_N "(cached) $ECHO_C" >&6 10893else 10894 if test "$cross_compiling" = yes; then : 10895 lt_cv_dlopen_self_static=cross 10896else 10897 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10898 lt_status=$lt_dlunknown 10899 cat > conftest.$ac_ext <<_LT_EOF 10900#line 10900 "configure" 10901#include "confdefs.h" 10902 10903#if HAVE_DLFCN_H 10904#include <dlfcn.h> 10905#endif 10906 10907#include <stdio.h> 10908 10909#ifdef RTLD_GLOBAL 10910# define LT_DLGLOBAL RTLD_GLOBAL 10911#else 10912# ifdef DL_GLOBAL 10913# define LT_DLGLOBAL DL_GLOBAL 10914# else 10915# define LT_DLGLOBAL 0 10916# endif 10917#endif 10918 10919/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10920 find out it does not work in some platform. */ 10921#ifndef LT_DLLAZY_OR_NOW 10922# ifdef RTLD_LAZY 10923# define LT_DLLAZY_OR_NOW RTLD_LAZY 10924# else 10925# ifdef DL_LAZY 10926# define LT_DLLAZY_OR_NOW DL_LAZY 10927# else 10928# ifdef RTLD_NOW 10929# define LT_DLLAZY_OR_NOW RTLD_NOW 10930# else 10931# ifdef DL_NOW 10932# define LT_DLLAZY_OR_NOW DL_NOW 10933# else 10934# define LT_DLLAZY_OR_NOW 0 10935# endif 10936# endif 10937# endif 10938# endif 10939#endif 10940 10941#ifdef __cplusplus 10942extern "C" void exit (int); 10943#endif 10944 10945void fnord() { int i=42;} 10946int main () 10947{ 10948 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10949 int status = $lt_dlunknown; 10950 10951 if (self) 10952 { 10953 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10954 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10955 /* dlclose (self); */ 10956 } 10957 else 10958 puts (dlerror ()); 10959 10960 exit (status); 10961} 10962_LT_EOF 10963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10964 (eval $ac_link) 2>&5 10965 ac_status=$? 10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10967 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10968 (./conftest; exit; ) >&5 2>/dev/null 10969 lt_status=$? 10970 case x$lt_status in 10971 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10972 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10973 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10974 esac 10975 else : 10976 # compilation failed 10977 lt_cv_dlopen_self_static=no 10978 fi 10979fi 10980rm -fr conftest* 10981 10982 10983fi 10984{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10985echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10986 fi 10987 10988 CPPFLAGS="$save_CPPFLAGS" 10989 LDFLAGS="$save_LDFLAGS" 10990 LIBS="$save_LIBS" 10991 ;; 10992 esac 10993 10994 case $lt_cv_dlopen_self in 10995 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10996 *) enable_dlopen_self=unknown ;; 10997 esac 10998 10999 case $lt_cv_dlopen_self_static in 11000 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11001 *) enable_dlopen_self_static=unknown ;; 11002 esac 11003fi 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021striplib= 11022old_striplib= 11023{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11024echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 11025if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11026 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11027 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11028 { echo "$as_me:$LINENO: result: yes" >&5 11029echo "${ECHO_T}yes" >&6; } 11030else 11031# FIXME - insert some real tests, host_os isn't really good enough 11032 case $host_os in 11033 darwin*) 11034 if test -n "$STRIP" ; then 11035 striplib="$STRIP -x" 11036 old_striplib="$STRIP -S" 11037 { echo "$as_me:$LINENO: result: yes" >&5 11038echo "${ECHO_T}yes" >&6; } 11039 else 11040 { echo "$as_me:$LINENO: result: no" >&5 11041echo "${ECHO_T}no" >&6; } 11042 fi 11043 ;; 11044 *) 11045 { echo "$as_me:$LINENO: result: no" >&5 11046echo "${ECHO_T}no" >&6; } 11047 ;; 11048 esac 11049fi 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 # Report which library types will actually be built 11063 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11064echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 11065 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 11066echo "${ECHO_T}$can_build_shared" >&6; } 11067 11068 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11069echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 11070 test "$can_build_shared" = "no" && enable_shared=no 11071 11072 # On AIX, shared libraries and static libraries use the same namespace, and 11073 # are all built from PIC. 11074 case $host_os in 11075 aix3*) 11076 test "$enable_shared" = yes && enable_static=no 11077 if test -n "$RANLIB"; then 11078 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11079 postinstall_cmds='$RANLIB $lib' 11080 fi 11081 ;; 11082 11083 aix[4-9]*) 11084 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11085 test "$enable_shared" = yes && enable_static=no 11086 fi 11087 ;; 11088 esac 11089 { echo "$as_me:$LINENO: result: $enable_shared" >&5 11090echo "${ECHO_T}$enable_shared" >&6; } 11091 11092 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11093echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 11094 # Make sure either enable_shared or enable_static is yes. 11095 test "$enable_shared" = yes || enable_static=yes 11096 { echo "$as_me:$LINENO: result: $enable_static" >&5 11097echo "${ECHO_T}$enable_static" >&6; } 11098 11099 11100 11101 11102fi 11103ac_ext=c 11104ac_cpp='$CPP $CPPFLAGS' 11105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11107ac_compiler_gnu=$ac_cv_c_compiler_gnu 11108 11109CC="$lt_save_CC" 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 ac_config_commands="$ac_config_commands libtool" 11124 11125 11126 11127 11128# Only expand once: 11129 11130 11131 11132 11133# Checks for multithreading support. 11134# ---------------------------------- 11135 11136 11137 11138 11139ac_ext=c 11140ac_cpp='$CPP $CPPFLAGS' 11141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11143ac_compiler_gnu=$ac_cv_c_compiler_gnu 11144 11145acx_pthread_ok=no 11146 11147# We used to check for pthread.h first, but this fails if pthread.h 11148# requires special compiler flags (e.g. on True64 or Sequent). 11149# It gets checked for in the link test anyway. 11150 11151# First of all, check if the user has set any of the PTHREAD_LIBS, 11152# etcetera environment variables, and if threads linking works using 11153# them: 11154if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 11155 save_CFLAGS="$CFLAGS" 11156 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 11157 save_LIBS="$LIBS" 11158 LIBS="$PTHREAD_LIBS $LIBS" 11159 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 11160echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; } 11161 cat >conftest.$ac_ext <<_ACEOF 11162/* confdefs.h. */ 11163_ACEOF 11164cat confdefs.h >>conftest.$ac_ext 11165cat >>conftest.$ac_ext <<_ACEOF 11166/* end confdefs.h. */ 11167 11168/* Override any GCC internal prototype to avoid an error. 11169 Use char because int might match the return type of a GCC 11170 builtin and then its argument prototype would still apply. */ 11171#ifdef __cplusplus 11172extern "C" 11173#endif 11174char pthread_join (); 11175int 11176main () 11177{ 11178return pthread_join (); 11179 ; 11180 return 0; 11181} 11182_ACEOF 11183rm -f conftest.$ac_objext conftest$ac_exeext 11184if { (ac_try="$ac_link" 11185case "(($ac_try" in 11186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11187 *) ac_try_echo=$ac_try;; 11188esac 11189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11190 (eval "$ac_link") 2>conftest.er1 11191 ac_status=$? 11192 grep -v '^ *+' conftest.er1 >conftest.err 11193 rm -f conftest.er1 11194 cat conftest.err >&5 11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11196 (exit $ac_status); } && { 11197 test -z "$ac_c_werror_flag" || 11198 test ! -s conftest.err 11199 } && test -s conftest$ac_exeext && 11200 $as_test_x conftest$ac_exeext; then 11201 acx_pthread_ok=yes 11202else 11203 echo "$as_me: failed program was:" >&5 11204sed 's/^/| /' conftest.$ac_ext >&5 11205 11206 11207fi 11208 11209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11210 conftest$ac_exeext conftest.$ac_ext 11211 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 11212echo "${ECHO_T}$acx_pthread_ok" >&6; } 11213 if test x"$acx_pthread_ok" = xno; then 11214 PTHREAD_LIBS="" 11215 PTHREAD_CFLAGS="" 11216 fi 11217 LIBS="$save_LIBS" 11218 CFLAGS="$save_CFLAGS" 11219fi 11220 11221# We must check for the threads library under a number of different 11222# names; the ordering is very important because some systems 11223# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 11224# libraries is broken (non-POSIX). 11225 11226# Create a list of thread flags to try. Items starting with a "-" are 11227# C compiler flags, and other items are library names, except for "none" 11228# which indicates that we try without any flags at all, and "pthread-config" 11229# which is a program returning the flags for the Pth emulation library. 11230 11231acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 11232 11233# The ordering *is* (sometimes) important. Some notes on the 11234# individual items follow: 11235 11236# pthreads: AIX (must check this before -lpthread) 11237# none: in case threads are in libc; should be tried before -Kthread and 11238# other compiler flags to prevent continual compiler warnings 11239# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 11240# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 11241# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 11242# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 11243# -pthreads: Solaris/gcc 11244# -mthreads: Mingw32/gcc, Lynx/gcc 11245# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 11246# doesn't hurt to check since this sometimes defines pthreads too; 11247# also defines -D_REENTRANT) 11248# pthread: Linux, etcetera 11249# --thread-safe: KAI C++ 11250# pthread-config: use pthread-config program (for GNU Pth library) 11251 11252case "${host_cpu}-${host_os}" in 11253 *solaris*) 11254 11255 # On Solaris (at least, for some versions), libc contains stubbed 11256 # (non-functional) versions of the pthreads routines, so link-based 11257 # tests will erroneously succeed. (We need to link with -pthread or 11258 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 11259 # a function called by this macro, so we could check for that, but 11260 # who knows whether they'll stub that too in a future libc.) So, 11261 # we'll just look for -pthreads and -lpthread first: 11262 11263 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags" 11264 ;; 11265esac 11266 11267if test x"$acx_pthread_ok" = xno; then 11268for flag in $acx_pthread_flags; do 11269 11270 case $flag in 11271 none) 11272 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 11273echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; } 11274 ;; 11275 11276 -*) 11277 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 11278echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; } 11279 PTHREAD_CFLAGS="$flag" 11280 ;; 11281 11282 pthread-config) 11283 # Extract the first word of "pthread-config", so it can be a program name with args. 11284set dummy pthread-config; ac_word=$2 11285{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11287if test "${ac_cv_prog_acx_pthread_config+set}" = set; then 11288 echo $ECHO_N "(cached) $ECHO_C" >&6 11289else 11290 if test -n "$acx_pthread_config"; then 11291 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 11292else 11293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11294for as_dir in $PATH 11295do 11296 IFS=$as_save_IFS 11297 test -z "$as_dir" && as_dir=. 11298 for ac_exec_ext in '' $ac_executable_extensions; do 11299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11300 ac_cv_prog_acx_pthread_config="yes" 11301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11302 break 2 11303 fi 11304done 11305done 11306IFS=$as_save_IFS 11307 11308 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 11309fi 11310fi 11311acx_pthread_config=$ac_cv_prog_acx_pthread_config 11312if test -n "$acx_pthread_config"; then 11313 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5 11314echo "${ECHO_T}$acx_pthread_config" >&6; } 11315else 11316 { echo "$as_me:$LINENO: result: no" >&5 11317echo "${ECHO_T}no" >&6; } 11318fi 11319 11320 11321 if test x"$acx_pthread_config" = xno; then continue; fi 11322 PTHREAD_CFLAGS="`pthread-config --cflags`" 11323 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 11324 ;; 11325 11326 *) 11327 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 11328echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; } 11329 PTHREAD_LIBS="-l$flag" 11330 ;; 11331 esac 11332 11333 save_LIBS="$LIBS" 11334 save_CFLAGS="$CFLAGS" 11335 LIBS="$PTHREAD_LIBS $LIBS" 11336 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 11337 11338 # Check for various functions. We must include pthread.h, 11339 # since some functions may be macros. (On the Sequent, we 11340 # need a special flag -Kthread to make this header compile.) 11341 # We check for pthread_join because it is in -lpthread on IRIX 11342 # while pthread_create is in libc. We check for pthread_attr_init 11343 # due to DEC craziness with -lpthreads. We check for 11344 # pthread_cleanup_push because it is one of the few pthread 11345 # functions on Solaris that doesn't have a non-functional libc stub. 11346 # We try pthread_create on general principles. 11347 cat >conftest.$ac_ext <<_ACEOF 11348/* confdefs.h. */ 11349_ACEOF 11350cat confdefs.h >>conftest.$ac_ext 11351cat >>conftest.$ac_ext <<_ACEOF 11352/* end confdefs.h. */ 11353#include <pthread.h> 11354int 11355main () 11356{ 11357pthread_t th; pthread_join(th, 0); 11358 pthread_attr_init(0); pthread_cleanup_push(0, 0); 11359 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 11360 ; 11361 return 0; 11362} 11363_ACEOF 11364rm -f conftest.$ac_objext conftest$ac_exeext 11365if { (ac_try="$ac_link" 11366case "(($ac_try" in 11367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11368 *) ac_try_echo=$ac_try;; 11369esac 11370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11371 (eval "$ac_link") 2>conftest.er1 11372 ac_status=$? 11373 grep -v '^ *+' conftest.er1 >conftest.err 11374 rm -f conftest.er1 11375 cat conftest.err >&5 11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11377 (exit $ac_status); } && { 11378 test -z "$ac_c_werror_flag" || 11379 test ! -s conftest.err 11380 } && test -s conftest$ac_exeext && 11381 $as_test_x conftest$ac_exeext; then 11382 acx_pthread_ok=yes 11383else 11384 echo "$as_me: failed program was:" >&5 11385sed 's/^/| /' conftest.$ac_ext >&5 11386 11387 11388fi 11389 11390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11391 conftest$ac_exeext conftest.$ac_ext 11392 11393 LIBS="$save_LIBS" 11394 CFLAGS="$save_CFLAGS" 11395 11396 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 11397echo "${ECHO_T}$acx_pthread_ok" >&6; } 11398 if test "x$acx_pthread_ok" = xyes; then 11399 break; 11400 fi 11401 11402 PTHREAD_LIBS="" 11403 PTHREAD_CFLAGS="" 11404done 11405fi 11406 11407# Various other checks: 11408if test "x$acx_pthread_ok" = xyes; then 11409 save_LIBS="$LIBS" 11410 LIBS="$PTHREAD_LIBS $LIBS" 11411 save_CFLAGS="$CFLAGS" 11412 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 11413 11414 # Detect AIX lossage: threads are created detached by default 11415 # and the JOINABLE attribute has a nonstandard name (UNDETACHED). 11416 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 11417echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; } 11418 cat >conftest.$ac_ext <<_ACEOF 11419/* confdefs.h. */ 11420_ACEOF 11421cat confdefs.h >>conftest.$ac_ext 11422cat >>conftest.$ac_ext <<_ACEOF 11423/* end confdefs.h. */ 11424#include <pthread.h> 11425int 11426main () 11427{ 11428int attr=PTHREAD_CREATE_JOINABLE; 11429 ; 11430 return 0; 11431} 11432_ACEOF 11433rm -f conftest.$ac_objext conftest$ac_exeext 11434if { (ac_try="$ac_link" 11435case "(($ac_try" in 11436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11437 *) ac_try_echo=$ac_try;; 11438esac 11439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11440 (eval "$ac_link") 2>conftest.er1 11441 ac_status=$? 11442 grep -v '^ *+' conftest.er1 >conftest.err 11443 rm -f conftest.er1 11444 cat conftest.err >&5 11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11446 (exit $ac_status); } && { 11447 test -z "$ac_c_werror_flag" || 11448 test ! -s conftest.err 11449 } && test -s conftest$ac_exeext && 11450 $as_test_x conftest$ac_exeext; then 11451 ok=PTHREAD_CREATE_JOINABLE 11452else 11453 echo "$as_me: failed program was:" >&5 11454sed 's/^/| /' conftest.$ac_ext >&5 11455 11456 ok=unknown 11457fi 11458 11459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11460 conftest$ac_exeext conftest.$ac_ext 11461 if test x"$ok" = xunknown; then 11462 cat >conftest.$ac_ext <<_ACEOF 11463/* confdefs.h. */ 11464_ACEOF 11465cat confdefs.h >>conftest.$ac_ext 11466cat >>conftest.$ac_ext <<_ACEOF 11467/* end confdefs.h. */ 11468#include <pthread.h> 11469int 11470main () 11471{ 11472int attr=PTHREAD_CREATE_UNDETACHED; 11473 ; 11474 return 0; 11475} 11476_ACEOF 11477rm -f conftest.$ac_objext conftest$ac_exeext 11478if { (ac_try="$ac_link" 11479case "(($ac_try" in 11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11481 *) ac_try_echo=$ac_try;; 11482esac 11483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11484 (eval "$ac_link") 2>conftest.er1 11485 ac_status=$? 11486 grep -v '^ *+' conftest.er1 >conftest.err 11487 rm -f conftest.er1 11488 cat conftest.err >&5 11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11490 (exit $ac_status); } && { 11491 test -z "$ac_c_werror_flag" || 11492 test ! -s conftest.err 11493 } && test -s conftest$ac_exeext && 11494 $as_test_x conftest$ac_exeext; then 11495 ok=PTHREAD_CREATE_UNDETACHED 11496else 11497 echo "$as_me: failed program was:" >&5 11498sed 's/^/| /' conftest.$ac_ext >&5 11499 11500 ok=unknown 11501fi 11502 11503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11504 conftest$ac_exeext conftest.$ac_ext 11505 fi 11506 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then 11507 11508cat >>confdefs.h <<\_ACEOF 11509#define PTHREAD_CREATE_JOINABLE "${ok}" 11510_ACEOF 11511 11512 fi 11513 { echo "$as_me:$LINENO: result: ${ok}" >&5 11514echo "${ECHO_T}${ok}" >&6; } 11515 if test x"$ok" = xunknown; then 11516 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5 11517echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;} 11518 fi 11519 11520 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 11521echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; } 11522 flag=no 11523 case "${host_cpu}-${host_os}" in 11524 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";; 11525 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 11526 esac 11527 { echo "$as_me:$LINENO: result: ${flag}" >&5 11528echo "${ECHO_T}${flag}" >&6; } 11529 if test "x$flag" != xno; then 11530 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 11531 fi 11532 11533 LIBS="$save_LIBS" 11534 CFLAGS="$save_CFLAGS" 11535 11536 # More AIX lossage: must compile with cc_r 11537 # Extract the first word of "cc_r", so it can be a program name with args. 11538set dummy cc_r; ac_word=$2 11539{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11541if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then 11542 echo $ECHO_N "(cached) $ECHO_C" >&6 11543else 11544 if test -n "$PTHREAD_CC"; then 11545 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 11546else 11547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11548for as_dir in $PATH 11549do 11550 IFS=$as_save_IFS 11551 test -z "$as_dir" && as_dir=. 11552 for ac_exec_ext in '' $ac_executable_extensions; do 11553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11554 ac_cv_prog_PTHREAD_CC="cc_r" 11555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11556 break 2 11557 fi 11558done 11559done 11560IFS=$as_save_IFS 11561 11562 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}" 11563fi 11564fi 11565PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 11566if test -n "$PTHREAD_CC"; then 11567 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 11568echo "${ECHO_T}$PTHREAD_CC" >&6; } 11569else 11570 { echo "$as_me:$LINENO: result: no" >&5 11571echo "${ECHO_T}no" >&6; } 11572fi 11573 11574 11575else 11576 PTHREAD_CC="$CC" 11577fi 11578 11579 11580 11581 11582 11583# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 11584if test x"$acx_pthread_ok" = xyes; then 11585 11586cat >>confdefs.h <<\_ACEOF 11587#define HAVE_PTHREAD 1 11588_ACEOF 11589 11590 : 11591else 11592 acx_pthread_ok=no 11593 11594fi 11595ac_ext=c 11596ac_cpp='$CPP $CPPFLAGS' 11597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11599ac_compiler_gnu=$ac_cv_c_compiler_gnu 11600 11601 11602 11603CC="$PTHREAD_CC" 11604 11605 11606# Checks for TLS support. 11607# ----------------------- 11608 11609 ac_ext=c 11610ac_cpp='$CPP $CPPFLAGS' 11611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11613ac_compiler_gnu=$ac_cv_c_compiler_gnu 11614 11615 11616 # Check whether --enable-tls was given. 11617if test "${enable_tls+set}" = set; then 11618 enableval=$enable_tls; 11619else 11620 enable_tls=yes 11621fi 11622 11623 if test $enable_tls = yes; then 11624 { echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5 11625echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6; } 11626if test "${have_tls+set}" = set; then 11627 echo $ECHO_N "(cached) $ECHO_C" >&6 11628else 11629 11630 if test "$cross_compiling" = yes; then 11631 cat >conftest.$ac_ext <<_ACEOF 11632__thread int a; int b; int main() { return a = b; } 11633_ACEOF 11634rm -f conftest.$ac_objext conftest$ac_exeext 11635if { (ac_try="$ac_link" 11636case "(($ac_try" in 11637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11638 *) ac_try_echo=$ac_try;; 11639esac 11640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11641 (eval "$ac_link") 2>conftest.er1 11642 ac_status=$? 11643 grep -v '^ *+' conftest.er1 >conftest.err 11644 rm -f conftest.er1 11645 cat conftest.err >&5 11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11647 (exit $ac_status); } && { 11648 test -z "$ac_c_werror_flag" || 11649 test ! -s conftest.err 11650 } && test -s conftest$ac_exeext && 11651 $as_test_x conftest$ac_exeext; then 11652 have_tls=yes 11653else 11654 echo "$as_me: failed program was:" >&5 11655sed 's/^/| /' conftest.$ac_ext >&5 11656 11657 have_tls=no 11658fi 11659 11660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11661 conftest$ac_exeext conftest.$ac_ext 11662 11663 11664else 11665 cat >conftest.$ac_ext <<_ACEOF 11666__thread int a; int b; int main() { return a = b; } 11667_ACEOF 11668rm -f conftest$ac_exeext 11669if { (ac_try="$ac_link" 11670case "(($ac_try" in 11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11672 *) ac_try_echo=$ac_try;; 11673esac 11674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11675 (eval "$ac_link") 2>&5 11676 ac_status=$? 11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11679 { (case "(($ac_try" in 11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11681 *) ac_try_echo=$ac_try;; 11682esac 11683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11684 (eval "$ac_try") 2>&5 11685 ac_status=$? 11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11687 (exit $ac_status); }; }; then 11688 chktls_save_LDFLAGS="$LDFLAGS" 11689 LDFLAGS="-static $LDFLAGS" 11690 cat >conftest.$ac_ext <<_ACEOF 11691int main() { return 0; } 11692_ACEOF 11693rm -f conftest.$ac_objext conftest$ac_exeext 11694if { (ac_try="$ac_link" 11695case "(($ac_try" in 11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11697 *) ac_try_echo=$ac_try;; 11698esac 11699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11700 (eval "$ac_link") 2>conftest.er1 11701 ac_status=$? 11702 grep -v '^ *+' conftest.er1 >conftest.err 11703 rm -f conftest.er1 11704 cat conftest.err >&5 11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11706 (exit $ac_status); } && { 11707 test -z "$ac_c_werror_flag" || 11708 test ! -s conftest.err 11709 } && test -s conftest$ac_exeext && 11710 $as_test_x conftest$ac_exeext; then 11711 if test "$cross_compiling" = yes; then 11712 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 11713See \`config.log' for more details." >&5 11714echo "$as_me: error: cannot run test program while cross compiling 11715See \`config.log' for more details." >&2;} 11716 { (exit 1); exit 1; }; } 11717else 11718 cat >conftest.$ac_ext <<_ACEOF 11719__thread int a; int b; int main() { return a = b; } 11720_ACEOF 11721rm -f conftest$ac_exeext 11722if { (ac_try="$ac_link" 11723case "(($ac_try" in 11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11725 *) ac_try_echo=$ac_try;; 11726esac 11727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11728 (eval "$ac_link") 2>&5 11729 ac_status=$? 11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11732 { (case "(($ac_try" in 11733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11734 *) ac_try_echo=$ac_try;; 11735esac 11736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11737 (eval "$ac_try") 2>&5 11738 ac_status=$? 11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11740 (exit $ac_status); }; }; then 11741 have_tls=yes 11742else 11743 echo "$as_me: program exited with status $ac_status" >&5 11744echo "$as_me: failed program was:" >&5 11745sed 's/^/| /' conftest.$ac_ext >&5 11746 11747( exit $ac_status ) 11748have_tls=no 11749fi 11750rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11751fi 11752 11753 11754else 11755 echo "$as_me: failed program was:" >&5 11756sed 's/^/| /' conftest.$ac_ext >&5 11757 11758 have_tls=yes 11759fi 11760 11761rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11762 conftest$ac_exeext conftest.$ac_ext 11763 LDFLAGS="$chktls_save_LDFLAGS" 11764 if test $have_tls = yes; then 11765 chk_tls_save_CFLAGS="$CFLAGS" 11766 CFLAGS="${PTHREAD_LIBS} ${PTHREAD_CFLAGS} $CFLAGS" 11767 if test "$cross_compiling" = yes; then 11768 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 11769See \`config.log' for more details." >&5 11770echo "$as_me: error: cannot run test program while cross compiling 11771See \`config.log' for more details." >&2;} 11772 { (exit 1); exit 1; }; } 11773else 11774 cat >conftest.$ac_ext <<_ACEOF 11775/* confdefs.h. */ 11776_ACEOF 11777cat confdefs.h >>conftest.$ac_ext 11778cat >>conftest.$ac_ext <<_ACEOF 11779/* end confdefs.h. */ 11780#include <pthread.h> 11781 __thread int a; 11782 static int *a_in_other_thread; 11783 static void * 11784 thread_func (void *arg) 11785 { 11786 a_in_other_thread = &a; 11787 return (void *)0; 11788 } 11789int 11790main () 11791{ 11792pthread_t thread; 11793 void *thread_retval; 11794 int *a_in_main_thread; 11795 if (pthread_create (&thread, (pthread_attr_t *)0, 11796 thread_func, (void *)0)) 11797 return 0; 11798 a_in_main_thread = &a; 11799 if (pthread_join (thread, &thread_retval)) 11800 return 0; 11801 return (a_in_other_thread == a_in_main_thread); 11802 ; 11803 return 0; 11804} 11805_ACEOF 11806rm -f conftest$ac_exeext 11807if { (ac_try="$ac_link" 11808case "(($ac_try" in 11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11810 *) ac_try_echo=$ac_try;; 11811esac 11812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11813 (eval "$ac_link") 2>&5 11814 ac_status=$? 11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11817 { (case "(($ac_try" in 11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11819 *) ac_try_echo=$ac_try;; 11820esac 11821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11822 (eval "$ac_try") 2>&5 11823 ac_status=$? 11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11825 (exit $ac_status); }; }; then 11826 have_tls=yes 11827else 11828 echo "$as_me: program exited with status $ac_status" >&5 11829echo "$as_me: failed program was:" >&5 11830sed 's/^/| /' conftest.$ac_ext >&5 11831 11832( exit $ac_status ) 11833have_tls=no 11834fi 11835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11836fi 11837 11838 11839 CFLAGS="$chk_tls_save_CFLAGS" 11840 fi 11841else 11842 echo "$as_me: program exited with status $ac_status" >&5 11843echo "$as_me: failed program was:" >&5 11844sed 's/^/| /' conftest.$ac_ext >&5 11845 11846( exit $ac_status ) 11847have_tls=no 11848fi 11849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11850fi 11851 11852 11853fi 11854{ echo "$as_me:$LINENO: result: $have_tls" >&5 11855echo "${ECHO_T}$have_tls" >&6; } 11856 if test $have_tls = yes; then 11857 11858cat >>confdefs.h <<\_ACEOF 11859#define HAVE_TLS 1 11860_ACEOF 11861 11862 fi 11863 fi 11864 11865 11866 11867# Checks for typedefs, structures, and compiler characteristics. 11868# -------------------------------------------------------------- 11869 11870{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 11871echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 11872if test "${ac_cv_c_const+set}" = set; then 11873 echo $ECHO_N "(cached) $ECHO_C" >&6 11874else 11875 cat >conftest.$ac_ext <<_ACEOF 11876/* confdefs.h. */ 11877_ACEOF 11878cat confdefs.h >>conftest.$ac_ext 11879cat >>conftest.$ac_ext <<_ACEOF 11880/* end confdefs.h. */ 11881 11882int 11883main () 11884{ 11885/* FIXME: Include the comments suggested by Paul. */ 11886#ifndef __cplusplus 11887 /* Ultrix mips cc rejects this. */ 11888 typedef int charset[2]; 11889 const charset cs; 11890 /* SunOS 4.1.1 cc rejects this. */ 11891 char const *const *pcpcc; 11892 char **ppc; 11893 /* NEC SVR4.0.2 mips cc rejects this. */ 11894 struct point {int x, y;}; 11895 static struct point const zero = {0,0}; 11896 /* AIX XL C 1.02.0.0 rejects this. 11897 It does not let you subtract one const X* pointer from another in 11898 an arm of an if-expression whose if-part is not a constant 11899 expression */ 11900 const char *g = "string"; 11901 pcpcc = &g + (g ? g-g : 0); 11902 /* HPUX 7.0 cc rejects these. */ 11903 ++pcpcc; 11904 ppc = (char**) pcpcc; 11905 pcpcc = (char const *const *) ppc; 11906 { /* SCO 3.2v4 cc rejects this. */ 11907 char *t; 11908 char const *s = 0 ? (char *) 0 : (char const *) 0; 11909 11910 *t++ = 0; 11911 if (s) return 0; 11912 } 11913 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11914 int x[] = {25, 17}; 11915 const int *foo = &x[0]; 11916 ++foo; 11917 } 11918 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11919 typedef const int *iptr; 11920 iptr p = 0; 11921 ++p; 11922 } 11923 { /* AIX XL C 1.02.0.0 rejects this saying 11924 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11925 struct s { int j; const int *ap[3]; }; 11926 struct s *b; b->j = 5; 11927 } 11928 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11929 const int foo = 10; 11930 if (!foo) return 0; 11931 } 11932 return !cs[0] && !zero.x; 11933#endif 11934 11935 ; 11936 return 0; 11937} 11938_ACEOF 11939rm -f conftest.$ac_objext 11940if { (ac_try="$ac_compile" 11941case "(($ac_try" in 11942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11943 *) ac_try_echo=$ac_try;; 11944esac 11945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11946 (eval "$ac_compile") 2>conftest.er1 11947 ac_status=$? 11948 grep -v '^ *+' conftest.er1 >conftest.err 11949 rm -f conftest.er1 11950 cat conftest.err >&5 11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11952 (exit $ac_status); } && { 11953 test -z "$ac_c_werror_flag" || 11954 test ! -s conftest.err 11955 } && test -s conftest.$ac_objext; then 11956 ac_cv_c_const=yes 11957else 11958 echo "$as_me: failed program was:" >&5 11959sed 's/^/| /' conftest.$ac_ext >&5 11960 11961 ac_cv_c_const=no 11962fi 11963 11964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11965fi 11966{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 11967echo "${ECHO_T}$ac_cv_c_const" >&6; } 11968if test $ac_cv_c_const = no; then 11969 11970cat >>confdefs.h <<\_ACEOF 11971#define const 11972_ACEOF 11973 11974fi 11975 11976{ echo "$as_me:$LINENO: checking for inline" >&5 11977echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 11978if test "${ac_cv_c_inline+set}" = set; then 11979 echo $ECHO_N "(cached) $ECHO_C" >&6 11980else 11981 ac_cv_c_inline=no 11982for ac_kw in inline __inline__ __inline; do 11983 cat >conftest.$ac_ext <<_ACEOF 11984/* confdefs.h. */ 11985_ACEOF 11986cat confdefs.h >>conftest.$ac_ext 11987cat >>conftest.$ac_ext <<_ACEOF 11988/* end confdefs.h. */ 11989#ifndef __cplusplus 11990typedef int foo_t; 11991static $ac_kw foo_t static_foo () {return 0; } 11992$ac_kw foo_t foo () {return 0; } 11993#endif 11994 11995_ACEOF 11996rm -f conftest.$ac_objext 11997if { (ac_try="$ac_compile" 11998case "(($ac_try" in 11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12000 *) ac_try_echo=$ac_try;; 12001esac 12002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12003 (eval "$ac_compile") 2>conftest.er1 12004 ac_status=$? 12005 grep -v '^ *+' conftest.er1 >conftest.err 12006 rm -f conftest.er1 12007 cat conftest.err >&5 12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12009 (exit $ac_status); } && { 12010 test -z "$ac_c_werror_flag" || 12011 test ! -s conftest.err 12012 } && test -s conftest.$ac_objext; then 12013 ac_cv_c_inline=$ac_kw 12014else 12015 echo "$as_me: failed program was:" >&5 12016sed 's/^/| /' conftest.$ac_ext >&5 12017 12018 12019fi 12020 12021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12022 test "$ac_cv_c_inline" != no && break 12023done 12024 12025fi 12026{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 12027echo "${ECHO_T}$ac_cv_c_inline" >&6; } 12028 12029 12030case $ac_cv_c_inline in 12031 inline | yes) ;; 12032 *) 12033 case $ac_cv_c_inline in 12034 no) ac_val=;; 12035 *) ac_val=$ac_cv_c_inline;; 12036 esac 12037 cat >>confdefs.h <<_ACEOF 12038#ifndef __cplusplus 12039#define inline $ac_val 12040#endif 12041_ACEOF 12042 ;; 12043esac 12044 12045 12046{ echo "$as_me:$LINENO: checking for size_t" >&5 12047echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 12048if test "${ac_cv_type_size_t+set}" = set; then 12049 echo $ECHO_N "(cached) $ECHO_C" >&6 12050else 12051 cat >conftest.$ac_ext <<_ACEOF 12052/* confdefs.h. */ 12053_ACEOF 12054cat confdefs.h >>conftest.$ac_ext 12055cat >>conftest.$ac_ext <<_ACEOF 12056/* end confdefs.h. */ 12057$ac_includes_default 12058typedef size_t ac__type_new_; 12059int 12060main () 12061{ 12062if ((ac__type_new_ *) 0) 12063 return 0; 12064if (sizeof (ac__type_new_)) 12065 return 0; 12066 ; 12067 return 0; 12068} 12069_ACEOF 12070rm -f conftest.$ac_objext 12071if { (ac_try="$ac_compile" 12072case "(($ac_try" in 12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12074 *) ac_try_echo=$ac_try;; 12075esac 12076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12077 (eval "$ac_compile") 2>conftest.er1 12078 ac_status=$? 12079 grep -v '^ *+' conftest.er1 >conftest.err 12080 rm -f conftest.er1 12081 cat conftest.err >&5 12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12083 (exit $ac_status); } && { 12084 test -z "$ac_c_werror_flag" || 12085 test ! -s conftest.err 12086 } && test -s conftest.$ac_objext; then 12087 ac_cv_type_size_t=yes 12088else 12089 echo "$as_me: failed program was:" >&5 12090sed 's/^/| /' conftest.$ac_ext >&5 12091 12092 ac_cv_type_size_t=no 12093fi 12094 12095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12096fi 12097{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 12098echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 12099if test $ac_cv_type_size_t = yes; then 12100 : 12101else 12102 12103cat >>confdefs.h <<_ACEOF 12104#define size_t unsigned int 12105_ACEOF 12106 12107fi 12108 12109 12110{ echo "$as_me:$LINENO: checking for short" >&5 12111echo $ECHO_N "checking for short... $ECHO_C" >&6; } 12112if test "${ac_cv_type_short+set}" = set; then 12113 echo $ECHO_N "(cached) $ECHO_C" >&6 12114else 12115 cat >conftest.$ac_ext <<_ACEOF 12116/* confdefs.h. */ 12117_ACEOF 12118cat confdefs.h >>conftest.$ac_ext 12119cat >>conftest.$ac_ext <<_ACEOF 12120/* end confdefs.h. */ 12121$ac_includes_default 12122typedef short ac__type_new_; 12123int 12124main () 12125{ 12126if ((ac__type_new_ *) 0) 12127 return 0; 12128if (sizeof (ac__type_new_)) 12129 return 0; 12130 ; 12131 return 0; 12132} 12133_ACEOF 12134rm -f conftest.$ac_objext 12135if { (ac_try="$ac_compile" 12136case "(($ac_try" in 12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12138 *) ac_try_echo=$ac_try;; 12139esac 12140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12141 (eval "$ac_compile") 2>conftest.er1 12142 ac_status=$? 12143 grep -v '^ *+' conftest.er1 >conftest.err 12144 rm -f conftest.er1 12145 cat conftest.err >&5 12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12147 (exit $ac_status); } && { 12148 test -z "$ac_c_werror_flag" || 12149 test ! -s conftest.err 12150 } && test -s conftest.$ac_objext; then 12151 ac_cv_type_short=yes 12152else 12153 echo "$as_me: failed program was:" >&5 12154sed 's/^/| /' conftest.$ac_ext >&5 12155 12156 ac_cv_type_short=no 12157fi 12158 12159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12160fi 12161{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 12162echo "${ECHO_T}$ac_cv_type_short" >&6; } 12163 12164# The cast to long int works around a bug in the HP C Compiler 12165# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12166# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12167# This bug is HP SR number 8606223364. 12168{ echo "$as_me:$LINENO: checking size of short" >&5 12169echo $ECHO_N "checking size of short... $ECHO_C" >&6; } 12170if test "${ac_cv_sizeof_short+set}" = set; then 12171 echo $ECHO_N "(cached) $ECHO_C" >&6 12172else 12173 if test "$cross_compiling" = yes; then 12174 # Depending upon the size, compute the lo and hi bounds. 12175cat >conftest.$ac_ext <<_ACEOF 12176/* confdefs.h. */ 12177_ACEOF 12178cat confdefs.h >>conftest.$ac_ext 12179cat >>conftest.$ac_ext <<_ACEOF 12180/* end confdefs.h. */ 12181$ac_includes_default 12182 typedef short ac__type_sizeof_; 12183int 12184main () 12185{ 12186static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 12187test_array [0] = 0 12188 12189 ; 12190 return 0; 12191} 12192_ACEOF 12193rm -f conftest.$ac_objext 12194if { (ac_try="$ac_compile" 12195case "(($ac_try" in 12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12197 *) ac_try_echo=$ac_try;; 12198esac 12199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12200 (eval "$ac_compile") 2>conftest.er1 12201 ac_status=$? 12202 grep -v '^ *+' conftest.er1 >conftest.err 12203 rm -f conftest.er1 12204 cat conftest.err >&5 12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12206 (exit $ac_status); } && { 12207 test -z "$ac_c_werror_flag" || 12208 test ! -s conftest.err 12209 } && test -s conftest.$ac_objext; then 12210 ac_lo=0 ac_mid=0 12211 while :; do 12212 cat >conftest.$ac_ext <<_ACEOF 12213/* confdefs.h. */ 12214_ACEOF 12215cat confdefs.h >>conftest.$ac_ext 12216cat >>conftest.$ac_ext <<_ACEOF 12217/* end confdefs.h. */ 12218$ac_includes_default 12219 typedef short ac__type_sizeof_; 12220int 12221main () 12222{ 12223static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12224test_array [0] = 0 12225 12226 ; 12227 return 0; 12228} 12229_ACEOF 12230rm -f conftest.$ac_objext 12231if { (ac_try="$ac_compile" 12232case "(($ac_try" in 12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12234 *) ac_try_echo=$ac_try;; 12235esac 12236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12237 (eval "$ac_compile") 2>conftest.er1 12238 ac_status=$? 12239 grep -v '^ *+' conftest.er1 >conftest.err 12240 rm -f conftest.er1 12241 cat conftest.err >&5 12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12243 (exit $ac_status); } && { 12244 test -z "$ac_c_werror_flag" || 12245 test ! -s conftest.err 12246 } && test -s conftest.$ac_objext; then 12247 ac_hi=$ac_mid; break 12248else 12249 echo "$as_me: failed program was:" >&5 12250sed 's/^/| /' conftest.$ac_ext >&5 12251 12252 ac_lo=`expr $ac_mid + 1` 12253 if test $ac_lo -le $ac_mid; then 12254 ac_lo= ac_hi= 12255 break 12256 fi 12257 ac_mid=`expr 2 '*' $ac_mid + 1` 12258fi 12259 12260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12261 done 12262else 12263 echo "$as_me: failed program was:" >&5 12264sed 's/^/| /' conftest.$ac_ext >&5 12265 12266 cat >conftest.$ac_ext <<_ACEOF 12267/* confdefs.h. */ 12268_ACEOF 12269cat confdefs.h >>conftest.$ac_ext 12270cat >>conftest.$ac_ext <<_ACEOF 12271/* end confdefs.h. */ 12272$ac_includes_default 12273 typedef short ac__type_sizeof_; 12274int 12275main () 12276{ 12277static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 12278test_array [0] = 0 12279 12280 ; 12281 return 0; 12282} 12283_ACEOF 12284rm -f conftest.$ac_objext 12285if { (ac_try="$ac_compile" 12286case "(($ac_try" in 12287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12288 *) ac_try_echo=$ac_try;; 12289esac 12290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12291 (eval "$ac_compile") 2>conftest.er1 12292 ac_status=$? 12293 grep -v '^ *+' conftest.er1 >conftest.err 12294 rm -f conftest.er1 12295 cat conftest.err >&5 12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12297 (exit $ac_status); } && { 12298 test -z "$ac_c_werror_flag" || 12299 test ! -s conftest.err 12300 } && test -s conftest.$ac_objext; then 12301 ac_hi=-1 ac_mid=-1 12302 while :; do 12303 cat >conftest.$ac_ext <<_ACEOF 12304/* confdefs.h. */ 12305_ACEOF 12306cat confdefs.h >>conftest.$ac_ext 12307cat >>conftest.$ac_ext <<_ACEOF 12308/* end confdefs.h. */ 12309$ac_includes_default 12310 typedef short ac__type_sizeof_; 12311int 12312main () 12313{ 12314static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 12315test_array [0] = 0 12316 12317 ; 12318 return 0; 12319} 12320_ACEOF 12321rm -f conftest.$ac_objext 12322if { (ac_try="$ac_compile" 12323case "(($ac_try" in 12324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12325 *) ac_try_echo=$ac_try;; 12326esac 12327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12328 (eval "$ac_compile") 2>conftest.er1 12329 ac_status=$? 12330 grep -v '^ *+' conftest.er1 >conftest.err 12331 rm -f conftest.er1 12332 cat conftest.err >&5 12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12334 (exit $ac_status); } && { 12335 test -z "$ac_c_werror_flag" || 12336 test ! -s conftest.err 12337 } && test -s conftest.$ac_objext; then 12338 ac_lo=$ac_mid; break 12339else 12340 echo "$as_me: failed program was:" >&5 12341sed 's/^/| /' conftest.$ac_ext >&5 12342 12343 ac_hi=`expr '(' $ac_mid ')' - 1` 12344 if test $ac_mid -le $ac_hi; then 12345 ac_lo= ac_hi= 12346 break 12347 fi 12348 ac_mid=`expr 2 '*' $ac_mid` 12349fi 12350 12351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12352 done 12353else 12354 echo "$as_me: failed program was:" >&5 12355sed 's/^/| /' conftest.$ac_ext >&5 12356 12357 ac_lo= ac_hi= 12358fi 12359 12360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12361fi 12362 12363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12364# Binary search between lo and hi bounds. 12365while test "x$ac_lo" != "x$ac_hi"; do 12366 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12367 cat >conftest.$ac_ext <<_ACEOF 12368/* confdefs.h. */ 12369_ACEOF 12370cat confdefs.h >>conftest.$ac_ext 12371cat >>conftest.$ac_ext <<_ACEOF 12372/* end confdefs.h. */ 12373$ac_includes_default 12374 typedef short ac__type_sizeof_; 12375int 12376main () 12377{ 12378static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12379test_array [0] = 0 12380 12381 ; 12382 return 0; 12383} 12384_ACEOF 12385rm -f conftest.$ac_objext 12386if { (ac_try="$ac_compile" 12387case "(($ac_try" in 12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12389 *) ac_try_echo=$ac_try;; 12390esac 12391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12392 (eval "$ac_compile") 2>conftest.er1 12393 ac_status=$? 12394 grep -v '^ *+' conftest.er1 >conftest.err 12395 rm -f conftest.er1 12396 cat conftest.err >&5 12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12398 (exit $ac_status); } && { 12399 test -z "$ac_c_werror_flag" || 12400 test ! -s conftest.err 12401 } && test -s conftest.$ac_objext; then 12402 ac_hi=$ac_mid 12403else 12404 echo "$as_me: failed program was:" >&5 12405sed 's/^/| /' conftest.$ac_ext >&5 12406 12407 ac_lo=`expr '(' $ac_mid ')' + 1` 12408fi 12409 12410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12411done 12412case $ac_lo in 12413?*) ac_cv_sizeof_short=$ac_lo;; 12414'') if test "$ac_cv_type_short" = yes; then 12415 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) 12416See \`config.log' for more details." >&5 12417echo "$as_me: error: cannot compute sizeof (short) 12418See \`config.log' for more details." >&2;} 12419 { (exit 77); exit 77; }; } 12420 else 12421 ac_cv_sizeof_short=0 12422 fi ;; 12423esac 12424else 12425 cat >conftest.$ac_ext <<_ACEOF 12426/* confdefs.h. */ 12427_ACEOF 12428cat confdefs.h >>conftest.$ac_ext 12429cat >>conftest.$ac_ext <<_ACEOF 12430/* end confdefs.h. */ 12431$ac_includes_default 12432 typedef short ac__type_sizeof_; 12433static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 12434static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 12435#include <stdio.h> 12436#include <stdlib.h> 12437int 12438main () 12439{ 12440 12441 FILE *f = fopen ("conftest.val", "w"); 12442 if (! f) 12443 return 1; 12444 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 12445 { 12446 long int i = longval (); 12447 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 12448 return 1; 12449 fprintf (f, "%ld\n", i); 12450 } 12451 else 12452 { 12453 unsigned long int i = ulongval (); 12454 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 12455 return 1; 12456 fprintf (f, "%lu\n", i); 12457 } 12458 return ferror (f) || fclose (f) != 0; 12459 12460 ; 12461 return 0; 12462} 12463_ACEOF 12464rm -f conftest$ac_exeext 12465if { (ac_try="$ac_link" 12466case "(($ac_try" in 12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12468 *) ac_try_echo=$ac_try;; 12469esac 12470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12471 (eval "$ac_link") 2>&5 12472 ac_status=$? 12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12475 { (case "(($ac_try" in 12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12477 *) ac_try_echo=$ac_try;; 12478esac 12479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12480 (eval "$ac_try") 2>&5 12481 ac_status=$? 12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12483 (exit $ac_status); }; }; then 12484 ac_cv_sizeof_short=`cat conftest.val` 12485else 12486 echo "$as_me: program exited with status $ac_status" >&5 12487echo "$as_me: failed program was:" >&5 12488sed 's/^/| /' conftest.$ac_ext >&5 12489 12490( exit $ac_status ) 12491if test "$ac_cv_type_short" = yes; then 12492 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) 12493See \`config.log' for more details." >&5 12494echo "$as_me: error: cannot compute sizeof (short) 12495See \`config.log' for more details." >&2;} 12496 { (exit 77); exit 77; }; } 12497 else 12498 ac_cv_sizeof_short=0 12499 fi 12500fi 12501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12502fi 12503rm -f conftest.val 12504fi 12505{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 12506echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 12507 12508 12509 12510cat >>confdefs.h <<_ACEOF 12511#define SIZEOF_SHORT $ac_cv_sizeof_short 12512_ACEOF 12513 12514 12515{ echo "$as_me:$LINENO: checking for int" >&5 12516echo $ECHO_N "checking for int... $ECHO_C" >&6; } 12517if test "${ac_cv_type_int+set}" = set; then 12518 echo $ECHO_N "(cached) $ECHO_C" >&6 12519else 12520 cat >conftest.$ac_ext <<_ACEOF 12521/* confdefs.h. */ 12522_ACEOF 12523cat confdefs.h >>conftest.$ac_ext 12524cat >>conftest.$ac_ext <<_ACEOF 12525/* end confdefs.h. */ 12526$ac_includes_default 12527typedef int ac__type_new_; 12528int 12529main () 12530{ 12531if ((ac__type_new_ *) 0) 12532 return 0; 12533if (sizeof (ac__type_new_)) 12534 return 0; 12535 ; 12536 return 0; 12537} 12538_ACEOF 12539rm -f conftest.$ac_objext 12540if { (ac_try="$ac_compile" 12541case "(($ac_try" in 12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12543 *) ac_try_echo=$ac_try;; 12544esac 12545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12546 (eval "$ac_compile") 2>conftest.er1 12547 ac_status=$? 12548 grep -v '^ *+' conftest.er1 >conftest.err 12549 rm -f conftest.er1 12550 cat conftest.err >&5 12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12552 (exit $ac_status); } && { 12553 test -z "$ac_c_werror_flag" || 12554 test ! -s conftest.err 12555 } && test -s conftest.$ac_objext; then 12556 ac_cv_type_int=yes 12557else 12558 echo "$as_me: failed program was:" >&5 12559sed 's/^/| /' conftest.$ac_ext >&5 12560 12561 ac_cv_type_int=no 12562fi 12563 12564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12565fi 12566{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 12567echo "${ECHO_T}$ac_cv_type_int" >&6; } 12568 12569# The cast to long int works around a bug in the HP C Compiler 12570# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12571# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12572# This bug is HP SR number 8606223364. 12573{ echo "$as_me:$LINENO: checking size of int" >&5 12574echo $ECHO_N "checking size of int... $ECHO_C" >&6; } 12575if test "${ac_cv_sizeof_int+set}" = set; then 12576 echo $ECHO_N "(cached) $ECHO_C" >&6 12577else 12578 if test "$cross_compiling" = yes; then 12579 # Depending upon the size, compute the lo and hi bounds. 12580cat >conftest.$ac_ext <<_ACEOF 12581/* confdefs.h. */ 12582_ACEOF 12583cat confdefs.h >>conftest.$ac_ext 12584cat >>conftest.$ac_ext <<_ACEOF 12585/* end confdefs.h. */ 12586$ac_includes_default 12587 typedef int ac__type_sizeof_; 12588int 12589main () 12590{ 12591static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 12592test_array [0] = 0 12593 12594 ; 12595 return 0; 12596} 12597_ACEOF 12598rm -f conftest.$ac_objext 12599if { (ac_try="$ac_compile" 12600case "(($ac_try" in 12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12602 *) ac_try_echo=$ac_try;; 12603esac 12604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12605 (eval "$ac_compile") 2>conftest.er1 12606 ac_status=$? 12607 grep -v '^ *+' conftest.er1 >conftest.err 12608 rm -f conftest.er1 12609 cat conftest.err >&5 12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12611 (exit $ac_status); } && { 12612 test -z "$ac_c_werror_flag" || 12613 test ! -s conftest.err 12614 } && test -s conftest.$ac_objext; then 12615 ac_lo=0 ac_mid=0 12616 while :; do 12617 cat >conftest.$ac_ext <<_ACEOF 12618/* confdefs.h. */ 12619_ACEOF 12620cat confdefs.h >>conftest.$ac_ext 12621cat >>conftest.$ac_ext <<_ACEOF 12622/* end confdefs.h. */ 12623$ac_includes_default 12624 typedef int ac__type_sizeof_; 12625int 12626main () 12627{ 12628static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12629test_array [0] = 0 12630 12631 ; 12632 return 0; 12633} 12634_ACEOF 12635rm -f conftest.$ac_objext 12636if { (ac_try="$ac_compile" 12637case "(($ac_try" in 12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12639 *) ac_try_echo=$ac_try;; 12640esac 12641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12642 (eval "$ac_compile") 2>conftest.er1 12643 ac_status=$? 12644 grep -v '^ *+' conftest.er1 >conftest.err 12645 rm -f conftest.er1 12646 cat conftest.err >&5 12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12648 (exit $ac_status); } && { 12649 test -z "$ac_c_werror_flag" || 12650 test ! -s conftest.err 12651 } && test -s conftest.$ac_objext; then 12652 ac_hi=$ac_mid; break 12653else 12654 echo "$as_me: failed program was:" >&5 12655sed 's/^/| /' conftest.$ac_ext >&5 12656 12657 ac_lo=`expr $ac_mid + 1` 12658 if test $ac_lo -le $ac_mid; then 12659 ac_lo= ac_hi= 12660 break 12661 fi 12662 ac_mid=`expr 2 '*' $ac_mid + 1` 12663fi 12664 12665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12666 done 12667else 12668 echo "$as_me: failed program was:" >&5 12669sed 's/^/| /' conftest.$ac_ext >&5 12670 12671 cat >conftest.$ac_ext <<_ACEOF 12672/* confdefs.h. */ 12673_ACEOF 12674cat confdefs.h >>conftest.$ac_ext 12675cat >>conftest.$ac_ext <<_ACEOF 12676/* end confdefs.h. */ 12677$ac_includes_default 12678 typedef int ac__type_sizeof_; 12679int 12680main () 12681{ 12682static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 12683test_array [0] = 0 12684 12685 ; 12686 return 0; 12687} 12688_ACEOF 12689rm -f conftest.$ac_objext 12690if { (ac_try="$ac_compile" 12691case "(($ac_try" in 12692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12693 *) ac_try_echo=$ac_try;; 12694esac 12695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12696 (eval "$ac_compile") 2>conftest.er1 12697 ac_status=$? 12698 grep -v '^ *+' conftest.er1 >conftest.err 12699 rm -f conftest.er1 12700 cat conftest.err >&5 12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12702 (exit $ac_status); } && { 12703 test -z "$ac_c_werror_flag" || 12704 test ! -s conftest.err 12705 } && test -s conftest.$ac_objext; then 12706 ac_hi=-1 ac_mid=-1 12707 while :; do 12708 cat >conftest.$ac_ext <<_ACEOF 12709/* confdefs.h. */ 12710_ACEOF 12711cat confdefs.h >>conftest.$ac_ext 12712cat >>conftest.$ac_ext <<_ACEOF 12713/* end confdefs.h. */ 12714$ac_includes_default 12715 typedef int ac__type_sizeof_; 12716int 12717main () 12718{ 12719static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 12720test_array [0] = 0 12721 12722 ; 12723 return 0; 12724} 12725_ACEOF 12726rm -f conftest.$ac_objext 12727if { (ac_try="$ac_compile" 12728case "(($ac_try" in 12729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12730 *) ac_try_echo=$ac_try;; 12731esac 12732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12733 (eval "$ac_compile") 2>conftest.er1 12734 ac_status=$? 12735 grep -v '^ *+' conftest.er1 >conftest.err 12736 rm -f conftest.er1 12737 cat conftest.err >&5 12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12739 (exit $ac_status); } && { 12740 test -z "$ac_c_werror_flag" || 12741 test ! -s conftest.err 12742 } && test -s conftest.$ac_objext; then 12743 ac_lo=$ac_mid; break 12744else 12745 echo "$as_me: failed program was:" >&5 12746sed 's/^/| /' conftest.$ac_ext >&5 12747 12748 ac_hi=`expr '(' $ac_mid ')' - 1` 12749 if test $ac_mid -le $ac_hi; then 12750 ac_lo= ac_hi= 12751 break 12752 fi 12753 ac_mid=`expr 2 '*' $ac_mid` 12754fi 12755 12756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12757 done 12758else 12759 echo "$as_me: failed program was:" >&5 12760sed 's/^/| /' conftest.$ac_ext >&5 12761 12762 ac_lo= ac_hi= 12763fi 12764 12765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12766fi 12767 12768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12769# Binary search between lo and hi bounds. 12770while test "x$ac_lo" != "x$ac_hi"; do 12771 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12772 cat >conftest.$ac_ext <<_ACEOF 12773/* confdefs.h. */ 12774_ACEOF 12775cat confdefs.h >>conftest.$ac_ext 12776cat >>conftest.$ac_ext <<_ACEOF 12777/* end confdefs.h. */ 12778$ac_includes_default 12779 typedef int ac__type_sizeof_; 12780int 12781main () 12782{ 12783static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12784test_array [0] = 0 12785 12786 ; 12787 return 0; 12788} 12789_ACEOF 12790rm -f conftest.$ac_objext 12791if { (ac_try="$ac_compile" 12792case "(($ac_try" in 12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12794 *) ac_try_echo=$ac_try;; 12795esac 12796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12797 (eval "$ac_compile") 2>conftest.er1 12798 ac_status=$? 12799 grep -v '^ *+' conftest.er1 >conftest.err 12800 rm -f conftest.er1 12801 cat conftest.err >&5 12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12803 (exit $ac_status); } && { 12804 test -z "$ac_c_werror_flag" || 12805 test ! -s conftest.err 12806 } && test -s conftest.$ac_objext; then 12807 ac_hi=$ac_mid 12808else 12809 echo "$as_me: failed program was:" >&5 12810sed 's/^/| /' conftest.$ac_ext >&5 12811 12812 ac_lo=`expr '(' $ac_mid ')' + 1` 12813fi 12814 12815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12816done 12817case $ac_lo in 12818?*) ac_cv_sizeof_int=$ac_lo;; 12819'') if test "$ac_cv_type_int" = yes; then 12820 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 12821See \`config.log' for more details." >&5 12822echo "$as_me: error: cannot compute sizeof (int) 12823See \`config.log' for more details." >&2;} 12824 { (exit 77); exit 77; }; } 12825 else 12826 ac_cv_sizeof_int=0 12827 fi ;; 12828esac 12829else 12830 cat >conftest.$ac_ext <<_ACEOF 12831/* confdefs.h. */ 12832_ACEOF 12833cat confdefs.h >>conftest.$ac_ext 12834cat >>conftest.$ac_ext <<_ACEOF 12835/* end confdefs.h. */ 12836$ac_includes_default 12837 typedef int ac__type_sizeof_; 12838static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 12839static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 12840#include <stdio.h> 12841#include <stdlib.h> 12842int 12843main () 12844{ 12845 12846 FILE *f = fopen ("conftest.val", "w"); 12847 if (! f) 12848 return 1; 12849 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 12850 { 12851 long int i = longval (); 12852 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 12853 return 1; 12854 fprintf (f, "%ld\n", i); 12855 } 12856 else 12857 { 12858 unsigned long int i = ulongval (); 12859 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 12860 return 1; 12861 fprintf (f, "%lu\n", i); 12862 } 12863 return ferror (f) || fclose (f) != 0; 12864 12865 ; 12866 return 0; 12867} 12868_ACEOF 12869rm -f conftest$ac_exeext 12870if { (ac_try="$ac_link" 12871case "(($ac_try" in 12872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12873 *) ac_try_echo=$ac_try;; 12874esac 12875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12876 (eval "$ac_link") 2>&5 12877 ac_status=$? 12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12880 { (case "(($ac_try" in 12881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12882 *) ac_try_echo=$ac_try;; 12883esac 12884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12885 (eval "$ac_try") 2>&5 12886 ac_status=$? 12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12888 (exit $ac_status); }; }; then 12889 ac_cv_sizeof_int=`cat conftest.val` 12890else 12891 echo "$as_me: program exited with status $ac_status" >&5 12892echo "$as_me: failed program was:" >&5 12893sed 's/^/| /' conftest.$ac_ext >&5 12894 12895( exit $ac_status ) 12896if test "$ac_cv_type_int" = yes; then 12897 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 12898See \`config.log' for more details." >&5 12899echo "$as_me: error: cannot compute sizeof (int) 12900See \`config.log' for more details." >&2;} 12901 { (exit 77); exit 77; }; } 12902 else 12903 ac_cv_sizeof_int=0 12904 fi 12905fi 12906rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12907fi 12908rm -f conftest.val 12909fi 12910{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 12911echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } 12912 12913 12914 12915cat >>confdefs.h <<_ACEOF 12916#define SIZEOF_INT $ac_cv_sizeof_int 12917_ACEOF 12918 12919 12920{ echo "$as_me:$LINENO: checking for long" >&5 12921echo $ECHO_N "checking for long... $ECHO_C" >&6; } 12922if test "${ac_cv_type_long+set}" = set; then 12923 echo $ECHO_N "(cached) $ECHO_C" >&6 12924else 12925 cat >conftest.$ac_ext <<_ACEOF 12926/* confdefs.h. */ 12927_ACEOF 12928cat confdefs.h >>conftest.$ac_ext 12929cat >>conftest.$ac_ext <<_ACEOF 12930/* end confdefs.h. */ 12931$ac_includes_default 12932typedef long ac__type_new_; 12933int 12934main () 12935{ 12936if ((ac__type_new_ *) 0) 12937 return 0; 12938if (sizeof (ac__type_new_)) 12939 return 0; 12940 ; 12941 return 0; 12942} 12943_ACEOF 12944rm -f conftest.$ac_objext 12945if { (ac_try="$ac_compile" 12946case "(($ac_try" in 12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12948 *) ac_try_echo=$ac_try;; 12949esac 12950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12951 (eval "$ac_compile") 2>conftest.er1 12952 ac_status=$? 12953 grep -v '^ *+' conftest.er1 >conftest.err 12954 rm -f conftest.er1 12955 cat conftest.err >&5 12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12957 (exit $ac_status); } && { 12958 test -z "$ac_c_werror_flag" || 12959 test ! -s conftest.err 12960 } && test -s conftest.$ac_objext; then 12961 ac_cv_type_long=yes 12962else 12963 echo "$as_me: failed program was:" >&5 12964sed 's/^/| /' conftest.$ac_ext >&5 12965 12966 ac_cv_type_long=no 12967fi 12968 12969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12970fi 12971{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 12972echo "${ECHO_T}$ac_cv_type_long" >&6; } 12973 12974# The cast to long int works around a bug in the HP C Compiler 12975# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12976# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12977# This bug is HP SR number 8606223364. 12978{ echo "$as_me:$LINENO: checking size of long" >&5 12979echo $ECHO_N "checking size of long... $ECHO_C" >&6; } 12980if test "${ac_cv_sizeof_long+set}" = set; then 12981 echo $ECHO_N "(cached) $ECHO_C" >&6 12982else 12983 if test "$cross_compiling" = yes; then 12984 # Depending upon the size, compute the lo and hi bounds. 12985cat >conftest.$ac_ext <<_ACEOF 12986/* confdefs.h. */ 12987_ACEOF 12988cat confdefs.h >>conftest.$ac_ext 12989cat >>conftest.$ac_ext <<_ACEOF 12990/* end confdefs.h. */ 12991$ac_includes_default 12992 typedef long ac__type_sizeof_; 12993int 12994main () 12995{ 12996static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 12997test_array [0] = 0 12998 12999 ; 13000 return 0; 13001} 13002_ACEOF 13003rm -f conftest.$ac_objext 13004if { (ac_try="$ac_compile" 13005case "(($ac_try" in 13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13007 *) ac_try_echo=$ac_try;; 13008esac 13009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13010 (eval "$ac_compile") 2>conftest.er1 13011 ac_status=$? 13012 grep -v '^ *+' conftest.er1 >conftest.err 13013 rm -f conftest.er1 13014 cat conftest.err >&5 13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13016 (exit $ac_status); } && { 13017 test -z "$ac_c_werror_flag" || 13018 test ! -s conftest.err 13019 } && test -s conftest.$ac_objext; then 13020 ac_lo=0 ac_mid=0 13021 while :; do 13022 cat >conftest.$ac_ext <<_ACEOF 13023/* confdefs.h. */ 13024_ACEOF 13025cat confdefs.h >>conftest.$ac_ext 13026cat >>conftest.$ac_ext <<_ACEOF 13027/* end confdefs.h. */ 13028$ac_includes_default 13029 typedef long ac__type_sizeof_; 13030int 13031main () 13032{ 13033static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 13034test_array [0] = 0 13035 13036 ; 13037 return 0; 13038} 13039_ACEOF 13040rm -f conftest.$ac_objext 13041if { (ac_try="$ac_compile" 13042case "(($ac_try" in 13043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13044 *) ac_try_echo=$ac_try;; 13045esac 13046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13047 (eval "$ac_compile") 2>conftest.er1 13048 ac_status=$? 13049 grep -v '^ *+' conftest.er1 >conftest.err 13050 rm -f conftest.er1 13051 cat conftest.err >&5 13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13053 (exit $ac_status); } && { 13054 test -z "$ac_c_werror_flag" || 13055 test ! -s conftest.err 13056 } && test -s conftest.$ac_objext; then 13057 ac_hi=$ac_mid; break 13058else 13059 echo "$as_me: failed program was:" >&5 13060sed 's/^/| /' conftest.$ac_ext >&5 13061 13062 ac_lo=`expr $ac_mid + 1` 13063 if test $ac_lo -le $ac_mid; then 13064 ac_lo= ac_hi= 13065 break 13066 fi 13067 ac_mid=`expr 2 '*' $ac_mid + 1` 13068fi 13069 13070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13071 done 13072else 13073 echo "$as_me: failed program was:" >&5 13074sed 's/^/| /' conftest.$ac_ext >&5 13075 13076 cat >conftest.$ac_ext <<_ACEOF 13077/* confdefs.h. */ 13078_ACEOF 13079cat confdefs.h >>conftest.$ac_ext 13080cat >>conftest.$ac_ext <<_ACEOF 13081/* end confdefs.h. */ 13082$ac_includes_default 13083 typedef long ac__type_sizeof_; 13084int 13085main () 13086{ 13087static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 13088test_array [0] = 0 13089 13090 ; 13091 return 0; 13092} 13093_ACEOF 13094rm -f conftest.$ac_objext 13095if { (ac_try="$ac_compile" 13096case "(($ac_try" in 13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13098 *) ac_try_echo=$ac_try;; 13099esac 13100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13101 (eval "$ac_compile") 2>conftest.er1 13102 ac_status=$? 13103 grep -v '^ *+' conftest.er1 >conftest.err 13104 rm -f conftest.er1 13105 cat conftest.err >&5 13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13107 (exit $ac_status); } && { 13108 test -z "$ac_c_werror_flag" || 13109 test ! -s conftest.err 13110 } && test -s conftest.$ac_objext; then 13111 ac_hi=-1 ac_mid=-1 13112 while :; do 13113 cat >conftest.$ac_ext <<_ACEOF 13114/* confdefs.h. */ 13115_ACEOF 13116cat confdefs.h >>conftest.$ac_ext 13117cat >>conftest.$ac_ext <<_ACEOF 13118/* end confdefs.h. */ 13119$ac_includes_default 13120 typedef long ac__type_sizeof_; 13121int 13122main () 13123{ 13124static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 13125test_array [0] = 0 13126 13127 ; 13128 return 0; 13129} 13130_ACEOF 13131rm -f conftest.$ac_objext 13132if { (ac_try="$ac_compile" 13133case "(($ac_try" in 13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13135 *) ac_try_echo=$ac_try;; 13136esac 13137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13138 (eval "$ac_compile") 2>conftest.er1 13139 ac_status=$? 13140 grep -v '^ *+' conftest.er1 >conftest.err 13141 rm -f conftest.er1 13142 cat conftest.err >&5 13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13144 (exit $ac_status); } && { 13145 test -z "$ac_c_werror_flag" || 13146 test ! -s conftest.err 13147 } && test -s conftest.$ac_objext; then 13148 ac_lo=$ac_mid; break 13149else 13150 echo "$as_me: failed program was:" >&5 13151sed 's/^/| /' conftest.$ac_ext >&5 13152 13153 ac_hi=`expr '(' $ac_mid ')' - 1` 13154 if test $ac_mid -le $ac_hi; then 13155 ac_lo= ac_hi= 13156 break 13157 fi 13158 ac_mid=`expr 2 '*' $ac_mid` 13159fi 13160 13161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13162 done 13163else 13164 echo "$as_me: failed program was:" >&5 13165sed 's/^/| /' conftest.$ac_ext >&5 13166 13167 ac_lo= ac_hi= 13168fi 13169 13170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13171fi 13172 13173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13174# Binary search between lo and hi bounds. 13175while test "x$ac_lo" != "x$ac_hi"; do 13176 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13177 cat >conftest.$ac_ext <<_ACEOF 13178/* confdefs.h. */ 13179_ACEOF 13180cat confdefs.h >>conftest.$ac_ext 13181cat >>conftest.$ac_ext <<_ACEOF 13182/* end confdefs.h. */ 13183$ac_includes_default 13184 typedef long ac__type_sizeof_; 13185int 13186main () 13187{ 13188static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 13189test_array [0] = 0 13190 13191 ; 13192 return 0; 13193} 13194_ACEOF 13195rm -f conftest.$ac_objext 13196if { (ac_try="$ac_compile" 13197case "(($ac_try" in 13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13199 *) ac_try_echo=$ac_try;; 13200esac 13201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13202 (eval "$ac_compile") 2>conftest.er1 13203 ac_status=$? 13204 grep -v '^ *+' conftest.er1 >conftest.err 13205 rm -f conftest.er1 13206 cat conftest.err >&5 13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13208 (exit $ac_status); } && { 13209 test -z "$ac_c_werror_flag" || 13210 test ! -s conftest.err 13211 } && test -s conftest.$ac_objext; then 13212 ac_hi=$ac_mid 13213else 13214 echo "$as_me: failed program was:" >&5 13215sed 's/^/| /' conftest.$ac_ext >&5 13216 13217 ac_lo=`expr '(' $ac_mid ')' + 1` 13218fi 13219 13220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13221done 13222case $ac_lo in 13223?*) ac_cv_sizeof_long=$ac_lo;; 13224'') if test "$ac_cv_type_long" = yes; then 13225 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 13226See \`config.log' for more details." >&5 13227echo "$as_me: error: cannot compute sizeof (long) 13228See \`config.log' for more details." >&2;} 13229 { (exit 77); exit 77; }; } 13230 else 13231 ac_cv_sizeof_long=0 13232 fi ;; 13233esac 13234else 13235 cat >conftest.$ac_ext <<_ACEOF 13236/* confdefs.h. */ 13237_ACEOF 13238cat confdefs.h >>conftest.$ac_ext 13239cat >>conftest.$ac_ext <<_ACEOF 13240/* end confdefs.h. */ 13241$ac_includes_default 13242 typedef long ac__type_sizeof_; 13243static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 13244static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 13245#include <stdio.h> 13246#include <stdlib.h> 13247int 13248main () 13249{ 13250 13251 FILE *f = fopen ("conftest.val", "w"); 13252 if (! f) 13253 return 1; 13254 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 13255 { 13256 long int i = longval (); 13257 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 13258 return 1; 13259 fprintf (f, "%ld\n", i); 13260 } 13261 else 13262 { 13263 unsigned long int i = ulongval (); 13264 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 13265 return 1; 13266 fprintf (f, "%lu\n", i); 13267 } 13268 return ferror (f) || fclose (f) != 0; 13269 13270 ; 13271 return 0; 13272} 13273_ACEOF 13274rm -f conftest$ac_exeext 13275if { (ac_try="$ac_link" 13276case "(($ac_try" in 13277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13278 *) ac_try_echo=$ac_try;; 13279esac 13280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13281 (eval "$ac_link") 2>&5 13282 ac_status=$? 13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13285 { (case "(($ac_try" in 13286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13287 *) ac_try_echo=$ac_try;; 13288esac 13289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13290 (eval "$ac_try") 2>&5 13291 ac_status=$? 13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13293 (exit $ac_status); }; }; then 13294 ac_cv_sizeof_long=`cat conftest.val` 13295else 13296 echo "$as_me: program exited with status $ac_status" >&5 13297echo "$as_me: failed program was:" >&5 13298sed 's/^/| /' conftest.$ac_ext >&5 13299 13300( exit $ac_status ) 13301if test "$ac_cv_type_long" = yes; then 13302 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 13303See \`config.log' for more details." >&5 13304echo "$as_me: error: cannot compute sizeof (long) 13305See \`config.log' for more details." >&2;} 13306 { (exit 77); exit 77; }; } 13307 else 13308 ac_cv_sizeof_long=0 13309 fi 13310fi 13311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13312fi 13313rm -f conftest.val 13314fi 13315{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 13316echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } 13317 13318 13319 13320cat >>confdefs.h <<_ACEOF 13321#define SIZEOF_LONG $ac_cv_sizeof_long 13322_ACEOF 13323 13324 13325 13326 13327# Checks for header files. 13328# ------------------------ 13329 13330{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 13331echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 13332if test "${ac_cv_header_stdc+set}" = set; then 13333 echo $ECHO_N "(cached) $ECHO_C" >&6 13334else 13335 cat >conftest.$ac_ext <<_ACEOF 13336/* confdefs.h. */ 13337_ACEOF 13338cat confdefs.h >>conftest.$ac_ext 13339cat >>conftest.$ac_ext <<_ACEOF 13340/* end confdefs.h. */ 13341#include <stdlib.h> 13342#include <stdarg.h> 13343#include <string.h> 13344#include <float.h> 13345 13346int 13347main () 13348{ 13349 13350 ; 13351 return 0; 13352} 13353_ACEOF 13354rm -f conftest.$ac_objext 13355if { (ac_try="$ac_compile" 13356case "(($ac_try" in 13357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13358 *) ac_try_echo=$ac_try;; 13359esac 13360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13361 (eval "$ac_compile") 2>conftest.er1 13362 ac_status=$? 13363 grep -v '^ *+' conftest.er1 >conftest.err 13364 rm -f conftest.er1 13365 cat conftest.err >&5 13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13367 (exit $ac_status); } && { 13368 test -z "$ac_c_werror_flag" || 13369 test ! -s conftest.err 13370 } && test -s conftest.$ac_objext; then 13371 ac_cv_header_stdc=yes 13372else 13373 echo "$as_me: failed program was:" >&5 13374sed 's/^/| /' conftest.$ac_ext >&5 13375 13376 ac_cv_header_stdc=no 13377fi 13378 13379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13380 13381if test $ac_cv_header_stdc = yes; then 13382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13383 cat >conftest.$ac_ext <<_ACEOF 13384/* confdefs.h. */ 13385_ACEOF 13386cat confdefs.h >>conftest.$ac_ext 13387cat >>conftest.$ac_ext <<_ACEOF 13388/* end confdefs.h. */ 13389#include <string.h> 13390 13391_ACEOF 13392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13393 $EGREP "memchr" >/dev/null 2>&1; then 13394 : 13395else 13396 ac_cv_header_stdc=no 13397fi 13398rm -f conftest* 13399 13400fi 13401 13402if test $ac_cv_header_stdc = yes; then 13403 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13404 cat >conftest.$ac_ext <<_ACEOF 13405/* confdefs.h. */ 13406_ACEOF 13407cat confdefs.h >>conftest.$ac_ext 13408cat >>conftest.$ac_ext <<_ACEOF 13409/* end confdefs.h. */ 13410#include <stdlib.h> 13411 13412_ACEOF 13413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13414 $EGREP "free" >/dev/null 2>&1; then 13415 : 13416else 13417 ac_cv_header_stdc=no 13418fi 13419rm -f conftest* 13420 13421fi 13422 13423if test $ac_cv_header_stdc = yes; then 13424 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13425 if test "$cross_compiling" = yes; then 13426 : 13427else 13428 cat >conftest.$ac_ext <<_ACEOF 13429/* confdefs.h. */ 13430_ACEOF 13431cat confdefs.h >>conftest.$ac_ext 13432cat >>conftest.$ac_ext <<_ACEOF 13433/* end confdefs.h. */ 13434#include <ctype.h> 13435#include <stdlib.h> 13436#if ((' ' & 0x0FF) == 0x020) 13437# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13438# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13439#else 13440# define ISLOWER(c) \ 13441 (('a' <= (c) && (c) <= 'i') \ 13442 || ('j' <= (c) && (c) <= 'r') \ 13443 || ('s' <= (c) && (c) <= 'z')) 13444# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13445#endif 13446 13447#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13448int 13449main () 13450{ 13451 int i; 13452 for (i = 0; i < 256; i++) 13453 if (XOR (islower (i), ISLOWER (i)) 13454 || toupper (i) != TOUPPER (i)) 13455 return 2; 13456 return 0; 13457} 13458_ACEOF 13459rm -f conftest$ac_exeext 13460if { (ac_try="$ac_link" 13461case "(($ac_try" in 13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13463 *) ac_try_echo=$ac_try;; 13464esac 13465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13466 (eval "$ac_link") 2>&5 13467 ac_status=$? 13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13470 { (case "(($ac_try" in 13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13472 *) ac_try_echo=$ac_try;; 13473esac 13474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13475 (eval "$ac_try") 2>&5 13476 ac_status=$? 13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13478 (exit $ac_status); }; }; then 13479 : 13480else 13481 echo "$as_me: program exited with status $ac_status" >&5 13482echo "$as_me: failed program was:" >&5 13483sed 's/^/| /' conftest.$ac_ext >&5 13484 13485( exit $ac_status ) 13486ac_cv_header_stdc=no 13487fi 13488rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13489fi 13490 13491 13492fi 13493fi 13494{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 13495echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 13496if test $ac_cv_header_stdc = yes; then 13497 13498cat >>confdefs.h <<\_ACEOF 13499#define STDC_HEADERS 1 13500_ACEOF 13501 13502fi 13503 13504 13505 13506 13507for ac_header in stdlib.h string.h unistd.h 13508do 13509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13511 { echo "$as_me:$LINENO: checking for $ac_header" >&5 13512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13514 echo $ECHO_N "(cached) $ECHO_C" >&6 13515fi 13516ac_res=`eval echo '${'$as_ac_Header'}'` 13517 { echo "$as_me:$LINENO: result: $ac_res" >&5 13518echo "${ECHO_T}$ac_res" >&6; } 13519else 13520 # Is the header compilable? 13521{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 13522echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 13523cat >conftest.$ac_ext <<_ACEOF 13524/* confdefs.h. */ 13525_ACEOF 13526cat confdefs.h >>conftest.$ac_ext 13527cat >>conftest.$ac_ext <<_ACEOF 13528/* end confdefs.h. */ 13529$ac_includes_default 13530#include <$ac_header> 13531_ACEOF 13532rm -f conftest.$ac_objext 13533if { (ac_try="$ac_compile" 13534case "(($ac_try" in 13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13536 *) ac_try_echo=$ac_try;; 13537esac 13538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13539 (eval "$ac_compile") 2>conftest.er1 13540 ac_status=$? 13541 grep -v '^ *+' conftest.er1 >conftest.err 13542 rm -f conftest.er1 13543 cat conftest.err >&5 13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13545 (exit $ac_status); } && { 13546 test -z "$ac_c_werror_flag" || 13547 test ! -s conftest.err 13548 } && test -s conftest.$ac_objext; then 13549 ac_header_compiler=yes 13550else 13551 echo "$as_me: failed program was:" >&5 13552sed 's/^/| /' conftest.$ac_ext >&5 13553 13554 ac_header_compiler=no 13555fi 13556 13557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13558{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13559echo "${ECHO_T}$ac_header_compiler" >&6; } 13560 13561# Is the header present? 13562{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 13563echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 13564cat >conftest.$ac_ext <<_ACEOF 13565/* confdefs.h. */ 13566_ACEOF 13567cat confdefs.h >>conftest.$ac_ext 13568cat >>conftest.$ac_ext <<_ACEOF 13569/* end confdefs.h. */ 13570#include <$ac_header> 13571_ACEOF 13572if { (ac_try="$ac_cpp conftest.$ac_ext" 13573case "(($ac_try" in 13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13575 *) ac_try_echo=$ac_try;; 13576esac 13577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13579 ac_status=$? 13580 grep -v '^ *+' conftest.er1 >conftest.err 13581 rm -f conftest.er1 13582 cat conftest.err >&5 13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13584 (exit $ac_status); } >/dev/null && { 13585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13586 test ! -s conftest.err 13587 }; then 13588 ac_header_preproc=yes 13589else 13590 echo "$as_me: failed program was:" >&5 13591sed 's/^/| /' conftest.$ac_ext >&5 13592 13593 ac_header_preproc=no 13594fi 13595 13596rm -f conftest.err conftest.$ac_ext 13597{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13598echo "${ECHO_T}$ac_header_preproc" >&6; } 13599 13600# So? What about this header? 13601case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13602 yes:no: ) 13603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13604echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13606echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13607 ac_header_preproc=yes 13608 ;; 13609 no:yes:* ) 13610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13611echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13613echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13615echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13617echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13619echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13621echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13622 ( cat <<\_ASBOX 13623## ----------------------------------------------------- ## 13624## Report this to quesoglc-general@lists.sourceforge.net ## 13625## ----------------------------------------------------- ## 13626_ASBOX 13627 ) | sed "s/^/$as_me: WARNING: /" >&2 13628 ;; 13629esac 13630{ echo "$as_me:$LINENO: checking for $ac_header" >&5 13631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13632if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13633 echo $ECHO_N "(cached) $ECHO_C" >&6 13634else 13635 eval "$as_ac_Header=\$ac_header_preproc" 13636fi 13637ac_res=`eval echo '${'$as_ac_Header'}'` 13638 { echo "$as_me:$LINENO: result: $ac_res" >&5 13639echo "${ECHO_T}$ac_res" >&6; } 13640 13641fi 13642if test `eval echo '${'$as_ac_Header'}'` = yes; then 13643 cat >>confdefs.h <<_ACEOF 13644#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13645_ACEOF 13646 13647else 13648 { { echo "$as_me:$LINENO: error: Unable to locate a required header" >&5 13649echo "$as_me: error: Unable to locate a required header" >&2;} 13650 { (exit 1); exit 1; }; } 13651fi 13652 13653done 13654 13655 13656 13657# Checks for C library features. 13658# ------------------------------ 13659 13660case $target_alias in 13661*mingw32*) ;; 13662*) 13663 13664for ac_header in stdlib.h 13665do 13666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13668 { echo "$as_me:$LINENO: checking for $ac_header" >&5 13669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13671 echo $ECHO_N "(cached) $ECHO_C" >&6 13672fi 13673ac_res=`eval echo '${'$as_ac_Header'}'` 13674 { echo "$as_me:$LINENO: result: $ac_res" >&5 13675echo "${ECHO_T}$ac_res" >&6; } 13676else 13677 # Is the header compilable? 13678{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 13679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 13680cat >conftest.$ac_ext <<_ACEOF 13681/* confdefs.h. */ 13682_ACEOF 13683cat confdefs.h >>conftest.$ac_ext 13684cat >>conftest.$ac_ext <<_ACEOF 13685/* end confdefs.h. */ 13686$ac_includes_default 13687#include <$ac_header> 13688_ACEOF 13689rm -f conftest.$ac_objext 13690if { (ac_try="$ac_compile" 13691case "(($ac_try" in 13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13693 *) ac_try_echo=$ac_try;; 13694esac 13695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13696 (eval "$ac_compile") 2>conftest.er1 13697 ac_status=$? 13698 grep -v '^ *+' conftest.er1 >conftest.err 13699 rm -f conftest.er1 13700 cat conftest.err >&5 13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13702 (exit $ac_status); } && { 13703 test -z "$ac_c_werror_flag" || 13704 test ! -s conftest.err 13705 } && test -s conftest.$ac_objext; then 13706 ac_header_compiler=yes 13707else 13708 echo "$as_me: failed program was:" >&5 13709sed 's/^/| /' conftest.$ac_ext >&5 13710 13711 ac_header_compiler=no 13712fi 13713 13714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13715{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13716echo "${ECHO_T}$ac_header_compiler" >&6; } 13717 13718# Is the header present? 13719{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 13720echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 13721cat >conftest.$ac_ext <<_ACEOF 13722/* confdefs.h. */ 13723_ACEOF 13724cat confdefs.h >>conftest.$ac_ext 13725cat >>conftest.$ac_ext <<_ACEOF 13726/* end confdefs.h. */ 13727#include <$ac_header> 13728_ACEOF 13729if { (ac_try="$ac_cpp conftest.$ac_ext" 13730case "(($ac_try" in 13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13732 *) ac_try_echo=$ac_try;; 13733esac 13734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13736 ac_status=$? 13737 grep -v '^ *+' conftest.er1 >conftest.err 13738 rm -f conftest.er1 13739 cat conftest.err >&5 13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13741 (exit $ac_status); } >/dev/null && { 13742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 13743 test ! -s conftest.err 13744 }; then 13745 ac_header_preproc=yes 13746else 13747 echo "$as_me: failed program was:" >&5 13748sed 's/^/| /' conftest.$ac_ext >&5 13749 13750 ac_header_preproc=no 13751fi 13752 13753rm -f conftest.err conftest.$ac_ext 13754{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13755echo "${ECHO_T}$ac_header_preproc" >&6; } 13756 13757# So? What about this header? 13758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13759 yes:no: ) 13760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13764 ac_header_preproc=yes 13765 ;; 13766 no:yes:* ) 13767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13770echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13774echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13779 ( cat <<\_ASBOX 13780## ----------------------------------------------------- ## 13781## Report this to quesoglc-general@lists.sourceforge.net ## 13782## ----------------------------------------------------- ## 13783_ASBOX 13784 ) | sed "s/^/$as_me: WARNING: /" >&2 13785 ;; 13786esac 13787{ echo "$as_me:$LINENO: checking for $ac_header" >&5 13788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13790 echo $ECHO_N "(cached) $ECHO_C" >&6 13791else 13792 eval "$as_ac_Header=\$ac_header_preproc" 13793fi 13794ac_res=`eval echo '${'$as_ac_Header'}'` 13795 { echo "$as_me:$LINENO: result: $ac_res" >&5 13796echo "${ECHO_T}$ac_res" >&6; } 13797 13798fi 13799if test `eval echo '${'$as_ac_Header'}'` = yes; then 13800 cat >>confdefs.h <<_ACEOF 13801#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13802_ACEOF 13803 13804fi 13805 13806done 13807 13808{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 13809echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } 13810if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 13811 echo $ECHO_N "(cached) $ECHO_C" >&6 13812else 13813 if test "$cross_compiling" = yes; then 13814 ac_cv_func_malloc_0_nonnull=no 13815else 13816 cat >conftest.$ac_ext <<_ACEOF 13817/* confdefs.h. */ 13818_ACEOF 13819cat confdefs.h >>conftest.$ac_ext 13820cat >>conftest.$ac_ext <<_ACEOF 13821/* end confdefs.h. */ 13822#if defined STDC_HEADERS || defined HAVE_STDLIB_H 13823# include <stdlib.h> 13824#else 13825char *malloc (); 13826#endif 13827 13828int 13829main () 13830{ 13831return ! malloc (0); 13832 ; 13833 return 0; 13834} 13835_ACEOF 13836rm -f conftest$ac_exeext 13837if { (ac_try="$ac_link" 13838case "(($ac_try" in 13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13840 *) ac_try_echo=$ac_try;; 13841esac 13842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13843 (eval "$ac_link") 2>&5 13844 ac_status=$? 13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13847 { (case "(($ac_try" in 13848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13849 *) ac_try_echo=$ac_try;; 13850esac 13851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13852 (eval "$ac_try") 2>&5 13853 ac_status=$? 13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13855 (exit $ac_status); }; }; then 13856 ac_cv_func_malloc_0_nonnull=yes 13857else 13858 echo "$as_me: program exited with status $ac_status" >&5 13859echo "$as_me: failed program was:" >&5 13860sed 's/^/| /' conftest.$ac_ext >&5 13861 13862( exit $ac_status ) 13863ac_cv_func_malloc_0_nonnull=no 13864fi 13865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13866fi 13867 13868 13869fi 13870{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 13871echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } 13872if test $ac_cv_func_malloc_0_nonnull = yes; then 13873 13874cat >>confdefs.h <<\_ACEOF 13875#define HAVE_MALLOC 1 13876_ACEOF 13877 13878else 13879 cat >>confdefs.h <<\_ACEOF 13880#define HAVE_MALLOC 0 13881_ACEOF 13882 13883 case " $LIBOBJS " in 13884 *" malloc.$ac_objext "* ) ;; 13885 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 13886 ;; 13887esac 13888 13889 13890cat >>confdefs.h <<\_ACEOF 13891#define malloc rpl_malloc 13892_ACEOF 13893 13894fi 13895 13896 13897 13898 { echo "$as_me:$LINENO: checking for working memcmp" >&5 13899echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } 13900if test "${ac_cv_func_memcmp_working+set}" = set; then 13901 echo $ECHO_N "(cached) $ECHO_C" >&6 13902else 13903 if test "$cross_compiling" = yes; then 13904 ac_cv_func_memcmp_working=no 13905else 13906 cat >conftest.$ac_ext <<_ACEOF 13907/* confdefs.h. */ 13908_ACEOF 13909cat confdefs.h >>conftest.$ac_ext 13910cat >>conftest.$ac_ext <<_ACEOF 13911/* end confdefs.h. */ 13912$ac_includes_default 13913int 13914main () 13915{ 13916 13917 /* Some versions of memcmp are not 8-bit clean. */ 13918 char c0 = '\100', c1 = '\200', c2 = '\201'; 13919 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 13920 return 1; 13921 13922 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 13923 or more and with at least one buffer not starting on a 4-byte boundary. 13924 William Lewis provided this test program. */ 13925 { 13926 char foo[21]; 13927 char bar[21]; 13928 int i; 13929 for (i = 0; i < 4; i++) 13930 { 13931 char *a = foo + i; 13932 char *b = bar + i; 13933 strcpy (a, "--------01111111"); 13934 strcpy (b, "--------10000000"); 13935 if (memcmp (a, b, 16) >= 0) 13936 return 1; 13937 } 13938 return 0; 13939 } 13940 13941 ; 13942 return 0; 13943} 13944_ACEOF 13945rm -f conftest$ac_exeext 13946if { (ac_try="$ac_link" 13947case "(($ac_try" in 13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13949 *) ac_try_echo=$ac_try;; 13950esac 13951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13952 (eval "$ac_link") 2>&5 13953 ac_status=$? 13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13956 { (case "(($ac_try" in 13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13958 *) ac_try_echo=$ac_try;; 13959esac 13960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13961 (eval "$ac_try") 2>&5 13962 ac_status=$? 13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13964 (exit $ac_status); }; }; then 13965 ac_cv_func_memcmp_working=yes 13966else 13967 echo "$as_me: program exited with status $ac_status" >&5 13968echo "$as_me: failed program was:" >&5 13969sed 's/^/| /' conftest.$ac_ext >&5 13970 13971( exit $ac_status ) 13972ac_cv_func_memcmp_working=no 13973fi 13974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13975fi 13976 13977 13978fi 13979{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 13980echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } 13981test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 13982 *" memcmp.$ac_objext "* ) ;; 13983 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 13984 ;; 13985esac 13986 13987 13988 13989for ac_header in stdlib.h 13990do 13991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13993 { echo "$as_me:$LINENO: checking for $ac_header" >&5 13994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 13995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13996 echo $ECHO_N "(cached) $ECHO_C" >&6 13997fi 13998ac_res=`eval echo '${'$as_ac_Header'}'` 13999 { echo "$as_me:$LINENO: result: $ac_res" >&5 14000echo "${ECHO_T}$ac_res" >&6; } 14001else 14002 # Is the header compilable? 14003{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14004echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14005cat >conftest.$ac_ext <<_ACEOF 14006/* confdefs.h. */ 14007_ACEOF 14008cat confdefs.h >>conftest.$ac_ext 14009cat >>conftest.$ac_ext <<_ACEOF 14010/* end confdefs.h. */ 14011$ac_includes_default 14012#include <$ac_header> 14013_ACEOF 14014rm -f conftest.$ac_objext 14015if { (ac_try="$ac_compile" 14016case "(($ac_try" in 14017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14018 *) ac_try_echo=$ac_try;; 14019esac 14020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14021 (eval "$ac_compile") 2>conftest.er1 14022 ac_status=$? 14023 grep -v '^ *+' conftest.er1 >conftest.err 14024 rm -f conftest.er1 14025 cat conftest.err >&5 14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14027 (exit $ac_status); } && { 14028 test -z "$ac_c_werror_flag" || 14029 test ! -s conftest.err 14030 } && test -s conftest.$ac_objext; then 14031 ac_header_compiler=yes 14032else 14033 echo "$as_me: failed program was:" >&5 14034sed 's/^/| /' conftest.$ac_ext >&5 14035 14036 ac_header_compiler=no 14037fi 14038 14039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14040{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14041echo "${ECHO_T}$ac_header_compiler" >&6; } 14042 14043# Is the header present? 14044{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14045echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14046cat >conftest.$ac_ext <<_ACEOF 14047/* confdefs.h. */ 14048_ACEOF 14049cat confdefs.h >>conftest.$ac_ext 14050cat >>conftest.$ac_ext <<_ACEOF 14051/* end confdefs.h. */ 14052#include <$ac_header> 14053_ACEOF 14054if { (ac_try="$ac_cpp conftest.$ac_ext" 14055case "(($ac_try" in 14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14057 *) ac_try_echo=$ac_try;; 14058esac 14059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14061 ac_status=$? 14062 grep -v '^ *+' conftest.er1 >conftest.err 14063 rm -f conftest.er1 14064 cat conftest.err >&5 14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14066 (exit $ac_status); } >/dev/null && { 14067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 14068 test ! -s conftest.err 14069 }; then 14070 ac_header_preproc=yes 14071else 14072 echo "$as_me: failed program was:" >&5 14073sed 's/^/| /' conftest.$ac_ext >&5 14074 14075 ac_header_preproc=no 14076fi 14077 14078rm -f conftest.err conftest.$ac_ext 14079{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14080echo "${ECHO_T}$ac_header_preproc" >&6; } 14081 14082# So? What about this header? 14083case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14084 yes:no: ) 14085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14086echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14088echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14089 ac_header_preproc=yes 14090 ;; 14091 no:yes:* ) 14092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14093echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14095echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14097echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14099echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14101echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14103echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14104 ( cat <<\_ASBOX 14105## ----------------------------------------------------- ## 14106## Report this to quesoglc-general@lists.sourceforge.net ## 14107## ----------------------------------------------------- ## 14108_ASBOX 14109 ) | sed "s/^/$as_me: WARNING: /" >&2 14110 ;; 14111esac 14112{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14114if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14115 echo $ECHO_N "(cached) $ECHO_C" >&6 14116else 14117 eval "$as_ac_Header=\$ac_header_preproc" 14118fi 14119ac_res=`eval echo '${'$as_ac_Header'}'` 14120 { echo "$as_me:$LINENO: result: $ac_res" >&5 14121echo "${ECHO_T}$ac_res" >&6; } 14122 14123fi 14124if test `eval echo '${'$as_ac_Header'}'` = yes; then 14125 cat >>confdefs.h <<_ACEOF 14126#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14127_ACEOF 14128 14129fi 14130 14131done 14132 14133{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 14134echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; } 14135if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then 14136 echo $ECHO_N "(cached) $ECHO_C" >&6 14137else 14138 if test "$cross_compiling" = yes; then 14139 ac_cv_func_realloc_0_nonnull=no 14140else 14141 cat >conftest.$ac_ext <<_ACEOF 14142/* confdefs.h. */ 14143_ACEOF 14144cat confdefs.h >>conftest.$ac_ext 14145cat >>conftest.$ac_ext <<_ACEOF 14146/* end confdefs.h. */ 14147#if defined STDC_HEADERS || defined HAVE_STDLIB_H 14148# include <stdlib.h> 14149#else 14150char *realloc (); 14151#endif 14152 14153int 14154main () 14155{ 14156return ! realloc (0, 0); 14157 ; 14158 return 0; 14159} 14160_ACEOF 14161rm -f conftest$ac_exeext 14162if { (ac_try="$ac_link" 14163case "(($ac_try" in 14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14165 *) ac_try_echo=$ac_try;; 14166esac 14167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14168 (eval "$ac_link") 2>&5 14169 ac_status=$? 14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14172 { (case "(($ac_try" in 14173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14174 *) ac_try_echo=$ac_try;; 14175esac 14176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14177 (eval "$ac_try") 2>&5 14178 ac_status=$? 14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14180 (exit $ac_status); }; }; then 14181 ac_cv_func_realloc_0_nonnull=yes 14182else 14183 echo "$as_me: program exited with status $ac_status" >&5 14184echo "$as_me: failed program was:" >&5 14185sed 's/^/| /' conftest.$ac_ext >&5 14186 14187( exit $ac_status ) 14188ac_cv_func_realloc_0_nonnull=no 14189fi 14190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14191fi 14192 14193 14194fi 14195{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 14196echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; } 14197if test $ac_cv_func_realloc_0_nonnull = yes; then 14198 14199cat >>confdefs.h <<\_ACEOF 14200#define HAVE_REALLOC 1 14201_ACEOF 14202 14203else 14204 cat >>confdefs.h <<\_ACEOF 14205#define HAVE_REALLOC 0 14206_ACEOF 14207 14208 case " $LIBOBJS " in 14209 *" realloc.$ac_objext "* ) ;; 14210 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 14211 ;; 14212esac 14213 14214 14215cat >>confdefs.h <<\_ACEOF 14216#define realloc rpl_realloc 14217_ACEOF 14218 14219fi 14220 14221 14222 14223 ;; 14224esac 14225{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 14226echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } 14227if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then 14228 echo $ECHO_N "(cached) $ECHO_C" >&6 14229else 14230 rm -f conftest.sym conftest.file 14231echo >conftest.file 14232if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 14233 if test "$cross_compiling" = yes; then 14234 ac_cv_func_lstat_dereferences_slashed_symlink=no 14235else 14236 cat >conftest.$ac_ext <<_ACEOF 14237/* confdefs.h. */ 14238_ACEOF 14239cat confdefs.h >>conftest.$ac_ext 14240cat >>conftest.$ac_ext <<_ACEOF 14241/* end confdefs.h. */ 14242$ac_includes_default 14243int 14244main () 14245{ 14246struct stat sbuf; 14247 /* Linux will dereference the symlink and fail. 14248 That is better in the sense that it means we will not 14249 have to compile and use the lstat wrapper. */ 14250 return lstat ("conftest.sym/", &sbuf) == 0; 14251 ; 14252 return 0; 14253} 14254_ACEOF 14255rm -f conftest$ac_exeext 14256if { (ac_try="$ac_link" 14257case "(($ac_try" in 14258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14259 *) ac_try_echo=$ac_try;; 14260esac 14261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14262 (eval "$ac_link") 2>&5 14263 ac_status=$? 14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14266 { (case "(($ac_try" in 14267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14268 *) ac_try_echo=$ac_try;; 14269esac 14270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14271 (eval "$ac_try") 2>&5 14272 ac_status=$? 14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14274 (exit $ac_status); }; }; then 14275 ac_cv_func_lstat_dereferences_slashed_symlink=yes 14276else 14277 echo "$as_me: program exited with status $ac_status" >&5 14278echo "$as_me: failed program was:" >&5 14279sed 's/^/| /' conftest.$ac_ext >&5 14280 14281( exit $ac_status ) 14282ac_cv_func_lstat_dereferences_slashed_symlink=no 14283fi 14284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14285fi 14286 14287 14288else 14289 # If the `ln -s' command failed, then we probably don't even 14290 # have an lstat function. 14291 ac_cv_func_lstat_dereferences_slashed_symlink=no 14292fi 14293rm -f conftest.sym conftest.file 14294 14295fi 14296{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 14297echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 14298 14299test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 14300 14301cat >>confdefs.h <<_ACEOF 14302#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 14303_ACEOF 14304 14305 14306if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then 14307 case " $LIBOBJS " in 14308 *" lstat.$ac_objext "* ) ;; 14309 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 14310 ;; 14311esac 14312 14313fi 14314 14315{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 14316echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } 14317if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then 14318 echo $ECHO_N "(cached) $ECHO_C" >&6 14319else 14320 if test "$cross_compiling" = yes; then 14321 ac_cv_func_stat_empty_string_bug=yes 14322else 14323 cat >conftest.$ac_ext <<_ACEOF 14324/* confdefs.h. */ 14325_ACEOF 14326cat confdefs.h >>conftest.$ac_ext 14327cat >>conftest.$ac_ext <<_ACEOF 14328/* end confdefs.h. */ 14329$ac_includes_default 14330int 14331main () 14332{ 14333struct stat sbuf; 14334 return stat ("", &sbuf) == 0; 14335 ; 14336 return 0; 14337} 14338_ACEOF 14339rm -f conftest$ac_exeext 14340if { (ac_try="$ac_link" 14341case "(($ac_try" in 14342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14343 *) ac_try_echo=$ac_try;; 14344esac 14345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14346 (eval "$ac_link") 2>&5 14347 ac_status=$? 14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14350 { (case "(($ac_try" in 14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14352 *) ac_try_echo=$ac_try;; 14353esac 14354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14355 (eval "$ac_try") 2>&5 14356 ac_status=$? 14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14358 (exit $ac_status); }; }; then 14359 ac_cv_func_stat_empty_string_bug=no 14360else 14361 echo "$as_me: program exited with status $ac_status" >&5 14362echo "$as_me: failed program was:" >&5 14363sed 's/^/| /' conftest.$ac_ext >&5 14364 14365( exit $ac_status ) 14366ac_cv_func_stat_empty_string_bug=yes 14367fi 14368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14369fi 14370 14371 14372fi 14373{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 14374echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } 14375if test $ac_cv_func_stat_empty_string_bug = yes; then 14376 case " $LIBOBJS " in 14377 *" stat.$ac_objext "* ) ;; 14378 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 14379 ;; 14380esac 14381 14382 14383cat >>confdefs.h <<_ACEOF 14384#define HAVE_STAT_EMPTY_STRING_BUG 1 14385_ACEOF 14386 14387fi 14388 14389 14390 14391 14392 14393for ac_func in atexit memmove memset strdup 14394do 14395as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14396{ echo "$as_me:$LINENO: checking for $ac_func" >&5 14397echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14398if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14399 echo $ECHO_N "(cached) $ECHO_C" >&6 14400else 14401 cat >conftest.$ac_ext <<_ACEOF 14402/* confdefs.h. */ 14403_ACEOF 14404cat confdefs.h >>conftest.$ac_ext 14405cat >>conftest.$ac_ext <<_ACEOF 14406/* end confdefs.h. */ 14407/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14408 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14409#define $ac_func innocuous_$ac_func 14410 14411/* System header to define __stub macros and hopefully few prototypes, 14412 which can conflict with char $ac_func (); below. 14413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14414 <limits.h> exists even on freestanding compilers. */ 14415 14416#ifdef __STDC__ 14417# include <limits.h> 14418#else 14419# include <assert.h> 14420#endif 14421 14422#undef $ac_func 14423 14424/* Override any GCC internal prototype to avoid an error. 14425 Use char because int might match the return type of a GCC 14426 builtin and then its argument prototype would still apply. */ 14427#ifdef __cplusplus 14428extern "C" 14429#endif 14430char $ac_func (); 14431/* The GNU C library defines this for functions which it implements 14432 to always fail with ENOSYS. Some functions are actually named 14433 something starting with __ and the normal name is an alias. */ 14434#if defined __stub_$ac_func || defined __stub___$ac_func 14435choke me 14436#endif 14437 14438int 14439main () 14440{ 14441return $ac_func (); 14442 ; 14443 return 0; 14444} 14445_ACEOF 14446rm -f conftest.$ac_objext conftest$ac_exeext 14447if { (ac_try="$ac_link" 14448case "(($ac_try" in 14449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14450 *) ac_try_echo=$ac_try;; 14451esac 14452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14453 (eval "$ac_link") 2>conftest.er1 14454 ac_status=$? 14455 grep -v '^ *+' conftest.er1 >conftest.err 14456 rm -f conftest.er1 14457 cat conftest.err >&5 14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14459 (exit $ac_status); } && { 14460 test -z "$ac_c_werror_flag" || 14461 test ! -s conftest.err 14462 } && test -s conftest$ac_exeext && 14463 $as_test_x conftest$ac_exeext; then 14464 eval "$as_ac_var=yes" 14465else 14466 echo "$as_me: failed program was:" >&5 14467sed 's/^/| /' conftest.$ac_ext >&5 14468 14469 eval "$as_ac_var=no" 14470fi 14471 14472rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14473 conftest$ac_exeext conftest.$ac_ext 14474fi 14475ac_res=`eval echo '${'$as_ac_var'}'` 14476 { echo "$as_me:$LINENO: result: $ac_res" >&5 14477echo "${ECHO_T}$ac_res" >&6; } 14478if test `eval echo '${'$as_ac_var'}'` = yes; then 14479 cat >>confdefs.h <<_ACEOF 14480#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14481_ACEOF 14482 14483fi 14484done 14485 14486 14487 14488{ echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 14489echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; } 14490if test "${ac_cv_lib_m_sqrt+set}" = set; then 14491 echo $ECHO_N "(cached) $ECHO_C" >&6 14492else 14493 ac_check_lib_save_LIBS=$LIBS 14494LIBS="-lm $LIBS" 14495cat >conftest.$ac_ext <<_ACEOF 14496/* confdefs.h. */ 14497_ACEOF 14498cat confdefs.h >>conftest.$ac_ext 14499cat >>conftest.$ac_ext <<_ACEOF 14500/* end confdefs.h. */ 14501 14502/* Override any GCC internal prototype to avoid an error. 14503 Use char because int might match the return type of a GCC 14504 builtin and then its argument prototype would still apply. */ 14505#ifdef __cplusplus 14506extern "C" 14507#endif 14508char sqrt (); 14509int 14510main () 14511{ 14512return sqrt (); 14513 ; 14514 return 0; 14515} 14516_ACEOF 14517rm -f conftest.$ac_objext conftest$ac_exeext 14518if { (ac_try="$ac_link" 14519case "(($ac_try" in 14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14521 *) ac_try_echo=$ac_try;; 14522esac 14523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14524 (eval "$ac_link") 2>conftest.er1 14525 ac_status=$? 14526 grep -v '^ *+' conftest.er1 >conftest.err 14527 rm -f conftest.er1 14528 cat conftest.err >&5 14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14530 (exit $ac_status); } && { 14531 test -z "$ac_c_werror_flag" || 14532 test ! -s conftest.err 14533 } && test -s conftest$ac_exeext && 14534 $as_test_x conftest$ac_exeext; then 14535 ac_cv_lib_m_sqrt=yes 14536else 14537 echo "$as_me: failed program was:" >&5 14538sed 's/^/| /' conftest.$ac_ext >&5 14539 14540 ac_cv_lib_m_sqrt=no 14541fi 14542 14543rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14544 conftest$ac_exeext conftest.$ac_ext 14545LIBS=$ac_check_lib_save_LIBS 14546fi 14547{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 14548echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; } 14549if test $ac_cv_lib_m_sqrt = yes; then 14550 cat >>confdefs.h <<_ACEOF 14551#define HAVE_LIBM 1 14552_ACEOF 14553 14554 LIBS="-lm $LIBS" 14555 14556fi 14557 14558 14559 14560# Checks for font libraries. 14561# -------------------------- 14562 14563 14564 14565if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 14566 if test -n "$ac_tool_prefix"; then 14567 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14568set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14569{ echo "$as_me:$LINENO: checking for $ac_word" >&5 14570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 14571if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 14572 echo $ECHO_N "(cached) $ECHO_C" >&6 14573else 14574 case $PKG_CONFIG in 14575 [\\/]* | ?:[\\/]*) 14576 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14577 ;; 14578 *) 14579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14580for as_dir in $PATH 14581do 14582 IFS=$as_save_IFS 14583 test -z "$as_dir" && as_dir=. 14584 for ac_exec_ext in '' $ac_executable_extensions; do 14585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14586 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 14588 break 2 14589 fi 14590done 14591done 14592IFS=$as_save_IFS 14593 14594 ;; 14595esac 14596fi 14597PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14598if test -n "$PKG_CONFIG"; then 14599 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 14600echo "${ECHO_T}$PKG_CONFIG" >&6; } 14601else 14602 { echo "$as_me:$LINENO: result: no" >&5 14603echo "${ECHO_T}no" >&6; } 14604fi 14605 14606 14607fi 14608if test -z "$ac_cv_path_PKG_CONFIG"; then 14609 ac_pt_PKG_CONFIG=$PKG_CONFIG 14610 # Extract the first word of "pkg-config", so it can be a program name with args. 14611set dummy pkg-config; ac_word=$2 14612{ echo "$as_me:$LINENO: checking for $ac_word" >&5 14613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 14614if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 14615 echo $ECHO_N "(cached) $ECHO_C" >&6 14616else 14617 case $ac_pt_PKG_CONFIG in 14618 [\\/]* | ?:[\\/]*) 14619 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14620 ;; 14621 *) 14622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14623for as_dir in $PATH 14624do 14625 IFS=$as_save_IFS 14626 test -z "$as_dir" && as_dir=. 14627 for ac_exec_ext in '' $ac_executable_extensions; do 14628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14629 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 14631 break 2 14632 fi 14633done 14634done 14635IFS=$as_save_IFS 14636 14637 ;; 14638esac 14639fi 14640ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14641if test -n "$ac_pt_PKG_CONFIG"; then 14642 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 14643echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 14644else 14645 { echo "$as_me:$LINENO: result: no" >&5 14646echo "${ECHO_T}no" >&6; } 14647fi 14648 14649 if test "x$ac_pt_PKG_CONFIG" = x; then 14650 PKG_CONFIG="" 14651 else 14652 case $cross_compiling:$ac_tool_warned in 14653yes:) 14654{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 14655whose name does not start with the host triplet. If you think this 14656configuration is useful to you, please write to autoconf@gnu.org." >&5 14657echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 14658whose name does not start with the host triplet. If you think this 14659configuration is useful to you, please write to autoconf@gnu.org." >&2;} 14660ac_tool_warned=yes ;; 14661esac 14662 PKG_CONFIG=$ac_pt_PKG_CONFIG 14663 fi 14664else 14665 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 14666fi 14667 14668fi 14669if test -n "$PKG_CONFIG"; then 14670 _pkg_min_version=0.9.0 14671 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 14672echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 14673 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 14674 { echo "$as_me:$LINENO: result: yes" >&5 14675echo "${ECHO_T}yes" >&6; } 14676 else 14677 { echo "$as_me:$LINENO: result: no" >&5 14678echo "${ECHO_T}no" >&6; } 14679 PKG_CONFIG="" 14680 fi 14681 14682fi 14683 14684 14685pkg_failed=no 14686{ echo "$as_me:$LINENO: checking for FREETYPE2" >&5 14687echo $ECHO_N "checking for FREETYPE2... $ECHO_C" >&6; } 14688 14689if test -n "$PKG_CONFIG"; then 14690 if test -n "$FREETYPE2_CFLAGS"; then 14691 pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS" 14692 else 14693 if test -n "$PKG_CONFIG" && \ 14694 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.8 \"") >&5 14695 ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.8 ") 2>&5 14696 ac_status=$? 14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14698 (exit $ac_status); }; then 14699 pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 9.8 " 2>/dev/null` 14700else 14701 pkg_failed=yes 14702fi 14703 fi 14704else 14705 pkg_failed=untried 14706fi 14707if test -n "$PKG_CONFIG"; then 14708 if test -n "$FREETYPE2_LIBS"; then 14709 pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS" 14710 else 14711 if test -n "$PKG_CONFIG" && \ 14712 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.8 \"") >&5 14713 ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.8 ") 2>&5 14714 ac_status=$? 14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14716 (exit $ac_status); }; then 14717 pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 9.8 " 2>/dev/null` 14718else 14719 pkg_failed=yes 14720fi 14721 fi 14722else 14723 pkg_failed=untried 14724fi 14725 14726 14727 14728if test $pkg_failed = yes; then 14729 14730if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14731 _pkg_short_errors_supported=yes 14732else 14733 _pkg_short_errors_supported=no 14734fi 14735 if test $_pkg_short_errors_supported = yes; then 14736 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2 >= 9.8 "` 14737 else 14738 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 9.8 "` 14739 fi 14740 # Put the nasty error message in config.log where it belongs 14741 echo "$FREETYPE2_PKG_ERRORS" >&5 14742 14743 { echo "$as_me:$LINENO: result: no" >&5 14744echo "${ECHO_T}no" >&6; } 14745 14746 if test -z "$FREETYPE_CONFIG"; then 14747 # Extract the first word of "freetype-config", so it can be a program name with args. 14748set dummy freetype-config; ac_word=$2 14749{ echo "$as_me:$LINENO: checking for $ac_word" >&5 14750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 14751if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then 14752 echo $ECHO_N "(cached) $ECHO_C" >&6 14753else 14754 case $FREETYPE_CONFIG in 14755 [\\/]* | ?:[\\/]*) 14756 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path. 14757 ;; 14758 *) 14759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14760for as_dir in $PATH 14761do 14762 IFS=$as_save_IFS 14763 test -z "$as_dir" && as_dir=. 14764 for ac_exec_ext in '' $ac_executable_extensions; do 14765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14766 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 14768 break 2 14769 fi 14770done 14771done 14772IFS=$as_save_IFS 14773 14774 test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="no" 14775 ;; 14776esac 14777fi 14778FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG 14779if test -n "$FREETYPE_CONFIG"; then 14780 { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5 14781echo "${ECHO_T}$FREETYPE_CONFIG" >&6; } 14782else 14783 { echo "$as_me:$LINENO: result: no" >&5 14784echo "${ECHO_T}no" >&6; } 14785fi 14786 14787 14788 fi 14789 14790 if test "$FREETYPE_CONFIG" = "no" ; then 14791 ax_save_CPPFLAGS="${CPPFLAGS}" 14792 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include" 14793 if test "${ac_cv_header_ft2build_h+set}" = set; then 14794 { echo "$as_me:$LINENO: checking for ft2build.h" >&5 14795echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; } 14796if test "${ac_cv_header_ft2build_h+set}" = set; then 14797 echo $ECHO_N "(cached) $ECHO_C" >&6 14798fi 14799{ echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5 14800echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; } 14801else 14802 # Is the header compilable? 14803{ echo "$as_me:$LINENO: checking ft2build.h usability" >&5 14804echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; } 14805cat >conftest.$ac_ext <<_ACEOF 14806/* confdefs.h. */ 14807_ACEOF 14808cat confdefs.h >>conftest.$ac_ext 14809cat >>conftest.$ac_ext <<_ACEOF 14810/* end confdefs.h. */ 14811$ac_includes_default 14812#include <ft2build.h> 14813_ACEOF 14814rm -f conftest.$ac_objext 14815if { (ac_try="$ac_compile" 14816case "(($ac_try" in 14817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14818 *) ac_try_echo=$ac_try;; 14819esac 14820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14821 (eval "$ac_compile") 2>conftest.er1 14822 ac_status=$? 14823 grep -v '^ *+' conftest.er1 >conftest.err 14824 rm -f conftest.er1 14825 cat conftest.err >&5 14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14827 (exit $ac_status); } && { 14828 test -z "$ac_c_werror_flag" || 14829 test ! -s conftest.err 14830 } && test -s conftest.$ac_objext; then 14831 ac_header_compiler=yes 14832else 14833 echo "$as_me: failed program was:" >&5 14834sed 's/^/| /' conftest.$ac_ext >&5 14835 14836 ac_header_compiler=no 14837fi 14838 14839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14840{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14841echo "${ECHO_T}$ac_header_compiler" >&6; } 14842 14843# Is the header present? 14844{ echo "$as_me:$LINENO: checking ft2build.h presence" >&5 14845echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; } 14846cat >conftest.$ac_ext <<_ACEOF 14847/* confdefs.h. */ 14848_ACEOF 14849cat confdefs.h >>conftest.$ac_ext 14850cat >>conftest.$ac_ext <<_ACEOF 14851/* end confdefs.h. */ 14852#include <ft2build.h> 14853_ACEOF 14854if { (ac_try="$ac_cpp conftest.$ac_ext" 14855case "(($ac_try" in 14856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14857 *) ac_try_echo=$ac_try;; 14858esac 14859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14861 ac_status=$? 14862 grep -v '^ *+' conftest.er1 >conftest.err 14863 rm -f conftest.er1 14864 cat conftest.err >&5 14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14866 (exit $ac_status); } >/dev/null && { 14867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 14868 test ! -s conftest.err 14869 }; then 14870 ac_header_preproc=yes 14871else 14872 echo "$as_me: failed program was:" >&5 14873sed 's/^/| /' conftest.$ac_ext >&5 14874 14875 ac_header_preproc=no 14876fi 14877 14878rm -f conftest.err conftest.$ac_ext 14879{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14880echo "${ECHO_T}$ac_header_preproc" >&6; } 14881 14882# So? What about this header? 14883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14884 yes:no: ) 14885 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5 14886echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14887 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5 14888echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;} 14889 ac_header_preproc=yes 14890 ;; 14891 no:yes:* ) 14892 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5 14893echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;} 14894 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5 14895echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;} 14896 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5 14897echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;} 14898 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5 14899echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;} 14900 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5 14901echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;} 14902 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5 14903echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;} 14904 ( cat <<\_ASBOX 14905## ----------------------------------------------------- ## 14906## Report this to quesoglc-general@lists.sourceforge.net ## 14907## ----------------------------------------------------- ## 14908_ASBOX 14909 ) | sed "s/^/$as_me: WARNING: /" >&2 14910 ;; 14911esac 14912{ echo "$as_me:$LINENO: checking for ft2build.h" >&5 14913echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; } 14914if test "${ac_cv_header_ft2build_h+set}" = set; then 14915 echo $ECHO_N "(cached) $ECHO_C" >&6 14916else 14917 ac_cv_header_ft2build_h=$ac_header_preproc 14918fi 14919{ echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5 14920echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; } 14921 14922fi 14923if test $ac_cv_header_ft2build_h = yes; then 14924 ax_save_LIBS="${LIBS}" 14925 LIBS="-L/usr/X11R6/lib $LIBS" 14926 14927{ echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 14928echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; } 14929if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then 14930 echo $ECHO_N "(cached) $ECHO_C" >&6 14931else 14932 ac_check_lib_save_LIBS=$LIBS 14933LIBS="-lfreetype $LIBS" 14934cat >conftest.$ac_ext <<_ACEOF 14935/* confdefs.h. */ 14936_ACEOF 14937cat confdefs.h >>conftest.$ac_ext 14938cat >>conftest.$ac_ext <<_ACEOF 14939/* end confdefs.h. */ 14940 14941/* Override any GCC internal prototype to avoid an error. 14942 Use char because int might match the return type of a GCC 14943 builtin and then its argument prototype would still apply. */ 14944#ifdef __cplusplus 14945extern "C" 14946#endif 14947char FT_Init_FreeType (); 14948int 14949main () 14950{ 14951return FT_Init_FreeType (); 14952 ; 14953 return 0; 14954} 14955_ACEOF 14956rm -f conftest.$ac_objext conftest$ac_exeext 14957if { (ac_try="$ac_link" 14958case "(($ac_try" in 14959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14960 *) ac_try_echo=$ac_try;; 14961esac 14962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14963 (eval "$ac_link") 2>conftest.er1 14964 ac_status=$? 14965 grep -v '^ *+' conftest.er1 >conftest.err 14966 rm -f conftest.er1 14967 cat conftest.err >&5 14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14969 (exit $ac_status); } && { 14970 test -z "$ac_c_werror_flag" || 14971 test ! -s conftest.err 14972 } && test -s conftest$ac_exeext && 14973 $as_test_x conftest$ac_exeext; then 14974 ac_cv_lib_freetype_FT_Init_FreeType=yes 14975else 14976 echo "$as_me: failed program was:" >&5 14977sed 's/^/| /' conftest.$ac_ext >&5 14978 14979 ac_cv_lib_freetype_FT_Init_FreeType=no 14980fi 14981 14982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14983 conftest$ac_exeext conftest.$ac_ext 14984LIBS=$ac_check_lib_save_LIBS 14985fi 14986{ echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 14987echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } 14988if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then 14989 cat >>confdefs.h <<_ACEOF 14990#define HAVE_LIBFREETYPE 1 14991_ACEOF 14992 14993 LIBS="-lfreetype $LIBS" 14994 14995else 14996 no_ft2="yes"; CPPFLAGS=${ax_save_CPPFLAGS} 14997 LIBS=${ax_save_LIBS} 14998 14999fi 15000 15001 15002else 15003 no_ft2="yes"; CPPFLAGS=${ax_save_CPPFLAGS} 15004 15005fi 15006 15007 15008 else 15009 ax_save_CPPFLAGS="${CPPFLAGS}" 15010 CPPFLAGS="`freetype-config --cflags`" 15011 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 15012echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; } 15013if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then 15014 echo $ECHO_N "(cached) $ECHO_C" >&6 15015else 15016 ac_check_lib_save_LIBS=$LIBS 15017LIBS="-lfreetype $LIBS" 15018cat >conftest.$ac_ext <<_ACEOF 15019/* confdefs.h. */ 15020_ACEOF 15021cat confdefs.h >>conftest.$ac_ext 15022cat >>conftest.$ac_ext <<_ACEOF 15023/* end confdefs.h. */ 15024 15025/* Override any GCC internal prototype to avoid an error. 15026 Use char because int might match the return type of a GCC 15027 builtin and then its argument prototype would still apply. */ 15028#ifdef __cplusplus 15029extern "C" 15030#endif 15031char FT_Init_FreeType (); 15032int 15033main () 15034{ 15035return FT_Init_FreeType (); 15036 ; 15037 return 0; 15038} 15039_ACEOF 15040rm -f conftest.$ac_objext conftest$ac_exeext 15041if { (ac_try="$ac_link" 15042case "(($ac_try" in 15043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15044 *) ac_try_echo=$ac_try;; 15045esac 15046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15047 (eval "$ac_link") 2>conftest.er1 15048 ac_status=$? 15049 grep -v '^ *+' conftest.er1 >conftest.err 15050 rm -f conftest.er1 15051 cat conftest.err >&5 15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15053 (exit $ac_status); } && { 15054 test -z "$ac_c_werror_flag" || 15055 test ! -s conftest.err 15056 } && test -s conftest$ac_exeext && 15057 $as_test_x conftest$ac_exeext; then 15058 ac_cv_lib_freetype_FT_Init_FreeType=yes 15059else 15060 echo "$as_me: failed program was:" >&5 15061sed 's/^/| /' conftest.$ac_ext >&5 15062 15063 ac_cv_lib_freetype_FT_Init_FreeType=no 15064fi 15065 15066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15067 conftest$ac_exeext conftest.$ac_ext 15068LIBS=$ac_check_lib_save_LIBS 15069fi 15070{ echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 15071echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } 15072if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then 15073 LIBS="`freetype-config --libs` $LIBS"; 15074 CPPFLAGS="`freetype-config --cflags` ${ax_save_CPPFLAGS}" 15075else 15076 no_ft2="yes"; CPPFLAGS=${ax_save_CPPFLAGS} 15077 15078fi 15079 15080 fi 15081 15082elif test $pkg_failed = untried; then 15083 15084 if test -z "$FREETYPE_CONFIG"; then 15085 # Extract the first word of "freetype-config", so it can be a program name with args. 15086set dummy freetype-config; ac_word=$2 15087{ echo "$as_me:$LINENO: checking for $ac_word" >&5 15088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 15089if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then 15090 echo $ECHO_N "(cached) $ECHO_C" >&6 15091else 15092 case $FREETYPE_CONFIG in 15093 [\\/]* | ?:[\\/]*) 15094 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path. 15095 ;; 15096 *) 15097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15098for as_dir in $PATH 15099do 15100 IFS=$as_save_IFS 15101 test -z "$as_dir" && as_dir=. 15102 for ac_exec_ext in '' $ac_executable_extensions; do 15103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15104 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 15106 break 2 15107 fi 15108done 15109done 15110IFS=$as_save_IFS 15111 15112 test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="no" 15113 ;; 15114esac 15115fi 15116FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG 15117if test -n "$FREETYPE_CONFIG"; then 15118 { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5 15119echo "${ECHO_T}$FREETYPE_CONFIG" >&6; } 15120else 15121 { echo "$as_me:$LINENO: result: no" >&5 15122echo "${ECHO_T}no" >&6; } 15123fi 15124 15125 15126 fi 15127 15128 if test "$FREETYPE_CONFIG" = "no" ; then 15129 ax_save_CPPFLAGS="${CPPFLAGS}" 15130 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include" 15131 if test "${ac_cv_header_ft2build_h+set}" = set; then 15132 { echo "$as_me:$LINENO: checking for ft2build.h" >&5 15133echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; } 15134if test "${ac_cv_header_ft2build_h+set}" = set; then 15135 echo $ECHO_N "(cached) $ECHO_C" >&6 15136fi 15137{ echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5 15138echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; } 15139else 15140 # Is the header compilable? 15141{ echo "$as_me:$LINENO: checking ft2build.h usability" >&5 15142echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; } 15143cat >conftest.$ac_ext <<_ACEOF 15144/* confdefs.h. */ 15145_ACEOF 15146cat confdefs.h >>conftest.$ac_ext 15147cat >>conftest.$ac_ext <<_ACEOF 15148/* end confdefs.h. */ 15149$ac_includes_default 15150#include <ft2build.h> 15151_ACEOF 15152rm -f conftest.$ac_objext 15153if { (ac_try="$ac_compile" 15154case "(($ac_try" in 15155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15156 *) ac_try_echo=$ac_try;; 15157esac 15158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15159 (eval "$ac_compile") 2>conftest.er1 15160 ac_status=$? 15161 grep -v '^ *+' conftest.er1 >conftest.err 15162 rm -f conftest.er1 15163 cat conftest.err >&5 15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15165 (exit $ac_status); } && { 15166 test -z "$ac_c_werror_flag" || 15167 test ! -s conftest.err 15168 } && test -s conftest.$ac_objext; then 15169 ac_header_compiler=yes 15170else 15171 echo "$as_me: failed program was:" >&5 15172sed 's/^/| /' conftest.$ac_ext >&5 15173 15174 ac_header_compiler=no 15175fi 15176 15177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15178{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15179echo "${ECHO_T}$ac_header_compiler" >&6; } 15180 15181# Is the header present? 15182{ echo "$as_me:$LINENO: checking ft2build.h presence" >&5 15183echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; } 15184cat >conftest.$ac_ext <<_ACEOF 15185/* confdefs.h. */ 15186_ACEOF 15187cat confdefs.h >>conftest.$ac_ext 15188cat >>conftest.$ac_ext <<_ACEOF 15189/* end confdefs.h. */ 15190#include <ft2build.h> 15191_ACEOF 15192if { (ac_try="$ac_cpp conftest.$ac_ext" 15193case "(($ac_try" in 15194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15195 *) ac_try_echo=$ac_try;; 15196esac 15197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15199 ac_status=$? 15200 grep -v '^ *+' conftest.er1 >conftest.err 15201 rm -f conftest.er1 15202 cat conftest.err >&5 15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15204 (exit $ac_status); } >/dev/null && { 15205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15206 test ! -s conftest.err 15207 }; then 15208 ac_header_preproc=yes 15209else 15210 echo "$as_me: failed program was:" >&5 15211sed 's/^/| /' conftest.$ac_ext >&5 15212 15213 ac_header_preproc=no 15214fi 15215 15216rm -f conftest.err conftest.$ac_ext 15217{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15218echo "${ECHO_T}$ac_header_preproc" >&6; } 15219 15220# So? What about this header? 15221case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15222 yes:no: ) 15223 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5 15224echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 15225 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5 15226echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;} 15227 ac_header_preproc=yes 15228 ;; 15229 no:yes:* ) 15230 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5 15231echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;} 15232 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5 15233echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;} 15234 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5 15235echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;} 15236 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5 15237echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;} 15238 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5 15239echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;} 15240 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5 15241echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;} 15242 ( cat <<\_ASBOX 15243## ----------------------------------------------------- ## 15244## Report this to quesoglc-general@lists.sourceforge.net ## 15245## ----------------------------------------------------- ## 15246_ASBOX 15247 ) | sed "s/^/$as_me: WARNING: /" >&2 15248 ;; 15249esac 15250{ echo "$as_me:$LINENO: checking for ft2build.h" >&5 15251echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; } 15252if test "${ac_cv_header_ft2build_h+set}" = set; then 15253 echo $ECHO_N "(cached) $ECHO_C" >&6 15254else 15255 ac_cv_header_ft2build_h=$ac_header_preproc 15256fi 15257{ echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5 15258echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; } 15259 15260fi 15261if test $ac_cv_header_ft2build_h = yes; then 15262 ax_save_LIBS="${LIBS}" 15263 LIBS="-L/usr/X11R6/lib $LIBS" 15264 15265{ echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 15266echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; } 15267if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then 15268 echo $ECHO_N "(cached) $ECHO_C" >&6 15269else 15270 ac_check_lib_save_LIBS=$LIBS 15271LIBS="-lfreetype $LIBS" 15272cat >conftest.$ac_ext <<_ACEOF 15273/* confdefs.h. */ 15274_ACEOF 15275cat confdefs.h >>conftest.$ac_ext 15276cat >>conftest.$ac_ext <<_ACEOF 15277/* end confdefs.h. */ 15278 15279/* Override any GCC internal prototype to avoid an error. 15280 Use char because int might match the return type of a GCC 15281 builtin and then its argument prototype would still apply. */ 15282#ifdef __cplusplus 15283extern "C" 15284#endif 15285char FT_Init_FreeType (); 15286int 15287main () 15288{ 15289return FT_Init_FreeType (); 15290 ; 15291 return 0; 15292} 15293_ACEOF 15294rm -f conftest.$ac_objext conftest$ac_exeext 15295if { (ac_try="$ac_link" 15296case "(($ac_try" in 15297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15298 *) ac_try_echo=$ac_try;; 15299esac 15300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15301 (eval "$ac_link") 2>conftest.er1 15302 ac_status=$? 15303 grep -v '^ *+' conftest.er1 >conftest.err 15304 rm -f conftest.er1 15305 cat conftest.err >&5 15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15307 (exit $ac_status); } && { 15308 test -z "$ac_c_werror_flag" || 15309 test ! -s conftest.err 15310 } && test -s conftest$ac_exeext && 15311 $as_test_x conftest$ac_exeext; then 15312 ac_cv_lib_freetype_FT_Init_FreeType=yes 15313else 15314 echo "$as_me: failed program was:" >&5 15315sed 's/^/| /' conftest.$ac_ext >&5 15316 15317 ac_cv_lib_freetype_FT_Init_FreeType=no 15318fi 15319 15320rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15321 conftest$ac_exeext conftest.$ac_ext 15322LIBS=$ac_check_lib_save_LIBS 15323fi 15324{ echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 15325echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } 15326if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then 15327 cat >>confdefs.h <<_ACEOF 15328#define HAVE_LIBFREETYPE 1 15329_ACEOF 15330 15331 LIBS="-lfreetype $LIBS" 15332 15333else 15334 no_ft2="yes"; CPPFLAGS=${ax_save_CPPFLAGS} 15335 LIBS=${ax_save_LIBS} 15336 15337fi 15338 15339 15340else 15341 no_ft2="yes"; CPPFLAGS=${ax_save_CPPFLAGS} 15342 15343fi 15344 15345 15346 else 15347 ax_save_CPPFLAGS="${CPPFLAGS}" 15348 CPPFLAGS="`freetype-config --cflags`" 15349 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 15350echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; } 15351if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then 15352 echo $ECHO_N "(cached) $ECHO_C" >&6 15353else 15354 ac_check_lib_save_LIBS=$LIBS 15355LIBS="-lfreetype $LIBS" 15356cat >conftest.$ac_ext <<_ACEOF 15357/* confdefs.h. */ 15358_ACEOF 15359cat confdefs.h >>conftest.$ac_ext 15360cat >>conftest.$ac_ext <<_ACEOF 15361/* end confdefs.h. */ 15362 15363/* Override any GCC internal prototype to avoid an error. 15364 Use char because int might match the return type of a GCC 15365 builtin and then its argument prototype would still apply. */ 15366#ifdef __cplusplus 15367extern "C" 15368#endif 15369char FT_Init_FreeType (); 15370int 15371main () 15372{ 15373return FT_Init_FreeType (); 15374 ; 15375 return 0; 15376} 15377_ACEOF 15378rm -f conftest.$ac_objext conftest$ac_exeext 15379if { (ac_try="$ac_link" 15380case "(($ac_try" in 15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15382 *) ac_try_echo=$ac_try;; 15383esac 15384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15385 (eval "$ac_link") 2>conftest.er1 15386 ac_status=$? 15387 grep -v '^ *+' conftest.er1 >conftest.err 15388 rm -f conftest.er1 15389 cat conftest.err >&5 15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15391 (exit $ac_status); } && { 15392 test -z "$ac_c_werror_flag" || 15393 test ! -s conftest.err 15394 } && test -s conftest$ac_exeext && 15395 $as_test_x conftest$ac_exeext; then 15396 ac_cv_lib_freetype_FT_Init_FreeType=yes 15397else 15398 echo "$as_me: failed program was:" >&5 15399sed 's/^/| /' conftest.$ac_ext >&5 15400 15401 ac_cv_lib_freetype_FT_Init_FreeType=no 15402fi 15403 15404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15405 conftest$ac_exeext conftest.$ac_ext 15406LIBS=$ac_check_lib_save_LIBS 15407fi 15408{ echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 15409echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } 15410if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then 15411 LIBS="`freetype-config --libs` $LIBS"; 15412 CPPFLAGS="`freetype-config --cflags` ${ax_save_CPPFLAGS}" 15413else 15414 no_ft2="yes"; CPPFLAGS=${ax_save_CPPFLAGS} 15415 15416fi 15417 15418 fi 15419 15420else 15421 FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS 15422 FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS 15423 { echo "$as_me:$LINENO: result: yes" >&5 15424echo "${ECHO_T}yes" >&6; } 15425 : 15426fi 15427 15428 15429if (test "x$no_ft2" = "xyes"); then 15430 { { echo "$as_me:$LINENO: error: Unable to locate the required FreeType library" >&5 15431echo "$as_me: error: Unable to locate the required FreeType library" >&2;} 15432 { (exit 1); exit 1; }; } 15433fi 15434 15435{ echo "$as_me:$LINENO: checking for FTC_Manager_New in -lfreetype" >&5 15436echo $ECHO_N "checking for FTC_Manager_New in -lfreetype... $ECHO_C" >&6; } 15437if test "${ac_cv_lib_freetype_FTC_Manager_New+set}" = set; then 15438 echo $ECHO_N "(cached) $ECHO_C" >&6 15439else 15440 ac_check_lib_save_LIBS=$LIBS 15441LIBS="-lfreetype $LIBS" 15442cat >conftest.$ac_ext <<_ACEOF 15443/* confdefs.h. */ 15444_ACEOF 15445cat confdefs.h >>conftest.$ac_ext 15446cat >>conftest.$ac_ext <<_ACEOF 15447/* end confdefs.h. */ 15448 15449/* Override any GCC internal prototype to avoid an error. 15450 Use char because int might match the return type of a GCC 15451 builtin and then its argument prototype would still apply. */ 15452#ifdef __cplusplus 15453extern "C" 15454#endif 15455char FTC_Manager_New (); 15456int 15457main () 15458{ 15459return FTC_Manager_New (); 15460 ; 15461 return 0; 15462} 15463_ACEOF 15464rm -f conftest.$ac_objext conftest$ac_exeext 15465if { (ac_try="$ac_link" 15466case "(($ac_try" in 15467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15468 *) ac_try_echo=$ac_try;; 15469esac 15470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15471 (eval "$ac_link") 2>conftest.er1 15472 ac_status=$? 15473 grep -v '^ *+' conftest.er1 >conftest.err 15474 rm -f conftest.er1 15475 cat conftest.err >&5 15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15477 (exit $ac_status); } && { 15478 test -z "$ac_c_werror_flag" || 15479 test ! -s conftest.err 15480 } && test -s conftest$ac_exeext && 15481 $as_test_x conftest$ac_exeext; then 15482 ac_cv_lib_freetype_FTC_Manager_New=yes 15483else 15484 echo "$as_me: failed program was:" >&5 15485sed 's/^/| /' conftest.$ac_ext >&5 15486 15487 ac_cv_lib_freetype_FTC_Manager_New=no 15488fi 15489 15490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15491 conftest$ac_exeext conftest.$ac_ext 15492LIBS=$ac_check_lib_save_LIBS 15493fi 15494{ echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FTC_Manager_New" >&5 15495echo "${ECHO_T}$ac_cv_lib_freetype_FTC_Manager_New" >&6; } 15496if test $ac_cv_lib_freetype_FTC_Manager_New = yes; then 15497 15498cat >>confdefs.h <<\_ACEOF 15499#define HAVE_FT_CACHE 1 15500_ACEOF 15501 15502fi 15503 15504 15505 15506 15507pkg_failed=no 15508{ echo "$as_me:$LINENO: checking for FONTCONFIG" >&5 15509echo $ECHO_N "checking for FONTCONFIG... $ECHO_C" >&6; } 15510 15511if test -n "$PKG_CONFIG"; then 15512 if test -n "$FONTCONFIG_CFLAGS"; then 15513 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" 15514 else 15515 if test -n "$PKG_CONFIG" && \ 15516 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.2 \"") >&5 15517 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2 ") 2>&5 15518 ac_status=$? 15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15520 (exit $ac_status); }; then 15521 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2 " 2>/dev/null` 15522else 15523 pkg_failed=yes 15524fi 15525 fi 15526else 15527 pkg_failed=untried 15528fi 15529if test -n "$PKG_CONFIG"; then 15530 if test -n "$FONTCONFIG_LIBS"; then 15531 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" 15532 else 15533 if test -n "$PKG_CONFIG" && \ 15534 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.2 \"") >&5 15535 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2 ") 2>&5 15536 ac_status=$? 15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15538 (exit $ac_status); }; then 15539 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2 " 2>/dev/null` 15540else 15541 pkg_failed=yes 15542fi 15543 fi 15544else 15545 pkg_failed=untried 15546fi 15547 15548 15549 15550if test $pkg_failed = yes; then 15551 15552if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15553 _pkg_short_errors_supported=yes 15554else 15555 _pkg_short_errors_supported=no 15556fi 15557 if test $_pkg_short_errors_supported = yes; then 15558 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fontconfig >= 2.2 "` 15559 else 15560 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2 "` 15561 fi 15562 # Put the nasty error message in config.log where it belongs 15563 echo "$FONTCONFIG_PKG_ERRORS" >&5 15564 15565 { echo "$as_me:$LINENO: result: no" >&5 15566echo "${ECHO_T}no" >&6; } 15567 15568 15569 if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then 15570 { echo "$as_me:$LINENO: checking for fontconfig/fontconfig.h" >&5 15571echo $ECHO_N "checking for fontconfig/fontconfig.h... $ECHO_C" >&6; } 15572if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then 15573 echo $ECHO_N "(cached) $ECHO_C" >&6 15574fi 15575{ echo "$as_me:$LINENO: result: $ac_cv_header_fontconfig_fontconfig_h" >&5 15576echo "${ECHO_T}$ac_cv_header_fontconfig_fontconfig_h" >&6; } 15577else 15578 # Is the header compilable? 15579{ echo "$as_me:$LINENO: checking fontconfig/fontconfig.h usability" >&5 15580echo $ECHO_N "checking fontconfig/fontconfig.h usability... $ECHO_C" >&6; } 15581cat >conftest.$ac_ext <<_ACEOF 15582/* confdefs.h. */ 15583_ACEOF 15584cat confdefs.h >>conftest.$ac_ext 15585cat >>conftest.$ac_ext <<_ACEOF 15586/* end confdefs.h. */ 15587$ac_includes_default 15588#include <fontconfig/fontconfig.h> 15589_ACEOF 15590rm -f conftest.$ac_objext 15591if { (ac_try="$ac_compile" 15592case "(($ac_try" in 15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15594 *) ac_try_echo=$ac_try;; 15595esac 15596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15597 (eval "$ac_compile") 2>conftest.er1 15598 ac_status=$? 15599 grep -v '^ *+' conftest.er1 >conftest.err 15600 rm -f conftest.er1 15601 cat conftest.err >&5 15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15603 (exit $ac_status); } && { 15604 test -z "$ac_c_werror_flag" || 15605 test ! -s conftest.err 15606 } && test -s conftest.$ac_objext; then 15607 ac_header_compiler=yes 15608else 15609 echo "$as_me: failed program was:" >&5 15610sed 's/^/| /' conftest.$ac_ext >&5 15611 15612 ac_header_compiler=no 15613fi 15614 15615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15616{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15617echo "${ECHO_T}$ac_header_compiler" >&6; } 15618 15619# Is the header present? 15620{ echo "$as_me:$LINENO: checking fontconfig/fontconfig.h presence" >&5 15621echo $ECHO_N "checking fontconfig/fontconfig.h presence... $ECHO_C" >&6; } 15622cat >conftest.$ac_ext <<_ACEOF 15623/* confdefs.h. */ 15624_ACEOF 15625cat confdefs.h >>conftest.$ac_ext 15626cat >>conftest.$ac_ext <<_ACEOF 15627/* end confdefs.h. */ 15628#include <fontconfig/fontconfig.h> 15629_ACEOF 15630if { (ac_try="$ac_cpp conftest.$ac_ext" 15631case "(($ac_try" in 15632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15633 *) ac_try_echo=$ac_try;; 15634esac 15635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15637 ac_status=$? 15638 grep -v '^ *+' conftest.er1 >conftest.err 15639 rm -f conftest.er1 15640 cat conftest.err >&5 15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15642 (exit $ac_status); } >/dev/null && { 15643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15644 test ! -s conftest.err 15645 }; then 15646 ac_header_preproc=yes 15647else 15648 echo "$as_me: failed program was:" >&5 15649sed 's/^/| /' conftest.$ac_ext >&5 15650 15651 ac_header_preproc=no 15652fi 15653 15654rm -f conftest.err conftest.$ac_ext 15655{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15656echo "${ECHO_T}$ac_header_preproc" >&6; } 15657 15658# So? What about this header? 15659case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15660 yes:no: ) 15661 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5 15662echo "$as_me: WARNING: fontconfig/fontconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 15663 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: proceeding with the compiler's result" >&5 15664echo "$as_me: WARNING: fontconfig/fontconfig.h: proceeding with the compiler's result" >&2;} 15665 ac_header_preproc=yes 15666 ;; 15667 no:yes:* ) 15668 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: present but cannot be compiled" >&5 15669echo "$as_me: WARNING: fontconfig/fontconfig.h: present but cannot be compiled" >&2;} 15670 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: check for missing prerequisite headers?" >&5 15671echo "$as_me: WARNING: fontconfig/fontconfig.h: check for missing prerequisite headers?" >&2;} 15672 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: see the Autoconf documentation" >&5 15673echo "$as_me: WARNING: fontconfig/fontconfig.h: see the Autoconf documentation" >&2;} 15674 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: section \"Present But Cannot Be Compiled\"" >&5 15675echo "$as_me: WARNING: fontconfig/fontconfig.h: section \"Present But Cannot Be Compiled\"" >&2;} 15676 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: proceeding with the preprocessor's result" >&5 15677echo "$as_me: WARNING: fontconfig/fontconfig.h: proceeding with the preprocessor's result" >&2;} 15678 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: in the future, the compiler will take precedence" >&5 15679echo "$as_me: WARNING: fontconfig/fontconfig.h: in the future, the compiler will take precedence" >&2;} 15680 ( cat <<\_ASBOX 15681## ----------------------------------------------------- ## 15682## Report this to quesoglc-general@lists.sourceforge.net ## 15683## ----------------------------------------------------- ## 15684_ASBOX 15685 ) | sed "s/^/$as_me: WARNING: /" >&2 15686 ;; 15687esac 15688{ echo "$as_me:$LINENO: checking for fontconfig/fontconfig.h" >&5 15689echo $ECHO_N "checking for fontconfig/fontconfig.h... $ECHO_C" >&6; } 15690if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then 15691 echo $ECHO_N "(cached) $ECHO_C" >&6 15692else 15693 ac_cv_header_fontconfig_fontconfig_h=$ac_header_preproc 15694fi 15695{ echo "$as_me:$LINENO: result: $ac_cv_header_fontconfig_fontconfig_h" >&5 15696echo "${ECHO_T}$ac_cv_header_fontconfig_fontconfig_h" >&6; } 15697 15698fi 15699if test $ac_cv_header_fontconfig_fontconfig_h = yes; then 15700 { echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5 15701echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6; } 15702if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then 15703 echo $ECHO_N "(cached) $ECHO_C" >&6 15704else 15705 ac_check_lib_save_LIBS=$LIBS 15706LIBS="-lfontconfig $LIBS" 15707cat >conftest.$ac_ext <<_ACEOF 15708/* confdefs.h. */ 15709_ACEOF 15710cat confdefs.h >>conftest.$ac_ext 15711cat >>conftest.$ac_ext <<_ACEOF 15712/* end confdefs.h. */ 15713 15714/* Override any GCC internal prototype to avoid an error. 15715 Use char because int might match the return type of a GCC 15716 builtin and then its argument prototype would still apply. */ 15717#ifdef __cplusplus 15718extern "C" 15719#endif 15720char FcInit (); 15721int 15722main () 15723{ 15724return FcInit (); 15725 ; 15726 return 0; 15727} 15728_ACEOF 15729rm -f conftest.$ac_objext conftest$ac_exeext 15730if { (ac_try="$ac_link" 15731case "(($ac_try" in 15732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15733 *) ac_try_echo=$ac_try;; 15734esac 15735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15736 (eval "$ac_link") 2>conftest.er1 15737 ac_status=$? 15738 grep -v '^ *+' conftest.er1 >conftest.err 15739 rm -f conftest.er1 15740 cat conftest.err >&5 15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15742 (exit $ac_status); } && { 15743 test -z "$ac_c_werror_flag" || 15744 test ! -s conftest.err 15745 } && test -s conftest$ac_exeext && 15746 $as_test_x conftest$ac_exeext; then 15747 ac_cv_lib_fontconfig_FcInit=yes 15748else 15749 echo "$as_me: failed program was:" >&5 15750sed 's/^/| /' conftest.$ac_ext >&5 15751 15752 ac_cv_lib_fontconfig_FcInit=no 15753fi 15754 15755rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15756 conftest$ac_exeext conftest.$ac_ext 15757LIBS=$ac_check_lib_save_LIBS 15758fi 15759{ echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5 15760echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6; } 15761if test $ac_cv_lib_fontconfig_FcInit = yes; then 15762 LIBS="-lfontconfig $LIBS" 15763else 15764 no_fc="yes" 15765 15766fi 15767 15768 15769fi 15770 15771 15772 15773elif test $pkg_failed = untried; then 15774 15775 15776 if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then 15777 { echo "$as_me:$LINENO: checking for fontconfig/fontconfig.h" >&5 15778echo $ECHO_N "checking for fontconfig/fontconfig.h... $ECHO_C" >&6; } 15779if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then 15780 echo $ECHO_N "(cached) $ECHO_C" >&6 15781fi 15782{ echo "$as_me:$LINENO: result: $ac_cv_header_fontconfig_fontconfig_h" >&5 15783echo "${ECHO_T}$ac_cv_header_fontconfig_fontconfig_h" >&6; } 15784else 15785 # Is the header compilable? 15786{ echo "$as_me:$LINENO: checking fontconfig/fontconfig.h usability" >&5 15787echo $ECHO_N "checking fontconfig/fontconfig.h usability... $ECHO_C" >&6; } 15788cat >conftest.$ac_ext <<_ACEOF 15789/* confdefs.h. */ 15790_ACEOF 15791cat confdefs.h >>conftest.$ac_ext 15792cat >>conftest.$ac_ext <<_ACEOF 15793/* end confdefs.h. */ 15794$ac_includes_default 15795#include <fontconfig/fontconfig.h> 15796_ACEOF 15797rm -f conftest.$ac_objext 15798if { (ac_try="$ac_compile" 15799case "(($ac_try" in 15800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15801 *) ac_try_echo=$ac_try;; 15802esac 15803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15804 (eval "$ac_compile") 2>conftest.er1 15805 ac_status=$? 15806 grep -v '^ *+' conftest.er1 >conftest.err 15807 rm -f conftest.er1 15808 cat conftest.err >&5 15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15810 (exit $ac_status); } && { 15811 test -z "$ac_c_werror_flag" || 15812 test ! -s conftest.err 15813 } && test -s conftest.$ac_objext; then 15814 ac_header_compiler=yes 15815else 15816 echo "$as_me: failed program was:" >&5 15817sed 's/^/| /' conftest.$ac_ext >&5 15818 15819 ac_header_compiler=no 15820fi 15821 15822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15823{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15824echo "${ECHO_T}$ac_header_compiler" >&6; } 15825 15826# Is the header present? 15827{ echo "$as_me:$LINENO: checking fontconfig/fontconfig.h presence" >&5 15828echo $ECHO_N "checking fontconfig/fontconfig.h presence... $ECHO_C" >&6; } 15829cat >conftest.$ac_ext <<_ACEOF 15830/* confdefs.h. */ 15831_ACEOF 15832cat confdefs.h >>conftest.$ac_ext 15833cat >>conftest.$ac_ext <<_ACEOF 15834/* end confdefs.h. */ 15835#include <fontconfig/fontconfig.h> 15836_ACEOF 15837if { (ac_try="$ac_cpp conftest.$ac_ext" 15838case "(($ac_try" in 15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15840 *) ac_try_echo=$ac_try;; 15841esac 15842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15844 ac_status=$? 15845 grep -v '^ *+' conftest.er1 >conftest.err 15846 rm -f conftest.er1 15847 cat conftest.err >&5 15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15849 (exit $ac_status); } >/dev/null && { 15850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15851 test ! -s conftest.err 15852 }; then 15853 ac_header_preproc=yes 15854else 15855 echo "$as_me: failed program was:" >&5 15856sed 's/^/| /' conftest.$ac_ext >&5 15857 15858 ac_header_preproc=no 15859fi 15860 15861rm -f conftest.err conftest.$ac_ext 15862{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15863echo "${ECHO_T}$ac_header_preproc" >&6; } 15864 15865# So? What about this header? 15866case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15867 yes:no: ) 15868 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5 15869echo "$as_me: WARNING: fontconfig/fontconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 15870 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: proceeding with the compiler's result" >&5 15871echo "$as_me: WARNING: fontconfig/fontconfig.h: proceeding with the compiler's result" >&2;} 15872 ac_header_preproc=yes 15873 ;; 15874 no:yes:* ) 15875 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: present but cannot be compiled" >&5 15876echo "$as_me: WARNING: fontconfig/fontconfig.h: present but cannot be compiled" >&2;} 15877 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: check for missing prerequisite headers?" >&5 15878echo "$as_me: WARNING: fontconfig/fontconfig.h: check for missing prerequisite headers?" >&2;} 15879 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: see the Autoconf documentation" >&5 15880echo "$as_me: WARNING: fontconfig/fontconfig.h: see the Autoconf documentation" >&2;} 15881 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: section \"Present But Cannot Be Compiled\"" >&5 15882echo "$as_me: WARNING: fontconfig/fontconfig.h: section \"Present But Cannot Be Compiled\"" >&2;} 15883 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: proceeding with the preprocessor's result" >&5 15884echo "$as_me: WARNING: fontconfig/fontconfig.h: proceeding with the preprocessor's result" >&2;} 15885 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: in the future, the compiler will take precedence" >&5 15886echo "$as_me: WARNING: fontconfig/fontconfig.h: in the future, the compiler will take precedence" >&2;} 15887 ( cat <<\_ASBOX 15888## ----------------------------------------------------- ## 15889## Report this to quesoglc-general@lists.sourceforge.net ## 15890## ----------------------------------------------------- ## 15891_ASBOX 15892 ) | sed "s/^/$as_me: WARNING: /" >&2 15893 ;; 15894esac 15895{ echo "$as_me:$LINENO: checking for fontconfig/fontconfig.h" >&5 15896echo $ECHO_N "checking for fontconfig/fontconfig.h... $ECHO_C" >&6; } 15897if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then 15898 echo $ECHO_N "(cached) $ECHO_C" >&6 15899else 15900 ac_cv_header_fontconfig_fontconfig_h=$ac_header_preproc 15901fi 15902{ echo "$as_me:$LINENO: result: $ac_cv_header_fontconfig_fontconfig_h" >&5 15903echo "${ECHO_T}$ac_cv_header_fontconfig_fontconfig_h" >&6; } 15904 15905fi 15906if test $ac_cv_header_fontconfig_fontconfig_h = yes; then 15907 { echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5 15908echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6; } 15909if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then 15910 echo $ECHO_N "(cached) $ECHO_C" >&6 15911else 15912 ac_check_lib_save_LIBS=$LIBS 15913LIBS="-lfontconfig $LIBS" 15914cat >conftest.$ac_ext <<_ACEOF 15915/* confdefs.h. */ 15916_ACEOF 15917cat confdefs.h >>conftest.$ac_ext 15918cat >>conftest.$ac_ext <<_ACEOF 15919/* end confdefs.h. */ 15920 15921/* Override any GCC internal prototype to avoid an error. 15922 Use char because int might match the return type of a GCC 15923 builtin and then its argument prototype would still apply. */ 15924#ifdef __cplusplus 15925extern "C" 15926#endif 15927char FcInit (); 15928int 15929main () 15930{ 15931return FcInit (); 15932 ; 15933 return 0; 15934} 15935_ACEOF 15936rm -f conftest.$ac_objext conftest$ac_exeext 15937if { (ac_try="$ac_link" 15938case "(($ac_try" in 15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15940 *) ac_try_echo=$ac_try;; 15941esac 15942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15943 (eval "$ac_link") 2>conftest.er1 15944 ac_status=$? 15945 grep -v '^ *+' conftest.er1 >conftest.err 15946 rm -f conftest.er1 15947 cat conftest.err >&5 15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15949 (exit $ac_status); } && { 15950 test -z "$ac_c_werror_flag" || 15951 test ! -s conftest.err 15952 } && test -s conftest$ac_exeext && 15953 $as_test_x conftest$ac_exeext; then 15954 ac_cv_lib_fontconfig_FcInit=yes 15955else 15956 echo "$as_me: failed program was:" >&5 15957sed 's/^/| /' conftest.$ac_ext >&5 15958 15959 ac_cv_lib_fontconfig_FcInit=no 15960fi 15961 15962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15963 conftest$ac_exeext conftest.$ac_ext 15964LIBS=$ac_check_lib_save_LIBS 15965fi 15966{ echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5 15967echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6; } 15968if test $ac_cv_lib_fontconfig_FcInit = yes; then 15969 LIBS="-lfontconfig $LIBS" 15970else 15971 no_fc="yes" 15972 15973fi 15974 15975 15976fi 15977 15978 15979 15980else 15981 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS 15982 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS 15983 { echo "$as_me:$LINENO: result: yes" >&5 15984echo "${ECHO_T}yes" >&6; } 15985 : 15986fi 15987 15988 15989if (test "x$no_fc" = "xyes"); then 15990 { { echo "$as_me:$LINENO: error: Unable to locate the required Fontconfig library" >&5 15991echo "$as_me: error: Unable to locate the required Fontconfig library" >&2;} 15992 { (exit 1); exit 1; }; } 15993fi 15994 15995 15996# Checks for Unicode libraries. 15997# ----------------------------- 15998 15999if (test "x$with_fribidi" = "xyes"); then 16000 16001 16002pkg_failed=no 16003{ echo "$as_me:$LINENO: checking for FRIBIDI" >&5 16004echo $ECHO_N "checking for FRIBIDI... $ECHO_C" >&6; } 16005 16006if test -n "$PKG_CONFIG"; then 16007 if test -n "$FRIBIDI_CFLAGS"; then 16008 pkg_cv_FRIBIDI_CFLAGS="$FRIBIDI_CFLAGS" 16009 else 16010 if test -n "$PKG_CONFIG" && \ 16011 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.10.4\"") >&5 16012 ($PKG_CONFIG --exists --print-errors "fribidi >= 0.10.4") 2>&5 16013 ac_status=$? 16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16015 (exit $ac_status); }; then 16016 pkg_cv_FRIBIDI_CFLAGS=`$PKG_CONFIG --cflags "fribidi >= 0.10.4" 2>/dev/null` 16017else 16018 pkg_failed=yes 16019fi 16020 fi 16021else 16022 pkg_failed=untried 16023fi 16024if test -n "$PKG_CONFIG"; then 16025 if test -n "$FRIBIDI_LIBS"; then 16026 pkg_cv_FRIBIDI_LIBS="$FRIBIDI_LIBS" 16027 else 16028 if test -n "$PKG_CONFIG" && \ 16029 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.10.4\"") >&5 16030 ($PKG_CONFIG --exists --print-errors "fribidi >= 0.10.4") 2>&5 16031 ac_status=$? 16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16033 (exit $ac_status); }; then 16034 pkg_cv_FRIBIDI_LIBS=`$PKG_CONFIG --libs "fribidi >= 0.10.4" 2>/dev/null` 16035else 16036 pkg_failed=yes 16037fi 16038 fi 16039else 16040 pkg_failed=untried 16041fi 16042 16043 16044 16045if test $pkg_failed = yes; then 16046 16047if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16048 _pkg_short_errors_supported=yes 16049else 16050 _pkg_short_errors_supported=no 16051fi 16052 if test $_pkg_short_errors_supported = yes; then 16053 FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fribidi >= 0.10.4"` 16054 else 16055 FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fribidi >= 0.10.4"` 16056 fi 16057 # Put the nasty error message in config.log where it belongs 16058 echo "$FRIBIDI_PKG_ERRORS" >&5 16059 16060 { echo "$as_me:$LINENO: result: no" >&5 16061echo "${ECHO_T}no" >&6; } 16062 16063 { echo "$as_me:$LINENO: checking for fribidi_log2vis in -lfribidi" >&5 16064echo $ECHO_N "checking for fribidi_log2vis in -lfribidi... $ECHO_C" >&6; } 16065if test "${ac_cv_lib_fribidi_fribidi_log2vis+set}" = set; then 16066 echo $ECHO_N "(cached) $ECHO_C" >&6 16067else 16068 ac_check_lib_save_LIBS=$LIBS 16069LIBS="-lfribidi $LIBS" 16070cat >conftest.$ac_ext <<_ACEOF 16071/* confdefs.h. */ 16072_ACEOF 16073cat confdefs.h >>conftest.$ac_ext 16074cat >>conftest.$ac_ext <<_ACEOF 16075/* end confdefs.h. */ 16076 16077/* Override any GCC internal prototype to avoid an error. 16078 Use char because int might match the return type of a GCC 16079 builtin and then its argument prototype would still apply. */ 16080#ifdef __cplusplus 16081extern "C" 16082#endif 16083char fribidi_log2vis (); 16084int 16085main () 16086{ 16087return fribidi_log2vis (); 16088 ; 16089 return 0; 16090} 16091_ACEOF 16092rm -f conftest.$ac_objext conftest$ac_exeext 16093if { (ac_try="$ac_link" 16094case "(($ac_try" in 16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16096 *) ac_try_echo=$ac_try;; 16097esac 16098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16099 (eval "$ac_link") 2>conftest.er1 16100 ac_status=$? 16101 grep -v '^ *+' conftest.er1 >conftest.err 16102 rm -f conftest.er1 16103 cat conftest.err >&5 16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16105 (exit $ac_status); } && { 16106 test -z "$ac_c_werror_flag" || 16107 test ! -s conftest.err 16108 } && test -s conftest$ac_exeext && 16109 $as_test_x conftest$ac_exeext; then 16110 ac_cv_lib_fribidi_fribidi_log2vis=yes 16111else 16112 echo "$as_me: failed program was:" >&5 16113sed 's/^/| /' conftest.$ac_ext >&5 16114 16115 ac_cv_lib_fribidi_fribidi_log2vis=no 16116fi 16117 16118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16119 conftest$ac_exeext conftest.$ac_ext 16120LIBS=$ac_check_lib_save_LIBS 16121fi 16122{ echo "$as_me:$LINENO: result: $ac_cv_lib_fribidi_fribidi_log2vis" >&5 16123echo "${ECHO_T}$ac_cv_lib_fribidi_fribidi_log2vis" >&6; } 16124if test $ac_cv_lib_fribidi_fribidi_log2vis = yes; then 16125 LIBS="-lfribidi $LIBS" 16126else 16127 no_fribidi="yes" 16128 16129fi 16130 16131 16132elif test $pkg_failed = untried; then 16133 16134 { echo "$as_me:$LINENO: checking for fribidi_log2vis in -lfribidi" >&5 16135echo $ECHO_N "checking for fribidi_log2vis in -lfribidi... $ECHO_C" >&6; } 16136if test "${ac_cv_lib_fribidi_fribidi_log2vis+set}" = set; then 16137 echo $ECHO_N "(cached) $ECHO_C" >&6 16138else 16139 ac_check_lib_save_LIBS=$LIBS 16140LIBS="-lfribidi $LIBS" 16141cat >conftest.$ac_ext <<_ACEOF 16142/* confdefs.h. */ 16143_ACEOF 16144cat confdefs.h >>conftest.$ac_ext 16145cat >>conftest.$ac_ext <<_ACEOF 16146/* end confdefs.h. */ 16147 16148/* Override any GCC internal prototype to avoid an error. 16149 Use char because int might match the return type of a GCC 16150 builtin and then its argument prototype would still apply. */ 16151#ifdef __cplusplus 16152extern "C" 16153#endif 16154char fribidi_log2vis (); 16155int 16156main () 16157{ 16158return fribidi_log2vis (); 16159 ; 16160 return 0; 16161} 16162_ACEOF 16163rm -f conftest.$ac_objext conftest$ac_exeext 16164if { (ac_try="$ac_link" 16165case "(($ac_try" in 16166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16167 *) ac_try_echo=$ac_try;; 16168esac 16169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16170 (eval "$ac_link") 2>conftest.er1 16171 ac_status=$? 16172 grep -v '^ *+' conftest.er1 >conftest.err 16173 rm -f conftest.er1 16174 cat conftest.err >&5 16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16176 (exit $ac_status); } && { 16177 test -z "$ac_c_werror_flag" || 16178 test ! -s conftest.err 16179 } && test -s conftest$ac_exeext && 16180 $as_test_x conftest$ac_exeext; then 16181 ac_cv_lib_fribidi_fribidi_log2vis=yes 16182else 16183 echo "$as_me: failed program was:" >&5 16184sed 's/^/| /' conftest.$ac_ext >&5 16185 16186 ac_cv_lib_fribidi_fribidi_log2vis=no 16187fi 16188 16189rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16190 conftest$ac_exeext conftest.$ac_ext 16191LIBS=$ac_check_lib_save_LIBS 16192fi 16193{ echo "$as_me:$LINENO: result: $ac_cv_lib_fribidi_fribidi_log2vis" >&5 16194echo "${ECHO_T}$ac_cv_lib_fribidi_fribidi_log2vis" >&6; } 16195if test $ac_cv_lib_fribidi_fribidi_log2vis = yes; then 16196 LIBS="-lfribidi $LIBS" 16197else 16198 no_fribidi="yes" 16199 16200fi 16201 16202 16203else 16204 FRIBIDI_CFLAGS=$pkg_cv_FRIBIDI_CFLAGS 16205 FRIBIDI_LIBS=$pkg_cv_FRIBIDI_LIBS 16206 { echo "$as_me:$LINENO: result: yes" >&5 16207echo "${ECHO_T}yes" >&6; } 16208 : 16209fi 16210 16211 if (test "x$no_fribidi" = "xyes"); then 16212 { echo "$as_me:$LINENO: FriBiDi will be built and embedded" >&5 16213echo "$as_me: FriBiDi will be built and embedded" >&6;} 16214 fi 16215else 16216 no_fribidi="yes" 16217fi 16218 16219if (test "x$no_fribidi" = "xyes"); then 16220 FRIBIDI_OBJ="libGLC_la-fribidi.lo libGLC_la-fribidi_char_type.lo \ 16221 libGLC_la-fribidi_mirroring.lo libGLC_la-fribidi_types.lo" 16222else 16223 PKGCONFIG_REQUIREMENTS="fribidi" 16224fi 16225 16226# Checks for OpenGL and related libraries. 16227# ---------------------------------------- 16228 16229{ echo "$as_me:$LINENO: checking for X" >&5 16230echo $ECHO_N "checking for X... $ECHO_C" >&6; } 16231 16232 16233# Check whether --with-x was given. 16234if test "${with_x+set}" = set; then 16235 withval=$with_x; 16236fi 16237 16238# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 16239if test "x$with_x" = xno; then 16240 # The user explicitly disabled X. 16241 have_x=disabled 16242else 16243 case $x_includes,$x_libraries in #( 16244 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 16245echo "$as_me: error: Cannot use X directory names containing '" >&2;} 16246 { (exit 1); exit 1; }; };; #( 16247 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 16248 echo $ECHO_N "(cached) $ECHO_C" >&6 16249else 16250 # One or both of the vars are not set, and there is no cached value. 16251ac_x_includes=no ac_x_libraries=no 16252rm -f -r conftest.dir 16253if mkdir conftest.dir; then 16254 cd conftest.dir 16255 cat >Imakefile <<'_ACEOF' 16256incroot: 16257 @echo incroot='${INCROOT}' 16258usrlibdir: 16259 @echo usrlibdir='${USRLIBDIR}' 16260libdir: 16261 @echo libdir='${LIBDIR}' 16262_ACEOF 16263 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 16264 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 16265 for ac_var in incroot usrlibdir libdir; do 16266 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 16267 done 16268 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 16269 for ac_extension in a so sl; do 16270 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 16271 test -f "$ac_im_libdir/libX11.$ac_extension"; then 16272 ac_im_usrlibdir=$ac_im_libdir; break 16273 fi 16274 done 16275 # Screen out bogus values from the imake configuration. They are 16276 # bogus both because they are the default anyway, and because 16277 # using them would break gcc on systems where it needs fixed includes. 16278 case $ac_im_incroot in 16279 /usr/include) ac_x_includes= ;; 16280 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 16281 esac 16282 case $ac_im_usrlibdir in 16283 /usr/lib | /lib) ;; 16284 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 16285 esac 16286 fi 16287 cd .. 16288 rm -f -r conftest.dir 16289fi 16290 16291# Standard set of common directories for X headers. 16292# Check X11 before X11Rn because it is often a symlink to the current release. 16293ac_x_header_dirs=' 16294/usr/X11/include 16295/usr/X11R6/include 16296/usr/X11R5/include 16297/usr/X11R4/include 16298 16299/usr/include/X11 16300/usr/include/X11R6 16301/usr/include/X11R5 16302/usr/include/X11R4 16303 16304/usr/local/X11/include 16305/usr/local/X11R6/include 16306/usr/local/X11R5/include 16307/usr/local/X11R4/include 16308 16309/usr/local/include/X11 16310/usr/local/include/X11R6 16311/usr/local/include/X11R5 16312/usr/local/include/X11R4 16313 16314/usr/X386/include 16315/usr/x386/include 16316/usr/XFree86/include/X11 16317 16318/usr/include 16319/usr/local/include 16320/usr/unsupported/include 16321/usr/athena/include 16322/usr/local/x11r5/include 16323/usr/lpp/Xamples/include 16324 16325/usr/openwin/include 16326/usr/openwin/share/include' 16327 16328if test "$ac_x_includes" = no; then 16329 # Guess where to find include files, by looking for Xlib.h. 16330 # First, try using that file with no special directory specified. 16331 cat >conftest.$ac_ext <<_ACEOF 16332/* confdefs.h. */ 16333_ACEOF 16334cat confdefs.h >>conftest.$ac_ext 16335cat >>conftest.$ac_ext <<_ACEOF 16336/* end confdefs.h. */ 16337#include <X11/Xlib.h> 16338_ACEOF 16339if { (ac_try="$ac_cpp conftest.$ac_ext" 16340case "(($ac_try" in 16341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16342 *) ac_try_echo=$ac_try;; 16343esac 16344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16346 ac_status=$? 16347 grep -v '^ *+' conftest.er1 >conftest.err 16348 rm -f conftest.er1 16349 cat conftest.err >&5 16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16351 (exit $ac_status); } >/dev/null && { 16352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16353 test ! -s conftest.err 16354 }; then 16355 # We can compile using X headers with no special include directory. 16356ac_x_includes= 16357else 16358 echo "$as_me: failed program was:" >&5 16359sed 's/^/| /' conftest.$ac_ext >&5 16360 16361 for ac_dir in $ac_x_header_dirs; do 16362 if test -r "$ac_dir/X11/Xlib.h"; then 16363 ac_x_includes=$ac_dir 16364 break 16365 fi 16366done 16367fi 16368 16369rm -f conftest.err conftest.$ac_ext 16370fi # $ac_x_includes = no 16371 16372if test "$ac_x_libraries" = no; then 16373 # Check for the libraries. 16374 # See if we find them without any special options. 16375 # Don't add to $LIBS permanently. 16376 ac_save_LIBS=$LIBS 16377 LIBS="-lX11 $LIBS" 16378 cat >conftest.$ac_ext <<_ACEOF 16379/* confdefs.h. */ 16380_ACEOF 16381cat confdefs.h >>conftest.$ac_ext 16382cat >>conftest.$ac_ext <<_ACEOF 16383/* end confdefs.h. */ 16384#include <X11/Xlib.h> 16385int 16386main () 16387{ 16388XrmInitialize () 16389 ; 16390 return 0; 16391} 16392_ACEOF 16393rm -f conftest.$ac_objext conftest$ac_exeext 16394if { (ac_try="$ac_link" 16395case "(($ac_try" in 16396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16397 *) ac_try_echo=$ac_try;; 16398esac 16399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16400 (eval "$ac_link") 2>conftest.er1 16401 ac_status=$? 16402 grep -v '^ *+' conftest.er1 >conftest.err 16403 rm -f conftest.er1 16404 cat conftest.err >&5 16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16406 (exit $ac_status); } && { 16407 test -z "$ac_c_werror_flag" || 16408 test ! -s conftest.err 16409 } && test -s conftest$ac_exeext && 16410 $as_test_x conftest$ac_exeext; then 16411 LIBS=$ac_save_LIBS 16412# We can link X programs with no special library path. 16413ac_x_libraries= 16414else 16415 echo "$as_me: failed program was:" >&5 16416sed 's/^/| /' conftest.$ac_ext >&5 16417 16418 LIBS=$ac_save_LIBS 16419for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 16420do 16421 # Don't even attempt the hair of trying to link an X program! 16422 for ac_extension in a so sl; do 16423 if test -r "$ac_dir/libX11.$ac_extension"; then 16424 ac_x_libraries=$ac_dir 16425 break 2 16426 fi 16427 done 16428done 16429fi 16430 16431rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16432 conftest$ac_exeext conftest.$ac_ext 16433fi # $ac_x_libraries = no 16434 16435case $ac_x_includes,$ac_x_libraries in #( 16436 no,* | *,no | *\'*) 16437 # Didn't find X, or a directory has "'" in its name. 16438 ac_cv_have_x="have_x=no";; #( 16439 *) 16440 # Record where we found X for the cache. 16441 ac_cv_have_x="have_x=yes\ 16442 ac_x_includes='$ac_x_includes'\ 16443 ac_x_libraries='$ac_x_libraries'" 16444esac 16445fi 16446;; #( 16447 *) have_x=yes;; 16448 esac 16449 eval "$ac_cv_have_x" 16450fi # $with_x != no 16451 16452if test "$have_x" != yes; then 16453 { echo "$as_me:$LINENO: result: $have_x" >&5 16454echo "${ECHO_T}$have_x" >&6; } 16455 no_x=yes 16456else 16457 # If each of the values was on the command line, it overrides each guess. 16458 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 16459 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 16460 # Update the cache value to reflect the command line values. 16461 ac_cv_have_x="have_x=yes\ 16462 ac_x_includes='$x_includes'\ 16463 ac_x_libraries='$x_libraries'" 16464 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 16465echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 16466fi 16467 16468 16469 16470# 16471# There isn't a reliable way to know we should use the Apple OpenGL framework 16472# without a configure option. A Mac OS X user may have installed an 16473# alternative GL implementation (e.g., Mesa), which may or may not depend on X. 16474# 16475 16476# Check whether --with-apple-opengl-framework was given. 16477if test "${with_apple_opengl_framework+set}" = set; then 16478 withval=$with_apple_opengl_framework; 16479fi 16480 16481if test "X$with_apple_opengl_framework" = "Xyes"; then 16482 16483cat >>confdefs.h <<\_ACEOF 16484#define HAVE_APPLE_OPENGL_FRAMEWORK 1 16485_ACEOF 16486 16487 GL_LIBS="-framework OpenGL" 16488else 16489 16490 ac_ext=c 16491ac_cpp='$CPP $CPPFLAGS' 16492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16494ac_compiler_gnu=$ac_cv_c_compiler_gnu 16495 16496 16497 { echo "$as_me:$LINENO: checking whether we are using the Microsoft C compiler" >&5 16498echo $ECHO_N "checking whether we are using the Microsoft C compiler... $ECHO_C" >&6; } 16499if test "${ax_cv_c_compiler_ms+set}" = set; then 16500 echo $ECHO_N "(cached) $ECHO_C" >&6 16501else 16502 cat >conftest.$ac_ext <<_ACEOF 16503/* confdefs.h. */ 16504_ACEOF 16505cat confdefs.h >>conftest.$ac_ext 16506cat >>conftest.$ac_ext <<_ACEOF 16507/* end confdefs.h. */ 16508 16509int 16510main () 16511{ 16512#ifndef _MSC_VER 16513 choke me 16514#endif 16515 16516 ; 16517 return 0; 16518} 16519_ACEOF 16520rm -f conftest.$ac_objext 16521if { (ac_try="$ac_compile" 16522case "(($ac_try" in 16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16524 *) ac_try_echo=$ac_try;; 16525esac 16526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16527 (eval "$ac_compile") 2>conftest.er1 16528 ac_status=$? 16529 grep -v '^ *+' conftest.er1 >conftest.err 16530 rm -f conftest.er1 16531 cat conftest.err >&5 16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16533 (exit $ac_status); } && { 16534 test -z "$ac_c_werror_flag" || 16535 test ! -s conftest.err 16536 } && test -s conftest.$ac_objext; then 16537 ax_compiler_ms=yes 16538else 16539 echo "$as_me: failed program was:" >&5 16540sed 's/^/| /' conftest.$ac_ext >&5 16541 16542 ax_compiler_ms=no 16543fi 16544 16545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16546ax_cv_c_compiler_ms=$ax_compiler_ms 16547 16548fi 16549{ echo "$as_me:$LINENO: result: $ax_cv_c_compiler_ms" >&5 16550echo "${ECHO_T}$ax_cv_c_compiler_ms" >&6; } 16551 if test X$ax_compiler_ms = Xno; then 16552 GL_CFLAGS="${PTHREAD_CFLAGS}" 16553 GL_LIBS="${PTHREAD_LIBS} -lm" 16554 fi 16555 16556 # 16557 # Use x_includes and x_libraries if they have been set (presumably by 16558 # AC_PATH_X). 16559 # 16560 if test "X$no_x" != "Xyes"; then 16561 if test -n "$x_includes"; then 16562 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" 16563 fi 16564 if test -n "$x_libraries"; then 16565 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" 16566 fi 16567 fi 16568 16569 16570for ac_header in windows.h 16571do 16572as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16574 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16577 echo $ECHO_N "(cached) $ECHO_C" >&6 16578fi 16579ac_res=`eval echo '${'$as_ac_Header'}'` 16580 { echo "$as_me:$LINENO: result: $ac_res" >&5 16581echo "${ECHO_T}$ac_res" >&6; } 16582else 16583 # Is the header compilable? 16584{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16585echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16586cat >conftest.$ac_ext <<_ACEOF 16587/* confdefs.h. */ 16588_ACEOF 16589cat confdefs.h >>conftest.$ac_ext 16590cat >>conftest.$ac_ext <<_ACEOF 16591/* end confdefs.h. */ 16592$ac_includes_default 16593#include <$ac_header> 16594_ACEOF 16595rm -f conftest.$ac_objext 16596if { (ac_try="$ac_compile" 16597case "(($ac_try" in 16598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16599 *) ac_try_echo=$ac_try;; 16600esac 16601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16602 (eval "$ac_compile") 2>conftest.er1 16603 ac_status=$? 16604 grep -v '^ *+' conftest.er1 >conftest.err 16605 rm -f conftest.er1 16606 cat conftest.err >&5 16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16608 (exit $ac_status); } && { 16609 test -z "$ac_c_werror_flag" || 16610 test ! -s conftest.err 16611 } && test -s conftest.$ac_objext; then 16612 ac_header_compiler=yes 16613else 16614 echo "$as_me: failed program was:" >&5 16615sed 's/^/| /' conftest.$ac_ext >&5 16616 16617 ac_header_compiler=no 16618fi 16619 16620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16621{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16622echo "${ECHO_T}$ac_header_compiler" >&6; } 16623 16624# Is the header present? 16625{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16627cat >conftest.$ac_ext <<_ACEOF 16628/* confdefs.h. */ 16629_ACEOF 16630cat confdefs.h >>conftest.$ac_ext 16631cat >>conftest.$ac_ext <<_ACEOF 16632/* end confdefs.h. */ 16633#include <$ac_header> 16634_ACEOF 16635if { (ac_try="$ac_cpp conftest.$ac_ext" 16636case "(($ac_try" in 16637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16638 *) ac_try_echo=$ac_try;; 16639esac 16640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16642 ac_status=$? 16643 grep -v '^ *+' conftest.er1 >conftest.err 16644 rm -f conftest.er1 16645 cat conftest.err >&5 16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16647 (exit $ac_status); } >/dev/null && { 16648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16649 test ! -s conftest.err 16650 }; then 16651 ac_header_preproc=yes 16652else 16653 echo "$as_me: failed program was:" >&5 16654sed 's/^/| /' conftest.$ac_ext >&5 16655 16656 ac_header_preproc=no 16657fi 16658 16659rm -f conftest.err conftest.$ac_ext 16660{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16661echo "${ECHO_T}$ac_header_preproc" >&6; } 16662 16663# So? What about this header? 16664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16665 yes:no: ) 16666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16667echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16669echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16670 ac_header_preproc=yes 16671 ;; 16672 no:yes:* ) 16673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16674echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16676echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16678echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16680echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16682echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16684echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16685 ( cat <<\_ASBOX 16686## ----------------------------------------------------- ## 16687## Report this to quesoglc-general@lists.sourceforge.net ## 16688## ----------------------------------------------------- ## 16689_ASBOX 16690 ) | sed "s/^/$as_me: WARNING: /" >&2 16691 ;; 16692esac 16693{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16696 echo $ECHO_N "(cached) $ECHO_C" >&6 16697else 16698 eval "$as_ac_Header=\$ac_header_preproc" 16699fi 16700ac_res=`eval echo '${'$as_ac_Header'}'` 16701 { echo "$as_me:$LINENO: result: $ac_res" >&5 16702echo "${ECHO_T}$ac_res" >&6; } 16703 16704fi 16705if test `eval echo '${'$as_ac_Header'}'` = yes; then 16706 cat >>confdefs.h <<_ACEOF 16707#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16708_ACEOF 16709 16710fi 16711 16712done 16713 16714 16715 { echo "$as_me:$LINENO: checking for OpenGL library" >&5 16716echo $ECHO_N "checking for OpenGL library... $ECHO_C" >&6; } 16717if test "${ax_cv_check_gl_libgl+set}" = set; then 16718 echo $ECHO_N "(cached) $ECHO_C" >&6 16719else 16720 ax_cv_check_gl_libgl="no" 16721 ax_save_CPPFLAGS="${CPPFLAGS}" 16722 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 16723 ax_save_LIBS="${LIBS}" 16724 LIBS="" 16725 ax_check_libs="-lopengl32 -lGL" 16726 for ax_lib in ${ax_check_libs}; do 16727 if test X$ax_compiler_ms = Xyes; then 16728 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 16729 else 16730 ax_try_lib="${ax_lib}" 16731 fi 16732 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 16733 cat >conftest.$ac_ext <<_ACEOF 16734/* confdefs.h. */ 16735_ACEOF 16736cat confdefs.h >>conftest.$ac_ext 16737cat >>conftest.$ac_ext <<_ACEOF 16738/* end confdefs.h. */ 16739 16740# if HAVE_WINDOWS_H && defined(_WIN32) 16741# include <windows.h> 16742# endif 16743# include <GL/gl.h> 16744int 16745main () 16746{ 16747glBegin(0) 16748 ; 16749 return 0; 16750} 16751_ACEOF 16752rm -f conftest.$ac_objext conftest$ac_exeext 16753if { (ac_try="$ac_link" 16754case "(($ac_try" in 16755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16756 *) ac_try_echo=$ac_try;; 16757esac 16758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16759 (eval "$ac_link") 2>conftest.er1 16760 ac_status=$? 16761 grep -v '^ *+' conftest.er1 >conftest.err 16762 rm -f conftest.er1 16763 cat conftest.err >&5 16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16765 (exit $ac_status); } && { 16766 test -z "$ac_c_werror_flag" || 16767 test ! -s conftest.err 16768 } && test -s conftest$ac_exeext && 16769 $as_test_x conftest$ac_exeext; then 16770 ax_cv_check_gl_libgl="${ax_try_lib}"; break 16771else 16772 echo "$as_me: failed program was:" >&5 16773sed 's/^/| /' conftest.$ac_ext >&5 16774 16775 16776fi 16777 16778rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16779 conftest$ac_exeext conftest.$ac_ext 16780 done 16781 LIBS=${ax_save_LIBS} 16782 CPPFLAGS=${ax_save_CPPFLAGS} 16783fi 16784{ echo "$as_me:$LINENO: result: $ax_cv_check_gl_libgl" >&5 16785echo "${ECHO_T}$ax_cv_check_gl_libgl" >&6; } 16786 16787 if test "X${ax_cv_check_gl_libgl}" = "Xno"; then 16788 no_gl="yes" 16789 GL_CFLAGS="" 16790 GL_LIBS="" 16791 else 16792 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" 16793 fi 16794 ac_ext=c 16795ac_cpp='$CPP $CPPFLAGS' 16796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16798ac_compiler_gnu=$ac_cv_c_compiler_gnu 16799 16800fi 16801 16802 16803 16804 16805 16806if (test "x$no_gl" = "xyes"); then 16807 { { echo "$as_me:$LINENO: error: OpenGL not found" >&5 16808echo "$as_me: error: OpenGL not found" >&2;} 16809 { (exit 1); exit 1; }; } 16810fi 16811 16812 16813 16814ac_ext=cpp 16815ac_cpp='$CXXCPP $CPPFLAGS' 16816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16819if test -z "$CXX"; then 16820 if test -n "$CCC"; then 16821 CXX=$CCC 16822 else 16823 if test -n "$ac_tool_prefix"; then 16824 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 16825 do 16826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 16827set dummy $ac_tool_prefix$ac_prog; ac_word=$2 16828{ echo "$as_me:$LINENO: checking for $ac_word" >&5 16829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 16830if test "${ac_cv_prog_CXX+set}" = set; then 16831 echo $ECHO_N "(cached) $ECHO_C" >&6 16832else 16833 if test -n "$CXX"; then 16834 ac_cv_prog_CXX="$CXX" # Let the user override the test. 16835else 16836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16837for as_dir in $PATH 16838do 16839 IFS=$as_save_IFS 16840 test -z "$as_dir" && as_dir=. 16841 for ac_exec_ext in '' $ac_executable_extensions; do 16842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16843 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 16844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 16845 break 2 16846 fi 16847done 16848done 16849IFS=$as_save_IFS 16850 16851fi 16852fi 16853CXX=$ac_cv_prog_CXX 16854if test -n "$CXX"; then 16855 { echo "$as_me:$LINENO: result: $CXX" >&5 16856echo "${ECHO_T}$CXX" >&6; } 16857else 16858 { echo "$as_me:$LINENO: result: no" >&5 16859echo "${ECHO_T}no" >&6; } 16860fi 16861 16862 16863 test -n "$CXX" && break 16864 done 16865fi 16866if test -z "$CXX"; then 16867 ac_ct_CXX=$CXX 16868 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 16869do 16870 # Extract the first word of "$ac_prog", so it can be a program name with args. 16871set dummy $ac_prog; ac_word=$2 16872{ echo "$as_me:$LINENO: checking for $ac_word" >&5 16873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 16874if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 16875 echo $ECHO_N "(cached) $ECHO_C" >&6 16876else 16877 if test -n "$ac_ct_CXX"; then 16878 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 16879else 16880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16881for as_dir in $PATH 16882do 16883 IFS=$as_save_IFS 16884 test -z "$as_dir" && as_dir=. 16885 for ac_exec_ext in '' $ac_executable_extensions; do 16886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16887 ac_cv_prog_ac_ct_CXX="$ac_prog" 16888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 16889 break 2 16890 fi 16891done 16892done 16893IFS=$as_save_IFS 16894 16895fi 16896fi 16897ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 16898if test -n "$ac_ct_CXX"; then 16899 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 16900echo "${ECHO_T}$ac_ct_CXX" >&6; } 16901else 16902 { echo "$as_me:$LINENO: result: no" >&5 16903echo "${ECHO_T}no" >&6; } 16904fi 16905 16906 16907 test -n "$ac_ct_CXX" && break 16908done 16909 16910 if test "x$ac_ct_CXX" = x; then 16911 CXX="g++" 16912 else 16913 case $cross_compiling:$ac_tool_warned in 16914yes:) 16915{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 16916whose name does not start with the host triplet. If you think this 16917configuration is useful to you, please write to autoconf@gnu.org." >&5 16918echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 16919whose name does not start with the host triplet. If you think this 16920configuration is useful to you, please write to autoconf@gnu.org." >&2;} 16921ac_tool_warned=yes ;; 16922esac 16923 CXX=$ac_ct_CXX 16924 fi 16925fi 16926 16927 fi 16928fi 16929# Provide some information about the compiler. 16930echo "$as_me:$LINENO: checking for C++ compiler version" >&5 16931ac_compiler=`set X $ac_compile; echo $2` 16932{ (ac_try="$ac_compiler --version >&5" 16933case "(($ac_try" in 16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16935 *) ac_try_echo=$ac_try;; 16936esac 16937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16938 (eval "$ac_compiler --version >&5") 2>&5 16939 ac_status=$? 16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16941 (exit $ac_status); } 16942{ (ac_try="$ac_compiler -v >&5" 16943case "(($ac_try" in 16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16945 *) ac_try_echo=$ac_try;; 16946esac 16947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16948 (eval "$ac_compiler -v >&5") 2>&5 16949 ac_status=$? 16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16951 (exit $ac_status); } 16952{ (ac_try="$ac_compiler -V >&5" 16953case "(($ac_try" in 16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16955 *) ac_try_echo=$ac_try;; 16956esac 16957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16958 (eval "$ac_compiler -V >&5") 2>&5 16959 ac_status=$? 16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16961 (exit $ac_status); } 16962 16963{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 16964echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 16965if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 16966 echo $ECHO_N "(cached) $ECHO_C" >&6 16967else 16968 cat >conftest.$ac_ext <<_ACEOF 16969/* confdefs.h. */ 16970_ACEOF 16971cat confdefs.h >>conftest.$ac_ext 16972cat >>conftest.$ac_ext <<_ACEOF 16973/* end confdefs.h. */ 16974 16975int 16976main () 16977{ 16978#ifndef __GNUC__ 16979 choke me 16980#endif 16981 16982 ; 16983 return 0; 16984} 16985_ACEOF 16986rm -f conftest.$ac_objext 16987if { (ac_try="$ac_compile" 16988case "(($ac_try" in 16989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16990 *) ac_try_echo=$ac_try;; 16991esac 16992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16993 (eval "$ac_compile") 2>conftest.er1 16994 ac_status=$? 16995 grep -v '^ *+' conftest.er1 >conftest.err 16996 rm -f conftest.er1 16997 cat conftest.err >&5 16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16999 (exit $ac_status); } && { 17000 test -z "$ac_cxx_werror_flag" || 17001 test ! -s conftest.err 17002 } && test -s conftest.$ac_objext; then 17003 ac_compiler_gnu=yes 17004else 17005 echo "$as_me: failed program was:" >&5 17006sed 's/^/| /' conftest.$ac_ext >&5 17007 17008 ac_compiler_gnu=no 17009fi 17010 17011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17012ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 17013 17014fi 17015{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 17016echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 17017GXX=`test $ac_compiler_gnu = yes && echo yes` 17018ac_test_CXXFLAGS=${CXXFLAGS+set} 17019ac_save_CXXFLAGS=$CXXFLAGS 17020{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 17021echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 17022if test "${ac_cv_prog_cxx_g+set}" = set; then 17023 echo $ECHO_N "(cached) $ECHO_C" >&6 17024else 17025 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 17026 ac_cxx_werror_flag=yes 17027 ac_cv_prog_cxx_g=no 17028 CXXFLAGS="-g" 17029 cat >conftest.$ac_ext <<_ACEOF 17030/* confdefs.h. */ 17031_ACEOF 17032cat confdefs.h >>conftest.$ac_ext 17033cat >>conftest.$ac_ext <<_ACEOF 17034/* end confdefs.h. */ 17035 17036int 17037main () 17038{ 17039 17040 ; 17041 return 0; 17042} 17043_ACEOF 17044rm -f conftest.$ac_objext 17045if { (ac_try="$ac_compile" 17046case "(($ac_try" in 17047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17048 *) ac_try_echo=$ac_try;; 17049esac 17050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17051 (eval "$ac_compile") 2>conftest.er1 17052 ac_status=$? 17053 grep -v '^ *+' conftest.er1 >conftest.err 17054 rm -f conftest.er1 17055 cat conftest.err >&5 17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17057 (exit $ac_status); } && { 17058 test -z "$ac_cxx_werror_flag" || 17059 test ! -s conftest.err 17060 } && test -s conftest.$ac_objext; then 17061 ac_cv_prog_cxx_g=yes 17062else 17063 echo "$as_me: failed program was:" >&5 17064sed 's/^/| /' conftest.$ac_ext >&5 17065 17066 CXXFLAGS="" 17067 cat >conftest.$ac_ext <<_ACEOF 17068/* confdefs.h. */ 17069_ACEOF 17070cat confdefs.h >>conftest.$ac_ext 17071cat >>conftest.$ac_ext <<_ACEOF 17072/* end confdefs.h. */ 17073 17074int 17075main () 17076{ 17077 17078 ; 17079 return 0; 17080} 17081_ACEOF 17082rm -f conftest.$ac_objext 17083if { (ac_try="$ac_compile" 17084case "(($ac_try" in 17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17086 *) ac_try_echo=$ac_try;; 17087esac 17088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17089 (eval "$ac_compile") 2>conftest.er1 17090 ac_status=$? 17091 grep -v '^ *+' conftest.er1 >conftest.err 17092 rm -f conftest.er1 17093 cat conftest.err >&5 17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17095 (exit $ac_status); } && { 17096 test -z "$ac_cxx_werror_flag" || 17097 test ! -s conftest.err 17098 } && test -s conftest.$ac_objext; then 17099 : 17100else 17101 echo "$as_me: failed program was:" >&5 17102sed 's/^/| /' conftest.$ac_ext >&5 17103 17104 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 17105 CXXFLAGS="-g" 17106 cat >conftest.$ac_ext <<_ACEOF 17107/* confdefs.h. */ 17108_ACEOF 17109cat confdefs.h >>conftest.$ac_ext 17110cat >>conftest.$ac_ext <<_ACEOF 17111/* end confdefs.h. */ 17112 17113int 17114main () 17115{ 17116 17117 ; 17118 return 0; 17119} 17120_ACEOF 17121rm -f conftest.$ac_objext 17122if { (ac_try="$ac_compile" 17123case "(($ac_try" in 17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17125 *) ac_try_echo=$ac_try;; 17126esac 17127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17128 (eval "$ac_compile") 2>conftest.er1 17129 ac_status=$? 17130 grep -v '^ *+' conftest.er1 >conftest.err 17131 rm -f conftest.er1 17132 cat conftest.err >&5 17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17134 (exit $ac_status); } && { 17135 test -z "$ac_cxx_werror_flag" || 17136 test ! -s conftest.err 17137 } && test -s conftest.$ac_objext; then 17138 ac_cv_prog_cxx_g=yes 17139else 17140 echo "$as_me: failed program was:" >&5 17141sed 's/^/| /' conftest.$ac_ext >&5 17142 17143 17144fi 17145 17146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17147fi 17148 17149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17150fi 17151 17152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17153 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 17154fi 17155{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 17156echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 17157if test "$ac_test_CXXFLAGS" = set; then 17158 CXXFLAGS=$ac_save_CXXFLAGS 17159elif test $ac_cv_prog_cxx_g = yes; then 17160 if test "$GXX" = yes; then 17161 CXXFLAGS="-g -O2" 17162 else 17163 CXXFLAGS="-g" 17164 fi 17165else 17166 if test "$GXX" = yes; then 17167 CXXFLAGS="-O2" 17168 else 17169 CXXFLAGS= 17170 fi 17171fi 17172ac_ext=c 17173ac_cpp='$CPP $CPPFLAGS' 17174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17176ac_compiler_gnu=$ac_cv_c_compiler_gnu 17177 17178depcc="$CXX" am_compiler_list= 17179 17180{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 17181echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 17182if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 17183 echo $ECHO_N "(cached) $ECHO_C" >&6 17184else 17185 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 17186 # We make a subdir and do the tests there. Otherwise we can end up 17187 # making bogus files that we don't know about and never remove. For 17188 # instance it was reported that on HP-UX the gcc test will end up 17189 # making a dummy file named `D' -- because `-MD' means `put the output 17190 # in D'. 17191 mkdir conftest.dir 17192 # Copy depcomp to subdir because otherwise we won't find it if we're 17193 # using a relative directory. 17194 cp "$am_depcomp" conftest.dir 17195 cd conftest.dir 17196 # We will build objects and dependencies in a subdirectory because 17197 # it helps to detect inapplicable dependency modes. For instance 17198 # both Tru64's cc and ICC support -MD to output dependencies as a 17199 # side effect of compilation, but ICC will put the dependencies in 17200 # the current directory while Tru64 will put them in the object 17201 # directory. 17202 mkdir sub 17203 17204 am_cv_CXX_dependencies_compiler_type=none 17205 if test "$am_compiler_list" = ""; then 17206 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 17207 fi 17208 for depmode in $am_compiler_list; do 17209 # Setup a source with many dependencies, because some compilers 17210 # like to wrap large dependency lists on column 80 (with \), and 17211 # we should not choose a depcomp mode which is confused by this. 17212 # 17213 # We need to recreate these files for each test, as the compiler may 17214 # overwrite some of them when testing with obscure command lines. 17215 # This happens at least with the AIX C compiler. 17216 : > sub/conftest.c 17217 for i in 1 2 3 4 5 6; do 17218 echo '#include "conftst'$i'.h"' >> sub/conftest.c 17219 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 17220 # Solaris 8's {/usr,}/bin/sh. 17221 touch sub/conftst$i.h 17222 done 17223 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 17224 17225 case $depmode in 17226 nosideeffect) 17227 # after this tag, mechanisms are not by side-effect, so they'll 17228 # only be used when explicitly requested 17229 if test "x$enable_dependency_tracking" = xyes; then 17230 continue 17231 else 17232 break 17233 fi 17234 ;; 17235 none) break ;; 17236 esac 17237 # We check with `-c' and `-o' for the sake of the "dashmstdout" 17238 # mode. It turns out that the SunPro C++ compiler does not properly 17239 # handle `-M -o', and we need to detect this. 17240 if depmode=$depmode \ 17241 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 17242 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 17243 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 17244 >/dev/null 2>conftest.err && 17245 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 17246 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 17247 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 17248 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 17249 # icc doesn't choke on unknown options, it will just issue warnings 17250 # or remarks (even with -Werror). So we grep stderr for any message 17251 # that says an option was ignored or not supported. 17252 # When given -MP, icc 7.0 and 7.1 complain thusly: 17253 # icc: Command line warning: ignoring option '-M'; no argument required 17254 # The diagnosis changed in icc 8.0: 17255 # icc: Command line remark: option '-MP' not supported 17256 if (grep 'ignoring option' conftest.err || 17257 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 17258 am_cv_CXX_dependencies_compiler_type=$depmode 17259 break 17260 fi 17261 fi 17262 done 17263 17264 cd .. 17265 rm -rf conftest.dir 17266else 17267 am_cv_CXX_dependencies_compiler_type=none 17268fi 17269 17270fi 17271{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 17272echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 17273CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 17274 17275 if 17276 test "x$enable_dependency_tracking" != xno \ 17277 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 17278 am__fastdepCXX_TRUE= 17279 am__fastdepCXX_FALSE='#' 17280else 17281 am__fastdepCXX_TRUE='#' 17282 am__fastdepCXX_FALSE= 17283fi 17284 17285 17286if test -n "$CXX" && ( test "X$CXX" != "Xno" && 17287 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 17288 (test "X$CXX" != "Xg++"))) ; then 17289 ac_ext=cpp 17290ac_cpp='$CXXCPP $CPPFLAGS' 17291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17294{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 17295echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 17296if test -z "$CXXCPP"; then 17297 if test "${ac_cv_prog_CXXCPP+set}" = set; then 17298 echo $ECHO_N "(cached) $ECHO_C" >&6 17299else 17300 # Double quotes because CXXCPP needs to be expanded 17301 for CXXCPP in "$CXX -E" "/lib/cpp" 17302 do 17303 ac_preproc_ok=false 17304for ac_cxx_preproc_warn_flag in '' yes 17305do 17306 # Use a header file that comes with gcc, so configuring glibc 17307 # with a fresh cross-compiler works. 17308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17309 # <limits.h> exists even on freestanding compilers. 17310 # On the NeXT, cc -E runs the code through the compiler's parser, 17311 # not just through cpp. "Syntax error" is here to catch this case. 17312 cat >conftest.$ac_ext <<_ACEOF 17313/* confdefs.h. */ 17314_ACEOF 17315cat confdefs.h >>conftest.$ac_ext 17316cat >>conftest.$ac_ext <<_ACEOF 17317/* end confdefs.h. */ 17318#ifdef __STDC__ 17319# include <limits.h> 17320#else 17321# include <assert.h> 17322#endif 17323 Syntax error 17324_ACEOF 17325if { (ac_try="$ac_cpp conftest.$ac_ext" 17326case "(($ac_try" in 17327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17328 *) ac_try_echo=$ac_try;; 17329esac 17330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17332 ac_status=$? 17333 grep -v '^ *+' conftest.er1 >conftest.err 17334 rm -f conftest.er1 17335 cat conftest.err >&5 17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17337 (exit $ac_status); } >/dev/null && { 17338 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 17339 test ! -s conftest.err 17340 }; then 17341 : 17342else 17343 echo "$as_me: failed program was:" >&5 17344sed 's/^/| /' conftest.$ac_ext >&5 17345 17346 # Broken: fails on valid input. 17347continue 17348fi 17349 17350rm -f conftest.err conftest.$ac_ext 17351 17352 # OK, works on sane cases. Now check whether nonexistent headers 17353 # can be detected and how. 17354 cat >conftest.$ac_ext <<_ACEOF 17355/* confdefs.h. */ 17356_ACEOF 17357cat confdefs.h >>conftest.$ac_ext 17358cat >>conftest.$ac_ext <<_ACEOF 17359/* end confdefs.h. */ 17360#include <ac_nonexistent.h> 17361_ACEOF 17362if { (ac_try="$ac_cpp conftest.$ac_ext" 17363case "(($ac_try" in 17364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17365 *) ac_try_echo=$ac_try;; 17366esac 17367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17369 ac_status=$? 17370 grep -v '^ *+' conftest.er1 >conftest.err 17371 rm -f conftest.er1 17372 cat conftest.err >&5 17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17374 (exit $ac_status); } >/dev/null && { 17375 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 17376 test ! -s conftest.err 17377 }; then 17378 # Broken: success on invalid input. 17379continue 17380else 17381 echo "$as_me: failed program was:" >&5 17382sed 's/^/| /' conftest.$ac_ext >&5 17383 17384 # Passes both tests. 17385ac_preproc_ok=: 17386break 17387fi 17388 17389rm -f conftest.err conftest.$ac_ext 17390 17391done 17392# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17393rm -f conftest.err conftest.$ac_ext 17394if $ac_preproc_ok; then 17395 break 17396fi 17397 17398 done 17399 ac_cv_prog_CXXCPP=$CXXCPP 17400 17401fi 17402 CXXCPP=$ac_cv_prog_CXXCPP 17403else 17404 ac_cv_prog_CXXCPP=$CXXCPP 17405fi 17406{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 17407echo "${ECHO_T}$CXXCPP" >&6; } 17408ac_preproc_ok=false 17409for ac_cxx_preproc_warn_flag in '' yes 17410do 17411 # Use a header file that comes with gcc, so configuring glibc 17412 # with a fresh cross-compiler works. 17413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17414 # <limits.h> exists even on freestanding compilers. 17415 # On the NeXT, cc -E runs the code through the compiler's parser, 17416 # not just through cpp. "Syntax error" is here to catch this case. 17417 cat >conftest.$ac_ext <<_ACEOF 17418/* confdefs.h. */ 17419_ACEOF 17420cat confdefs.h >>conftest.$ac_ext 17421cat >>conftest.$ac_ext <<_ACEOF 17422/* end confdefs.h. */ 17423#ifdef __STDC__ 17424# include <limits.h> 17425#else 17426# include <assert.h> 17427#endif 17428 Syntax error 17429_ACEOF 17430if { (ac_try="$ac_cpp conftest.$ac_ext" 17431case "(($ac_try" in 17432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17433 *) ac_try_echo=$ac_try;; 17434esac 17435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17437 ac_status=$? 17438 grep -v '^ *+' conftest.er1 >conftest.err 17439 rm -f conftest.er1 17440 cat conftest.err >&5 17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17442 (exit $ac_status); } >/dev/null && { 17443 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 17444 test ! -s conftest.err 17445 }; then 17446 : 17447else 17448 echo "$as_me: failed program was:" >&5 17449sed 's/^/| /' conftest.$ac_ext >&5 17450 17451 # Broken: fails on valid input. 17452continue 17453fi 17454 17455rm -f conftest.err conftest.$ac_ext 17456 17457 # OK, works on sane cases. Now check whether nonexistent headers 17458 # can be detected and how. 17459 cat >conftest.$ac_ext <<_ACEOF 17460/* confdefs.h. */ 17461_ACEOF 17462cat confdefs.h >>conftest.$ac_ext 17463cat >>conftest.$ac_ext <<_ACEOF 17464/* end confdefs.h. */ 17465#include <ac_nonexistent.h> 17466_ACEOF 17467if { (ac_try="$ac_cpp conftest.$ac_ext" 17468case "(($ac_try" in 17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17470 *) ac_try_echo=$ac_try;; 17471esac 17472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17474 ac_status=$? 17475 grep -v '^ *+' conftest.er1 >conftest.err 17476 rm -f conftest.er1 17477 cat conftest.err >&5 17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17479 (exit $ac_status); } >/dev/null && { 17480 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 17481 test ! -s conftest.err 17482 }; then 17483 # Broken: success on invalid input. 17484continue 17485else 17486 echo "$as_me: failed program was:" >&5 17487sed 's/^/| /' conftest.$ac_ext >&5 17488 17489 # Passes both tests. 17490ac_preproc_ok=: 17491break 17492fi 17493 17494rm -f conftest.err conftest.$ac_ext 17495 17496done 17497# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17498rm -f conftest.err conftest.$ac_ext 17499if $ac_preproc_ok; then 17500 : 17501else 17502 _lt_caught_CXX_error=yes 17503fi 17504 17505ac_ext=c 17506ac_cpp='$CPP $CPPFLAGS' 17507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17509ac_compiler_gnu=$ac_cv_c_compiler_gnu 17510 17511else 17512 _lt_caught_CXX_error=yes 17513fi 17514 17515 17516 17517ac_ext=cpp 17518ac_cpp='$CXXCPP $CPPFLAGS' 17519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17522if test -z "$CXX"; then 17523 if test -n "$CCC"; then 17524 CXX=$CCC 17525 else 17526 if test -n "$ac_tool_prefix"; then 17527 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 17528 do 17529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 17530set dummy $ac_tool_prefix$ac_prog; ac_word=$2 17531{ echo "$as_me:$LINENO: checking for $ac_word" >&5 17532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 17533if test "${ac_cv_prog_CXX+set}" = set; then 17534 echo $ECHO_N "(cached) $ECHO_C" >&6 17535else 17536 if test -n "$CXX"; then 17537 ac_cv_prog_CXX="$CXX" # Let the user override the test. 17538else 17539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17540for as_dir in $PATH 17541do 17542 IFS=$as_save_IFS 17543 test -z "$as_dir" && as_dir=. 17544 for ac_exec_ext in '' $ac_executable_extensions; do 17545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17546 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 17547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 17548 break 2 17549 fi 17550done 17551done 17552IFS=$as_save_IFS 17553 17554fi 17555fi 17556CXX=$ac_cv_prog_CXX 17557if test -n "$CXX"; then 17558 { echo "$as_me:$LINENO: result: $CXX" >&5 17559echo "${ECHO_T}$CXX" >&6; } 17560else 17561 { echo "$as_me:$LINENO: result: no" >&5 17562echo "${ECHO_T}no" >&6; } 17563fi 17564 17565 17566 test -n "$CXX" && break 17567 done 17568fi 17569if test -z "$CXX"; then 17570 ac_ct_CXX=$CXX 17571 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 17572do 17573 # Extract the first word of "$ac_prog", so it can be a program name with args. 17574set dummy $ac_prog; ac_word=$2 17575{ echo "$as_me:$LINENO: checking for $ac_word" >&5 17576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 17577if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 17578 echo $ECHO_N "(cached) $ECHO_C" >&6 17579else 17580 if test -n "$ac_ct_CXX"; then 17581 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 17582else 17583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17584for as_dir in $PATH 17585do 17586 IFS=$as_save_IFS 17587 test -z "$as_dir" && as_dir=. 17588 for ac_exec_ext in '' $ac_executable_extensions; do 17589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17590 ac_cv_prog_ac_ct_CXX="$ac_prog" 17591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 17592 break 2 17593 fi 17594done 17595done 17596IFS=$as_save_IFS 17597 17598fi 17599fi 17600ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 17601if test -n "$ac_ct_CXX"; then 17602 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 17603echo "${ECHO_T}$ac_ct_CXX" >&6; } 17604else 17605 { echo "$as_me:$LINENO: result: no" >&5 17606echo "${ECHO_T}no" >&6; } 17607fi 17608 17609 17610 test -n "$ac_ct_CXX" && break 17611done 17612 17613 if test "x$ac_ct_CXX" = x; then 17614 CXX="g++" 17615 else 17616 case $cross_compiling:$ac_tool_warned in 17617yes:) 17618{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 17619whose name does not start with the host triplet. If you think this 17620configuration is useful to you, please write to autoconf@gnu.org." >&5 17621echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 17622whose name does not start with the host triplet. If you think this 17623configuration is useful to you, please write to autoconf@gnu.org." >&2;} 17624ac_tool_warned=yes ;; 17625esac 17626 CXX=$ac_ct_CXX 17627 fi 17628fi 17629 17630 fi 17631fi 17632# Provide some information about the compiler. 17633echo "$as_me:$LINENO: checking for C++ compiler version" >&5 17634ac_compiler=`set X $ac_compile; echo $2` 17635{ (ac_try="$ac_compiler --version >&5" 17636case "(($ac_try" in 17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17638 *) ac_try_echo=$ac_try;; 17639esac 17640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17641 (eval "$ac_compiler --version >&5") 2>&5 17642 ac_status=$? 17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17644 (exit $ac_status); } 17645{ (ac_try="$ac_compiler -v >&5" 17646case "(($ac_try" in 17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17648 *) ac_try_echo=$ac_try;; 17649esac 17650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17651 (eval "$ac_compiler -v >&5") 2>&5 17652 ac_status=$? 17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17654 (exit $ac_status); } 17655{ (ac_try="$ac_compiler -V >&5" 17656case "(($ac_try" in 17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17658 *) ac_try_echo=$ac_try;; 17659esac 17660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17661 (eval "$ac_compiler -V >&5") 2>&5 17662 ac_status=$? 17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17664 (exit $ac_status); } 17665 17666{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 17667echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 17668if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 17669 echo $ECHO_N "(cached) $ECHO_C" >&6 17670else 17671 cat >conftest.$ac_ext <<_ACEOF 17672/* confdefs.h. */ 17673_ACEOF 17674cat confdefs.h >>conftest.$ac_ext 17675cat >>conftest.$ac_ext <<_ACEOF 17676/* end confdefs.h. */ 17677 17678int 17679main () 17680{ 17681#ifndef __GNUC__ 17682 choke me 17683#endif 17684 17685 ; 17686 return 0; 17687} 17688_ACEOF 17689rm -f conftest.$ac_objext 17690if { (ac_try="$ac_compile" 17691case "(($ac_try" in 17692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17693 *) ac_try_echo=$ac_try;; 17694esac 17695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17696 (eval "$ac_compile") 2>conftest.er1 17697 ac_status=$? 17698 grep -v '^ *+' conftest.er1 >conftest.err 17699 rm -f conftest.er1 17700 cat conftest.err >&5 17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17702 (exit $ac_status); } && { 17703 test -z "$ac_cxx_werror_flag" || 17704 test ! -s conftest.err 17705 } && test -s conftest.$ac_objext; then 17706 ac_compiler_gnu=yes 17707else 17708 echo "$as_me: failed program was:" >&5 17709sed 's/^/| /' conftest.$ac_ext >&5 17710 17711 ac_compiler_gnu=no 17712fi 17713 17714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17715ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 17716 17717fi 17718{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 17719echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 17720GXX=`test $ac_compiler_gnu = yes && echo yes` 17721ac_test_CXXFLAGS=${CXXFLAGS+set} 17722ac_save_CXXFLAGS=$CXXFLAGS 17723{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 17724echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 17725if test "${ac_cv_prog_cxx_g+set}" = set; then 17726 echo $ECHO_N "(cached) $ECHO_C" >&6 17727else 17728 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 17729 ac_cxx_werror_flag=yes 17730 ac_cv_prog_cxx_g=no 17731 CXXFLAGS="-g" 17732 cat >conftest.$ac_ext <<_ACEOF 17733/* confdefs.h. */ 17734_ACEOF 17735cat confdefs.h >>conftest.$ac_ext 17736cat >>conftest.$ac_ext <<_ACEOF 17737/* end confdefs.h. */ 17738 17739int 17740main () 17741{ 17742 17743 ; 17744 return 0; 17745} 17746_ACEOF 17747rm -f conftest.$ac_objext 17748if { (ac_try="$ac_compile" 17749case "(($ac_try" in 17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17751 *) ac_try_echo=$ac_try;; 17752esac 17753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17754 (eval "$ac_compile") 2>conftest.er1 17755 ac_status=$? 17756 grep -v '^ *+' conftest.er1 >conftest.err 17757 rm -f conftest.er1 17758 cat conftest.err >&5 17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17760 (exit $ac_status); } && { 17761 test -z "$ac_cxx_werror_flag" || 17762 test ! -s conftest.err 17763 } && test -s conftest.$ac_objext; then 17764 ac_cv_prog_cxx_g=yes 17765else 17766 echo "$as_me: failed program was:" >&5 17767sed 's/^/| /' conftest.$ac_ext >&5 17768 17769 CXXFLAGS="" 17770 cat >conftest.$ac_ext <<_ACEOF 17771/* confdefs.h. */ 17772_ACEOF 17773cat confdefs.h >>conftest.$ac_ext 17774cat >>conftest.$ac_ext <<_ACEOF 17775/* end confdefs.h. */ 17776 17777int 17778main () 17779{ 17780 17781 ; 17782 return 0; 17783} 17784_ACEOF 17785rm -f conftest.$ac_objext 17786if { (ac_try="$ac_compile" 17787case "(($ac_try" in 17788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17789 *) ac_try_echo=$ac_try;; 17790esac 17791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17792 (eval "$ac_compile") 2>conftest.er1 17793 ac_status=$? 17794 grep -v '^ *+' conftest.er1 >conftest.err 17795 rm -f conftest.er1 17796 cat conftest.err >&5 17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17798 (exit $ac_status); } && { 17799 test -z "$ac_cxx_werror_flag" || 17800 test ! -s conftest.err 17801 } && test -s conftest.$ac_objext; then 17802 : 17803else 17804 echo "$as_me: failed program was:" >&5 17805sed 's/^/| /' conftest.$ac_ext >&5 17806 17807 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 17808 CXXFLAGS="-g" 17809 cat >conftest.$ac_ext <<_ACEOF 17810/* confdefs.h. */ 17811_ACEOF 17812cat confdefs.h >>conftest.$ac_ext 17813cat >>conftest.$ac_ext <<_ACEOF 17814/* end confdefs.h. */ 17815 17816int 17817main () 17818{ 17819 17820 ; 17821 return 0; 17822} 17823_ACEOF 17824rm -f conftest.$ac_objext 17825if { (ac_try="$ac_compile" 17826case "(($ac_try" in 17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17828 *) ac_try_echo=$ac_try;; 17829esac 17830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17831 (eval "$ac_compile") 2>conftest.er1 17832 ac_status=$? 17833 grep -v '^ *+' conftest.er1 >conftest.err 17834 rm -f conftest.er1 17835 cat conftest.err >&5 17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17837 (exit $ac_status); } && { 17838 test -z "$ac_cxx_werror_flag" || 17839 test ! -s conftest.err 17840 } && test -s conftest.$ac_objext; then 17841 ac_cv_prog_cxx_g=yes 17842else 17843 echo "$as_me: failed program was:" >&5 17844sed 's/^/| /' conftest.$ac_ext >&5 17845 17846 17847fi 17848 17849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17850fi 17851 17852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17853fi 17854 17855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17856 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 17857fi 17858{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 17859echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 17860if test "$ac_test_CXXFLAGS" = set; then 17861 CXXFLAGS=$ac_save_CXXFLAGS 17862elif test $ac_cv_prog_cxx_g = yes; then 17863 if test "$GXX" = yes; then 17864 CXXFLAGS="-g -O2" 17865 else 17866 CXXFLAGS="-g" 17867 fi 17868else 17869 if test "$GXX" = yes; then 17870 CXXFLAGS="-O2" 17871 else 17872 CXXFLAGS= 17873 fi 17874fi 17875ac_ext=c 17876ac_cpp='$CPP $CPPFLAGS' 17877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17879ac_compiler_gnu=$ac_cv_c_compiler_gnu 17880 17881depcc="$CXX" am_compiler_list= 17882 17883{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 17884echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 17885if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 17886 echo $ECHO_N "(cached) $ECHO_C" >&6 17887else 17888 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 17889 # We make a subdir and do the tests there. Otherwise we can end up 17890 # making bogus files that we don't know about and never remove. For 17891 # instance it was reported that on HP-UX the gcc test will end up 17892 # making a dummy file named `D' -- because `-MD' means `put the output 17893 # in D'. 17894 mkdir conftest.dir 17895 # Copy depcomp to subdir because otherwise we won't find it if we're 17896 # using a relative directory. 17897 cp "$am_depcomp" conftest.dir 17898 cd conftest.dir 17899 # We will build objects and dependencies in a subdirectory because 17900 # it helps to detect inapplicable dependency modes. For instance 17901 # both Tru64's cc and ICC support -MD to output dependencies as a 17902 # side effect of compilation, but ICC will put the dependencies in 17903 # the current directory while Tru64 will put them in the object 17904 # directory. 17905 mkdir sub 17906 17907 am_cv_CXX_dependencies_compiler_type=none 17908 if test "$am_compiler_list" = ""; then 17909 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 17910 fi 17911 for depmode in $am_compiler_list; do 17912 # Setup a source with many dependencies, because some compilers 17913 # like to wrap large dependency lists on column 80 (with \), and 17914 # we should not choose a depcomp mode which is confused by this. 17915 # 17916 # We need to recreate these files for each test, as the compiler may 17917 # overwrite some of them when testing with obscure command lines. 17918 # This happens at least with the AIX C compiler. 17919 : > sub/conftest.c 17920 for i in 1 2 3 4 5 6; do 17921 echo '#include "conftst'$i'.h"' >> sub/conftest.c 17922 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 17923 # Solaris 8's {/usr,}/bin/sh. 17924 touch sub/conftst$i.h 17925 done 17926 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 17927 17928 case $depmode in 17929 nosideeffect) 17930 # after this tag, mechanisms are not by side-effect, so they'll 17931 # only be used when explicitly requested 17932 if test "x$enable_dependency_tracking" = xyes; then 17933 continue 17934 else 17935 break 17936 fi 17937 ;; 17938 none) break ;; 17939 esac 17940 # We check with `-c' and `-o' for the sake of the "dashmstdout" 17941 # mode. It turns out that the SunPro C++ compiler does not properly 17942 # handle `-M -o', and we need to detect this. 17943 if depmode=$depmode \ 17944 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 17945 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 17946 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 17947 >/dev/null 2>conftest.err && 17948 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 17949 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 17950 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 17951 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 17952 # icc doesn't choke on unknown options, it will just issue warnings 17953 # or remarks (even with -Werror). So we grep stderr for any message 17954 # that says an option was ignored or not supported. 17955 # When given -MP, icc 7.0 and 7.1 complain thusly: 17956 # icc: Command line warning: ignoring option '-M'; no argument required 17957 # The diagnosis changed in icc 8.0: 17958 # icc: Command line remark: option '-MP' not supported 17959 if (grep 'ignoring option' conftest.err || 17960 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 17961 am_cv_CXX_dependencies_compiler_type=$depmode 17962 break 17963 fi 17964 fi 17965 done 17966 17967 cd .. 17968 rm -rf conftest.dir 17969else 17970 am_cv_CXX_dependencies_compiler_type=none 17971fi 17972 17973fi 17974{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 17975echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 17976CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 17977 17978 if 17979 test "x$enable_dependency_tracking" != xno \ 17980 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 17981 am__fastdepCXX_TRUE= 17982 am__fastdepCXX_FALSE='#' 17983else 17984 am__fastdepCXX_TRUE='#' 17985 am__fastdepCXX_FALSE= 17986fi 17987 17988 17989ac_ext=cpp 17990ac_cpp='$CXXCPP $CPPFLAGS' 17991ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17992ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17993ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17994 17995archive_cmds_need_lc_CXX=no 17996allow_undefined_flag_CXX= 17997always_export_symbols_CXX=no 17998archive_expsym_cmds_CXX= 17999compiler_needs_object_CXX=no 18000export_dynamic_flag_spec_CXX= 18001hardcode_direct_CXX=no 18002hardcode_direct_absolute_CXX=no 18003hardcode_libdir_flag_spec_CXX= 18004hardcode_libdir_flag_spec_ld_CXX= 18005hardcode_libdir_separator_CXX= 18006hardcode_minus_L_CXX=no 18007hardcode_shlibpath_var_CXX=unsupported 18008hardcode_automatic_CXX=no 18009inherit_rpath_CXX=no 18010module_cmds_CXX= 18011module_expsym_cmds_CXX= 18012link_all_deplibs_CXX=unknown 18013old_archive_cmds_CXX=$old_archive_cmds 18014no_undefined_flag_CXX= 18015whole_archive_flag_spec_CXX= 18016enable_shared_with_static_runtimes_CXX=no 18017 18018# Source file extension for C++ test sources. 18019ac_ext=cpp 18020 18021# Object file extension for compiled C++ test sources. 18022objext=o 18023objext_CXX=$objext 18024 18025# No sense in running all these tests if we already determined that 18026# the CXX compiler isn't working. Some variables (like enable_shared) 18027# are currently assumed to apply to all compilers on this platform, 18028# and will be corrupted by setting them based on a non-working compiler. 18029if test "$_lt_caught_CXX_error" != yes; then 18030 # Code to be used in simple compile tests 18031 lt_simple_compile_test_code="int some_variable = 0;" 18032 18033 # Code to be used in simple link tests 18034 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 18035 18036 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 18037 18038 18039 18040 18041 18042 18043# If no C compiler was specified, use CC. 18044LTCC=${LTCC-"$CC"} 18045 18046# If no C compiler flags were specified, use CFLAGS. 18047LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18048 18049# Allow CC to be a program name with arguments. 18050compiler=$CC 18051 18052 18053 # save warnings/boilerplate of simple test code 18054 ac_outfile=conftest.$ac_objext 18055echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18056eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18057_lt_compiler_boilerplate=`cat conftest.err` 18058$RM conftest* 18059 18060 ac_outfile=conftest.$ac_objext 18061echo "$lt_simple_link_test_code" >conftest.$ac_ext 18062eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18063_lt_linker_boilerplate=`cat conftest.err` 18064$RM -r conftest* 18065 18066 18067 # Allow CC to be a program name with arguments. 18068 lt_save_CC=$CC 18069 lt_save_LD=$LD 18070 lt_save_GCC=$GCC 18071 GCC=$GXX 18072 lt_save_with_gnu_ld=$with_gnu_ld 18073 lt_save_path_LD=$lt_cv_path_LD 18074 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 18075 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 18076 else 18077 $as_unset lt_cv_prog_gnu_ld 18078 fi 18079 if test -n "${lt_cv_path_LDCXX+set}"; then 18080 lt_cv_path_LD=$lt_cv_path_LDCXX 18081 else 18082 $as_unset lt_cv_path_LD 18083 fi 18084 test -z "${LDCXX+set}" || LD=$LDCXX 18085 CC=${CXX-"c++"} 18086 compiler=$CC 18087 compiler_CXX=$CC 18088 for cc_temp in $compiler""; do 18089 case $cc_temp in 18090 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18091 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18092 \-*) ;; 18093 *) break;; 18094 esac 18095done 18096cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18097 18098 18099 if test -n "$compiler"; then 18100 # We don't want -fno-exception when compiling C++ code, so set the 18101 # no_builtin_flag separately 18102 if test "$GXX" = yes; then 18103 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 18104 else 18105 lt_prog_compiler_no_builtin_flag_CXX= 18106 fi 18107 18108 if test "$GXX" = yes; then 18109 # Set up default GNU C++ configuration 18110 18111 18112 18113# Check whether --with-gnu-ld was given. 18114if test "${with_gnu_ld+set}" = set; then 18115 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 18116else 18117 with_gnu_ld=no 18118fi 18119 18120ac_prog=ld 18121if test "$GCC" = yes; then 18122 # Check if gcc -print-prog-name=ld gives a path. 18123 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 18124echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 18125 case $host in 18126 *-*-mingw*) 18127 # gcc leaves a trailing carriage return which upsets mingw 18128 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 18129 *) 18130 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 18131 esac 18132 case $ac_prog in 18133 # Accept absolute paths. 18134 [\\/]* | ?:[\\/]*) 18135 re_direlt='/[^/][^/]*/\.\./' 18136 # Canonicalize the pathname of ld 18137 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 18138 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 18139 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 18140 done 18141 test -z "$LD" && LD="$ac_prog" 18142 ;; 18143 "") 18144 # If it fails, then pretend we aren't using GCC. 18145 ac_prog=ld 18146 ;; 18147 *) 18148 # If it is relative, then search for the first ld in PATH. 18149 with_gnu_ld=unknown 18150 ;; 18151 esac 18152elif test "$with_gnu_ld" = yes; then 18153 { echo "$as_me:$LINENO: checking for GNU ld" >&5 18154echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 18155else 18156 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 18157echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 18158fi 18159if test "${lt_cv_path_LD+set}" = set; then 18160 echo $ECHO_N "(cached) $ECHO_C" >&6 18161else 18162 if test -z "$LD"; then 18163 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 18164 for ac_dir in $PATH; do 18165 IFS="$lt_save_ifs" 18166 test -z "$ac_dir" && ac_dir=. 18167 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 18168 lt_cv_path_LD="$ac_dir/$ac_prog" 18169 # Check to see if the program is GNU ld. I'd rather use --version, 18170 # but apparently some variants of GNU ld only accept -v. 18171 # Break only if it was the GNU/non-GNU ld that we prefer. 18172 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 18173 *GNU* | *'with BFD'*) 18174 test "$with_gnu_ld" != no && break 18175 ;; 18176 *) 18177 test "$with_gnu_ld" != yes && break 18178 ;; 18179 esac 18180 fi 18181 done 18182 IFS="$lt_save_ifs" 18183else 18184 lt_cv_path_LD="$LD" # Let the user override the test with a path. 18185fi 18186fi 18187 18188LD="$lt_cv_path_LD" 18189if test -n "$LD"; then 18190 { echo "$as_me:$LINENO: result: $LD" >&5 18191echo "${ECHO_T}$LD" >&6; } 18192else 18193 { echo "$as_me:$LINENO: result: no" >&5 18194echo "${ECHO_T}no" >&6; } 18195fi 18196test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 18197echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 18198 { (exit 1); exit 1; }; } 18199{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 18200echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 18201if test "${lt_cv_prog_gnu_ld+set}" = set; then 18202 echo $ECHO_N "(cached) $ECHO_C" >&6 18203else 18204 # I'd rather use --version here, but apparently some GNU lds only accept -v. 18205case `$LD -v 2>&1 </dev/null` in 18206*GNU* | *'with BFD'*) 18207 lt_cv_prog_gnu_ld=yes 18208 ;; 18209*) 18210 lt_cv_prog_gnu_ld=no 18211 ;; 18212esac 18213fi 18214{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 18215echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 18216with_gnu_ld=$lt_cv_prog_gnu_ld 18217 18218 18219 18220 18221 18222 18223 18224 # Check if GNU C++ uses GNU ld as the underlying linker, since the 18225 # archiving commands below assume that GNU ld is being used. 18226 if test "$with_gnu_ld" = yes; then 18227 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 18228 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18229 18230 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 18231 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18232 18233 # If archive_cmds runs LD, not CC, wlarc should be empty 18234 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 18235 # investigate it a little bit more. (MM) 18236 wlarc='${wl}' 18237 18238 # ancient GNU ld didn't support --whole-archive et. al. 18239 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 18240 $GREP 'no-whole-archive' > /dev/null; then 18241 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18242 else 18243 whole_archive_flag_spec_CXX= 18244 fi 18245 else 18246 with_gnu_ld=no 18247 wlarc= 18248 18249 # A generic and very simple default shared library creation 18250 # command for GNU C++ for the case where it uses the native 18251 # linker, instead of GNU ld. If possible, this setting should 18252 # overridden to take advantage of the native linker features on 18253 # the platform it is being used on. 18254 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 18255 fi 18256 18257 # Commands to make compiler produce verbose output that lists 18258 # what "hidden" libraries, object files and flags are used when 18259 # linking a shared library. 18260 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 18261 18262 else 18263 GXX=no 18264 with_gnu_ld=no 18265 wlarc= 18266 fi 18267 18268 # PORTME: fill in a description of your system's C++ link characteristics 18269 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18270echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 18271 ld_shlibs_CXX=yes 18272 case $host_os in 18273 aix3*) 18274 # FIXME: insert proper C++ library support 18275 ld_shlibs_CXX=no 18276 ;; 18277 aix[4-9]*) 18278 if test "$host_cpu" = ia64; then 18279 # On IA64, the linker does run time linking by default, so we don't 18280 # have to do anything special. 18281 aix_use_runtimelinking=no 18282 exp_sym_flag='-Bexport' 18283 no_entry_flag="" 18284 else 18285 aix_use_runtimelinking=no 18286 18287 # Test if we are trying to use run time linking or normal 18288 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18289 # need to do runtime linking. 18290 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 18291 for ld_flag in $LDFLAGS; do 18292 case $ld_flag in 18293 *-brtl*) 18294 aix_use_runtimelinking=yes 18295 break 18296 ;; 18297 esac 18298 done 18299 ;; 18300 esac 18301 18302 exp_sym_flag='-bexport' 18303 no_entry_flag='-bnoentry' 18304 fi 18305 18306 # When large executables or shared objects are built, AIX ld can 18307 # have problems creating the table of contents. If linking a library 18308 # or program results in "error TOC overflow" add -mminimal-toc to 18309 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18310 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18311 18312 archive_cmds_CXX='' 18313 hardcode_direct_CXX=yes 18314 hardcode_direct_absolute_CXX=yes 18315 hardcode_libdir_separator_CXX=':' 18316 link_all_deplibs_CXX=yes 18317 file_list_spec_CXX='${wl}-f,' 18318 18319 if test "$GXX" = yes; then 18320 case $host_os in aix4.[012]|aix4.[012].*) 18321 # We only want to do this on AIX 4.2 and lower, the check 18322 # below for broken collect2 doesn't work under 4.3+ 18323 collect2name=`${CC} -print-prog-name=collect2` 18324 if test -f "$collect2name" && 18325 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 18326 then 18327 # We have reworked collect2 18328 : 18329 else 18330 # We have old collect2 18331 hardcode_direct_CXX=unsupported 18332 # It fails to find uninstalled libraries when the uninstalled 18333 # path is not listed in the libpath. Setting hardcode_minus_L 18334 # to unsupported forces relinking 18335 hardcode_minus_L_CXX=yes 18336 hardcode_libdir_flag_spec_CXX='-L$libdir' 18337 hardcode_libdir_separator_CXX= 18338 fi 18339 esac 18340 shared_flag='-shared' 18341 if test "$aix_use_runtimelinking" = yes; then 18342 shared_flag="$shared_flag "'${wl}-G' 18343 fi 18344 else 18345 # not using gcc 18346 if test "$host_cpu" = ia64; then 18347 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18348 # chokes on -Wl,-G. The following line is correct: 18349 shared_flag='-G' 18350 else 18351 if test "$aix_use_runtimelinking" = yes; then 18352 shared_flag='${wl}-G' 18353 else 18354 shared_flag='${wl}-bM:SRE' 18355 fi 18356 fi 18357 fi 18358 18359 # It seems that -bexpall does not export symbols beginning with 18360 # underscore (_), so it is better to generate a list of symbols to 18361 # export. 18362 always_export_symbols_CXX=yes 18363 if test "$aix_use_runtimelinking" = yes; then 18364 # Warning - without using the other runtime loading flags (-brtl), 18365 # -berok will link without error, but may produce a broken library. 18366 allow_undefined_flag_CXX='-berok' 18367 # Determine the default libpath from the value encoded in an empty 18368 # executable. 18369 cat >conftest.$ac_ext <<_ACEOF 18370/* confdefs.h. */ 18371_ACEOF 18372cat confdefs.h >>conftest.$ac_ext 18373cat >>conftest.$ac_ext <<_ACEOF 18374/* end confdefs.h. */ 18375 18376int 18377main () 18378{ 18379 18380 ; 18381 return 0; 18382} 18383_ACEOF 18384rm -f conftest.$ac_objext conftest$ac_exeext 18385if { (ac_try="$ac_link" 18386case "(($ac_try" in 18387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18388 *) ac_try_echo=$ac_try;; 18389esac 18390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18391 (eval "$ac_link") 2>conftest.er1 18392 ac_status=$? 18393 grep -v '^ *+' conftest.er1 >conftest.err 18394 rm -f conftest.er1 18395 cat conftest.err >&5 18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18397 (exit $ac_status); } && { 18398 test -z "$ac_cxx_werror_flag" || 18399 test ! -s conftest.err 18400 } && test -s conftest$ac_exeext && 18401 $as_test_x conftest$ac_exeext; then 18402 18403lt_aix_libpath_sed=' 18404 /Import File Strings/,/^$/ { 18405 /^0/ { 18406 s/^0 *\(.*\)$/\1/ 18407 p 18408 } 18409 }' 18410aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18411# Check for a 64-bit object if we didn't find anything. 18412if test -z "$aix_libpath"; then 18413 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18414fi 18415else 18416 echo "$as_me: failed program was:" >&5 18417sed 's/^/| /' conftest.$ac_ext >&5 18418 18419 18420fi 18421 18422rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18423 conftest$ac_exeext conftest.$ac_ext 18424if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18425 18426 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 18427 18428 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 18429 else 18430 if test "$host_cpu" = ia64; then 18431 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 18432 allow_undefined_flag_CXX="-z nodefs" 18433 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 18434 else 18435 # Determine the default libpath from the value encoded in an 18436 # empty executable. 18437 cat >conftest.$ac_ext <<_ACEOF 18438/* confdefs.h. */ 18439_ACEOF 18440cat confdefs.h >>conftest.$ac_ext 18441cat >>conftest.$ac_ext <<_ACEOF 18442/* end confdefs.h. */ 18443 18444int 18445main () 18446{ 18447 18448 ; 18449 return 0; 18450} 18451_ACEOF 18452rm -f conftest.$ac_objext conftest$ac_exeext 18453if { (ac_try="$ac_link" 18454case "(($ac_try" in 18455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18456 *) ac_try_echo=$ac_try;; 18457esac 18458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18459 (eval "$ac_link") 2>conftest.er1 18460 ac_status=$? 18461 grep -v '^ *+' conftest.er1 >conftest.err 18462 rm -f conftest.er1 18463 cat conftest.err >&5 18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18465 (exit $ac_status); } && { 18466 test -z "$ac_cxx_werror_flag" || 18467 test ! -s conftest.err 18468 } && test -s conftest$ac_exeext && 18469 $as_test_x conftest$ac_exeext; then 18470 18471lt_aix_libpath_sed=' 18472 /Import File Strings/,/^$/ { 18473 /^0/ { 18474 s/^0 *\(.*\)$/\1/ 18475 p 18476 } 18477 }' 18478aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18479# Check for a 64-bit object if we didn't find anything. 18480if test -z "$aix_libpath"; then 18481 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18482fi 18483else 18484 echo "$as_me: failed program was:" >&5 18485sed 's/^/| /' conftest.$ac_ext >&5 18486 18487 18488fi 18489 18490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18491 conftest$ac_exeext conftest.$ac_ext 18492if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18493 18494 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 18495 # Warning - without using the other run time loading flags, 18496 # -berok will link without error, but may produce a broken library. 18497 no_undefined_flag_CXX=' ${wl}-bernotok' 18498 allow_undefined_flag_CXX=' ${wl}-berok' 18499 # Exported symbols can be pulled into shared objects from archives 18500 whole_archive_flag_spec_CXX='$convenience' 18501 archive_cmds_need_lc_CXX=yes 18502 # This is similar to how AIX traditionally builds its shared 18503 # libraries. 18504 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 18505 fi 18506 fi 18507 ;; 18508 18509 beos*) 18510 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18511 allow_undefined_flag_CXX=unsupported 18512 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18513 # support --undefined. This deserves some investigation. FIXME 18514 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18515 else 18516 ld_shlibs_CXX=no 18517 fi 18518 ;; 18519 18520 chorus*) 18521 case $cc_basename in 18522 *) 18523 # FIXME: insert proper C++ library support 18524 ld_shlibs_CXX=no 18525 ;; 18526 esac 18527 ;; 18528 18529 cygwin* | mingw* | pw32*) 18530 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 18531 # as there is no search path for DLLs. 18532 hardcode_libdir_flag_spec_CXX='-L$libdir' 18533 allow_undefined_flag_CXX=unsupported 18534 always_export_symbols_CXX=no 18535 enable_shared_with_static_runtimes_CXX=yes 18536 18537 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 18538 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18539 # If the export-symbols file already is a .def file (1st line 18540 # is EXPORTS), use it as is; otherwise, prepend... 18541 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18542 cp $export_symbols $output_objdir/$soname.def; 18543 else 18544 echo EXPORTS > $output_objdir/$soname.def; 18545 cat $export_symbols >> $output_objdir/$soname.def; 18546 fi~ 18547 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18548 else 18549 ld_shlibs_CXX=no 18550 fi 18551 ;; 18552 darwin* | rhapsody*) 18553 18554 18555 archive_cmds_need_lc_CXX=no 18556 hardcode_direct_CXX=no 18557 hardcode_automatic_CXX=yes 18558 hardcode_shlibpath_var_CXX=unsupported 18559 whole_archive_flag_spec_CXX='' 18560 link_all_deplibs_CXX=yes 18561 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 18562 if test "$GCC" = "yes"; then 18563 output_verbose_link_cmd=echo 18564 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 18565 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 18566 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 18567 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 18568 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 18569 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 18570 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 18571 fi 18572 18573 else 18574 ld_shlibs_CXX=no 18575 fi 18576 18577 ;; 18578 18579 dgux*) 18580 case $cc_basename in 18581 ec++*) 18582 # FIXME: insert proper C++ library support 18583 ld_shlibs_CXX=no 18584 ;; 18585 ghcx*) 18586 # Green Hills C++ Compiler 18587 # FIXME: insert proper C++ library support 18588 ld_shlibs_CXX=no 18589 ;; 18590 *) 18591 # FIXME: insert proper C++ library support 18592 ld_shlibs_CXX=no 18593 ;; 18594 esac 18595 ;; 18596 18597 freebsd[12]*) 18598 # C++ shared libraries reported to be fairly broken before 18599 # switch to ELF 18600 ld_shlibs_CXX=no 18601 ;; 18602 18603 freebsd-elf*) 18604 archive_cmds_need_lc_CXX=no 18605 ;; 18606 18607 freebsd* | dragonfly*) 18608 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 18609 # conventions 18610 ld_shlibs_CXX=yes 18611 ;; 18612 18613 gnu*) 18614 ;; 18615 18616 hpux9*) 18617 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 18618 hardcode_libdir_separator_CXX=: 18619 export_dynamic_flag_spec_CXX='${wl}-E' 18620 hardcode_direct_CXX=yes 18621 hardcode_minus_L_CXX=yes # Not in the search PATH, 18622 # but as the default 18623 # location of the library. 18624 18625 case $cc_basename in 18626 CC*) 18627 # FIXME: insert proper C++ library support 18628 ld_shlibs_CXX=no 18629 ;; 18630 aCC*) 18631 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 18632 # Commands to make compiler produce verbose output that lists 18633 # what "hidden" libraries, object files and flags are used when 18634 # linking a shared library. 18635 # 18636 # There doesn't appear to be a way to prevent this compiler from 18637 # explicitly linking system object files so we need to strip them 18638 # from the output so that they don't get included in the library 18639 # dependencies. 18640 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 18641 ;; 18642 *) 18643 if test "$GXX" = yes; then 18644 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 18645 else 18646 # FIXME: insert proper C++ library support 18647 ld_shlibs_CXX=no 18648 fi 18649 ;; 18650 esac 18651 ;; 18652 18653 hpux10*|hpux11*) 18654 if test $with_gnu_ld = no; then 18655 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 18656 hardcode_libdir_separator_CXX=: 18657 18658 case $host_cpu in 18659 hppa*64*|ia64*) 18660 ;; 18661 *) 18662 export_dynamic_flag_spec_CXX='${wl}-E' 18663 ;; 18664 esac 18665 fi 18666 case $host_cpu in 18667 hppa*64*|ia64*) 18668 hardcode_direct_CXX=no 18669 hardcode_shlibpath_var_CXX=no 18670 ;; 18671 *) 18672 hardcode_direct_CXX=yes 18673 hardcode_direct_absolute_CXX=yes 18674 hardcode_minus_L_CXX=yes # Not in the search PATH, 18675 # but as the default 18676 # location of the library. 18677 ;; 18678 esac 18679 18680 case $cc_basename in 18681 CC*) 18682 # FIXME: insert proper C++ library support 18683 ld_shlibs_CXX=no 18684 ;; 18685 aCC*) 18686 case $host_cpu in 18687 hppa*64*) 18688 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18689 ;; 18690 ia64*) 18691 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18692 ;; 18693 *) 18694 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18695 ;; 18696 esac 18697 # Commands to make compiler produce verbose output that lists 18698 # what "hidden" libraries, object files and flags are used when 18699 # linking a shared library. 18700 # 18701 # There doesn't appear to be a way to prevent this compiler from 18702 # explicitly linking system object files so we need to strip them 18703 # from the output so that they don't get included in the library 18704 # dependencies. 18705 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 18706 ;; 18707 *) 18708 if test "$GXX" = yes; then 18709 if test $with_gnu_ld = no; then 18710 case $host_cpu in 18711 hppa*64*) 18712 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18713 ;; 18714 ia64*) 18715 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18716 ;; 18717 *) 18718 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18719 ;; 18720 esac 18721 fi 18722 else 18723 # FIXME: insert proper C++ library support 18724 ld_shlibs_CXX=no 18725 fi 18726 ;; 18727 esac 18728 ;; 18729 18730 interix[3-9]*) 18731 hardcode_direct_CXX=no 18732 hardcode_shlibpath_var_CXX=no 18733 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18734 export_dynamic_flag_spec_CXX='${wl}-E' 18735 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18736 # Instead, shared libraries are loaded at an image base (0x10000000 by 18737 # default) and relocated if they conflict, which is a slow very memory 18738 # consuming and fragmenting process. To avoid this, we pick a random, 18739 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18740 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18741 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 18742 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 18743 ;; 18744 irix5* | irix6*) 18745 case $cc_basename in 18746 CC*) 18747 # SGI C++ 18748 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 18749 18750 # Archives containing C++ object files must be created using 18751 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 18752 # necessary to make sure instantiated templates are included 18753 # in the archive. 18754 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 18755 ;; 18756 *) 18757 if test "$GXX" = yes; then 18758 if test "$with_gnu_ld" = no; then 18759 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 18760 else 18761 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 18762 fi 18763 fi 18764 link_all_deplibs_CXX=yes 18765 ;; 18766 esac 18767 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 18768 hardcode_libdir_separator_CXX=: 18769 inherit_rpath_CXX=yes 18770 ;; 18771 18772 linux* | k*bsd*-gnu) 18773 case $cc_basename in 18774 KCC*) 18775 # Kuck and Associates, Inc. (KAI) C++ Compiler 18776 18777 # KCC will only create a shared library if the output file 18778 # ends with ".so" (or ".sl" for HP-UX), so rename the library 18779 # to its proper name (with version) after linking. 18780 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 18781 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 18782 # Commands to make compiler produce verbose output that lists 18783 # what "hidden" libraries, object files and flags are used when 18784 # linking a shared library. 18785 # 18786 # There doesn't appear to be a way to prevent this compiler from 18787 # explicitly linking system object files so we need to strip them 18788 # from the output so that they don't get included in the library 18789 # dependencies. 18790 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 18791 18792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18793 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18794 18795 # Archives containing C++ object files must be created using 18796 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 18797 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 18798 ;; 18799 icpc* | ecpc* ) 18800 # Intel C++ 18801 with_gnu_ld=yes 18802 # version 8.0 and above of icpc choke on multiply defined symbols 18803 # if we add $predep_objects and $postdep_objects, however 7.1 and 18804 # earlier do not add the objects themselves. 18805 case `$CC -V 2>&1` in 18806 *"Version 7."*) 18807 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 18808 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18809 ;; 18810 *) # Version 8.0 or newer 18811 tmp_idyn= 18812 case $host_cpu in 18813 ia64*) tmp_idyn=' -i_dynamic';; 18814 esac 18815 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18816 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18817 ;; 18818 esac 18819 archive_cmds_need_lc_CXX=no 18820 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18821 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18822 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 18823 ;; 18824 pgCC* | pgcpp*) 18825 # Portland Group C++ compiler 18826 case `$CC -V` in 18827 *pgCC\ [1-5]* | *pgcpp\ [1-5]*) 18828 prelink_cmds_CXX='tpldir=Template.dir~ 18829 rm -rf $tpldir~ 18830 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 18831 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 18832 old_archive_cmds_CXX='tpldir=Template.dir~ 18833 rm -rf $tpldir~ 18834 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 18835 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 18836 $RANLIB $oldlib' 18837 archive_cmds_CXX='tpldir=Template.dir~ 18838 rm -rf $tpldir~ 18839 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 18840 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 18841 archive_expsym_cmds_CXX='tpldir=Template.dir~ 18842 rm -rf $tpldir~ 18843 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 18844 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 18845 ;; 18846 *) # Version 6 will use weak symbols 18847 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 18848 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 18849 ;; 18850 esac 18851 18852 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 18853 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18854 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 18855 ;; 18856 cxx*) 18857 # Compaq C++ 18858 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 18859 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 18860 18861 runpath_var=LD_RUN_PATH 18862 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 18863 hardcode_libdir_separator_CXX=: 18864 18865 # Commands to make compiler produce verbose output that lists 18866 # what "hidden" libraries, object files and flags are used when 18867 # linking a shared library. 18868 # 18869 # There doesn't appear to be a way to prevent this compiler from 18870 # explicitly linking system object files so we need to strip them 18871 # from the output so that they don't get included in the library 18872 # dependencies. 18873 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 18874 ;; 18875 xl*) 18876 # IBM XL 8.0 on PPC, with GNU ld 18877 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 18878 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18879 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18880 if test "x$supports_anon_versioning" = xyes; then 18881 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 18882 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18883 echo "local: *; };" >> $output_objdir/$libname.ver~ 18884 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18885 fi 18886 ;; 18887 *) 18888 case `$CC -V 2>&1 | sed 5q` in 18889 *Sun\ C*) 18890 # Sun C++ 5.9 18891 no_undefined_flag_CXX=' -zdefs' 18892 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18893 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 18894 hardcode_libdir_flag_spec_CXX='-R$libdir' 18895 whole_archive_flag_spec_CXX='${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' 18896 compiler_needs_object_CXX=yes 18897 18898 # Not sure whether something based on 18899 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 18900 # would be better. 18901 output_verbose_link_cmd='echo' 18902 18903 # Archives containing C++ object files must be created using 18904 # "CC -xar", where "CC" is the Sun C++ compiler. This is 18905 # necessary to make sure instantiated templates are included 18906 # in the archive. 18907 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 18908 ;; 18909 esac 18910 ;; 18911 esac 18912 ;; 18913 18914 lynxos*) 18915 # FIXME: insert proper C++ library support 18916 ld_shlibs_CXX=no 18917 ;; 18918 18919 m88k*) 18920 # FIXME: insert proper C++ library support 18921 ld_shlibs_CXX=no 18922 ;; 18923 18924 mvs*) 18925 case $cc_basename in 18926 cxx*) 18927 # FIXME: insert proper C++ library support 18928 ld_shlibs_CXX=no 18929 ;; 18930 *) 18931 # FIXME: insert proper C++ library support 18932 ld_shlibs_CXX=no 18933 ;; 18934 esac 18935 ;; 18936 18937 netbsd*) 18938 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18939 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 18940 wlarc= 18941 hardcode_libdir_flag_spec_CXX='-R$libdir' 18942 hardcode_direct_CXX=yes 18943 hardcode_shlibpath_var_CXX=no 18944 fi 18945 # Workaround some broken pre-1.5 toolchains 18946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 18947 ;; 18948 18949 *nto* | *qnx*) 18950 ld_shlibs_CXX=yes 18951 ;; 18952 18953 openbsd2*) 18954 # C++ shared libraries are fairly broken 18955 ld_shlibs_CXX=no 18956 ;; 18957 18958 openbsd*) 18959 if test -f /usr/libexec/ld.so; then 18960 hardcode_direct_CXX=yes 18961 hardcode_shlibpath_var_CXX=no 18962 hardcode_direct_absolute_CXX=yes 18963 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 18964 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18965 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18966 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 18967 export_dynamic_flag_spec_CXX='${wl}-E' 18968 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18969 fi 18970 output_verbose_link_cmd=echo 18971 else 18972 ld_shlibs_CXX=no 18973 fi 18974 ;; 18975 18976 osf3* | osf4* | osf5*) 18977 case $cc_basename in 18978 KCC*) 18979 # Kuck and Associates, Inc. (KAI) C++ Compiler 18980 18981 # KCC will only create a shared library if the output file 18982 # ends with ".so" (or ".sl" for HP-UX), so rename the library 18983 # to its proper name (with version) after linking. 18984 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 18985 18986 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18987 hardcode_libdir_separator_CXX=: 18988 18989 # Archives containing C++ object files must be created using 18990 # the KAI C++ compiler. 18991 case $host in 18992 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 18993 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 18994 esac 18995 ;; 18996 RCC*) 18997 # Rational C++ 2.4.1 18998 # FIXME: insert proper C++ library support 18999 ld_shlibs_CXX=no 19000 ;; 19001 cxx*) 19002 case $host in 19003 osf3*) 19004 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 19005 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 19006 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 19007 ;; 19008 *) 19009 allow_undefined_flag_CXX=' -expect_unresolved \*' 19010 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 19011 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 19012 echo "-hidden">> $lib.exp~ 19013 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 19014 $RM $lib.exp' 19015 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 19016 ;; 19017 esac 19018 19019 hardcode_libdir_separator_CXX=: 19020 19021 # Commands to make compiler produce verbose output that lists 19022 # what "hidden" libraries, object files and flags are used when 19023 # linking a shared library. 19024 # 19025 # There doesn't appear to be a way to prevent this compiler from 19026 # explicitly linking system object files so we need to strip them 19027 # from the output so that they don't get included in the library 19028 # dependencies. 19029 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 19030 ;; 19031 *) 19032 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 19033 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 19034 case $host in 19035 osf3*) 19036 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 19037 ;; 19038 *) 19039 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 19040 ;; 19041 esac 19042 19043 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 19044 hardcode_libdir_separator_CXX=: 19045 19046 # Commands to make compiler produce verbose output that lists 19047 # what "hidden" libraries, object files and flags are used when 19048 # linking a shared library. 19049 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 19050 19051 else 19052 # FIXME: insert proper C++ library support 19053 ld_shlibs_CXX=no 19054 fi 19055 ;; 19056 esac 19057 ;; 19058 19059 psos*) 19060 # FIXME: insert proper C++ library support 19061 ld_shlibs_CXX=no 19062 ;; 19063 19064 sunos4*) 19065 case $cc_basename in 19066 CC*) 19067 # Sun C++ 4.x 19068 # FIXME: insert proper C++ library support 19069 ld_shlibs_CXX=no 19070 ;; 19071 lcc*) 19072 # Lucid 19073 # FIXME: insert proper C++ library support 19074 ld_shlibs_CXX=no 19075 ;; 19076 *) 19077 # FIXME: insert proper C++ library support 19078 ld_shlibs_CXX=no 19079 ;; 19080 esac 19081 ;; 19082 19083 solaris*) 19084 case $cc_basename in 19085 CC*) 19086 # Sun C++ 4.2, 5.x and Centerline C++ 19087 archive_cmds_need_lc_CXX=yes 19088 no_undefined_flag_CXX=' -zdefs' 19089 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19090 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19091 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 19092 19093 hardcode_libdir_flag_spec_CXX='-R$libdir' 19094 hardcode_shlibpath_var_CXX=no 19095 case $host_os in 19096 solaris2.[0-5] | solaris2.[0-5].*) ;; 19097 *) 19098 # The compiler driver will combine and reorder linker options, 19099 # but understands `-z linker_flag'. 19100 # Supported since Solaris 2.6 (maybe 2.5.1?) 19101 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 19102 ;; 19103 esac 19104 link_all_deplibs_CXX=yes 19105 19106 output_verbose_link_cmd='echo' 19107 19108 # Archives containing C++ object files must be created using 19109 # "CC -xar", where "CC" is the Sun C++ compiler. This is 19110 # necessary to make sure instantiated templates are included 19111 # in the archive. 19112 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 19113 ;; 19114 gcx*) 19115 # Green Hills C++ Compiler 19116 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 19117 19118 # The C++ compiler must be used to create the archive. 19119 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 19120 ;; 19121 *) 19122 # GNU C++ compiler with Solaris linker 19123 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 19124 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 19125 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 19126 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 19127 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19128 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 19129 19130 # Commands to make compiler produce verbose output that lists 19131 # what "hidden" libraries, object files and flags are used when 19132 # linking a shared library. 19133 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 19134 else 19135 # g++ 2.7 appears to require `-G' NOT `-shared' on this 19136 # platform. 19137 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 19138 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19139 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 19140 19141 # Commands to make compiler produce verbose output that lists 19142 # what "hidden" libraries, object files and flags are used when 19143 # linking a shared library. 19144 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 19145 fi 19146 19147 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 19148 case $host_os in 19149 solaris2.[0-5] | solaris2.[0-5].*) ;; 19150 *) 19151 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 19152 ;; 19153 esac 19154 fi 19155 ;; 19156 esac 19157 ;; 19158 19159 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 19160 no_undefined_flag_CXX='${wl}-z,text' 19161 archive_cmds_need_lc_CXX=no 19162 hardcode_shlibpath_var_CXX=no 19163 runpath_var='LD_RUN_PATH' 19164 19165 case $cc_basename in 19166 CC*) 19167 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19168 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19169 ;; 19170 *) 19171 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19172 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19173 ;; 19174 esac 19175 ;; 19176 19177 sysv5* | sco3.2v5* | sco5v6*) 19178 # Note: We can NOT use -z defs as we might desire, because we do not 19179 # link with -lc, and that would cause any symbols used from libc to 19180 # always be unresolved, which means just about no library would 19181 # ever link correctly. If we're not using GNU ld we use -z text 19182 # though, which does catch some bad symbols but isn't as heavy-handed 19183 # as -z defs. 19184 no_undefined_flag_CXX='${wl}-z,text' 19185 allow_undefined_flag_CXX='${wl}-z,nodefs' 19186 archive_cmds_need_lc_CXX=no 19187 hardcode_shlibpath_var_CXX=no 19188 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 19189 hardcode_libdir_separator_CXX=':' 19190 link_all_deplibs_CXX=yes 19191 export_dynamic_flag_spec_CXX='${wl}-Bexport' 19192 runpath_var='LD_RUN_PATH' 19193 19194 case $cc_basename in 19195 CC*) 19196 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19197 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19198 ;; 19199 *) 19200 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19201 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19202 ;; 19203 esac 19204 ;; 19205 19206 tandem*) 19207 case $cc_basename in 19208 NCC*) 19209 # NonStop-UX NCC 3.20 19210 # FIXME: insert proper C++ library support 19211 ld_shlibs_CXX=no 19212 ;; 19213 *) 19214 # FIXME: insert proper C++ library support 19215 ld_shlibs_CXX=no 19216 ;; 19217 esac 19218 ;; 19219 19220 vxworks*) 19221 # FIXME: insert proper C++ library support 19222 ld_shlibs_CXX=no 19223 ;; 19224 19225 *) 19226 # FIXME: insert proper C++ library support 19227 ld_shlibs_CXX=no 19228 ;; 19229 esac 19230 19231 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 19232echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 19233 test "$ld_shlibs_CXX" = no && can_build_shared=no 19234 19235 GCC_CXX="$GXX" 19236 LD_CXX="$LD" 19237 19238 ## CAVEAT EMPTOR: 19239 ## There is no encapsulation within the following macros, do not change 19240 ## the running order or otherwise move them around unless you know exactly 19241 ## what you are doing... 19242 # Dependencies to place before and after the object being linked: 19243predep_objects_CXX= 19244postdep_objects_CXX= 19245predeps_CXX= 19246postdeps_CXX= 19247compiler_lib_search_path_CXX= 19248 19249cat > conftest.$ac_ext <<_LT_EOF 19250class Foo 19251{ 19252public: 19253 Foo (void) { a = 0; } 19254private: 19255 int a; 19256}; 19257_LT_EOF 19258 19259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19260 (eval $ac_compile) 2>&5 19261 ac_status=$? 19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19263 (exit $ac_status); }; then 19264 # Parse the compiler output and extract the necessary 19265 # objects, libraries and library flags. 19266 19267 # Sentinel used to keep track of whether or not we are before 19268 # the conftest object file. 19269 pre_test_object_deps_done=no 19270 19271 for p in `eval "$output_verbose_link_cmd"`; do 19272 case $p in 19273 19274 -L* | -R* | -l*) 19275 # Some compilers place space between "-{L,R}" and the path. 19276 # Remove the space. 19277 if test $p = "-L" || 19278 test $p = "-R"; then 19279 prev=$p 19280 continue 19281 else 19282 prev= 19283 fi 19284 19285 if test "$pre_test_object_deps_done" = no; then 19286 case $p in 19287 -L* | -R*) 19288 # Internal compiler library paths should come after those 19289 # provided the user. The postdeps already come after the 19290 # user supplied libs so there is no need to process them. 19291 if test -z "$compiler_lib_search_path_CXX"; then 19292 compiler_lib_search_path_CXX="${prev}${p}" 19293 else 19294 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 19295 fi 19296 ;; 19297 # The "-l" case would never come before the object being 19298 # linked, so don't bother handling this case. 19299 esac 19300 else 19301 if test -z "$postdeps_CXX"; then 19302 postdeps_CXX="${prev}${p}" 19303 else 19304 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 19305 fi 19306 fi 19307 ;; 19308 19309 *.$objext) 19310 # This assumes that the test object file only shows up 19311 # once in the compiler output. 19312 if test "$p" = "conftest.$objext"; then 19313 pre_test_object_deps_done=yes 19314 continue 19315 fi 19316 19317 if test "$pre_test_object_deps_done" = no; then 19318 if test -z "$predep_objects_CXX"; then 19319 predep_objects_CXX="$p" 19320 else 19321 predep_objects_CXX="$predep_objects_CXX $p" 19322 fi 19323 else 19324 if test -z "$postdep_objects_CXX"; then 19325 postdep_objects_CXX="$p" 19326 else 19327 postdep_objects_CXX="$postdep_objects_CXX $p" 19328 fi 19329 fi 19330 ;; 19331 19332 *) ;; # Ignore the rest. 19333 19334 esac 19335 done 19336 19337 # Clean up. 19338 rm -f a.out a.exe 19339else 19340 echo "libtool.m4: error: problem compiling CXX test program" 19341fi 19342 19343$RM -f confest.$objext 19344 19345# PORTME: override above test on systems where it is broken 19346case $host_os in 19347interix[3-9]*) 19348 # Interix 3.5 installs completely hosed .la files for C++, so rather than 19349 # hack all around it, let's just trust "g++" to DTRT. 19350 predep_objects_CXX= 19351 postdep_objects_CXX= 19352 postdeps_CXX= 19353 ;; 19354 19355linux*) 19356 case `$CC -V 2>&1 | sed 5q` in 19357 *Sun\ C*) 19358 # Sun C++ 5.9 19359 19360 # The more standards-conforming stlport4 library is 19361 # incompatible with the Cstd library. Avoid specifying 19362 # it if it's in CXXFLAGS. Ignore libCrun as 19363 # -library=stlport4 depends on it. 19364 case " $CXX $CXXFLAGS " in 19365 *" -library=stlport4 "*) 19366 solaris_use_stlport4=yes 19367 ;; 19368 esac 19369 19370 if test "$solaris_use_stlport4" != yes; then 19371 postdeps_CXX='-library=Cstd -library=Crun' 19372 fi 19373 ;; 19374 esac 19375 ;; 19376 19377solaris*) 19378 case $cc_basename in 19379 CC*) 19380 # The more standards-conforming stlport4 library is 19381 # incompatible with the Cstd library. Avoid specifying 19382 # it if it's in CXXFLAGS. Ignore libCrun as 19383 # -library=stlport4 depends on it. 19384 case " $CXX $CXXFLAGS " in 19385 *" -library=stlport4 "*) 19386 solaris_use_stlport4=yes 19387 ;; 19388 esac 19389 19390 # Adding this requires a known-good setup of shared libraries for 19391 # Sun compiler versions before 5.6, else PIC objects from an old 19392 # archive will be linked into the output, leading to subtle bugs. 19393 if test "$solaris_use_stlport4" != yes; then 19394 postdeps_CXX='-library=Cstd -library=Crun' 19395 fi 19396 ;; 19397 esac 19398 ;; 19399esac 19400 19401 19402case " $postdeps_CXX " in 19403*" -lc "*) archive_cmds_need_lc_CXX=no ;; 19404esac 19405 compiler_lib_search_dirs_CXX= 19406if test -n "${compiler_lib_search_path_CXX}"; then 19407 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 19408fi 19409 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 19421 19422 19423 19424 19425 19426 19427 19428 19429 19430 19431 19432 19433 19434 19435 19436 19437 19438 19439 19440 lt_prog_compiler_wl_CXX= 19441lt_prog_compiler_pic_CXX= 19442lt_prog_compiler_static_CXX= 19443 19444{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 19445echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 19446 19447 # C++ specific cases for pic, static, wl, etc. 19448 if test "$GXX" = yes; then 19449 lt_prog_compiler_wl_CXX='-Wl,' 19450 lt_prog_compiler_static_CXX='-static' 19451 19452 case $host_os in 19453 aix*) 19454 # All AIX code is PIC. 19455 if test "$host_cpu" = ia64; then 19456 # AIX 5 now supports IA64 processor 19457 lt_prog_compiler_static_CXX='-Bstatic' 19458 fi 19459 ;; 19460 19461 amigaos*) 19462 case $host_cpu in 19463 powerpc) 19464 # see comment about AmigaOS4 .so support 19465 lt_prog_compiler_pic_CXX='-fPIC' 19466 ;; 19467 m68k) 19468 # FIXME: we need at least 68020 code to build shared libraries, but 19469 # adding the `-m68020' flag to GCC prevents building anything better, 19470 # like `-m68040'. 19471 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 19472 ;; 19473 esac 19474 ;; 19475 19476 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19477 # PIC is the default for these OSes. 19478 ;; 19479 mingw* | cygwin* | os2* | pw32*) 19480 # This hack is so that the source file can tell whether it is being 19481 # built for inclusion in a dll (and should export symbols for example). 19482 # Although the cygwin gcc ignores -fPIC, still need this for old-style 19483 # (--disable-auto-import) libraries 19484 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 19485 ;; 19486 darwin* | rhapsody*) 19487 # PIC is the default on this platform 19488 # Common symbols not allowed in MH_DYLIB files 19489 lt_prog_compiler_pic_CXX='-fno-common' 19490 ;; 19491 *djgpp*) 19492 # DJGPP does not support shared libraries at all 19493 lt_prog_compiler_pic_CXX= 19494 ;; 19495 interix[3-9]*) 19496 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19497 # Instead, we relocate shared libraries at runtime. 19498 ;; 19499 sysv4*MP*) 19500 if test -d /usr/nec; then 19501 lt_prog_compiler_pic_CXX=-Kconform_pic 19502 fi 19503 ;; 19504 hpux*) 19505 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 19506 # not for PA HP-UX. 19507 case $host_cpu in 19508 hppa*64*|ia64*) 19509 ;; 19510 *) 19511 lt_prog_compiler_pic_CXX='-fPIC' 19512 ;; 19513 esac 19514 ;; 19515 *qnx* | *nto*) 19516 # QNX uses GNU C++, but need to define -shared option too, otherwise 19517 # it will coredump. 19518 lt_prog_compiler_pic_CXX='-fPIC -shared' 19519 ;; 19520 *) 19521 lt_prog_compiler_pic_CXX='-fPIC' 19522 ;; 19523 esac 19524 else 19525 case $host_os in 19526 aix[4-9]*) 19527 # All AIX code is PIC. 19528 if test "$host_cpu" = ia64; then 19529 # AIX 5 now supports IA64 processor 19530 lt_prog_compiler_static_CXX='-Bstatic' 19531 else 19532 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 19533 fi 19534 ;; 19535 chorus*) 19536 case $cc_basename in 19537 cxch68*) 19538 # Green Hills C++ Compiler 19539 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 19540 ;; 19541 esac 19542 ;; 19543 dgux*) 19544 case $cc_basename in 19545 ec++*) 19546 lt_prog_compiler_pic_CXX='-KPIC' 19547 ;; 19548 ghcx*) 19549 # Green Hills C++ Compiler 19550 lt_prog_compiler_pic_CXX='-pic' 19551 ;; 19552 *) 19553 ;; 19554 esac 19555 ;; 19556 freebsd* | dragonfly*) 19557 # FreeBSD uses GNU C++ 19558 ;; 19559 hpux9* | hpux10* | hpux11*) 19560 case $cc_basename in 19561 CC*) 19562 lt_prog_compiler_wl_CXX='-Wl,' 19563 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 19564 if test "$host_cpu" != ia64; then 19565 lt_prog_compiler_pic_CXX='+Z' 19566 fi 19567 ;; 19568 aCC*) 19569 lt_prog_compiler_wl_CXX='-Wl,' 19570 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 19571 case $host_cpu in 19572 hppa*64*|ia64*) 19573 # +Z the default 19574 ;; 19575 *) 19576 lt_prog_compiler_pic_CXX='+Z' 19577 ;; 19578 esac 19579 ;; 19580 *) 19581 ;; 19582 esac 19583 ;; 19584 interix*) 19585 # This is c89, which is MS Visual C++ (no shared libs) 19586 # Anyone wants to do a port? 19587 ;; 19588 irix5* | irix6* | nonstopux*) 19589 case $cc_basename in 19590 CC*) 19591 lt_prog_compiler_wl_CXX='-Wl,' 19592 lt_prog_compiler_static_CXX='-non_shared' 19593 # CC pic flag -KPIC is the default. 19594 ;; 19595 *) 19596 ;; 19597 esac 19598 ;; 19599 linux* | k*bsd*-gnu) 19600 case $cc_basename in 19601 KCC*) 19602 # KAI C++ Compiler 19603 lt_prog_compiler_wl_CXX='--backend -Wl,' 19604 lt_prog_compiler_pic_CXX='-fPIC' 19605 ;; 19606 icpc* | ecpc* ) 19607 # Intel C++ 19608 lt_prog_compiler_wl_CXX='-Wl,' 19609 lt_prog_compiler_pic_CXX='-KPIC' 19610 lt_prog_compiler_static_CXX='-static' 19611 ;; 19612 pgCC* | pgcpp*) 19613 # Portland Group C++ compiler 19614 lt_prog_compiler_wl_CXX='-Wl,' 19615 lt_prog_compiler_pic_CXX='-fpic' 19616 lt_prog_compiler_static_CXX='-Bstatic' 19617 ;; 19618 cxx*) 19619 # Compaq C++ 19620 # Make sure the PIC flag is empty. It appears that all Alpha 19621 # Linux and Compaq Tru64 Unix objects are PIC. 19622 lt_prog_compiler_pic_CXX= 19623 lt_prog_compiler_static_CXX='-non_shared' 19624 ;; 19625 xlc* | xlC*) 19626 # IBM XL 8.0 on PPC 19627 lt_prog_compiler_wl_CXX='-Wl,' 19628 lt_prog_compiler_pic_CXX='-qpic' 19629 lt_prog_compiler_static_CXX='-qstaticlink' 19630 ;; 19631 *) 19632 case `$CC -V 2>&1 | sed 5q` in 19633 *Sun\ C*) 19634 # Sun C++ 5.9 19635 lt_prog_compiler_pic_CXX='-KPIC' 19636 lt_prog_compiler_static_CXX='-Bstatic' 19637 lt_prog_compiler_wl_CXX='-Qoption ld ' 19638 ;; 19639 esac 19640 ;; 19641 esac 19642 ;; 19643 lynxos*) 19644 ;; 19645 m88k*) 19646 ;; 19647 mvs*) 19648 case $cc_basename in 19649 cxx*) 19650 lt_prog_compiler_pic_CXX='-W c,exportall' 19651 ;; 19652 *) 19653 ;; 19654 esac 19655 ;; 19656 netbsd* | netbsdelf*-gnu) 19657 ;; 19658 *qnx* | *nto*) 19659 # QNX uses GNU C++, but need to define -shared option too, otherwise 19660 # it will coredump. 19661 lt_prog_compiler_pic_CXX='-fPIC -shared' 19662 ;; 19663 osf3* | osf4* | osf5*) 19664 case $cc_basename in 19665 KCC*) 19666 lt_prog_compiler_wl_CXX='--backend -Wl,' 19667 ;; 19668 RCC*) 19669 # Rational C++ 2.4.1 19670 lt_prog_compiler_pic_CXX='-pic' 19671 ;; 19672 cxx*) 19673 # Digital/Compaq C++ 19674 lt_prog_compiler_wl_CXX='-Wl,' 19675 # Make sure the PIC flag is empty. It appears that all Alpha 19676 # Linux and Compaq Tru64 Unix objects are PIC. 19677 lt_prog_compiler_pic_CXX= 19678 lt_prog_compiler_static_CXX='-non_shared' 19679 ;; 19680 *) 19681 ;; 19682 esac 19683 ;; 19684 psos*) 19685 ;; 19686 solaris*) 19687 case $cc_basename in 19688 CC*) 19689 # Sun C++ 4.2, 5.x and Centerline C++ 19690 lt_prog_compiler_pic_CXX='-KPIC' 19691 lt_prog_compiler_static_CXX='-Bstatic' 19692 lt_prog_compiler_wl_CXX='-Qoption ld ' 19693 ;; 19694 gcx*) 19695 # Green Hills C++ Compiler 19696 lt_prog_compiler_pic_CXX='-PIC' 19697 ;; 19698 *) 19699 ;; 19700 esac 19701 ;; 19702 sunos4*) 19703 case $cc_basename in 19704 CC*) 19705 # Sun C++ 4.x 19706 lt_prog_compiler_pic_CXX='-pic' 19707 lt_prog_compiler_static_CXX='-Bstatic' 19708 ;; 19709 lcc*) 19710 # Lucid 19711 lt_prog_compiler_pic_CXX='-pic' 19712 ;; 19713 *) 19714 ;; 19715 esac 19716 ;; 19717 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19718 case $cc_basename in 19719 CC*) 19720 lt_prog_compiler_wl_CXX='-Wl,' 19721 lt_prog_compiler_pic_CXX='-KPIC' 19722 lt_prog_compiler_static_CXX='-Bstatic' 19723 ;; 19724 esac 19725 ;; 19726 tandem*) 19727 case $cc_basename in 19728 NCC*) 19729 # NonStop-UX NCC 3.20 19730 lt_prog_compiler_pic_CXX='-KPIC' 19731 ;; 19732 *) 19733 ;; 19734 esac 19735 ;; 19736 vxworks*) 19737 ;; 19738 *) 19739 lt_prog_compiler_can_build_shared_CXX=no 19740 ;; 19741 esac 19742 fi 19743 19744case $host_os in 19745 # For platforms which do not support PIC, -DPIC is meaningless: 19746 *djgpp*) 19747 lt_prog_compiler_pic_CXX= 19748 ;; 19749 *) 19750 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 19751 ;; 19752esac 19753{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 19754echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 19755 19756 19757 19758# 19759# Check to make sure the PIC flag actually works. 19760# 19761if test -n "$lt_prog_compiler_pic_CXX"; then 19762 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 19763echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 19764if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 19765 echo $ECHO_N "(cached) $ECHO_C" >&6 19766else 19767 lt_cv_prog_compiler_pic_works_CXX=no 19768 ac_outfile=conftest.$ac_objext 19769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19770 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 19771 # Insert the option either (1) after the last *FLAGS variable, or 19772 # (2) before a word containing "conftest.", or (3) at the end. 19773 # Note that $ac_compile itself does not contain backslashes and begins 19774 # with a dollar sign (not a hyphen), so the echo should work correctly. 19775 # The option is referenced via a variable to avoid confusing sed. 19776 lt_compile=`echo "$ac_compile" | $SED \ 19777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19779 -e 's:$: $lt_compiler_flag:'` 19780 (eval echo "\"\$as_me:19780: $lt_compile\"" >&5) 19781 (eval "$lt_compile" 2>conftest.err) 19782 ac_status=$? 19783 cat conftest.err >&5 19784 echo "$as_me:19784: \$? = $ac_status" >&5 19785 if (exit $ac_status) && test -s "$ac_outfile"; then 19786 # The compiler can only warn and ignore the option if not recognized 19787 # So say no if there are warnings other than the usual output. 19788 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 19789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19790 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19791 lt_cv_prog_compiler_pic_works_CXX=yes 19792 fi 19793 fi 19794 $RM conftest* 19795 19796fi 19797{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 19798echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } 19799 19800if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 19801 case $lt_prog_compiler_pic_CXX in 19802 "" | " "*) ;; 19803 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 19804 esac 19805else 19806 lt_prog_compiler_pic_CXX= 19807 lt_prog_compiler_can_build_shared_CXX=no 19808fi 19809 19810fi 19811 19812 19813 19814# 19815# Check to make sure the static flag actually works. 19816# 19817wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 19818{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19819echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 19820if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 19821 echo $ECHO_N "(cached) $ECHO_C" >&6 19822else 19823 lt_cv_prog_compiler_static_works_CXX=no 19824 save_LDFLAGS="$LDFLAGS" 19825 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19826 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19827 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19828 # The linker can only warn and ignore the option if not recognized 19829 # So say no if there are warnings 19830 if test -s conftest.err; then 19831 # Append any errors to the config.log. 19832 cat conftest.err 1>&5 19833 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 19834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19835 if diff conftest.exp conftest.er2 >/dev/null; then 19836 lt_cv_prog_compiler_static_works_CXX=yes 19837 fi 19838 else 19839 lt_cv_prog_compiler_static_works_CXX=yes 19840 fi 19841 fi 19842 $RM -r conftest* 19843 LDFLAGS="$save_LDFLAGS" 19844 19845fi 19846{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 19847echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } 19848 19849if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 19850 : 19851else 19852 lt_prog_compiler_static_CXX= 19853fi 19854 19855 19856 19857 19858 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 19859echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 19860if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 19861 echo $ECHO_N "(cached) $ECHO_C" >&6 19862else 19863 lt_cv_prog_compiler_c_o_CXX=no 19864 $RM -r conftest 2>/dev/null 19865 mkdir conftest 19866 cd conftest 19867 mkdir out 19868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19869 19870 lt_compiler_flag="-o out/conftest2.$ac_objext" 19871 # Insert the option either (1) after the last *FLAGS variable, or 19872 # (2) before a word containing "conftest.", or (3) at the end. 19873 # Note that $ac_compile itself does not contain backslashes and begins 19874 # with a dollar sign (not a hyphen), so the echo should work correctly. 19875 lt_compile=`echo "$ac_compile" | $SED \ 19876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19878 -e 's:$: $lt_compiler_flag:'` 19879 (eval echo "\"\$as_me:19879: $lt_compile\"" >&5) 19880 (eval "$lt_compile" 2>out/conftest.err) 19881 ac_status=$? 19882 cat out/conftest.err >&5 19883 echo "$as_me:19883: \$? = $ac_status" >&5 19884 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19885 then 19886 # The compiler can only warn and ignore the option if not recognized 19887 # So say no if there are warnings 19888 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 19889 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19890 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19891 lt_cv_prog_compiler_c_o_CXX=yes 19892 fi 19893 fi 19894 chmod u+w . 2>&5 19895 $RM conftest* 19896 # SGI C++ compiler will create directory out/ii_files/ for 19897 # template instantiation 19898 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19899 $RM out/* && rmdir out 19900 cd .. 19901 $RM -r conftest 19902 $RM conftest* 19903 19904fi 19905{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 19906echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 19907 19908 19909 19910 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 19911echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 19912if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 19913 echo $ECHO_N "(cached) $ECHO_C" >&6 19914else 19915 lt_cv_prog_compiler_c_o_CXX=no 19916 $RM -r conftest 2>/dev/null 19917 mkdir conftest 19918 cd conftest 19919 mkdir out 19920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19921 19922 lt_compiler_flag="-o out/conftest2.$ac_objext" 19923 # Insert the option either (1) after the last *FLAGS variable, or 19924 # (2) before a word containing "conftest.", or (3) at the end. 19925 # Note that $ac_compile itself does not contain backslashes and begins 19926 # with a dollar sign (not a hyphen), so the echo should work correctly. 19927 lt_compile=`echo "$ac_compile" | $SED \ 19928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19930 -e 's:$: $lt_compiler_flag:'` 19931 (eval echo "\"\$as_me:19931: $lt_compile\"" >&5) 19932 (eval "$lt_compile" 2>out/conftest.err) 19933 ac_status=$? 19934 cat out/conftest.err >&5 19935 echo "$as_me:19935: \$? = $ac_status" >&5 19936 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19937 then 19938 # The compiler can only warn and ignore the option if not recognized 19939 # So say no if there are warnings 19940 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 19941 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19942 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19943 lt_cv_prog_compiler_c_o_CXX=yes 19944 fi 19945 fi 19946 chmod u+w . 2>&5 19947 $RM conftest* 19948 # SGI C++ compiler will create directory out/ii_files/ for 19949 # template instantiation 19950 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19951 $RM out/* && rmdir out 19952 cd .. 19953 $RM -r conftest 19954 $RM conftest* 19955 19956fi 19957{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 19958echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 19959 19960 19961 19962 19963hard_links="nottested" 19964if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 19965 # do not overwrite the value of need_locks provided by the user 19966 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 19967echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 19968 hard_links=yes 19969 $RM conftest* 19970 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19971 touch conftest.a 19972 ln conftest.a conftest.b 2>&5 || hard_links=no 19973 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19974 { echo "$as_me:$LINENO: result: $hard_links" >&5 19975echo "${ECHO_T}$hard_links" >&6; } 19976 if test "$hard_links" = no; then 19977 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 19978echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 19979 need_locks=warn 19980 fi 19981else 19982 need_locks=no 19983fi 19984 19985 19986 19987 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19988echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 19989 19990 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19991 case $host_os in 19992 aix[4-9]*) 19993 # If we're using GNU nm, then we don't want the "-C" option. 19994 # -C means demangle to AIX nm, but means don't demangle with GNU nm 19995 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 19996 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 19997 else 19998 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 19999 fi 20000 ;; 20001 pw32*) 20002 export_symbols_cmds_CXX="$ltdll_cmds" 20003 ;; 20004 cygwin* | mingw*) 20005 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 20006 ;; 20007 linux* | k*bsd*-gnu) 20008 link_all_deplibs_CXX=no 20009 ;; 20010 *) 20011 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 20012 ;; 20013 esac 20014 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 20015 20016{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 20017echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 20018test "$ld_shlibs_CXX" = no && can_build_shared=no 20019 20020with_gnu_ld_CXX=$with_gnu_ld 20021 20022 20023 20024 20025 20026 20027# 20028# Do we need to explicitly link libc? 20029# 20030case "x$archive_cmds_need_lc_CXX" in 20031x|xyes) 20032 # Assume -lc should be added 20033 archive_cmds_need_lc_CXX=yes 20034 20035 if test "$enable_shared" = yes && test "$GCC" = yes; then 20036 case $archive_cmds_CXX in 20037 *'~'*) 20038 # FIXME: we may have to deal with multi-command sequences. 20039 ;; 20040 '$CC '*) 20041 # Test whether the compiler implicitly links with -lc since on some 20042 # systems, -lgcc has to come before -lc. If gcc already passes -lc 20043 # to ld, don't add -lc before -lgcc. 20044 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 20045echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 20046 $RM conftest* 20047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20048 20049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20050 (eval $ac_compile) 2>&5 20051 ac_status=$? 20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20053 (exit $ac_status); } 2>conftest.err; then 20054 soname=conftest 20055 lib=conftest 20056 libobjs=conftest.$ac_objext 20057 deplibs= 20058 wl=$lt_prog_compiler_wl_CXX 20059 pic_flag=$lt_prog_compiler_pic_CXX 20060 compiler_flags=-v 20061 linker_flags=-v 20062 verstring= 20063 output_objdir=. 20064 libname=conftest 20065 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 20066 allow_undefined_flag_CXX= 20067 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 20068 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 20069 ac_status=$? 20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20071 (exit $ac_status); } 20072 then 20073 archive_cmds_need_lc_CXX=no 20074 else 20075 archive_cmds_need_lc_CXX=yes 20076 fi 20077 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 20078 else 20079 cat conftest.err 1>&5 20080 fi 20081 $RM conftest* 20082 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 20083echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 20084 ;; 20085 esac 20086 fi 20087 ;; 20088esac 20089 20090 20091 20092 20093 20094 20095 20096 20097 20098 20099 20100 20101 20102 20103 20104 20105 20106 20107 20108 20109 20110 20111 20112 20113 20114 20115 20116 20117 20118 20119 20120 20121 20122 20123 20124 20125 20126 20127 20128 20129 20130 20131 20132 20133 20134 20135 20136 20137 20138 20139 20140 20141 20142 20143 20144 20145 20146 20147 20148 20149 20150 20151 20152 20153 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 20154echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 20155 20156library_names_spec= 20157libname_spec='lib$name' 20158soname_spec= 20159shrext_cmds=".so" 20160postinstall_cmds= 20161postuninstall_cmds= 20162finish_cmds= 20163finish_eval= 20164shlibpath_var= 20165shlibpath_overrides_runpath=unknown 20166version_type=none 20167dynamic_linker="$host_os ld.so" 20168sys_lib_dlsearch_path_spec="/lib /usr/lib" 20169need_lib_prefix=unknown 20170hardcode_into_libs=no 20171 20172# when you set need_version to no, make sure it does not cause -set_version 20173# flags to be left without arguments 20174need_version=unknown 20175 20176case $host_os in 20177aix3*) 20178 version_type=linux 20179 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 20180 shlibpath_var=LIBPATH 20181 20182 # AIX 3 has no versioning support, so we append a major version to the name. 20183 soname_spec='${libname}${release}${shared_ext}$major' 20184 ;; 20185 20186aix[4-9]*) 20187 version_type=linux 20188 need_lib_prefix=no 20189 need_version=no 20190 hardcode_into_libs=yes 20191 if test "$host_cpu" = ia64; then 20192 # AIX 5 supports IA64 20193 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 20194 shlibpath_var=LD_LIBRARY_PATH 20195 else 20196 # With GCC up to 2.95.x, collect2 would create an import file 20197 # for dependence libraries. The import file would start with 20198 # the line `#! .'. This would cause the generated library to 20199 # depend on `.', always an invalid library. This was fixed in 20200 # development snapshots of GCC prior to 3.0. 20201 case $host_os in 20202 aix4 | aix4.[01] | aix4.[01].*) 20203 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 20204 echo ' yes ' 20205 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 20206 : 20207 else 20208 can_build_shared=no 20209 fi 20210 ;; 20211 esac 20212 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 20213 # soname into executable. Probably we can add versioning support to 20214 # collect2, so additional links can be useful in future. 20215 if test "$aix_use_runtimelinking" = yes; then 20216 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 20217 # instead of lib<name>.a to let people know that these are not 20218 # typical AIX shared libraries. 20219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20220 else 20221 # We preserve .a as extension for shared libraries through AIX4.2 20222 # and later when we are not doing run time linking. 20223 library_names_spec='${libname}${release}.a $libname.a' 20224 soname_spec='${libname}${release}${shared_ext}$major' 20225 fi 20226 shlibpath_var=LIBPATH 20227 fi 20228 ;; 20229 20230amigaos*) 20231 case $host_cpu in 20232 powerpc) 20233 # Since July 2007 AmigaOS4 officially supports .so libraries. 20234 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 20235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20236 ;; 20237 m68k) 20238 library_names_spec='$libname.ixlibrary $libname.a' 20239 # Create ${libname}_ixlibrary.a entries in /sys/libs. 20240 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' 20241 ;; 20242 esac 20243 ;; 20244 20245beos*) 20246 library_names_spec='${libname}${shared_ext}' 20247 dynamic_linker="$host_os ld.so" 20248 shlibpath_var=LIBRARY_PATH 20249 ;; 20250 20251bsdi[45]*) 20252 version_type=linux 20253 need_version=no 20254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20255 soname_spec='${libname}${release}${shared_ext}$major' 20256 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 20257 shlibpath_var=LD_LIBRARY_PATH 20258 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 20259 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 20260 # the default ld.so.conf also contains /usr/contrib/lib and 20261 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 20262 # libtool to hard-code these into programs 20263 ;; 20264 20265cygwin* | mingw* | pw32*) 20266 version_type=windows 20267 shrext_cmds=".dll" 20268 need_version=no 20269 need_lib_prefix=no 20270 20271 case $GCC,$host_os in 20272 yes,cygwin* | yes,mingw* | yes,pw32*) 20273 library_names_spec='$libname.dll.a' 20274 # DLL is installed to $(libdir)/../bin by postinstall_cmds 20275 postinstall_cmds='base_file=`basename \${file}`~ 20276 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 20277 dldir=$destdir/`dirname \$dlpath`~ 20278 test -d \$dldir || mkdir -p \$dldir~ 20279 $install_prog $dir/$dlname \$dldir/$dlname~ 20280 chmod a+x \$dldir/$dlname~ 20281 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 20282 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 20283 fi' 20284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 20285 dlpath=$dir/\$dldll~ 20286 $RM \$dlpath' 20287 shlibpath_overrides_runpath=yes 20288 20289 case $host_os in 20290 cygwin*) 20291 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 20292 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20293 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 20294 ;; 20295 mingw*) 20296 # MinGW DLLs use traditional 'lib' prefix 20297 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20298 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 20299 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 20300 # It is most probably a Windows format PATH printed by 20301 # mingw gcc, but we are running on Cygwin. Gcc prints its search 20302 # path with ; separators, and with drive letters. We can handle the 20303 # drive letters (cygwin fileutils understands them), so leave them, 20304 # especially as we might pass files found there to a mingw objdump, 20305 # which wouldn't understand a cygwinified path. Ahh. 20306 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 20307 else 20308 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20309 fi 20310 ;; 20311 pw32*) 20312 # pw32 DLLs use 'pw' prefix rather than 'lib' 20313 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20314 ;; 20315 esac 20316 ;; 20317 20318 *) 20319 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 20320 ;; 20321 esac 20322 dynamic_linker='Win32 ld.exe' 20323 # FIXME: first we should search . and the directory the executable is in 20324 shlibpath_var=PATH 20325 ;; 20326 20327darwin* | rhapsody*) 20328 dynamic_linker="$host_os dyld" 20329 version_type=darwin 20330 need_lib_prefix=no 20331 need_version=no 20332 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 20333 soname_spec='${libname}${release}${major}$shared_ext' 20334 shlibpath_overrides_runpath=yes 20335 shlibpath_var=DYLD_LIBRARY_PATH 20336 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 20337 20338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 20339 ;; 20340 20341dgux*) 20342 version_type=linux 20343 need_lib_prefix=no 20344 need_version=no 20345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 20346 soname_spec='${libname}${release}${shared_ext}$major' 20347 shlibpath_var=LD_LIBRARY_PATH 20348 ;; 20349 20350freebsd1*) 20351 dynamic_linker=no 20352 ;; 20353 20354freebsd* | dragonfly*) 20355 # DragonFly does not have aout. When/if they implement a new 20356 # versioning mechanism, adjust this. 20357 if test -x /usr/bin/objformat; then 20358 objformat=`/usr/bin/objformat` 20359 else 20360 case $host_os in 20361 freebsd[123]*) objformat=aout ;; 20362 *) objformat=elf ;; 20363 esac 20364 fi 20365 version_type=freebsd-$objformat 20366 case $version_type in 20367 freebsd-elf*) 20368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 20369 need_version=no 20370 need_lib_prefix=no 20371 ;; 20372 freebsd-*) 20373 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 20374 need_version=yes 20375 ;; 20376 esac 20377 shlibpath_var=LD_LIBRARY_PATH 20378 case $host_os in 20379 freebsd2*) 20380 shlibpath_overrides_runpath=yes 20381 ;; 20382 freebsd3.[01]* | freebsdelf3.[01]*) 20383 shlibpath_overrides_runpath=yes 20384 hardcode_into_libs=yes 20385 ;; 20386 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 20387 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 20388 shlibpath_overrides_runpath=no 20389 hardcode_into_libs=yes 20390 ;; 20391 *) # from 4.6 on, and DragonFly 20392 shlibpath_overrides_runpath=yes 20393 hardcode_into_libs=yes 20394 ;; 20395 esac 20396 ;; 20397 20398gnu*) 20399 version_type=linux 20400 need_lib_prefix=no 20401 need_version=no 20402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 20403 soname_spec='${libname}${release}${shared_ext}$major' 20404 shlibpath_var=LD_LIBRARY_PATH 20405 hardcode_into_libs=yes 20406 ;; 20407 20408hpux9* | hpux10* | hpux11*) 20409 # Give a soname corresponding to the major version so that dld.sl refuses to 20410 # link against other versions. 20411 version_type=sunos 20412 need_lib_prefix=no 20413 need_version=no 20414 case $host_cpu in 20415 ia64*) 20416 shrext_cmds='.so' 20417 hardcode_into_libs=yes 20418 dynamic_linker="$host_os dld.so" 20419 shlibpath_var=LD_LIBRARY_PATH 20420 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20422 soname_spec='${libname}${release}${shared_ext}$major' 20423 if test "X$HPUX_IA64_MODE" = X32; then 20424 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 20425 else 20426 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 20427 fi 20428 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20429 ;; 20430 hppa*64*) 20431 shrext_cmds='.sl' 20432 hardcode_into_libs=yes 20433 dynamic_linker="$host_os dld.sl" 20434 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 20435 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20437 soname_spec='${libname}${release}${shared_ext}$major' 20438 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 20439 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20440 ;; 20441 *) 20442 shrext_cmds='.sl' 20443 dynamic_linker="$host_os dld.sl" 20444 shlibpath_var=SHLIB_PATH 20445 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 20446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20447 soname_spec='${libname}${release}${shared_ext}$major' 20448 ;; 20449 esac 20450 # HP-UX runs *really* slowly unless shared libraries are mode 555. 20451 postinstall_cmds='chmod 555 $lib' 20452 ;; 20453 20454interix[3-9]*) 20455 version_type=linux 20456 need_lib_prefix=no 20457 need_version=no 20458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20459 soname_spec='${libname}${release}${shared_ext}$major' 20460 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 20461 shlibpath_var=LD_LIBRARY_PATH 20462 shlibpath_overrides_runpath=no 20463 hardcode_into_libs=yes 20464 ;; 20465 20466irix5* | irix6* | nonstopux*) 20467 case $host_os in 20468 nonstopux*) version_type=nonstopux ;; 20469 *) 20470 if test "$lt_cv_prog_gnu_ld" = yes; then 20471 version_type=linux 20472 else 20473 version_type=irix 20474 fi ;; 20475 esac 20476 need_lib_prefix=no 20477 need_version=no 20478 soname_spec='${libname}${release}${shared_ext}$major' 20479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 20480 case $host_os in 20481 irix5* | nonstopux*) 20482 libsuff= shlibsuff= 20483 ;; 20484 *) 20485 case $LD in # libtool.m4 will add one of these switches to LD 20486 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 20487 libsuff= shlibsuff= libmagic=32-bit;; 20488 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 20489 libsuff=32 shlibsuff=N32 libmagic=N32;; 20490 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 20491 libsuff=64 shlibsuff=64 libmagic=64-bit;; 20492 *) libsuff= shlibsuff= libmagic=never-match;; 20493 esac 20494 ;; 20495 esac 20496 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 20497 shlibpath_overrides_runpath=no 20498 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 20499 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 20500 hardcode_into_libs=yes 20501 ;; 20502 20503# No shared lib support for Linux oldld, aout, or coff. 20504linux*oldld* | linux*aout* | linux*coff*) 20505 dynamic_linker=no 20506 ;; 20507 20508# This must be Linux ELF. 20509linux* | k*bsd*-gnu) 20510 version_type=linux 20511 need_lib_prefix=no 20512 need_version=no 20513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20514 soname_spec='${libname}${release}${shared_ext}$major' 20515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 20516 shlibpath_var=LD_LIBRARY_PATH 20517 shlibpath_overrides_runpath=no 20518 # Some binutils ld are patched to set DT_RUNPATH 20519 save_LDFLAGS=$LDFLAGS 20520 save_libdir=$libdir 20521 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 20522 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 20523 cat >conftest.$ac_ext <<_ACEOF 20524/* confdefs.h. */ 20525_ACEOF 20526cat confdefs.h >>conftest.$ac_ext 20527cat >>conftest.$ac_ext <<_ACEOF 20528/* end confdefs.h. */ 20529 20530int 20531main () 20532{ 20533 20534 ; 20535 return 0; 20536} 20537_ACEOF 20538rm -f conftest.$ac_objext conftest$ac_exeext 20539if { (ac_try="$ac_link" 20540case "(($ac_try" in 20541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20542 *) ac_try_echo=$ac_try;; 20543esac 20544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20545 (eval "$ac_link") 2>conftest.er1 20546 ac_status=$? 20547 grep -v '^ *+' conftest.er1 >conftest.err 20548 rm -f conftest.er1 20549 cat conftest.err >&5 20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20551 (exit $ac_status); } && { 20552 test -z "$ac_cxx_werror_flag" || 20553 test ! -s conftest.err 20554 } && test -s conftest$ac_exeext && 20555 $as_test_x conftest$ac_exeext; then 20556 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 20557 shlibpath_overrides_runpath=yes 20558fi 20559 20560else 20561 echo "$as_me: failed program was:" >&5 20562sed 's/^/| /' conftest.$ac_ext >&5 20563 20564 20565fi 20566 20567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20568 conftest$ac_exeext conftest.$ac_ext 20569 LDFLAGS=$save_LDFLAGS 20570 libdir=$save_libdir 20571 20572 # This implies no fast_install, which is unacceptable. 20573 # Some rework will be needed to allow for fast_install 20574 # before this can be enabled. 20575 hardcode_into_libs=yes 20576 20577 # Append ld.so.conf contents to the search path 20578 if test -f /etc/ld.so.conf; then 20579 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' ' '` 20580 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 20581 fi 20582 20583 # We used to test for /lib/ld.so.1 and disable shared libraries on 20584 # powerpc, because MkLinux only supported shared libraries with the 20585 # GNU dynamic linker. Since this was broken with cross compilers, 20586 # most powerpc-linux boxes support dynamic linking these days and 20587 # people can always --disable-shared, the test was removed, and we 20588 # assume the GNU/Linux dynamic linker is in use. 20589 dynamic_linker='GNU/Linux ld.so' 20590 ;; 20591 20592netbsdelf*-gnu) 20593 version_type=linux 20594 need_lib_prefix=no 20595 need_version=no 20596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20597 soname_spec='${libname}${release}${shared_ext}$major' 20598 shlibpath_var=LD_LIBRARY_PATH 20599 shlibpath_overrides_runpath=no 20600 hardcode_into_libs=yes 20601 dynamic_linker='NetBSD ld.elf_so' 20602 ;; 20603 20604netbsd*) 20605 version_type=sunos 20606 need_lib_prefix=no 20607 need_version=no 20608 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20611 dynamic_linker='NetBSD (a.out) ld.so' 20612 else 20613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20614 soname_spec='${libname}${release}${shared_ext}$major' 20615 dynamic_linker='NetBSD ld.elf_so' 20616 fi 20617 shlibpath_var=LD_LIBRARY_PATH 20618 shlibpath_overrides_runpath=yes 20619 hardcode_into_libs=yes 20620 ;; 20621 20622newsos6) 20623 version_type=linux 20624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20625 shlibpath_var=LD_LIBRARY_PATH 20626 shlibpath_overrides_runpath=yes 20627 ;; 20628 20629*nto* | *qnx*) 20630 version_type=qnx 20631 need_lib_prefix=no 20632 need_version=no 20633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20634 soname_spec='${libname}${release}${shared_ext}$major' 20635 shlibpath_var=LD_LIBRARY_PATH 20636 shlibpath_overrides_runpath=no 20637 hardcode_into_libs=yes 20638 dynamic_linker='ldqnx.so' 20639 ;; 20640 20641openbsd*) 20642 version_type=sunos 20643 sys_lib_dlsearch_path_spec="/usr/lib" 20644 need_lib_prefix=no 20645 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 20646 case $host_os in 20647 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 20648 *) need_version=no ;; 20649 esac 20650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20652 shlibpath_var=LD_LIBRARY_PATH 20653 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 20654 case $host_os in 20655 openbsd2.[89] | openbsd2.[89].*) 20656 shlibpath_overrides_runpath=no 20657 ;; 20658 *) 20659 shlibpath_overrides_runpath=yes 20660 ;; 20661 esac 20662 else 20663 shlibpath_overrides_runpath=yes 20664 fi 20665 ;; 20666 20667os2*) 20668 libname_spec='$name' 20669 shrext_cmds=".dll" 20670 need_lib_prefix=no 20671 library_names_spec='$libname${shared_ext} $libname.a' 20672 dynamic_linker='OS/2 ld.exe' 20673 shlibpath_var=LIBPATH 20674 ;; 20675 20676osf3* | osf4* | osf5*) 20677 version_type=osf 20678 need_lib_prefix=no 20679 need_version=no 20680 soname_spec='${libname}${release}${shared_ext}$major' 20681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20682 shlibpath_var=LD_LIBRARY_PATH 20683 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 20684 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 20685 ;; 20686 20687rdos*) 20688 dynamic_linker=no 20689 ;; 20690 20691solaris*) 20692 version_type=linux 20693 need_lib_prefix=no 20694 need_version=no 20695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20696 soname_spec='${libname}${release}${shared_ext}$major' 20697 shlibpath_var=LD_LIBRARY_PATH 20698 shlibpath_overrides_runpath=yes 20699 hardcode_into_libs=yes 20700 # ldd complains unless libraries are executable 20701 postinstall_cmds='chmod +x $lib' 20702 ;; 20703 20704sunos4*) 20705 version_type=sunos 20706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20707 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 20708 shlibpath_var=LD_LIBRARY_PATH 20709 shlibpath_overrides_runpath=yes 20710 if test "$with_gnu_ld" = yes; then 20711 need_lib_prefix=no 20712 fi 20713 need_version=yes 20714 ;; 20715 20716sysv4 | sysv4.3*) 20717 version_type=linux 20718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20719 soname_spec='${libname}${release}${shared_ext}$major' 20720 shlibpath_var=LD_LIBRARY_PATH 20721 case $host_vendor in 20722 sni) 20723 shlibpath_overrides_runpath=no 20724 need_lib_prefix=no 20725 runpath_var=LD_RUN_PATH 20726 ;; 20727 siemens) 20728 need_lib_prefix=no 20729 ;; 20730 motorola) 20731 need_lib_prefix=no 20732 need_version=no 20733 shlibpath_overrides_runpath=no 20734 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 20735 ;; 20736 esac 20737 ;; 20738 20739sysv4*MP*) 20740 if test -d /usr/nec ;then 20741 version_type=linux 20742 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 20743 soname_spec='$libname${shared_ext}.$major' 20744 shlibpath_var=LD_LIBRARY_PATH 20745 fi 20746 ;; 20747 20748sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 20749 version_type=freebsd-elf 20750 need_lib_prefix=no 20751 need_version=no 20752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 20753 soname_spec='${libname}${release}${shared_ext}$major' 20754 shlibpath_var=LD_LIBRARY_PATH 20755 shlibpath_overrides_runpath=yes 20756 hardcode_into_libs=yes 20757 if test "$with_gnu_ld" = yes; then 20758 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 20759 else 20760 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 20761 case $host_os in 20762 sco3.2v5*) 20763 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 20764 ;; 20765 esac 20766 fi 20767 sys_lib_dlsearch_path_spec='/usr/lib' 20768 ;; 20769 20770tpf*) 20771 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 20772 version_type=linux 20773 need_lib_prefix=no 20774 need_version=no 20775 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20776 shlibpath_var=LD_LIBRARY_PATH 20777 shlibpath_overrides_runpath=no 20778 hardcode_into_libs=yes 20779 ;; 20780 20781uts4*) 20782 version_type=linux 20783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20784 soname_spec='${libname}${release}${shared_ext}$major' 20785 shlibpath_var=LD_LIBRARY_PATH 20786 ;; 20787 20788*) 20789 dynamic_linker=no 20790 ;; 20791esac 20792{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 20793echo "${ECHO_T}$dynamic_linker" >&6; } 20794test "$dynamic_linker" = no && can_build_shared=no 20795 20796variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 20797if test "$GCC" = yes; then 20798 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 20799fi 20800 20801if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 20802 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 20803fi 20804if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 20805 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 20806fi 20807 20808 20809 20810 20811 20812 20813 20814 20815 20816 20817 20818 20819 20820 20821 20822 20823 20824 20825 20826 20827 20828 20829 20830 20831 20832 20833 20834 20835 20836 20837 20838 20839 20840 20841 20842 20843 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 20844echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 20845hardcode_action_CXX= 20846if test -n "$hardcode_libdir_flag_spec_CXX" || 20847 test -n "$runpath_var_CXX" || 20848 test "X$hardcode_automatic_CXX" = "Xyes" ; then 20849 20850 # We can hardcode non-existent directories. 20851 if test "$hardcode_direct_CXX" != no && 20852 # If the only mechanism to avoid hardcoding is shlibpath_var, we 20853 # have to relink, otherwise we might link with an installed library 20854 # when we should be linking with a yet-to-be-installed one 20855 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 20856 test "$hardcode_minus_L_CXX" != no; then 20857 # Linking always hardcodes the temporary library directory. 20858 hardcode_action_CXX=relink 20859 else 20860 # We can link without hardcoding, and we can hardcode nonexisting dirs. 20861 hardcode_action_CXX=immediate 20862 fi 20863else 20864 # We cannot hardcode anything, or else we can only hardcode existing 20865 # directories. 20866 hardcode_action_CXX=unsupported 20867fi 20868{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 20869echo "${ECHO_T}$hardcode_action_CXX" >&6; } 20870 20871if test "$hardcode_action_CXX" = relink || 20872 test "$inherit_rpath_CXX" = yes; then 20873 # Fast installation is not supported 20874 enable_fast_install=no 20875elif test "$shlibpath_overrides_runpath" = yes || 20876 test "$enable_shared" = no; then 20877 # Fast installation is not necessary 20878 enable_fast_install=needless 20879fi 20880 20881 20882 20883 20884 20885 20886 20887 fi # test -n "$compiler" 20888 20889 CC=$lt_save_CC 20890 LDCXX=$LD 20891 LD=$lt_save_LD 20892 GCC=$lt_save_GCC 20893 with_gnu_ld=$lt_save_with_gnu_ld 20894 lt_cv_path_LDCXX=$lt_cv_path_LD 20895 lt_cv_path_LD=$lt_save_path_LD 20896 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 20897 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 20898fi # test "$_lt_caught_CXX_error" != yes 20899 20900ac_ext=c 20901ac_cpp='$CPP $CPPFLAGS' 20902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20904ac_compiler_gnu=$ac_cv_c_compiler_gnu 20905 20906 20907GLU_CFLAGS="${GL_CFLAGS}" 20908if test "X${with_apple_opengl_framework}" != "Xyes"; then 20909 { echo "$as_me:$LINENO: checking for OpenGL Utility library" >&5 20910echo $ECHO_N "checking for OpenGL Utility library... $ECHO_C" >&6; } 20911if test "${ax_cv_check_glu_libglu+set}" = set; then 20912 echo $ECHO_N "(cached) $ECHO_C" >&6 20913else 20914 ax_cv_check_glu_libglu="no" 20915 ax_save_CPPFLAGS="${CPPFLAGS}" 20916 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 20917 ax_save_LIBS="${LIBS}" 20918 LIBS="" 20919 ax_check_libs="-lglu32 -lGLU" 20920 for ax_lib in ${ax_check_libs}; do 20921 if test X$ax_compiler_ms = Xyes; then 20922 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 20923 else 20924 ax_try_lib="${ax_lib}" 20925 fi 20926 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 20927 # 20928 # libGLU typically links with libstdc++ on POSIX platforms. However, 20929 # setting the language to C++ means that test program source is named 20930 # "conftest.cc"; and Microsoft cl doesn't know what to do with such a 20931 # file. 20932 # 20933 ac_ext=cpp 20934ac_cpp='$CXXCPP $CPPFLAGS' 20935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20938 20939 if test X$ax_compiler_ms = Xyes; then 20940 ac_ext=c 20941ac_cpp='$CPP $CPPFLAGS' 20942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20944ac_compiler_gnu=$ac_cv_c_compiler_gnu 20945 20946 fi 20947 cat >conftest.$ac_ext <<_ACEOF 20948/* confdefs.h. */ 20949_ACEOF 20950cat confdefs.h >>conftest.$ac_ext 20951cat >>conftest.$ac_ext <<_ACEOF 20952/* end confdefs.h. */ 20953 20954# if HAVE_WINDOWS_H && defined(_WIN32) 20955# include <windows.h> 20956# endif 20957# include <GL/glu.h> 20958int 20959main () 20960{ 20961gluBeginCurve(0) 20962 ; 20963 return 0; 20964} 20965_ACEOF 20966rm -f conftest.$ac_objext conftest$ac_exeext 20967if { (ac_try="$ac_link" 20968case "(($ac_try" in 20969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20970 *) ac_try_echo=$ac_try;; 20971esac 20972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20973 (eval "$ac_link") 2>conftest.er1 20974 ac_status=$? 20975 grep -v '^ *+' conftest.er1 >conftest.err 20976 rm -f conftest.er1 20977 cat conftest.err >&5 20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20979 (exit $ac_status); } && { 20980 test -z "$ac_c_werror_flag" || 20981 test ! -s conftest.err 20982 } && test -s conftest$ac_exeext && 20983 $as_test_x conftest$ac_exeext; then 20984 ax_cv_check_glu_libglu="${ax_try_lib}"; break 20985else 20986 echo "$as_me: failed program was:" >&5 20987sed 's/^/| /' conftest.$ac_ext >&5 20988 20989 20990fi 20991 20992rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20993 conftest$ac_exeext conftest.$ac_ext 20994 if test X$ax_compiler_ms = Xyes; then 20995 ac_ext=cpp 20996ac_cpp='$CXXCPP $CPPFLAGS' 20997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21000 21001 fi 21002 ac_ext=c 21003ac_cpp='$CPP $CPPFLAGS' 21004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21006ac_compiler_gnu=$ac_cv_c_compiler_gnu 21007 21008 done 21009 LIBS=${ax_save_LIBS} 21010 CPPFLAGS=${ax_save_CPPFLAGS} 21011fi 21012{ echo "$as_me:$LINENO: result: $ax_cv_check_glu_libglu" >&5 21013echo "${ECHO_T}$ax_cv_check_glu_libglu" >&6; } 21014 if test "X${ax_cv_check_glu_libglu}" = "Xno"; then 21015 no_glu="yes" 21016 GLU_CFLAGS="" 21017 GLU_LIBS="" 21018 else 21019 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" 21020 fi 21021fi 21022 21023 21024 21025 21026if (test "x$no_glu" = "xyes"); then 21027 { { echo "$as_me:$LINENO: error: GLU library not found" >&5 21028echo "$as_me: error: GLU library not found" >&2;} 21029 { (exit 1); exit 1; }; } 21030fi 21031 21032PKGCONFIG_LIBS_PRIVATE="$PHREAD_LIBS $GLU_LIBS" 21033PKGCONFIG_INCLUDE="$GLU_CFLAGS" 21034 21035# Checks for GLEW library. 21036# ------------------------ 21037 21038if (test "x$with_glew" = "xyes"); then 21039 21040 if test "${ac_cv_header_GL_glew_h+set}" = set; then 21041 { echo "$as_me:$LINENO: checking for GL/glew.h" >&5 21042echo $ECHO_N "checking for GL/glew.h... $ECHO_C" >&6; } 21043if test "${ac_cv_header_GL_glew_h+set}" = set; then 21044 echo $ECHO_N "(cached) $ECHO_C" >&6 21045fi 21046{ echo "$as_me:$LINENO: result: $ac_cv_header_GL_glew_h" >&5 21047echo "${ECHO_T}$ac_cv_header_GL_glew_h" >&6; } 21048else 21049 # Is the header compilable? 21050{ echo "$as_me:$LINENO: checking GL/glew.h usability" >&5 21051echo $ECHO_N "checking GL/glew.h usability... $ECHO_C" >&6; } 21052cat >conftest.$ac_ext <<_ACEOF 21053/* confdefs.h. */ 21054_ACEOF 21055cat confdefs.h >>conftest.$ac_ext 21056cat >>conftest.$ac_ext <<_ACEOF 21057/* end confdefs.h. */ 21058$ac_includes_default 21059#include <GL/glew.h> 21060_ACEOF 21061rm -f conftest.$ac_objext 21062if { (ac_try="$ac_compile" 21063case "(($ac_try" in 21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21065 *) ac_try_echo=$ac_try;; 21066esac 21067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21068 (eval "$ac_compile") 2>conftest.er1 21069 ac_status=$? 21070 grep -v '^ *+' conftest.er1 >conftest.err 21071 rm -f conftest.er1 21072 cat conftest.err >&5 21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21074 (exit $ac_status); } && { 21075 test -z "$ac_c_werror_flag" || 21076 test ! -s conftest.err 21077 } && test -s conftest.$ac_objext; then 21078 ac_header_compiler=yes 21079else 21080 echo "$as_me: failed program was:" >&5 21081sed 's/^/| /' conftest.$ac_ext >&5 21082 21083 ac_header_compiler=no 21084fi 21085 21086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21087{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21088echo "${ECHO_T}$ac_header_compiler" >&6; } 21089 21090# Is the header present? 21091{ echo "$as_me:$LINENO: checking GL/glew.h presence" >&5 21092echo $ECHO_N "checking GL/glew.h presence... $ECHO_C" >&6; } 21093cat >conftest.$ac_ext <<_ACEOF 21094/* confdefs.h. */ 21095_ACEOF 21096cat confdefs.h >>conftest.$ac_ext 21097cat >>conftest.$ac_ext <<_ACEOF 21098/* end confdefs.h. */ 21099#include <GL/glew.h> 21100_ACEOF 21101if { (ac_try="$ac_cpp conftest.$ac_ext" 21102case "(($ac_try" in 21103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21104 *) ac_try_echo=$ac_try;; 21105esac 21106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21108 ac_status=$? 21109 grep -v '^ *+' conftest.er1 >conftest.err 21110 rm -f conftest.er1 21111 cat conftest.err >&5 21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21113 (exit $ac_status); } >/dev/null && { 21114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21115 test ! -s conftest.err 21116 }; then 21117 ac_header_preproc=yes 21118else 21119 echo "$as_me: failed program was:" >&5 21120sed 's/^/| /' conftest.$ac_ext >&5 21121 21122 ac_header_preproc=no 21123fi 21124 21125rm -f conftest.err conftest.$ac_ext 21126{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21127echo "${ECHO_T}$ac_header_preproc" >&6; } 21128 21129# So? What about this header? 21130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21131 yes:no: ) 21132 { echo "$as_me:$LINENO: WARNING: GL/glew.h: accepted by the compiler, rejected by the preprocessor!" >&5 21133echo "$as_me: WARNING: GL/glew.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21134 { echo "$as_me:$LINENO: WARNING: GL/glew.h: proceeding with the compiler's result" >&5 21135echo "$as_me: WARNING: GL/glew.h: proceeding with the compiler's result" >&2;} 21136 ac_header_preproc=yes 21137 ;; 21138 no:yes:* ) 21139 { echo "$as_me:$LINENO: WARNING: GL/glew.h: present but cannot be compiled" >&5 21140echo "$as_me: WARNING: GL/glew.h: present but cannot be compiled" >&2;} 21141 { echo "$as_me:$LINENO: WARNING: GL/glew.h: check for missing prerequisite headers?" >&5 21142echo "$as_me: WARNING: GL/glew.h: check for missing prerequisite headers?" >&2;} 21143 { echo "$as_me:$LINENO: WARNING: GL/glew.h: see the Autoconf documentation" >&5 21144echo "$as_me: WARNING: GL/glew.h: see the Autoconf documentation" >&2;} 21145 { echo "$as_me:$LINENO: WARNING: GL/glew.h: section \"Present But Cannot Be Compiled\"" >&5 21146echo "$as_me: WARNING: GL/glew.h: section \"Present But Cannot Be Compiled\"" >&2;} 21147 { echo "$as_me:$LINENO: WARNING: GL/glew.h: proceeding with the preprocessor's result" >&5 21148echo "$as_me: WARNING: GL/glew.h: proceeding with the preprocessor's result" >&2;} 21149 { echo "$as_me:$LINENO: WARNING: GL/glew.h: in the future, the compiler will take precedence" >&5 21150echo "$as_me: WARNING: GL/glew.h: in the future, the compiler will take precedence" >&2;} 21151 ( cat <<\_ASBOX 21152## ----------------------------------------------------- ## 21153## Report this to quesoglc-general@lists.sourceforge.net ## 21154## ----------------------------------------------------- ## 21155_ASBOX 21156 ) | sed "s/^/$as_me: WARNING: /" >&2 21157 ;; 21158esac 21159{ echo "$as_me:$LINENO: checking for GL/glew.h" >&5 21160echo $ECHO_N "checking for GL/glew.h... $ECHO_C" >&6; } 21161if test "${ac_cv_header_GL_glew_h+set}" = set; then 21162 echo $ECHO_N "(cached) $ECHO_C" >&6 21163else 21164 ac_cv_header_GL_glew_h=$ac_header_preproc 21165fi 21166{ echo "$as_me:$LINENO: result: $ac_cv_header_GL_glew_h" >&5 21167echo "${ECHO_T}$ac_cv_header_GL_glew_h" >&6; } 21168 21169fi 21170 21171 21172 21173{ echo "$as_me:$LINENO: checking for glewContextInit in -lGLEW" >&5 21174echo $ECHO_N "checking for glewContextInit in -lGLEW... $ECHO_C" >&6; } 21175if test "${ac_cv_lib_GLEW_glewContextInit+set}" = set; then 21176 echo $ECHO_N "(cached) $ECHO_C" >&6 21177else 21178 ac_check_lib_save_LIBS=$LIBS 21179LIBS="-lGLEW $LIBS" 21180cat >conftest.$ac_ext <<_ACEOF 21181/* confdefs.h. */ 21182_ACEOF 21183cat confdefs.h >>conftest.$ac_ext 21184cat >>conftest.$ac_ext <<_ACEOF 21185/* end confdefs.h. */ 21186 21187/* Override any GCC internal prototype to avoid an error. 21188 Use char because int might match the return type of a GCC 21189 builtin and then its argument prototype would still apply. */ 21190#ifdef __cplusplus 21191extern "C" 21192#endif 21193char glewContextInit (); 21194int 21195main () 21196{ 21197return glewContextInit (); 21198 ; 21199 return 0; 21200} 21201_ACEOF 21202rm -f conftest.$ac_objext conftest$ac_exeext 21203if { (ac_try="$ac_link" 21204case "(($ac_try" in 21205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21206 *) ac_try_echo=$ac_try;; 21207esac 21208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21209 (eval "$ac_link") 2>conftest.er1 21210 ac_status=$? 21211 grep -v '^ *+' conftest.er1 >conftest.err 21212 rm -f conftest.er1 21213 cat conftest.err >&5 21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21215 (exit $ac_status); } && { 21216 test -z "$ac_c_werror_flag" || 21217 test ! -s conftest.err 21218 } && test -s conftest$ac_exeext && 21219 $as_test_x conftest$ac_exeext; then 21220 ac_cv_lib_GLEW_glewContextInit=yes 21221else 21222 echo "$as_me: failed program was:" >&5 21223sed 's/^/| /' conftest.$ac_ext >&5 21224 21225 ac_cv_lib_GLEW_glewContextInit=no 21226fi 21227 21228rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21229 conftest$ac_exeext conftest.$ac_ext 21230LIBS=$ac_check_lib_save_LIBS 21231fi 21232{ echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_glewContextInit" >&5 21233echo "${ECHO_T}$ac_cv_lib_GLEW_glewContextInit" >&6; } 21234if test $ac_cv_lib_GLEW_glewContextInit = yes; then 21235 cat >>confdefs.h <<_ACEOF 21236#define HAVE_LIBGLEW 1 21237_ACEOF 21238 21239 LIBS="-lGLEW $LIBS" 21240 21241else 21242 no_glew="yes" 21243fi 21244 21245 21246 if test -z "$no_glew"; then 21247 cat >conftest.$ac_ext <<_ACEOF 21248/* confdefs.h. */ 21249_ACEOF 21250cat confdefs.h >>conftest.$ac_ext 21251cat >>conftest.$ac_ext <<_ACEOF 21252/* end confdefs.h. */ 21253 21254#include <GL/glew.h> 21255#if !defined(GL_SGIS_texture_lod) || !defined(GL_ARB_vertex_buffer_object) || !defined(GL_ARB_pixel_buffer_object) 21256# error 21257#endif 21258 21259int 21260main () 21261{ 21262glewContextInit() 21263 ; 21264 return 0; 21265} 21266_ACEOF 21267rm -f conftest.$ac_objext conftest$ac_exeext 21268if { (ac_try="$ac_link" 21269case "(($ac_try" in 21270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21271 *) ac_try_echo=$ac_try;; 21272esac 21273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21274 (eval "$ac_link") 2>conftest.er1 21275 ac_status=$? 21276 grep -v '^ *+' conftest.er1 >conftest.err 21277 rm -f conftest.er1 21278 cat conftest.err >&5 21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21280 (exit $ac_status); } && { 21281 test -z "$ac_c_werror_flag" || 21282 test ! -s conftest.err 21283 } && test -s conftest$ac_exeext && 21284 $as_test_x conftest$ac_exeext; then 21285 LIBS="-lGLEW $LIBS" 21286else 21287 echo "$as_me: failed program was:" >&5 21288sed 's/^/| /' conftest.$ac_ext >&5 21289 21290 21291fi 21292 21293rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21294 conftest$ac_exeext conftest.$ac_ext 21295 fi 21296 21297 if (test "x$no_glew" = "xyes"); then 21298 { echo "$as_me:$LINENO: GLEW will be built and embedded" >&5 21299echo "$as_me: GLEW will be built and embedded" >&6;} 21300 fi 21301else 21302 no_glew="yes" 21303fi 21304 21305if (test "x$no_glew" = "xyes"); then 21306 GLEW_CFLAGS="-DGLEW_MX" 21307 GLEW_OBJ="libGLC_la-glew.lo" 21308else 21309 PKGCONFIG_LIBS_PRIVATE="-lGLEW $PKGCONFIG_LIBS_PRIVATE" 21310fi 21311 21312# Special flags for MinGW32 build. 21313# -------------------------------- 21314 21315case $target_alias in 21316*mingw32*) 21317 if (test "x$enable_static" = "xyes"); then 21318 GLEW_CFLAGS+=" -DGLEW_STATIC" 21319 else 21320 GLEW_CFLAGS+=" -DGLEW_BUILD" 21321 fi 21322 ;; 21323esac 21324 21325# Determine whether to build (or not) test and examples executables. 21326# ------------------------------------------------------------------ 21327 21328if (test "x$enable_executables" = "xyes"); then 21329 21330 if test "$no_x" = yes; then 21331 # Not all programs may use this symbol, but it does not hurt to define it. 21332 21333cat >>confdefs.h <<\_ACEOF 21334#define X_DISPLAY_MISSING 1 21335_ACEOF 21336 21337 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 21338else 21339 if test -n "$x_includes"; then 21340 X_CFLAGS="$X_CFLAGS -I$x_includes" 21341 fi 21342 21343 # It would also be nice to do this for all -L options, not just this one. 21344 if test -n "$x_libraries"; then 21345 X_LIBS="$X_LIBS -L$x_libraries" 21346 # For Solaris; some versions of Sun CC require a space after -R and 21347 # others require no space. Words are not sufficient . . . . 21348 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 21349echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } 21350 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 21351 ac_xsave_c_werror_flag=$ac_c_werror_flag 21352 ac_c_werror_flag=yes 21353 cat >conftest.$ac_ext <<_ACEOF 21354/* confdefs.h. */ 21355_ACEOF 21356cat confdefs.h >>conftest.$ac_ext 21357cat >>conftest.$ac_ext <<_ACEOF 21358/* end confdefs.h. */ 21359 21360int 21361main () 21362{ 21363 21364 ; 21365 return 0; 21366} 21367_ACEOF 21368rm -f conftest.$ac_objext conftest$ac_exeext 21369if { (ac_try="$ac_link" 21370case "(($ac_try" in 21371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21372 *) ac_try_echo=$ac_try;; 21373esac 21374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21375 (eval "$ac_link") 2>conftest.er1 21376 ac_status=$? 21377 grep -v '^ *+' conftest.er1 >conftest.err 21378 rm -f conftest.er1 21379 cat conftest.err >&5 21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21381 (exit $ac_status); } && { 21382 test -z "$ac_c_werror_flag" || 21383 test ! -s conftest.err 21384 } && test -s conftest$ac_exeext && 21385 $as_test_x conftest$ac_exeext; then 21386 { echo "$as_me:$LINENO: result: no" >&5 21387echo "${ECHO_T}no" >&6; } 21388 X_LIBS="$X_LIBS -R$x_libraries" 21389else 21390 echo "$as_me: failed program was:" >&5 21391sed 's/^/| /' conftest.$ac_ext >&5 21392 21393 LIBS="$ac_xsave_LIBS -R $x_libraries" 21394 cat >conftest.$ac_ext <<_ACEOF 21395/* confdefs.h. */ 21396_ACEOF 21397cat confdefs.h >>conftest.$ac_ext 21398cat >>conftest.$ac_ext <<_ACEOF 21399/* end confdefs.h. */ 21400 21401int 21402main () 21403{ 21404 21405 ; 21406 return 0; 21407} 21408_ACEOF 21409rm -f conftest.$ac_objext conftest$ac_exeext 21410if { (ac_try="$ac_link" 21411case "(($ac_try" in 21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21413 *) ac_try_echo=$ac_try;; 21414esac 21415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21416 (eval "$ac_link") 2>conftest.er1 21417 ac_status=$? 21418 grep -v '^ *+' conftest.er1 >conftest.err 21419 rm -f conftest.er1 21420 cat conftest.err >&5 21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21422 (exit $ac_status); } && { 21423 test -z "$ac_c_werror_flag" || 21424 test ! -s conftest.err 21425 } && test -s conftest$ac_exeext && 21426 $as_test_x conftest$ac_exeext; then 21427 { echo "$as_me:$LINENO: result: yes" >&5 21428echo "${ECHO_T}yes" >&6; } 21429 X_LIBS="$X_LIBS -R $x_libraries" 21430else 21431 echo "$as_me: failed program was:" >&5 21432sed 's/^/| /' conftest.$ac_ext >&5 21433 21434 { echo "$as_me:$LINENO: result: neither works" >&5 21435echo "${ECHO_T}neither works" >&6; } 21436fi 21437 21438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21439 conftest$ac_exeext conftest.$ac_ext 21440fi 21441 21442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21443 conftest$ac_exeext conftest.$ac_ext 21444 ac_c_werror_flag=$ac_xsave_c_werror_flag 21445 LIBS=$ac_xsave_LIBS 21446 fi 21447 21448 # Check for system-dependent libraries X programs must link with. 21449 # Do this before checking for the system-independent R6 libraries 21450 # (-lICE), since we may need -lsocket or whatever for X linking. 21451 21452 if test "$ISC" = yes; then 21453 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 21454 else 21455 # Martyn Johnson says this is needed for Ultrix, if the X 21456 # libraries were built with DECnet support. And Karl Berry says 21457 # the Alpha needs dnet_stub (dnet does not exist). 21458 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 21459 cat >conftest.$ac_ext <<_ACEOF 21460/* confdefs.h. */ 21461_ACEOF 21462cat confdefs.h >>conftest.$ac_ext 21463cat >>conftest.$ac_ext <<_ACEOF 21464/* end confdefs.h. */ 21465 21466/* Override any GCC internal prototype to avoid an error. 21467 Use char because int might match the return type of a GCC 21468 builtin and then its argument prototype would still apply. */ 21469#ifdef __cplusplus 21470extern "C" 21471#endif 21472char XOpenDisplay (); 21473int 21474main () 21475{ 21476return XOpenDisplay (); 21477 ; 21478 return 0; 21479} 21480_ACEOF 21481rm -f conftest.$ac_objext conftest$ac_exeext 21482if { (ac_try="$ac_link" 21483case "(($ac_try" in 21484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21485 *) ac_try_echo=$ac_try;; 21486esac 21487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21488 (eval "$ac_link") 2>conftest.er1 21489 ac_status=$? 21490 grep -v '^ *+' conftest.er1 >conftest.err 21491 rm -f conftest.er1 21492 cat conftest.err >&5 21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21494 (exit $ac_status); } && { 21495 test -z "$ac_c_werror_flag" || 21496 test ! -s conftest.err 21497 } && test -s conftest$ac_exeext && 21498 $as_test_x conftest$ac_exeext; then 21499 : 21500else 21501 echo "$as_me: failed program was:" >&5 21502sed 's/^/| /' conftest.$ac_ext >&5 21503 21504 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 21505echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } 21506if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 21507 echo $ECHO_N "(cached) $ECHO_C" >&6 21508else 21509 ac_check_lib_save_LIBS=$LIBS 21510LIBS="-ldnet $LIBS" 21511cat >conftest.$ac_ext <<_ACEOF 21512/* confdefs.h. */ 21513_ACEOF 21514cat confdefs.h >>conftest.$ac_ext 21515cat >>conftest.$ac_ext <<_ACEOF 21516/* end confdefs.h. */ 21517 21518/* Override any GCC internal prototype to avoid an error. 21519 Use char because int might match the return type of a GCC 21520 builtin and then its argument prototype would still apply. */ 21521#ifdef __cplusplus 21522extern "C" 21523#endif 21524char dnet_ntoa (); 21525int 21526main () 21527{ 21528return dnet_ntoa (); 21529 ; 21530 return 0; 21531} 21532_ACEOF 21533rm -f conftest.$ac_objext conftest$ac_exeext 21534if { (ac_try="$ac_link" 21535case "(($ac_try" in 21536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21537 *) ac_try_echo=$ac_try;; 21538esac 21539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21540 (eval "$ac_link") 2>conftest.er1 21541 ac_status=$? 21542 grep -v '^ *+' conftest.er1 >conftest.err 21543 rm -f conftest.er1 21544 cat conftest.err >&5 21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21546 (exit $ac_status); } && { 21547 test -z "$ac_c_werror_flag" || 21548 test ! -s conftest.err 21549 } && test -s conftest$ac_exeext && 21550 $as_test_x conftest$ac_exeext; then 21551 ac_cv_lib_dnet_dnet_ntoa=yes 21552else 21553 echo "$as_me: failed program was:" >&5 21554sed 's/^/| /' conftest.$ac_ext >&5 21555 21556 ac_cv_lib_dnet_dnet_ntoa=no 21557fi 21558 21559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21560 conftest$ac_exeext conftest.$ac_ext 21561LIBS=$ac_check_lib_save_LIBS 21562fi 21563{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 21564echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } 21565if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 21566 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 21567fi 21568 21569 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 21570 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 21571echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } 21572if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 21573 echo $ECHO_N "(cached) $ECHO_C" >&6 21574else 21575 ac_check_lib_save_LIBS=$LIBS 21576LIBS="-ldnet_stub $LIBS" 21577cat >conftest.$ac_ext <<_ACEOF 21578/* confdefs.h. */ 21579_ACEOF 21580cat confdefs.h >>conftest.$ac_ext 21581cat >>conftest.$ac_ext <<_ACEOF 21582/* end confdefs.h. */ 21583 21584/* Override any GCC internal prototype to avoid an error. 21585 Use char because int might match the return type of a GCC 21586 builtin and then its argument prototype would still apply. */ 21587#ifdef __cplusplus 21588extern "C" 21589#endif 21590char dnet_ntoa (); 21591int 21592main () 21593{ 21594return dnet_ntoa (); 21595 ; 21596 return 0; 21597} 21598_ACEOF 21599rm -f conftest.$ac_objext conftest$ac_exeext 21600if { (ac_try="$ac_link" 21601case "(($ac_try" in 21602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21603 *) ac_try_echo=$ac_try;; 21604esac 21605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21606 (eval "$ac_link") 2>conftest.er1 21607 ac_status=$? 21608 grep -v '^ *+' conftest.er1 >conftest.err 21609 rm -f conftest.er1 21610 cat conftest.err >&5 21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21612 (exit $ac_status); } && { 21613 test -z "$ac_c_werror_flag" || 21614 test ! -s conftest.err 21615 } && test -s conftest$ac_exeext && 21616 $as_test_x conftest$ac_exeext; then 21617 ac_cv_lib_dnet_stub_dnet_ntoa=yes 21618else 21619 echo "$as_me: failed program was:" >&5 21620sed 's/^/| /' conftest.$ac_ext >&5 21621 21622 ac_cv_lib_dnet_stub_dnet_ntoa=no 21623fi 21624 21625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21626 conftest$ac_exeext conftest.$ac_ext 21627LIBS=$ac_check_lib_save_LIBS 21628fi 21629{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 21630echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 21631if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 21632 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 21633fi 21634 21635 fi 21636fi 21637 21638rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21639 conftest$ac_exeext conftest.$ac_ext 21640 LIBS="$ac_xsave_LIBS" 21641 21642 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 21643 # to get the SysV transport functions. 21644 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 21645 # needs -lnsl. 21646 # The nsl library prevents programs from opening the X display 21647 # on Irix 5.2, according to T.E. Dickey. 21648 # The functions gethostbyname, getservbyname, and inet_addr are 21649 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 21650 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 21651echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 21652if test "${ac_cv_func_gethostbyname+set}" = set; then 21653 echo $ECHO_N "(cached) $ECHO_C" >&6 21654else 21655 cat >conftest.$ac_ext <<_ACEOF 21656/* confdefs.h. */ 21657_ACEOF 21658cat confdefs.h >>conftest.$ac_ext 21659cat >>conftest.$ac_ext <<_ACEOF 21660/* end confdefs.h. */ 21661/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 21662 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21663#define gethostbyname innocuous_gethostbyname 21664 21665/* System header to define __stub macros and hopefully few prototypes, 21666 which can conflict with char gethostbyname (); below. 21667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21668 <limits.h> exists even on freestanding compilers. */ 21669 21670#ifdef __STDC__ 21671# include <limits.h> 21672#else 21673# include <assert.h> 21674#endif 21675 21676#undef gethostbyname 21677 21678/* Override any GCC internal prototype to avoid an error. 21679 Use char because int might match the return type of a GCC 21680 builtin and then its argument prototype would still apply. */ 21681#ifdef __cplusplus 21682extern "C" 21683#endif 21684char gethostbyname (); 21685/* The GNU C library defines this for functions which it implements 21686 to always fail with ENOSYS. Some functions are actually named 21687 something starting with __ and the normal name is an alias. */ 21688#if defined __stub_gethostbyname || defined __stub___gethostbyname 21689choke me 21690#endif 21691 21692int 21693main () 21694{ 21695return gethostbyname (); 21696 ; 21697 return 0; 21698} 21699_ACEOF 21700rm -f conftest.$ac_objext conftest$ac_exeext 21701if { (ac_try="$ac_link" 21702case "(($ac_try" in 21703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21704 *) ac_try_echo=$ac_try;; 21705esac 21706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21707 (eval "$ac_link") 2>conftest.er1 21708 ac_status=$? 21709 grep -v '^ *+' conftest.er1 >conftest.err 21710 rm -f conftest.er1 21711 cat conftest.err >&5 21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21713 (exit $ac_status); } && { 21714 test -z "$ac_c_werror_flag" || 21715 test ! -s conftest.err 21716 } && test -s conftest$ac_exeext && 21717 $as_test_x conftest$ac_exeext; then 21718 ac_cv_func_gethostbyname=yes 21719else 21720 echo "$as_me: failed program was:" >&5 21721sed 's/^/| /' conftest.$ac_ext >&5 21722 21723 ac_cv_func_gethostbyname=no 21724fi 21725 21726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21727 conftest$ac_exeext conftest.$ac_ext 21728fi 21729{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 21730echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 21731 21732 if test $ac_cv_func_gethostbyname = no; then 21733 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 21734echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 21735if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 21736 echo $ECHO_N "(cached) $ECHO_C" >&6 21737else 21738 ac_check_lib_save_LIBS=$LIBS 21739LIBS="-lnsl $LIBS" 21740cat >conftest.$ac_ext <<_ACEOF 21741/* confdefs.h. */ 21742_ACEOF 21743cat confdefs.h >>conftest.$ac_ext 21744cat >>conftest.$ac_ext <<_ACEOF 21745/* end confdefs.h. */ 21746 21747/* Override any GCC internal prototype to avoid an error. 21748 Use char because int might match the return type of a GCC 21749 builtin and then its argument prototype would still apply. */ 21750#ifdef __cplusplus 21751extern "C" 21752#endif 21753char gethostbyname (); 21754int 21755main () 21756{ 21757return gethostbyname (); 21758 ; 21759 return 0; 21760} 21761_ACEOF 21762rm -f conftest.$ac_objext conftest$ac_exeext 21763if { (ac_try="$ac_link" 21764case "(($ac_try" in 21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21766 *) ac_try_echo=$ac_try;; 21767esac 21768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21769 (eval "$ac_link") 2>conftest.er1 21770 ac_status=$? 21771 grep -v '^ *+' conftest.er1 >conftest.err 21772 rm -f conftest.er1 21773 cat conftest.err >&5 21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21775 (exit $ac_status); } && { 21776 test -z "$ac_c_werror_flag" || 21777 test ! -s conftest.err 21778 } && test -s conftest$ac_exeext && 21779 $as_test_x conftest$ac_exeext; then 21780 ac_cv_lib_nsl_gethostbyname=yes 21781else 21782 echo "$as_me: failed program was:" >&5 21783sed 's/^/| /' conftest.$ac_ext >&5 21784 21785 ac_cv_lib_nsl_gethostbyname=no 21786fi 21787 21788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21789 conftest$ac_exeext conftest.$ac_ext 21790LIBS=$ac_check_lib_save_LIBS 21791fi 21792{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 21793echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 21794if test $ac_cv_lib_nsl_gethostbyname = yes; then 21795 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 21796fi 21797 21798 if test $ac_cv_lib_nsl_gethostbyname = no; then 21799 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 21800echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } 21801if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 21802 echo $ECHO_N "(cached) $ECHO_C" >&6 21803else 21804 ac_check_lib_save_LIBS=$LIBS 21805LIBS="-lbsd $LIBS" 21806cat >conftest.$ac_ext <<_ACEOF 21807/* confdefs.h. */ 21808_ACEOF 21809cat confdefs.h >>conftest.$ac_ext 21810cat >>conftest.$ac_ext <<_ACEOF 21811/* end confdefs.h. */ 21812 21813/* Override any GCC internal prototype to avoid an error. 21814 Use char because int might match the return type of a GCC 21815 builtin and then its argument prototype would still apply. */ 21816#ifdef __cplusplus 21817extern "C" 21818#endif 21819char gethostbyname (); 21820int 21821main () 21822{ 21823return gethostbyname (); 21824 ; 21825 return 0; 21826} 21827_ACEOF 21828rm -f conftest.$ac_objext conftest$ac_exeext 21829if { (ac_try="$ac_link" 21830case "(($ac_try" in 21831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21832 *) ac_try_echo=$ac_try;; 21833esac 21834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21835 (eval "$ac_link") 2>conftest.er1 21836 ac_status=$? 21837 grep -v '^ *+' conftest.er1 >conftest.err 21838 rm -f conftest.er1 21839 cat conftest.err >&5 21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21841 (exit $ac_status); } && { 21842 test -z "$ac_c_werror_flag" || 21843 test ! -s conftest.err 21844 } && test -s conftest$ac_exeext && 21845 $as_test_x conftest$ac_exeext; then 21846 ac_cv_lib_bsd_gethostbyname=yes 21847else 21848 echo "$as_me: failed program was:" >&5 21849sed 's/^/| /' conftest.$ac_ext >&5 21850 21851 ac_cv_lib_bsd_gethostbyname=no 21852fi 21853 21854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21855 conftest$ac_exeext conftest.$ac_ext 21856LIBS=$ac_check_lib_save_LIBS 21857fi 21858{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 21859echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } 21860if test $ac_cv_lib_bsd_gethostbyname = yes; then 21861 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 21862fi 21863 21864 fi 21865 fi 21866 21867 # lieder@skyler.mavd.honeywell.com says without -lsocket, 21868 # socket/setsockopt and other routines are undefined under SCO ODT 21869 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 21870 # on later versions), says Simon Leinen: it contains gethostby* 21871 # variants that don't use the name server (or something). -lsocket 21872 # must be given before -lnsl if both are needed. We assume that 21873 # if connect needs -lnsl, so does gethostbyname. 21874 { echo "$as_me:$LINENO: checking for connect" >&5 21875echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 21876if test "${ac_cv_func_connect+set}" = set; then 21877 echo $ECHO_N "(cached) $ECHO_C" >&6 21878else 21879 cat >conftest.$ac_ext <<_ACEOF 21880/* confdefs.h. */ 21881_ACEOF 21882cat confdefs.h >>conftest.$ac_ext 21883cat >>conftest.$ac_ext <<_ACEOF 21884/* end confdefs.h. */ 21885/* Define connect to an innocuous variant, in case <limits.h> declares connect. 21886 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21887#define connect innocuous_connect 21888 21889/* System header to define __stub macros and hopefully few prototypes, 21890 which can conflict with char connect (); below. 21891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21892 <limits.h> exists even on freestanding compilers. */ 21893 21894#ifdef __STDC__ 21895# include <limits.h> 21896#else 21897# include <assert.h> 21898#endif 21899 21900#undef connect 21901 21902/* Override any GCC internal prototype to avoid an error. 21903 Use char because int might match the return type of a GCC 21904 builtin and then its argument prototype would still apply. */ 21905#ifdef __cplusplus 21906extern "C" 21907#endif 21908char connect (); 21909/* The GNU C library defines this for functions which it implements 21910 to always fail with ENOSYS. Some functions are actually named 21911 something starting with __ and the normal name is an alias. */ 21912#if defined __stub_connect || defined __stub___connect 21913choke me 21914#endif 21915 21916int 21917main () 21918{ 21919return connect (); 21920 ; 21921 return 0; 21922} 21923_ACEOF 21924rm -f conftest.$ac_objext conftest$ac_exeext 21925if { (ac_try="$ac_link" 21926case "(($ac_try" in 21927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21928 *) ac_try_echo=$ac_try;; 21929esac 21930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21931 (eval "$ac_link") 2>conftest.er1 21932 ac_status=$? 21933 grep -v '^ *+' conftest.er1 >conftest.err 21934 rm -f conftest.er1 21935 cat conftest.err >&5 21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21937 (exit $ac_status); } && { 21938 test -z "$ac_c_werror_flag" || 21939 test ! -s conftest.err 21940 } && test -s conftest$ac_exeext && 21941 $as_test_x conftest$ac_exeext; then 21942 ac_cv_func_connect=yes 21943else 21944 echo "$as_me: failed program was:" >&5 21945sed 's/^/| /' conftest.$ac_ext >&5 21946 21947 ac_cv_func_connect=no 21948fi 21949 21950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21951 conftest$ac_exeext conftest.$ac_ext 21952fi 21953{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 21954echo "${ECHO_T}$ac_cv_func_connect" >&6; } 21955 21956 if test $ac_cv_func_connect = no; then 21957 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 21958echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 21959if test "${ac_cv_lib_socket_connect+set}" = set; then 21960 echo $ECHO_N "(cached) $ECHO_C" >&6 21961else 21962 ac_check_lib_save_LIBS=$LIBS 21963LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 21964cat >conftest.$ac_ext <<_ACEOF 21965/* confdefs.h. */ 21966_ACEOF 21967cat confdefs.h >>conftest.$ac_ext 21968cat >>conftest.$ac_ext <<_ACEOF 21969/* end confdefs.h. */ 21970 21971/* Override any GCC internal prototype to avoid an error. 21972 Use char because int might match the return type of a GCC 21973 builtin and then its argument prototype would still apply. */ 21974#ifdef __cplusplus 21975extern "C" 21976#endif 21977char connect (); 21978int 21979main () 21980{ 21981return connect (); 21982 ; 21983 return 0; 21984} 21985_ACEOF 21986rm -f conftest.$ac_objext conftest$ac_exeext 21987if { (ac_try="$ac_link" 21988case "(($ac_try" in 21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21990 *) ac_try_echo=$ac_try;; 21991esac 21992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21993 (eval "$ac_link") 2>conftest.er1 21994 ac_status=$? 21995 grep -v '^ *+' conftest.er1 >conftest.err 21996 rm -f conftest.er1 21997 cat conftest.err >&5 21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21999 (exit $ac_status); } && { 22000 test -z "$ac_c_werror_flag" || 22001 test ! -s conftest.err 22002 } && test -s conftest$ac_exeext && 22003 $as_test_x conftest$ac_exeext; then 22004 ac_cv_lib_socket_connect=yes 22005else 22006 echo "$as_me: failed program was:" >&5 22007sed 's/^/| /' conftest.$ac_ext >&5 22008 22009 ac_cv_lib_socket_connect=no 22010fi 22011 22012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22013 conftest$ac_exeext conftest.$ac_ext 22014LIBS=$ac_check_lib_save_LIBS 22015fi 22016{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 22017echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 22018if test $ac_cv_lib_socket_connect = yes; then 22019 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 22020fi 22021 22022 fi 22023 22024 # Guillermo Gomez says -lposix is necessary on A/UX. 22025 { echo "$as_me:$LINENO: checking for remove" >&5 22026echo $ECHO_N "checking for remove... $ECHO_C" >&6; } 22027if test "${ac_cv_func_remove+set}" = set; then 22028 echo $ECHO_N "(cached) $ECHO_C" >&6 22029else 22030 cat >conftest.$ac_ext <<_ACEOF 22031/* confdefs.h. */ 22032_ACEOF 22033cat confdefs.h >>conftest.$ac_ext 22034cat >>conftest.$ac_ext <<_ACEOF 22035/* end confdefs.h. */ 22036/* Define remove to an innocuous variant, in case <limits.h> declares remove. 22037 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22038#define remove innocuous_remove 22039 22040/* System header to define __stub macros and hopefully few prototypes, 22041 which can conflict with char remove (); below. 22042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22043 <limits.h> exists even on freestanding compilers. */ 22044 22045#ifdef __STDC__ 22046# include <limits.h> 22047#else 22048# include <assert.h> 22049#endif 22050 22051#undef remove 22052 22053/* Override any GCC internal prototype to avoid an error. 22054 Use char because int might match the return type of a GCC 22055 builtin and then its argument prototype would still apply. */ 22056#ifdef __cplusplus 22057extern "C" 22058#endif 22059char remove (); 22060/* The GNU C library defines this for functions which it implements 22061 to always fail with ENOSYS. Some functions are actually named 22062 something starting with __ and the normal name is an alias. */ 22063#if defined __stub_remove || defined __stub___remove 22064choke me 22065#endif 22066 22067int 22068main () 22069{ 22070return remove (); 22071 ; 22072 return 0; 22073} 22074_ACEOF 22075rm -f conftest.$ac_objext conftest$ac_exeext 22076if { (ac_try="$ac_link" 22077case "(($ac_try" in 22078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22079 *) ac_try_echo=$ac_try;; 22080esac 22081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22082 (eval "$ac_link") 2>conftest.er1 22083 ac_status=$? 22084 grep -v '^ *+' conftest.er1 >conftest.err 22085 rm -f conftest.er1 22086 cat conftest.err >&5 22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22088 (exit $ac_status); } && { 22089 test -z "$ac_c_werror_flag" || 22090 test ! -s conftest.err 22091 } && test -s conftest$ac_exeext && 22092 $as_test_x conftest$ac_exeext; then 22093 ac_cv_func_remove=yes 22094else 22095 echo "$as_me: failed program was:" >&5 22096sed 's/^/| /' conftest.$ac_ext >&5 22097 22098 ac_cv_func_remove=no 22099fi 22100 22101rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22102 conftest$ac_exeext conftest.$ac_ext 22103fi 22104{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 22105echo "${ECHO_T}$ac_cv_func_remove" >&6; } 22106 22107 if test $ac_cv_func_remove = no; then 22108 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 22109echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } 22110if test "${ac_cv_lib_posix_remove+set}" = set; then 22111 echo $ECHO_N "(cached) $ECHO_C" >&6 22112else 22113 ac_check_lib_save_LIBS=$LIBS 22114LIBS="-lposix $LIBS" 22115cat >conftest.$ac_ext <<_ACEOF 22116/* confdefs.h. */ 22117_ACEOF 22118cat confdefs.h >>conftest.$ac_ext 22119cat >>conftest.$ac_ext <<_ACEOF 22120/* end confdefs.h. */ 22121 22122/* Override any GCC internal prototype to avoid an error. 22123 Use char because int might match the return type of a GCC 22124 builtin and then its argument prototype would still apply. */ 22125#ifdef __cplusplus 22126extern "C" 22127#endif 22128char remove (); 22129int 22130main () 22131{ 22132return remove (); 22133 ; 22134 return 0; 22135} 22136_ACEOF 22137rm -f conftest.$ac_objext conftest$ac_exeext 22138if { (ac_try="$ac_link" 22139case "(($ac_try" in 22140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22141 *) ac_try_echo=$ac_try;; 22142esac 22143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22144 (eval "$ac_link") 2>conftest.er1 22145 ac_status=$? 22146 grep -v '^ *+' conftest.er1 >conftest.err 22147 rm -f conftest.er1 22148 cat conftest.err >&5 22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22150 (exit $ac_status); } && { 22151 test -z "$ac_c_werror_flag" || 22152 test ! -s conftest.err 22153 } && test -s conftest$ac_exeext && 22154 $as_test_x conftest$ac_exeext; then 22155 ac_cv_lib_posix_remove=yes 22156else 22157 echo "$as_me: failed program was:" >&5 22158sed 's/^/| /' conftest.$ac_ext >&5 22159 22160 ac_cv_lib_posix_remove=no 22161fi 22162 22163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22164 conftest$ac_exeext conftest.$ac_ext 22165LIBS=$ac_check_lib_save_LIBS 22166fi 22167{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 22168echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } 22169if test $ac_cv_lib_posix_remove = yes; then 22170 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 22171fi 22172 22173 fi 22174 22175 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 22176 { echo "$as_me:$LINENO: checking for shmat" >&5 22177echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } 22178if test "${ac_cv_func_shmat+set}" = set; then 22179 echo $ECHO_N "(cached) $ECHO_C" >&6 22180else 22181 cat >conftest.$ac_ext <<_ACEOF 22182/* confdefs.h. */ 22183_ACEOF 22184cat confdefs.h >>conftest.$ac_ext 22185cat >>conftest.$ac_ext <<_ACEOF 22186/* end confdefs.h. */ 22187/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 22188 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22189#define shmat innocuous_shmat 22190 22191/* System header to define __stub macros and hopefully few prototypes, 22192 which can conflict with char shmat (); below. 22193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22194 <limits.h> exists even on freestanding compilers. */ 22195 22196#ifdef __STDC__ 22197# include <limits.h> 22198#else 22199# include <assert.h> 22200#endif 22201 22202#undef shmat 22203 22204/* Override any GCC internal prototype to avoid an error. 22205 Use char because int might match the return type of a GCC 22206 builtin and then its argument prototype would still apply. */ 22207#ifdef __cplusplus 22208extern "C" 22209#endif 22210char shmat (); 22211/* The GNU C library defines this for functions which it implements 22212 to always fail with ENOSYS. Some functions are actually named 22213 something starting with __ and the normal name is an alias. */ 22214#if defined __stub_shmat || defined __stub___shmat 22215choke me 22216#endif 22217 22218int 22219main () 22220{ 22221return shmat (); 22222 ; 22223 return 0; 22224} 22225_ACEOF 22226rm -f conftest.$ac_objext conftest$ac_exeext 22227if { (ac_try="$ac_link" 22228case "(($ac_try" in 22229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22230 *) ac_try_echo=$ac_try;; 22231esac 22232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22233 (eval "$ac_link") 2>conftest.er1 22234 ac_status=$? 22235 grep -v '^ *+' conftest.er1 >conftest.err 22236 rm -f conftest.er1 22237 cat conftest.err >&5 22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22239 (exit $ac_status); } && { 22240 test -z "$ac_c_werror_flag" || 22241 test ! -s conftest.err 22242 } && test -s conftest$ac_exeext && 22243 $as_test_x conftest$ac_exeext; then 22244 ac_cv_func_shmat=yes 22245else 22246 echo "$as_me: failed program was:" >&5 22247sed 's/^/| /' conftest.$ac_ext >&5 22248 22249 ac_cv_func_shmat=no 22250fi 22251 22252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22253 conftest$ac_exeext conftest.$ac_ext 22254fi 22255{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 22256echo "${ECHO_T}$ac_cv_func_shmat" >&6; } 22257 22258 if test $ac_cv_func_shmat = no; then 22259 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 22260echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } 22261if test "${ac_cv_lib_ipc_shmat+set}" = set; then 22262 echo $ECHO_N "(cached) $ECHO_C" >&6 22263else 22264 ac_check_lib_save_LIBS=$LIBS 22265LIBS="-lipc $LIBS" 22266cat >conftest.$ac_ext <<_ACEOF 22267/* confdefs.h. */ 22268_ACEOF 22269cat confdefs.h >>conftest.$ac_ext 22270cat >>conftest.$ac_ext <<_ACEOF 22271/* end confdefs.h. */ 22272 22273/* Override any GCC internal prototype to avoid an error. 22274 Use char because int might match the return type of a GCC 22275 builtin and then its argument prototype would still apply. */ 22276#ifdef __cplusplus 22277extern "C" 22278#endif 22279char shmat (); 22280int 22281main () 22282{ 22283return shmat (); 22284 ; 22285 return 0; 22286} 22287_ACEOF 22288rm -f conftest.$ac_objext conftest$ac_exeext 22289if { (ac_try="$ac_link" 22290case "(($ac_try" in 22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22292 *) ac_try_echo=$ac_try;; 22293esac 22294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22295 (eval "$ac_link") 2>conftest.er1 22296 ac_status=$? 22297 grep -v '^ *+' conftest.er1 >conftest.err 22298 rm -f conftest.er1 22299 cat conftest.err >&5 22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22301 (exit $ac_status); } && { 22302 test -z "$ac_c_werror_flag" || 22303 test ! -s conftest.err 22304 } && test -s conftest$ac_exeext && 22305 $as_test_x conftest$ac_exeext; then 22306 ac_cv_lib_ipc_shmat=yes 22307else 22308 echo "$as_me: failed program was:" >&5 22309sed 's/^/| /' conftest.$ac_ext >&5 22310 22311 ac_cv_lib_ipc_shmat=no 22312fi 22313 22314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22315 conftest$ac_exeext conftest.$ac_ext 22316LIBS=$ac_check_lib_save_LIBS 22317fi 22318{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 22319echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } 22320if test $ac_cv_lib_ipc_shmat = yes; then 22321 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 22322fi 22323 22324 fi 22325 fi 22326 22327 # Check for libraries that X11R6 Xt/Xaw programs need. 22328 ac_save_LDFLAGS=$LDFLAGS 22329 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 22330 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 22331 # check for ICE first), but we must link in the order -lSM -lICE or 22332 # we get undefined symbols. So assume we have SM if we have ICE. 22333 # These have to be linked with before -lX11, unlike the other 22334 # libraries we check for below, so use a different variable. 22335 # John Interrante, Karl Berry 22336 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 22337echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } 22338if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 22339 echo $ECHO_N "(cached) $ECHO_C" >&6 22340else 22341 ac_check_lib_save_LIBS=$LIBS 22342LIBS="-lICE $X_EXTRA_LIBS $LIBS" 22343cat >conftest.$ac_ext <<_ACEOF 22344/* confdefs.h. */ 22345_ACEOF 22346cat confdefs.h >>conftest.$ac_ext 22347cat >>conftest.$ac_ext <<_ACEOF 22348/* end confdefs.h. */ 22349 22350/* Override any GCC internal prototype to avoid an error. 22351 Use char because int might match the return type of a GCC 22352 builtin and then its argument prototype would still apply. */ 22353#ifdef __cplusplus 22354extern "C" 22355#endif 22356char IceConnectionNumber (); 22357int 22358main () 22359{ 22360return IceConnectionNumber (); 22361 ; 22362 return 0; 22363} 22364_ACEOF 22365rm -f conftest.$ac_objext conftest$ac_exeext 22366if { (ac_try="$ac_link" 22367case "(($ac_try" in 22368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22369 *) ac_try_echo=$ac_try;; 22370esac 22371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22372 (eval "$ac_link") 2>conftest.er1 22373 ac_status=$? 22374 grep -v '^ *+' conftest.er1 >conftest.err 22375 rm -f conftest.er1 22376 cat conftest.err >&5 22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22378 (exit $ac_status); } && { 22379 test -z "$ac_c_werror_flag" || 22380 test ! -s conftest.err 22381 } && test -s conftest$ac_exeext && 22382 $as_test_x conftest$ac_exeext; then 22383 ac_cv_lib_ICE_IceConnectionNumber=yes 22384else 22385 echo "$as_me: failed program was:" >&5 22386sed 's/^/| /' conftest.$ac_ext >&5 22387 22388 ac_cv_lib_ICE_IceConnectionNumber=no 22389fi 22390 22391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22392 conftest$ac_exeext conftest.$ac_ext 22393LIBS=$ac_check_lib_save_LIBS 22394fi 22395{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 22396echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 22397if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 22398 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 22399fi 22400 22401 LDFLAGS=$ac_save_LDFLAGS 22402 22403fi 22404 22405 22406if test "X$with_apple_opengl_framework" = "Xyes"; then 22407 GLUT_CFLAGS="${GLU_CFLAGS}" 22408 GLUT_LIBS="-framework GLUT -lobjc ${GL_LIBS}" 22409else 22410 GLUT_CFLAGS=${GLU_CFLAGS} 22411 GLUT_LIBS=${GLU_LIBS} 22412 22413 # 22414 # If X is present, assume GLUT depends on it. 22415 # 22416 if test "X${no_x}" != "Xyes"; then 22417 GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" 22418 fi 22419 22420 ac_ext=c 22421ac_cpp='$CPP $CPPFLAGS' 22422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22424ac_compiler_gnu=$ac_cv_c_compiler_gnu 22425 22426 22427 ax_save_CPPFLAGS="${CPPFLAGS}" 22428 CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" 22429 22430 { echo "$as_me:$LINENO: checking for GLUT library" >&5 22431echo $ECHO_N "checking for GLUT library... $ECHO_C" >&6; } 22432if test "${ax_cv_check_glut_libglut+set}" = set; then 22433 echo $ECHO_N "(cached) $ECHO_C" >&6 22434else 22435 ax_cv_check_glut_libglut="no" 22436 ax_save_LIBS="${LIBS}" 22437 LIBS="" 22438 ax_check_libs="-lglut32 -lglut" 22439 for ax_lib in ${ax_check_libs}; do 22440 if test X$ax_compiler_ms = Xyes; then 22441 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 22442 else 22443 ax_try_lib="${ax_lib}" 22444 fi 22445 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" 22446 cat >conftest.$ac_ext <<_ACEOF 22447/* confdefs.h. */ 22448_ACEOF 22449cat confdefs.h >>conftest.$ac_ext 22450cat >>conftest.$ac_ext <<_ACEOF 22451/* end confdefs.h. */ 22452 22453# if HAVE_WINDOWS_H && defined(_WIN32) 22454# include <windows.h> 22455# endif 22456# include <GL/glut.h> 22457int 22458main () 22459{ 22460glutMainLoop() 22461 ; 22462 return 0; 22463} 22464_ACEOF 22465rm -f conftest.$ac_objext conftest$ac_exeext 22466if { (ac_try="$ac_link" 22467case "(($ac_try" in 22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22469 *) ac_try_echo=$ac_try;; 22470esac 22471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22472 (eval "$ac_link") 2>conftest.er1 22473 ac_status=$? 22474 grep -v '^ *+' conftest.er1 >conftest.err 22475 rm -f conftest.er1 22476 cat conftest.err >&5 22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22478 (exit $ac_status); } && { 22479 test -z "$ac_c_werror_flag" || 22480 test ! -s conftest.err 22481 } && test -s conftest$ac_exeext && 22482 $as_test_x conftest$ac_exeext; then 22483 ax_cv_check_glut_libglut="${ax_try_lib}"; break 22484else 22485 echo "$as_me: failed program was:" >&5 22486sed 's/^/| /' conftest.$ac_ext >&5 22487 22488 22489fi 22490 22491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22492 conftest$ac_exeext conftest.$ac_ext 22493 22494 done 22495 LIBS=${ax_save_LIBS} 22496 22497fi 22498{ echo "$as_me:$LINENO: result: $ax_cv_check_glut_libglut" >&5 22499echo "${ECHO_T}$ax_cv_check_glut_libglut" >&6; } 22500 CPPFLAGS="${ax_save_CPPFLAGS}" 22501 ac_ext=c 22502ac_cpp='$CPP $CPPFLAGS' 22503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22505ac_compiler_gnu=$ac_cv_c_compiler_gnu 22506 22507 22508 if test "X${ax_cv_check_glut_libglut}" = "Xno"; then 22509 no_glut="yes" 22510 GLUT_CFLAGS="" 22511 GLUT_LIBS="" 22512 else 22513 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" 22514 fi 22515fi 22516 22517 22518 22519 22520 22521 if (test "x$no_glut" = "xyes"); then 22522 { echo "$as_me:$LINENO: WARNING: The GLUT library could not be found : example programs and \ 22523 some tests will not be built" >&5 22524echo "$as_me: WARNING: The GLUT library could not be found : example programs and \ 22525 some tests will not be built" >&2;} 22526 EXECUTABLES="tests" 22527 else 22528 EXECUTABLES="tests examples" 22529 case $target_alias in 22530 *mingw32*) 22531 TESTS_WITH_GLUT="test1 test5 test6 test7 test8 test9.1 test9.2 test9.3 \ 22532 test9.4 test9.5 test9.6 test9.7 test9.8 test10 test11.1 \ 22533 test11.2 test11.3 test11.4 test11.5 test11.6 test11.7 \ 22534 test12 test13 test14 test15 test16 testcontex testfont \ 22535 testmaster testrender" 22536 ;; 22537 *) 22538 TESTS_WITH_GLUT="test1 test2 test3 test5 test6 test7 test8 test9.1 \ 22539 test9.2 test9.3 test9.4 test9.5 test9.6 test9.7 test9.8 \ 22540 test10 test11.1 test11.2 test11.3 test11.4 test11.5 \ 22541 test11.6 test11.7 test12 test13 test14 test15 test16 \ 22542 testcontex testfont testmaster testrender" 22543 ;; 22544 esac 22545 22546 fi 22547fi 22548 22549# Compile debug version 22550# --------------------- 22551 22552if (test "x$enable_debug" = "xyes"); then 22553 CFLAGS+=" -g -DDEBUGMODE" 22554 DEBUG_TESTS="test17" 22555fi 22556 22557# Output. 22558# ------- 22559 22560ac_config_files="$ac_config_files Makefile build/Makefile include/Makefile tests/Makefile examples/Makefile quesoglc.pc" 22561 22562 22563 22564 22565 22566 22567 22568 22569 22570 22571 22572cat >confcache <<\_ACEOF 22573# This file is a shell script that caches the results of configure 22574# tests run on this system so they can be shared between configure 22575# scripts and configure runs, see configure's option --config-cache. 22576# It is not useful on other systems. If it contains results you don't 22577# want to keep, you may remove or edit it. 22578# 22579# config.status only pays attention to the cache file if you give it 22580# the --recheck option to rerun configure. 22581# 22582# `ac_cv_env_foo' variables (set or unset) will be overridden when 22583# loading this file, other *unset* `ac_cv_foo' will be assigned the 22584# following values. 22585 22586_ACEOF 22587 22588# The following way of writing the cache mishandles newlines in values, 22589# but we know of no workaround that is simple, portable, and efficient. 22590# So, we kill variables containing newlines. 22591# Ultrix sh set writes to stderr and can't be redirected directly, 22592# and sets the high bit in the cache file unless we assign to the vars. 22593( 22594 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22595 eval ac_val=\$$ac_var 22596 case $ac_val in #( 22597 *${as_nl}*) 22598 case $ac_var in #( 22599 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 22600echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 22601 esac 22602 case $ac_var in #( 22603 _ | IFS | as_nl) ;; #( 22604 *) $as_unset $ac_var ;; 22605 esac ;; 22606 esac 22607 done 22608 22609 (set) 2>&1 | 22610 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22611 *${as_nl}ac_space=\ *) 22612 # `set' does not quote correctly, so add quotes (double-quote 22613 # substitution turns \\\\ into \\, and sed turns \\ into \). 22614 sed -n \ 22615 "s/'/'\\\\''/g; 22616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22617 ;; #( 22618 *) 22619 # `set' quotes correctly as required by POSIX, so do not add quotes. 22620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22621 ;; 22622 esac | 22623 sort 22624) | 22625 sed ' 22626 /^ac_cv_env_/b end 22627 t clear 22628 :clear 22629 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22630 t end 22631 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22632 :end' >>confcache 22633if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22634 if test -w "$cache_file"; then 22635 test "x$cache_file" != "x/dev/null" && 22636 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 22637echo "$as_me: updating cache $cache_file" >&6;} 22638 cat confcache >$cache_file 22639 else 22640 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22641echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22642 fi 22643fi 22644rm -f confcache 22645 22646test "x$prefix" = xNONE && prefix=$ac_default_prefix 22647# Let make expand exec_prefix. 22648test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22649 22650DEFS=-DHAVE_CONFIG_H 22651 22652ac_libobjs= 22653ac_ltlibobjs= 22654for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22655 # 1. Remove the extension, and $U if already installed. 22656 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22657 ac_i=`echo "$ac_i" | sed "$ac_script"` 22658 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22659 # will be set to the directory where LIBOBJS objects are built. 22660 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22661 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22662done 22663LIBOBJS=$ac_libobjs 22664 22665LTLIBOBJS=$ac_ltlibobjs 22666 22667 22668if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22669 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22670Usually this means the macro was only invoked conditionally." >&5 22671echo "$as_me: error: conditional \"AMDEP\" was never defined. 22672Usually this means the macro was only invoked conditionally." >&2;} 22673 { (exit 1); exit 1; }; } 22674fi 22675if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22676 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22677Usually this means the macro was only invoked conditionally." >&5 22678echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22679Usually this means the macro was only invoked conditionally." >&2;} 22680 { (exit 1); exit 1; }; } 22681fi 22682if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22683 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22684Usually this means the macro was only invoked conditionally." >&5 22685echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22686Usually this means the macro was only invoked conditionally." >&2;} 22687 { (exit 1); exit 1; }; } 22688fi 22689if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22690 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22691Usually this means the macro was only invoked conditionally." >&5 22692echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22693Usually this means the macro was only invoked conditionally." >&2;} 22694 { (exit 1); exit 1; }; } 22695fi 22696 22697: ${CONFIG_STATUS=./config.status} 22698ac_clean_files_save=$ac_clean_files 22699ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22700{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22701echo "$as_me: creating $CONFIG_STATUS" >&6;} 22702cat >$CONFIG_STATUS <<_ACEOF 22703#! $SHELL 22704# Generated by $as_me. 22705# Run this file to recreate the current configuration. 22706# Compiler output produced by configure, useful for debugging 22707# configure, is in config.log if it exists. 22708 22709debug=false 22710ac_cs_recheck=false 22711ac_cs_silent=false 22712SHELL=\${CONFIG_SHELL-$SHELL} 22713_ACEOF 22714 22715cat >>$CONFIG_STATUS <<\_ACEOF 22716## --------------------- ## 22717## M4sh Initialization. ## 22718## --------------------- ## 22719 22720# Be more Bourne compatible 22721DUALCASE=1; export DUALCASE # for MKS sh 22722if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22723 emulate sh 22724 NULLCMD=: 22725 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22726 # is contrary to our usage. Disable this feature. 22727 alias -g '${1+"$@"}'='"$@"' 22728 setopt NO_GLOB_SUBST 22729else 22730 case `(set -o) 2>/dev/null` in 22731 *posix*) set -o posix ;; 22732esac 22733 22734fi 22735 22736 22737 22738 22739# PATH needs CR 22740# Avoid depending upon Character Ranges. 22741as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22742as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22743as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22744as_cr_digits='0123456789' 22745as_cr_alnum=$as_cr_Letters$as_cr_digits 22746 22747# The user is always right. 22748if test "${PATH_SEPARATOR+set}" != set; then 22749 echo "#! /bin/sh" >conf$$.sh 22750 echo "exit 0" >>conf$$.sh 22751 chmod +x conf$$.sh 22752 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22753 PATH_SEPARATOR=';' 22754 else 22755 PATH_SEPARATOR=: 22756 fi 22757 rm -f conf$$.sh 22758fi 22759 22760# Support unset when possible. 22761if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22762 as_unset=unset 22763else 22764 as_unset=false 22765fi 22766 22767 22768# IFS 22769# We need space, tab and new line, in precisely that order. Quoting is 22770# there to prevent editors from complaining about space-tab. 22771# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22772# splitting by setting IFS to empty value.) 22773as_nl=' 22774' 22775IFS=" "" $as_nl" 22776 22777# Find who we are. Look in the path if we contain no directory separator. 22778case $0 in 22779 *[\\/]* ) as_myself=$0 ;; 22780 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22781for as_dir in $PATH 22782do 22783 IFS=$as_save_IFS 22784 test -z "$as_dir" && as_dir=. 22785 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22786done 22787IFS=$as_save_IFS 22788 22789 ;; 22790esac 22791# We did not find ourselves, most probably we were run as `sh COMMAND' 22792# in which case we are not to be found in the path. 22793if test "x$as_myself" = x; then 22794 as_myself=$0 22795fi 22796if test ! -f "$as_myself"; then 22797 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22798 { (exit 1); exit 1; } 22799fi 22800 22801# Work around bugs in pre-3.0 UWIN ksh. 22802for as_var in ENV MAIL MAILPATH 22803do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22804done 22805PS1='$ ' 22806PS2='> ' 22807PS4='+ ' 22808 22809# NLS nuisances. 22810for as_var in \ 22811 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22812 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22813 LC_TELEPHONE LC_TIME 22814do 22815 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22816 eval $as_var=C; export $as_var 22817 else 22818 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22819 fi 22820done 22821 22822# Required to use basename. 22823if expr a : '\(a\)' >/dev/null 2>&1 && 22824 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22825 as_expr=expr 22826else 22827 as_expr=false 22828fi 22829 22830if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22831 as_basename=basename 22832else 22833 as_basename=false 22834fi 22835 22836 22837# Name of the executable. 22838as_me=`$as_basename -- "$0" || 22839$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22840 X"$0" : 'X\(//\)$' \| \ 22841 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22842echo X/"$0" | 22843 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22844 s//\1/ 22845 q 22846 } 22847 /^X\/\(\/\/\)$/{ 22848 s//\1/ 22849 q 22850 } 22851 /^X\/\(\/\).*/{ 22852 s//\1/ 22853 q 22854 } 22855 s/.*/./; q'` 22856 22857# CDPATH. 22858$as_unset CDPATH 22859 22860 22861 22862 as_lineno_1=$LINENO 22863 as_lineno_2=$LINENO 22864 test "x$as_lineno_1" != "x$as_lineno_2" && 22865 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22866 22867 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22868 # uniformly replaced by the line number. The first 'sed' inserts a 22869 # line-number line after each line using $LINENO; the second 'sed' 22870 # does the real work. The second script uses 'N' to pair each 22871 # line-number line with the line containing $LINENO, and appends 22872 # trailing '-' during substitution so that $LINENO is not a special 22873 # case at line end. 22874 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22875 # scripts with optimization help from Paolo Bonzini. Blame Lee 22876 # E. McMahon (1931-1989) for sed's syntax. :-) 22877 sed -n ' 22878 p 22879 /[$]LINENO/= 22880 ' <$as_myself | 22881 sed ' 22882 s/[$]LINENO.*/&-/ 22883 t lineno 22884 b 22885 :lineno 22886 N 22887 :loop 22888 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22889 t loop 22890 s/-\n.*// 22891 ' >$as_me.lineno && 22892 chmod +x "$as_me.lineno" || 22893 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22894 { (exit 1); exit 1; }; } 22895 22896 # Don't try to exec as it changes $[0], causing all sort of problems 22897 # (the dirname of $[0] is not the place where we might find the 22898 # original and so on. Autoconf is especially sensitive to this). 22899 . "./$as_me.lineno" 22900 # Exit status is that of the last command. 22901 exit 22902} 22903 22904 22905if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22906 as_dirname=dirname 22907else 22908 as_dirname=false 22909fi 22910 22911ECHO_C= ECHO_N= ECHO_T= 22912case `echo -n x` in 22913-n*) 22914 case `echo 'x\c'` in 22915 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22916 *) ECHO_C='\c';; 22917 esac;; 22918*) 22919 ECHO_N='-n';; 22920esac 22921 22922if expr a : '\(a\)' >/dev/null 2>&1 && 22923 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22924 as_expr=expr 22925else 22926 as_expr=false 22927fi 22928 22929rm -f conf$$ conf$$.exe conf$$.file 22930if test -d conf$$.dir; then 22931 rm -f conf$$.dir/conf$$.file 22932else 22933 rm -f conf$$.dir 22934 mkdir conf$$.dir 22935fi 22936echo >conf$$.file 22937if ln -s conf$$.file conf$$ 2>/dev/null; then 22938 as_ln_s='ln -s' 22939 # ... but there are two gotchas: 22940 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22941 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22942 # In both cases, we have to default to `cp -p'. 22943 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22944 as_ln_s='cp -p' 22945elif ln conf$$.file conf$$ 2>/dev/null; then 22946 as_ln_s=ln 22947else 22948 as_ln_s='cp -p' 22949fi 22950rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22951rmdir conf$$.dir 2>/dev/null 22952 22953if mkdir -p . 2>/dev/null; then 22954 as_mkdir_p=: 22955else 22956 test -d ./-p && rmdir ./-p 22957 as_mkdir_p=false 22958fi 22959 22960if test -x / >/dev/null 2>&1; then 22961 as_test_x='test -x' 22962else 22963 if ls -dL / >/dev/null 2>&1; then 22964 as_ls_L_option=L 22965 else 22966 as_ls_L_option= 22967 fi 22968 as_test_x=' 22969 eval sh -c '\'' 22970 if test -d "$1"; then 22971 test -d "$1/."; 22972 else 22973 case $1 in 22974 -*)set "./$1";; 22975 esac; 22976 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22977 ???[sx]*):;;*)false;;esac;fi 22978 '\'' sh 22979 ' 22980fi 22981as_executable_p=$as_test_x 22982 22983# Sed expression to map a string onto a valid CPP name. 22984as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22985 22986# Sed expression to map a string onto a valid variable name. 22987as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22988 22989 22990exec 6>&1 22991 22992# Save the log message, to keep $[0] and so on meaningful, and to 22993# report actual input values of CONFIG_FILES etc. instead of their 22994# values after options handling. 22995ac_log=" 22996This file was extended by QuesoGLC $as_me 0.7.2, which was 22997generated by GNU Autoconf 2.61. Invocation command line was 22998 22999 CONFIG_FILES = $CONFIG_FILES 23000 CONFIG_HEADERS = $CONFIG_HEADERS 23001 CONFIG_LINKS = $CONFIG_LINKS 23002 CONFIG_COMMANDS = $CONFIG_COMMANDS 23003 $ $0 $@ 23004 23005on `(hostname || uname -n) 2>/dev/null | sed 1q` 23006" 23007 23008_ACEOF 23009 23010cat >>$CONFIG_STATUS <<_ACEOF 23011# Files that config.status was made for. 23012config_files="$ac_config_files" 23013config_headers="$ac_config_headers" 23014config_commands="$ac_config_commands" 23015 23016_ACEOF 23017 23018cat >>$CONFIG_STATUS <<\_ACEOF 23019ac_cs_usage="\ 23020\`$as_me' instantiates files from templates according to the 23021current configuration. 23022 23023Usage: $0 [OPTIONS] [FILE]... 23024 23025 -h, --help print this help, then exit 23026 -V, --version print version number and configuration settings, then exit 23027 -q, --quiet do not print progress messages 23028 -d, --debug don't remove temporary files 23029 --recheck update $as_me by reconfiguring in the same conditions 23030 --file=FILE[:TEMPLATE] 23031 instantiate the configuration file FILE 23032 --header=FILE[:TEMPLATE] 23033 instantiate the configuration header FILE 23034 23035Configuration files: 23036$config_files 23037 23038Configuration headers: 23039$config_headers 23040 23041Configuration commands: 23042$config_commands 23043 23044Report bugs to <bug-autoconf@gnu.org>." 23045 23046_ACEOF 23047cat >>$CONFIG_STATUS <<_ACEOF 23048ac_cs_version="\\ 23049QuesoGLC config.status 0.7.2 23050configured by $0, generated by GNU Autoconf 2.61, 23051 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 23052 23053Copyright (C) 2006 Free Software Foundation, Inc. 23054This config.status script is free software; the Free Software Foundation 23055gives unlimited permission to copy, distribute and modify it." 23056 23057ac_pwd='$ac_pwd' 23058srcdir='$srcdir' 23059INSTALL='$INSTALL' 23060MKDIR_P='$MKDIR_P' 23061_ACEOF 23062 23063cat >>$CONFIG_STATUS <<\_ACEOF 23064# If no file are specified by the user, then we need to provide default 23065# value. By we need to know if files were specified by the user. 23066ac_need_defaults=: 23067while test $# != 0 23068do 23069 case $1 in 23070 --*=*) 23071 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23072 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23073 ac_shift=: 23074 ;; 23075 *) 23076 ac_option=$1 23077 ac_optarg=$2 23078 ac_shift=shift 23079 ;; 23080 esac 23081 23082 case $ac_option in 23083 # Handling of the options. 23084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23085 ac_cs_recheck=: ;; 23086 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23087 echo "$ac_cs_version"; exit ;; 23088 --debug | --debu | --deb | --de | --d | -d ) 23089 debug=: ;; 23090 --file | --fil | --fi | --f ) 23091 $ac_shift 23092 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23093 ac_need_defaults=false;; 23094 --header | --heade | --head | --hea ) 23095 $ac_shift 23096 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23097 ac_need_defaults=false;; 23098 --he | --h) 23099 # Conflict between --help and --header 23100 { echo "$as_me: error: ambiguous option: $1 23101Try \`$0 --help' for more information." >&2 23102 { (exit 1); exit 1; }; };; 23103 --help | --hel | -h ) 23104 echo "$ac_cs_usage"; exit ;; 23105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23106 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23107 ac_cs_silent=: ;; 23108 23109 # This is an error. 23110 -*) { echo "$as_me: error: unrecognized option: $1 23111Try \`$0 --help' for more information." >&2 23112 { (exit 1); exit 1; }; } ;; 23113 23114 *) ac_config_targets="$ac_config_targets $1" 23115 ac_need_defaults=false ;; 23116 23117 esac 23118 shift 23119done 23120 23121ac_configure_extra_args= 23122 23123if $ac_cs_silent; then 23124 exec 6>/dev/null 23125 ac_configure_extra_args="$ac_configure_extra_args --silent" 23126fi 23127 23128_ACEOF 23129cat >>$CONFIG_STATUS <<_ACEOF 23130if \$ac_cs_recheck; then 23131 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23132 CONFIG_SHELL=$SHELL 23133 export CONFIG_SHELL 23134 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23135fi 23136 23137_ACEOF 23138cat >>$CONFIG_STATUS <<\_ACEOF 23139exec 5>>config.log 23140{ 23141 echo 23142 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23143## Running $as_me. ## 23144_ASBOX 23145 echo "$ac_log" 23146} >&5 23147 23148_ACEOF 23149cat >>$CONFIG_STATUS <<_ACEOF 23150# 23151# INIT-COMMANDS 23152# 23153AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23154 23155 23156# The HP-UX ksh and POSIX shell print the target directory to stdout 23157# if CDPATH is set. 23158(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23159 23160sed_quote_subst='$sed_quote_subst' 23161double_quote_subst='$double_quote_subst' 23162delay_variable_subst='$delay_variable_subst' 23163macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 23164macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 23165enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 23166enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 23167pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 23168enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 23169host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 23170host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 23171host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 23172build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 23173build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 23174build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 23175SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 23176Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 23177GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 23178EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 23179FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 23180LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 23181NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 23182LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 23183max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 23184ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 23185exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 23186lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 23187lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 23188lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 23189reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 23190reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 23191deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 23192file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 23193AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 23194AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 23195STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 23196RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 23197old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 23198old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 23199old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 23200CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 23201CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 23202compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 23203GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 23204lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 23205lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 23206lt_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"`' 23207lt_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"`' 23208objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 23209SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 23210ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 23211MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 23212lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 23213lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 23214lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 23215lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 23216lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 23217need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 23218DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 23219NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 23220LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 23221OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 23222OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 23223libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 23224shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 23225extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 23226archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 23227enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 23228export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 23229whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 23230compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 23231old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 23232old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 23233archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 23234archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 23235module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 23236module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 23237with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 23238allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 23239no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 23240hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 23241hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 23242hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 23243hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 23244hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 23245hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 23246hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 23247hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 23248inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 23249link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 23250fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 23251always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 23252export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 23253exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 23254include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 23255prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 23256file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 23257variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 23258need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 23259need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 23260version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 23261runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 23262shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 23263shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 23264libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 23265library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 23266soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 23267postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 23268postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 23269finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 23270finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 23271hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 23272sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 23273sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 23274hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 23275enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 23276enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 23277enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 23278old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 23279striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 23280compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' 23281predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' 23282postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' 23283predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' 23284postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' 23285compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' 23286LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23287old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23288compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23289GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23290lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23291lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23292lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23293lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23294lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23295archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23296enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23297export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23298whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23299compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23300old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23301old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23302archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23303archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23304module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23305module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23306with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23307allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23308no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23309hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23310hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23311hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23312hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23313hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23314hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23315hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23316hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23317inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23318link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23319fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23320always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23321export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23322exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23323include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23324prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23325file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23326hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23327compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23328predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23329postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23330predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23331postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23332compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 23333 23334LTCC='$LTCC' 23335LTCFLAGS='$LTCFLAGS' 23336compiler='$compiler_DEFAULT' 23337 23338# Quote evaled strings. 23339for var in SED \ 23340GREP \ 23341EGREP \ 23342FGREP \ 23343LD \ 23344NM \ 23345LN_S \ 23346lt_SP2NL \ 23347lt_NL2SP \ 23348reload_flag \ 23349deplibs_check_method \ 23350file_magic_cmd \ 23351AR \ 23352AR_FLAGS \ 23353STRIP \ 23354RANLIB \ 23355CC \ 23356CFLAGS \ 23357compiler \ 23358lt_cv_sys_global_symbol_pipe \ 23359lt_cv_sys_global_symbol_to_cdecl \ 23360lt_cv_sys_global_symbol_to_c_name_address \ 23361lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 23362SHELL \ 23363ECHO \ 23364lt_prog_compiler_no_builtin_flag \ 23365lt_prog_compiler_wl \ 23366lt_prog_compiler_pic \ 23367lt_prog_compiler_static \ 23368lt_cv_prog_compiler_c_o \ 23369need_locks \ 23370DSYMUTIL \ 23371NMEDIT \ 23372LIPO \ 23373OTOOL \ 23374OTOOL64 \ 23375shrext_cmds \ 23376export_dynamic_flag_spec \ 23377whole_archive_flag_spec \ 23378compiler_needs_object \ 23379with_gnu_ld \ 23380allow_undefined_flag \ 23381no_undefined_flag \ 23382hardcode_libdir_flag_spec \ 23383hardcode_libdir_flag_spec_ld \ 23384hardcode_libdir_separator \ 23385fix_srcfile_path \ 23386exclude_expsyms \ 23387include_expsyms \ 23388file_list_spec \ 23389variables_saved_for_relink \ 23390libname_spec \ 23391library_names_spec \ 23392soname_spec \ 23393finish_eval \ 23394old_striplib \ 23395striplib \ 23396compiler_lib_search_dirs \ 23397predep_objects \ 23398postdep_objects \ 23399predeps \ 23400postdeps \ 23401compiler_lib_search_path \ 23402LD_CXX \ 23403compiler_CXX \ 23404lt_prog_compiler_no_builtin_flag_CXX \ 23405lt_prog_compiler_wl_CXX \ 23406lt_prog_compiler_pic_CXX \ 23407lt_prog_compiler_static_CXX \ 23408lt_cv_prog_compiler_c_o_CXX \ 23409export_dynamic_flag_spec_CXX \ 23410whole_archive_flag_spec_CXX \ 23411compiler_needs_object_CXX \ 23412with_gnu_ld_CXX \ 23413allow_undefined_flag_CXX \ 23414no_undefined_flag_CXX \ 23415hardcode_libdir_flag_spec_CXX \ 23416hardcode_libdir_flag_spec_ld_CXX \ 23417hardcode_libdir_separator_CXX \ 23418fix_srcfile_path_CXX \ 23419exclude_expsyms_CXX \ 23420include_expsyms_CXX \ 23421file_list_spec_CXX \ 23422compiler_lib_search_dirs_CXX \ 23423predep_objects_CXX \ 23424postdep_objects_CXX \ 23425predeps_CXX \ 23426postdeps_CXX \ 23427compiler_lib_search_path_CXX; do 23428 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 23429 *[\\\\\\\`\\"\\\$]*) 23430 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 23431 ;; 23432 *) 23433 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23434 ;; 23435 esac 23436done 23437 23438# Double-quote double-evaled strings. 23439for var in reload_cmds \ 23440old_postinstall_cmds \ 23441old_postuninstall_cmds \ 23442old_archive_cmds \ 23443extract_expsyms_cmds \ 23444old_archive_from_new_cmds \ 23445old_archive_from_expsyms_cmds \ 23446archive_cmds \ 23447archive_expsym_cmds \ 23448module_cmds \ 23449module_expsym_cmds \ 23450export_symbols_cmds \ 23451prelink_cmds \ 23452postinstall_cmds \ 23453postuninstall_cmds \ 23454finish_cmds \ 23455sys_lib_search_path_spec \ 23456sys_lib_dlsearch_path_spec \ 23457old_archive_cmds_CXX \ 23458old_archive_from_new_cmds_CXX \ 23459old_archive_from_expsyms_cmds_CXX \ 23460archive_cmds_CXX \ 23461archive_expsym_cmds_CXX \ 23462module_cmds_CXX \ 23463module_expsym_cmds_CXX \ 23464export_symbols_cmds_CXX \ 23465prelink_cmds_CXX; do 23466 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 23467 *[\\\\\\\`\\"\\\$]*) 23468 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 23469 ;; 23470 *) 23471 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23472 ;; 23473 esac 23474done 23475 23476# Fix-up fallback echo if it was mangled by the above quoting rules. 23477case \$lt_ECHO in 23478*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 23479 ;; 23480esac 23481 23482ac_aux_dir='$ac_aux_dir' 23483xsi_shell='$xsi_shell' 23484lt_shell_append='$lt_shell_append' 23485 23486# See if we are running on zsh, and set the options which allow our 23487# commands through without removal of \ escapes INIT. 23488if test -n "\${ZSH_VERSION+set}" ; then 23489 setopt NO_GLOB_SUBST 23490fi 23491 23492 23493 PACKAGE='$PACKAGE' 23494 VERSION='$VERSION' 23495 TIMESTAMP='$TIMESTAMP' 23496 RM='$RM' 23497 ofile='$ofile' 23498 23499 23500 23501 23502 23503 23504_ACEOF 23505 23506cat >>$CONFIG_STATUS <<\_ACEOF 23507 23508# Handling of arguments. 23509for ac_config_target in $ac_config_targets 23510do 23511 case $ac_config_target in 23512 "include/qglc_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/qglc_config.h:include/qglc_config.hin" ;; 23513 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23514 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 23515 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23516 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; 23517 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 23518 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 23519 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 23520 "quesoglc.pc") CONFIG_FILES="$CONFIG_FILES quesoglc.pc" ;; 23521 23522 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23523echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23524 { (exit 1); exit 1; }; };; 23525 esac 23526done 23527 23528 23529# If the user did not use the arguments to specify the items to instantiate, 23530# then the envvar interface is used. Set only those that are not. 23531# We use the long form for the default assignment because of an extremely 23532# bizarre bug on SunOS 4.1.3. 23533if $ac_need_defaults; then 23534 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23535 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23536 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23537fi 23538 23539# Have a temporary directory for convenience. Make it in the build tree 23540# simply because there is no reason against having it here, and in addition, 23541# creating and moving files from /tmp can sometimes cause problems. 23542# Hook for its removal unless debugging. 23543# Note that there is a small window in which the directory will not be cleaned: 23544# after its creation but before its name has been assigned to `$tmp'. 23545$debug || 23546{ 23547 tmp= 23548 trap 'exit_status=$? 23549 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 23550' 0 23551 trap '{ (exit 1); exit 1; }' 1 2 13 15 23552} 23553# Create a (secure) tmp directory for tmp files. 23554 23555{ 23556 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23557 test -n "$tmp" && test -d "$tmp" 23558} || 23559{ 23560 tmp=./conf$$-$RANDOM 23561 (umask 077 && mkdir "$tmp") 23562} || 23563{ 23564 echo "$me: cannot create a temporary directory in ." >&2 23565 { (exit 1); exit 1; } 23566} 23567 23568# 23569# Set up the sed scripts for CONFIG_FILES section. 23570# 23571 23572# No need to generate the scripts if there are no CONFIG_FILES. 23573# This happens for instance when ./config.status config.h 23574if test -n "$CONFIG_FILES"; then 23575 23576_ACEOF 23577 23578 23579 23580ac_delim='%!_!# ' 23581for ac_last_try in false false false false false :; do 23582 cat >conf$$subs.sed <<_ACEOF 23583SHELL!$SHELL$ac_delim 23584PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 23585PACKAGE_NAME!$PACKAGE_NAME$ac_delim 23586PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 23587PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 23588PACKAGE_STRING!$PACKAGE_STRING$ac_delim 23589PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 23590exec_prefix!$exec_prefix$ac_delim 23591prefix!$prefix$ac_delim 23592program_transform_name!$program_transform_name$ac_delim 23593bindir!$bindir$ac_delim 23594sbindir!$sbindir$ac_delim 23595libexecdir!$libexecdir$ac_delim 23596datarootdir!$datarootdir$ac_delim 23597datadir!$datadir$ac_delim 23598sysconfdir!$sysconfdir$ac_delim 23599sharedstatedir!$sharedstatedir$ac_delim 23600localstatedir!$localstatedir$ac_delim 23601includedir!$includedir$ac_delim 23602oldincludedir!$oldincludedir$ac_delim 23603docdir!$docdir$ac_delim 23604infodir!$infodir$ac_delim 23605htmldir!$htmldir$ac_delim 23606dvidir!$dvidir$ac_delim 23607pdfdir!$pdfdir$ac_delim 23608psdir!$psdir$ac_delim 23609libdir!$libdir$ac_delim 23610localedir!$localedir$ac_delim 23611mandir!$mandir$ac_delim 23612DEFS!$DEFS$ac_delim 23613ECHO_C!$ECHO_C$ac_delim 23614ECHO_N!$ECHO_N$ac_delim 23615ECHO_T!$ECHO_T$ac_delim 23616LIBS!$LIBS$ac_delim 23617build_alias!$build_alias$ac_delim 23618host_alias!$host_alias$ac_delim 23619target_alias!$target_alias$ac_delim 23620INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 23621INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 23622INSTALL_DATA!$INSTALL_DATA$ac_delim 23623am__isrc!$am__isrc$ac_delim 23624CYGPATH_W!$CYGPATH_W$ac_delim 23625PACKAGE!$PACKAGE$ac_delim 23626VERSION!$VERSION$ac_delim 23627ACLOCAL!$ACLOCAL$ac_delim 23628AUTOCONF!$AUTOCONF$ac_delim 23629AUTOMAKE!$AUTOMAKE$ac_delim 23630AUTOHEADER!$AUTOHEADER$ac_delim 23631MAKEINFO!$MAKEINFO$ac_delim 23632install_sh!$install_sh$ac_delim 23633STRIP!$STRIP$ac_delim 23634INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 23635mkdir_p!$mkdir_p$ac_delim 23636AWK!$AWK$ac_delim 23637SET_MAKE!$SET_MAKE$ac_delim 23638am__leading_dot!$am__leading_dot$ac_delim 23639AMTAR!$AMTAR$ac_delim 23640am__tar!$am__tar$ac_delim 23641am__untar!$am__untar$ac_delim 23642CC!$CC$ac_delim 23643CFLAGS!$CFLAGS$ac_delim 23644LDFLAGS!$LDFLAGS$ac_delim 23645CPPFLAGS!$CPPFLAGS$ac_delim 23646ac_ct_CC!$ac_ct_CC$ac_delim 23647EXEEXT!$EXEEXT$ac_delim 23648OBJEXT!$OBJEXT$ac_delim 23649DEPDIR!$DEPDIR$ac_delim 23650am__include!$am__include$ac_delim 23651am__quote!$am__quote$ac_delim 23652AMDEP_TRUE!$AMDEP_TRUE$ac_delim 23653AMDEP_FALSE!$AMDEP_FALSE$ac_delim 23654AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 23655CCDEPMODE!$CCDEPMODE$ac_delim 23656am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 23657am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 23658LN_S!$LN_S$ac_delim 23659LIBTOOL!$LIBTOOL$ac_delim 23660build!$build$ac_delim 23661build_cpu!$build_cpu$ac_delim 23662build_vendor!$build_vendor$ac_delim 23663build_os!$build_os$ac_delim 23664host!$host$ac_delim 23665host_cpu!$host_cpu$ac_delim 23666host_vendor!$host_vendor$ac_delim 23667host_os!$host_os$ac_delim 23668SED!$SED$ac_delim 23669GREP!$GREP$ac_delim 23670EGREP!$EGREP$ac_delim 23671FGREP!$FGREP$ac_delim 23672LD!$LD$ac_delim 23673DUMPBIN!$DUMPBIN$ac_delim 23674ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim 23675NM!$NM$ac_delim 23676AR!$AR$ac_delim 23677RANLIB!$RANLIB$ac_delim 23678lt_ECHO!$lt_ECHO$ac_delim 23679DSYMUTIL!$DSYMUTIL$ac_delim 23680_ACEOF 23681 23682 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 23683 break 23684 elif $ac_last_try; then 23685 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23686echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23687 { (exit 1); exit 1; }; } 23688 else 23689 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23690 fi 23691done 23692 23693ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23694if test -n "$ac_eof"; then 23695 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23696 ac_eof=`expr $ac_eof + 1` 23697fi 23698 23699cat >>$CONFIG_STATUS <<_ACEOF 23700cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 23701/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23702_ACEOF 23703sed ' 23704s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23705s/^/s,@/; s/!/@,|#_!!_#|/ 23706:n 23707t n 23708s/'"$ac_delim"'$/,g/; t 23709s/$/\\/; p 23710N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23711' >>$CONFIG_STATUS <conf$$subs.sed 23712rm -f conf$$subs.sed 23713cat >>$CONFIG_STATUS <<_ACEOF 23714CEOF$ac_eof 23715_ACEOF 23716 23717 23718ac_delim='%!_!# ' 23719for ac_last_try in false false false false false :; do 23720 cat >conf$$subs.sed <<_ACEOF 23721NMEDIT!$NMEDIT$ac_delim 23722LIPO!$LIPO$ac_delim 23723OTOOL!$OTOOL$ac_delim 23724OTOOL64!$OTOOL64$ac_delim 23725CPP!$CPP$ac_delim 23726acx_pthread_config!$acx_pthread_config$ac_delim 23727PTHREAD_CC!$PTHREAD_CC$ac_delim 23728PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim 23729PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim 23730LIBOBJS!$LIBOBJS$ac_delim 23731PKG_CONFIG!$PKG_CONFIG$ac_delim 23732FREETYPE2_CFLAGS!$FREETYPE2_CFLAGS$ac_delim 23733FREETYPE2_LIBS!$FREETYPE2_LIBS$ac_delim 23734FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim 23735FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim 23736FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim 23737FRIBIDI_CFLAGS!$FRIBIDI_CFLAGS$ac_delim 23738FRIBIDI_LIBS!$FRIBIDI_LIBS$ac_delim 23739XMKMF!$XMKMF$ac_delim 23740GL_CFLAGS!$GL_CFLAGS$ac_delim 23741GL_LIBS!$GL_LIBS$ac_delim 23742CXX!$CXX$ac_delim 23743CXXFLAGS!$CXXFLAGS$ac_delim 23744ac_ct_CXX!$ac_ct_CXX$ac_delim 23745CXXDEPMODE!$CXXDEPMODE$ac_delim 23746am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 23747am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 23748CXXCPP!$CXXCPP$ac_delim 23749GLU_CFLAGS!$GLU_CFLAGS$ac_delim 23750GLU_LIBS!$GLU_LIBS$ac_delim 23751X_CFLAGS!$X_CFLAGS$ac_delim 23752X_PRE_LIBS!$X_PRE_LIBS$ac_delim 23753X_LIBS!$X_LIBS$ac_delim 23754X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 23755GLUT_CFLAGS!$GLUT_CFLAGS$ac_delim 23756GLUT_LIBS!$GLUT_LIBS$ac_delim 23757EXECUTABLES!$EXECUTABLES$ac_delim 23758DEBUG_TESTS!$DEBUG_TESTS$ac_delim 23759TESTS_WITH_GLUT!$TESTS_WITH_GLUT$ac_delim 23760FRIBIDI_OBJ!$FRIBIDI_OBJ$ac_delim 23761GLEW_OBJ!$GLEW_OBJ$ac_delim 23762GLEW_CFLAGS!$GLEW_CFLAGS$ac_delim 23763PKGCONFIG_REQUIREMENTS!$PKGCONFIG_REQUIREMENTS$ac_delim 23764PKGCONFIG_LIBS_PRIVATE!$PKGCONFIG_LIBS_PRIVATE$ac_delim 23765PKGCONFIG_INCLUDE!$PKGCONFIG_INCLUDE$ac_delim 23766LTLIBOBJS!$LTLIBOBJS$ac_delim 23767_ACEOF 23768 23769 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then 23770 break 23771 elif $ac_last_try; then 23772 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23773echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23774 { (exit 1); exit 1; }; } 23775 else 23776 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23777 fi 23778done 23779 23780ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23781if test -n "$ac_eof"; then 23782 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23783 ac_eof=`expr $ac_eof + 1` 23784fi 23785 23786cat >>$CONFIG_STATUS <<_ACEOF 23787cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 23788/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 23789_ACEOF 23790sed ' 23791s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23792s/^/s,@/; s/!/@,|#_!!_#|/ 23793:n 23794t n 23795s/'"$ac_delim"'$/,g/; t 23796s/$/\\/; p 23797N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23798' >>$CONFIG_STATUS <conf$$subs.sed 23799rm -f conf$$subs.sed 23800cat >>$CONFIG_STATUS <<_ACEOF 23801:end 23802s/|#_!!_#|//g 23803CEOF$ac_eof 23804_ACEOF 23805 23806 23807# VPATH may cause trouble with some makes, so we remove $(srcdir), 23808# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23809# trailing colons and then remove the whole line if VPATH becomes empty 23810# (actually we leave an empty line to preserve line numbers). 23811if test "x$srcdir" = x.; then 23812 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23813s/:*\$(srcdir):*/:/ 23814s/:*\${srcdir}:*/:/ 23815s/:*@srcdir@:*/:/ 23816s/^\([^=]*=[ ]*\):*/\1/ 23817s/:*$// 23818s/^[^=]*=[ ]*$// 23819}' 23820fi 23821 23822cat >>$CONFIG_STATUS <<\_ACEOF 23823fi # test -n "$CONFIG_FILES" 23824 23825 23826for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 23827do 23828 case $ac_tag in 23829 :[FHLC]) ac_mode=$ac_tag; continue;; 23830 esac 23831 case $ac_mode$ac_tag in 23832 :[FHL]*:*);; 23833 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 23834echo "$as_me: error: Invalid tag $ac_tag." >&2;} 23835 { (exit 1); exit 1; }; };; 23836 :[FH]-) ac_tag=-:-;; 23837 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23838 esac 23839 ac_save_IFS=$IFS 23840 IFS=: 23841 set x $ac_tag 23842 IFS=$ac_save_IFS 23843 shift 23844 ac_file=$1 23845 shift 23846 23847 case $ac_mode in 23848 :L) ac_source=$1;; 23849 :[FH]) 23850 ac_file_inputs= 23851 for ac_f 23852 do 23853 case $ac_f in 23854 -) ac_f="$tmp/stdin";; 23855 *) # Look for the file first in the build tree, then in the source tree 23856 # (if the path is not absolute). The absolute path cannot be DOS-style, 23857 # because $ac_f cannot contain `:'. 23858 test -f "$ac_f" || 23859 case $ac_f in 23860 [\\/$]*) false;; 23861 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23862 esac || 23863 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23864echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23865 { (exit 1); exit 1; }; };; 23866 esac 23867 ac_file_inputs="$ac_file_inputs $ac_f" 23868 done 23869 23870 # Let's still pretend it is `configure' which instantiates (i.e., don't 23871 # use $as_me), people would be surprised to read: 23872 # /* config.h. Generated by config.status. */ 23873 configure_input="Generated from "`IFS=: 23874 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 23875 if test x"$ac_file" != x-; then 23876 configure_input="$ac_file. $configure_input" 23877 { echo "$as_me:$LINENO: creating $ac_file" >&5 23878echo "$as_me: creating $ac_file" >&6;} 23879 fi 23880 23881 case $ac_tag in 23882 *:-:* | *:-) cat >"$tmp/stdin";; 23883 esac 23884 ;; 23885 esac 23886 23887 ac_dir=`$as_dirname -- "$ac_file" || 23888$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23889 X"$ac_file" : 'X\(//\)[^/]' \| \ 23890 X"$ac_file" : 'X\(//\)$' \| \ 23891 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23892echo X"$ac_file" | 23893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23894 s//\1/ 23895 q 23896 } 23897 /^X\(\/\/\)[^/].*/{ 23898 s//\1/ 23899 q 23900 } 23901 /^X\(\/\/\)$/{ 23902 s//\1/ 23903 q 23904 } 23905 /^X\(\/\).*/{ 23906 s//\1/ 23907 q 23908 } 23909 s/.*/./; q'` 23910 { as_dir="$ac_dir" 23911 case $as_dir in #( 23912 -*) as_dir=./$as_dir;; 23913 esac 23914 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23915 as_dirs= 23916 while :; do 23917 case $as_dir in #( 23918 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23919 *) as_qdir=$as_dir;; 23920 esac 23921 as_dirs="'$as_qdir' $as_dirs" 23922 as_dir=`$as_dirname -- "$as_dir" || 23923$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23924 X"$as_dir" : 'X\(//\)[^/]' \| \ 23925 X"$as_dir" : 'X\(//\)$' \| \ 23926 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23927echo X"$as_dir" | 23928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23929 s//\1/ 23930 q 23931 } 23932 /^X\(\/\/\)[^/].*/{ 23933 s//\1/ 23934 q 23935 } 23936 /^X\(\/\/\)$/{ 23937 s//\1/ 23938 q 23939 } 23940 /^X\(\/\).*/{ 23941 s//\1/ 23942 q 23943 } 23944 s/.*/./; q'` 23945 test -d "$as_dir" && break 23946 done 23947 test -z "$as_dirs" || eval "mkdir $as_dirs" 23948 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23949echo "$as_me: error: cannot create directory $as_dir" >&2;} 23950 { (exit 1); exit 1; }; }; } 23951 ac_builddir=. 23952 23953case "$ac_dir" in 23954.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23955*) 23956 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23957 # A ".." for each directory in $ac_dir_suffix. 23958 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23959 case $ac_top_builddir_sub in 23960 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23961 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23962 esac ;; 23963esac 23964ac_abs_top_builddir=$ac_pwd 23965ac_abs_builddir=$ac_pwd$ac_dir_suffix 23966# for backward compatibility: 23967ac_top_builddir=$ac_top_build_prefix 23968 23969case $srcdir in 23970 .) # We are building in place. 23971 ac_srcdir=. 23972 ac_top_srcdir=$ac_top_builddir_sub 23973 ac_abs_top_srcdir=$ac_pwd ;; 23974 [\\/]* | ?:[\\/]* ) # Absolute name. 23975 ac_srcdir=$srcdir$ac_dir_suffix; 23976 ac_top_srcdir=$srcdir 23977 ac_abs_top_srcdir=$srcdir ;; 23978 *) # Relative name. 23979 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23980 ac_top_srcdir=$ac_top_build_prefix$srcdir 23981 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23982esac 23983ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23984 23985 23986 case $ac_mode in 23987 :F) 23988 # 23989 # CONFIG_FILE 23990 # 23991 23992 case $INSTALL in 23993 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23994 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23995 esac 23996 ac_MKDIR_P=$MKDIR_P 23997 case $MKDIR_P in 23998 [\\/$]* | ?:[\\/]* ) ;; 23999 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 24000 esac 24001_ACEOF 24002 24003cat >>$CONFIG_STATUS <<\_ACEOF 24004# If the template does not know about datarootdir, expand it. 24005# FIXME: This hack should be removed a few years after 2.60. 24006ac_datarootdir_hack=; ac_datarootdir_seen= 24007 24008case `sed -n '/datarootdir/ { 24009 p 24010 q 24011} 24012/@datadir@/p 24013/@docdir@/p 24014/@infodir@/p 24015/@localedir@/p 24016/@mandir@/p 24017' $ac_file_inputs` in 24018*datarootdir*) ac_datarootdir_seen=yes;; 24019*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24020 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24021echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24022_ACEOF 24023cat >>$CONFIG_STATUS <<_ACEOF 24024 ac_datarootdir_hack=' 24025 s&@datadir@&$datadir&g 24026 s&@docdir@&$docdir&g 24027 s&@infodir@&$infodir&g 24028 s&@localedir@&$localedir&g 24029 s&@mandir@&$mandir&g 24030 s&\\\${datarootdir}&$datarootdir&g' ;; 24031esac 24032_ACEOF 24033 24034# Neutralize VPATH when `$srcdir' = `.'. 24035# Shell code in configure.ac might set extrasub. 24036# FIXME: do we really want to maintain this feature? 24037cat >>$CONFIG_STATUS <<_ACEOF 24038 sed "$ac_vpsub 24039$extrasub 24040_ACEOF 24041cat >>$CONFIG_STATUS <<\_ACEOF 24042:t 24043/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24044s&@configure_input@&$configure_input&;t t 24045s&@top_builddir@&$ac_top_builddir_sub&;t t 24046s&@srcdir@&$ac_srcdir&;t t 24047s&@abs_srcdir@&$ac_abs_srcdir&;t t 24048s&@top_srcdir@&$ac_top_srcdir&;t t 24049s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24050s&@builddir@&$ac_builddir&;t t 24051s&@abs_builddir@&$ac_abs_builddir&;t t 24052s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24053s&@INSTALL@&$ac_INSTALL&;t t 24054s&@MKDIR_P@&$ac_MKDIR_P&;t t 24055$ac_datarootdir_hack 24056" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 24057 24058test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24059 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 24060 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 24061 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24062which seems to be undefined. Please make sure it is defined." >&5 24063echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24064which seems to be undefined. Please make sure it is defined." >&2;} 24065 24066 rm -f "$tmp/stdin" 24067 case $ac_file in 24068 -) cat "$tmp/out"; rm -f "$tmp/out";; 24069 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 24070 esac 24071 ;; 24072 :H) 24073 # 24074 # CONFIG_HEADER 24075 # 24076_ACEOF 24077 24078# Transform confdefs.h into a sed script `conftest.defines', that 24079# substitutes the proper values into config.h.in to produce config.h. 24080rm -f conftest.defines conftest.tail 24081# First, append a space to every undef/define line, to ease matching. 24082echo 's/$/ /' >conftest.defines 24083# Then, protect against being on the right side of a sed subst, or in 24084# an unquoted here document, in config.status. If some macros were 24085# called several times there might be several #defines for the same 24086# symbol, which is useless. But do not sort them, since the last 24087# AC_DEFINE must be honored. 24088ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24089# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 24090# NAME is the cpp macro being defined, VALUE is the value it is being given. 24091# PARAMS is the parameter list in the macro definition--in most cases, it's 24092# just an empty string. 24093ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 24094ac_dB='\\)[ (].*,\\1define\\2' 24095ac_dC=' ' 24096ac_dD=' ,' 24097 24098uniq confdefs.h | 24099 sed -n ' 24100 t rset 24101 :rset 24102 s/^[ ]*#[ ]*define[ ][ ]*// 24103 t ok 24104 d 24105 :ok 24106 s/[\\&,]/\\&/g 24107 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 24108 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 24109 ' >>conftest.defines 24110 24111# Remove the space that was appended to ease matching. 24112# Then replace #undef with comments. This is necessary, for 24113# example, in the case of _POSIX_SOURCE, which is predefined and required 24114# on some systems where configure will not decide to define it. 24115# (The regexp can be short, since the line contains either #define or #undef.) 24116echo 's/ $// 24117s,^[ #]*u.*,/* & */,' >>conftest.defines 24118 24119# Break up conftest.defines: 24120ac_max_sed_lines=50 24121 24122# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 24123# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 24124# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 24125# et cetera. 24126ac_in='$ac_file_inputs' 24127ac_out='"$tmp/out1"' 24128ac_nxt='"$tmp/out2"' 24129 24130while : 24131do 24132 # Write a here document: 24133 cat >>$CONFIG_STATUS <<_ACEOF 24134 # First, check the format of the line: 24135 cat >"\$tmp/defines.sed" <<\\CEOF 24136/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 24137/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 24138b 24139:def 24140_ACEOF 24141 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 24142 echo 'CEOF 24143 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 24144 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 24145 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 24146 grep . conftest.tail >/dev/null || break 24147 rm -f conftest.defines 24148 mv conftest.tail conftest.defines 24149done 24150rm -f conftest.defines conftest.tail 24151 24152echo "ac_result=$ac_in" >>$CONFIG_STATUS 24153cat >>$CONFIG_STATUS <<\_ACEOF 24154 if test x"$ac_file" != x-; then 24155 echo "/* $configure_input */" >"$tmp/config.h" 24156 cat "$ac_result" >>"$tmp/config.h" 24157 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 24158 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 24159echo "$as_me: $ac_file is unchanged" >&6;} 24160 else 24161 rm -f $ac_file 24162 mv "$tmp/config.h" $ac_file 24163 fi 24164 else 24165 echo "/* $configure_input */" 24166 cat "$ac_result" 24167 fi 24168 rm -f "$tmp/out12" 24169# Compute $ac_file's index in $config_headers. 24170_am_arg=$ac_file 24171_am_stamp_count=1 24172for _am_header in $config_headers :; do 24173 case $_am_header in 24174 $_am_arg | $_am_arg:* ) 24175 break ;; 24176 * ) 24177 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24178 esac 24179done 24180echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 24181$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24182 X"$_am_arg" : 'X\(//\)[^/]' \| \ 24183 X"$_am_arg" : 'X\(//\)$' \| \ 24184 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 24185echo X"$_am_arg" | 24186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24187 s//\1/ 24188 q 24189 } 24190 /^X\(\/\/\)[^/].*/{ 24191 s//\1/ 24192 q 24193 } 24194 /^X\(\/\/\)$/{ 24195 s//\1/ 24196 q 24197 } 24198 /^X\(\/\).*/{ 24199 s//\1/ 24200 q 24201 } 24202 s/.*/./; q'`/stamp-h$_am_stamp_count 24203 ;; 24204 24205 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 24206echo "$as_me: executing $ac_file commands" >&6;} 24207 ;; 24208 esac 24209 24210 24211 case $ac_file$ac_mode in 24212 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 24213 # Strip MF so we end up with the name of the file. 24214 mf=`echo "$mf" | sed -e 's/:.*$//'` 24215 # Check whether this is an Automake generated Makefile or not. 24216 # We used to match only the files named `Makefile.in', but 24217 # some people rename them; so instead we look at the file content. 24218 # Grep'ing the first line is not enough: some people post-process 24219 # each Makefile.in and add a new line on top of each file to say so. 24220 # Grep'ing the whole file is not good either: AIX grep has a line 24221 # limit of 2048, but all sed's we know have understand at least 4000. 24222 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 24223 dirpart=`$as_dirname -- "$mf" || 24224$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24225 X"$mf" : 'X\(//\)[^/]' \| \ 24226 X"$mf" : 'X\(//\)$' \| \ 24227 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 24228echo X"$mf" | 24229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24230 s//\1/ 24231 q 24232 } 24233 /^X\(\/\/\)[^/].*/{ 24234 s//\1/ 24235 q 24236 } 24237 /^X\(\/\/\)$/{ 24238 s//\1/ 24239 q 24240 } 24241 /^X\(\/\).*/{ 24242 s//\1/ 24243 q 24244 } 24245 s/.*/./; q'` 24246 else 24247 continue 24248 fi 24249 # Extract the definition of DEPDIR, am__include, and am__quote 24250 # from the Makefile without running `make'. 24251 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24252 test -z "$DEPDIR" && continue 24253 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24254 test -z "am__include" && continue 24255 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24256 # When using ansi2knr, U may be empty or an underscore; expand it 24257 U=`sed -n 's/^U = //p' < "$mf"` 24258 # Find all dependency output files, they are included files with 24259 # $(DEPDIR) in their names. We invoke sed twice because it is the 24260 # simplest approach to changing $(DEPDIR) to its actual value in the 24261 # expansion. 24262 for file in `sed -n " 24263 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24264 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24265 # Make sure the directory exists. 24266 test -f "$dirpart/$file" && continue 24267 fdir=`$as_dirname -- "$file" || 24268$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24269 X"$file" : 'X\(//\)[^/]' \| \ 24270 X"$file" : 'X\(//\)$' \| \ 24271 X"$file" : 'X\(/\)' \| . 2>/dev/null || 24272echo X"$file" | 24273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24274 s//\1/ 24275 q 24276 } 24277 /^X\(\/\/\)[^/].*/{ 24278 s//\1/ 24279 q 24280 } 24281 /^X\(\/\/\)$/{ 24282 s//\1/ 24283 q 24284 } 24285 /^X\(\/\).*/{ 24286 s//\1/ 24287 q 24288 } 24289 s/.*/./; q'` 24290 { as_dir=$dirpart/$fdir 24291 case $as_dir in #( 24292 -*) as_dir=./$as_dir;; 24293 esac 24294 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24295 as_dirs= 24296 while :; do 24297 case $as_dir in #( 24298 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 24299 *) as_qdir=$as_dir;; 24300 esac 24301 as_dirs="'$as_qdir' $as_dirs" 24302 as_dir=`$as_dirname -- "$as_dir" || 24303$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24304 X"$as_dir" : 'X\(//\)[^/]' \| \ 24305 X"$as_dir" : 'X\(//\)$' \| \ 24306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24307echo X"$as_dir" | 24308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24309 s//\1/ 24310 q 24311 } 24312 /^X\(\/\/\)[^/].*/{ 24313 s//\1/ 24314 q 24315 } 24316 /^X\(\/\/\)$/{ 24317 s//\1/ 24318 q 24319 } 24320 /^X\(\/\).*/{ 24321 s//\1/ 24322 q 24323 } 24324 s/.*/./; q'` 24325 test -d "$as_dir" && break 24326 done 24327 test -z "$as_dirs" || eval "mkdir $as_dirs" 24328 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24329echo "$as_me: error: cannot create directory $as_dir" >&2;} 24330 { (exit 1); exit 1; }; }; } 24331 # echo "creating $dirpart/$file" 24332 echo '# dummy' > "$dirpart/$file" 24333 done 24334done 24335 ;; 24336 "libtool":C) 24337 24338 # See if we are running on zsh, and set the options which allow our 24339 # commands through without removal of \ escapes. 24340 if test -n "${ZSH_VERSION+set}" ; then 24341 setopt NO_GLOB_SUBST 24342 fi 24343 24344 cfgfile="${ofile}T" 24345 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 24346 $RM "$cfgfile" 24347 24348 cat <<_LT_EOF >> "$cfgfile" 24349#! $SHELL 24350 24351# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 24352# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 24353# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 24354# NOTE: Changes made to this file will be lost: look at ltmain.sh. 24355# 24356# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 24357# 2006, 2007, 2008 Free Software Foundation, Inc. 24358# Written by Gordon Matzigkeit, 1996 24359# 24360# This file is part of GNU Libtool. 24361# 24362# GNU Libtool is free software; you can redistribute it and/or 24363# modify it under the terms of the GNU General Public License as 24364# published by the Free Software Foundation; either version 2 of 24365# the License, or (at your option) any later version. 24366# 24367# As a special exception to the GNU General Public License, 24368# if you distribute this file as part of a program or library that 24369# is built using GNU Libtool, you may include this file under the 24370# same distribution terms that you use for the rest of that program. 24371# 24372# GNU Libtool is distributed in the hope that it will be useful, 24373# but WITHOUT ANY WARRANTY; without even the implied warranty of 24374# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24375# GNU General Public License for more details. 24376# 24377# You should have received a copy of the GNU General Public License 24378# along with GNU Libtool; see the file COPYING. If not, a copy 24379# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 24380# obtained by writing to the Free Software Foundation, Inc., 24381# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 24382 24383 24384# The names of the tagged configurations supported by this script. 24385available_tags="CXX " 24386 24387# ### BEGIN LIBTOOL CONFIG 24388 24389# Which release of libtool.m4 was used? 24390macro_version=$macro_version 24391macro_revision=$macro_revision 24392 24393# Whether or not to build shared libraries. 24394build_libtool_libs=$enable_shared 24395 24396# Whether or not to build static libraries. 24397build_old_libs=$enable_static 24398 24399# What type of objects to build. 24400pic_mode=$pic_mode 24401 24402# Whether or not to optimize for fast installation. 24403fast_install=$enable_fast_install 24404 24405# The host system. 24406host_alias=$host_alias 24407host=$host 24408host_os=$host_os 24409 24410# The build system. 24411build_alias=$build_alias 24412build=$build 24413build_os=$build_os 24414 24415# A sed program that does not truncate output. 24416SED=$lt_SED 24417 24418# Sed that helps us avoid accidentally triggering echo(1) options like -n. 24419Xsed="\$SED -e 1s/^X//" 24420 24421# A grep program that handles long lines. 24422GREP=$lt_GREP 24423 24424# An ERE matcher. 24425EGREP=$lt_EGREP 24426 24427# A literal string matcher. 24428FGREP=$lt_FGREP 24429 24430# A BSD- or MS-compatible name lister. 24431NM=$lt_NM 24432 24433# Whether we need soft or hard links. 24434LN_S=$lt_LN_S 24435 24436# What is the maximum length of a command? 24437max_cmd_len=$max_cmd_len 24438 24439# Object file suffix (normally "o"). 24440objext=$ac_objext 24441 24442# Executable file suffix (normally ""). 24443exeext=$exeext 24444 24445# whether the shell understands "unset". 24446lt_unset=$lt_unset 24447 24448# turn spaces into newlines. 24449SP2NL=$lt_lt_SP2NL 24450 24451# turn newlines into spaces. 24452NL2SP=$lt_lt_NL2SP 24453 24454# How to create reloadable object files. 24455reload_flag=$lt_reload_flag 24456reload_cmds=$lt_reload_cmds 24457 24458# Method to check whether dependent libraries are shared objects. 24459deplibs_check_method=$lt_deplibs_check_method 24460 24461# Command to use when deplibs_check_method == "file_magic". 24462file_magic_cmd=$lt_file_magic_cmd 24463 24464# The archiver. 24465AR=$lt_AR 24466AR_FLAGS=$lt_AR_FLAGS 24467 24468# A symbol stripping program. 24469STRIP=$lt_STRIP 24470 24471# Commands used to install an old-style archive. 24472RANLIB=$lt_RANLIB 24473old_postinstall_cmds=$lt_old_postinstall_cmds 24474old_postuninstall_cmds=$lt_old_postuninstall_cmds 24475 24476# A C compiler. 24477LTCC=$lt_CC 24478 24479# LTCC compiler flags. 24480LTCFLAGS=$lt_CFLAGS 24481 24482# Take the output of nm and produce a listing of raw symbols and C names. 24483global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 24484 24485# Transform the output of nm in a proper C declaration. 24486global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 24487 24488# Transform the output of nm in a C name address pair. 24489global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 24490 24491# Transform the output of nm in a C name address pair when lib prefix is needed. 24492global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 24493 24494# The name of the directory that contains temporary libtool files. 24495objdir=$objdir 24496 24497# Shell to use when invoking shell scripts. 24498SHELL=$lt_SHELL 24499 24500# An echo program that does not interpret backslashes. 24501ECHO=$lt_ECHO 24502 24503# Used to examine libraries when file_magic_cmd begins with "file". 24504MAGIC_CMD=$MAGIC_CMD 24505 24506# Must we lock files when doing compilation? 24507need_locks=$lt_need_locks 24508 24509# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 24510DSYMUTIL=$lt_DSYMUTIL 24511 24512# Tool to change global to local symbols on Mac OS X. 24513NMEDIT=$lt_NMEDIT 24514 24515# Tool to manipulate fat objects and archives on Mac OS X. 24516LIPO=$lt_LIPO 24517 24518# ldd/readelf like tool for Mach-O binaries on Mac OS X. 24519OTOOL=$lt_OTOOL 24520 24521# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 24522OTOOL64=$lt_OTOOL64 24523 24524# Old archive suffix (normally "a"). 24525libext=$libext 24526 24527# Shared library suffix (normally ".so"). 24528shrext_cmds=$lt_shrext_cmds 24529 24530# The commands to extract the exported symbol list from a shared archive. 24531extract_expsyms_cmds=$lt_extract_expsyms_cmds 24532 24533# Variables whose values should be saved in libtool wrapper scripts and 24534# restored at link time. 24535variables_saved_for_relink=$lt_variables_saved_for_relink 24536 24537# Do we need the "lib" prefix for modules? 24538need_lib_prefix=$need_lib_prefix 24539 24540# Do we need a version for libraries? 24541need_version=$need_version 24542 24543# Library versioning type. 24544version_type=$version_type 24545 24546# Shared library runtime path variable. 24547runpath_var=$runpath_var 24548 24549# Shared library path variable. 24550shlibpath_var=$shlibpath_var 24551 24552# Is shlibpath searched before the hard-coded library search path? 24553shlibpath_overrides_runpath=$shlibpath_overrides_runpath 24554 24555# Format of library name prefix. 24556libname_spec=$lt_libname_spec 24557 24558# List of archive names. First name is the real one, the rest are links. 24559# The last name is the one that the linker finds with -lNAME 24560library_names_spec=$lt_library_names_spec 24561 24562# The coded name of the library, if different from the real name. 24563soname_spec=$lt_soname_spec 24564 24565# Command to use after installation of a shared archive. 24566postinstall_cmds=$lt_postinstall_cmds 24567 24568# Command to use after uninstallation of a shared archive. 24569postuninstall_cmds=$lt_postuninstall_cmds 24570 24571# Commands used to finish a libtool library installation in a directory. 24572finish_cmds=$lt_finish_cmds 24573 24574# As "finish_cmds", except a single script fragment to be evaled but 24575# not shown. 24576finish_eval=$lt_finish_eval 24577 24578# Whether we should hardcode library paths into libraries. 24579hardcode_into_libs=$hardcode_into_libs 24580 24581# Compile-time system search path for libraries. 24582sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 24583 24584# Run-time system search path for libraries. 24585sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 24586 24587# Whether dlopen is supported. 24588dlopen_support=$enable_dlopen 24589 24590# Whether dlopen of programs is supported. 24591dlopen_self=$enable_dlopen_self 24592 24593# Whether dlopen of statically linked programs is supported. 24594dlopen_self_static=$enable_dlopen_self_static 24595 24596# Commands to strip libraries. 24597old_striplib=$lt_old_striplib 24598striplib=$lt_striplib 24599 24600 24601# The linker used to build libraries. 24602LD=$lt_LD 24603 24604# Commands used to build an old-style archive. 24605old_archive_cmds=$lt_old_archive_cmds 24606 24607# A language specific compiler. 24608CC=$lt_compiler 24609 24610# Is the compiler the GNU compiler? 24611with_gcc=$GCC 24612 24613# Compiler flag to turn off builtin functions. 24614no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 24615 24616# How to pass a linker flag through the compiler. 24617wl=$lt_lt_prog_compiler_wl 24618 24619# Additional compiler flags for building library objects. 24620pic_flag=$lt_lt_prog_compiler_pic 24621 24622# Compiler flag to prevent dynamic linking. 24623link_static_flag=$lt_lt_prog_compiler_static 24624 24625# Does compiler simultaneously support -c and -o options? 24626compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24627 24628# Whether or not to add -lc for building shared libraries. 24629build_libtool_need_lc=$archive_cmds_need_lc 24630 24631# Whether or not to disallow shared libs when runtime libs are static. 24632allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24633 24634# Compiler flag to allow reflexive dlopens. 24635export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24636 24637# Compiler flag to generate shared objects directly from archives. 24638whole_archive_flag_spec=$lt_whole_archive_flag_spec 24639 24640# Whether the compiler copes with passing no objects directly. 24641compiler_needs_object=$lt_compiler_needs_object 24642 24643# Create an old-style archive from a shared archive. 24644old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24645 24646# Create a temporary old-style archive to link instead of a shared archive. 24647old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24648 24649# Commands used to build a shared archive. 24650archive_cmds=$lt_archive_cmds 24651archive_expsym_cmds=$lt_archive_expsym_cmds 24652 24653# Commands used to build a loadable module if different from building 24654# a shared archive. 24655module_cmds=$lt_module_cmds 24656module_expsym_cmds=$lt_module_expsym_cmds 24657 24658# Whether we are building with GNU ld or not. 24659with_gnu_ld=$lt_with_gnu_ld 24660 24661# Flag that allows shared libraries with undefined symbols to be built. 24662allow_undefined_flag=$lt_allow_undefined_flag 24663 24664# Flag that enforces no undefined symbols. 24665no_undefined_flag=$lt_no_undefined_flag 24666 24667# Flag to hardcode \$libdir into a binary during linking. 24668# This must work even if \$libdir does not exist 24669hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24670 24671# If ld is used when linking, flag to hardcode \$libdir into a binary 24672# during linking. This must work even if \$libdir does not exist. 24673hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 24674 24675# Whether we need a single "-rpath" flag with a separated argument. 24676hardcode_libdir_separator=$lt_hardcode_libdir_separator 24677 24678# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 24679# DIR into the resulting binary. 24680hardcode_direct=$hardcode_direct 24681 24682# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 24683# DIR into the resulting binary and the resulting library dependency is 24684# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 24685# library is relocated. 24686hardcode_direct_absolute=$hardcode_direct_absolute 24687 24688# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24689# into the resulting binary. 24690hardcode_minus_L=$hardcode_minus_L 24691 24692# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24693# into the resulting binary. 24694hardcode_shlibpath_var=$hardcode_shlibpath_var 24695 24696# Set to "yes" if building a shared library automatically hardcodes DIR 24697# into the library and all subsequent libraries and executables linked 24698# against it. 24699hardcode_automatic=$hardcode_automatic 24700 24701# Set to yes if linker adds runtime paths of dependent libraries 24702# to runtime path list. 24703inherit_rpath=$inherit_rpath 24704 24705# Whether libtool must link a program against all its dependency libraries. 24706link_all_deplibs=$link_all_deplibs 24707 24708# Fix the shell variable \$srcfile for the compiler. 24709fix_srcfile_path=$lt_fix_srcfile_path 24710 24711# Set to "yes" if exported symbols are required. 24712always_export_symbols=$always_export_symbols 24713 24714# The commands to list exported symbols. 24715export_symbols_cmds=$lt_export_symbols_cmds 24716 24717# Symbols that should not be listed in the preloaded symbols. 24718exclude_expsyms=$lt_exclude_expsyms 24719 24720# Symbols that must always be exported. 24721include_expsyms=$lt_include_expsyms 24722 24723# Commands necessary for linking programs (against libraries) with templates. 24724prelink_cmds=$lt_prelink_cmds 24725 24726# Specify filename containing input files. 24727file_list_spec=$lt_file_list_spec 24728 24729# How to hardcode a shared library path into an executable. 24730hardcode_action=$hardcode_action 24731 24732# The directories searched by this compiler when creating a shared library. 24733compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 24734 24735# Dependencies to place before and after the objects being linked to 24736# create a shared library. 24737predep_objects=$lt_predep_objects 24738postdep_objects=$lt_postdep_objects 24739predeps=$lt_predeps 24740postdeps=$lt_postdeps 24741 24742# The library search path used internally by the compiler when linking 24743# a shared library. 24744compiler_lib_search_path=$lt_compiler_lib_search_path 24745 24746# ### END LIBTOOL CONFIG 24747 24748_LT_EOF 24749 24750 case $host_os in 24751 aix3*) 24752 cat <<\_LT_EOF >> "$cfgfile" 24753# AIX sometimes has problems with the GCC collect2 program. For some 24754# reason, if we set the COLLECT_NAMES environment variable, the problems 24755# vanish in a puff of smoke. 24756if test "X${COLLECT_NAMES+set}" != Xset; then 24757 COLLECT_NAMES= 24758 export COLLECT_NAMES 24759fi 24760_LT_EOF 24761 ;; 24762 esac 24763 24764 24765ltmain="$ac_aux_dir/ltmain.sh" 24766 24767 24768 # We use sed instead of cat because bash on DJGPP gets confused if 24769 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24770 # text mode, it properly converts lines to CR/LF. This bash problem 24771 # is reportedly fixed, but why not run on old versions too? 24772 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 24773 || (rm -f "$cfgfile"; exit 1) 24774 24775 case $xsi_shell in 24776 yes) 24777 cat << \_LT_EOF >> "$cfgfile" 24778 24779# func_dirname file append nondir_replacement 24780# Compute the dirname of FILE. If nonempty, add APPEND to the result, 24781# otherwise set result to NONDIR_REPLACEMENT. 24782func_dirname () 24783{ 24784 case ${1} in 24785 */*) func_dirname_result="${1%/*}${2}" ;; 24786 * ) func_dirname_result="${3}" ;; 24787 esac 24788} 24789 24790# func_basename file 24791func_basename () 24792{ 24793 func_basename_result="${1##*/}" 24794} 24795 24796# func_dirname_and_basename file append nondir_replacement 24797# perform func_basename and func_dirname in a single function 24798# call: 24799# dirname: Compute the dirname of FILE. If nonempty, 24800# add APPEND to the result, otherwise set result 24801# to NONDIR_REPLACEMENT. 24802# value returned in "$func_dirname_result" 24803# basename: Compute filename of FILE. 24804# value retuned in "$func_basename_result" 24805# Implementation must be kept synchronized with func_dirname 24806# and func_basename. For efficiency, we do not delegate to 24807# those functions but instead duplicate the functionality here. 24808func_dirname_and_basename () 24809{ 24810 case ${1} in 24811 */*) func_dirname_result="${1%/*}${2}" ;; 24812 * ) func_dirname_result="${3}" ;; 24813 esac 24814 func_basename_result="${1##*/}" 24815} 24816 24817# func_stripname prefix suffix name 24818# strip PREFIX and SUFFIX off of NAME. 24819# PREFIX and SUFFIX must not contain globbing or regex special 24820# characters, hashes, percent signs, but SUFFIX may contain a leading 24821# dot (in which case that matches only a dot). 24822func_stripname () 24823{ 24824 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 24825 # positional parameters, so assign one to ordinary parameter first. 24826 func_stripname_result=${3} 24827 func_stripname_result=${func_stripname_result#"${1}"} 24828 func_stripname_result=${func_stripname_result%"${2}"} 24829} 24830 24831# func_opt_split 24832func_opt_split () 24833{ 24834 func_opt_split_opt=${1%%=*} 24835 func_opt_split_arg=${1#*=} 24836} 24837 24838# func_lo2o object 24839func_lo2o () 24840{ 24841 case ${1} in 24842 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 24843 *) func_lo2o_result=${1} ;; 24844 esac 24845} 24846 24847# func_xform libobj-or-source 24848func_xform () 24849{ 24850 func_xform_result=${1%.*}.lo 24851} 24852 24853# func_arith arithmetic-term... 24854func_arith () 24855{ 24856 func_arith_result=$(( $* )) 24857} 24858 24859# func_len string 24860# STRING may not start with a hyphen. 24861func_len () 24862{ 24863 func_len_result=${#1} 24864} 24865 24866_LT_EOF 24867 ;; 24868 *) # Bourne compatible functions. 24869 cat << \_LT_EOF >> "$cfgfile" 24870 24871# func_dirname file append nondir_replacement 24872# Compute the dirname of FILE. If nonempty, add APPEND to the result, 24873# otherwise set result to NONDIR_REPLACEMENT. 24874func_dirname () 24875{ 24876 # Extract subdirectory from the argument. 24877 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 24878 if test "X$func_dirname_result" = "X${1}"; then 24879 func_dirname_result="${3}" 24880 else 24881 func_dirname_result="$func_dirname_result${2}" 24882 fi 24883} 24884 24885# func_basename file 24886func_basename () 24887{ 24888 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 24889} 24890 24891 24892# func_stripname prefix suffix name 24893# strip PREFIX and SUFFIX off of NAME. 24894# PREFIX and SUFFIX must not contain globbing or regex special 24895# characters, hashes, percent signs, but SUFFIX may contain a leading 24896# dot (in which case that matches only a dot). 24897# func_strip_suffix prefix name 24898func_stripname () 24899{ 24900 case ${2} in 24901 .*) func_stripname_result=`$ECHO "X${3}" \ 24902 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 24903 *) func_stripname_result=`$ECHO "X${3}" \ 24904 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 24905 esac 24906} 24907 24908# sed scripts: 24909my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 24910my_sed_long_arg='1s/^-[^=]*=//' 24911 24912# func_opt_split 24913func_opt_split () 24914{ 24915 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 24916 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 24917} 24918 24919# func_lo2o object 24920func_lo2o () 24921{ 24922 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 24923} 24924 24925# func_xform libobj-or-source 24926func_xform () 24927{ 24928 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 24929} 24930 24931# func_arith arithmetic-term... 24932func_arith () 24933{ 24934 func_arith_result=`expr "$@"` 24935} 24936 24937# func_len string 24938# STRING may not start with a hyphen. 24939func_len () 24940{ 24941 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 24942} 24943 24944_LT_EOF 24945esac 24946 24947case $lt_shell_append in 24948 yes) 24949 cat << \_LT_EOF >> "$cfgfile" 24950 24951# func_append var value 24952# Append VALUE to the end of shell variable VAR. 24953func_append () 24954{ 24955 eval "$1+=\$2" 24956} 24957_LT_EOF 24958 ;; 24959 *) 24960 cat << \_LT_EOF >> "$cfgfile" 24961 24962# func_append var value 24963# Append VALUE to the end of shell variable VAR. 24964func_append () 24965{ 24966 eval "$1=\$$1\$2" 24967} 24968 24969_LT_EOF 24970 ;; 24971 esac 24972 24973 24974 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 24975 || (rm -f "$cfgfile"; exit 1) 24976 24977 mv -f "$cfgfile" "$ofile" || 24978 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24979 chmod +x "$ofile" 24980 24981 24982 cat <<_LT_EOF >> "$ofile" 24983 24984# ### BEGIN LIBTOOL TAG CONFIG: CXX 24985 24986# The linker used to build libraries. 24987LD=$lt_LD_CXX 24988 24989# Commands used to build an old-style archive. 24990old_archive_cmds=$lt_old_archive_cmds_CXX 24991 24992# A language specific compiler. 24993CC=$lt_compiler_CXX 24994 24995# Is the compiler the GNU compiler? 24996with_gcc=$GCC_CXX 24997 24998# Compiler flag to turn off builtin functions. 24999no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 25000 25001# How to pass a linker flag through the compiler. 25002wl=$lt_lt_prog_compiler_wl_CXX 25003 25004# Additional compiler flags for building library objects. 25005pic_flag=$lt_lt_prog_compiler_pic_CXX 25006 25007# Compiler flag to prevent dynamic linking. 25008link_static_flag=$lt_lt_prog_compiler_static_CXX 25009 25010# Does compiler simultaneously support -c and -o options? 25011compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 25012 25013# Whether or not to add -lc for building shared libraries. 25014build_libtool_need_lc=$archive_cmds_need_lc_CXX 25015 25016# Whether or not to disallow shared libs when runtime libs are static. 25017allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 25018 25019# Compiler flag to allow reflexive dlopens. 25020export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 25021 25022# Compiler flag to generate shared objects directly from archives. 25023whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 25024 25025# Whether the compiler copes with passing no objects directly. 25026compiler_needs_object=$lt_compiler_needs_object_CXX 25027 25028# Create an old-style archive from a shared archive. 25029old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 25030 25031# Create a temporary old-style archive to link instead of a shared archive. 25032old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 25033 25034# Commands used to build a shared archive. 25035archive_cmds=$lt_archive_cmds_CXX 25036archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 25037 25038# Commands used to build a loadable module if different from building 25039# a shared archive. 25040module_cmds=$lt_module_cmds_CXX 25041module_expsym_cmds=$lt_module_expsym_cmds_CXX 25042 25043# Whether we are building with GNU ld or not. 25044with_gnu_ld=$lt_with_gnu_ld_CXX 25045 25046# Flag that allows shared libraries with undefined symbols to be built. 25047allow_undefined_flag=$lt_allow_undefined_flag_CXX 25048 25049# Flag that enforces no undefined symbols. 25050no_undefined_flag=$lt_no_undefined_flag_CXX 25051 25052# Flag to hardcode \$libdir into a binary during linking. 25053# This must work even if \$libdir does not exist 25054hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 25055 25056# If ld is used when linking, flag to hardcode \$libdir into a binary 25057# during linking. This must work even if \$libdir does not exist. 25058hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 25059 25060# Whether we need a single "-rpath" flag with a separated argument. 25061hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 25062 25063# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 25064# DIR into the resulting binary. 25065hardcode_direct=$hardcode_direct_CXX 25066 25067# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 25068# DIR into the resulting binary and the resulting library dependency is 25069# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 25070# library is relocated. 25071hardcode_direct_absolute=$hardcode_direct_absolute_CXX 25072 25073# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 25074# into the resulting binary. 25075hardcode_minus_L=$hardcode_minus_L_CXX 25076 25077# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 25078# into the resulting binary. 25079hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 25080 25081# Set to "yes" if building a shared library automatically hardcodes DIR 25082# into the library and all subsequent libraries and executables linked 25083# against it. 25084hardcode_automatic=$hardcode_automatic_CXX 25085 25086# Set to yes if linker adds runtime paths of dependent libraries 25087# to runtime path list. 25088inherit_rpath=$inherit_rpath_CXX 25089 25090# Whether libtool must link a program against all its dependency libraries. 25091link_all_deplibs=$link_all_deplibs_CXX 25092 25093# Fix the shell variable \$srcfile for the compiler. 25094fix_srcfile_path=$lt_fix_srcfile_path_CXX 25095 25096# Set to "yes" if exported symbols are required. 25097always_export_symbols=$always_export_symbols_CXX 25098 25099# The commands to list exported symbols. 25100export_symbols_cmds=$lt_export_symbols_cmds_CXX 25101 25102# Symbols that should not be listed in the preloaded symbols. 25103exclude_expsyms=$lt_exclude_expsyms_CXX 25104 25105# Symbols that must always be exported. 25106include_expsyms=$lt_include_expsyms_CXX 25107 25108# Commands necessary for linking programs (against libraries) with templates. 25109prelink_cmds=$lt_prelink_cmds_CXX 25110 25111# Specify filename containing input files. 25112file_list_spec=$lt_file_list_spec_CXX 25113 25114# How to hardcode a shared library path into an executable. 25115hardcode_action=$hardcode_action_CXX 25116 25117# The directories searched by this compiler when creating a shared library. 25118compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 25119 25120# Dependencies to place before and after the objects being linked to 25121# create a shared library. 25122predep_objects=$lt_predep_objects_CXX 25123postdep_objects=$lt_postdep_objects_CXX 25124predeps=$lt_predeps_CXX 25125postdeps=$lt_postdeps_CXX 25126 25127# The library search path used internally by the compiler when linking 25128# a shared library. 25129compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 25130 25131# ### END LIBTOOL TAG CONFIG: CXX 25132_LT_EOF 25133 25134 ;; 25135 25136 esac 25137done # for ac_tag 25138 25139 25140{ (exit 0); exit 0; } 25141_ACEOF 25142chmod +x $CONFIG_STATUS 25143ac_clean_files=$ac_clean_files_save 25144 25145 25146# configure is writing to config.log, and then calls config.status. 25147# config.status does its own redirection, appending to config.log. 25148# Unfortunately, on DOS this fails, as config.log is still kept open 25149# by configure, so config.status won't be able to write to it; its 25150# output is simply discarded. So we exec the FD to /dev/null, 25151# effectively closing config.log, so it can be properly (re)opened and 25152# appended to by config.status. When coming back to configure, we 25153# need to make the FD available again. 25154if test "$no_create" != yes; then 25155 ac_cs_success=: 25156 ac_config_status_args= 25157 test "$silent" = yes && 25158 ac_config_status_args="$ac_config_status_args --quiet" 25159 exec 5>/dev/null 25160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25161 exec 5>>config.log 25162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25163 # would make configure fail if this is the last instruction. 25164 $ac_cs_success || { (exit 1); exit 1; } 25165fi 25166 25167