1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.53a. 4# 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 6# Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be Bourne compatible 14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21 set -o posix 22fi 23 24# NLS nuisances. 25# Support unset when possible. 26if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 27 as_unset=unset 28else 29 as_unset=false 30fi 31 32(set +x; test -n "`(LANG=C; export LANG) 2>&1`") && 33 { $as_unset LANG || test "${LANG+set}" != set; } || 34 { LANG=C; export LANG; } 35(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && 36 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || 37 { LC_ALL=C; export LC_ALL; } 38(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && 39 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || 40 { LC_TIME=C; export LC_TIME; } 41(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && 42 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || 43 { LC_CTYPE=C; export LC_CTYPE; } 44(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && 45 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || 46 { LANGUAGE=C; export LANGUAGE; } 47(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && 48 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || 49 { LC_COLLATE=C; export LC_COLLATE; } 50(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && 51 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || 52 { LC_NUMERIC=C; export LC_NUMERIC; } 53(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && 54 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || 55 { LC_MESSAGES=C; export LC_MESSAGES; } 56 57 58# Required to use basename. 59if expr a : '\(a\)' >/dev/null 2>&1; then 60 as_expr=expr 61else 62 as_expr=false 63fi 64 65if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 66 as_basename=basename 67else 68 as_basename=false 69fi 70 71 72# Name of the executable. 73as_me=`$as_basename "$0" || 74$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 75 X"$0" : 'X\(//\)$' \| \ 76 X"$0" : 'X\(/\)$' \| \ 77 . : '\(.\)' 2>/dev/null || 78echo X/"$0" | 79 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 80 /^X\/\(\/\/\)$/{ s//\1/; q; } 81 /^X\/\(\/\).*/{ s//\1/; q; } 82 s/.*/./; q'` 83 84 85# PATH needs CR, and LINENO needs CR and PATH. 86# Avoid depending upon Character Ranges. 87as_cr_letters='abcdefghijklmnopqrstuvwxyz' 88as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 89as_cr_Letters=$as_cr_letters$as_cr_LETTERS 90as_cr_digits='0123456789' 91as_cr_alnum=$as_cr_Letters$as_cr_digits 92 93# The user is always right. 94if test "${PATH_SEPARATOR+set}" != set; then 95 echo "#! /bin/sh" >conftest.sh 96 echo "exit 0" >>conftest.sh 97 chmod +x conftest.sh 98 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then 99 PATH_SEPARATOR=';' 100 else 101 PATH_SEPARATOR=: 102 fi 103 rm -f conftest.sh 104fi 105 106 107 as_lineno_1=$LINENO 108 as_lineno_2=$LINENO 109 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 110 test "x$as_lineno_1" != "x$as_lineno_2" && 111 test "x$as_lineno_3" = "x$as_lineno_2" || { 112 # Find who we are. Look in the path if we contain no path at all 113 # relative or not. 114 case $0 in 115 *[\\/]* ) as_myself=$0 ;; 116 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 117for as_dir in $PATH 118do 119 IFS=$as_save_IFS 120 test -z "$as_dir" && as_dir=. 121 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 122done 123 124 ;; 125 esac 126 # We did not find ourselves, most probably we were run as `sh COMMAND' 127 # in which case we are not to be found in the path. 128 if test "x$as_myself" = x; then 129 as_myself=$0 130 fi 131 if test ! -f "$as_myself"; then 132 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 133 { (exit 1); exit 1; }; } 134 fi 135 case $CONFIG_SHELL in 136 '') 137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 138for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 139do 140 IFS=$as_save_IFS 141 test -z "$as_dir" && as_dir=. 142 for as_base in sh bash ksh sh5; do 143 case $as_dir in 144 /*) 145 if ("$as_dir/$as_base" -c ' 146 as_lineno_1=$LINENO 147 as_lineno_2=$LINENO 148 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 149 test "x$as_lineno_1" != "x$as_lineno_2" && 150 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 151 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 152 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 153 CONFIG_SHELL=$as_dir/$as_base 154 export CONFIG_SHELL 155 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 156 fi;; 157 esac 158 done 159done 160;; 161 esac 162 163 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 164 # uniformly replaced by the line number. The first 'sed' inserts a 165 # line-number line before each line; the second 'sed' does the real 166 # work. The second script uses 'N' to pair each line-number line 167 # with the numbered line, and appends trailing '-' during 168 # substitution so that $LINENO is not a special case at line end. 169 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 170 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 171 sed '=' <$as_myself | 172 sed ' 173 N 174 s,$,-, 175 : loop 176 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 177 t loop 178 s,-$,, 179 s,^['$as_cr_digits']*\n,, 180 ' >$as_me.lineno && 181 chmod +x $as_me.lineno || 182 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 183 { (exit 1); exit 1; }; } 184 185 # Don't try to exec as it changes $[0], causing all sort of problems 186 # (the dirname of $[0] is not the place where we might find the 187 # original and so on. Autoconf is especially sensible to this). 188 . ./$as_me.lineno 189 # Exit status is that of the last command. 190 exit 191} 192 193 194case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 195 *c*,-n*) ECHO_N= ECHO_C=' 196' ECHO_T=' ' ;; 197 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 198 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 199esac 200 201if expr a : '\(a\)' >/dev/null 2>&1; then 202 as_expr=expr 203else 204 as_expr=false 205fi 206 207rm -f conf$$ conf$$.exe conf$$.file 208echo >conf$$.file 209if ln -s conf$$.file conf$$ 2>/dev/null; then 210 # We could just check for DJGPP; but this test a) works b) is more generic 211 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 212 if test -f conf$$.exe; then 213 # Don't use ln at all; we don't have any links 214 as_ln_s='cp -p' 215 else 216 as_ln_s='ln -s' 217 fi 218elif ln conf$$.file conf$$ 2>/dev/null; then 219 as_ln_s=ln 220else 221 as_ln_s='cp -p' 222fi 223rm -f conf$$ conf$$.exe conf$$.file 224 225if mkdir -p . 2>/dev/null; then 226 as_mkdir_p=: 227else 228 as_mkdir_p=false 229fi 230 231as_executable_p="test -f" 232 233# Sed expression to map a string onto a valid CPP name. 234as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 235 236# Sed expression to map a string onto a valid variable name. 237as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 238 239 240# IFS 241# We need space, tab and new line, in precisely that order. 242as_nl=' 243' 244IFS=" $as_nl" 245 246# CDPATH. 247$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } 248 249 250 251# Making releases: 252# ID3LIB_PATCH_VERSION += 1; 253# ID3LIB_INTERFACE_AGE += 1; 254# ID3LIB_BINARY_AGE += 1; 255# if any functions have been added, set ID3LIB_INTERFACE_AGE to 0. 256# if backwards compatibility has been broken, 257# set ID3LIB_BINARY_AGE _and_ ID3LIB_INTERFACE_AGE to 0. 258# 259 260ID3LIB_MAJOR_VERSION=3 261ID3LIB_MINOR_VERSION=8 262ID3LIB_PATCH_VERSION=3 263ID3LIB_ADDED_VERSION= 264ID3LIB_VERSION=$ID3LIB_MAJOR_VERSION.$ID3LIB_MINOR_VERSION.$ID3LIB_PATCH_VERSION$ID3LIB_ADDED_VERSION 265 266ID3LIB_INTERFACE_AGE=0 267ID3LIB_BINARY_AGE=0 268 269# Find the correct PATH separator. Usually this is `:', but 270# DJGPP uses `;' like DOS. 271if test "X${PATH_SEPARATOR+set}" != Xset; then 272 UNAME=${UNAME-`uname 2>/dev/null`} 273 case X$UNAME in 274 *-DOS) lt_cv_sys_path_separator=';' ;; 275 *) lt_cv_sys_path_separator=':' ;; 276 esac 277 PATH_SEPARATOR=$lt_cv_sys_path_separator 278fi 279 280 281# Check that we are running under the correct shell. 282SHELL=${CONFIG_SHELL-/bin/sh} 283 284case X$ECHO in 285X*--fallback-echo) 286 # Remove one level of quotation (which was required for Make). 287 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 288 ;; 289esac 290 291echo=${ECHO-echo} 292if test "X$1" = X--no-reexec; then 293 # Discard the --no-reexec flag, and continue. 294 shift 295elif test "X$1" = X--fallback-echo; then 296 # Avoid inline document here, it may be left over 297 : 298elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then 299 # Yippee, $echo works! 300 : 301else 302 # Restart under the correct shell. 303 exec $SHELL "$0" --no-reexec ${1+"$@"} 304fi 305 306if test "X$1" = X--fallback-echo; then 307 # used as fallback echo 308 shift 309 cat <<EOF 310 311EOF 312 exit 0 313fi 314 315# The HP-UX ksh and POSIX shell print the target directory to stdout 316# if CDPATH is set. 317if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 318 319if test -z "$ECHO"; then 320if test "X${echo_test_string+set}" != Xset; then 321# find a string as large as possible, as long as the shell can cope with it 322 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 323 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 324 if (echo_test_string="`eval $cmd`") 2>/dev/null && 325 echo_test_string="`eval $cmd`" && 326 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 327 then 328 break 329 fi 330 done 331fi 332 333if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 334 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 335 test "X$echo_testing_string" = "X$echo_test_string"; then 336 : 337else 338 # The Solaris, AIX, and Digital Unix default echo programs unquote 339 # backslashes. This makes it impossible to quote backslashes using 340 # echo "$something" | sed 's/\\/\\\\/g' 341 # 342 # So, first we look for a working echo in the user's PATH. 343 344 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR 345 for dir in $PATH /usr/ucb; do 346 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 347 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 348 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 349 test "X$echo_testing_string" = "X$echo_test_string"; then 350 echo="$dir/echo" 351 break 352 fi 353 done 354 IFS="$save_ifs" 355 356 if test "X$echo" = Xecho; then 357 # We didn't find a better echo, so look for alternatives. 358 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 359 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 360 test "X$echo_testing_string" = "X$echo_test_string"; then 361 # This shell has a builtin print -r that does the trick. 362 echo='print -r' 363 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 364 test "X$CONFIG_SHELL" != X/bin/ksh; then 365 # If we have ksh, try running configure again with it. 366 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 367 export ORIGINAL_CONFIG_SHELL 368 CONFIG_SHELL=/bin/ksh 369 export CONFIG_SHELL 370 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 371 else 372 # Try using printf. 373 echo='printf %s\n' 374 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 375 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 376 test "X$echo_testing_string" = "X$echo_test_string"; then 377 # Cool, printf works 378 : 379 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 380 test "X$echo_testing_string" = 'X\t' && 381 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 382 test "X$echo_testing_string" = "X$echo_test_string"; then 383 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 384 export CONFIG_SHELL 385 SHELL="$CONFIG_SHELL" 386 export SHELL 387 echo="$CONFIG_SHELL $0 --fallback-echo" 388 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 389 test "X$echo_testing_string" = 'X\t' && 390 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 391 test "X$echo_testing_string" = "X$echo_test_string"; then 392 echo="$CONFIG_SHELL $0 --fallback-echo" 393 else 394 # maybe with a smaller string... 395 prev=: 396 397 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 398 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 399 then 400 break 401 fi 402 prev="$cmd" 403 done 404 405 if test "$prev" != 'sed 50q "$0"'; then 406 echo_test_string=`eval $prev` 407 export echo_test_string 408 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 409 else 410 # Oops. We lost completely, so just stick with echo. 411 echo=echo 412 fi 413 fi 414 fi 415 fi 416fi 417fi 418 419# Copy echo and quote the copy suitably for passing to libtool from 420# the Makefile, instead of quoting the original, which is used later. 421ECHO=$echo 422if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 423 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 424fi 425 426 427 428if test `expr $ID3LIB_MINOR_VERSION \% 2` = 1 ; then 429 debug_default=yes 430else 431 debug_default=minimum 432fi 433 434# Name of the host. 435# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 436# so uname gets run too. 437ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 438 439exec 6>&1 440 441# 442# Initializations. 443# 444ac_default_prefix=/usr/local 445cross_compiling=no 446subdirs= 447MFLAGS= 448MAKEFLAGS= 449SHELL=${CONFIG_SHELL-/bin/sh} 450 451# Maximum number of lines to put in a shell here document. 452# This variable seems obsolete. It should probably be removed, and 453# only ac_max_sed_lines should be used. 454: ${ac_max_here_lines=38} 455 456# Identity of this package. 457PACKAGE_NAME= 458PACKAGE_TARNAME= 459PACKAGE_VERSION= 460PACKAGE_STRING= 461PACKAGE_BUGREPORT= 462 463ac_unique_file="reconf" 464# Factoring default headers for most tests. 465ac_includes_default="\ 466#include <stdio.h> 467#if HAVE_SYS_TYPES_H 468# include <sys/types.h> 469#endif 470#if HAVE_SYS_STAT_H 471# include <sys/stat.h> 472#endif 473#if STDC_HEADERS 474# include <stdlib.h> 475# include <stddef.h> 476#else 477# if HAVE_STDLIB_H 478# include <stdlib.h> 479# endif 480#endif 481#if HAVE_STRING_H 482# if !STDC_HEADERS && HAVE_MEMORY_H 483# include <memory.h> 484# endif 485# include <string.h> 486#endif 487#if HAVE_STRINGS_H 488# include <strings.h> 489#endif 490#if HAVE_INTTYPES_H 491# include <inttypes.h> 492#else 493# if HAVE_STDINT_H 494# include <stdint.h> 495# endif 496#endif 497#if HAVE_UNISTD_H 498# include <unistd.h> 499#endif" 500 501ac_subdirs_all="$ac_subdirs_all zlib" 502 503# Initialize some variables set by options. 504ac_init_help= 505ac_init_version=false 506# The variables have the same names as the options, with 507# dashes changed to underlines. 508cache_file=/dev/null 509exec_prefix=NONE 510no_create= 511no_recursion= 512prefix=NONE 513program_prefix=NONE 514program_suffix=NONE 515program_transform_name=s,x,x, 516silent= 517site= 518srcdir= 519verbose= 520x_includes=NONE 521x_libraries=NONE 522 523# Installation directory options. 524# These are left unexpanded so users can "make install exec_prefix=/foo" 525# and all the variables that are supposed to be based on exec_prefix 526# by default will actually change. 527# Use braces instead of parens because sh, perl, etc. also accept them. 528bindir='${exec_prefix}/bin' 529sbindir='${exec_prefix}/sbin' 530libexecdir='${exec_prefix}/libexec' 531datadir='${prefix}/share' 532sysconfdir='${prefix}/etc' 533sharedstatedir='${prefix}/com' 534localstatedir='${prefix}/var' 535libdir='${exec_prefix}/lib' 536includedir='${prefix}/include' 537oldincludedir='/usr/include' 538infodir='${prefix}/info' 539mandir='${prefix}/man' 540 541ac_prev= 542for ac_option 543do 544 # If the previous option needs an argument, assign it. 545 if test -n "$ac_prev"; then 546 eval "$ac_prev=\$ac_option" 547 ac_prev= 548 continue 549 fi 550 551 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 552 553 # Accept the important Cygnus configure options, so we can diagnose typos. 554 555 case $ac_option in 556 557 -bindir | --bindir | --bindi | --bind | --bin | --bi) 558 ac_prev=bindir ;; 559 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 560 bindir=$ac_optarg ;; 561 562 -build | --build | --buil | --bui | --bu) 563 ac_prev=build_alias ;; 564 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 565 build_alias=$ac_optarg ;; 566 567 -cache-file | --cache-file | --cache-fil | --cache-fi \ 568 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 569 ac_prev=cache_file ;; 570 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 571 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 572 cache_file=$ac_optarg ;; 573 574 --config-cache | -C) 575 cache_file=config.cache ;; 576 577 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 578 ac_prev=datadir ;; 579 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 580 | --da=*) 581 datadir=$ac_optarg ;; 582 583 -disable-* | --disable-*) 584 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 585 # Reject names that are not valid shell variable names. 586 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 587 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 588 { (exit 1); exit 1; }; } 589 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 590 eval "enable_$ac_feature=no" ;; 591 592 -enable-* | --enable-*) 593 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 594 # Reject names that are not valid shell variable names. 595 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 596 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 597 { (exit 1); exit 1; }; } 598 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 599 case $ac_option in 600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 601 *) ac_optarg=yes ;; 602 esac 603 eval "enable_$ac_feature='$ac_optarg'" ;; 604 605 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 606 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 607 | --exec | --exe | --ex) 608 ac_prev=exec_prefix ;; 609 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 610 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 611 | --exec=* | --exe=* | --ex=*) 612 exec_prefix=$ac_optarg ;; 613 614 -gas | --gas | --ga | --g) 615 # Obsolete; use --with-gas. 616 with_gas=yes ;; 617 618 -help | --help | --hel | --he | -h) 619 ac_init_help=long ;; 620 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 621 ac_init_help=recursive ;; 622 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 623 ac_init_help=short ;; 624 625 -host | --host | --hos | --ho) 626 ac_prev=host_alias ;; 627 -host=* | --host=* | --hos=* | --ho=*) 628 host_alias=$ac_optarg ;; 629 630 -includedir | --includedir | --includedi | --included | --include \ 631 | --includ | --inclu | --incl | --inc) 632 ac_prev=includedir ;; 633 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 634 | --includ=* | --inclu=* | --incl=* | --inc=*) 635 includedir=$ac_optarg ;; 636 637 -infodir | --infodir | --infodi | --infod | --info | --inf) 638 ac_prev=infodir ;; 639 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 640 infodir=$ac_optarg ;; 641 642 -libdir | --libdir | --libdi | --libd) 643 ac_prev=libdir ;; 644 -libdir=* | --libdir=* | --libdi=* | --libd=*) 645 libdir=$ac_optarg ;; 646 647 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 648 | --libexe | --libex | --libe) 649 ac_prev=libexecdir ;; 650 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 651 | --libexe=* | --libex=* | --libe=*) 652 libexecdir=$ac_optarg ;; 653 654 -localstatedir | --localstatedir | --localstatedi | --localstated \ 655 | --localstate | --localstat | --localsta | --localst \ 656 | --locals | --local | --loca | --loc | --lo) 657 ac_prev=localstatedir ;; 658 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 659 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 660 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 661 localstatedir=$ac_optarg ;; 662 663 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 664 ac_prev=mandir ;; 665 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 666 mandir=$ac_optarg ;; 667 668 -nfp | --nfp | --nf) 669 # Obsolete; use --without-fp. 670 with_fp=no ;; 671 672 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 673 | --no-cr | --no-c | -n) 674 no_create=yes ;; 675 676 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 677 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 678 no_recursion=yes ;; 679 680 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 681 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 682 | --oldin | --oldi | --old | --ol | --o) 683 ac_prev=oldincludedir ;; 684 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 685 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 686 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 687 oldincludedir=$ac_optarg ;; 688 689 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 690 ac_prev=prefix ;; 691 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 692 prefix=$ac_optarg ;; 693 694 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 695 | --program-pre | --program-pr | --program-p) 696 ac_prev=program_prefix ;; 697 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 698 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 699 program_prefix=$ac_optarg ;; 700 701 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 702 | --program-suf | --program-su | --program-s) 703 ac_prev=program_suffix ;; 704 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 705 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 706 program_suffix=$ac_optarg ;; 707 708 -program-transform-name | --program-transform-name \ 709 | --program-transform-nam | --program-transform-na \ 710 | --program-transform-n | --program-transform- \ 711 | --program-transform | --program-transfor \ 712 | --program-transfo | --program-transf \ 713 | --program-trans | --program-tran \ 714 | --progr-tra | --program-tr | --program-t) 715 ac_prev=program_transform_name ;; 716 -program-transform-name=* | --program-transform-name=* \ 717 | --program-transform-nam=* | --program-transform-na=* \ 718 | --program-transform-n=* | --program-transform-=* \ 719 | --program-transform=* | --program-transfor=* \ 720 | --program-transfo=* | --program-transf=* \ 721 | --program-trans=* | --program-tran=* \ 722 | --progr-tra=* | --program-tr=* | --program-t=*) 723 program_transform_name=$ac_optarg ;; 724 725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 726 | -silent | --silent | --silen | --sile | --sil) 727 silent=yes ;; 728 729 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 730 ac_prev=sbindir ;; 731 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 732 | --sbi=* | --sb=*) 733 sbindir=$ac_optarg ;; 734 735 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 736 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 737 | --sharedst | --shareds | --shared | --share | --shar \ 738 | --sha | --sh) 739 ac_prev=sharedstatedir ;; 740 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 741 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 742 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 743 | --sha=* | --sh=*) 744 sharedstatedir=$ac_optarg ;; 745 746 -site | --site | --sit) 747 ac_prev=site ;; 748 -site=* | --site=* | --sit=*) 749 site=$ac_optarg ;; 750 751 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 752 ac_prev=srcdir ;; 753 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 754 srcdir=$ac_optarg ;; 755 756 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 757 | --syscon | --sysco | --sysc | --sys | --sy) 758 ac_prev=sysconfdir ;; 759 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 760 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 761 sysconfdir=$ac_optarg ;; 762 763 -target | --target | --targe | --targ | --tar | --ta | --t) 764 ac_prev=target_alias ;; 765 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 766 target_alias=$ac_optarg ;; 767 768 -v | -verbose | --verbose | --verbos | --verbo | --verb) 769 verbose=yes ;; 770 771 -version | --version | --versio | --versi | --vers | -V) 772 ac_init_version=: ;; 773 774 -with-* | --with-*) 775 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 776 # Reject names that are not valid shell variable names. 777 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 778 { echo "$as_me: error: invalid package name: $ac_package" >&2 779 { (exit 1); exit 1; }; } 780 ac_package=`echo $ac_package| sed 's/-/_/g'` 781 case $ac_option in 782 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 783 *) ac_optarg=yes ;; 784 esac 785 eval "with_$ac_package='$ac_optarg'" ;; 786 787 -without-* | --without-*) 788 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 789 # Reject names that are not valid shell variable names. 790 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 791 { echo "$as_me: error: invalid package name: $ac_package" >&2 792 { (exit 1); exit 1; }; } 793 ac_package=`echo $ac_package | sed 's/-/_/g'` 794 eval "with_$ac_package=no" ;; 795 796 --x) 797 # Obsolete; use --with-x. 798 with_x=yes ;; 799 800 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 801 | --x-incl | --x-inc | --x-in | --x-i) 802 ac_prev=x_includes ;; 803 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 804 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 805 x_includes=$ac_optarg ;; 806 807 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 808 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 809 ac_prev=x_libraries ;; 810 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 811 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 812 x_libraries=$ac_optarg ;; 813 814 -*) { echo "$as_me: error: unrecognized option: $ac_option 815Try \`$0 --help' for more information." >&2 816 { (exit 1); exit 1; }; } 817 ;; 818 819 *=*) 820 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 821 # Reject names that are not valid shell variable names. 822 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 823 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 824 { (exit 1); exit 1; }; } 825 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 826 eval "$ac_envvar='$ac_optarg'" 827 export $ac_envvar ;; 828 829 *) 830 # FIXME: should be removed in autoconf 3.0. 831 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 832 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 833 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 834 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 835 ;; 836 837 esac 838done 839 840if test -n "$ac_prev"; then 841 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 842 { echo "$as_me: error: missing argument to $ac_option" >&2 843 { (exit 1); exit 1; }; } 844fi 845 846# Be sure to have absolute paths. 847for ac_var in exec_prefix prefix 848do 849 eval ac_val=$`echo $ac_var` 850 case $ac_val in 851 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 852 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 853 { (exit 1); exit 1; }; };; 854 esac 855done 856 857# Be sure to have absolute paths. 858for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 859 localstatedir libdir includedir oldincludedir infodir mandir 860do 861 eval ac_val=$`echo $ac_var` 862 case $ac_val in 863 [\\/$]* | ?:[\\/]* ) ;; 864 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 865 { (exit 1); exit 1; }; };; 866 esac 867done 868 869# There might be people who depend on the old broken behavior: `$host' 870# used to hold the argument of --host etc. 871# FIXME: To remove some day. 872build=$build_alias 873host=$host_alias 874target=$target_alias 875 876# FIXME: To remove some day. 877if test "x$host_alias" != x; then 878 if test "x$build_alias" = x; then 879 cross_compiling=maybe 880 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 881 If a cross compiler is detected then cross compile mode will be used." >&2 882 elif test "x$build_alias" != "x$host_alias"; then 883 cross_compiling=yes 884 fi 885fi 886 887ac_tool_prefix= 888test -n "$host_alias" && ac_tool_prefix=$host_alias- 889 890test "$silent" = yes && exec 6>/dev/null 891 892 893# Find the source files, if location was not specified. 894if test -z "$srcdir"; then 895 ac_srcdir_defaulted=yes 896 # Try the directory containing this script, then its parent. 897 ac_confdir=`(dirname "$0") 2>/dev/null || 898$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 899 X"$0" : 'X\(//\)[^/]' \| \ 900 X"$0" : 'X\(//\)$' \| \ 901 X"$0" : 'X\(/\)' \| \ 902 . : '\(.\)' 2>/dev/null || 903echo X"$0" | 904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 905 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 906 /^X\(\/\/\)$/{ s//\1/; q; } 907 /^X\(\/\).*/{ s//\1/; q; } 908 s/.*/./; q'` 909 srcdir=$ac_confdir 910 if test ! -r $srcdir/$ac_unique_file; then 911 srcdir=.. 912 fi 913else 914 ac_srcdir_defaulted=no 915fi 916if test ! -r $srcdir/$ac_unique_file; then 917 if test "$ac_srcdir_defaulted" = yes; then 918 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 919 { (exit 1); exit 1; }; } 920 else 921 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 922 { (exit 1); exit 1; }; } 923 fi 924fi 925srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 926ac_env_build_alias_set=${build_alias+set} 927ac_env_build_alias_value=$build_alias 928ac_cv_env_build_alias_set=${build_alias+set} 929ac_cv_env_build_alias_value=$build_alias 930ac_env_host_alias_set=${host_alias+set} 931ac_env_host_alias_value=$host_alias 932ac_cv_env_host_alias_set=${host_alias+set} 933ac_cv_env_host_alias_value=$host_alias 934ac_env_target_alias_set=${target_alias+set} 935ac_env_target_alias_value=$target_alias 936ac_cv_env_target_alias_set=${target_alias+set} 937ac_cv_env_target_alias_value=$target_alias 938ac_env_CC_set=${CC+set} 939ac_env_CC_value=$CC 940ac_cv_env_CC_set=${CC+set} 941ac_cv_env_CC_value=$CC 942ac_env_CFLAGS_set=${CFLAGS+set} 943ac_env_CFLAGS_value=$CFLAGS 944ac_cv_env_CFLAGS_set=${CFLAGS+set} 945ac_cv_env_CFLAGS_value=$CFLAGS 946ac_env_LDFLAGS_set=${LDFLAGS+set} 947ac_env_LDFLAGS_value=$LDFLAGS 948ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 949ac_cv_env_LDFLAGS_value=$LDFLAGS 950ac_env_CPPFLAGS_set=${CPPFLAGS+set} 951ac_env_CPPFLAGS_value=$CPPFLAGS 952ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 953ac_cv_env_CPPFLAGS_value=$CPPFLAGS 954ac_env_CPP_set=${CPP+set} 955ac_env_CPP_value=$CPP 956ac_cv_env_CPP_set=${CPP+set} 957ac_cv_env_CPP_value=$CPP 958ac_env_CXX_set=${CXX+set} 959ac_env_CXX_value=$CXX 960ac_cv_env_CXX_set=${CXX+set} 961ac_cv_env_CXX_value=$CXX 962ac_env_CXXFLAGS_set=${CXXFLAGS+set} 963ac_env_CXXFLAGS_value=$CXXFLAGS 964ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 965ac_cv_env_CXXFLAGS_value=$CXXFLAGS 966ac_env_CXXCPP_set=${CXXCPP+set} 967ac_env_CXXCPP_value=$CXXCPP 968ac_cv_env_CXXCPP_set=${CXXCPP+set} 969ac_cv_env_CXXCPP_value=$CXXCPP 970 971# 972# Report the --help message. 973# 974if test "$ac_init_help" = "long"; then 975 # Omit some internal or obsolete options to make the list less imposing. 976 # This message is too long to be a string in the A/UX 3.1 sh. 977 cat <<_ACEOF 978\`configure' configures this package to adapt to many kinds of systems. 979 980Usage: $0 [OPTION]... [VAR=VALUE]... 981 982To assign environment variables (e.g., CC, CFLAGS...), specify them as 983VAR=VALUE. See below for descriptions of some of the useful variables. 984 985Defaults for the options are specified in brackets. 986 987Configuration: 988 -h, --help display this help and exit 989 --help=short display options specific to this package 990 --help=recursive display the short help of all the included packages 991 -V, --version display version information and exit 992 -q, --quiet, --silent do not print \`checking...' messages 993 --cache-file=FILE cache test results in FILE [disabled] 994 -C, --config-cache alias for \`--cache-file=config.cache' 995 -n, --no-create do not create output files 996 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 997 998_ACEOF 999 1000 cat <<_ACEOF 1001Installation directories: 1002 --prefix=PREFIX install architecture-independent files in PREFIX 1003 [$ac_default_prefix] 1004 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1005 [PREFIX] 1006 1007By default, \`make install' will install all the files in 1008\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1009an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1010for instance \`--prefix=\$HOME'. 1011 1012For better control, use the options below. 1013 1014Fine tuning of the installation directories: 1015 --bindir=DIR user executables [EPREFIX/bin] 1016 --sbindir=DIR system admin executables [EPREFIX/sbin] 1017 --libexecdir=DIR program executables [EPREFIX/libexec] 1018 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1019 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1020 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1021 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1022 --libdir=DIR object code libraries [EPREFIX/lib] 1023 --includedir=DIR C header files [PREFIX/include] 1024 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1025 --infodir=DIR info documentation [PREFIX/info] 1026 --mandir=DIR man documentation [PREFIX/man] 1027_ACEOF 1028 1029 cat <<\_ACEOF 1030 1031Program names: 1032 --program-prefix=PREFIX prepend PREFIX to installed program names 1033 --program-suffix=SUFFIX append SUFFIX to installed program names 1034 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1035 1036System types: 1037 --build=BUILD configure for building on BUILD [guessed] 1038 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1039_ACEOF 1040fi 1041 1042if test -n "$ac_init_help"; then 1043 1044 cat <<\_ACEOF 1045 1046Optional Features: 1047 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1048 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1049 --disable-dependency-tracking Speeds up one-time builds 1050 --enable-dependency-tracking Do not reject slow dependency extractors 1051 --enable-shared=PKGS build shared libraries default=yes 1052 --enable-static=PKGS build static libraries default=yes 1053 --enable-fast-install=PKGS optimize for fast installation default=yes 1054 --disable-libtool-lock avoid locking (might break parallel builds) 1055 --enable-maintainer-mode enable make rules and dependencies not useful 1056 (and sometimes confusing) to the casual installer 1057 --enable-ansi turn on strict ansi default=no 1058 --enable-cxx-warnings=no/minimum/yes Turn on compiler warnings. 1059 --enable-iso-cxx Try to warn if code is not ISO C++ 1060 --enable-debug=no/minimum/yes turn on debugging default=$debug_default 1061 1062Optional Packages: 1063 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1064 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1065 --with-gnu-ld assume the C compiler uses GNU ld default=no 1066 --with-pic try to use only PIC/non-PIC objects default=use both 1067 1068Some influential environment variables: 1069 CC C compiler command 1070 CFLAGS C compiler flags 1071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1072 nonstandard directory <lib dir> 1073 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1074 headers in a nonstandard directory <include dir> 1075 CPP C preprocessor 1076 CXX C++ compiler command 1077 CXXFLAGS C++ compiler flags 1078 CXXCPP C++ preprocessor 1079 1080Use these variables to override the choices made by `configure' or to help 1081it to find libraries and programs with nonstandard names/locations. 1082 1083_ACEOF 1084fi 1085 1086if test "$ac_init_help" = "recursive"; then 1087 # If there are subdirs, report their specific --help. 1088 ac_popdir=`pwd` 1089 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1090 test -d $ac_dir || continue 1091 ac_builddir=. 1092 1093if test "$ac_dir" != .; then 1094 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1095 # A "../" for each directory in $ac_dir_suffix. 1096 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1097else 1098 ac_dir_suffix= ac_top_builddir= 1099fi 1100 1101case $srcdir in 1102 .) # No --srcdir option. We are building in place. 1103 ac_srcdir=. 1104 if test -z "$ac_top_builddir"; then 1105 ac_top_srcdir=. 1106 else 1107 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1108 fi ;; 1109 [\\/]* | ?:[\\/]* ) # Absolute path. 1110 ac_srcdir=$srcdir$ac_dir_suffix; 1111 ac_top_srcdir=$srcdir ;; 1112 *) # Relative path. 1113 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1114 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1115esac 1116# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 1117# absolute. 1118ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 1119ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 1120ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 1121ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 1122 1123 cd $ac_dir 1124 # Check for guested configure; otherwise get Cygnus style configure. 1125 if test -f $ac_srcdir/configure.gnu; then 1126 echo 1127 $SHELL $ac_srcdir/configure.gnu --help=recursive 1128 elif test -f $ac_srcdir/configure; then 1129 echo 1130 $SHELL $ac_srcdir/configure --help=recursive 1131 elif test -f $ac_srcdir/configure.ac || 1132 test -f $ac_srcdir/configure.in; then 1133 echo 1134 $ac_configure --help 1135 else 1136 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1137 fi 1138 cd $ac_popdir 1139 done 1140fi 1141 1142test -n "$ac_init_help" && exit 0 1143if $ac_init_version; then 1144 cat <<\_ACEOF 1145 1146Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 1147Free Software Foundation, Inc. 1148This configure script is free software; the Free Software Foundation 1149gives unlimited permission to copy, distribute and modify it. 1150_ACEOF 1151 exit 0 1152fi 1153exec 5>config.log 1154cat >&5 <<_ACEOF 1155This file contains any messages produced by compilers while 1156running configure, to aid debugging if configure makes a mistake. 1157 1158It was created by $as_me, which was 1159generated by GNU Autoconf 2.53a. Invocation command line was 1160 1161 $ $0 $@ 1162 1163_ACEOF 1164{ 1165cat <<_ASUNAME 1166## --------- ## 1167## Platform. ## 1168## --------- ## 1169 1170hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1171uname -m = `(uname -m) 2>/dev/null || echo unknown` 1172uname -r = `(uname -r) 2>/dev/null || echo unknown` 1173uname -s = `(uname -s) 2>/dev/null || echo unknown` 1174uname -v = `(uname -v) 2>/dev/null || echo unknown` 1175 1176/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1177/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1178 1179/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1180/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1181/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1182hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1183/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1184/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1185/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1186 1187_ASUNAME 1188 1189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1190for as_dir in $PATH 1191do 1192 IFS=$as_save_IFS 1193 test -z "$as_dir" && as_dir=. 1194 echo "PATH: $as_dir" 1195done 1196 1197} >&5 1198 1199cat >&5 <<_ACEOF 1200 1201 1202## ----------- ## 1203## Core tests. ## 1204## ----------- ## 1205 1206_ACEOF 1207 1208 1209# Keep a trace of the command line. 1210# Strip out --no-create and --no-recursion so they do not pile up. 1211# Also quote any args containing shell meta-characters. 1212ac_configure_args= 1213ac_sep= 1214for ac_arg 1215do 1216 case $ac_arg in 1217 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1218 | --no-cr | --no-c | -n ) continue ;; 1219 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1220 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1221 continue ;; 1222 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1223 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1224 esac 1225 case " $ac_configure_args " in 1226 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1227 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1228 ac_sep=" " ;; 1229 esac 1230 # Get rid of the leading space. 1231done 1232 1233# When interrupted or exit'd, cleanup temporary files, and complete 1234# config.log. We remove comments because anyway the quotes in there 1235# would cause problems or look ugly. 1236# WARNING: Be sure not to use single quotes in there, as some shells, 1237# such as our DU 5.0 friend, will then `close' the trap. 1238trap 'exit_status=$? 1239 # Save into config.log some information that might help in debugging. 1240 { 1241 echo 1242 cat <<\_ASBOX 1243## ---------------- ## 1244## Cache variables. ## 1245## ---------------- ## 1246_ASBOX 1247 echo 1248 # The following way of writing the cache mishandles newlines in values, 1249{ 1250 (set) 2>&1 | 1251 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1252 *ac_space=\ *) 1253 sed -n \ 1254 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1256 ;; 1257 *) 1258 sed -n \ 1259 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1260 ;; 1261 esac; 1262} 1263 echo 1264 if test -s confdefs.h; then 1265 cat <<\_ASBOX 1266## ----------- ## 1267## confdefs.h. ## 1268## ----------- ## 1269_ASBOX 1270 echo 1271 sed "/^$/d" confdefs.h 1272 echo 1273 fi 1274 test "$ac_signal" != 0 && 1275 echo "$as_me: caught signal $ac_signal" 1276 echo "$as_me: exit $exit_status" 1277 } >&5 1278 rm -f core core.* *.core && 1279 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1280 exit $exit_status 1281 ' 0 1282for ac_signal in 1 2 13 15; do 1283 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1284done 1285ac_signal=0 1286 1287# confdefs.h avoids OS command line length limits that DEFS can exceed. 1288rm -rf conftest* confdefs.h 1289# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1290echo >confdefs.h 1291 1292# Predefined preprocessor variables. 1293 1294cat >>confdefs.h <<_ACEOF 1295#define PACKAGE_NAME "$PACKAGE_NAME" 1296_ACEOF 1297 1298 1299cat >>confdefs.h <<_ACEOF 1300#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1301_ACEOF 1302 1303 1304cat >>confdefs.h <<_ACEOF 1305#define PACKAGE_VERSION "$PACKAGE_VERSION" 1306_ACEOF 1307 1308 1309cat >>confdefs.h <<_ACEOF 1310#define PACKAGE_STRING "$PACKAGE_STRING" 1311_ACEOF 1312 1313 1314cat >>confdefs.h <<_ACEOF 1315#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1316_ACEOF 1317 1318 1319# Let the site file select an alternate cache file if it wants to. 1320# Prefer explicitly selected file to automatically selected ones. 1321if test -z "$CONFIG_SITE"; then 1322 if test "x$prefix" != xNONE; then 1323 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1324 else 1325 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1326 fi 1327fi 1328for ac_site_file in $CONFIG_SITE; do 1329 if test -r "$ac_site_file"; then 1330 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1331echo "$as_me: loading site script $ac_site_file" >&6;} 1332 sed 's/^/| /' "$ac_site_file" >&5 1333 . "$ac_site_file" 1334 fi 1335done 1336 1337if test -r "$cache_file"; then 1338 # Some versions of bash will fail to source /dev/null (special 1339 # files actually), so we avoid doing that. 1340 if test -f "$cache_file"; then 1341 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1342echo "$as_me: loading cache $cache_file" >&6;} 1343 case $cache_file in 1344 [\\/]* | ?:[\\/]* ) . $cache_file;; 1345 *) . ./$cache_file;; 1346 esac 1347 fi 1348else 1349 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1350echo "$as_me: creating cache $cache_file" >&6;} 1351 >$cache_file 1352fi 1353 1354# Check that the precious variables saved in the cache have kept the same 1355# value. 1356ac_cache_corrupted=false 1357for ac_var in `(set) 2>&1 | 1358 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1359 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1360 eval ac_new_set=\$ac_env_${ac_var}_set 1361 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1362 eval ac_new_val="\$ac_env_${ac_var}_value" 1363 case $ac_old_set,$ac_new_set in 1364 set,) 1365 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1366echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1367 ac_cache_corrupted=: ;; 1368 ,set) 1369 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1370echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1371 ac_cache_corrupted=: ;; 1372 ,);; 1373 *) 1374 if test "x$ac_old_val" != "x$ac_new_val"; then 1375 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1376echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1377 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1378echo "$as_me: former value: $ac_old_val" >&2;} 1379 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1380echo "$as_me: current value: $ac_new_val" >&2;} 1381 ac_cache_corrupted=: 1382 fi;; 1383 esac 1384 # Pass precious variables to config.status. 1385 if test "$ac_new_set" = set; then 1386 case $ac_new_val in 1387 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1388 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1389 *) ac_arg=$ac_var=$ac_new_val ;; 1390 esac 1391 case " $ac_configure_args " in 1392 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1393 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1394 esac 1395 fi 1396done 1397if $ac_cache_corrupted; then 1398 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1399echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1400 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1401echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1402 { (exit 1); exit 1; }; } 1403fi 1404 1405ac_ext=c 1406ac_cpp='$CPP $CPPFLAGS' 1407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1409ac_compiler_gnu=$ac_cv_c_compiler_gnu 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430ID3LIB_NAME=id3lib 1431 1432#AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442# for documentation purposes 1443DOX_DIR_HTML=api 1444DOX_DIR_LATEX=latex 1445DOX_DIR_MAN=man 1446DOX_DIR_RTF=rtf 1447 1448 1449 1450 1451 1452 1453# libtool versioning 1454LT_RELEASE=$ID3LIB_MAJOR_VERSION.$ID3LIB_MINOR_VERSION 1455LT_CURRENT=`expr $ID3LIB_PATCH_VERSION - $ID3LIB_INTERFACE_AGE` 1456LT_REVISION=$ID3LIB_INTERFACE_AGE 1457LT_AGE=`expr $ID3LIB_BINARY_AGE - $ID3LIB_INTERFACE_AGE` 1458 1459 1460 1461 1462 1463VERSION=$ID3LIB_VERSION 1464PACKAGE=$ID3LIB_NAME 1465 1466ID3LIB_FULLNAME=$ID3LIB_NAME-$ID3LIB_VERSION 1467 1468 1469 1470# Add the stamp file to the list of files AC keeps track of, 1471# along with our hook. 1472 ac_config_headers="$ac_config_headers config.h" 1473 1474 1475 1476 1477am__api_version="1.6" 1478ac_aux_dir= 1479for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1480 if test -f $ac_dir/install-sh; then 1481 ac_aux_dir=$ac_dir 1482 ac_install_sh="$ac_aux_dir/install-sh -c" 1483 break 1484 elif test -f $ac_dir/install.sh; then 1485 ac_aux_dir=$ac_dir 1486 ac_install_sh="$ac_aux_dir/install.sh -c" 1487 break 1488 elif test -f $ac_dir/shtool; then 1489 ac_aux_dir=$ac_dir 1490 ac_install_sh="$ac_aux_dir/shtool install -c" 1491 break 1492 fi 1493done 1494if test -z "$ac_aux_dir"; then 1495 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1496echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1497 { (exit 1); exit 1; }; } 1498fi 1499ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1500ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1501ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1502 1503# Find a good install program. We prefer a C program (faster), 1504# so one script is as good as another. But avoid the broken or 1505# incompatible versions: 1506# SysV /etc/install, /usr/sbin/install 1507# SunOS /usr/etc/install 1508# IRIX /sbin/install 1509# AIX /bin/install 1510# AmigaOS /C/install, which installs bootblocks on floppy discs 1511# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1512# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1513# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1514# ./install, which can be erroneously created by make from ./install.sh. 1515echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1516echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1517if test -z "$INSTALL"; then 1518if test "${ac_cv_path_install+set}" = set; then 1519 echo $ECHO_N "(cached) $ECHO_C" >&6 1520else 1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1522for as_dir in $PATH 1523do 1524 IFS=$as_save_IFS 1525 test -z "$as_dir" && as_dir=. 1526 # Account for people who put trailing slashes in PATH elements. 1527case $as_dir/ in 1528 ./ | .// | /cC/* | \ 1529 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1530 /usr/ucb/* ) ;; 1531 *) 1532 # OSF1 and SCO ODT 3.0 have their own names for install. 1533 # Don't use installbsd from OSF since it installs stuff as root 1534 # by default. 1535 for ac_prog in ginstall scoinst install; do 1536 for ac_exec_ext in '' $ac_executable_extensions; do 1537 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1538 if test $ac_prog = install && 1539 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1540 # AIX install. It has an incompatible calling convention. 1541 : 1542 elif test $ac_prog = install && 1543 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1544 # program-specific install script used by HP pwplus--don't use. 1545 : 1546 else 1547 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1548 break 3 1549 fi 1550 fi 1551 done 1552 done 1553 ;; 1554esac 1555done 1556 1557 1558fi 1559 if test "${ac_cv_path_install+set}" = set; then 1560 INSTALL=$ac_cv_path_install 1561 else 1562 # As a last resort, use the slow shell script. We don't cache a 1563 # path for INSTALL within a source directory, because that will 1564 # break other packages using the cache if that directory is 1565 # removed, or if the path is relative. 1566 INSTALL=$ac_install_sh 1567 fi 1568fi 1569echo "$as_me:$LINENO: result: $INSTALL" >&5 1570echo "${ECHO_T}$INSTALL" >&6 1571 1572# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1573# It thinks the first close brace ends the variable substitution. 1574test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1575 1576test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1577 1578test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1579 1580echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1581echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1582# Just in case 1583sleep 1 1584echo timestamp > conftest.file 1585# Do `set' in a subshell so we don't clobber the current shell's 1586# arguments. Must try -L first in case configure is actually a 1587# symlink; some systems play weird games with the mod time of symlinks 1588# (eg FreeBSD returns the mod time of the symlink's containing 1589# directory). 1590if ( 1591 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1592 if test "$*" = "X"; then 1593 # -L didn't work. 1594 set X `ls -t $srcdir/configure conftest.file` 1595 fi 1596 rm -f conftest.file 1597 if test "$*" != "X $srcdir/configure conftest.file" \ 1598 && test "$*" != "X conftest.file $srcdir/configure"; then 1599 1600 # If neither matched, then we have a broken ls. This can happen 1601 # if, for instance, CONFIG_SHELL is bash and it inherits a 1602 # broken ls alias from the environment. This has actually 1603 # happened. Such a system could not be considered "sane". 1604 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1605alias in your environment" >&5 1606echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1607alias in your environment" >&2;} 1608 { (exit 1); exit 1; }; } 1609 fi 1610 1611 test "$2" = conftest.file 1612 ) 1613then 1614 # Ok. 1615 : 1616else 1617 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1618Check your system clock" >&5 1619echo "$as_me: error: newly created file is older than distributed files! 1620Check your system clock" >&2;} 1621 { (exit 1); exit 1; }; } 1622fi 1623echo "$as_me:$LINENO: result: yes" >&5 1624echo "${ECHO_T}yes" >&6 1625test "$program_prefix" != NONE && 1626 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1627# Use a double $ so make ignores it. 1628test "$program_suffix" != NONE && 1629 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1630# Double any \ or $. echo might interpret backslashes. 1631# By default was `s,x,x', remove it if useless. 1632cat <<\_ACEOF >conftest.sed 1633s/[\\$]/&&/g;s/;s,x,x,$// 1634_ACEOF 1635program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1636rm conftest.sed 1637 1638 1639# expand $ac_aux_dir to an absolute path 1640am_aux_dir=`cd $ac_aux_dir && pwd` 1641 1642test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1643# Use eval to expand $SHELL 1644if eval "$MISSING --run true"; then 1645 am_missing_run="$MISSING --run " 1646else 1647 am_missing_run= 1648 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1649echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1650fi 1651 1652for ac_prog in gawk mawk nawk awk 1653do 1654 # Extract the first word of "$ac_prog", so it can be a program name with args. 1655set dummy $ac_prog; ac_word=$2 1656echo "$as_me:$LINENO: checking for $ac_word" >&5 1657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1658if test "${ac_cv_prog_AWK+set}" = set; then 1659 echo $ECHO_N "(cached) $ECHO_C" >&6 1660else 1661 if test -n "$AWK"; then 1662 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1663else 1664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1665for as_dir in $PATH 1666do 1667 IFS=$as_save_IFS 1668 test -z "$as_dir" && as_dir=. 1669 for ac_exec_ext in '' $ac_executable_extensions; do 1670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1671 ac_cv_prog_AWK="$ac_prog" 1672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1673 break 2 1674 fi 1675done 1676done 1677 1678fi 1679fi 1680AWK=$ac_cv_prog_AWK 1681if test -n "$AWK"; then 1682 echo "$as_me:$LINENO: result: $AWK" >&5 1683echo "${ECHO_T}$AWK" >&6 1684else 1685 echo "$as_me:$LINENO: result: no" >&5 1686echo "${ECHO_T}no" >&6 1687fi 1688 1689 test -n "$AWK" && break 1690done 1691 1692echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 1693echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 1694set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 1695if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1696 echo $ECHO_N "(cached) $ECHO_C" >&6 1697else 1698 cat >conftest.make <<\_ACEOF 1699all: 1700 @echo 'ac_maketemp="${MAKE}"' 1701_ACEOF 1702# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1703eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1704if test -n "$ac_maketemp"; then 1705 eval ac_cv_prog_make_${ac_make}_set=yes 1706else 1707 eval ac_cv_prog_make_${ac_make}_set=no 1708fi 1709rm -f conftest.make 1710fi 1711if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1712 echo "$as_me:$LINENO: result: yes" >&5 1713echo "${ECHO_T}yes" >&6 1714 SET_MAKE= 1715else 1716 echo "$as_me:$LINENO: result: no" >&5 1717echo "${ECHO_T}no" >&6 1718 SET_MAKE="MAKE=${MAKE-make}" 1719fi 1720 1721 # test to see if srcdir already configured 1722if test "`cd $srcdir && pwd`" != "`pwd`" && 1723 test -f $srcdir/config.status; then 1724 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1725echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1726 { (exit 1); exit 1; }; } 1727fi 1728 1729# Define the identity of the package. 1730 PACKAGE=$PACKAGE 1731 VERSION=$VERSION 1732 1733 1734cat >>confdefs.h <<_ACEOF 1735#define PACKAGE "$PACKAGE" 1736_ACEOF 1737 1738 1739cat >>confdefs.h <<_ACEOF 1740#define VERSION "$VERSION" 1741_ACEOF 1742 1743# Some tools Automake needs. 1744 1745ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1746 1747 1748AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1749 1750 1751AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1752 1753 1754AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1755 1756 1757MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1758 1759 1760AMTAR=${AMTAR-"${am_missing_run}tar"} 1761 1762install_sh=${install_sh-"$am_aux_dir/install-sh"} 1763 1764# Installed binaries are usually stripped using `strip' when the user 1765# run `make install-strip'. However `strip' might not be the right 1766# tool to use in cross-compilation environments, therefore Automake 1767# will honor the `STRIP' environment variable to overrule this program. 1768if test "$cross_compiling" != no; then 1769 if test -n "$ac_tool_prefix"; then 1770 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1771set dummy ${ac_tool_prefix}strip; ac_word=$2 1772echo "$as_me:$LINENO: checking for $ac_word" >&5 1773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1774if test "${ac_cv_prog_STRIP+set}" = set; then 1775 echo $ECHO_N "(cached) $ECHO_C" >&6 1776else 1777 if test -n "$STRIP"; then 1778 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1779else 1780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1781for as_dir in $PATH 1782do 1783 IFS=$as_save_IFS 1784 test -z "$as_dir" && as_dir=. 1785 for ac_exec_ext in '' $ac_executable_extensions; do 1786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1787 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1789 break 2 1790 fi 1791done 1792done 1793 1794fi 1795fi 1796STRIP=$ac_cv_prog_STRIP 1797if test -n "$STRIP"; then 1798 echo "$as_me:$LINENO: result: $STRIP" >&5 1799echo "${ECHO_T}$STRIP" >&6 1800else 1801 echo "$as_me:$LINENO: result: no" >&5 1802echo "${ECHO_T}no" >&6 1803fi 1804 1805fi 1806if test -z "$ac_cv_prog_STRIP"; then 1807 ac_ct_STRIP=$STRIP 1808 # Extract the first word of "strip", so it can be a program name with args. 1809set dummy strip; ac_word=$2 1810echo "$as_me:$LINENO: checking for $ac_word" >&5 1811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1812if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1813 echo $ECHO_N "(cached) $ECHO_C" >&6 1814else 1815 if test -n "$ac_ct_STRIP"; then 1816 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1817else 1818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1819for as_dir in $PATH 1820do 1821 IFS=$as_save_IFS 1822 test -z "$as_dir" && as_dir=. 1823 for ac_exec_ext in '' $ac_executable_extensions; do 1824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1825 ac_cv_prog_ac_ct_STRIP="strip" 1826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1827 break 2 1828 fi 1829done 1830done 1831 1832 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1833fi 1834fi 1835ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1836if test -n "$ac_ct_STRIP"; then 1837 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1838echo "${ECHO_T}$ac_ct_STRIP" >&6 1839else 1840 echo "$as_me:$LINENO: result: no" >&5 1841echo "${ECHO_T}no" >&6 1842fi 1843 1844 STRIP=$ac_ct_STRIP 1845else 1846 STRIP="$ac_cv_prog_STRIP" 1847fi 1848 1849fi 1850INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1851 1852# We need awk for the "check" target. The system "awk" is bad on 1853# some platforms. 1854 1855 1856 1857 1858rm -f .deps 2>/dev/null 1859mkdir .deps 2>/dev/null 1860if test -d .deps; then 1861 DEPDIR=.deps 1862else 1863 # MS-DOS does not allow filenames that begin with a dot. 1864 DEPDIR=_deps 1865fi 1866rmdir .deps 2>/dev/null 1867 1868 1869 ac_config_commands="$ac_config_commands depfiles" 1870 1871 1872am_make=${MAKE-make} 1873cat > confinc << 'END' 1874doit: 1875 @echo done 1876END 1877# If we don't find an include directive, just comment out the code. 1878echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 1879echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 1880am__include="#" 1881am__quote= 1882_am_result=none 1883# First try GNU make style include. 1884echo "include confinc" > confmf 1885# We grep out `Entering directory' and `Leaving directory' 1886# messages which can occur if `w' ends up in MAKEFLAGS. 1887# In particular we don't look at `^make:' because GNU make might 1888# be invoked under some other name (usually "gmake"), in which 1889# case it prints its new name instead of `make'. 1890if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 1891 am__include=include 1892 am__quote= 1893 _am_result=GNU 1894fi 1895# Now try BSD make style include. 1896if test "$am__include" = "#"; then 1897 echo '.include "confinc"' > confmf 1898 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 1899 am__include=.include 1900 am__quote="\"" 1901 _am_result=BSD 1902 fi 1903fi 1904 1905 1906echo "$as_me:$LINENO: result: $_am_result" >&5 1907echo "${ECHO_T}$_am_result" >&6 1908rm -f confinc confmf 1909 1910# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 1911if test "${enable_dependency_tracking+set}" = set; then 1912 enableval="$enable_dependency_tracking" 1913 1914fi; 1915if test "x$enable_dependency_tracking" != xno; then 1916 am_depcomp="$ac_aux_dir/depcomp" 1917 AMDEPBACKSLASH='\' 1918fi 1919 1920 1921if test "x$enable_dependency_tracking" != xno; then 1922 AMDEP_TRUE= 1923 AMDEP_FALSE='#' 1924else 1925 AMDEP_TRUE='#' 1926 AMDEP_FALSE= 1927fi 1928 1929 1930 1931ac_ext=c 1932ac_cpp='$CPP $CPPFLAGS' 1933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1935ac_compiler_gnu=$ac_cv_c_compiler_gnu 1936if test -n "$ac_tool_prefix"; then 1937 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1938set dummy ${ac_tool_prefix}gcc; ac_word=$2 1939echo "$as_me:$LINENO: checking for $ac_word" >&5 1940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1941if test "${ac_cv_prog_CC+set}" = set; then 1942 echo $ECHO_N "(cached) $ECHO_C" >&6 1943else 1944 if test -n "$CC"; then 1945 ac_cv_prog_CC="$CC" # Let the user override the test. 1946else 1947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1948for as_dir in $PATH 1949do 1950 IFS=$as_save_IFS 1951 test -z "$as_dir" && as_dir=. 1952 for ac_exec_ext in '' $ac_executable_extensions; do 1953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1954 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1956 break 2 1957 fi 1958done 1959done 1960 1961fi 1962fi 1963CC=$ac_cv_prog_CC 1964if test -n "$CC"; then 1965 echo "$as_me:$LINENO: result: $CC" >&5 1966echo "${ECHO_T}$CC" >&6 1967else 1968 echo "$as_me:$LINENO: result: no" >&5 1969echo "${ECHO_T}no" >&6 1970fi 1971 1972fi 1973if test -z "$ac_cv_prog_CC"; then 1974 ac_ct_CC=$CC 1975 # Extract the first word of "gcc", so it can be a program name with args. 1976set dummy gcc; ac_word=$2 1977echo "$as_me:$LINENO: checking for $ac_word" >&5 1978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1979if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1980 echo $ECHO_N "(cached) $ECHO_C" >&6 1981else 1982 if test -n "$ac_ct_CC"; then 1983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1984else 1985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1986for as_dir in $PATH 1987do 1988 IFS=$as_save_IFS 1989 test -z "$as_dir" && as_dir=. 1990 for ac_exec_ext in '' $ac_executable_extensions; do 1991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1992 ac_cv_prog_ac_ct_CC="gcc" 1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1994 break 2 1995 fi 1996done 1997done 1998 1999fi 2000fi 2001ac_ct_CC=$ac_cv_prog_ac_ct_CC 2002if test -n "$ac_ct_CC"; then 2003 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2004echo "${ECHO_T}$ac_ct_CC" >&6 2005else 2006 echo "$as_me:$LINENO: result: no" >&5 2007echo "${ECHO_T}no" >&6 2008fi 2009 2010 CC=$ac_ct_CC 2011else 2012 CC="$ac_cv_prog_CC" 2013fi 2014 2015if test -z "$CC"; then 2016 if test -n "$ac_tool_prefix"; then 2017 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2018set dummy ${ac_tool_prefix}cc; ac_word=$2 2019echo "$as_me:$LINENO: checking for $ac_word" >&5 2020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2021if test "${ac_cv_prog_CC+set}" = set; then 2022 echo $ECHO_N "(cached) $ECHO_C" >&6 2023else 2024 if test -n "$CC"; then 2025 ac_cv_prog_CC="$CC" # Let the user override the test. 2026else 2027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2028for as_dir in $PATH 2029do 2030 IFS=$as_save_IFS 2031 test -z "$as_dir" && as_dir=. 2032 for ac_exec_ext in '' $ac_executable_extensions; do 2033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2034 ac_cv_prog_CC="${ac_tool_prefix}cc" 2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2036 break 2 2037 fi 2038done 2039done 2040 2041fi 2042fi 2043CC=$ac_cv_prog_CC 2044if test -n "$CC"; then 2045 echo "$as_me:$LINENO: result: $CC" >&5 2046echo "${ECHO_T}$CC" >&6 2047else 2048 echo "$as_me:$LINENO: result: no" >&5 2049echo "${ECHO_T}no" >&6 2050fi 2051 2052fi 2053if test -z "$ac_cv_prog_CC"; then 2054 ac_ct_CC=$CC 2055 # Extract the first word of "cc", so it can be a program name with args. 2056set dummy cc; ac_word=$2 2057echo "$as_me:$LINENO: checking for $ac_word" >&5 2058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2059if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2060 echo $ECHO_N "(cached) $ECHO_C" >&6 2061else 2062 if test -n "$ac_ct_CC"; then 2063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2064else 2065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2066for as_dir in $PATH 2067do 2068 IFS=$as_save_IFS 2069 test -z "$as_dir" && as_dir=. 2070 for ac_exec_ext in '' $ac_executable_extensions; do 2071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2072 ac_cv_prog_ac_ct_CC="cc" 2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2074 break 2 2075 fi 2076done 2077done 2078 2079fi 2080fi 2081ac_ct_CC=$ac_cv_prog_ac_ct_CC 2082if test -n "$ac_ct_CC"; then 2083 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2084echo "${ECHO_T}$ac_ct_CC" >&6 2085else 2086 echo "$as_me:$LINENO: result: no" >&5 2087echo "${ECHO_T}no" >&6 2088fi 2089 2090 CC=$ac_ct_CC 2091else 2092 CC="$ac_cv_prog_CC" 2093fi 2094 2095fi 2096if test -z "$CC"; then 2097 # Extract the first word of "cc", so it can be a program name with args. 2098set dummy cc; ac_word=$2 2099echo "$as_me:$LINENO: checking for $ac_word" >&5 2100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2101if test "${ac_cv_prog_CC+set}" = set; then 2102 echo $ECHO_N "(cached) $ECHO_C" >&6 2103else 2104 if test -n "$CC"; then 2105 ac_cv_prog_CC="$CC" # Let the user override the test. 2106else 2107 ac_prog_rejected=no 2108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2109for as_dir in $PATH 2110do 2111 IFS=$as_save_IFS 2112 test -z "$as_dir" && as_dir=. 2113 for ac_exec_ext in '' $ac_executable_extensions; do 2114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2115 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2116 ac_prog_rejected=yes 2117 continue 2118 fi 2119 ac_cv_prog_CC="cc" 2120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2121 break 2 2122 fi 2123done 2124done 2125 2126if test $ac_prog_rejected = yes; then 2127 # We found a bogon in the path, so make sure we never use it. 2128 set dummy $ac_cv_prog_CC 2129 shift 2130 if test $# != 0; then 2131 # We chose a different compiler from the bogus one. 2132 # However, it has the same basename, so the bogon will be chosen 2133 # first if we set CC to just the basename; use the full file name. 2134 shift 2135 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2136 fi 2137fi 2138fi 2139fi 2140CC=$ac_cv_prog_CC 2141if test -n "$CC"; then 2142 echo "$as_me:$LINENO: result: $CC" >&5 2143echo "${ECHO_T}$CC" >&6 2144else 2145 echo "$as_me:$LINENO: result: no" >&5 2146echo "${ECHO_T}no" >&6 2147fi 2148 2149fi 2150if test -z "$CC"; then 2151 if test -n "$ac_tool_prefix"; then 2152 for ac_prog in cl 2153 do 2154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2155set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2156echo "$as_me:$LINENO: checking for $ac_word" >&5 2157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2158if test "${ac_cv_prog_CC+set}" = set; then 2159 echo $ECHO_N "(cached) $ECHO_C" >&6 2160else 2161 if test -n "$CC"; then 2162 ac_cv_prog_CC="$CC" # Let the user override the test. 2163else 2164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2165for as_dir in $PATH 2166do 2167 IFS=$as_save_IFS 2168 test -z "$as_dir" && as_dir=. 2169 for ac_exec_ext in '' $ac_executable_extensions; do 2170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2171 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2173 break 2 2174 fi 2175done 2176done 2177 2178fi 2179fi 2180CC=$ac_cv_prog_CC 2181if test -n "$CC"; then 2182 echo "$as_me:$LINENO: result: $CC" >&5 2183echo "${ECHO_T}$CC" >&6 2184else 2185 echo "$as_me:$LINENO: result: no" >&5 2186echo "${ECHO_T}no" >&6 2187fi 2188 2189 test -n "$CC" && break 2190 done 2191fi 2192if test -z "$CC"; then 2193 ac_ct_CC=$CC 2194 for ac_prog in cl 2195do 2196 # Extract the first word of "$ac_prog", so it can be a program name with args. 2197set dummy $ac_prog; ac_word=$2 2198echo "$as_me:$LINENO: checking for $ac_word" >&5 2199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2200if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2201 echo $ECHO_N "(cached) $ECHO_C" >&6 2202else 2203 if test -n "$ac_ct_CC"; then 2204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2205else 2206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2207for as_dir in $PATH 2208do 2209 IFS=$as_save_IFS 2210 test -z "$as_dir" && as_dir=. 2211 for ac_exec_ext in '' $ac_executable_extensions; do 2212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2213 ac_cv_prog_ac_ct_CC="$ac_prog" 2214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2215 break 2 2216 fi 2217done 2218done 2219 2220fi 2221fi 2222ac_ct_CC=$ac_cv_prog_ac_ct_CC 2223if test -n "$ac_ct_CC"; then 2224 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2225echo "${ECHO_T}$ac_ct_CC" >&6 2226else 2227 echo "$as_me:$LINENO: result: no" >&5 2228echo "${ECHO_T}no" >&6 2229fi 2230 2231 test -n "$ac_ct_CC" && break 2232done 2233 2234 CC=$ac_ct_CC 2235fi 2236 2237fi 2238 2239 2240test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 2241echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} 2242 { (exit 1); exit 1; }; } 2243 2244# Provide some information about the compiler. 2245echo "$as_me:$LINENO:" \ 2246 "checking for C compiler version" >&5 2247ac_compiler=`set X $ac_compile; echo $2` 2248{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2249 (eval $ac_compiler --version </dev/null >&5) 2>&5 2250 ac_status=$? 2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2252 (exit $ac_status); } 2253{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2254 (eval $ac_compiler -v </dev/null >&5) 2>&5 2255 ac_status=$? 2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2257 (exit $ac_status); } 2258{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2259 (eval $ac_compiler -V </dev/null >&5) 2>&5 2260 ac_status=$? 2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2262 (exit $ac_status); } 2263 2264cat >conftest.$ac_ext <<_ACEOF 2265#line $LINENO "configure" 2266#include "confdefs.h" 2267 2268#ifdef F77_DUMMY_MAIN 2269# ifdef __cplusplus 2270 extern "C" 2271# endif 2272 int F77_DUMMY_MAIN() { return 1; } 2273#endif 2274int 2275main () 2276{ 2277 2278 ; 2279 return 0; 2280} 2281_ACEOF 2282ac_clean_files_save=$ac_clean_files 2283ac_clean_files="$ac_clean_files a.out a.exe" 2284# Try to create an executable without -o first, disregard a.out. 2285# It will help us diagnose broken compilers, and finding out an intuition 2286# of exeext. 2287echo "$as_me:$LINENO: checking for C compiler default output" >&5 2288echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 2289ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2290if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2291 (eval $ac_link_default) 2>&5 2292 ac_status=$? 2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2294 (exit $ac_status); }; then 2295 # Find the output, starting from the most likely. This scheme is 2296# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2297# resort. 2298 2299# Be careful to initialize this variable, since it used to be cached. 2300# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2301ac_cv_exeext= 2302for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; 2303 ls a.out conftest 2>/dev/null; 2304 ls a.* conftest.* 2>/dev/null`; do 2305 case $ac_file in 2306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2307 a.out ) # We found the default executable, but exeext='' is most 2308 # certainly right. 2309 break;; 2310 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2311 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 2312 export ac_cv_exeext 2313 break;; 2314 * ) break;; 2315 esac 2316done 2317else 2318 echo "$as_me: failed program was:" >&5 2319cat conftest.$ac_ext >&5 2320{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 2321echo "$as_me: error: C compiler cannot create executables" >&2;} 2322 { (exit 77); exit 77; }; } 2323fi 2324 2325ac_exeext=$ac_cv_exeext 2326echo "$as_me:$LINENO: result: $ac_file" >&5 2327echo "${ECHO_T}$ac_file" >&6 2328 2329# Check the compiler produces executables we can run. If not, either 2330# the compiler is broken, or we cross compile. 2331echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2332echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2333# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2334# If not cross compiling, check that we can run a simple program. 2335if test "$cross_compiling" != yes; then 2336 if { ac_try='./$ac_file' 2337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2338 (eval $ac_try) 2>&5 2339 ac_status=$? 2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2341 (exit $ac_status); }; }; then 2342 cross_compiling=no 2343 else 2344 if test "$cross_compiling" = maybe; then 2345 cross_compiling=yes 2346 else 2347 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2348If you meant to cross compile, use \`--host'." >&5 2349echo "$as_me: error: cannot run C compiled programs. 2350If you meant to cross compile, use \`--host'." >&2;} 2351 { (exit 1); exit 1; }; } 2352 fi 2353 fi 2354fi 2355echo "$as_me:$LINENO: result: yes" >&5 2356echo "${ECHO_T}yes" >&6 2357 2358rm -f a.out a.exe conftest$ac_cv_exeext 2359ac_clean_files=$ac_clean_files_save 2360# Check the compiler produces executables we can run. If not, either 2361# the compiler is broken, or we cross compile. 2362echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2363echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2364echo "$as_me:$LINENO: result: $cross_compiling" >&5 2365echo "${ECHO_T}$cross_compiling" >&6 2366 2367echo "$as_me:$LINENO: checking for suffix of executables" >&5 2368echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2370 (eval $ac_link) 2>&5 2371 ac_status=$? 2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2373 (exit $ac_status); }; then 2374 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2375# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2376# work properly (i.e., refer to `conftest.exe'), while it won't with 2377# `rm'. 2378for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 2379 case $ac_file in 2380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2381 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2382 export ac_cv_exeext 2383 break;; 2384 * ) break;; 2385 esac 2386done 2387else 2388 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 2389echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} 2390 { (exit 1); exit 1; }; } 2391fi 2392 2393rm -f conftest$ac_cv_exeext 2394echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2395echo "${ECHO_T}$ac_cv_exeext" >&6 2396 2397rm -f conftest.$ac_ext 2398EXEEXT=$ac_cv_exeext 2399ac_exeext=$EXEEXT 2400echo "$as_me:$LINENO: checking for suffix of object files" >&5 2401echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2402if test "${ac_cv_objext+set}" = set; then 2403 echo $ECHO_N "(cached) $ECHO_C" >&6 2404else 2405 cat >conftest.$ac_ext <<_ACEOF 2406#line $LINENO "configure" 2407#include "confdefs.h" 2408 2409#ifdef F77_DUMMY_MAIN 2410# ifdef __cplusplus 2411 extern "C" 2412# endif 2413 int F77_DUMMY_MAIN() { return 1; } 2414#endif 2415int 2416main () 2417{ 2418 2419 ; 2420 return 0; 2421} 2422_ACEOF 2423rm -f conftest.o conftest.obj 2424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2425 (eval $ac_compile) 2>&5 2426 ac_status=$? 2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2428 (exit $ac_status); }; then 2429 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2430 case $ac_file in 2431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2432 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2433 break;; 2434 esac 2435done 2436else 2437 echo "$as_me: failed program was:" >&5 2438cat conftest.$ac_ext >&5 2439{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 2440echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} 2441 { (exit 1); exit 1; }; } 2442fi 2443 2444rm -f conftest.$ac_cv_objext conftest.$ac_ext 2445fi 2446echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2447echo "${ECHO_T}$ac_cv_objext" >&6 2448OBJEXT=$ac_cv_objext 2449ac_objext=$OBJEXT 2450echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2451echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2452if test "${ac_cv_c_compiler_gnu+set}" = set; then 2453 echo $ECHO_N "(cached) $ECHO_C" >&6 2454else 2455 cat >conftest.$ac_ext <<_ACEOF 2456#line $LINENO "configure" 2457#include "confdefs.h" 2458 2459#ifdef F77_DUMMY_MAIN 2460# ifdef __cplusplus 2461 extern "C" 2462# endif 2463 int F77_DUMMY_MAIN() { return 1; } 2464#endif 2465int 2466main () 2467{ 2468#ifndef __GNUC__ 2469 choke me 2470#endif 2471 2472 ; 2473 return 0; 2474} 2475_ACEOF 2476rm -f conftest.$ac_objext 2477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2478 (eval $ac_compile) 2>&5 2479 ac_status=$? 2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2481 (exit $ac_status); } && 2482 { ac_try='test -s conftest.$ac_objext' 2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2484 (eval $ac_try) 2>&5 2485 ac_status=$? 2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2487 (exit $ac_status); }; }; then 2488 ac_compiler_gnu=yes 2489else 2490 echo "$as_me: failed program was:" >&5 2491cat conftest.$ac_ext >&5 2492ac_compiler_gnu=no 2493fi 2494rm -f conftest.$ac_objext conftest.$ac_ext 2495ac_cv_c_compiler_gnu=$ac_compiler_gnu 2496 2497fi 2498echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2499echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2500GCC=`test $ac_compiler_gnu = yes && echo yes` 2501ac_test_CFLAGS=${CFLAGS+set} 2502ac_save_CFLAGS=$CFLAGS 2503CFLAGS="-g" 2504echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2505echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2506if test "${ac_cv_prog_cc_g+set}" = set; then 2507 echo $ECHO_N "(cached) $ECHO_C" >&6 2508else 2509 cat >conftest.$ac_ext <<_ACEOF 2510#line $LINENO "configure" 2511#include "confdefs.h" 2512 2513#ifdef F77_DUMMY_MAIN 2514# ifdef __cplusplus 2515 extern "C" 2516# endif 2517 int F77_DUMMY_MAIN() { return 1; } 2518#endif 2519int 2520main () 2521{ 2522 2523 ; 2524 return 0; 2525} 2526_ACEOF 2527rm -f conftest.$ac_objext 2528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2529 (eval $ac_compile) 2>&5 2530 ac_status=$? 2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2532 (exit $ac_status); } && 2533 { ac_try='test -s conftest.$ac_objext' 2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2535 (eval $ac_try) 2>&5 2536 ac_status=$? 2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2538 (exit $ac_status); }; }; then 2539 ac_cv_prog_cc_g=yes 2540else 2541 echo "$as_me: failed program was:" >&5 2542cat conftest.$ac_ext >&5 2543ac_cv_prog_cc_g=no 2544fi 2545rm -f conftest.$ac_objext conftest.$ac_ext 2546fi 2547echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2548echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2549if test "$ac_test_CFLAGS" = set; then 2550 CFLAGS=$ac_save_CFLAGS 2551elif test $ac_cv_prog_cc_g = yes; then 2552 if test "$GCC" = yes; then 2553 CFLAGS="-g -O2" 2554 else 2555 CFLAGS="-g" 2556 fi 2557else 2558 if test "$GCC" = yes; then 2559 CFLAGS="-O2" 2560 else 2561 CFLAGS= 2562 fi 2563fi 2564echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2565echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2566if test "${ac_cv_prog_cc_stdc+set}" = set; then 2567 echo $ECHO_N "(cached) $ECHO_C" >&6 2568else 2569 ac_cv_prog_cc_stdc=no 2570ac_save_CC=$CC 2571cat >conftest.$ac_ext <<_ACEOF 2572#line $LINENO "configure" 2573#include "confdefs.h" 2574#include <stdarg.h> 2575#include <stdio.h> 2576#include <sys/types.h> 2577#include <sys/stat.h> 2578/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2579struct buf { int x; }; 2580FILE * (*rcsopen) (struct buf *, struct stat *, int); 2581static char *e (p, i) 2582 char **p; 2583 int i; 2584{ 2585 return p[i]; 2586} 2587static char *f (char * (*g) (char **, int), char **p, ...) 2588{ 2589 char *s; 2590 va_list v; 2591 va_start (v,p); 2592 s = g (p, va_arg (v,int)); 2593 va_end (v); 2594 return s; 2595} 2596int test (int i, double x); 2597struct s1 {int (*f) (int a);}; 2598struct s2 {int (*f) (double a);}; 2599int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2600int argc; 2601char **argv; 2602#ifdef F77_DUMMY_MAIN 2603# ifdef __cplusplus 2604 extern "C" 2605# endif 2606 int F77_DUMMY_MAIN() { return 1; } 2607#endif 2608int 2609main () 2610{ 2611return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2612 ; 2613 return 0; 2614} 2615_ACEOF 2616# Don't try gcc -ansi; that turns off useful extensions and 2617# breaks some systems' header files. 2618# AIX -qlanglvl=ansi 2619# Ultrix and OSF/1 -std1 2620# HP-UX 10.20 and later -Ae 2621# HP-UX older versions -Aa -D_HPUX_SOURCE 2622# SVR4 -Xc -D__EXTENSIONS__ 2623for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2624do 2625 CC="$ac_save_CC $ac_arg" 2626 rm -f conftest.$ac_objext 2627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2628 (eval $ac_compile) 2>&5 2629 ac_status=$? 2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2631 (exit $ac_status); } && 2632 { ac_try='test -s conftest.$ac_objext' 2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2634 (eval $ac_try) 2>&5 2635 ac_status=$? 2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2637 (exit $ac_status); }; }; then 2638 ac_cv_prog_cc_stdc=$ac_arg 2639break 2640else 2641 echo "$as_me: failed program was:" >&5 2642cat conftest.$ac_ext >&5 2643fi 2644rm -f conftest.$ac_objext 2645done 2646rm -f conftest.$ac_ext conftest.$ac_objext 2647CC=$ac_save_CC 2648 2649fi 2650 2651case "x$ac_cv_prog_cc_stdc" in 2652 x|xno) 2653 echo "$as_me:$LINENO: result: none needed" >&5 2654echo "${ECHO_T}none needed" >&6 ;; 2655 *) 2656 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2657echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2658 CC="$CC $ac_cv_prog_cc_stdc" ;; 2659esac 2660 2661# Some people use a C++ compiler to compile C. Since we use `exit', 2662# in C++ we need to declare it. In case someone uses the same compiler 2663# for both compiling C and C++ we need to have the C++ compiler decide 2664# the declaration of exit, since it's the most demanding environment. 2665cat >conftest.$ac_ext <<_ACEOF 2666#ifndef __cplusplus 2667 choke me 2668#endif 2669_ACEOF 2670rm -f conftest.$ac_objext 2671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2672 (eval $ac_compile) 2>&5 2673 ac_status=$? 2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2675 (exit $ac_status); } && 2676 { ac_try='test -s conftest.$ac_objext' 2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2678 (eval $ac_try) 2>&5 2679 ac_status=$? 2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2681 (exit $ac_status); }; }; then 2682 for ac_declaration in \ 2683 ''\ 2684 '#include <stdlib.h>' \ 2685 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2686 'extern "C" void std::exit (int); using std::exit;' \ 2687 'extern "C" void exit (int) throw ();' \ 2688 'extern "C" void exit (int);' \ 2689 'void exit (int);' 2690do 2691 cat >conftest.$ac_ext <<_ACEOF 2692#line $LINENO "configure" 2693#include "confdefs.h" 2694#include <stdlib.h> 2695$ac_declaration 2696#ifdef F77_DUMMY_MAIN 2697# ifdef __cplusplus 2698 extern "C" 2699# endif 2700 int F77_DUMMY_MAIN() { return 1; } 2701#endif 2702int 2703main () 2704{ 2705exit (42); 2706 ; 2707 return 0; 2708} 2709_ACEOF 2710rm -f conftest.$ac_objext 2711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2712 (eval $ac_compile) 2>&5 2713 ac_status=$? 2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2715 (exit $ac_status); } && 2716 { ac_try='test -s conftest.$ac_objext' 2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2718 (eval $ac_try) 2>&5 2719 ac_status=$? 2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2721 (exit $ac_status); }; }; then 2722 : 2723else 2724 echo "$as_me: failed program was:" >&5 2725cat conftest.$ac_ext >&5 2726continue 2727fi 2728rm -f conftest.$ac_objext conftest.$ac_ext 2729 cat >conftest.$ac_ext <<_ACEOF 2730#line $LINENO "configure" 2731#include "confdefs.h" 2732$ac_declaration 2733#ifdef F77_DUMMY_MAIN 2734# ifdef __cplusplus 2735 extern "C" 2736# endif 2737 int F77_DUMMY_MAIN() { return 1; } 2738#endif 2739int 2740main () 2741{ 2742exit (42); 2743 ; 2744 return 0; 2745} 2746_ACEOF 2747rm -f conftest.$ac_objext 2748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2749 (eval $ac_compile) 2>&5 2750 ac_status=$? 2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2752 (exit $ac_status); } && 2753 { ac_try='test -s conftest.$ac_objext' 2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2755 (eval $ac_try) 2>&5 2756 ac_status=$? 2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2758 (exit $ac_status); }; }; then 2759 break 2760else 2761 echo "$as_me: failed program was:" >&5 2762cat conftest.$ac_ext >&5 2763fi 2764rm -f conftest.$ac_objext conftest.$ac_ext 2765done 2766rm -f conftest* 2767if test -n "$ac_declaration"; then 2768 echo '#ifdef __cplusplus' >>confdefs.h 2769 echo $ac_declaration >>confdefs.h 2770 echo '#endif' >>confdefs.h 2771fi 2772 2773else 2774 echo "$as_me: failed program was:" >&5 2775cat conftest.$ac_ext >&5 2776fi 2777rm -f conftest.$ac_objext conftest.$ac_ext 2778ac_ext=c 2779ac_cpp='$CPP $CPPFLAGS' 2780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2782ac_compiler_gnu=$ac_cv_c_compiler_gnu 2783 2784depcc="$CC" am_compiler_list= 2785 2786echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2787echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2788if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2789 echo $ECHO_N "(cached) $ECHO_C" >&6 2790else 2791 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2792 # We make a subdir and do the tests there. Otherwise we can end up 2793 # making bogus files that we don't know about and never remove. For 2794 # instance it was reported that on HP-UX the gcc test will end up 2795 # making a dummy file named `D' -- because `-MD' means `put the output 2796 # in D'. 2797 mkdir conftest.dir 2798 # Copy depcomp to subdir because otherwise we won't find it if we're 2799 # using a relative directory. 2800 cp "$am_depcomp" conftest.dir 2801 cd conftest.dir 2802 2803 am_cv_CC_dependencies_compiler_type=none 2804 if test "$am_compiler_list" = ""; then 2805 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2806 fi 2807 for depmode in $am_compiler_list; do 2808 # We need to recreate these files for each test, as the compiler may 2809 # overwrite some of them when testing with obscure command lines. 2810 # This happens at least with the AIX C compiler. 2811 echo '#include "conftest.h"' > conftest.c 2812 echo 'int i;' > conftest.h 2813 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 2814 2815 case $depmode in 2816 nosideeffect) 2817 # after this tag, mechanisms are not by side-effect, so they'll 2818 # only be used when explicitly requested 2819 if test "x$enable_dependency_tracking" = xyes; then 2820 continue 2821 else 2822 break 2823 fi 2824 ;; 2825 none) break ;; 2826 esac 2827 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2828 # mode. It turns out that the SunPro C++ compiler does not properly 2829 # handle `-M -o', and we need to detect this. 2830 if depmode=$depmode \ 2831 source=conftest.c object=conftest.o \ 2832 depfile=conftest.Po tmpdepfile=conftest.TPo \ 2833 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 2834 grep conftest.h conftest.Po > /dev/null 2>&1 && 2835 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2836 am_cv_CC_dependencies_compiler_type=$depmode 2837 break 2838 fi 2839 done 2840 2841 cd .. 2842 rm -rf conftest.dir 2843else 2844 am_cv_CC_dependencies_compiler_type=none 2845fi 2846 2847fi 2848echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 2849echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2850CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 2851 2852 2853 2854echo "$as_me:$LINENO: checking for library containing strerror" >&5 2855echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 2856if test "${ac_cv_search_strerror+set}" = set; then 2857 echo $ECHO_N "(cached) $ECHO_C" >&6 2858else 2859 ac_func_search_save_LIBS=$LIBS 2860ac_cv_search_strerror=no 2861cat >conftest.$ac_ext <<_ACEOF 2862#line $LINENO "configure" 2863#include "confdefs.h" 2864 2865/* Override any gcc2 internal prototype to avoid an error. */ 2866#ifdef __cplusplus 2867extern "C" 2868#endif 2869/* We use char because int might match the return type of a gcc2 2870 builtin and then its argument prototype would still apply. */ 2871char strerror (); 2872#ifdef F77_DUMMY_MAIN 2873# ifdef __cplusplus 2874 extern "C" 2875# endif 2876 int F77_DUMMY_MAIN() { return 1; } 2877#endif 2878int 2879main () 2880{ 2881strerror (); 2882 ; 2883 return 0; 2884} 2885_ACEOF 2886rm -f conftest.$ac_objext conftest$ac_exeext 2887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2888 (eval $ac_link) 2>&5 2889 ac_status=$? 2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2891 (exit $ac_status); } && 2892 { ac_try='test -s conftest$ac_exeext' 2893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2894 (eval $ac_try) 2>&5 2895 ac_status=$? 2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2897 (exit $ac_status); }; }; then 2898 ac_cv_search_strerror="none required" 2899else 2900 echo "$as_me: failed program was:" >&5 2901cat conftest.$ac_ext >&5 2902fi 2903rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2904if test "$ac_cv_search_strerror" = no; then 2905 for ac_lib in cposix; do 2906 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 2907 cat >conftest.$ac_ext <<_ACEOF 2908#line $LINENO "configure" 2909#include "confdefs.h" 2910 2911/* Override any gcc2 internal prototype to avoid an error. */ 2912#ifdef __cplusplus 2913extern "C" 2914#endif 2915/* We use char because int might match the return type of a gcc2 2916 builtin and then its argument prototype would still apply. */ 2917char strerror (); 2918#ifdef F77_DUMMY_MAIN 2919# ifdef __cplusplus 2920 extern "C" 2921# endif 2922 int F77_DUMMY_MAIN() { return 1; } 2923#endif 2924int 2925main () 2926{ 2927strerror (); 2928 ; 2929 return 0; 2930} 2931_ACEOF 2932rm -f conftest.$ac_objext conftest$ac_exeext 2933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2934 (eval $ac_link) 2>&5 2935 ac_status=$? 2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2937 (exit $ac_status); } && 2938 { ac_try='test -s conftest$ac_exeext' 2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2940 (eval $ac_try) 2>&5 2941 ac_status=$? 2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2943 (exit $ac_status); }; }; then 2944 ac_cv_search_strerror="-l$ac_lib" 2945break 2946else 2947 echo "$as_me: failed program was:" >&5 2948cat conftest.$ac_ext >&5 2949fi 2950rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2951 done 2952fi 2953LIBS=$ac_func_search_save_LIBS 2954fi 2955echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 2956echo "${ECHO_T}$ac_cv_search_strerror" >&6 2957if test "$ac_cv_search_strerror" != no; then 2958 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 2959 2960fi 2961 2962 2963# Check whether --enable-shared or --disable-shared was given. 2964if test "${enable_shared+set}" = set; then 2965 enableval="$enable_shared" 2966 p=${PACKAGE-default} 2967case $enableval in 2968yes) enable_shared=yes ;; 2969no) enable_shared=no ;; 2970*) 2971 enable_shared=no 2972 # Look at the argument we got. We use all the common list separators. 2973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2974 for pkg in $enableval; do 2975 if test "X$pkg" = "X$p"; then 2976 enable_shared=yes 2977 fi 2978 done 2979 IFS="$ac_save_ifs" 2980 ;; 2981esac 2982else 2983 enable_shared=yes 2984fi; 2985# Check whether --enable-static or --disable-static was given. 2986if test "${enable_static+set}" = set; then 2987 enableval="$enable_static" 2988 p=${PACKAGE-default} 2989case $enableval in 2990yes) enable_static=yes ;; 2991no) enable_static=no ;; 2992*) 2993 enable_static=no 2994 # Look at the argument we got. We use all the common list separators. 2995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2996 for pkg in $enableval; do 2997 if test "X$pkg" = "X$p"; then 2998 enable_static=yes 2999 fi 3000 done 3001 IFS="$ac_save_ifs" 3002 ;; 3003esac 3004else 3005 enable_static=yes 3006fi; 3007# Check whether --enable-fast-install or --disable-fast-install was given. 3008if test "${enable_fast_install+set}" = set; then 3009 enableval="$enable_fast_install" 3010 p=${PACKAGE-default} 3011case $enableval in 3012yes) enable_fast_install=yes ;; 3013no) enable_fast_install=no ;; 3014*) 3015 enable_fast_install=no 3016 # Look at the argument we got. We use all the common list separators. 3017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3018 for pkg in $enableval; do 3019 if test "X$pkg" = "X$p"; then 3020 enable_fast_install=yes 3021 fi 3022 done 3023 IFS="$ac_save_ifs" 3024 ;; 3025esac 3026else 3027 enable_fast_install=yes 3028fi; 3029# Make sure we can run config.sub. 3030$ac_config_sub sun4 >/dev/null 2>&1 || 3031 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3032echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3033 { (exit 1); exit 1; }; } 3034 3035echo "$as_me:$LINENO: checking build system type" >&5 3036echo $ECHO_N "checking build system type... $ECHO_C" >&6 3037if test "${ac_cv_build+set}" = set; then 3038 echo $ECHO_N "(cached) $ECHO_C" >&6 3039else 3040 ac_cv_build_alias=$build_alias 3041test -z "$ac_cv_build_alias" && 3042 ac_cv_build_alias=`$ac_config_guess` 3043test -z "$ac_cv_build_alias" && 3044 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3045echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3046 { (exit 1); exit 1; }; } 3047ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3048 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3049echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3050 { (exit 1); exit 1; }; } 3051 3052fi 3053echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3054echo "${ECHO_T}$ac_cv_build" >&6 3055build=$ac_cv_build 3056build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3057build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3058build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3059 3060 3061echo "$as_me:$LINENO: checking host system type" >&5 3062echo $ECHO_N "checking host system type... $ECHO_C" >&6 3063if test "${ac_cv_host+set}" = set; then 3064 echo $ECHO_N "(cached) $ECHO_C" >&6 3065else 3066 ac_cv_host_alias=$host_alias 3067test -z "$ac_cv_host_alias" && 3068 ac_cv_host_alias=$ac_cv_build_alias 3069ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3070 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3071echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3072 { (exit 1); exit 1; }; } 3073 3074fi 3075echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3076echo "${ECHO_T}$ac_cv_host" >&6 3077host=$ac_cv_host 3078host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3079host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3080host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3081 3082 3083# Find the correct PATH separator. Usually this is `:', but 3084# DJGPP uses `;' like DOS. 3085if test "X${PATH_SEPARATOR+set}" != Xset; then 3086 UNAME=${UNAME-`uname 2>/dev/null`} 3087 case X$UNAME in 3088 *-DOS) lt_cv_sys_path_separator=';' ;; 3089 *) lt_cv_sys_path_separator=':' ;; 3090 esac 3091 PATH_SEPARATOR=$lt_cv_sys_path_separator 3092fi 3093 3094 3095# Check whether --with-gnu-ld or --without-gnu-ld was given. 3096if test "${with_gnu_ld+set}" = set; then 3097 withval="$with_gnu_ld" 3098 test "$withval" = no || with_gnu_ld=yes 3099else 3100 with_gnu_ld=no 3101fi; 3102ac_prog=ld 3103if test "$GCC" = yes; then 3104 # Check if gcc -print-prog-name=ld gives a path. 3105 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 3106echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 3107 case $host in 3108 *-*-mingw*) 3109 # gcc leaves a trailing carriage return which upsets mingw 3110 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3111 *) 3112 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3113 esac 3114 case $ac_prog in 3115 # Accept absolute paths. 3116 [\\/]* | [A-Za-z]:[\\/]*) 3117 re_direlt='/[^/][^/]*/\.\./' 3118 # Canonicalize the path of ld 3119 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 3120 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3121 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 3122 done 3123 test -z "$LD" && LD="$ac_prog" 3124 ;; 3125 "") 3126 # If it fails, then pretend we aren't using GCC. 3127 ac_prog=ld 3128 ;; 3129 *) 3130 # If it is relative, then search for the first ld in PATH. 3131 with_gnu_ld=unknown 3132 ;; 3133 esac 3134elif test "$with_gnu_ld" = yes; then 3135 echo "$as_me:$LINENO: checking for GNU ld" >&5 3136echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3137else 3138 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3139echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3140fi 3141if test "${lt_cv_path_LD+set}" = set; then 3142 echo $ECHO_N "(cached) $ECHO_C" >&6 3143else 3144 if test -z "$LD"; then 3145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3146 for ac_dir in $PATH; do 3147 test -z "$ac_dir" && ac_dir=. 3148 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3149 lt_cv_path_LD="$ac_dir/$ac_prog" 3150 # Check to see if the program is GNU ld. I'd rather use --version, 3151 # but apparently some GNU ld's only accept -v. 3152 # Break only if it was the GNU/non-GNU ld that we prefer. 3153 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 3154 test "$with_gnu_ld" != no && break 3155 else 3156 test "$with_gnu_ld" != yes && break 3157 fi 3158 fi 3159 done 3160 IFS="$ac_save_ifs" 3161else 3162 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3163fi 3164fi 3165 3166LD="$lt_cv_path_LD" 3167if test -n "$LD"; then 3168 echo "$as_me:$LINENO: result: $LD" >&5 3169echo "${ECHO_T}$LD" >&6 3170else 3171 echo "$as_me:$LINENO: result: no" >&5 3172echo "${ECHO_T}no" >&6 3173fi 3174test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3175echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3176 { (exit 1); exit 1; }; } 3177echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3178echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3179if test "${lt_cv_prog_gnu_ld+set}" = set; then 3180 echo $ECHO_N "(cached) $ECHO_C" >&6 3181else 3182 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3183if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 3184 lt_cv_prog_gnu_ld=yes 3185else 3186 lt_cv_prog_gnu_ld=no 3187fi 3188fi 3189echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3190echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3191with_gnu_ld=$lt_cv_prog_gnu_ld 3192 3193 3194echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3195echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3196if test "${lt_cv_ld_reload_flag+set}" = set; then 3197 echo $ECHO_N "(cached) $ECHO_C" >&6 3198else 3199 lt_cv_ld_reload_flag='-r' 3200fi 3201echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3202echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3203reload_flag=$lt_cv_ld_reload_flag 3204test -n "$reload_flag" && reload_flag=" $reload_flag" 3205 3206echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3207echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3208if test "${lt_cv_path_NM+set}" = set; then 3209 echo $ECHO_N "(cached) $ECHO_C" >&6 3210else 3211 if test -n "$NM"; then 3212 # Let the user override the test. 3213 lt_cv_path_NM="$NM" 3214else 3215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3216 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3217 test -z "$ac_dir" && ac_dir=. 3218 tmp_nm=$ac_dir/${ac_tool_prefix}nm 3219 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 3220 # Check to see if the nm accepts a BSD-compat flag. 3221 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3222 # nm: unknown option "B" ignored 3223 # Tru64's nm complains that /dev/null is an invalid object file 3224 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 3225 lt_cv_path_NM="$tmp_nm -B" 3226 break 3227 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 3228 lt_cv_path_NM="$tmp_nm -p" 3229 break 3230 else 3231 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3232 continue # so that we can try to find one that supports BSD flags 3233 fi 3234 fi 3235 done 3236 IFS="$ac_save_ifs" 3237 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3238fi 3239fi 3240 3241NM="$lt_cv_path_NM" 3242echo "$as_me:$LINENO: result: $NM" >&5 3243echo "${ECHO_T}$NM" >&6 3244 3245echo "$as_me:$LINENO: checking whether ln -s works" >&5 3246echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3247LN_S=$as_ln_s 3248if test "$LN_S" = "ln -s"; then 3249 echo "$as_me:$LINENO: result: yes" >&5 3250echo "${ECHO_T}yes" >&6 3251else 3252 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3253echo "${ECHO_T}no, using $LN_S" >&6 3254fi 3255 3256echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 3257echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 3258if test "${lt_cv_deplibs_check_method+set}" = set; then 3259 echo $ECHO_N "(cached) $ECHO_C" >&6 3260else 3261 lt_cv_file_magic_cmd='$MAGIC_CMD' 3262lt_cv_file_magic_test_file= 3263lt_cv_deplibs_check_method='unknown' 3264# Need to set the preceding variable on all platforms that support 3265# interlibrary dependencies. 3266# 'none' -- dependencies not supported. 3267# `unknown' -- same as none, but documents that we really don't know. 3268# 'pass_all' -- all dependencies passed with no checks. 3269# 'test_compile' -- check by making test program. 3270# 'file_magic [[regex]]' -- check by looking for files in library path 3271# which responds to the $file_magic_cmd with a given egrep regex. 3272# If you have `file' or equivalent on your system and you're not sure 3273# whether `pass_all' will *always* work, you probably want this one. 3274 3275case $host_os in 3276aix4* | aix5*) 3277 lt_cv_deplibs_check_method=pass_all 3278 ;; 3279 3280beos*) 3281 lt_cv_deplibs_check_method=pass_all 3282 ;; 3283 3284bsdi4*) 3285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3286 lt_cv_file_magic_cmd='/usr/bin/file -L' 3287 lt_cv_file_magic_test_file=/shlib/libc.so 3288 ;; 3289 3290cygwin* | mingw* | pw32*) 3291 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3292 lt_cv_file_magic_cmd='$OBJDUMP -f' 3293 ;; 3294 3295darwin* | rhapsody*) 3296 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 3297 lt_cv_file_magic_cmd='/usr/bin/file -L' 3298 case "$host_os" in 3299 rhapsody* | darwin1.[012]) 3300 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` 3301 ;; 3302 *) # Darwin 1.3 on 3303 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 3304 ;; 3305 esac 3306 ;; 3307 3308freebsd*) 3309 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3310 case $host_cpu in 3311 i*86 ) 3312 # Not sure whether the presence of OpenBSD here was a mistake. 3313 # Let's accept both of them until this is cleared up. 3314 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3315 lt_cv_file_magic_cmd=/usr/bin/file 3316 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3317 ;; 3318 esac 3319 else 3320 lt_cv_deplibs_check_method=pass_all 3321 fi 3322 ;; 3323 3324gnu*) 3325 lt_cv_deplibs_check_method=pass_all 3326 ;; 3327 3328hpux10.20*|hpux11*) 3329 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3330 lt_cv_file_magic_cmd=/usr/bin/file 3331 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3332 ;; 3333 3334irix5* | irix6*) 3335 case $host_os in 3336 irix5*) 3337 # this will be overridden with pass_all, but let us keep it just in case 3338 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 3339 ;; 3340 *) 3341 case $LD in 3342 *-32|*"-32 ") libmagic=32-bit;; 3343 *-n32|*"-n32 ") libmagic=N32;; 3344 *-64|*"-64 ") libmagic=64-bit;; 3345 *) libmagic=never-match;; 3346 esac 3347 # this will be overridden with pass_all, but let us keep it just in case 3348 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 3349 ;; 3350 esac 3351 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 3352 lt_cv_deplibs_check_method=pass_all 3353 ;; 3354 3355# This must be Linux ELF. 3356linux-gnu*) 3357 case $host_cpu in 3358 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) 3359 lt_cv_deplibs_check_method=pass_all ;; 3360 *) 3361 # glibc up to 2.1.1 does not perform some relocations on ARM 3362 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 3363 esac 3364 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 3365 ;; 3366 3367netbsd*) 3368 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3369 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 3370 else 3371 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 3372 fi 3373 ;; 3374 3375newos6*) 3376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3377 lt_cv_file_magic_cmd=/usr/bin/file 3378 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3379 ;; 3380 3381openbsd*) 3382 lt_cv_file_magic_cmd=/usr/bin/file 3383 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3384 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3386 else 3387 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3388 fi 3389 ;; 3390 3391osf3* | osf4* | osf5*) 3392 # this will be overridden with pass_all, but let us keep it just in case 3393 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 3394 lt_cv_file_magic_test_file=/shlib/libc.so 3395 lt_cv_deplibs_check_method=pass_all 3396 ;; 3397 3398sco3.2v5*) 3399 lt_cv_deplibs_check_method=pass_all 3400 ;; 3401 3402solaris*) 3403 lt_cv_deplibs_check_method=pass_all 3404 lt_cv_file_magic_test_file=/lib/libc.so 3405 ;; 3406 3407sysv5uw[78]* | sysv4*uw2*) 3408 lt_cv_deplibs_check_method=pass_all 3409 ;; 3410 3411sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3412 case $host_vendor in 3413 motorola) 3414 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]' 3415 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3416 ;; 3417 ncr) 3418 lt_cv_deplibs_check_method=pass_all 3419 ;; 3420 sequent) 3421 lt_cv_file_magic_cmd='/bin/file' 3422 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3423 ;; 3424 sni) 3425 lt_cv_file_magic_cmd='/bin/file' 3426 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3427 lt_cv_file_magic_test_file=/lib/libc.so 3428 ;; 3429 esac 3430 ;; 3431esac 3432 3433fi 3434echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3435echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3436file_magic_cmd=$lt_cv_file_magic_cmd 3437deplibs_check_method=$lt_cv_deplibs_check_method 3438 3439 3440 3441 3442 3443 3444 3445# Check for command to grab the raw symbol name followed by C symbol from nm. 3446echo "$as_me:$LINENO: checking command to parse $NM output" >&5 3447echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 3448if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 3449 echo $ECHO_N "(cached) $ECHO_C" >&6 3450else 3451 3452# These are sane defaults that work on at least a few old systems. 3453# [They come from Ultrix. What could be older than Ultrix?!! ;)] 3454 3455# Character class describing NM global symbol codes. 3456symcode='[BCDEGRST]' 3457 3458# Regexp to match symbols that can be accessed directly from C. 3459sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 3460 3461# Transform the above into a raw symbol and a C symbol. 3462symxfrm='\1 \2\3 \3' 3463 3464# Transform an extracted symbol line into a proper C declaration 3465lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" 3466 3467# Transform an extracted symbol line into symbol name and symbol address 3468lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 3469 3470# Define system-specific variables. 3471case $host_os in 3472aix*) 3473 symcode='[BCDT]' 3474 ;; 3475cygwin* | mingw* | pw32*) 3476 symcode='[ABCDGISTW]' 3477 ;; 3478hpux*) # Its linker distinguishes data from code symbols 3479 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 3480 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 3481 ;; 3482irix*) 3483 symcode='[BCDEGRST]' 3484 ;; 3485solaris* | sysv5*) 3486 symcode='[BDT]' 3487 ;; 3488sysv4) 3489 symcode='[DFNSTU]' 3490 ;; 3491esac 3492 3493# Handle CRLF in mingw tool chain 3494opt_cr= 3495case $host_os in 3496mingw*) 3497 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 3498 ;; 3499esac 3500 3501# If we're using GNU nm, then use its standard symbol codes. 3502if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then 3503 symcode='[ABCDGISTW]' 3504fi 3505 3506# Try without a prefix undercore, then with it. 3507for ac_symprfx in "" "_"; do 3508 3509 # Write the raw and C identifiers. 3510lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 3511 3512 # Check to see that the pipe works correctly. 3513 pipe_works=no 3514 rm -f conftest* 3515 cat > conftest.$ac_ext <<EOF 3516#ifdef __cplusplus 3517extern "C" { 3518#endif 3519char nm_test_var; 3520void nm_test_func(){} 3521#ifdef __cplusplus 3522} 3523#endif 3524int main(){nm_test_var='a';nm_test_func();return(0);} 3525EOF 3526 3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3528 (eval $ac_compile) 2>&5 3529 ac_status=$? 3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3531 (exit $ac_status); }; then 3532 # Now try to grab the symbols. 3533 nlist=conftest.nm 3534 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 3535 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 3536 ac_status=$? 3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3538 (exit $ac_status); } && test -s "$nlist"; then 3539 # Try sorting and uniquifying the output. 3540 if sort "$nlist" | uniq > "$nlist"T; then 3541 mv -f "$nlist"T "$nlist" 3542 else 3543 rm -f "$nlist"T 3544 fi 3545 3546 # Make sure that we snagged all the symbols we need. 3547 if egrep ' nm_test_var$' "$nlist" >/dev/null; then 3548 if egrep ' nm_test_func$' "$nlist" >/dev/null; then 3549 cat <<EOF > conftest.$ac_ext 3550#ifdef __cplusplus 3551extern "C" { 3552#endif 3553 3554EOF 3555 # Now generate the symbol file. 3556 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' 3557 3558 cat <<EOF >> conftest.$ac_ext 3559#if defined (__STDC__) && __STDC__ 3560# define lt_ptr void * 3561#else 3562# define lt_ptr char * 3563# define const 3564#endif 3565 3566/* The mapping between symbol names and symbols. */ 3567const struct { 3568 const char *name; 3569 lt_ptr address; 3570} 3571lt_preloaded_symbols[] = 3572{ 3573EOF 3574 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext 3575 cat <<\EOF >> conftest.$ac_ext 3576 {0, (lt_ptr) 0} 3577}; 3578 3579#ifdef __cplusplus 3580} 3581#endif 3582EOF 3583 # Now try linking the two files. 3584 mv conftest.$ac_objext conftstm.$ac_objext 3585 save_LIBS="$LIBS" 3586 save_CFLAGS="$CFLAGS" 3587 LIBS="conftstm.$ac_objext" 3588 CFLAGS="$CFLAGS$no_builtin_flag" 3589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3590 (eval $ac_link) 2>&5 3591 ac_status=$? 3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3593 (exit $ac_status); } && test -s conftest; then 3594 pipe_works=yes 3595 fi 3596 LIBS="$save_LIBS" 3597 CFLAGS="$save_CFLAGS" 3598 else 3599 echo "cannot find nm_test_func in $nlist" >&5 3600 fi 3601 else 3602 echo "cannot find nm_test_var in $nlist" >&5 3603 fi 3604 else 3605 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 3606 fi 3607 else 3608 echo "$progname: failed program was:" >&5 3609 cat conftest.$ac_ext >&5 3610 fi 3611 rm -f conftest* conftst* 3612 3613 # Do not use the global_symbol_pipe unless it works. 3614 if test "$pipe_works" = yes; then 3615 break 3616 else 3617 lt_cv_sys_global_symbol_pipe= 3618 fi 3619done 3620 3621fi 3622 3623global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" 3624if test -z "$lt_cv_sys_global_symbol_pipe"; then 3625 global_symbol_to_cdecl= 3626 global_symbol_to_c_name_address= 3627else 3628 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 3629 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" 3630fi 3631if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; 3632then 3633 echo "$as_me:$LINENO: result: failed" >&5 3634echo "${ECHO_T}failed" >&6 3635else 3636 echo "$as_me:$LINENO: result: ok" >&5 3637echo "${ECHO_T}ok" >&6 3638fi 3639 3640ac_ext=c 3641ac_cpp='$CPP $CPPFLAGS' 3642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3644ac_compiler_gnu=$ac_cv_c_compiler_gnu 3645echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3646echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3647# On Suns, sometimes $CPP names a directory. 3648if test -n "$CPP" && test -d "$CPP"; then 3649 CPP= 3650fi 3651if test -z "$CPP"; then 3652 if test "${ac_cv_prog_CPP+set}" = set; then 3653 echo $ECHO_N "(cached) $ECHO_C" >&6 3654else 3655 # Double quotes because CPP needs to be expanded 3656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3657 do 3658 ac_preproc_ok=false 3659for ac_c_preproc_warn_flag in '' yes 3660do 3661 # Use a header file that comes with gcc, so configuring glibc 3662 # with a fresh cross-compiler works. 3663 # On the NeXT, cc -E runs the code through the compiler's parser, 3664 # not just through cpp. "Syntax error" is here to catch this case. 3665 cat >conftest.$ac_ext <<_ACEOF 3666#line $LINENO "configure" 3667#include "confdefs.h" 3668#include <assert.h> 3669 Syntax error 3670_ACEOF 3671if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3673 ac_status=$? 3674 egrep -v '^ *\+' conftest.er1 >conftest.err 3675 rm -f conftest.er1 3676 cat conftest.err >&5 3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3678 (exit $ac_status); } >/dev/null; then 3679 if test -s conftest.err; then 3680 ac_cpp_err=$ac_c_preproc_warn_flag 3681 else 3682 ac_cpp_err= 3683 fi 3684else 3685 ac_cpp_err=yes 3686fi 3687if test -z "$ac_cpp_err"; then 3688 : 3689else 3690 echo "$as_me: failed program was:" >&5 3691 cat conftest.$ac_ext >&5 3692 # Broken: fails on valid input. 3693continue 3694fi 3695rm -f conftest.err conftest.$ac_ext 3696 3697 # OK, works on sane cases. Now check whether non-existent headers 3698 # can be detected and how. 3699 cat >conftest.$ac_ext <<_ACEOF 3700#line $LINENO "configure" 3701#include "confdefs.h" 3702#include <ac_nonexistent.h> 3703_ACEOF 3704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3706 ac_status=$? 3707 egrep -v '^ *\+' conftest.er1 >conftest.err 3708 rm -f conftest.er1 3709 cat conftest.err >&5 3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3711 (exit $ac_status); } >/dev/null; then 3712 if test -s conftest.err; then 3713 ac_cpp_err=$ac_c_preproc_warn_flag 3714 else 3715 ac_cpp_err= 3716 fi 3717else 3718 ac_cpp_err=yes 3719fi 3720if test -z "$ac_cpp_err"; then 3721 # Broken: success on invalid input. 3722continue 3723else 3724 echo "$as_me: failed program was:" >&5 3725 cat conftest.$ac_ext >&5 3726 # Passes both tests. 3727ac_preproc_ok=: 3728break 3729fi 3730rm -f conftest.err conftest.$ac_ext 3731 3732done 3733# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3734rm -f conftest.err conftest.$ac_ext 3735if $ac_preproc_ok; then 3736 break 3737fi 3738 3739 done 3740 ac_cv_prog_CPP=$CPP 3741 3742fi 3743 CPP=$ac_cv_prog_CPP 3744else 3745 ac_cv_prog_CPP=$CPP 3746fi 3747echo "$as_me:$LINENO: result: $CPP" >&5 3748echo "${ECHO_T}$CPP" >&6 3749ac_preproc_ok=false 3750for ac_c_preproc_warn_flag in '' yes 3751do 3752 # Use a header file that comes with gcc, so configuring glibc 3753 # with a fresh cross-compiler works. 3754 # On the NeXT, cc -E runs the code through the compiler's parser, 3755 # not just through cpp. "Syntax error" is here to catch this case. 3756 cat >conftest.$ac_ext <<_ACEOF 3757#line $LINENO "configure" 3758#include "confdefs.h" 3759#include <assert.h> 3760 Syntax error 3761_ACEOF 3762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3764 ac_status=$? 3765 egrep -v '^ *\+' conftest.er1 >conftest.err 3766 rm -f conftest.er1 3767 cat conftest.err >&5 3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3769 (exit $ac_status); } >/dev/null; then 3770 if test -s conftest.err; then 3771 ac_cpp_err=$ac_c_preproc_warn_flag 3772 else 3773 ac_cpp_err= 3774 fi 3775else 3776 ac_cpp_err=yes 3777fi 3778if test -z "$ac_cpp_err"; then 3779 : 3780else 3781 echo "$as_me: failed program was:" >&5 3782 cat conftest.$ac_ext >&5 3783 # Broken: fails on valid input. 3784continue 3785fi 3786rm -f conftest.err conftest.$ac_ext 3787 3788 # OK, works on sane cases. Now check whether non-existent headers 3789 # can be detected and how. 3790 cat >conftest.$ac_ext <<_ACEOF 3791#line $LINENO "configure" 3792#include "confdefs.h" 3793#include <ac_nonexistent.h> 3794_ACEOF 3795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3797 ac_status=$? 3798 egrep -v '^ *\+' conftest.er1 >conftest.err 3799 rm -f conftest.er1 3800 cat conftest.err >&5 3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3802 (exit $ac_status); } >/dev/null; then 3803 if test -s conftest.err; then 3804 ac_cpp_err=$ac_c_preproc_warn_flag 3805 else 3806 ac_cpp_err= 3807 fi 3808else 3809 ac_cpp_err=yes 3810fi 3811if test -z "$ac_cpp_err"; then 3812 # Broken: success on invalid input. 3813continue 3814else 3815 echo "$as_me: failed program was:" >&5 3816 cat conftest.$ac_ext >&5 3817 # Passes both tests. 3818ac_preproc_ok=: 3819break 3820fi 3821rm -f conftest.err conftest.$ac_ext 3822 3823done 3824# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3825rm -f conftest.err conftest.$ac_ext 3826if $ac_preproc_ok; then 3827 : 3828else 3829 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 3830echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 3831 { (exit 1); exit 1; }; } 3832fi 3833 3834ac_ext=c 3835ac_cpp='$CPP $CPPFLAGS' 3836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3838ac_compiler_gnu=$ac_cv_c_compiler_gnu 3839 3840 3841echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3842echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3843if test "${ac_cv_header_stdc+set}" = set; then 3844 echo $ECHO_N "(cached) $ECHO_C" >&6 3845else 3846 cat >conftest.$ac_ext <<_ACEOF 3847#line $LINENO "configure" 3848#include "confdefs.h" 3849#include <stdlib.h> 3850#include <stdarg.h> 3851#include <string.h> 3852#include <float.h> 3853 3854_ACEOF 3855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3857 ac_status=$? 3858 egrep -v '^ *\+' conftest.er1 >conftest.err 3859 rm -f conftest.er1 3860 cat conftest.err >&5 3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3862 (exit $ac_status); } >/dev/null; then 3863 if test -s conftest.err; then 3864 ac_cpp_err=$ac_c_preproc_warn_flag 3865 else 3866 ac_cpp_err= 3867 fi 3868else 3869 ac_cpp_err=yes 3870fi 3871if test -z "$ac_cpp_err"; then 3872 ac_cv_header_stdc=yes 3873else 3874 echo "$as_me: failed program was:" >&5 3875 cat conftest.$ac_ext >&5 3876 ac_cv_header_stdc=no 3877fi 3878rm -f conftest.err conftest.$ac_ext 3879 3880if test $ac_cv_header_stdc = yes; then 3881 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3882 cat >conftest.$ac_ext <<_ACEOF 3883#line $LINENO "configure" 3884#include "confdefs.h" 3885#include <string.h> 3886 3887_ACEOF 3888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3889 egrep "memchr" >/dev/null 2>&1; then 3890 : 3891else 3892 ac_cv_header_stdc=no 3893fi 3894rm -f conftest* 3895 3896fi 3897 3898if test $ac_cv_header_stdc = yes; then 3899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3900 cat >conftest.$ac_ext <<_ACEOF 3901#line $LINENO "configure" 3902#include "confdefs.h" 3903#include <stdlib.h> 3904 3905_ACEOF 3906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3907 egrep "free" >/dev/null 2>&1; then 3908 : 3909else 3910 ac_cv_header_stdc=no 3911fi 3912rm -f conftest* 3913 3914fi 3915 3916if test $ac_cv_header_stdc = yes; then 3917 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3918 if test "$cross_compiling" = yes; then 3919 : 3920else 3921 cat >conftest.$ac_ext <<_ACEOF 3922#line $LINENO "configure" 3923#include "confdefs.h" 3924#include <ctype.h> 3925#if ((' ' & 0x0FF) == 0x020) 3926# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3927# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3928#else 3929# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 3930 || ('j' <= (c) && (c) <= 'r') \ 3931 || ('s' <= (c) && (c) <= 'z')) 3932# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3933#endif 3934 3935#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3936int 3937main () 3938{ 3939 int i; 3940 for (i = 0; i < 256; i++) 3941 if (XOR (islower (i), ISLOWER (i)) 3942 || toupper (i) != TOUPPER (i)) 3943 exit(2); 3944 exit (0); 3945} 3946_ACEOF 3947rm -f conftest$ac_exeext 3948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3949 (eval $ac_link) 2>&5 3950 ac_status=$? 3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3954 (eval $ac_try) 2>&5 3955 ac_status=$? 3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3957 (exit $ac_status); }; }; then 3958 : 3959else 3960 echo "$as_me: program exited with status $ac_status" >&5 3961echo "$as_me: failed program was:" >&5 3962cat conftest.$ac_ext >&5 3963( exit $ac_status ) 3964ac_cv_header_stdc=no 3965fi 3966rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3967fi 3968fi 3969fi 3970echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3971echo "${ECHO_T}$ac_cv_header_stdc" >&6 3972if test $ac_cv_header_stdc = yes; then 3973 3974cat >>confdefs.h <<\_ACEOF 3975#define STDC_HEADERS 1 3976_ACEOF 3977 3978fi 3979 3980# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3991 inttypes.h stdint.h unistd.h 3992do 3993as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3994echo "$as_me:$LINENO: checking for $ac_header" >&5 3995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3996if eval "test \"\${$as_ac_Header+set}\" = set"; then 3997 echo $ECHO_N "(cached) $ECHO_C" >&6 3998else 3999 cat >conftest.$ac_ext <<_ACEOF 4000#line $LINENO "configure" 4001#include "confdefs.h" 4002$ac_includes_default 4003 4004#include <$ac_header> 4005_ACEOF 4006rm -f conftest.$ac_objext 4007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4008 (eval $ac_compile) 2>&5 4009 ac_status=$? 4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4011 (exit $ac_status); } && 4012 { ac_try='test -s conftest.$ac_objext' 4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4014 (eval $ac_try) 2>&5 4015 ac_status=$? 4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4017 (exit $ac_status); }; }; then 4018 eval "$as_ac_Header=yes" 4019else 4020 echo "$as_me: failed program was:" >&5 4021cat conftest.$ac_ext >&5 4022eval "$as_ac_Header=no" 4023fi 4024rm -f conftest.$ac_objext conftest.$ac_ext 4025fi 4026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4028if test `eval echo '${'$as_ac_Header'}'` = yes; then 4029 cat >>confdefs.h <<_ACEOF 4030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4031_ACEOF 4032 4033fi 4034 4035done 4036 4037 4038 4039for ac_header in dlfcn.h 4040do 4041as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4042if eval "test \"\${$as_ac_Header+set}\" = set"; then 4043 echo "$as_me:$LINENO: checking for $ac_header" >&5 4044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4045if eval "test \"\${$as_ac_Header+set}\" = set"; then 4046 echo $ECHO_N "(cached) $ECHO_C" >&6 4047fi 4048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4050else 4051 # Is the header compilable? 4052echo "$as_me:$LINENO: checking $ac_header usability" >&5 4053echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4054cat >conftest.$ac_ext <<_ACEOF 4055#line $LINENO "configure" 4056#include "confdefs.h" 4057$ac_includes_default 4058#include <$ac_header> 4059_ACEOF 4060rm -f conftest.$ac_objext 4061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4062 (eval $ac_compile) 2>&5 4063 ac_status=$? 4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4065 (exit $ac_status); } && 4066 { ac_try='test -s conftest.$ac_objext' 4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4068 (eval $ac_try) 2>&5 4069 ac_status=$? 4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4071 (exit $ac_status); }; }; then 4072 ac_header_compiler=yes 4073else 4074 echo "$as_me: failed program was:" >&5 4075cat conftest.$ac_ext >&5 4076ac_header_compiler=no 4077fi 4078rm -f conftest.$ac_objext conftest.$ac_ext 4079echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4080echo "${ECHO_T}$ac_header_compiler" >&6 4081 4082# Is the header present? 4083echo "$as_me:$LINENO: checking $ac_header presence" >&5 4084echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4085cat >conftest.$ac_ext <<_ACEOF 4086#line $LINENO "configure" 4087#include "confdefs.h" 4088#include <$ac_header> 4089_ACEOF 4090if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4092 ac_status=$? 4093 egrep -v '^ *\+' conftest.er1 >conftest.err 4094 rm -f conftest.er1 4095 cat conftest.err >&5 4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4097 (exit $ac_status); } >/dev/null; then 4098 if test -s conftest.err; then 4099 ac_cpp_err=$ac_c_preproc_warn_flag 4100 else 4101 ac_cpp_err= 4102 fi 4103else 4104 ac_cpp_err=yes 4105fi 4106if test -z "$ac_cpp_err"; then 4107 ac_header_preproc=yes 4108else 4109 echo "$as_me: failed program was:" >&5 4110 cat conftest.$ac_ext >&5 4111 ac_header_preproc=no 4112fi 4113rm -f conftest.err conftest.$ac_ext 4114echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4115echo "${ECHO_T}$ac_header_preproc" >&6 4116 4117# So? What about this header? 4118case $ac_header_compiler:$ac_header_preproc in 4119 yes:no ) 4120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4121echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4123echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4124 no:yes ) 4125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4126echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4128echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4130echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4131esac 4132echo "$as_me:$LINENO: checking for $ac_header" >&5 4133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4134if eval "test \"\${$as_ac_Header+set}\" = set"; then 4135 echo $ECHO_N "(cached) $ECHO_C" >&6 4136else 4137 eval "$as_ac_Header=$ac_header_preproc" 4138fi 4139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4140echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4141 4142fi 4143if test `eval echo '${'$as_ac_Header'}'` = yes; then 4144 cat >>confdefs.h <<_ACEOF 4145#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4146_ACEOF 4147 4148fi 4149 4150done 4151 4152 4153 4154 4155 4156# Only perform the check for file, if the check method requires it 4157case $deplibs_check_method in 4158file_magic*) 4159 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 4160 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 4161echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 4162if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 4163 echo $ECHO_N "(cached) $ECHO_C" >&6 4164else 4165 case $MAGIC_CMD in 4166 /*) 4167 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4168 ;; 4169 ?:/*) 4170 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 4171 ;; 4172 *) 4173 ac_save_MAGIC_CMD="$MAGIC_CMD" 4174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4175 ac_dummy="/usr/bin:$PATH" 4176 for ac_dir in $ac_dummy; do 4177 test -z "$ac_dir" && ac_dir=. 4178 if test -f $ac_dir/${ac_tool_prefix}file; then 4179 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 4180 if test -n "$file_magic_test_file"; then 4181 case $deplibs_check_method in 4182 "file_magic "*) 4183 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 4184 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4185 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4186 egrep "$file_magic_regex" > /dev/null; then 4187 : 4188 else 4189 cat <<EOF 1>&2 4190 4191*** Warning: the command libtool uses to detect shared libraries, 4192*** $file_magic_cmd, produces output that libtool cannot recognize. 4193*** The result is that libtool may fail to recognize shared libraries 4194*** as such. This will affect the creation of libtool libraries that 4195*** depend on shared libraries, but programs linked with such libtool 4196*** libraries will work regardless of this problem. Nevertheless, you 4197*** may want to report the problem to your system manager and/or to 4198*** bug-libtool@gnu.org 4199 4200EOF 4201 fi ;; 4202 esac 4203 fi 4204 break 4205 fi 4206 done 4207 IFS="$ac_save_ifs" 4208 MAGIC_CMD="$ac_save_MAGIC_CMD" 4209 ;; 4210esac 4211fi 4212 4213MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4214if test -n "$MAGIC_CMD"; then 4215 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 4216echo "${ECHO_T}$MAGIC_CMD" >&6 4217else 4218 echo "$as_me:$LINENO: result: no" >&5 4219echo "${ECHO_T}no" >&6 4220fi 4221 4222if test -z "$lt_cv_path_MAGIC_CMD"; then 4223 if test -n "$ac_tool_prefix"; then 4224 echo "$as_me:$LINENO: checking for file" >&5 4225echo $ECHO_N "checking for file... $ECHO_C" >&6 4226if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 4227 echo $ECHO_N "(cached) $ECHO_C" >&6 4228else 4229 case $MAGIC_CMD in 4230 /*) 4231 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4232 ;; 4233 ?:/*) 4234 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 4235 ;; 4236 *) 4237 ac_save_MAGIC_CMD="$MAGIC_CMD" 4238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4239 ac_dummy="/usr/bin:$PATH" 4240 for ac_dir in $ac_dummy; do 4241 test -z "$ac_dir" && ac_dir=. 4242 if test -f $ac_dir/file; then 4243 lt_cv_path_MAGIC_CMD="$ac_dir/file" 4244 if test -n "$file_magic_test_file"; then 4245 case $deplibs_check_method in 4246 "file_magic "*) 4247 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 4248 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4249 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4250 egrep "$file_magic_regex" > /dev/null; then 4251 : 4252 else 4253 cat <<EOF 1>&2 4254 4255*** Warning: the command libtool uses to detect shared libraries, 4256*** $file_magic_cmd, produces output that libtool cannot recognize. 4257*** The result is that libtool may fail to recognize shared libraries 4258*** as such. This will affect the creation of libtool libraries that 4259*** depend on shared libraries, but programs linked with such libtool 4260*** libraries will work regardless of this problem. Nevertheless, you 4261*** may want to report the problem to your system manager and/or to 4262*** bug-libtool@gnu.org 4263 4264EOF 4265 fi ;; 4266 esac 4267 fi 4268 break 4269 fi 4270 done 4271 IFS="$ac_save_ifs" 4272 MAGIC_CMD="$ac_save_MAGIC_CMD" 4273 ;; 4274esac 4275fi 4276 4277MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4278if test -n "$MAGIC_CMD"; then 4279 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 4280echo "${ECHO_T}$MAGIC_CMD" >&6 4281else 4282 echo "$as_me:$LINENO: result: no" >&5 4283echo "${ECHO_T}no" >&6 4284fi 4285 4286 else 4287 MAGIC_CMD=: 4288 fi 4289fi 4290 4291 fi 4292 ;; 4293esac 4294 4295if test -n "$ac_tool_prefix"; then 4296 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4297set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4298echo "$as_me:$LINENO: checking for $ac_word" >&5 4299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4300if test "${ac_cv_prog_RANLIB+set}" = set; then 4301 echo $ECHO_N "(cached) $ECHO_C" >&6 4302else 4303 if test -n "$RANLIB"; then 4304 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4305else 4306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4307for as_dir in $PATH 4308do 4309 IFS=$as_save_IFS 4310 test -z "$as_dir" && as_dir=. 4311 for ac_exec_ext in '' $ac_executable_extensions; do 4312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4313 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4315 break 2 4316 fi 4317done 4318done 4319 4320fi 4321fi 4322RANLIB=$ac_cv_prog_RANLIB 4323if test -n "$RANLIB"; then 4324 echo "$as_me:$LINENO: result: $RANLIB" >&5 4325echo "${ECHO_T}$RANLIB" >&6 4326else 4327 echo "$as_me:$LINENO: result: no" >&5 4328echo "${ECHO_T}no" >&6 4329fi 4330 4331fi 4332if test -z "$ac_cv_prog_RANLIB"; then 4333 ac_ct_RANLIB=$RANLIB 4334 # Extract the first word of "ranlib", so it can be a program name with args. 4335set dummy ranlib; ac_word=$2 4336echo "$as_me:$LINENO: checking for $ac_word" >&5 4337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4338if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4339 echo $ECHO_N "(cached) $ECHO_C" >&6 4340else 4341 if test -n "$ac_ct_RANLIB"; then 4342 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4343else 4344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4345for as_dir in $PATH 4346do 4347 IFS=$as_save_IFS 4348 test -z "$as_dir" && as_dir=. 4349 for ac_exec_ext in '' $ac_executable_extensions; do 4350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4351 ac_cv_prog_ac_ct_RANLIB="ranlib" 4352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4353 break 2 4354 fi 4355done 4356done 4357 4358 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 4359fi 4360fi 4361ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4362if test -n "$ac_ct_RANLIB"; then 4363 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4364echo "${ECHO_T}$ac_ct_RANLIB" >&6 4365else 4366 echo "$as_me:$LINENO: result: no" >&5 4367echo "${ECHO_T}no" >&6 4368fi 4369 4370 RANLIB=$ac_ct_RANLIB 4371else 4372 RANLIB="$ac_cv_prog_RANLIB" 4373fi 4374 4375if test -n "$ac_tool_prefix"; then 4376 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4377set dummy ${ac_tool_prefix}strip; ac_word=$2 4378echo "$as_me:$LINENO: checking for $ac_word" >&5 4379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4380if test "${ac_cv_prog_STRIP+set}" = set; then 4381 echo $ECHO_N "(cached) $ECHO_C" >&6 4382else 4383 if test -n "$STRIP"; then 4384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4385else 4386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4387for as_dir in $PATH 4388do 4389 IFS=$as_save_IFS 4390 test -z "$as_dir" && as_dir=. 4391 for ac_exec_ext in '' $ac_executable_extensions; do 4392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4393 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4395 break 2 4396 fi 4397done 4398done 4399 4400fi 4401fi 4402STRIP=$ac_cv_prog_STRIP 4403if test -n "$STRIP"; then 4404 echo "$as_me:$LINENO: result: $STRIP" >&5 4405echo "${ECHO_T}$STRIP" >&6 4406else 4407 echo "$as_me:$LINENO: result: no" >&5 4408echo "${ECHO_T}no" >&6 4409fi 4410 4411fi 4412if test -z "$ac_cv_prog_STRIP"; then 4413 ac_ct_STRIP=$STRIP 4414 # Extract the first word of "strip", so it can be a program name with args. 4415set dummy strip; ac_word=$2 4416echo "$as_me:$LINENO: checking for $ac_word" >&5 4417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4418if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 4419 echo $ECHO_N "(cached) $ECHO_C" >&6 4420else 4421 if test -n "$ac_ct_STRIP"; then 4422 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4423else 4424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4425for as_dir in $PATH 4426do 4427 IFS=$as_save_IFS 4428 test -z "$as_dir" && as_dir=. 4429 for ac_exec_ext in '' $ac_executable_extensions; do 4430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4431 ac_cv_prog_ac_ct_STRIP="strip" 4432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4433 break 2 4434 fi 4435done 4436done 4437 4438 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 4439fi 4440fi 4441ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4442if test -n "$ac_ct_STRIP"; then 4443 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 4444echo "${ECHO_T}$ac_ct_STRIP" >&6 4445else 4446 echo "$as_me:$LINENO: result: no" >&5 4447echo "${ECHO_T}no" >&6 4448fi 4449 4450 STRIP=$ac_ct_STRIP 4451else 4452 STRIP="$ac_cv_prog_STRIP" 4453fi 4454 4455 4456enable_dlopen=no 4457enable_win32_dll=no 4458 4459# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4460if test "${enable_libtool_lock+set}" = set; then 4461 enableval="$enable_libtool_lock" 4462 4463fi; 4464test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4465 4466# Some flags need to be propagated to the compiler or linker for good 4467# libtool support. 4468case $host in 4469*-*-irix6*) 4470 # Find out which ABI we are using. 4471 echo '#line 4471 "configure"' > conftest.$ac_ext 4472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4473 (eval $ac_compile) 2>&5 4474 ac_status=$? 4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4476 (exit $ac_status); }; then 4477 case `/usr/bin/file conftest.$ac_objext` in 4478 *32-bit*) 4479 LD="${LD-ld} -32" 4480 ;; 4481 *N32*) 4482 LD="${LD-ld} -n32" 4483 ;; 4484 *64-bit*) 4485 LD="${LD-ld} -64" 4486 ;; 4487 esac 4488 fi 4489 rm -rf conftest* 4490 ;; 4491 4492*-*-sco3.2v5*) 4493 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4494 SAVE_CFLAGS="$CFLAGS" 4495 CFLAGS="$CFLAGS -belf" 4496 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4497echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4498if test "${lt_cv_cc_needs_belf+set}" = set; then 4499 echo $ECHO_N "(cached) $ECHO_C" >&6 4500else 4501 4502 4503 ac_ext=c 4504ac_cpp='$CPP $CPPFLAGS' 4505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4507ac_compiler_gnu=$ac_cv_c_compiler_gnu 4508 4509 cat >conftest.$ac_ext <<_ACEOF 4510#line $LINENO "configure" 4511#include "confdefs.h" 4512 4513#ifdef F77_DUMMY_MAIN 4514# ifdef __cplusplus 4515 extern "C" 4516# endif 4517 int F77_DUMMY_MAIN() { return 1; } 4518#endif 4519int 4520main () 4521{ 4522 4523 ; 4524 return 0; 4525} 4526_ACEOF 4527rm -f conftest.$ac_objext conftest$ac_exeext 4528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4529 (eval $ac_link) 2>&5 4530 ac_status=$? 4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4532 (exit $ac_status); } && 4533 { ac_try='test -s conftest$ac_exeext' 4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4535 (eval $ac_try) 2>&5 4536 ac_status=$? 4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4538 (exit $ac_status); }; }; then 4539 lt_cv_cc_needs_belf=yes 4540else 4541 echo "$as_me: failed program was:" >&5 4542cat conftest.$ac_ext >&5 4543lt_cv_cc_needs_belf=no 4544fi 4545rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4546 ac_ext=c 4547ac_cpp='$CPP $CPPFLAGS' 4548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4550ac_compiler_gnu=$ac_cv_c_compiler_gnu 4551 4552fi 4553echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4554echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4555 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4556 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4557 CFLAGS="$SAVE_CFLAGS" 4558 fi 4559 ;; 4560 4561 4562esac 4563 4564# Sed substitution that helps us do robust quoting. It backslashifies 4565# metacharacters that are still active within double-quoted strings. 4566Xsed='sed -e s/^X//' 4567sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 4568 4569# Same as above, but do not quote variable references. 4570double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 4571 4572# Sed substitution to delay expansion of an escaped shell variable in a 4573# double_quote_subst'ed string. 4574delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4575 4576# Constants: 4577rm="rm -f" 4578 4579# Global variables: 4580default_ofile=libtool 4581can_build_shared=yes 4582 4583# All known linkers require a `.a' archive for static linking (except M$VC, 4584# which needs '.lib'). 4585libext=a 4586ltmain="$ac_aux_dir/ltmain.sh" 4587ofile="$default_ofile" 4588with_gnu_ld="$lt_cv_prog_gnu_ld" 4589need_locks="$enable_libtool_lock" 4590 4591old_CC="$CC" 4592old_CFLAGS="$CFLAGS" 4593 4594# Set sane defaults for various variables 4595test -z "$AR" && AR=ar 4596test -z "$AR_FLAGS" && AR_FLAGS=cru 4597test -z "$AS" && AS=as 4598test -z "$CC" && CC=cc 4599test -z "$DLLTOOL" && DLLTOOL=dlltool 4600test -z "$LD" && LD=ld 4601test -z "$LN_S" && LN_S="ln -s" 4602test -z "$MAGIC_CMD" && MAGIC_CMD=file 4603test -z "$NM" && NM=nm 4604test -z "$OBJDUMP" && OBJDUMP=objdump 4605test -z "$RANLIB" && RANLIB=: 4606test -z "$STRIP" && STRIP=: 4607test -z "$ac_objext" && ac_objext=o 4608 4609if test x"$host" != x"$build"; then 4610 ac_tool_prefix=${host_alias}- 4611else 4612 ac_tool_prefix= 4613fi 4614 4615# Transform linux* to *-*-linux-gnu*, to support old configure scripts. 4616case $host_os in 4617linux-gnu*) ;; 4618linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 4619esac 4620 4621case $host_os in 4622aix3*) 4623 # AIX sometimes has problems with the GCC collect2 program. For some 4624 # reason, if we set the COLLECT_NAMES environment variable, the problems 4625 # vanish in a puff of smoke. 4626 if test "X${COLLECT_NAMES+set}" != Xset; then 4627 COLLECT_NAMES= 4628 export COLLECT_NAMES 4629 fi 4630 ;; 4631esac 4632 4633# Determine commands to create old-style static archives. 4634old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 4635old_postinstall_cmds='chmod 644 $oldlib' 4636old_postuninstall_cmds= 4637 4638if test -n "$RANLIB"; then 4639 case $host_os in 4640 openbsd*) 4641 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 4642 ;; 4643 *) 4644 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 4645 ;; 4646 esac 4647 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 4648fi 4649 4650# Allow CC to be a program name with arguments. 4651set dummy $CC 4652compiler="$2" 4653 4654echo "$as_me:$LINENO: checking for objdir" >&5 4655echo $ECHO_N "checking for objdir... $ECHO_C" >&6 4656rm -f .libs 2>/dev/null 4657mkdir .libs 2>/dev/null 4658if test -d .libs; then 4659 objdir=.libs 4660else 4661 # MS-DOS does not allow filenames that begin with a dot. 4662 objdir=_libs 4663fi 4664rmdir .libs 2>/dev/null 4665echo "$as_me:$LINENO: result: $objdir" >&5 4666echo "${ECHO_T}$objdir" >&6 4667 4668 4669 4670# Check whether --with-pic or --without-pic was given. 4671if test "${with_pic+set}" = set; then 4672 withval="$with_pic" 4673 pic_mode="$withval" 4674else 4675 pic_mode=default 4676fi; 4677test -z "$pic_mode" && pic_mode=default 4678 4679# We assume here that the value for lt_cv_prog_cc_pic will not be cached 4680# in isolation, and that seeing it set (from the cache) indicates that 4681# the associated values are set (in the cache) correctly too. 4682echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 4683echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 4684if test "${lt_cv_prog_cc_pic+set}" = set; then 4685 echo $ECHO_N "(cached) $ECHO_C" >&6 4686else 4687 lt_cv_prog_cc_pic= 4688 lt_cv_prog_cc_shlib= 4689 lt_cv_prog_cc_wl= 4690 lt_cv_prog_cc_static= 4691 lt_cv_prog_cc_no_builtin= 4692 lt_cv_prog_cc_can_build_shared=$can_build_shared 4693 4694 if test "$GCC" = yes; then 4695 lt_cv_prog_cc_wl='-Wl,' 4696 lt_cv_prog_cc_static='-static' 4697 4698 case $host_os in 4699 aix*) 4700 # Below there is a dirty hack to force normal static linking with -ldl 4701 # The problem is because libdl dynamically linked with both libc and 4702 # libC (AIX C++ library), which obviously doesn't included in libraries 4703 # list by gcc. This cause undefined symbols with -static flags. 4704 # This hack allows C programs to be linked with "-static -ldl", but 4705 # not sure about C++ programs. 4706 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" 4707 ;; 4708 amigaos*) 4709 # FIXME: we need at least 68020 code to build shared libraries, but 4710 # adding the `-m68020' flag to GCC prevents building anything better, 4711 # like `-m68040'. 4712 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' 4713 ;; 4714 beos* | irix5* | irix6* | osf3* | osf4* | osf5*) 4715 # PIC is the default for these OSes. 4716 ;; 4717 darwin* | rhapsody*) 4718 # PIC is the default on this platform 4719 # Common symbols not allowed in MH_DYLIB files 4720 lt_cv_prog_cc_pic='-fno-common' 4721 ;; 4722 cygwin* | mingw* | pw32* | os2*) 4723 # This hack is so that the source file can tell whether it is being 4724 # built for inclusion in a dll (and should export symbols for example). 4725 lt_cv_prog_cc_pic='-DDLL_EXPORT' 4726 ;; 4727 sysv4*MP*) 4728 if test -d /usr/nec; then 4729 lt_cv_prog_cc_pic=-Kconform_pic 4730 fi 4731 ;; 4732 *) 4733 lt_cv_prog_cc_pic='-fPIC' 4734 ;; 4735 esac 4736 else 4737 # PORTME Check for PIC flags for the system compiler. 4738 case $host_os in 4739 aix3* | aix4* | aix5*) 4740 lt_cv_prog_cc_wl='-Wl,' 4741 # All AIX code is PIC. 4742 if test "$host_cpu" = ia64; then 4743 # AIX 5 now supports IA64 processor 4744 lt_cv_prog_cc_static='-Bstatic' 4745 else 4746 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' 4747 fi 4748 ;; 4749 4750 hpux9* | hpux10* | hpux11*) 4751 # Is there a better lt_cv_prog_cc_static that works with the bundled CC? 4752 lt_cv_prog_cc_wl='-Wl,' 4753 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" 4754 lt_cv_prog_cc_pic='+Z' 4755 ;; 4756 4757 irix5* | irix6*) 4758 lt_cv_prog_cc_wl='-Wl,' 4759 lt_cv_prog_cc_static='-non_shared' 4760 # PIC (with -KPIC) is the default. 4761 ;; 4762 4763 cygwin* | mingw* | pw32* | os2*) 4764 # This hack is so that the source file can tell whether it is being 4765 # built for inclusion in a dll (and should export symbols for example). 4766 lt_cv_prog_cc_pic='-DDLL_EXPORT' 4767 ;; 4768 4769 newsos6) 4770 lt_cv_prog_cc_pic='-KPIC' 4771 lt_cv_prog_cc_static='-Bstatic' 4772 ;; 4773 4774 osf3* | osf4* | osf5*) 4775 # All OSF/1 code is PIC. 4776 lt_cv_prog_cc_wl='-Wl,' 4777 lt_cv_prog_cc_static='-non_shared' 4778 ;; 4779 4780 sco3.2v5*) 4781 lt_cv_prog_cc_pic='-Kpic' 4782 lt_cv_prog_cc_static='-dn' 4783 lt_cv_prog_cc_shlib='-belf' 4784 ;; 4785 4786 solaris*) 4787 lt_cv_prog_cc_pic='-KPIC' 4788 lt_cv_prog_cc_static='-Bstatic' 4789 lt_cv_prog_cc_wl='-Wl,' 4790 ;; 4791 4792 sunos4*) 4793 lt_cv_prog_cc_pic='-PIC' 4794 lt_cv_prog_cc_static='-Bstatic' 4795 lt_cv_prog_cc_wl='-Qoption ld ' 4796 ;; 4797 4798 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4799 lt_cv_prog_cc_pic='-KPIC' 4800 lt_cv_prog_cc_static='-Bstatic' 4801 if test "x$host_vendor" = xsni; then 4802 lt_cv_prog_cc_wl='-LD' 4803 else 4804 lt_cv_prog_cc_wl='-Wl,' 4805 fi 4806 ;; 4807 4808 uts4*) 4809 lt_cv_prog_cc_pic='-pic' 4810 lt_cv_prog_cc_static='-Bstatic' 4811 ;; 4812 4813 sysv4*MP*) 4814 if test -d /usr/nec ;then 4815 lt_cv_prog_cc_pic='-Kconform_pic' 4816 lt_cv_prog_cc_static='-Bstatic' 4817 fi 4818 ;; 4819 4820 *) 4821 lt_cv_prog_cc_can_build_shared=no 4822 ;; 4823 esac 4824 fi 4825 4826fi 4827 4828if test -z "$lt_cv_prog_cc_pic"; then 4829 echo "$as_me:$LINENO: result: none" >&5 4830echo "${ECHO_T}none" >&6 4831else 4832 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 4833echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 4834 4835 # Check to make sure the pic_flag actually works. 4836 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 4837echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 4838 if test "${lt_cv_prog_cc_pic_works+set}" = set; then 4839 echo $ECHO_N "(cached) $ECHO_C" >&6 4840else 4841 save_CFLAGS="$CFLAGS" 4842 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 4843 cat >conftest.$ac_ext <<_ACEOF 4844#line $LINENO "configure" 4845#include "confdefs.h" 4846 4847#ifdef F77_DUMMY_MAIN 4848# ifdef __cplusplus 4849 extern "C" 4850# endif 4851 int F77_DUMMY_MAIN() { return 1; } 4852#endif 4853int 4854main () 4855{ 4856 4857 ; 4858 return 0; 4859} 4860_ACEOF 4861rm -f conftest.$ac_objext 4862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4863 (eval $ac_compile) 2>&5 4864 ac_status=$? 4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4866 (exit $ac_status); } && 4867 { ac_try='test -s conftest.$ac_objext' 4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4869 (eval $ac_try) 2>&5 4870 ac_status=$? 4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4872 (exit $ac_status); }; }; then 4873 case $host_os in 4874 hpux9* | hpux10* | hpux11*) 4875 # On HP-UX, both CC and GCC only warn that PIC is supported... then 4876 # they create non-PIC objects. So, if there were any warnings, we 4877 # assume that PIC is not supported. 4878 if test -s conftest.err; then 4879 lt_cv_prog_cc_pic_works=no 4880 else 4881 lt_cv_prog_cc_pic_works=yes 4882 fi 4883 ;; 4884 *) 4885 lt_cv_prog_cc_pic_works=yes 4886 ;; 4887 esac 4888 4889else 4890 echo "$as_me: failed program was:" >&5 4891cat conftest.$ac_ext >&5 4892 lt_cv_prog_cc_pic_works=no 4893 4894fi 4895rm -f conftest.$ac_objext conftest.$ac_ext 4896 CFLAGS="$save_CFLAGS" 4897 4898fi 4899 4900 4901 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 4902 lt_cv_prog_cc_pic= 4903 lt_cv_prog_cc_can_build_shared=no 4904 else 4905 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 4906 fi 4907 4908 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 4909echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 4910fi 4911 4912# Check for any special shared library compilation flags. 4913if test -n "$lt_cv_prog_cc_shlib"; then 4914 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 4915echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} 4916 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : 4917 else 4918 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 4919echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 4920 lt_cv_prog_cc_can_build_shared=no 4921 fi 4922fi 4923 4924echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 4925echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 4926if test "${lt_cv_prog_cc_static_works+set}" = set; then 4927 echo $ECHO_N "(cached) $ECHO_C" >&6 4928else 4929 lt_cv_prog_cc_static_works=no 4930 save_LDFLAGS="$LDFLAGS" 4931 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 4932 cat >conftest.$ac_ext <<_ACEOF 4933#line $LINENO "configure" 4934#include "confdefs.h" 4935 4936#ifdef F77_DUMMY_MAIN 4937# ifdef __cplusplus 4938 extern "C" 4939# endif 4940 int F77_DUMMY_MAIN() { return 1; } 4941#endif 4942int 4943main () 4944{ 4945 4946 ; 4947 return 0; 4948} 4949_ACEOF 4950rm -f conftest.$ac_objext conftest$ac_exeext 4951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4952 (eval $ac_link) 2>&5 4953 ac_status=$? 4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4955 (exit $ac_status); } && 4956 { ac_try='test -s conftest$ac_exeext' 4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4958 (eval $ac_try) 2>&5 4959 ac_status=$? 4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4961 (exit $ac_status); }; }; then 4962 lt_cv_prog_cc_static_works=yes 4963else 4964 echo "$as_me: failed program was:" >&5 4965cat conftest.$ac_ext >&5 4966fi 4967rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4968 LDFLAGS="$save_LDFLAGS" 4969 4970fi 4971 4972 4973# Belt *and* braces to stop my trousers falling down: 4974test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 4975echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 4976echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 4977 4978pic_flag="$lt_cv_prog_cc_pic" 4979special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 4980wl="$lt_cv_prog_cc_wl" 4981link_static_flag="$lt_cv_prog_cc_static" 4982no_builtin_flag="$lt_cv_prog_cc_no_builtin" 4983can_build_shared="$lt_cv_prog_cc_can_build_shared" 4984 4985 4986# Check to see if options -o and -c are simultaneously supported by compiler 4987echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 4988echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 4989if test "${lt_cv_compiler_c_o+set}" = set; then 4990 echo $ECHO_N "(cached) $ECHO_C" >&6 4991else 4992 4993$rm -r conftest 2>/dev/null 4994mkdir conftest 4995cd conftest 4996echo "int some_variable = 0;" > conftest.$ac_ext 4997mkdir out 4998# According to Tom Tromey, Ian Lance Taylor reported there are C compilers 4999# that will create temporary files in the current directory regardless of 5000# the output directory. Thus, making CWD read-only will cause this test 5001# to fail, enabling locking or at least warning the user not to do parallel 5002# builds. 5003chmod -w . 5004save_CFLAGS="$CFLAGS" 5005CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 5006compiler_c_o=no 5007if { (eval echo configure:5007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 5008 # The compiler can only warn and ignore the option if not recognized 5009 # So say no if there are warnings 5010 if test -s out/conftest.err; then 5011 lt_cv_compiler_c_o=no 5012 else 5013 lt_cv_compiler_c_o=yes 5014 fi 5015else 5016 # Append any errors to the config.log. 5017 cat out/conftest.err 1>&5 5018 lt_cv_compiler_c_o=no 5019fi 5020CFLAGS="$save_CFLAGS" 5021chmod u+w . 5022$rm conftest* out/* 5023rmdir out 5024cd .. 5025rmdir conftest 5026$rm -r conftest 2>/dev/null 5027 5028fi 5029 5030compiler_c_o=$lt_cv_compiler_c_o 5031echo "$as_me:$LINENO: result: $compiler_c_o" >&5 5032echo "${ECHO_T}$compiler_c_o" >&6 5033 5034if test x"$compiler_c_o" = x"yes"; then 5035 # Check to see if we can write to a .lo 5036 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 5037echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 5038 if test "${lt_cv_compiler_o_lo+set}" = set; then 5039 echo $ECHO_N "(cached) $ECHO_C" >&6 5040else 5041 5042 lt_cv_compiler_o_lo=no 5043 save_CFLAGS="$CFLAGS" 5044 CFLAGS="$CFLAGS -c -o conftest.lo" 5045 save_objext="$ac_objext" 5046 ac_objext=lo 5047 cat >conftest.$ac_ext <<_ACEOF 5048#line $LINENO "configure" 5049#include "confdefs.h" 5050 5051#ifdef F77_DUMMY_MAIN 5052# ifdef __cplusplus 5053 extern "C" 5054# endif 5055 int F77_DUMMY_MAIN() { return 1; } 5056#endif 5057int 5058main () 5059{ 5060int some_variable = 0; 5061 ; 5062 return 0; 5063} 5064_ACEOF 5065rm -f conftest.$ac_objext 5066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5067 (eval $ac_compile) 2>&5 5068 ac_status=$? 5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5070 (exit $ac_status); } && 5071 { ac_try='test -s conftest.$ac_objext' 5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5073 (eval $ac_try) 2>&5 5074 ac_status=$? 5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5076 (exit $ac_status); }; }; then 5077 # The compiler can only warn and ignore the option if not recognized 5078 # So say no if there are warnings 5079 if test -s conftest.err; then 5080 lt_cv_compiler_o_lo=no 5081 else 5082 lt_cv_compiler_o_lo=yes 5083 fi 5084 5085else 5086 echo "$as_me: failed program was:" >&5 5087cat conftest.$ac_ext >&5 5088fi 5089rm -f conftest.$ac_objext conftest.$ac_ext 5090 ac_objext="$save_objext" 5091 CFLAGS="$save_CFLAGS" 5092 5093fi 5094 5095 compiler_o_lo=$lt_cv_compiler_o_lo 5096 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 5097echo "${ECHO_T}$compiler_o_lo" >&6 5098else 5099 compiler_o_lo=no 5100fi 5101 5102# Check to see if we can do hard links to lock some files if needed 5103hard_links="nottested" 5104if test "$compiler_c_o" = no && test "$need_locks" != no; then 5105 # do not overwrite the value of need_locks provided by the user 5106 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 5107echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 5108 hard_links=yes 5109 $rm conftest* 5110 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5111 touch conftest.a 5112 ln conftest.a conftest.b 2>&5 || hard_links=no 5113 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5114 echo "$as_me:$LINENO: result: $hard_links" >&5 5115echo "${ECHO_T}$hard_links" >&6 5116 if test "$hard_links" = no; then 5117 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 5118echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 5119 need_locks=warn 5120 fi 5121else 5122 need_locks=no 5123fi 5124 5125if test "$GCC" = yes; then 5126 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 5127 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 5128echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 5129 echo "int some_variable = 0;" > conftest.$ac_ext 5130 save_CFLAGS="$CFLAGS" 5131 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 5132 compiler_rtti_exceptions=no 5133 cat >conftest.$ac_ext <<_ACEOF 5134#line $LINENO "configure" 5135#include "confdefs.h" 5136 5137#ifdef F77_DUMMY_MAIN 5138# ifdef __cplusplus 5139 extern "C" 5140# endif 5141 int F77_DUMMY_MAIN() { return 1; } 5142#endif 5143int 5144main () 5145{ 5146int some_variable = 0; 5147 ; 5148 return 0; 5149} 5150_ACEOF 5151rm -f conftest.$ac_objext 5152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5153 (eval $ac_compile) 2>&5 5154 ac_status=$? 5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5156 (exit $ac_status); } && 5157 { ac_try='test -s conftest.$ac_objext' 5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5159 (eval $ac_try) 2>&5 5160 ac_status=$? 5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5162 (exit $ac_status); }; }; then 5163 # The compiler can only warn and ignore the option if not recognized 5164 # So say no if there are warnings 5165 if test -s conftest.err; then 5166 compiler_rtti_exceptions=no 5167 else 5168 compiler_rtti_exceptions=yes 5169 fi 5170 5171else 5172 echo "$as_me: failed program was:" >&5 5173cat conftest.$ac_ext >&5 5174fi 5175rm -f conftest.$ac_objext conftest.$ac_ext 5176 CFLAGS="$save_CFLAGS" 5177 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 5178echo "${ECHO_T}$compiler_rtti_exceptions" >&6 5179 5180 if test "$compiler_rtti_exceptions" = "yes"; then 5181 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 5182 else 5183 no_builtin_flag=' -fno-builtin' 5184 fi 5185fi 5186 5187# See if the linker supports building shared libraries. 5188echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 5189echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 5190 5191allow_undefined_flag= 5192no_undefined_flag= 5193need_lib_prefix=unknown 5194need_version=unknown 5195# when you set need_version to no, make sure it does not cause -set_version 5196# flags to be left without arguments 5197archive_cmds= 5198archive_expsym_cmds= 5199old_archive_from_new_cmds= 5200old_archive_from_expsyms_cmds= 5201export_dynamic_flag_spec= 5202whole_archive_flag_spec= 5203thread_safe_flag_spec= 5204hardcode_into_libs=no 5205hardcode_libdir_flag_spec= 5206hardcode_libdir_separator= 5207hardcode_direct=no 5208hardcode_minus_L=no 5209hardcode_shlibpath_var=unsupported 5210runpath_var= 5211link_all_deplibs=unknown 5212always_export_symbols=no 5213export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' 5214# include_expsyms should be a list of space-separated symbols to be *always* 5215# included in the symbol list 5216include_expsyms= 5217# exclude_expsyms can be an egrep regular expression of symbols to exclude 5218# it will be wrapped by ` (' and `)$', so one must not match beginning or 5219# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 5220# as well as any symbol that contains `d'. 5221exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 5222# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5223# platforms (ab)use it in PIC code, but their linkers get confused if 5224# the symbol is explicitly referenced. Since portable code cannot 5225# rely on this symbol name, it's probably fine to never include it in 5226# preloaded symbol tables. 5227extract_expsyms_cmds= 5228 5229case $host_os in 5230cygwin* | mingw* | pw32*) 5231 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5232 # When not using gcc, we currently assume that we are using 5233 # Microsoft Visual C++. 5234 if test "$GCC" != yes; then 5235 with_gnu_ld=no 5236 fi 5237 ;; 5238openbsd*) 5239 with_gnu_ld=no 5240 ;; 5241esac 5242 5243ld_shlibs=yes 5244if test "$with_gnu_ld" = yes; then 5245 # If archive_cmds runs LD, not CC, wlarc should be empty 5246 wlarc='${wl}' 5247 5248 # See if GNU ld supports shared libraries. 5249 case $host_os in 5250 aix3* | aix4* | aix5*) 5251 # On AIX, the GNU linker is very broken 5252 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. 5253 ld_shlibs=no 5254 cat <<EOF 1>&2 5255 5256*** Warning: the GNU linker, at least up to release 2.9.1, is reported 5257*** to be unable to reliably create shared libraries on AIX. 5258*** Therefore, libtool is disabling shared libraries support. If you 5259*** really care for shared libraries, you may want to modify your PATH 5260*** so that a non-GNU linker is found, and then restart. 5261 5262EOF 5263 ;; 5264 5265 amigaos*) 5266 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)' 5267 hardcode_libdir_flag_spec='-L$libdir' 5268 hardcode_minus_L=yes 5269 5270 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 5271 # that the semantics of dynamic libraries on AmigaOS, at least up 5272 # to version 4, is to share data among multiple programs linked 5273 # with the same dynamic library. Since this doesn't match the 5274 # behavior of shared libraries on other platforms, we can use 5275 # them. 5276 ld_shlibs=no 5277 ;; 5278 5279 beos*) 5280 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 5281 allow_undefined_flag=unsupported 5282 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5283 # support --undefined. This deserves some investigation. FIXME 5284 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5285 else 5286 ld_shlibs=no 5287 fi 5288 ;; 5289 5290 cygwin* | mingw* | pw32*) 5291 # hardcode_libdir_flag_spec is actually meaningless, as there is 5292 # no search path for DLLs. 5293 hardcode_libdir_flag_spec='-L$libdir' 5294 allow_undefined_flag=unsupported 5295 always_export_symbols=yes 5296 5297 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ 5298 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ 5299 test -f $output_objdir/impgen.exe || (cd $output_objdir && \ 5300 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ 5301 else $CC -o impgen impgen.c ; fi)~ 5302 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' 5303 5304 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' 5305 5306 # cygwin and mingw dlls have different entry points and sets of symbols 5307 # to exclude. 5308 # FIXME: what about values for MSVC? 5309 dll_entry=__cygwin_dll_entry@12 5310 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ 5311 case $host_os in 5312 mingw*) 5313 # mingw values 5314 dll_entry=_DllMainCRTStartup@12 5315 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ 5316 ;; 5317 esac 5318 5319 # mingw and cygwin differ, and it's simplest to just exclude the union 5320 # of the two symbol sets. 5321 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 5322 5323 # recent cygwin and mingw systems supply a stub DllMain which the user 5324 # can override, but on older systems we have to supply one (in ltdll.c) 5325 if test "x$lt_cv_need_dllmain" = "xyes"; then 5326 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " 5327 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ 5328 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' 5329 else 5330 ltdll_obj= 5331 ltdll_cmds= 5332 fi 5333 5334 # Extract the symbol export list from an `--export-all' def file, 5335 # then regenerate the def file from the symbol export list, so that 5336 # the compiled dll only exports the symbol export list. 5337 # Be careful not to strip the DATA tag left be newer dlltools. 5338 export_symbols_cmds="$ltdll_cmds"' 5339 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ 5340 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' 5341 5342 # If the export-symbols file already is a .def file (1st line 5343 # is EXPORTS), use it as is. 5344 # If DATA tags from a recent dlltool are present, honour them! 5345 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then 5346 cp $export_symbols $output_objdir/$soname-def; 5347 else 5348 echo EXPORTS > $output_objdir/$soname-def; 5349 _lt_hint=1; 5350 cat $export_symbols | while read symbol; do 5351 set dummy \$symbol; 5352 case \$# in 5353 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; 5354 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; 5355 esac; 5356 _lt_hint=`expr 1 + \$_lt_hint`; 5357 done; 5358 fi~ 5359 '"$ltdll_cmds"' 5360 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 5361 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ 5362 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 5363 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ 5364 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' 5365 ;; 5366 5367 netbsd*) 5368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5369 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5370 wlarc= 5371 else 5372 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5373 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5374 fi 5375 ;; 5376 5377 solaris* | sysv5*) 5378 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then 5379 ld_shlibs=no 5380 cat <<EOF 1>&2 5381 5382*** Warning: The releases 2.8.* of the GNU linker cannot reliably 5383*** create shared libraries on Solaris systems. Therefore, libtool 5384*** is disabling shared libraries support. We urge you to upgrade GNU 5385*** binutils to release 2.9.1 or newer. Another option is to modify 5386*** your PATH or compiler configuration so that the native linker is 5387*** used, and then restart. 5388 5389EOF 5390 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 5391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5393 else 5394 ld_shlibs=no 5395 fi 5396 ;; 5397 5398 sunos4*) 5399 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5400 wlarc= 5401 hardcode_direct=yes 5402 hardcode_shlibpath_var=no 5403 ;; 5404 5405 *) 5406 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 5407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5408 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5409 else 5410 ld_shlibs=no 5411 fi 5412 ;; 5413 esac 5414 5415 if test "$ld_shlibs" = yes; then 5416 runpath_var=LD_RUN_PATH 5417 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 5418 export_dynamic_flag_spec='${wl}--export-dynamic' 5419 case $host_os in 5420 cygwin* | mingw* | pw32*) 5421 # dlltool doesn't understand --whole-archive et. al. 5422 whole_archive_flag_spec= 5423 ;; 5424 *) 5425 # ancient GNU ld didn't support --whole-archive et. al. 5426 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then 5427 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5428 else 5429 whole_archive_flag_spec= 5430 fi 5431 ;; 5432 esac 5433 fi 5434else 5435 # PORTME fill in a description of your system's linker (not GNU ld) 5436 case $host_os in 5437 aix3*) 5438 allow_undefined_flag=unsupported 5439 always_export_symbols=yes 5440 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' 5441 # Note: this linker hardcodes the directories in LIBPATH if there 5442 # are no directories specified by -L. 5443 hardcode_minus_L=yes 5444 if test "$GCC" = yes && test -z "$link_static_flag"; then 5445 # Neither direct hardcoding nor static linking is supported with a 5446 # broken collect2. 5447 hardcode_direct=unsupported 5448 fi 5449 ;; 5450 5451 aix4* | aix5*) 5452 if test "$host_cpu" = ia64; then 5453 # On IA64, the linker does run time linking by default, so we don't 5454 # have to do anything special. 5455 aix_use_runtimelinking=no 5456 exp_sym_flag='-Bexport' 5457 no_entry_flag="" 5458 else 5459 aix_use_runtimelinking=no 5460 5461 # Test if we are trying to use run time linking or normal 5462 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5463 # need to do runtime linking. 5464 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 5465 for ld_flag in $LDFLAGS; do 5466 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 5467 aix_use_runtimelinking=yes 5468 break 5469 fi 5470 done 5471 esac 5472 5473 exp_sym_flag='-bexport' 5474 no_entry_flag='-bnoentry' 5475 fi 5476 5477 # When large executables or shared objects are built, AIX ld can 5478 # have problems creating the table of contents. If linking a library 5479 # or program results in "error TOC overflow" add -mminimal-toc to 5480 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5481 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5482 5483 hardcode_direct=yes 5484 archive_cmds='' 5485 hardcode_libdir_separator=':' 5486 if test "$GCC" = yes; then 5487 case $host_os in aix4.[012]|aix4.[012].*) 5488 collect2name=`${CC} -print-prog-name=collect2` 5489 if test -f "$collect2name" && \ 5490 strings "$collect2name" | grep resolve_lib_name >/dev/null 5491 then 5492 # We have reworked collect2 5493 hardcode_direct=yes 5494 else 5495 # We have old collect2 5496 hardcode_direct=unsupported 5497 # It fails to find uninstalled libraries when the uninstalled 5498 # path is not listed in the libpath. Setting hardcode_minus_L 5499 # to unsupported forces relinking 5500 hardcode_minus_L=yes 5501 hardcode_libdir_flag_spec='-L$libdir' 5502 hardcode_libdir_separator= 5503 fi 5504 esac 5505 5506 shared_flag='-shared' 5507 else 5508 # not using gcc 5509 if test "$host_cpu" = ia64; then 5510 shared_flag='${wl}-G' 5511 else 5512 if test "$aix_use_runtimelinking" = yes; then 5513 shared_flag='${wl}-G' 5514 else 5515 shared_flag='${wl}-bM:SRE' 5516 fi 5517 fi 5518 fi 5519 5520 # It seems that -bexpall can do strange things, so it is better to 5521 # generate a list of symbols to export. 5522 always_export_symbols=yes 5523 if test "$aix_use_runtimelinking" = yes; then 5524 # Warning - without using the other runtime loading flags (-brtl), 5525 # -berok will link without error, but may produce a broken library. 5526 allow_undefined_flag='-berok' 5527 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' 5528 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 5529 else 5530 if test "$host_cpu" = ia64; then 5531 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 5532 allow_undefined_flag="-z nodefs" 5533 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 5534 else 5535 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' 5536 # Warning - without using the other run time loading flags, 5537 # -berok will link without error, but may produce a broken library. 5538 allow_undefined_flag='${wl}-berok' 5539 # This is a bit strange, but is similar to how AIX traditionally builds 5540 # it's shared libraries. 5541 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' 5542 fi 5543 fi 5544 ;; 5545 5546 amigaos*) 5547 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)' 5548 hardcode_libdir_flag_spec='-L$libdir' 5549 hardcode_minus_L=yes 5550 # see comment about different semantics on the GNU ld section 5551 ld_shlibs=no 5552 ;; 5553 5554 cygwin* | mingw* | pw32*) 5555 # When not using gcc, we currently assume that we are using 5556 # Microsoft Visual C++. 5557 # hardcode_libdir_flag_spec is actually meaningless, as there is 5558 # no search path for DLLs. 5559 hardcode_libdir_flag_spec=' ' 5560 allow_undefined_flag=unsupported 5561 # Tell ltmain to make .lib files, not .a files. 5562 libext=lib 5563 # FIXME: Setting linknames here is a bad hack. 5564 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 5565 # The linker will automatically build a .lib file if we build a DLL. 5566 old_archive_from_new_cmds='true' 5567 # FIXME: Should let the user specify the lib program. 5568 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 5569 fix_srcfile_path='`cygpath -w "$srcfile"`' 5570 ;; 5571 5572 darwin* | rhapsody*) 5573 case "$host_os" in 5574 rhapsody* | darwin1.[012]) 5575 allow_undefined_flag='-undefined suppress' 5576 ;; 5577 *) # Darwin 1.3 on 5578 allow_undefined_flag='-flat_namespace -undefined suppress' 5579 ;; 5580 esac 5581 # FIXME: Relying on posixy $() will cause problems for 5582 # cross-compilation, but unfortunately the echo tests do not 5583 # yet detect zsh echo's removal of \ escapes. 5584 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' 5585 # We need to add '_' to the symbols in $export_symbols first 5586 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' 5587 hardcode_direct=yes 5588 hardcode_shlibpath_var=no 5589 whole_archive_flag_spec='-all_load $convenience' 5590 ;; 5591 5592 freebsd1*) 5593 ld_shlibs=no 5594 ;; 5595 5596 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 5597 # support. Future versions do this automatically, but an explicit c++rt0.o 5598 # does not break anything, and helps significantly (at the cost of a little 5599 # extra space). 5600 freebsd2.2*) 5601 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 5602 hardcode_libdir_flag_spec='-R$libdir' 5603 hardcode_direct=yes 5604 hardcode_shlibpath_var=no 5605 ;; 5606 5607 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 5608 freebsd2*) 5609 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5610 hardcode_direct=yes 5611 hardcode_minus_L=yes 5612 hardcode_shlibpath_var=no 5613 ;; 5614 5615 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5616 freebsd*) 5617 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 5618 hardcode_libdir_flag_spec='-R$libdir' 5619 hardcode_direct=yes 5620 hardcode_shlibpath_var=no 5621 ;; 5622 5623 hpux9* | hpux10* | hpux11*) 5624 case $host_os in 5625 hpux9*) 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' ;; 5626 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; 5627 esac 5628 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 5629 hardcode_libdir_separator=: 5630 hardcode_direct=yes 5631 hardcode_minus_L=yes # Not in the search PATH, but as the default 5632 # location of the library. 5633 export_dynamic_flag_spec='${wl}-E' 5634 ;; 5635 5636 irix5* | irix6*) 5637 if test "$GCC" = yes; then 5638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5639 else 5640 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 5641 fi 5642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 5643 hardcode_libdir_separator=: 5644 link_all_deplibs=yes 5645 ;; 5646 5647 netbsd*) 5648 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5649 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 5650 else 5651 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 5652 fi 5653 hardcode_libdir_flag_spec='-R$libdir' 5654 hardcode_direct=yes 5655 hardcode_shlibpath_var=no 5656 ;; 5657 5658 newsos6) 5659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5660 hardcode_direct=yes 5661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 5662 hardcode_libdir_separator=: 5663 hardcode_shlibpath_var=no 5664 ;; 5665 5666 openbsd*) 5667 hardcode_direct=yes 5668 hardcode_shlibpath_var=no 5669 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5670 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 5671 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 5672 export_dynamic_flag_spec='${wl}-E' 5673 else 5674 case "$host_os" in 5675 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 5676 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5677 hardcode_libdir_flag_spec='-R$libdir' 5678 ;; 5679 *) 5680 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 5681 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 5682 ;; 5683 esac 5684 fi 5685 ;; 5686 5687 os2*) 5688 hardcode_libdir_flag_spec='-L$libdir' 5689 hardcode_minus_L=yes 5690 allow_undefined_flag=unsupported 5691 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' 5692 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 5693 ;; 5694 5695 osf3*) 5696 if test "$GCC" = yes; then 5697 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 5698 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5699 else 5700 allow_undefined_flag=' -expect_unresolved \*' 5701 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 5702 fi 5703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 5704 hardcode_libdir_separator=: 5705 ;; 5706 5707 osf4* | osf5*) # as osf3* with the addition of -msym flag 5708 if test "$GCC" = yes; then 5709 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 5710 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5711 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 5712 else 5713 allow_undefined_flag=' -expect_unresolved \*' 5714 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 5715 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 5716 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 5717 5718 #Both c and cxx compiler support -rpath directly 5719 hardcode_libdir_flag_spec='-rpath $libdir' 5720 fi 5721 hardcode_libdir_separator=: 5722 ;; 5723 5724 sco3.2v5*) 5725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5726 hardcode_shlibpath_var=no 5727 runpath_var=LD_RUN_PATH 5728 hardcode_runpath_var=yes 5729 export_dynamic_flag_spec='${wl}-Bexport' 5730 ;; 5731 5732 solaris*) 5733 # gcc --version < 3.0 without binutils cannot create self contained 5734 # shared libraries reliably, requiring libgcc.a to resolve some of 5735 # the object symbols generated in some cases. Libraries that use 5736 # assert need libgcc.a to resolve __eprintf, for example. Linking 5737 # a copy of libgcc.a into every shared library to guarantee resolving 5738 # such symbols causes other problems: According to Tim Van Holder 5739 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate 5740 # (to the application) exception stack for one thing. 5741 no_undefined_flag=' -z defs' 5742 if test "$GCC" = yes; then 5743 case `$CC --version 2>/dev/null` in 5744 [12].*) 5745 cat <<EOF 1>&2 5746 5747*** Warning: Releases of GCC earlier than version 3.0 cannot reliably 5748*** create self contained shared libraries on Solaris systems, without 5749*** introducing a dependency on libgcc.a. Therefore, libtool is disabling 5750*** -no-undefined support, which will at least allow you to build shared 5751*** libraries. However, you may find that when you link such libraries 5752*** into an application without using GCC, you have to manually add 5753*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to 5754*** upgrade to a newer version of GCC. Another option is to rebuild your 5755*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. 5756 5757EOF 5758 no_undefined_flag= 5759 ;; 5760 esac 5761 fi 5762 # $CC -shared without GNU ld will not create a library from C++ 5763 # object files and a static libstdc++, better avoid it by now 5764 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5765 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5766 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 5767 hardcode_libdir_flag_spec='-R$libdir' 5768 hardcode_shlibpath_var=no 5769 case $host_os in 5770 solaris2.[0-5] | solaris2.[0-5].*) ;; 5771 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 5772 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 5773 esac 5774 link_all_deplibs=yes 5775 ;; 5776 5777 sunos4*) 5778 if test "x$host_vendor" = xsequent; then 5779 # Use $CC to link under sequent, because it throws in some extra .o 5780 # files that make .init and .fini sections work. 5781 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 5782 else 5783 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 5784 fi 5785 hardcode_libdir_flag_spec='-L$libdir' 5786 hardcode_direct=yes 5787 hardcode_minus_L=yes 5788 hardcode_shlibpath_var=no 5789 ;; 5790 5791 sysv4) 5792 if test "x$host_vendor" = xsno; then 5793 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' 5794 hardcode_direct=yes # is this really true??? 5795 else 5796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5797 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 5798 fi 5799 runpath_var='LD_RUN_PATH' 5800 hardcode_shlibpath_var=no 5801 ;; 5802 5803 sysv4.3*) 5804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5805 hardcode_shlibpath_var=no 5806 export_dynamic_flag_spec='-Bexport' 5807 ;; 5808 5809 sysv5*) 5810 no_undefined_flag=' -z text' 5811 # $CC -shared without GNU ld will not create a library from C++ 5812 # object files and a static libstdc++, better avoid it by now 5813 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5814 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5815 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 5816 hardcode_libdir_flag_spec= 5817 hardcode_shlibpath_var=no 5818 runpath_var='LD_RUN_PATH' 5819 ;; 5820 5821 uts4*) 5822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5823 hardcode_libdir_flag_spec='-L$libdir' 5824 hardcode_shlibpath_var=no 5825 ;; 5826 5827 dgux*) 5828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5829 hardcode_libdir_flag_spec='-L$libdir' 5830 hardcode_shlibpath_var=no 5831 ;; 5832 5833 sysv4*MP*) 5834 if test -d /usr/nec; then 5835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5836 hardcode_shlibpath_var=no 5837 runpath_var=LD_RUN_PATH 5838 hardcode_runpath_var=yes 5839 ld_shlibs=yes 5840 fi 5841 ;; 5842 5843 sysv4.2uw2*) 5844 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 5845 hardcode_direct=yes 5846 hardcode_minus_L=no 5847 hardcode_shlibpath_var=no 5848 hardcode_runpath_var=yes 5849 runpath_var=LD_RUN_PATH 5850 ;; 5851 5852 sysv5uw7* | unixware7*) 5853 no_undefined_flag='${wl}-z ${wl}text' 5854 if test "$GCC" = yes; then 5855 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5856 else 5857 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5858 fi 5859 runpath_var='LD_RUN_PATH' 5860 hardcode_shlibpath_var=no 5861 ;; 5862 5863 *) 5864 ld_shlibs=no 5865 ;; 5866 esac 5867fi 5868echo "$as_me:$LINENO: result: $ld_shlibs" >&5 5869echo "${ECHO_T}$ld_shlibs" >&6 5870test "$ld_shlibs" = no && can_build_shared=no 5871 5872# Check hardcoding attributes. 5873echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 5874echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 5875hardcode_action= 5876if test -n "$hardcode_libdir_flag_spec" || \ 5877 test -n "$runpath_var"; then 5878 5879 # We can hardcode non-existant directories. 5880 if test "$hardcode_direct" != no && 5881 # If the only mechanism to avoid hardcoding is shlibpath_var, we 5882 # have to relink, otherwise we might link with an installed library 5883 # when we should be linking with a yet-to-be-installed one 5884 ## test "$hardcode_shlibpath_var" != no && 5885 test "$hardcode_minus_L" != no; then 5886 # Linking always hardcodes the temporary library directory. 5887 hardcode_action=relink 5888 else 5889 # We can link without hardcoding, and we can hardcode nonexisting dirs. 5890 hardcode_action=immediate 5891 fi 5892else 5893 # We cannot hardcode anything, or else we can only hardcode existing 5894 # directories. 5895 hardcode_action=unsupported 5896fi 5897echo "$as_me:$LINENO: result: $hardcode_action" >&5 5898echo "${ECHO_T}$hardcode_action" >&6 5899 5900striplib= 5901old_striplib= 5902echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 5903echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 5904if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 5905 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 5906 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 5907 echo "$as_me:$LINENO: result: yes" >&5 5908echo "${ECHO_T}yes" >&6 5909else 5910 echo "$as_me:$LINENO: result: no" >&5 5911echo "${ECHO_T}no" >&6 5912fi 5913 5914reload_cmds='$LD$reload_flag -o $output$reload_objs' 5915test -z "$deplibs_check_method" && deplibs_check_method=unknown 5916 5917# PORTME Fill in your ld.so characteristics 5918echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 5919echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 5920library_names_spec= 5921libname_spec='lib$name' 5922soname_spec= 5923postinstall_cmds= 5924postuninstall_cmds= 5925finish_cmds= 5926finish_eval= 5927shlibpath_var= 5928shlibpath_overrides_runpath=unknown 5929version_type=none 5930dynamic_linker="$host_os ld.so" 5931sys_lib_dlsearch_path_spec="/lib /usr/lib" 5932sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 5933 5934case $host_os in 5935aix3*) 5936 version_type=linux 5937 library_names_spec='${libname}${release}.so$versuffix $libname.a' 5938 shlibpath_var=LIBPATH 5939 5940 # AIX has no versioning support, so we append a major version to the name. 5941 soname_spec='${libname}${release}.so$major' 5942 ;; 5943 5944aix4* | aix5*) 5945 version_type=linux 5946 if test "$host_cpu" = ia64; then 5947 # AIX 5 supports IA64 5948 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' 5949 shlibpath_var=LD_LIBRARY_PATH 5950 else 5951 # With GCC up to 2.95.x, collect2 would create an import file 5952 # for dependence libraries. The import file would start with 5953 # the line `#! .'. This would cause the generated library to 5954 # depend on `.', always an invalid library. This was fixed in 5955 # development snapshots of GCC prior to 3.0. 5956 case $host_os in 5957 aix4 | aix4.[01] | aix4.[01].*) 5958 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 5959 echo ' yes ' 5960 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 5961 : 5962 else 5963 can_build_shared=no 5964 fi 5965 ;; 5966 esac 5967 # AIX (on Power*) has no versioning support, so currently we can 5968 # not hardcode correct soname into executable. Probably we can 5969 # add versioning support to collect2, so additional links can 5970 # be useful in future. 5971 if test "$aix_use_runtimelinking" = yes; then 5972 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 5973 # instead of lib<name>.a to let people know that these are not 5974 # typical AIX shared libraries. 5975 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 5976 else 5977 # We preserve .a as extension for shared libraries through AIX4.2 5978 # and later when we are not doing run time linking. 5979 library_names_spec='${libname}${release}.a $libname.a' 5980 soname_spec='${libname}${release}.so$major' 5981 fi 5982 shlibpath_var=LIBPATH 5983 fi 5984 ;; 5985 5986amigaos*) 5987 library_names_spec='$libname.ixlibrary $libname.a' 5988 # Create ${libname}_ixlibrary.a entries in /sys/libs. 5989 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' 5990 ;; 5991 5992beos*) 5993 library_names_spec='${libname}.so' 5994 dynamic_linker="$host_os ld.so" 5995 shlibpath_var=LIBRARY_PATH 5996 ;; 5997 5998bsdi4*) 5999 version_type=linux 6000 need_version=no 6001 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6002 soname_spec='${libname}${release}.so$major' 6003 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 6004 shlibpath_var=LD_LIBRARY_PATH 6005 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 6006 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 6007 export_dynamic_flag_spec=-rdynamic 6008 # the default ld.so.conf also contains /usr/contrib/lib and 6009 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 6010 # libtool to hard-code these into programs 6011 ;; 6012 6013cygwin* | mingw* | pw32*) 6014 version_type=windows 6015 need_version=no 6016 need_lib_prefix=no 6017 case $GCC,$host_os in 6018 yes,cygwin*) 6019 library_names_spec='$libname.dll.a' 6020 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 6021 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ 6022 dldir=$destdir/`dirname \$dlpath`~ 6023 test -d \$dldir || mkdir -p \$dldir~ 6024 $install_prog .libs/$dlname \$dldir/$dlname' 6025 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ 6026 dlpath=$dir/\$dldll~ 6027 $rm \$dlpath' 6028 ;; 6029 yes,mingw*) 6030 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 6031 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` 6032 ;; 6033 yes,pw32*) 6034 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' 6035 ;; 6036 *) 6037 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' 6038 ;; 6039 esac 6040 dynamic_linker='Win32 ld.exe' 6041 # FIXME: first we should search . and the directory the executable is in 6042 shlibpath_var=PATH 6043 ;; 6044 6045darwin* | rhapsody*) 6046 dynamic_linker="$host_os dyld" 6047 version_type=darwin 6048 need_lib_prefix=no 6049 need_version=no 6050 # FIXME: Relying on posixy $() will cause problems for 6051 # cross-compilation, but unfortunately the echo tests do not 6052 # yet detect zsh echo's removal of \ escapes. 6053 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' 6054 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' 6055 shlibpath_overrides_runpath=yes 6056 shlibpath_var=DYLD_LIBRARY_PATH 6057 ;; 6058 6059freebsd1*) 6060 dynamic_linker=no 6061 ;; 6062 6063freebsd*) 6064 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 6065 version_type=freebsd-$objformat 6066 case $version_type in 6067 freebsd-elf*) 6068 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 6069 need_version=no 6070 need_lib_prefix=no 6071 ;; 6072 freebsd-*) 6073 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' 6074 need_version=yes 6075 ;; 6076 esac 6077 shlibpath_var=LD_LIBRARY_PATH 6078 case $host_os in 6079 freebsd2*) 6080 shlibpath_overrides_runpath=yes 6081 ;; 6082 *) 6083 shlibpath_overrides_runpath=no 6084 hardcode_into_libs=yes 6085 ;; 6086 esac 6087 ;; 6088 6089gnu*) 6090 version_type=linux 6091 need_lib_prefix=no 6092 need_version=no 6093 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' 6094 soname_spec='${libname}${release}.so$major' 6095 shlibpath_var=LD_LIBRARY_PATH 6096 hardcode_into_libs=yes 6097 ;; 6098 6099hpux9* | hpux10* | hpux11*) 6100 # Give a soname corresponding to the major version so that dld.sl refuses to 6101 # link against other versions. 6102 dynamic_linker="$host_os dld.sl" 6103 version_type=sunos 6104 need_lib_prefix=no 6105 need_version=no 6106 shlibpath_var=SHLIB_PATH 6107 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 6108 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 6109 soname_spec='${libname}${release}.sl$major' 6110 # HP-UX runs *really* slowly unless shared libraries are mode 555. 6111 postinstall_cmds='chmod 555 $lib' 6112 ;; 6113 6114irix5* | irix6*) 6115 version_type=irix 6116 need_lib_prefix=no 6117 need_version=no 6118 soname_spec='${libname}${release}.so$major' 6119 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' 6120 case $host_os in 6121 irix5*) 6122 libsuff= shlibsuff= 6123 ;; 6124 *) 6125 case $LD in # libtool.m4 will add one of these switches to LD 6126 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 6127 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 6128 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 6129 *) libsuff= shlibsuff= libmagic=never-match;; 6130 esac 6131 ;; 6132 esac 6133 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 6134 shlibpath_overrides_runpath=no 6135 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 6136 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 6137 ;; 6138 6139# No shared lib support for Linux oldld, aout, or coff. 6140linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) 6141 dynamic_linker=no 6142 ;; 6143 6144# This must be Linux ELF. 6145linux-gnu*) 6146 version_type=linux 6147 need_lib_prefix=no 6148 need_version=no 6149 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6150 soname_spec='${libname}${release}.so$major' 6151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 6152 shlibpath_var=LD_LIBRARY_PATH 6153 shlibpath_overrides_runpath=no 6154 # This implies no fast_install, which is unacceptable. 6155 # Some rework will be needed to allow for fast_install 6156 # before this can be enabled. 6157 hardcode_into_libs=yes 6158 6159 # We used to test for /lib/ld.so.1 and disable shared libraries on 6160 # powerpc, because MkLinux only supported shared libraries with the 6161 # GNU dynamic linker. Since this was broken with cross compilers, 6162 # most powerpc-linux boxes support dynamic linking these days and 6163 # people can always --disable-shared, the test was removed, and we 6164 # assume the GNU/Linux dynamic linker is in use. 6165 dynamic_linker='GNU/Linux ld.so' 6166 ;; 6167 6168netbsd*) 6169 version_type=sunos 6170 need_lib_prefix=no 6171 need_version=no 6172 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6173 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 6174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 6175 dynamic_linker='NetBSD (a.out) ld.so' 6176 else 6177 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' 6178 soname_spec='${libname}${release}.so$major' 6179 dynamic_linker='NetBSD ld.elf_so' 6180 fi 6181 shlibpath_var=LD_LIBRARY_PATH 6182 shlibpath_overrides_runpath=yes 6183 hardcode_into_libs=yes 6184 ;; 6185 6186newsos6) 6187 version_type=linux 6188 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6189 shlibpath_var=LD_LIBRARY_PATH 6190 shlibpath_overrides_runpath=yes 6191 ;; 6192 6193openbsd*) 6194 version_type=sunos 6195 need_lib_prefix=no 6196 need_version=no 6197 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6198 case "$host_os" in 6199 openbsd2.[89] | openbsd2.[89].*) 6200 shlibpath_overrides_runpath=no 6201 ;; 6202 *) 6203 shlibpath_overrides_runpath=yes 6204 ;; 6205 esac 6206 else 6207 shlibpath_overrides_runpath=yes 6208 fi 6209 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 6210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 6211 shlibpath_var=LD_LIBRARY_PATH 6212 ;; 6213 6214os2*) 6215 libname_spec='$name' 6216 need_lib_prefix=no 6217 library_names_spec='$libname.dll $libname.a' 6218 dynamic_linker='OS/2 ld.exe' 6219 shlibpath_var=LIBPATH 6220 ;; 6221 6222osf3* | osf4* | osf5*) 6223 version_type=osf 6224 need_version=no 6225 soname_spec='${libname}${release}.so' 6226 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 6227 shlibpath_var=LD_LIBRARY_PATH 6228 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 6229 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 6230 ;; 6231 6232sco3.2v5*) 6233 version_type=osf 6234 soname_spec='${libname}${release}.so$major' 6235 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6236 shlibpath_var=LD_LIBRARY_PATH 6237 ;; 6238 6239solaris*) 6240 version_type=linux 6241 need_lib_prefix=no 6242 need_version=no 6243 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6244 soname_spec='${libname}${release}.so$major' 6245 shlibpath_var=LD_LIBRARY_PATH 6246 shlibpath_overrides_runpath=yes 6247 hardcode_into_libs=yes 6248 # ldd complains unless libraries are executable 6249 postinstall_cmds='chmod +x $lib' 6250 ;; 6251 6252sunos4*) 6253 version_type=sunos 6254 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 6255 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 6256 shlibpath_var=LD_LIBRARY_PATH 6257 shlibpath_overrides_runpath=yes 6258 if test "$with_gnu_ld" = yes; then 6259 need_lib_prefix=no 6260 fi 6261 need_version=yes 6262 ;; 6263 6264sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6265 version_type=linux 6266 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6267 soname_spec='${libname}${release}.so$major' 6268 shlibpath_var=LD_LIBRARY_PATH 6269 case $host_vendor in 6270 sni) 6271 shlibpath_overrides_runpath=no 6272 ;; 6273 motorola) 6274 need_lib_prefix=no 6275 need_version=no 6276 shlibpath_overrides_runpath=no 6277 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 6278 ;; 6279 esac 6280 ;; 6281 6282uts4*) 6283 version_type=linux 6284 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6285 soname_spec='${libname}${release}.so$major' 6286 shlibpath_var=LD_LIBRARY_PATH 6287 ;; 6288 6289dgux*) 6290 version_type=linux 6291 need_lib_prefix=no 6292 need_version=no 6293 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6294 soname_spec='${libname}${release}.so$major' 6295 shlibpath_var=LD_LIBRARY_PATH 6296 ;; 6297 6298sysv4*MP*) 6299 if test -d /usr/nec ;then 6300 version_type=linux 6301 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' 6302 soname_spec='$libname.so.$major' 6303 shlibpath_var=LD_LIBRARY_PATH 6304 fi 6305 ;; 6306 6307*) 6308 dynamic_linker=no 6309 ;; 6310esac 6311echo "$as_me:$LINENO: result: $dynamic_linker" >&5 6312echo "${ECHO_T}$dynamic_linker" >&6 6313test "$dynamic_linker" = no && can_build_shared=no 6314 6315# Report the final consequences. 6316echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 6317echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 6318echo "$as_me:$LINENO: result: $can_build_shared" >&5 6319echo "${ECHO_T}$can_build_shared" >&6 6320 6321echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 6322echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 6323test "$can_build_shared" = "no" && enable_shared=no 6324 6325# On AIX, shared libraries and static libraries use the same namespace, and 6326# are all built from PIC. 6327case "$host_os" in 6328aix3*) 6329 test "$enable_shared" = yes && enable_static=no 6330 if test -n "$RANLIB"; then 6331 archive_cmds="$archive_cmds~\$RANLIB \$lib" 6332 postinstall_cmds='$RANLIB $lib' 6333 fi 6334 ;; 6335 6336aix4*) 6337 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 6338 test "$enable_shared" = yes && enable_static=no 6339 fi 6340 ;; 6341esac 6342echo "$as_me:$LINENO: result: $enable_shared" >&5 6343echo "${ECHO_T}$enable_shared" >&6 6344 6345echo "$as_me:$LINENO: checking whether to build static libraries" >&5 6346echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 6347# Make sure either enable_shared or enable_static is yes. 6348test "$enable_shared" = yes || enable_static=yes 6349echo "$as_me:$LINENO: result: $enable_static" >&5 6350echo "${ECHO_T}$enable_static" >&6 6351 6352if test "$hardcode_action" = relink; then 6353 # Fast installation is not supported 6354 enable_fast_install=no 6355elif test "$shlibpath_overrides_runpath" = yes || 6356 test "$enable_shared" = no; then 6357 # Fast installation is not necessary 6358 enable_fast_install=needless 6359fi 6360 6361variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 6362if test "$GCC" = yes; then 6363 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 6364fi 6365 6366if test "x$enable_dlopen" != xyes; then 6367 enable_dlopen=unknown 6368 enable_dlopen_self=unknown 6369 enable_dlopen_self_static=unknown 6370else 6371 lt_cv_dlopen=no 6372 lt_cv_dlopen_libs= 6373 6374 case $host_os in 6375 beos*) 6376 lt_cv_dlopen="load_add_on" 6377 lt_cv_dlopen_libs= 6378 lt_cv_dlopen_self=yes 6379 ;; 6380 6381 cygwin* | mingw* | pw32*) 6382 lt_cv_dlopen="LoadLibrary" 6383 lt_cv_dlopen_libs= 6384 ;; 6385 6386 *) 6387 echo "$as_me:$LINENO: checking for shl_load" >&5 6388echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 6389if test "${ac_cv_func_shl_load+set}" = set; then 6390 echo $ECHO_N "(cached) $ECHO_C" >&6 6391else 6392 cat >conftest.$ac_ext <<_ACEOF 6393#line $LINENO "configure" 6394#include "confdefs.h" 6395/* System header to define __stub macros and hopefully few prototypes, 6396 which can conflict with char shl_load (); below. */ 6397#include <assert.h> 6398/* Override any gcc2 internal prototype to avoid an error. */ 6399#ifdef __cplusplus 6400extern "C" 6401#endif 6402/* We use char because int might match the return type of a gcc2 6403 builtin and then its argument prototype would still apply. */ 6404char shl_load (); 6405char (*f) (); 6406 6407#ifdef F77_DUMMY_MAIN 6408# ifdef __cplusplus 6409 extern "C" 6410# endif 6411 int F77_DUMMY_MAIN() { return 1; } 6412#endif 6413int 6414main () 6415{ 6416/* The GNU C library defines this for functions which it implements 6417 to always fail with ENOSYS. Some functions are actually named 6418 something starting with __ and the normal name is an alias. */ 6419#if defined (__stub_shl_load) || defined (__stub___shl_load) 6420choke me 6421#else 6422f = shl_load; 6423#endif 6424 6425 ; 6426 return 0; 6427} 6428_ACEOF 6429rm -f conftest.$ac_objext conftest$ac_exeext 6430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6431 (eval $ac_link) 2>&5 6432 ac_status=$? 6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6434 (exit $ac_status); } && 6435 { ac_try='test -s conftest$ac_exeext' 6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6437 (eval $ac_try) 2>&5 6438 ac_status=$? 6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6440 (exit $ac_status); }; }; then 6441 ac_cv_func_shl_load=yes 6442else 6443 echo "$as_me: failed program was:" >&5 6444cat conftest.$ac_ext >&5 6445ac_cv_func_shl_load=no 6446fi 6447rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6448fi 6449echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 6450echo "${ECHO_T}$ac_cv_func_shl_load" >&6 6451if test $ac_cv_func_shl_load = yes; then 6452 lt_cv_dlopen="shl_load" 6453else 6454 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 6455echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 6456if test "${ac_cv_lib_dld_shl_load+set}" = set; then 6457 echo $ECHO_N "(cached) $ECHO_C" >&6 6458else 6459 ac_check_lib_save_LIBS=$LIBS 6460LIBS="-ldld $LIBS" 6461cat >conftest.$ac_ext <<_ACEOF 6462#line $LINENO "configure" 6463#include "confdefs.h" 6464 6465/* Override any gcc2 internal prototype to avoid an error. */ 6466#ifdef __cplusplus 6467extern "C" 6468#endif 6469/* We use char because int might match the return type of a gcc2 6470 builtin and then its argument prototype would still apply. */ 6471char shl_load (); 6472#ifdef F77_DUMMY_MAIN 6473# ifdef __cplusplus 6474 extern "C" 6475# endif 6476 int F77_DUMMY_MAIN() { return 1; } 6477#endif 6478int 6479main () 6480{ 6481shl_load (); 6482 ; 6483 return 0; 6484} 6485_ACEOF 6486rm -f conftest.$ac_objext conftest$ac_exeext 6487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6488 (eval $ac_link) 2>&5 6489 ac_status=$? 6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6491 (exit $ac_status); } && 6492 { ac_try='test -s conftest$ac_exeext' 6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6494 (eval $ac_try) 2>&5 6495 ac_status=$? 6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6497 (exit $ac_status); }; }; then 6498 ac_cv_lib_dld_shl_load=yes 6499else 6500 echo "$as_me: failed program was:" >&5 6501cat conftest.$ac_ext >&5 6502ac_cv_lib_dld_shl_load=no 6503fi 6504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6505LIBS=$ac_check_lib_save_LIBS 6506fi 6507echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 6508echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 6509if test $ac_cv_lib_dld_shl_load = yes; then 6510 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 6511else 6512 echo "$as_me:$LINENO: checking for dlopen" >&5 6513echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 6514if test "${ac_cv_func_dlopen+set}" = set; then 6515 echo $ECHO_N "(cached) $ECHO_C" >&6 6516else 6517 cat >conftest.$ac_ext <<_ACEOF 6518#line $LINENO "configure" 6519#include "confdefs.h" 6520/* System header to define __stub macros and hopefully few prototypes, 6521 which can conflict with char dlopen (); below. */ 6522#include <assert.h> 6523/* Override any gcc2 internal prototype to avoid an error. */ 6524#ifdef __cplusplus 6525extern "C" 6526#endif 6527/* We use char because int might match the return type of a gcc2 6528 builtin and then its argument prototype would still apply. */ 6529char dlopen (); 6530char (*f) (); 6531 6532#ifdef F77_DUMMY_MAIN 6533# ifdef __cplusplus 6534 extern "C" 6535# endif 6536 int F77_DUMMY_MAIN() { return 1; } 6537#endif 6538int 6539main () 6540{ 6541/* The GNU C library defines this for functions which it implements 6542 to always fail with ENOSYS. Some functions are actually named 6543 something starting with __ and the normal name is an alias. */ 6544#if defined (__stub_dlopen) || defined (__stub___dlopen) 6545choke me 6546#else 6547f = dlopen; 6548#endif 6549 6550 ; 6551 return 0; 6552} 6553_ACEOF 6554rm -f conftest.$ac_objext conftest$ac_exeext 6555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6556 (eval $ac_link) 2>&5 6557 ac_status=$? 6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6559 (exit $ac_status); } && 6560 { ac_try='test -s conftest$ac_exeext' 6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6562 (eval $ac_try) 2>&5 6563 ac_status=$? 6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6565 (exit $ac_status); }; }; then 6566 ac_cv_func_dlopen=yes 6567else 6568 echo "$as_me: failed program was:" >&5 6569cat conftest.$ac_ext >&5 6570ac_cv_func_dlopen=no 6571fi 6572rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6573fi 6574echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 6575echo "${ECHO_T}$ac_cv_func_dlopen" >&6 6576if test $ac_cv_func_dlopen = yes; then 6577 lt_cv_dlopen="dlopen" 6578else 6579 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 6580echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 6581if test "${ac_cv_lib_dl_dlopen+set}" = set; then 6582 echo $ECHO_N "(cached) $ECHO_C" >&6 6583else 6584 ac_check_lib_save_LIBS=$LIBS 6585LIBS="-ldl $LIBS" 6586cat >conftest.$ac_ext <<_ACEOF 6587#line $LINENO "configure" 6588#include "confdefs.h" 6589 6590/* Override any gcc2 internal prototype to avoid an error. */ 6591#ifdef __cplusplus 6592extern "C" 6593#endif 6594/* We use char because int might match the return type of a gcc2 6595 builtin and then its argument prototype would still apply. */ 6596char dlopen (); 6597#ifdef F77_DUMMY_MAIN 6598# ifdef __cplusplus 6599 extern "C" 6600# endif 6601 int F77_DUMMY_MAIN() { return 1; } 6602#endif 6603int 6604main () 6605{ 6606dlopen (); 6607 ; 6608 return 0; 6609} 6610_ACEOF 6611rm -f conftest.$ac_objext conftest$ac_exeext 6612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6613 (eval $ac_link) 2>&5 6614 ac_status=$? 6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6616 (exit $ac_status); } && 6617 { ac_try='test -s conftest$ac_exeext' 6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6619 (eval $ac_try) 2>&5 6620 ac_status=$? 6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6622 (exit $ac_status); }; }; then 6623 ac_cv_lib_dl_dlopen=yes 6624else 6625 echo "$as_me: failed program was:" >&5 6626cat conftest.$ac_ext >&5 6627ac_cv_lib_dl_dlopen=no 6628fi 6629rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6630LIBS=$ac_check_lib_save_LIBS 6631fi 6632echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 6633echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 6634if test $ac_cv_lib_dl_dlopen = yes; then 6635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 6636else 6637 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 6638echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 6639if test "${ac_cv_lib_svld_dlopen+set}" = set; then 6640 echo $ECHO_N "(cached) $ECHO_C" >&6 6641else 6642 ac_check_lib_save_LIBS=$LIBS 6643LIBS="-lsvld $LIBS" 6644cat >conftest.$ac_ext <<_ACEOF 6645#line $LINENO "configure" 6646#include "confdefs.h" 6647 6648/* Override any gcc2 internal prototype to avoid an error. */ 6649#ifdef __cplusplus 6650extern "C" 6651#endif 6652/* We use char because int might match the return type of a gcc2 6653 builtin and then its argument prototype would still apply. */ 6654char dlopen (); 6655#ifdef F77_DUMMY_MAIN 6656# ifdef __cplusplus 6657 extern "C" 6658# endif 6659 int F77_DUMMY_MAIN() { return 1; } 6660#endif 6661int 6662main () 6663{ 6664dlopen (); 6665 ; 6666 return 0; 6667} 6668_ACEOF 6669rm -f conftest.$ac_objext conftest$ac_exeext 6670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6671 (eval $ac_link) 2>&5 6672 ac_status=$? 6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6674 (exit $ac_status); } && 6675 { ac_try='test -s conftest$ac_exeext' 6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6677 (eval $ac_try) 2>&5 6678 ac_status=$? 6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6680 (exit $ac_status); }; }; then 6681 ac_cv_lib_svld_dlopen=yes 6682else 6683 echo "$as_me: failed program was:" >&5 6684cat conftest.$ac_ext >&5 6685ac_cv_lib_svld_dlopen=no 6686fi 6687rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6688LIBS=$ac_check_lib_save_LIBS 6689fi 6690echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 6691echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 6692if test $ac_cv_lib_svld_dlopen = yes; then 6693 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 6694else 6695 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 6696echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 6697if test "${ac_cv_lib_dld_dld_link+set}" = set; then 6698 echo $ECHO_N "(cached) $ECHO_C" >&6 6699else 6700 ac_check_lib_save_LIBS=$LIBS 6701LIBS="-ldld $LIBS" 6702cat >conftest.$ac_ext <<_ACEOF 6703#line $LINENO "configure" 6704#include "confdefs.h" 6705 6706/* Override any gcc2 internal prototype to avoid an error. */ 6707#ifdef __cplusplus 6708extern "C" 6709#endif 6710/* We use char because int might match the return type of a gcc2 6711 builtin and then its argument prototype would still apply. */ 6712char dld_link (); 6713#ifdef F77_DUMMY_MAIN 6714# ifdef __cplusplus 6715 extern "C" 6716# endif 6717 int F77_DUMMY_MAIN() { return 1; } 6718#endif 6719int 6720main () 6721{ 6722dld_link (); 6723 ; 6724 return 0; 6725} 6726_ACEOF 6727rm -f conftest.$ac_objext conftest$ac_exeext 6728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6729 (eval $ac_link) 2>&5 6730 ac_status=$? 6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6732 (exit $ac_status); } && 6733 { ac_try='test -s conftest$ac_exeext' 6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6735 (eval $ac_try) 2>&5 6736 ac_status=$? 6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6738 (exit $ac_status); }; }; then 6739 ac_cv_lib_dld_dld_link=yes 6740else 6741 echo "$as_me: failed program was:" >&5 6742cat conftest.$ac_ext >&5 6743ac_cv_lib_dld_dld_link=no 6744fi 6745rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6746LIBS=$ac_check_lib_save_LIBS 6747fi 6748echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 6749echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 6750if test $ac_cv_lib_dld_dld_link = yes; then 6751 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 6752fi 6753 6754 6755fi 6756 6757 6758fi 6759 6760 6761fi 6762 6763 6764fi 6765 6766 6767fi 6768 6769 ;; 6770 esac 6771 6772 if test "x$lt_cv_dlopen" != xno; then 6773 enable_dlopen=yes 6774 else 6775 enable_dlopen=no 6776 fi 6777 6778 case $lt_cv_dlopen in 6779 dlopen) 6780 save_CPPFLAGS="$CPPFLAGS" 6781 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 6782 6783 save_LDFLAGS="$LDFLAGS" 6784 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 6785 6786 save_LIBS="$LIBS" 6787 LIBS="$lt_cv_dlopen_libs $LIBS" 6788 6789 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 6790echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 6791if test "${lt_cv_dlopen_self+set}" = set; then 6792 echo $ECHO_N "(cached) $ECHO_C" >&6 6793else 6794 if test "$cross_compiling" = yes; then : 6795 lt_cv_dlopen_self=cross 6796else 6797 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 6798 lt_status=$lt_dlunknown 6799 cat > conftest.$ac_ext <<EOF 6800#line 6800 "configure" 6801#include "confdefs.h" 6802 6803#if HAVE_DLFCN_H 6804#include <dlfcn.h> 6805#endif 6806 6807#include <stdio.h> 6808 6809#ifdef RTLD_GLOBAL 6810# define LT_DLGLOBAL RTLD_GLOBAL 6811#else 6812# ifdef DL_GLOBAL 6813# define LT_DLGLOBAL DL_GLOBAL 6814# else 6815# define LT_DLGLOBAL 0 6816# endif 6817#endif 6818 6819/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 6820 find out it does not work in some platform. */ 6821#ifndef LT_DLLAZY_OR_NOW 6822# ifdef RTLD_LAZY 6823# define LT_DLLAZY_OR_NOW RTLD_LAZY 6824# else 6825# ifdef DL_LAZY 6826# define LT_DLLAZY_OR_NOW DL_LAZY 6827# else 6828# ifdef RTLD_NOW 6829# define LT_DLLAZY_OR_NOW RTLD_NOW 6830# else 6831# ifdef DL_NOW 6832# define LT_DLLAZY_OR_NOW DL_NOW 6833# else 6834# define LT_DLLAZY_OR_NOW 0 6835# endif 6836# endif 6837# endif 6838# endif 6839#endif 6840 6841#ifdef __cplusplus 6842extern "C" void exit (int); 6843#endif 6844 6845void fnord() { int i=42;} 6846int main () 6847{ 6848 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 6849 int status = $lt_dlunknown; 6850 6851 if (self) 6852 { 6853 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 6854 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 6855 /* dlclose (self); */ 6856 } 6857 6858 exit (status); 6859} 6860EOF 6861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6862 (eval $ac_link) 2>&5 6863 ac_status=$? 6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6865 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 6866 (./conftest; exit; ) 2>/dev/null 6867 lt_status=$? 6868 case x$lt_status in 6869 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 6870 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 6871 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 6872 esac 6873 else : 6874 # compilation failed 6875 lt_cv_dlopen_self=no 6876 fi 6877fi 6878rm -fr conftest* 6879 6880 6881fi 6882echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 6883echo "${ECHO_T}$lt_cv_dlopen_self" >&6 6884 6885 if test "x$lt_cv_dlopen_self" = xyes; then 6886 LDFLAGS="$LDFLAGS $link_static_flag" 6887 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 6888echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 6889if test "${lt_cv_dlopen_self_static+set}" = set; then 6890 echo $ECHO_N "(cached) $ECHO_C" >&6 6891else 6892 if test "$cross_compiling" = yes; then : 6893 lt_cv_dlopen_self_static=cross 6894else 6895 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 6896 lt_status=$lt_dlunknown 6897 cat > conftest.$ac_ext <<EOF 6898#line 6898 "configure" 6899#include "confdefs.h" 6900 6901#if HAVE_DLFCN_H 6902#include <dlfcn.h> 6903#endif 6904 6905#include <stdio.h> 6906 6907#ifdef RTLD_GLOBAL 6908# define LT_DLGLOBAL RTLD_GLOBAL 6909#else 6910# ifdef DL_GLOBAL 6911# define LT_DLGLOBAL DL_GLOBAL 6912# else 6913# define LT_DLGLOBAL 0 6914# endif 6915#endif 6916 6917/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 6918 find out it does not work in some platform. */ 6919#ifndef LT_DLLAZY_OR_NOW 6920# ifdef RTLD_LAZY 6921# define LT_DLLAZY_OR_NOW RTLD_LAZY 6922# else 6923# ifdef DL_LAZY 6924# define LT_DLLAZY_OR_NOW DL_LAZY 6925# else 6926# ifdef RTLD_NOW 6927# define LT_DLLAZY_OR_NOW RTLD_NOW 6928# else 6929# ifdef DL_NOW 6930# define LT_DLLAZY_OR_NOW DL_NOW 6931# else 6932# define LT_DLLAZY_OR_NOW 0 6933# endif 6934# endif 6935# endif 6936# endif 6937#endif 6938 6939#ifdef __cplusplus 6940extern "C" void exit (int); 6941#endif 6942 6943void fnord() { int i=42;} 6944int main () 6945{ 6946 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 6947 int status = $lt_dlunknown; 6948 6949 if (self) 6950 { 6951 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 6952 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 6953 /* dlclose (self); */ 6954 } 6955 6956 exit (status); 6957} 6958EOF 6959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6960 (eval $ac_link) 2>&5 6961 ac_status=$? 6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6963 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 6964 (./conftest; exit; ) 2>/dev/null 6965 lt_status=$? 6966 case x$lt_status in 6967 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 6968 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 6969 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 6970 esac 6971 else : 6972 # compilation failed 6973 lt_cv_dlopen_self_static=no 6974 fi 6975fi 6976rm -fr conftest* 6977 6978 6979fi 6980echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 6981echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 6982 fi 6983 6984 CPPFLAGS="$save_CPPFLAGS" 6985 LDFLAGS="$save_LDFLAGS" 6986 LIBS="$save_LIBS" 6987 ;; 6988 esac 6989 6990 case $lt_cv_dlopen_self in 6991 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 6992 *) enable_dlopen_self=unknown ;; 6993 esac 6994 6995 case $lt_cv_dlopen_self_static in 6996 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 6997 *) enable_dlopen_self_static=unknown ;; 6998 esac 6999fi 7000 7001 7002if test "$enable_shared" = yes && test "$GCC" = yes; then 7003 case $archive_cmds in 7004 *'~'*) 7005 # FIXME: we may have to deal with multi-command sequences. 7006 ;; 7007 '$CC '*) 7008 # Test whether the compiler implicitly links with -lc since on some 7009 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7010 # to ld, don't add -lc before -lgcc. 7011 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7012echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7013 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then 7014 echo $ECHO_N "(cached) $ECHO_C" >&6 7015else 7016 $rm conftest* 7017 echo 'static int dummy;' > conftest.$ac_ext 7018 7019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7020 (eval $ac_compile) 2>&5 7021 ac_status=$? 7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7023 (exit $ac_status); }; then 7024 soname=conftest 7025 lib=conftest 7026 libobjs=conftest.$ac_objext 7027 deplibs= 7028 wl=$lt_cv_prog_cc_wl 7029 compiler_flags=-v 7030 linker_flags=-v 7031 verstring= 7032 output_objdir=. 7033 libname=conftest 7034 save_allow_undefined_flag=$allow_undefined_flag 7035 allow_undefined_flag= 7036 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7037 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7038 ac_status=$? 7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7040 (exit $ac_status); } 7041 then 7042 lt_cv_archive_cmds_need_lc=no 7043 else 7044 lt_cv_archive_cmds_need_lc=yes 7045 fi 7046 allow_undefined_flag=$save_allow_undefined_flag 7047 else 7048 cat conftest.err 1>&5 7049 fi 7050fi 7051 7052 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 7053echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 7054 ;; 7055 esac 7056fi 7057need_lc=${lt_cv_archive_cmds_need_lc-yes} 7058 7059# The second clause should only fire when bootstrapping the 7060# libtool distribution, otherwise you forgot to ship ltmain.sh 7061# with your package, and you will get complaints that there are 7062# no rules to generate ltmain.sh. 7063if test -f "$ltmain"; then 7064 : 7065else 7066 # If there is no Makefile yet, we rely on a make rule to execute 7067 # `config.status --recheck' to rerun these tests and create the 7068 # libtool script then. 7069 test -f Makefile && make "$ltmain" 7070fi 7071 7072if test -f "$ltmain"; then 7073 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 7074 $rm -f "${ofile}T" 7075 7076 echo creating $ofile 7077 7078 # Now quote all the things that may contain metacharacters while being 7079 # careful not to overquote the AC_SUBSTed values. We take copies of the 7080 # variables and quote the copies for generation of the libtool script. 7081 for var in echo old_CC old_CFLAGS \ 7082 AR AR_FLAGS CC LD LN_S NM SHELL \ 7083 reload_flag reload_cmds wl \ 7084 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ 7085 thread_safe_flag_spec whole_archive_flag_spec libname_spec \ 7086 library_names_spec soname_spec \ 7087 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ 7088 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ 7089 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ 7090 old_striplib striplib file_magic_cmd export_symbols_cmds \ 7091 deplibs_check_method allow_undefined_flag no_undefined_flag \ 7092 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ 7093 global_symbol_to_c_name_address \ 7094 hardcode_libdir_flag_spec hardcode_libdir_separator \ 7095 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 7096 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do 7097 7098 case $var in 7099 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ 7100 old_postinstall_cmds | old_postuninstall_cmds | \ 7101 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ 7102 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ 7103 postinstall_cmds | postuninstall_cmds | \ 7104 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 7105 # Double-quote double-evaled strings. 7106 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 7107 ;; 7108 *) 7109 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 7110 ;; 7111 esac 7112 done 7113 7114 cat <<__EOF__ > "${ofile}T" 7115#! $SHELL 7116 7117# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 7118# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 7119# NOTE: Changes made to this file will be lost: look at ltmain.sh. 7120# 7121# Copyright (C) 1996-2000 Free Software Foundation, Inc. 7122# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 7123# 7124# This program is free software; you can redistribute it and/or modify 7125# it under the terms of the GNU General Public License as published by 7126# the Free Software Foundation; either version 2 of the License, or 7127# (at your option) any later version. 7128# 7129# This program is distributed in the hope that it will be useful, but 7130# WITHOUT ANY WARRANTY; without even the implied warranty of 7131# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 7132# General Public License for more details. 7133# 7134# You should have received a copy of the GNU General Public License 7135# along with this program; if not, write to the Free Software 7136# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 7137# 7138# As a special exception to the GNU General Public License, if you 7139# distribute this file as part of a program that contains a 7140# configuration script generated by Autoconf, you may include it under 7141# the same distribution terms that you use for the rest of that program. 7142 7143# Sed that helps us avoid accidentally triggering echo(1) options like -n. 7144Xsed="sed -e s/^X//" 7145 7146# The HP-UX ksh and POSIX shell print the target directory to stdout 7147# if CDPATH is set. 7148if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 7149 7150# ### BEGIN LIBTOOL CONFIG 7151 7152# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 7153 7154# Shell to use when invoking shell scripts. 7155SHELL=$lt_SHELL 7156 7157# Whether or not to build shared libraries. 7158build_libtool_libs=$enable_shared 7159 7160# Whether or not to build static libraries. 7161build_old_libs=$enable_static 7162 7163# Whether or not to add -lc for building shared libraries. 7164build_libtool_need_lc=$need_lc 7165 7166# Whether or not to optimize for fast installation. 7167fast_install=$enable_fast_install 7168 7169# The host system. 7170host_alias=$host_alias 7171host=$host 7172 7173# An echo program that does not interpret backslashes. 7174echo=$lt_echo 7175 7176# The archiver. 7177AR=$lt_AR 7178AR_FLAGS=$lt_AR_FLAGS 7179 7180# The default C compiler. 7181CC=$lt_CC 7182 7183# Is the compiler the GNU C compiler? 7184with_gcc=$GCC 7185 7186# The linker used to build libraries. 7187LD=$lt_LD 7188 7189# Whether we need hard or soft links. 7190LN_S=$lt_LN_S 7191 7192# A BSD-compatible nm program. 7193NM=$lt_NM 7194 7195# A symbol stripping program 7196STRIP=$STRIP 7197 7198# Used to examine libraries when file_magic_cmd begins "file" 7199MAGIC_CMD=$MAGIC_CMD 7200 7201# Used on cygwin: DLL creation program. 7202DLLTOOL="$DLLTOOL" 7203 7204# Used on cygwin: object dumper. 7205OBJDUMP="$OBJDUMP" 7206 7207# Used on cygwin: assembler. 7208AS="$AS" 7209 7210# The name of the directory that contains temporary libtool files. 7211objdir=$objdir 7212 7213# How to create reloadable object files. 7214reload_flag=$lt_reload_flag 7215reload_cmds=$lt_reload_cmds 7216 7217# How to pass a linker flag through the compiler. 7218wl=$lt_wl 7219 7220# Object file suffix (normally "o"). 7221objext="$ac_objext" 7222 7223# Old archive suffix (normally "a"). 7224libext="$libext" 7225 7226# Executable file suffix (normally ""). 7227exeext="$exeext" 7228 7229# Additional compiler flags for building library objects. 7230pic_flag=$lt_pic_flag 7231pic_mode=$pic_mode 7232 7233# Does compiler simultaneously support -c and -o options? 7234compiler_c_o=$lt_compiler_c_o 7235 7236# Can we write directly to a .lo ? 7237compiler_o_lo=$lt_compiler_o_lo 7238 7239# Must we lock files when doing compilation ? 7240need_locks=$lt_need_locks 7241 7242# Do we need the lib prefix for modules? 7243need_lib_prefix=$need_lib_prefix 7244 7245# Do we need a version for libraries? 7246need_version=$need_version 7247 7248# Whether dlopen is supported. 7249dlopen_support=$enable_dlopen 7250 7251# Whether dlopen of programs is supported. 7252dlopen_self=$enable_dlopen_self 7253 7254# Whether dlopen of statically linked programs is supported. 7255dlopen_self_static=$enable_dlopen_self_static 7256 7257# Compiler flag to prevent dynamic linking. 7258link_static_flag=$lt_link_static_flag 7259 7260# Compiler flag to turn off builtin functions. 7261no_builtin_flag=$lt_no_builtin_flag 7262 7263# Compiler flag to allow reflexive dlopens. 7264export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 7265 7266# Compiler flag to generate shared objects directly from archives. 7267whole_archive_flag_spec=$lt_whole_archive_flag_spec 7268 7269# Compiler flag to generate thread-safe objects. 7270thread_safe_flag_spec=$lt_thread_safe_flag_spec 7271 7272# Library versioning type. 7273version_type=$version_type 7274 7275# Format of library name prefix. 7276libname_spec=$lt_libname_spec 7277 7278# List of archive names. First name is the real one, the rest are links. 7279# The last name is the one that the linker finds with -lNAME. 7280library_names_spec=$lt_library_names_spec 7281 7282# The coded name of the library, if different from the real name. 7283soname_spec=$lt_soname_spec 7284 7285# Commands used to build and install an old-style archive. 7286RANLIB=$lt_RANLIB 7287old_archive_cmds=$lt_old_archive_cmds 7288old_postinstall_cmds=$lt_old_postinstall_cmds 7289old_postuninstall_cmds=$lt_old_postuninstall_cmds 7290 7291# Create an old-style archive from a shared archive. 7292old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 7293 7294# Create a temporary old-style archive to link instead of a shared archive. 7295old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 7296 7297# Commands used to build and install a shared archive. 7298archive_cmds=$lt_archive_cmds 7299archive_expsym_cmds=$lt_archive_expsym_cmds 7300postinstall_cmds=$lt_postinstall_cmds 7301postuninstall_cmds=$lt_postuninstall_cmds 7302 7303# Commands to strip libraries. 7304old_striplib=$lt_old_striplib 7305striplib=$lt_striplib 7306 7307# Method to check whether dependent libraries are shared objects. 7308deplibs_check_method=$lt_deplibs_check_method 7309 7310# Command to use when deplibs_check_method == file_magic. 7311file_magic_cmd=$lt_file_magic_cmd 7312 7313# Flag that allows shared libraries with undefined symbols to be built. 7314allow_undefined_flag=$lt_allow_undefined_flag 7315 7316# Flag that forces no undefined symbols. 7317no_undefined_flag=$lt_no_undefined_flag 7318 7319# Commands used to finish a libtool library installation in a directory. 7320finish_cmds=$lt_finish_cmds 7321 7322# Same as above, but a single script fragment to be evaled but not shown. 7323finish_eval=$lt_finish_eval 7324 7325# Take the output of nm and produce a listing of raw symbols and C names. 7326global_symbol_pipe=$lt_global_symbol_pipe 7327 7328# Transform the output of nm in a proper C declaration 7329global_symbol_to_cdecl=$lt_global_symbol_to_cdecl 7330 7331# Transform the output of nm in a C name address pair 7332global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address 7333 7334# This is the shared library runtime path variable. 7335runpath_var=$runpath_var 7336 7337# This is the shared library path variable. 7338shlibpath_var=$shlibpath_var 7339 7340# Is shlibpath searched before the hard-coded library search path? 7341shlibpath_overrides_runpath=$shlibpath_overrides_runpath 7342 7343# How to hardcode a shared library path into an executable. 7344hardcode_action=$hardcode_action 7345 7346# Whether we should hardcode library paths into libraries. 7347hardcode_into_libs=$hardcode_into_libs 7348 7349# Flag to hardcode \$libdir into a binary during linking. 7350# This must work even if \$libdir does not exist. 7351hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 7352 7353# Whether we need a single -rpath flag with a separated argument. 7354hardcode_libdir_separator=$lt_hardcode_libdir_separator 7355 7356# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the 7357# resulting binary. 7358hardcode_direct=$hardcode_direct 7359 7360# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 7361# resulting binary. 7362hardcode_minus_L=$hardcode_minus_L 7363 7364# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 7365# the resulting binary. 7366hardcode_shlibpath_var=$hardcode_shlibpath_var 7367 7368# Variables whose values should be saved in libtool wrapper scripts and 7369# restored at relink time. 7370variables_saved_for_relink="$variables_saved_for_relink" 7371 7372# Whether libtool must link a program against all its dependency libraries. 7373link_all_deplibs=$link_all_deplibs 7374 7375# Compile-time system search path for libraries 7376sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 7377 7378# Run-time system search path for libraries 7379sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 7380 7381# Fix the shell variable \$srcfile for the compiler. 7382fix_srcfile_path="$fix_srcfile_path" 7383 7384# Set to yes if exported symbols are required. 7385always_export_symbols=$always_export_symbols 7386 7387# The commands to list exported symbols. 7388export_symbols_cmds=$lt_export_symbols_cmds 7389 7390# The commands to extract the exported symbol list from a shared archive. 7391extract_expsyms_cmds=$lt_extract_expsyms_cmds 7392 7393# Symbols that should not be listed in the preloaded symbols. 7394exclude_expsyms=$lt_exclude_expsyms 7395 7396# Symbols that must always be exported. 7397include_expsyms=$lt_include_expsyms 7398 7399# ### END LIBTOOL CONFIG 7400 7401__EOF__ 7402 7403 case $host_os in 7404 aix3*) 7405 cat <<\EOF >> "${ofile}T" 7406 7407# AIX sometimes has problems with the GCC collect2 program. For some 7408# reason, if we set the COLLECT_NAMES environment variable, the problems 7409# vanish in a puff of smoke. 7410if test "X${COLLECT_NAMES+set}" != Xset; then 7411 COLLECT_NAMES= 7412 export COLLECT_NAMES 7413fi 7414EOF 7415 ;; 7416 esac 7417 7418 case $host_os in 7419 cygwin* | mingw* | pw32* | os2*) 7420 cat <<'EOF' >> "${ofile}T" 7421 # This is a source program that is used to create dlls on Windows 7422 # Don't remove nor modify the starting and closing comments 7423# /* ltdll.c starts here */ 7424# #define WIN32_LEAN_AND_MEAN 7425# #include <windows.h> 7426# #undef WIN32_LEAN_AND_MEAN 7427# #include <stdio.h> 7428# 7429# #ifndef __CYGWIN__ 7430# # ifdef __CYGWIN32__ 7431# # define __CYGWIN__ __CYGWIN32__ 7432# # endif 7433# #endif 7434# 7435# #ifdef __cplusplus 7436# extern "C" { 7437# #endif 7438# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 7439# #ifdef __cplusplus 7440# } 7441# #endif 7442# 7443# #ifdef __CYGWIN__ 7444# #include <cygwin/cygwin_dll.h> 7445# DECLARE_CYGWIN_DLL( DllMain ); 7446# #endif 7447# HINSTANCE __hDllInstance_base; 7448# 7449# BOOL APIENTRY 7450# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 7451# { 7452# __hDllInstance_base = hInst; 7453# return TRUE; 7454# } 7455# /* ltdll.c ends here */ 7456 # This is a source program that is used to create import libraries 7457 # on Windows for dlls which lack them. Don't remove nor modify the 7458 # starting and closing comments 7459# /* impgen.c starts here */ 7460# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. 7461# 7462# This file is part of GNU libtool. 7463# 7464# This program is free software; you can redistribute it and/or modify 7465# it under the terms of the GNU General Public License as published by 7466# the Free Software Foundation; either version 2 of the License, or 7467# (at your option) any later version. 7468# 7469# This program is distributed in the hope that it will be useful, 7470# but WITHOUT ANY WARRANTY; without even the implied warranty of 7471# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 7472# GNU General Public License for more details. 7473# 7474# You should have received a copy of the GNU General Public License 7475# along with this program; if not, write to the Free Software 7476# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 7477# */ 7478# 7479# #include <stdio.h> /* for printf() */ 7480# #include <unistd.h> /* for open(), lseek(), read() */ 7481# #include <fcntl.h> /* for O_RDONLY, O_BINARY */ 7482# #include <string.h> /* for strdup() */ 7483# 7484# /* O_BINARY isn't required (or even defined sometimes) under Unix */ 7485# #ifndef O_BINARY 7486# #define O_BINARY 0 7487# #endif 7488# 7489# static unsigned int 7490# pe_get16 (fd, offset) 7491# int fd; 7492# int offset; 7493# { 7494# unsigned char b[2]; 7495# lseek (fd, offset, SEEK_SET); 7496# read (fd, b, 2); 7497# return b[0] + (b[1]<<8); 7498# } 7499# 7500# static unsigned int 7501# pe_get32 (fd, offset) 7502# int fd; 7503# int offset; 7504# { 7505# unsigned char b[4]; 7506# lseek (fd, offset, SEEK_SET); 7507# read (fd, b, 4); 7508# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 7509# } 7510# 7511# static unsigned int 7512# pe_as32 (ptr) 7513# void *ptr; 7514# { 7515# unsigned char *b = ptr; 7516# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 7517# } 7518# 7519# int 7520# main (argc, argv) 7521# int argc; 7522# char *argv[]; 7523# { 7524# int dll; 7525# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; 7526# unsigned long export_rva, export_size, nsections, secptr, expptr; 7527# unsigned long name_rvas, nexp; 7528# unsigned char *expdata, *erva; 7529# char *filename, *dll_name; 7530# 7531# filename = argv[1]; 7532# 7533# dll = open(filename, O_RDONLY|O_BINARY); 7534# if (dll < 1) 7535# return 1; 7536# 7537# dll_name = filename; 7538# 7539# for (i=0; filename[i]; i++) 7540# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') 7541# dll_name = filename + i +1; 7542# 7543# pe_header_offset = pe_get32 (dll, 0x3c); 7544# opthdr_ofs = pe_header_offset + 4 + 20; 7545# num_entries = pe_get32 (dll, opthdr_ofs + 92); 7546# 7547# if (num_entries < 1) /* no exports */ 7548# return 1; 7549# 7550# export_rva = pe_get32 (dll, opthdr_ofs + 96); 7551# export_size = pe_get32 (dll, opthdr_ofs + 100); 7552# nsections = pe_get16 (dll, pe_header_offset + 4 +2); 7553# secptr = (pe_header_offset + 4 + 20 + 7554# pe_get16 (dll, pe_header_offset + 4 + 16)); 7555# 7556# expptr = 0; 7557# for (i = 0; i < nsections; i++) 7558# { 7559# char sname[8]; 7560# unsigned long secptr1 = secptr + 40 * i; 7561# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); 7562# unsigned long vsize = pe_get32 (dll, secptr1 + 16); 7563# unsigned long fptr = pe_get32 (dll, secptr1 + 20); 7564# lseek(dll, secptr1, SEEK_SET); 7565# read(dll, sname, 8); 7566# if (vaddr <= export_rva && vaddr+vsize > export_rva) 7567# { 7568# expptr = fptr + (export_rva - vaddr); 7569# if (export_rva + export_size > vaddr + vsize) 7570# export_size = vsize - (export_rva - vaddr); 7571# break; 7572# } 7573# } 7574# 7575# expdata = (unsigned char*)malloc(export_size); 7576# lseek (dll, expptr, SEEK_SET); 7577# read (dll, expdata, export_size); 7578# erva = expdata - export_rva; 7579# 7580# nexp = pe_as32 (expdata+24); 7581# name_rvas = pe_as32 (expdata+32); 7582# 7583# printf ("EXPORTS\n"); 7584# for (i = 0; i<nexp; i++) 7585# { 7586# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); 7587# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); 7588# } 7589# 7590# return 0; 7591# } 7592# /* impgen.c ends here */ 7593 7594EOF 7595 ;; 7596 esac 7597 7598 # We use sed instead of cat because bash on DJGPP gets confused if 7599 # if finds mixed CR/LF and LF-only lines. Since sed operates in 7600 # text mode, it properly converts lines to CR/LF. This bash problem 7601 # is reportedly fixed, but why not run on old versions too? 7602 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) 7603 7604 mv -f "${ofile}T" "$ofile" || \ 7605 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") 7606 chmod +x "$ofile" 7607fi 7608 7609 7610 7611 7612 7613# This can be used to rebuild libtool when needed 7614LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 7615 7616# Always use our own libtool. 7617LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7618 7619# Prevent multiple expansion 7620 7621 7622 7623echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 7624echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 7625 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 7626if test "${enable_maintainer_mode+set}" = set; then 7627 enableval="$enable_maintainer_mode" 7628 USE_MAINTAINER_MODE=$enableval 7629else 7630 USE_MAINTAINER_MODE=no 7631fi; 7632 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 7633echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 7634 7635 7636if test $USE_MAINTAINER_MODE = yes; then 7637 MAINTAINER_MODE_TRUE= 7638 MAINTAINER_MODE_FALSE='#' 7639else 7640 MAINTAINER_MODE_TRUE='#' 7641 MAINTAINER_MODE_FALSE= 7642fi 7643 7644 MAINT=$MAINTAINER_MODE_TRUE 7645 7646 7647 7648#AC_CANONICAL_HOST 7649 7650 7651# Check whether --enable-ansi or --disable-ansi was given. 7652if test "${enable_ansi+set}" = set; then 7653 enableval="$enable_ansi" 7654 7655else 7656 enable_ansi=no 7657fi; 7658 7659 7660ac_ext=c 7661ac_cpp='$CPP $CPPFLAGS' 7662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7664ac_compiler_gnu=$ac_cv_c_compiler_gnu 7665if test -n "$ac_tool_prefix"; then 7666 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 7667set dummy ${ac_tool_prefix}gcc; ac_word=$2 7668echo "$as_me:$LINENO: checking for $ac_word" >&5 7669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7670if test "${ac_cv_prog_CC+set}" = set; then 7671 echo $ECHO_N "(cached) $ECHO_C" >&6 7672else 7673 if test -n "$CC"; then 7674 ac_cv_prog_CC="$CC" # Let the user override the test. 7675else 7676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7677for as_dir in $PATH 7678do 7679 IFS=$as_save_IFS 7680 test -z "$as_dir" && as_dir=. 7681 for ac_exec_ext in '' $ac_executable_extensions; do 7682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7683 ac_cv_prog_CC="${ac_tool_prefix}gcc" 7684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7685 break 2 7686 fi 7687done 7688done 7689 7690fi 7691fi 7692CC=$ac_cv_prog_CC 7693if test -n "$CC"; then 7694 echo "$as_me:$LINENO: result: $CC" >&5 7695echo "${ECHO_T}$CC" >&6 7696else 7697 echo "$as_me:$LINENO: result: no" >&5 7698echo "${ECHO_T}no" >&6 7699fi 7700 7701fi 7702if test -z "$ac_cv_prog_CC"; then 7703 ac_ct_CC=$CC 7704 # Extract the first word of "gcc", so it can be a program name with args. 7705set dummy gcc; ac_word=$2 7706echo "$as_me:$LINENO: checking for $ac_word" >&5 7707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7708if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 7709 echo $ECHO_N "(cached) $ECHO_C" >&6 7710else 7711 if test -n "$ac_ct_CC"; then 7712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 7713else 7714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7715for as_dir in $PATH 7716do 7717 IFS=$as_save_IFS 7718 test -z "$as_dir" && as_dir=. 7719 for ac_exec_ext in '' $ac_executable_extensions; do 7720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7721 ac_cv_prog_ac_ct_CC="gcc" 7722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7723 break 2 7724 fi 7725done 7726done 7727 7728fi 7729fi 7730ac_ct_CC=$ac_cv_prog_ac_ct_CC 7731if test -n "$ac_ct_CC"; then 7732 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 7733echo "${ECHO_T}$ac_ct_CC" >&6 7734else 7735 echo "$as_me:$LINENO: result: no" >&5 7736echo "${ECHO_T}no" >&6 7737fi 7738 7739 CC=$ac_ct_CC 7740else 7741 CC="$ac_cv_prog_CC" 7742fi 7743 7744if test -z "$CC"; then 7745 if test -n "$ac_tool_prefix"; then 7746 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 7747set dummy ${ac_tool_prefix}cc; ac_word=$2 7748echo "$as_me:$LINENO: checking for $ac_word" >&5 7749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7750if test "${ac_cv_prog_CC+set}" = set; then 7751 echo $ECHO_N "(cached) $ECHO_C" >&6 7752else 7753 if test -n "$CC"; then 7754 ac_cv_prog_CC="$CC" # Let the user override the test. 7755else 7756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7757for as_dir in $PATH 7758do 7759 IFS=$as_save_IFS 7760 test -z "$as_dir" && as_dir=. 7761 for ac_exec_ext in '' $ac_executable_extensions; do 7762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7763 ac_cv_prog_CC="${ac_tool_prefix}cc" 7764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7765 break 2 7766 fi 7767done 7768done 7769 7770fi 7771fi 7772CC=$ac_cv_prog_CC 7773if test -n "$CC"; then 7774 echo "$as_me:$LINENO: result: $CC" >&5 7775echo "${ECHO_T}$CC" >&6 7776else 7777 echo "$as_me:$LINENO: result: no" >&5 7778echo "${ECHO_T}no" >&6 7779fi 7780 7781fi 7782if test -z "$ac_cv_prog_CC"; then 7783 ac_ct_CC=$CC 7784 # Extract the first word of "cc", so it can be a program name with args. 7785set dummy cc; ac_word=$2 7786echo "$as_me:$LINENO: checking for $ac_word" >&5 7787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7788if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 7789 echo $ECHO_N "(cached) $ECHO_C" >&6 7790else 7791 if test -n "$ac_ct_CC"; then 7792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 7793else 7794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7795for as_dir in $PATH 7796do 7797 IFS=$as_save_IFS 7798 test -z "$as_dir" && as_dir=. 7799 for ac_exec_ext in '' $ac_executable_extensions; do 7800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7801 ac_cv_prog_ac_ct_CC="cc" 7802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7803 break 2 7804 fi 7805done 7806done 7807 7808fi 7809fi 7810ac_ct_CC=$ac_cv_prog_ac_ct_CC 7811if test -n "$ac_ct_CC"; then 7812 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 7813echo "${ECHO_T}$ac_ct_CC" >&6 7814else 7815 echo "$as_me:$LINENO: result: no" >&5 7816echo "${ECHO_T}no" >&6 7817fi 7818 7819 CC=$ac_ct_CC 7820else 7821 CC="$ac_cv_prog_CC" 7822fi 7823 7824fi 7825if test -z "$CC"; then 7826 # Extract the first word of "cc", so it can be a program name with args. 7827set dummy cc; ac_word=$2 7828echo "$as_me:$LINENO: checking for $ac_word" >&5 7829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7830if test "${ac_cv_prog_CC+set}" = set; then 7831 echo $ECHO_N "(cached) $ECHO_C" >&6 7832else 7833 if test -n "$CC"; then 7834 ac_cv_prog_CC="$CC" # Let the user override the test. 7835else 7836 ac_prog_rejected=no 7837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7838for as_dir in $PATH 7839do 7840 IFS=$as_save_IFS 7841 test -z "$as_dir" && as_dir=. 7842 for ac_exec_ext in '' $ac_executable_extensions; do 7843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7844 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 7845 ac_prog_rejected=yes 7846 continue 7847 fi 7848 ac_cv_prog_CC="cc" 7849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7850 break 2 7851 fi 7852done 7853done 7854 7855if test $ac_prog_rejected = yes; then 7856 # We found a bogon in the path, so make sure we never use it. 7857 set dummy $ac_cv_prog_CC 7858 shift 7859 if test $# != 0; then 7860 # We chose a different compiler from the bogus one. 7861 # However, it has the same basename, so the bogon will be chosen 7862 # first if we set CC to just the basename; use the full file name. 7863 shift 7864 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 7865 fi 7866fi 7867fi 7868fi 7869CC=$ac_cv_prog_CC 7870if test -n "$CC"; then 7871 echo "$as_me:$LINENO: result: $CC" >&5 7872echo "${ECHO_T}$CC" >&6 7873else 7874 echo "$as_me:$LINENO: result: no" >&5 7875echo "${ECHO_T}no" >&6 7876fi 7877 7878fi 7879if test -z "$CC"; then 7880 if test -n "$ac_tool_prefix"; then 7881 for ac_prog in cl 7882 do 7883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7884set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7885echo "$as_me:$LINENO: checking for $ac_word" >&5 7886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7887if test "${ac_cv_prog_CC+set}" = set; then 7888 echo $ECHO_N "(cached) $ECHO_C" >&6 7889else 7890 if test -n "$CC"; then 7891 ac_cv_prog_CC="$CC" # Let the user override the test. 7892else 7893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7894for as_dir in $PATH 7895do 7896 IFS=$as_save_IFS 7897 test -z "$as_dir" && as_dir=. 7898 for ac_exec_ext in '' $ac_executable_extensions; do 7899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7900 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 7901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7902 break 2 7903 fi 7904done 7905done 7906 7907fi 7908fi 7909CC=$ac_cv_prog_CC 7910if test -n "$CC"; then 7911 echo "$as_me:$LINENO: result: $CC" >&5 7912echo "${ECHO_T}$CC" >&6 7913else 7914 echo "$as_me:$LINENO: result: no" >&5 7915echo "${ECHO_T}no" >&6 7916fi 7917 7918 test -n "$CC" && break 7919 done 7920fi 7921if test -z "$CC"; then 7922 ac_ct_CC=$CC 7923 for ac_prog in cl 7924do 7925 # Extract the first word of "$ac_prog", so it can be a program name with args. 7926set dummy $ac_prog; ac_word=$2 7927echo "$as_me:$LINENO: checking for $ac_word" >&5 7928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7929if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 7930 echo $ECHO_N "(cached) $ECHO_C" >&6 7931else 7932 if test -n "$ac_ct_CC"; then 7933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 7934else 7935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7936for as_dir in $PATH 7937do 7938 IFS=$as_save_IFS 7939 test -z "$as_dir" && as_dir=. 7940 for ac_exec_ext in '' $ac_executable_extensions; do 7941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7942 ac_cv_prog_ac_ct_CC="$ac_prog" 7943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7944 break 2 7945 fi 7946done 7947done 7948 7949fi 7950fi 7951ac_ct_CC=$ac_cv_prog_ac_ct_CC 7952if test -n "$ac_ct_CC"; then 7953 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 7954echo "${ECHO_T}$ac_ct_CC" >&6 7955else 7956 echo "$as_me:$LINENO: result: no" >&5 7957echo "${ECHO_T}no" >&6 7958fi 7959 7960 test -n "$ac_ct_CC" && break 7961done 7962 7963 CC=$ac_ct_CC 7964fi 7965 7966fi 7967 7968 7969test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 7970echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} 7971 { (exit 1); exit 1; }; } 7972 7973# Provide some information about the compiler. 7974echo "$as_me:$LINENO:" \ 7975 "checking for C compiler version" >&5 7976ac_compiler=`set X $ac_compile; echo $2` 7977{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 7978 (eval $ac_compiler --version </dev/null >&5) 2>&5 7979 ac_status=$? 7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7981 (exit $ac_status); } 7982{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 7983 (eval $ac_compiler -v </dev/null >&5) 2>&5 7984 ac_status=$? 7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7986 (exit $ac_status); } 7987{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 7988 (eval $ac_compiler -V </dev/null >&5) 2>&5 7989 ac_status=$? 7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7991 (exit $ac_status); } 7992 7993echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 7994echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 7995if test "${ac_cv_c_compiler_gnu+set}" = set; then 7996 echo $ECHO_N "(cached) $ECHO_C" >&6 7997else 7998 cat >conftest.$ac_ext <<_ACEOF 7999#line $LINENO "configure" 8000#include "confdefs.h" 8001 8002#ifdef F77_DUMMY_MAIN 8003# ifdef __cplusplus 8004 extern "C" 8005# endif 8006 int F77_DUMMY_MAIN() { return 1; } 8007#endif 8008int 8009main () 8010{ 8011#ifndef __GNUC__ 8012 choke me 8013#endif 8014 8015 ; 8016 return 0; 8017} 8018_ACEOF 8019rm -f conftest.$ac_objext 8020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8021 (eval $ac_compile) 2>&5 8022 ac_status=$? 8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8024 (exit $ac_status); } && 8025 { ac_try='test -s conftest.$ac_objext' 8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8027 (eval $ac_try) 2>&5 8028 ac_status=$? 8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8030 (exit $ac_status); }; }; then 8031 ac_compiler_gnu=yes 8032else 8033 echo "$as_me: failed program was:" >&5 8034cat conftest.$ac_ext >&5 8035ac_compiler_gnu=no 8036fi 8037rm -f conftest.$ac_objext conftest.$ac_ext 8038ac_cv_c_compiler_gnu=$ac_compiler_gnu 8039 8040fi 8041echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 8042echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 8043GCC=`test $ac_compiler_gnu = yes && echo yes` 8044ac_test_CFLAGS=${CFLAGS+set} 8045ac_save_CFLAGS=$CFLAGS 8046CFLAGS="-g" 8047echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 8048echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 8049if test "${ac_cv_prog_cc_g+set}" = set; then 8050 echo $ECHO_N "(cached) $ECHO_C" >&6 8051else 8052 cat >conftest.$ac_ext <<_ACEOF 8053#line $LINENO "configure" 8054#include "confdefs.h" 8055 8056#ifdef F77_DUMMY_MAIN 8057# ifdef __cplusplus 8058 extern "C" 8059# endif 8060 int F77_DUMMY_MAIN() { return 1; } 8061#endif 8062int 8063main () 8064{ 8065 8066 ; 8067 return 0; 8068} 8069_ACEOF 8070rm -f conftest.$ac_objext 8071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8072 (eval $ac_compile) 2>&5 8073 ac_status=$? 8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8075 (exit $ac_status); } && 8076 { ac_try='test -s conftest.$ac_objext' 8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8078 (eval $ac_try) 2>&5 8079 ac_status=$? 8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8081 (exit $ac_status); }; }; then 8082 ac_cv_prog_cc_g=yes 8083else 8084 echo "$as_me: failed program was:" >&5 8085cat conftest.$ac_ext >&5 8086ac_cv_prog_cc_g=no 8087fi 8088rm -f conftest.$ac_objext conftest.$ac_ext 8089fi 8090echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 8091echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 8092if test "$ac_test_CFLAGS" = set; then 8093 CFLAGS=$ac_save_CFLAGS 8094elif test $ac_cv_prog_cc_g = yes; then 8095 if test "$GCC" = yes; then 8096 CFLAGS="-g -O2" 8097 else 8098 CFLAGS="-g" 8099 fi 8100else 8101 if test "$GCC" = yes; then 8102 CFLAGS="-O2" 8103 else 8104 CFLAGS= 8105 fi 8106fi 8107echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 8108echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 8109if test "${ac_cv_prog_cc_stdc+set}" = set; then 8110 echo $ECHO_N "(cached) $ECHO_C" >&6 8111else 8112 ac_cv_prog_cc_stdc=no 8113ac_save_CC=$CC 8114cat >conftest.$ac_ext <<_ACEOF 8115#line $LINENO "configure" 8116#include "confdefs.h" 8117#include <stdarg.h> 8118#include <stdio.h> 8119#include <sys/types.h> 8120#include <sys/stat.h> 8121/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 8122struct buf { int x; }; 8123FILE * (*rcsopen) (struct buf *, struct stat *, int); 8124static char *e (p, i) 8125 char **p; 8126 int i; 8127{ 8128 return p[i]; 8129} 8130static char *f (char * (*g) (char **, int), char **p, ...) 8131{ 8132 char *s; 8133 va_list v; 8134 va_start (v,p); 8135 s = g (p, va_arg (v,int)); 8136 va_end (v); 8137 return s; 8138} 8139int test (int i, double x); 8140struct s1 {int (*f) (int a);}; 8141struct s2 {int (*f) (double a);}; 8142int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 8143int argc; 8144char **argv; 8145#ifdef F77_DUMMY_MAIN 8146# ifdef __cplusplus 8147 extern "C" 8148# endif 8149 int F77_DUMMY_MAIN() { return 1; } 8150#endif 8151int 8152main () 8153{ 8154return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 8155 ; 8156 return 0; 8157} 8158_ACEOF 8159# Don't try gcc -ansi; that turns off useful extensions and 8160# breaks some systems' header files. 8161# AIX -qlanglvl=ansi 8162# Ultrix and OSF/1 -std1 8163# HP-UX 10.20 and later -Ae 8164# HP-UX older versions -Aa -D_HPUX_SOURCE 8165# SVR4 -Xc -D__EXTENSIONS__ 8166for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 8167do 8168 CC="$ac_save_CC $ac_arg" 8169 rm -f conftest.$ac_objext 8170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8171 (eval $ac_compile) 2>&5 8172 ac_status=$? 8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8174 (exit $ac_status); } && 8175 { ac_try='test -s conftest.$ac_objext' 8176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8177 (eval $ac_try) 2>&5 8178 ac_status=$? 8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8180 (exit $ac_status); }; }; then 8181 ac_cv_prog_cc_stdc=$ac_arg 8182break 8183else 8184 echo "$as_me: failed program was:" >&5 8185cat conftest.$ac_ext >&5 8186fi 8187rm -f conftest.$ac_objext 8188done 8189rm -f conftest.$ac_ext conftest.$ac_objext 8190CC=$ac_save_CC 8191 8192fi 8193 8194case "x$ac_cv_prog_cc_stdc" in 8195 x|xno) 8196 echo "$as_me:$LINENO: result: none needed" >&5 8197echo "${ECHO_T}none needed" >&6 ;; 8198 *) 8199 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 8200echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 8201 CC="$CC $ac_cv_prog_cc_stdc" ;; 8202esac 8203 8204# Some people use a C++ compiler to compile C. Since we use `exit', 8205# in C++ we need to declare it. In case someone uses the same compiler 8206# for both compiling C and C++ we need to have the C++ compiler decide 8207# the declaration of exit, since it's the most demanding environment. 8208cat >conftest.$ac_ext <<_ACEOF 8209#ifndef __cplusplus 8210 choke me 8211#endif 8212_ACEOF 8213rm -f conftest.$ac_objext 8214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8215 (eval $ac_compile) 2>&5 8216 ac_status=$? 8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8218 (exit $ac_status); } && 8219 { ac_try='test -s conftest.$ac_objext' 8220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8221 (eval $ac_try) 2>&5 8222 ac_status=$? 8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8224 (exit $ac_status); }; }; then 8225 for ac_declaration in \ 8226 ''\ 8227 '#include <stdlib.h>' \ 8228 'extern "C" void std::exit (int) throw (); using std::exit;' \ 8229 'extern "C" void std::exit (int); using std::exit;' \ 8230 'extern "C" void exit (int) throw ();' \ 8231 'extern "C" void exit (int);' \ 8232 'void exit (int);' 8233do 8234 cat >conftest.$ac_ext <<_ACEOF 8235#line $LINENO "configure" 8236#include "confdefs.h" 8237#include <stdlib.h> 8238$ac_declaration 8239#ifdef F77_DUMMY_MAIN 8240# ifdef __cplusplus 8241 extern "C" 8242# endif 8243 int F77_DUMMY_MAIN() { return 1; } 8244#endif 8245int 8246main () 8247{ 8248exit (42); 8249 ; 8250 return 0; 8251} 8252_ACEOF 8253rm -f conftest.$ac_objext 8254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8255 (eval $ac_compile) 2>&5 8256 ac_status=$? 8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8258 (exit $ac_status); } && 8259 { ac_try='test -s conftest.$ac_objext' 8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8261 (eval $ac_try) 2>&5 8262 ac_status=$? 8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8264 (exit $ac_status); }; }; then 8265 : 8266else 8267 echo "$as_me: failed program was:" >&5 8268cat conftest.$ac_ext >&5 8269continue 8270fi 8271rm -f conftest.$ac_objext conftest.$ac_ext 8272 cat >conftest.$ac_ext <<_ACEOF 8273#line $LINENO "configure" 8274#include "confdefs.h" 8275$ac_declaration 8276#ifdef F77_DUMMY_MAIN 8277# ifdef __cplusplus 8278 extern "C" 8279# endif 8280 int F77_DUMMY_MAIN() { return 1; } 8281#endif 8282int 8283main () 8284{ 8285exit (42); 8286 ; 8287 return 0; 8288} 8289_ACEOF 8290rm -f conftest.$ac_objext 8291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8292 (eval $ac_compile) 2>&5 8293 ac_status=$? 8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8295 (exit $ac_status); } && 8296 { ac_try='test -s conftest.$ac_objext' 8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8298 (eval $ac_try) 2>&5 8299 ac_status=$? 8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8301 (exit $ac_status); }; }; then 8302 break 8303else 8304 echo "$as_me: failed program was:" >&5 8305cat conftest.$ac_ext >&5 8306fi 8307rm -f conftest.$ac_objext conftest.$ac_ext 8308done 8309rm -f conftest* 8310if test -n "$ac_declaration"; then 8311 echo '#ifdef __cplusplus' >>confdefs.h 8312 echo $ac_declaration >>confdefs.h 8313 echo '#endif' >>confdefs.h 8314fi 8315 8316else 8317 echo "$as_me: failed program was:" >&5 8318cat conftest.$ac_ext >&5 8319fi 8320rm -f conftest.$ac_objext conftest.$ac_ext 8321ac_ext=c 8322ac_cpp='$CPP $CPPFLAGS' 8323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8325ac_compiler_gnu=$ac_cv_c_compiler_gnu 8326 8327depcc="$CC" am_compiler_list= 8328 8329echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 8330echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 8331if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 8332 echo $ECHO_N "(cached) $ECHO_C" >&6 8333else 8334 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 8335 # We make a subdir and do the tests there. Otherwise we can end up 8336 # making bogus files that we don't know about and never remove. For 8337 # instance it was reported that on HP-UX the gcc test will end up 8338 # making a dummy file named `D' -- because `-MD' means `put the output 8339 # in D'. 8340 mkdir conftest.dir 8341 # Copy depcomp to subdir because otherwise we won't find it if we're 8342 # using a relative directory. 8343 cp "$am_depcomp" conftest.dir 8344 cd conftest.dir 8345 8346 am_cv_CC_dependencies_compiler_type=none 8347 if test "$am_compiler_list" = ""; then 8348 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 8349 fi 8350 for depmode in $am_compiler_list; do 8351 # We need to recreate these files for each test, as the compiler may 8352 # overwrite some of them when testing with obscure command lines. 8353 # This happens at least with the AIX C compiler. 8354 echo '#include "conftest.h"' > conftest.c 8355 echo 'int i;' > conftest.h 8356 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 8357 8358 case $depmode in 8359 nosideeffect) 8360 # after this tag, mechanisms are not by side-effect, so they'll 8361 # only be used when explicitly requested 8362 if test "x$enable_dependency_tracking" = xyes; then 8363 continue 8364 else 8365 break 8366 fi 8367 ;; 8368 none) break ;; 8369 esac 8370 # We check with `-c' and `-o' for the sake of the "dashmstdout" 8371 # mode. It turns out that the SunPro C++ compiler does not properly 8372 # handle `-M -o', and we need to detect this. 8373 if depmode=$depmode \ 8374 source=conftest.c object=conftest.o \ 8375 depfile=conftest.Po tmpdepfile=conftest.TPo \ 8376 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 8377 grep conftest.h conftest.Po > /dev/null 2>&1 && 8378 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 8379 am_cv_CC_dependencies_compiler_type=$depmode 8380 break 8381 fi 8382 done 8383 8384 cd .. 8385 rm -rf conftest.dir 8386else 8387 am_cv_CC_dependencies_compiler_type=none 8388fi 8389 8390fi 8391echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 8392echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 8393CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 8394 8395 8396ac_ext=cc 8397ac_cpp='$CXXCPP $CPPFLAGS' 8398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8401if test -n "$ac_tool_prefix"; then 8402 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 8403 do 8404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8405set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8406echo "$as_me:$LINENO: checking for $ac_word" >&5 8407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8408if test "${ac_cv_prog_CXX+set}" = set; then 8409 echo $ECHO_N "(cached) $ECHO_C" >&6 8410else 8411 if test -n "$CXX"; then 8412 ac_cv_prog_CXX="$CXX" # Let the user override the test. 8413else 8414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8415for as_dir in $PATH 8416do 8417 IFS=$as_save_IFS 8418 test -z "$as_dir" && as_dir=. 8419 for ac_exec_ext in '' $ac_executable_extensions; do 8420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8421 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 8422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8423 break 2 8424 fi 8425done 8426done 8427 8428fi 8429fi 8430CXX=$ac_cv_prog_CXX 8431if test -n "$CXX"; then 8432 echo "$as_me:$LINENO: result: $CXX" >&5 8433echo "${ECHO_T}$CXX" >&6 8434else 8435 echo "$as_me:$LINENO: result: no" >&5 8436echo "${ECHO_T}no" >&6 8437fi 8438 8439 test -n "$CXX" && break 8440 done 8441fi 8442if test -z "$CXX"; then 8443 ac_ct_CXX=$CXX 8444 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 8445do 8446 # Extract the first word of "$ac_prog", so it can be a program name with args. 8447set dummy $ac_prog; ac_word=$2 8448echo "$as_me:$LINENO: checking for $ac_word" >&5 8449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8450if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 8451 echo $ECHO_N "(cached) $ECHO_C" >&6 8452else 8453 if test -n "$ac_ct_CXX"; then 8454 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 8455else 8456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8457for as_dir in $PATH 8458do 8459 IFS=$as_save_IFS 8460 test -z "$as_dir" && as_dir=. 8461 for ac_exec_ext in '' $ac_executable_extensions; do 8462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8463 ac_cv_prog_ac_ct_CXX="$ac_prog" 8464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8465 break 2 8466 fi 8467done 8468done 8469 8470fi 8471fi 8472ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 8473if test -n "$ac_ct_CXX"; then 8474 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 8475echo "${ECHO_T}$ac_ct_CXX" >&6 8476else 8477 echo "$as_me:$LINENO: result: no" >&5 8478echo "${ECHO_T}no" >&6 8479fi 8480 8481 test -n "$ac_ct_CXX" && break 8482done 8483test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 8484 8485 CXX=$ac_ct_CXX 8486fi 8487 8488 8489# Provide some information about the compiler. 8490echo "$as_me:$LINENO:" \ 8491 "checking for C++ compiler version" >&5 8492ac_compiler=`set X $ac_compile; echo $2` 8493{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 8494 (eval $ac_compiler --version </dev/null >&5) 2>&5 8495 ac_status=$? 8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8497 (exit $ac_status); } 8498{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 8499 (eval $ac_compiler -v </dev/null >&5) 2>&5 8500 ac_status=$? 8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8502 (exit $ac_status); } 8503{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 8504 (eval $ac_compiler -V </dev/null >&5) 2>&5 8505 ac_status=$? 8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8507 (exit $ac_status); } 8508 8509echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 8510echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 8511if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 8512 echo $ECHO_N "(cached) $ECHO_C" >&6 8513else 8514 cat >conftest.$ac_ext <<_ACEOF 8515#line $LINENO "configure" 8516#include "confdefs.h" 8517 8518#ifdef F77_DUMMY_MAIN 8519# ifdef __cplusplus 8520 extern "C" 8521# endif 8522 int F77_DUMMY_MAIN() { return 1; } 8523#endif 8524int 8525main () 8526{ 8527#ifndef __GNUC__ 8528 choke me 8529#endif 8530 8531 ; 8532 return 0; 8533} 8534_ACEOF 8535rm -f conftest.$ac_objext 8536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8537 (eval $ac_compile) 2>&5 8538 ac_status=$? 8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8540 (exit $ac_status); } && 8541 { ac_try='test -s conftest.$ac_objext' 8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8543 (eval $ac_try) 2>&5 8544 ac_status=$? 8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8546 (exit $ac_status); }; }; then 8547 ac_compiler_gnu=yes 8548else 8549 echo "$as_me: failed program was:" >&5 8550cat conftest.$ac_ext >&5 8551ac_compiler_gnu=no 8552fi 8553rm -f conftest.$ac_objext conftest.$ac_ext 8554ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 8555 8556fi 8557echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 8558echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 8559GXX=`test $ac_compiler_gnu = yes && echo yes` 8560ac_test_CXXFLAGS=${CXXFLAGS+set} 8561ac_save_CXXFLAGS=$CXXFLAGS 8562CXXFLAGS="-g" 8563echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 8564echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 8565if test "${ac_cv_prog_cxx_g+set}" = set; then 8566 echo $ECHO_N "(cached) $ECHO_C" >&6 8567else 8568 cat >conftest.$ac_ext <<_ACEOF 8569#line $LINENO "configure" 8570#include "confdefs.h" 8571 8572#ifdef F77_DUMMY_MAIN 8573# ifdef __cplusplus 8574 extern "C" 8575# endif 8576 int F77_DUMMY_MAIN() { return 1; } 8577#endif 8578int 8579main () 8580{ 8581 8582 ; 8583 return 0; 8584} 8585_ACEOF 8586rm -f conftest.$ac_objext 8587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8588 (eval $ac_compile) 2>&5 8589 ac_status=$? 8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8591 (exit $ac_status); } && 8592 { ac_try='test -s conftest.$ac_objext' 8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8594 (eval $ac_try) 2>&5 8595 ac_status=$? 8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8597 (exit $ac_status); }; }; then 8598 ac_cv_prog_cxx_g=yes 8599else 8600 echo "$as_me: failed program was:" >&5 8601cat conftest.$ac_ext >&5 8602ac_cv_prog_cxx_g=no 8603fi 8604rm -f conftest.$ac_objext conftest.$ac_ext 8605fi 8606echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 8607echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 8608if test "$ac_test_CXXFLAGS" = set; then 8609 CXXFLAGS=$ac_save_CXXFLAGS 8610elif test $ac_cv_prog_cxx_g = yes; then 8611 if test "$GXX" = yes; then 8612 CXXFLAGS="-g -O2" 8613 else 8614 CXXFLAGS="-g" 8615 fi 8616else 8617 if test "$GXX" = yes; then 8618 CXXFLAGS="-O2" 8619 else 8620 CXXFLAGS= 8621 fi 8622fi 8623for ac_declaration in \ 8624 ''\ 8625 '#include <stdlib.h>' \ 8626 'extern "C" void std::exit (int) throw (); using std::exit;' \ 8627 'extern "C" void std::exit (int); using std::exit;' \ 8628 'extern "C" void exit (int) throw ();' \ 8629 'extern "C" void exit (int);' \ 8630 'void exit (int);' 8631do 8632 cat >conftest.$ac_ext <<_ACEOF 8633#line $LINENO "configure" 8634#include "confdefs.h" 8635#include <stdlib.h> 8636$ac_declaration 8637#ifdef F77_DUMMY_MAIN 8638# ifdef __cplusplus 8639 extern "C" 8640# endif 8641 int F77_DUMMY_MAIN() { return 1; } 8642#endif 8643int 8644main () 8645{ 8646exit (42); 8647 ; 8648 return 0; 8649} 8650_ACEOF 8651rm -f conftest.$ac_objext 8652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8653 (eval $ac_compile) 2>&5 8654 ac_status=$? 8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8656 (exit $ac_status); } && 8657 { ac_try='test -s conftest.$ac_objext' 8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8659 (eval $ac_try) 2>&5 8660 ac_status=$? 8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8662 (exit $ac_status); }; }; then 8663 : 8664else 8665 echo "$as_me: failed program was:" >&5 8666cat conftest.$ac_ext >&5 8667continue 8668fi 8669rm -f conftest.$ac_objext conftest.$ac_ext 8670 cat >conftest.$ac_ext <<_ACEOF 8671#line $LINENO "configure" 8672#include "confdefs.h" 8673$ac_declaration 8674#ifdef F77_DUMMY_MAIN 8675# ifdef __cplusplus 8676 extern "C" 8677# endif 8678 int F77_DUMMY_MAIN() { return 1; } 8679#endif 8680int 8681main () 8682{ 8683exit (42); 8684 ; 8685 return 0; 8686} 8687_ACEOF 8688rm -f conftest.$ac_objext 8689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8690 (eval $ac_compile) 2>&5 8691 ac_status=$? 8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8693 (exit $ac_status); } && 8694 { ac_try='test -s conftest.$ac_objext' 8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8696 (eval $ac_try) 2>&5 8697 ac_status=$? 8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8699 (exit $ac_status); }; }; then 8700 break 8701else 8702 echo "$as_me: failed program was:" >&5 8703cat conftest.$ac_ext >&5 8704fi 8705rm -f conftest.$ac_objext conftest.$ac_ext 8706done 8707rm -f conftest* 8708if test -n "$ac_declaration"; then 8709 echo '#ifdef __cplusplus' >>confdefs.h 8710 echo $ac_declaration >>confdefs.h 8711 echo '#endif' >>confdefs.h 8712fi 8713 8714ac_ext=c 8715ac_cpp='$CPP $CPPFLAGS' 8716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8718ac_compiler_gnu=$ac_cv_c_compiler_gnu 8719 8720depcc="$CXX" am_compiler_list= 8721 8722echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 8723echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 8724if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 8725 echo $ECHO_N "(cached) $ECHO_C" >&6 8726else 8727 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 8728 # We make a subdir and do the tests there. Otherwise we can end up 8729 # making bogus files that we don't know about and never remove. For 8730 # instance it was reported that on HP-UX the gcc test will end up 8731 # making a dummy file named `D' -- because `-MD' means `put the output 8732 # in D'. 8733 mkdir conftest.dir 8734 # Copy depcomp to subdir because otherwise we won't find it if we're 8735 # using a relative directory. 8736 cp "$am_depcomp" conftest.dir 8737 cd conftest.dir 8738 8739 am_cv_CXX_dependencies_compiler_type=none 8740 if test "$am_compiler_list" = ""; then 8741 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 8742 fi 8743 for depmode in $am_compiler_list; do 8744 # We need to recreate these files for each test, as the compiler may 8745 # overwrite some of them when testing with obscure command lines. 8746 # This happens at least with the AIX C compiler. 8747 echo '#include "conftest.h"' > conftest.c 8748 echo 'int i;' > conftest.h 8749 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 8750 8751 case $depmode in 8752 nosideeffect) 8753 # after this tag, mechanisms are not by side-effect, so they'll 8754 # only be used when explicitly requested 8755 if test "x$enable_dependency_tracking" = xyes; then 8756 continue 8757 else 8758 break 8759 fi 8760 ;; 8761 none) break ;; 8762 esac 8763 # We check with `-c' and `-o' for the sake of the "dashmstdout" 8764 # mode. It turns out that the SunPro C++ compiler does not properly 8765 # handle `-M -o', and we need to detect this. 8766 if depmode=$depmode \ 8767 source=conftest.c object=conftest.o \ 8768 depfile=conftest.Po tmpdepfile=conftest.TPo \ 8769 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 8770 grep conftest.h conftest.Po > /dev/null 2>&1 && 8771 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 8772 am_cv_CXX_dependencies_compiler_type=$depmode 8773 break 8774 fi 8775 done 8776 8777 cd .. 8778 rm -rf conftest.dir 8779else 8780 am_cv_CXX_dependencies_compiler_type=none 8781fi 8782 8783fi 8784echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 8785echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 8786CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 8787 8788 8789ac_ext=cc 8790ac_cpp='$CXXCPP $CPPFLAGS' 8791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8794echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 8795echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 8796if test -z "$CXXCPP"; then 8797 if test "${ac_cv_prog_CXXCPP+set}" = set; then 8798 echo $ECHO_N "(cached) $ECHO_C" >&6 8799else 8800 # Double quotes because CXXCPP needs to be expanded 8801 for CXXCPP in "$CXX -E" "/lib/cpp" 8802 do 8803 ac_preproc_ok=false 8804for ac_cxx_preproc_warn_flag in '' yes 8805do 8806 # Use a header file that comes with gcc, so configuring glibc 8807 # with a fresh cross-compiler works. 8808 # On the NeXT, cc -E runs the code through the compiler's parser, 8809 # not just through cpp. "Syntax error" is here to catch this case. 8810 cat >conftest.$ac_ext <<_ACEOF 8811#line $LINENO "configure" 8812#include "confdefs.h" 8813#include <assert.h> 8814 Syntax error 8815_ACEOF 8816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8818 ac_status=$? 8819 egrep -v '^ *\+' conftest.er1 >conftest.err 8820 rm -f conftest.er1 8821 cat conftest.err >&5 8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8823 (exit $ac_status); } >/dev/null; then 8824 if test -s conftest.err; then 8825 ac_cpp_err=$ac_cxx_preproc_warn_flag 8826 else 8827 ac_cpp_err= 8828 fi 8829else 8830 ac_cpp_err=yes 8831fi 8832if test -z "$ac_cpp_err"; then 8833 : 8834else 8835 echo "$as_me: failed program was:" >&5 8836 cat conftest.$ac_ext >&5 8837 # Broken: fails on valid input. 8838continue 8839fi 8840rm -f conftest.err conftest.$ac_ext 8841 8842 # OK, works on sane cases. Now check whether non-existent headers 8843 # can be detected and how. 8844 cat >conftest.$ac_ext <<_ACEOF 8845#line $LINENO "configure" 8846#include "confdefs.h" 8847#include <ac_nonexistent.h> 8848_ACEOF 8849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8851 ac_status=$? 8852 egrep -v '^ *\+' conftest.er1 >conftest.err 8853 rm -f conftest.er1 8854 cat conftest.err >&5 8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8856 (exit $ac_status); } >/dev/null; then 8857 if test -s conftest.err; then 8858 ac_cpp_err=$ac_cxx_preproc_warn_flag 8859 else 8860 ac_cpp_err= 8861 fi 8862else 8863 ac_cpp_err=yes 8864fi 8865if test -z "$ac_cpp_err"; then 8866 # Broken: success on invalid input. 8867continue 8868else 8869 echo "$as_me: failed program was:" >&5 8870 cat conftest.$ac_ext >&5 8871 # Passes both tests. 8872ac_preproc_ok=: 8873break 8874fi 8875rm -f conftest.err conftest.$ac_ext 8876 8877done 8878# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8879rm -f conftest.err conftest.$ac_ext 8880if $ac_preproc_ok; then 8881 break 8882fi 8883 8884 done 8885 ac_cv_prog_CXXCPP=$CXXCPP 8886 8887fi 8888 CXXCPP=$ac_cv_prog_CXXCPP 8889else 8890 ac_cv_prog_CXXCPP=$CXXCPP 8891fi 8892echo "$as_me:$LINENO: result: $CXXCPP" >&5 8893echo "${ECHO_T}$CXXCPP" >&6 8894ac_preproc_ok=false 8895for ac_cxx_preproc_warn_flag in '' yes 8896do 8897 # Use a header file that comes with gcc, so configuring glibc 8898 # with a fresh cross-compiler works. 8899 # On the NeXT, cc -E runs the code through the compiler's parser, 8900 # not just through cpp. "Syntax error" is here to catch this case. 8901 cat >conftest.$ac_ext <<_ACEOF 8902#line $LINENO "configure" 8903#include "confdefs.h" 8904#include <assert.h> 8905 Syntax error 8906_ACEOF 8907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8909 ac_status=$? 8910 egrep -v '^ *\+' conftest.er1 >conftest.err 8911 rm -f conftest.er1 8912 cat conftest.err >&5 8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8914 (exit $ac_status); } >/dev/null; then 8915 if test -s conftest.err; then 8916 ac_cpp_err=$ac_cxx_preproc_warn_flag 8917 else 8918 ac_cpp_err= 8919 fi 8920else 8921 ac_cpp_err=yes 8922fi 8923if test -z "$ac_cpp_err"; then 8924 : 8925else 8926 echo "$as_me: failed program was:" >&5 8927 cat conftest.$ac_ext >&5 8928 # Broken: fails on valid input. 8929continue 8930fi 8931rm -f conftest.err conftest.$ac_ext 8932 8933 # OK, works on sane cases. Now check whether non-existent headers 8934 # can be detected and how. 8935 cat >conftest.$ac_ext <<_ACEOF 8936#line $LINENO "configure" 8937#include "confdefs.h" 8938#include <ac_nonexistent.h> 8939_ACEOF 8940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8942 ac_status=$? 8943 egrep -v '^ *\+' conftest.er1 >conftest.err 8944 rm -f conftest.er1 8945 cat conftest.err >&5 8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8947 (exit $ac_status); } >/dev/null; then 8948 if test -s conftest.err; then 8949 ac_cpp_err=$ac_cxx_preproc_warn_flag 8950 else 8951 ac_cpp_err= 8952 fi 8953else 8954 ac_cpp_err=yes 8955fi 8956if test -z "$ac_cpp_err"; then 8957 # Broken: success on invalid input. 8958continue 8959else 8960 echo "$as_me: failed program was:" >&5 8961 cat conftest.$ac_ext >&5 8962 # Passes both tests. 8963ac_preproc_ok=: 8964break 8965fi 8966rm -f conftest.err conftest.$ac_ext 8967 8968done 8969# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8970rm -f conftest.err conftest.$ac_ext 8971if $ac_preproc_ok; then 8972 : 8973else 8974 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5 8975echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;} 8976 { (exit 1); exit 1; }; } 8977fi 8978 8979ac_ext=c 8980ac_cpp='$CPP $CPPFLAGS' 8981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8983ac_compiler_gnu=$ac_cv_c_compiler_gnu 8984 8985# Find a good install program. We prefer a C program (faster), 8986# so one script is as good as another. But avoid the broken or 8987# incompatible versions: 8988# SysV /etc/install, /usr/sbin/install 8989# SunOS /usr/etc/install 8990# IRIX /sbin/install 8991# AIX /bin/install 8992# AmigaOS /C/install, which installs bootblocks on floppy discs 8993# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 8994# AFS /usr/afsws/bin/install, which mishandles nonexistent args 8995# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 8996# ./install, which can be erroneously created by make from ./install.sh. 8997echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 8998echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 8999if test -z "$INSTALL"; then 9000if test "${ac_cv_path_install+set}" = set; then 9001 echo $ECHO_N "(cached) $ECHO_C" >&6 9002else 9003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9004for as_dir in $PATH 9005do 9006 IFS=$as_save_IFS 9007 test -z "$as_dir" && as_dir=. 9008 # Account for people who put trailing slashes in PATH elements. 9009case $as_dir/ in 9010 ./ | .// | /cC/* | \ 9011 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 9012 /usr/ucb/* ) ;; 9013 *) 9014 # OSF1 and SCO ODT 3.0 have their own names for install. 9015 # Don't use installbsd from OSF since it installs stuff as root 9016 # by default. 9017 for ac_prog in ginstall scoinst install; do 9018 for ac_exec_ext in '' $ac_executable_extensions; do 9019 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 9020 if test $ac_prog = install && 9021 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9022 # AIX install. It has an incompatible calling convention. 9023 : 9024 elif test $ac_prog = install && 9025 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9026 # program-specific install script used by HP pwplus--don't use. 9027 : 9028 else 9029 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 9030 break 3 9031 fi 9032 fi 9033 done 9034 done 9035 ;; 9036esac 9037done 9038 9039 9040fi 9041 if test "${ac_cv_path_install+set}" = set; then 9042 INSTALL=$ac_cv_path_install 9043 else 9044 # As a last resort, use the slow shell script. We don't cache a 9045 # path for INSTALL within a source directory, because that will 9046 # break other packages using the cache if that directory is 9047 # removed, or if the path is relative. 9048 INSTALL=$ac_install_sh 9049 fi 9050fi 9051echo "$as_me:$LINENO: result: $INSTALL" >&5 9052echo "${ECHO_T}$INSTALL" >&6 9053 9054# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 9055# It thinks the first close brace ends the variable substitution. 9056test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 9057 9058test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 9059 9060test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 9061 9062 9063 9064 9065echo "$as_me:$LINENO: checking for uncompress in -lz" >&5 9066echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6 9067if test "${ac_cv_lib_z_uncompress+set}" = set; then 9068 echo $ECHO_N "(cached) $ECHO_C" >&6 9069else 9070 ac_check_lib_save_LIBS=$LIBS 9071LIBS="-lz $LIBS" 9072cat >conftest.$ac_ext <<_ACEOF 9073#line $LINENO "configure" 9074#include "confdefs.h" 9075 9076/* Override any gcc2 internal prototype to avoid an error. */ 9077#ifdef __cplusplus 9078extern "C" 9079#endif 9080/* We use char because int might match the return type of a gcc2 9081 builtin and then its argument prototype would still apply. */ 9082char uncompress (); 9083#ifdef F77_DUMMY_MAIN 9084# ifdef __cplusplus 9085 extern "C" 9086# endif 9087 int F77_DUMMY_MAIN() { return 1; } 9088#endif 9089int 9090main () 9091{ 9092uncompress (); 9093 ; 9094 return 0; 9095} 9096_ACEOF 9097rm -f conftest.$ac_objext conftest$ac_exeext 9098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9099 (eval $ac_link) 2>&5 9100 ac_status=$? 9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9102 (exit $ac_status); } && 9103 { ac_try='test -s conftest$ac_exeext' 9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9105 (eval $ac_try) 2>&5 9106 ac_status=$? 9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9108 (exit $ac_status); }; }; then 9109 ac_cv_lib_z_uncompress=yes 9110else 9111 echo "$as_me: failed program was:" >&5 9112cat conftest.$ac_ext >&5 9113ac_cv_lib_z_uncompress=no 9114fi 9115rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9116LIBS=$ac_check_lib_save_LIBS 9117fi 9118echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5 9119echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6 9120if test $ac_cv_lib_z_uncompress = yes; then 9121 cat >>confdefs.h <<_ACEOF 9122#define HAVE_ZLIB 1 9123_ACEOF 9124 9125fi 9126#,, 9127# AC_MSG_ERROR([id3lib requires zlib to process compressed frames])) 9128 9129 9130 9131if test x$ac_cv_lib_z_uncompress = xno; then 9132 ID3_NEEDZLIB_TRUE= 9133 ID3_NEEDZLIB_FALSE='#' 9134else 9135 ID3_NEEDZLIB_TRUE='#' 9136 ID3_NEEDZLIB_FALSE= 9137 LIBS="-lz $LIBS" 9138fi 9139 9140 9141 9142if test x$enable_debug = xyes; then 9143 ID3_NEEDDEBUG_TRUE= 9144 ID3_NEEDDEBUG_FALSE='#' 9145else 9146 ID3_NEEDDEBUG_TRUE='#' 9147 ID3_NEEDDEBUG_FALSE= 9148fi 9149 9150 9151echo "$as_me:$LINENO: checking for ANSI C header files" >&5 9152echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 9153if test "${ac_cv_header_stdc+set}" = set; then 9154 echo $ECHO_N "(cached) $ECHO_C" >&6 9155else 9156 cat >conftest.$ac_ext <<_ACEOF 9157#line $LINENO "configure" 9158#include "confdefs.h" 9159#include <stdlib.h> 9160#include <stdarg.h> 9161#include <string.h> 9162#include <float.h> 9163 9164_ACEOF 9165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9167 ac_status=$? 9168 egrep -v '^ *\+' conftest.er1 >conftest.err 9169 rm -f conftest.er1 9170 cat conftest.err >&5 9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9172 (exit $ac_status); } >/dev/null; then 9173 if test -s conftest.err; then 9174 ac_cpp_err=$ac_c_preproc_warn_flag 9175 else 9176 ac_cpp_err= 9177 fi 9178else 9179 ac_cpp_err=yes 9180fi 9181if test -z "$ac_cpp_err"; then 9182 ac_cv_header_stdc=yes 9183else 9184 echo "$as_me: failed program was:" >&5 9185 cat conftest.$ac_ext >&5 9186 ac_cv_header_stdc=no 9187fi 9188rm -f conftest.err conftest.$ac_ext 9189 9190if test $ac_cv_header_stdc = yes; then 9191 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 9192 cat >conftest.$ac_ext <<_ACEOF 9193#line $LINENO "configure" 9194#include "confdefs.h" 9195#include <string.h> 9196 9197_ACEOF 9198if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9199 egrep "memchr" >/dev/null 2>&1; then 9200 : 9201else 9202 ac_cv_header_stdc=no 9203fi 9204rm -f conftest* 9205 9206fi 9207 9208if test $ac_cv_header_stdc = yes; then 9209 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 9210 cat >conftest.$ac_ext <<_ACEOF 9211#line $LINENO "configure" 9212#include "confdefs.h" 9213#include <stdlib.h> 9214 9215_ACEOF 9216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9217 egrep "free" >/dev/null 2>&1; then 9218 : 9219else 9220 ac_cv_header_stdc=no 9221fi 9222rm -f conftest* 9223 9224fi 9225 9226if test $ac_cv_header_stdc = yes; then 9227 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 9228 if test "$cross_compiling" = yes; then 9229 : 9230else 9231 cat >conftest.$ac_ext <<_ACEOF 9232#line $LINENO "configure" 9233#include "confdefs.h" 9234#include <ctype.h> 9235#if ((' ' & 0x0FF) == 0x020) 9236# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 9237# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 9238#else 9239# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 9240 || ('j' <= (c) && (c) <= 'r') \ 9241 || ('s' <= (c) && (c) <= 'z')) 9242# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 9243#endif 9244 9245#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 9246int 9247main () 9248{ 9249 int i; 9250 for (i = 0; i < 256; i++) 9251 if (XOR (islower (i), ISLOWER (i)) 9252 || toupper (i) != TOUPPER (i)) 9253 exit(2); 9254 exit (0); 9255} 9256_ACEOF 9257rm -f conftest$ac_exeext 9258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9259 (eval $ac_link) 2>&5 9260 ac_status=$? 9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9264 (eval $ac_try) 2>&5 9265 ac_status=$? 9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9267 (exit $ac_status); }; }; then 9268 : 9269else 9270 echo "$as_me: program exited with status $ac_status" >&5 9271echo "$as_me: failed program was:" >&5 9272cat conftest.$ac_ext >&5 9273( exit $ac_status ) 9274ac_cv_header_stdc=no 9275fi 9276rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9277fi 9278fi 9279fi 9280echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 9281echo "${ECHO_T}$ac_cv_header_stdc" >&6 9282if test $ac_cv_header_stdc = yes; then 9283 9284cat >>confdefs.h <<\_ACEOF 9285#define STDC_HEADERS 1 9286_ACEOF 9287 9288fi 9289 9290 9291 9292 9293 9294for ac_header in zlib.h wchar.h sys/param.h unistd.h 9295do 9296as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9297if eval "test \"\${$as_ac_Header+set}\" = set"; then 9298 echo "$as_me:$LINENO: checking for $ac_header" >&5 9299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9300if eval "test \"\${$as_ac_Header+set}\" = set"; then 9301 echo $ECHO_N "(cached) $ECHO_C" >&6 9302fi 9303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9305else 9306 # Is the header compilable? 9307echo "$as_me:$LINENO: checking $ac_header usability" >&5 9308echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9309cat >conftest.$ac_ext <<_ACEOF 9310#line $LINENO "configure" 9311#include "confdefs.h" 9312$ac_includes_default 9313#include <$ac_header> 9314_ACEOF 9315rm -f conftest.$ac_objext 9316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9317 (eval $ac_compile) 2>&5 9318 ac_status=$? 9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9320 (exit $ac_status); } && 9321 { ac_try='test -s conftest.$ac_objext' 9322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9323 (eval $ac_try) 2>&5 9324 ac_status=$? 9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9326 (exit $ac_status); }; }; then 9327 ac_header_compiler=yes 9328else 9329 echo "$as_me: failed program was:" >&5 9330cat conftest.$ac_ext >&5 9331ac_header_compiler=no 9332fi 9333rm -f conftest.$ac_objext conftest.$ac_ext 9334echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9335echo "${ECHO_T}$ac_header_compiler" >&6 9336 9337# Is the header present? 9338echo "$as_me:$LINENO: checking $ac_header presence" >&5 9339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9340cat >conftest.$ac_ext <<_ACEOF 9341#line $LINENO "configure" 9342#include "confdefs.h" 9343#include <$ac_header> 9344_ACEOF 9345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9347 ac_status=$? 9348 egrep -v '^ *\+' conftest.er1 >conftest.err 9349 rm -f conftest.er1 9350 cat conftest.err >&5 9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9352 (exit $ac_status); } >/dev/null; then 9353 if test -s conftest.err; then 9354 ac_cpp_err=$ac_c_preproc_warn_flag 9355 else 9356 ac_cpp_err= 9357 fi 9358else 9359 ac_cpp_err=yes 9360fi 9361if test -z "$ac_cpp_err"; then 9362 ac_header_preproc=yes 9363else 9364 echo "$as_me: failed program was:" >&5 9365 cat conftest.$ac_ext >&5 9366 ac_header_preproc=no 9367fi 9368rm -f conftest.err conftest.$ac_ext 9369echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9370echo "${ECHO_T}$ac_header_preproc" >&6 9371 9372# So? What about this header? 9373case $ac_header_compiler:$ac_header_preproc in 9374 yes:no ) 9375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9376echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9378echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 9379 no:yes ) 9380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9381echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9383echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9385echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 9386esac 9387echo "$as_me:$LINENO: checking for $ac_header" >&5 9388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9389if eval "test \"\${$as_ac_Header+set}\" = set"; then 9390 echo $ECHO_N "(cached) $ECHO_C" >&6 9391else 9392 eval "$as_ac_Header=$ac_header_preproc" 9393fi 9394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9396 9397fi 9398if test `eval echo '${'$as_ac_Header'}'` = yes; then 9399 cat >>confdefs.h <<_ACEOF 9400#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9401_ACEOF 9402 9403fi 9404 9405done 9406 9407 9408 9409for ac_header in iconv.h 9410do 9411as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9412if eval "test \"\${$as_ac_Header+set}\" = set"; then 9413 echo "$as_me:$LINENO: checking for $ac_header" >&5 9414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9415if eval "test \"\${$as_ac_Header+set}\" = set"; then 9416 echo $ECHO_N "(cached) $ECHO_C" >&6 9417fi 9418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9419echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9420else 9421 # Is the header compilable? 9422echo "$as_me:$LINENO: checking $ac_header usability" >&5 9423echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9424cat >conftest.$ac_ext <<_ACEOF 9425#line $LINENO "configure" 9426#include "confdefs.h" 9427$ac_includes_default 9428#include <$ac_header> 9429_ACEOF 9430rm -f conftest.$ac_objext 9431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9432 (eval $ac_compile) 2>&5 9433 ac_status=$? 9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9435 (exit $ac_status); } && 9436 { ac_try='test -s conftest.$ac_objext' 9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9438 (eval $ac_try) 2>&5 9439 ac_status=$? 9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9441 (exit $ac_status); }; }; then 9442 ac_header_compiler=yes 9443else 9444 echo "$as_me: failed program was:" >&5 9445cat conftest.$ac_ext >&5 9446ac_header_compiler=no 9447fi 9448rm -f conftest.$ac_objext conftest.$ac_ext 9449echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9450echo "${ECHO_T}$ac_header_compiler" >&6 9451 9452# Is the header present? 9453echo "$as_me:$LINENO: checking $ac_header presence" >&5 9454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9455cat >conftest.$ac_ext <<_ACEOF 9456#line $LINENO "configure" 9457#include "confdefs.h" 9458#include <$ac_header> 9459_ACEOF 9460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9462 ac_status=$? 9463 egrep -v '^ *\+' conftest.er1 >conftest.err 9464 rm -f conftest.er1 9465 cat conftest.err >&5 9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9467 (exit $ac_status); } >/dev/null; then 9468 if test -s conftest.err; then 9469 ac_cpp_err=$ac_c_preproc_warn_flag 9470 else 9471 ac_cpp_err= 9472 fi 9473else 9474 ac_cpp_err=yes 9475fi 9476if test -z "$ac_cpp_err"; then 9477 ac_header_preproc=yes 9478else 9479 echo "$as_me: failed program was:" >&5 9480 cat conftest.$ac_ext >&5 9481 ac_header_preproc=no 9482fi 9483rm -f conftest.err conftest.$ac_ext 9484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9485echo "${ECHO_T}$ac_header_preproc" >&6 9486 9487# So? What about this header? 9488case $ac_header_compiler:$ac_header_preproc in 9489 yes:no ) 9490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9491echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 9494 no:yes ) 9495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9496echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9498echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 9501esac 9502echo "$as_me:$LINENO: checking for $ac_header" >&5 9503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9504if eval "test \"\${$as_ac_Header+set}\" = set"; then 9505 echo $ECHO_N "(cached) $ECHO_C" >&6 9506else 9507 eval "$as_ac_Header=$ac_header_preproc" 9508fi 9509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9510echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9511 9512fi 9513if test `eval echo '${'$as_ac_Header'}'` = yes; then 9514 cat >>confdefs.h <<_ACEOF 9515#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9516_ACEOF 9517 has_iconv=1 9518else 9519 has_iconv=0 9520fi 9521 9522done 9523 9524 9525 9526ICONV_LIB= 9527if test $has_iconv = 1; then 9528 echo "$as_me:$LINENO: checking where to find iconv_open" >&5 9529echo $ECHO_N "checking where to find iconv_open... $ECHO_C" >&6 9530 exec 6>/dev/null 9531 9532for ac_func in iconv_open 9533do 9534as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9535echo "$as_me:$LINENO: checking for $ac_func" >&5 9536echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9537if eval "test \"\${$as_ac_var+set}\" = set"; then 9538 echo $ECHO_N "(cached) $ECHO_C" >&6 9539else 9540 cat >conftest.$ac_ext <<_ACEOF 9541#line $LINENO "configure" 9542#include "confdefs.h" 9543/* System header to define __stub macros and hopefully few prototypes, 9544 which can conflict with char $ac_func (); below. */ 9545#include <assert.h> 9546/* Override any gcc2 internal prototype to avoid an error. */ 9547#ifdef __cplusplus 9548extern "C" 9549#endif 9550/* We use char because int might match the return type of a gcc2 9551 builtin and then its argument prototype would still apply. */ 9552char $ac_func (); 9553char (*f) (); 9554 9555#ifdef F77_DUMMY_MAIN 9556# ifdef __cplusplus 9557 extern "C" 9558# endif 9559 int F77_DUMMY_MAIN() { return 1; } 9560#endif 9561int 9562main () 9563{ 9564/* The GNU C library defines this for functions which it implements 9565 to always fail with ENOSYS. Some functions are actually named 9566 something starting with __ and the normal name is an alias. */ 9567#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9568choke me 9569#else 9570f = $ac_func; 9571#endif 9572 9573 ; 9574 return 0; 9575} 9576_ACEOF 9577rm -f conftest.$ac_objext conftest$ac_exeext 9578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9579 (eval $ac_link) 2>&5 9580 ac_status=$? 9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9582 (exit $ac_status); } && 9583 { ac_try='test -s conftest$ac_exeext' 9584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9585 (eval $ac_try) 2>&5 9586 ac_status=$? 9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9588 (exit $ac_status); }; }; then 9589 eval "$as_ac_var=yes" 9590else 9591 echo "$as_me: failed program was:" >&5 9592cat conftest.$ac_ext >&5 9593eval "$as_ac_var=no" 9594fi 9595rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9596fi 9597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9598echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9599if test `eval echo '${'$as_ac_var'}'` = yes; then 9600 cat >>confdefs.h <<_ACEOF 9601#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9602_ACEOF 9603 iconv_in_libc=1 9604else 9605 iconv_in_libc=0 9606fi 9607done 9608 9609 echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5 9610echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6 9611if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then 9612 echo $ECHO_N "(cached) $ECHO_C" >&6 9613else 9614 ac_check_lib_save_LIBS=$LIBS 9615LIBS="-liconv $LIBS" 9616cat >conftest.$ac_ext <<_ACEOF 9617#line $LINENO "configure" 9618#include "confdefs.h" 9619 9620/* Override any gcc2 internal prototype to avoid an error. */ 9621#ifdef __cplusplus 9622extern "C" 9623#endif 9624/* We use char because int might match the return type of a gcc2 9625 builtin and then its argument prototype would still apply. */ 9626char iconv_open (); 9627#ifdef F77_DUMMY_MAIN 9628# ifdef __cplusplus 9629 extern "C" 9630# endif 9631 int F77_DUMMY_MAIN() { return 1; } 9632#endif 9633int 9634main () 9635{ 9636iconv_open (); 9637 ; 9638 return 0; 9639} 9640_ACEOF 9641rm -f conftest.$ac_objext conftest$ac_exeext 9642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9643 (eval $ac_link) 2>&5 9644 ac_status=$? 9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9646 (exit $ac_status); } && 9647 { ac_try='test -s conftest$ac_exeext' 9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9649 (eval $ac_try) 2>&5 9650 ac_status=$? 9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9652 (exit $ac_status); }; }; then 9653 ac_cv_lib_iconv_iconv_open=yes 9654else 9655 echo "$as_me: failed program was:" >&5 9656cat conftest.$ac_ext >&5 9657ac_cv_lib_iconv_iconv_open=no 9658fi 9659rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9660LIBS=$ac_check_lib_save_LIBS 9661fi 9662echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5 9663echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6 9664if test $ac_cv_lib_iconv_iconv_open = yes; then 9665 iconv_in_iconv=1 9666else 9667 iconv_in_iconv=0 9668fi 9669 9670 echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5 9671echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6 9672if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then 9673 echo $ECHO_N "(cached) $ECHO_C" >&6 9674else 9675 ac_check_lib_save_LIBS=$LIBS 9676LIBS="-liconv $LIBS" 9677cat >conftest.$ac_ext <<_ACEOF 9678#line $LINENO "configure" 9679#include "confdefs.h" 9680 9681/* Override any gcc2 internal prototype to avoid an error. */ 9682#ifdef __cplusplus 9683extern "C" 9684#endif 9685/* We use char because int might match the return type of a gcc2 9686 builtin and then its argument prototype would still apply. */ 9687char libiconv_open (); 9688#ifdef F77_DUMMY_MAIN 9689# ifdef __cplusplus 9690 extern "C" 9691# endif 9692 int F77_DUMMY_MAIN() { return 1; } 9693#endif 9694int 9695main () 9696{ 9697libiconv_open (); 9698 ; 9699 return 0; 9700} 9701_ACEOF 9702rm -f conftest.$ac_objext conftest$ac_exeext 9703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9704 (eval $ac_link) 2>&5 9705 ac_status=$? 9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9707 (exit $ac_status); } && 9708 { ac_try='test -s conftest$ac_exeext' 9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9710 (eval $ac_try) 2>&5 9711 ac_status=$? 9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9713 (exit $ac_status); }; }; then 9714 ac_cv_lib_iconv_libiconv_open=yes 9715else 9716 echo "$as_me: failed program was:" >&5 9717cat conftest.$ac_ext >&5 9718ac_cv_lib_iconv_libiconv_open=no 9719fi 9720rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9721LIBS=$ac_check_lib_save_LIBS 9722fi 9723echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5 9724echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6 9725if test $ac_cv_lib_iconv_libiconv_open = yes; then 9726 libiconv_in_iconv=1 9727else 9728 libiconv_in_iconv=0 9729fi 9730 9731 if test ! x$silent = xyes; then 9732 exec 6>&1 9733 fi 9734 if test $iconv_in_libc = 1; then 9735 echo "$as_me:$LINENO: result: libc" >&5 9736echo "${ECHO_T}libc" >&6 9737 elif test $iconv_in_iconv = 1 -o $libiconv_in_iconv = 1; then 9738 echo "$as_me:$LINENO: result: libiconv" >&5 9739echo "${ECHO_T}libiconv" >&6 9740 ICONV_LIB=-liconv 9741 else 9742 echo "$as_me:$LINENO: result: not found (panic)" >&5 9743echo "${ECHO_T}not found (panic)" >&6 9744 { { echo "$as_me:$LINENO: error: iconv.h found, while iconv library not found" >&5 9745echo "$as_me: error: iconv.h found, while iconv library not found" >&2;} 9746 { (exit 1); exit 1; }; } 9747 fi 9748 #we have iconv at this moment, better check which call to use 9749 echo "$as_me:$LINENO: checking whether iconv takes const char ** or char **" >&5 9750echo $ECHO_N "checking whether iconv takes const char ** or char **... $ECHO_C" >&6 9751 cat >conftest.$ac_ext <<_ACEOF 9752#line $LINENO "configure" 9753#include "confdefs.h" 9754#include <iconv.h> 9755#ifdef F77_DUMMY_MAIN 9756# ifdef __cplusplus 9757 extern "C" 9758# endif 9759 int F77_DUMMY_MAIN() { return 1; } 9760#endif 9761int 9762main () 9763{ 9764 9765 { 9766 size_t iconv (iconv_t a, const char ** b, size_t *c, char **d, size_t *e); 9767 } 9768 ; 9769 return 0; 9770} 9771_ACEOF 9772rm -f conftest.$ac_objext 9773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9774 (eval $ac_compile) 2>&5 9775 ac_status=$? 9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9777 (exit $ac_status); } && 9778 { ac_try='test -s conftest.$ac_objext' 9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9780 (eval $ac_try) 2>&5 9781 ac_status=$? 9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9783 (exit $ac_status); }; }; then 9784 iconv_oldstyle=1 9785else 9786 echo "$as_me: failed program was:" >&5 9787cat conftest.$ac_ext >&5 9788iconv_oldstyle=0 9789fi 9790rm -f conftest.$ac_objext conftest.$ac_ext 9791 if test $iconv_oldstyle = 1; then 9792 echo "$as_me:$LINENO: result: const char **" >&5 9793echo "${ECHO_T}const char **" >&6 9794 cat >>confdefs.h <<\_ACEOF 9795#define ID3LIB_ICONV_OLDSTYLE 1 9796_ACEOF 9797 9798 #we'll check out the need of 9799 #typecast in the call of iconv_open 9800 echo "$as_me:$LINENO: checking whether to typecast in iconv" >&5 9801echo $ECHO_N "checking whether to typecast in iconv... $ECHO_C" >&6 9802 cat >conftest.$ac_ext <<_ACEOF 9803#line $LINENO "configure" 9804#include "confdefs.h" 9805#include <iconv.h> 9806#ifdef F77_DUMMY_MAIN 9807# ifdef __cplusplus 9808 extern "C" 9809# endif 9810 int F77_DUMMY_MAIN() { return 1; } 9811#endif 9812int 9813main () 9814{ 9815 9816 { 9817 const char *src = "nothing"; 9818 char *outbuf; 9819 size_t insize = 0; 9820 size_t outsize = 0; 9821 iconv_t cd; 9822 iconv(cd, &src, &insize, &outbuf, &outsize); 9823 } 9824 ; 9825 return 0; 9826} 9827_ACEOF 9828rm -f conftest.$ac_objext 9829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9830 (eval $ac_compile) 2>&5 9831 ac_status=$? 9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9833 (exit $ac_status); } && 9834 { ac_try='test -s conftest.$ac_objext' 9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9836 (eval $ac_try) 2>&5 9837 ac_status=$? 9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9839 (exit $ac_status); }; }; then 9840 iconv_cast=0 9841else 9842 echo "$as_me: failed program was:" >&5 9843cat conftest.$ac_ext >&5 9844iconv_cast=1 9845fi 9846rm -f conftest.$ac_objext conftest.$ac_ext 9847 if test $iconv_cast = 1; then 9848 echo "$as_me:$LINENO: result: yes" >&5 9849echo "${ECHO_T}yes" >&6 9850 cat >>confdefs.h <<\_ACEOF 9851#define ID3LIB_ICONV_CAST_OK 1 9852_ACEOF 9853 9854 else 9855 echo "$as_me:$LINENO: result: no" >&5 9856echo "${ECHO_T}no" >&6 9857 fi 9858 9859 else 9860 echo "$as_me:$LINENO: result: char **" >&5 9861echo "${ECHO_T}char **" >&6 9862 #we'll check out the need of 9863 #typecast in the call of iconv_open 9864 echo "$as_me:$LINENO: checking whether to typecast in iconv" >&5 9865echo $ECHO_N "checking whether to typecast in iconv... $ECHO_C" >&6 9866 cat >conftest.$ac_ext <<_ACEOF 9867#line $LINENO "configure" 9868#include "confdefs.h" 9869#include <iconv.h> 9870#ifdef F77_DUMMY_MAIN 9871# ifdef __cplusplus 9872 extern "C" 9873# endif 9874 int F77_DUMMY_MAIN() { return 1; } 9875#endif 9876int 9877main () 9878{ 9879 9880 { 9881 char *src = "nothing"; 9882 char *outbuf; 9883 size_t insize = 0; 9884 size_t outsize = 0; 9885 iconv_t cd; 9886 iconv(cd, &src, &insize, &outbuf, &outsize); 9887 } 9888 ; 9889 return 0; 9890} 9891_ACEOF 9892rm -f conftest.$ac_objext 9893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9894 (eval $ac_compile) 2>&5 9895 ac_status=$? 9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9897 (exit $ac_status); } && 9898 { ac_try='test -s conftest.$ac_objext' 9899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9900 (eval $ac_try) 2>&5 9901 ac_status=$? 9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9903 (exit $ac_status); }; }; then 9904 iconv_cast=0 9905else 9906 echo "$as_me: failed program was:" >&5 9907cat conftest.$ac_ext >&5 9908iconv_cast=1 9909fi 9910rm -f conftest.$ac_objext conftest.$ac_ext 9911 if test $iconv_cast = 1; then 9912 echo "$as_me:$LINENO: result: yes" >&5 9913echo "${ECHO_T}yes" >&6 9914 cat >>confdefs.h <<\_ACEOF 9915#define ID3LIB_ICONV_CAST_OK 1 9916_ACEOF 9917 9918 else 9919 echo "$as_me:$LINENO: result: no" >&5 9920echo "${ECHO_T}no" >&6 9921 fi 9922 fi 9923 9924fi 9925if test "x$ICONV_LIB" != "x"; then 9926 LIBS="$LIBS $ICONV_LIB" 9927fi 9928 9929 9930 9931ac_ext=cc 9932ac_cpp='$CXXCPP $CPPFLAGS' 9933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9936 9937 9938 9939 9940for ac_header in libcw/sys.h 9941do 9942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9943if eval "test \"\${$as_ac_Header+set}\" = set"; then 9944 echo "$as_me:$LINENO: checking for $ac_header" >&5 9945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9946if eval "test \"\${$as_ac_Header+set}\" = set"; then 9947 echo $ECHO_N "(cached) $ECHO_C" >&6 9948fi 9949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9951else 9952 # Is the header compilable? 9953echo "$as_me:$LINENO: checking $ac_header usability" >&5 9954echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9955cat >conftest.$ac_ext <<_ACEOF 9956#line $LINENO "configure" 9957#include "confdefs.h" 9958$ac_includes_default 9959#include <$ac_header> 9960_ACEOF 9961rm -f conftest.$ac_objext 9962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9963 (eval $ac_compile) 2>&5 9964 ac_status=$? 9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9966 (exit $ac_status); } && 9967 { ac_try='test -s conftest.$ac_objext' 9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9969 (eval $ac_try) 2>&5 9970 ac_status=$? 9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9972 (exit $ac_status); }; }; then 9973 ac_header_compiler=yes 9974else 9975 echo "$as_me: failed program was:" >&5 9976cat conftest.$ac_ext >&5 9977ac_header_compiler=no 9978fi 9979rm -f conftest.$ac_objext conftest.$ac_ext 9980echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9981echo "${ECHO_T}$ac_header_compiler" >&6 9982 9983# Is the header present? 9984echo "$as_me:$LINENO: checking $ac_header presence" >&5 9985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9986cat >conftest.$ac_ext <<_ACEOF 9987#line $LINENO "configure" 9988#include "confdefs.h" 9989#include <$ac_header> 9990_ACEOF 9991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9993 ac_status=$? 9994 egrep -v '^ *\+' conftest.er1 >conftest.err 9995 rm -f conftest.er1 9996 cat conftest.err >&5 9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9998 (exit $ac_status); } >/dev/null; then 9999 if test -s conftest.err; then 10000 ac_cpp_err=$ac_cxx_preproc_warn_flag 10001 else 10002 ac_cpp_err= 10003 fi 10004else 10005 ac_cpp_err=yes 10006fi 10007if test -z "$ac_cpp_err"; then 10008 ac_header_preproc=yes 10009else 10010 echo "$as_me: failed program was:" >&5 10011 cat conftest.$ac_ext >&5 10012 ac_header_preproc=no 10013fi 10014rm -f conftest.err conftest.$ac_ext 10015echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10016echo "${ECHO_T}$ac_header_preproc" >&6 10017 10018# So? What about this header? 10019case $ac_header_compiler:$ac_header_preproc in 10020 yes:no ) 10021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10022echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10024echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 10025 no:yes ) 10026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10027echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10029echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 10032esac 10033echo "$as_me:$LINENO: checking for $ac_header" >&5 10034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10035if eval "test \"\${$as_ac_Header+set}\" = set"; then 10036 echo $ECHO_N "(cached) $ECHO_C" >&6 10037else 10038 eval "$as_ac_Header=$ac_header_preproc" 10039fi 10040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10041echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10042 10043fi 10044if test `eval echo '${'$as_ac_Header'}'` = yes; then 10045 cat >>confdefs.h <<_ACEOF 10046#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10047_ACEOF 10048 10049fi 10050 10051done 10052 10053 10054 10055 10056 10057 10058 10059for ac_header in cctype climits cstdio cstdlib bitset cstring 10060do 10061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10062if eval "test \"\${$as_ac_Header+set}\" = set"; then 10063 echo "$as_me:$LINENO: checking for $ac_header" >&5 10064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10065if eval "test \"\${$as_ac_Header+set}\" = set"; then 10066 echo $ECHO_N "(cached) $ECHO_C" >&6 10067fi 10068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10070else 10071 # Is the header compilable? 10072echo "$as_me:$LINENO: checking $ac_header usability" >&5 10073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10074cat >conftest.$ac_ext <<_ACEOF 10075#line $LINENO "configure" 10076#include "confdefs.h" 10077$ac_includes_default 10078#include <$ac_header> 10079_ACEOF 10080rm -f conftest.$ac_objext 10081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10082 (eval $ac_compile) 2>&5 10083 ac_status=$? 10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10085 (exit $ac_status); } && 10086 { ac_try='test -s conftest.$ac_objext' 10087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10088 (eval $ac_try) 2>&5 10089 ac_status=$? 10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10091 (exit $ac_status); }; }; then 10092 ac_header_compiler=yes 10093else 10094 echo "$as_me: failed program was:" >&5 10095cat conftest.$ac_ext >&5 10096ac_header_compiler=no 10097fi 10098rm -f conftest.$ac_objext conftest.$ac_ext 10099echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10100echo "${ECHO_T}$ac_header_compiler" >&6 10101 10102# Is the header present? 10103echo "$as_me:$LINENO: checking $ac_header presence" >&5 10104echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10105cat >conftest.$ac_ext <<_ACEOF 10106#line $LINENO "configure" 10107#include "confdefs.h" 10108#include <$ac_header> 10109_ACEOF 10110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10112 ac_status=$? 10113 egrep -v '^ *\+' conftest.er1 >conftest.err 10114 rm -f conftest.er1 10115 cat conftest.err >&5 10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10117 (exit $ac_status); } >/dev/null; then 10118 if test -s conftest.err; then 10119 ac_cpp_err=$ac_cxx_preproc_warn_flag 10120 else 10121 ac_cpp_err= 10122 fi 10123else 10124 ac_cpp_err=yes 10125fi 10126if test -z "$ac_cpp_err"; then 10127 ac_header_preproc=yes 10128else 10129 echo "$as_me: failed program was:" >&5 10130 cat conftest.$ac_ext >&5 10131 ac_header_preproc=no 10132fi 10133rm -f conftest.err conftest.$ac_ext 10134echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10135echo "${ECHO_T}$ac_header_preproc" >&6 10136 10137# So? What about this header? 10138case $ac_header_compiler:$ac_header_preproc in 10139 yes:no ) 10140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10141echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10143echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 10144 no:yes ) 10145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10146echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10148echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10150echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 10151esac 10152echo "$as_me:$LINENO: checking for $ac_header" >&5 10153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10154if eval "test \"\${$as_ac_Header+set}\" = set"; then 10155 echo $ECHO_N "(cached) $ECHO_C" >&6 10156else 10157 eval "$as_ac_Header=$ac_header_preproc" 10158fi 10159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10161 10162fi 10163if test `eval echo '${'$as_ac_Header'}'` = yes; then 10164 cat >>confdefs.h <<_ACEOF 10165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10166_ACEOF 10167 10168fi 10169 10170done 10171 10172 10173 10174 10175 10176for ac_header in fstream iostream iomanip vector \ 10177 10178do 10179as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10180if eval "test \"\${$as_ac_Header+set}\" = set"; then 10181 echo "$as_me:$LINENO: checking for $ac_header" >&5 10182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10183if eval "test \"\${$as_ac_Header+set}\" = set"; then 10184 echo $ECHO_N "(cached) $ECHO_C" >&6 10185fi 10186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10187echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10188else 10189 # Is the header compilable? 10190echo "$as_me:$LINENO: checking $ac_header usability" >&5 10191echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10192cat >conftest.$ac_ext <<_ACEOF 10193#line $LINENO "configure" 10194#include "confdefs.h" 10195$ac_includes_default 10196#include <$ac_header> 10197_ACEOF 10198rm -f conftest.$ac_objext 10199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10200 (eval $ac_compile) 2>&5 10201 ac_status=$? 10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10203 (exit $ac_status); } && 10204 { ac_try='test -s conftest.$ac_objext' 10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10206 (eval $ac_try) 2>&5 10207 ac_status=$? 10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10209 (exit $ac_status); }; }; then 10210 ac_header_compiler=yes 10211else 10212 echo "$as_me: failed program was:" >&5 10213cat conftest.$ac_ext >&5 10214ac_header_compiler=no 10215fi 10216rm -f conftest.$ac_objext conftest.$ac_ext 10217echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10218echo "${ECHO_T}$ac_header_compiler" >&6 10219 10220# Is the header present? 10221echo "$as_me:$LINENO: checking $ac_header presence" >&5 10222echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10223cat >conftest.$ac_ext <<_ACEOF 10224#line $LINENO "configure" 10225#include "confdefs.h" 10226#include <$ac_header> 10227_ACEOF 10228if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10230 ac_status=$? 10231 egrep -v '^ *\+' conftest.er1 >conftest.err 10232 rm -f conftest.er1 10233 cat conftest.err >&5 10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10235 (exit $ac_status); } >/dev/null; then 10236 if test -s conftest.err; then 10237 ac_cpp_err=$ac_cxx_preproc_warn_flag 10238 else 10239 ac_cpp_err= 10240 fi 10241else 10242 ac_cpp_err=yes 10243fi 10244if test -z "$ac_cpp_err"; then 10245 ac_header_preproc=yes 10246else 10247 echo "$as_me: failed program was:" >&5 10248 cat conftest.$ac_ext >&5 10249 ac_header_preproc=no 10250fi 10251rm -f conftest.err conftest.$ac_ext 10252echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10253echo "${ECHO_T}$ac_header_preproc" >&6 10254 10255# So? What about this header? 10256case $ac_header_compiler:$ac_header_preproc in 10257 yes:no ) 10258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10259echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10261echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 10262 no:yes ) 10263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10264echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10266echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10268echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 10269esac 10270echo "$as_me:$LINENO: checking for $ac_header" >&5 10271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10272if eval "test \"\${$as_ac_Header+set}\" = set"; then 10273 echo $ECHO_N "(cached) $ECHO_C" >&6 10274else 10275 eval "$as_ac_Header=$ac_header_preproc" 10276fi 10277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10279 10280fi 10281if test `eval echo '${'$as_ac_Header'}'` = yes; then 10282 cat >>confdefs.h <<_ACEOF 10283#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10284_ACEOF 10285 10286else 10287 { { echo "$as_me:$LINENO: error: Missing a vital header file for id3lib - download them here: http://gcc.gnu.org/libstdc++/ or better - compile a newer compiler like gcc3.x" >&5 10288echo "$as_me: error: Missing a vital header file for id3lib - download them here: http://gcc.gnu.org/libstdc++/ or better - compile a newer compiler like gcc3.x" >&2;} 10289 { (exit 1); exit 1; }; } 10290 10291fi 10292 10293done 10294 10295 10296 10297for ac_header in \ 10298 string \ 10299 iomanip \ 10300 10301do 10302as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10303if eval "test \"\${$as_ac_Header+set}\" = set"; then 10304 echo "$as_me:$LINENO: checking for $ac_header" >&5 10305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10306if eval "test \"\${$as_ac_Header+set}\" = set"; then 10307 echo $ECHO_N "(cached) $ECHO_C" >&6 10308fi 10309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10311else 10312 # Is the header compilable? 10313echo "$as_me:$LINENO: checking $ac_header usability" >&5 10314echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10315cat >conftest.$ac_ext <<_ACEOF 10316#line $LINENO "configure" 10317#include "confdefs.h" 10318$ac_includes_default 10319#include <$ac_header> 10320_ACEOF 10321rm -f conftest.$ac_objext 10322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10323 (eval $ac_compile) 2>&5 10324 ac_status=$? 10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10326 (exit $ac_status); } && 10327 { ac_try='test -s conftest.$ac_objext' 10328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10329 (eval $ac_try) 2>&5 10330 ac_status=$? 10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10332 (exit $ac_status); }; }; then 10333 ac_header_compiler=yes 10334else 10335 echo "$as_me: failed program was:" >&5 10336cat conftest.$ac_ext >&5 10337ac_header_compiler=no 10338fi 10339rm -f conftest.$ac_objext conftest.$ac_ext 10340echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10341echo "${ECHO_T}$ac_header_compiler" >&6 10342 10343# Is the header present? 10344echo "$as_me:$LINENO: checking $ac_header presence" >&5 10345echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10346cat >conftest.$ac_ext <<_ACEOF 10347#line $LINENO "configure" 10348#include "confdefs.h" 10349#include <$ac_header> 10350_ACEOF 10351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10353 ac_status=$? 10354 egrep -v '^ *\+' conftest.er1 >conftest.err 10355 rm -f conftest.er1 10356 cat conftest.err >&5 10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10358 (exit $ac_status); } >/dev/null; then 10359 if test -s conftest.err; then 10360 ac_cpp_err=$ac_cxx_preproc_warn_flag 10361 else 10362 ac_cpp_err= 10363 fi 10364else 10365 ac_cpp_err=yes 10366fi 10367if test -z "$ac_cpp_err"; then 10368 ac_header_preproc=yes 10369else 10370 echo "$as_me: failed program was:" >&5 10371 cat conftest.$ac_ext >&5 10372 ac_header_preproc=no 10373fi 10374rm -f conftest.err conftest.$ac_ext 10375echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10376echo "${ECHO_T}$ac_header_preproc" >&6 10377 10378# So? What about this header? 10379case $ac_header_compiler:$ac_header_preproc in 10380 yes:no ) 10381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10382echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10384echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 10385 no:yes ) 10386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10387echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10389echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10391echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 10392esac 10393echo "$as_me:$LINENO: checking for $ac_header" >&5 10394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10395if eval "test \"\${$as_ac_Header+set}\" = set"; then 10396 echo $ECHO_N "(cached) $ECHO_C" >&6 10397else 10398 eval "$as_ac_Header=$ac_header_preproc" 10399fi 10400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10401echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10402 10403fi 10404if test `eval echo '${'$as_ac_Header'}'` = yes; then 10405 cat >>confdefs.h <<_ACEOF 10406#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10407_ACEOF 10408 10409else 10410 { { echo "$as_me:$LINENO: error: Missing a vital header file for id3lib" >&5 10411echo "$as_me: error: Missing a vital header file for id3lib" >&2;} 10412 { (exit 1); exit 1; }; } 10413 10414fi 10415 10416done 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 ac_ext=cc 10427ac_cpp='$CXXCPP $CPPFLAGS' 10428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10431 10432 10433 echo "$as_me:$LINENO: checking whether C++ has bool" >&5 10434echo $ECHO_N "checking whether C++ has bool... $ECHO_C" >&6 10435 if test "$cross_compiling" = yes; then 10436 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5 10437echo "$as_me: WARNING: Don't cross-compile" >&2;} 10438 10439else 10440 cat >conftest.$ac_ext <<_ACEOF 10441#line $LINENO "configure" 10442#include "confdefs.h" 10443main() { bool b1=true; bool b2=false; } 10444_ACEOF 10445rm -f conftest$ac_exeext 10446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10447 (eval $ac_link) 2>&5 10448 ac_status=$? 10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10452 (eval $ac_try) 2>&5 10453 ac_status=$? 10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10455 (exit $ac_status); }; }; then 10456 echo "$as_me:$LINENO: result: yes" >&5 10457echo "${ECHO_T}yes" >&6 10458else 10459 echo "$as_me: program exited with status $ac_status" >&5 10460echo "$as_me: failed program was:" >&5 10461cat conftest.$ac_ext >&5 10462( exit $ac_status ) 10463 echo "$as_me:$LINENO: result: no" >&5 10464echo "${ECHO_T}no" >&6 10465 cat >>confdefs.h <<\_ACEOF 10466#define CXX_HAS_NO_BOOL 1 10467_ACEOF 10468 10469fi 10470rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10471fi 10472 10473 echo "$as_me:$LINENO: checking whether C++ has correct scoping in for-loops" >&5 10474echo $ECHO_N "checking whether C++ has correct scoping in for-loops... $ECHO_C" >&6 10475 cat >conftest.$ac_ext <<_ACEOF 10476#line $LINENO "configure" 10477#include "confdefs.h" 10478#include <iostream.h> 10479#ifdef F77_DUMMY_MAIN 10480# ifdef __cplusplus 10481 extern "C" 10482# endif 10483 int F77_DUMMY_MAIN() { return 1; } 10484#endif 10485int 10486main () 10487{ 10488 10489 for (int i=0;i<10;i++) { } 10490 for (int i=0;i<10;i++) { } 10491 10492 ; 10493 return 0; 10494} 10495_ACEOF 10496rm -f conftest.$ac_objext 10497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10498 (eval $ac_compile) 2>&5 10499 ac_status=$? 10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10501 (exit $ac_status); } && 10502 { ac_try='test -s conftest.$ac_objext' 10503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10504 (eval $ac_try) 2>&5 10505 ac_status=$? 10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10507 (exit $ac_status); }; }; then 10508 echo "$as_me:$LINENO: result: yes" >&5 10509echo "${ECHO_T}yes" >&6 10510else 10511 echo "$as_me: failed program was:" >&5 10512cat conftest.$ac_ext >&5 10513 echo "$as_me:$LINENO: result: no" >&5 10514echo "${ECHO_T}no" >&6 10515 cat >>confdefs.h <<\_ACEOF 10516#define CXX_HAS_BUGGY_FOR_LOOPS 1 10517_ACEOF 10518 10519fi 10520rm -f conftest.$ac_objext conftest.$ac_ext 10521 10522 ac_ext=cc 10523ac_cpp='$CXXCPP $CPPFLAGS' 10524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10527 10528 10529 10530 10531 # Check whether --enable-cxx-warnings or --disable-cxx-warnings was given. 10532if test "${enable_cxx_warnings+set}" = set; then 10533 enableval="$enable_cxx_warnings" 10534 10535else 10536 enable_cxx_warnings=minimum 10537fi; 10538 10539 echo "$as_me:$LINENO: checking what warning flags to pass to the C++ compiler" >&5 10540echo $ECHO_N "checking what warning flags to pass to the C++ compiler... $ECHO_C" >&6 10541 warnCXXFLAGS= 10542 if test "x$GCC" != xyes; then 10543 enable_compile_warnings=no 10544 fi 10545 if test "x$enable_cxx_warnings" != "xno"; then 10546 if test "x$GCC" = "xyes"; then 10547 case " $CXXFLAGS " in 10548 *\ \ -Wall\ \ *) ;; 10549 *) warnCXXFLAGS="-Wall -Wno-unused -Wno-inline -Woverloaded-virtual -Wmissing-declarations" ;; 10550 esac 10551 10552 ## -W is not all that useful. And it cannot be controlled 10553 ## with individual -Wno-xxx flags, unlike -Wall 10554 if test "x$enable_cxx_warnings" = "xyes"; then 10555 warnCXXFLAGS="$warnCXXFLAGS -Wmissing-prototypes -Wmissing-declarations -Woverloaded-virtual" 10556 fi 10557 fi 10558 fi 10559 echo "$as_me:$LINENO: result: $warnCXXFLAGS" >&5 10560echo "${ECHO_T}$warnCXXFLAGS" >&6 10561 10562 # Check whether --enable-iso-cxx or --disable-iso-cxx was given. 10563if test "${enable_iso_cxx+set}" = set; then 10564 enableval="$enable_iso_cxx" 10565 10566else 10567 enable_iso_cxx=no 10568fi; 10569 10570 echo "$as_me:$LINENO: checking what language compliance flags to pass to the C++ compiler" >&5 10571echo $ECHO_N "checking what language compliance flags to pass to the C++ compiler... $ECHO_C" >&6 10572 complCXXFLAGS= 10573 if test "x$enable_iso_cxx" != "xno"; then 10574 if test "x$GCC" = "xyes"; then 10575 case " $CXXFLAGS " in 10576 *\ \ -ansi\ \ *) ;; 10577 *) complCXXFLAGS="$complCXXFLAGS -ansi" ;; 10578 esac 10579 10580 case " $CXXFLAGS " in 10581 *\ \ -pedantic\ \ *) ;; 10582 *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;; 10583 esac 10584 fi 10585 fi 10586 echo "$as_me:$LINENO: result: $complCXXFLAGS" >&5 10587echo "${ECHO_T}$complCXXFLAGS" >&6 10588 if test "x$cxxflags_set" != "xyes"; then 10589 CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS" 10590 cxxflags_set=yes 10591 10592 fi 10593 10594 10595ac_ext=c 10596ac_cpp='$CPP $CPPFLAGS' 10597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10599ac_compiler_gnu=$ac_cv_c_compiler_gnu 10600 10601 10602 10603 # Check whether --enable-debug or --disable-debug was given. 10604if test "${enable_debug+set}" = set; then 10605 enableval="$enable_debug" 10606 10607else 10608 enable_debug=$debug_default 10609fi; 10610 10611 if test "x$enable_debug" = "xyes"; then 10612 test "$cflags_set" = set || CFLAGS="$CFLAGS -g" 10613 cat >>confdefs.h <<\_ACEOF 10614#define ID3_ENABLE_DEBUG 1 10615_ACEOF 10616 10617 else 10618 if test "x$enable_debug" = "xno"; then 10619 cat >>confdefs.h <<\_ACEOF 10620#define ID3_DISABLE_ASSERT 1 10621_ACEOF 10622 10623 cat >>confdefs.h <<\_ACEOF 10624#define ID3_DISABLE_CHECKS 1 10625_ACEOF 10626 10627 fi 10628 fi 10629 10630 10631 if test "x$ac_cv_header_iconv_h" = "xyes"; then 10632 ID3_ICONV_FORMAT_UTF8=no 10633 ID3_ICONV_FORMAT_UTF16=no 10634 ID3_ICONV_FORMAT_UTF16BE=no 10635 ID3_ICONV_FORMAT_ASCII=no 10636 10637 10638 if eval "test \"x\$ID3_ICONV_FORMAT_UTF8\" = \"xno\""; then 10639 echo "$as_me:$LINENO: checking whether iconv supports UTF-8" >&5 10640echo $ECHO_N "checking whether iconv supports UTF-8... $ECHO_C" >&6 10641 if test "$cross_compiling" = yes; then 10642 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5 10643echo "$as_me: WARNING: Don't cross-compile" >&2;} 10644else 10645 cat >conftest.$ac_ext <<_ACEOF 10646#line $LINENO "configure" 10647#include "confdefs.h" 10648#include <iconv.h> 10649 int main() { return iconv_open("UTF-8", "UTF-8") == -1; } 10650_ACEOF 10651rm -f conftest$ac_exeext 10652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10653 (eval $ac_link) 2>&5 10654 ac_status=$? 10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10658 (eval $ac_try) 2>&5 10659 ac_status=$? 10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10661 (exit $ac_status); }; }; then 10662 eval ID3_ICONV_FORMAT_UTF8=yes 10663 echo "$as_me:$LINENO: result: yes" >&5 10664echo "${ECHO_T}yes" >&6 10665 cat >>confdefs.h <<_ACEOF 10666#define ID3_ICONV_FORMAT_UTF8 "UTF-8" 10667_ACEOF 10668 10669else 10670 echo "$as_me: program exited with status $ac_status" >&5 10671echo "$as_me: failed program was:" >&5 10672cat conftest.$ac_ext >&5 10673( exit $ac_status ) 10674 echo "$as_me:$LINENO: result: no" >&5 10675echo "${ECHO_T}no" >&6 10676fi 10677rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10678fi 10679 fi 10680 10681 10682 if eval "test \"x\$ID3_ICONV_FORMAT_UTF8\" = \"xno\""; then 10683 echo "$as_me:$LINENO: checking whether iconv supports UTF8" >&5 10684echo $ECHO_N "checking whether iconv supports UTF8... $ECHO_C" >&6 10685 if test "$cross_compiling" = yes; then 10686 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5 10687echo "$as_me: WARNING: Don't cross-compile" >&2;} 10688else 10689 cat >conftest.$ac_ext <<_ACEOF 10690#line $LINENO "configure" 10691#include "confdefs.h" 10692#include <iconv.h> 10693 int main() { return iconv_open("UTF8", "UTF8") == -1; } 10694_ACEOF 10695rm -f conftest$ac_exeext 10696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10697 (eval $ac_link) 2>&5 10698 ac_status=$? 10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10702 (eval $ac_try) 2>&5 10703 ac_status=$? 10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10705 (exit $ac_status); }; }; then 10706 eval ID3_ICONV_FORMAT_UTF8=yes 10707 echo "$as_me:$LINENO: result: yes" >&5 10708echo "${ECHO_T}yes" >&6 10709 cat >>confdefs.h <<_ACEOF 10710#define ID3_ICONV_FORMAT_UTF8 "UTF8" 10711_ACEOF 10712 10713else 10714 echo "$as_me: program exited with status $ac_status" >&5 10715echo "$as_me: failed program was:" >&5 10716cat conftest.$ac_ext >&5 10717( exit $ac_status ) 10718 echo "$as_me:$LINENO: result: no" >&5 10719echo "${ECHO_T}no" >&6 10720fi 10721rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10722fi 10723 fi 10724 10725# ID3_CLEAR_ICONV_FORMAT(ID3_ICONV_FORMAT_UTF8) 10726 10727 10728 if eval "test \"x\$ID3_ICONV_FORMAT_UTF16BE\" = \"xno\""; then 10729 echo "$as_me:$LINENO: checking whether iconv supports UTF-16BE" >&5 10730echo $ECHO_N "checking whether iconv supports UTF-16BE... $ECHO_C" >&6 10731 if test "$cross_compiling" = yes; then 10732 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5 10733echo "$as_me: WARNING: Don't cross-compile" >&2;} 10734else 10735 cat >conftest.$ac_ext <<_ACEOF 10736#line $LINENO "configure" 10737#include "confdefs.h" 10738#include <iconv.h> 10739 int main() { return iconv_open("UTF-16BE", "UTF-16BE") == -1; } 10740_ACEOF 10741rm -f conftest$ac_exeext 10742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10743 (eval $ac_link) 2>&5 10744 ac_status=$? 10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10748 (eval $ac_try) 2>&5 10749 ac_status=$? 10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10751 (exit $ac_status); }; }; then 10752 eval ID3_ICONV_FORMAT_UTF16BE=yes 10753 echo "$as_me:$LINENO: result: yes" >&5 10754echo "${ECHO_T}yes" >&6 10755 cat >>confdefs.h <<_ACEOF 10756#define ID3_ICONV_FORMAT_UTF16BE "UTF-16BE" 10757_ACEOF 10758 10759else 10760 echo "$as_me: program exited with status $ac_status" >&5 10761echo "$as_me: failed program was:" >&5 10762cat conftest.$ac_ext >&5 10763( exit $ac_status ) 10764 echo "$as_me:$LINENO: result: no" >&5 10765echo "${ECHO_T}no" >&6 10766fi 10767rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10768fi 10769 fi 10770 10771 10772 if eval "test \"x\$ID3_ICONV_FORMAT_UTF16BE\" = \"xno\""; then 10773 echo "$as_me:$LINENO: checking whether iconv supports UTF16BE" >&5 10774echo $ECHO_N "checking whether iconv supports UTF16BE... $ECHO_C" >&6 10775 if test "$cross_compiling" = yes; then 10776 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5 10777echo "$as_me: WARNING: Don't cross-compile" >&2;} 10778else 10779 cat >conftest.$ac_ext <<_ACEOF 10780#line $LINENO "configure" 10781#include "confdefs.h" 10782#include <iconv.h> 10783 int main() { return iconv_open("UTF16BE", "UTF16BE") == -1; } 10784_ACEOF 10785rm -f conftest$ac_exeext 10786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10787 (eval $ac_link) 2>&5 10788 ac_status=$? 10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10792 (eval $ac_try) 2>&5 10793 ac_status=$? 10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10795 (exit $ac_status); }; }; then 10796 eval ID3_ICONV_FORMAT_UTF16BE=yes 10797 echo "$as_me:$LINENO: result: yes" >&5 10798echo "${ECHO_T}yes" >&6 10799 cat >>confdefs.h <<_ACEOF 10800#define ID3_ICONV_FORMAT_UTF16BE "UTF16BE" 10801_ACEOF 10802 10803else 10804 echo "$as_me: program exited with status $ac_status" >&5 10805echo "$as_me: failed program was:" >&5 10806cat conftest.$ac_ext >&5 10807( exit $ac_status ) 10808 echo "$as_me:$LINENO: result: no" >&5 10809echo "${ECHO_T}no" >&6 10810fi 10811rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10812fi 10813 fi 10814 10815 10816 if eval "test \"x\$ID3_ICONV_FORMAT_UTF16BE\" = \"xno\""; then 10817 echo "$as_me:$LINENO: checking whether iconv supports UCS-2BE" >&5 10818echo $ECHO_N "checking whether iconv supports UCS-2BE... $ECHO_C" >&6 10819 if test "$cross_compiling" = yes; then 10820 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5 10821echo "$as_me: WARNING: Don't cross-compile" >&2;} 10822else 10823 cat >conftest.$ac_ext <<_ACEOF 10824#line $LINENO "configure" 10825#include "confdefs.h" 10826#include <iconv.h> 10827 int main() { return iconv_open("UCS-2BE", "UCS-2BE") == -1; } 10828_ACEOF 10829rm -f conftest$ac_exeext 10830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10831 (eval $ac_link) 2>&5 10832 ac_status=$? 10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10836 (eval $ac_try) 2>&5 10837 ac_status=$? 10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10839 (exit $ac_status); }; }; then 10840 eval ID3_ICONV_FORMAT_UTF16BE=yes 10841 echo "$as_me:$LINENO: result: yes" >&5 10842echo "${ECHO_T}yes" >&6 10843 cat >>confdefs.h <<_ACEOF 10844#define ID3_ICONV_FORMAT_UTF16BE "UCS-2BE" 10845_ACEOF 10846 10847else 10848 echo "$as_me: program exited with status $ac_status" >&5 10849echo "$as_me: failed program was:" >&5 10850cat conftest.$ac_ext >&5 10851( exit $ac_status ) 10852 echo "$as_me:$LINENO: result: no" >&5 10853echo "${ECHO_T}no" >&6 10854fi 10855rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10856fi 10857 fi 10858 10859 10860 if eval "test \"x\$ID3_ICONV_FORMAT_UTF16BE\" = \"xno\""; then 10861 echo "$as_me:$LINENO: checking whether iconv supports UCS2BE" >&5 10862echo $ECHO_N "checking whether iconv supports UCS2BE... $ECHO_C" >&6 10863 if test "$cross_compiling" = yes; then 10864 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5 10865echo "$as_me: WARNING: Don't cross-compile" >&2;} 10866else 10867 cat >conftest.$ac_ext <<_ACEOF 10868#line $LINENO "configure" 10869#include "confdefs.h" 10870#include <iconv.h> 10871 int main() { return iconv_open("UCS2BE", "UCS2BE") == -1; } 10872_ACEOF 10873rm -f conftest$ac_exeext 10874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10875 (eval $ac_link) 2>&5 10876 ac_status=$? 10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10880 (eval $ac_try) 2>&5 10881 ac_status=$? 10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10883 (exit $ac_status); }; }; then 10884 eval ID3_ICONV_FORMAT_UTF16BE=yes 10885 echo "$as_me:$LINENO: result: yes" >&5 10886echo "${ECHO_T}yes" >&6 10887 cat >>confdefs.h <<_ACEOF 10888#define ID3_ICONV_FORMAT_UTF16BE "UCS2BE" 10889_ACEOF 10890 10891else 10892 echo "$as_me: program exited with status $ac_status" >&5 10893echo "$as_me: failed program was:" >&5 10894cat conftest.$ac_ext >&5 10895( exit $ac_status ) 10896 echo "$as_me:$LINENO: result: no" >&5 10897echo "${ECHO_T}no" >&6 10898fi 10899rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10900fi 10901 fi 10902 10903 10904 if eval "test \"x\$ID3_ICONV_FORMAT_UTF16BE\" = \"xno\""; then 10905 echo "$as_me:$LINENO: checking whether iconv supports UNICODEBIG" >&5 10906echo $ECHO_N "checking whether iconv supports UNICODEBIG... $ECHO_C" >&6 10907 if test "$cross_compiling" = yes; then 10908 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5 10909echo "$as_me: WARNING: Don't cross-compile" >&2;} 10910else 10911 cat >conftest.$ac_ext <<_ACEOF 10912#line $LINENO "configure" 10913#include "confdefs.h" 10914#include <iconv.h> 10915 int main() { return iconv_open("UNICODEBIG", "UNICODEBIG") == -1; } 10916_ACEOF 10917rm -f conftest$ac_exeext 10918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10919 (eval $ac_link) 2>&5 10920 ac_status=$? 10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10924 (eval $ac_try) 2>&5 10925 ac_status=$? 10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10927 (exit $ac_status); }; }; then 10928 eval ID3_ICONV_FORMAT_UTF16BE=yes 10929 echo "$as_me:$LINENO: result: yes" >&5 10930echo "${ECHO_T}yes" >&6 10931 cat >>confdefs.h <<_ACEOF 10932#define ID3_ICONV_FORMAT_UTF16BE "UNICODEBIG" 10933_ACEOF 10934 10935else 10936 echo "$as_me: program exited with status $ac_status" >&5 10937echo "$as_me: failed program was:" >&5 10938cat conftest.$ac_ext >&5 10939( exit $ac_status ) 10940 echo "$as_me:$LINENO: result: no" >&5 10941echo "${ECHO_T}no" >&6 10942fi 10943rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10944fi 10945 fi 10946 10947# ID3_CLEAR_ICONV_FORMAT(ID3_ICONV_FORMAT_UTF16BE) 10948 10949 10950 if eval "test \"x\$ID3_ICONV_FORMAT_UTF16\" = \"xno\""; then 10951 echo "$as_me:$LINENO: checking whether iconv supports UTF-16" >&5 10952echo $ECHO_N "checking whether iconv supports UTF-16... $ECHO_C" >&6 10953 if test "$cross_compiling" = yes; then 10954 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5 10955echo "$as_me: WARNING: Don't cross-compile" >&2;} 10956else 10957 cat >conftest.$ac_ext <<_ACEOF 10958#line $LINENO "configure" 10959#include "confdefs.h" 10960#include <iconv.h> 10961 int main() { return iconv_open("UTF-16", "UTF-16") == -1; } 10962_ACEOF 10963rm -f conftest$ac_exeext 10964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10965 (eval $ac_link) 2>&5 10966 ac_status=$? 10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10970 (eval $ac_try) 2>&5 10971 ac_status=$? 10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10973 (exit $ac_status); }; }; then 10974 eval ID3_ICONV_FORMAT_UTF16=yes 10975 echo "$as_me:$LINENO: result: yes" >&5 10976echo "${ECHO_T}yes" >&6 10977 cat >>confdefs.h <<_ACEOF 10978#define ID3_ICONV_FORMAT_UTF16 "UTF-16" 10979_ACEOF 10980 10981else 10982 echo "$as_me: program exited with status $ac_status" >&5 10983echo "$as_me: failed program was:" >&5 10984cat conftest.$ac_ext >&5 10985( exit $ac_status ) 10986 echo "$as_me:$LINENO: result: no" >&5 10987echo "${ECHO_T}no" >&6 10988fi 10989rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10990fi 10991 fi 10992 10993 10994 if eval "test \"x\$ID3_ICONV_FORMAT_UTF16\" = \"xno\""; then 10995 echo "$as_me:$LINENO: checking whether iconv supports UTF16" >&5 10996echo $ECHO_N "checking whether iconv supports UTF16... $ECHO_C" >&6 10997 if test "$cross_compiling" = yes; then 10998 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5 10999echo "$as_me: WARNING: Don't cross-compile" >&2;} 11000else 11001 cat >conftest.$ac_ext <<_ACEOF 11002#line $LINENO "configure" 11003#include "confdefs.h" 11004#include <iconv.h> 11005 int main() { return iconv_open("UTF16", "UTF16") == -1; } 11006_ACEOF 11007rm -f conftest$ac_exeext 11008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11009 (eval $ac_link) 2>&5 11010 ac_status=$? 11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11014 (eval $ac_try) 2>&5 11015 ac_status=$? 11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11017 (exit $ac_status); }; }; then 11018 eval ID3_ICONV_FORMAT_UTF16=yes 11019 echo "$as_me:$LINENO: result: yes" >&5 11020echo "${ECHO_T}yes" >&6 11021 cat >>confdefs.h <<_ACEOF 11022#define ID3_ICONV_FORMAT_UTF16 "UTF16" 11023_ACEOF 11024 11025else 11026 echo "$as_me: program exited with status $ac_status" >&5 11027echo "$as_me: failed program was:" >&5 11028cat conftest.$ac_ext >&5 11029( exit $ac_status ) 11030 echo "$as_me:$LINENO: result: no" >&5 11031echo "${ECHO_T}no" >&6 11032fi 11033rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11034fi 11035 fi 11036 11037 11038 if eval "test \"x\$ID3_ICONV_FORMAT_UTF16\" = \"xno\""; then 11039 echo "$as_me:$LINENO: checking whether iconv supports UNICODE" >&5 11040echo $ECHO_N "checking whether iconv supports UNICODE... $ECHO_C" >&6 11041 if test "$cross_compiling" = yes; then 11042 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5 11043echo "$as_me: WARNING: Don't cross-compile" >&2;} 11044else 11045 cat >conftest.$ac_ext <<_ACEOF 11046#line $LINENO "configure" 11047#include "confdefs.h" 11048#include <iconv.h> 11049 int main() { return iconv_open("UNICODE", "UNICODE") == -1; } 11050_ACEOF 11051rm -f conftest$ac_exeext 11052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11053 (eval $ac_link) 2>&5 11054 ac_status=$? 11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11058 (eval $ac_try) 2>&5 11059 ac_status=$? 11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11061 (exit $ac_status); }; }; then 11062 eval ID3_ICONV_FORMAT_UTF16=yes 11063 echo "$as_me:$LINENO: result: yes" >&5 11064echo "${ECHO_T}yes" >&6 11065 cat >>confdefs.h <<_ACEOF 11066#define ID3_ICONV_FORMAT_UTF16 "UNICODE" 11067_ACEOF 11068 11069else 11070 echo "$as_me: program exited with status $ac_status" >&5 11071echo "$as_me: failed program was:" >&5 11072cat conftest.$ac_ext >&5 11073( exit $ac_status ) 11074 echo "$as_me:$LINENO: result: no" >&5 11075echo "${ECHO_T}no" >&6 11076fi 11077rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11078fi 11079 fi 11080 11081# ID3_CLEAR_ICONV_FORMAT(ID3_ICONV_FORMAT_UTF16) 11082 11083 11084 if eval "test \"x\$ID3_ICONV_FORMAT_ASCII\" = \"xno\""; then 11085 echo "$as_me:$LINENO: checking whether iconv supports ISO-8859-1" >&5 11086echo $ECHO_N "checking whether iconv supports ISO-8859-1... $ECHO_C" >&6 11087 if test "$cross_compiling" = yes; then 11088 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5 11089echo "$as_me: WARNING: Don't cross-compile" >&2;} 11090else 11091 cat >conftest.$ac_ext <<_ACEOF 11092#line $LINENO "configure" 11093#include "confdefs.h" 11094#include <iconv.h> 11095 int main() { return iconv_open("ISO-8859-1", "ISO-8859-1") == -1; } 11096_ACEOF 11097rm -f conftest$ac_exeext 11098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11099 (eval $ac_link) 2>&5 11100 ac_status=$? 11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11104 (eval $ac_try) 2>&5 11105 ac_status=$? 11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11107 (exit $ac_status); }; }; then 11108 eval ID3_ICONV_FORMAT_ASCII=yes 11109 echo "$as_me:$LINENO: result: yes" >&5 11110echo "${ECHO_T}yes" >&6 11111 cat >>confdefs.h <<_ACEOF 11112#define ID3_ICONV_FORMAT_ASCII "ISO-8859-1" 11113_ACEOF 11114 11115else 11116 echo "$as_me: program exited with status $ac_status" >&5 11117echo "$as_me: failed program was:" >&5 11118cat conftest.$ac_ext >&5 11119( exit $ac_status ) 11120 echo "$as_me:$LINENO: result: no" >&5 11121echo "${ECHO_T}no" >&6 11122fi 11123rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11124fi 11125 fi 11126 11127 11128 if eval "test \"x\$ID3_ICONV_FORMAT_ASCII\" = \"xno\""; then 11129 echo "$as_me:$LINENO: checking whether iconv supports ASCII" >&5 11130echo $ECHO_N "checking whether iconv supports ASCII... $ECHO_C" >&6 11131 if test "$cross_compiling" = yes; then 11132 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5 11133echo "$as_me: WARNING: Don't cross-compile" >&2;} 11134else 11135 cat >conftest.$ac_ext <<_ACEOF 11136#line $LINENO "configure" 11137#include "confdefs.h" 11138#include <iconv.h> 11139 int main() { return iconv_open("ASCII", "ASCII") == -1; } 11140_ACEOF 11141rm -f conftest$ac_exeext 11142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11143 (eval $ac_link) 2>&5 11144 ac_status=$? 11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11148 (eval $ac_try) 2>&5 11149 ac_status=$? 11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11151 (exit $ac_status); }; }; then 11152 eval ID3_ICONV_FORMAT_ASCII=yes 11153 echo "$as_me:$LINENO: result: yes" >&5 11154echo "${ECHO_T}yes" >&6 11155 cat >>confdefs.h <<_ACEOF 11156#define ID3_ICONV_FORMAT_ASCII "ASCII" 11157_ACEOF 11158 11159else 11160 echo "$as_me: program exited with status $ac_status" >&5 11161echo "$as_me: failed program was:" >&5 11162cat conftest.$ac_ext >&5 11163( exit $ac_status ) 11164 echo "$as_me:$LINENO: result: no" >&5 11165echo "${ECHO_T}no" >&6 11166fi 11167rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11168fi 11169 fi 11170 11171 11172 if eval "test \"x\$ID3_ICONV_FORMAT_ASCII\" = \"xno\""; then 11173 echo "$as_me:$LINENO: checking whether iconv supports US-ASCII" >&5 11174echo $ECHO_N "checking whether iconv supports US-ASCII... $ECHO_C" >&6 11175 if test "$cross_compiling" = yes; then 11176 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5 11177echo "$as_me: WARNING: Don't cross-compile" >&2;} 11178else 11179 cat >conftest.$ac_ext <<_ACEOF 11180#line $LINENO "configure" 11181#include "confdefs.h" 11182#include <iconv.h> 11183 int main() { return iconv_open("US-ASCII", "US-ASCII") == -1; } 11184_ACEOF 11185rm -f conftest$ac_exeext 11186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11187 (eval $ac_link) 2>&5 11188 ac_status=$? 11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11192 (eval $ac_try) 2>&5 11193 ac_status=$? 11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11195 (exit $ac_status); }; }; then 11196 eval ID3_ICONV_FORMAT_ASCII=yes 11197 echo "$as_me:$LINENO: result: yes" >&5 11198echo "${ECHO_T}yes" >&6 11199 cat >>confdefs.h <<_ACEOF 11200#define ID3_ICONV_FORMAT_ASCII "US-ASCII" 11201_ACEOF 11202 11203else 11204 echo "$as_me: program exited with status $ac_status" >&5 11205echo "$as_me: failed program was:" >&5 11206cat conftest.$ac_ext >&5 11207( exit $ac_status ) 11208 echo "$as_me:$LINENO: result: no" >&5 11209echo "${ECHO_T}no" >&6 11210fi 11211rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11212fi 11213 fi 11214 11215 11216 if eval "test \"x\$ID3_ICONV_FORMAT_ASCII\" = \"xno\""; then 11217 echo "$as_me:$LINENO: checking whether iconv supports US" >&5 11218echo $ECHO_N "checking whether iconv supports US... $ECHO_C" >&6 11219 if test "$cross_compiling" = yes; then 11220 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5 11221echo "$as_me: WARNING: Don't cross-compile" >&2;} 11222else 11223 cat >conftest.$ac_ext <<_ACEOF 11224#line $LINENO "configure" 11225#include "confdefs.h" 11226#include <iconv.h> 11227 int main() { return iconv_open("US", "US") == -1; } 11228_ACEOF 11229rm -f conftest$ac_exeext 11230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11231 (eval $ac_link) 2>&5 11232 ac_status=$? 11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11236 (eval $ac_try) 2>&5 11237 ac_status=$? 11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11239 (exit $ac_status); }; }; then 11240 eval ID3_ICONV_FORMAT_ASCII=yes 11241 echo "$as_me:$LINENO: result: yes" >&5 11242echo "${ECHO_T}yes" >&6 11243 cat >>confdefs.h <<_ACEOF 11244#define ID3_ICONV_FORMAT_ASCII "US" 11245_ACEOF 11246 11247else 11248 echo "$as_me: program exited with status $ac_status" >&5 11249echo "$as_me: failed program was:" >&5 11250cat conftest.$ac_ext >&5 11251( exit $ac_status ) 11252 echo "$as_me:$LINENO: result: no" >&5 11253echo "${ECHO_T}no" >&6 11254fi 11255rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11256fi 11257 fi 11258 11259# ID3_CLEAR_ICONV_FORMAT(ID3_ICONV_FORMAT_ASCII) 11260 fi 11261 11262 11263 11264# AC_FUNC_MEMCMP 11265 11266for ac_func in getopt_long 11267do 11268as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11269echo "$as_me:$LINENO: checking for $ac_func" >&5 11270echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11271if eval "test \"\${$as_ac_var+set}\" = set"; then 11272 echo $ECHO_N "(cached) $ECHO_C" >&6 11273else 11274 cat >conftest.$ac_ext <<_ACEOF 11275#line $LINENO "configure" 11276#include "confdefs.h" 11277/* System header to define __stub macros and hopefully few prototypes, 11278 which can conflict with char $ac_func (); below. */ 11279#include <assert.h> 11280/* Override any gcc2 internal prototype to avoid an error. */ 11281#ifdef __cplusplus 11282extern "C" 11283#endif 11284/* We use char because int might match the return type of a gcc2 11285 builtin and then its argument prototype would still apply. */ 11286char $ac_func (); 11287char (*f) (); 11288 11289#ifdef F77_DUMMY_MAIN 11290# ifdef __cplusplus 11291 extern "C" 11292# endif 11293 int F77_DUMMY_MAIN() { return 1; } 11294#endif 11295int 11296main () 11297{ 11298/* The GNU C library defines this for functions which it implements 11299 to always fail with ENOSYS. Some functions are actually named 11300 something starting with __ and the normal name is an alias. */ 11301#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11302choke me 11303#else 11304f = $ac_func; 11305#endif 11306 11307 ; 11308 return 0; 11309} 11310_ACEOF 11311rm -f conftest.$ac_objext conftest$ac_exeext 11312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11313 (eval $ac_link) 2>&5 11314 ac_status=$? 11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11316 (exit $ac_status); } && 11317 { ac_try='test -s conftest$ac_exeext' 11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11319 (eval $ac_try) 2>&5 11320 ac_status=$? 11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11322 (exit $ac_status); }; }; then 11323 eval "$as_ac_var=yes" 11324else 11325 echo "$as_me: failed program was:" >&5 11326cat conftest.$ac_ext >&5 11327eval "$as_ac_var=no" 11328fi 11329rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11330fi 11331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 11332echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11333if test `eval echo '${'$as_ac_var'}'` = yes; then 11334 cat >>confdefs.h <<_ACEOF 11335#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11336_ACEOF 11337 11338fi 11339done 11340 11341 11342 11343if test x$ac_cv_func_getopt_long = xno; then 11344 ID3_NEEDGETOPT_LONG_TRUE= 11345 ID3_NEEDGETOPT_LONG_FALSE='#' 11346else 11347 ID3_NEEDGETOPT_LONG_TRUE='#' 11348 ID3_NEEDGETOPT_LONG_FALSE= 11349fi 11350 11351 11352 11353for ac_func in mkstemp 11354do 11355as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11356echo "$as_me:$LINENO: checking for $ac_func" >&5 11357echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11358if eval "test \"\${$as_ac_var+set}\" = set"; then 11359 echo $ECHO_N "(cached) $ECHO_C" >&6 11360else 11361 cat >conftest.$ac_ext <<_ACEOF 11362#line $LINENO "configure" 11363#include "confdefs.h" 11364/* System header to define __stub macros and hopefully few prototypes, 11365 which can conflict with char $ac_func (); below. */ 11366#include <assert.h> 11367/* Override any gcc2 internal prototype to avoid an error. */ 11368#ifdef __cplusplus 11369extern "C" 11370#endif 11371/* We use char because int might match the return type of a gcc2 11372 builtin and then its argument prototype would still apply. */ 11373char $ac_func (); 11374char (*f) (); 11375 11376#ifdef F77_DUMMY_MAIN 11377# ifdef __cplusplus 11378 extern "C" 11379# endif 11380 int F77_DUMMY_MAIN() { return 1; } 11381#endif 11382int 11383main () 11384{ 11385/* The GNU C library defines this for functions which it implements 11386 to always fail with ENOSYS. Some functions are actually named 11387 something starting with __ and the normal name is an alias. */ 11388#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11389choke me 11390#else 11391f = $ac_func; 11392#endif 11393 11394 ; 11395 return 0; 11396} 11397_ACEOF 11398rm -f conftest.$ac_objext conftest$ac_exeext 11399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11400 (eval $ac_link) 2>&5 11401 ac_status=$? 11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11403 (exit $ac_status); } && 11404 { ac_try='test -s conftest$ac_exeext' 11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11406 (eval $ac_try) 2>&5 11407 ac_status=$? 11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11409 (exit $ac_status); }; }; then 11410 eval "$as_ac_var=yes" 11411else 11412 echo "$as_me: failed program was:" >&5 11413cat conftest.$ac_ext >&5 11414eval "$as_ac_var=no" 11415fi 11416rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11417fi 11418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 11419echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11420if test `eval echo '${'$as_ac_var'}'` = yes; then 11421 cat >>confdefs.h <<_ACEOF 11422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11423_ACEOF 11424 11425fi 11426done 11427 11428 11429for ac_func in truncate \ 11430 11431do 11432as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11433echo "$as_me:$LINENO: checking for $ac_func" >&5 11434echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11435if eval "test \"\${$as_ac_var+set}\" = set"; then 11436 echo $ECHO_N "(cached) $ECHO_C" >&6 11437else 11438 cat >conftest.$ac_ext <<_ACEOF 11439#line $LINENO "configure" 11440#include "confdefs.h" 11441/* System header to define __stub macros and hopefully few prototypes, 11442 which can conflict with char $ac_func (); below. */ 11443#include <assert.h> 11444/* Override any gcc2 internal prototype to avoid an error. */ 11445#ifdef __cplusplus 11446extern "C" 11447#endif 11448/* We use char because int might match the return type of a gcc2 11449 builtin and then its argument prototype would still apply. */ 11450char $ac_func (); 11451char (*f) (); 11452 11453#ifdef F77_DUMMY_MAIN 11454# ifdef __cplusplus 11455 extern "C" 11456# endif 11457 int F77_DUMMY_MAIN() { return 1; } 11458#endif 11459int 11460main () 11461{ 11462/* The GNU C library defines this for functions which it implements 11463 to always fail with ENOSYS. Some functions are actually named 11464 something starting with __ and the normal name is an alias. */ 11465#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11466choke me 11467#else 11468f = $ac_func; 11469#endif 11470 11471 ; 11472 return 0; 11473} 11474_ACEOF 11475rm -f conftest.$ac_objext conftest$ac_exeext 11476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11477 (eval $ac_link) 2>&5 11478 ac_status=$? 11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11480 (exit $ac_status); } && 11481 { ac_try='test -s conftest$ac_exeext' 11482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11483 (eval $ac_try) 2>&5 11484 ac_status=$? 11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11486 (exit $ac_status); }; }; then 11487 eval "$as_ac_var=yes" 11488else 11489 echo "$as_me: failed program was:" >&5 11490cat conftest.$ac_ext >&5 11491eval "$as_ac_var=no" 11492fi 11493rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11494fi 11495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 11496echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11497if test `eval echo '${'$as_ac_var'}'` = yes; then 11498 cat >>confdefs.h <<_ACEOF 11499#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11500_ACEOF 11501 11502else 11503 { { echo "$as_me:$LINENO: error: Missing a vital function for id3lib" >&5 11504echo "$as_me: error: Missing a vital function for id3lib" >&2;} 11505 { (exit 1); exit 1; }; } 11506 11507fi 11508done 11509 11510 11511echo "$as_me:$LINENO: checking for size_t" >&5 11512echo $ECHO_N "checking for size_t... $ECHO_C" >&6 11513if test "${ac_cv_type_size_t+set}" = set; then 11514 echo $ECHO_N "(cached) $ECHO_C" >&6 11515else 11516 cat >conftest.$ac_ext <<_ACEOF 11517#line $LINENO "configure" 11518#include "confdefs.h" 11519$ac_includes_default 11520#ifdef F77_DUMMY_MAIN 11521# ifdef __cplusplus 11522 extern "C" 11523# endif 11524 int F77_DUMMY_MAIN() { return 1; } 11525#endif 11526int 11527main () 11528{ 11529if ((size_t *) 0) 11530 return 0; 11531if (sizeof (size_t)) 11532 return 0; 11533 ; 11534 return 0; 11535} 11536_ACEOF 11537rm -f conftest.$ac_objext 11538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11539 (eval $ac_compile) 2>&5 11540 ac_status=$? 11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11542 (exit $ac_status); } && 11543 { ac_try='test -s conftest.$ac_objext' 11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11545 (eval $ac_try) 2>&5 11546 ac_status=$? 11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11548 (exit $ac_status); }; }; then 11549 ac_cv_type_size_t=yes 11550else 11551 echo "$as_me: failed program was:" >&5 11552cat conftest.$ac_ext >&5 11553ac_cv_type_size_t=no 11554fi 11555rm -f conftest.$ac_objext conftest.$ac_ext 11556fi 11557echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 11558echo "${ECHO_T}$ac_cv_type_size_t" >&6 11559if test $ac_cv_type_size_t = yes; then 11560 : 11561else 11562 11563cat >>confdefs.h <<_ACEOF 11564#define size_t unsigned 11565_ACEOF 11566 11567fi 11568 11569 11570 11571 11572 11573cat >>confdefs.h <<_ACEOF 11574#define _ID3LIB_NAME "$ID3LIB_NAME" 11575_ACEOF 11576 11577cat >>confdefs.h <<_ACEOF 11578#define _ID3LIB_VERSION "$ID3LIB_VERSION" 11579_ACEOF 11580 11581cat >>confdefs.h <<_ACEOF 11582#define _ID3LIB_FULLNAME "$ID3LIB_FULLNAME" 11583_ACEOF 11584 11585cat >>confdefs.h <<_ACEOF 11586#define _ID3LIB_MAJOR_VERSION $ID3LIB_MAJOR_VERSION 11587_ACEOF 11588 11589cat >>confdefs.h <<_ACEOF 11590#define _ID3LIB_MINOR_VERSION $ID3LIB_MINOR_VERSION 11591_ACEOF 11592 11593cat >>confdefs.h <<_ACEOF 11594#define _ID3LIB_PATCH_VERSION $ID3LIB_PATCH_VERSION 11595_ACEOF 11596 11597cat >>confdefs.h <<_ACEOF 11598#define _ID3LIB_INTERFACE_AGE $ID3LIB_INTERFACE_AGE 11599_ACEOF 11600 11601cat >>confdefs.h <<_ACEOF 11602#define _ID3LIB_BINARY_AGE $ID3LIB_BINARY_AGE 11603_ACEOF 11604 11605cat >>confdefs.h <<_ACEOF 11606#define _ID3_COMPILED_WITH_DEBUGGING "${enable_debug}" 11607_ACEOF 11608 11609 11610CONDITIONAL_SUBDIRS= 11611if test "x$ac_cv_lib_z_uncompress" = "xno"; then 11612 CONDITIONAL_SUBDIRS="$CONDITIONAL_SUBDIRS zlib" 11613fi 11614 11615 11616subdirs="$subdirs zlib" 11617 11618 11619CFLAGS="$CFLAGS -Wall" 11620 11621 ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile include/Makefile include/id3/Makefile id3com/Makefile id3com/Sample/Makefile src/Makefile examples/Makefile prj/Makefile libprj/Makefile" 11622cat >confcache <<\_ACEOF 11623# This file is a shell script that caches the results of configure 11624# tests run on this system so they can be shared between configure 11625# scripts and configure runs, see configure's option --config-cache. 11626# It is not useful on other systems. If it contains results you don't 11627# want to keep, you may remove or edit it. 11628# 11629# config.status only pays attention to the cache file if you give it 11630# the --recheck option to rerun configure. 11631# 11632# `ac_cv_env_foo' variables (set or unset) will be overridden when 11633# loading this file, other *unset* `ac_cv_foo' will be assigned the 11634# following values. 11635 11636_ACEOF 11637 11638# The following way of writing the cache mishandles newlines in values, 11639# but we know of no workaround that is simple, portable, and efficient. 11640# So, don't put newlines in cache variables' values. 11641# Ultrix sh set writes to stderr and can't be redirected directly, 11642# and sets the high bit in the cache file unless we assign to the vars. 11643{ 11644 (set) 2>&1 | 11645 case `(ac_space=' '; set | grep ac_space) 2>&1` in 11646 *ac_space=\ *) 11647 # `set' does not quote correctly, so add quotes (double-quote 11648 # substitution turns \\\\ into \\, and sed turns \\ into \). 11649 sed -n \ 11650 "s/'/'\\\\''/g; 11651 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11652 ;; 11653 *) 11654 # `set' quotes correctly as required by POSIX, so do not add quotes. 11655 sed -n \ 11656 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 11657 ;; 11658 esac; 11659} | 11660 sed ' 11661 t clear 11662 : clear 11663 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11664 t end 11665 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11666 : end' >>confcache 11667if cmp -s $cache_file confcache; then :; else 11668 if test -w $cache_file; then 11669 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 11670 cat confcache >$cache_file 11671 else 11672 echo "not updating unwritable cache $cache_file" 11673 fi 11674fi 11675rm -f confcache 11676 11677test "x$prefix" = xNONE && prefix=$ac_default_prefix 11678# Let make expand exec_prefix. 11679test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11680 11681# VPATH may cause trouble with some makes, so we remove $(srcdir), 11682# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11683# trailing colons and then remove the whole line if VPATH becomes empty 11684# (actually we leave an empty line to preserve line numbers). 11685if test "x$srcdir" = x.; then 11686 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11687s/:*\$(srcdir):*/:/; 11688s/:*\${srcdir}:*/:/; 11689s/:*@srcdir@:*/:/; 11690s/^\([^=]*=[ ]*\):*/\1/; 11691s/:*$//; 11692s/^[^=]*=[ ]*$//; 11693}' 11694fi 11695 11696DEFS=-DHAVE_CONFIG_H 11697 11698if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11699 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 11700Usually this means the macro was only invoked conditionally." >&5 11701echo "$as_me: error: conditional \"AMDEP\" was never defined. 11702Usually this means the macro was only invoked conditionally." >&2;} 11703 { (exit 1); exit 1; }; } 11704fi 11705if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11706 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 11707Usually this means the macro was only invoked conditionally." >&5 11708echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 11709Usually this means the macro was only invoked conditionally." >&2;} 11710 { (exit 1); exit 1; }; } 11711fi 11712if test -z "${ID3_NEEDZLIB_TRUE}" && test -z "${ID3_NEEDZLIB_FALSE}"; then 11713 { { echo "$as_me:$LINENO: error: conditional \"ID3_NEEDZLIB\" was never defined. 11714Usually this means the macro was only invoked conditionally." >&5 11715echo "$as_me: error: conditional \"ID3_NEEDZLIB\" was never defined. 11716Usually this means the macro was only invoked conditionally." >&2;} 11717 { (exit 1); exit 1; }; } 11718fi 11719if test -z "${ID3_NEEDDEBUG_TRUE}" && test -z "${ID3_NEEDDEBUG_FALSE}"; then 11720 { { echo "$as_me:$LINENO: error: conditional \"ID3_NEEDDEBUG\" was never defined. 11721Usually this means the macro was only invoked conditionally." >&5 11722echo "$as_me: error: conditional \"ID3_NEEDDEBUG\" was never defined. 11723Usually this means the macro was only invoked conditionally." >&2;} 11724 { (exit 1); exit 1; }; } 11725fi 11726if test -z "${ID3_NEEDGETOPT_LONG_TRUE}" && test -z "${ID3_NEEDGETOPT_LONG_FALSE}"; then 11727 { { echo "$as_me:$LINENO: error: conditional \"ID3_NEEDGETOPT_LONG\" was never defined. 11728Usually this means the macro was only invoked conditionally." >&5 11729echo "$as_me: error: conditional \"ID3_NEEDGETOPT_LONG\" was never defined. 11730Usually this means the macro was only invoked conditionally." >&2;} 11731 { (exit 1); exit 1; }; } 11732fi 11733 11734: ${CONFIG_STATUS=./config.status} 11735ac_clean_files_save=$ac_clean_files 11736ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11737{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11738echo "$as_me: creating $CONFIG_STATUS" >&6;} 11739cat >$CONFIG_STATUS <<_ACEOF 11740#! $SHELL 11741# Generated by $as_me. 11742# Run this file to recreate the current configuration. 11743# Compiler output produced by configure, useful for debugging 11744# configure, is in config.log if it exists. 11745 11746debug=false 11747SHELL=\${CONFIG_SHELL-$SHELL} 11748_ACEOF 11749 11750cat >>$CONFIG_STATUS <<\_ACEOF 11751## --------------------- ## 11752## M4sh Initialization. ## 11753## --------------------- ## 11754 11755# Be Bourne compatible 11756if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11757 emulate sh 11758 NULLCMD=: 11759 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11760 # is contrary to our usage. Disable this feature. 11761 alias -g '${1+"$@"}'='"$@"' 11762elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 11763 set -o posix 11764fi 11765 11766# NLS nuisances. 11767# Support unset when possible. 11768if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 11769 as_unset=unset 11770else 11771 as_unset=false 11772fi 11773 11774(set +x; test -n "`(LANG=C; export LANG) 2>&1`") && 11775 { $as_unset LANG || test "${LANG+set}" != set; } || 11776 { LANG=C; export LANG; } 11777(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && 11778 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || 11779 { LC_ALL=C; export LC_ALL; } 11780(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && 11781 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || 11782 { LC_TIME=C; export LC_TIME; } 11783(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && 11784 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || 11785 { LC_CTYPE=C; export LC_CTYPE; } 11786(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && 11787 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || 11788 { LANGUAGE=C; export LANGUAGE; } 11789(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && 11790 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || 11791 { LC_COLLATE=C; export LC_COLLATE; } 11792(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && 11793 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || 11794 { LC_NUMERIC=C; export LC_NUMERIC; } 11795(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && 11796 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || 11797 { LC_MESSAGES=C; export LC_MESSAGES; } 11798 11799 11800# Required to use basename. 11801if expr a : '\(a\)' >/dev/null 2>&1; then 11802 as_expr=expr 11803else 11804 as_expr=false 11805fi 11806 11807if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 11808 as_basename=basename 11809else 11810 as_basename=false 11811fi 11812 11813 11814# Name of the executable. 11815as_me=`$as_basename "$0" || 11816$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11817 X"$0" : 'X\(//\)$' \| \ 11818 X"$0" : 'X\(/\)$' \| \ 11819 . : '\(.\)' 2>/dev/null || 11820echo X/"$0" | 11821 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 11822 /^X\/\(\/\/\)$/{ s//\1/; q; } 11823 /^X\/\(\/\).*/{ s//\1/; q; } 11824 s/.*/./; q'` 11825 11826 11827# PATH needs CR, and LINENO needs CR and PATH. 11828# Avoid depending upon Character Ranges. 11829as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11830as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11831as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11832as_cr_digits='0123456789' 11833as_cr_alnum=$as_cr_Letters$as_cr_digits 11834 11835# The user is always right. 11836if test "${PATH_SEPARATOR+set}" != set; then 11837 echo "#! /bin/sh" >conftest.sh 11838 echo "exit 0" >>conftest.sh 11839 chmod +x conftest.sh 11840 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then 11841 PATH_SEPARATOR=';' 11842 else 11843 PATH_SEPARATOR=: 11844 fi 11845 rm -f conftest.sh 11846fi 11847 11848 11849 as_lineno_1=$LINENO 11850 as_lineno_2=$LINENO 11851 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11852 test "x$as_lineno_1" != "x$as_lineno_2" && 11853 test "x$as_lineno_3" = "x$as_lineno_2" || { 11854 # Find who we are. Look in the path if we contain no path at all 11855 # relative or not. 11856 case $0 in 11857 *[\\/]* ) as_myself=$0 ;; 11858 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11859for as_dir in $PATH 11860do 11861 IFS=$as_save_IFS 11862 test -z "$as_dir" && as_dir=. 11863 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11864done 11865 11866 ;; 11867 esac 11868 # We did not find ourselves, most probably we were run as `sh COMMAND' 11869 # in which case we are not to be found in the path. 11870 if test "x$as_myself" = x; then 11871 as_myself=$0 11872 fi 11873 if test ! -f "$as_myself"; then 11874 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 11875echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 11876 { (exit 1); exit 1; }; } 11877 fi 11878 case $CONFIG_SHELL in 11879 '') 11880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11881for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 11882do 11883 IFS=$as_save_IFS 11884 test -z "$as_dir" && as_dir=. 11885 for as_base in sh bash ksh sh5; do 11886 case $as_dir in 11887 /*) 11888 if ("$as_dir/$as_base" -c ' 11889 as_lineno_1=$LINENO 11890 as_lineno_2=$LINENO 11891 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11892 test "x$as_lineno_1" != "x$as_lineno_2" && 11893 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 11894 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 11895 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 11896 CONFIG_SHELL=$as_dir/$as_base 11897 export CONFIG_SHELL 11898 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 11899 fi;; 11900 esac 11901 done 11902done 11903;; 11904 esac 11905 11906 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11907 # uniformly replaced by the line number. The first 'sed' inserts a 11908 # line-number line before each line; the second 'sed' does the real 11909 # work. The second script uses 'N' to pair each line-number line 11910 # with the numbered line, and appends trailing '-' during 11911 # substitution so that $LINENO is not a special case at line end. 11912 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11913 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 11914 sed '=' <$as_myself | 11915 sed ' 11916 N 11917 s,$,-, 11918 : loop 11919 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 11920 t loop 11921 s,-$,, 11922 s,^['$as_cr_digits']*\n,, 11923 ' >$as_me.lineno && 11924 chmod +x $as_me.lineno || 11925 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 11926echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 11927 { (exit 1); exit 1; }; } 11928 11929 # Don't try to exec as it changes $[0], causing all sort of problems 11930 # (the dirname of $[0] is not the place where we might find the 11931 # original and so on. Autoconf is especially sensible to this). 11932 . ./$as_me.lineno 11933 # Exit status is that of the last command. 11934 exit 11935} 11936 11937 11938case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 11939 *c*,-n*) ECHO_N= ECHO_C=' 11940' ECHO_T=' ' ;; 11941 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 11942 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 11943esac 11944 11945if expr a : '\(a\)' >/dev/null 2>&1; then 11946 as_expr=expr 11947else 11948 as_expr=false 11949fi 11950 11951rm -f conf$$ conf$$.exe conf$$.file 11952echo >conf$$.file 11953if ln -s conf$$.file conf$$ 2>/dev/null; then 11954 # We could just check for DJGPP; but this test a) works b) is more generic 11955 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 11956 if test -f conf$$.exe; then 11957 # Don't use ln at all; we don't have any links 11958 as_ln_s='cp -p' 11959 else 11960 as_ln_s='ln -s' 11961 fi 11962elif ln conf$$.file conf$$ 2>/dev/null; then 11963 as_ln_s=ln 11964else 11965 as_ln_s='cp -p' 11966fi 11967rm -f conf$$ conf$$.exe conf$$.file 11968 11969if mkdir -p . 2>/dev/null; then 11970 as_mkdir_p=: 11971else 11972 as_mkdir_p=false 11973fi 11974 11975as_executable_p="test -f" 11976 11977# Sed expression to map a string onto a valid CPP name. 11978as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 11979 11980# Sed expression to map a string onto a valid variable name. 11981as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 11982 11983 11984# IFS 11985# We need space, tab and new line, in precisely that order. 11986as_nl=' 11987' 11988IFS=" $as_nl" 11989 11990# CDPATH. 11991$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } 11992 11993exec 6>&1 11994 11995# Open the log real soon, to keep \$[0] and so on meaningful, and to 11996# report actual input values of CONFIG_FILES etc. instead of their 11997# values after options handling. Logging --version etc. is OK. 11998exec 5>>config.log 11999{ 12000 echo 12001 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12002## Running $as_me. ## 12003_ASBOX 12004} >&5 12005cat >&5 <<_CSEOF 12006 12007This file was extended by $as_me, which was 12008generated by GNU Autoconf 2.53a. Invocation command line was 12009 12010 CONFIG_FILES = $CONFIG_FILES 12011 CONFIG_HEADERS = $CONFIG_HEADERS 12012 CONFIG_LINKS = $CONFIG_LINKS 12013 CONFIG_COMMANDS = $CONFIG_COMMANDS 12014 $ $0 $@ 12015 12016_CSEOF 12017echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 12018echo >&5 12019_ACEOF 12020 12021# Files that config.status was made for. 12022if test -n "$ac_config_files"; then 12023 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 12024fi 12025 12026if test -n "$ac_config_headers"; then 12027 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 12028fi 12029 12030if test -n "$ac_config_links"; then 12031 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 12032fi 12033 12034if test -n "$ac_config_commands"; then 12035 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 12036fi 12037 12038cat >>$CONFIG_STATUS <<\_ACEOF 12039 12040ac_cs_usage="\ 12041\`$as_me' instantiates files from templates according to the 12042current configuration. 12043 12044Usage: $0 [OPTIONS] [FILE]... 12045 12046 -h, --help print this help, then exit 12047 -V, --version print version number, then exit 12048 -d, --debug don't remove temporary files 12049 --recheck update $as_me by reconfiguring in the same conditions 12050 --file=FILE[:TEMPLATE] 12051 instantiate the configuration file FILE 12052 --header=FILE[:TEMPLATE] 12053 instantiate the configuration header FILE 12054 12055Configuration files: 12056$config_files 12057 12058Configuration headers: 12059$config_headers 12060 12061Configuration commands: 12062$config_commands 12063 12064Report bugs to <bug-autoconf@gnu.org>." 12065_ACEOF 12066 12067cat >>$CONFIG_STATUS <<_ACEOF 12068ac_cs_version="\\ 12069config.status 12070configured by $0, generated by GNU Autoconf 2.53a, 12071 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 12072 12073Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 12074Free Software Foundation, Inc. 12075This config.status script is free software; the Free Software Foundation 12076gives unlimited permission to copy, distribute and modify it." 12077srcdir=$srcdir 12078INSTALL="$INSTALL" 12079_ACEOF 12080 12081cat >>$CONFIG_STATUS <<\_ACEOF 12082# If no file are specified by the user, then we need to provide default 12083# value. By we need to know if files were specified by the user. 12084ac_need_defaults=: 12085while test $# != 0 12086do 12087 case $1 in 12088 --*=*) 12089 ac_option=`expr "x$1" : 'x\([^=]*\)='` 12090 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 12091 ac_shift=: 12092 ;; 12093 -*) 12094 ac_option=$1 12095 ac_optarg=$2 12096 ac_shift=shift 12097 ;; 12098 *) # This is not an option, so the user has probably given explicit 12099 # arguments. 12100 ac_option=$1 12101 ac_need_defaults=false;; 12102 esac 12103 12104 case $ac_option in 12105 # Handling of the options. 12106_ACEOF 12107cat >>$CONFIG_STATUS <<_ACEOF 12108 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12109 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 12110 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 12111_ACEOF 12112cat >>$CONFIG_STATUS <<\_ACEOF 12113 --version | --vers* | -V ) 12114 echo "$ac_cs_version"; exit 0 ;; 12115 --he | --h) 12116 # Conflict between --help and --header 12117 { { echo "$as_me:$LINENO: error: ambiguous option: $1 12118Try \`$0 --help' for more information." >&5 12119echo "$as_me: error: ambiguous option: $1 12120Try \`$0 --help' for more information." >&2;} 12121 { (exit 1); exit 1; }; };; 12122 --help | --hel | -h ) 12123 echo "$ac_cs_usage"; exit 0 ;; 12124 --debug | --d* | -d ) 12125 debug=: ;; 12126 --file | --fil | --fi | --f ) 12127 $ac_shift 12128 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 12129 ac_need_defaults=false;; 12130 --header | --heade | --head | --hea ) 12131 $ac_shift 12132 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 12133 ac_need_defaults=false;; 12134 12135 # This is an error. 12136 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 12137Try \`$0 --help' for more information." >&5 12138echo "$as_me: error: unrecognized option: $1 12139Try \`$0 --help' for more information." >&2;} 12140 { (exit 1); exit 1; }; } ;; 12141 12142 *) ac_config_targets="$ac_config_targets $1" ;; 12143 12144 esac 12145 shift 12146done 12147 12148_ACEOF 12149 12150cat >>$CONFIG_STATUS <<_ACEOF 12151# 12152# INIT-COMMANDS section. 12153# 12154 12155AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12156 12157_ACEOF 12158 12159 12160 12161cat >>$CONFIG_STATUS <<\_ACEOF 12162for ac_config_target in $ac_config_targets 12163do 12164 case "$ac_config_target" in 12165 # Handling of arguments. 12166 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12167 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 12168 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 12169 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 12170 "include/id3/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/id3/Makefile" ;; 12171 "id3com/Makefile" ) CONFIG_FILES="$CONFIG_FILES id3com/Makefile" ;; 12172 "id3com/Sample/Makefile" ) CONFIG_FILES="$CONFIG_FILES id3com/Sample/Makefile" ;; 12173 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12174 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 12175 "prj/Makefile" ) CONFIG_FILES="$CONFIG_FILES prj/Makefile" ;; 12176 "libprj/Makefile" ) CONFIG_FILES="$CONFIG_FILES libprj/Makefile" ;; 12177 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12178 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12179 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12180echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12181 { (exit 1); exit 1; }; };; 12182 esac 12183done 12184 12185# If the user did not use the arguments to specify the items to instantiate, 12186# then the envvar interface is used. Set only those that are not. 12187# We use the long form for the default assignment because of an extremely 12188# bizarre bug on SunOS 4.1.3. 12189if $ac_need_defaults; then 12190 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12191 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12192 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12193fi 12194 12195# Create a temporary directory, and hook for its removal unless debugging. 12196$debug || 12197{ 12198 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 12199 trap '{ (exit 1); exit 1; }' 1 2 13 15 12200} 12201 12202# Create a (secure) tmp directory for tmp files. 12203: ${TMPDIR=/tmp} 12204{ 12205 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 12206 test -n "$tmp" && test -d "$tmp" 12207} || 12208{ 12209 tmp=$TMPDIR/cs$$-$RANDOM 12210 (umask 077 && mkdir $tmp) 12211} || 12212{ 12213 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 12214 { (exit 1); exit 1; } 12215} 12216 12217_ACEOF 12218 12219cat >>$CONFIG_STATUS <<_ACEOF 12220 12221# 12222# CONFIG_FILES section. 12223# 12224 12225# No need to generate the scripts if there are no CONFIG_FILES. 12226# This happens for instance when ./config.status config.h 12227if test -n "\$CONFIG_FILES"; then 12228 # Protect against being on the right side of a sed subst in config.status. 12229 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 12230 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 12231s,@SHELL@,$SHELL,;t t 12232s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 12233s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 12234s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 12235s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 12236s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 12237s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 12238s,@exec_prefix@,$exec_prefix,;t t 12239s,@prefix@,$prefix,;t t 12240s,@program_transform_name@,$program_transform_name,;t t 12241s,@bindir@,$bindir,;t t 12242s,@sbindir@,$sbindir,;t t 12243s,@libexecdir@,$libexecdir,;t t 12244s,@datadir@,$datadir,;t t 12245s,@sysconfdir@,$sysconfdir,;t t 12246s,@sharedstatedir@,$sharedstatedir,;t t 12247s,@localstatedir@,$localstatedir,;t t 12248s,@libdir@,$libdir,;t t 12249s,@includedir@,$includedir,;t t 12250s,@oldincludedir@,$oldincludedir,;t t 12251s,@infodir@,$infodir,;t t 12252s,@mandir@,$mandir,;t t 12253s,@build_alias@,$build_alias,;t t 12254s,@host_alias@,$host_alias,;t t 12255s,@target_alias@,$target_alias,;t t 12256s,@DEFS@,$DEFS,;t t 12257s,@ECHO_C@,$ECHO_C,;t t 12258s,@ECHO_N@,$ECHO_N,;t t 12259s,@ECHO_T@,$ECHO_T,;t t 12260s,@LIBS@,$LIBS,;t t 12261s,@ID3LIB_NAME@,$ID3LIB_NAME,;t t 12262s,@ID3LIB_MAJOR_VERSION@,$ID3LIB_MAJOR_VERSION,;t t 12263s,@ID3LIB_MINOR_VERSION@,$ID3LIB_MINOR_VERSION,;t t 12264s,@ID3LIB_PATCH_VERSION@,$ID3LIB_PATCH_VERSION,;t t 12265s,@ID3LIB_VERSION@,$ID3LIB_VERSION,;t t 12266s,@ID3LIB_INTERFACE_AGE@,$ID3LIB_INTERFACE_AGE,;t t 12267s,@ID3LIB_BINARY_AGE@,$ID3LIB_BINARY_AGE,;t t 12268s,@DOX_DIR_HTML@,$DOX_DIR_HTML,;t t 12269s,@DOX_DIR_LATEX@,$DOX_DIR_LATEX,;t t 12270s,@DOX_DIR_MAN@,$DOX_DIR_MAN,;t t 12271s,@DOX_DIR_RTF@,$DOX_DIR_RTF,;t t 12272s,@LT_RELEASE@,$LT_RELEASE,;t t 12273s,@LT_CURRENT@,$LT_CURRENT,;t t 12274s,@LT_REVISION@,$LT_REVISION,;t t 12275s,@LT_AGE@,$LT_AGE,;t t 12276s,@ID3LIB_FULLNAME@,$ID3LIB_FULLNAME,;t t 12277s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 12278s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 12279s,@INSTALL_DATA@,$INSTALL_DATA,;t t 12280s,@PACKAGE@,$PACKAGE,;t t 12281s,@VERSION@,$VERSION,;t t 12282s,@ACLOCAL@,$ACLOCAL,;t t 12283s,@AUTOCONF@,$AUTOCONF,;t t 12284s,@AUTOMAKE@,$AUTOMAKE,;t t 12285s,@AUTOHEADER@,$AUTOHEADER,;t t 12286s,@MAKEINFO@,$MAKEINFO,;t t 12287s,@AMTAR@,$AMTAR,;t t 12288s,@install_sh@,$install_sh,;t t 12289s,@STRIP@,$STRIP,;t t 12290s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 12291s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 12292s,@AWK@,$AWK,;t t 12293s,@SET_MAKE@,$SET_MAKE,;t t 12294s,@CC@,$CC,;t t 12295s,@CFLAGS@,$CFLAGS,;t t 12296s,@LDFLAGS@,$LDFLAGS,;t t 12297s,@CPPFLAGS@,$CPPFLAGS,;t t 12298s,@ac_ct_CC@,$ac_ct_CC,;t t 12299s,@EXEEXT@,$EXEEXT,;t t 12300s,@OBJEXT@,$OBJEXT,;t t 12301s,@DEPDIR@,$DEPDIR,;t t 12302s,@am__include@,$am__include,;t t 12303s,@am__quote@,$am__quote,;t t 12304s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 12305s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 12306s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 12307s,@CCDEPMODE@,$CCDEPMODE,;t t 12308s,@build@,$build,;t t 12309s,@build_cpu@,$build_cpu,;t t 12310s,@build_vendor@,$build_vendor,;t t 12311s,@build_os@,$build_os,;t t 12312s,@host@,$host,;t t 12313s,@host_cpu@,$host_cpu,;t t 12314s,@host_vendor@,$host_vendor,;t t 12315s,@host_os@,$host_os,;t t 12316s,@LN_S@,$LN_S,;t t 12317s,@ECHO@,$ECHO,;t t 12318s,@RANLIB@,$RANLIB,;t t 12319s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 12320s,@CPP@,$CPP,;t t 12321s,@LIBTOOL@,$LIBTOOL,;t t 12322s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 12323s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 12324s,@MAINT@,$MAINT,;t t 12325s,@ID3LIB_DEBUG_FLAGS@,$ID3LIB_DEBUG_FLAGS,;t t 12326s,@CXX@,$CXX,;t t 12327s,@CXXFLAGS@,$CXXFLAGS,;t t 12328s,@ac_ct_CXX@,$ac_ct_CXX,;t t 12329s,@CXXDEPMODE@,$CXXDEPMODE,;t t 12330s,@CXXCPP@,$CXXCPP,;t t 12331s,@ID3_NEEDZLIB_TRUE@,$ID3_NEEDZLIB_TRUE,;t t 12332s,@ID3_NEEDZLIB_FALSE@,$ID3_NEEDZLIB_FALSE,;t t 12333s,@ID3_NEEDDEBUG_TRUE@,$ID3_NEEDDEBUG_TRUE,;t t 12334s,@ID3_NEEDDEBUG_FALSE@,$ID3_NEEDDEBUG_FALSE,;t t 12335s,@cxxflags_set@,$cxxflags_set,;t t 12336s,@ID3_NEEDGETOPT_LONG_TRUE@,$ID3_NEEDGETOPT_LONG_TRUE,;t t 12337s,@ID3_NEEDGETOPT_LONG_FALSE@,$ID3_NEEDGETOPT_LONG_FALSE,;t t 12338s,@subdirs@,$subdirs,;t t 12339CEOF 12340 12341_ACEOF 12342 12343 cat >>$CONFIG_STATUS <<\_ACEOF 12344 # Split the substitutions into bite-sized pieces for seds with 12345 # small command number limits, like on Digital OSF/1 and HP-UX. 12346 ac_max_sed_lines=48 12347 ac_sed_frag=1 # Number of current file. 12348 ac_beg=1 # First line for current file. 12349 ac_end=$ac_max_sed_lines # Line after last line for current file. 12350 ac_more_lines=: 12351 ac_sed_cmds= 12352 while $ac_more_lines; do 12353 if test $ac_beg -gt 1; then 12354 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12355 else 12356 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12357 fi 12358 if test ! -s $tmp/subs.frag; then 12359 ac_more_lines=false 12360 else 12361 # The purpose of the label and of the branching condition is to 12362 # speed up the sed processing (if there are no `@' at all, there 12363 # is no need to browse any of the substitutions). 12364 # These are the two extra sed commands mentioned above. 12365 (echo ':t 12366 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 12367 if test -z "$ac_sed_cmds"; then 12368 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 12369 else 12370 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 12371 fi 12372 ac_sed_frag=`expr $ac_sed_frag + 1` 12373 ac_beg=$ac_end 12374 ac_end=`expr $ac_end + $ac_max_sed_lines` 12375 fi 12376 done 12377 if test -z "$ac_sed_cmds"; then 12378 ac_sed_cmds=cat 12379 fi 12380fi # test -n "$CONFIG_FILES" 12381 12382_ACEOF 12383cat >>$CONFIG_STATUS <<\_ACEOF 12384for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 12385 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12386 case $ac_file in 12387 - | *:- | *:-:* ) # input from stdin 12388 cat >$tmp/stdin 12389 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12390 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12391 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12392 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12393 * ) ac_file_in=$ac_file.in ;; 12394 esac 12395 12396 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 12397 ac_dir=`(dirname "$ac_file") 2>/dev/null || 12398$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12399 X"$ac_file" : 'X\(//\)[^/]' \| \ 12400 X"$ac_file" : 'X\(//\)$' \| \ 12401 X"$ac_file" : 'X\(/\)' \| \ 12402 . : '\(.\)' 2>/dev/null || 12403echo X"$ac_file" | 12404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12405 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12406 /^X\(\/\/\)$/{ s//\1/; q; } 12407 /^X\(\/\).*/{ s//\1/; q; } 12408 s/.*/./; q'` 12409 { if $as_mkdir_p; then 12410 mkdir -p "$ac_dir" 12411 else 12412 as_dir="$ac_dir" 12413 as_dirs= 12414 while test ! -d "$as_dir"; do 12415 as_dirs="$as_dir $as_dirs" 12416 as_dir=`(dirname "$as_dir") 2>/dev/null || 12417$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12418 X"$as_dir" : 'X\(//\)[^/]' \| \ 12419 X"$as_dir" : 'X\(//\)$' \| \ 12420 X"$as_dir" : 'X\(/\)' \| \ 12421 . : '\(.\)' 2>/dev/null || 12422echo X"$as_dir" | 12423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12424 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12425 /^X\(\/\/\)$/{ s//\1/; q; } 12426 /^X\(\/\).*/{ s//\1/; q; } 12427 s/.*/./; q'` 12428 done 12429 test ! -n "$as_dirs" || mkdir $as_dirs 12430 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12431echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12432 { (exit 1); exit 1; }; }; } 12433 12434 ac_builddir=. 12435 12436if test "$ac_dir" != .; then 12437 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12438 # A "../" for each directory in $ac_dir_suffix. 12439 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12440else 12441 ac_dir_suffix= ac_top_builddir= 12442fi 12443 12444case $srcdir in 12445 .) # No --srcdir option. We are building in place. 12446 ac_srcdir=. 12447 if test -z "$ac_top_builddir"; then 12448 ac_top_srcdir=. 12449 else 12450 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12451 fi ;; 12452 [\\/]* | ?:[\\/]* ) # Absolute path. 12453 ac_srcdir=$srcdir$ac_dir_suffix; 12454 ac_top_srcdir=$srcdir ;; 12455 *) # Relative path. 12456 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12457 ac_top_srcdir=$ac_top_builddir$srcdir ;; 12458esac 12459# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 12460# absolute. 12461ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 12462ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 12463ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 12464ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 12465 12466 12467 case $INSTALL in 12468 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12469 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 12470 esac 12471 12472 if test x"$ac_file" != x-; then 12473 { echo "$as_me:$LINENO: creating $ac_file" >&5 12474echo "$as_me: creating $ac_file" >&6;} 12475 rm -f "$ac_file" 12476 fi 12477 # Let's still pretend it is `configure' which instantiates (i.e., don't 12478 # use $as_me), people would be surprised to read: 12479 # /* config.h. Generated by config.status. */ 12480 if test x"$ac_file" = x-; then 12481 configure_input= 12482 else 12483 configure_input="$ac_file. " 12484 fi 12485 configure_input=$configure_input"Generated from `echo $ac_file_in | 12486 sed 's,.*/,,'` by configure." 12487 12488 # First look for the input files in the build tree, otherwise in the 12489 # src tree. 12490 ac_file_inputs=`IFS=: 12491 for f in $ac_file_in; do 12492 case $f in 12493 -) echo $tmp/stdin ;; 12494 [\\/$]*) 12495 # Absolute (can't be DOS-style, as IFS=:) 12496 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12497echo "$as_me: error: cannot find input file: $f" >&2;} 12498 { (exit 1); exit 1; }; } 12499 echo $f;; 12500 *) # Relative 12501 if test -f "$f"; then 12502 # Build tree 12503 echo $f 12504 elif test -f "$srcdir/$f"; then 12505 # Source tree 12506 echo $srcdir/$f 12507 else 12508 # /dev/null tree 12509 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12510echo "$as_me: error: cannot find input file: $f" >&2;} 12511 { (exit 1); exit 1; }; } 12512 fi;; 12513 esac 12514 done` || { (exit 1); exit 1; } 12515_ACEOF 12516cat >>$CONFIG_STATUS <<_ACEOF 12517 sed "$ac_vpsub 12518$extrasub 12519_ACEOF 12520cat >>$CONFIG_STATUS <<\_ACEOF 12521:t 12522/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12523s,@configure_input@,$configure_input,;t t 12524s,@srcdir@,$ac_srcdir,;t t 12525s,@abs_srcdir@,$ac_abs_srcdir,;t t 12526s,@top_srcdir@,$ac_top_srcdir,;t t 12527s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 12528s,@builddir@,$ac_builddir,;t t 12529s,@abs_builddir@,$ac_abs_builddir,;t t 12530s,@top_builddir@,$ac_top_builddir,;t t 12531s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 12532s,@INSTALL@,$ac_INSTALL,;t t 12533" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 12534 rm -f $tmp/stdin 12535 if test x"$ac_file" != x-; then 12536 mv $tmp/out $ac_file 12537 else 12538 cat $tmp/out 12539 rm -f $tmp/out 12540 fi 12541 12542done 12543_ACEOF 12544cat >>$CONFIG_STATUS <<\_ACEOF 12545 12546# 12547# CONFIG_HEADER section. 12548# 12549 12550# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 12551# NAME is the cpp macro being defined and VALUE is the value it is being given. 12552# 12553# ac_d sets the value in "#define NAME VALUE" lines. 12554ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 12555ac_dB='[ ].*$,\1#\2' 12556ac_dC=' ' 12557ac_dD=',;t' 12558# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 12559ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 12560ac_uB='$,\1#\2define\3' 12561ac_uC=' ' 12562ac_uD=',;t' 12563 12564for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 12565 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12566 case $ac_file in 12567 - | *:- | *:-:* ) # input from stdin 12568 cat >$tmp/stdin 12569 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12570 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12571 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12572 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12573 * ) ac_file_in=$ac_file.in ;; 12574 esac 12575 12576 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 12577echo "$as_me: creating $ac_file" >&6;} 12578 12579 # First look for the input files in the build tree, otherwise in the 12580 # src tree. 12581 ac_file_inputs=`IFS=: 12582 for f in $ac_file_in; do 12583 case $f in 12584 -) echo $tmp/stdin ;; 12585 [\\/$]*) 12586 # Absolute (can't be DOS-style, as IFS=:) 12587 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12588echo "$as_me: error: cannot find input file: $f" >&2;} 12589 { (exit 1); exit 1; }; } 12590 echo $f;; 12591 *) # Relative 12592 if test -f "$f"; then 12593 # Build tree 12594 echo $f 12595 elif test -f "$srcdir/$f"; then 12596 # Source tree 12597 echo $srcdir/$f 12598 else 12599 # /dev/null tree 12600 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12601echo "$as_me: error: cannot find input file: $f" >&2;} 12602 { (exit 1); exit 1; }; } 12603 fi;; 12604 esac 12605 done` || { (exit 1); exit 1; } 12606 # Remove the trailing spaces. 12607 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 12608 12609_ACEOF 12610 12611# Transform confdefs.h into two sed scripts, `conftest.defines' and 12612# `conftest.undefs', that substitutes the proper values into 12613# config.h.in to produce config.h. The first handles `#define' 12614# templates, and the second `#undef' templates. 12615# And first: Protect against being on the right side of a sed subst in 12616# config.status. Protect against being in an unquoted here document 12617# in config.status. 12618rm -f conftest.defines conftest.undefs 12619# Using a here document instead of a string reduces the quoting nightmare. 12620# Putting comments in sed scripts is not portable. 12621# 12622# `end' is used to avoid that the second main sed command (meant for 12623# 0-ary CPP macros) applies to n-ary macro definitions. 12624# See the Autoconf documentation for `clear'. 12625cat >confdef2sed.sed <<\_ACEOF 12626s/[\\&,]/\\&/g 12627s,[\\$`],\\&,g 12628t clear 12629: clear 12630s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 12631t end 12632s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 12633: end 12634_ACEOF 12635# If some macros were called several times there might be several times 12636# the same #defines, which is useless. Nevertheless, we may not want to 12637# sort them, since we want the *last* AC-DEFINE to be honored. 12638uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 12639sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 12640rm -f confdef2sed.sed 12641 12642# This sed command replaces #undef with comments. This is necessary, for 12643# example, in the case of _POSIX_SOURCE, which is predefined and required 12644# on some systems where configure will not decide to define it. 12645cat >>conftest.undefs <<\_ACEOF 12646s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 12647_ACEOF 12648 12649# Break up conftest.defines because some shells have a limit on the size 12650# of here documents, and old seds have small limits too (100 cmds). 12651echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 12652echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 12653echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 12654echo ' :' >>$CONFIG_STATUS 12655rm -f conftest.tail 12656while grep . conftest.defines >/dev/null 12657do 12658 # Write a limited-size here document to $tmp/defines.sed. 12659 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 12660 # Speed up: don't consider the non `#define' lines. 12661 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 12662 # Work around the forget-to-reset-the-flag bug. 12663 echo 't clr' >>$CONFIG_STATUS 12664 echo ': clr' >>$CONFIG_STATUS 12665 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 12666 echo 'CEOF 12667 sed -f $tmp/defines.sed $tmp/in >$tmp/out 12668 rm -f $tmp/in 12669 mv $tmp/out $tmp/in 12670' >>$CONFIG_STATUS 12671 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 12672 rm -f conftest.defines 12673 mv conftest.tail conftest.defines 12674done 12675rm -f conftest.defines 12676echo ' fi # egrep' >>$CONFIG_STATUS 12677echo >>$CONFIG_STATUS 12678 12679# Break up conftest.undefs because some shells have a limit on the size 12680# of here documents, and old seds have small limits too (100 cmds). 12681echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 12682rm -f conftest.tail 12683while grep . conftest.undefs >/dev/null 12684do 12685 # Write a limited-size here document to $tmp/undefs.sed. 12686 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 12687 # Speed up: don't consider the non `#undef' 12688 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 12689 # Work around the forget-to-reset-the-flag bug. 12690 echo 't clr' >>$CONFIG_STATUS 12691 echo ': clr' >>$CONFIG_STATUS 12692 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 12693 echo 'CEOF 12694 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 12695 rm -f $tmp/in 12696 mv $tmp/out $tmp/in 12697' >>$CONFIG_STATUS 12698 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 12699 rm -f conftest.undefs 12700 mv conftest.tail conftest.undefs 12701done 12702rm -f conftest.undefs 12703 12704cat >>$CONFIG_STATUS <<\_ACEOF 12705 # Let's still pretend it is `configure' which instantiates (i.e., don't 12706 # use $as_me), people would be surprised to read: 12707 # /* config.h. Generated by config.status. */ 12708 if test x"$ac_file" = x-; then 12709 echo "/* Generated by configure. */" >$tmp/config.h 12710 else 12711 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 12712 fi 12713 cat $tmp/in >>$tmp/config.h 12714 rm -f $tmp/in 12715 if test x"$ac_file" != x-; then 12716 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 12717 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 12718echo "$as_me: $ac_file is unchanged" >&6;} 12719 else 12720 ac_dir=`(dirname "$ac_file") 2>/dev/null || 12721$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12722 X"$ac_file" : 'X\(//\)[^/]' \| \ 12723 X"$ac_file" : 'X\(//\)$' \| \ 12724 X"$ac_file" : 'X\(/\)' \| \ 12725 . : '\(.\)' 2>/dev/null || 12726echo X"$ac_file" | 12727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12728 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12729 /^X\(\/\/\)$/{ s//\1/; q; } 12730 /^X\(\/\).*/{ s//\1/; q; } 12731 s/.*/./; q'` 12732 { if $as_mkdir_p; then 12733 mkdir -p "$ac_dir" 12734 else 12735 as_dir="$ac_dir" 12736 as_dirs= 12737 while test ! -d "$as_dir"; do 12738 as_dirs="$as_dir $as_dirs" 12739 as_dir=`(dirname "$as_dir") 2>/dev/null || 12740$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12741 X"$as_dir" : 'X\(//\)[^/]' \| \ 12742 X"$as_dir" : 'X\(//\)$' \| \ 12743 X"$as_dir" : 'X\(/\)' \| \ 12744 . : '\(.\)' 2>/dev/null || 12745echo X"$as_dir" | 12746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12747 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12748 /^X\(\/\/\)$/{ s//\1/; q; } 12749 /^X\(\/\).*/{ s//\1/; q; } 12750 s/.*/./; q'` 12751 done 12752 test ! -n "$as_dirs" || mkdir $as_dirs 12753 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12754echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12755 { (exit 1); exit 1; }; }; } 12756 12757 rm -f $ac_file 12758 mv $tmp/config.h $ac_file 12759 fi 12760 else 12761 cat $tmp/config.h 12762 rm -f $tmp/config.h 12763 fi 12764 # Run the commands associated with the file. 12765 case $ac_file in 12766 config.h ) # update the timestamp 12767echo 'timestamp for config.h' >"./stamp-h1" 12768 ;; 12769 esac 12770done 12771_ACEOF 12772cat >>$CONFIG_STATUS <<\_ACEOF 12773 12774# 12775# CONFIG_COMMANDS section. 12776# 12777for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 12778 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 12779 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 12780 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 12781$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12782 X"$ac_dest" : 'X\(//\)[^/]' \| \ 12783 X"$ac_dest" : 'X\(//\)$' \| \ 12784 X"$ac_dest" : 'X\(/\)' \| \ 12785 . : '\(.\)' 2>/dev/null || 12786echo X"$ac_dest" | 12787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12788 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12789 /^X\(\/\/\)$/{ s//\1/; q; } 12790 /^X\(\/\).*/{ s//\1/; q; } 12791 s/.*/./; q'` 12792 ac_builddir=. 12793 12794if test "$ac_dir" != .; then 12795 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12796 # A "../" for each directory in $ac_dir_suffix. 12797 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12798else 12799 ac_dir_suffix= ac_top_builddir= 12800fi 12801 12802case $srcdir in 12803 .) # No --srcdir option. We are building in place. 12804 ac_srcdir=. 12805 if test -z "$ac_top_builddir"; then 12806 ac_top_srcdir=. 12807 else 12808 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12809 fi ;; 12810 [\\/]* | ?:[\\/]* ) # Absolute path. 12811 ac_srcdir=$srcdir$ac_dir_suffix; 12812 ac_top_srcdir=$srcdir ;; 12813 *) # Relative path. 12814 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12815 ac_top_srcdir=$ac_top_builddir$srcdir ;; 12816esac 12817# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 12818# absolute. 12819ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 12820ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 12821ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 12822ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 12823 12824 12825 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 12826echo "$as_me: executing $ac_dest commands" >&6;} 12827 case $ac_dest in 12828 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 12829 # Strip MF so we end up with the name of the file. 12830 mf=`echo "$mf" | sed -e 's/:.*$//'` 12831 # Check whether this is an Automake generated Makefile or not. 12832 # We used to match only the files named `Makefile.in', but 12833 # some people rename them; so instead we look at the file content. 12834 # Grep'ing the first line is not enough: some people post-process 12835 # each Makefile.in and add a new line on top of each file to say so. 12836 # So let's grep whole file. 12837 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 12838 dirpart=`(dirname "$mf") 2>/dev/null || 12839$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12840 X"$mf" : 'X\(//\)[^/]' \| \ 12841 X"$mf" : 'X\(//\)$' \| \ 12842 X"$mf" : 'X\(/\)' \| \ 12843 . : '\(.\)' 2>/dev/null || 12844echo X"$mf" | 12845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12846 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12847 /^X\(\/\/\)$/{ s//\1/; q; } 12848 /^X\(\/\).*/{ s//\1/; q; } 12849 s/.*/./; q'` 12850 else 12851 continue 12852 fi 12853 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 12854 # Extract the definition of DEP_FILES from the Makefile without 12855 # running `make'. 12856 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 12857 test -z "$DEPDIR" && continue 12858 # When using ansi2knr, U may be empty or an underscore; expand it 12859 U=`sed -n -e '/^U = / s///p' < "$mf"` 12860 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 12861 # We invoke sed twice because it is the simplest approach to 12862 # changing $(DEPDIR) to its actual value in the expansion. 12863 for file in `sed -n -e ' 12864 /^DEP_FILES = .*\\\\$/ { 12865 s/^DEP_FILES = // 12866 :loop 12867 s/\\\\$// 12868 p 12869 n 12870 /\\\\$/ b loop 12871 p 12872 } 12873 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 12874 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 12875 # Make sure the directory exists. 12876 test -f "$dirpart/$file" && continue 12877 fdir=`(dirname "$file") 2>/dev/null || 12878$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12879 X"$file" : 'X\(//\)[^/]' \| \ 12880 X"$file" : 'X\(//\)$' \| \ 12881 X"$file" : 'X\(/\)' \| \ 12882 . : '\(.\)' 2>/dev/null || 12883echo X"$file" | 12884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12885 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12886 /^X\(\/\/\)$/{ s//\1/; q; } 12887 /^X\(\/\).*/{ s//\1/; q; } 12888 s/.*/./; q'` 12889 { if $as_mkdir_p; then 12890 mkdir -p $dirpart/$fdir 12891 else 12892 as_dir=$dirpart/$fdir 12893 as_dirs= 12894 while test ! -d "$as_dir"; do 12895 as_dirs="$as_dir $as_dirs" 12896 as_dir=`(dirname "$as_dir") 2>/dev/null || 12897$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12898 X"$as_dir" : 'X\(//\)[^/]' \| \ 12899 X"$as_dir" : 'X\(//\)$' \| \ 12900 X"$as_dir" : 'X\(/\)' \| \ 12901 . : '\(.\)' 2>/dev/null || 12902echo X"$as_dir" | 12903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12904 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12905 /^X\(\/\/\)$/{ s//\1/; q; } 12906 /^X\(\/\).*/{ s//\1/; q; } 12907 s/.*/./; q'` 12908 done 12909 test ! -n "$as_dirs" || mkdir $as_dirs 12910 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 12911echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 12912 { (exit 1); exit 1; }; }; } 12913 12914 # echo "creating $dirpart/$file" 12915 echo '# dummy' > "$dirpart/$file" 12916 done 12917done 12918 ;; 12919 esac 12920done 12921_ACEOF 12922 12923cat >>$CONFIG_STATUS <<\_ACEOF 12924 12925{ (exit 0); exit 0; } 12926_ACEOF 12927chmod +x $CONFIG_STATUS 12928ac_clean_files=$ac_clean_files_save 12929 12930 12931# configure is writing to config.log, and then calls config.status. 12932# config.status does its own redirection, appending to config.log. 12933# Unfortunately, on DOS this fails, as config.log is still kept open 12934# by configure, so config.status won't be able to write to it; its 12935# output is simply discarded. So we exec the FD to /dev/null, 12936# effectively closing config.log, so it can be properly (re)opened and 12937# appended to by config.status. When coming back to configure, we 12938# need to make the FD available again. 12939if test "$no_create" != yes; then 12940 ac_cs_success=: 12941 exec 5>/dev/null 12942 $SHELL $CONFIG_STATUS || ac_cs_success=false 12943 exec 5>>config.log 12944 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12945 # would make configure fail if this is the last instruction. 12946 $ac_cs_success || { (exit 1); exit 1; } 12947fi 12948 12949# 12950# CONFIG_SUBDIRS section. 12951# 12952if test "$no_recursion" != yes; then 12953 12954 # Remove --cache-file and --srcdir arguments so they do not pile up. 12955 ac_sub_configure_args= 12956 ac_prev= 12957 for ac_arg in $ac_configure_args; do 12958 if test -n "$ac_prev"; then 12959 ac_prev= 12960 continue 12961 fi 12962 case $ac_arg in 12963 -cache-file | --cache-file | --cache-fil | --cache-fi \ 12964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 12965 ac_prev=cache_file ;; 12966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 12967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 12968 | --c=*) 12969 ;; 12970 --config-cache | -C) 12971 ;; 12972 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 12973 ac_prev=srcdir ;; 12974 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 12975 ;; 12976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 12977 ac_prev=prefix ;; 12978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 12979 ;; 12980 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 12981 esac 12982 done 12983 12984 # Always prepend --prefix to ensure using the same prefix 12985 # in subdir configurations. 12986 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" 12987 12988 ac_popdir=`pwd` 12989 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 12990 12991 # Do not complain, so a configure script can configure whichever 12992 # parts of a large source tree are present. 12993 test -d $srcdir/$ac_dir || continue 12994 12995 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 12996echo "$as_me: configuring in $ac_dir" >&6;} 12997 { if $as_mkdir_p; then 12998 mkdir -p "$ac_dir" 12999 else 13000 as_dir="$ac_dir" 13001 as_dirs= 13002 while test ! -d "$as_dir"; do 13003 as_dirs="$as_dir $as_dirs" 13004 as_dir=`(dirname "$as_dir") 2>/dev/null || 13005$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13006 X"$as_dir" : 'X\(//\)[^/]' \| \ 13007 X"$as_dir" : 'X\(//\)$' \| \ 13008 X"$as_dir" : 'X\(/\)' \| \ 13009 . : '\(.\)' 2>/dev/null || 13010echo X"$as_dir" | 13011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13012 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13013 /^X\(\/\/\)$/{ s//\1/; q; } 13014 /^X\(\/\).*/{ s//\1/; q; } 13015 s/.*/./; q'` 13016 done 13017 test ! -n "$as_dirs" || mkdir $as_dirs 13018 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 13019echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 13020 { (exit 1); exit 1; }; }; } 13021 13022 ac_builddir=. 13023 13024if test "$ac_dir" != .; then 13025 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 13026 # A "../" for each directory in $ac_dir_suffix. 13027 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 13028else 13029 ac_dir_suffix= ac_top_builddir= 13030fi 13031 13032case $srcdir in 13033 .) # No --srcdir option. We are building in place. 13034 ac_srcdir=. 13035 if test -z "$ac_top_builddir"; then 13036 ac_top_srcdir=. 13037 else 13038 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 13039 fi ;; 13040 [\\/]* | ?:[\\/]* ) # Absolute path. 13041 ac_srcdir=$srcdir$ac_dir_suffix; 13042 ac_top_srcdir=$srcdir ;; 13043 *) # Relative path. 13044 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 13045 ac_top_srcdir=$ac_top_builddir$srcdir ;; 13046esac 13047# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 13048# absolute. 13049ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 13050ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 13051ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 13052ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 13053 13054 13055 cd $ac_dir 13056 13057 # Check for guested configure; otherwise get Cygnus style configure. 13058 if test -f $ac_srcdir/configure.gnu; then 13059 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" 13060 elif test -f $ac_srcdir/configure; then 13061 ac_sub_configure="$SHELL '$ac_srcdir/configure'" 13062 elif test -f $ac_srcdir/configure.in; then 13063 ac_sub_configure=$ac_configure 13064 else 13065 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 13066echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 13067 ac_sub_configure= 13068 fi 13069 13070 # The recursion is here. 13071 if test -n "$ac_sub_configure"; then 13072 # Make the cache file name correct relative to the subdirectory. 13073 case $cache_file in 13074 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 13075 *) # Relative path. 13076 ac_sub_cache_file=$ac_top_builddir$cache_file ;; 13077 esac 13078 13079 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 13080echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 13081 # The eval makes quoting arguments work. 13082 eval $ac_sub_configure $ac_sub_configure_args \ 13083 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || 13084 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 13085echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 13086 { (exit 1); exit 1; }; } 13087 fi 13088 13089 cd $ac_popdir 13090 done 13091fi 13092 13093