1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for StarDict 3.0.6. 4# 5# Report bugs to <http://www.stardict.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: http://www.stardict.org about your system, including 279$0: any error possibly output before this message. Then 280$0: install a modern shell, or manually run the script 281$0: under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='StarDict' 592PACKAGE_TARNAME='stardict' 593PACKAGE_VERSION='3.0.6' 594PACKAGE_STRING='StarDict 3.0.6' 595PACKAGE_BUGREPORT='http://www.stardict.org' 596PACKAGE_URL='' 597 598ac_unique_file="src/stardict.cpp" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_header_list= 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640COMMONLIB_LIBRARY 641COMMONLIB_INCLUDE_DIR 642X_EXTRA_LIBS 643X_LIBS 644X_PRE_LIBS 645X_CFLAGS 646XMKMF 647SCROLLKEEPER 648USE_SYSTEM_SIGCPP_FALSE 649USE_SYSTEM_SIGCPP_TRUE 650SIGCPP_LIBS 651SIGCPP_CFLAGS 652BONOBO_ACTIVATION_IDL 653LIBBONOBO_IDL 654ORBIT_IDL 655GCONF_SCHEMA_FILE_DIR 656GCONF_SCHEMA_CONFIG_SOURCE 657GCONF_SCHEMAS_INSTALL_FALSE 658GCONF_SCHEMAS_INSTALL_TRUE 659STARDICT_LIBS 660STARDICT_CFLAGS 661DARWIN_SUPPORT_FALSE 662DARWIN_SUPPORT_TRUE 663MAEMO_SUPPORT_FALSE 664MAEMO_SUPPORT_TRUE 665GPE_SUPPORT_FALSE 666GPE_SUPPORT_TRUE 667GNOME_SUPPORT_FALSE 668GNOME_SUPPORT_TRUE 669WIKI_PARSEDATA_PLUGIN_DIR 670POWERWORD_PARSEDATA_PLUGIN_DIR 671WORDNET_PLUGIN_DIR 672XDXF_PARSEDATA_PLUGIN_DIR 673HTML_PARSEDATA_PLUGIN_DIR 674UPDATE_INFO_PLUGIN_DIR 675QQWRY_PLUGIN_DIR 676MAN_PLUGIN_DIR 677ADVERTISEMENT_PLUGIN_DIR 678DICTDOTCN_PLUGIN_DIR 679ESPEAK_PLUGIN_DIR 680ESPEAK_LIBS 681ESPEAK_CFLAGS 682FESTIVAL_PLUGIN_DIR 683FESTIVAL_LIBS 684FESTIVAL_CFLAGS 685GUCHARMAP_PLUGIN_DIR 686GUCHARMAP_LIBS 687GUCHARMAP_CFLAGS 688SPELL_PLUGIN_DIR 689ENCHANT_LIBS 690ENCHANT_CFLAGS 691MKINSTALLDIRS 692POSUB 693POFILES 694PO_IN_DATADIR_FALSE 695PO_IN_DATADIR_TRUE 696INTLLIBS 697INSTOBJEXT 698GMOFILES 699CATOBJEXT 700CATALOGS 701MSGFMT_OPTS 702GETTEXT_PACKAGE 703CXXCPP 704am__fastdepCXX_FALSE 705am__fastdepCXX_TRUE 706CXXDEPMODE 707ac_ct_CXX 708CXXFLAGS 709CXX 710HAVE_GNOME_DOC_UTILS_FALSE 711HAVE_GNOME_DOC_UTILS_TRUE 712DISTCHECK_CONFIGURE_FLAGS 713ENABLE_SK_FALSE 714ENABLE_SK_TRUE 715DOC_USER_FORMATS 716OMF_DIR 717HELP_DIR 718CPP 719OTOOL64 720OTOOL 721LIPO 722NMEDIT 723DSYMUTIL 724MANIFEST_TOOL 725RANLIB 726ac_ct_AR 727AR 728DLLTOOL 729OBJDUMP 730LN_S 731NM 732ac_ct_DUMPBIN 733DUMPBIN 734LD 735FGREP 736EGREP 737GREP 738SED 739host_os 740host_vendor 741host_cpu 742host 743build_os 744build_vendor 745build_cpu 746build 747LIBTOOL 748PKG_CONFIG_LIBDIR 749PKG_CONFIG_PATH 750PKG_CONFIG 751DATADIRNAME 752am__fastdepCC_FALSE 753am__fastdepCC_TRUE 754CCDEPMODE 755am__nodep 756AMDEPBACKSLASH 757AMDEP_FALSE 758AMDEP_TRUE 759am__quote 760am__include 761DEPDIR 762OBJEXT 763EXEEXT 764ac_ct_CC 765CPPFLAGS 766LDFLAGS 767CFLAGS 768CC 769ALL_LINGUAS 770INTLTOOL_PERL 771GMSGFMT 772MSGFMT 773MSGMERGE 774XGETTEXT 775INTLTOOL_POLICY_RULE 776INTLTOOL_SERVICE_RULE 777INTLTOOL_THEME_RULE 778INTLTOOL_SCHEMAS_RULE 779INTLTOOL_CAVES_RULE 780INTLTOOL_XML_NOMERGE_RULE 781INTLTOOL_XML_RULE 782INTLTOOL_KBD_RULE 783INTLTOOL_XAM_RULE 784INTLTOOL_UI_RULE 785INTLTOOL_SOUNDLIST_RULE 786INTLTOOL_SHEET_RULE 787INTLTOOL_SERVER_RULE 788INTLTOOL_PONG_RULE 789INTLTOOL_OAF_RULE 790INTLTOOL_PROP_RULE 791INTLTOOL_KEYS_RULE 792INTLTOOL_DIRECTORY_RULE 793INTLTOOL_DESKTOP_RULE 794intltool__v_merge_options_0 795intltool__v_merge_options_ 796INTLTOOL_V_MERGE_OPTIONS 797INTLTOOL__v_MERGE_0 798INTLTOOL__v_MERGE_ 799INTLTOOL_V_MERGE 800INTLTOOL_EXTRACT 801INTLTOOL_MERGE 802INTLTOOL_UPDATE 803USE_NLS 804GCONFTOOL 805AM_BACKSLASH 806AM_DEFAULT_VERBOSITY 807AM_DEFAULT_V 808AM_V 809am__untar 810am__tar 811AMTAR 812am__leading_dot 813SET_MAKE 814AWK 815mkdir_p 816MKDIR_P 817INSTALL_STRIP_PROGRAM 818STRIP 819install_sh 820MAKEINFO 821AUTOHEADER 822AUTOMAKE 823AUTOCONF 824ACLOCAL 825VERSION 826PACKAGE 827CYGPATH_W 828am__isrc 829INSTALL_DATA 830INSTALL_SCRIPT 831INSTALL_PROGRAM 832target_alias 833host_alias 834build_alias 835LIBS 836ECHO_T 837ECHO_N 838ECHO_C 839DEFS 840mandir 841localedir 842libdir 843psdir 844pdfdir 845dvidir 846htmldir 847infodir 848docdir 849oldincludedir 850includedir 851localstatedir 852sharedstatedir 853sysconfdir 854datadir 855datarootdir 856libexecdir 857sbindir 858bindir 859program_transform_name 860prefix 861exec_prefix 862PACKAGE_URL 863PACKAGE_BUGREPORT 864PACKAGE_STRING 865PACKAGE_VERSION 866PACKAGE_TARNAME 867PACKAGE_NAME 868PATH_SEPARATOR 869SHELL' 870ac_subst_files='' 871ac_user_opts=' 872enable_option_checking 873enable_silent_rules 874enable_static 875enable_nls 876enable_dependency_tracking 877enable_shared 878with_pic 879enable_fast_install 880with_gnu_ld 881with_sysroot 882enable_libtool_lock 883with_help_dir 884with_omf_dir 885with_help_formats 886enable_scrollkeeper 887enable_spell 888enable_gucharmap 889enable_festival 890enable_espeak 891enable_dictdotcn 892enable_advertisement 893enable_man 894enable_qqwry 895enable_updateinfo 896enable_htmlparse 897enable_xdxfparse 898enable_wordnet 899enable_powerwordparse 900enable_wikiparse 901enable_gnome_support 902enable_gpe_support 903enable_maemo_support 904enable_darwin_support 905with_gconf_source 906with_gconf_schema_file_dir 907enable_schemas_install 908enable_deprecations 909with_x 910' 911 ac_precious_vars='build_alias 912host_alias 913target_alias 914CC 915CFLAGS 916LDFLAGS 917LIBS 918CPPFLAGS 919PKG_CONFIG 920PKG_CONFIG_PATH 921PKG_CONFIG_LIBDIR 922CPP 923CXX 924CXXFLAGS 925CCC 926CXXCPP 927ENCHANT_CFLAGS 928ENCHANT_LIBS 929GUCHARMAP_CFLAGS 930GUCHARMAP_LIBS 931STARDICT_CFLAGS 932STARDICT_LIBS 933SIGCPP_CFLAGS 934SIGCPP_LIBS 935XMKMF' 936 937 938# Initialize some variables set by options. 939ac_init_help= 940ac_init_version=false 941ac_unrecognized_opts= 942ac_unrecognized_sep= 943# The variables have the same names as the options, with 944# dashes changed to underlines. 945cache_file=/dev/null 946exec_prefix=NONE 947no_create= 948no_recursion= 949prefix=NONE 950program_prefix=NONE 951program_suffix=NONE 952program_transform_name=s,x,x, 953silent= 954site= 955srcdir= 956verbose= 957x_includes=NONE 958x_libraries=NONE 959 960# Installation directory options. 961# These are left unexpanded so users can "make install exec_prefix=/foo" 962# and all the variables that are supposed to be based on exec_prefix 963# by default will actually change. 964# Use braces instead of parens because sh, perl, etc. also accept them. 965# (The list follows the same order as the GNU Coding Standards.) 966bindir='${exec_prefix}/bin' 967sbindir='${exec_prefix}/sbin' 968libexecdir='${exec_prefix}/libexec' 969datarootdir='${prefix}/share' 970datadir='${datarootdir}' 971sysconfdir='${prefix}/etc' 972sharedstatedir='${prefix}/com' 973localstatedir='${prefix}/var' 974includedir='${prefix}/include' 975oldincludedir='/usr/include' 976docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 977infodir='${datarootdir}/info' 978htmldir='${docdir}' 979dvidir='${docdir}' 980pdfdir='${docdir}' 981psdir='${docdir}' 982libdir='${exec_prefix}/lib' 983localedir='${datarootdir}/locale' 984mandir='${datarootdir}/man' 985 986ac_prev= 987ac_dashdash= 988for ac_option 989do 990 # If the previous option needs an argument, assign it. 991 if test -n "$ac_prev"; then 992 eval $ac_prev=\$ac_option 993 ac_prev= 994 continue 995 fi 996 997 case $ac_option in 998 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 999 *=) ac_optarg= ;; 1000 *) ac_optarg=yes ;; 1001 esac 1002 1003 # Accept the important Cygnus configure options, so we can diagnose typos. 1004 1005 case $ac_dashdash$ac_option in 1006 --) 1007 ac_dashdash=yes ;; 1008 1009 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1010 ac_prev=bindir ;; 1011 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1012 bindir=$ac_optarg ;; 1013 1014 -build | --build | --buil | --bui | --bu) 1015 ac_prev=build_alias ;; 1016 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1017 build_alias=$ac_optarg ;; 1018 1019 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1020 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1021 ac_prev=cache_file ;; 1022 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1023 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1024 cache_file=$ac_optarg ;; 1025 1026 --config-cache | -C) 1027 cache_file=config.cache ;; 1028 1029 -datadir | --datadir | --datadi | --datad) 1030 ac_prev=datadir ;; 1031 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1032 datadir=$ac_optarg ;; 1033 1034 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1035 | --dataroo | --dataro | --datar) 1036 ac_prev=datarootdir ;; 1037 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1038 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1039 datarootdir=$ac_optarg ;; 1040 1041 -disable-* | --disable-*) 1042 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1043 # Reject names that are not valid shell variable names. 1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1045 as_fn_error $? "invalid feature name: $ac_useropt" 1046 ac_useropt_orig=$ac_useropt 1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1048 case $ac_user_opts in 1049 *" 1050"enable_$ac_useropt" 1051"*) ;; 1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1053 ac_unrecognized_sep=', ';; 1054 esac 1055 eval enable_$ac_useropt=no ;; 1056 1057 -docdir | --docdir | --docdi | --doc | --do) 1058 ac_prev=docdir ;; 1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1060 docdir=$ac_optarg ;; 1061 1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1063 ac_prev=dvidir ;; 1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1065 dvidir=$ac_optarg ;; 1066 1067 -enable-* | --enable-*) 1068 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1069 # Reject names that are not valid shell variable names. 1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1071 as_fn_error $? "invalid feature name: $ac_useropt" 1072 ac_useropt_orig=$ac_useropt 1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1074 case $ac_user_opts in 1075 *" 1076"enable_$ac_useropt" 1077"*) ;; 1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1079 ac_unrecognized_sep=', ';; 1080 esac 1081 eval enable_$ac_useropt=\$ac_optarg ;; 1082 1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1085 | --exec | --exe | --ex) 1086 ac_prev=exec_prefix ;; 1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1089 | --exec=* | --exe=* | --ex=*) 1090 exec_prefix=$ac_optarg ;; 1091 1092 -gas | --gas | --ga | --g) 1093 # Obsolete; use --with-gas. 1094 with_gas=yes ;; 1095 1096 -help | --help | --hel | --he | -h) 1097 ac_init_help=long ;; 1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1099 ac_init_help=recursive ;; 1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1101 ac_init_help=short ;; 1102 1103 -host | --host | --hos | --ho) 1104 ac_prev=host_alias ;; 1105 -host=* | --host=* | --hos=* | --ho=*) 1106 host_alias=$ac_optarg ;; 1107 1108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1109 ac_prev=htmldir ;; 1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1111 | --ht=*) 1112 htmldir=$ac_optarg ;; 1113 1114 -includedir | --includedir | --includedi | --included | --include \ 1115 | --includ | --inclu | --incl | --inc) 1116 ac_prev=includedir ;; 1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1118 | --includ=* | --inclu=* | --incl=* | --inc=*) 1119 includedir=$ac_optarg ;; 1120 1121 -infodir | --infodir | --infodi | --infod | --info | --inf) 1122 ac_prev=infodir ;; 1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1124 infodir=$ac_optarg ;; 1125 1126 -libdir | --libdir | --libdi | --libd) 1127 ac_prev=libdir ;; 1128 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1129 libdir=$ac_optarg ;; 1130 1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1132 | --libexe | --libex | --libe) 1133 ac_prev=libexecdir ;; 1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1135 | --libexe=* | --libex=* | --libe=*) 1136 libexecdir=$ac_optarg ;; 1137 1138 -localedir | --localedir | --localedi | --localed | --locale) 1139 ac_prev=localedir ;; 1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1141 localedir=$ac_optarg ;; 1142 1143 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1144 | --localstate | --localstat | --localsta | --localst | --locals) 1145 ac_prev=localstatedir ;; 1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1148 localstatedir=$ac_optarg ;; 1149 1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1151 ac_prev=mandir ;; 1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1153 mandir=$ac_optarg ;; 1154 1155 -nfp | --nfp | --nf) 1156 # Obsolete; use --without-fp. 1157 with_fp=no ;; 1158 1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1160 | --no-cr | --no-c | -n) 1161 no_create=yes ;; 1162 1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1165 no_recursion=yes ;; 1166 1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1169 | --oldin | --oldi | --old | --ol | --o) 1170 ac_prev=oldincludedir ;; 1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1174 oldincludedir=$ac_optarg ;; 1175 1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1177 ac_prev=prefix ;; 1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1179 prefix=$ac_optarg ;; 1180 1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1182 | --program-pre | --program-pr | --program-p) 1183 ac_prev=program_prefix ;; 1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1186 program_prefix=$ac_optarg ;; 1187 1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1189 | --program-suf | --program-su | --program-s) 1190 ac_prev=program_suffix ;; 1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1193 program_suffix=$ac_optarg ;; 1194 1195 -program-transform-name | --program-transform-name \ 1196 | --program-transform-nam | --program-transform-na \ 1197 | --program-transform-n | --program-transform- \ 1198 | --program-transform | --program-transfor \ 1199 | --program-transfo | --program-transf \ 1200 | --program-trans | --program-tran \ 1201 | --progr-tra | --program-tr | --program-t) 1202 ac_prev=program_transform_name ;; 1203 -program-transform-name=* | --program-transform-name=* \ 1204 | --program-transform-nam=* | --program-transform-na=* \ 1205 | --program-transform-n=* | --program-transform-=* \ 1206 | --program-transform=* | --program-transfor=* \ 1207 | --program-transfo=* | --program-transf=* \ 1208 | --program-trans=* | --program-tran=* \ 1209 | --progr-tra=* | --program-tr=* | --program-t=*) 1210 program_transform_name=$ac_optarg ;; 1211 1212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1213 ac_prev=pdfdir ;; 1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1215 pdfdir=$ac_optarg ;; 1216 1217 -psdir | --psdir | --psdi | --psd | --ps) 1218 ac_prev=psdir ;; 1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1220 psdir=$ac_optarg ;; 1221 1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1223 | -silent | --silent | --silen | --sile | --sil) 1224 silent=yes ;; 1225 1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1227 ac_prev=sbindir ;; 1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1229 | --sbi=* | --sb=*) 1230 sbindir=$ac_optarg ;; 1231 1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1234 | --sharedst | --shareds | --shared | --share | --shar \ 1235 | --sha | --sh) 1236 ac_prev=sharedstatedir ;; 1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1240 | --sha=* | --sh=*) 1241 sharedstatedir=$ac_optarg ;; 1242 1243 -site | --site | --sit) 1244 ac_prev=site ;; 1245 -site=* | --site=* | --sit=*) 1246 site=$ac_optarg ;; 1247 1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1249 ac_prev=srcdir ;; 1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1251 srcdir=$ac_optarg ;; 1252 1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1254 | --syscon | --sysco | --sysc | --sys | --sy) 1255 ac_prev=sysconfdir ;; 1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1258 sysconfdir=$ac_optarg ;; 1259 1260 -target | --target | --targe | --targ | --tar | --ta | --t) 1261 ac_prev=target_alias ;; 1262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1263 target_alias=$ac_optarg ;; 1264 1265 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1266 verbose=yes ;; 1267 1268 -version | --version | --versio | --versi | --vers | -V) 1269 ac_init_version=: ;; 1270 1271 -with-* | --with-*) 1272 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1273 # Reject names that are not valid shell variable names. 1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1275 as_fn_error $? "invalid package name: $ac_useropt" 1276 ac_useropt_orig=$ac_useropt 1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1278 case $ac_user_opts in 1279 *" 1280"with_$ac_useropt" 1281"*) ;; 1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1283 ac_unrecognized_sep=', ';; 1284 esac 1285 eval with_$ac_useropt=\$ac_optarg ;; 1286 1287 -without-* | --without-*) 1288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1289 # Reject names that are not valid shell variable names. 1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1291 as_fn_error $? "invalid package name: $ac_useropt" 1292 ac_useropt_orig=$ac_useropt 1293 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1294 case $ac_user_opts in 1295 *" 1296"with_$ac_useropt" 1297"*) ;; 1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1299 ac_unrecognized_sep=', ';; 1300 esac 1301 eval with_$ac_useropt=no ;; 1302 1303 --x) 1304 # Obsolete; use --with-x. 1305 with_x=yes ;; 1306 1307 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1308 | --x-incl | --x-inc | --x-in | --x-i) 1309 ac_prev=x_includes ;; 1310 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1311 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1312 x_includes=$ac_optarg ;; 1313 1314 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1315 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1316 ac_prev=x_libraries ;; 1317 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1318 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1319 x_libraries=$ac_optarg ;; 1320 1321 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1322Try \`$0 --help' for more information" 1323 ;; 1324 1325 *=*) 1326 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1327 # Reject names that are not valid shell variable names. 1328 case $ac_envvar in #( 1329 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1330 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1331 esac 1332 eval $ac_envvar=\$ac_optarg 1333 export $ac_envvar ;; 1334 1335 *) 1336 # FIXME: should be removed in autoconf 3.0. 1337 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1338 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1339 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1340 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1341 ;; 1342 1343 esac 1344done 1345 1346if test -n "$ac_prev"; then 1347 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1348 as_fn_error $? "missing argument to $ac_option" 1349fi 1350 1351if test -n "$ac_unrecognized_opts"; then 1352 case $enable_option_checking in 1353 no) ;; 1354 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1355 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1356 esac 1357fi 1358 1359# Check all directory arguments for consistency. 1360for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1361 datadir sysconfdir sharedstatedir localstatedir includedir \ 1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1363 libdir localedir mandir 1364do 1365 eval ac_val=\$$ac_var 1366 # Remove trailing slashes. 1367 case $ac_val in 1368 */ ) 1369 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1370 eval $ac_var=\$ac_val;; 1371 esac 1372 # Be sure to have absolute directory names. 1373 case $ac_val in 1374 [\\/$]* | ?:[\\/]* ) continue;; 1375 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1376 esac 1377 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1378done 1379 1380# There might be people who depend on the old broken behavior: `$host' 1381# used to hold the argument of --host etc. 1382# FIXME: To remove some day. 1383build=$build_alias 1384host=$host_alias 1385target=$target_alias 1386 1387# FIXME: To remove some day. 1388if test "x$host_alias" != x; then 1389 if test "x$build_alias" = x; then 1390 cross_compiling=maybe 1391 elif test "x$build_alias" != "x$host_alias"; then 1392 cross_compiling=yes 1393 fi 1394fi 1395 1396ac_tool_prefix= 1397test -n "$host_alias" && ac_tool_prefix=$host_alias- 1398 1399test "$silent" = yes && exec 6>/dev/null 1400 1401 1402ac_pwd=`pwd` && test -n "$ac_pwd" && 1403ac_ls_di=`ls -di .` && 1404ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1405 as_fn_error $? "working directory cannot be determined" 1406test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1407 as_fn_error $? "pwd does not report name of working directory" 1408 1409 1410# Find the source files, if location was not specified. 1411if test -z "$srcdir"; then 1412 ac_srcdir_defaulted=yes 1413 # Try the directory containing this script, then the parent directory. 1414 ac_confdir=`$as_dirname -- "$as_myself" || 1415$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1416 X"$as_myself" : 'X\(//\)[^/]' \| \ 1417 X"$as_myself" : 'X\(//\)$' \| \ 1418 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1419$as_echo X"$as_myself" | 1420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1421 s//\1/ 1422 q 1423 } 1424 /^X\(\/\/\)[^/].*/{ 1425 s//\1/ 1426 q 1427 } 1428 /^X\(\/\/\)$/{ 1429 s//\1/ 1430 q 1431 } 1432 /^X\(\/\).*/{ 1433 s//\1/ 1434 q 1435 } 1436 s/.*/./; q'` 1437 srcdir=$ac_confdir 1438 if test ! -r "$srcdir/$ac_unique_file"; then 1439 srcdir=.. 1440 fi 1441else 1442 ac_srcdir_defaulted=no 1443fi 1444if test ! -r "$srcdir/$ac_unique_file"; then 1445 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1446 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1447fi 1448ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1449ac_abs_confdir=`( 1450 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1451 pwd)` 1452# When building in place, set srcdir=. 1453if test "$ac_abs_confdir" = "$ac_pwd"; then 1454 srcdir=. 1455fi 1456# Remove unnecessary trailing slashes from srcdir. 1457# Double slashes in file names in object file debugging info 1458# mess up M-x gdb in Emacs. 1459case $srcdir in 1460*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1461esac 1462for ac_var in $ac_precious_vars; do 1463 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1464 eval ac_env_${ac_var}_value=\$${ac_var} 1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1466 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1467done 1468 1469# 1470# Report the --help message. 1471# 1472if test "$ac_init_help" = "long"; then 1473 # Omit some internal or obsolete options to make the list less imposing. 1474 # This message is too long to be a string in the A/UX 3.1 sh. 1475 cat <<_ACEOF 1476\`configure' configures StarDict 3.0.6 to adapt to many kinds of systems. 1477 1478Usage: $0 [OPTION]... [VAR=VALUE]... 1479 1480To assign environment variables (e.g., CC, CFLAGS...), specify them as 1481VAR=VALUE. See below for descriptions of some of the useful variables. 1482 1483Defaults for the options are specified in brackets. 1484 1485Configuration: 1486 -h, --help display this help and exit 1487 --help=short display options specific to this package 1488 --help=recursive display the short help of all the included packages 1489 -V, --version display version information and exit 1490 -q, --quiet, --silent do not print \`checking ...' messages 1491 --cache-file=FILE cache test results in FILE [disabled] 1492 -C, --config-cache alias for \`--cache-file=config.cache' 1493 -n, --no-create do not create output files 1494 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1495 1496Installation directories: 1497 --prefix=PREFIX install architecture-independent files in PREFIX 1498 [$ac_default_prefix] 1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1500 [PREFIX] 1501 1502By default, \`make install' will install all the files in 1503\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1504an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1505for instance \`--prefix=\$HOME'. 1506 1507For better control, use the options below. 1508 1509Fine tuning of the installation directories: 1510 --bindir=DIR user executables [EPREFIX/bin] 1511 --sbindir=DIR system admin executables [EPREFIX/sbin] 1512 --libexecdir=DIR program executables [EPREFIX/libexec] 1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1516 --libdir=DIR object code libraries [EPREFIX/lib] 1517 --includedir=DIR C header files [PREFIX/include] 1518 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1521 --infodir=DIR info documentation [DATAROOTDIR/info] 1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1523 --mandir=DIR man documentation [DATAROOTDIR/man] 1524 --docdir=DIR documentation root [DATAROOTDIR/doc/stardict] 1525 --htmldir=DIR html documentation [DOCDIR] 1526 --dvidir=DIR dvi documentation [DOCDIR] 1527 --pdfdir=DIR pdf documentation [DOCDIR] 1528 --psdir=DIR ps documentation [DOCDIR] 1529_ACEOF 1530 1531 cat <<\_ACEOF 1532 1533Program names: 1534 --program-prefix=PREFIX prepend PREFIX to installed program names 1535 --program-suffix=SUFFIX append SUFFIX to installed program names 1536 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1537 1538X features: 1539 --x-includes=DIR X include files are in DIR 1540 --x-libraries=DIR X library files are in DIR 1541 1542System types: 1543 --build=BUILD configure for building on BUILD [guessed] 1544 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1545_ACEOF 1546fi 1547 1548if test -n "$ac_init_help"; then 1549 case $ac_init_help in 1550 short | recursive ) echo "Configuration of StarDict 3.0.6:";; 1551 esac 1552 cat <<\_ACEOF 1553 1554Optional Features: 1555 --disable-option-checking ignore unrecognized --enable/--with options 1556 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1557 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1558 --enable-silent-rules less verbose build output (undo: "make V=1") 1559 --disable-silent-rules verbose build output (undo: "make V=0") 1560 --enable-static[=PKGS] build static libraries [default=no] 1561 --disable-nls do not use Native Language Support 1562 --enable-dependency-tracking 1563 do not reject slow dependency extractors 1564 --disable-dependency-tracking 1565 speeds up one-time build 1566 --enable-shared[=PKGS] build shared libraries [default=yes] 1567 --enable-fast-install[=PKGS] 1568 optimize for fast installation [default=yes] 1569 --disable-libtool-lock avoid locking (might break parallel builds) 1570 --disable-scrollkeeper do not make updates to the scrollkeeper database 1571 --disable-spell Disable spell plugin (default: enabled) 1572 --disable-gucharmap Disable gucharmap plugin (default: enabled) 1573 --disable-festival Disable festival tts plugin (default: enabled) 1574 --disable-espeak Disable espeak tts plugin (default: enabled) 1575 --disable-dictdotcn Disable dictdotcn netdict plugin (default: enabled) 1576 --disable-advertisement Disable advertisement virtual dict plugin (default: 1577 enabled) 1578 --disable-man Disable man virtual dict plugin (default: enabled) 1579 --disable-qqwry Disable qqwry virtual dict plugin (default: enabled) 1580 --disable-updateinfo Disable update-info plugin (default: enabled) 1581 --disable-htmlparse Disable html parse plugin (default: enabled) 1582 --disable-xdxfparse Disable xdxf parse plugin (default: enabled) 1583 --disable-wordnet Disable wordnet plugin (default: enabled) 1584 --disable-powerwordparse 1585 Disable powerword parse plugin (default: enabled) 1586 --disable-wikiparse Disable wiki parse plugin (default: enabled) 1587 --disable-gnome-support Disable gnome support 1588 --enable-gpe-support Enable gpe support 1589 --enable-maemo-support Enable maemo support 1590 --enable-darwin-support Enable darwin support 1591 --disable-schemas-install 1592 Disable the schemas installation 1593 --disable-deprecations Disable deprecated gtk functions (default: enabled) 1594 1595Optional Packages: 1596 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1597 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1598 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1599 both] 1600 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1601 --with-sysroot=DIR Search for dependent libraries within DIR 1602 (or the compiler's sysroot if not specified). 1603 --with-help-dir=DIR path to help docs 1604 --with-omf-dir=DIR path to OMF files 1605 --with-help-formats=FORMATS 1606 list of formats 1607 --with-gconf-source=sourceaddress 1608 Config database for installing schema files. 1609 --with-gconf-schema-file-dir=dir 1610 Directory for installing schema files. 1611 --with-x use the X Window System 1612 1613Some influential environment variables: 1614 CC C compiler command 1615 CFLAGS C compiler flags 1616 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1617 nonstandard directory <lib dir> 1618 LIBS libraries to pass to the linker, e.g. -l<library> 1619 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1620 you have headers in a nonstandard directory <include dir> 1621 PKG_CONFIG path to pkg-config utility 1622 PKG_CONFIG_PATH 1623 directories to add to pkg-config's search path 1624 PKG_CONFIG_LIBDIR 1625 path overriding pkg-config's built-in search path 1626 CPP C preprocessor 1627 CXX C++ compiler command 1628 CXXFLAGS C++ compiler flags 1629 CXXCPP C++ preprocessor 1630 ENCHANT_CFLAGS 1631 C compiler flags for ENCHANT, overriding pkg-config 1632 ENCHANT_LIBS 1633 linker flags for ENCHANT, overriding pkg-config 1634 GUCHARMAP_CFLAGS 1635 C compiler flags for GUCHARMAP, overriding pkg-config 1636 GUCHARMAP_LIBS 1637 linker flags for GUCHARMAP, overriding pkg-config 1638 STARDICT_CFLAGS 1639 C compiler flags for STARDICT, overriding pkg-config 1640 STARDICT_LIBS 1641 linker flags for STARDICT, overriding pkg-config 1642 SIGCPP_CFLAGS 1643 C compiler flags for SIGCPP, overriding pkg-config 1644 SIGCPP_LIBS linker flags for SIGCPP, overriding pkg-config 1645 XMKMF Path to xmkmf, Makefile generator for X Window System 1646 1647Use these variables to override the choices made by `configure' or to help 1648it to find libraries and programs with nonstandard names/locations. 1649 1650Report bugs to <http://www.stardict.org>. 1651_ACEOF 1652ac_status=$? 1653fi 1654 1655if test "$ac_init_help" = "recursive"; then 1656 # If there are subdirs, report their specific --help. 1657 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1658 test -d "$ac_dir" || 1659 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1660 continue 1661 ac_builddir=. 1662 1663case "$ac_dir" in 1664.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1665*) 1666 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1667 # A ".." for each directory in $ac_dir_suffix. 1668 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1669 case $ac_top_builddir_sub in 1670 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1671 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1672 esac ;; 1673esac 1674ac_abs_top_builddir=$ac_pwd 1675ac_abs_builddir=$ac_pwd$ac_dir_suffix 1676# for backward compatibility: 1677ac_top_builddir=$ac_top_build_prefix 1678 1679case $srcdir in 1680 .) # We are building in place. 1681 ac_srcdir=. 1682 ac_top_srcdir=$ac_top_builddir_sub 1683 ac_abs_top_srcdir=$ac_pwd ;; 1684 [\\/]* | ?:[\\/]* ) # Absolute name. 1685 ac_srcdir=$srcdir$ac_dir_suffix; 1686 ac_top_srcdir=$srcdir 1687 ac_abs_top_srcdir=$srcdir ;; 1688 *) # Relative name. 1689 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1690 ac_top_srcdir=$ac_top_build_prefix$srcdir 1691 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1692esac 1693ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1694 1695 cd "$ac_dir" || { ac_status=$?; continue; } 1696 # Check for guested configure. 1697 if test -f "$ac_srcdir/configure.gnu"; then 1698 echo && 1699 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1700 elif test -f "$ac_srcdir/configure"; then 1701 echo && 1702 $SHELL "$ac_srcdir/configure" --help=recursive 1703 else 1704 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1705 fi || ac_status=$? 1706 cd "$ac_pwd" || { ac_status=$?; break; } 1707 done 1708fi 1709 1710test -n "$ac_init_help" && exit $ac_status 1711if $ac_init_version; then 1712 cat <<\_ACEOF 1713StarDict configure 3.0.6 1714generated by GNU Autoconf 2.69 1715 1716Copyright (C) 2012 Free Software Foundation, Inc. 1717This configure script is free software; the Free Software Foundation 1718gives unlimited permission to copy, distribute and modify it. 1719_ACEOF 1720 exit 1721fi 1722 1723## ------------------------ ## 1724## Autoconf initialization. ## 1725## ------------------------ ## 1726 1727# ac_fn_c_try_compile LINENO 1728# -------------------------- 1729# Try to compile conftest.$ac_ext, and return whether this succeeded. 1730ac_fn_c_try_compile () 1731{ 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1733 rm -f conftest.$ac_objext 1734 if { { ac_try="$ac_compile" 1735case "(($ac_try" in 1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1737 *) ac_try_echo=$ac_try;; 1738esac 1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1740$as_echo "$ac_try_echo"; } >&5 1741 (eval "$ac_compile") 2>conftest.err 1742 ac_status=$? 1743 if test -s conftest.err; then 1744 grep -v '^ *+' conftest.err >conftest.er1 1745 cat conftest.er1 >&5 1746 mv -f conftest.er1 conftest.err 1747 fi 1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1749 test $ac_status = 0; } && { 1750 test -z "$ac_c_werror_flag" || 1751 test ! -s conftest.err 1752 } && test -s conftest.$ac_objext; then : 1753 ac_retval=0 1754else 1755 $as_echo "$as_me: failed program was:" >&5 1756sed 's/^/| /' conftest.$ac_ext >&5 1757 1758 ac_retval=1 1759fi 1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1761 as_fn_set_status $ac_retval 1762 1763} # ac_fn_c_try_compile 1764 1765# ac_fn_c_try_link LINENO 1766# ----------------------- 1767# Try to link conftest.$ac_ext, and return whether this succeeded. 1768ac_fn_c_try_link () 1769{ 1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1771 rm -f conftest.$ac_objext conftest$ac_exeext 1772 if { { ac_try="$ac_link" 1773case "(($ac_try" in 1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1775 *) ac_try_echo=$ac_try;; 1776esac 1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1778$as_echo "$ac_try_echo"; } >&5 1779 (eval "$ac_link") 2>conftest.err 1780 ac_status=$? 1781 if test -s conftest.err; then 1782 grep -v '^ *+' conftest.err >conftest.er1 1783 cat conftest.er1 >&5 1784 mv -f conftest.er1 conftest.err 1785 fi 1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1787 test $ac_status = 0; } && { 1788 test -z "$ac_c_werror_flag" || 1789 test ! -s conftest.err 1790 } && test -s conftest$ac_exeext && { 1791 test "$cross_compiling" = yes || 1792 test -x conftest$ac_exeext 1793 }; then : 1794 ac_retval=0 1795else 1796 $as_echo "$as_me: failed program was:" >&5 1797sed 's/^/| /' conftest.$ac_ext >&5 1798 1799 ac_retval=1 1800fi 1801 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1802 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1803 # interfere with the next link command; also delete a directory that is 1804 # left behind by Apple's compiler. We do this before executing the actions. 1805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1807 as_fn_set_status $ac_retval 1808 1809} # ac_fn_c_try_link 1810 1811# ac_fn_c_check_func LINENO FUNC VAR 1812# ---------------------------------- 1813# Tests whether FUNC exists, setting the cache variable VAR accordingly 1814ac_fn_c_check_func () 1815{ 1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1818$as_echo_n "checking for $2... " >&6; } 1819if eval \${$3+:} false; then : 1820 $as_echo_n "(cached) " >&6 1821else 1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1823/* end confdefs.h. */ 1824/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1825 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1826#define $2 innocuous_$2 1827 1828/* System header to define __stub macros and hopefully few prototypes, 1829 which can conflict with char $2 (); below. 1830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1831 <limits.h> exists even on freestanding compilers. */ 1832 1833#ifdef __STDC__ 1834# include <limits.h> 1835#else 1836# include <assert.h> 1837#endif 1838 1839#undef $2 1840 1841/* Override any GCC internal prototype to avoid an error. 1842 Use char because int might match the return type of a GCC 1843 builtin and then its argument prototype would still apply. */ 1844#ifdef __cplusplus 1845extern "C" 1846#endif 1847char $2 (); 1848/* The GNU C library defines this for functions which it implements 1849 to always fail with ENOSYS. Some functions are actually named 1850 something starting with __ and the normal name is an alias. */ 1851#if defined __stub_$2 || defined __stub___$2 1852choke me 1853#endif 1854 1855int 1856main () 1857{ 1858return $2 (); 1859 ; 1860 return 0; 1861} 1862_ACEOF 1863if ac_fn_c_try_link "$LINENO"; then : 1864 eval "$3=yes" 1865else 1866 eval "$3=no" 1867fi 1868rm -f core conftest.err conftest.$ac_objext \ 1869 conftest$ac_exeext conftest.$ac_ext 1870fi 1871eval ac_res=\$$3 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1873$as_echo "$ac_res" >&6; } 1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1875 1876} # ac_fn_c_check_func 1877 1878# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1879# ------------------------------------------------------- 1880# Tests whether HEADER exists and can be compiled using the include files in 1881# INCLUDES, setting the cache variable VAR accordingly. 1882ac_fn_c_check_header_compile () 1883{ 1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1886$as_echo_n "checking for $2... " >&6; } 1887if eval \${$3+:} false; then : 1888 $as_echo_n "(cached) " >&6 1889else 1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1891/* end confdefs.h. */ 1892$4 1893#include <$2> 1894_ACEOF 1895if ac_fn_c_try_compile "$LINENO"; then : 1896 eval "$3=yes" 1897else 1898 eval "$3=no" 1899fi 1900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1901fi 1902eval ac_res=\$$3 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1904$as_echo "$ac_res" >&6; } 1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1906 1907} # ac_fn_c_check_header_compile 1908 1909# ac_fn_c_try_cpp LINENO 1910# ---------------------- 1911# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1912ac_fn_c_try_cpp () 1913{ 1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1915 if { { ac_try="$ac_cpp conftest.$ac_ext" 1916case "(($ac_try" in 1917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1918 *) ac_try_echo=$ac_try;; 1919esac 1920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1921$as_echo "$ac_try_echo"; } >&5 1922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1923 ac_status=$? 1924 if test -s conftest.err; then 1925 grep -v '^ *+' conftest.err >conftest.er1 1926 cat conftest.er1 >&5 1927 mv -f conftest.er1 conftest.err 1928 fi 1929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1930 test $ac_status = 0; } > conftest.i && { 1931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1932 test ! -s conftest.err 1933 }; then : 1934 ac_retval=0 1935else 1936 $as_echo "$as_me: failed program was:" >&5 1937sed 's/^/| /' conftest.$ac_ext >&5 1938 1939 ac_retval=1 1940fi 1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1942 as_fn_set_status $ac_retval 1943 1944} # ac_fn_c_try_cpp 1945 1946# ac_fn_c_try_run LINENO 1947# ---------------------- 1948# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1949# that executables *can* be run. 1950ac_fn_c_try_run () 1951{ 1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1953 if { { ac_try="$ac_link" 1954case "(($ac_try" in 1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1956 *) ac_try_echo=$ac_try;; 1957esac 1958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1959$as_echo "$ac_try_echo"; } >&5 1960 (eval "$ac_link") 2>&5 1961 ac_status=$? 1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1963 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1964 { { case "(($ac_try" in 1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1966 *) ac_try_echo=$ac_try;; 1967esac 1968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1969$as_echo "$ac_try_echo"; } >&5 1970 (eval "$ac_try") 2>&5 1971 ac_status=$? 1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1973 test $ac_status = 0; }; }; then : 1974 ac_retval=0 1975else 1976 $as_echo "$as_me: program exited with status $ac_status" >&5 1977 $as_echo "$as_me: failed program was:" >&5 1978sed 's/^/| /' conftest.$ac_ext >&5 1979 1980 ac_retval=$ac_status 1981fi 1982 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1984 as_fn_set_status $ac_retval 1985 1986} # ac_fn_c_try_run 1987 1988# ac_fn_cxx_try_compile LINENO 1989# ---------------------------- 1990# Try to compile conftest.$ac_ext, and return whether this succeeded. 1991ac_fn_cxx_try_compile () 1992{ 1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1994 rm -f conftest.$ac_objext 1995 if { { ac_try="$ac_compile" 1996case "(($ac_try" in 1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1998 *) ac_try_echo=$ac_try;; 1999esac 2000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2001$as_echo "$ac_try_echo"; } >&5 2002 (eval "$ac_compile") 2>conftest.err 2003 ac_status=$? 2004 if test -s conftest.err; then 2005 grep -v '^ *+' conftest.err >conftest.er1 2006 cat conftest.er1 >&5 2007 mv -f conftest.er1 conftest.err 2008 fi 2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2010 test $ac_status = 0; } && { 2011 test -z "$ac_cxx_werror_flag" || 2012 test ! -s conftest.err 2013 } && test -s conftest.$ac_objext; then : 2014 ac_retval=0 2015else 2016 $as_echo "$as_me: failed program was:" >&5 2017sed 's/^/| /' conftest.$ac_ext >&5 2018 2019 ac_retval=1 2020fi 2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2022 as_fn_set_status $ac_retval 2023 2024} # ac_fn_cxx_try_compile 2025 2026# ac_fn_cxx_try_cpp LINENO 2027# ------------------------ 2028# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2029ac_fn_cxx_try_cpp () 2030{ 2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2032 if { { ac_try="$ac_cpp conftest.$ac_ext" 2033case "(($ac_try" in 2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2035 *) ac_try_echo=$ac_try;; 2036esac 2037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2038$as_echo "$ac_try_echo"; } >&5 2039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2040 ac_status=$? 2041 if test -s conftest.err; then 2042 grep -v '^ *+' conftest.err >conftest.er1 2043 cat conftest.er1 >&5 2044 mv -f conftest.er1 conftest.err 2045 fi 2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2047 test $ac_status = 0; } > conftest.i && { 2048 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2049 test ! -s conftest.err 2050 }; then : 2051 ac_retval=0 2052else 2053 $as_echo "$as_me: failed program was:" >&5 2054sed 's/^/| /' conftest.$ac_ext >&5 2055 2056 ac_retval=1 2057fi 2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2059 as_fn_set_status $ac_retval 2060 2061} # ac_fn_cxx_try_cpp 2062 2063# ac_fn_cxx_try_link LINENO 2064# ------------------------- 2065# Try to link conftest.$ac_ext, and return whether this succeeded. 2066ac_fn_cxx_try_link () 2067{ 2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2069 rm -f conftest.$ac_objext conftest$ac_exeext 2070 if { { ac_try="$ac_link" 2071case "(($ac_try" in 2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2073 *) ac_try_echo=$ac_try;; 2074esac 2075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2076$as_echo "$ac_try_echo"; } >&5 2077 (eval "$ac_link") 2>conftest.err 2078 ac_status=$? 2079 if test -s conftest.err; then 2080 grep -v '^ *+' conftest.err >conftest.er1 2081 cat conftest.er1 >&5 2082 mv -f conftest.er1 conftest.err 2083 fi 2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2085 test $ac_status = 0; } && { 2086 test -z "$ac_cxx_werror_flag" || 2087 test ! -s conftest.err 2088 } && test -s conftest$ac_exeext && { 2089 test "$cross_compiling" = yes || 2090 test -x conftest$ac_exeext 2091 }; then : 2092 ac_retval=0 2093else 2094 $as_echo "$as_me: failed program was:" >&5 2095sed 's/^/| /' conftest.$ac_ext >&5 2096 2097 ac_retval=1 2098fi 2099 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2100 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2101 # interfere with the next link command; also delete a directory that is 2102 # left behind by Apple's compiler. We do this before executing the actions. 2103 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2105 as_fn_set_status $ac_retval 2106 2107} # ac_fn_cxx_try_link 2108 2109# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2110# --------------------------------------------------------- 2111# Tests whether HEADER exists and can be compiled using the include files in 2112# INCLUDES, setting the cache variable VAR accordingly. 2113ac_fn_cxx_check_header_compile () 2114{ 2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2117$as_echo_n "checking for $2... " >&6; } 2118if eval \${$3+:} false; then : 2119 $as_echo_n "(cached) " >&6 2120else 2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2122/* end confdefs.h. */ 2123$4 2124#include <$2> 2125_ACEOF 2126if ac_fn_cxx_try_compile "$LINENO"; then : 2127 eval "$3=yes" 2128else 2129 eval "$3=no" 2130fi 2131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2132fi 2133eval ac_res=\$$3 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2135$as_echo "$ac_res" >&6; } 2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2137 2138} # ac_fn_cxx_check_header_compile 2139 2140# ac_fn_cxx_check_func LINENO FUNC VAR 2141# ------------------------------------ 2142# Tests whether FUNC exists, setting the cache variable VAR accordingly 2143ac_fn_cxx_check_func () 2144{ 2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2147$as_echo_n "checking for $2... " >&6; } 2148if eval \${$3+:} false; then : 2149 $as_echo_n "(cached) " >&6 2150else 2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2152/* end confdefs.h. */ 2153/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2154 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2155#define $2 innocuous_$2 2156 2157/* System header to define __stub macros and hopefully few prototypes, 2158 which can conflict with char $2 (); below. 2159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2160 <limits.h> exists even on freestanding compilers. */ 2161 2162#ifdef __STDC__ 2163# include <limits.h> 2164#else 2165# include <assert.h> 2166#endif 2167 2168#undef $2 2169 2170/* Override any GCC internal prototype to avoid an error. 2171 Use char because int might match the return type of a GCC 2172 builtin and then its argument prototype would still apply. */ 2173#ifdef __cplusplus 2174extern "C" 2175#endif 2176char $2 (); 2177/* The GNU C library defines this for functions which it implements 2178 to always fail with ENOSYS. Some functions are actually named 2179 something starting with __ and the normal name is an alias. */ 2180#if defined __stub_$2 || defined __stub___$2 2181choke me 2182#endif 2183 2184int 2185main () 2186{ 2187return $2 (); 2188 ; 2189 return 0; 2190} 2191_ACEOF 2192if ac_fn_cxx_try_link "$LINENO"; then : 2193 eval "$3=yes" 2194else 2195 eval "$3=no" 2196fi 2197rm -f core conftest.err conftest.$ac_objext \ 2198 conftest$ac_exeext conftest.$ac_ext 2199fi 2200eval ac_res=\$$3 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2202$as_echo "$ac_res" >&6; } 2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2204 2205} # ac_fn_cxx_check_func 2206 2207# ac_fn_cxx_try_run LINENO 2208# ------------------------ 2209# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2210# that executables *can* be run. 2211ac_fn_cxx_try_run () 2212{ 2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2214 if { { ac_try="$ac_link" 2215case "(($ac_try" in 2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2217 *) ac_try_echo=$ac_try;; 2218esac 2219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2220$as_echo "$ac_try_echo"; } >&5 2221 (eval "$ac_link") 2>&5 2222 ac_status=$? 2223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2224 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2225 { { case "(($ac_try" in 2226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2227 *) ac_try_echo=$ac_try;; 2228esac 2229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2230$as_echo "$ac_try_echo"; } >&5 2231 (eval "$ac_try") 2>&5 2232 ac_status=$? 2233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2234 test $ac_status = 0; }; }; then : 2235 ac_retval=0 2236else 2237 $as_echo "$as_me: program exited with status $ac_status" >&5 2238 $as_echo "$as_me: failed program was:" >&5 2239sed 's/^/| /' conftest.$ac_ext >&5 2240 2241 ac_retval=$ac_status 2242fi 2243 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2244 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2245 as_fn_set_status $ac_retval 2246 2247} # ac_fn_cxx_try_run 2248 2249# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2250# --------------------------------------------------------- 2251# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2252# the include files in INCLUDES and setting the cache variable VAR 2253# accordingly. 2254ac_fn_cxx_check_header_mongrel () 2255{ 2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2257 if eval \${$3+:} false; then : 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2259$as_echo_n "checking for $2... " >&6; } 2260if eval \${$3+:} false; then : 2261 $as_echo_n "(cached) " >&6 2262fi 2263eval ac_res=\$$3 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2265$as_echo "$ac_res" >&6; } 2266else 2267 # Is the header compilable? 2268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2269$as_echo_n "checking $2 usability... " >&6; } 2270cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2271/* end confdefs.h. */ 2272$4 2273#include <$2> 2274_ACEOF 2275if ac_fn_cxx_try_compile "$LINENO"; then : 2276 ac_header_compiler=yes 2277else 2278 ac_header_compiler=no 2279fi 2280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2282$as_echo "$ac_header_compiler" >&6; } 2283 2284# Is the header present? 2285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2286$as_echo_n "checking $2 presence... " >&6; } 2287cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2288/* end confdefs.h. */ 2289#include <$2> 2290_ACEOF 2291if ac_fn_cxx_try_cpp "$LINENO"; then : 2292 ac_header_preproc=yes 2293else 2294 ac_header_preproc=no 2295fi 2296rm -f conftest.err conftest.i conftest.$ac_ext 2297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2298$as_echo "$ac_header_preproc" >&6; } 2299 2300# So? What about this header? 2301case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2302 yes:no: ) 2303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2304$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2306$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2307 ;; 2308 no:yes:* ) 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2310$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2312$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2314$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2316$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2318$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2319( $as_echo "## -------------------------------------- ## 2320## Report this to http://www.stardict.org ## 2321## -------------------------------------- ##" 2322 ) | sed "s/^/$as_me: WARNING: /" >&2 2323 ;; 2324esac 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2326$as_echo_n "checking for $2... " >&6; } 2327if eval \${$3+:} false; then : 2328 $as_echo_n "(cached) " >&6 2329else 2330 eval "$3=\$ac_header_compiler" 2331fi 2332eval ac_res=\$$3 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2334$as_echo "$ac_res" >&6; } 2335fi 2336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2337 2338} # ac_fn_cxx_check_header_mongrel 2339cat >config.log <<_ACEOF 2340This file contains any messages produced by compilers while 2341running configure, to aid debugging if configure makes a mistake. 2342 2343It was created by StarDict $as_me 3.0.6, which was 2344generated by GNU Autoconf 2.69. Invocation command line was 2345 2346 $ $0 $@ 2347 2348_ACEOF 2349exec 5>>config.log 2350{ 2351cat <<_ASUNAME 2352## --------- ## 2353## Platform. ## 2354## --------- ## 2355 2356hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2357uname -m = `(uname -m) 2>/dev/null || echo unknown` 2358uname -r = `(uname -r) 2>/dev/null || echo unknown` 2359uname -s = `(uname -s) 2>/dev/null || echo unknown` 2360uname -v = `(uname -v) 2>/dev/null || echo unknown` 2361 2362/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2363/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2364 2365/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2366/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2367/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2368/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2369/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2370/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2371/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2372 2373_ASUNAME 2374 2375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2376for as_dir in $PATH 2377do 2378 IFS=$as_save_IFS 2379 test -z "$as_dir" && as_dir=. 2380 $as_echo "PATH: $as_dir" 2381 done 2382IFS=$as_save_IFS 2383 2384} >&5 2385 2386cat >&5 <<_ACEOF 2387 2388 2389## ----------- ## 2390## Core tests. ## 2391## ----------- ## 2392 2393_ACEOF 2394 2395 2396# Keep a trace of the command line. 2397# Strip out --no-create and --no-recursion so they do not pile up. 2398# Strip out --silent because we don't want to record it for future runs. 2399# Also quote any args containing shell meta-characters. 2400# Make two passes to allow for proper duplicate-argument suppression. 2401ac_configure_args= 2402ac_configure_args0= 2403ac_configure_args1= 2404ac_must_keep_next=false 2405for ac_pass in 1 2 2406do 2407 for ac_arg 2408 do 2409 case $ac_arg in 2410 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2412 | -silent | --silent | --silen | --sile | --sil) 2413 continue ;; 2414 *\'*) 2415 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2416 esac 2417 case $ac_pass in 2418 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2419 2) 2420 as_fn_append ac_configure_args1 " '$ac_arg'" 2421 if test $ac_must_keep_next = true; then 2422 ac_must_keep_next=false # Got value, back to normal. 2423 else 2424 case $ac_arg in 2425 *=* | --config-cache | -C | -disable-* | --disable-* \ 2426 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2427 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2428 | -with-* | --with-* | -without-* | --without-* | --x) 2429 case "$ac_configure_args0 " in 2430 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2431 esac 2432 ;; 2433 -* ) ac_must_keep_next=true ;; 2434 esac 2435 fi 2436 as_fn_append ac_configure_args " '$ac_arg'" 2437 ;; 2438 esac 2439 done 2440done 2441{ ac_configure_args0=; unset ac_configure_args0;} 2442{ ac_configure_args1=; unset ac_configure_args1;} 2443 2444# When interrupted or exit'd, cleanup temporary files, and complete 2445# config.log. We remove comments because anyway the quotes in there 2446# would cause problems or look ugly. 2447# WARNING: Use '\'' to represent an apostrophe within the trap. 2448# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2449trap 'exit_status=$? 2450 # Save into config.log some information that might help in debugging. 2451 { 2452 echo 2453 2454 $as_echo "## ---------------- ## 2455## Cache variables. ## 2456## ---------------- ##" 2457 echo 2458 # The following way of writing the cache mishandles newlines in values, 2459( 2460 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2461 eval ac_val=\$$ac_var 2462 case $ac_val in #( 2463 *${as_nl}*) 2464 case $ac_var in #( 2465 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2466$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2467 esac 2468 case $ac_var in #( 2469 _ | IFS | as_nl) ;; #( 2470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2471 *) { eval $ac_var=; unset $ac_var;} ;; 2472 esac ;; 2473 esac 2474 done 2475 (set) 2>&1 | 2476 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2477 *${as_nl}ac_space=\ *) 2478 sed -n \ 2479 "s/'\''/'\''\\\\'\'''\''/g; 2480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2481 ;; #( 2482 *) 2483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2484 ;; 2485 esac | 2486 sort 2487) 2488 echo 2489 2490 $as_echo "## ----------------- ## 2491## Output variables. ## 2492## ----------------- ##" 2493 echo 2494 for ac_var in $ac_subst_vars 2495 do 2496 eval ac_val=\$$ac_var 2497 case $ac_val in 2498 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2499 esac 2500 $as_echo "$ac_var='\''$ac_val'\''" 2501 done | sort 2502 echo 2503 2504 if test -n "$ac_subst_files"; then 2505 $as_echo "## ------------------- ## 2506## File substitutions. ## 2507## ------------------- ##" 2508 echo 2509 for ac_var in $ac_subst_files 2510 do 2511 eval ac_val=\$$ac_var 2512 case $ac_val in 2513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2514 esac 2515 $as_echo "$ac_var='\''$ac_val'\''" 2516 done | sort 2517 echo 2518 fi 2519 2520 if test -s confdefs.h; then 2521 $as_echo "## ----------- ## 2522## confdefs.h. ## 2523## ----------- ##" 2524 echo 2525 cat confdefs.h 2526 echo 2527 fi 2528 test "$ac_signal" != 0 && 2529 $as_echo "$as_me: caught signal $ac_signal" 2530 $as_echo "$as_me: exit $exit_status" 2531 } >&5 2532 rm -f core *.core core.conftest.* && 2533 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2534 exit $exit_status 2535' 0 2536for ac_signal in 1 2 13 15; do 2537 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2538done 2539ac_signal=0 2540 2541# confdefs.h avoids OS command line length limits that DEFS can exceed. 2542rm -f -r conftest* confdefs.h 2543 2544$as_echo "/* confdefs.h */" > confdefs.h 2545 2546# Predefined preprocessor variables. 2547 2548cat >>confdefs.h <<_ACEOF 2549#define PACKAGE_NAME "$PACKAGE_NAME" 2550_ACEOF 2551 2552cat >>confdefs.h <<_ACEOF 2553#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2554_ACEOF 2555 2556cat >>confdefs.h <<_ACEOF 2557#define PACKAGE_VERSION "$PACKAGE_VERSION" 2558_ACEOF 2559 2560cat >>confdefs.h <<_ACEOF 2561#define PACKAGE_STRING "$PACKAGE_STRING" 2562_ACEOF 2563 2564cat >>confdefs.h <<_ACEOF 2565#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2566_ACEOF 2567 2568cat >>confdefs.h <<_ACEOF 2569#define PACKAGE_URL "$PACKAGE_URL" 2570_ACEOF 2571 2572 2573# Let the site file select an alternate cache file if it wants to. 2574# Prefer an explicitly selected file to automatically selected ones. 2575ac_site_file1=NONE 2576ac_site_file2=NONE 2577if test -n "$CONFIG_SITE"; then 2578 # We do not want a PATH search for config.site. 2579 case $CONFIG_SITE in #(( 2580 -*) ac_site_file1=./$CONFIG_SITE;; 2581 */*) ac_site_file1=$CONFIG_SITE;; 2582 *) ac_site_file1=./$CONFIG_SITE;; 2583 esac 2584elif test "x$prefix" != xNONE; then 2585 ac_site_file1=$prefix/share/config.site 2586 ac_site_file2=$prefix/etc/config.site 2587else 2588 ac_site_file1=$ac_default_prefix/share/config.site 2589 ac_site_file2=$ac_default_prefix/etc/config.site 2590fi 2591for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2592do 2593 test "x$ac_site_file" = xNONE && continue 2594 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2596$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2597 sed 's/^/| /' "$ac_site_file" >&5 2598 . "$ac_site_file" \ 2599 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2601as_fn_error $? "failed to load site script $ac_site_file 2602See \`config.log' for more details" "$LINENO" 5; } 2603 fi 2604done 2605 2606if test -r "$cache_file"; then 2607 # Some versions of bash will fail to source /dev/null (special files 2608 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2609 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2611$as_echo "$as_me: loading cache $cache_file" >&6;} 2612 case $cache_file in 2613 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2614 *) . "./$cache_file";; 2615 esac 2616 fi 2617else 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2619$as_echo "$as_me: creating cache $cache_file" >&6;} 2620 >$cache_file 2621fi 2622 2623as_fn_append ac_header_list " stdlib.h" 2624as_fn_append ac_header_list " unistd.h" 2625as_fn_append ac_header_list " sys/param.h" 2626# Check that the precious variables saved in the cache have kept the same 2627# value. 2628ac_cache_corrupted=false 2629for ac_var in $ac_precious_vars; do 2630 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2631 eval ac_new_set=\$ac_env_${ac_var}_set 2632 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2633 eval ac_new_val=\$ac_env_${ac_var}_value 2634 case $ac_old_set,$ac_new_set in 2635 set,) 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2637$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2638 ac_cache_corrupted=: ;; 2639 ,set) 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2641$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2642 ac_cache_corrupted=: ;; 2643 ,);; 2644 *) 2645 if test "x$ac_old_val" != "x$ac_new_val"; then 2646 # differences in whitespace do not lead to failure. 2647 ac_old_val_w=`echo x $ac_old_val` 2648 ac_new_val_w=`echo x $ac_new_val` 2649 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2651$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2652 ac_cache_corrupted=: 2653 else 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2655$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2656 eval $ac_var=\$ac_old_val 2657 fi 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2659$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2661$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2662 fi;; 2663 esac 2664 # Pass precious variables to config.status. 2665 if test "$ac_new_set" = set; then 2666 case $ac_new_val in 2667 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2668 *) ac_arg=$ac_var=$ac_new_val ;; 2669 esac 2670 case " $ac_configure_args " in 2671 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2672 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2673 esac 2674 fi 2675done 2676if $ac_cache_corrupted; then 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2680$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2681 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2682fi 2683## -------------------- ## 2684## Main body of script. ## 2685## -------------------- ## 2686 2687ac_ext=c 2688ac_cpp='$CPP $CPPFLAGS' 2689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2691ac_compiler_gnu=$ac_cv_c_compiler_gnu 2692 2693 2694 2695ac_aux_dir= 2696for ac_dir in . "$srcdir"/.; do 2697 if test -f "$ac_dir/install-sh"; then 2698 ac_aux_dir=$ac_dir 2699 ac_install_sh="$ac_aux_dir/install-sh -c" 2700 break 2701 elif test -f "$ac_dir/install.sh"; then 2702 ac_aux_dir=$ac_dir 2703 ac_install_sh="$ac_aux_dir/install.sh -c" 2704 break 2705 elif test -f "$ac_dir/shtool"; then 2706 ac_aux_dir=$ac_dir 2707 ac_install_sh="$ac_aux_dir/shtool install -c" 2708 break 2709 fi 2710done 2711if test -z "$ac_aux_dir"; then 2712 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2713fi 2714 2715# These three variables are undocumented and unsupported, 2716# and are intended to be withdrawn in a future Autoconf release. 2717# They can cause serious problems if a builder's source tree is in a directory 2718# whose full name contains unusual characters. 2719ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2720ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2721ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2722 2723 2724am__api_version='1.14' 2725 2726# Find a good install program. We prefer a C program (faster), 2727# so one script is as good as another. But avoid the broken or 2728# incompatible versions: 2729# SysV /etc/install, /usr/sbin/install 2730# SunOS /usr/etc/install 2731# IRIX /sbin/install 2732# AIX /bin/install 2733# AmigaOS /C/install, which installs bootblocks on floppy discs 2734# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2735# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2736# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2737# OS/2's system install, which has a completely different semantic 2738# ./install, which can be erroneously created by make from ./install.sh. 2739# Reject install programs that cannot install multiple files. 2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2741$as_echo_n "checking for a BSD-compatible install... " >&6; } 2742if test -z "$INSTALL"; then 2743if ${ac_cv_path_install+:} false; then : 2744 $as_echo_n "(cached) " >&6 2745else 2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2747for as_dir in $PATH 2748do 2749 IFS=$as_save_IFS 2750 test -z "$as_dir" && as_dir=. 2751 # Account for people who put trailing slashes in PATH elements. 2752case $as_dir/ in #(( 2753 ./ | .// | /[cC]/* | \ 2754 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2755 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2756 /usr/ucb/* ) ;; 2757 *) 2758 # OSF1 and SCO ODT 3.0 have their own names for install. 2759 # Don't use installbsd from OSF since it installs stuff as root 2760 # by default. 2761 for ac_prog in ginstall scoinst install; do 2762 for ac_exec_ext in '' $ac_executable_extensions; do 2763 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2764 if test $ac_prog = install && 2765 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2766 # AIX install. It has an incompatible calling convention. 2767 : 2768 elif test $ac_prog = install && 2769 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2770 # program-specific install script used by HP pwplus--don't use. 2771 : 2772 else 2773 rm -rf conftest.one conftest.two conftest.dir 2774 echo one > conftest.one 2775 echo two > conftest.two 2776 mkdir conftest.dir 2777 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2778 test -s conftest.one && test -s conftest.two && 2779 test -s conftest.dir/conftest.one && 2780 test -s conftest.dir/conftest.two 2781 then 2782 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2783 break 3 2784 fi 2785 fi 2786 fi 2787 done 2788 done 2789 ;; 2790esac 2791 2792 done 2793IFS=$as_save_IFS 2794 2795rm -rf conftest.one conftest.two conftest.dir 2796 2797fi 2798 if test "${ac_cv_path_install+set}" = set; then 2799 INSTALL=$ac_cv_path_install 2800 else 2801 # As a last resort, use the slow shell script. Don't cache a 2802 # value for INSTALL within a source directory, because that will 2803 # break other packages using the cache if that directory is 2804 # removed, or if the value is a relative name. 2805 INSTALL=$ac_install_sh 2806 fi 2807fi 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2809$as_echo "$INSTALL" >&6; } 2810 2811# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2812# It thinks the first close brace ends the variable substitution. 2813test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2814 2815test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2816 2817test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2818 2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2820$as_echo_n "checking whether build environment is sane... " >&6; } 2821# Reject unsafe characters in $srcdir or the absolute working directory 2822# name. Accept space and tab only in the latter. 2823am_lf=' 2824' 2825case `pwd` in 2826 *[\\\"\#\$\&\'\`$am_lf]*) 2827 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2828esac 2829case $srcdir in 2830 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2831 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2832esac 2833 2834# Do 'set' in a subshell so we don't clobber the current shell's 2835# arguments. Must try -L first in case configure is actually a 2836# symlink; some systems play weird games with the mod time of symlinks 2837# (eg FreeBSD returns the mod time of the symlink's containing 2838# directory). 2839if ( 2840 am_has_slept=no 2841 for am_try in 1 2; do 2842 echo "timestamp, slept: $am_has_slept" > conftest.file 2843 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2844 if test "$*" = "X"; then 2845 # -L didn't work. 2846 set X `ls -t "$srcdir/configure" conftest.file` 2847 fi 2848 if test "$*" != "X $srcdir/configure conftest.file" \ 2849 && test "$*" != "X conftest.file $srcdir/configure"; then 2850 2851 # If neither matched, then we have a broken ls. This can happen 2852 # if, for instance, CONFIG_SHELL is bash and it inherits a 2853 # broken ls alias from the environment. This has actually 2854 # happened. Such a system could not be considered "sane". 2855 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2856 alias in your environment" "$LINENO" 5 2857 fi 2858 if test "$2" = conftest.file || test $am_try -eq 2; then 2859 break 2860 fi 2861 # Just in case. 2862 sleep 1 2863 am_has_slept=yes 2864 done 2865 test "$2" = conftest.file 2866 ) 2867then 2868 # Ok. 2869 : 2870else 2871 as_fn_error $? "newly created file is older than distributed files! 2872Check your system clock" "$LINENO" 5 2873fi 2874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2875$as_echo "yes" >&6; } 2876# If we didn't sleep, we still need to ensure time stamps of config.status and 2877# generated files are strictly newer. 2878am_sleep_pid= 2879if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2880 ( sleep 1 ) & 2881 am_sleep_pid=$! 2882fi 2883 2884rm -f conftest.file 2885 2886test "$program_prefix" != NONE && 2887 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2888# Use a double $ so make ignores it. 2889test "$program_suffix" != NONE && 2890 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2891# Double any \ or $. 2892# By default was `s,x,x', remove it if useless. 2893ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2894program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2895 2896# expand $ac_aux_dir to an absolute path 2897am_aux_dir=`cd $ac_aux_dir && pwd` 2898 2899if test x"${MISSING+set}" != xset; then 2900 case $am_aux_dir in 2901 *\ * | *\ *) 2902 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2903 *) 2904 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2905 esac 2906fi 2907# Use eval to expand $SHELL 2908if eval "$MISSING --is-lightweight"; then 2909 am_missing_run="$MISSING " 2910else 2911 am_missing_run= 2912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2913$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2914fi 2915 2916if test x"${install_sh}" != xset; then 2917 case $am_aux_dir in 2918 *\ * | *\ *) 2919 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2920 *) 2921 install_sh="\${SHELL} $am_aux_dir/install-sh" 2922 esac 2923fi 2924 2925# Installed binaries are usually stripped using 'strip' when the user 2926# run "make install-strip". However 'strip' might not be the right 2927# tool to use in cross-compilation environments, therefore Automake 2928# will honor the 'STRIP' environment variable to overrule this program. 2929if test "$cross_compiling" != no; then 2930 if test -n "$ac_tool_prefix"; then 2931 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2932set dummy ${ac_tool_prefix}strip; ac_word=$2 2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2934$as_echo_n "checking for $ac_word... " >&6; } 2935if ${ac_cv_prog_STRIP+:} false; then : 2936 $as_echo_n "(cached) " >&6 2937else 2938 if test -n "$STRIP"; then 2939 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2940else 2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2942for as_dir in $PATH 2943do 2944 IFS=$as_save_IFS 2945 test -z "$as_dir" && as_dir=. 2946 for ac_exec_ext in '' $ac_executable_extensions; do 2947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2948 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2950 break 2 2951 fi 2952done 2953 done 2954IFS=$as_save_IFS 2955 2956fi 2957fi 2958STRIP=$ac_cv_prog_STRIP 2959if test -n "$STRIP"; then 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2961$as_echo "$STRIP" >&6; } 2962else 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2964$as_echo "no" >&6; } 2965fi 2966 2967 2968fi 2969if test -z "$ac_cv_prog_STRIP"; then 2970 ac_ct_STRIP=$STRIP 2971 # Extract the first word of "strip", so it can be a program name with args. 2972set dummy strip; ac_word=$2 2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2974$as_echo_n "checking for $ac_word... " >&6; } 2975if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2976 $as_echo_n "(cached) " >&6 2977else 2978 if test -n "$ac_ct_STRIP"; then 2979 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2980else 2981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2982for as_dir in $PATH 2983do 2984 IFS=$as_save_IFS 2985 test -z "$as_dir" && as_dir=. 2986 for ac_exec_ext in '' $ac_executable_extensions; do 2987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2988 ac_cv_prog_ac_ct_STRIP="strip" 2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2990 break 2 2991 fi 2992done 2993 done 2994IFS=$as_save_IFS 2995 2996fi 2997fi 2998ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2999if test -n "$ac_ct_STRIP"; then 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3001$as_echo "$ac_ct_STRIP" >&6; } 3002else 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3004$as_echo "no" >&6; } 3005fi 3006 3007 if test "x$ac_ct_STRIP" = x; then 3008 STRIP=":" 3009 else 3010 case $cross_compiling:$ac_tool_warned in 3011yes:) 3012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3014ac_tool_warned=yes ;; 3015esac 3016 STRIP=$ac_ct_STRIP 3017 fi 3018else 3019 STRIP="$ac_cv_prog_STRIP" 3020fi 3021 3022fi 3023INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3024 3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3026$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3027if test -z "$MKDIR_P"; then 3028 if ${ac_cv_path_mkdir+:} false; then : 3029 $as_echo_n "(cached) " >&6 3030else 3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3032for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3033do 3034 IFS=$as_save_IFS 3035 test -z "$as_dir" && as_dir=. 3036 for ac_prog in mkdir gmkdir; do 3037 for ac_exec_ext in '' $ac_executable_extensions; do 3038 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3039 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3040 'mkdir (GNU coreutils) '* | \ 3041 'mkdir (coreutils) '* | \ 3042 'mkdir (fileutils) '4.1*) 3043 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3044 break 3;; 3045 esac 3046 done 3047 done 3048 done 3049IFS=$as_save_IFS 3050 3051fi 3052 3053 test -d ./--version && rmdir ./--version 3054 if test "${ac_cv_path_mkdir+set}" = set; then 3055 MKDIR_P="$ac_cv_path_mkdir -p" 3056 else 3057 # As a last resort, use the slow shell script. Don't cache a 3058 # value for MKDIR_P within a source directory, because that will 3059 # break other packages using the cache if that directory is 3060 # removed, or if the value is a relative name. 3061 MKDIR_P="$ac_install_sh -d" 3062 fi 3063fi 3064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3065$as_echo "$MKDIR_P" >&6; } 3066 3067for ac_prog in gawk mawk nawk awk 3068do 3069 # Extract the first word of "$ac_prog", so it can be a program name with args. 3070set dummy $ac_prog; ac_word=$2 3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3072$as_echo_n "checking for $ac_word... " >&6; } 3073if ${ac_cv_prog_AWK+:} false; then : 3074 $as_echo_n "(cached) " >&6 3075else 3076 if test -n "$AWK"; then 3077 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3078else 3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3080for as_dir in $PATH 3081do 3082 IFS=$as_save_IFS 3083 test -z "$as_dir" && as_dir=. 3084 for ac_exec_ext in '' $ac_executable_extensions; do 3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3086 ac_cv_prog_AWK="$ac_prog" 3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3088 break 2 3089 fi 3090done 3091 done 3092IFS=$as_save_IFS 3093 3094fi 3095fi 3096AWK=$ac_cv_prog_AWK 3097if test -n "$AWK"; then 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3099$as_echo "$AWK" >&6; } 3100else 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3102$as_echo "no" >&6; } 3103fi 3104 3105 3106 test -n "$AWK" && break 3107done 3108 3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3110$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3111set x ${MAKE-make} 3112ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3113if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3114 $as_echo_n "(cached) " >&6 3115else 3116 cat >conftest.make <<\_ACEOF 3117SHELL = /bin/sh 3118all: 3119 @echo '@@@%%%=$(MAKE)=@@@%%%' 3120_ACEOF 3121# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3122case `${MAKE-make} -f conftest.make 2>/dev/null` in 3123 *@@@%%%=?*=@@@%%%*) 3124 eval ac_cv_prog_make_${ac_make}_set=yes;; 3125 *) 3126 eval ac_cv_prog_make_${ac_make}_set=no;; 3127esac 3128rm -f conftest.make 3129fi 3130if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3132$as_echo "yes" >&6; } 3133 SET_MAKE= 3134else 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3136$as_echo "no" >&6; } 3137 SET_MAKE="MAKE=${MAKE-make}" 3138fi 3139 3140rm -rf .tst 2>/dev/null 3141mkdir .tst 2>/dev/null 3142if test -d .tst; then 3143 am__leading_dot=. 3144else 3145 am__leading_dot=_ 3146fi 3147rmdir .tst 2>/dev/null 3148 3149# Check whether --enable-silent-rules was given. 3150if test "${enable_silent_rules+set}" = set; then : 3151 enableval=$enable_silent_rules; 3152fi 3153 3154case $enable_silent_rules in # ((( 3155 yes) AM_DEFAULT_VERBOSITY=0;; 3156 no) AM_DEFAULT_VERBOSITY=1;; 3157 *) AM_DEFAULT_VERBOSITY=1;; 3158esac 3159am_make=${MAKE-make} 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3161$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3162if ${am_cv_make_support_nested_variables+:} false; then : 3163 $as_echo_n "(cached) " >&6 3164else 3165 if $as_echo 'TRUE=$(BAR$(V)) 3166BAR0=false 3167BAR1=true 3168V=1 3169am__doit: 3170 @$(TRUE) 3171.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3172 am_cv_make_support_nested_variables=yes 3173else 3174 am_cv_make_support_nested_variables=no 3175fi 3176fi 3177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3178$as_echo "$am_cv_make_support_nested_variables" >&6; } 3179if test $am_cv_make_support_nested_variables = yes; then 3180 AM_V='$(V)' 3181 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3182else 3183 AM_V=$AM_DEFAULT_VERBOSITY 3184 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3185fi 3186AM_BACKSLASH='\' 3187 3188if test "`cd $srcdir && pwd`" != "`pwd`"; then 3189 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3190 # is not polluted with repeated "-I." 3191 am__isrc=' -I$(srcdir)' 3192 # test to see if srcdir already configured 3193 if test -f $srcdir/config.status; then 3194 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3195 fi 3196fi 3197 3198# test whether we have cygpath 3199if test -z "$CYGPATH_W"; then 3200 if (cygpath --version) >/dev/null 2>/dev/null; then 3201 CYGPATH_W='cygpath -w' 3202 else 3203 CYGPATH_W=echo 3204 fi 3205fi 3206 3207 3208# Define the identity of the package. 3209 PACKAGE='stardict' 3210 VERSION='3.0.6' 3211 3212 3213cat >>confdefs.h <<_ACEOF 3214#define PACKAGE "$PACKAGE" 3215_ACEOF 3216 3217 3218cat >>confdefs.h <<_ACEOF 3219#define VERSION "$VERSION" 3220_ACEOF 3221 3222# Some tools Automake needs. 3223 3224ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3225 3226 3227AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3228 3229 3230AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3231 3232 3233AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3234 3235 3236MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3237 3238# For better backward compatibility. To be removed once Automake 1.9.x 3239# dies out for good. For more background, see: 3240# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3241# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3242mkdir_p='$(MKDIR_P)' 3243 3244# We need awk for the "check" target. The system "awk" is bad on 3245# some platforms. 3246# Always define AMTAR for backward compatibility. Yes, it's still used 3247# in the wild :-( We should find a proper way to deprecate it ... 3248AMTAR='$${TAR-tar}' 3249 3250 3251# We'll loop over all known methods to create a tar archive until one works. 3252_am_tools='gnutar plaintar pax cpio none' 3253 3254# The POSIX 1988 'ustar' format is defined with fixed-size fields. 3255 # There is notably a 21 bits limit for the UID and the GID. In fact, 3256 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3257 # and bug#13588). 3258 am_max_uid=2097151 # 2^21 - 1 3259 am_max_gid=$am_max_uid 3260 # The $UID and $GID variables are not portable, so we need to resort 3261 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3262 # below are definitely unexpected, so allow the users to see them 3263 # (that is, avoid stderr redirection). 3264 am_uid=`id -u || echo unknown` 3265 am_gid=`id -g || echo unknown` 3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3267$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3268 if test $am_uid -le $am_max_uid; then 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3270$as_echo "yes" >&6; } 3271 else 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3273$as_echo "no" >&6; } 3274 _am_tools=none 3275 fi 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3277$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3278 if test $am_gid -le $am_max_gid; then 3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3280$as_echo "yes" >&6; } 3281 else 3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3283$as_echo "no" >&6; } 3284 _am_tools=none 3285 fi 3286 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3288$as_echo_n "checking how to create a ustar tar archive... " >&6; } 3289 3290 # Go ahead even if we have the value already cached. We do so because we 3291 # need to set the values for the 'am__tar' and 'am__untar' variables. 3292 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3293 3294 for _am_tool in $_am_tools; do 3295 case $_am_tool in 3296 gnutar) 3297 for _am_tar in tar gnutar gtar; do 3298 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3299 ($_am_tar --version) >&5 2>&5 3300 ac_status=$? 3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3302 (exit $ac_status); } && break 3303 done 3304 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3305 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3306 am__untar="$_am_tar -xf -" 3307 ;; 3308 plaintar) 3309 # Must skip GNU tar: if it does not support --format= it doesn't create 3310 # ustar tarball either. 3311 (tar --version) >/dev/null 2>&1 && continue 3312 am__tar='tar chf - "$$tardir"' 3313 am__tar_='tar chf - "$tardir"' 3314 am__untar='tar xf -' 3315 ;; 3316 pax) 3317 am__tar='pax -L -x ustar -w "$$tardir"' 3318 am__tar_='pax -L -x ustar -w "$tardir"' 3319 am__untar='pax -r' 3320 ;; 3321 cpio) 3322 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3323 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3324 am__untar='cpio -i -H ustar -d' 3325 ;; 3326 none) 3327 am__tar=false 3328 am__tar_=false 3329 am__untar=false 3330 ;; 3331 esac 3332 3333 # If the value was cached, stop now. We just wanted to have am__tar 3334 # and am__untar set. 3335 test -n "${am_cv_prog_tar_ustar}" && break 3336 3337 # tar/untar a dummy directory, and stop if the command works. 3338 rm -rf conftest.dir 3339 mkdir conftest.dir 3340 echo GrepMe > conftest.dir/file 3341 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3342 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3343 ac_status=$? 3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3345 (exit $ac_status); } 3346 rm -rf conftest.dir 3347 if test -s conftest.tar; then 3348 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3349 ($am__untar <conftest.tar) >&5 2>&5 3350 ac_status=$? 3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3352 (exit $ac_status); } 3353 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3354 (cat conftest.dir/file) >&5 2>&5 3355 ac_status=$? 3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3357 (exit $ac_status); } 3358 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3359 fi 3360 done 3361 rm -rf conftest.dir 3362 3363 if ${am_cv_prog_tar_ustar+:} false; then : 3364 $as_echo_n "(cached) " >&6 3365else 3366 am_cv_prog_tar_ustar=$_am_tool 3367fi 3368 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3370$as_echo "$am_cv_prog_tar_ustar" >&6; } 3371 3372 3373 3374 3375 3376 3377# POSIX will say in a future version that running "rm -f" with no argument 3378# is OK; and we want to be able to make that assumption in our Makefile 3379# recipes. So use an aggressive probe to check that the usage we want is 3380# actually supported "in the wild" to an acceptable degree. 3381# See automake bug#10828. 3382# To make any issue more visible, cause the running configure to be aborted 3383# by default if the 'rm' program in use doesn't match our expectations; the 3384# user can still override this though. 3385if rm -f && rm -fr && rm -rf; then : OK; else 3386 cat >&2 <<'END' 3387Oops! 3388 3389Your 'rm' program seems unable to run without file operands specified 3390on the command line, even when the '-f' option is present. This is contrary 3391to the behaviour of most rm programs out there, and not conforming with 3392the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3393 3394Please tell bug-automake@gnu.org about your system, including the value 3395of your $PATH and any error possibly output before this message. This 3396can help us improve future automake versions. 3397 3398END 3399 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3400 echo 'Configuration will proceed anyway, since you have set the' >&2 3401 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3402 echo >&2 3403 else 3404 cat >&2 <<'END' 3405Aborting the configuration process, to ensure you take notice of the issue. 3406 3407You can download and install GNU coreutils to get an 'rm' implementation 3408that behaves properly: <http://www.gnu.org/software/coreutils/>. 3409 3410If you want to complete the configuration process using your problematic 3411'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3412to "yes", and re-run configure. 3413 3414END 3415 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3416 fi 3417fi 3418 3419 3420ac_config_headers="$ac_config_headers config.h" 3421 3422 3423# Check whether --enable-static was given. 3424if test "${enable_static+set}" = set; then : 3425 enableval=$enable_static; p=${PACKAGE-default} 3426 case $enableval in 3427 yes) enable_static=yes ;; 3428 no) enable_static=no ;; 3429 *) 3430 enable_static=no 3431 # Look at the argument we got. We use all the common list separators. 3432 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3433 for pkg in $enableval; do 3434 IFS="$lt_save_ifs" 3435 if test "X$pkg" = "X$p"; then 3436 enable_static=yes 3437 fi 3438 done 3439 IFS="$lt_save_ifs" 3440 ;; 3441 esac 3442else 3443 enable_static=no 3444fi 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455# Extract the first word of "gconftool-2", so it can be a program name with args. 3456set dummy gconftool-2; ac_word=$2 3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3458$as_echo_n "checking for $ac_word... " >&6; } 3459if ${ac_cv_path_GCONFTOOL+:} false; then : 3460 $as_echo_n "(cached) " >&6 3461else 3462 case $GCONFTOOL in 3463 [\\/]* | ?:[\\/]*) 3464 ac_cv_path_GCONFTOOL="$GCONFTOOL" # Let the user override the test with a path. 3465 ;; 3466 *) 3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3468for as_dir in $PATH 3469do 3470 IFS=$as_save_IFS 3471 test -z "$as_dir" && as_dir=. 3472 for ac_exec_ext in '' $ac_executable_extensions; do 3473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3474 ac_cv_path_GCONFTOOL="$as_dir/$ac_word$ac_exec_ext" 3475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3476 break 2 3477 fi 3478done 3479 done 3480IFS=$as_save_IFS 3481 3482 ;; 3483esac 3484fi 3485GCONFTOOL=$ac_cv_path_GCONFTOOL 3486if test -n "$GCONFTOOL"; then 3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONFTOOL" >&5 3488$as_echo "$GCONFTOOL" >&6; } 3489else 3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3491$as_echo "no" >&6; } 3492fi 3493 3494 3495 3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 3497$as_echo_n "checking whether NLS is requested... " >&6; } 3498 # Check whether --enable-nls was given. 3499if test "${enable_nls+set}" = set; then : 3500 enableval=$enable_nls; USE_NLS=$enableval 3501else 3502 USE_NLS=yes 3503fi 3504 3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 3506$as_echo "$USE_NLS" >&6; } 3507 3508 3509DEPDIR="${am__leading_dot}deps" 3510 3511ac_config_commands="$ac_config_commands depfiles" 3512 3513 3514am_make=${MAKE-make} 3515cat > confinc << 'END' 3516am__doit: 3517 @echo this is the am__doit target 3518.PHONY: am__doit 3519END 3520# If we don't find an include directive, just comment out the code. 3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3522$as_echo_n "checking for style of include used by $am_make... " >&6; } 3523am__include="#" 3524am__quote= 3525_am_result=none 3526# First try GNU make style include. 3527echo "include confinc" > confmf 3528# Ignore all kinds of additional output from 'make'. 3529case `$am_make -s -f confmf 2> /dev/null` in #( 3530*the\ am__doit\ target*) 3531 am__include=include 3532 am__quote= 3533 _am_result=GNU 3534 ;; 3535esac 3536# Now try BSD make style include. 3537if test "$am__include" = "#"; then 3538 echo '.include "confinc"' > confmf 3539 case `$am_make -s -f confmf 2> /dev/null` in #( 3540 *the\ am__doit\ target*) 3541 am__include=.include 3542 am__quote="\"" 3543 _am_result=BSD 3544 ;; 3545 esac 3546fi 3547 3548 3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3550$as_echo "$_am_result" >&6; } 3551rm -f confinc confmf 3552 3553# Check whether --enable-dependency-tracking was given. 3554if test "${enable_dependency_tracking+set}" = set; then : 3555 enableval=$enable_dependency_tracking; 3556fi 3557 3558if test "x$enable_dependency_tracking" != xno; then 3559 am_depcomp="$ac_aux_dir/depcomp" 3560 AMDEPBACKSLASH='\' 3561 am__nodep='_no' 3562fi 3563 if test "x$enable_dependency_tracking" != xno; then 3564 AMDEP_TRUE= 3565 AMDEP_FALSE='#' 3566else 3567 AMDEP_TRUE='#' 3568 AMDEP_FALSE= 3569fi 3570 3571 3572ac_ext=c 3573ac_cpp='$CPP $CPPFLAGS' 3574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3576ac_compiler_gnu=$ac_cv_c_compiler_gnu 3577if test -n "$ac_tool_prefix"; then 3578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3579set dummy ${ac_tool_prefix}gcc; ac_word=$2 3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3581$as_echo_n "checking for $ac_word... " >&6; } 3582if ${ac_cv_prog_CC+:} false; then : 3583 $as_echo_n "(cached) " >&6 3584else 3585 if test -n "$CC"; then 3586 ac_cv_prog_CC="$CC" # Let the user override the test. 3587else 3588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3589for as_dir in $PATH 3590do 3591 IFS=$as_save_IFS 3592 test -z "$as_dir" && as_dir=. 3593 for ac_exec_ext in '' $ac_executable_extensions; do 3594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3595 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3597 break 2 3598 fi 3599done 3600 done 3601IFS=$as_save_IFS 3602 3603fi 3604fi 3605CC=$ac_cv_prog_CC 3606if test -n "$CC"; then 3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3608$as_echo "$CC" >&6; } 3609else 3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3611$as_echo "no" >&6; } 3612fi 3613 3614 3615fi 3616if test -z "$ac_cv_prog_CC"; then 3617 ac_ct_CC=$CC 3618 # Extract the first word of "gcc", so it can be a program name with args. 3619set dummy gcc; ac_word=$2 3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3621$as_echo_n "checking for $ac_word... " >&6; } 3622if ${ac_cv_prog_ac_ct_CC+:} false; then : 3623 $as_echo_n "(cached) " >&6 3624else 3625 if test -n "$ac_ct_CC"; then 3626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3627else 3628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3629for as_dir in $PATH 3630do 3631 IFS=$as_save_IFS 3632 test -z "$as_dir" && as_dir=. 3633 for ac_exec_ext in '' $ac_executable_extensions; do 3634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3635 ac_cv_prog_ac_ct_CC="gcc" 3636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3637 break 2 3638 fi 3639done 3640 done 3641IFS=$as_save_IFS 3642 3643fi 3644fi 3645ac_ct_CC=$ac_cv_prog_ac_ct_CC 3646if test -n "$ac_ct_CC"; then 3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3648$as_echo "$ac_ct_CC" >&6; } 3649else 3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3651$as_echo "no" >&6; } 3652fi 3653 3654 if test "x$ac_ct_CC" = x; then 3655 CC="" 3656 else 3657 case $cross_compiling:$ac_tool_warned in 3658yes:) 3659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3661ac_tool_warned=yes ;; 3662esac 3663 CC=$ac_ct_CC 3664 fi 3665else 3666 CC="$ac_cv_prog_CC" 3667fi 3668 3669if test -z "$CC"; then 3670 if test -n "$ac_tool_prefix"; then 3671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3672set dummy ${ac_tool_prefix}cc; ac_word=$2 3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3674$as_echo_n "checking for $ac_word... " >&6; } 3675if ${ac_cv_prog_CC+:} false; then : 3676 $as_echo_n "(cached) " >&6 3677else 3678 if test -n "$CC"; then 3679 ac_cv_prog_CC="$CC" # Let the user override the test. 3680else 3681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3682for as_dir in $PATH 3683do 3684 IFS=$as_save_IFS 3685 test -z "$as_dir" && as_dir=. 3686 for ac_exec_ext in '' $ac_executable_extensions; do 3687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3688 ac_cv_prog_CC="${ac_tool_prefix}cc" 3689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3690 break 2 3691 fi 3692done 3693 done 3694IFS=$as_save_IFS 3695 3696fi 3697fi 3698CC=$ac_cv_prog_CC 3699if test -n "$CC"; then 3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3701$as_echo "$CC" >&6; } 3702else 3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3704$as_echo "no" >&6; } 3705fi 3706 3707 3708 fi 3709fi 3710if test -z "$CC"; then 3711 # Extract the first word of "cc", so it can be a program name with args. 3712set dummy cc; ac_word=$2 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3714$as_echo_n "checking for $ac_word... " >&6; } 3715if ${ac_cv_prog_CC+:} false; then : 3716 $as_echo_n "(cached) " >&6 3717else 3718 if test -n "$CC"; then 3719 ac_cv_prog_CC="$CC" # Let the user override the test. 3720else 3721 ac_prog_rejected=no 3722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3723for as_dir in $PATH 3724do 3725 IFS=$as_save_IFS 3726 test -z "$as_dir" && as_dir=. 3727 for ac_exec_ext in '' $ac_executable_extensions; do 3728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3730 ac_prog_rejected=yes 3731 continue 3732 fi 3733 ac_cv_prog_CC="cc" 3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3735 break 2 3736 fi 3737done 3738 done 3739IFS=$as_save_IFS 3740 3741if test $ac_prog_rejected = yes; then 3742 # We found a bogon in the path, so make sure we never use it. 3743 set dummy $ac_cv_prog_CC 3744 shift 3745 if test $# != 0; then 3746 # We chose a different compiler from the bogus one. 3747 # However, it has the same basename, so the bogon will be chosen 3748 # first if we set CC to just the basename; use the full file name. 3749 shift 3750 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3751 fi 3752fi 3753fi 3754fi 3755CC=$ac_cv_prog_CC 3756if test -n "$CC"; then 3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3758$as_echo "$CC" >&6; } 3759else 3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3761$as_echo "no" >&6; } 3762fi 3763 3764 3765fi 3766if test -z "$CC"; then 3767 if test -n "$ac_tool_prefix"; then 3768 for ac_prog in cl.exe 3769 do 3770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3771set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3773$as_echo_n "checking for $ac_word... " >&6; } 3774if ${ac_cv_prog_CC+:} false; then : 3775 $as_echo_n "(cached) " >&6 3776else 3777 if test -n "$CC"; then 3778 ac_cv_prog_CC="$CC" # Let the user override the test. 3779else 3780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3781for as_dir in $PATH 3782do 3783 IFS=$as_save_IFS 3784 test -z "$as_dir" && as_dir=. 3785 for ac_exec_ext in '' $ac_executable_extensions; do 3786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3787 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3789 break 2 3790 fi 3791done 3792 done 3793IFS=$as_save_IFS 3794 3795fi 3796fi 3797CC=$ac_cv_prog_CC 3798if test -n "$CC"; then 3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3800$as_echo "$CC" >&6; } 3801else 3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3803$as_echo "no" >&6; } 3804fi 3805 3806 3807 test -n "$CC" && break 3808 done 3809fi 3810if test -z "$CC"; then 3811 ac_ct_CC=$CC 3812 for ac_prog in cl.exe 3813do 3814 # Extract the first word of "$ac_prog", so it can be a program name with args. 3815set dummy $ac_prog; ac_word=$2 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3817$as_echo_n "checking for $ac_word... " >&6; } 3818if ${ac_cv_prog_ac_ct_CC+:} false; then : 3819 $as_echo_n "(cached) " >&6 3820else 3821 if test -n "$ac_ct_CC"; then 3822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3823else 3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3825for as_dir in $PATH 3826do 3827 IFS=$as_save_IFS 3828 test -z "$as_dir" && as_dir=. 3829 for ac_exec_ext in '' $ac_executable_extensions; do 3830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3831 ac_cv_prog_ac_ct_CC="$ac_prog" 3832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3833 break 2 3834 fi 3835done 3836 done 3837IFS=$as_save_IFS 3838 3839fi 3840fi 3841ac_ct_CC=$ac_cv_prog_ac_ct_CC 3842if test -n "$ac_ct_CC"; then 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3844$as_echo "$ac_ct_CC" >&6; } 3845else 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3847$as_echo "no" >&6; } 3848fi 3849 3850 3851 test -n "$ac_ct_CC" && break 3852done 3853 3854 if test "x$ac_ct_CC" = x; then 3855 CC="" 3856 else 3857 case $cross_compiling:$ac_tool_warned in 3858yes:) 3859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3861ac_tool_warned=yes ;; 3862esac 3863 CC=$ac_ct_CC 3864 fi 3865fi 3866 3867fi 3868 3869 3870test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3872as_fn_error $? "no acceptable C compiler found in \$PATH 3873See \`config.log' for more details" "$LINENO" 5; } 3874 3875# Provide some information about the compiler. 3876$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3877set X $ac_compile 3878ac_compiler=$2 3879for ac_option in --version -v -V -qversion; do 3880 { { ac_try="$ac_compiler $ac_option >&5" 3881case "(($ac_try" in 3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3883 *) ac_try_echo=$ac_try;; 3884esac 3885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3886$as_echo "$ac_try_echo"; } >&5 3887 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3888 ac_status=$? 3889 if test -s conftest.err; then 3890 sed '10a\ 3891... rest of stderr output deleted ... 3892 10q' conftest.err >conftest.er1 3893 cat conftest.er1 >&5 3894 fi 3895 rm -f conftest.er1 conftest.err 3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3897 test $ac_status = 0; } 3898done 3899 3900cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3901/* end confdefs.h. */ 3902 3903int 3904main () 3905{ 3906 3907 ; 3908 return 0; 3909} 3910_ACEOF 3911ac_clean_files_save=$ac_clean_files 3912ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3913# Try to create an executable without -o first, disregard a.out. 3914# It will help us diagnose broken compilers, and finding out an intuition 3915# of exeext. 3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3917$as_echo_n "checking whether the C compiler works... " >&6; } 3918ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3919 3920# The possible output files: 3921ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3922 3923ac_rmfiles= 3924for ac_file in $ac_files 3925do 3926 case $ac_file in 3927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3928 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3929 esac 3930done 3931rm -f $ac_rmfiles 3932 3933if { { ac_try="$ac_link_default" 3934case "(($ac_try" in 3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3936 *) ac_try_echo=$ac_try;; 3937esac 3938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3939$as_echo "$ac_try_echo"; } >&5 3940 (eval "$ac_link_default") 2>&5 3941 ac_status=$? 3942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3943 test $ac_status = 0; }; then : 3944 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3945# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3946# in a Makefile. We should not override ac_cv_exeext if it was cached, 3947# so that the user can short-circuit this test for compilers unknown to 3948# Autoconf. 3949for ac_file in $ac_files '' 3950do 3951 test -f "$ac_file" || continue 3952 case $ac_file in 3953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3954 ;; 3955 [ab].out ) 3956 # We found the default executable, but exeext='' is most 3957 # certainly right. 3958 break;; 3959 *.* ) 3960 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3961 then :; else 3962 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3963 fi 3964 # We set ac_cv_exeext here because the later test for it is not 3965 # safe: cross compilers may not add the suffix if given an `-o' 3966 # argument, so we may need to know it at that point already. 3967 # Even if this section looks crufty: it has the advantage of 3968 # actually working. 3969 break;; 3970 * ) 3971 break;; 3972 esac 3973done 3974test "$ac_cv_exeext" = no && ac_cv_exeext= 3975 3976else 3977 ac_file='' 3978fi 3979if test -z "$ac_file"; then : 3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3981$as_echo "no" >&6; } 3982$as_echo "$as_me: failed program was:" >&5 3983sed 's/^/| /' conftest.$ac_ext >&5 3984 3985{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3987as_fn_error 77 "C compiler cannot create executables 3988See \`config.log' for more details" "$LINENO" 5; } 3989else 3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3991$as_echo "yes" >&6; } 3992fi 3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3994$as_echo_n "checking for C compiler default output file name... " >&6; } 3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3996$as_echo "$ac_file" >&6; } 3997ac_exeext=$ac_cv_exeext 3998 3999rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4000ac_clean_files=$ac_clean_files_save 4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4002$as_echo_n "checking for suffix of executables... " >&6; } 4003if { { ac_try="$ac_link" 4004case "(($ac_try" in 4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4006 *) ac_try_echo=$ac_try;; 4007esac 4008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4009$as_echo "$ac_try_echo"; } >&5 4010 (eval "$ac_link") 2>&5 4011 ac_status=$? 4012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4013 test $ac_status = 0; }; then : 4014 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4015# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4016# work properly (i.e., refer to `conftest.exe'), while it won't with 4017# `rm'. 4018for ac_file in conftest.exe conftest conftest.*; do 4019 test -f "$ac_file" || continue 4020 case $ac_file in 4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4022 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4023 break;; 4024 * ) break;; 4025 esac 4026done 4027else 4028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4030as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4031See \`config.log' for more details" "$LINENO" 5; } 4032fi 4033rm -f conftest conftest$ac_cv_exeext 4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4035$as_echo "$ac_cv_exeext" >&6; } 4036 4037rm -f conftest.$ac_ext 4038EXEEXT=$ac_cv_exeext 4039ac_exeext=$EXEEXT 4040cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4041/* end confdefs.h. */ 4042#include <stdio.h> 4043int 4044main () 4045{ 4046FILE *f = fopen ("conftest.out", "w"); 4047 return ferror (f) || fclose (f) != 0; 4048 4049 ; 4050 return 0; 4051} 4052_ACEOF 4053ac_clean_files="$ac_clean_files conftest.out" 4054# Check that the compiler produces executables we can run. If not, either 4055# the compiler is broken, or we cross compile. 4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4057$as_echo_n "checking whether we are cross compiling... " >&6; } 4058if test "$cross_compiling" != yes; then 4059 { { ac_try="$ac_link" 4060case "(($ac_try" in 4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4062 *) ac_try_echo=$ac_try;; 4063esac 4064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4065$as_echo "$ac_try_echo"; } >&5 4066 (eval "$ac_link") 2>&5 4067 ac_status=$? 4068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4069 test $ac_status = 0; } 4070 if { ac_try='./conftest$ac_cv_exeext' 4071 { { case "(($ac_try" in 4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4073 *) ac_try_echo=$ac_try;; 4074esac 4075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4076$as_echo "$ac_try_echo"; } >&5 4077 (eval "$ac_try") 2>&5 4078 ac_status=$? 4079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4080 test $ac_status = 0; }; }; then 4081 cross_compiling=no 4082 else 4083 if test "$cross_compiling" = maybe; then 4084 cross_compiling=yes 4085 else 4086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4088as_fn_error $? "cannot run C compiled programs. 4089If you meant to cross compile, use \`--host'. 4090See \`config.log' for more details" "$LINENO" 5; } 4091 fi 4092 fi 4093fi 4094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4095$as_echo "$cross_compiling" >&6; } 4096 4097rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4098ac_clean_files=$ac_clean_files_save 4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4100$as_echo_n "checking for suffix of object files... " >&6; } 4101if ${ac_cv_objext+:} false; then : 4102 $as_echo_n "(cached) " >&6 4103else 4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4105/* end confdefs.h. */ 4106 4107int 4108main () 4109{ 4110 4111 ; 4112 return 0; 4113} 4114_ACEOF 4115rm -f conftest.o conftest.obj 4116if { { ac_try="$ac_compile" 4117case "(($ac_try" in 4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4119 *) ac_try_echo=$ac_try;; 4120esac 4121eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4122$as_echo "$ac_try_echo"; } >&5 4123 (eval "$ac_compile") 2>&5 4124 ac_status=$? 4125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4126 test $ac_status = 0; }; then : 4127 for ac_file in conftest.o conftest.obj conftest.*; do 4128 test -f "$ac_file" || continue; 4129 case $ac_file in 4130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4131 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4132 break;; 4133 esac 4134done 4135else 4136 $as_echo "$as_me: failed program was:" >&5 4137sed 's/^/| /' conftest.$ac_ext >&5 4138 4139{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4141as_fn_error $? "cannot compute suffix of object files: cannot compile 4142See \`config.log' for more details" "$LINENO" 5; } 4143fi 4144rm -f conftest.$ac_cv_objext conftest.$ac_ext 4145fi 4146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4147$as_echo "$ac_cv_objext" >&6; } 4148OBJEXT=$ac_cv_objext 4149ac_objext=$OBJEXT 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4151$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4152if ${ac_cv_c_compiler_gnu+:} false; then : 4153 $as_echo_n "(cached) " >&6 4154else 4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4156/* end confdefs.h. */ 4157 4158int 4159main () 4160{ 4161#ifndef __GNUC__ 4162 choke me 4163#endif 4164 4165 ; 4166 return 0; 4167} 4168_ACEOF 4169if ac_fn_c_try_compile "$LINENO"; then : 4170 ac_compiler_gnu=yes 4171else 4172 ac_compiler_gnu=no 4173fi 4174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4175ac_cv_c_compiler_gnu=$ac_compiler_gnu 4176 4177fi 4178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4179$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4180if test $ac_compiler_gnu = yes; then 4181 GCC=yes 4182else 4183 GCC= 4184fi 4185ac_test_CFLAGS=${CFLAGS+set} 4186ac_save_CFLAGS=$CFLAGS 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4188$as_echo_n "checking whether $CC accepts -g... " >&6; } 4189if ${ac_cv_prog_cc_g+:} false; then : 4190 $as_echo_n "(cached) " >&6 4191else 4192 ac_save_c_werror_flag=$ac_c_werror_flag 4193 ac_c_werror_flag=yes 4194 ac_cv_prog_cc_g=no 4195 CFLAGS="-g" 4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4197/* end confdefs.h. */ 4198 4199int 4200main () 4201{ 4202 4203 ; 4204 return 0; 4205} 4206_ACEOF 4207if ac_fn_c_try_compile "$LINENO"; then : 4208 ac_cv_prog_cc_g=yes 4209else 4210 CFLAGS="" 4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4212/* end confdefs.h. */ 4213 4214int 4215main () 4216{ 4217 4218 ; 4219 return 0; 4220} 4221_ACEOF 4222if ac_fn_c_try_compile "$LINENO"; then : 4223 4224else 4225 ac_c_werror_flag=$ac_save_c_werror_flag 4226 CFLAGS="-g" 4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4228/* end confdefs.h. */ 4229 4230int 4231main () 4232{ 4233 4234 ; 4235 return 0; 4236} 4237_ACEOF 4238if ac_fn_c_try_compile "$LINENO"; then : 4239 ac_cv_prog_cc_g=yes 4240fi 4241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4242fi 4243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4244fi 4245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4246 ac_c_werror_flag=$ac_save_c_werror_flag 4247fi 4248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4249$as_echo "$ac_cv_prog_cc_g" >&6; } 4250if test "$ac_test_CFLAGS" = set; then 4251 CFLAGS=$ac_save_CFLAGS 4252elif test $ac_cv_prog_cc_g = yes; then 4253 if test "$GCC" = yes; then 4254 CFLAGS="-g -O2" 4255 else 4256 CFLAGS="-g" 4257 fi 4258else 4259 if test "$GCC" = yes; then 4260 CFLAGS="-O2" 4261 else 4262 CFLAGS= 4263 fi 4264fi 4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4266$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4267if ${ac_cv_prog_cc_c89+:} false; then : 4268 $as_echo_n "(cached) " >&6 4269else 4270 ac_cv_prog_cc_c89=no 4271ac_save_CC=$CC 4272cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4273/* end confdefs.h. */ 4274#include <stdarg.h> 4275#include <stdio.h> 4276struct stat; 4277/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4278struct buf { int x; }; 4279FILE * (*rcsopen) (struct buf *, struct stat *, int); 4280static char *e (p, i) 4281 char **p; 4282 int i; 4283{ 4284 return p[i]; 4285} 4286static char *f (char * (*g) (char **, int), char **p, ...) 4287{ 4288 char *s; 4289 va_list v; 4290 va_start (v,p); 4291 s = g (p, va_arg (v,int)); 4292 va_end (v); 4293 return s; 4294} 4295 4296/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4297 function prototypes and stuff, but not '\xHH' hex character constants. 4298 These don't provoke an error unfortunately, instead are silently treated 4299 as 'x'. The following induces an error, until -std is added to get 4300 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4301 array size at least. It's necessary to write '\x00'==0 to get something 4302 that's true only with -std. */ 4303int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4304 4305/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4306 inside strings and character constants. */ 4307#define FOO(x) 'x' 4308int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4309 4310int test (int i, double x); 4311struct s1 {int (*f) (int a);}; 4312struct s2 {int (*f) (double a);}; 4313int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4314int argc; 4315char **argv; 4316int 4317main () 4318{ 4319return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4320 ; 4321 return 0; 4322} 4323_ACEOF 4324for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4325 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4326do 4327 CC="$ac_save_CC $ac_arg" 4328 if ac_fn_c_try_compile "$LINENO"; then : 4329 ac_cv_prog_cc_c89=$ac_arg 4330fi 4331rm -f core conftest.err conftest.$ac_objext 4332 test "x$ac_cv_prog_cc_c89" != "xno" && break 4333done 4334rm -f conftest.$ac_ext 4335CC=$ac_save_CC 4336 4337fi 4338# AC_CACHE_VAL 4339case "x$ac_cv_prog_cc_c89" in 4340 x) 4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4342$as_echo "none needed" >&6; } ;; 4343 xno) 4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4345$as_echo "unsupported" >&6; } ;; 4346 *) 4347 CC="$CC $ac_cv_prog_cc_c89" 4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4349$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4350esac 4351if test "x$ac_cv_prog_cc_c89" != xno; then : 4352 4353fi 4354 4355ac_ext=c 4356ac_cpp='$CPP $CPPFLAGS' 4357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4359ac_compiler_gnu=$ac_cv_c_compiler_gnu 4360 4361ac_ext=c 4362ac_cpp='$CPP $CPPFLAGS' 4363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4365ac_compiler_gnu=$ac_cv_c_compiler_gnu 4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4367$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4368if ${am_cv_prog_cc_c_o+:} false; then : 4369 $as_echo_n "(cached) " >&6 4370else 4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4372/* end confdefs.h. */ 4373 4374int 4375main () 4376{ 4377 4378 ; 4379 return 0; 4380} 4381_ACEOF 4382 # Make sure it works both with $CC and with simple cc. 4383 # Following AC_PROG_CC_C_O, we do the test twice because some 4384 # compilers refuse to overwrite an existing .o file with -o, 4385 # though they will create one. 4386 am_cv_prog_cc_c_o=yes 4387 for am_i in 1 2; do 4388 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4389 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4390 ac_status=$? 4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4392 (exit $ac_status); } \ 4393 && test -f conftest2.$ac_objext; then 4394 : OK 4395 else 4396 am_cv_prog_cc_c_o=no 4397 break 4398 fi 4399 done 4400 rm -f core conftest* 4401 unset am_i 4402fi 4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4404$as_echo "$am_cv_prog_cc_c_o" >&6; } 4405if test "$am_cv_prog_cc_c_o" != yes; then 4406 # Losing compiler, so override with the script. 4407 # FIXME: It is wrong to rewrite CC. 4408 # But if we don't then we get into trouble of one sort or another. 4409 # A longer-term fix would be to have automake use am__CC in this case, 4410 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4411 CC="$am_aux_dir/compile $CC" 4412fi 4413ac_ext=c 4414ac_cpp='$CPP $CPPFLAGS' 4415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4417ac_compiler_gnu=$ac_cv_c_compiler_gnu 4418 4419 4420depcc="$CC" am_compiler_list= 4421 4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4423$as_echo_n "checking dependency style of $depcc... " >&6; } 4424if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4425 $as_echo_n "(cached) " >&6 4426else 4427 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4428 # We make a subdir and do the tests there. Otherwise we can end up 4429 # making bogus files that we don't know about and never remove. For 4430 # instance it was reported that on HP-UX the gcc test will end up 4431 # making a dummy file named 'D' -- because '-MD' means "put the output 4432 # in D". 4433 rm -rf conftest.dir 4434 mkdir conftest.dir 4435 # Copy depcomp to subdir because otherwise we won't find it if we're 4436 # using a relative directory. 4437 cp "$am_depcomp" conftest.dir 4438 cd conftest.dir 4439 # We will build objects and dependencies in a subdirectory because 4440 # it helps to detect inapplicable dependency modes. For instance 4441 # both Tru64's cc and ICC support -MD to output dependencies as a 4442 # side effect of compilation, but ICC will put the dependencies in 4443 # the current directory while Tru64 will put them in the object 4444 # directory. 4445 mkdir sub 4446 4447 am_cv_CC_dependencies_compiler_type=none 4448 if test "$am_compiler_list" = ""; then 4449 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4450 fi 4451 am__universal=false 4452 case " $depcc " in #( 4453 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4454 esac 4455 4456 for depmode in $am_compiler_list; do 4457 # Setup a source with many dependencies, because some compilers 4458 # like to wrap large dependency lists on column 80 (with \), and 4459 # we should not choose a depcomp mode which is confused by this. 4460 # 4461 # We need to recreate these files for each test, as the compiler may 4462 # overwrite some of them when testing with obscure command lines. 4463 # This happens at least with the AIX C compiler. 4464 : > sub/conftest.c 4465 for i in 1 2 3 4 5 6; do 4466 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4467 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4468 # Solaris 10 /bin/sh. 4469 echo '/* dummy */' > sub/conftst$i.h 4470 done 4471 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4472 4473 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4474 # mode. It turns out that the SunPro C++ compiler does not properly 4475 # handle '-M -o', and we need to detect this. Also, some Intel 4476 # versions had trouble with output in subdirs. 4477 am__obj=sub/conftest.${OBJEXT-o} 4478 am__minus_obj="-o $am__obj" 4479 case $depmode in 4480 gcc) 4481 # This depmode causes a compiler race in universal mode. 4482 test "$am__universal" = false || continue 4483 ;; 4484 nosideeffect) 4485 # After this tag, mechanisms are not by side-effect, so they'll 4486 # only be used when explicitly requested. 4487 if test "x$enable_dependency_tracking" = xyes; then 4488 continue 4489 else 4490 break 4491 fi 4492 ;; 4493 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4494 # This compiler won't grok '-c -o', but also, the minuso test has 4495 # not run yet. These depmodes are late enough in the game, and 4496 # so weak that their functioning should not be impacted. 4497 am__obj=conftest.${OBJEXT-o} 4498 am__minus_obj= 4499 ;; 4500 none) break ;; 4501 esac 4502 if depmode=$depmode \ 4503 source=sub/conftest.c object=$am__obj \ 4504 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4505 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4506 >/dev/null 2>conftest.err && 4507 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4508 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4509 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4510 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4511 # icc doesn't choke on unknown options, it will just issue warnings 4512 # or remarks (even with -Werror). So we grep stderr for any message 4513 # that says an option was ignored or not supported. 4514 # When given -MP, icc 7.0 and 7.1 complain thusly: 4515 # icc: Command line warning: ignoring option '-M'; no argument required 4516 # The diagnosis changed in icc 8.0: 4517 # icc: Command line remark: option '-MP' not supported 4518 if (grep 'ignoring option' conftest.err || 4519 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4520 am_cv_CC_dependencies_compiler_type=$depmode 4521 break 4522 fi 4523 fi 4524 done 4525 4526 cd .. 4527 rm -rf conftest.dir 4528else 4529 am_cv_CC_dependencies_compiler_type=none 4530fi 4531 4532fi 4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4534$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4535CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4536 4537 if 4538 test "x$enable_dependency_tracking" != xno \ 4539 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4540 am__fastdepCC_TRUE= 4541 am__fastdepCC_FALSE='#' 4542else 4543 am__fastdepCC_TRUE='#' 4544 am__fastdepCC_FALSE= 4545fi 4546 4547 4548 4549 4550 4551case "$am__api_version" in 4552 1.01234) 4553 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5 4554 ;; 4555 *) 4556 ;; 4557esac 4558 4559INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.22 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 4560INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` 4561INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 4562if test -n "0.22"; then 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.22" >&5 4564$as_echo_n "checking for intltool >= 0.22... " >&6; } 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5 4566$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; } 4567 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || 4568 as_fn_error $? "Your intltool is too old. You need intltool 0.22 or later." "$LINENO" 5 4569fi 4570 4571# Extract the first word of "intltool-update", so it can be a program name with args. 4572set dummy intltool-update; ac_word=$2 4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4574$as_echo_n "checking for $ac_word... " >&6; } 4575if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then : 4576 $as_echo_n "(cached) " >&6 4577else 4578 case $INTLTOOL_UPDATE in 4579 [\\/]* | ?:[\\/]*) 4580 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path. 4581 ;; 4582 *) 4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4584for as_dir in $PATH 4585do 4586 IFS=$as_save_IFS 4587 test -z "$as_dir" && as_dir=. 4588 for ac_exec_ext in '' $ac_executable_extensions; do 4589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4590 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext" 4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4592 break 2 4593 fi 4594done 4595 done 4596IFS=$as_save_IFS 4597 4598 ;; 4599esac 4600fi 4601INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE 4602if test -n "$INTLTOOL_UPDATE"; then 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5 4604$as_echo "$INTLTOOL_UPDATE" >&6; } 4605else 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4607$as_echo "no" >&6; } 4608fi 4609 4610 4611# Extract the first word of "intltool-merge", so it can be a program name with args. 4612set dummy intltool-merge; ac_word=$2 4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4614$as_echo_n "checking for $ac_word... " >&6; } 4615if ${ac_cv_path_INTLTOOL_MERGE+:} false; then : 4616 $as_echo_n "(cached) " >&6 4617else 4618 case $INTLTOOL_MERGE in 4619 [\\/]* | ?:[\\/]*) 4620 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path. 4621 ;; 4622 *) 4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4624for as_dir in $PATH 4625do 4626 IFS=$as_save_IFS 4627 test -z "$as_dir" && as_dir=. 4628 for ac_exec_ext in '' $ac_executable_extensions; do 4629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4630 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext" 4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4632 break 2 4633 fi 4634done 4635 done 4636IFS=$as_save_IFS 4637 4638 ;; 4639esac 4640fi 4641INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE 4642if test -n "$INTLTOOL_MERGE"; then 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5 4644$as_echo "$INTLTOOL_MERGE" >&6; } 4645else 4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4647$as_echo "no" >&6; } 4648fi 4649 4650 4651# Extract the first word of "intltool-extract", so it can be a program name with args. 4652set dummy intltool-extract; ac_word=$2 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4654$as_echo_n "checking for $ac_word... " >&6; } 4655if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then : 4656 $as_echo_n "(cached) " >&6 4657else 4658 case $INTLTOOL_EXTRACT in 4659 [\\/]* | ?:[\\/]*) 4660 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path. 4661 ;; 4662 *) 4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4664for as_dir in $PATH 4665do 4666 IFS=$as_save_IFS 4667 test -z "$as_dir" && as_dir=. 4668 for ac_exec_ext in '' $ac_executable_extensions; do 4669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4670 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext" 4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4672 break 2 4673 fi 4674done 4675 done 4676IFS=$as_save_IFS 4677 4678 ;; 4679esac 4680fi 4681INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT 4682if test -n "$INTLTOOL_EXTRACT"; then 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5 4684$as_echo "$INTLTOOL_EXTRACT" >&6; } 4685else 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4687$as_echo "no" >&6; } 4688fi 4689 4690 4691if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then 4692 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5 4693fi 4694 4695if test -z "$AM_DEFAULT_VERBOSITY"; then 4696 AM_DEFAULT_VERBOSITY=1 4697fi 4698 4699 4700INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' 4701INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' 4702INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;' 4703 4704 4705 4706 4707INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' 4708intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' 4709intltool__v_merge_options_0='-q' 4710 4711 4712 4713 4714 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4715INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4716 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4717 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4718 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@' 4719 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4720 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4721 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4722INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4723 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4724 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4725if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then 4726 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@' 4727else 4728 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir' 4729fi 4730 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4731 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4732 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4733 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4734 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4735 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4736 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834# Check the gettext tools to make sure they are GNU 4835# Extract the first word of "xgettext", so it can be a program name with args. 4836set dummy xgettext; ac_word=$2 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4838$as_echo_n "checking for $ac_word... " >&6; } 4839if ${ac_cv_path_XGETTEXT+:} false; then : 4840 $as_echo_n "(cached) " >&6 4841else 4842 case $XGETTEXT in 4843 [\\/]* | ?:[\\/]*) 4844 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 4845 ;; 4846 *) 4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4848for as_dir in $PATH 4849do 4850 IFS=$as_save_IFS 4851 test -z "$as_dir" && as_dir=. 4852 for ac_exec_ext in '' $ac_executable_extensions; do 4853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4854 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" 4855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4856 break 2 4857 fi 4858done 4859 done 4860IFS=$as_save_IFS 4861 4862 ;; 4863esac 4864fi 4865XGETTEXT=$ac_cv_path_XGETTEXT 4866if test -n "$XGETTEXT"; then 4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 4868$as_echo "$XGETTEXT" >&6; } 4869else 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4871$as_echo "no" >&6; } 4872fi 4873 4874 4875# Extract the first word of "msgmerge", so it can be a program name with args. 4876set dummy msgmerge; ac_word=$2 4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4878$as_echo_n "checking for $ac_word... " >&6; } 4879if ${ac_cv_path_MSGMERGE+:} false; then : 4880 $as_echo_n "(cached) " >&6 4881else 4882 case $MSGMERGE in 4883 [\\/]* | ?:[\\/]*) 4884 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 4885 ;; 4886 *) 4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4888for as_dir in $PATH 4889do 4890 IFS=$as_save_IFS 4891 test -z "$as_dir" && as_dir=. 4892 for ac_exec_ext in '' $ac_executable_extensions; do 4893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4894 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" 4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4896 break 2 4897 fi 4898done 4899 done 4900IFS=$as_save_IFS 4901 4902 ;; 4903esac 4904fi 4905MSGMERGE=$ac_cv_path_MSGMERGE 4906if test -n "$MSGMERGE"; then 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 4908$as_echo "$MSGMERGE" >&6; } 4909else 4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4911$as_echo "no" >&6; } 4912fi 4913 4914 4915# Extract the first word of "msgfmt", so it can be a program name with args. 4916set dummy msgfmt; ac_word=$2 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4918$as_echo_n "checking for $ac_word... " >&6; } 4919if ${ac_cv_path_MSGFMT+:} false; then : 4920 $as_echo_n "(cached) " >&6 4921else 4922 case $MSGFMT in 4923 [\\/]* | ?:[\\/]*) 4924 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 4925 ;; 4926 *) 4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4928for as_dir in $PATH 4929do 4930 IFS=$as_save_IFS 4931 test -z "$as_dir" && as_dir=. 4932 for ac_exec_ext in '' $ac_executable_extensions; do 4933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4934 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" 4935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4936 break 2 4937 fi 4938done 4939 done 4940IFS=$as_save_IFS 4941 4942 ;; 4943esac 4944fi 4945MSGFMT=$ac_cv_path_MSGFMT 4946if test -n "$MSGFMT"; then 4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 4948$as_echo "$MSGFMT" >&6; } 4949else 4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4951$as_echo "no" >&6; } 4952fi 4953 4954 4955# Extract the first word of "gmsgfmt", so it can be a program name with args. 4956set dummy gmsgfmt; ac_word=$2 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4958$as_echo_n "checking for $ac_word... " >&6; } 4959if ${ac_cv_path_GMSGFMT+:} false; then : 4960 $as_echo_n "(cached) " >&6 4961else 4962 case $GMSGFMT in 4963 [\\/]* | ?:[\\/]*) 4964 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 4965 ;; 4966 *) 4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4968for as_dir in $PATH 4969do 4970 IFS=$as_save_IFS 4971 test -z "$as_dir" && as_dir=. 4972 for ac_exec_ext in '' $ac_executable_extensions; do 4973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4974 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4976 break 2 4977 fi 4978done 4979 done 4980IFS=$as_save_IFS 4981 4982 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 4983 ;; 4984esac 4985fi 4986GMSGFMT=$ac_cv_path_GMSGFMT 4987if test -n "$GMSGFMT"; then 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 4989$as_echo "$GMSGFMT" >&6; } 4990else 4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4992$as_echo "no" >&6; } 4993fi 4994 4995 4996if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then 4997 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 4998fi 4999xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" 5000mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" 5001mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" 5002if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then 5003 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 5004fi 5005 5006# Extract the first word of "perl", so it can be a program name with args. 5007set dummy perl; ac_word=$2 5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5009$as_echo_n "checking for $ac_word... " >&6; } 5010if ${ac_cv_path_INTLTOOL_PERL+:} false; then : 5011 $as_echo_n "(cached) " >&6 5012else 5013 case $INTLTOOL_PERL in 5014 [\\/]* | ?:[\\/]*) 5015 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. 5016 ;; 5017 *) 5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5019for as_dir in $PATH 5020do 5021 IFS=$as_save_IFS 5022 test -z "$as_dir" && as_dir=. 5023 for ac_exec_ext in '' $ac_executable_extensions; do 5024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5025 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" 5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5027 break 2 5028 fi 5029done 5030 done 5031IFS=$as_save_IFS 5032 5033 ;; 5034esac 5035fi 5036INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL 5037if test -n "$INTLTOOL_PERL"; then 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5 5039$as_echo "$INTLTOOL_PERL" >&6; } 5040else 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5042$as_echo "no" >&6; } 5043fi 5044 5045 5046if test -z "$INTLTOOL_PERL"; then 5047 as_fn_error $? "perl not found" "$LINENO" 5 5048fi 5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5 5050$as_echo_n "checking for perl >= 5.8.1... " >&6; } 5051$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 5052if test $? -ne 0; then 5053 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5 5054else 5055 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` 5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5 5057$as_echo "$IT_PERL_VERSION" >&6; } 5058fi 5059if test "x" != "xno-xml"; then 5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5 5061$as_echo_n "checking for XML::Parser... " >&6; } 5062 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then 5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5064$as_echo "ok" >&6; } 5065 else 5066 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5 5067 fi 5068fi 5069 5070# Substitute ALL_LINGUAS so we can use it in po/Makefile 5071 5072 5073# Set DATADIRNAME correctly if it is not set yet 5074# (copied from glib-gettext.m4) 5075if test -z "$DATADIRNAME"; then 5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5077/* end confdefs.h. */ 5078 5079int 5080main () 5081{ 5082extern int _nl_msg_cat_cntr; 5083 return _nl_msg_cat_cntr 5084 ; 5085 return 0; 5086} 5087_ACEOF 5088if ac_fn_c_try_link "$LINENO"; then : 5089 DATADIRNAME=share 5090else 5091 case $host in 5092 *-*-solaris*) 5093 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 5094if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 5095 DATADIRNAME=share 5096else 5097 DATADIRNAME=lib 5098fi 5099 5100 ;; 5101 *) 5102 DATADIRNAME=lib 5103 ;; 5104 esac 5105fi 5106rm -f core conftest.err conftest.$ac_objext \ 5107 conftest$ac_exeext conftest.$ac_ext 5108fi 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5122 if test -n "$ac_tool_prefix"; then 5123 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5124set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5126$as_echo_n "checking for $ac_word... " >&6; } 5127if ${ac_cv_path_PKG_CONFIG+:} false; then : 5128 $as_echo_n "(cached) " >&6 5129else 5130 case $PKG_CONFIG in 5131 [\\/]* | ?:[\\/]*) 5132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5133 ;; 5134 *) 5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5136for as_dir in $PATH 5137do 5138 IFS=$as_save_IFS 5139 test -z "$as_dir" && as_dir=. 5140 for ac_exec_ext in '' $ac_executable_extensions; do 5141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5142 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5144 break 2 5145 fi 5146done 5147 done 5148IFS=$as_save_IFS 5149 5150 ;; 5151esac 5152fi 5153PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5154if test -n "$PKG_CONFIG"; then 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5156$as_echo "$PKG_CONFIG" >&6; } 5157else 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5159$as_echo "no" >&6; } 5160fi 5161 5162 5163fi 5164if test -z "$ac_cv_path_PKG_CONFIG"; then 5165 ac_pt_PKG_CONFIG=$PKG_CONFIG 5166 # Extract the first word of "pkg-config", so it can be a program name with args. 5167set dummy pkg-config; ac_word=$2 5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5169$as_echo_n "checking for $ac_word... " >&6; } 5170if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 5171 $as_echo_n "(cached) " >&6 5172else 5173 case $ac_pt_PKG_CONFIG in 5174 [\\/]* | ?:[\\/]*) 5175 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5176 ;; 5177 *) 5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5179for as_dir in $PATH 5180do 5181 IFS=$as_save_IFS 5182 test -z "$as_dir" && as_dir=. 5183 for ac_exec_ext in '' $ac_executable_extensions; do 5184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5185 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5187 break 2 5188 fi 5189done 5190 done 5191IFS=$as_save_IFS 5192 5193 ;; 5194esac 5195fi 5196ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5197if test -n "$ac_pt_PKG_CONFIG"; then 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5199$as_echo "$ac_pt_PKG_CONFIG" >&6; } 5200else 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5202$as_echo "no" >&6; } 5203fi 5204 5205 if test "x$ac_pt_PKG_CONFIG" = x; then 5206 PKG_CONFIG="" 5207 else 5208 case $cross_compiling:$ac_tool_warned in 5209yes:) 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5212ac_tool_warned=yes ;; 5213esac 5214 PKG_CONFIG=$ac_pt_PKG_CONFIG 5215 fi 5216else 5217 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5218fi 5219 5220fi 5221if test -n "$PKG_CONFIG"; then 5222 _pkg_min_version=0.9.0 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5224$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5225 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5227$as_echo "yes" >&6; } 5228 else 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5230$as_echo "no" >&6; } 5231 PKG_CONFIG="" 5232 fi 5233fi 5234 5235 5236case `pwd` in 5237 *\ * | *\ *) 5238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5239$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5240esac 5241 5242 5243 5244macro_version='2.4.2' 5245macro_revision='1.3337' 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259ltmain="$ac_aux_dir/ltmain.sh" 5260 5261# Make sure we can run config.sub. 5262$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5263 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5264 5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5266$as_echo_n "checking build system type... " >&6; } 5267if ${ac_cv_build+:} false; then : 5268 $as_echo_n "(cached) " >&6 5269else 5270 ac_build_alias=$build_alias 5271test "x$ac_build_alias" = x && 5272 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5273test "x$ac_build_alias" = x && 5274 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5275ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5276 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5277 5278fi 5279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5280$as_echo "$ac_cv_build" >&6; } 5281case $ac_cv_build in 5282*-*-*) ;; 5283*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5284esac 5285build=$ac_cv_build 5286ac_save_IFS=$IFS; IFS='-' 5287set x $ac_cv_build 5288shift 5289build_cpu=$1 5290build_vendor=$2 5291shift; shift 5292# Remember, the first character of IFS is used to create $*, 5293# except with old shells: 5294build_os=$* 5295IFS=$ac_save_IFS 5296case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5297 5298 5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5300$as_echo_n "checking host system type... " >&6; } 5301if ${ac_cv_host+:} false; then : 5302 $as_echo_n "(cached) " >&6 5303else 5304 if test "x$host_alias" = x; then 5305 ac_cv_host=$ac_cv_build 5306else 5307 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5308 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5309fi 5310 5311fi 5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5313$as_echo "$ac_cv_host" >&6; } 5314case $ac_cv_host in 5315*-*-*) ;; 5316*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5317esac 5318host=$ac_cv_host 5319ac_save_IFS=$IFS; IFS='-' 5320set x $ac_cv_host 5321shift 5322host_cpu=$1 5323host_vendor=$2 5324shift; shift 5325# Remember, the first character of IFS is used to create $*, 5326# except with old shells: 5327host_os=$* 5328IFS=$ac_save_IFS 5329case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5330 5331 5332# Backslashify metacharacters that are still active within 5333# double-quoted strings. 5334sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5335 5336# Same as above, but do not quote variable references. 5337double_quote_subst='s/\(["`\\]\)/\\\1/g' 5338 5339# Sed substitution to delay expansion of an escaped shell variable in a 5340# double_quote_subst'ed string. 5341delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5342 5343# Sed substitution to delay expansion of an escaped single quote. 5344delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5345 5346# Sed substitution to avoid accidental globbing in evaled expressions 5347no_glob_subst='s/\*/\\\*/g' 5348 5349ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5350ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5351ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5352 5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5354$as_echo_n "checking how to print strings... " >&6; } 5355# Test print first, because it will be a builtin if present. 5356if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5357 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5358 ECHO='print -r --' 5359elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5360 ECHO='printf %s\n' 5361else 5362 # Use this function as a fallback that always works. 5363 func_fallback_echo () 5364 { 5365 eval 'cat <<_LTECHO_EOF 5366$1 5367_LTECHO_EOF' 5368 } 5369 ECHO='func_fallback_echo' 5370fi 5371 5372# func_echo_all arg... 5373# Invoke $ECHO with all args, space-separated. 5374func_echo_all () 5375{ 5376 $ECHO "" 5377} 5378 5379case "$ECHO" in 5380 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5381$as_echo "printf" >&6; } ;; 5382 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5383$as_echo "print -r" >&6; } ;; 5384 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5385$as_echo "cat" >&6; } ;; 5386esac 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5402$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5403if ${ac_cv_path_SED+:} false; then : 5404 $as_echo_n "(cached) " >&6 5405else 5406 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5407 for ac_i in 1 2 3 4 5 6 7; do 5408 ac_script="$ac_script$as_nl$ac_script" 5409 done 5410 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5411 { ac_script=; unset ac_script;} 5412 if test -z "$SED"; then 5413 ac_path_SED_found=false 5414 # Loop through the user's path and test for each of PROGNAME-LIST 5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5416for as_dir in $PATH 5417do 5418 IFS=$as_save_IFS 5419 test -z "$as_dir" && as_dir=. 5420 for ac_prog in sed gsed; do 5421 for ac_exec_ext in '' $ac_executable_extensions; do 5422 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5423 as_fn_executable_p "$ac_path_SED" || continue 5424# Check for GNU ac_path_SED and select it if it is found. 5425 # Check for GNU $ac_path_SED 5426case `"$ac_path_SED" --version 2>&1` in 5427*GNU*) 5428 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5429*) 5430 ac_count=0 5431 $as_echo_n 0123456789 >"conftest.in" 5432 while : 5433 do 5434 cat "conftest.in" "conftest.in" >"conftest.tmp" 5435 mv "conftest.tmp" "conftest.in" 5436 cp "conftest.in" "conftest.nl" 5437 $as_echo '' >> "conftest.nl" 5438 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5440 as_fn_arith $ac_count + 1 && ac_count=$as_val 5441 if test $ac_count -gt ${ac_path_SED_max-0}; then 5442 # Best one so far, save it but keep looking for a better one 5443 ac_cv_path_SED="$ac_path_SED" 5444 ac_path_SED_max=$ac_count 5445 fi 5446 # 10*(2^10) chars as input seems more than enough 5447 test $ac_count -gt 10 && break 5448 done 5449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5450esac 5451 5452 $ac_path_SED_found && break 3 5453 done 5454 done 5455 done 5456IFS=$as_save_IFS 5457 if test -z "$ac_cv_path_SED"; then 5458 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5459 fi 5460else 5461 ac_cv_path_SED=$SED 5462fi 5463 5464fi 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5466$as_echo "$ac_cv_path_SED" >&6; } 5467 SED="$ac_cv_path_SED" 5468 rm -f conftest.sed 5469 5470test -z "$SED" && SED=sed 5471Xsed="$SED -e 1s/^X//" 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5484$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5485if ${ac_cv_path_GREP+:} false; then : 5486 $as_echo_n "(cached) " >&6 5487else 5488 if test -z "$GREP"; then 5489 ac_path_GREP_found=false 5490 # Loop through the user's path and test for each of PROGNAME-LIST 5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5492for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5493do 5494 IFS=$as_save_IFS 5495 test -z "$as_dir" && as_dir=. 5496 for ac_prog in grep ggrep; do 5497 for ac_exec_ext in '' $ac_executable_extensions; do 5498 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5499 as_fn_executable_p "$ac_path_GREP" || continue 5500# Check for GNU ac_path_GREP and select it if it is found. 5501 # Check for GNU $ac_path_GREP 5502case `"$ac_path_GREP" --version 2>&1` in 5503*GNU*) 5504 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5505*) 5506 ac_count=0 5507 $as_echo_n 0123456789 >"conftest.in" 5508 while : 5509 do 5510 cat "conftest.in" "conftest.in" >"conftest.tmp" 5511 mv "conftest.tmp" "conftest.in" 5512 cp "conftest.in" "conftest.nl" 5513 $as_echo 'GREP' >> "conftest.nl" 5514 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5516 as_fn_arith $ac_count + 1 && ac_count=$as_val 5517 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5518 # Best one so far, save it but keep looking for a better one 5519 ac_cv_path_GREP="$ac_path_GREP" 5520 ac_path_GREP_max=$ac_count 5521 fi 5522 # 10*(2^10) chars as input seems more than enough 5523 test $ac_count -gt 10 && break 5524 done 5525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5526esac 5527 5528 $ac_path_GREP_found && break 3 5529 done 5530 done 5531 done 5532IFS=$as_save_IFS 5533 if test -z "$ac_cv_path_GREP"; then 5534 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5535 fi 5536else 5537 ac_cv_path_GREP=$GREP 5538fi 5539 5540fi 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5542$as_echo "$ac_cv_path_GREP" >&6; } 5543 GREP="$ac_cv_path_GREP" 5544 5545 5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5547$as_echo_n "checking for egrep... " >&6; } 5548if ${ac_cv_path_EGREP+:} false; then : 5549 $as_echo_n "(cached) " >&6 5550else 5551 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5552 then ac_cv_path_EGREP="$GREP -E" 5553 else 5554 if test -z "$EGREP"; then 5555 ac_path_EGREP_found=false 5556 # Loop through the user's path and test for each of PROGNAME-LIST 5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5558for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5559do 5560 IFS=$as_save_IFS 5561 test -z "$as_dir" && as_dir=. 5562 for ac_prog in egrep; do 5563 for ac_exec_ext in '' $ac_executable_extensions; do 5564 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5565 as_fn_executable_p "$ac_path_EGREP" || continue 5566# Check for GNU ac_path_EGREP and select it if it is found. 5567 # Check for GNU $ac_path_EGREP 5568case `"$ac_path_EGREP" --version 2>&1` in 5569*GNU*) 5570 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5571*) 5572 ac_count=0 5573 $as_echo_n 0123456789 >"conftest.in" 5574 while : 5575 do 5576 cat "conftest.in" "conftest.in" >"conftest.tmp" 5577 mv "conftest.tmp" "conftest.in" 5578 cp "conftest.in" "conftest.nl" 5579 $as_echo 'EGREP' >> "conftest.nl" 5580 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5582 as_fn_arith $ac_count + 1 && ac_count=$as_val 5583 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5584 # Best one so far, save it but keep looking for a better one 5585 ac_cv_path_EGREP="$ac_path_EGREP" 5586 ac_path_EGREP_max=$ac_count 5587 fi 5588 # 10*(2^10) chars as input seems more than enough 5589 test $ac_count -gt 10 && break 5590 done 5591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5592esac 5593 5594 $ac_path_EGREP_found && break 3 5595 done 5596 done 5597 done 5598IFS=$as_save_IFS 5599 if test -z "$ac_cv_path_EGREP"; then 5600 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5601 fi 5602else 5603 ac_cv_path_EGREP=$EGREP 5604fi 5605 5606 fi 5607fi 5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5609$as_echo "$ac_cv_path_EGREP" >&6; } 5610 EGREP="$ac_cv_path_EGREP" 5611 5612 5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5614$as_echo_n "checking for fgrep... " >&6; } 5615if ${ac_cv_path_FGREP+:} false; then : 5616 $as_echo_n "(cached) " >&6 5617else 5618 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5619 then ac_cv_path_FGREP="$GREP -F" 5620 else 5621 if test -z "$FGREP"; then 5622 ac_path_FGREP_found=false 5623 # Loop through the user's path and test for each of PROGNAME-LIST 5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5625for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5626do 5627 IFS=$as_save_IFS 5628 test -z "$as_dir" && as_dir=. 5629 for ac_prog in fgrep; do 5630 for ac_exec_ext in '' $ac_executable_extensions; do 5631 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5632 as_fn_executable_p "$ac_path_FGREP" || continue 5633# Check for GNU ac_path_FGREP and select it if it is found. 5634 # Check for GNU $ac_path_FGREP 5635case `"$ac_path_FGREP" --version 2>&1` in 5636*GNU*) 5637 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5638*) 5639 ac_count=0 5640 $as_echo_n 0123456789 >"conftest.in" 5641 while : 5642 do 5643 cat "conftest.in" "conftest.in" >"conftest.tmp" 5644 mv "conftest.tmp" "conftest.in" 5645 cp "conftest.in" "conftest.nl" 5646 $as_echo 'FGREP' >> "conftest.nl" 5647 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5649 as_fn_arith $ac_count + 1 && ac_count=$as_val 5650 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5651 # Best one so far, save it but keep looking for a better one 5652 ac_cv_path_FGREP="$ac_path_FGREP" 5653 ac_path_FGREP_max=$ac_count 5654 fi 5655 # 10*(2^10) chars as input seems more than enough 5656 test $ac_count -gt 10 && break 5657 done 5658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5659esac 5660 5661 $ac_path_FGREP_found && break 3 5662 done 5663 done 5664 done 5665IFS=$as_save_IFS 5666 if test -z "$ac_cv_path_FGREP"; then 5667 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5668 fi 5669else 5670 ac_cv_path_FGREP=$FGREP 5671fi 5672 5673 fi 5674fi 5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5676$as_echo "$ac_cv_path_FGREP" >&6; } 5677 FGREP="$ac_cv_path_FGREP" 5678 5679 5680test -z "$GREP" && GREP=grep 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700# Check whether --with-gnu-ld was given. 5701if test "${with_gnu_ld+set}" = set; then : 5702 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5703else 5704 with_gnu_ld=no 5705fi 5706 5707ac_prog=ld 5708if test "$GCC" = yes; then 5709 # Check if gcc -print-prog-name=ld gives a path. 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5711$as_echo_n "checking for ld used by $CC... " >&6; } 5712 case $host in 5713 *-*-mingw*) 5714 # gcc leaves a trailing carriage return which upsets mingw 5715 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5716 *) 5717 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5718 esac 5719 case $ac_prog in 5720 # Accept absolute paths. 5721 [\\/]* | ?:[\\/]*) 5722 re_direlt='/[^/][^/]*/\.\./' 5723 # Canonicalize the pathname of ld 5724 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5725 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5726 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5727 done 5728 test -z "$LD" && LD="$ac_prog" 5729 ;; 5730 "") 5731 # If it fails, then pretend we aren't using GCC. 5732 ac_prog=ld 5733 ;; 5734 *) 5735 # If it is relative, then search for the first ld in PATH. 5736 with_gnu_ld=unknown 5737 ;; 5738 esac 5739elif test "$with_gnu_ld" = yes; then 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5741$as_echo_n "checking for GNU ld... " >&6; } 5742else 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5744$as_echo_n "checking for non-GNU ld... " >&6; } 5745fi 5746if ${lt_cv_path_LD+:} false; then : 5747 $as_echo_n "(cached) " >&6 5748else 5749 if test -z "$LD"; then 5750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5751 for ac_dir in $PATH; do 5752 IFS="$lt_save_ifs" 5753 test -z "$ac_dir" && ac_dir=. 5754 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5755 lt_cv_path_LD="$ac_dir/$ac_prog" 5756 # Check to see if the program is GNU ld. I'd rather use --version, 5757 # but apparently some variants of GNU ld only accept -v. 5758 # Break only if it was the GNU/non-GNU ld that we prefer. 5759 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5760 *GNU* | *'with BFD'*) 5761 test "$with_gnu_ld" != no && break 5762 ;; 5763 *) 5764 test "$with_gnu_ld" != yes && break 5765 ;; 5766 esac 5767 fi 5768 done 5769 IFS="$lt_save_ifs" 5770else 5771 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5772fi 5773fi 5774 5775LD="$lt_cv_path_LD" 5776if test -n "$LD"; then 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5778$as_echo "$LD" >&6; } 5779else 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5781$as_echo "no" >&6; } 5782fi 5783test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5785$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5786if ${lt_cv_prog_gnu_ld+:} false; then : 5787 $as_echo_n "(cached) " >&6 5788else 5789 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5790case `$LD -v 2>&1 </dev/null` in 5791*GNU* | *'with BFD'*) 5792 lt_cv_prog_gnu_ld=yes 5793 ;; 5794*) 5795 lt_cv_prog_gnu_ld=no 5796 ;; 5797esac 5798fi 5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5800$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5801with_gnu_ld=$lt_cv_prog_gnu_ld 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5812$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5813if ${lt_cv_path_NM+:} false; then : 5814 $as_echo_n "(cached) " >&6 5815else 5816 if test -n "$NM"; then 5817 # Let the user override the test. 5818 lt_cv_path_NM="$NM" 5819else 5820 lt_nm_to_check="${ac_tool_prefix}nm" 5821 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5822 lt_nm_to_check="$lt_nm_to_check nm" 5823 fi 5824 for lt_tmp_nm in $lt_nm_to_check; do 5825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5826 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5827 IFS="$lt_save_ifs" 5828 test -z "$ac_dir" && ac_dir=. 5829 tmp_nm="$ac_dir/$lt_tmp_nm" 5830 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5831 # Check to see if the nm accepts a BSD-compat flag. 5832 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5833 # nm: unknown option "B" ignored 5834 # Tru64's nm complains that /dev/null is an invalid object file 5835 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5836 */dev/null* | *'Invalid file or object type'*) 5837 lt_cv_path_NM="$tmp_nm -B" 5838 break 5839 ;; 5840 *) 5841 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5842 */dev/null*) 5843 lt_cv_path_NM="$tmp_nm -p" 5844 break 5845 ;; 5846 *) 5847 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5848 continue # so that we can try to find one that supports BSD flags 5849 ;; 5850 esac 5851 ;; 5852 esac 5853 fi 5854 done 5855 IFS="$lt_save_ifs" 5856 done 5857 : ${lt_cv_path_NM=no} 5858fi 5859fi 5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5861$as_echo "$lt_cv_path_NM" >&6; } 5862if test "$lt_cv_path_NM" != "no"; then 5863 NM="$lt_cv_path_NM" 5864else 5865 # Didn't find any BSD compatible name lister, look for dumpbin. 5866 if test -n "$DUMPBIN"; then : 5867 # Let the user override the test. 5868 else 5869 if test -n "$ac_tool_prefix"; then 5870 for ac_prog in dumpbin "link -dump" 5871 do 5872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5873set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5875$as_echo_n "checking for $ac_word... " >&6; } 5876if ${ac_cv_prog_DUMPBIN+:} false; then : 5877 $as_echo_n "(cached) " >&6 5878else 5879 if test -n "$DUMPBIN"; then 5880 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5881else 5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5883for as_dir in $PATH 5884do 5885 IFS=$as_save_IFS 5886 test -z "$as_dir" && as_dir=. 5887 for ac_exec_ext in '' $ac_executable_extensions; do 5888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5889 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5891 break 2 5892 fi 5893done 5894 done 5895IFS=$as_save_IFS 5896 5897fi 5898fi 5899DUMPBIN=$ac_cv_prog_DUMPBIN 5900if test -n "$DUMPBIN"; then 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5902$as_echo "$DUMPBIN" >&6; } 5903else 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5905$as_echo "no" >&6; } 5906fi 5907 5908 5909 test -n "$DUMPBIN" && break 5910 done 5911fi 5912if test -z "$DUMPBIN"; then 5913 ac_ct_DUMPBIN=$DUMPBIN 5914 for ac_prog in dumpbin "link -dump" 5915do 5916 # Extract the first word of "$ac_prog", so it can be a program name with args. 5917set dummy $ac_prog; ac_word=$2 5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5919$as_echo_n "checking for $ac_word... " >&6; } 5920if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5921 $as_echo_n "(cached) " >&6 5922else 5923 if test -n "$ac_ct_DUMPBIN"; then 5924 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5925else 5926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5927for as_dir in $PATH 5928do 5929 IFS=$as_save_IFS 5930 test -z "$as_dir" && as_dir=. 5931 for ac_exec_ext in '' $ac_executable_extensions; do 5932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5933 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5935 break 2 5936 fi 5937done 5938 done 5939IFS=$as_save_IFS 5940 5941fi 5942fi 5943ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5944if test -n "$ac_ct_DUMPBIN"; then 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5946$as_echo "$ac_ct_DUMPBIN" >&6; } 5947else 5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5949$as_echo "no" >&6; } 5950fi 5951 5952 5953 test -n "$ac_ct_DUMPBIN" && break 5954done 5955 5956 if test "x$ac_ct_DUMPBIN" = x; then 5957 DUMPBIN=":" 5958 else 5959 case $cross_compiling:$ac_tool_warned in 5960yes:) 5961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5963ac_tool_warned=yes ;; 5964esac 5965 DUMPBIN=$ac_ct_DUMPBIN 5966 fi 5967fi 5968 5969 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5970 *COFF*) 5971 DUMPBIN="$DUMPBIN -symbols" 5972 ;; 5973 *) 5974 DUMPBIN=: 5975 ;; 5976 esac 5977 fi 5978 5979 if test "$DUMPBIN" != ":"; then 5980 NM="$DUMPBIN" 5981 fi 5982fi 5983test -z "$NM" && NM=nm 5984 5985 5986 5987 5988 5989 5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5991$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5992if ${lt_cv_nm_interface+:} false; then : 5993 $as_echo_n "(cached) " >&6 5994else 5995 lt_cv_nm_interface="BSD nm" 5996 echo "int some_variable = 0;" > conftest.$ac_ext 5997 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5998 (eval "$ac_compile" 2>conftest.err) 5999 cat conftest.err >&5 6000 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6001 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6002 cat conftest.err >&5 6003 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6004 cat conftest.out >&5 6005 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6006 lt_cv_nm_interface="MS dumpbin" 6007 fi 6008 rm -f conftest* 6009fi 6010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6011$as_echo "$lt_cv_nm_interface" >&6; } 6012 6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6014$as_echo_n "checking whether ln -s works... " >&6; } 6015LN_S=$as_ln_s 6016if test "$LN_S" = "ln -s"; then 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6018$as_echo "yes" >&6; } 6019else 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6021$as_echo "no, using $LN_S" >&6; } 6022fi 6023 6024# find the maximum length of command line arguments 6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6026$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6027if ${lt_cv_sys_max_cmd_len+:} false; then : 6028 $as_echo_n "(cached) " >&6 6029else 6030 i=0 6031 teststring="ABCD" 6032 6033 case $build_os in 6034 msdosdjgpp*) 6035 # On DJGPP, this test can blow up pretty badly due to problems in libc 6036 # (any single argument exceeding 2000 bytes causes a buffer overrun 6037 # during glob expansion). Even if it were fixed, the result of this 6038 # check would be larger than it should be. 6039 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6040 ;; 6041 6042 gnu*) 6043 # Under GNU Hurd, this test is not required because there is 6044 # no limit to the length of command line arguments. 6045 # Libtool will interpret -1 as no limit whatsoever 6046 lt_cv_sys_max_cmd_len=-1; 6047 ;; 6048 6049 cygwin* | mingw* | cegcc*) 6050 # On Win9x/ME, this test blows up -- it succeeds, but takes 6051 # about 5 minutes as the teststring grows exponentially. 6052 # Worse, since 9x/ME are not pre-emptively multitasking, 6053 # you end up with a "frozen" computer, even though with patience 6054 # the test eventually succeeds (with a max line length of 256k). 6055 # Instead, let's just punt: use the minimum linelength reported by 6056 # all of the supported platforms: 8192 (on NT/2K/XP). 6057 lt_cv_sys_max_cmd_len=8192; 6058 ;; 6059 6060 mint*) 6061 # On MiNT this can take a long time and run out of memory. 6062 lt_cv_sys_max_cmd_len=8192; 6063 ;; 6064 6065 amigaos*) 6066 # On AmigaOS with pdksh, this test takes hours, literally. 6067 # So we just punt and use a minimum line length of 8192. 6068 lt_cv_sys_max_cmd_len=8192; 6069 ;; 6070 6071 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6072 # This has been around since 386BSD, at least. Likely further. 6073 if test -x /sbin/sysctl; then 6074 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6075 elif test -x /usr/sbin/sysctl; then 6076 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6077 else 6078 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6079 fi 6080 # And add a safety zone 6081 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6082 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6083 ;; 6084 6085 interix*) 6086 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6087 lt_cv_sys_max_cmd_len=196608 6088 ;; 6089 6090 os2*) 6091 # The test takes a long time on OS/2. 6092 lt_cv_sys_max_cmd_len=8192 6093 ;; 6094 6095 osf*) 6096 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6097 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6098 # nice to cause kernel panics so lets avoid the loop below. 6099 # First set a reasonable default. 6100 lt_cv_sys_max_cmd_len=16384 6101 # 6102 if test -x /sbin/sysconfig; then 6103 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6104 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6105 esac 6106 fi 6107 ;; 6108 sco3.2v5*) 6109 lt_cv_sys_max_cmd_len=102400 6110 ;; 6111 sysv5* | sco5v6* | sysv4.2uw2*) 6112 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6113 if test -n "$kargmax"; then 6114 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6115 else 6116 lt_cv_sys_max_cmd_len=32768 6117 fi 6118 ;; 6119 *) 6120 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6121 if test -n "$lt_cv_sys_max_cmd_len" && \ 6122 test undefined != "$lt_cv_sys_max_cmd_len"; then 6123 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6125 else 6126 # Make teststring a little bigger before we do anything with it. 6127 # a 1K string should be a reasonable start. 6128 for i in 1 2 3 4 5 6 7 8 ; do 6129 teststring=$teststring$teststring 6130 done 6131 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6132 # If test is not a shell built-in, we'll probably end up computing a 6133 # maximum length that is only half of the actual maximum length, but 6134 # we can't tell. 6135 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 6136 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6137 test $i != 17 # 1/2 MB should be enough 6138 do 6139 i=`expr $i + 1` 6140 teststring=$teststring$teststring 6141 done 6142 # Only check the string length outside the loop. 6143 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6144 teststring= 6145 # Add a significant safety factor because C++ compilers can tack on 6146 # massive amounts of additional arguments before passing them to the 6147 # linker. It appears as though 1/2 is a usable value. 6148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6149 fi 6150 ;; 6151 esac 6152 6153fi 6154 6155if test -n $lt_cv_sys_max_cmd_len ; then 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6157$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6158else 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6160$as_echo "none" >&6; } 6161fi 6162max_cmd_len=$lt_cv_sys_max_cmd_len 6163 6164 6165 6166 6167 6168 6169: ${CP="cp -f"} 6170: ${MV="mv -f"} 6171: ${RM="rm -f"} 6172 6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6174$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6175# Try some XSI features 6176xsi_shell=no 6177( _lt_dummy="a/b/c" 6178 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6179 = c,a/b,b/c, \ 6180 && eval 'test $(( 1 + 1 )) -eq 2 \ 6181 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6182 && xsi_shell=yes 6183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6184$as_echo "$xsi_shell" >&6; } 6185 6186 6187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6188$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6189lt_shell_append=no 6190( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6191 >/dev/null 2>&1 \ 6192 && lt_shell_append=yes 6193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6194$as_echo "$lt_shell_append" >&6; } 6195 6196 6197if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6198 lt_unset=unset 6199else 6200 lt_unset=false 6201fi 6202 6203 6204 6205 6206 6207# test EBCDIC or ASCII 6208case `echo X|tr X '\101'` in 6209 A) # ASCII based system 6210 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6211 lt_SP2NL='tr \040 \012' 6212 lt_NL2SP='tr \015\012 \040\040' 6213 ;; 6214 *) # EBCDIC based system 6215 lt_SP2NL='tr \100 \n' 6216 lt_NL2SP='tr \r\n \100\100' 6217 ;; 6218esac 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6229$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6230if ${lt_cv_to_host_file_cmd+:} false; then : 6231 $as_echo_n "(cached) " >&6 6232else 6233 case $host in 6234 *-*-mingw* ) 6235 case $build in 6236 *-*-mingw* ) # actually msys 6237 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6238 ;; 6239 *-*-cygwin* ) 6240 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6241 ;; 6242 * ) # otherwise, assume *nix 6243 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6244 ;; 6245 esac 6246 ;; 6247 *-*-cygwin* ) 6248 case $build in 6249 *-*-mingw* ) # actually msys 6250 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6251 ;; 6252 *-*-cygwin* ) 6253 lt_cv_to_host_file_cmd=func_convert_file_noop 6254 ;; 6255 * ) # otherwise, assume *nix 6256 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6257 ;; 6258 esac 6259 ;; 6260 * ) # unhandled hosts (and "normal" native builds) 6261 lt_cv_to_host_file_cmd=func_convert_file_noop 6262 ;; 6263esac 6264 6265fi 6266 6267to_host_file_cmd=$lt_cv_to_host_file_cmd 6268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6269$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6270 6271 6272 6273 6274 6275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6276$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6277if ${lt_cv_to_tool_file_cmd+:} false; then : 6278 $as_echo_n "(cached) " >&6 6279else 6280 #assume ordinary cross tools, or native build. 6281lt_cv_to_tool_file_cmd=func_convert_file_noop 6282case $host in 6283 *-*-mingw* ) 6284 case $build in 6285 *-*-mingw* ) # actually msys 6286 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6287 ;; 6288 esac 6289 ;; 6290esac 6291 6292fi 6293 6294to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6296$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6297 6298 6299 6300 6301 6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6303$as_echo_n "checking for $LD option to reload object files... " >&6; } 6304if ${lt_cv_ld_reload_flag+:} false; then : 6305 $as_echo_n "(cached) " >&6 6306else 6307 lt_cv_ld_reload_flag='-r' 6308fi 6309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6310$as_echo "$lt_cv_ld_reload_flag" >&6; } 6311reload_flag=$lt_cv_ld_reload_flag 6312case $reload_flag in 6313"" | " "*) ;; 6314*) reload_flag=" $reload_flag" ;; 6315esac 6316reload_cmds='$LD$reload_flag -o $output$reload_objs' 6317case $host_os in 6318 cygwin* | mingw* | pw32* | cegcc*) 6319 if test "$GCC" != yes; then 6320 reload_cmds=false 6321 fi 6322 ;; 6323 darwin*) 6324 if test "$GCC" = yes; then 6325 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6326 else 6327 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6328 fi 6329 ;; 6330esac 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340if test -n "$ac_tool_prefix"; then 6341 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6342set dummy ${ac_tool_prefix}objdump; ac_word=$2 6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6344$as_echo_n "checking for $ac_word... " >&6; } 6345if ${ac_cv_prog_OBJDUMP+:} false; then : 6346 $as_echo_n "(cached) " >&6 6347else 6348 if test -n "$OBJDUMP"; then 6349 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6350else 6351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6352for as_dir in $PATH 6353do 6354 IFS=$as_save_IFS 6355 test -z "$as_dir" && as_dir=. 6356 for ac_exec_ext in '' $ac_executable_extensions; do 6357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6358 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6360 break 2 6361 fi 6362done 6363 done 6364IFS=$as_save_IFS 6365 6366fi 6367fi 6368OBJDUMP=$ac_cv_prog_OBJDUMP 6369if test -n "$OBJDUMP"; then 6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6371$as_echo "$OBJDUMP" >&6; } 6372else 6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6374$as_echo "no" >&6; } 6375fi 6376 6377 6378fi 6379if test -z "$ac_cv_prog_OBJDUMP"; then 6380 ac_ct_OBJDUMP=$OBJDUMP 6381 # Extract the first word of "objdump", so it can be a program name with args. 6382set dummy objdump; ac_word=$2 6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6384$as_echo_n "checking for $ac_word... " >&6; } 6385if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6386 $as_echo_n "(cached) " >&6 6387else 6388 if test -n "$ac_ct_OBJDUMP"; then 6389 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6390else 6391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6392for as_dir in $PATH 6393do 6394 IFS=$as_save_IFS 6395 test -z "$as_dir" && as_dir=. 6396 for ac_exec_ext in '' $ac_executable_extensions; do 6397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6398 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6400 break 2 6401 fi 6402done 6403 done 6404IFS=$as_save_IFS 6405 6406fi 6407fi 6408ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6409if test -n "$ac_ct_OBJDUMP"; then 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6411$as_echo "$ac_ct_OBJDUMP" >&6; } 6412else 6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6414$as_echo "no" >&6; } 6415fi 6416 6417 if test "x$ac_ct_OBJDUMP" = x; then 6418 OBJDUMP="false" 6419 else 6420 case $cross_compiling:$ac_tool_warned in 6421yes:) 6422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6424ac_tool_warned=yes ;; 6425esac 6426 OBJDUMP=$ac_ct_OBJDUMP 6427 fi 6428else 6429 OBJDUMP="$ac_cv_prog_OBJDUMP" 6430fi 6431 6432test -z "$OBJDUMP" && OBJDUMP=objdump 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6443$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6444if ${lt_cv_deplibs_check_method+:} false; then : 6445 $as_echo_n "(cached) " >&6 6446else 6447 lt_cv_file_magic_cmd='$MAGIC_CMD' 6448lt_cv_file_magic_test_file= 6449lt_cv_deplibs_check_method='unknown' 6450# Need to set the preceding variable on all platforms that support 6451# interlibrary dependencies. 6452# 'none' -- dependencies not supported. 6453# `unknown' -- same as none, but documents that we really don't know. 6454# 'pass_all' -- all dependencies passed with no checks. 6455# 'test_compile' -- check by making test program. 6456# 'file_magic [[regex]]' -- check by looking for files in library path 6457# which responds to the $file_magic_cmd with a given extended regex. 6458# If you have `file' or equivalent on your system and you're not sure 6459# whether `pass_all' will *always* work, you probably want this one. 6460 6461case $host_os in 6462aix[4-9]*) 6463 lt_cv_deplibs_check_method=pass_all 6464 ;; 6465 6466beos*) 6467 lt_cv_deplibs_check_method=pass_all 6468 ;; 6469 6470bsdi[45]*) 6471 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6472 lt_cv_file_magic_cmd='/usr/bin/file -L' 6473 lt_cv_file_magic_test_file=/shlib/libc.so 6474 ;; 6475 6476cygwin*) 6477 # func_win32_libid is a shell function defined in ltmain.sh 6478 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6479 lt_cv_file_magic_cmd='func_win32_libid' 6480 ;; 6481 6482mingw* | pw32*) 6483 # Base MSYS/MinGW do not provide the 'file' command needed by 6484 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6485 # unless we find 'file', for example because we are cross-compiling. 6486 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6487 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6488 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6489 lt_cv_file_magic_cmd='func_win32_libid' 6490 else 6491 # Keep this pattern in sync with the one in func_win32_libid. 6492 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6493 lt_cv_file_magic_cmd='$OBJDUMP -f' 6494 fi 6495 ;; 6496 6497cegcc*) 6498 # use the weaker test based on 'objdump'. See mingw*. 6499 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6500 lt_cv_file_magic_cmd='$OBJDUMP -f' 6501 ;; 6502 6503darwin* | rhapsody*) 6504 lt_cv_deplibs_check_method=pass_all 6505 ;; 6506 6507freebsd* | dragonfly*) 6508 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6509 case $host_cpu in 6510 i*86 ) 6511 # Not sure whether the presence of OpenBSD here was a mistake. 6512 # Let's accept both of them until this is cleared up. 6513 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6514 lt_cv_file_magic_cmd=/usr/bin/file 6515 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6516 ;; 6517 esac 6518 else 6519 lt_cv_deplibs_check_method=pass_all 6520 fi 6521 ;; 6522 6523haiku*) 6524 lt_cv_deplibs_check_method=pass_all 6525 ;; 6526 6527hpux10.20* | hpux11*) 6528 lt_cv_file_magic_cmd=/usr/bin/file 6529 case $host_cpu in 6530 ia64*) 6531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6532 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6533 ;; 6534 hppa*64*) 6535 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 6536 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6537 ;; 6538 *) 6539 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6540 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6541 ;; 6542 esac 6543 ;; 6544 6545interix[3-9]*) 6546 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6548 ;; 6549 6550irix5* | irix6* | nonstopux*) 6551 case $LD in 6552 *-32|*"-32 ") libmagic=32-bit;; 6553 *-n32|*"-n32 ") libmagic=N32;; 6554 *-64|*"-64 ") libmagic=64-bit;; 6555 *) libmagic=never-match;; 6556 esac 6557 lt_cv_deplibs_check_method=pass_all 6558 ;; 6559 6560# This must be glibc/ELF. 6561linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6562 lt_cv_deplibs_check_method=pass_all 6563 ;; 6564 6565netbsd* | netbsdelf*-gnu) 6566 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6567 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6568 else 6569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6570 fi 6571 ;; 6572 6573newos6*) 6574 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6575 lt_cv_file_magic_cmd=/usr/bin/file 6576 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6577 ;; 6578 6579*nto* | *qnx*) 6580 lt_cv_deplibs_check_method=pass_all 6581 ;; 6582 6583openbsd*) 6584 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6585 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6586 else 6587 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6588 fi 6589 ;; 6590 6591osf3* | osf4* | osf5*) 6592 lt_cv_deplibs_check_method=pass_all 6593 ;; 6594 6595rdos*) 6596 lt_cv_deplibs_check_method=pass_all 6597 ;; 6598 6599solaris*) 6600 lt_cv_deplibs_check_method=pass_all 6601 ;; 6602 6603sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6604 lt_cv_deplibs_check_method=pass_all 6605 ;; 6606 6607sysv4 | sysv4.3*) 6608 case $host_vendor in 6609 motorola) 6610 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]' 6611 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6612 ;; 6613 ncr) 6614 lt_cv_deplibs_check_method=pass_all 6615 ;; 6616 sequent) 6617 lt_cv_file_magic_cmd='/bin/file' 6618 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6619 ;; 6620 sni) 6621 lt_cv_file_magic_cmd='/bin/file' 6622 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6623 lt_cv_file_magic_test_file=/lib/libc.so 6624 ;; 6625 siemens) 6626 lt_cv_deplibs_check_method=pass_all 6627 ;; 6628 pc) 6629 lt_cv_deplibs_check_method=pass_all 6630 ;; 6631 esac 6632 ;; 6633 6634tpf*) 6635 lt_cv_deplibs_check_method=pass_all 6636 ;; 6637esac 6638 6639fi 6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6641$as_echo "$lt_cv_deplibs_check_method" >&6; } 6642 6643file_magic_glob= 6644want_nocaseglob=no 6645if test "$build" = "$host"; then 6646 case $host_os in 6647 mingw* | pw32*) 6648 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6649 want_nocaseglob=yes 6650 else 6651 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6652 fi 6653 ;; 6654 esac 6655fi 6656 6657file_magic_cmd=$lt_cv_file_magic_cmd 6658deplibs_check_method=$lt_cv_deplibs_check_method 6659test -z "$deplibs_check_method" && deplibs_check_method=unknown 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682if test -n "$ac_tool_prefix"; then 6683 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6684set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6686$as_echo_n "checking for $ac_word... " >&6; } 6687if ${ac_cv_prog_DLLTOOL+:} false; then : 6688 $as_echo_n "(cached) " >&6 6689else 6690 if test -n "$DLLTOOL"; then 6691 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6692else 6693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6694for as_dir in $PATH 6695do 6696 IFS=$as_save_IFS 6697 test -z "$as_dir" && as_dir=. 6698 for ac_exec_ext in '' $ac_executable_extensions; do 6699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6700 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6702 break 2 6703 fi 6704done 6705 done 6706IFS=$as_save_IFS 6707 6708fi 6709fi 6710DLLTOOL=$ac_cv_prog_DLLTOOL 6711if test -n "$DLLTOOL"; then 6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6713$as_echo "$DLLTOOL" >&6; } 6714else 6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6716$as_echo "no" >&6; } 6717fi 6718 6719 6720fi 6721if test -z "$ac_cv_prog_DLLTOOL"; then 6722 ac_ct_DLLTOOL=$DLLTOOL 6723 # Extract the first word of "dlltool", so it can be a program name with args. 6724set dummy dlltool; ac_word=$2 6725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6726$as_echo_n "checking for $ac_word... " >&6; } 6727if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6728 $as_echo_n "(cached) " >&6 6729else 6730 if test -n "$ac_ct_DLLTOOL"; then 6731 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6732else 6733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6734for as_dir in $PATH 6735do 6736 IFS=$as_save_IFS 6737 test -z "$as_dir" && as_dir=. 6738 for ac_exec_ext in '' $ac_executable_extensions; do 6739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6740 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6742 break 2 6743 fi 6744done 6745 done 6746IFS=$as_save_IFS 6747 6748fi 6749fi 6750ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6751if test -n "$ac_ct_DLLTOOL"; then 6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6753$as_echo "$ac_ct_DLLTOOL" >&6; } 6754else 6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6756$as_echo "no" >&6; } 6757fi 6758 6759 if test "x$ac_ct_DLLTOOL" = x; then 6760 DLLTOOL="false" 6761 else 6762 case $cross_compiling:$ac_tool_warned in 6763yes:) 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6766ac_tool_warned=yes ;; 6767esac 6768 DLLTOOL=$ac_ct_DLLTOOL 6769 fi 6770else 6771 DLLTOOL="$ac_cv_prog_DLLTOOL" 6772fi 6773 6774test -z "$DLLTOOL" && DLLTOOL=dlltool 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6786$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6787if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6788 $as_echo_n "(cached) " >&6 6789else 6790 lt_cv_sharedlib_from_linklib_cmd='unknown' 6791 6792case $host_os in 6793cygwin* | mingw* | pw32* | cegcc*) 6794 # two different shell functions defined in ltmain.sh 6795 # decide which to use based on capabilities of $DLLTOOL 6796 case `$DLLTOOL --help 2>&1` in 6797 *--identify-strict*) 6798 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6799 ;; 6800 *) 6801 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6802 ;; 6803 esac 6804 ;; 6805*) 6806 # fallback: assume linklib IS sharedlib 6807 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6808 ;; 6809esac 6810 6811fi 6812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6813$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6814sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6815test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6816 6817 6818 6819 6820 6821 6822 6823if test -n "$ac_tool_prefix"; then 6824 for ac_prog in ar 6825 do 6826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6827set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6829$as_echo_n "checking for $ac_word... " >&6; } 6830if ${ac_cv_prog_AR+:} false; then : 6831 $as_echo_n "(cached) " >&6 6832else 6833 if test -n "$AR"; then 6834 ac_cv_prog_AR="$AR" # Let the user override the test. 6835else 6836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6837for as_dir in $PATH 6838do 6839 IFS=$as_save_IFS 6840 test -z "$as_dir" && as_dir=. 6841 for ac_exec_ext in '' $ac_executable_extensions; do 6842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6843 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6845 break 2 6846 fi 6847done 6848 done 6849IFS=$as_save_IFS 6850 6851fi 6852fi 6853AR=$ac_cv_prog_AR 6854if test -n "$AR"; then 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6856$as_echo "$AR" >&6; } 6857else 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6859$as_echo "no" >&6; } 6860fi 6861 6862 6863 test -n "$AR" && break 6864 done 6865fi 6866if test -z "$AR"; then 6867 ac_ct_AR=$AR 6868 for ac_prog in ar 6869do 6870 # Extract the first word of "$ac_prog", so it can be a program name with args. 6871set dummy $ac_prog; ac_word=$2 6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6873$as_echo_n "checking for $ac_word... " >&6; } 6874if ${ac_cv_prog_ac_ct_AR+:} false; then : 6875 $as_echo_n "(cached) " >&6 6876else 6877 if test -n "$ac_ct_AR"; then 6878 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6879else 6880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6881for as_dir in $PATH 6882do 6883 IFS=$as_save_IFS 6884 test -z "$as_dir" && as_dir=. 6885 for ac_exec_ext in '' $ac_executable_extensions; do 6886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6887 ac_cv_prog_ac_ct_AR="$ac_prog" 6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6889 break 2 6890 fi 6891done 6892 done 6893IFS=$as_save_IFS 6894 6895fi 6896fi 6897ac_ct_AR=$ac_cv_prog_ac_ct_AR 6898if test -n "$ac_ct_AR"; then 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6900$as_echo "$ac_ct_AR" >&6; } 6901else 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6903$as_echo "no" >&6; } 6904fi 6905 6906 6907 test -n "$ac_ct_AR" && break 6908done 6909 6910 if test "x$ac_ct_AR" = x; then 6911 AR="false" 6912 else 6913 case $cross_compiling:$ac_tool_warned in 6914yes:) 6915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6917ac_tool_warned=yes ;; 6918esac 6919 AR=$ac_ct_AR 6920 fi 6921fi 6922 6923: ${AR=ar} 6924: ${AR_FLAGS=cru} 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6937$as_echo_n "checking for archiver @FILE support... " >&6; } 6938if ${lt_cv_ar_at_file+:} false; then : 6939 $as_echo_n "(cached) " >&6 6940else 6941 lt_cv_ar_at_file=no 6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6943/* end confdefs.h. */ 6944 6945int 6946main () 6947{ 6948 6949 ; 6950 return 0; 6951} 6952_ACEOF 6953if ac_fn_c_try_compile "$LINENO"; then : 6954 echo conftest.$ac_objext > conftest.lst 6955 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6957 (eval $lt_ar_try) 2>&5 6958 ac_status=$? 6959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6960 test $ac_status = 0; } 6961 if test "$ac_status" -eq 0; then 6962 # Ensure the archiver fails upon bogus file names. 6963 rm -f conftest.$ac_objext libconftest.a 6964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6965 (eval $lt_ar_try) 2>&5 6966 ac_status=$? 6967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6968 test $ac_status = 0; } 6969 if test "$ac_status" -ne 0; then 6970 lt_cv_ar_at_file=@ 6971 fi 6972 fi 6973 rm -f conftest.* libconftest.a 6974 6975fi 6976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6977 6978fi 6979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6980$as_echo "$lt_cv_ar_at_file" >&6; } 6981 6982if test "x$lt_cv_ar_at_file" = xno; then 6983 archiver_list_spec= 6984else 6985 archiver_list_spec=$lt_cv_ar_at_file 6986fi 6987 6988 6989 6990 6991 6992 6993 6994if test -n "$ac_tool_prefix"; then 6995 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6996set dummy ${ac_tool_prefix}strip; ac_word=$2 6997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6998$as_echo_n "checking for $ac_word... " >&6; } 6999if ${ac_cv_prog_STRIP+:} false; then : 7000 $as_echo_n "(cached) " >&6 7001else 7002 if test -n "$STRIP"; then 7003 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7004else 7005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7006for as_dir in $PATH 7007do 7008 IFS=$as_save_IFS 7009 test -z "$as_dir" && as_dir=. 7010 for ac_exec_ext in '' $ac_executable_extensions; do 7011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7012 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7014 break 2 7015 fi 7016done 7017 done 7018IFS=$as_save_IFS 7019 7020fi 7021fi 7022STRIP=$ac_cv_prog_STRIP 7023if test -n "$STRIP"; then 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7025$as_echo "$STRIP" >&6; } 7026else 7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7028$as_echo "no" >&6; } 7029fi 7030 7031 7032fi 7033if test -z "$ac_cv_prog_STRIP"; then 7034 ac_ct_STRIP=$STRIP 7035 # Extract the first word of "strip", so it can be a program name with args. 7036set dummy strip; ac_word=$2 7037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7038$as_echo_n "checking for $ac_word... " >&6; } 7039if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7040 $as_echo_n "(cached) " >&6 7041else 7042 if test -n "$ac_ct_STRIP"; then 7043 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7044else 7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7046for as_dir in $PATH 7047do 7048 IFS=$as_save_IFS 7049 test -z "$as_dir" && as_dir=. 7050 for ac_exec_ext in '' $ac_executable_extensions; do 7051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7052 ac_cv_prog_ac_ct_STRIP="strip" 7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7054 break 2 7055 fi 7056done 7057 done 7058IFS=$as_save_IFS 7059 7060fi 7061fi 7062ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7063if test -n "$ac_ct_STRIP"; then 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7065$as_echo "$ac_ct_STRIP" >&6; } 7066else 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7068$as_echo "no" >&6; } 7069fi 7070 7071 if test "x$ac_ct_STRIP" = x; then 7072 STRIP=":" 7073 else 7074 case $cross_compiling:$ac_tool_warned in 7075yes:) 7076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7078ac_tool_warned=yes ;; 7079esac 7080 STRIP=$ac_ct_STRIP 7081 fi 7082else 7083 STRIP="$ac_cv_prog_STRIP" 7084fi 7085 7086test -z "$STRIP" && STRIP=: 7087 7088 7089 7090 7091 7092 7093if test -n "$ac_tool_prefix"; then 7094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7095set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7097$as_echo_n "checking for $ac_word... " >&6; } 7098if ${ac_cv_prog_RANLIB+:} false; then : 7099 $as_echo_n "(cached) " >&6 7100else 7101 if test -n "$RANLIB"; then 7102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7103else 7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7105for as_dir in $PATH 7106do 7107 IFS=$as_save_IFS 7108 test -z "$as_dir" && as_dir=. 7109 for ac_exec_ext in '' $ac_executable_extensions; do 7110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7113 break 2 7114 fi 7115done 7116 done 7117IFS=$as_save_IFS 7118 7119fi 7120fi 7121RANLIB=$ac_cv_prog_RANLIB 7122if test -n "$RANLIB"; then 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7124$as_echo "$RANLIB" >&6; } 7125else 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7127$as_echo "no" >&6; } 7128fi 7129 7130 7131fi 7132if test -z "$ac_cv_prog_RANLIB"; then 7133 ac_ct_RANLIB=$RANLIB 7134 # Extract the first word of "ranlib", so it can be a program name with args. 7135set dummy ranlib; ac_word=$2 7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7137$as_echo_n "checking for $ac_word... " >&6; } 7138if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7139 $as_echo_n "(cached) " >&6 7140else 7141 if test -n "$ac_ct_RANLIB"; then 7142 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7143else 7144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7145for as_dir in $PATH 7146do 7147 IFS=$as_save_IFS 7148 test -z "$as_dir" && as_dir=. 7149 for ac_exec_ext in '' $ac_executable_extensions; do 7150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7151 ac_cv_prog_ac_ct_RANLIB="ranlib" 7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7153 break 2 7154 fi 7155done 7156 done 7157IFS=$as_save_IFS 7158 7159fi 7160fi 7161ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7162if test -n "$ac_ct_RANLIB"; then 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7164$as_echo "$ac_ct_RANLIB" >&6; } 7165else 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7167$as_echo "no" >&6; } 7168fi 7169 7170 if test "x$ac_ct_RANLIB" = x; then 7171 RANLIB=":" 7172 else 7173 case $cross_compiling:$ac_tool_warned in 7174yes:) 7175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7177ac_tool_warned=yes ;; 7178esac 7179 RANLIB=$ac_ct_RANLIB 7180 fi 7181else 7182 RANLIB="$ac_cv_prog_RANLIB" 7183fi 7184 7185test -z "$RANLIB" && RANLIB=: 7186 7187 7188 7189 7190 7191 7192# Determine commands to create old-style static archives. 7193old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7194old_postinstall_cmds='chmod 644 $oldlib' 7195old_postuninstall_cmds= 7196 7197if test -n "$RANLIB"; then 7198 case $host_os in 7199 openbsd*) 7200 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7201 ;; 7202 *) 7203 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7204 ;; 7205 esac 7206 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7207fi 7208 7209case $host_os in 7210 darwin*) 7211 lock_old_archive_extraction=yes ;; 7212 *) 7213 lock_old_archive_extraction=no ;; 7214esac 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254# If no C compiler was specified, use CC. 7255LTCC=${LTCC-"$CC"} 7256 7257# If no C compiler flags were specified, use CFLAGS. 7258LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7259 7260# Allow CC to be a program name with arguments. 7261compiler=$CC 7262 7263 7264# Check for command to grab the raw symbol name followed by C symbol from nm. 7265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7266$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7267if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7268 $as_echo_n "(cached) " >&6 7269else 7270 7271# These are sane defaults that work on at least a few old systems. 7272# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7273 7274# Character class describing NM global symbol codes. 7275symcode='[BCDEGRST]' 7276 7277# Regexp to match symbols that can be accessed directly from C. 7278sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7279 7280# Define system-specific variables. 7281case $host_os in 7282aix*) 7283 symcode='[BCDT]' 7284 ;; 7285cygwin* | mingw* | pw32* | cegcc*) 7286 symcode='[ABCDGISTW]' 7287 ;; 7288hpux*) 7289 if test "$host_cpu" = ia64; then 7290 symcode='[ABCDEGRST]' 7291 fi 7292 ;; 7293irix* | nonstopux*) 7294 symcode='[BCDEGRST]' 7295 ;; 7296osf*) 7297 symcode='[BCDEGQRST]' 7298 ;; 7299solaris*) 7300 symcode='[BDRT]' 7301 ;; 7302sco3.2v5*) 7303 symcode='[DT]' 7304 ;; 7305sysv4.2uw2*) 7306 symcode='[DT]' 7307 ;; 7308sysv5* | sco5v6* | unixware* | OpenUNIX*) 7309 symcode='[ABDT]' 7310 ;; 7311sysv4) 7312 symcode='[DFNSTU]' 7313 ;; 7314esac 7315 7316# If we're using GNU nm, then use its standard symbol codes. 7317case `$NM -V 2>&1` in 7318*GNU* | *'with BFD'*) 7319 symcode='[ABCDGIRSTW]' ;; 7320esac 7321 7322# Transform an extracted symbol line into a proper C declaration. 7323# Some systems (esp. on ia64) link data and code symbols differently, 7324# so use this general approach. 7325lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7326 7327# Transform an extracted symbol line into symbol name and symbol address 7328lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7329lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7330 7331# Handle CRLF in mingw tool chain 7332opt_cr= 7333case $build_os in 7334mingw*) 7335 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7336 ;; 7337esac 7338 7339# Try without a prefix underscore, then with it. 7340for ac_symprfx in "" "_"; do 7341 7342 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7343 symxfrm="\\1 $ac_symprfx\\2 \\2" 7344 7345 # Write the raw and C identifiers. 7346 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7347 # Fake it for dumpbin and say T for any non-static function 7348 # and D for any global variable. 7349 # Also find C++ and __fastcall symbols from MSVC++, 7350 # which start with @ or ?. 7351 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7352" {last_section=section; section=\$ 3};"\ 7353" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7354" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7355" \$ 0!~/External *\|/{next};"\ 7356" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7357" {if(hide[section]) next};"\ 7358" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7359" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7360" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7361" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7362" ' prfx=^$ac_symprfx" 7363 else 7364 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7365 fi 7366 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7367 7368 # Check to see that the pipe works correctly. 7369 pipe_works=no 7370 7371 rm -f conftest* 7372 cat > conftest.$ac_ext <<_LT_EOF 7373#ifdef __cplusplus 7374extern "C" { 7375#endif 7376char nm_test_var; 7377void nm_test_func(void); 7378void nm_test_func(void){} 7379#ifdef __cplusplus 7380} 7381#endif 7382int main(){nm_test_var='a';nm_test_func();return(0);} 7383_LT_EOF 7384 7385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7386 (eval $ac_compile) 2>&5 7387 ac_status=$? 7388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7389 test $ac_status = 0; }; then 7390 # Now try to grab the symbols. 7391 nlist=conftest.nm 7392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7393 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7394 ac_status=$? 7395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7396 test $ac_status = 0; } && test -s "$nlist"; then 7397 # Try sorting and uniquifying the output. 7398 if sort "$nlist" | uniq > "$nlist"T; then 7399 mv -f "$nlist"T "$nlist" 7400 else 7401 rm -f "$nlist"T 7402 fi 7403 7404 # Make sure that we snagged all the symbols we need. 7405 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7406 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7407 cat <<_LT_EOF > conftest.$ac_ext 7408/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7409#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7410/* DATA imports from DLLs on WIN32 con't be const, because runtime 7411 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7412# define LT_DLSYM_CONST 7413#elif defined(__osf__) 7414/* This system does not cope well with relocations in const data. */ 7415# define LT_DLSYM_CONST 7416#else 7417# define LT_DLSYM_CONST const 7418#endif 7419 7420#ifdef __cplusplus 7421extern "C" { 7422#endif 7423 7424_LT_EOF 7425 # Now generate the symbol file. 7426 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7427 7428 cat <<_LT_EOF >> conftest.$ac_ext 7429 7430/* The mapping between symbol names and symbols. */ 7431LT_DLSYM_CONST struct { 7432 const char *name; 7433 void *address; 7434} 7435lt__PROGRAM__LTX_preloaded_symbols[] = 7436{ 7437 { "@PROGRAM@", (void *) 0 }, 7438_LT_EOF 7439 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7440 cat <<\_LT_EOF >> conftest.$ac_ext 7441 {0, (void *) 0} 7442}; 7443 7444/* This works around a problem in FreeBSD linker */ 7445#ifdef FREEBSD_WORKAROUND 7446static const void *lt_preloaded_setup() { 7447 return lt__PROGRAM__LTX_preloaded_symbols; 7448} 7449#endif 7450 7451#ifdef __cplusplus 7452} 7453#endif 7454_LT_EOF 7455 # Now try linking the two files. 7456 mv conftest.$ac_objext conftstm.$ac_objext 7457 lt_globsym_save_LIBS=$LIBS 7458 lt_globsym_save_CFLAGS=$CFLAGS 7459 LIBS="conftstm.$ac_objext" 7460 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7462 (eval $ac_link) 2>&5 7463 ac_status=$? 7464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7465 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7466 pipe_works=yes 7467 fi 7468 LIBS=$lt_globsym_save_LIBS 7469 CFLAGS=$lt_globsym_save_CFLAGS 7470 else 7471 echo "cannot find nm_test_func in $nlist" >&5 7472 fi 7473 else 7474 echo "cannot find nm_test_var in $nlist" >&5 7475 fi 7476 else 7477 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7478 fi 7479 else 7480 echo "$progname: failed program was:" >&5 7481 cat conftest.$ac_ext >&5 7482 fi 7483 rm -rf conftest* conftst* 7484 7485 # Do not use the global_symbol_pipe unless it works. 7486 if test "$pipe_works" = yes; then 7487 break 7488 else 7489 lt_cv_sys_global_symbol_pipe= 7490 fi 7491done 7492 7493fi 7494 7495if test -z "$lt_cv_sys_global_symbol_pipe"; then 7496 lt_cv_sys_global_symbol_to_cdecl= 7497fi 7498if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7500$as_echo "failed" >&6; } 7501else 7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7503$as_echo "ok" >&6; } 7504fi 7505 7506# Response file support. 7507if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7508 nm_file_list_spec='@' 7509elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7510 nm_file_list_spec='@' 7511fi 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7540$as_echo_n "checking for sysroot... " >&6; } 7541 7542# Check whether --with-sysroot was given. 7543if test "${with_sysroot+set}" = set; then : 7544 withval=$with_sysroot; 7545else 7546 with_sysroot=no 7547fi 7548 7549 7550lt_sysroot= 7551case ${with_sysroot} in #( 7552 yes) 7553 if test "$GCC" = yes; then 7554 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7555 fi 7556 ;; #( 7557 /*) 7558 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7559 ;; #( 7560 no|'') 7561 ;; #( 7562 *) 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7564$as_echo "${with_sysroot}" >&6; } 7565 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7566 ;; 7567esac 7568 7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7570$as_echo "${lt_sysroot:-no}" >&6; } 7571 7572 7573 7574 7575 7576# Check whether --enable-libtool-lock was given. 7577if test "${enable_libtool_lock+set}" = set; then : 7578 enableval=$enable_libtool_lock; 7579fi 7580 7581test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7582 7583# Some flags need to be propagated to the compiler or linker for good 7584# libtool support. 7585case $host in 7586ia64-*-hpux*) 7587 # Find out which ABI we are using. 7588 echo 'int i;' > conftest.$ac_ext 7589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7590 (eval $ac_compile) 2>&5 7591 ac_status=$? 7592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7593 test $ac_status = 0; }; then 7594 case `/usr/bin/file conftest.$ac_objext` in 7595 *ELF-32*) 7596 HPUX_IA64_MODE="32" 7597 ;; 7598 *ELF-64*) 7599 HPUX_IA64_MODE="64" 7600 ;; 7601 esac 7602 fi 7603 rm -rf conftest* 7604 ;; 7605*-*-irix6*) 7606 # Find out which ABI we are using. 7607 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7609 (eval $ac_compile) 2>&5 7610 ac_status=$? 7611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7612 test $ac_status = 0; }; then 7613 if test "$lt_cv_prog_gnu_ld" = yes; then 7614 case `/usr/bin/file conftest.$ac_objext` in 7615 *32-bit*) 7616 LD="${LD-ld} -melf32bsmip" 7617 ;; 7618 *N32*) 7619 LD="${LD-ld} -melf32bmipn32" 7620 ;; 7621 *64-bit*) 7622 LD="${LD-ld} -melf64bmip" 7623 ;; 7624 esac 7625 else 7626 case `/usr/bin/file conftest.$ac_objext` in 7627 *32-bit*) 7628 LD="${LD-ld} -32" 7629 ;; 7630 *N32*) 7631 LD="${LD-ld} -n32" 7632 ;; 7633 *64-bit*) 7634 LD="${LD-ld} -64" 7635 ;; 7636 esac 7637 fi 7638 fi 7639 rm -rf conftest* 7640 ;; 7641 7642x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7643s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7644 # Find out which ABI we are using. 7645 echo 'int i;' > conftest.$ac_ext 7646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7647 (eval $ac_compile) 2>&5 7648 ac_status=$? 7649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7650 test $ac_status = 0; }; then 7651 case `/usr/bin/file conftest.o` in 7652 *32-bit*) 7653 case $host in 7654 x86_64-*kfreebsd*-gnu) 7655 LD="${LD-ld} -m elf_i386_fbsd" 7656 ;; 7657 x86_64-*linux*) 7658 case `/usr/bin/file conftest.o` in 7659 *x86-64*) 7660 LD="${LD-ld} -m elf32_x86_64" 7661 ;; 7662 *) 7663 LD="${LD-ld} -m elf_i386" 7664 ;; 7665 esac 7666 ;; 7667 powerpc64le-*) 7668 LD="${LD-ld} -m elf32lppclinux" 7669 ;; 7670 powerpc64-*) 7671 LD="${LD-ld} -m elf32ppclinux" 7672 ;; 7673 s390x-*linux*) 7674 LD="${LD-ld} -m elf_s390" 7675 ;; 7676 sparc64-*linux*) 7677 LD="${LD-ld} -m elf32_sparc" 7678 ;; 7679 esac 7680 ;; 7681 *64-bit*) 7682 case $host in 7683 x86_64-*kfreebsd*-gnu) 7684 LD="${LD-ld} -m elf_x86_64_fbsd" 7685 ;; 7686 x86_64-*linux*) 7687 LD="${LD-ld} -m elf_x86_64" 7688 ;; 7689 powerpcle-*) 7690 LD="${LD-ld} -m elf64lppc" 7691 ;; 7692 powerpc-*) 7693 LD="${LD-ld} -m elf64ppc" 7694 ;; 7695 s390*-*linux*|s390*-*tpf*) 7696 LD="${LD-ld} -m elf64_s390" 7697 ;; 7698 sparc*-*linux*) 7699 LD="${LD-ld} -m elf64_sparc" 7700 ;; 7701 esac 7702 ;; 7703 esac 7704 fi 7705 rm -rf conftest* 7706 ;; 7707 7708*-*-sco3.2v5*) 7709 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7710 SAVE_CFLAGS="$CFLAGS" 7711 CFLAGS="$CFLAGS -belf" 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7713$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7714if ${lt_cv_cc_needs_belf+:} false; then : 7715 $as_echo_n "(cached) " >&6 7716else 7717 ac_ext=c 7718ac_cpp='$CPP $CPPFLAGS' 7719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7721ac_compiler_gnu=$ac_cv_c_compiler_gnu 7722 7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7724/* end confdefs.h. */ 7725 7726int 7727main () 7728{ 7729 7730 ; 7731 return 0; 7732} 7733_ACEOF 7734if ac_fn_c_try_link "$LINENO"; then : 7735 lt_cv_cc_needs_belf=yes 7736else 7737 lt_cv_cc_needs_belf=no 7738fi 7739rm -f core conftest.err conftest.$ac_objext \ 7740 conftest$ac_exeext conftest.$ac_ext 7741 ac_ext=c 7742ac_cpp='$CPP $CPPFLAGS' 7743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7745ac_compiler_gnu=$ac_cv_c_compiler_gnu 7746 7747fi 7748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7749$as_echo "$lt_cv_cc_needs_belf" >&6; } 7750 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7751 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7752 CFLAGS="$SAVE_CFLAGS" 7753 fi 7754 ;; 7755*-*solaris*) 7756 # Find out which ABI we are using. 7757 echo 'int i;' > conftest.$ac_ext 7758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7759 (eval $ac_compile) 2>&5 7760 ac_status=$? 7761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7762 test $ac_status = 0; }; then 7763 case `/usr/bin/file conftest.o` in 7764 *64-bit*) 7765 case $lt_cv_prog_gnu_ld in 7766 yes*) 7767 case $host in 7768 i?86-*-solaris*) 7769 LD="${LD-ld} -m elf_x86_64" 7770 ;; 7771 sparc*-*-solaris*) 7772 LD="${LD-ld} -m elf64_sparc" 7773 ;; 7774 esac 7775 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7776 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7777 LD="${LD-ld}_sol2" 7778 fi 7779 ;; 7780 *) 7781 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7782 LD="${LD-ld} -64" 7783 fi 7784 ;; 7785 esac 7786 ;; 7787 esac 7788 fi 7789 rm -rf conftest* 7790 ;; 7791esac 7792 7793need_locks="$enable_libtool_lock" 7794 7795if test -n "$ac_tool_prefix"; then 7796 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7797set dummy ${ac_tool_prefix}mt; ac_word=$2 7798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7799$as_echo_n "checking for $ac_word... " >&6; } 7800if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7801 $as_echo_n "(cached) " >&6 7802else 7803 if test -n "$MANIFEST_TOOL"; then 7804 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7805else 7806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7807for as_dir in $PATH 7808do 7809 IFS=$as_save_IFS 7810 test -z "$as_dir" && as_dir=. 7811 for ac_exec_ext in '' $ac_executable_extensions; do 7812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7813 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7815 break 2 7816 fi 7817done 7818 done 7819IFS=$as_save_IFS 7820 7821fi 7822fi 7823MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7824if test -n "$MANIFEST_TOOL"; then 7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7826$as_echo "$MANIFEST_TOOL" >&6; } 7827else 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7829$as_echo "no" >&6; } 7830fi 7831 7832 7833fi 7834if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7835 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7836 # Extract the first word of "mt", so it can be a program name with args. 7837set dummy mt; ac_word=$2 7838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7839$as_echo_n "checking for $ac_word... " >&6; } 7840if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7841 $as_echo_n "(cached) " >&6 7842else 7843 if test -n "$ac_ct_MANIFEST_TOOL"; then 7844 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7845else 7846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7847for as_dir in $PATH 7848do 7849 IFS=$as_save_IFS 7850 test -z "$as_dir" && as_dir=. 7851 for ac_exec_ext in '' $ac_executable_extensions; do 7852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7853 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7855 break 2 7856 fi 7857done 7858 done 7859IFS=$as_save_IFS 7860 7861fi 7862fi 7863ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7864if test -n "$ac_ct_MANIFEST_TOOL"; then 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7866$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7867else 7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7869$as_echo "no" >&6; } 7870fi 7871 7872 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7873 MANIFEST_TOOL=":" 7874 else 7875 case $cross_compiling:$ac_tool_warned in 7876yes:) 7877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7879ac_tool_warned=yes ;; 7880esac 7881 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7882 fi 7883else 7884 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7885fi 7886 7887test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7889$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7890if ${lt_cv_path_mainfest_tool+:} false; then : 7891 $as_echo_n "(cached) " >&6 7892else 7893 lt_cv_path_mainfest_tool=no 7894 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7895 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7896 cat conftest.err >&5 7897 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7898 lt_cv_path_mainfest_tool=yes 7899 fi 7900 rm -f conftest* 7901fi 7902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7903$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7904if test "x$lt_cv_path_mainfest_tool" != xyes; then 7905 MANIFEST_TOOL=: 7906fi 7907 7908 7909 7910 7911 7912 7913 case $host_os in 7914 rhapsody* | darwin*) 7915 if test -n "$ac_tool_prefix"; then 7916 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7917set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7919$as_echo_n "checking for $ac_word... " >&6; } 7920if ${ac_cv_prog_DSYMUTIL+:} false; then : 7921 $as_echo_n "(cached) " >&6 7922else 7923 if test -n "$DSYMUTIL"; then 7924 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7925else 7926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7927for as_dir in $PATH 7928do 7929 IFS=$as_save_IFS 7930 test -z "$as_dir" && as_dir=. 7931 for ac_exec_ext in '' $ac_executable_extensions; do 7932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7933 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7935 break 2 7936 fi 7937done 7938 done 7939IFS=$as_save_IFS 7940 7941fi 7942fi 7943DSYMUTIL=$ac_cv_prog_DSYMUTIL 7944if test -n "$DSYMUTIL"; then 7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7946$as_echo "$DSYMUTIL" >&6; } 7947else 7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7949$as_echo "no" >&6; } 7950fi 7951 7952 7953fi 7954if test -z "$ac_cv_prog_DSYMUTIL"; then 7955 ac_ct_DSYMUTIL=$DSYMUTIL 7956 # Extract the first word of "dsymutil", so it can be a program name with args. 7957set dummy dsymutil; ac_word=$2 7958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7959$as_echo_n "checking for $ac_word... " >&6; } 7960if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7961 $as_echo_n "(cached) " >&6 7962else 7963 if test -n "$ac_ct_DSYMUTIL"; then 7964 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7965else 7966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7967for as_dir in $PATH 7968do 7969 IFS=$as_save_IFS 7970 test -z "$as_dir" && as_dir=. 7971 for ac_exec_ext in '' $ac_executable_extensions; do 7972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7973 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7975 break 2 7976 fi 7977done 7978 done 7979IFS=$as_save_IFS 7980 7981fi 7982fi 7983ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7984if test -n "$ac_ct_DSYMUTIL"; then 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7986$as_echo "$ac_ct_DSYMUTIL" >&6; } 7987else 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7989$as_echo "no" >&6; } 7990fi 7991 7992 if test "x$ac_ct_DSYMUTIL" = x; then 7993 DSYMUTIL=":" 7994 else 7995 case $cross_compiling:$ac_tool_warned in 7996yes:) 7997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7999ac_tool_warned=yes ;; 8000esac 8001 DSYMUTIL=$ac_ct_DSYMUTIL 8002 fi 8003else 8004 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8005fi 8006 8007 if test -n "$ac_tool_prefix"; then 8008 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8009set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8011$as_echo_n "checking for $ac_word... " >&6; } 8012if ${ac_cv_prog_NMEDIT+:} false; then : 8013 $as_echo_n "(cached) " >&6 8014else 8015 if test -n "$NMEDIT"; then 8016 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8017else 8018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8019for as_dir in $PATH 8020do 8021 IFS=$as_save_IFS 8022 test -z "$as_dir" && as_dir=. 8023 for ac_exec_ext in '' $ac_executable_extensions; do 8024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8025 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8027 break 2 8028 fi 8029done 8030 done 8031IFS=$as_save_IFS 8032 8033fi 8034fi 8035NMEDIT=$ac_cv_prog_NMEDIT 8036if test -n "$NMEDIT"; then 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8038$as_echo "$NMEDIT" >&6; } 8039else 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8041$as_echo "no" >&6; } 8042fi 8043 8044 8045fi 8046if test -z "$ac_cv_prog_NMEDIT"; then 8047 ac_ct_NMEDIT=$NMEDIT 8048 # Extract the first word of "nmedit", so it can be a program name with args. 8049set dummy nmedit; ac_word=$2 8050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8051$as_echo_n "checking for $ac_word... " >&6; } 8052if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8053 $as_echo_n "(cached) " >&6 8054else 8055 if test -n "$ac_ct_NMEDIT"; then 8056 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8057else 8058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8059for as_dir in $PATH 8060do 8061 IFS=$as_save_IFS 8062 test -z "$as_dir" && as_dir=. 8063 for ac_exec_ext in '' $ac_executable_extensions; do 8064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8065 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8067 break 2 8068 fi 8069done 8070 done 8071IFS=$as_save_IFS 8072 8073fi 8074fi 8075ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8076if test -n "$ac_ct_NMEDIT"; then 8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8078$as_echo "$ac_ct_NMEDIT" >&6; } 8079else 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8081$as_echo "no" >&6; } 8082fi 8083 8084 if test "x$ac_ct_NMEDIT" = x; then 8085 NMEDIT=":" 8086 else 8087 case $cross_compiling:$ac_tool_warned in 8088yes:) 8089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8091ac_tool_warned=yes ;; 8092esac 8093 NMEDIT=$ac_ct_NMEDIT 8094 fi 8095else 8096 NMEDIT="$ac_cv_prog_NMEDIT" 8097fi 8098 8099 if test -n "$ac_tool_prefix"; then 8100 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8101set dummy ${ac_tool_prefix}lipo; ac_word=$2 8102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8103$as_echo_n "checking for $ac_word... " >&6; } 8104if ${ac_cv_prog_LIPO+:} false; then : 8105 $as_echo_n "(cached) " >&6 8106else 8107 if test -n "$LIPO"; then 8108 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8109else 8110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8111for as_dir in $PATH 8112do 8113 IFS=$as_save_IFS 8114 test -z "$as_dir" && as_dir=. 8115 for ac_exec_ext in '' $ac_executable_extensions; do 8116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8117 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8119 break 2 8120 fi 8121done 8122 done 8123IFS=$as_save_IFS 8124 8125fi 8126fi 8127LIPO=$ac_cv_prog_LIPO 8128if test -n "$LIPO"; then 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8130$as_echo "$LIPO" >&6; } 8131else 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8133$as_echo "no" >&6; } 8134fi 8135 8136 8137fi 8138if test -z "$ac_cv_prog_LIPO"; then 8139 ac_ct_LIPO=$LIPO 8140 # Extract the first word of "lipo", so it can be a program name with args. 8141set dummy lipo; ac_word=$2 8142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8143$as_echo_n "checking for $ac_word... " >&6; } 8144if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8145 $as_echo_n "(cached) " >&6 8146else 8147 if test -n "$ac_ct_LIPO"; then 8148 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8149else 8150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8151for as_dir in $PATH 8152do 8153 IFS=$as_save_IFS 8154 test -z "$as_dir" && as_dir=. 8155 for ac_exec_ext in '' $ac_executable_extensions; do 8156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8157 ac_cv_prog_ac_ct_LIPO="lipo" 8158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8159 break 2 8160 fi 8161done 8162 done 8163IFS=$as_save_IFS 8164 8165fi 8166fi 8167ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8168if test -n "$ac_ct_LIPO"; then 8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8170$as_echo "$ac_ct_LIPO" >&6; } 8171else 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8173$as_echo "no" >&6; } 8174fi 8175 8176 if test "x$ac_ct_LIPO" = x; then 8177 LIPO=":" 8178 else 8179 case $cross_compiling:$ac_tool_warned in 8180yes:) 8181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8183ac_tool_warned=yes ;; 8184esac 8185 LIPO=$ac_ct_LIPO 8186 fi 8187else 8188 LIPO="$ac_cv_prog_LIPO" 8189fi 8190 8191 if test -n "$ac_tool_prefix"; then 8192 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8193set dummy ${ac_tool_prefix}otool; ac_word=$2 8194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8195$as_echo_n "checking for $ac_word... " >&6; } 8196if ${ac_cv_prog_OTOOL+:} false; then : 8197 $as_echo_n "(cached) " >&6 8198else 8199 if test -n "$OTOOL"; then 8200 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8201else 8202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8203for as_dir in $PATH 8204do 8205 IFS=$as_save_IFS 8206 test -z "$as_dir" && as_dir=. 8207 for ac_exec_ext in '' $ac_executable_extensions; do 8208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8209 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8211 break 2 8212 fi 8213done 8214 done 8215IFS=$as_save_IFS 8216 8217fi 8218fi 8219OTOOL=$ac_cv_prog_OTOOL 8220if test -n "$OTOOL"; then 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8222$as_echo "$OTOOL" >&6; } 8223else 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8225$as_echo "no" >&6; } 8226fi 8227 8228 8229fi 8230if test -z "$ac_cv_prog_OTOOL"; then 8231 ac_ct_OTOOL=$OTOOL 8232 # Extract the first word of "otool", so it can be a program name with args. 8233set dummy otool; ac_word=$2 8234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8235$as_echo_n "checking for $ac_word... " >&6; } 8236if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8237 $as_echo_n "(cached) " >&6 8238else 8239 if test -n "$ac_ct_OTOOL"; then 8240 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8241else 8242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8243for as_dir in $PATH 8244do 8245 IFS=$as_save_IFS 8246 test -z "$as_dir" && as_dir=. 8247 for ac_exec_ext in '' $ac_executable_extensions; do 8248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8249 ac_cv_prog_ac_ct_OTOOL="otool" 8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8251 break 2 8252 fi 8253done 8254 done 8255IFS=$as_save_IFS 8256 8257fi 8258fi 8259ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8260if test -n "$ac_ct_OTOOL"; then 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8262$as_echo "$ac_ct_OTOOL" >&6; } 8263else 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8265$as_echo "no" >&6; } 8266fi 8267 8268 if test "x$ac_ct_OTOOL" = x; then 8269 OTOOL=":" 8270 else 8271 case $cross_compiling:$ac_tool_warned in 8272yes:) 8273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8275ac_tool_warned=yes ;; 8276esac 8277 OTOOL=$ac_ct_OTOOL 8278 fi 8279else 8280 OTOOL="$ac_cv_prog_OTOOL" 8281fi 8282 8283 if test -n "$ac_tool_prefix"; then 8284 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8285set dummy ${ac_tool_prefix}otool64; ac_word=$2 8286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8287$as_echo_n "checking for $ac_word... " >&6; } 8288if ${ac_cv_prog_OTOOL64+:} false; then : 8289 $as_echo_n "(cached) " >&6 8290else 8291 if test -n "$OTOOL64"; then 8292 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8293else 8294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8295for as_dir in $PATH 8296do 8297 IFS=$as_save_IFS 8298 test -z "$as_dir" && as_dir=. 8299 for ac_exec_ext in '' $ac_executable_extensions; do 8300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8301 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8303 break 2 8304 fi 8305done 8306 done 8307IFS=$as_save_IFS 8308 8309fi 8310fi 8311OTOOL64=$ac_cv_prog_OTOOL64 8312if test -n "$OTOOL64"; then 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8314$as_echo "$OTOOL64" >&6; } 8315else 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8317$as_echo "no" >&6; } 8318fi 8319 8320 8321fi 8322if test -z "$ac_cv_prog_OTOOL64"; then 8323 ac_ct_OTOOL64=$OTOOL64 8324 # Extract the first word of "otool64", so it can be a program name with args. 8325set dummy otool64; ac_word=$2 8326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8327$as_echo_n "checking for $ac_word... " >&6; } 8328if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8329 $as_echo_n "(cached) " >&6 8330else 8331 if test -n "$ac_ct_OTOOL64"; then 8332 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8333else 8334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8335for as_dir in $PATH 8336do 8337 IFS=$as_save_IFS 8338 test -z "$as_dir" && as_dir=. 8339 for ac_exec_ext in '' $ac_executable_extensions; do 8340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8341 ac_cv_prog_ac_ct_OTOOL64="otool64" 8342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8343 break 2 8344 fi 8345done 8346 done 8347IFS=$as_save_IFS 8348 8349fi 8350fi 8351ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8352if test -n "$ac_ct_OTOOL64"; then 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8354$as_echo "$ac_ct_OTOOL64" >&6; } 8355else 8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8357$as_echo "no" >&6; } 8358fi 8359 8360 if test "x$ac_ct_OTOOL64" = x; then 8361 OTOOL64=":" 8362 else 8363 case $cross_compiling:$ac_tool_warned in 8364yes:) 8365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8367ac_tool_warned=yes ;; 8368esac 8369 OTOOL64=$ac_ct_OTOOL64 8370 fi 8371else 8372 OTOOL64="$ac_cv_prog_OTOOL64" 8373fi 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8402$as_echo_n "checking for -single_module linker flag... " >&6; } 8403if ${lt_cv_apple_cc_single_mod+:} false; then : 8404 $as_echo_n "(cached) " >&6 8405else 8406 lt_cv_apple_cc_single_mod=no 8407 if test -z "${LT_MULTI_MODULE}"; then 8408 # By default we will add the -single_module flag. You can override 8409 # by either setting the environment variable LT_MULTI_MODULE 8410 # non-empty at configure time, or by adding -multi_module to the 8411 # link flags. 8412 rm -rf libconftest.dylib* 8413 echo "int foo(void){return 1;}" > conftest.c 8414 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8415-dynamiclib -Wl,-single_module conftest.c" >&5 8416 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8417 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8418 _lt_result=$? 8419 # If there is a non-empty error log, and "single_module" 8420 # appears in it, assume the flag caused a linker warning 8421 if test -s conftest.err && $GREP single_module conftest.err; then 8422 cat conftest.err >&5 8423 # Otherwise, if the output was created with a 0 exit code from 8424 # the compiler, it worked. 8425 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8426 lt_cv_apple_cc_single_mod=yes 8427 else 8428 cat conftest.err >&5 8429 fi 8430 rm -rf libconftest.dylib* 8431 rm -f conftest.* 8432 fi 8433fi 8434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8435$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8436 8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8438$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8439if ${lt_cv_ld_exported_symbols_list+:} false; then : 8440 $as_echo_n "(cached) " >&6 8441else 8442 lt_cv_ld_exported_symbols_list=no 8443 save_LDFLAGS=$LDFLAGS 8444 echo "_main" > conftest.sym 8445 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8447/* end confdefs.h. */ 8448 8449int 8450main () 8451{ 8452 8453 ; 8454 return 0; 8455} 8456_ACEOF 8457if ac_fn_c_try_link "$LINENO"; then : 8458 lt_cv_ld_exported_symbols_list=yes 8459else 8460 lt_cv_ld_exported_symbols_list=no 8461fi 8462rm -f core conftest.err conftest.$ac_objext \ 8463 conftest$ac_exeext conftest.$ac_ext 8464 LDFLAGS="$save_LDFLAGS" 8465 8466fi 8467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8468$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8469 8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8471$as_echo_n "checking for -force_load linker flag... " >&6; } 8472if ${lt_cv_ld_force_load+:} false; then : 8473 $as_echo_n "(cached) " >&6 8474else 8475 lt_cv_ld_force_load=no 8476 cat > conftest.c << _LT_EOF 8477int forced_loaded() { return 2;} 8478_LT_EOF 8479 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8480 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8481 echo "$AR cru libconftest.a conftest.o" >&5 8482 $AR cru libconftest.a conftest.o 2>&5 8483 echo "$RANLIB libconftest.a" >&5 8484 $RANLIB libconftest.a 2>&5 8485 cat > conftest.c << _LT_EOF 8486int main() { return 0;} 8487_LT_EOF 8488 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8489 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8490 _lt_result=$? 8491 if test -s conftest.err && $GREP force_load conftest.err; then 8492 cat conftest.err >&5 8493 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8494 lt_cv_ld_force_load=yes 8495 else 8496 cat conftest.err >&5 8497 fi 8498 rm -f conftest.err libconftest.a conftest conftest.c 8499 rm -rf conftest.dSYM 8500 8501fi 8502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8503$as_echo "$lt_cv_ld_force_load" >&6; } 8504 case $host_os in 8505 rhapsody* | darwin1.[012]) 8506 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8507 darwin1.*) 8508 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8509 darwin*) # darwin 5.x on 8510 # if running on 10.5 or later, the deployment target defaults 8511 # to the OS version, if on x86, and 10.4, the deployment 8512 # target defaults to 10.4. Don't you love it? 8513 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8514 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8515 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8516 10.[012]*) 8517 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8518 10.*) 8519 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8520 esac 8521 ;; 8522 esac 8523 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8524 _lt_dar_single_mod='$single_module' 8525 fi 8526 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8527 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8528 else 8529 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8530 fi 8531 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8532 _lt_dsymutil='~$DSYMUTIL $lib || :' 8533 else 8534 _lt_dsymutil= 8535 fi 8536 ;; 8537 esac 8538 8539ac_ext=c 8540ac_cpp='$CPP $CPPFLAGS' 8541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8543ac_compiler_gnu=$ac_cv_c_compiler_gnu 8544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8545$as_echo_n "checking how to run the C preprocessor... " >&6; } 8546# On Suns, sometimes $CPP names a directory. 8547if test -n "$CPP" && test -d "$CPP"; then 8548 CPP= 8549fi 8550if test -z "$CPP"; then 8551 if ${ac_cv_prog_CPP+:} false; then : 8552 $as_echo_n "(cached) " >&6 8553else 8554 # Double quotes because CPP needs to be expanded 8555 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8556 do 8557 ac_preproc_ok=false 8558for ac_c_preproc_warn_flag in '' yes 8559do 8560 # Use a header file that comes with gcc, so configuring glibc 8561 # with a fresh cross-compiler works. 8562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8563 # <limits.h> exists even on freestanding compilers. 8564 # On the NeXT, cc -E runs the code through the compiler's parser, 8565 # not just through cpp. "Syntax error" is here to catch this case. 8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8567/* end confdefs.h. */ 8568#ifdef __STDC__ 8569# include <limits.h> 8570#else 8571# include <assert.h> 8572#endif 8573 Syntax error 8574_ACEOF 8575if ac_fn_c_try_cpp "$LINENO"; then : 8576 8577else 8578 # Broken: fails on valid input. 8579continue 8580fi 8581rm -f conftest.err conftest.i conftest.$ac_ext 8582 8583 # OK, works on sane cases. Now check whether nonexistent headers 8584 # can be detected and how. 8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8586/* end confdefs.h. */ 8587#include <ac_nonexistent.h> 8588_ACEOF 8589if ac_fn_c_try_cpp "$LINENO"; then : 8590 # Broken: success on invalid input. 8591continue 8592else 8593 # Passes both tests. 8594ac_preproc_ok=: 8595break 8596fi 8597rm -f conftest.err conftest.i conftest.$ac_ext 8598 8599done 8600# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8601rm -f conftest.i conftest.err conftest.$ac_ext 8602if $ac_preproc_ok; then : 8603 break 8604fi 8605 8606 done 8607 ac_cv_prog_CPP=$CPP 8608 8609fi 8610 CPP=$ac_cv_prog_CPP 8611else 8612 ac_cv_prog_CPP=$CPP 8613fi 8614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8615$as_echo "$CPP" >&6; } 8616ac_preproc_ok=false 8617for ac_c_preproc_warn_flag in '' yes 8618do 8619 # Use a header file that comes with gcc, so configuring glibc 8620 # with a fresh cross-compiler works. 8621 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8622 # <limits.h> exists even on freestanding compilers. 8623 # On the NeXT, cc -E runs the code through the compiler's parser, 8624 # not just through cpp. "Syntax error" is here to catch this case. 8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8626/* end confdefs.h. */ 8627#ifdef __STDC__ 8628# include <limits.h> 8629#else 8630# include <assert.h> 8631#endif 8632 Syntax error 8633_ACEOF 8634if ac_fn_c_try_cpp "$LINENO"; then : 8635 8636else 8637 # Broken: fails on valid input. 8638continue 8639fi 8640rm -f conftest.err conftest.i conftest.$ac_ext 8641 8642 # OK, works on sane cases. Now check whether nonexistent headers 8643 # can be detected and how. 8644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8645/* end confdefs.h. */ 8646#include <ac_nonexistent.h> 8647_ACEOF 8648if ac_fn_c_try_cpp "$LINENO"; then : 8649 # Broken: success on invalid input. 8650continue 8651else 8652 # Passes both tests. 8653ac_preproc_ok=: 8654break 8655fi 8656rm -f conftest.err conftest.i conftest.$ac_ext 8657 8658done 8659# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8660rm -f conftest.i conftest.err conftest.$ac_ext 8661if $ac_preproc_ok; then : 8662 8663else 8664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8666as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8667See \`config.log' for more details" "$LINENO" 5; } 8668fi 8669 8670ac_ext=c 8671ac_cpp='$CPP $CPPFLAGS' 8672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8674ac_compiler_gnu=$ac_cv_c_compiler_gnu 8675 8676 8677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8678$as_echo_n "checking for ANSI C header files... " >&6; } 8679if ${ac_cv_header_stdc+:} false; then : 8680 $as_echo_n "(cached) " >&6 8681else 8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8683/* end confdefs.h. */ 8684#include <stdlib.h> 8685#include <stdarg.h> 8686#include <string.h> 8687#include <float.h> 8688 8689int 8690main () 8691{ 8692 8693 ; 8694 return 0; 8695} 8696_ACEOF 8697if ac_fn_c_try_compile "$LINENO"; then : 8698 ac_cv_header_stdc=yes 8699else 8700 ac_cv_header_stdc=no 8701fi 8702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8703 8704if test $ac_cv_header_stdc = yes; then 8705 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8707/* end confdefs.h. */ 8708#include <string.h> 8709 8710_ACEOF 8711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8712 $EGREP "memchr" >/dev/null 2>&1; then : 8713 8714else 8715 ac_cv_header_stdc=no 8716fi 8717rm -f conftest* 8718 8719fi 8720 8721if test $ac_cv_header_stdc = yes; then 8722 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8724/* end confdefs.h. */ 8725#include <stdlib.h> 8726 8727_ACEOF 8728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8729 $EGREP "free" >/dev/null 2>&1; then : 8730 8731else 8732 ac_cv_header_stdc=no 8733fi 8734rm -f conftest* 8735 8736fi 8737 8738if test $ac_cv_header_stdc = yes; then 8739 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8740 if test "$cross_compiling" = yes; then : 8741 : 8742else 8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8744/* end confdefs.h. */ 8745#include <ctype.h> 8746#include <stdlib.h> 8747#if ((' ' & 0x0FF) == 0x020) 8748# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8749# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8750#else 8751# define ISLOWER(c) \ 8752 (('a' <= (c) && (c) <= 'i') \ 8753 || ('j' <= (c) && (c) <= 'r') \ 8754 || ('s' <= (c) && (c) <= 'z')) 8755# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8756#endif 8757 8758#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8759int 8760main () 8761{ 8762 int i; 8763 for (i = 0; i < 256; i++) 8764 if (XOR (islower (i), ISLOWER (i)) 8765 || toupper (i) != TOUPPER (i)) 8766 return 2; 8767 return 0; 8768} 8769_ACEOF 8770if ac_fn_c_try_run "$LINENO"; then : 8771 8772else 8773 ac_cv_header_stdc=no 8774fi 8775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8776 conftest.$ac_objext conftest.beam conftest.$ac_ext 8777fi 8778 8779fi 8780fi 8781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8782$as_echo "$ac_cv_header_stdc" >&6; } 8783if test $ac_cv_header_stdc = yes; then 8784 8785$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8786 8787fi 8788 8789# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8790for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8791 inttypes.h stdint.h unistd.h 8792do : 8793 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8794ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8795" 8796if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8797 cat >>confdefs.h <<_ACEOF 8798#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8799_ACEOF 8800 8801fi 8802 8803done 8804 8805 8806for ac_header in dlfcn.h 8807do : 8808 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8809" 8810if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8811 cat >>confdefs.h <<_ACEOF 8812#define HAVE_DLFCN_H 1 8813_ACEOF 8814 8815fi 8816 8817done 8818 8819 8820 8821 8822 8823# Set options 8824 8825 8826 8827 enable_dlopen=no 8828 8829 8830 enable_win32_dll=no 8831 8832 8833 # Check whether --enable-shared was given. 8834if test "${enable_shared+set}" = set; then : 8835 enableval=$enable_shared; p=${PACKAGE-default} 8836 case $enableval in 8837 yes) enable_shared=yes ;; 8838 no) enable_shared=no ;; 8839 *) 8840 enable_shared=no 8841 # Look at the argument we got. We use all the common list separators. 8842 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8843 for pkg in $enableval; do 8844 IFS="$lt_save_ifs" 8845 if test "X$pkg" = "X$p"; then 8846 enable_shared=yes 8847 fi 8848 done 8849 IFS="$lt_save_ifs" 8850 ;; 8851 esac 8852else 8853 enable_shared=yes 8854fi 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866# Check whether --with-pic was given. 8867if test "${with_pic+set}" = set; then : 8868 withval=$with_pic; lt_p=${PACKAGE-default} 8869 case $withval in 8870 yes|no) pic_mode=$withval ;; 8871 *) 8872 pic_mode=default 8873 # Look at the argument we got. We use all the common list separators. 8874 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8875 for lt_pkg in $withval; do 8876 IFS="$lt_save_ifs" 8877 if test "X$lt_pkg" = "X$lt_p"; then 8878 pic_mode=yes 8879 fi 8880 done 8881 IFS="$lt_save_ifs" 8882 ;; 8883 esac 8884else 8885 pic_mode=default 8886fi 8887 8888 8889test -z "$pic_mode" && pic_mode=default 8890 8891 8892 8893 8894 8895 8896 8897 # Check whether --enable-fast-install was given. 8898if test "${enable_fast_install+set}" = set; then : 8899 enableval=$enable_fast_install; p=${PACKAGE-default} 8900 case $enableval in 8901 yes) enable_fast_install=yes ;; 8902 no) enable_fast_install=no ;; 8903 *) 8904 enable_fast_install=no 8905 # Look at the argument we got. We use all the common list separators. 8906 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8907 for pkg in $enableval; do 8908 IFS="$lt_save_ifs" 8909 if test "X$pkg" = "X$p"; then 8910 enable_fast_install=yes 8911 fi 8912 done 8913 IFS="$lt_save_ifs" 8914 ;; 8915 esac 8916else 8917 enable_fast_install=yes 8918fi 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930# This can be used to rebuild libtool when needed 8931LIBTOOL_DEPS="$ltmain" 8932 8933# Always use our own libtool. 8934LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965test -z "$LN_S" && LN_S="ln -s" 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980if test -n "${ZSH_VERSION+set}" ; then 8981 setopt NO_GLOB_SUBST 8982fi 8983 8984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8985$as_echo_n "checking for objdir... " >&6; } 8986if ${lt_cv_objdir+:} false; then : 8987 $as_echo_n "(cached) " >&6 8988else 8989 rm -f .libs 2>/dev/null 8990mkdir .libs 2>/dev/null 8991if test -d .libs; then 8992 lt_cv_objdir=.libs 8993else 8994 # MS-DOS does not allow filenames that begin with a dot. 8995 lt_cv_objdir=_libs 8996fi 8997rmdir .libs 2>/dev/null 8998fi 8999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9000$as_echo "$lt_cv_objdir" >&6; } 9001objdir=$lt_cv_objdir 9002 9003 9004 9005 9006 9007cat >>confdefs.h <<_ACEOF 9008#define LT_OBJDIR "$lt_cv_objdir/" 9009_ACEOF 9010 9011 9012 9013 9014case $host_os in 9015aix3*) 9016 # AIX sometimes has problems with the GCC collect2 program. For some 9017 # reason, if we set the COLLECT_NAMES environment variable, the problems 9018 # vanish in a puff of smoke. 9019 if test "X${COLLECT_NAMES+set}" != Xset; then 9020 COLLECT_NAMES= 9021 export COLLECT_NAMES 9022 fi 9023 ;; 9024esac 9025 9026# Global variables: 9027ofile=libtool 9028can_build_shared=yes 9029 9030# All known linkers require a `.a' archive for static linking (except MSVC, 9031# which needs '.lib'). 9032libext=a 9033 9034with_gnu_ld="$lt_cv_prog_gnu_ld" 9035 9036old_CC="$CC" 9037old_CFLAGS="$CFLAGS" 9038 9039# Set sane defaults for various variables 9040test -z "$CC" && CC=cc 9041test -z "$LTCC" && LTCC=$CC 9042test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9043test -z "$LD" && LD=ld 9044test -z "$ac_objext" && ac_objext=o 9045 9046for cc_temp in $compiler""; do 9047 case $cc_temp in 9048 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9049 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9050 \-*) ;; 9051 *) break;; 9052 esac 9053done 9054cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9055 9056 9057# Only perform the check for file, if the check method requires it 9058test -z "$MAGIC_CMD" && MAGIC_CMD=file 9059case $deplibs_check_method in 9060file_magic*) 9061 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9063$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9064if ${lt_cv_path_MAGIC_CMD+:} false; then : 9065 $as_echo_n "(cached) " >&6 9066else 9067 case $MAGIC_CMD in 9068[\\/*] | ?:[\\/]*) 9069 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9070 ;; 9071*) 9072 lt_save_MAGIC_CMD="$MAGIC_CMD" 9073 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9074 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9075 for ac_dir in $ac_dummy; do 9076 IFS="$lt_save_ifs" 9077 test -z "$ac_dir" && ac_dir=. 9078 if test -f $ac_dir/${ac_tool_prefix}file; then 9079 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9080 if test -n "$file_magic_test_file"; then 9081 case $deplibs_check_method in 9082 "file_magic "*) 9083 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9084 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9085 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9086 $EGREP "$file_magic_regex" > /dev/null; then 9087 : 9088 else 9089 cat <<_LT_EOF 1>&2 9090 9091*** Warning: the command libtool uses to detect shared libraries, 9092*** $file_magic_cmd, produces output that libtool cannot recognize. 9093*** The result is that libtool may fail to recognize shared libraries 9094*** as such. This will affect the creation of libtool libraries that 9095*** depend on shared libraries, but programs linked with such libtool 9096*** libraries will work regardless of this problem. Nevertheless, you 9097*** may want to report the problem to your system manager and/or to 9098*** bug-libtool@gnu.org 9099 9100_LT_EOF 9101 fi ;; 9102 esac 9103 fi 9104 break 9105 fi 9106 done 9107 IFS="$lt_save_ifs" 9108 MAGIC_CMD="$lt_save_MAGIC_CMD" 9109 ;; 9110esac 9111fi 9112 9113MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9114if test -n "$MAGIC_CMD"; then 9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9116$as_echo "$MAGIC_CMD" >&6; } 9117else 9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9119$as_echo "no" >&6; } 9120fi 9121 9122 9123 9124 9125 9126if test -z "$lt_cv_path_MAGIC_CMD"; then 9127 if test -n "$ac_tool_prefix"; then 9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9129$as_echo_n "checking for file... " >&6; } 9130if ${lt_cv_path_MAGIC_CMD+:} false; then : 9131 $as_echo_n "(cached) " >&6 9132else 9133 case $MAGIC_CMD in 9134[\\/*] | ?:[\\/]*) 9135 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9136 ;; 9137*) 9138 lt_save_MAGIC_CMD="$MAGIC_CMD" 9139 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9140 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9141 for ac_dir in $ac_dummy; do 9142 IFS="$lt_save_ifs" 9143 test -z "$ac_dir" && ac_dir=. 9144 if test -f $ac_dir/file; then 9145 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9146 if test -n "$file_magic_test_file"; then 9147 case $deplibs_check_method in 9148 "file_magic "*) 9149 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9151 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9152 $EGREP "$file_magic_regex" > /dev/null; then 9153 : 9154 else 9155 cat <<_LT_EOF 1>&2 9156 9157*** Warning: the command libtool uses to detect shared libraries, 9158*** $file_magic_cmd, produces output that libtool cannot recognize. 9159*** The result is that libtool may fail to recognize shared libraries 9160*** as such. This will affect the creation of libtool libraries that 9161*** depend on shared libraries, but programs linked with such libtool 9162*** libraries will work regardless of this problem. Nevertheless, you 9163*** may want to report the problem to your system manager and/or to 9164*** bug-libtool@gnu.org 9165 9166_LT_EOF 9167 fi ;; 9168 esac 9169 fi 9170 break 9171 fi 9172 done 9173 IFS="$lt_save_ifs" 9174 MAGIC_CMD="$lt_save_MAGIC_CMD" 9175 ;; 9176esac 9177fi 9178 9179MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9180if test -n "$MAGIC_CMD"; then 9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9182$as_echo "$MAGIC_CMD" >&6; } 9183else 9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9185$as_echo "no" >&6; } 9186fi 9187 9188 9189 else 9190 MAGIC_CMD=: 9191 fi 9192fi 9193 9194 fi 9195 ;; 9196esac 9197 9198# Use C for the default configuration in the libtool script 9199 9200lt_save_CC="$CC" 9201ac_ext=c 9202ac_cpp='$CPP $CPPFLAGS' 9203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9205ac_compiler_gnu=$ac_cv_c_compiler_gnu 9206 9207 9208# Source file extension for C test sources. 9209ac_ext=c 9210 9211# Object file extension for compiled C test sources. 9212objext=o 9213objext=$objext 9214 9215# Code to be used in simple compile tests 9216lt_simple_compile_test_code="int some_variable = 0;" 9217 9218# Code to be used in simple link tests 9219lt_simple_link_test_code='int main(){return(0);}' 9220 9221 9222 9223 9224 9225 9226 9227# If no C compiler was specified, use CC. 9228LTCC=${LTCC-"$CC"} 9229 9230# If no C compiler flags were specified, use CFLAGS. 9231LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9232 9233# Allow CC to be a program name with arguments. 9234compiler=$CC 9235 9236# Save the default compiler, since it gets overwritten when the other 9237# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9238compiler_DEFAULT=$CC 9239 9240# save warnings/boilerplate of simple test code 9241ac_outfile=conftest.$ac_objext 9242echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9243eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9244_lt_compiler_boilerplate=`cat conftest.err` 9245$RM conftest* 9246 9247ac_outfile=conftest.$ac_objext 9248echo "$lt_simple_link_test_code" >conftest.$ac_ext 9249eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9250_lt_linker_boilerplate=`cat conftest.err` 9251$RM -r conftest* 9252 9253 9254## CAVEAT EMPTOR: 9255## There is no encapsulation within the following macros, do not change 9256## the running order or otherwise move them around unless you know exactly 9257## what you are doing... 9258if test -n "$compiler"; then 9259 9260lt_prog_compiler_no_builtin_flag= 9261 9262if test "$GCC" = yes; then 9263 case $cc_basename in 9264 nvcc*) 9265 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9266 *) 9267 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9268 esac 9269 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9271$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9272if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9273 $as_echo_n "(cached) " >&6 9274else 9275 lt_cv_prog_compiler_rtti_exceptions=no 9276 ac_outfile=conftest.$ac_objext 9277 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9278 lt_compiler_flag="-fno-rtti -fno-exceptions" 9279 # Insert the option either (1) after the last *FLAGS variable, or 9280 # (2) before a word containing "conftest.", or (3) at the end. 9281 # Note that $ac_compile itself does not contain backslashes and begins 9282 # with a dollar sign (not a hyphen), so the echo should work correctly. 9283 # The option is referenced via a variable to avoid confusing sed. 9284 lt_compile=`echo "$ac_compile" | $SED \ 9285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9287 -e 's:$: $lt_compiler_flag:'` 9288 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9289 (eval "$lt_compile" 2>conftest.err) 9290 ac_status=$? 9291 cat conftest.err >&5 9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9293 if (exit $ac_status) && test -s "$ac_outfile"; then 9294 # The compiler can only warn and ignore the option if not recognized 9295 # So say no if there are warnings other than the usual output. 9296 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9297 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9298 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9299 lt_cv_prog_compiler_rtti_exceptions=yes 9300 fi 9301 fi 9302 $RM conftest* 9303 9304fi 9305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9306$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9307 9308if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9309 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9310else 9311 : 9312fi 9313 9314fi 9315 9316 9317 9318 9319 9320 9321 lt_prog_compiler_wl= 9322lt_prog_compiler_pic= 9323lt_prog_compiler_static= 9324 9325 9326 if test "$GCC" = yes; then 9327 lt_prog_compiler_wl='-Wl,' 9328 lt_prog_compiler_static='-static' 9329 9330 case $host_os in 9331 aix*) 9332 # All AIX code is PIC. 9333 if test "$host_cpu" = ia64; then 9334 # AIX 5 now supports IA64 processor 9335 lt_prog_compiler_static='-Bstatic' 9336 fi 9337 ;; 9338 9339 amigaos*) 9340 case $host_cpu in 9341 powerpc) 9342 # see comment about AmigaOS4 .so support 9343 lt_prog_compiler_pic='-fPIC' 9344 ;; 9345 m68k) 9346 # FIXME: we need at least 68020 code to build shared libraries, but 9347 # adding the `-m68020' flag to GCC prevents building anything better, 9348 # like `-m68040'. 9349 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9350 ;; 9351 esac 9352 ;; 9353 9354 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9355 # PIC is the default for these OSes. 9356 ;; 9357 9358 mingw* | cygwin* | pw32* | os2* | cegcc*) 9359 # This hack is so that the source file can tell whether it is being 9360 # built for inclusion in a dll (and should export symbols for example). 9361 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9362 # (--disable-auto-import) libraries 9363 lt_prog_compiler_pic='-DDLL_EXPORT' 9364 ;; 9365 9366 darwin* | rhapsody*) 9367 # PIC is the default on this platform 9368 # Common symbols not allowed in MH_DYLIB files 9369 lt_prog_compiler_pic='-fno-common' 9370 ;; 9371 9372 haiku*) 9373 # PIC is the default for Haiku. 9374 # The "-static" flag exists, but is broken. 9375 lt_prog_compiler_static= 9376 ;; 9377 9378 hpux*) 9379 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9380 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9381 # sets the default TLS model and affects inlining. 9382 case $host_cpu in 9383 hppa*64*) 9384 # +Z the default 9385 ;; 9386 *) 9387 lt_prog_compiler_pic='-fPIC' 9388 ;; 9389 esac 9390 ;; 9391 9392 interix[3-9]*) 9393 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9394 # Instead, we relocate shared libraries at runtime. 9395 ;; 9396 9397 msdosdjgpp*) 9398 # Just because we use GCC doesn't mean we suddenly get shared libraries 9399 # on systems that don't support them. 9400 lt_prog_compiler_can_build_shared=no 9401 enable_shared=no 9402 ;; 9403 9404 *nto* | *qnx*) 9405 # QNX uses GNU C++, but need to define -shared option too, otherwise 9406 # it will coredump. 9407 lt_prog_compiler_pic='-fPIC -shared' 9408 ;; 9409 9410 sysv4*MP*) 9411 if test -d /usr/nec; then 9412 lt_prog_compiler_pic=-Kconform_pic 9413 fi 9414 ;; 9415 9416 *) 9417 lt_prog_compiler_pic='-fPIC' 9418 ;; 9419 esac 9420 9421 case $cc_basename in 9422 nvcc*) # Cuda Compiler Driver 2.2 9423 lt_prog_compiler_wl='-Xlinker ' 9424 if test -n "$lt_prog_compiler_pic"; then 9425 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9426 fi 9427 ;; 9428 esac 9429 else 9430 # PORTME Check for flag to pass linker flags through the system compiler. 9431 case $host_os in 9432 aix*) 9433 lt_prog_compiler_wl='-Wl,' 9434 if test "$host_cpu" = ia64; then 9435 # AIX 5 now supports IA64 processor 9436 lt_prog_compiler_static='-Bstatic' 9437 else 9438 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9439 fi 9440 ;; 9441 9442 mingw* | cygwin* | pw32* | os2* | cegcc*) 9443 # This hack is so that the source file can tell whether it is being 9444 # built for inclusion in a dll (and should export symbols for example). 9445 lt_prog_compiler_pic='-DDLL_EXPORT' 9446 ;; 9447 9448 hpux9* | hpux10* | hpux11*) 9449 lt_prog_compiler_wl='-Wl,' 9450 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9451 # not for PA HP-UX. 9452 case $host_cpu in 9453 hppa*64*|ia64*) 9454 # +Z the default 9455 ;; 9456 *) 9457 lt_prog_compiler_pic='+Z' 9458 ;; 9459 esac 9460 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9461 lt_prog_compiler_static='${wl}-a ${wl}archive' 9462 ;; 9463 9464 irix5* | irix6* | nonstopux*) 9465 lt_prog_compiler_wl='-Wl,' 9466 # PIC (with -KPIC) is the default. 9467 lt_prog_compiler_static='-non_shared' 9468 ;; 9469 9470 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9471 case $cc_basename in 9472 # old Intel for x86_64 which still supported -KPIC. 9473 ecc*) 9474 lt_prog_compiler_wl='-Wl,' 9475 lt_prog_compiler_pic='-KPIC' 9476 lt_prog_compiler_static='-static' 9477 ;; 9478 # icc used to be incompatible with GCC. 9479 # ICC 10 doesn't accept -KPIC any more. 9480 icc* | ifort*) 9481 lt_prog_compiler_wl='-Wl,' 9482 lt_prog_compiler_pic='-fPIC' 9483 lt_prog_compiler_static='-static' 9484 ;; 9485 # Lahey Fortran 8.1. 9486 lf95*) 9487 lt_prog_compiler_wl='-Wl,' 9488 lt_prog_compiler_pic='--shared' 9489 lt_prog_compiler_static='--static' 9490 ;; 9491 nagfor*) 9492 # NAG Fortran compiler 9493 lt_prog_compiler_wl='-Wl,-Wl,,' 9494 lt_prog_compiler_pic='-PIC' 9495 lt_prog_compiler_static='-Bstatic' 9496 ;; 9497 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9498 # Portland Group compilers (*not* the Pentium gcc compiler, 9499 # which looks to be a dead project) 9500 lt_prog_compiler_wl='-Wl,' 9501 lt_prog_compiler_pic='-fpic' 9502 lt_prog_compiler_static='-Bstatic' 9503 ;; 9504 ccc*) 9505 lt_prog_compiler_wl='-Wl,' 9506 # All Alpha code is PIC. 9507 lt_prog_compiler_static='-non_shared' 9508 ;; 9509 xl* | bgxl* | bgf* | mpixl*) 9510 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9511 lt_prog_compiler_wl='-Wl,' 9512 lt_prog_compiler_pic='-qpic' 9513 lt_prog_compiler_static='-qstaticlink' 9514 ;; 9515 *) 9516 case `$CC -V 2>&1 | sed 5q` in 9517 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9518 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9519 lt_prog_compiler_pic='-KPIC' 9520 lt_prog_compiler_static='-Bstatic' 9521 lt_prog_compiler_wl='' 9522 ;; 9523 *Sun\ F* | *Sun*Fortran*) 9524 lt_prog_compiler_pic='-KPIC' 9525 lt_prog_compiler_static='-Bstatic' 9526 lt_prog_compiler_wl='-Qoption ld ' 9527 ;; 9528 *Sun\ C*) 9529 # Sun C 5.9 9530 lt_prog_compiler_pic='-KPIC' 9531 lt_prog_compiler_static='-Bstatic' 9532 lt_prog_compiler_wl='-Wl,' 9533 ;; 9534 *Intel*\ [CF]*Compiler*) 9535 lt_prog_compiler_wl='-Wl,' 9536 lt_prog_compiler_pic='-fPIC' 9537 lt_prog_compiler_static='-static' 9538 ;; 9539 *Portland\ Group*) 9540 lt_prog_compiler_wl='-Wl,' 9541 lt_prog_compiler_pic='-fpic' 9542 lt_prog_compiler_static='-Bstatic' 9543 ;; 9544 esac 9545 ;; 9546 esac 9547 ;; 9548 9549 newsos6) 9550 lt_prog_compiler_pic='-KPIC' 9551 lt_prog_compiler_static='-Bstatic' 9552 ;; 9553 9554 *nto* | *qnx*) 9555 # QNX uses GNU C++, but need to define -shared option too, otherwise 9556 # it will coredump. 9557 lt_prog_compiler_pic='-fPIC -shared' 9558 ;; 9559 9560 osf3* | osf4* | osf5*) 9561 lt_prog_compiler_wl='-Wl,' 9562 # All OSF/1 code is PIC. 9563 lt_prog_compiler_static='-non_shared' 9564 ;; 9565 9566 rdos*) 9567 lt_prog_compiler_static='-non_shared' 9568 ;; 9569 9570 solaris*) 9571 lt_prog_compiler_pic='-KPIC' 9572 lt_prog_compiler_static='-Bstatic' 9573 case $cc_basename in 9574 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9575 lt_prog_compiler_wl='-Qoption ld ';; 9576 *) 9577 lt_prog_compiler_wl='-Wl,';; 9578 esac 9579 ;; 9580 9581 sunos4*) 9582 lt_prog_compiler_wl='-Qoption ld ' 9583 lt_prog_compiler_pic='-PIC' 9584 lt_prog_compiler_static='-Bstatic' 9585 ;; 9586 9587 sysv4 | sysv4.2uw2* | sysv4.3*) 9588 lt_prog_compiler_wl='-Wl,' 9589 lt_prog_compiler_pic='-KPIC' 9590 lt_prog_compiler_static='-Bstatic' 9591 ;; 9592 9593 sysv4*MP*) 9594 if test -d /usr/nec ;then 9595 lt_prog_compiler_pic='-Kconform_pic' 9596 lt_prog_compiler_static='-Bstatic' 9597 fi 9598 ;; 9599 9600 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9601 lt_prog_compiler_wl='-Wl,' 9602 lt_prog_compiler_pic='-KPIC' 9603 lt_prog_compiler_static='-Bstatic' 9604 ;; 9605 9606 unicos*) 9607 lt_prog_compiler_wl='-Wl,' 9608 lt_prog_compiler_can_build_shared=no 9609 ;; 9610 9611 uts4*) 9612 lt_prog_compiler_pic='-pic' 9613 lt_prog_compiler_static='-Bstatic' 9614 ;; 9615 9616 *) 9617 lt_prog_compiler_can_build_shared=no 9618 ;; 9619 esac 9620 fi 9621 9622case $host_os in 9623 # For platforms which do not support PIC, -DPIC is meaningless: 9624 *djgpp*) 9625 lt_prog_compiler_pic= 9626 ;; 9627 *) 9628 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9629 ;; 9630esac 9631 9632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9633$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9634if ${lt_cv_prog_compiler_pic+:} false; then : 9635 $as_echo_n "(cached) " >&6 9636else 9637 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9638fi 9639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9640$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9641lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9642 9643# 9644# Check to make sure the PIC flag actually works. 9645# 9646if test -n "$lt_prog_compiler_pic"; then 9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9648$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9649if ${lt_cv_prog_compiler_pic_works+:} false; then : 9650 $as_echo_n "(cached) " >&6 9651else 9652 lt_cv_prog_compiler_pic_works=no 9653 ac_outfile=conftest.$ac_objext 9654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9655 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9656 # Insert the option either (1) after the last *FLAGS variable, or 9657 # (2) before a word containing "conftest.", or (3) at the end. 9658 # Note that $ac_compile itself does not contain backslashes and begins 9659 # with a dollar sign (not a hyphen), so the echo should work correctly. 9660 # The option is referenced via a variable to avoid confusing sed. 9661 lt_compile=`echo "$ac_compile" | $SED \ 9662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9664 -e 's:$: $lt_compiler_flag:'` 9665 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9666 (eval "$lt_compile" 2>conftest.err) 9667 ac_status=$? 9668 cat conftest.err >&5 9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9670 if (exit $ac_status) && test -s "$ac_outfile"; then 9671 # The compiler can only warn and ignore the option if not recognized 9672 # So say no if there are warnings other than the usual output. 9673 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9675 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9676 lt_cv_prog_compiler_pic_works=yes 9677 fi 9678 fi 9679 $RM conftest* 9680 9681fi 9682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9683$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9684 9685if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9686 case $lt_prog_compiler_pic in 9687 "" | " "*) ;; 9688 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9689 esac 9690else 9691 lt_prog_compiler_pic= 9692 lt_prog_compiler_can_build_shared=no 9693fi 9694 9695fi 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707# 9708# Check to make sure the static flag actually works. 9709# 9710wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9712$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9713if ${lt_cv_prog_compiler_static_works+:} false; then : 9714 $as_echo_n "(cached) " >&6 9715else 9716 lt_cv_prog_compiler_static_works=no 9717 save_LDFLAGS="$LDFLAGS" 9718 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9719 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9720 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9721 # The linker can only warn and ignore the option if not recognized 9722 # So say no if there are warnings 9723 if test -s conftest.err; then 9724 # Append any errors to the config.log. 9725 cat conftest.err 1>&5 9726 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9727 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9728 if diff conftest.exp conftest.er2 >/dev/null; then 9729 lt_cv_prog_compiler_static_works=yes 9730 fi 9731 else 9732 lt_cv_prog_compiler_static_works=yes 9733 fi 9734 fi 9735 $RM -r conftest* 9736 LDFLAGS="$save_LDFLAGS" 9737 9738fi 9739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9740$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9741 9742if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9743 : 9744else 9745 lt_prog_compiler_static= 9746fi 9747 9748 9749 9750 9751 9752 9753 9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9755$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9756if ${lt_cv_prog_compiler_c_o+:} false; then : 9757 $as_echo_n "(cached) " >&6 9758else 9759 lt_cv_prog_compiler_c_o=no 9760 $RM -r conftest 2>/dev/null 9761 mkdir conftest 9762 cd conftest 9763 mkdir out 9764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9765 9766 lt_compiler_flag="-o out/conftest2.$ac_objext" 9767 # Insert the option either (1) after the last *FLAGS variable, or 9768 # (2) before a word containing "conftest.", or (3) at the end. 9769 # Note that $ac_compile itself does not contain backslashes and begins 9770 # with a dollar sign (not a hyphen), so the echo should work correctly. 9771 lt_compile=`echo "$ac_compile" | $SED \ 9772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9774 -e 's:$: $lt_compiler_flag:'` 9775 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9776 (eval "$lt_compile" 2>out/conftest.err) 9777 ac_status=$? 9778 cat out/conftest.err >&5 9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9780 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9781 then 9782 # The compiler can only warn and ignore the option if not recognized 9783 # So say no if there are warnings 9784 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9785 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9786 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9787 lt_cv_prog_compiler_c_o=yes 9788 fi 9789 fi 9790 chmod u+w . 2>&5 9791 $RM conftest* 9792 # SGI C++ compiler will create directory out/ii_files/ for 9793 # template instantiation 9794 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9795 $RM out/* && rmdir out 9796 cd .. 9797 $RM -r conftest 9798 $RM conftest* 9799 9800fi 9801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9802$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9803 9804 9805 9806 9807 9808 9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9810$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9811if ${lt_cv_prog_compiler_c_o+:} false; then : 9812 $as_echo_n "(cached) " >&6 9813else 9814 lt_cv_prog_compiler_c_o=no 9815 $RM -r conftest 2>/dev/null 9816 mkdir conftest 9817 cd conftest 9818 mkdir out 9819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9820 9821 lt_compiler_flag="-o out/conftest2.$ac_objext" 9822 # Insert the option either (1) after the last *FLAGS variable, or 9823 # (2) before a word containing "conftest.", or (3) at the end. 9824 # Note that $ac_compile itself does not contain backslashes and begins 9825 # with a dollar sign (not a hyphen), so the echo should work correctly. 9826 lt_compile=`echo "$ac_compile" | $SED \ 9827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9829 -e 's:$: $lt_compiler_flag:'` 9830 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9831 (eval "$lt_compile" 2>out/conftest.err) 9832 ac_status=$? 9833 cat out/conftest.err >&5 9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9835 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9836 then 9837 # The compiler can only warn and ignore the option if not recognized 9838 # So say no if there are warnings 9839 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9840 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9841 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9842 lt_cv_prog_compiler_c_o=yes 9843 fi 9844 fi 9845 chmod u+w . 2>&5 9846 $RM conftest* 9847 # SGI C++ compiler will create directory out/ii_files/ for 9848 # template instantiation 9849 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9850 $RM out/* && rmdir out 9851 cd .. 9852 $RM -r conftest 9853 $RM conftest* 9854 9855fi 9856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9857$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9858 9859 9860 9861 9862hard_links="nottested" 9863if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9864 # do not overwrite the value of need_locks provided by the user 9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9866$as_echo_n "checking if we can lock with hard links... " >&6; } 9867 hard_links=yes 9868 $RM conftest* 9869 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9870 touch conftest.a 9871 ln conftest.a conftest.b 2>&5 || hard_links=no 9872 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9874$as_echo "$hard_links" >&6; } 9875 if test "$hard_links" = no; then 9876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9877$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9878 need_locks=warn 9879 fi 9880else 9881 need_locks=no 9882fi 9883 9884 9885 9886 9887 9888 9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9890$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9891 9892 runpath_var= 9893 allow_undefined_flag= 9894 always_export_symbols=no 9895 archive_cmds= 9896 archive_expsym_cmds= 9897 compiler_needs_object=no 9898 enable_shared_with_static_runtimes=no 9899 export_dynamic_flag_spec= 9900 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9901 hardcode_automatic=no 9902 hardcode_direct=no 9903 hardcode_direct_absolute=no 9904 hardcode_libdir_flag_spec= 9905 hardcode_libdir_separator= 9906 hardcode_minus_L=no 9907 hardcode_shlibpath_var=unsupported 9908 inherit_rpath=no 9909 link_all_deplibs=unknown 9910 module_cmds= 9911 module_expsym_cmds= 9912 old_archive_from_new_cmds= 9913 old_archive_from_expsyms_cmds= 9914 thread_safe_flag_spec= 9915 whole_archive_flag_spec= 9916 # include_expsyms should be a list of space-separated symbols to be *always* 9917 # included in the symbol list 9918 include_expsyms= 9919 # exclude_expsyms can be an extended regexp of symbols to exclude 9920 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9921 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9922 # as well as any symbol that contains `d'. 9923 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9924 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9925 # platforms (ab)use it in PIC code, but their linkers get confused if 9926 # the symbol is explicitly referenced. Since portable code cannot 9927 # rely on this symbol name, it's probably fine to never include it in 9928 # preloaded symbol tables. 9929 # Exclude shared library initialization/finalization symbols. 9930 extract_expsyms_cmds= 9931 9932 case $host_os in 9933 cygwin* | mingw* | pw32* | cegcc*) 9934 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9935 # When not using gcc, we currently assume that we are using 9936 # Microsoft Visual C++. 9937 if test "$GCC" != yes; then 9938 with_gnu_ld=no 9939 fi 9940 ;; 9941 interix*) 9942 # we just hope/assume this is gcc and not c89 (= MSVC++) 9943 with_gnu_ld=yes 9944 ;; 9945 openbsd*) 9946 with_gnu_ld=no 9947 ;; 9948 linux* | k*bsd*-gnu | gnu*) 9949 link_all_deplibs=no 9950 ;; 9951 esac 9952 9953 ld_shlibs=yes 9954 9955 # On some targets, GNU ld is compatible enough with the native linker 9956 # that we're better off using the native interface for both. 9957 lt_use_gnu_ld_interface=no 9958 if test "$with_gnu_ld" = yes; then 9959 case $host_os in 9960 aix*) 9961 # The AIX port of GNU ld has always aspired to compatibility 9962 # with the native linker. However, as the warning in the GNU ld 9963 # block says, versions before 2.19.5* couldn't really create working 9964 # shared libraries, regardless of the interface used. 9965 case `$LD -v 2>&1` in 9966 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9967 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9968 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9969 *) 9970 lt_use_gnu_ld_interface=yes 9971 ;; 9972 esac 9973 ;; 9974 *) 9975 lt_use_gnu_ld_interface=yes 9976 ;; 9977 esac 9978 fi 9979 9980 if test "$lt_use_gnu_ld_interface" = yes; then 9981 # If archive_cmds runs LD, not CC, wlarc should be empty 9982 wlarc='${wl}' 9983 9984 # Set some defaults for GNU ld with shared library support. These 9985 # are reset later if shared libraries are not supported. Putting them 9986 # here allows them to be overridden if necessary. 9987 runpath_var=LD_RUN_PATH 9988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9989 export_dynamic_flag_spec='${wl}--export-dynamic' 9990 # ancient GNU ld didn't support --whole-archive et. al. 9991 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9992 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9993 else 9994 whole_archive_flag_spec= 9995 fi 9996 supports_anon_versioning=no 9997 case `$LD -v 2>&1` in 9998 *GNU\ gold*) supports_anon_versioning=yes ;; 9999 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10000 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10001 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10002 *\ 2.11.*) ;; # other 2.11 versions 10003 *) supports_anon_versioning=yes ;; 10004 esac 10005 10006 # See if GNU ld supports shared libraries. 10007 case $host_os in 10008 aix[3-9]*) 10009 # On AIX/PPC, the GNU linker is very broken 10010 if test "$host_cpu" != ia64; then 10011 ld_shlibs=no 10012 cat <<_LT_EOF 1>&2 10013 10014*** Warning: the GNU linker, at least up to release 2.19, is reported 10015*** to be unable to reliably create shared libraries on AIX. 10016*** Therefore, libtool is disabling shared libraries support. If you 10017*** really care for shared libraries, you may want to install binutils 10018*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10019*** You will then need to restart the configuration process. 10020 10021_LT_EOF 10022 fi 10023 ;; 10024 10025 amigaos*) 10026 case $host_cpu in 10027 powerpc) 10028 # see comment about AmigaOS4 .so support 10029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10030 archive_expsym_cmds='' 10031 ;; 10032 m68k) 10033 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)' 10034 hardcode_libdir_flag_spec='-L$libdir' 10035 hardcode_minus_L=yes 10036 ;; 10037 esac 10038 ;; 10039 10040 beos*) 10041 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10042 allow_undefined_flag=unsupported 10043 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10044 # support --undefined. This deserves some investigation. FIXME 10045 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10046 else 10047 ld_shlibs=no 10048 fi 10049 ;; 10050 10051 cygwin* | mingw* | pw32* | cegcc*) 10052 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10053 # as there is no search path for DLLs. 10054 hardcode_libdir_flag_spec='-L$libdir' 10055 export_dynamic_flag_spec='${wl}--export-all-symbols' 10056 allow_undefined_flag=unsupported 10057 always_export_symbols=no 10058 enable_shared_with_static_runtimes=yes 10059 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 10060 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10061 10062 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10064 # If the export-symbols file already is a .def file (1st line 10065 # is EXPORTS), use it as is; otherwise, prepend... 10066 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10067 cp $export_symbols $output_objdir/$soname.def; 10068 else 10069 echo EXPORTS > $output_objdir/$soname.def; 10070 cat $export_symbols >> $output_objdir/$soname.def; 10071 fi~ 10072 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10073 else 10074 ld_shlibs=no 10075 fi 10076 ;; 10077 10078 haiku*) 10079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10080 link_all_deplibs=yes 10081 ;; 10082 10083 interix[3-9]*) 10084 hardcode_direct=no 10085 hardcode_shlibpath_var=no 10086 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10087 export_dynamic_flag_spec='${wl}-E' 10088 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10089 # Instead, shared libraries are loaded at an image base (0x10000000 by 10090 # default) and relocated if they conflict, which is a slow very memory 10091 # consuming and fragmenting process. To avoid this, we pick a random, 10092 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10093 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10094 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10095 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10096 ;; 10097 10098 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10099 tmp_diet=no 10100 if test "$host_os" = linux-dietlibc; then 10101 case $cc_basename in 10102 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10103 esac 10104 fi 10105 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10106 && test "$tmp_diet" = no 10107 then 10108 tmp_addflag=' $pic_flag' 10109 tmp_sharedflag='-shared' 10110 case $cc_basename,$host_cpu in 10111 pgcc*) # Portland Group C compiler 10112 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 10113 tmp_addflag=' $pic_flag' 10114 ;; 10115 pgf77* | pgf90* | pgf95* | pgfortran*) 10116 # Portland Group f77 and f90 compilers 10117 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 10118 tmp_addflag=' $pic_flag -Mnomain' ;; 10119 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10120 tmp_addflag=' -i_dynamic' ;; 10121 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10122 tmp_addflag=' -i_dynamic -nofor_main' ;; 10123 ifc* | ifort*) # Intel Fortran compiler 10124 tmp_addflag=' -nofor_main' ;; 10125 lf95*) # Lahey Fortran 8.1 10126 whole_archive_flag_spec= 10127 tmp_sharedflag='--shared' ;; 10128 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10129 tmp_sharedflag='-qmkshrobj' 10130 tmp_addflag= ;; 10131 nvcc*) # Cuda Compiler Driver 2.2 10132 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 10133 compiler_needs_object=yes 10134 ;; 10135 esac 10136 case `$CC -V 2>&1 | sed 5q` in 10137 *Sun\ C*) # Sun C 5.9 10138 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 10139 compiler_needs_object=yes 10140 tmp_sharedflag='-G' ;; 10141 *Sun\ F*) # Sun Fortran 8.3 10142 tmp_sharedflag='-G' ;; 10143 esac 10144 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10145 10146 if test "x$supports_anon_versioning" = xyes; then 10147 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10148 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10149 echo "local: *; };" >> $output_objdir/$libname.ver~ 10150 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10151 fi 10152 10153 case $cc_basename in 10154 xlf* | bgf* | bgxlf* | mpixlf*) 10155 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10156 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10157 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10158 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10159 if test "x$supports_anon_versioning" = xyes; then 10160 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10161 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10162 echo "local: *; };" >> $output_objdir/$libname.ver~ 10163 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10164 fi 10165 ;; 10166 esac 10167 else 10168 ld_shlibs=no 10169 fi 10170 ;; 10171 10172 netbsd* | netbsdelf*-gnu) 10173 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10174 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10175 wlarc= 10176 else 10177 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10178 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10179 fi 10180 ;; 10181 10182 solaris*) 10183 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10184 ld_shlibs=no 10185 cat <<_LT_EOF 1>&2 10186 10187*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10188*** create shared libraries on Solaris systems. Therefore, libtool 10189*** is disabling shared libraries support. We urge you to upgrade GNU 10190*** binutils to release 2.9.1 or newer. Another option is to modify 10191*** your PATH or compiler configuration so that the native linker is 10192*** used, and then restart. 10193 10194_LT_EOF 10195 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10196 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10197 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10198 else 10199 ld_shlibs=no 10200 fi 10201 ;; 10202 10203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10204 case `$LD -v 2>&1` in 10205 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10206 ld_shlibs=no 10207 cat <<_LT_EOF 1>&2 10208 10209*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10210*** reliably create shared libraries on SCO systems. Therefore, libtool 10211*** is disabling shared libraries support. We urge you to upgrade GNU 10212*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10213*** your PATH or compiler configuration so that the native linker is 10214*** used, and then restart. 10215 10216_LT_EOF 10217 ;; 10218 *) 10219 # For security reasons, it is highly recommended that you always 10220 # use absolute paths for naming shared libraries, and exclude the 10221 # DT_RUNPATH tag from executables and libraries. But doing so 10222 # requires that you compile everything twice, which is a pain. 10223 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10224 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10226 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10227 else 10228 ld_shlibs=no 10229 fi 10230 ;; 10231 esac 10232 ;; 10233 10234 sunos4*) 10235 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10236 wlarc= 10237 hardcode_direct=yes 10238 hardcode_shlibpath_var=no 10239 ;; 10240 10241 *) 10242 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10243 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10244 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10245 else 10246 ld_shlibs=no 10247 fi 10248 ;; 10249 esac 10250 10251 if test "$ld_shlibs" = no; then 10252 runpath_var= 10253 hardcode_libdir_flag_spec= 10254 export_dynamic_flag_spec= 10255 whole_archive_flag_spec= 10256 fi 10257 else 10258 # PORTME fill in a description of your system's linker (not GNU ld) 10259 case $host_os in 10260 aix3*) 10261 allow_undefined_flag=unsupported 10262 always_export_symbols=yes 10263 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' 10264 # Note: this linker hardcodes the directories in LIBPATH if there 10265 # are no directories specified by -L. 10266 hardcode_minus_L=yes 10267 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10268 # Neither direct hardcoding nor static linking is supported with a 10269 # broken collect2. 10270 hardcode_direct=unsupported 10271 fi 10272 ;; 10273 10274 aix[4-9]*) 10275 if test "$host_cpu" = ia64; then 10276 # On IA64, the linker does run time linking by default, so we don't 10277 # have to do anything special. 10278 aix_use_runtimelinking=no 10279 exp_sym_flag='-Bexport' 10280 no_entry_flag="" 10281 else 10282 # If we're using GNU nm, then we don't want the "-C" option. 10283 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10284 # Also, AIX nm treats weak defined symbols like other global 10285 # defined symbols, whereas GNU nm marks them as "W". 10286 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10287 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10288 else 10289 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10290 fi 10291 aix_use_runtimelinking=no 10292 10293 # Test if we are trying to use run time linking or normal 10294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10295 # need to do runtime linking. 10296 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10297 for ld_flag in $LDFLAGS; do 10298 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10299 aix_use_runtimelinking=yes 10300 break 10301 fi 10302 done 10303 ;; 10304 esac 10305 10306 exp_sym_flag='-bexport' 10307 no_entry_flag='-bnoentry' 10308 fi 10309 10310 # When large executables or shared objects are built, AIX ld can 10311 # have problems creating the table of contents. If linking a library 10312 # or program results in "error TOC overflow" add -mminimal-toc to 10313 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10314 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10315 10316 archive_cmds='' 10317 hardcode_direct=yes 10318 hardcode_direct_absolute=yes 10319 hardcode_libdir_separator=':' 10320 link_all_deplibs=yes 10321 file_list_spec='${wl}-f,' 10322 10323 if test "$GCC" = yes; then 10324 case $host_os in aix4.[012]|aix4.[012].*) 10325 # We only want to do this on AIX 4.2 and lower, the check 10326 # below for broken collect2 doesn't work under 4.3+ 10327 collect2name=`${CC} -print-prog-name=collect2` 10328 if test -f "$collect2name" && 10329 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10330 then 10331 # We have reworked collect2 10332 : 10333 else 10334 # We have old collect2 10335 hardcode_direct=unsupported 10336 # It fails to find uninstalled libraries when the uninstalled 10337 # path is not listed in the libpath. Setting hardcode_minus_L 10338 # to unsupported forces relinking 10339 hardcode_minus_L=yes 10340 hardcode_libdir_flag_spec='-L$libdir' 10341 hardcode_libdir_separator= 10342 fi 10343 ;; 10344 esac 10345 shared_flag='-shared' 10346 if test "$aix_use_runtimelinking" = yes; then 10347 shared_flag="$shared_flag "'${wl}-G' 10348 fi 10349 link_all_deplibs=no 10350 else 10351 # not using gcc 10352 if test "$host_cpu" = ia64; then 10353 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10354 # chokes on -Wl,-G. The following line is correct: 10355 shared_flag='-G' 10356 else 10357 if test "$aix_use_runtimelinking" = yes; then 10358 shared_flag='${wl}-G' 10359 else 10360 shared_flag='${wl}-bM:SRE' 10361 fi 10362 fi 10363 fi 10364 10365 export_dynamic_flag_spec='${wl}-bexpall' 10366 # It seems that -bexpall does not export symbols beginning with 10367 # underscore (_), so it is better to generate a list of symbols to export. 10368 always_export_symbols=yes 10369 if test "$aix_use_runtimelinking" = yes; then 10370 # Warning - without using the other runtime loading flags (-brtl), 10371 # -berok will link without error, but may produce a broken library. 10372 allow_undefined_flag='-berok' 10373 # Determine the default libpath from the value encoded in an 10374 # empty executable. 10375 if test "${lt_cv_aix_libpath+set}" = set; then 10376 aix_libpath=$lt_cv_aix_libpath 10377else 10378 if ${lt_cv_aix_libpath_+:} false; then : 10379 $as_echo_n "(cached) " >&6 10380else 10381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10382/* end confdefs.h. */ 10383 10384int 10385main () 10386{ 10387 10388 ; 10389 return 0; 10390} 10391_ACEOF 10392if ac_fn_c_try_link "$LINENO"; then : 10393 10394 lt_aix_libpath_sed=' 10395 /Import File Strings/,/^$/ { 10396 /^0/ { 10397 s/^0 *\([^ ]*\) *$/\1/ 10398 p 10399 } 10400 }' 10401 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10402 # Check for a 64-bit object if we didn't find anything. 10403 if test -z "$lt_cv_aix_libpath_"; then 10404 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10405 fi 10406fi 10407rm -f core conftest.err conftest.$ac_objext \ 10408 conftest$ac_exeext conftest.$ac_ext 10409 if test -z "$lt_cv_aix_libpath_"; then 10410 lt_cv_aix_libpath_="/usr/lib:/lib" 10411 fi 10412 10413fi 10414 10415 aix_libpath=$lt_cv_aix_libpath_ 10416fi 10417 10418 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10419 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10420 else 10421 if test "$host_cpu" = ia64; then 10422 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10423 allow_undefined_flag="-z nodefs" 10424 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 10425 else 10426 # Determine the default libpath from the value encoded in an 10427 # empty executable. 10428 if test "${lt_cv_aix_libpath+set}" = set; then 10429 aix_libpath=$lt_cv_aix_libpath 10430else 10431 if ${lt_cv_aix_libpath_+:} false; then : 10432 $as_echo_n "(cached) " >&6 10433else 10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10435/* end confdefs.h. */ 10436 10437int 10438main () 10439{ 10440 10441 ; 10442 return 0; 10443} 10444_ACEOF 10445if ac_fn_c_try_link "$LINENO"; then : 10446 10447 lt_aix_libpath_sed=' 10448 /Import File Strings/,/^$/ { 10449 /^0/ { 10450 s/^0 *\([^ ]*\) *$/\1/ 10451 p 10452 } 10453 }' 10454 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10455 # Check for a 64-bit object if we didn't find anything. 10456 if test -z "$lt_cv_aix_libpath_"; then 10457 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10458 fi 10459fi 10460rm -f core conftest.err conftest.$ac_objext \ 10461 conftest$ac_exeext conftest.$ac_ext 10462 if test -z "$lt_cv_aix_libpath_"; then 10463 lt_cv_aix_libpath_="/usr/lib:/lib" 10464 fi 10465 10466fi 10467 10468 aix_libpath=$lt_cv_aix_libpath_ 10469fi 10470 10471 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10472 # Warning - without using the other run time loading flags, 10473 # -berok will link without error, but may produce a broken library. 10474 no_undefined_flag=' ${wl}-bernotok' 10475 allow_undefined_flag=' ${wl}-berok' 10476 if test "$with_gnu_ld" = yes; then 10477 # We only use this code for GNU lds that support --whole-archive. 10478 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10479 else 10480 # Exported symbols can be pulled into shared objects from archives 10481 whole_archive_flag_spec='$convenience' 10482 fi 10483 archive_cmds_need_lc=yes 10484 # This is similar to how AIX traditionally builds its shared libraries. 10485 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10486 fi 10487 fi 10488 ;; 10489 10490 amigaos*) 10491 case $host_cpu in 10492 powerpc) 10493 # see comment about AmigaOS4 .so support 10494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10495 archive_expsym_cmds='' 10496 ;; 10497 m68k) 10498 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)' 10499 hardcode_libdir_flag_spec='-L$libdir' 10500 hardcode_minus_L=yes 10501 ;; 10502 esac 10503 ;; 10504 10505 bsdi[45]*) 10506 export_dynamic_flag_spec=-rdynamic 10507 ;; 10508 10509 cygwin* | mingw* | pw32* | cegcc*) 10510 # When not using gcc, we currently assume that we are using 10511 # Microsoft Visual C++. 10512 # hardcode_libdir_flag_spec is actually meaningless, as there is 10513 # no search path for DLLs. 10514 case $cc_basename in 10515 cl*) 10516 # Native MSVC 10517 hardcode_libdir_flag_spec=' ' 10518 allow_undefined_flag=unsupported 10519 always_export_symbols=yes 10520 file_list_spec='@' 10521 # Tell ltmain to make .lib files, not .a files. 10522 libext=lib 10523 # Tell ltmain to make .dll files, not .so files. 10524 shrext_cmds=".dll" 10525 # FIXME: Setting linknames here is a bad hack. 10526 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10527 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10528 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10529 else 10530 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10531 fi~ 10532 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10533 linknames=' 10534 # The linker will not automatically build a static lib if we build a DLL. 10535 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10536 enable_shared_with_static_runtimes=yes 10537 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10538 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10539 # Don't use ranlib 10540 old_postinstall_cmds='chmod 644 $oldlib' 10541 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10542 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10543 case $lt_outputfile in 10544 *.exe|*.EXE) ;; 10545 *) 10546 lt_outputfile="$lt_outputfile.exe" 10547 lt_tool_outputfile="$lt_tool_outputfile.exe" 10548 ;; 10549 esac~ 10550 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10551 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10552 $RM "$lt_outputfile.manifest"; 10553 fi' 10554 ;; 10555 *) 10556 # Assume MSVC wrapper 10557 hardcode_libdir_flag_spec=' ' 10558 allow_undefined_flag=unsupported 10559 # Tell ltmain to make .lib files, not .a files. 10560 libext=lib 10561 # Tell ltmain to make .dll files, not .so files. 10562 shrext_cmds=".dll" 10563 # FIXME: Setting linknames here is a bad hack. 10564 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10565 # The linker will automatically build a .lib file if we build a DLL. 10566 old_archive_from_new_cmds='true' 10567 # FIXME: Should let the user specify the lib program. 10568 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10569 enable_shared_with_static_runtimes=yes 10570 ;; 10571 esac 10572 ;; 10573 10574 darwin* | rhapsody*) 10575 10576 10577 archive_cmds_need_lc=no 10578 hardcode_direct=no 10579 hardcode_automatic=yes 10580 hardcode_shlibpath_var=unsupported 10581 if test "$lt_cv_ld_force_load" = "yes"; then 10582 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 10583 10584 else 10585 whole_archive_flag_spec='' 10586 fi 10587 link_all_deplibs=yes 10588 allow_undefined_flag="$_lt_dar_allow_undefined" 10589 case $cc_basename in 10590 ifort*) _lt_dar_can_shared=yes ;; 10591 *) _lt_dar_can_shared=$GCC ;; 10592 esac 10593 if test "$_lt_dar_can_shared" = "yes"; then 10594 output_verbose_link_cmd=func_echo_all 10595 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10596 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10597 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 10598 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 10599 10600 else 10601 ld_shlibs=no 10602 fi 10603 10604 ;; 10605 10606 dgux*) 10607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10608 hardcode_libdir_flag_spec='-L$libdir' 10609 hardcode_shlibpath_var=no 10610 ;; 10611 10612 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10613 # support. Future versions do this automatically, but an explicit c++rt0.o 10614 # does not break anything, and helps significantly (at the cost of a little 10615 # extra space). 10616 freebsd2.2*) 10617 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10618 hardcode_libdir_flag_spec='-R$libdir' 10619 hardcode_direct=yes 10620 hardcode_shlibpath_var=no 10621 ;; 10622 10623 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10624 freebsd2.*) 10625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10626 hardcode_direct=yes 10627 hardcode_minus_L=yes 10628 hardcode_shlibpath_var=no 10629 ;; 10630 10631 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10632 freebsd* | dragonfly*) 10633 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10634 hardcode_libdir_flag_spec='-R$libdir' 10635 hardcode_direct=yes 10636 hardcode_shlibpath_var=no 10637 ;; 10638 10639 hpux9*) 10640 if test "$GCC" = yes; then 10641 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10642 else 10643 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' 10644 fi 10645 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10646 hardcode_libdir_separator=: 10647 hardcode_direct=yes 10648 10649 # hardcode_minus_L: Not really in the search PATH, 10650 # but as the default location of the library. 10651 hardcode_minus_L=yes 10652 export_dynamic_flag_spec='${wl}-E' 10653 ;; 10654 10655 hpux10*) 10656 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10657 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10658 else 10659 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10660 fi 10661 if test "$with_gnu_ld" = no; then 10662 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10663 hardcode_libdir_separator=: 10664 hardcode_direct=yes 10665 hardcode_direct_absolute=yes 10666 export_dynamic_flag_spec='${wl}-E' 10667 # hardcode_minus_L: Not really in the search PATH, 10668 # but as the default location of the library. 10669 hardcode_minus_L=yes 10670 fi 10671 ;; 10672 10673 hpux11*) 10674 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10675 case $host_cpu in 10676 hppa*64*) 10677 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10678 ;; 10679 ia64*) 10680 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10681 ;; 10682 *) 10683 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10684 ;; 10685 esac 10686 else 10687 case $host_cpu in 10688 hppa*64*) 10689 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10690 ;; 10691 ia64*) 10692 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10693 ;; 10694 *) 10695 10696 # Older versions of the 11.00 compiler do not understand -b yet 10697 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10699$as_echo_n "checking if $CC understands -b... " >&6; } 10700if ${lt_cv_prog_compiler__b+:} false; then : 10701 $as_echo_n "(cached) " >&6 10702else 10703 lt_cv_prog_compiler__b=no 10704 save_LDFLAGS="$LDFLAGS" 10705 LDFLAGS="$LDFLAGS -b" 10706 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10707 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10708 # The linker can only warn and ignore the option if not recognized 10709 # So say no if there are warnings 10710 if test -s conftest.err; then 10711 # Append any errors to the config.log. 10712 cat conftest.err 1>&5 10713 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10715 if diff conftest.exp conftest.er2 >/dev/null; then 10716 lt_cv_prog_compiler__b=yes 10717 fi 10718 else 10719 lt_cv_prog_compiler__b=yes 10720 fi 10721 fi 10722 $RM -r conftest* 10723 LDFLAGS="$save_LDFLAGS" 10724 10725fi 10726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10727$as_echo "$lt_cv_prog_compiler__b" >&6; } 10728 10729if test x"$lt_cv_prog_compiler__b" = xyes; then 10730 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10731else 10732 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10733fi 10734 10735 ;; 10736 esac 10737 fi 10738 if test "$with_gnu_ld" = no; then 10739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10740 hardcode_libdir_separator=: 10741 10742 case $host_cpu in 10743 hppa*64*|ia64*) 10744 hardcode_direct=no 10745 hardcode_shlibpath_var=no 10746 ;; 10747 *) 10748 hardcode_direct=yes 10749 hardcode_direct_absolute=yes 10750 export_dynamic_flag_spec='${wl}-E' 10751 10752 # hardcode_minus_L: Not really in the search PATH, 10753 # but as the default location of the library. 10754 hardcode_minus_L=yes 10755 ;; 10756 esac 10757 fi 10758 ;; 10759 10760 irix5* | irix6* | nonstopux*) 10761 if test "$GCC" = yes; then 10762 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10763 # Try to use the -exported_symbol ld option, if it does not 10764 # work, assume that -exports_file does not work either and 10765 # implicitly export all symbols. 10766 # This should be the same for all languages, so no per-tag cache variable. 10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10768$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10769if ${lt_cv_irix_exported_symbol+:} false; then : 10770 $as_echo_n "(cached) " >&6 10771else 10772 save_LDFLAGS="$LDFLAGS" 10773 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10775/* end confdefs.h. */ 10776int foo (void) { return 0; } 10777_ACEOF 10778if ac_fn_c_try_link "$LINENO"; then : 10779 lt_cv_irix_exported_symbol=yes 10780else 10781 lt_cv_irix_exported_symbol=no 10782fi 10783rm -f core conftest.err conftest.$ac_objext \ 10784 conftest$ac_exeext conftest.$ac_ext 10785 LDFLAGS="$save_LDFLAGS" 10786fi 10787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10788$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10789 if test "$lt_cv_irix_exported_symbol" = yes; then 10790 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 10791 fi 10792 else 10793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10794 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 10795 fi 10796 archive_cmds_need_lc='no' 10797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10798 hardcode_libdir_separator=: 10799 inherit_rpath=yes 10800 link_all_deplibs=yes 10801 ;; 10802 10803 netbsd* | netbsdelf*-gnu) 10804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10806 else 10807 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10808 fi 10809 hardcode_libdir_flag_spec='-R$libdir' 10810 hardcode_direct=yes 10811 hardcode_shlibpath_var=no 10812 ;; 10813 10814 newsos6) 10815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10816 hardcode_direct=yes 10817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10818 hardcode_libdir_separator=: 10819 hardcode_shlibpath_var=no 10820 ;; 10821 10822 *nto* | *qnx*) 10823 ;; 10824 10825 openbsd*) 10826 if test -f /usr/libexec/ld.so; then 10827 hardcode_direct=yes 10828 hardcode_shlibpath_var=no 10829 hardcode_direct_absolute=yes 10830 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10831 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10832 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10833 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10834 export_dynamic_flag_spec='${wl}-E' 10835 else 10836 case $host_os in 10837 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10839 hardcode_libdir_flag_spec='-R$libdir' 10840 ;; 10841 *) 10842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10843 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10844 ;; 10845 esac 10846 fi 10847 else 10848 ld_shlibs=no 10849 fi 10850 ;; 10851 10852 os2*) 10853 hardcode_libdir_flag_spec='-L$libdir' 10854 hardcode_minus_L=yes 10855 allow_undefined_flag=unsupported 10856 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' 10857 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10858 ;; 10859 10860 osf3*) 10861 if test "$GCC" = yes; then 10862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10863 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10864 else 10865 allow_undefined_flag=' -expect_unresolved \*' 10866 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10867 fi 10868 archive_cmds_need_lc='no' 10869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10870 hardcode_libdir_separator=: 10871 ;; 10872 10873 osf4* | osf5*) # as osf3* with the addition of -msym flag 10874 if test "$GCC" = yes; then 10875 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10876 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10878 else 10879 allow_undefined_flag=' -expect_unresolved \*' 10880 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10881 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10882 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 10883 10884 # Both c and cxx compiler support -rpath directly 10885 hardcode_libdir_flag_spec='-rpath $libdir' 10886 fi 10887 archive_cmds_need_lc='no' 10888 hardcode_libdir_separator=: 10889 ;; 10890 10891 solaris*) 10892 no_undefined_flag=' -z defs' 10893 if test "$GCC" = yes; then 10894 wlarc='${wl}' 10895 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10896 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10897 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10898 else 10899 case `$CC -V 2>&1` in 10900 *"Compilers 5.0"*) 10901 wlarc='' 10902 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10904 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10905 ;; 10906 *) 10907 wlarc='${wl}' 10908 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10909 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10910 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10911 ;; 10912 esac 10913 fi 10914 hardcode_libdir_flag_spec='-R$libdir' 10915 hardcode_shlibpath_var=no 10916 case $host_os in 10917 solaris2.[0-5] | solaris2.[0-5].*) ;; 10918 *) 10919 # The compiler driver will combine and reorder linker options, 10920 # but understands `-z linker_flag'. GCC discards it without `$wl', 10921 # but is careful enough not to reorder. 10922 # Supported since Solaris 2.6 (maybe 2.5.1?) 10923 if test "$GCC" = yes; then 10924 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10925 else 10926 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10927 fi 10928 ;; 10929 esac 10930 link_all_deplibs=yes 10931 ;; 10932 10933 sunos4*) 10934 if test "x$host_vendor" = xsequent; then 10935 # Use $CC to link under sequent, because it throws in some extra .o 10936 # files that make .init and .fini sections work. 10937 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10938 else 10939 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10940 fi 10941 hardcode_libdir_flag_spec='-L$libdir' 10942 hardcode_direct=yes 10943 hardcode_minus_L=yes 10944 hardcode_shlibpath_var=no 10945 ;; 10946 10947 sysv4) 10948 case $host_vendor in 10949 sni) 10950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10951 hardcode_direct=yes # is this really true??? 10952 ;; 10953 siemens) 10954 ## LD is ld it makes a PLAMLIB 10955 ## CC just makes a GrossModule. 10956 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10957 reload_cmds='$CC -r -o $output$reload_objs' 10958 hardcode_direct=no 10959 ;; 10960 motorola) 10961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10962 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10963 ;; 10964 esac 10965 runpath_var='LD_RUN_PATH' 10966 hardcode_shlibpath_var=no 10967 ;; 10968 10969 sysv4.3*) 10970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10971 hardcode_shlibpath_var=no 10972 export_dynamic_flag_spec='-Bexport' 10973 ;; 10974 10975 sysv4*MP*) 10976 if test -d /usr/nec; then 10977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10978 hardcode_shlibpath_var=no 10979 runpath_var=LD_RUN_PATH 10980 hardcode_runpath_var=yes 10981 ld_shlibs=yes 10982 fi 10983 ;; 10984 10985 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10986 no_undefined_flag='${wl}-z,text' 10987 archive_cmds_need_lc=no 10988 hardcode_shlibpath_var=no 10989 runpath_var='LD_RUN_PATH' 10990 10991 if test "$GCC" = yes; then 10992 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10993 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10994 else 10995 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10996 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10997 fi 10998 ;; 10999 11000 sysv5* | sco3.2v5* | sco5v6*) 11001 # Note: We can NOT use -z defs as we might desire, because we do not 11002 # link with -lc, and that would cause any symbols used from libc to 11003 # always be unresolved, which means just about no library would 11004 # ever link correctly. If we're not using GNU ld we use -z text 11005 # though, which does catch some bad symbols but isn't as heavy-handed 11006 # as -z defs. 11007 no_undefined_flag='${wl}-z,text' 11008 allow_undefined_flag='${wl}-z,nodefs' 11009 archive_cmds_need_lc=no 11010 hardcode_shlibpath_var=no 11011 hardcode_libdir_flag_spec='${wl}-R,$libdir' 11012 hardcode_libdir_separator=':' 11013 link_all_deplibs=yes 11014 export_dynamic_flag_spec='${wl}-Bexport' 11015 runpath_var='LD_RUN_PATH' 11016 11017 if test "$GCC" = yes; then 11018 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11019 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11020 else 11021 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11022 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11023 fi 11024 ;; 11025 11026 uts4*) 11027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11028 hardcode_libdir_flag_spec='-L$libdir' 11029 hardcode_shlibpath_var=no 11030 ;; 11031 11032 *) 11033 ld_shlibs=no 11034 ;; 11035 esac 11036 11037 if test x$host_vendor = xsni; then 11038 case $host in 11039 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11040 export_dynamic_flag_spec='${wl}-Blargedynsym' 11041 ;; 11042 esac 11043 fi 11044 fi 11045 11046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11047$as_echo "$ld_shlibs" >&6; } 11048test "$ld_shlibs" = no && can_build_shared=no 11049 11050with_gnu_ld=$with_gnu_ld 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066# 11067# Do we need to explicitly link libc? 11068# 11069case "x$archive_cmds_need_lc" in 11070x|xyes) 11071 # Assume -lc should be added 11072 archive_cmds_need_lc=yes 11073 11074 if test "$enable_shared" = yes && test "$GCC" = yes; then 11075 case $archive_cmds in 11076 *'~'*) 11077 # FIXME: we may have to deal with multi-command sequences. 11078 ;; 11079 '$CC '*) 11080 # Test whether the compiler implicitly links with -lc since on some 11081 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11082 # to ld, don't add -lc before -lgcc. 11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11084$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11085if ${lt_cv_archive_cmds_need_lc+:} false; then : 11086 $as_echo_n "(cached) " >&6 11087else 11088 $RM conftest* 11089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11090 11091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11092 (eval $ac_compile) 2>&5 11093 ac_status=$? 11094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11095 test $ac_status = 0; } 2>conftest.err; then 11096 soname=conftest 11097 lib=conftest 11098 libobjs=conftest.$ac_objext 11099 deplibs= 11100 wl=$lt_prog_compiler_wl 11101 pic_flag=$lt_prog_compiler_pic 11102 compiler_flags=-v 11103 linker_flags=-v 11104 verstring= 11105 output_objdir=. 11106 libname=conftest 11107 lt_save_allow_undefined_flag=$allow_undefined_flag 11108 allow_undefined_flag= 11109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11110 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11111 ac_status=$? 11112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11113 test $ac_status = 0; } 11114 then 11115 lt_cv_archive_cmds_need_lc=no 11116 else 11117 lt_cv_archive_cmds_need_lc=yes 11118 fi 11119 allow_undefined_flag=$lt_save_allow_undefined_flag 11120 else 11121 cat conftest.err 1>&5 11122 fi 11123 $RM conftest* 11124 11125fi 11126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11127$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11128 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11129 ;; 11130 esac 11131 fi 11132 ;; 11133esac 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11287$as_echo_n "checking dynamic linker characteristics... " >&6; } 11288 11289if test "$GCC" = yes; then 11290 case $host_os in 11291 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11292 *) lt_awk_arg="/^libraries:/" ;; 11293 esac 11294 case $host_os in 11295 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11296 *) lt_sed_strip_eq="s,=/,/,g" ;; 11297 esac 11298 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11299 case $lt_search_path_spec in 11300 *\;*) 11301 # if the path contains ";" then we assume it to be the separator 11302 # otherwise default to the standard path separator (i.e. ":") - it is 11303 # assumed that no part of a normal pathname contains ";" but that should 11304 # okay in the real world where ";" in dirpaths is itself problematic. 11305 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11306 ;; 11307 *) 11308 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11309 ;; 11310 esac 11311 # Ok, now we have the path, separated by spaces, we can step through it 11312 # and add multilib dir if necessary. 11313 lt_tmp_lt_search_path_spec= 11314 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11315 for lt_sys_path in $lt_search_path_spec; do 11316 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11317 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11318 else 11319 test -d "$lt_sys_path" && \ 11320 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11321 fi 11322 done 11323 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11324BEGIN {RS=" "; FS="/|\n";} { 11325 lt_foo=""; 11326 lt_count=0; 11327 for (lt_i = NF; lt_i > 0; lt_i--) { 11328 if ($lt_i != "" && $lt_i != ".") { 11329 if ($lt_i == "..") { 11330 lt_count++; 11331 } else { 11332 if (lt_count == 0) { 11333 lt_foo="/" $lt_i lt_foo; 11334 } else { 11335 lt_count--; 11336 } 11337 } 11338 } 11339 } 11340 if (lt_foo != "") { lt_freq[lt_foo]++; } 11341 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11342}'` 11343 # AWK program above erroneously prepends '/' to C:/dos/paths 11344 # for these hosts. 11345 case $host_os in 11346 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11347 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11348 esac 11349 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11350else 11351 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11352fi 11353library_names_spec= 11354libname_spec='lib$name' 11355soname_spec= 11356shrext_cmds=".so" 11357postinstall_cmds= 11358postuninstall_cmds= 11359finish_cmds= 11360finish_eval= 11361shlibpath_var= 11362shlibpath_overrides_runpath=unknown 11363version_type=none 11364dynamic_linker="$host_os ld.so" 11365sys_lib_dlsearch_path_spec="/lib /usr/lib" 11366need_lib_prefix=unknown 11367hardcode_into_libs=no 11368 11369# when you set need_version to no, make sure it does not cause -set_version 11370# flags to be left without arguments 11371need_version=unknown 11372 11373case $host_os in 11374aix3*) 11375 version_type=linux # correct to gnu/linux during the next big refactor 11376 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11377 shlibpath_var=LIBPATH 11378 11379 # AIX 3 has no versioning support, so we append a major version to the name. 11380 soname_spec='${libname}${release}${shared_ext}$major' 11381 ;; 11382 11383aix[4-9]*) 11384 version_type=linux # correct to gnu/linux during the next big refactor 11385 need_lib_prefix=no 11386 need_version=no 11387 hardcode_into_libs=yes 11388 if test "$host_cpu" = ia64; then 11389 # AIX 5 supports IA64 11390 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11391 shlibpath_var=LD_LIBRARY_PATH 11392 else 11393 # With GCC up to 2.95.x, collect2 would create an import file 11394 # for dependence libraries. The import file would start with 11395 # the line `#! .'. This would cause the generated library to 11396 # depend on `.', always an invalid library. This was fixed in 11397 # development snapshots of GCC prior to 3.0. 11398 case $host_os in 11399 aix4 | aix4.[01] | aix4.[01].*) 11400 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11401 echo ' yes ' 11402 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11403 : 11404 else 11405 can_build_shared=no 11406 fi 11407 ;; 11408 esac 11409 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11410 # soname into executable. Probably we can add versioning support to 11411 # collect2, so additional links can be useful in future. 11412 if test "$aix_use_runtimelinking" = yes; then 11413 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11414 # instead of lib<name>.a to let people know that these are not 11415 # typical AIX shared libraries. 11416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11417 else 11418 # We preserve .a as extension for shared libraries through AIX4.2 11419 # and later when we are not doing run time linking. 11420 library_names_spec='${libname}${release}.a $libname.a' 11421 soname_spec='${libname}${release}${shared_ext}$major' 11422 fi 11423 shlibpath_var=LIBPATH 11424 fi 11425 ;; 11426 11427amigaos*) 11428 case $host_cpu in 11429 powerpc) 11430 # Since July 2007 AmigaOS4 officially supports .so libraries. 11431 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11433 ;; 11434 m68k) 11435 library_names_spec='$libname.ixlibrary $libname.a' 11436 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11437 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11438 ;; 11439 esac 11440 ;; 11441 11442beos*) 11443 library_names_spec='${libname}${shared_ext}' 11444 dynamic_linker="$host_os ld.so" 11445 shlibpath_var=LIBRARY_PATH 11446 ;; 11447 11448bsdi[45]*) 11449 version_type=linux # correct to gnu/linux during the next big refactor 11450 need_version=no 11451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11452 soname_spec='${libname}${release}${shared_ext}$major' 11453 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11454 shlibpath_var=LD_LIBRARY_PATH 11455 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11456 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11457 # the default ld.so.conf also contains /usr/contrib/lib and 11458 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11459 # libtool to hard-code these into programs 11460 ;; 11461 11462cygwin* | mingw* | pw32* | cegcc*) 11463 version_type=windows 11464 shrext_cmds=".dll" 11465 need_version=no 11466 need_lib_prefix=no 11467 11468 case $GCC,$cc_basename in 11469 yes,*) 11470 # gcc 11471 library_names_spec='$libname.dll.a' 11472 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11473 postinstall_cmds='base_file=`basename \${file}`~ 11474 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11475 dldir=$destdir/`dirname \$dlpath`~ 11476 test -d \$dldir || mkdir -p \$dldir~ 11477 $install_prog $dir/$dlname \$dldir/$dlname~ 11478 chmod a+x \$dldir/$dlname~ 11479 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11480 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11481 fi' 11482 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11483 dlpath=$dir/\$dldll~ 11484 $RM \$dlpath' 11485 shlibpath_overrides_runpath=yes 11486 11487 case $host_os in 11488 cygwin*) 11489 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11490 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11491 11492 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11493 ;; 11494 mingw* | cegcc*) 11495 # MinGW DLLs use traditional 'lib' prefix 11496 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11497 ;; 11498 pw32*) 11499 # pw32 DLLs use 'pw' prefix rather than 'lib' 11500 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11501 ;; 11502 esac 11503 dynamic_linker='Win32 ld.exe' 11504 ;; 11505 11506 *,cl*) 11507 # Native MSVC 11508 libname_spec='$name' 11509 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11510 library_names_spec='${libname}.dll.lib' 11511 11512 case $build_os in 11513 mingw*) 11514 sys_lib_search_path_spec= 11515 lt_save_ifs=$IFS 11516 IFS=';' 11517 for lt_path in $LIB 11518 do 11519 IFS=$lt_save_ifs 11520 # Let DOS variable expansion print the short 8.3 style file name. 11521 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11522 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11523 done 11524 IFS=$lt_save_ifs 11525 # Convert to MSYS style. 11526 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11527 ;; 11528 cygwin*) 11529 # Convert to unix form, then to dos form, then back to unix form 11530 # but this time dos style (no spaces!) so that the unix form looks 11531 # like /cygdrive/c/PROGRA~1:/cygdr... 11532 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11533 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11534 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11535 ;; 11536 *) 11537 sys_lib_search_path_spec="$LIB" 11538 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11539 # It is most probably a Windows format PATH. 11540 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11541 else 11542 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11543 fi 11544 # FIXME: find the short name or the path components, as spaces are 11545 # common. (e.g. "Program Files" -> "PROGRA~1") 11546 ;; 11547 esac 11548 11549 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11550 postinstall_cmds='base_file=`basename \${file}`~ 11551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11552 dldir=$destdir/`dirname \$dlpath`~ 11553 test -d \$dldir || mkdir -p \$dldir~ 11554 $install_prog $dir/$dlname \$dldir/$dlname' 11555 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11556 dlpath=$dir/\$dldll~ 11557 $RM \$dlpath' 11558 shlibpath_overrides_runpath=yes 11559 dynamic_linker='Win32 link.exe' 11560 ;; 11561 11562 *) 11563 # Assume MSVC wrapper 11564 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11565 dynamic_linker='Win32 ld.exe' 11566 ;; 11567 esac 11568 # FIXME: first we should search . and the directory the executable is in 11569 shlibpath_var=PATH 11570 ;; 11571 11572darwin* | rhapsody*) 11573 dynamic_linker="$host_os dyld" 11574 version_type=darwin 11575 need_lib_prefix=no 11576 need_version=no 11577 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11578 soname_spec='${libname}${release}${major}$shared_ext' 11579 shlibpath_overrides_runpath=yes 11580 shlibpath_var=DYLD_LIBRARY_PATH 11581 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11582 11583 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11584 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11585 ;; 11586 11587dgux*) 11588 version_type=linux # correct to gnu/linux during the next big refactor 11589 need_lib_prefix=no 11590 need_version=no 11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11592 soname_spec='${libname}${release}${shared_ext}$major' 11593 shlibpath_var=LD_LIBRARY_PATH 11594 ;; 11595 11596freebsd* | dragonfly*) 11597 # DragonFly does not have aout. When/if they implement a new 11598 # versioning mechanism, adjust this. 11599 if test -x /usr/bin/objformat; then 11600 objformat=`/usr/bin/objformat` 11601 else 11602 case $host_os in 11603 freebsd[23].*) objformat=aout ;; 11604 *) objformat=elf ;; 11605 esac 11606 fi 11607 version_type=freebsd-$objformat 11608 case $version_type in 11609 freebsd-elf*) 11610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11611 need_version=no 11612 need_lib_prefix=no 11613 ;; 11614 freebsd-*) 11615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11616 need_version=yes 11617 ;; 11618 esac 11619 shlibpath_var=LD_LIBRARY_PATH 11620 case $host_os in 11621 freebsd2.*) 11622 shlibpath_overrides_runpath=yes 11623 ;; 11624 freebsd3.[01]* | freebsdelf3.[01]*) 11625 shlibpath_overrides_runpath=yes 11626 hardcode_into_libs=yes 11627 ;; 11628 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11629 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11630 shlibpath_overrides_runpath=no 11631 hardcode_into_libs=yes 11632 ;; 11633 *) # from 4.6 on, and DragonFly 11634 shlibpath_overrides_runpath=yes 11635 hardcode_into_libs=yes 11636 ;; 11637 esac 11638 ;; 11639 11640haiku*) 11641 version_type=linux # correct to gnu/linux during the next big refactor 11642 need_lib_prefix=no 11643 need_version=no 11644 dynamic_linker="$host_os runtime_loader" 11645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11646 soname_spec='${libname}${release}${shared_ext}$major' 11647 shlibpath_var=LIBRARY_PATH 11648 shlibpath_overrides_runpath=yes 11649 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11650 hardcode_into_libs=yes 11651 ;; 11652 11653hpux9* | hpux10* | hpux11*) 11654 # Give a soname corresponding to the major version so that dld.sl refuses to 11655 # link against other versions. 11656 version_type=sunos 11657 need_lib_prefix=no 11658 need_version=no 11659 case $host_cpu in 11660 ia64*) 11661 shrext_cmds='.so' 11662 hardcode_into_libs=yes 11663 dynamic_linker="$host_os dld.so" 11664 shlibpath_var=LD_LIBRARY_PATH 11665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11667 soname_spec='${libname}${release}${shared_ext}$major' 11668 if test "X$HPUX_IA64_MODE" = X32; then 11669 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11670 else 11671 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11672 fi 11673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11674 ;; 11675 hppa*64*) 11676 shrext_cmds='.sl' 11677 hardcode_into_libs=yes 11678 dynamic_linker="$host_os dld.sl" 11679 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11680 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11682 soname_spec='${libname}${release}${shared_ext}$major' 11683 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11684 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11685 ;; 11686 *) 11687 shrext_cmds='.sl' 11688 dynamic_linker="$host_os dld.sl" 11689 shlibpath_var=SHLIB_PATH 11690 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11692 soname_spec='${libname}${release}${shared_ext}$major' 11693 ;; 11694 esac 11695 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11696 postinstall_cmds='chmod 555 $lib' 11697 # or fails outright, so override atomically: 11698 install_override_mode=555 11699 ;; 11700 11701interix[3-9]*) 11702 version_type=linux # correct to gnu/linux during the next big refactor 11703 need_lib_prefix=no 11704 need_version=no 11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11706 soname_spec='${libname}${release}${shared_ext}$major' 11707 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11708 shlibpath_var=LD_LIBRARY_PATH 11709 shlibpath_overrides_runpath=no 11710 hardcode_into_libs=yes 11711 ;; 11712 11713irix5* | irix6* | nonstopux*) 11714 case $host_os in 11715 nonstopux*) version_type=nonstopux ;; 11716 *) 11717 if test "$lt_cv_prog_gnu_ld" = yes; then 11718 version_type=linux # correct to gnu/linux during the next big refactor 11719 else 11720 version_type=irix 11721 fi ;; 11722 esac 11723 need_lib_prefix=no 11724 need_version=no 11725 soname_spec='${libname}${release}${shared_ext}$major' 11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11727 case $host_os in 11728 irix5* | nonstopux*) 11729 libsuff= shlibsuff= 11730 ;; 11731 *) 11732 case $LD in # libtool.m4 will add one of these switches to LD 11733 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11734 libsuff= shlibsuff= libmagic=32-bit;; 11735 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11736 libsuff=32 shlibsuff=N32 libmagic=N32;; 11737 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11738 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11739 *) libsuff= shlibsuff= libmagic=never-match;; 11740 esac 11741 ;; 11742 esac 11743 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11744 shlibpath_overrides_runpath=no 11745 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11746 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11747 hardcode_into_libs=yes 11748 ;; 11749 11750# No shared lib support for Linux oldld, aout, or coff. 11751linux*oldld* | linux*aout* | linux*coff*) 11752 dynamic_linker=no 11753 ;; 11754 11755# This must be glibc/ELF. 11756linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11757 version_type=linux # correct to gnu/linux during the next big refactor 11758 need_lib_prefix=no 11759 need_version=no 11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11761 soname_spec='${libname}${release}${shared_ext}$major' 11762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11763 shlibpath_var=LD_LIBRARY_PATH 11764 shlibpath_overrides_runpath=no 11765 11766 # Some binutils ld are patched to set DT_RUNPATH 11767 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11768 $as_echo_n "(cached) " >&6 11769else 11770 lt_cv_shlibpath_overrides_runpath=no 11771 save_LDFLAGS=$LDFLAGS 11772 save_libdir=$libdir 11773 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11774 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11776/* end confdefs.h. */ 11777 11778int 11779main () 11780{ 11781 11782 ; 11783 return 0; 11784} 11785_ACEOF 11786if ac_fn_c_try_link "$LINENO"; then : 11787 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11788 lt_cv_shlibpath_overrides_runpath=yes 11789fi 11790fi 11791rm -f core conftest.err conftest.$ac_objext \ 11792 conftest$ac_exeext conftest.$ac_ext 11793 LDFLAGS=$save_LDFLAGS 11794 libdir=$save_libdir 11795 11796fi 11797 11798 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11799 11800 # This implies no fast_install, which is unacceptable. 11801 # Some rework will be needed to allow for fast_install 11802 # before this can be enabled. 11803 hardcode_into_libs=yes 11804 11805 # Append ld.so.conf contents to the search path 11806 if test -f /etc/ld.so.conf; then 11807 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 11808 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11809 fi 11810 11811 # We used to test for /lib/ld.so.1 and disable shared libraries on 11812 # powerpc, because MkLinux only supported shared libraries with the 11813 # GNU dynamic linker. Since this was broken with cross compilers, 11814 # most powerpc-linux boxes support dynamic linking these days and 11815 # people can always --disable-shared, the test was removed, and we 11816 # assume the GNU/Linux dynamic linker is in use. 11817 dynamic_linker='GNU/Linux ld.so' 11818 ;; 11819 11820netbsdelf*-gnu) 11821 version_type=linux 11822 need_lib_prefix=no 11823 need_version=no 11824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11825 soname_spec='${libname}${release}${shared_ext}$major' 11826 shlibpath_var=LD_LIBRARY_PATH 11827 shlibpath_overrides_runpath=no 11828 hardcode_into_libs=yes 11829 dynamic_linker='NetBSD ld.elf_so' 11830 ;; 11831 11832netbsd*) 11833 version_type=sunos 11834 need_lib_prefix=no 11835 need_version=no 11836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11839 dynamic_linker='NetBSD (a.out) ld.so' 11840 else 11841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11842 soname_spec='${libname}${release}${shared_ext}$major' 11843 dynamic_linker='NetBSD ld.elf_so' 11844 fi 11845 shlibpath_var=LD_LIBRARY_PATH 11846 shlibpath_overrides_runpath=yes 11847 hardcode_into_libs=yes 11848 ;; 11849 11850newsos6) 11851 version_type=linux # correct to gnu/linux during the next big refactor 11852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11853 shlibpath_var=LD_LIBRARY_PATH 11854 shlibpath_overrides_runpath=yes 11855 ;; 11856 11857*nto* | *qnx*) 11858 version_type=qnx 11859 need_lib_prefix=no 11860 need_version=no 11861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11862 soname_spec='${libname}${release}${shared_ext}$major' 11863 shlibpath_var=LD_LIBRARY_PATH 11864 shlibpath_overrides_runpath=no 11865 hardcode_into_libs=yes 11866 dynamic_linker='ldqnx.so' 11867 ;; 11868 11869openbsd*) 11870 version_type=sunos 11871 sys_lib_dlsearch_path_spec="/usr/lib" 11872 need_lib_prefix=no 11873 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11874 case $host_os in 11875 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11876 *) need_version=no ;; 11877 esac 11878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11880 shlibpath_var=LD_LIBRARY_PATH 11881 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11882 case $host_os in 11883 openbsd2.[89] | openbsd2.[89].*) 11884 shlibpath_overrides_runpath=no 11885 ;; 11886 *) 11887 shlibpath_overrides_runpath=yes 11888 ;; 11889 esac 11890 else 11891 shlibpath_overrides_runpath=yes 11892 fi 11893 ;; 11894 11895os2*) 11896 libname_spec='$name' 11897 shrext_cmds=".dll" 11898 need_lib_prefix=no 11899 library_names_spec='$libname${shared_ext} $libname.a' 11900 dynamic_linker='OS/2 ld.exe' 11901 shlibpath_var=LIBPATH 11902 ;; 11903 11904osf3* | osf4* | osf5*) 11905 version_type=osf 11906 need_lib_prefix=no 11907 need_version=no 11908 soname_spec='${libname}${release}${shared_ext}$major' 11909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11910 shlibpath_var=LD_LIBRARY_PATH 11911 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11912 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11913 ;; 11914 11915rdos*) 11916 dynamic_linker=no 11917 ;; 11918 11919solaris*) 11920 version_type=linux # correct to gnu/linux during the next big refactor 11921 need_lib_prefix=no 11922 need_version=no 11923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11924 soname_spec='${libname}${release}${shared_ext}$major' 11925 shlibpath_var=LD_LIBRARY_PATH 11926 shlibpath_overrides_runpath=yes 11927 hardcode_into_libs=yes 11928 # ldd complains unless libraries are executable 11929 postinstall_cmds='chmod +x $lib' 11930 ;; 11931 11932sunos4*) 11933 version_type=sunos 11934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11935 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11936 shlibpath_var=LD_LIBRARY_PATH 11937 shlibpath_overrides_runpath=yes 11938 if test "$with_gnu_ld" = yes; then 11939 need_lib_prefix=no 11940 fi 11941 need_version=yes 11942 ;; 11943 11944sysv4 | sysv4.3*) 11945 version_type=linux # correct to gnu/linux during the next big refactor 11946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11947 soname_spec='${libname}${release}${shared_ext}$major' 11948 shlibpath_var=LD_LIBRARY_PATH 11949 case $host_vendor in 11950 sni) 11951 shlibpath_overrides_runpath=no 11952 need_lib_prefix=no 11953 runpath_var=LD_RUN_PATH 11954 ;; 11955 siemens) 11956 need_lib_prefix=no 11957 ;; 11958 motorola) 11959 need_lib_prefix=no 11960 need_version=no 11961 shlibpath_overrides_runpath=no 11962 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11963 ;; 11964 esac 11965 ;; 11966 11967sysv4*MP*) 11968 if test -d /usr/nec ;then 11969 version_type=linux # correct to gnu/linux during the next big refactor 11970 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11971 soname_spec='$libname${shared_ext}.$major' 11972 shlibpath_var=LD_LIBRARY_PATH 11973 fi 11974 ;; 11975 11976sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11977 version_type=freebsd-elf 11978 need_lib_prefix=no 11979 need_version=no 11980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11981 soname_spec='${libname}${release}${shared_ext}$major' 11982 shlibpath_var=LD_LIBRARY_PATH 11983 shlibpath_overrides_runpath=yes 11984 hardcode_into_libs=yes 11985 if test "$with_gnu_ld" = yes; then 11986 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11987 else 11988 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11989 case $host_os in 11990 sco3.2v5*) 11991 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11992 ;; 11993 esac 11994 fi 11995 sys_lib_dlsearch_path_spec='/usr/lib' 11996 ;; 11997 11998tpf*) 11999 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12000 version_type=linux # correct to gnu/linux during the next big refactor 12001 need_lib_prefix=no 12002 need_version=no 12003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12004 shlibpath_var=LD_LIBRARY_PATH 12005 shlibpath_overrides_runpath=no 12006 hardcode_into_libs=yes 12007 ;; 12008 12009uts4*) 12010 version_type=linux # correct to gnu/linux during the next big refactor 12011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12012 soname_spec='${libname}${release}${shared_ext}$major' 12013 shlibpath_var=LD_LIBRARY_PATH 12014 ;; 12015 12016*) 12017 dynamic_linker=no 12018 ;; 12019esac 12020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12021$as_echo "$dynamic_linker" >&6; } 12022test "$dynamic_linker" = no && can_build_shared=no 12023 12024variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12025if test "$GCC" = yes; then 12026 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12027fi 12028 12029if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12030 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12031fi 12032if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12033 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12034fi 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12128$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12129hardcode_action= 12130if test -n "$hardcode_libdir_flag_spec" || 12131 test -n "$runpath_var" || 12132 test "X$hardcode_automatic" = "Xyes" ; then 12133 12134 # We can hardcode non-existent directories. 12135 if test "$hardcode_direct" != no && 12136 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12137 # have to relink, otherwise we might link with an installed library 12138 # when we should be linking with a yet-to-be-installed one 12139 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 12140 test "$hardcode_minus_L" != no; then 12141 # Linking always hardcodes the temporary library directory. 12142 hardcode_action=relink 12143 else 12144 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12145 hardcode_action=immediate 12146 fi 12147else 12148 # We cannot hardcode anything, or else we can only hardcode existing 12149 # directories. 12150 hardcode_action=unsupported 12151fi 12152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12153$as_echo "$hardcode_action" >&6; } 12154 12155if test "$hardcode_action" = relink || 12156 test "$inherit_rpath" = yes; then 12157 # Fast installation is not supported 12158 enable_fast_install=no 12159elif test "$shlibpath_overrides_runpath" = yes || 12160 test "$enable_shared" = no; then 12161 # Fast installation is not necessary 12162 enable_fast_install=needless 12163fi 12164 12165 12166 12167 12168 12169 12170 if test "x$enable_dlopen" != xyes; then 12171 enable_dlopen=unknown 12172 enable_dlopen_self=unknown 12173 enable_dlopen_self_static=unknown 12174else 12175 lt_cv_dlopen=no 12176 lt_cv_dlopen_libs= 12177 12178 case $host_os in 12179 beos*) 12180 lt_cv_dlopen="load_add_on" 12181 lt_cv_dlopen_libs= 12182 lt_cv_dlopen_self=yes 12183 ;; 12184 12185 mingw* | pw32* | cegcc*) 12186 lt_cv_dlopen="LoadLibrary" 12187 lt_cv_dlopen_libs= 12188 ;; 12189 12190 cygwin*) 12191 lt_cv_dlopen="dlopen" 12192 lt_cv_dlopen_libs= 12193 ;; 12194 12195 darwin*) 12196 # if libdl is installed we need to link against it 12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12198$as_echo_n "checking for dlopen in -ldl... " >&6; } 12199if ${ac_cv_lib_dl_dlopen+:} false; then : 12200 $as_echo_n "(cached) " >&6 12201else 12202 ac_check_lib_save_LIBS=$LIBS 12203LIBS="-ldl $LIBS" 12204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12205/* end confdefs.h. */ 12206 12207/* Override any GCC internal prototype to avoid an error. 12208 Use char because int might match the return type of a GCC 12209 builtin and then its argument prototype would still apply. */ 12210#ifdef __cplusplus 12211extern "C" 12212#endif 12213char dlopen (); 12214int 12215main () 12216{ 12217return dlopen (); 12218 ; 12219 return 0; 12220} 12221_ACEOF 12222if ac_fn_c_try_link "$LINENO"; then : 12223 ac_cv_lib_dl_dlopen=yes 12224else 12225 ac_cv_lib_dl_dlopen=no 12226fi 12227rm -f core conftest.err conftest.$ac_objext \ 12228 conftest$ac_exeext conftest.$ac_ext 12229LIBS=$ac_check_lib_save_LIBS 12230fi 12231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12232$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12233if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12234 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12235else 12236 12237 lt_cv_dlopen="dyld" 12238 lt_cv_dlopen_libs= 12239 lt_cv_dlopen_self=yes 12240 12241fi 12242 12243 ;; 12244 12245 *) 12246 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12247if test "x$ac_cv_func_shl_load" = xyes; then : 12248 lt_cv_dlopen="shl_load" 12249else 12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12251$as_echo_n "checking for shl_load in -ldld... " >&6; } 12252if ${ac_cv_lib_dld_shl_load+:} false; then : 12253 $as_echo_n "(cached) " >&6 12254else 12255 ac_check_lib_save_LIBS=$LIBS 12256LIBS="-ldld $LIBS" 12257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12258/* end confdefs.h. */ 12259 12260/* Override any GCC internal prototype to avoid an error. 12261 Use char because int might match the return type of a GCC 12262 builtin and then its argument prototype would still apply. */ 12263#ifdef __cplusplus 12264extern "C" 12265#endif 12266char shl_load (); 12267int 12268main () 12269{ 12270return shl_load (); 12271 ; 12272 return 0; 12273} 12274_ACEOF 12275if ac_fn_c_try_link "$LINENO"; then : 12276 ac_cv_lib_dld_shl_load=yes 12277else 12278 ac_cv_lib_dld_shl_load=no 12279fi 12280rm -f core conftest.err conftest.$ac_objext \ 12281 conftest$ac_exeext conftest.$ac_ext 12282LIBS=$ac_check_lib_save_LIBS 12283fi 12284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12285$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12286if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12287 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12288else 12289 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12290if test "x$ac_cv_func_dlopen" = xyes; then : 12291 lt_cv_dlopen="dlopen" 12292else 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12294$as_echo_n "checking for dlopen in -ldl... " >&6; } 12295if ${ac_cv_lib_dl_dlopen+:} false; then : 12296 $as_echo_n "(cached) " >&6 12297else 12298 ac_check_lib_save_LIBS=$LIBS 12299LIBS="-ldl $LIBS" 12300cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12301/* end confdefs.h. */ 12302 12303/* Override any GCC internal prototype to avoid an error. 12304 Use char because int might match the return type of a GCC 12305 builtin and then its argument prototype would still apply. */ 12306#ifdef __cplusplus 12307extern "C" 12308#endif 12309char dlopen (); 12310int 12311main () 12312{ 12313return dlopen (); 12314 ; 12315 return 0; 12316} 12317_ACEOF 12318if ac_fn_c_try_link "$LINENO"; then : 12319 ac_cv_lib_dl_dlopen=yes 12320else 12321 ac_cv_lib_dl_dlopen=no 12322fi 12323rm -f core conftest.err conftest.$ac_objext \ 12324 conftest$ac_exeext conftest.$ac_ext 12325LIBS=$ac_check_lib_save_LIBS 12326fi 12327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12328$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12329if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12330 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12331else 12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12333$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12334if ${ac_cv_lib_svld_dlopen+:} false; then : 12335 $as_echo_n "(cached) " >&6 12336else 12337 ac_check_lib_save_LIBS=$LIBS 12338LIBS="-lsvld $LIBS" 12339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12340/* end confdefs.h. */ 12341 12342/* Override any GCC internal prototype to avoid an error. 12343 Use char because int might match the return type of a GCC 12344 builtin and then its argument prototype would still apply. */ 12345#ifdef __cplusplus 12346extern "C" 12347#endif 12348char dlopen (); 12349int 12350main () 12351{ 12352return dlopen (); 12353 ; 12354 return 0; 12355} 12356_ACEOF 12357if ac_fn_c_try_link "$LINENO"; then : 12358 ac_cv_lib_svld_dlopen=yes 12359else 12360 ac_cv_lib_svld_dlopen=no 12361fi 12362rm -f core conftest.err conftest.$ac_objext \ 12363 conftest$ac_exeext conftest.$ac_ext 12364LIBS=$ac_check_lib_save_LIBS 12365fi 12366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12367$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12368if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12369 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12370else 12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12372$as_echo_n "checking for dld_link in -ldld... " >&6; } 12373if ${ac_cv_lib_dld_dld_link+:} false; then : 12374 $as_echo_n "(cached) " >&6 12375else 12376 ac_check_lib_save_LIBS=$LIBS 12377LIBS="-ldld $LIBS" 12378cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12379/* end confdefs.h. */ 12380 12381/* Override any GCC internal prototype to avoid an error. 12382 Use char because int might match the return type of a GCC 12383 builtin and then its argument prototype would still apply. */ 12384#ifdef __cplusplus 12385extern "C" 12386#endif 12387char dld_link (); 12388int 12389main () 12390{ 12391return dld_link (); 12392 ; 12393 return 0; 12394} 12395_ACEOF 12396if ac_fn_c_try_link "$LINENO"; then : 12397 ac_cv_lib_dld_dld_link=yes 12398else 12399 ac_cv_lib_dld_dld_link=no 12400fi 12401rm -f core conftest.err conftest.$ac_objext \ 12402 conftest$ac_exeext conftest.$ac_ext 12403LIBS=$ac_check_lib_save_LIBS 12404fi 12405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12406$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12407if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12408 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12409fi 12410 12411 12412fi 12413 12414 12415fi 12416 12417 12418fi 12419 12420 12421fi 12422 12423 12424fi 12425 12426 ;; 12427 esac 12428 12429 if test "x$lt_cv_dlopen" != xno; then 12430 enable_dlopen=yes 12431 else 12432 enable_dlopen=no 12433 fi 12434 12435 case $lt_cv_dlopen in 12436 dlopen) 12437 save_CPPFLAGS="$CPPFLAGS" 12438 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12439 12440 save_LDFLAGS="$LDFLAGS" 12441 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12442 12443 save_LIBS="$LIBS" 12444 LIBS="$lt_cv_dlopen_libs $LIBS" 12445 12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12447$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12448if ${lt_cv_dlopen_self+:} false; then : 12449 $as_echo_n "(cached) " >&6 12450else 12451 if test "$cross_compiling" = yes; then : 12452 lt_cv_dlopen_self=cross 12453else 12454 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12455 lt_status=$lt_dlunknown 12456 cat > conftest.$ac_ext <<_LT_EOF 12457#line $LINENO "configure" 12458#include "confdefs.h" 12459 12460#if HAVE_DLFCN_H 12461#include <dlfcn.h> 12462#endif 12463 12464#include <stdio.h> 12465 12466#ifdef RTLD_GLOBAL 12467# define LT_DLGLOBAL RTLD_GLOBAL 12468#else 12469# ifdef DL_GLOBAL 12470# define LT_DLGLOBAL DL_GLOBAL 12471# else 12472# define LT_DLGLOBAL 0 12473# endif 12474#endif 12475 12476/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12477 find out it does not work in some platform. */ 12478#ifndef LT_DLLAZY_OR_NOW 12479# ifdef RTLD_LAZY 12480# define LT_DLLAZY_OR_NOW RTLD_LAZY 12481# else 12482# ifdef DL_LAZY 12483# define LT_DLLAZY_OR_NOW DL_LAZY 12484# else 12485# ifdef RTLD_NOW 12486# define LT_DLLAZY_OR_NOW RTLD_NOW 12487# else 12488# ifdef DL_NOW 12489# define LT_DLLAZY_OR_NOW DL_NOW 12490# else 12491# define LT_DLLAZY_OR_NOW 0 12492# endif 12493# endif 12494# endif 12495# endif 12496#endif 12497 12498/* When -fvisbility=hidden is used, assume the code has been annotated 12499 correspondingly for the symbols needed. */ 12500#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12501int fnord () __attribute__((visibility("default"))); 12502#endif 12503 12504int fnord () { return 42; } 12505int main () 12506{ 12507 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12508 int status = $lt_dlunknown; 12509 12510 if (self) 12511 { 12512 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12513 else 12514 { 12515 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12516 else puts (dlerror ()); 12517 } 12518 /* dlclose (self); */ 12519 } 12520 else 12521 puts (dlerror ()); 12522 12523 return status; 12524} 12525_LT_EOF 12526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12527 (eval $ac_link) 2>&5 12528 ac_status=$? 12529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12530 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12531 (./conftest; exit; ) >&5 2>/dev/null 12532 lt_status=$? 12533 case x$lt_status in 12534 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12535 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12536 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12537 esac 12538 else : 12539 # compilation failed 12540 lt_cv_dlopen_self=no 12541 fi 12542fi 12543rm -fr conftest* 12544 12545 12546fi 12547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12548$as_echo "$lt_cv_dlopen_self" >&6; } 12549 12550 if test "x$lt_cv_dlopen_self" = xyes; then 12551 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12553$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12554if ${lt_cv_dlopen_self_static+:} false; then : 12555 $as_echo_n "(cached) " >&6 12556else 12557 if test "$cross_compiling" = yes; then : 12558 lt_cv_dlopen_self_static=cross 12559else 12560 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12561 lt_status=$lt_dlunknown 12562 cat > conftest.$ac_ext <<_LT_EOF 12563#line $LINENO "configure" 12564#include "confdefs.h" 12565 12566#if HAVE_DLFCN_H 12567#include <dlfcn.h> 12568#endif 12569 12570#include <stdio.h> 12571 12572#ifdef RTLD_GLOBAL 12573# define LT_DLGLOBAL RTLD_GLOBAL 12574#else 12575# ifdef DL_GLOBAL 12576# define LT_DLGLOBAL DL_GLOBAL 12577# else 12578# define LT_DLGLOBAL 0 12579# endif 12580#endif 12581 12582/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12583 find out it does not work in some platform. */ 12584#ifndef LT_DLLAZY_OR_NOW 12585# ifdef RTLD_LAZY 12586# define LT_DLLAZY_OR_NOW RTLD_LAZY 12587# else 12588# ifdef DL_LAZY 12589# define LT_DLLAZY_OR_NOW DL_LAZY 12590# else 12591# ifdef RTLD_NOW 12592# define LT_DLLAZY_OR_NOW RTLD_NOW 12593# else 12594# ifdef DL_NOW 12595# define LT_DLLAZY_OR_NOW DL_NOW 12596# else 12597# define LT_DLLAZY_OR_NOW 0 12598# endif 12599# endif 12600# endif 12601# endif 12602#endif 12603 12604/* When -fvisbility=hidden is used, assume the code has been annotated 12605 correspondingly for the symbols needed. */ 12606#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12607int fnord () __attribute__((visibility("default"))); 12608#endif 12609 12610int fnord () { return 42; } 12611int main () 12612{ 12613 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12614 int status = $lt_dlunknown; 12615 12616 if (self) 12617 { 12618 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12619 else 12620 { 12621 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12622 else puts (dlerror ()); 12623 } 12624 /* dlclose (self); */ 12625 } 12626 else 12627 puts (dlerror ()); 12628 12629 return status; 12630} 12631_LT_EOF 12632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12633 (eval $ac_link) 2>&5 12634 ac_status=$? 12635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12636 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12637 (./conftest; exit; ) >&5 2>/dev/null 12638 lt_status=$? 12639 case x$lt_status in 12640 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12641 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12642 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12643 esac 12644 else : 12645 # compilation failed 12646 lt_cv_dlopen_self_static=no 12647 fi 12648fi 12649rm -fr conftest* 12650 12651 12652fi 12653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12654$as_echo "$lt_cv_dlopen_self_static" >&6; } 12655 fi 12656 12657 CPPFLAGS="$save_CPPFLAGS" 12658 LDFLAGS="$save_LDFLAGS" 12659 LIBS="$save_LIBS" 12660 ;; 12661 esac 12662 12663 case $lt_cv_dlopen_self in 12664 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12665 *) enable_dlopen_self=unknown ;; 12666 esac 12667 12668 case $lt_cv_dlopen_self_static in 12669 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12670 *) enable_dlopen_self_static=unknown ;; 12671 esac 12672fi 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690striplib= 12691old_striplib= 12692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12693$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12694if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12695 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12696 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12698$as_echo "yes" >&6; } 12699else 12700# FIXME - insert some real tests, host_os isn't really good enough 12701 case $host_os in 12702 darwin*) 12703 if test -n "$STRIP" ; then 12704 striplib="$STRIP -x" 12705 old_striplib="$STRIP -S" 12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12707$as_echo "yes" >&6; } 12708 else 12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12710$as_echo "no" >&6; } 12711 fi 12712 ;; 12713 *) 12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12715$as_echo "no" >&6; } 12716 ;; 12717 esac 12718fi 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 # Report which library types will actually be built 12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12733$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12735$as_echo "$can_build_shared" >&6; } 12736 12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12738$as_echo_n "checking whether to build shared libraries... " >&6; } 12739 test "$can_build_shared" = "no" && enable_shared=no 12740 12741 # On AIX, shared libraries and static libraries use the same namespace, and 12742 # are all built from PIC. 12743 case $host_os in 12744 aix3*) 12745 test "$enable_shared" = yes && enable_static=no 12746 if test -n "$RANLIB"; then 12747 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12748 postinstall_cmds='$RANLIB $lib' 12749 fi 12750 ;; 12751 12752 aix[4-9]*) 12753 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12754 test "$enable_shared" = yes && enable_static=no 12755 fi 12756 ;; 12757 esac 12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12759$as_echo "$enable_shared" >&6; } 12760 12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12762$as_echo_n "checking whether to build static libraries... " >&6; } 12763 # Make sure either enable_shared or enable_static is yes. 12764 test "$enable_shared" = yes || enable_static=yes 12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12766$as_echo "$enable_static" >&6; } 12767 12768 12769 12770 12771fi 12772ac_ext=c 12773ac_cpp='$CPP $CPPFLAGS' 12774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12776ac_compiler_gnu=$ac_cv_c_compiler_gnu 12777 12778CC="$lt_save_CC" 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 ac_config_commands="$ac_config_commands libtool" 12795 12796 12797 12798 12799# Only expand once: 12800 12801 12802 12803if test -z "$AM_DEFAULT_VERBOSITY"; then 12804 AM_DEFAULT_VERBOSITY=1 12805fi 12806 12807 12808gdu_cv_version_required=0.3.2 12809 12810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gnome-doc-utils >= $gdu_cv_version_required" >&5 12811$as_echo_n "checking gnome-doc-utils >= $gdu_cv_version_required... " >&6; } 12812if test -n "$PKG_CONFIG" && \ 12813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-doc-utils >= \$gdu_cv_version_required\""; } >&5 12814 ($PKG_CONFIG --exists --print-errors "gnome-doc-utils >= $gdu_cv_version_required") 2>&5 12815 ac_status=$? 12816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12817 test $ac_status = 0; }; then 12818 gdu_cv_have_gdu=yes 12819else 12820 gdu_cv_have_gdu=no 12821fi 12822 12823if test "$gdu_cv_have_gdu" = "yes"; then 12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12825$as_echo "yes" >&6; } 12826 : 12827else 12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12829$as_echo "no" >&6; } 12830fi 12831 12832 12833 12834# Check whether --with-help-dir was given. 12835if test "${with_help_dir+set}" = set; then : 12836 withval=$with_help_dir; 12837else 12838 with_help_dir='${datadir}/gnome/help' 12839fi 12840 12841HELP_DIR="$with_help_dir" 12842 12843 12844 12845# Check whether --with-omf-dir was given. 12846if test "${with_omf_dir+set}" = set; then : 12847 withval=$with_omf_dir; 12848else 12849 with_omf_dir='${datadir}/omf' 12850fi 12851 12852OMF_DIR="$with_omf_dir" 12853 12854 12855 12856# Check whether --with-help-formats was given. 12857if test "${with_help_formats+set}" = set; then : 12858 withval=$with_help_formats; 12859else 12860 with_help_formats='' 12861fi 12862 12863DOC_USER_FORMATS="$with_help_formats" 12864 12865 12866# Check whether --enable-scrollkeeper was given. 12867if test "${enable_scrollkeeper+set}" = set; then : 12868 enableval=$enable_scrollkeeper; 12869else 12870 enable_scrollkeeper=yes 12871fi 12872 12873 if test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"; then 12874 ENABLE_SK_TRUE= 12875 ENABLE_SK_FALSE='#' 12876else 12877 ENABLE_SK_TRUE='#' 12878 ENABLE_SK_FALSE= 12879fi 12880 12881 12882DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS" 12883 12884 12885 if test "$gdu_cv_have_gdu" = "yes"; then 12886 HAVE_GNOME_DOC_UTILS_TRUE= 12887 HAVE_GNOME_DOC_UTILS_FALSE='#' 12888else 12889 HAVE_GNOME_DOC_UTILS_TRUE='#' 12890 HAVE_GNOME_DOC_UTILS_FALSE= 12891fi 12892 12893 12894 12895 12896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 12897$as_echo_n "checking for library containing strerror... " >&6; } 12898if ${ac_cv_search_strerror+:} false; then : 12899 $as_echo_n "(cached) " >&6 12900else 12901 ac_func_search_save_LIBS=$LIBS 12902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12903/* end confdefs.h. */ 12904 12905/* Override any GCC internal prototype to avoid an error. 12906 Use char because int might match the return type of a GCC 12907 builtin and then its argument prototype would still apply. */ 12908#ifdef __cplusplus 12909extern "C" 12910#endif 12911char strerror (); 12912int 12913main () 12914{ 12915return strerror (); 12916 ; 12917 return 0; 12918} 12919_ACEOF 12920for ac_lib in '' cposix; do 12921 if test -z "$ac_lib"; then 12922 ac_res="none required" 12923 else 12924 ac_res=-l$ac_lib 12925 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12926 fi 12927 if ac_fn_c_try_link "$LINENO"; then : 12928 ac_cv_search_strerror=$ac_res 12929fi 12930rm -f core conftest.err conftest.$ac_objext \ 12931 conftest$ac_exeext 12932 if ${ac_cv_search_strerror+:} false; then : 12933 break 12934fi 12935done 12936if ${ac_cv_search_strerror+:} false; then : 12937 12938else 12939 ac_cv_search_strerror=no 12940fi 12941rm conftest.$ac_ext 12942LIBS=$ac_func_search_save_LIBS 12943fi 12944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 12945$as_echo "$ac_cv_search_strerror" >&6; } 12946ac_res=$ac_cv_search_strerror 12947if test "$ac_res" != no; then : 12948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12949 12950fi 12951 12952ac_ext=c 12953ac_cpp='$CPP $CPPFLAGS' 12954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12956ac_compiler_gnu=$ac_cv_c_compiler_gnu 12957if test -n "$ac_tool_prefix"; then 12958 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12959set dummy ${ac_tool_prefix}gcc; ac_word=$2 12960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12961$as_echo_n "checking for $ac_word... " >&6; } 12962if ${ac_cv_prog_CC+:} false; then : 12963 $as_echo_n "(cached) " >&6 12964else 12965 if test -n "$CC"; then 12966 ac_cv_prog_CC="$CC" # Let the user override the test. 12967else 12968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12969for as_dir in $PATH 12970do 12971 IFS=$as_save_IFS 12972 test -z "$as_dir" && as_dir=. 12973 for ac_exec_ext in '' $ac_executable_extensions; do 12974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12975 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12977 break 2 12978 fi 12979done 12980 done 12981IFS=$as_save_IFS 12982 12983fi 12984fi 12985CC=$ac_cv_prog_CC 12986if test -n "$CC"; then 12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12988$as_echo "$CC" >&6; } 12989else 12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12991$as_echo "no" >&6; } 12992fi 12993 12994 12995fi 12996if test -z "$ac_cv_prog_CC"; then 12997 ac_ct_CC=$CC 12998 # Extract the first word of "gcc", so it can be a program name with args. 12999set dummy gcc; ac_word=$2 13000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13001$as_echo_n "checking for $ac_word... " >&6; } 13002if ${ac_cv_prog_ac_ct_CC+:} false; then : 13003 $as_echo_n "(cached) " >&6 13004else 13005 if test -n "$ac_ct_CC"; then 13006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13007else 13008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13009for as_dir in $PATH 13010do 13011 IFS=$as_save_IFS 13012 test -z "$as_dir" && as_dir=. 13013 for ac_exec_ext in '' $ac_executable_extensions; do 13014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13015 ac_cv_prog_ac_ct_CC="gcc" 13016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13017 break 2 13018 fi 13019done 13020 done 13021IFS=$as_save_IFS 13022 13023fi 13024fi 13025ac_ct_CC=$ac_cv_prog_ac_ct_CC 13026if test -n "$ac_ct_CC"; then 13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13028$as_echo "$ac_ct_CC" >&6; } 13029else 13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13031$as_echo "no" >&6; } 13032fi 13033 13034 if test "x$ac_ct_CC" = x; then 13035 CC="" 13036 else 13037 case $cross_compiling:$ac_tool_warned in 13038yes:) 13039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13041ac_tool_warned=yes ;; 13042esac 13043 CC=$ac_ct_CC 13044 fi 13045else 13046 CC="$ac_cv_prog_CC" 13047fi 13048 13049if test -z "$CC"; then 13050 if test -n "$ac_tool_prefix"; then 13051 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 13052set dummy ${ac_tool_prefix}cc; ac_word=$2 13053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13054$as_echo_n "checking for $ac_word... " >&6; } 13055if ${ac_cv_prog_CC+:} false; then : 13056 $as_echo_n "(cached) " >&6 13057else 13058 if test -n "$CC"; then 13059 ac_cv_prog_CC="$CC" # Let the user override the test. 13060else 13061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13062for as_dir in $PATH 13063do 13064 IFS=$as_save_IFS 13065 test -z "$as_dir" && as_dir=. 13066 for ac_exec_ext in '' $ac_executable_extensions; do 13067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13068 ac_cv_prog_CC="${ac_tool_prefix}cc" 13069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13070 break 2 13071 fi 13072done 13073 done 13074IFS=$as_save_IFS 13075 13076fi 13077fi 13078CC=$ac_cv_prog_CC 13079if test -n "$CC"; then 13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13081$as_echo "$CC" >&6; } 13082else 13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13084$as_echo "no" >&6; } 13085fi 13086 13087 13088 fi 13089fi 13090if test -z "$CC"; then 13091 # Extract the first word of "cc", so it can be a program name with args. 13092set dummy cc; ac_word=$2 13093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13094$as_echo_n "checking for $ac_word... " >&6; } 13095if ${ac_cv_prog_CC+:} false; then : 13096 $as_echo_n "(cached) " >&6 13097else 13098 if test -n "$CC"; then 13099 ac_cv_prog_CC="$CC" # Let the user override the test. 13100else 13101 ac_prog_rejected=no 13102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13103for as_dir in $PATH 13104do 13105 IFS=$as_save_IFS 13106 test -z "$as_dir" && as_dir=. 13107 for ac_exec_ext in '' $ac_executable_extensions; do 13108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13109 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 13110 ac_prog_rejected=yes 13111 continue 13112 fi 13113 ac_cv_prog_CC="cc" 13114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13115 break 2 13116 fi 13117done 13118 done 13119IFS=$as_save_IFS 13120 13121if test $ac_prog_rejected = yes; then 13122 # We found a bogon in the path, so make sure we never use it. 13123 set dummy $ac_cv_prog_CC 13124 shift 13125 if test $# != 0; then 13126 # We chose a different compiler from the bogus one. 13127 # However, it has the same basename, so the bogon will be chosen 13128 # first if we set CC to just the basename; use the full file name. 13129 shift 13130 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 13131 fi 13132fi 13133fi 13134fi 13135CC=$ac_cv_prog_CC 13136if test -n "$CC"; then 13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13138$as_echo "$CC" >&6; } 13139else 13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13141$as_echo "no" >&6; } 13142fi 13143 13144 13145fi 13146if test -z "$CC"; then 13147 if test -n "$ac_tool_prefix"; then 13148 for ac_prog in cl.exe 13149 do 13150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13151set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13153$as_echo_n "checking for $ac_word... " >&6; } 13154if ${ac_cv_prog_CC+:} false; then : 13155 $as_echo_n "(cached) " >&6 13156else 13157 if test -n "$CC"; then 13158 ac_cv_prog_CC="$CC" # Let the user override the test. 13159else 13160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13161for as_dir in $PATH 13162do 13163 IFS=$as_save_IFS 13164 test -z "$as_dir" && as_dir=. 13165 for ac_exec_ext in '' $ac_executable_extensions; do 13166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13167 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 13168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13169 break 2 13170 fi 13171done 13172 done 13173IFS=$as_save_IFS 13174 13175fi 13176fi 13177CC=$ac_cv_prog_CC 13178if test -n "$CC"; then 13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13180$as_echo "$CC" >&6; } 13181else 13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13183$as_echo "no" >&6; } 13184fi 13185 13186 13187 test -n "$CC" && break 13188 done 13189fi 13190if test -z "$CC"; then 13191 ac_ct_CC=$CC 13192 for ac_prog in cl.exe 13193do 13194 # Extract the first word of "$ac_prog", so it can be a program name with args. 13195set dummy $ac_prog; ac_word=$2 13196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13197$as_echo_n "checking for $ac_word... " >&6; } 13198if ${ac_cv_prog_ac_ct_CC+:} false; then : 13199 $as_echo_n "(cached) " >&6 13200else 13201 if test -n "$ac_ct_CC"; then 13202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13203else 13204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13205for as_dir in $PATH 13206do 13207 IFS=$as_save_IFS 13208 test -z "$as_dir" && as_dir=. 13209 for ac_exec_ext in '' $ac_executable_extensions; do 13210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13211 ac_cv_prog_ac_ct_CC="$ac_prog" 13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13213 break 2 13214 fi 13215done 13216 done 13217IFS=$as_save_IFS 13218 13219fi 13220fi 13221ac_ct_CC=$ac_cv_prog_ac_ct_CC 13222if test -n "$ac_ct_CC"; then 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13224$as_echo "$ac_ct_CC" >&6; } 13225else 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13227$as_echo "no" >&6; } 13228fi 13229 13230 13231 test -n "$ac_ct_CC" && break 13232done 13233 13234 if test "x$ac_ct_CC" = x; then 13235 CC="" 13236 else 13237 case $cross_compiling:$ac_tool_warned in 13238yes:) 13239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13241ac_tool_warned=yes ;; 13242esac 13243 CC=$ac_ct_CC 13244 fi 13245fi 13246 13247fi 13248 13249 13250test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13252as_fn_error $? "no acceptable C compiler found in \$PATH 13253See \`config.log' for more details" "$LINENO" 5; } 13254 13255# Provide some information about the compiler. 13256$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 13257set X $ac_compile 13258ac_compiler=$2 13259for ac_option in --version -v -V -qversion; do 13260 { { ac_try="$ac_compiler $ac_option >&5" 13261case "(($ac_try" in 13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13263 *) ac_try_echo=$ac_try;; 13264esac 13265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13266$as_echo "$ac_try_echo"; } >&5 13267 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13268 ac_status=$? 13269 if test -s conftest.err; then 13270 sed '10a\ 13271... rest of stderr output deleted ... 13272 10q' conftest.err >conftest.er1 13273 cat conftest.er1 >&5 13274 fi 13275 rm -f conftest.er1 conftest.err 13276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13277 test $ac_status = 0; } 13278done 13279 13280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 13281$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 13282if ${ac_cv_c_compiler_gnu+:} false; then : 13283 $as_echo_n "(cached) " >&6 13284else 13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13286/* end confdefs.h. */ 13287 13288int 13289main () 13290{ 13291#ifndef __GNUC__ 13292 choke me 13293#endif 13294 13295 ; 13296 return 0; 13297} 13298_ACEOF 13299if ac_fn_c_try_compile "$LINENO"; then : 13300 ac_compiler_gnu=yes 13301else 13302 ac_compiler_gnu=no 13303fi 13304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13305ac_cv_c_compiler_gnu=$ac_compiler_gnu 13306 13307fi 13308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 13309$as_echo "$ac_cv_c_compiler_gnu" >&6; } 13310if test $ac_compiler_gnu = yes; then 13311 GCC=yes 13312else 13313 GCC= 13314fi 13315ac_test_CFLAGS=${CFLAGS+set} 13316ac_save_CFLAGS=$CFLAGS 13317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 13318$as_echo_n "checking whether $CC accepts -g... " >&6; } 13319if ${ac_cv_prog_cc_g+:} false; then : 13320 $as_echo_n "(cached) " >&6 13321else 13322 ac_save_c_werror_flag=$ac_c_werror_flag 13323 ac_c_werror_flag=yes 13324 ac_cv_prog_cc_g=no 13325 CFLAGS="-g" 13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13327/* end confdefs.h. */ 13328 13329int 13330main () 13331{ 13332 13333 ; 13334 return 0; 13335} 13336_ACEOF 13337if ac_fn_c_try_compile "$LINENO"; then : 13338 ac_cv_prog_cc_g=yes 13339else 13340 CFLAGS="" 13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13342/* end confdefs.h. */ 13343 13344int 13345main () 13346{ 13347 13348 ; 13349 return 0; 13350} 13351_ACEOF 13352if ac_fn_c_try_compile "$LINENO"; then : 13353 13354else 13355 ac_c_werror_flag=$ac_save_c_werror_flag 13356 CFLAGS="-g" 13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13358/* end confdefs.h. */ 13359 13360int 13361main () 13362{ 13363 13364 ; 13365 return 0; 13366} 13367_ACEOF 13368if ac_fn_c_try_compile "$LINENO"; then : 13369 ac_cv_prog_cc_g=yes 13370fi 13371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13372fi 13373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13374fi 13375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13376 ac_c_werror_flag=$ac_save_c_werror_flag 13377fi 13378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 13379$as_echo "$ac_cv_prog_cc_g" >&6; } 13380if test "$ac_test_CFLAGS" = set; then 13381 CFLAGS=$ac_save_CFLAGS 13382elif test $ac_cv_prog_cc_g = yes; then 13383 if test "$GCC" = yes; then 13384 CFLAGS="-g -O2" 13385 else 13386 CFLAGS="-g" 13387 fi 13388else 13389 if test "$GCC" = yes; then 13390 CFLAGS="-O2" 13391 else 13392 CFLAGS= 13393 fi 13394fi 13395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 13396$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 13397if ${ac_cv_prog_cc_c89+:} false; then : 13398 $as_echo_n "(cached) " >&6 13399else 13400 ac_cv_prog_cc_c89=no 13401ac_save_CC=$CC 13402cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13403/* end confdefs.h. */ 13404#include <stdarg.h> 13405#include <stdio.h> 13406struct stat; 13407/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 13408struct buf { int x; }; 13409FILE * (*rcsopen) (struct buf *, struct stat *, int); 13410static char *e (p, i) 13411 char **p; 13412 int i; 13413{ 13414 return p[i]; 13415} 13416static char *f (char * (*g) (char **, int), char **p, ...) 13417{ 13418 char *s; 13419 va_list v; 13420 va_start (v,p); 13421 s = g (p, va_arg (v,int)); 13422 va_end (v); 13423 return s; 13424} 13425 13426/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 13427 function prototypes and stuff, but not '\xHH' hex character constants. 13428 These don't provoke an error unfortunately, instead are silently treated 13429 as 'x'. The following induces an error, until -std is added to get 13430 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 13431 array size at least. It's necessary to write '\x00'==0 to get something 13432 that's true only with -std. */ 13433int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 13434 13435/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 13436 inside strings and character constants. */ 13437#define FOO(x) 'x' 13438int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 13439 13440int test (int i, double x); 13441struct s1 {int (*f) (int a);}; 13442struct s2 {int (*f) (double a);}; 13443int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 13444int argc; 13445char **argv; 13446int 13447main () 13448{ 13449return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 13450 ; 13451 return 0; 13452} 13453_ACEOF 13454for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 13455 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 13456do 13457 CC="$ac_save_CC $ac_arg" 13458 if ac_fn_c_try_compile "$LINENO"; then : 13459 ac_cv_prog_cc_c89=$ac_arg 13460fi 13461rm -f core conftest.err conftest.$ac_objext 13462 test "x$ac_cv_prog_cc_c89" != "xno" && break 13463done 13464rm -f conftest.$ac_ext 13465CC=$ac_save_CC 13466 13467fi 13468# AC_CACHE_VAL 13469case "x$ac_cv_prog_cc_c89" in 13470 x) 13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13472$as_echo "none needed" >&6; } ;; 13473 xno) 13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13475$as_echo "unsupported" >&6; } ;; 13476 *) 13477 CC="$CC $ac_cv_prog_cc_c89" 13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 13479$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 13480esac 13481if test "x$ac_cv_prog_cc_c89" != xno; then : 13482 13483fi 13484 13485ac_ext=c 13486ac_cpp='$CPP $CPPFLAGS' 13487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13489ac_compiler_gnu=$ac_cv_c_compiler_gnu 13490 13491ac_ext=c 13492ac_cpp='$CPP $CPPFLAGS' 13493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13495ac_compiler_gnu=$ac_cv_c_compiler_gnu 13496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 13497$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 13498if ${am_cv_prog_cc_c_o+:} false; then : 13499 $as_echo_n "(cached) " >&6 13500else 13501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13502/* end confdefs.h. */ 13503 13504int 13505main () 13506{ 13507 13508 ; 13509 return 0; 13510} 13511_ACEOF 13512 # Make sure it works both with $CC and with simple cc. 13513 # Following AC_PROG_CC_C_O, we do the test twice because some 13514 # compilers refuse to overwrite an existing .o file with -o, 13515 # though they will create one. 13516 am_cv_prog_cc_c_o=yes 13517 for am_i in 1 2; do 13518 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 13519 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 13520 ac_status=$? 13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13522 (exit $ac_status); } \ 13523 && test -f conftest2.$ac_objext; then 13524 : OK 13525 else 13526 am_cv_prog_cc_c_o=no 13527 break 13528 fi 13529 done 13530 rm -f core conftest* 13531 unset am_i 13532fi 13533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 13534$as_echo "$am_cv_prog_cc_c_o" >&6; } 13535if test "$am_cv_prog_cc_c_o" != yes; then 13536 # Losing compiler, so override with the script. 13537 # FIXME: It is wrong to rewrite CC. 13538 # But if we don't then we get into trouble of one sort or another. 13539 # A longer-term fix would be to have automake use am__CC in this case, 13540 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 13541 CC="$am_aux_dir/compile $CC" 13542fi 13543ac_ext=c 13544ac_cpp='$CPP $CPPFLAGS' 13545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13547ac_compiler_gnu=$ac_cv_c_compiler_gnu 13548 13549 13550depcc="$CC" am_compiler_list= 13551 13552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13553$as_echo_n "checking dependency style of $depcc... " >&6; } 13554if ${am_cv_CC_dependencies_compiler_type+:} false; then : 13555 $as_echo_n "(cached) " >&6 13556else 13557 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13558 # We make a subdir and do the tests there. Otherwise we can end up 13559 # making bogus files that we don't know about and never remove. For 13560 # instance it was reported that on HP-UX the gcc test will end up 13561 # making a dummy file named 'D' -- because '-MD' means "put the output 13562 # in D". 13563 rm -rf conftest.dir 13564 mkdir conftest.dir 13565 # Copy depcomp to subdir because otherwise we won't find it if we're 13566 # using a relative directory. 13567 cp "$am_depcomp" conftest.dir 13568 cd conftest.dir 13569 # We will build objects and dependencies in a subdirectory because 13570 # it helps to detect inapplicable dependency modes. For instance 13571 # both Tru64's cc and ICC support -MD to output dependencies as a 13572 # side effect of compilation, but ICC will put the dependencies in 13573 # the current directory while Tru64 will put them in the object 13574 # directory. 13575 mkdir sub 13576 13577 am_cv_CC_dependencies_compiler_type=none 13578 if test "$am_compiler_list" = ""; then 13579 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13580 fi 13581 am__universal=false 13582 case " $depcc " in #( 13583 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13584 esac 13585 13586 for depmode in $am_compiler_list; do 13587 # Setup a source with many dependencies, because some compilers 13588 # like to wrap large dependency lists on column 80 (with \), and 13589 # we should not choose a depcomp mode which is confused by this. 13590 # 13591 # We need to recreate these files for each test, as the compiler may 13592 # overwrite some of them when testing with obscure command lines. 13593 # This happens at least with the AIX C compiler. 13594 : > sub/conftest.c 13595 for i in 1 2 3 4 5 6; do 13596 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13597 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13598 # Solaris 10 /bin/sh. 13599 echo '/* dummy */' > sub/conftst$i.h 13600 done 13601 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13602 13603 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13604 # mode. It turns out that the SunPro C++ compiler does not properly 13605 # handle '-M -o', and we need to detect this. Also, some Intel 13606 # versions had trouble with output in subdirs. 13607 am__obj=sub/conftest.${OBJEXT-o} 13608 am__minus_obj="-o $am__obj" 13609 case $depmode in 13610 gcc) 13611 # This depmode causes a compiler race in universal mode. 13612 test "$am__universal" = false || continue 13613 ;; 13614 nosideeffect) 13615 # After this tag, mechanisms are not by side-effect, so they'll 13616 # only be used when explicitly requested. 13617 if test "x$enable_dependency_tracking" = xyes; then 13618 continue 13619 else 13620 break 13621 fi 13622 ;; 13623 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13624 # This compiler won't grok '-c -o', but also, the minuso test has 13625 # not run yet. These depmodes are late enough in the game, and 13626 # so weak that their functioning should not be impacted. 13627 am__obj=conftest.${OBJEXT-o} 13628 am__minus_obj= 13629 ;; 13630 none) break ;; 13631 esac 13632 if depmode=$depmode \ 13633 source=sub/conftest.c object=$am__obj \ 13634 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13635 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13636 >/dev/null 2>conftest.err && 13637 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13638 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13639 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13640 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13641 # icc doesn't choke on unknown options, it will just issue warnings 13642 # or remarks (even with -Werror). So we grep stderr for any message 13643 # that says an option was ignored or not supported. 13644 # When given -MP, icc 7.0 and 7.1 complain thusly: 13645 # icc: Command line warning: ignoring option '-M'; no argument required 13646 # The diagnosis changed in icc 8.0: 13647 # icc: Command line remark: option '-MP' not supported 13648 if (grep 'ignoring option' conftest.err || 13649 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13650 am_cv_CC_dependencies_compiler_type=$depmode 13651 break 13652 fi 13653 fi 13654 done 13655 13656 cd .. 13657 rm -rf conftest.dir 13658else 13659 am_cv_CC_dependencies_compiler_type=none 13660fi 13661 13662fi 13663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 13664$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 13665CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 13666 13667 if 13668 test "x$enable_dependency_tracking" != xno \ 13669 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 13670 am__fastdepCC_TRUE= 13671 am__fastdepCC_FALSE='#' 13672else 13673 am__fastdepCC_TRUE='#' 13674 am__fastdepCC_FALSE= 13675fi 13676 13677 13678ac_ext=cpp 13679ac_cpp='$CXXCPP $CPPFLAGS' 13680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13683if test -z "$CXX"; then 13684 if test -n "$CCC"; then 13685 CXX=$CCC 13686 else 13687 if test -n "$ac_tool_prefix"; then 13688 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13689 do 13690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13691set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13693$as_echo_n "checking for $ac_word... " >&6; } 13694if ${ac_cv_prog_CXX+:} false; then : 13695 $as_echo_n "(cached) " >&6 13696else 13697 if test -n "$CXX"; then 13698 ac_cv_prog_CXX="$CXX" # Let the user override the test. 13699else 13700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13701for as_dir in $PATH 13702do 13703 IFS=$as_save_IFS 13704 test -z "$as_dir" && as_dir=. 13705 for ac_exec_ext in '' $ac_executable_extensions; do 13706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13707 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 13708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13709 break 2 13710 fi 13711done 13712 done 13713IFS=$as_save_IFS 13714 13715fi 13716fi 13717CXX=$ac_cv_prog_CXX 13718if test -n "$CXX"; then 13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 13720$as_echo "$CXX" >&6; } 13721else 13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13723$as_echo "no" >&6; } 13724fi 13725 13726 13727 test -n "$CXX" && break 13728 done 13729fi 13730if test -z "$CXX"; then 13731 ac_ct_CXX=$CXX 13732 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13733do 13734 # Extract the first word of "$ac_prog", so it can be a program name with args. 13735set dummy $ac_prog; ac_word=$2 13736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13737$as_echo_n "checking for $ac_word... " >&6; } 13738if ${ac_cv_prog_ac_ct_CXX+:} false; then : 13739 $as_echo_n "(cached) " >&6 13740else 13741 if test -n "$ac_ct_CXX"; then 13742 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 13743else 13744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13745for as_dir in $PATH 13746do 13747 IFS=$as_save_IFS 13748 test -z "$as_dir" && as_dir=. 13749 for ac_exec_ext in '' $ac_executable_extensions; do 13750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13751 ac_cv_prog_ac_ct_CXX="$ac_prog" 13752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13753 break 2 13754 fi 13755done 13756 done 13757IFS=$as_save_IFS 13758 13759fi 13760fi 13761ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 13762if test -n "$ac_ct_CXX"; then 13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 13764$as_echo "$ac_ct_CXX" >&6; } 13765else 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13767$as_echo "no" >&6; } 13768fi 13769 13770 13771 test -n "$ac_ct_CXX" && break 13772done 13773 13774 if test "x$ac_ct_CXX" = x; then 13775 CXX="g++" 13776 else 13777 case $cross_compiling:$ac_tool_warned in 13778yes:) 13779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13781ac_tool_warned=yes ;; 13782esac 13783 CXX=$ac_ct_CXX 13784 fi 13785fi 13786 13787 fi 13788fi 13789# Provide some information about the compiler. 13790$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 13791set X $ac_compile 13792ac_compiler=$2 13793for ac_option in --version -v -V -qversion; do 13794 { { ac_try="$ac_compiler $ac_option >&5" 13795case "(($ac_try" in 13796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13797 *) ac_try_echo=$ac_try;; 13798esac 13799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13800$as_echo "$ac_try_echo"; } >&5 13801 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13802 ac_status=$? 13803 if test -s conftest.err; then 13804 sed '10a\ 13805... rest of stderr output deleted ... 13806 10q' conftest.err >conftest.er1 13807 cat conftest.er1 >&5 13808 fi 13809 rm -f conftest.er1 conftest.err 13810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13811 test $ac_status = 0; } 13812done 13813 13814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 13815$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 13816if ${ac_cv_cxx_compiler_gnu+:} false; then : 13817 $as_echo_n "(cached) " >&6 13818else 13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13820/* end confdefs.h. */ 13821 13822int 13823main () 13824{ 13825#ifndef __GNUC__ 13826 choke me 13827#endif 13828 13829 ; 13830 return 0; 13831} 13832_ACEOF 13833if ac_fn_cxx_try_compile "$LINENO"; then : 13834 ac_compiler_gnu=yes 13835else 13836 ac_compiler_gnu=no 13837fi 13838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13839ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 13840 13841fi 13842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 13843$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 13844if test $ac_compiler_gnu = yes; then 13845 GXX=yes 13846else 13847 GXX= 13848fi 13849ac_test_CXXFLAGS=${CXXFLAGS+set} 13850ac_save_CXXFLAGS=$CXXFLAGS 13851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 13852$as_echo_n "checking whether $CXX accepts -g... " >&6; } 13853if ${ac_cv_prog_cxx_g+:} false; then : 13854 $as_echo_n "(cached) " >&6 13855else 13856 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 13857 ac_cxx_werror_flag=yes 13858 ac_cv_prog_cxx_g=no 13859 CXXFLAGS="-g" 13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13861/* end confdefs.h. */ 13862 13863int 13864main () 13865{ 13866 13867 ; 13868 return 0; 13869} 13870_ACEOF 13871if ac_fn_cxx_try_compile "$LINENO"; then : 13872 ac_cv_prog_cxx_g=yes 13873else 13874 CXXFLAGS="" 13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13876/* end confdefs.h. */ 13877 13878int 13879main () 13880{ 13881 13882 ; 13883 return 0; 13884} 13885_ACEOF 13886if ac_fn_cxx_try_compile "$LINENO"; then : 13887 13888else 13889 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13890 CXXFLAGS="-g" 13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13892/* end confdefs.h. */ 13893 13894int 13895main () 13896{ 13897 13898 ; 13899 return 0; 13900} 13901_ACEOF 13902if ac_fn_cxx_try_compile "$LINENO"; then : 13903 ac_cv_prog_cxx_g=yes 13904fi 13905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13906fi 13907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13908fi 13909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13910 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13911fi 13912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 13913$as_echo "$ac_cv_prog_cxx_g" >&6; } 13914if test "$ac_test_CXXFLAGS" = set; then 13915 CXXFLAGS=$ac_save_CXXFLAGS 13916elif test $ac_cv_prog_cxx_g = yes; then 13917 if test "$GXX" = yes; then 13918 CXXFLAGS="-g -O2" 13919 else 13920 CXXFLAGS="-g" 13921 fi 13922else 13923 if test "$GXX" = yes; then 13924 CXXFLAGS="-O2" 13925 else 13926 CXXFLAGS= 13927 fi 13928fi 13929ac_ext=c 13930ac_cpp='$CPP $CPPFLAGS' 13931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13933ac_compiler_gnu=$ac_cv_c_compiler_gnu 13934 13935depcc="$CXX" am_compiler_list= 13936 13937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13938$as_echo_n "checking dependency style of $depcc... " >&6; } 13939if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 13940 $as_echo_n "(cached) " >&6 13941else 13942 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13943 # We make a subdir and do the tests there. Otherwise we can end up 13944 # making bogus files that we don't know about and never remove. For 13945 # instance it was reported that on HP-UX the gcc test will end up 13946 # making a dummy file named 'D' -- because '-MD' means "put the output 13947 # in D". 13948 rm -rf conftest.dir 13949 mkdir conftest.dir 13950 # Copy depcomp to subdir because otherwise we won't find it if we're 13951 # using a relative directory. 13952 cp "$am_depcomp" conftest.dir 13953 cd conftest.dir 13954 # We will build objects and dependencies in a subdirectory because 13955 # it helps to detect inapplicable dependency modes. For instance 13956 # both Tru64's cc and ICC support -MD to output dependencies as a 13957 # side effect of compilation, but ICC will put the dependencies in 13958 # the current directory while Tru64 will put them in the object 13959 # directory. 13960 mkdir sub 13961 13962 am_cv_CXX_dependencies_compiler_type=none 13963 if test "$am_compiler_list" = ""; then 13964 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13965 fi 13966 am__universal=false 13967 case " $depcc " in #( 13968 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13969 esac 13970 13971 for depmode in $am_compiler_list; do 13972 # Setup a source with many dependencies, because some compilers 13973 # like to wrap large dependency lists on column 80 (with \), and 13974 # we should not choose a depcomp mode which is confused by this. 13975 # 13976 # We need to recreate these files for each test, as the compiler may 13977 # overwrite some of them when testing with obscure command lines. 13978 # This happens at least with the AIX C compiler. 13979 : > sub/conftest.c 13980 for i in 1 2 3 4 5 6; do 13981 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13982 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13983 # Solaris 10 /bin/sh. 13984 echo '/* dummy */' > sub/conftst$i.h 13985 done 13986 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13987 13988 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13989 # mode. It turns out that the SunPro C++ compiler does not properly 13990 # handle '-M -o', and we need to detect this. Also, some Intel 13991 # versions had trouble with output in subdirs. 13992 am__obj=sub/conftest.${OBJEXT-o} 13993 am__minus_obj="-o $am__obj" 13994 case $depmode in 13995 gcc) 13996 # This depmode causes a compiler race in universal mode. 13997 test "$am__universal" = false || continue 13998 ;; 13999 nosideeffect) 14000 # After this tag, mechanisms are not by side-effect, so they'll 14001 # only be used when explicitly requested. 14002 if test "x$enable_dependency_tracking" = xyes; then 14003 continue 14004 else 14005 break 14006 fi 14007 ;; 14008 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 14009 # This compiler won't grok '-c -o', but also, the minuso test has 14010 # not run yet. These depmodes are late enough in the game, and 14011 # so weak that their functioning should not be impacted. 14012 am__obj=conftest.${OBJEXT-o} 14013 am__minus_obj= 14014 ;; 14015 none) break ;; 14016 esac 14017 if depmode=$depmode \ 14018 source=sub/conftest.c object=$am__obj \ 14019 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 14020 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 14021 >/dev/null 2>conftest.err && 14022 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 14023 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 14024 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 14025 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 14026 # icc doesn't choke on unknown options, it will just issue warnings 14027 # or remarks (even with -Werror). So we grep stderr for any message 14028 # that says an option was ignored or not supported. 14029 # When given -MP, icc 7.0 and 7.1 complain thusly: 14030 # icc: Command line warning: ignoring option '-M'; no argument required 14031 # The diagnosis changed in icc 8.0: 14032 # icc: Command line remark: option '-MP' not supported 14033 if (grep 'ignoring option' conftest.err || 14034 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 14035 am_cv_CXX_dependencies_compiler_type=$depmode 14036 break 14037 fi 14038 fi 14039 done 14040 14041 cd .. 14042 rm -rf conftest.dir 14043else 14044 am_cv_CXX_dependencies_compiler_type=none 14045fi 14046 14047fi 14048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 14049$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 14050CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 14051 14052 if 14053 test "x$enable_dependency_tracking" != xno \ 14054 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 14055 am__fastdepCXX_TRUE= 14056 am__fastdepCXX_FALSE='#' 14057else 14058 am__fastdepCXX_TRUE='#' 14059 am__fastdepCXX_FALSE= 14060fi 14061 14062 14063 14064 14065func_stripname_cnf () 14066{ 14067 case ${2} in 14068 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 14069 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 14070 esac 14071} # func_stripname_cnf 14072 14073 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 14074 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 14075 (test "X$CXX" != "Xg++"))) ; then 14076 ac_ext=cpp 14077ac_cpp='$CXXCPP $CPPFLAGS' 14078ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14079ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14080ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 14082$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 14083if test -z "$CXXCPP"; then 14084 if ${ac_cv_prog_CXXCPP+:} false; then : 14085 $as_echo_n "(cached) " >&6 14086else 14087 # Double quotes because CXXCPP needs to be expanded 14088 for CXXCPP in "$CXX -E" "/lib/cpp" 14089 do 14090 ac_preproc_ok=false 14091for ac_cxx_preproc_warn_flag in '' yes 14092do 14093 # Use a header file that comes with gcc, so configuring glibc 14094 # with a fresh cross-compiler works. 14095 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14096 # <limits.h> exists even on freestanding compilers. 14097 # On the NeXT, cc -E runs the code through the compiler's parser, 14098 # not just through cpp. "Syntax error" is here to catch this case. 14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14100/* end confdefs.h. */ 14101#ifdef __STDC__ 14102# include <limits.h> 14103#else 14104# include <assert.h> 14105#endif 14106 Syntax error 14107_ACEOF 14108if ac_fn_cxx_try_cpp "$LINENO"; then : 14109 14110else 14111 # Broken: fails on valid input. 14112continue 14113fi 14114rm -f conftest.err conftest.i conftest.$ac_ext 14115 14116 # OK, works on sane cases. Now check whether nonexistent headers 14117 # can be detected and how. 14118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14119/* end confdefs.h. */ 14120#include <ac_nonexistent.h> 14121_ACEOF 14122if ac_fn_cxx_try_cpp "$LINENO"; then : 14123 # Broken: success on invalid input. 14124continue 14125else 14126 # Passes both tests. 14127ac_preproc_ok=: 14128break 14129fi 14130rm -f conftest.err conftest.i conftest.$ac_ext 14131 14132done 14133# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14134rm -f conftest.i conftest.err conftest.$ac_ext 14135if $ac_preproc_ok; then : 14136 break 14137fi 14138 14139 done 14140 ac_cv_prog_CXXCPP=$CXXCPP 14141 14142fi 14143 CXXCPP=$ac_cv_prog_CXXCPP 14144else 14145 ac_cv_prog_CXXCPP=$CXXCPP 14146fi 14147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 14148$as_echo "$CXXCPP" >&6; } 14149ac_preproc_ok=false 14150for ac_cxx_preproc_warn_flag in '' yes 14151do 14152 # Use a header file that comes with gcc, so configuring glibc 14153 # with a fresh cross-compiler works. 14154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14155 # <limits.h> exists even on freestanding compilers. 14156 # On the NeXT, cc -E runs the code through the compiler's parser, 14157 # not just through cpp. "Syntax error" is here to catch this case. 14158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14159/* end confdefs.h. */ 14160#ifdef __STDC__ 14161# include <limits.h> 14162#else 14163# include <assert.h> 14164#endif 14165 Syntax error 14166_ACEOF 14167if ac_fn_cxx_try_cpp "$LINENO"; then : 14168 14169else 14170 # Broken: fails on valid input. 14171continue 14172fi 14173rm -f conftest.err conftest.i conftest.$ac_ext 14174 14175 # OK, works on sane cases. Now check whether nonexistent headers 14176 # can be detected and how. 14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14178/* end confdefs.h. */ 14179#include <ac_nonexistent.h> 14180_ACEOF 14181if ac_fn_cxx_try_cpp "$LINENO"; then : 14182 # Broken: success on invalid input. 14183continue 14184else 14185 # Passes both tests. 14186ac_preproc_ok=: 14187break 14188fi 14189rm -f conftest.err conftest.i conftest.$ac_ext 14190 14191done 14192# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14193rm -f conftest.i conftest.err conftest.$ac_ext 14194if $ac_preproc_ok; then : 14195 14196else 14197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14199as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 14200See \`config.log' for more details" "$LINENO" 5; } 14201fi 14202 14203ac_ext=c 14204ac_cpp='$CPP $CPPFLAGS' 14205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14207ac_compiler_gnu=$ac_cv_c_compiler_gnu 14208 14209else 14210 _lt_caught_CXX_error=yes 14211fi 14212 14213ac_ext=cpp 14214ac_cpp='$CXXCPP $CPPFLAGS' 14215ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14216ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14217ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14218 14219archive_cmds_need_lc_CXX=no 14220allow_undefined_flag_CXX= 14221always_export_symbols_CXX=no 14222archive_expsym_cmds_CXX= 14223compiler_needs_object_CXX=no 14224export_dynamic_flag_spec_CXX= 14225hardcode_direct_CXX=no 14226hardcode_direct_absolute_CXX=no 14227hardcode_libdir_flag_spec_CXX= 14228hardcode_libdir_separator_CXX= 14229hardcode_minus_L_CXX=no 14230hardcode_shlibpath_var_CXX=unsupported 14231hardcode_automatic_CXX=no 14232inherit_rpath_CXX=no 14233module_cmds_CXX= 14234module_expsym_cmds_CXX= 14235link_all_deplibs_CXX=unknown 14236old_archive_cmds_CXX=$old_archive_cmds 14237reload_flag_CXX=$reload_flag 14238reload_cmds_CXX=$reload_cmds 14239no_undefined_flag_CXX= 14240whole_archive_flag_spec_CXX= 14241enable_shared_with_static_runtimes_CXX=no 14242 14243# Source file extension for C++ test sources. 14244ac_ext=cpp 14245 14246# Object file extension for compiled C++ test sources. 14247objext=o 14248objext_CXX=$objext 14249 14250# No sense in running all these tests if we already determined that 14251# the CXX compiler isn't working. Some variables (like enable_shared) 14252# are currently assumed to apply to all compilers on this platform, 14253# and will be corrupted by setting them based on a non-working compiler. 14254if test "$_lt_caught_CXX_error" != yes; then 14255 # Code to be used in simple compile tests 14256 lt_simple_compile_test_code="int some_variable = 0;" 14257 14258 # Code to be used in simple link tests 14259 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 14260 14261 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14262 14263 14264 14265 14266 14267 14268# If no C compiler was specified, use CC. 14269LTCC=${LTCC-"$CC"} 14270 14271# If no C compiler flags were specified, use CFLAGS. 14272LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14273 14274# Allow CC to be a program name with arguments. 14275compiler=$CC 14276 14277 14278 # save warnings/boilerplate of simple test code 14279 ac_outfile=conftest.$ac_objext 14280echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14281eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14282_lt_compiler_boilerplate=`cat conftest.err` 14283$RM conftest* 14284 14285 ac_outfile=conftest.$ac_objext 14286echo "$lt_simple_link_test_code" >conftest.$ac_ext 14287eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14288_lt_linker_boilerplate=`cat conftest.err` 14289$RM -r conftest* 14290 14291 14292 # Allow CC to be a program name with arguments. 14293 lt_save_CC=$CC 14294 lt_save_CFLAGS=$CFLAGS 14295 lt_save_LD=$LD 14296 lt_save_GCC=$GCC 14297 GCC=$GXX 14298 lt_save_with_gnu_ld=$with_gnu_ld 14299 lt_save_path_LD=$lt_cv_path_LD 14300 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 14301 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 14302 else 14303 $as_unset lt_cv_prog_gnu_ld 14304 fi 14305 if test -n "${lt_cv_path_LDCXX+set}"; then 14306 lt_cv_path_LD=$lt_cv_path_LDCXX 14307 else 14308 $as_unset lt_cv_path_LD 14309 fi 14310 test -z "${LDCXX+set}" || LD=$LDCXX 14311 CC=${CXX-"c++"} 14312 CFLAGS=$CXXFLAGS 14313 compiler=$CC 14314 compiler_CXX=$CC 14315 for cc_temp in $compiler""; do 14316 case $cc_temp in 14317 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14318 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14319 \-*) ;; 14320 *) break;; 14321 esac 14322done 14323cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14324 14325 14326 if test -n "$compiler"; then 14327 # We don't want -fno-exception when compiling C++ code, so set the 14328 # no_builtin_flag separately 14329 if test "$GXX" = yes; then 14330 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 14331 else 14332 lt_prog_compiler_no_builtin_flag_CXX= 14333 fi 14334 14335 if test "$GXX" = yes; then 14336 # Set up default GNU C++ configuration 14337 14338 14339 14340# Check whether --with-gnu-ld was given. 14341if test "${with_gnu_ld+set}" = set; then : 14342 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 14343else 14344 with_gnu_ld=no 14345fi 14346 14347ac_prog=ld 14348if test "$GCC" = yes; then 14349 # Check if gcc -print-prog-name=ld gives a path. 14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14351$as_echo_n "checking for ld used by $CC... " >&6; } 14352 case $host in 14353 *-*-mingw*) 14354 # gcc leaves a trailing carriage return which upsets mingw 14355 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14356 *) 14357 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14358 esac 14359 case $ac_prog in 14360 # Accept absolute paths. 14361 [\\/]* | ?:[\\/]*) 14362 re_direlt='/[^/][^/]*/\.\./' 14363 # Canonicalize the pathname of ld 14364 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14365 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14366 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14367 done 14368 test -z "$LD" && LD="$ac_prog" 14369 ;; 14370 "") 14371 # If it fails, then pretend we aren't using GCC. 14372 ac_prog=ld 14373 ;; 14374 *) 14375 # If it is relative, then search for the first ld in PATH. 14376 with_gnu_ld=unknown 14377 ;; 14378 esac 14379elif test "$with_gnu_ld" = yes; then 14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14381$as_echo_n "checking for GNU ld... " >&6; } 14382else 14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14384$as_echo_n "checking for non-GNU ld... " >&6; } 14385fi 14386if ${lt_cv_path_LD+:} false; then : 14387 $as_echo_n "(cached) " >&6 14388else 14389 if test -z "$LD"; then 14390 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14391 for ac_dir in $PATH; do 14392 IFS="$lt_save_ifs" 14393 test -z "$ac_dir" && ac_dir=. 14394 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14395 lt_cv_path_LD="$ac_dir/$ac_prog" 14396 # Check to see if the program is GNU ld. I'd rather use --version, 14397 # but apparently some variants of GNU ld only accept -v. 14398 # Break only if it was the GNU/non-GNU ld that we prefer. 14399 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14400 *GNU* | *'with BFD'*) 14401 test "$with_gnu_ld" != no && break 14402 ;; 14403 *) 14404 test "$with_gnu_ld" != yes && break 14405 ;; 14406 esac 14407 fi 14408 done 14409 IFS="$lt_save_ifs" 14410else 14411 lt_cv_path_LD="$LD" # Let the user override the test with a path. 14412fi 14413fi 14414 14415LD="$lt_cv_path_LD" 14416if test -n "$LD"; then 14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14418$as_echo "$LD" >&6; } 14419else 14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14421$as_echo "no" >&6; } 14422fi 14423test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14425$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14426if ${lt_cv_prog_gnu_ld+:} false; then : 14427 $as_echo_n "(cached) " >&6 14428else 14429 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14430case `$LD -v 2>&1 </dev/null` in 14431*GNU* | *'with BFD'*) 14432 lt_cv_prog_gnu_ld=yes 14433 ;; 14434*) 14435 lt_cv_prog_gnu_ld=no 14436 ;; 14437esac 14438fi 14439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14440$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14441with_gnu_ld=$lt_cv_prog_gnu_ld 14442 14443 14444 14445 14446 14447 14448 14449 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14450 # archiving commands below assume that GNU ld is being used. 14451 if test "$with_gnu_ld" = yes; then 14452 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14453 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14454 14455 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14456 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14457 14458 # If archive_cmds runs LD, not CC, wlarc should be empty 14459 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14460 # investigate it a little bit more. (MM) 14461 wlarc='${wl}' 14462 14463 # ancient GNU ld didn't support --whole-archive et. al. 14464 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14465 $GREP 'no-whole-archive' > /dev/null; then 14466 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14467 else 14468 whole_archive_flag_spec_CXX= 14469 fi 14470 else 14471 with_gnu_ld=no 14472 wlarc= 14473 14474 # A generic and very simple default shared library creation 14475 # command for GNU C++ for the case where it uses the native 14476 # linker, instead of GNU ld. If possible, this setting should 14477 # overridden to take advantage of the native linker features on 14478 # the platform it is being used on. 14479 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14480 fi 14481 14482 # Commands to make compiler produce verbose output that lists 14483 # what "hidden" libraries, object files and flags are used when 14484 # linking a shared library. 14485 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14486 14487 else 14488 GXX=no 14489 with_gnu_ld=no 14490 wlarc= 14491 fi 14492 14493 # PORTME: fill in a description of your system's C++ link characteristics 14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14495$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14496 ld_shlibs_CXX=yes 14497 case $host_os in 14498 aix3*) 14499 # FIXME: insert proper C++ library support 14500 ld_shlibs_CXX=no 14501 ;; 14502 aix[4-9]*) 14503 if test "$host_cpu" = ia64; then 14504 # On IA64, the linker does run time linking by default, so we don't 14505 # have to do anything special. 14506 aix_use_runtimelinking=no 14507 exp_sym_flag='-Bexport' 14508 no_entry_flag="" 14509 else 14510 aix_use_runtimelinking=no 14511 14512 # Test if we are trying to use run time linking or normal 14513 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14514 # need to do runtime linking. 14515 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14516 for ld_flag in $LDFLAGS; do 14517 case $ld_flag in 14518 *-brtl*) 14519 aix_use_runtimelinking=yes 14520 break 14521 ;; 14522 esac 14523 done 14524 ;; 14525 esac 14526 14527 exp_sym_flag='-bexport' 14528 no_entry_flag='-bnoentry' 14529 fi 14530 14531 # When large executables or shared objects are built, AIX ld can 14532 # have problems creating the table of contents. If linking a library 14533 # or program results in "error TOC overflow" add -mminimal-toc to 14534 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14535 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14536 14537 archive_cmds_CXX='' 14538 hardcode_direct_CXX=yes 14539 hardcode_direct_absolute_CXX=yes 14540 hardcode_libdir_separator_CXX=':' 14541 link_all_deplibs_CXX=yes 14542 file_list_spec_CXX='${wl}-f,' 14543 14544 if test "$GXX" = yes; then 14545 case $host_os in aix4.[012]|aix4.[012].*) 14546 # We only want to do this on AIX 4.2 and lower, the check 14547 # below for broken collect2 doesn't work under 4.3+ 14548 collect2name=`${CC} -print-prog-name=collect2` 14549 if test -f "$collect2name" && 14550 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14551 then 14552 # We have reworked collect2 14553 : 14554 else 14555 # We have old collect2 14556 hardcode_direct_CXX=unsupported 14557 # It fails to find uninstalled libraries when the uninstalled 14558 # path is not listed in the libpath. Setting hardcode_minus_L 14559 # to unsupported forces relinking 14560 hardcode_minus_L_CXX=yes 14561 hardcode_libdir_flag_spec_CXX='-L$libdir' 14562 hardcode_libdir_separator_CXX= 14563 fi 14564 esac 14565 shared_flag='-shared' 14566 if test "$aix_use_runtimelinking" = yes; then 14567 shared_flag="$shared_flag "'${wl}-G' 14568 fi 14569 else 14570 # not using gcc 14571 if test "$host_cpu" = ia64; then 14572 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14573 # chokes on -Wl,-G. The following line is correct: 14574 shared_flag='-G' 14575 else 14576 if test "$aix_use_runtimelinking" = yes; then 14577 shared_flag='${wl}-G' 14578 else 14579 shared_flag='${wl}-bM:SRE' 14580 fi 14581 fi 14582 fi 14583 14584 export_dynamic_flag_spec_CXX='${wl}-bexpall' 14585 # It seems that -bexpall does not export symbols beginning with 14586 # underscore (_), so it is better to generate a list of symbols to 14587 # export. 14588 always_export_symbols_CXX=yes 14589 if test "$aix_use_runtimelinking" = yes; then 14590 # Warning - without using the other runtime loading flags (-brtl), 14591 # -berok will link without error, but may produce a broken library. 14592 allow_undefined_flag_CXX='-berok' 14593 # Determine the default libpath from the value encoded in an empty 14594 # executable. 14595 if test "${lt_cv_aix_libpath+set}" = set; then 14596 aix_libpath=$lt_cv_aix_libpath 14597else 14598 if ${lt_cv_aix_libpath__CXX+:} false; then : 14599 $as_echo_n "(cached) " >&6 14600else 14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14602/* end confdefs.h. */ 14603 14604int 14605main () 14606{ 14607 14608 ; 14609 return 0; 14610} 14611_ACEOF 14612if ac_fn_cxx_try_link "$LINENO"; then : 14613 14614 lt_aix_libpath_sed=' 14615 /Import File Strings/,/^$/ { 14616 /^0/ { 14617 s/^0 *\([^ ]*\) *$/\1/ 14618 p 14619 } 14620 }' 14621 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14622 # Check for a 64-bit object if we didn't find anything. 14623 if test -z "$lt_cv_aix_libpath__CXX"; then 14624 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14625 fi 14626fi 14627rm -f core conftest.err conftest.$ac_objext \ 14628 conftest$ac_exeext conftest.$ac_ext 14629 if test -z "$lt_cv_aix_libpath__CXX"; then 14630 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 14631 fi 14632 14633fi 14634 14635 aix_libpath=$lt_cv_aix_libpath__CXX 14636fi 14637 14638 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 14639 14640 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14641 else 14642 if test "$host_cpu" = ia64; then 14643 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 14644 allow_undefined_flag_CXX="-z nodefs" 14645 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 14646 else 14647 # Determine the default libpath from the value encoded in an 14648 # empty executable. 14649 if test "${lt_cv_aix_libpath+set}" = set; then 14650 aix_libpath=$lt_cv_aix_libpath 14651else 14652 if ${lt_cv_aix_libpath__CXX+:} false; then : 14653 $as_echo_n "(cached) " >&6 14654else 14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14656/* end confdefs.h. */ 14657 14658int 14659main () 14660{ 14661 14662 ; 14663 return 0; 14664} 14665_ACEOF 14666if ac_fn_cxx_try_link "$LINENO"; then : 14667 14668 lt_aix_libpath_sed=' 14669 /Import File Strings/,/^$/ { 14670 /^0/ { 14671 s/^0 *\([^ ]*\) *$/\1/ 14672 p 14673 } 14674 }' 14675 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14676 # Check for a 64-bit object if we didn't find anything. 14677 if test -z "$lt_cv_aix_libpath__CXX"; then 14678 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14679 fi 14680fi 14681rm -f core conftest.err conftest.$ac_objext \ 14682 conftest$ac_exeext conftest.$ac_ext 14683 if test -z "$lt_cv_aix_libpath__CXX"; then 14684 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 14685 fi 14686 14687fi 14688 14689 aix_libpath=$lt_cv_aix_libpath__CXX 14690fi 14691 14692 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 14693 # Warning - without using the other run time loading flags, 14694 # -berok will link without error, but may produce a broken library. 14695 no_undefined_flag_CXX=' ${wl}-bernotok' 14696 allow_undefined_flag_CXX=' ${wl}-berok' 14697 if test "$with_gnu_ld" = yes; then 14698 # We only use this code for GNU lds that support --whole-archive. 14699 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14700 else 14701 # Exported symbols can be pulled into shared objects from archives 14702 whole_archive_flag_spec_CXX='$convenience' 14703 fi 14704 archive_cmds_need_lc_CXX=yes 14705 # This is similar to how AIX traditionally builds its shared 14706 # libraries. 14707 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14708 fi 14709 fi 14710 ;; 14711 14712 beos*) 14713 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14714 allow_undefined_flag_CXX=unsupported 14715 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14716 # support --undefined. This deserves some investigation. FIXME 14717 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14718 else 14719 ld_shlibs_CXX=no 14720 fi 14721 ;; 14722 14723 chorus*) 14724 case $cc_basename in 14725 *) 14726 # FIXME: insert proper C++ library support 14727 ld_shlibs_CXX=no 14728 ;; 14729 esac 14730 ;; 14731 14732 cygwin* | mingw* | pw32* | cegcc*) 14733 case $GXX,$cc_basename in 14734 ,cl* | no,cl*) 14735 # Native MSVC 14736 # hardcode_libdir_flag_spec is actually meaningless, as there is 14737 # no search path for DLLs. 14738 hardcode_libdir_flag_spec_CXX=' ' 14739 allow_undefined_flag_CXX=unsupported 14740 always_export_symbols_CXX=yes 14741 file_list_spec_CXX='@' 14742 # Tell ltmain to make .lib files, not .a files. 14743 libext=lib 14744 # Tell ltmain to make .dll files, not .so files. 14745 shrext_cmds=".dll" 14746 # FIXME: Setting linknames here is a bad hack. 14747 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 14748 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14749 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 14750 else 14751 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 14752 fi~ 14753 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14754 linknames=' 14755 # The linker will not automatically build a static lib if we build a DLL. 14756 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14757 enable_shared_with_static_runtimes_CXX=yes 14758 # Don't use ranlib 14759 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14760 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14761 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14762 case $lt_outputfile in 14763 *.exe|*.EXE) ;; 14764 *) 14765 lt_outputfile="$lt_outputfile.exe" 14766 lt_tool_outputfile="$lt_tool_outputfile.exe" 14767 ;; 14768 esac~ 14769 func_to_tool_file "$lt_outputfile"~ 14770 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 14771 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14772 $RM "$lt_outputfile.manifest"; 14773 fi' 14774 ;; 14775 *) 14776 # g++ 14777 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14778 # as there is no search path for DLLs. 14779 hardcode_libdir_flag_spec_CXX='-L$libdir' 14780 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 14781 allow_undefined_flag_CXX=unsupported 14782 always_export_symbols_CXX=no 14783 enable_shared_with_static_runtimes_CXX=yes 14784 14785 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14786 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14787 # If the export-symbols file already is a .def file (1st line 14788 # is EXPORTS), use it as is; otherwise, prepend... 14789 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14790 cp $export_symbols $output_objdir/$soname.def; 14791 else 14792 echo EXPORTS > $output_objdir/$soname.def; 14793 cat $export_symbols >> $output_objdir/$soname.def; 14794 fi~ 14795 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14796 else 14797 ld_shlibs_CXX=no 14798 fi 14799 ;; 14800 esac 14801 ;; 14802 darwin* | rhapsody*) 14803 14804 14805 archive_cmds_need_lc_CXX=no 14806 hardcode_direct_CXX=no 14807 hardcode_automatic_CXX=yes 14808 hardcode_shlibpath_var_CXX=unsupported 14809 if test "$lt_cv_ld_force_load" = "yes"; then 14810 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 14811 14812 else 14813 whole_archive_flag_spec_CXX='' 14814 fi 14815 link_all_deplibs_CXX=yes 14816 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 14817 case $cc_basename in 14818 ifort*) _lt_dar_can_shared=yes ;; 14819 *) _lt_dar_can_shared=$GCC ;; 14820 esac 14821 if test "$_lt_dar_can_shared" = "yes"; then 14822 output_verbose_link_cmd=func_echo_all 14823 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 14824 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 14825 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 14826 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 14827 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 14828 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 14829 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 14830 fi 14831 14832 else 14833 ld_shlibs_CXX=no 14834 fi 14835 14836 ;; 14837 14838 dgux*) 14839 case $cc_basename in 14840 ec++*) 14841 # FIXME: insert proper C++ library support 14842 ld_shlibs_CXX=no 14843 ;; 14844 ghcx*) 14845 # Green Hills C++ Compiler 14846 # FIXME: insert proper C++ library support 14847 ld_shlibs_CXX=no 14848 ;; 14849 *) 14850 # FIXME: insert proper C++ library support 14851 ld_shlibs_CXX=no 14852 ;; 14853 esac 14854 ;; 14855 14856 freebsd2.*) 14857 # C++ shared libraries reported to be fairly broken before 14858 # switch to ELF 14859 ld_shlibs_CXX=no 14860 ;; 14861 14862 freebsd-elf*) 14863 archive_cmds_need_lc_CXX=no 14864 ;; 14865 14866 freebsd* | dragonfly*) 14867 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14868 # conventions 14869 ld_shlibs_CXX=yes 14870 ;; 14871 14872 haiku*) 14873 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14874 link_all_deplibs_CXX=yes 14875 ;; 14876 14877 hpux9*) 14878 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14879 hardcode_libdir_separator_CXX=: 14880 export_dynamic_flag_spec_CXX='${wl}-E' 14881 hardcode_direct_CXX=yes 14882 hardcode_minus_L_CXX=yes # Not in the search PATH, 14883 # but as the default 14884 # location of the library. 14885 14886 case $cc_basename in 14887 CC*) 14888 # FIXME: insert proper C++ library support 14889 ld_shlibs_CXX=no 14890 ;; 14891 aCC*) 14892 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14893 # Commands to make compiler produce verbose output that lists 14894 # what "hidden" libraries, object files and flags are used when 14895 # linking a shared library. 14896 # 14897 # There doesn't appear to be a way to prevent this compiler from 14898 # explicitly linking system object files so we need to strip them 14899 # from the output so that they don't get included in the library 14900 # dependencies. 14901 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14902 ;; 14903 *) 14904 if test "$GXX" = yes; then 14905 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14906 else 14907 # FIXME: insert proper C++ library support 14908 ld_shlibs_CXX=no 14909 fi 14910 ;; 14911 esac 14912 ;; 14913 14914 hpux10*|hpux11*) 14915 if test $with_gnu_ld = no; then 14916 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14917 hardcode_libdir_separator_CXX=: 14918 14919 case $host_cpu in 14920 hppa*64*|ia64*) 14921 ;; 14922 *) 14923 export_dynamic_flag_spec_CXX='${wl}-E' 14924 ;; 14925 esac 14926 fi 14927 case $host_cpu in 14928 hppa*64*|ia64*) 14929 hardcode_direct_CXX=no 14930 hardcode_shlibpath_var_CXX=no 14931 ;; 14932 *) 14933 hardcode_direct_CXX=yes 14934 hardcode_direct_absolute_CXX=yes 14935 hardcode_minus_L_CXX=yes # Not in the search PATH, 14936 # but as the default 14937 # location of the library. 14938 ;; 14939 esac 14940 14941 case $cc_basename in 14942 CC*) 14943 # FIXME: insert proper C++ library support 14944 ld_shlibs_CXX=no 14945 ;; 14946 aCC*) 14947 case $host_cpu in 14948 hppa*64*) 14949 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14950 ;; 14951 ia64*) 14952 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14953 ;; 14954 *) 14955 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14956 ;; 14957 esac 14958 # Commands to make compiler produce verbose output that lists 14959 # what "hidden" libraries, object files and flags are used when 14960 # linking a shared library. 14961 # 14962 # There doesn't appear to be a way to prevent this compiler from 14963 # explicitly linking system object files so we need to strip them 14964 # from the output so that they don't get included in the library 14965 # dependencies. 14966 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14967 ;; 14968 *) 14969 if test "$GXX" = yes; then 14970 if test $with_gnu_ld = no; then 14971 case $host_cpu in 14972 hppa*64*) 14973 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14974 ;; 14975 ia64*) 14976 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14977 ;; 14978 *) 14979 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14980 ;; 14981 esac 14982 fi 14983 else 14984 # FIXME: insert proper C++ library support 14985 ld_shlibs_CXX=no 14986 fi 14987 ;; 14988 esac 14989 ;; 14990 14991 interix[3-9]*) 14992 hardcode_direct_CXX=no 14993 hardcode_shlibpath_var_CXX=no 14994 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14995 export_dynamic_flag_spec_CXX='${wl}-E' 14996 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14997 # Instead, shared libraries are loaded at an image base (0x10000000 by 14998 # default) and relocated if they conflict, which is a slow very memory 14999 # consuming and fragmenting process. To avoid this, we pick a random, 15000 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15001 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15002 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15003 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15004 ;; 15005 irix5* | irix6*) 15006 case $cc_basename in 15007 CC*) 15008 # SGI C++ 15009 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 15010 15011 # Archives containing C++ object files must be created using 15012 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 15013 # necessary to make sure instantiated templates are included 15014 # in the archive. 15015 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 15016 ;; 15017 *) 15018 if test "$GXX" = yes; then 15019 if test "$with_gnu_ld" = no; then 15020 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15021 else 15022 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 15023 fi 15024 fi 15025 link_all_deplibs_CXX=yes 15026 ;; 15027 esac 15028 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15029 hardcode_libdir_separator_CXX=: 15030 inherit_rpath_CXX=yes 15031 ;; 15032 15033 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15034 case $cc_basename in 15035 KCC*) 15036 # Kuck and Associates, Inc. (KAI) C++ Compiler 15037 15038 # KCC will only create a shared library if the output file 15039 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15040 # to its proper name (with version) after linking. 15041 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 15042 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 15043 # Commands to make compiler produce verbose output that lists 15044 # what "hidden" libraries, object files and flags are used when 15045 # linking a shared library. 15046 # 15047 # There doesn't appear to be a way to prevent this compiler from 15048 # explicitly linking system object files so we need to strip them 15049 # from the output so that they don't get included in the library 15050 # dependencies. 15051 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 15052 15053 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15054 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15055 15056 # Archives containing C++ object files must be created using 15057 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 15058 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 15059 ;; 15060 icpc* | ecpc* ) 15061 # Intel C++ 15062 with_gnu_ld=yes 15063 # version 8.0 and above of icpc choke on multiply defined symbols 15064 # if we add $predep_objects and $postdep_objects, however 7.1 and 15065 # earlier do not add the objects themselves. 15066 case `$CC -V 2>&1` in 15067 *"Version 7."*) 15068 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 15069 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15070 ;; 15071 *) # Version 8.0 or newer 15072 tmp_idyn= 15073 case $host_cpu in 15074 ia64*) tmp_idyn=' -i_dynamic';; 15075 esac 15076 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15077 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15078 ;; 15079 esac 15080 archive_cmds_need_lc_CXX=no 15081 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15082 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15083 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15084 ;; 15085 pgCC* | pgcpp*) 15086 # Portland Group C++ compiler 15087 case `$CC -V` in 15088 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 15089 prelink_cmds_CXX='tpldir=Template.dir~ 15090 rm -rf $tpldir~ 15091 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 15092 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 15093 old_archive_cmds_CXX='tpldir=Template.dir~ 15094 rm -rf $tpldir~ 15095 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 15096 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 15097 $RANLIB $oldlib' 15098 archive_cmds_CXX='tpldir=Template.dir~ 15099 rm -rf $tpldir~ 15100 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15101 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 15102 archive_expsym_cmds_CXX='tpldir=Template.dir~ 15103 rm -rf $tpldir~ 15104 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15105 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 15106 ;; 15107 *) # Version 6 and above use weak symbols 15108 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 15109 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 15110 ;; 15111 esac 15112 15113 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 15114 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15115 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 15116 ;; 15117 cxx*) 15118 # Compaq C++ 15119 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 15120 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 15121 15122 runpath_var=LD_RUN_PATH 15123 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15124 hardcode_libdir_separator_CXX=: 15125 15126 # Commands to make compiler produce verbose output that lists 15127 # what "hidden" libraries, object files and flags are used when 15128 # linking a shared library. 15129 # 15130 # There doesn't appear to be a way to prevent this compiler from 15131 # explicitly linking system object files so we need to strip them 15132 # from the output so that they don't get included in the library 15133 # dependencies. 15134 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 15135 ;; 15136 xl* | mpixl* | bgxl*) 15137 # IBM XL 8.0 on PPC, with GNU ld 15138 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15139 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15140 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15141 if test "x$supports_anon_versioning" = xyes; then 15142 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 15143 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15144 echo "local: *; };" >> $output_objdir/$libname.ver~ 15145 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15146 fi 15147 ;; 15148 *) 15149 case `$CC -V 2>&1 | sed 5q` in 15150 *Sun\ C*) 15151 # Sun C++ 5.9 15152 no_undefined_flag_CXX=' -zdefs' 15153 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15154 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 15155 hardcode_libdir_flag_spec_CXX='-R$libdir' 15156 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 15157 compiler_needs_object_CXX=yes 15158 15159 # Not sure whether something based on 15160 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 15161 # would be better. 15162 output_verbose_link_cmd='func_echo_all' 15163 15164 # Archives containing C++ object files must be created using 15165 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15166 # necessary to make sure instantiated templates are included 15167 # in the archive. 15168 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15169 ;; 15170 esac 15171 ;; 15172 esac 15173 ;; 15174 15175 lynxos*) 15176 # FIXME: insert proper C++ library support 15177 ld_shlibs_CXX=no 15178 ;; 15179 15180 m88k*) 15181 # FIXME: insert proper C++ library support 15182 ld_shlibs_CXX=no 15183 ;; 15184 15185 mvs*) 15186 case $cc_basename in 15187 cxx*) 15188 # FIXME: insert proper C++ library support 15189 ld_shlibs_CXX=no 15190 ;; 15191 *) 15192 # FIXME: insert proper C++ library support 15193 ld_shlibs_CXX=no 15194 ;; 15195 esac 15196 ;; 15197 15198 netbsd*) 15199 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15200 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 15201 wlarc= 15202 hardcode_libdir_flag_spec_CXX='-R$libdir' 15203 hardcode_direct_CXX=yes 15204 hardcode_shlibpath_var_CXX=no 15205 fi 15206 # Workaround some broken pre-1.5 toolchains 15207 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 15208 ;; 15209 15210 *nto* | *qnx*) 15211 ld_shlibs_CXX=yes 15212 ;; 15213 15214 openbsd2*) 15215 # C++ shared libraries are fairly broken 15216 ld_shlibs_CXX=no 15217 ;; 15218 15219 openbsd*) 15220 if test -f /usr/libexec/ld.so; then 15221 hardcode_direct_CXX=yes 15222 hardcode_shlibpath_var_CXX=no 15223 hardcode_direct_absolute_CXX=yes 15224 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15225 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15226 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15227 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 15228 export_dynamic_flag_spec_CXX='${wl}-E' 15229 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15230 fi 15231 output_verbose_link_cmd=func_echo_all 15232 else 15233 ld_shlibs_CXX=no 15234 fi 15235 ;; 15236 15237 osf3* | osf4* | osf5*) 15238 case $cc_basename in 15239 KCC*) 15240 # Kuck and Associates, Inc. (KAI) C++ Compiler 15241 15242 # KCC will only create a shared library if the output file 15243 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15244 # to its proper name (with version) after linking. 15245 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 15246 15247 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15248 hardcode_libdir_separator_CXX=: 15249 15250 # Archives containing C++ object files must be created using 15251 # the KAI C++ compiler. 15252 case $host in 15253 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 15254 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 15255 esac 15256 ;; 15257 RCC*) 15258 # Rational C++ 2.4.1 15259 # FIXME: insert proper C++ library support 15260 ld_shlibs_CXX=no 15261 ;; 15262 cxx*) 15263 case $host in 15264 osf3*) 15265 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 15266 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 15267 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15268 ;; 15269 *) 15270 allow_undefined_flag_CXX=' -expect_unresolved \*' 15271 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 15272 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 15273 echo "-hidden">> $lib.exp~ 15274 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 15275 $RM $lib.exp' 15276 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15277 ;; 15278 esac 15279 15280 hardcode_libdir_separator_CXX=: 15281 15282 # Commands to make compiler produce verbose output that lists 15283 # what "hidden" libraries, object files and flags are used when 15284 # linking a shared library. 15285 # 15286 # There doesn't appear to be a way to prevent this compiler from 15287 # explicitly linking system object files so we need to strip them 15288 # from the output so that they don't get included in the library 15289 # dependencies. 15290 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 15291 ;; 15292 *) 15293 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 15294 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 15295 case $host in 15296 osf3*) 15297 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15298 ;; 15299 *) 15300 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15301 ;; 15302 esac 15303 15304 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15305 hardcode_libdir_separator_CXX=: 15306 15307 # Commands to make compiler produce verbose output that lists 15308 # what "hidden" libraries, object files and flags are used when 15309 # linking a shared library. 15310 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15311 15312 else 15313 # FIXME: insert proper C++ library support 15314 ld_shlibs_CXX=no 15315 fi 15316 ;; 15317 esac 15318 ;; 15319 15320 psos*) 15321 # FIXME: insert proper C++ library support 15322 ld_shlibs_CXX=no 15323 ;; 15324 15325 sunos4*) 15326 case $cc_basename in 15327 CC*) 15328 # Sun C++ 4.x 15329 # FIXME: insert proper C++ library support 15330 ld_shlibs_CXX=no 15331 ;; 15332 lcc*) 15333 # Lucid 15334 # FIXME: insert proper C++ library support 15335 ld_shlibs_CXX=no 15336 ;; 15337 *) 15338 # FIXME: insert proper C++ library support 15339 ld_shlibs_CXX=no 15340 ;; 15341 esac 15342 ;; 15343 15344 solaris*) 15345 case $cc_basename in 15346 CC* | sunCC*) 15347 # Sun C++ 4.2, 5.x and Centerline C++ 15348 archive_cmds_need_lc_CXX=yes 15349 no_undefined_flag_CXX=' -zdefs' 15350 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15351 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15352 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15353 15354 hardcode_libdir_flag_spec_CXX='-R$libdir' 15355 hardcode_shlibpath_var_CXX=no 15356 case $host_os in 15357 solaris2.[0-5] | solaris2.[0-5].*) ;; 15358 *) 15359 # The compiler driver will combine and reorder linker options, 15360 # but understands `-z linker_flag'. 15361 # Supported since Solaris 2.6 (maybe 2.5.1?) 15362 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15363 ;; 15364 esac 15365 link_all_deplibs_CXX=yes 15366 15367 output_verbose_link_cmd='func_echo_all' 15368 15369 # Archives containing C++ object files must be created using 15370 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15371 # necessary to make sure instantiated templates are included 15372 # in the archive. 15373 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15374 ;; 15375 gcx*) 15376 # Green Hills C++ Compiler 15377 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 15378 15379 # The C++ compiler must be used to create the archive. 15380 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15381 ;; 15382 *) 15383 # GNU C++ compiler with Solaris linker 15384 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 15385 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 15386 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15387 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 15388 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15389 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15390 15391 # Commands to make compiler produce verbose output that lists 15392 # what "hidden" libraries, object files and flags are used when 15393 # linking a shared library. 15394 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15395 else 15396 # g++ 2.7 appears to require `-G' NOT `-shared' on this 15397 # platform. 15398 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 15399 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15400 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15401 15402 # Commands to make compiler produce verbose output that lists 15403 # what "hidden" libraries, object files and flags are used when 15404 # linking a shared library. 15405 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15406 fi 15407 15408 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 15409 case $host_os in 15410 solaris2.[0-5] | solaris2.[0-5].*) ;; 15411 *) 15412 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15413 ;; 15414 esac 15415 fi 15416 ;; 15417 esac 15418 ;; 15419 15420 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15421 no_undefined_flag_CXX='${wl}-z,text' 15422 archive_cmds_need_lc_CXX=no 15423 hardcode_shlibpath_var_CXX=no 15424 runpath_var='LD_RUN_PATH' 15425 15426 case $cc_basename in 15427 CC*) 15428 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15429 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15430 ;; 15431 *) 15432 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15433 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15434 ;; 15435 esac 15436 ;; 15437 15438 sysv5* | sco3.2v5* | sco5v6*) 15439 # Note: We can NOT use -z defs as we might desire, because we do not 15440 # link with -lc, and that would cause any symbols used from libc to 15441 # always be unresolved, which means just about no library would 15442 # ever link correctly. If we're not using GNU ld we use -z text 15443 # though, which does catch some bad symbols but isn't as heavy-handed 15444 # as -z defs. 15445 no_undefined_flag_CXX='${wl}-z,text' 15446 allow_undefined_flag_CXX='${wl}-z,nodefs' 15447 archive_cmds_need_lc_CXX=no 15448 hardcode_shlibpath_var_CXX=no 15449 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 15450 hardcode_libdir_separator_CXX=':' 15451 link_all_deplibs_CXX=yes 15452 export_dynamic_flag_spec_CXX='${wl}-Bexport' 15453 runpath_var='LD_RUN_PATH' 15454 15455 case $cc_basename in 15456 CC*) 15457 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15458 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15459 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15460 '"$old_archive_cmds_CXX" 15461 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15462 '"$reload_cmds_CXX" 15463 ;; 15464 *) 15465 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15466 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15467 ;; 15468 esac 15469 ;; 15470 15471 tandem*) 15472 case $cc_basename in 15473 NCC*) 15474 # NonStop-UX NCC 3.20 15475 # FIXME: insert proper C++ library support 15476 ld_shlibs_CXX=no 15477 ;; 15478 *) 15479 # FIXME: insert proper C++ library support 15480 ld_shlibs_CXX=no 15481 ;; 15482 esac 15483 ;; 15484 15485 vxworks*) 15486 # FIXME: insert proper C++ library support 15487 ld_shlibs_CXX=no 15488 ;; 15489 15490 *) 15491 # FIXME: insert proper C++ library support 15492 ld_shlibs_CXX=no 15493 ;; 15494 esac 15495 15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15497$as_echo "$ld_shlibs_CXX" >&6; } 15498 test "$ld_shlibs_CXX" = no && can_build_shared=no 15499 15500 GCC_CXX="$GXX" 15501 LD_CXX="$LD" 15502 15503 ## CAVEAT EMPTOR: 15504 ## There is no encapsulation within the following macros, do not change 15505 ## the running order or otherwise move them around unless you know exactly 15506 ## what you are doing... 15507 # Dependencies to place before and after the object being linked: 15508predep_objects_CXX= 15509postdep_objects_CXX= 15510predeps_CXX= 15511postdeps_CXX= 15512compiler_lib_search_path_CXX= 15513 15514cat > conftest.$ac_ext <<_LT_EOF 15515class Foo 15516{ 15517public: 15518 Foo (void) { a = 0; } 15519private: 15520 int a; 15521}; 15522_LT_EOF 15523 15524 15525_lt_libdeps_save_CFLAGS=$CFLAGS 15526case "$CC $CFLAGS " in #( 15527*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15528*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15529*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15530esac 15531 15532if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15533 (eval $ac_compile) 2>&5 15534 ac_status=$? 15535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15536 test $ac_status = 0; }; then 15537 # Parse the compiler output and extract the necessary 15538 # objects, libraries and library flags. 15539 15540 # Sentinel used to keep track of whether or not we are before 15541 # the conftest object file. 15542 pre_test_object_deps_done=no 15543 15544 for p in `eval "$output_verbose_link_cmd"`; do 15545 case ${prev}${p} in 15546 15547 -L* | -R* | -l*) 15548 # Some compilers place space between "-{L,R}" and the path. 15549 # Remove the space. 15550 if test $p = "-L" || 15551 test $p = "-R"; then 15552 prev=$p 15553 continue 15554 fi 15555 15556 # Expand the sysroot to ease extracting the directories later. 15557 if test -z "$prev"; then 15558 case $p in 15559 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15560 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15561 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15562 esac 15563 fi 15564 case $p in 15565 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15566 esac 15567 if test "$pre_test_object_deps_done" = no; then 15568 case ${prev} in 15569 -L | -R) 15570 # Internal compiler library paths should come after those 15571 # provided the user. The postdeps already come after the 15572 # user supplied libs so there is no need to process them. 15573 if test -z "$compiler_lib_search_path_CXX"; then 15574 compiler_lib_search_path_CXX="${prev}${p}" 15575 else 15576 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 15577 fi 15578 ;; 15579 # The "-l" case would never come before the object being 15580 # linked, so don't bother handling this case. 15581 esac 15582 else 15583 if test -z "$postdeps_CXX"; then 15584 postdeps_CXX="${prev}${p}" 15585 else 15586 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 15587 fi 15588 fi 15589 prev= 15590 ;; 15591 15592 *.lto.$objext) ;; # Ignore GCC LTO objects 15593 *.$objext) 15594 # This assumes that the test object file only shows up 15595 # once in the compiler output. 15596 if test "$p" = "conftest.$objext"; then 15597 pre_test_object_deps_done=yes 15598 continue 15599 fi 15600 15601 if test "$pre_test_object_deps_done" = no; then 15602 if test -z "$predep_objects_CXX"; then 15603 predep_objects_CXX="$p" 15604 else 15605 predep_objects_CXX="$predep_objects_CXX $p" 15606 fi 15607 else 15608 if test -z "$postdep_objects_CXX"; then 15609 postdep_objects_CXX="$p" 15610 else 15611 postdep_objects_CXX="$postdep_objects_CXX $p" 15612 fi 15613 fi 15614 ;; 15615 15616 *) ;; # Ignore the rest. 15617 15618 esac 15619 done 15620 15621 # Clean up. 15622 rm -f a.out a.exe 15623else 15624 echo "libtool.m4: error: problem compiling CXX test program" 15625fi 15626 15627$RM -f confest.$objext 15628CFLAGS=$_lt_libdeps_save_CFLAGS 15629 15630# PORTME: override above test on systems where it is broken 15631case $host_os in 15632interix[3-9]*) 15633 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15634 # hack all around it, let's just trust "g++" to DTRT. 15635 predep_objects_CXX= 15636 postdep_objects_CXX= 15637 postdeps_CXX= 15638 ;; 15639 15640linux*) 15641 case `$CC -V 2>&1 | sed 5q` in 15642 *Sun\ C*) 15643 # Sun C++ 5.9 15644 15645 # The more standards-conforming stlport4 library is 15646 # incompatible with the Cstd library. Avoid specifying 15647 # it if it's in CXXFLAGS. Ignore libCrun as 15648 # -library=stlport4 depends on it. 15649 case " $CXX $CXXFLAGS " in 15650 *" -library=stlport4 "*) 15651 solaris_use_stlport4=yes 15652 ;; 15653 esac 15654 15655 if test "$solaris_use_stlport4" != yes; then 15656 postdeps_CXX='-library=Cstd -library=Crun' 15657 fi 15658 ;; 15659 esac 15660 ;; 15661 15662solaris*) 15663 case $cc_basename in 15664 CC* | sunCC*) 15665 # The more standards-conforming stlport4 library is 15666 # incompatible with the Cstd library. Avoid specifying 15667 # it if it's in CXXFLAGS. Ignore libCrun as 15668 # -library=stlport4 depends on it. 15669 case " $CXX $CXXFLAGS " in 15670 *" -library=stlport4 "*) 15671 solaris_use_stlport4=yes 15672 ;; 15673 esac 15674 15675 # Adding this requires a known-good setup of shared libraries for 15676 # Sun compiler versions before 5.6, else PIC objects from an old 15677 # archive will be linked into the output, leading to subtle bugs. 15678 if test "$solaris_use_stlport4" != yes; then 15679 postdeps_CXX='-library=Cstd -library=Crun' 15680 fi 15681 ;; 15682 esac 15683 ;; 15684esac 15685 15686 15687case " $postdeps_CXX " in 15688*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15689esac 15690 compiler_lib_search_dirs_CXX= 15691if test -n "${compiler_lib_search_path_CXX}"; then 15692 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 15693fi 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 lt_prog_compiler_wl_CXX= 15726lt_prog_compiler_pic_CXX= 15727lt_prog_compiler_static_CXX= 15728 15729 15730 # C++ specific cases for pic, static, wl, etc. 15731 if test "$GXX" = yes; then 15732 lt_prog_compiler_wl_CXX='-Wl,' 15733 lt_prog_compiler_static_CXX='-static' 15734 15735 case $host_os in 15736 aix*) 15737 # All AIX code is PIC. 15738 if test "$host_cpu" = ia64; then 15739 # AIX 5 now supports IA64 processor 15740 lt_prog_compiler_static_CXX='-Bstatic' 15741 fi 15742 ;; 15743 15744 amigaos*) 15745 case $host_cpu in 15746 powerpc) 15747 # see comment about AmigaOS4 .so support 15748 lt_prog_compiler_pic_CXX='-fPIC' 15749 ;; 15750 m68k) 15751 # FIXME: we need at least 68020 code to build shared libraries, but 15752 # adding the `-m68020' flag to GCC prevents building anything better, 15753 # like `-m68040'. 15754 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15755 ;; 15756 esac 15757 ;; 15758 15759 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15760 # PIC is the default for these OSes. 15761 ;; 15762 mingw* | cygwin* | os2* | pw32* | cegcc*) 15763 # This hack is so that the source file can tell whether it is being 15764 # built for inclusion in a dll (and should export symbols for example). 15765 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15766 # (--disable-auto-import) libraries 15767 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15768 ;; 15769 darwin* | rhapsody*) 15770 # PIC is the default on this platform 15771 # Common symbols not allowed in MH_DYLIB files 15772 lt_prog_compiler_pic_CXX='-fno-common' 15773 ;; 15774 *djgpp*) 15775 # DJGPP does not support shared libraries at all 15776 lt_prog_compiler_pic_CXX= 15777 ;; 15778 haiku*) 15779 # PIC is the default for Haiku. 15780 # The "-static" flag exists, but is broken. 15781 lt_prog_compiler_static_CXX= 15782 ;; 15783 interix[3-9]*) 15784 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15785 # Instead, we relocate shared libraries at runtime. 15786 ;; 15787 sysv4*MP*) 15788 if test -d /usr/nec; then 15789 lt_prog_compiler_pic_CXX=-Kconform_pic 15790 fi 15791 ;; 15792 hpux*) 15793 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15794 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15795 # sets the default TLS model and affects inlining. 15796 case $host_cpu in 15797 hppa*64*) 15798 ;; 15799 *) 15800 lt_prog_compiler_pic_CXX='-fPIC' 15801 ;; 15802 esac 15803 ;; 15804 *qnx* | *nto*) 15805 # QNX uses GNU C++, but need to define -shared option too, otherwise 15806 # it will coredump. 15807 lt_prog_compiler_pic_CXX='-fPIC -shared' 15808 ;; 15809 *) 15810 lt_prog_compiler_pic_CXX='-fPIC' 15811 ;; 15812 esac 15813 else 15814 case $host_os in 15815 aix[4-9]*) 15816 # All AIX code is PIC. 15817 if test "$host_cpu" = ia64; then 15818 # AIX 5 now supports IA64 processor 15819 lt_prog_compiler_static_CXX='-Bstatic' 15820 else 15821 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15822 fi 15823 ;; 15824 chorus*) 15825 case $cc_basename in 15826 cxch68*) 15827 # Green Hills C++ Compiler 15828 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 15829 ;; 15830 esac 15831 ;; 15832 mingw* | cygwin* | os2* | pw32* | cegcc*) 15833 # This hack is so that the source file can tell whether it is being 15834 # built for inclusion in a dll (and should export symbols for example). 15835 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15836 ;; 15837 dgux*) 15838 case $cc_basename in 15839 ec++*) 15840 lt_prog_compiler_pic_CXX='-KPIC' 15841 ;; 15842 ghcx*) 15843 # Green Hills C++ Compiler 15844 lt_prog_compiler_pic_CXX='-pic' 15845 ;; 15846 *) 15847 ;; 15848 esac 15849 ;; 15850 freebsd* | dragonfly*) 15851 # FreeBSD uses GNU C++ 15852 ;; 15853 hpux9* | hpux10* | hpux11*) 15854 case $cc_basename in 15855 CC*) 15856 lt_prog_compiler_wl_CXX='-Wl,' 15857 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 15858 if test "$host_cpu" != ia64; then 15859 lt_prog_compiler_pic_CXX='+Z' 15860 fi 15861 ;; 15862 aCC*) 15863 lt_prog_compiler_wl_CXX='-Wl,' 15864 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 15865 case $host_cpu in 15866 hppa*64*|ia64*) 15867 # +Z the default 15868 ;; 15869 *) 15870 lt_prog_compiler_pic_CXX='+Z' 15871 ;; 15872 esac 15873 ;; 15874 *) 15875 ;; 15876 esac 15877 ;; 15878 interix*) 15879 # This is c89, which is MS Visual C++ (no shared libs) 15880 # Anyone wants to do a port? 15881 ;; 15882 irix5* | irix6* | nonstopux*) 15883 case $cc_basename in 15884 CC*) 15885 lt_prog_compiler_wl_CXX='-Wl,' 15886 lt_prog_compiler_static_CXX='-non_shared' 15887 # CC pic flag -KPIC is the default. 15888 ;; 15889 *) 15890 ;; 15891 esac 15892 ;; 15893 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15894 case $cc_basename in 15895 KCC*) 15896 # KAI C++ Compiler 15897 lt_prog_compiler_wl_CXX='--backend -Wl,' 15898 lt_prog_compiler_pic_CXX='-fPIC' 15899 ;; 15900 ecpc* ) 15901 # old Intel C++ for x86_64 which still supported -KPIC. 15902 lt_prog_compiler_wl_CXX='-Wl,' 15903 lt_prog_compiler_pic_CXX='-KPIC' 15904 lt_prog_compiler_static_CXX='-static' 15905 ;; 15906 icpc* ) 15907 # Intel C++, used to be incompatible with GCC. 15908 # ICC 10 doesn't accept -KPIC any more. 15909 lt_prog_compiler_wl_CXX='-Wl,' 15910 lt_prog_compiler_pic_CXX='-fPIC' 15911 lt_prog_compiler_static_CXX='-static' 15912 ;; 15913 pgCC* | pgcpp*) 15914 # Portland Group C++ compiler 15915 lt_prog_compiler_wl_CXX='-Wl,' 15916 lt_prog_compiler_pic_CXX='-fpic' 15917 lt_prog_compiler_static_CXX='-Bstatic' 15918 ;; 15919 cxx*) 15920 # Compaq C++ 15921 # Make sure the PIC flag is empty. It appears that all Alpha 15922 # Linux and Compaq Tru64 Unix objects are PIC. 15923 lt_prog_compiler_pic_CXX= 15924 lt_prog_compiler_static_CXX='-non_shared' 15925 ;; 15926 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15927 # IBM XL 8.0, 9.0 on PPC and BlueGene 15928 lt_prog_compiler_wl_CXX='-Wl,' 15929 lt_prog_compiler_pic_CXX='-qpic' 15930 lt_prog_compiler_static_CXX='-qstaticlink' 15931 ;; 15932 *) 15933 case `$CC -V 2>&1 | sed 5q` in 15934 *Sun\ C*) 15935 # Sun C++ 5.9 15936 lt_prog_compiler_pic_CXX='-KPIC' 15937 lt_prog_compiler_static_CXX='-Bstatic' 15938 lt_prog_compiler_wl_CXX='-Qoption ld ' 15939 ;; 15940 esac 15941 ;; 15942 esac 15943 ;; 15944 lynxos*) 15945 ;; 15946 m88k*) 15947 ;; 15948 mvs*) 15949 case $cc_basename in 15950 cxx*) 15951 lt_prog_compiler_pic_CXX='-W c,exportall' 15952 ;; 15953 *) 15954 ;; 15955 esac 15956 ;; 15957 netbsd* | netbsdelf*-gnu) 15958 ;; 15959 *qnx* | *nto*) 15960 # QNX uses GNU C++, but need to define -shared option too, otherwise 15961 # it will coredump. 15962 lt_prog_compiler_pic_CXX='-fPIC -shared' 15963 ;; 15964 osf3* | osf4* | osf5*) 15965 case $cc_basename in 15966 KCC*) 15967 lt_prog_compiler_wl_CXX='--backend -Wl,' 15968 ;; 15969 RCC*) 15970 # Rational C++ 2.4.1 15971 lt_prog_compiler_pic_CXX='-pic' 15972 ;; 15973 cxx*) 15974 # Digital/Compaq C++ 15975 lt_prog_compiler_wl_CXX='-Wl,' 15976 # Make sure the PIC flag is empty. It appears that all Alpha 15977 # Linux and Compaq Tru64 Unix objects are PIC. 15978 lt_prog_compiler_pic_CXX= 15979 lt_prog_compiler_static_CXX='-non_shared' 15980 ;; 15981 *) 15982 ;; 15983 esac 15984 ;; 15985 psos*) 15986 ;; 15987 solaris*) 15988 case $cc_basename in 15989 CC* | sunCC*) 15990 # Sun C++ 4.2, 5.x and Centerline C++ 15991 lt_prog_compiler_pic_CXX='-KPIC' 15992 lt_prog_compiler_static_CXX='-Bstatic' 15993 lt_prog_compiler_wl_CXX='-Qoption ld ' 15994 ;; 15995 gcx*) 15996 # Green Hills C++ Compiler 15997 lt_prog_compiler_pic_CXX='-PIC' 15998 ;; 15999 *) 16000 ;; 16001 esac 16002 ;; 16003 sunos4*) 16004 case $cc_basename in 16005 CC*) 16006 # Sun C++ 4.x 16007 lt_prog_compiler_pic_CXX='-pic' 16008 lt_prog_compiler_static_CXX='-Bstatic' 16009 ;; 16010 lcc*) 16011 # Lucid 16012 lt_prog_compiler_pic_CXX='-pic' 16013 ;; 16014 *) 16015 ;; 16016 esac 16017 ;; 16018 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16019 case $cc_basename in 16020 CC*) 16021 lt_prog_compiler_wl_CXX='-Wl,' 16022 lt_prog_compiler_pic_CXX='-KPIC' 16023 lt_prog_compiler_static_CXX='-Bstatic' 16024 ;; 16025 esac 16026 ;; 16027 tandem*) 16028 case $cc_basename in 16029 NCC*) 16030 # NonStop-UX NCC 3.20 16031 lt_prog_compiler_pic_CXX='-KPIC' 16032 ;; 16033 *) 16034 ;; 16035 esac 16036 ;; 16037 vxworks*) 16038 ;; 16039 *) 16040 lt_prog_compiler_can_build_shared_CXX=no 16041 ;; 16042 esac 16043 fi 16044 16045case $host_os in 16046 # For platforms which do not support PIC, -DPIC is meaningless: 16047 *djgpp*) 16048 lt_prog_compiler_pic_CXX= 16049 ;; 16050 *) 16051 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 16052 ;; 16053esac 16054 16055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16056$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16057if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 16058 $as_echo_n "(cached) " >&6 16059else 16060 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 16061fi 16062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 16063$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 16064lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 16065 16066# 16067# Check to make sure the PIC flag actually works. 16068# 16069if test -n "$lt_prog_compiler_pic_CXX"; then 16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 16071$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 16072if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 16073 $as_echo_n "(cached) " >&6 16074else 16075 lt_cv_prog_compiler_pic_works_CXX=no 16076 ac_outfile=conftest.$ac_objext 16077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16078 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 16079 # Insert the option either (1) after the last *FLAGS variable, or 16080 # (2) before a word containing "conftest.", or (3) at the end. 16081 # Note that $ac_compile itself does not contain backslashes and begins 16082 # with a dollar sign (not a hyphen), so the echo should work correctly. 16083 # The option is referenced via a variable to avoid confusing sed. 16084 lt_compile=`echo "$ac_compile" | $SED \ 16085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16087 -e 's:$: $lt_compiler_flag:'` 16088 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16089 (eval "$lt_compile" 2>conftest.err) 16090 ac_status=$? 16091 cat conftest.err >&5 16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16093 if (exit $ac_status) && test -s "$ac_outfile"; then 16094 # The compiler can only warn and ignore the option if not recognized 16095 # So say no if there are warnings other than the usual output. 16096 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16097 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16098 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16099 lt_cv_prog_compiler_pic_works_CXX=yes 16100 fi 16101 fi 16102 $RM conftest* 16103 16104fi 16105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 16106$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 16107 16108if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 16109 case $lt_prog_compiler_pic_CXX in 16110 "" | " "*) ;; 16111 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 16112 esac 16113else 16114 lt_prog_compiler_pic_CXX= 16115 lt_prog_compiler_can_build_shared_CXX=no 16116fi 16117 16118fi 16119 16120 16121 16122 16123 16124# 16125# Check to make sure the static flag actually works. 16126# 16127wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 16128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16129$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16130if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 16131 $as_echo_n "(cached) " >&6 16132else 16133 lt_cv_prog_compiler_static_works_CXX=no 16134 save_LDFLAGS="$LDFLAGS" 16135 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16136 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16137 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16138 # The linker can only warn and ignore the option if not recognized 16139 # So say no if there are warnings 16140 if test -s conftest.err; then 16141 # Append any errors to the config.log. 16142 cat conftest.err 1>&5 16143 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16145 if diff conftest.exp conftest.er2 >/dev/null; then 16146 lt_cv_prog_compiler_static_works_CXX=yes 16147 fi 16148 else 16149 lt_cv_prog_compiler_static_works_CXX=yes 16150 fi 16151 fi 16152 $RM -r conftest* 16153 LDFLAGS="$save_LDFLAGS" 16154 16155fi 16156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 16157$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 16158 16159if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 16160 : 16161else 16162 lt_prog_compiler_static_CXX= 16163fi 16164 16165 16166 16167 16168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16169$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16170if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16171 $as_echo_n "(cached) " >&6 16172else 16173 lt_cv_prog_compiler_c_o_CXX=no 16174 $RM -r conftest 2>/dev/null 16175 mkdir conftest 16176 cd conftest 16177 mkdir out 16178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16179 16180 lt_compiler_flag="-o out/conftest2.$ac_objext" 16181 # Insert the option either (1) after the last *FLAGS variable, or 16182 # (2) before a word containing "conftest.", or (3) at the end. 16183 # Note that $ac_compile itself does not contain backslashes and begins 16184 # with a dollar sign (not a hyphen), so the echo should work correctly. 16185 lt_compile=`echo "$ac_compile" | $SED \ 16186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16188 -e 's:$: $lt_compiler_flag:'` 16189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16190 (eval "$lt_compile" 2>out/conftest.err) 16191 ac_status=$? 16192 cat out/conftest.err >&5 16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16194 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16195 then 16196 # The compiler can only warn and ignore the option if not recognized 16197 # So say no if there are warnings 16198 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16201 lt_cv_prog_compiler_c_o_CXX=yes 16202 fi 16203 fi 16204 chmod u+w . 2>&5 16205 $RM conftest* 16206 # SGI C++ compiler will create directory out/ii_files/ for 16207 # template instantiation 16208 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16209 $RM out/* && rmdir out 16210 cd .. 16211 $RM -r conftest 16212 $RM conftest* 16213 16214fi 16215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16216$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16217 16218 16219 16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16221$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16222if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16223 $as_echo_n "(cached) " >&6 16224else 16225 lt_cv_prog_compiler_c_o_CXX=no 16226 $RM -r conftest 2>/dev/null 16227 mkdir conftest 16228 cd conftest 16229 mkdir out 16230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16231 16232 lt_compiler_flag="-o out/conftest2.$ac_objext" 16233 # Insert the option either (1) after the last *FLAGS variable, or 16234 # (2) before a word containing "conftest.", or (3) at the end. 16235 # Note that $ac_compile itself does not contain backslashes and begins 16236 # with a dollar sign (not a hyphen), so the echo should work correctly. 16237 lt_compile=`echo "$ac_compile" | $SED \ 16238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16240 -e 's:$: $lt_compiler_flag:'` 16241 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16242 (eval "$lt_compile" 2>out/conftest.err) 16243 ac_status=$? 16244 cat out/conftest.err >&5 16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16246 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16247 then 16248 # The compiler can only warn and ignore the option if not recognized 16249 # So say no if there are warnings 16250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16251 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16252 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16253 lt_cv_prog_compiler_c_o_CXX=yes 16254 fi 16255 fi 16256 chmod u+w . 2>&5 16257 $RM conftest* 16258 # SGI C++ compiler will create directory out/ii_files/ for 16259 # template instantiation 16260 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16261 $RM out/* && rmdir out 16262 cd .. 16263 $RM -r conftest 16264 $RM conftest* 16265 16266fi 16267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16268$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16269 16270 16271 16272 16273hard_links="nottested" 16274if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 16275 # do not overwrite the value of need_locks provided by the user 16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16277$as_echo_n "checking if we can lock with hard links... " >&6; } 16278 hard_links=yes 16279 $RM conftest* 16280 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16281 touch conftest.a 16282 ln conftest.a conftest.b 2>&5 || hard_links=no 16283 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16285$as_echo "$hard_links" >&6; } 16286 if test "$hard_links" = no; then 16287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16288$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16289 need_locks=warn 16290 fi 16291else 16292 need_locks=no 16293fi 16294 16295 16296 16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16298$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16299 16300 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16301 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16302 case $host_os in 16303 aix[4-9]*) 16304 # If we're using GNU nm, then we don't want the "-C" option. 16305 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16306 # Also, AIX nm treats weak defined symbols like other global defined 16307 # symbols, whereas GNU nm marks them as "W". 16308 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16309 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 16310 else 16311 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 16312 fi 16313 ;; 16314 pw32*) 16315 export_symbols_cmds_CXX="$ltdll_cmds" 16316 ;; 16317 cygwin* | mingw* | cegcc*) 16318 case $cc_basename in 16319 cl*) 16320 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16321 ;; 16322 *) 16323 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 16324 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16325 ;; 16326 esac 16327 ;; 16328 linux* | k*bsd*-gnu | gnu*) 16329 link_all_deplibs_CXX=no 16330 ;; 16331 *) 16332 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16333 ;; 16334 esac 16335 16336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16337$as_echo "$ld_shlibs_CXX" >&6; } 16338test "$ld_shlibs_CXX" = no && can_build_shared=no 16339 16340with_gnu_ld_CXX=$with_gnu_ld 16341 16342 16343 16344 16345 16346 16347# 16348# Do we need to explicitly link libc? 16349# 16350case "x$archive_cmds_need_lc_CXX" in 16351x|xyes) 16352 # Assume -lc should be added 16353 archive_cmds_need_lc_CXX=yes 16354 16355 if test "$enable_shared" = yes && test "$GCC" = yes; then 16356 case $archive_cmds_CXX in 16357 *'~'*) 16358 # FIXME: we may have to deal with multi-command sequences. 16359 ;; 16360 '$CC '*) 16361 # Test whether the compiler implicitly links with -lc since on some 16362 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16363 # to ld, don't add -lc before -lgcc. 16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16365$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16366if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 16367 $as_echo_n "(cached) " >&6 16368else 16369 $RM conftest* 16370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16371 16372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16373 (eval $ac_compile) 2>&5 16374 ac_status=$? 16375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16376 test $ac_status = 0; } 2>conftest.err; then 16377 soname=conftest 16378 lib=conftest 16379 libobjs=conftest.$ac_objext 16380 deplibs= 16381 wl=$lt_prog_compiler_wl_CXX 16382 pic_flag=$lt_prog_compiler_pic_CXX 16383 compiler_flags=-v 16384 linker_flags=-v 16385 verstring= 16386 output_objdir=. 16387 libname=conftest 16388 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16389 allow_undefined_flag_CXX= 16390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16391 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16392 ac_status=$? 16393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16394 test $ac_status = 0; } 16395 then 16396 lt_cv_archive_cmds_need_lc_CXX=no 16397 else 16398 lt_cv_archive_cmds_need_lc_CXX=yes 16399 fi 16400 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16401 else 16402 cat conftest.err 1>&5 16403 fi 16404 $RM conftest* 16405 16406fi 16407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16408$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16409 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16410 ;; 16411 esac 16412 fi 16413 ;; 16414esac 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16478$as_echo_n "checking dynamic linker characteristics... " >&6; } 16479 16480library_names_spec= 16481libname_spec='lib$name' 16482soname_spec= 16483shrext_cmds=".so" 16484postinstall_cmds= 16485postuninstall_cmds= 16486finish_cmds= 16487finish_eval= 16488shlibpath_var= 16489shlibpath_overrides_runpath=unknown 16490version_type=none 16491dynamic_linker="$host_os ld.so" 16492sys_lib_dlsearch_path_spec="/lib /usr/lib" 16493need_lib_prefix=unknown 16494hardcode_into_libs=no 16495 16496# when you set need_version to no, make sure it does not cause -set_version 16497# flags to be left without arguments 16498need_version=unknown 16499 16500case $host_os in 16501aix3*) 16502 version_type=linux # correct to gnu/linux during the next big refactor 16503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16504 shlibpath_var=LIBPATH 16505 16506 # AIX 3 has no versioning support, so we append a major version to the name. 16507 soname_spec='${libname}${release}${shared_ext}$major' 16508 ;; 16509 16510aix[4-9]*) 16511 version_type=linux # correct to gnu/linux during the next big refactor 16512 need_lib_prefix=no 16513 need_version=no 16514 hardcode_into_libs=yes 16515 if test "$host_cpu" = ia64; then 16516 # AIX 5 supports IA64 16517 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16518 shlibpath_var=LD_LIBRARY_PATH 16519 else 16520 # With GCC up to 2.95.x, collect2 would create an import file 16521 # for dependence libraries. The import file would start with 16522 # the line `#! .'. This would cause the generated library to 16523 # depend on `.', always an invalid library. This was fixed in 16524 # development snapshots of GCC prior to 3.0. 16525 case $host_os in 16526 aix4 | aix4.[01] | aix4.[01].*) 16527 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16528 echo ' yes ' 16529 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16530 : 16531 else 16532 can_build_shared=no 16533 fi 16534 ;; 16535 esac 16536 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16537 # soname into executable. Probably we can add versioning support to 16538 # collect2, so additional links can be useful in future. 16539 if test "$aix_use_runtimelinking" = yes; then 16540 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16541 # instead of lib<name>.a to let people know that these are not 16542 # typical AIX shared libraries. 16543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16544 else 16545 # We preserve .a as extension for shared libraries through AIX4.2 16546 # and later when we are not doing run time linking. 16547 library_names_spec='${libname}${release}.a $libname.a' 16548 soname_spec='${libname}${release}${shared_ext}$major' 16549 fi 16550 shlibpath_var=LIBPATH 16551 fi 16552 ;; 16553 16554amigaos*) 16555 case $host_cpu in 16556 powerpc) 16557 # Since July 2007 AmigaOS4 officially supports .so libraries. 16558 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16560 ;; 16561 m68k) 16562 library_names_spec='$libname.ixlibrary $libname.a' 16563 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16564 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16565 ;; 16566 esac 16567 ;; 16568 16569beos*) 16570 library_names_spec='${libname}${shared_ext}' 16571 dynamic_linker="$host_os ld.so" 16572 shlibpath_var=LIBRARY_PATH 16573 ;; 16574 16575bsdi[45]*) 16576 version_type=linux # correct to gnu/linux during the next big refactor 16577 need_version=no 16578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16579 soname_spec='${libname}${release}${shared_ext}$major' 16580 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16581 shlibpath_var=LD_LIBRARY_PATH 16582 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16583 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16584 # the default ld.so.conf also contains /usr/contrib/lib and 16585 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16586 # libtool to hard-code these into programs 16587 ;; 16588 16589cygwin* | mingw* | pw32* | cegcc*) 16590 version_type=windows 16591 shrext_cmds=".dll" 16592 need_version=no 16593 need_lib_prefix=no 16594 16595 case $GCC,$cc_basename in 16596 yes,*) 16597 # gcc 16598 library_names_spec='$libname.dll.a' 16599 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16600 postinstall_cmds='base_file=`basename \${file}`~ 16601 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16602 dldir=$destdir/`dirname \$dlpath`~ 16603 test -d \$dldir || mkdir -p \$dldir~ 16604 $install_prog $dir/$dlname \$dldir/$dlname~ 16605 chmod a+x \$dldir/$dlname~ 16606 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16607 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16608 fi' 16609 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16610 dlpath=$dir/\$dldll~ 16611 $RM \$dlpath' 16612 shlibpath_overrides_runpath=yes 16613 16614 case $host_os in 16615 cygwin*) 16616 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16617 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16618 16619 ;; 16620 mingw* | cegcc*) 16621 # MinGW DLLs use traditional 'lib' prefix 16622 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16623 ;; 16624 pw32*) 16625 # pw32 DLLs use 'pw' prefix rather than 'lib' 16626 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16627 ;; 16628 esac 16629 dynamic_linker='Win32 ld.exe' 16630 ;; 16631 16632 *,cl*) 16633 # Native MSVC 16634 libname_spec='$name' 16635 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16636 library_names_spec='${libname}.dll.lib' 16637 16638 case $build_os in 16639 mingw*) 16640 sys_lib_search_path_spec= 16641 lt_save_ifs=$IFS 16642 IFS=';' 16643 for lt_path in $LIB 16644 do 16645 IFS=$lt_save_ifs 16646 # Let DOS variable expansion print the short 8.3 style file name. 16647 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16648 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16649 done 16650 IFS=$lt_save_ifs 16651 # Convert to MSYS style. 16652 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16653 ;; 16654 cygwin*) 16655 # Convert to unix form, then to dos form, then back to unix form 16656 # but this time dos style (no spaces!) so that the unix form looks 16657 # like /cygdrive/c/PROGRA~1:/cygdr... 16658 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16659 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16660 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16661 ;; 16662 *) 16663 sys_lib_search_path_spec="$LIB" 16664 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16665 # It is most probably a Windows format PATH. 16666 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16667 else 16668 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16669 fi 16670 # FIXME: find the short name or the path components, as spaces are 16671 # common. (e.g. "Program Files" -> "PROGRA~1") 16672 ;; 16673 esac 16674 16675 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16676 postinstall_cmds='base_file=`basename \${file}`~ 16677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16678 dldir=$destdir/`dirname \$dlpath`~ 16679 test -d \$dldir || mkdir -p \$dldir~ 16680 $install_prog $dir/$dlname \$dldir/$dlname' 16681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16682 dlpath=$dir/\$dldll~ 16683 $RM \$dlpath' 16684 shlibpath_overrides_runpath=yes 16685 dynamic_linker='Win32 link.exe' 16686 ;; 16687 16688 *) 16689 # Assume MSVC wrapper 16690 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16691 dynamic_linker='Win32 ld.exe' 16692 ;; 16693 esac 16694 # FIXME: first we should search . and the directory the executable is in 16695 shlibpath_var=PATH 16696 ;; 16697 16698darwin* | rhapsody*) 16699 dynamic_linker="$host_os dyld" 16700 version_type=darwin 16701 need_lib_prefix=no 16702 need_version=no 16703 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16704 soname_spec='${libname}${release}${major}$shared_ext' 16705 shlibpath_overrides_runpath=yes 16706 shlibpath_var=DYLD_LIBRARY_PATH 16707 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16708 16709 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16710 ;; 16711 16712dgux*) 16713 version_type=linux # correct to gnu/linux during the next big refactor 16714 need_lib_prefix=no 16715 need_version=no 16716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16717 soname_spec='${libname}${release}${shared_ext}$major' 16718 shlibpath_var=LD_LIBRARY_PATH 16719 ;; 16720 16721freebsd* | dragonfly*) 16722 # DragonFly does not have aout. When/if they implement a new 16723 # versioning mechanism, adjust this. 16724 if test -x /usr/bin/objformat; then 16725 objformat=`/usr/bin/objformat` 16726 else 16727 case $host_os in 16728 freebsd[23].*) objformat=aout ;; 16729 *) objformat=elf ;; 16730 esac 16731 fi 16732 version_type=freebsd-$objformat 16733 case $version_type in 16734 freebsd-elf*) 16735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16736 need_version=no 16737 need_lib_prefix=no 16738 ;; 16739 freebsd-*) 16740 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16741 need_version=yes 16742 ;; 16743 esac 16744 shlibpath_var=LD_LIBRARY_PATH 16745 case $host_os in 16746 freebsd2.*) 16747 shlibpath_overrides_runpath=yes 16748 ;; 16749 freebsd3.[01]* | freebsdelf3.[01]*) 16750 shlibpath_overrides_runpath=yes 16751 hardcode_into_libs=yes 16752 ;; 16753 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16754 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16755 shlibpath_overrides_runpath=no 16756 hardcode_into_libs=yes 16757 ;; 16758 *) # from 4.6 on, and DragonFly 16759 shlibpath_overrides_runpath=yes 16760 hardcode_into_libs=yes 16761 ;; 16762 esac 16763 ;; 16764 16765haiku*) 16766 version_type=linux # correct to gnu/linux during the next big refactor 16767 need_lib_prefix=no 16768 need_version=no 16769 dynamic_linker="$host_os runtime_loader" 16770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16771 soname_spec='${libname}${release}${shared_ext}$major' 16772 shlibpath_var=LIBRARY_PATH 16773 shlibpath_overrides_runpath=yes 16774 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16775 hardcode_into_libs=yes 16776 ;; 16777 16778hpux9* | hpux10* | hpux11*) 16779 # Give a soname corresponding to the major version so that dld.sl refuses to 16780 # link against other versions. 16781 version_type=sunos 16782 need_lib_prefix=no 16783 need_version=no 16784 case $host_cpu in 16785 ia64*) 16786 shrext_cmds='.so' 16787 hardcode_into_libs=yes 16788 dynamic_linker="$host_os dld.so" 16789 shlibpath_var=LD_LIBRARY_PATH 16790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16792 soname_spec='${libname}${release}${shared_ext}$major' 16793 if test "X$HPUX_IA64_MODE" = X32; then 16794 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16795 else 16796 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16797 fi 16798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16799 ;; 16800 hppa*64*) 16801 shrext_cmds='.sl' 16802 hardcode_into_libs=yes 16803 dynamic_linker="$host_os dld.sl" 16804 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16807 soname_spec='${libname}${release}${shared_ext}$major' 16808 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16810 ;; 16811 *) 16812 shrext_cmds='.sl' 16813 dynamic_linker="$host_os dld.sl" 16814 shlibpath_var=SHLIB_PATH 16815 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16817 soname_spec='${libname}${release}${shared_ext}$major' 16818 ;; 16819 esac 16820 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16821 postinstall_cmds='chmod 555 $lib' 16822 # or fails outright, so override atomically: 16823 install_override_mode=555 16824 ;; 16825 16826interix[3-9]*) 16827 version_type=linux # correct to gnu/linux during the next big refactor 16828 need_lib_prefix=no 16829 need_version=no 16830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16831 soname_spec='${libname}${release}${shared_ext}$major' 16832 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16833 shlibpath_var=LD_LIBRARY_PATH 16834 shlibpath_overrides_runpath=no 16835 hardcode_into_libs=yes 16836 ;; 16837 16838irix5* | irix6* | nonstopux*) 16839 case $host_os in 16840 nonstopux*) version_type=nonstopux ;; 16841 *) 16842 if test "$lt_cv_prog_gnu_ld" = yes; then 16843 version_type=linux # correct to gnu/linux during the next big refactor 16844 else 16845 version_type=irix 16846 fi ;; 16847 esac 16848 need_lib_prefix=no 16849 need_version=no 16850 soname_spec='${libname}${release}${shared_ext}$major' 16851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16852 case $host_os in 16853 irix5* | nonstopux*) 16854 libsuff= shlibsuff= 16855 ;; 16856 *) 16857 case $LD in # libtool.m4 will add one of these switches to LD 16858 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16859 libsuff= shlibsuff= libmagic=32-bit;; 16860 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16861 libsuff=32 shlibsuff=N32 libmagic=N32;; 16862 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16863 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16864 *) libsuff= shlibsuff= libmagic=never-match;; 16865 esac 16866 ;; 16867 esac 16868 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16869 shlibpath_overrides_runpath=no 16870 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16871 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16872 hardcode_into_libs=yes 16873 ;; 16874 16875# No shared lib support for Linux oldld, aout, or coff. 16876linux*oldld* | linux*aout* | linux*coff*) 16877 dynamic_linker=no 16878 ;; 16879 16880# This must be glibc/ELF. 16881linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16882 version_type=linux # correct to gnu/linux during the next big refactor 16883 need_lib_prefix=no 16884 need_version=no 16885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16886 soname_spec='${libname}${release}${shared_ext}$major' 16887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16888 shlibpath_var=LD_LIBRARY_PATH 16889 shlibpath_overrides_runpath=no 16890 16891 # Some binutils ld are patched to set DT_RUNPATH 16892 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16893 $as_echo_n "(cached) " >&6 16894else 16895 lt_cv_shlibpath_overrides_runpath=no 16896 save_LDFLAGS=$LDFLAGS 16897 save_libdir=$libdir 16898 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16899 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16901/* end confdefs.h. */ 16902 16903int 16904main () 16905{ 16906 16907 ; 16908 return 0; 16909} 16910_ACEOF 16911if ac_fn_cxx_try_link "$LINENO"; then : 16912 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16913 lt_cv_shlibpath_overrides_runpath=yes 16914fi 16915fi 16916rm -f core conftest.err conftest.$ac_objext \ 16917 conftest$ac_exeext conftest.$ac_ext 16918 LDFLAGS=$save_LDFLAGS 16919 libdir=$save_libdir 16920 16921fi 16922 16923 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16924 16925 # This implies no fast_install, which is unacceptable. 16926 # Some rework will be needed to allow for fast_install 16927 # before this can be enabled. 16928 hardcode_into_libs=yes 16929 16930 # Append ld.so.conf contents to the search path 16931 if test -f /etc/ld.so.conf; then 16932 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 16933 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16934 fi 16935 16936 # We used to test for /lib/ld.so.1 and disable shared libraries on 16937 # powerpc, because MkLinux only supported shared libraries with the 16938 # GNU dynamic linker. Since this was broken with cross compilers, 16939 # most powerpc-linux boxes support dynamic linking these days and 16940 # people can always --disable-shared, the test was removed, and we 16941 # assume the GNU/Linux dynamic linker is in use. 16942 dynamic_linker='GNU/Linux ld.so' 16943 ;; 16944 16945netbsdelf*-gnu) 16946 version_type=linux 16947 need_lib_prefix=no 16948 need_version=no 16949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16950 soname_spec='${libname}${release}${shared_ext}$major' 16951 shlibpath_var=LD_LIBRARY_PATH 16952 shlibpath_overrides_runpath=no 16953 hardcode_into_libs=yes 16954 dynamic_linker='NetBSD ld.elf_so' 16955 ;; 16956 16957netbsd*) 16958 version_type=sunos 16959 need_lib_prefix=no 16960 need_version=no 16961 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16964 dynamic_linker='NetBSD (a.out) ld.so' 16965 else 16966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16967 soname_spec='${libname}${release}${shared_ext}$major' 16968 dynamic_linker='NetBSD ld.elf_so' 16969 fi 16970 shlibpath_var=LD_LIBRARY_PATH 16971 shlibpath_overrides_runpath=yes 16972 hardcode_into_libs=yes 16973 ;; 16974 16975newsos6) 16976 version_type=linux # correct to gnu/linux during the next big refactor 16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16978 shlibpath_var=LD_LIBRARY_PATH 16979 shlibpath_overrides_runpath=yes 16980 ;; 16981 16982*nto* | *qnx*) 16983 version_type=qnx 16984 need_lib_prefix=no 16985 need_version=no 16986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16987 soname_spec='${libname}${release}${shared_ext}$major' 16988 shlibpath_var=LD_LIBRARY_PATH 16989 shlibpath_overrides_runpath=no 16990 hardcode_into_libs=yes 16991 dynamic_linker='ldqnx.so' 16992 ;; 16993 16994openbsd*) 16995 version_type=sunos 16996 sys_lib_dlsearch_path_spec="/usr/lib" 16997 need_lib_prefix=no 16998 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16999 case $host_os in 17000 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17001 *) need_version=no ;; 17002 esac 17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17005 shlibpath_var=LD_LIBRARY_PATH 17006 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17007 case $host_os in 17008 openbsd2.[89] | openbsd2.[89].*) 17009 shlibpath_overrides_runpath=no 17010 ;; 17011 *) 17012 shlibpath_overrides_runpath=yes 17013 ;; 17014 esac 17015 else 17016 shlibpath_overrides_runpath=yes 17017 fi 17018 ;; 17019 17020os2*) 17021 libname_spec='$name' 17022 shrext_cmds=".dll" 17023 need_lib_prefix=no 17024 library_names_spec='$libname${shared_ext} $libname.a' 17025 dynamic_linker='OS/2 ld.exe' 17026 shlibpath_var=LIBPATH 17027 ;; 17028 17029osf3* | osf4* | osf5*) 17030 version_type=osf 17031 need_lib_prefix=no 17032 need_version=no 17033 soname_spec='${libname}${release}${shared_ext}$major' 17034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17035 shlibpath_var=LD_LIBRARY_PATH 17036 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17037 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17038 ;; 17039 17040rdos*) 17041 dynamic_linker=no 17042 ;; 17043 17044solaris*) 17045 version_type=linux # correct to gnu/linux during the next big refactor 17046 need_lib_prefix=no 17047 need_version=no 17048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17049 soname_spec='${libname}${release}${shared_ext}$major' 17050 shlibpath_var=LD_LIBRARY_PATH 17051 shlibpath_overrides_runpath=yes 17052 hardcode_into_libs=yes 17053 # ldd complains unless libraries are executable 17054 postinstall_cmds='chmod +x $lib' 17055 ;; 17056 17057sunos4*) 17058 version_type=sunos 17059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17060 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17061 shlibpath_var=LD_LIBRARY_PATH 17062 shlibpath_overrides_runpath=yes 17063 if test "$with_gnu_ld" = yes; then 17064 need_lib_prefix=no 17065 fi 17066 need_version=yes 17067 ;; 17068 17069sysv4 | sysv4.3*) 17070 version_type=linux # correct to gnu/linux during the next big refactor 17071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17072 soname_spec='${libname}${release}${shared_ext}$major' 17073 shlibpath_var=LD_LIBRARY_PATH 17074 case $host_vendor in 17075 sni) 17076 shlibpath_overrides_runpath=no 17077 need_lib_prefix=no 17078 runpath_var=LD_RUN_PATH 17079 ;; 17080 siemens) 17081 need_lib_prefix=no 17082 ;; 17083 motorola) 17084 need_lib_prefix=no 17085 need_version=no 17086 shlibpath_overrides_runpath=no 17087 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17088 ;; 17089 esac 17090 ;; 17091 17092sysv4*MP*) 17093 if test -d /usr/nec ;then 17094 version_type=linux # correct to gnu/linux during the next big refactor 17095 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17096 soname_spec='$libname${shared_ext}.$major' 17097 shlibpath_var=LD_LIBRARY_PATH 17098 fi 17099 ;; 17100 17101sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17102 version_type=freebsd-elf 17103 need_lib_prefix=no 17104 need_version=no 17105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17106 soname_spec='${libname}${release}${shared_ext}$major' 17107 shlibpath_var=LD_LIBRARY_PATH 17108 shlibpath_overrides_runpath=yes 17109 hardcode_into_libs=yes 17110 if test "$with_gnu_ld" = yes; then 17111 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17112 else 17113 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17114 case $host_os in 17115 sco3.2v5*) 17116 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17117 ;; 17118 esac 17119 fi 17120 sys_lib_dlsearch_path_spec='/usr/lib' 17121 ;; 17122 17123tpf*) 17124 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17125 version_type=linux # correct to gnu/linux during the next big refactor 17126 need_lib_prefix=no 17127 need_version=no 17128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17129 shlibpath_var=LD_LIBRARY_PATH 17130 shlibpath_overrides_runpath=no 17131 hardcode_into_libs=yes 17132 ;; 17133 17134uts4*) 17135 version_type=linux # correct to gnu/linux during the next big refactor 17136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17137 soname_spec='${libname}${release}${shared_ext}$major' 17138 shlibpath_var=LD_LIBRARY_PATH 17139 ;; 17140 17141*) 17142 dynamic_linker=no 17143 ;; 17144esac 17145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17146$as_echo "$dynamic_linker" >&6; } 17147test "$dynamic_linker" = no && can_build_shared=no 17148 17149variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17150if test "$GCC" = yes; then 17151 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17152fi 17153 17154if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 17155 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 17156fi 17157if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 17158 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 17159fi 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17199$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17200hardcode_action_CXX= 17201if test -n "$hardcode_libdir_flag_spec_CXX" || 17202 test -n "$runpath_var_CXX" || 17203 test "X$hardcode_automatic_CXX" = "Xyes" ; then 17204 17205 # We can hardcode non-existent directories. 17206 if test "$hardcode_direct_CXX" != no && 17207 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17208 # have to relink, otherwise we might link with an installed library 17209 # when we should be linking with a yet-to-be-installed one 17210 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 17211 test "$hardcode_minus_L_CXX" != no; then 17212 # Linking always hardcodes the temporary library directory. 17213 hardcode_action_CXX=relink 17214 else 17215 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17216 hardcode_action_CXX=immediate 17217 fi 17218else 17219 # We cannot hardcode anything, or else we can only hardcode existing 17220 # directories. 17221 hardcode_action_CXX=unsupported 17222fi 17223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 17224$as_echo "$hardcode_action_CXX" >&6; } 17225 17226if test "$hardcode_action_CXX" = relink || 17227 test "$inherit_rpath_CXX" = yes; then 17228 # Fast installation is not supported 17229 enable_fast_install=no 17230elif test "$shlibpath_overrides_runpath" = yes || 17231 test "$enable_shared" = no; then 17232 # Fast installation is not necessary 17233 enable_fast_install=needless 17234fi 17235 17236 17237 17238 17239 17240 17241 17242 fi # test -n "$compiler" 17243 17244 CC=$lt_save_CC 17245 CFLAGS=$lt_save_CFLAGS 17246 LDCXX=$LD 17247 LD=$lt_save_LD 17248 GCC=$lt_save_GCC 17249 with_gnu_ld=$lt_save_with_gnu_ld 17250 lt_cv_path_LDCXX=$lt_cv_path_LD 17251 lt_cv_path_LD=$lt_save_path_LD 17252 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17253 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17254fi # test "$_lt_caught_CXX_error" != yes 17255 17256ac_ext=c 17257ac_cpp='$CPP $CPPFLAGS' 17258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17260ac_compiler_gnu=$ac_cv_c_compiler_gnu 17261 17262 17263ac_ext=cpp 17264ac_cpp='$CXXCPP $CPPFLAGS' 17265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17268 17269 17270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 17271$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 17272set x ${MAKE-make} 17273ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 17274if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 17275 $as_echo_n "(cached) " >&6 17276else 17277 cat >conftest.make <<\_ACEOF 17278SHELL = /bin/sh 17279all: 17280 @echo '@@@%%%=$(MAKE)=@@@%%%' 17281_ACEOF 17282# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 17283case `${MAKE-make} -f conftest.make 2>/dev/null` in 17284 *@@@%%%=?*=@@@%%%*) 17285 eval ac_cv_prog_make_${ac_make}_set=yes;; 17286 *) 17287 eval ac_cv_prog_make_${ac_make}_set=no;; 17288esac 17289rm -f conftest.make 17290fi 17291if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17293$as_echo "yes" >&6; } 17294 SET_MAKE= 17295else 17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17297$as_echo "no" >&6; } 17298 SET_MAKE="MAKE=${MAKE-make}" 17299fi 17300 17301 17302 17303 17304 17305 17306 for ac_header in $ac_header_list 17307do : 17308 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17309ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 17310" 17311if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17312 cat >>confdefs.h <<_ACEOF 17313#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17314_ACEOF 17315 17316fi 17317 17318done 17319 17320 17321 17322 17323 17324 17325 17326 17327for ac_func in getpagesize 17328do : 17329 ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 17330if test "x$ac_cv_func_getpagesize" = xyes; then : 17331 cat >>confdefs.h <<_ACEOF 17332#define HAVE_GETPAGESIZE 1 17333_ACEOF 17334 17335fi 17336done 17337 17338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 17339$as_echo_n "checking for working mmap... " >&6; } 17340if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 17341 $as_echo_n "(cached) " >&6 17342else 17343 if test "$cross_compiling" = yes; then : 17344 ac_cv_func_mmap_fixed_mapped=no 17345else 17346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17347/* end confdefs.h. */ 17348$ac_includes_default 17349/* malloc might have been renamed as rpl_malloc. */ 17350#undef malloc 17351 17352/* Thanks to Mike Haertel and Jim Avera for this test. 17353 Here is a matrix of mmap possibilities: 17354 mmap private not fixed 17355 mmap private fixed at somewhere currently unmapped 17356 mmap private fixed at somewhere already mapped 17357 mmap shared not fixed 17358 mmap shared fixed at somewhere currently unmapped 17359 mmap shared fixed at somewhere already mapped 17360 For private mappings, we should verify that changes cannot be read() 17361 back from the file, nor mmap's back from the file at a different 17362 address. (There have been systems where private was not correctly 17363 implemented like the infamous i386 svr4.0, and systems where the 17364 VM page cache was not coherent with the file system buffer cache 17365 like early versions of FreeBSD and possibly contemporary NetBSD.) 17366 For shared mappings, we should conversely verify that changes get 17367 propagated back to all the places they're supposed to be. 17368 17369 Grep wants private fixed already mapped. 17370 The main things grep needs to know about mmap are: 17371 * does it exist and is it safe to write into the mmap'd area 17372 * how to use it (BSD variants) */ 17373 17374#include <fcntl.h> 17375#include <sys/mman.h> 17376 17377#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 17378char *malloc (); 17379#endif 17380 17381/* This mess was copied from the GNU getpagesize.h. */ 17382#ifndef HAVE_GETPAGESIZE 17383# ifdef _SC_PAGESIZE 17384# define getpagesize() sysconf(_SC_PAGESIZE) 17385# else /* no _SC_PAGESIZE */ 17386# ifdef HAVE_SYS_PARAM_H 17387# include <sys/param.h> 17388# ifdef EXEC_PAGESIZE 17389# define getpagesize() EXEC_PAGESIZE 17390# else /* no EXEC_PAGESIZE */ 17391# ifdef NBPG 17392# define getpagesize() NBPG * CLSIZE 17393# ifndef CLSIZE 17394# define CLSIZE 1 17395# endif /* no CLSIZE */ 17396# else /* no NBPG */ 17397# ifdef NBPC 17398# define getpagesize() NBPC 17399# else /* no NBPC */ 17400# ifdef PAGESIZE 17401# define getpagesize() PAGESIZE 17402# endif /* PAGESIZE */ 17403# endif /* no NBPC */ 17404# endif /* no NBPG */ 17405# endif /* no EXEC_PAGESIZE */ 17406# else /* no HAVE_SYS_PARAM_H */ 17407# define getpagesize() 8192 /* punt totally */ 17408# endif /* no HAVE_SYS_PARAM_H */ 17409# endif /* no _SC_PAGESIZE */ 17410 17411#endif /* no HAVE_GETPAGESIZE */ 17412 17413int 17414main () 17415{ 17416 char *data, *data2, *data3; 17417 const char *cdata2; 17418 int i, pagesize; 17419 int fd, fd2; 17420 17421 pagesize = getpagesize (); 17422 17423 /* First, make a file with some known garbage in it. */ 17424 data = (char *) malloc (pagesize); 17425 if (!data) 17426 return 1; 17427 for (i = 0; i < pagesize; ++i) 17428 *(data + i) = rand (); 17429 umask (0); 17430 fd = creat ("conftest.mmap", 0600); 17431 if (fd < 0) 17432 return 2; 17433 if (write (fd, data, pagesize) != pagesize) 17434 return 3; 17435 close (fd); 17436 17437 /* Next, check that the tail of a page is zero-filled. File must have 17438 non-zero length, otherwise we risk SIGBUS for entire page. */ 17439 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 17440 if (fd2 < 0) 17441 return 4; 17442 cdata2 = ""; 17443 if (write (fd2, cdata2, 1) != 1) 17444 return 5; 17445 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 17446 if (data2 == MAP_FAILED) 17447 return 6; 17448 for (i = 0; i < pagesize; ++i) 17449 if (*(data2 + i)) 17450 return 7; 17451 close (fd2); 17452 if (munmap (data2, pagesize)) 17453 return 8; 17454 17455 /* Next, try to mmap the file at a fixed address which already has 17456 something else allocated at it. If we can, also make sure that 17457 we see the same garbage. */ 17458 fd = open ("conftest.mmap", O_RDWR); 17459 if (fd < 0) 17460 return 9; 17461 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 17462 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 17463 return 10; 17464 for (i = 0; i < pagesize; ++i) 17465 if (*(data + i) != *(data2 + i)) 17466 return 11; 17467 17468 /* Finally, make sure that changes to the mapped area do not 17469 percolate back to the file as seen by read(). (This is a bug on 17470 some variants of i386 svr4.0.) */ 17471 for (i = 0; i < pagesize; ++i) 17472 *(data2 + i) = *(data2 + i) + 1; 17473 data3 = (char *) malloc (pagesize); 17474 if (!data3) 17475 return 12; 17476 if (read (fd, data3, pagesize) != pagesize) 17477 return 13; 17478 for (i = 0; i < pagesize; ++i) 17479 if (*(data + i) != *(data3 + i)) 17480 return 14; 17481 close (fd); 17482 return 0; 17483} 17484_ACEOF 17485if ac_fn_cxx_try_run "$LINENO"; then : 17486 ac_cv_func_mmap_fixed_mapped=yes 17487else 17488 ac_cv_func_mmap_fixed_mapped=no 17489fi 17490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17491 conftest.$ac_objext conftest.beam conftest.$ac_ext 17492fi 17493 17494fi 17495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 17496$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 17497if test $ac_cv_func_mmap_fixed_mapped = yes; then 17498 17499$as_echo "#define HAVE_MMAP 1" >>confdefs.h 17500 17501fi 17502rm -f conftest.mmap conftest.txt 17503 17504ac_fn_cxx_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 17505if test "x$ac_cv_func_gethostbyname_r" = xyes; then : 17506 17507$as_echo "#define HAVE_GETHOSTBYNAME_R /**/" >>confdefs.h 17508 17509fi 17510 17511ac_fn_cxx_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" 17512if test "x$ac_cv_func_memrchr" = xyes; then : 17513 17514$as_echo "#define HAVE_MEMRCHR /**/" >>confdefs.h 17515 17516fi 17517 17518 17519 17520GETTEXT_PACKAGE=stardict 17521 17522 17523cat >>confdefs.h <<_ACEOF 17524#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" 17525_ACEOF 17526 17527 17528 17529 for ac_header in locale.h 17530do : 17531 ac_fn_cxx_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 17532if test "x$ac_cv_header_locale_h" = xyes; then : 17533 cat >>confdefs.h <<_ACEOF 17534#define HAVE_LOCALE_H 1 17535_ACEOF 17536 17537fi 17538 17539done 17540 17541 if test $ac_cv_header_locale_h = yes; then 17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 17543$as_echo_n "checking for LC_MESSAGES... " >&6; } 17544if ${am_cv_val_LC_MESSAGES+:} false; then : 17545 $as_echo_n "(cached) " >&6 17546else 17547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17548/* end confdefs.h. */ 17549#include <locale.h> 17550int 17551main () 17552{ 17553return LC_MESSAGES 17554 ; 17555 return 0; 17556} 17557_ACEOF 17558if ac_fn_cxx_try_link "$LINENO"; then : 17559 am_cv_val_LC_MESSAGES=yes 17560else 17561 am_cv_val_LC_MESSAGES=no 17562fi 17563rm -f core conftest.err conftest.$ac_objext \ 17564 conftest$ac_exeext conftest.$ac_ext 17565fi 17566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 17567$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 17568 if test $am_cv_val_LC_MESSAGES = yes; then 17569 17570$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 17571 17572 fi 17573 fi 17574 USE_NLS=yes 17575 17576 17577 gt_cv_have_gettext=no 17578 17579 CATOBJEXT=NONE 17580 XGETTEXT=: 17581 INTLLIBS= 17582 17583 ac_fn_cxx_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" 17584if test "x$ac_cv_header_libintl_h" = xyes; then : 17585 gt_cv_func_dgettext_libintl="no" 17586 libintl_extra_libs="" 17587 17588 # 17589 # First check in libc 17590 # 17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5 17592$as_echo_n "checking for ngettext in libc... " >&6; } 17593if ${gt_cv_func_ngettext_libc+:} false; then : 17594 $as_echo_n "(cached) " >&6 17595else 17596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17597/* end confdefs.h. */ 17598 17599#include <libintl.h> 17600 17601int 17602main () 17603{ 17604return !ngettext ("","", 1) 17605 ; 17606 return 0; 17607} 17608_ACEOF 17609if ac_fn_cxx_try_link "$LINENO"; then : 17610 gt_cv_func_ngettext_libc=yes 17611else 17612 gt_cv_func_ngettext_libc=no 17613fi 17614rm -f core conftest.err conftest.$ac_objext \ 17615 conftest$ac_exeext conftest.$ac_ext 17616 17617fi 17618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5 17619$as_echo "$gt_cv_func_ngettext_libc" >&6; } 17620 17621 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 17622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5 17623$as_echo_n "checking for dgettext in libc... " >&6; } 17624if ${gt_cv_func_dgettext_libc+:} false; then : 17625 $as_echo_n "(cached) " >&6 17626else 17627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17628/* end confdefs.h. */ 17629 17630#include <libintl.h> 17631 17632int 17633main () 17634{ 17635return !dgettext ("","") 17636 ; 17637 return 0; 17638} 17639_ACEOF 17640if ac_fn_cxx_try_link "$LINENO"; then : 17641 gt_cv_func_dgettext_libc=yes 17642else 17643 gt_cv_func_dgettext_libc=no 17644fi 17645rm -f core conftest.err conftest.$ac_objext \ 17646 conftest$ac_exeext conftest.$ac_ext 17647 17648fi 17649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5 17650$as_echo "$gt_cv_func_dgettext_libc" >&6; } 17651 fi 17652 17653 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 17654 for ac_func in bind_textdomain_codeset 17655do : 17656 ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 17657if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 17658 cat >>confdefs.h <<_ACEOF 17659#define HAVE_BIND_TEXTDOMAIN_CODESET 1 17660_ACEOF 17661 17662fi 17663done 17664 17665 fi 17666 17667 # 17668 # If we don't have everything we want, check in libintl 17669 # 17670 if test "$gt_cv_func_dgettext_libc" != "yes" \ 17671 || test "$gt_cv_func_ngettext_libc" != "yes" \ 17672 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 17673 17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 17675$as_echo_n "checking for bindtextdomain in -lintl... " >&6; } 17676if ${ac_cv_lib_intl_bindtextdomain+:} false; then : 17677 $as_echo_n "(cached) " >&6 17678else 17679 ac_check_lib_save_LIBS=$LIBS 17680LIBS="-lintl $LIBS" 17681cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17682/* end confdefs.h. */ 17683 17684/* Override any GCC internal prototype to avoid an error. 17685 Use char because int might match the return type of a GCC 17686 builtin and then its argument prototype would still apply. */ 17687#ifdef __cplusplus 17688extern "C" 17689#endif 17690char bindtextdomain (); 17691int 17692main () 17693{ 17694return bindtextdomain (); 17695 ; 17696 return 0; 17697} 17698_ACEOF 17699if ac_fn_cxx_try_link "$LINENO"; then : 17700 ac_cv_lib_intl_bindtextdomain=yes 17701else 17702 ac_cv_lib_intl_bindtextdomain=no 17703fi 17704rm -f core conftest.err conftest.$ac_objext \ 17705 conftest$ac_exeext conftest.$ac_ext 17706LIBS=$ac_check_lib_save_LIBS 17707fi 17708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 17709$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } 17710if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then : 17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 17712$as_echo_n "checking for ngettext in -lintl... " >&6; } 17713if ${ac_cv_lib_intl_ngettext+:} false; then : 17714 $as_echo_n "(cached) " >&6 17715else 17716 ac_check_lib_save_LIBS=$LIBS 17717LIBS="-lintl $LIBS" 17718cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17719/* end confdefs.h. */ 17720 17721/* Override any GCC internal prototype to avoid an error. 17722 Use char because int might match the return type of a GCC 17723 builtin and then its argument prototype would still apply. */ 17724#ifdef __cplusplus 17725extern "C" 17726#endif 17727char ngettext (); 17728int 17729main () 17730{ 17731return ngettext (); 17732 ; 17733 return 0; 17734} 17735_ACEOF 17736if ac_fn_cxx_try_link "$LINENO"; then : 17737 ac_cv_lib_intl_ngettext=yes 17738else 17739 ac_cv_lib_intl_ngettext=no 17740fi 17741rm -f core conftest.err conftest.$ac_objext \ 17742 conftest$ac_exeext conftest.$ac_ext 17743LIBS=$ac_check_lib_save_LIBS 17744fi 17745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 17746$as_echo "$ac_cv_lib_intl_ngettext" >&6; } 17747if test "x$ac_cv_lib_intl_ngettext" = xyes; then : 17748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 17749$as_echo_n "checking for dgettext in -lintl... " >&6; } 17750if ${ac_cv_lib_intl_dgettext+:} false; then : 17751 $as_echo_n "(cached) " >&6 17752else 17753 ac_check_lib_save_LIBS=$LIBS 17754LIBS="-lintl $LIBS" 17755cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17756/* end confdefs.h. */ 17757 17758/* Override any GCC internal prototype to avoid an error. 17759 Use char because int might match the return type of a GCC 17760 builtin and then its argument prototype would still apply. */ 17761#ifdef __cplusplus 17762extern "C" 17763#endif 17764char dgettext (); 17765int 17766main () 17767{ 17768return dgettext (); 17769 ; 17770 return 0; 17771} 17772_ACEOF 17773if ac_fn_cxx_try_link "$LINENO"; then : 17774 ac_cv_lib_intl_dgettext=yes 17775else 17776 ac_cv_lib_intl_dgettext=no 17777fi 17778rm -f core conftest.err conftest.$ac_objext \ 17779 conftest$ac_exeext conftest.$ac_ext 17780LIBS=$ac_check_lib_save_LIBS 17781fi 17782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 17783$as_echo "$ac_cv_lib_intl_dgettext" >&6; } 17784if test "x$ac_cv_lib_intl_dgettext" = xyes; then : 17785 gt_cv_func_dgettext_libintl=yes 17786fi 17787 17788fi 17789 17790fi 17791 17792 17793 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 17794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5 17795$as_echo_n "checking if -liconv is needed to use gettext... " >&6; } 17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17797$as_echo "" >&6; } 17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 17799$as_echo_n "checking for ngettext in -lintl... " >&6; } 17800if ${ac_cv_lib_intl_ngettext+:} false; then : 17801 $as_echo_n "(cached) " >&6 17802else 17803 ac_check_lib_save_LIBS=$LIBS 17804LIBS="-lintl -liconv $LIBS" 17805cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17806/* end confdefs.h. */ 17807 17808/* Override any GCC internal prototype to avoid an error. 17809 Use char because int might match the return type of a GCC 17810 builtin and then its argument prototype would still apply. */ 17811#ifdef __cplusplus 17812extern "C" 17813#endif 17814char ngettext (); 17815int 17816main () 17817{ 17818return ngettext (); 17819 ; 17820 return 0; 17821} 17822_ACEOF 17823if ac_fn_cxx_try_link "$LINENO"; then : 17824 ac_cv_lib_intl_ngettext=yes 17825else 17826 ac_cv_lib_intl_ngettext=no 17827fi 17828rm -f core conftest.err conftest.$ac_objext \ 17829 conftest$ac_exeext conftest.$ac_ext 17830LIBS=$ac_check_lib_save_LIBS 17831fi 17832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 17833$as_echo "$ac_cv_lib_intl_ngettext" >&6; } 17834if test "x$ac_cv_lib_intl_ngettext" = xyes; then : 17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5 17836$as_echo_n "checking for dcgettext in -lintl... " >&6; } 17837if ${ac_cv_lib_intl_dcgettext+:} false; then : 17838 $as_echo_n "(cached) " >&6 17839else 17840 ac_check_lib_save_LIBS=$LIBS 17841LIBS="-lintl -liconv $LIBS" 17842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17843/* end confdefs.h. */ 17844 17845/* Override any GCC internal prototype to avoid an error. 17846 Use char because int might match the return type of a GCC 17847 builtin and then its argument prototype would still apply. */ 17848#ifdef __cplusplus 17849extern "C" 17850#endif 17851char dcgettext (); 17852int 17853main () 17854{ 17855return dcgettext (); 17856 ; 17857 return 0; 17858} 17859_ACEOF 17860if ac_fn_cxx_try_link "$LINENO"; then : 17861 ac_cv_lib_intl_dcgettext=yes 17862else 17863 ac_cv_lib_intl_dcgettext=no 17864fi 17865rm -f core conftest.err conftest.$ac_objext \ 17866 conftest$ac_exeext conftest.$ac_ext 17867LIBS=$ac_check_lib_save_LIBS 17868fi 17869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5 17870$as_echo "$ac_cv_lib_intl_dcgettext" >&6; } 17871if test "x$ac_cv_lib_intl_dcgettext" = xyes; then : 17872 gt_cv_func_dgettext_libintl=yes 17873 libintl_extra_libs=-liconv 17874else 17875 : 17876fi 17877 17878else 17879 : 17880fi 17881 17882 fi 17883 17884 # 17885 # If we found libintl, then check in it for bind_textdomain_codeset(); 17886 # we'll prefer libc if neither have bind_textdomain_codeset(), 17887 # and both have dgettext and ngettext 17888 # 17889 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 17890 glib_save_LIBS="$LIBS" 17891 LIBS="$LIBS -lintl $libintl_extra_libs" 17892 unset ac_cv_func_bind_textdomain_codeset 17893 for ac_func in bind_textdomain_codeset 17894do : 17895 ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 17896if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 17897 cat >>confdefs.h <<_ACEOF 17898#define HAVE_BIND_TEXTDOMAIN_CODESET 1 17899_ACEOF 17900 17901fi 17902done 17903 17904 LIBS="$glib_save_LIBS" 17905 17906 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 17907 gt_cv_func_dgettext_libc=no 17908 else 17909 if test "$gt_cv_func_dgettext_libc" = "yes" \ 17910 && test "$gt_cv_func_ngettext_libc" = "yes"; then 17911 gt_cv_func_dgettext_libintl=no 17912 fi 17913 fi 17914 fi 17915 fi 17916 17917 if test "$gt_cv_func_dgettext_libc" = "yes" \ 17918 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 17919 gt_cv_have_gettext=yes 17920 fi 17921 17922 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 17923 INTLLIBS="-lintl $libintl_extra_libs" 17924 fi 17925 17926 if test "$gt_cv_have_gettext" = "yes"; then 17927 17928$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 17929 17930 # Extract the first word of "msgfmt", so it can be a program name with args. 17931set dummy msgfmt; ac_word=$2 17932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17933$as_echo_n "checking for $ac_word... " >&6; } 17934if ${ac_cv_path_MSGFMT+:} false; then : 17935 $as_echo_n "(cached) " >&6 17936else 17937 case "$MSGFMT" in 17938 /*) 17939 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 17940 ;; 17941 *) 17942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 17943 for ac_dir in $PATH; do 17944 test -z "$ac_dir" && ac_dir=. 17945 if test -f $ac_dir/$ac_word; then 17946 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 17947 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 17948 break 17949 fi 17950 fi 17951 done 17952 IFS="$ac_save_ifs" 17953 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 17954 ;; 17955esac 17956fi 17957MSGFMT="$ac_cv_path_MSGFMT" 17958if test "$MSGFMT" != "no"; then 17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 17960$as_echo "$MSGFMT" >&6; } 17961else 17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17963$as_echo "no" >&6; } 17964fi 17965 if test "$MSGFMT" != "no"; then 17966 glib_save_LIBS="$LIBS" 17967 LIBS="$LIBS $INTLLIBS" 17968 for ac_func in dcgettext 17969do : 17970 ac_fn_cxx_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext" 17971if test "x$ac_cv_func_dcgettext" = xyes; then : 17972 cat >>confdefs.h <<_ACEOF 17973#define HAVE_DCGETTEXT 1 17974_ACEOF 17975 17976fi 17977done 17978 17979 MSGFMT_OPTS= 17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5 17981$as_echo_n "checking if msgfmt accepts -c... " >&6; } 17982 cat >conftest.foo <<_ACEOF 17983 17984msgid "" 17985msgstr "" 17986"Content-Type: text/plain; charset=UTF-8\n" 17987"Project-Id-Version: test 1.0\n" 17988"PO-Revision-Date: 2007-02-15 12:01+0100\n" 17989"Last-Translator: test <foo@bar.xx>\n" 17990"Language-Team: C <LL@li.org>\n" 17991"MIME-Version: 1.0\n" 17992"Content-Transfer-Encoding: 8bit\n" 17993 17994_ACEOF 17995if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5 17996 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5 17997 ac_status=$? 17998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17999 test $ac_status = 0; }; then 18000 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18001$as_echo "yes" >&6; } 18002else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18003$as_echo "no" >&6; } 18004echo "$as_me: failed input was:" >&5 18005sed 's/^/| /' conftest.foo >&5 18006fi 18007 18008 # Extract the first word of "gmsgfmt", so it can be a program name with args. 18009set dummy gmsgfmt; ac_word=$2 18010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18011$as_echo_n "checking for $ac_word... " >&6; } 18012if ${ac_cv_path_GMSGFMT+:} false; then : 18013 $as_echo_n "(cached) " >&6 18014else 18015 case $GMSGFMT in 18016 [\\/]* | ?:[\\/]*) 18017 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 18018 ;; 18019 *) 18020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18021for as_dir in $PATH 18022do 18023 IFS=$as_save_IFS 18024 test -z "$as_dir" && as_dir=. 18025 for ac_exec_ext in '' $ac_executable_extensions; do 18026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18027 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 18028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18029 break 2 18030 fi 18031done 18032 done 18033IFS=$as_save_IFS 18034 18035 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 18036 ;; 18037esac 18038fi 18039GMSGFMT=$ac_cv_path_GMSGFMT 18040if test -n "$GMSGFMT"; then 18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 18042$as_echo "$GMSGFMT" >&6; } 18043else 18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18045$as_echo "no" >&6; } 18046fi 18047 18048 18049 # Extract the first word of "xgettext", so it can be a program name with args. 18050set dummy xgettext; ac_word=$2 18051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18052$as_echo_n "checking for $ac_word... " >&6; } 18053if ${ac_cv_path_XGETTEXT+:} false; then : 18054 $as_echo_n "(cached) " >&6 18055else 18056 case "$XGETTEXT" in 18057 /*) 18058 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 18059 ;; 18060 *) 18061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 18062 for ac_dir in $PATH; do 18063 test -z "$ac_dir" && ac_dir=. 18064 if test -f $ac_dir/$ac_word; then 18065 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 18066 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 18067 break 18068 fi 18069 fi 18070 done 18071 IFS="$ac_save_ifs" 18072 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 18073 ;; 18074esac 18075fi 18076XGETTEXT="$ac_cv_path_XGETTEXT" 18077if test "$XGETTEXT" != ":"; then 18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 18079$as_echo "$XGETTEXT" >&6; } 18080else 18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18082$as_echo "no" >&6; } 18083fi 18084 18085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18086/* end confdefs.h. */ 18087 18088int 18089main () 18090{ 18091extern int _nl_msg_cat_cntr; 18092 return _nl_msg_cat_cntr 18093 ; 18094 return 0; 18095} 18096_ACEOF 18097if ac_fn_cxx_try_link "$LINENO"; then : 18098 CATOBJEXT=.gmo 18099 DATADIRNAME=share 18100else 18101 case $host in 18102 *-*-solaris*) 18103 ac_fn_cxx_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 18104if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 18105 CATOBJEXT=.gmo 18106 DATADIRNAME=share 18107else 18108 CATOBJEXT=.mo 18109 DATADIRNAME=lib 18110fi 18111 18112 ;; 18113 *-*-openbsd*) 18114 CATOBJEXT=.mo 18115 DATADIRNAME=share 18116 ;; 18117 *) 18118 CATOBJEXT=.mo 18119 DATADIRNAME=lib 18120 ;; 18121 esac 18122fi 18123rm -f core conftest.err conftest.$ac_objext \ 18124 conftest$ac_exeext conftest.$ac_ext 18125 LIBS="$glib_save_LIBS" 18126 INSTOBJEXT=.mo 18127 else 18128 gt_cv_have_gettext=no 18129 fi 18130 fi 18131 18132fi 18133 18134 18135 18136 if test "$gt_cv_have_gettext" = "yes" ; then 18137 18138$as_echo "#define ENABLE_NLS 1" >>confdefs.h 18139 18140 fi 18141 18142 if test "$XGETTEXT" != ":"; then 18143 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 18144 : ; 18145 else 18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 18147$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 18148 XGETTEXT=":" 18149 fi 18150 fi 18151 18152 # We need to process the po/ directory. 18153 POSUB=po 18154 18155 ac_config_commands="$ac_config_commands default-1" 18156 18157 18158 for lang in $ALL_LINGUAS; do 18159 GMOFILES="$GMOFILES $lang.gmo" 18160 POFILES="$POFILES $lang.po" 18161 done 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 if test "$gt_cv_have_gettext" = "yes"; then 18176 if test "x$ALL_LINGUAS" = "x"; then 18177 LINGUAS= 18178 else 18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 18180$as_echo_n "checking for catalogs to be installed... " >&6; } 18181 NEW_LINGUAS= 18182 for presentlang in $ALL_LINGUAS; do 18183 useit=no 18184 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 18185 desiredlanguages="$LINGUAS" 18186 else 18187 desiredlanguages="$ALL_LINGUAS" 18188 fi 18189 for desiredlang in $desiredlanguages; do 18190 # Use the presentlang catalog if desiredlang is 18191 # a. equal to presentlang, or 18192 # b. a variant of presentlang (because in this case, 18193 # presentlang can be used as a fallback for messages 18194 # which are not translated in the desiredlang catalog). 18195 case "$desiredlang" in 18196 "$presentlang"*) useit=yes;; 18197 esac 18198 done 18199 if test $useit = yes; then 18200 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 18201 fi 18202 done 18203 LINGUAS=$NEW_LINGUAS 18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 18205$as_echo "$LINGUAS" >&6; } 18206 fi 18207 18208 if test -n "$LINGUAS"; then 18209 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 18210 fi 18211 fi 18212 18213 MKINSTALLDIRS= 18214 if test -n "$ac_aux_dir"; then 18215 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 18216 fi 18217 if test -z "$MKINSTALLDIRS"; then 18218 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 18219 fi 18220 18221 18222 test -d po || mkdir po 18223 if test "x$srcdir" != "x."; then 18224 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 18225 posrcprefix="$srcdir/" 18226 else 18227 posrcprefix="../$srcdir/" 18228 fi 18229 else 18230 posrcprefix="../" 18231 fi 18232 rm -f po/POTFILES 18233 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 18234 < $srcdir/po/POTFILES.in > po/POTFILES 18235 18236 18237 18238 18239ENCHANT_REQUIRED=1.2.0 18240# Check whether --enable-spell was given. 18241if test "${enable_spell+set}" = set; then : 18242 enableval=$enable_spell; enable_enchant=$enableval 18243else 18244 enable_enchant=yes 18245fi 18246 18247 18248if test "x$enable_enchant" = "xyes" ; then 18249 18250pkg_failed=no 18251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENCHANT" >&5 18252$as_echo_n "checking for ENCHANT... " >&6; } 18253 18254if test -n "$ENCHANT_CFLAGS"; then 18255 pkg_cv_ENCHANT_CFLAGS="$ENCHANT_CFLAGS" 18256 elif test -n "$PKG_CONFIG"; then 18257 if test -n "$PKG_CONFIG" && \ 18258 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"enchant >= \$ENCHANT_REQUIRED\""; } >&5 18259 ($PKG_CONFIG --exists --print-errors "enchant >= $ENCHANT_REQUIRED") 2>&5 18260 ac_status=$? 18261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18262 test $ac_status = 0; }; then 18263 pkg_cv_ENCHANT_CFLAGS=`$PKG_CONFIG --cflags "enchant >= $ENCHANT_REQUIRED" 2>/dev/null` 18264 test "x$?" != "x0" && pkg_failed=yes 18265else 18266 pkg_failed=yes 18267fi 18268 else 18269 pkg_failed=untried 18270fi 18271if test -n "$ENCHANT_LIBS"; then 18272 pkg_cv_ENCHANT_LIBS="$ENCHANT_LIBS" 18273 elif test -n "$PKG_CONFIG"; then 18274 if test -n "$PKG_CONFIG" && \ 18275 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"enchant >= \$ENCHANT_REQUIRED\""; } >&5 18276 ($PKG_CONFIG --exists --print-errors "enchant >= $ENCHANT_REQUIRED") 2>&5 18277 ac_status=$? 18278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18279 test $ac_status = 0; }; then 18280 pkg_cv_ENCHANT_LIBS=`$PKG_CONFIG --libs "enchant >= $ENCHANT_REQUIRED" 2>/dev/null` 18281 test "x$?" != "x0" && pkg_failed=yes 18282else 18283 pkg_failed=yes 18284fi 18285 else 18286 pkg_failed=untried 18287fi 18288 18289 18290 18291if test $pkg_failed = yes; then 18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18293$as_echo "no" >&6; } 18294 18295if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18296 _pkg_short_errors_supported=yes 18297else 18298 _pkg_short_errors_supported=no 18299fi 18300 if test $_pkg_short_errors_supported = yes; then 18301 ENCHANT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "enchant >= $ENCHANT_REQUIRED" 2>&1` 18302 else 18303 ENCHANT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "enchant >= $ENCHANT_REQUIRED" 2>&1` 18304 fi 18305 # Put the nasty error message in config.log where it belongs 18306 echo "$ENCHANT_PKG_ERRORS" >&5 18307 18308 have_enchant=no 18309elif test $pkg_failed = untried; then 18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18311$as_echo "no" >&6; } 18312 have_enchant=no 18313else 18314 ENCHANT_CFLAGS=$pkg_cv_ENCHANT_CFLAGS 18315 ENCHANT_LIBS=$pkg_cv_ENCHANT_LIBS 18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18317$as_echo "yes" >&6; } 18318 \ 18319 have_enchant=yes 18320fi 18321 if test "x$have_enchant" = "xyes"; then 18322 ENCHANT_CFLAGS="${ENCHANT_CFLAGS}" 18323 ENCHANT_LIBS="${ENCHANT_LIBS}" 18324 SPELL_PLUGIN_DIR="stardict-spell-plugin" 18325 else 18326 as_fn_error $? "Enchant library not found or too old. Use --disable-spell to build without spell plugin." "$LINENO" 5 18327 fi 18328else 18329 ENCHANT_CFLAGS= 18330 ENCHANT_LIBS= 18331 SPELL_PLUGIN_DIR= 18332fi 18333 18334 18335 18336 18337 18338 18339# Check whether --enable-gucharmap was given. 18340if test "${enable_gucharmap+set}" = set; then : 18341 enableval=$enable_gucharmap; enable_gucharmap=$enableval 18342else 18343 enable_gucharmap=yes 18344fi 18345 18346 18347if test "x$enable_gucharmap" = "xyes" ; then 18348 18349pkg_failed=no 18350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUCHARMAP" >&5 18351$as_echo_n "checking for GUCHARMAP... " >&6; } 18352 18353if test -n "$GUCHARMAP_CFLAGS"; then 18354 pkg_cv_GUCHARMAP_CFLAGS="$GUCHARMAP_CFLAGS" 18355 elif test -n "$PKG_CONFIG"; then 18356 if test -n "$PKG_CONFIG" && \ 18357 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gucharmap-2\""; } >&5 18358 ($PKG_CONFIG --exists --print-errors "gucharmap-2") 2>&5 18359 ac_status=$? 18360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18361 test $ac_status = 0; }; then 18362 pkg_cv_GUCHARMAP_CFLAGS=`$PKG_CONFIG --cflags "gucharmap-2" 2>/dev/null` 18363 test "x$?" != "x0" && pkg_failed=yes 18364else 18365 pkg_failed=yes 18366fi 18367 else 18368 pkg_failed=untried 18369fi 18370if test -n "$GUCHARMAP_LIBS"; then 18371 pkg_cv_GUCHARMAP_LIBS="$GUCHARMAP_LIBS" 18372 elif test -n "$PKG_CONFIG"; then 18373 if test -n "$PKG_CONFIG" && \ 18374 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gucharmap-2\""; } >&5 18375 ($PKG_CONFIG --exists --print-errors "gucharmap-2") 2>&5 18376 ac_status=$? 18377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18378 test $ac_status = 0; }; then 18379 pkg_cv_GUCHARMAP_LIBS=`$PKG_CONFIG --libs "gucharmap-2" 2>/dev/null` 18380 test "x$?" != "x0" && pkg_failed=yes 18381else 18382 pkg_failed=yes 18383fi 18384 else 18385 pkg_failed=untried 18386fi 18387 18388 18389 18390if test $pkg_failed = yes; then 18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18392$as_echo "no" >&6; } 18393 18394if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18395 _pkg_short_errors_supported=yes 18396else 18397 _pkg_short_errors_supported=no 18398fi 18399 if test $_pkg_short_errors_supported = yes; then 18400 GUCHARMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gucharmap-2" 2>&1` 18401 else 18402 GUCHARMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gucharmap-2" 2>&1` 18403 fi 18404 # Put the nasty error message in config.log where it belongs 18405 echo "$GUCHARMAP_PKG_ERRORS" >&5 18406 18407 have_gucharmap=no 18408elif test $pkg_failed = untried; then 18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18410$as_echo "no" >&6; } 18411 have_gucharmap=no 18412else 18413 GUCHARMAP_CFLAGS=$pkg_cv_GUCHARMAP_CFLAGS 18414 GUCHARMAP_LIBS=$pkg_cv_GUCHARMAP_LIBS 18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18416$as_echo "yes" >&6; } 18417 have_gucharmap=yes 18418fi 18419 if test "x$have_gucharmap" = "xyes"; then 18420 GUCHARMAP_CFLAGS="${GUCHARMAP_CFLAGS}" 18421 GUCHARMAP_LIBS="${GUCHARMAP_LIBS}" 18422 GUCHARMAP_PLUGIN_DIR="stardict-gucharmap-plugin" 18423 else 18424 as_fn_error $? "Gucharmap library not found or too old. Use --disable-gucharmap to build without gucharmap plugin." "$LINENO" 5 18425 fi 18426else 18427 GUCHARMAP_CFLAGS= 18428 GUCHARMAP_LIBS= 18429 GUCHARMAP_PLUGIN_DIR= 18430fi 18431 18432 18433 18434 18435 18436 18437# Check whether --enable-festival was given. 18438if test "${enable_festival+set}" = set; then : 18439 enableval=$enable_festival; enable_festival=$enableval 18440else 18441 enable_festival=yes 18442fi 18443 18444 18445if test "x$enable_festival" = "xyes" ; then 18446 CPPFLAGS="${CPPFLAGS} -I/usr/include/speech_tools" 18447 for ac_header in festival/festival.h 18448do : 18449 ac_fn_cxx_check_header_compile "$LINENO" "festival/festival.h" "ac_cv_header_festival_festival_h" " 18450 18451" 18452if test "x$ac_cv_header_festival_festival_h" = xyes; then : 18453 cat >>confdefs.h <<_ACEOF 18454#define HAVE_FESTIVAL_FESTIVAL_H 1 18455_ACEOF 18456 18457 FESTIVAL_LIBS="-lFestival -lestools -lestbase -leststring" 18458 FESTIVAL_CFLAGS="-I/usr/include/speech_tools -ffriend-injection -Wno-deprecated" 18459 FESTIVAL_PLUGIN_DIR="stardict-festival-tts-plugin" 18460 18461else 18462 18463 as_fn_error $? "Festival library not found. Use --disable-festival to build without festival plugin." "$LINENO" 5 18464 18465fi 18466 18467done 18468 18469else 18470 FESTIVAL_CFLAGS= 18471 FESTIVAL_LIBS= 18472 FESTIVAL_PLUGIN_DIR= 18473fi 18474 18475 18476 18477 18478 18479 18480# Check whether --enable-espeak was given. 18481if test "${enable_espeak+set}" = set; then : 18482 enableval=$enable_espeak; enable_espeak=$enableval 18483else 18484 enable_espeak=yes 18485fi 18486 18487 18488if test "x$enable_espeak" = "xyes" ; then 18489 for ac_header in espeak/speak_lib.h 18490do : 18491 ac_fn_cxx_check_header_compile "$LINENO" "espeak/speak_lib.h" "ac_cv_header_espeak_speak_lib_h" " 18492 18493" 18494if test "x$ac_cv_header_espeak_speak_lib_h" = xyes; then : 18495 cat >>confdefs.h <<_ACEOF 18496#define HAVE_ESPEAK_SPEAK_LIB_H 1 18497_ACEOF 18498 18499 ESPEAK_LIBS="-lespeak" 18500 ESPEAK_CFLAGS= 18501 ESPEAK_PLUGIN_DIR="stardict-espeak-tts-plugin" 18502 18503else 18504 18505 as_fn_error $? "Espeak library not found. Use --disable-espeak to build without espeak plugin." "$LINENO" 5 18506 18507fi 18508 18509done 18510 18511else 18512 ESPEAK_CFLAGS= 18513 ESPEAK_LIBS= 18514 ESPEAK_PLUGIN_DIR= 18515fi 18516 18517 18518 18519 18520 18521 18522# Check whether --enable-dictdotcn was given. 18523if test "${enable_dictdotcn+set}" = set; then : 18524 enableval=$enable_dictdotcn; enable_dictdotcn=$enableval 18525else 18526 enable_dictdotcn=yes 18527fi 18528 18529if test "x$enable_dictdotcn" = "xyes" ; then 18530 DICTDOTCN_PLUGIN_DIR="stardict-dictdotcn-plugin" 18531else 18532 DICTDOTCN_PLUGIN_DIR= 18533fi 18534 18535 18536# Check whether --enable-advertisement was given. 18537if test "${enable_advertisement+set}" = set; then : 18538 enableval=$enable_advertisement; enable_advertisement=$enableval 18539else 18540 enable_advertisement=yes 18541fi 18542 18543if test "x$enable_advertisement" = "xyes" ; then 18544 ADVERTISEMENT_PLUGIN_DIR="stardict-advertisement-plugin" 18545else 18546 ADVERTISEMENT_PLUGIN_DIR= 18547fi 18548 18549 18550# Check whether --enable-man was given. 18551if test "${enable_man+set}" = set; then : 18552 enableval=$enable_man; enable_man=$enableval 18553else 18554 enable_man=yes 18555fi 18556 18557if test "x$enable_man" = "xyes" ; then 18558 MAN_PLUGIN_DIR="stardict-man-plugin" 18559else 18560 MAN_PLUGIN_DIR= 18561fi 18562 18563 18564# Check whether --enable-qqwry was given. 18565if test "${enable_qqwry+set}" = set; then : 18566 enableval=$enable_qqwry; enable_qqwry=$enableval 18567else 18568 enable_qqwry=yes 18569fi 18570 18571if test "x$enable_qqwry" = "xyes" ; then 18572 QQWRY_PLUGIN_DIR="stardict-qqwry-plugin" 18573else 18574 QQWRY_PLUGIN_DIR= 18575fi 18576 18577 18578# Check whether --enable-updateinfo was given. 18579if test "${enable_updateinfo+set}" = set; then : 18580 enableval=$enable_updateinfo; enable_updateinfo=$enableval 18581else 18582 enable_updateinfo=yes 18583fi 18584 18585if test "x$enable_updateinfo" = "xyes" ; then 18586 UPDATE_INFO_PLUGIN_DIR="stardict-update-info-plugin" 18587else 18588 UPDATE_INFO_PLUGIN_DIR= 18589fi 18590 18591 18592# Check whether --enable-htmlparse was given. 18593if test "${enable_htmlparse+set}" = set; then : 18594 enableval=$enable_htmlparse; enable_htmlparse=$enableval 18595else 18596 enable_htmlparse=yes 18597fi 18598 18599if test "x$enable_htmlparse" = "xyes" ; then 18600 HTML_PARSEDATA_PLUGIN_DIR="stardict-html-parsedata-plugin" 18601else 18602 HTML_PARSEDATA_PLUGIN_DIR= 18603fi 18604 18605 18606# Check whether --enable-xdxfparse was given. 18607if test "${enable_xdxfparse+set}" = set; then : 18608 enableval=$enable_xdxfparse; enable_xdxfparse=$enableval 18609else 18610 enable_xdxfparse=yes 18611fi 18612 18613if test "x$enable_xdxfparse" = "xyes" ; then 18614 XDXF_PARSEDATA_PLUGIN_DIR="stardict-xdxf-parsedata-plugin" 18615else 18616 XDXF_PARSEDATA_PLUGIN_DIR= 18617fi 18618 18619 18620# Check whether --enable-wordnet was given. 18621if test "${enable_wordnet+set}" = set; then : 18622 enableval=$enable_wordnet; enable_wordnet=$enableval 18623else 18624 enable_wordnet=yes 18625fi 18626 18627if test "x$enable_wordnet" = "xyes" ; then 18628 WORDNET_PLUGIN_DIR="stardict-wordnet-plugin" 18629else 18630 WORDNET_PLUGIN_DIR= 18631fi 18632 18633 18634# Check whether --enable-powerwordparse was given. 18635if test "${enable_powerwordparse+set}" = set; then : 18636 enableval=$enable_powerwordparse; enable_powerwordparse=$enableval 18637else 18638 enable_powerwordparse=yes 18639fi 18640 18641if test "x$enable_powerwordparse" = "xyes" ; then 18642 POWERWORD_PARSEDATA_PLUGIN_DIR="stardict-powerword-parsedata-plugin" 18643else 18644 POWERWORD_PARSEDATA_PLUGIN_DIR= 18645fi 18646 18647 18648# Check whether --enable-wikiparse was given. 18649if test "${enable_wikiparse+set}" = set; then : 18650 enableval=$enable_wikiparse; enable_wikiparse=$enableval 18651else 18652 enable_wikiparse=yes 18653fi 18654 18655if test "x$enable_wikiparse" = "xyes" ; then 18656 WIKI_PARSEDATA_PLUGIN_DIR="stardict-wiki-parsedata-plugin" 18657else 18658 WIKI_PARSEDATA_PLUGIN_DIR= 18659fi 18660 18661 18662 18663# Check whether --enable-gnome-support was given. 18664if test "${enable_gnome_support+set}" = set; then : 18665 enableval=$enable_gnome_support; 18666fi 18667 18668# Check whether --enable-gpe-support was given. 18669if test "${enable_gpe_support+set}" = set; then : 18670 enableval=$enable_gpe_support; 18671fi 18672 18673# Check whether --enable-maemo-support was given. 18674if test "${enable_maemo_support+set}" = set; then : 18675 enableval=$enable_maemo_support; 18676fi 18677 18678# Check whether --enable-darwin-support was given. 18679if test "${enable_darwin_support+set}" = set; then : 18680 enableval=$enable_darwin_support; 18681fi 18682 18683 if test "x${enable_gpe_support}" != "xyes" && test "x${enable_maemo_support}" != "xyes" && test "x${enable_darwin_support}" != "xyes" && test "x${enable_gnome_support}" != "xno"; then 18684 GNOME_SUPPORT_TRUE= 18685 GNOME_SUPPORT_FALSE='#' 18686else 18687 GNOME_SUPPORT_TRUE='#' 18688 GNOME_SUPPORT_FALSE= 18689fi 18690 18691 if test "x${enable_gpe_support}" = "xyes"; then 18692 GPE_SUPPORT_TRUE= 18693 GPE_SUPPORT_FALSE='#' 18694else 18695 GPE_SUPPORT_TRUE='#' 18696 GPE_SUPPORT_FALSE= 18697fi 18698 18699 if test "x${enable_maemo_support}" = "xyes"; then 18700 MAEMO_SUPPORT_TRUE= 18701 MAEMO_SUPPORT_FALSE='#' 18702else 18703 MAEMO_SUPPORT_TRUE='#' 18704 MAEMO_SUPPORT_FALSE= 18705fi 18706 18707 if test "x${enable_darwin_support}" = "xyes"; then 18708 DARWIN_SUPPORT_TRUE= 18709 DARWIN_SUPPORT_FALSE='#' 18710else 18711 DARWIN_SUPPORT_TRUE='#' 18712 DARWIN_SUPPORT_FALSE= 18713fi 18714 18715 18716if test "x${enable_gpe_support}" = "xyes" ; then 18717 DEP_MODULES="gtk+-2.0 glib-2.0 >= 2.32 gmodule-2.0 gthread-2.0 libgpewidget >= 0.109 gmodule-2.0" 18718elif test "x${enable_maemo_support}" = "xyes" ; then 18719 DEP_MODULES="gtk+-2.0 glib-2.0 >= 2.32 gmodule-2.0 gthread-2.0 gconf-2.0 >= 2.6 hildon-libs >= 0.12 gmodule-2.0" 18720elif test "x${enable_darwin_support}" = "xyes" ; then 18721 DEP_MODULES="gtk+-2.0 glib-2.0 >= 2.32 gmodule-2.0 gthread-2.0 gmodule-2.0" 18722elif test "x${enable_gnome_support}" = "xno" ; then 18723 DEP_MODULES="gtk+-2.0 glib-2.0 >= 2.32 gmodule-2.0 gthread-2.0 gmodule-2.0" 18724else 18725 DEP_MODULES="gtk+-2.0 glib-2.0 >= 2.32 gmodule-2.0 gthread-2.0 libgnome-2.0 libbonobo-2.0 gconf-2.0 gmodule-2.0" 18726fi 18727 18728 18729pkg_failed=no 18730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for STARDICT" >&5 18731$as_echo_n "checking for STARDICT... " >&6; } 18732 18733if test -n "$STARDICT_CFLAGS"; then 18734 pkg_cv_STARDICT_CFLAGS="$STARDICT_CFLAGS" 18735 elif test -n "$PKG_CONFIG"; then 18736 if test -n "$PKG_CONFIG" && \ 18737 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DEP_MODULES\""; } >&5 18738 ($PKG_CONFIG --exists --print-errors "$DEP_MODULES") 2>&5 18739 ac_status=$? 18740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18741 test $ac_status = 0; }; then 18742 pkg_cv_STARDICT_CFLAGS=`$PKG_CONFIG --cflags "$DEP_MODULES" 2>/dev/null` 18743 test "x$?" != "x0" && pkg_failed=yes 18744else 18745 pkg_failed=yes 18746fi 18747 else 18748 pkg_failed=untried 18749fi 18750if test -n "$STARDICT_LIBS"; then 18751 pkg_cv_STARDICT_LIBS="$STARDICT_LIBS" 18752 elif test -n "$PKG_CONFIG"; then 18753 if test -n "$PKG_CONFIG" && \ 18754 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DEP_MODULES\""; } >&5 18755 ($PKG_CONFIG --exists --print-errors "$DEP_MODULES") 2>&5 18756 ac_status=$? 18757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18758 test $ac_status = 0; }; then 18759 pkg_cv_STARDICT_LIBS=`$PKG_CONFIG --libs "$DEP_MODULES" 2>/dev/null` 18760 test "x$?" != "x0" && pkg_failed=yes 18761else 18762 pkg_failed=yes 18763fi 18764 else 18765 pkg_failed=untried 18766fi 18767 18768 18769 18770if test $pkg_failed = yes; then 18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18772$as_echo "no" >&6; } 18773 18774if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18775 _pkg_short_errors_supported=yes 18776else 18777 _pkg_short_errors_supported=no 18778fi 18779 if test $_pkg_short_errors_supported = yes; then 18780 STARDICT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DEP_MODULES" 2>&1` 18781 else 18782 STARDICT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DEP_MODULES" 2>&1` 18783 fi 18784 # Put the nasty error message in config.log where it belongs 18785 echo "$STARDICT_PKG_ERRORS" >&5 18786 18787 as_fn_error $? "Package requirements ($DEP_MODULES) were not met: 18788 18789$STARDICT_PKG_ERRORS 18790 18791Consider adjusting the PKG_CONFIG_PATH environment variable if you 18792installed software in a non-standard prefix. 18793 18794Alternatively, you may set the environment variables STARDICT_CFLAGS 18795and STARDICT_LIBS to avoid the need to call pkg-config. 18796See the pkg-config man page for more details." "$LINENO" 5 18797elif test $pkg_failed = untried; then 18798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18799$as_echo "no" >&6; } 18800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18802as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18803is in your PATH or set the PKG_CONFIG environment variable to the full 18804path to pkg-config. 18805 18806Alternatively, you may set the environment variables STARDICT_CFLAGS 18807and STARDICT_LIBS to avoid the need to call pkg-config. 18808See the pkg-config man page for more details. 18809 18810To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18811See \`config.log' for more details" "$LINENO" 5; } 18812else 18813 STARDICT_CFLAGS=$pkg_cv_STARDICT_CFLAGS 18814 STARDICT_LIBS=$pkg_cv_STARDICT_LIBS 18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18816$as_echo "yes" >&6; } 18817 18818fi 18819 18820if test "x${enable_gpe_support}" = "xyes" ; then 18821 echo "Enable gpe suppport"; 18822 18823$as_echo "#define CONFIG_GPE /**/" >>confdefs.h 18824 18825 if test "x${enable_gpe_support}" != "xyes"; then 18826 GCONF_SCHEMAS_INSTALL_TRUE= 18827 GCONF_SCHEMAS_INSTALL_FALSE='#' 18828else 18829 GCONF_SCHEMAS_INSTALL_TRUE='#' 18830 GCONF_SCHEMAS_INSTALL_FALSE= 18831fi 18832 18833elif test "x${enable_maemo_support}" = "xyes" ; then 18834 echo "Enable maemo suppport"; 18835 18836$as_echo "#define CONFIG_MAEMO /**/" >>confdefs.h 18837 18838 # Extract the first word of "gconftool-2", so it can be a program name with args. 18839set dummy gconftool-2; ac_word=$2 18840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18841$as_echo_n "checking for $ac_word... " >&6; } 18842if ${ac_cv_path_GCONFTOOL+:} false; then : 18843 $as_echo_n "(cached) " >&6 18844else 18845 case $GCONFTOOL in 18846 [\\/]* | ?:[\\/]*) 18847 ac_cv_path_GCONFTOOL="$GCONFTOOL" # Let the user override the test with a path. 18848 ;; 18849 *) 18850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18851for as_dir in $PATH 18852do 18853 IFS=$as_save_IFS 18854 test -z "$as_dir" && as_dir=. 18855 for ac_exec_ext in '' $ac_executable_extensions; do 18856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18857 ac_cv_path_GCONFTOOL="$as_dir/$ac_word$ac_exec_ext" 18858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18859 break 2 18860 fi 18861done 18862 done 18863IFS=$as_save_IFS 18864 18865 test -z "$ac_cv_path_GCONFTOOL" && ac_cv_path_GCONFTOOL="no" 18866 ;; 18867esac 18868fi 18869GCONFTOOL=$ac_cv_path_GCONFTOOL 18870if test -n "$GCONFTOOL"; then 18871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONFTOOL" >&5 18872$as_echo "$GCONFTOOL" >&6; } 18873else 18874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18875$as_echo "no" >&6; } 18876fi 18877 18878 18879 if test x"$GCONFTOOL" = xno; then 18880 as_fn_error $? "gconftool-2 executable not found in your path - should be installed with GConf" "$LINENO" 5 18881 fi 18882 18883 if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then 18884 GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source` 18885 else 18886 GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE 18887 fi 18888 18889 18890# Check whether --with-gconf-source was given. 18891if test "${with_gconf_source+set}" = set; then : 18892 withval=$with_gconf_source; GCONF_SCHEMA_CONFIG_SOURCE="$withval" 18893fi 18894 18895 18896 18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5 18898$as_echo "Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6; } 18899 18900 if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then 18901 GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas' 18902 fi 18903 18904 18905# Check whether --with-gconf-schema-file-dir was given. 18906if test "${with_gconf_schema_file_dir+set}" = set; then : 18907 withval=$with_gconf_schema_file_dir; GCONF_SCHEMA_FILE_DIR="$withval" 18908fi 18909 18910 18911 18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5 18913$as_echo "Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6; } 18914 18915 # Check whether --enable-schemas-install was given. 18916if test "${enable_schemas_install+set}" = set; then : 18917 enableval=$enable_schemas_install; case ${enableval} in 18918 yes|no) ;; 18919 *) as_fn_error $? "bad value ${enableval} for --enable-schemas-install" "$LINENO" 5 ;; 18920 esac 18921fi 18922 18923 if test "$enable_schemas_install" != no; then 18924 GCONF_SCHEMAS_INSTALL_TRUE= 18925 GCONF_SCHEMAS_INSTALL_FALSE='#' 18926else 18927 GCONF_SCHEMAS_INSTALL_TRUE='#' 18928 GCONF_SCHEMAS_INSTALL_FALSE= 18929fi 18930 18931 18932elif test "x${enable_darwin_support}" = "xyes" ; then 18933 echo "Enable darwin suppport"; 18934 18935$as_echo "#define CONFIG_DARWIN /**/" >>confdefs.h 18936 18937 if test "x${enable_darwin_support}" != "xyes"; then 18938 GCONF_SCHEMAS_INSTALL_TRUE= 18939 GCONF_SCHEMAS_INSTALL_FALSE='#' 18940else 18941 GCONF_SCHEMAS_INSTALL_TRUE='#' 18942 GCONF_SCHEMAS_INSTALL_FALSE= 18943fi 18944 18945elif test "x${enable_gnome_support}" = "xno" ; then 18946 echo "Disable gnome support"; 18947 18948$as_echo "#define CONFIG_GTK /**/" >>confdefs.h 18949 18950 if test "x${enable_gnome_support}" != "xno"; then 18951 GCONF_SCHEMAS_INSTALL_TRUE= 18952 GCONF_SCHEMAS_INSTALL_FALSE='#' 18953else 18954 GCONF_SCHEMAS_INSTALL_TRUE='#' 18955 GCONF_SCHEMAS_INSTALL_FALSE= 18956fi 18957 18958else 18959 echo "Enable gnome suppport"; 18960 18961$as_echo "#define CONFIG_GNOME /**/" >>confdefs.h 18962 18963 18964 18965 # Extract the first word of "gconftool-2", so it can be a program name with args. 18966set dummy gconftool-2; ac_word=$2 18967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18968$as_echo_n "checking for $ac_word... " >&6; } 18969if ${ac_cv_path_GCONFTOOL+:} false; then : 18970 $as_echo_n "(cached) " >&6 18971else 18972 case $GCONFTOOL in 18973 [\\/]* | ?:[\\/]*) 18974 ac_cv_path_GCONFTOOL="$GCONFTOOL" # Let the user override the test with a path. 18975 ;; 18976 *) 18977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18978for as_dir in $PATH 18979do 18980 IFS=$as_save_IFS 18981 test -z "$as_dir" && as_dir=. 18982 for ac_exec_ext in '' $ac_executable_extensions; do 18983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18984 ac_cv_path_GCONFTOOL="$as_dir/$ac_word$ac_exec_ext" 18985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18986 break 2 18987 fi 18988done 18989 done 18990IFS=$as_save_IFS 18991 18992 test -z "$ac_cv_path_GCONFTOOL" && ac_cv_path_GCONFTOOL="no" 18993 ;; 18994esac 18995fi 18996GCONFTOOL=$ac_cv_path_GCONFTOOL 18997if test -n "$GCONFTOOL"; then 18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONFTOOL" >&5 18999$as_echo "$GCONFTOOL" >&6; } 19000else 19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19002$as_echo "no" >&6; } 19003fi 19004 19005 19006 if test x"$GCONFTOOL" = xno; then 19007 as_fn_error $? "gconftool-2 executable not found in your path - should be installed with GConf" "$LINENO" 5 19008 fi 19009 19010 if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then 19011 GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source` 19012 else 19013 GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE 19014 fi 19015 19016 19017# Check whether --with-gconf-source was given. 19018if test "${with_gconf_source+set}" = set; then : 19019 withval=$with_gconf_source; GCONF_SCHEMA_CONFIG_SOURCE="$withval" 19020fi 19021 19022 19023 19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5 19025$as_echo "Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6; } 19026 19027 if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then 19028 GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas' 19029 fi 19030 19031 19032# Check whether --with-gconf-schema-file-dir was given. 19033if test "${with_gconf_schema_file_dir+set}" = set; then : 19034 withval=$with_gconf_schema_file_dir; GCONF_SCHEMA_FILE_DIR="$withval" 19035fi 19036 19037 19038 19039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5 19040$as_echo "Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6; } 19041 19042 # Check whether --enable-schemas-install was given. 19043if test "${enable_schemas_install+set}" = set; then : 19044 enableval=$enable_schemas_install; case ${enableval} in 19045 yes|no) ;; 19046 *) as_fn_error $? "bad value ${enableval} for --enable-schemas-install" "$LINENO" 5 ;; 19047 esac 19048fi 19049 19050 if test "$enable_schemas_install" != no; then 19051 GCONF_SCHEMAS_INSTALL_TRUE= 19052 GCONF_SCHEMAS_INSTALL_FALSE='#' 19053else 19054 GCONF_SCHEMAS_INSTALL_TRUE='#' 19055 GCONF_SCHEMAS_INSTALL_FALSE= 19056fi 19057 19058 19059 19060 19061 ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`" 19062 19063 19064 LIBBONOBO_IDL="`$PKG_CONFIG --variable=idldir libbonobo-2.0`" 19065 19066 19067 BONOBO_ACTIVATION_IDL="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`" 19068 19069fi 19070 19071 19072# Check whether --enable-deprecations was given. 19073if test "${enable_deprecations+set}" = set; then : 19074 enableval=$enable_deprecations; enable_deprecations=$enableval 19075else 19076 enable_deprecations=yes 19077fi 19078 19079 19080if test "x$enable_deprecations" = "xno" ; then 19081 STARDICT_CFLAGS="$STARDICT_CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED" 19082 STARDICT_CFLAGS="$STARDICT_CFLAGS -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES" 19083fi 19084 19085STARDICT_CFLAGS="-Wall $STARDICT_CFLAGS" 19086 19087 19088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 19089$as_echo_n "checking for zlibVersion in -lz... " >&6; } 19090if ${ac_cv_lib_z_zlibVersion+:} false; then : 19091 $as_echo_n "(cached) " >&6 19092else 19093 ac_check_lib_save_LIBS=$LIBS 19094LIBS="-lz $LIBS" 19095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19096/* end confdefs.h. */ 19097 19098/* Override any GCC internal prototype to avoid an error. 19099 Use char because int might match the return type of a GCC 19100 builtin and then its argument prototype would still apply. */ 19101#ifdef __cplusplus 19102extern "C" 19103#endif 19104char zlibVersion (); 19105int 19106main () 19107{ 19108return zlibVersion (); 19109 ; 19110 return 0; 19111} 19112_ACEOF 19113if ac_fn_cxx_try_link "$LINENO"; then : 19114 ac_cv_lib_z_zlibVersion=yes 19115else 19116 ac_cv_lib_z_zlibVersion=no 19117fi 19118rm -f core conftest.err conftest.$ac_objext \ 19119 conftest$ac_exeext conftest.$ac_ext 19120LIBS=$ac_check_lib_save_LIBS 19121fi 19122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 19123$as_echo "$ac_cv_lib_z_zlibVersion" >&6; } 19124if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : 19125 STARDICT_LIBS="$STARDICT_LIBS -lz" 19126else 19127 as_fn_error $? "zlib not found, or gcc-c++ not installed" "$LINENO" 5 19128fi 19129 19130# For the first AC_CHECK_LIB, if failed, it may because of compiler didn't installed. So add this warning for the first AC_CHECK_LIB macro. 19131 19132 19133 19134 19135pkg_failed=no 19136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGCPP" >&5 19137$as_echo_n "checking for SIGCPP... " >&6; } 19138 19139if test -n "$SIGCPP_CFLAGS"; then 19140 pkg_cv_SIGCPP_CFLAGS="$SIGCPP_CFLAGS" 19141 elif test -n "$PKG_CONFIG"; then 19142 if test -n "$PKG_CONFIG" && \ 19143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"sigc++-2.0\"\""; } >&5 19144 ($PKG_CONFIG --exists --print-errors ""sigc++-2.0"") 2>&5 19145 ac_status=$? 19146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19147 test $ac_status = 0; }; then 19148 pkg_cv_SIGCPP_CFLAGS=`$PKG_CONFIG --cflags ""sigc++-2.0"" 2>/dev/null` 19149 test "x$?" != "x0" && pkg_failed=yes 19150else 19151 pkg_failed=yes 19152fi 19153 else 19154 pkg_failed=untried 19155fi 19156if test -n "$SIGCPP_LIBS"; then 19157 pkg_cv_SIGCPP_LIBS="$SIGCPP_LIBS" 19158 elif test -n "$PKG_CONFIG"; then 19159 if test -n "$PKG_CONFIG" && \ 19160 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"sigc++-2.0\"\""; } >&5 19161 ($PKG_CONFIG --exists --print-errors ""sigc++-2.0"") 2>&5 19162 ac_status=$? 19163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19164 test $ac_status = 0; }; then 19165 pkg_cv_SIGCPP_LIBS=`$PKG_CONFIG --libs ""sigc++-2.0"" 2>/dev/null` 19166 test "x$?" != "x0" && pkg_failed=yes 19167else 19168 pkg_failed=yes 19169fi 19170 else 19171 pkg_failed=untried 19172fi 19173 19174 19175 19176if test $pkg_failed = yes; then 19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19178$as_echo "no" >&6; } 19179 19180if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19181 _pkg_short_errors_supported=yes 19182else 19183 _pkg_short_errors_supported=no 19184fi 19185 if test $_pkg_short_errors_supported = yes; then 19186 SIGCPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""sigc++-2.0"" 2>&1` 19187 else 19188 SIGCPP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""sigc++-2.0"" 2>&1` 19189 fi 19190 # Put the nasty error message in config.log where it belongs 19191 echo "$SIGCPP_PKG_ERRORS" >&5 19192 19193 use_system_sigcpp=no 19194elif test $pkg_failed = untried; then 19195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19196$as_echo "no" >&6; } 19197 use_system_sigcpp=no 19198else 19199 SIGCPP_CFLAGS=$pkg_cv_SIGCPP_CFLAGS 19200 SIGCPP_LIBS=$pkg_cv_SIGCPP_LIBS 19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19202$as_echo "yes" >&6; } 19203 use_system_sigcpp=yes 19204fi 19205 if test "x${use_system_sigcpp}" = "xyes"; then 19206 USE_SYSTEM_SIGCPP_TRUE= 19207 USE_SYSTEM_SIGCPP_FALSE='#' 19208else 19209 USE_SYSTEM_SIGCPP_TRUE='#' 19210 USE_SYSTEM_SIGCPP_FALSE= 19211fi 19212 19213if test "x${use_system_sigcpp}" = "xyes" ; then 19214echo "Use system libsigc++20"; 19215STARDICT_CFLAGS="$SIGCPP_CFLAGS $STARDICT_CFLAGS" 19216STARDICT_LIBS="$SIGCPP_LIBS $STARDICT_LIBS" 19217else 19218echo "Use local libsigc++20"; 19219 19220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler supports the use of a particular specialization when calling operator() template methods." >&5 19221$as_echo_n "checking if C++ compiler supports the use of a particular specialization when calling operator() template methods.... " >&6; } 19222cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19223/* end confdefs.h. */ 19224 19225 #include <iostream> 19226 19227 class Thing 19228 { 19229 public: 19230 Thing() 19231 {} 19232 19233 template <class T> 19234 void operator()(T a, T b) 19235 { 19236 T c = a + b; 19237 std::cout << c << std::endl; 19238 } 19239 }; 19240 19241 template<class T2> 19242 class OtherThing 19243 { 19244 public: 19245 void do_something() 19246 { 19247 Thing thing_; 19248 thing_.template operator()<T2>(1, 2); 19249 //This fails with or without the template keyword, on SUN Forte C++ 5.3, 5.4, and 5.5: 19250 } 19251 }; 19252 19253int 19254main () 19255{ 19256 19257 OtherThing<int> thing; 19258 thing.do_something(); 19259 19260 ; 19261 return 0; 19262} 19263_ACEOF 19264if ac_fn_cxx_try_compile "$LINENO"; then : 19265 19266 sigcm_cxx_gcc_template_specialization_operator_overload=yes 19267 19268$as_echo "#define SIGC_GCC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD 1" >>confdefs.h 19269 19270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sigcm_cxx_gcc_template_specialization_operator_overload" >&5 19271$as_echo "$sigcm_cxx_gcc_template_specialization_operator_overload" >&6; } 19272 19273else 19274 19275 sigcm_cxx_gcc_template_specialization_operator_overload=no 19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sigcm_cxx_gcc_template_specialization_operator_overload" >&5 19277$as_echo "$sigcm_cxx_gcc_template_specialization_operator_overload" >&6; } 19278 19279fi 19280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19281 19282 19283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler supports the use of a particular specialization when calling operator() template methods omitting the template keyword." >&5 19284$as_echo_n "checking if C++ compiler supports the use of a particular specialization when calling operator() template methods omitting the template keyword.... " >&6; } 19285cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19286/* end confdefs.h. */ 19287 19288 #include <iostream> 19289 19290 class Thing 19291 { 19292 public: 19293 Thing() 19294 {} 19295 19296 template <class T> 19297 void operator()(T a, T b) 19298 { 19299 T c = a + b; 19300 std::cout << c << std::endl; 19301 } 19302 }; 19303 19304 template<class T2> 19305 class OtherThing 19306 { 19307 public: 19308 void do_something() 19309 { 19310 Thing thing_; 19311 thing_.operator()<T2>(1, 2); 19312 //This fails with or without the template keyword, on SUN Forte C++ 5.3, 5.4, and 5.5: 19313 } 19314 }; 19315 19316int 19317main () 19318{ 19319 19320 OtherThing<int> thing; 19321 thing.do_something(); 19322 19323 ; 19324 return 0; 19325} 19326_ACEOF 19327if ac_fn_cxx_try_compile "$LINENO"; then : 19328 19329 sigcm_cxx_msvc_template_specialization_operator_overload=yes 19330 19331$as_echo "#define SIGC_MSVC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD 1" >>confdefs.h 19332 19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sigcm_cxx_msvc_template_specialization_operator_overload" >&5 19334$as_echo "$sigcm_cxx_msvc_template_specialization_operator_overload" >&6; } 19335 19336else 19337 19338 sigcm_cxx_msvc_template_specialization_operator_overload=no 19339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sigcm_cxx_msvc_template_specialization_operator_overload" >&5 19340$as_echo "$sigcm_cxx_msvc_template_specialization_operator_overload" >&6; } 19341 19342fi 19343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19344 19345 19346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler allows usage of member function in initialization of static member field." >&5 19347$as_echo_n "checking if C++ compiler allows usage of member function in initialization of static member field.... " >&6; } 19348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19349/* end confdefs.h. */ 19350 19351 struct test 19352 { 19353 static char test_function(); 19354 19355 // Doesn't work with e.g. GCC 3.2. However, if test_function() 19356 // is wrapped in a nested structure, it works just fine. 19357 static const bool test_value 19358 = (sizeof(test_function()) == sizeof(char)); 19359 }; 19360 19361int 19362main () 19363{ 19364 19365 ; 19366 return 0; 19367} 19368_ACEOF 19369if ac_fn_cxx_try_compile "$LINENO"; then : 19370 19371 sigcm_cxx_self_reference_in_member_initialization=yes 19372 19373$as_echo "#define SIGC_SELF_REFERENCE_IN_MEMBER_INITIALIZATION 1" >>confdefs.h 19374 19375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sigcm_cxx_self_reference_in_member_initialization" >&5 19376$as_echo "$sigcm_cxx_self_reference_in_member_initialization" >&6; } 19377 19378else 19379 19380 sigcm_cxx_self_reference_in_member_initialization=no 19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sigcm_cxx_self_reference_in_member_initialization" >&5 19382$as_echo "$sigcm_cxx_self_reference_in_member_initialization" >&6; } 19383 19384fi 19385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19386 19387 19388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ library symbols are declared in namespace std" >&5 19389$as_echo_n "checking whether C++ library symbols are declared in namespace std... " >&6; } 19390if ${sigc_cv_cxx_has_namespace_std+:} false; then : 19391 $as_echo_n "(cached) " >&6 19392else 19393 19394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19395/* end confdefs.h. */ 19396 19397 #include <algorithm> 19398 #include <iterator> 19399 #include <iostream> 19400 #include <string> 19401 19402int 19403main () 19404{ 19405 19406 using std::min; 19407 using std::find; 19408 using std::copy; 19409 using std::bidirectional_iterator_tag; 19410 using std::string; 19411 using std::istream; 19412 using std::cout; 19413 19414 ; 19415 return 0; 19416} 19417_ACEOF 19418if ac_fn_cxx_try_compile "$LINENO"; then : 19419 sigc_cv_cxx_has_namespace_std="yes" 19420else 19421 sigc_cv_cxx_has_namespace_std="no" 19422 19423fi 19424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19425 19426fi 19427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sigc_cv_cxx_has_namespace_std" >&5 19428$as_echo "$sigc_cv_cxx_has_namespace_std" >&6; } 19429 19430 if test "x${sigc_cv_cxx_has_namespace_std}" = "xyes"; then 19431 { 19432 19433$as_echo "#define SIGC_HAVE_NAMESPACE_STD 1" >>confdefs.h 19434 19435 } 19436 fi 19437 19438 19439 19440 19441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-standard Sun libCstd reverse_iterator" >&5 19442$as_echo_n "checking for non-standard Sun libCstd reverse_iterator... " >&6; } 19443if ${sigc_cv_cxx_has_sun_reverse_iterator+:} false; then : 19444 $as_echo_n "(cached) " >&6 19445else 19446 19447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19448/* end confdefs.h. */ 19449 19450 #include <iterator> 19451 #ifdef SIGC_HAVE_NAMESPACE_STD 19452 using namespace std; 19453 #endif 19454 19455int 19456main () 19457{ 19458 19459 typedef reverse_iterator<char*,random_access_iterator_tag,char,char&,char*,int> ReverseIter; 19460 19461 ; 19462 return 0; 19463} 19464_ACEOF 19465if ac_fn_cxx_try_compile "$LINENO"; then : 19466 sigc_cv_cxx_has_sun_reverse_iterator="yes" 19467else 19468 sigc_cv_cxx_has_sun_reverse_iterator="no" 19469 19470fi 19471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19472 19473fi 19474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sigc_cv_cxx_has_sun_reverse_iterator" >&5 19475$as_echo "$sigc_cv_cxx_has_sun_reverse_iterator" >&6; } 19476 19477 if test "x${sigc_cv_cxx_has_sun_reverse_iterator}" = "xyes"; then 19478 { 19479 19480$as_echo "#define SIGC_HAVE_SUN_REVERSE_ITERATOR 1" >>confdefs.h 19481 19482 } 19483 fi 19484 19485 19486if test "X$config_error" = "Xyes" ; then 19487 as_fn_error $? "One or more of the required compiler features is missing. 19488If you believe this is in error, please consult the config.log file 19489for further details. 19490" "$LINENO" 5 19491fi 19492 19493fi 19494 19495if test "x$enable_scrollkeeper" = "xyes" ; then 19496 # Extract the first word of "scrollkeeper-config", so it can be a program name with args. 19497set dummy scrollkeeper-config; ac_word=$2 19498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19499$as_echo_n "checking for $ac_word... " >&6; } 19500if ${ac_cv_prog_SCROLLKEEPER+:} false; then : 19501 $as_echo_n "(cached) " >&6 19502else 19503 if test -n "$SCROLLKEEPER"; then 19504 ac_cv_prog_SCROLLKEEPER="$SCROLLKEEPER" # Let the user override the test. 19505else 19506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19507for as_dir in $PATH 19508do 19509 IFS=$as_save_IFS 19510 test -z "$as_dir" && as_dir=. 19511 for ac_exec_ext in '' $ac_executable_extensions; do 19512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19513 ac_cv_prog_SCROLLKEEPER="yes" 19514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19515 break 2 19516 fi 19517done 19518 done 19519IFS=$as_save_IFS 19520 19521fi 19522fi 19523SCROLLKEEPER=$ac_cv_prog_SCROLLKEEPER 19524if test -n "$SCROLLKEEPER"; then 19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCROLLKEEPER" >&5 19526$as_echo "$SCROLLKEEPER" >&6; } 19527else 19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19529$as_echo "no" >&6; } 19530fi 19531 19532 19533 if test x"$SCROLLKEEPER" != xyes; then 19534 as_fn_error $? "scrollkeeper-config executable is not found in your path - should be installed with scrollkeeper" "$LINENO" 5 19535 fi 19536fi 19537 19538 19539if test "x${enable_darwin_support}" != "xyes" ; then 19540# Checks for header files. need by Solaris. 19541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 19542$as_echo_n "checking for X... " >&6; } 19543 19544 19545# Check whether --with-x was given. 19546if test "${with_x+set}" = set; then : 19547 withval=$with_x; 19548fi 19549 19550# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 19551if test "x$with_x" = xno; then 19552 # The user explicitly disabled X. 19553 have_x=disabled 19554else 19555 case $x_includes,$x_libraries in #( 19556 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 19557 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 19558 $as_echo_n "(cached) " >&6 19559else 19560 # One or both of the vars are not set, and there is no cached value. 19561ac_x_includes=no ac_x_libraries=no 19562rm -f -r conftest.dir 19563if mkdir conftest.dir; then 19564 cd conftest.dir 19565 cat >Imakefile <<'_ACEOF' 19566incroot: 19567 @echo incroot='${INCROOT}' 19568usrlibdir: 19569 @echo usrlibdir='${USRLIBDIR}' 19570libdir: 19571 @echo libdir='${LIBDIR}' 19572_ACEOF 19573 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 19574 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 19575 for ac_var in incroot usrlibdir libdir; do 19576 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 19577 done 19578 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 19579 for ac_extension in a so sl dylib la dll; do 19580 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 19581 test -f "$ac_im_libdir/libX11.$ac_extension"; then 19582 ac_im_usrlibdir=$ac_im_libdir; break 19583 fi 19584 done 19585 # Screen out bogus values from the imake configuration. They are 19586 # bogus both because they are the default anyway, and because 19587 # using them would break gcc on systems where it needs fixed includes. 19588 case $ac_im_incroot in 19589 /usr/include) ac_x_includes= ;; 19590 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 19591 esac 19592 case $ac_im_usrlibdir in 19593 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 19594 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 19595 esac 19596 fi 19597 cd .. 19598 rm -f -r conftest.dir 19599fi 19600 19601# Standard set of common directories for X headers. 19602# Check X11 before X11Rn because it is often a symlink to the current release. 19603ac_x_header_dirs=' 19604/usr/X11/include 19605/usr/X11R7/include 19606/usr/X11R6/include 19607/usr/X11R5/include 19608/usr/X11R4/include 19609 19610/usr/include/X11 19611/usr/include/X11R7 19612/usr/include/X11R6 19613/usr/include/X11R5 19614/usr/include/X11R4 19615 19616/usr/local/X11/include 19617/usr/local/X11R7/include 19618/usr/local/X11R6/include 19619/usr/local/X11R5/include 19620/usr/local/X11R4/include 19621 19622/usr/local/include/X11 19623/usr/local/include/X11R7 19624/usr/local/include/X11R6 19625/usr/local/include/X11R5 19626/usr/local/include/X11R4 19627 19628/usr/X386/include 19629/usr/x386/include 19630/usr/XFree86/include/X11 19631 19632/usr/include 19633/usr/local/include 19634/usr/unsupported/include 19635/usr/athena/include 19636/usr/local/x11r5/include 19637/usr/lpp/Xamples/include 19638 19639/usr/openwin/include 19640/usr/openwin/share/include' 19641 19642if test "$ac_x_includes" = no; then 19643 # Guess where to find include files, by looking for Xlib.h. 19644 # First, try using that file with no special directory specified. 19645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19646/* end confdefs.h. */ 19647#include <X11/Xlib.h> 19648_ACEOF 19649if ac_fn_cxx_try_cpp "$LINENO"; then : 19650 # We can compile using X headers with no special include directory. 19651ac_x_includes= 19652else 19653 for ac_dir in $ac_x_header_dirs; do 19654 if test -r "$ac_dir/X11/Xlib.h"; then 19655 ac_x_includes=$ac_dir 19656 break 19657 fi 19658done 19659fi 19660rm -f conftest.err conftest.i conftest.$ac_ext 19661fi # $ac_x_includes = no 19662 19663if test "$ac_x_libraries" = no; then 19664 # Check for the libraries. 19665 # See if we find them without any special options. 19666 # Don't add to $LIBS permanently. 19667 ac_save_LIBS=$LIBS 19668 LIBS="-lX11 $LIBS" 19669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19670/* end confdefs.h. */ 19671#include <X11/Xlib.h> 19672int 19673main () 19674{ 19675XrmInitialize () 19676 ; 19677 return 0; 19678} 19679_ACEOF 19680if ac_fn_cxx_try_link "$LINENO"; then : 19681 LIBS=$ac_save_LIBS 19682# We can link X programs with no special library path. 19683ac_x_libraries= 19684else 19685 LIBS=$ac_save_LIBS 19686for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 19687do 19688 # Don't even attempt the hair of trying to link an X program! 19689 for ac_extension in a so sl dylib la dll; do 19690 if test -r "$ac_dir/libX11.$ac_extension"; then 19691 ac_x_libraries=$ac_dir 19692 break 2 19693 fi 19694 done 19695done 19696fi 19697rm -f core conftest.err conftest.$ac_objext \ 19698 conftest$ac_exeext conftest.$ac_ext 19699fi # $ac_x_libraries = no 19700 19701case $ac_x_includes,$ac_x_libraries in #( 19702 no,* | *,no | *\'*) 19703 # Didn't find X, or a directory has "'" in its name. 19704 ac_cv_have_x="have_x=no";; #( 19705 *) 19706 # Record where we found X for the cache. 19707 ac_cv_have_x="have_x=yes\ 19708 ac_x_includes='$ac_x_includes'\ 19709 ac_x_libraries='$ac_x_libraries'" 19710esac 19711fi 19712;; #( 19713 *) have_x=yes;; 19714 esac 19715 eval "$ac_cv_have_x" 19716fi # $with_x != no 19717 19718if test "$have_x" != yes; then 19719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 19720$as_echo "$have_x" >&6; } 19721 no_x=yes 19722else 19723 # If each of the values was on the command line, it overrides each guess. 19724 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 19725 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 19726 # Update the cache value to reflect the command line values. 19727 ac_cv_have_x="have_x=yes\ 19728 ac_x_includes='$x_includes'\ 19729 ac_x_libraries='$x_libraries'" 19730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 19731$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 19732fi 19733 19734if test "$no_x" = yes; then 19735 # Not all programs may use this symbol, but it does not hurt to define it. 19736 19737$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 19738 19739 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 19740else 19741 if test -n "$x_includes"; then 19742 X_CFLAGS="$X_CFLAGS -I$x_includes" 19743 fi 19744 19745 # It would also be nice to do this for all -L options, not just this one. 19746 if test -n "$x_libraries"; then 19747 X_LIBS="$X_LIBS -L$x_libraries" 19748 # For Solaris; some versions of Sun CC require a space after -R and 19749 # others require no space. Words are not sufficient . . . . 19750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 19751$as_echo_n "checking whether -R must be followed by a space... " >&6; } 19752 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 19753 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 19754 ac_cxx_werror_flag=yes 19755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19756/* end confdefs.h. */ 19757 19758int 19759main () 19760{ 19761 19762 ; 19763 return 0; 19764} 19765_ACEOF 19766if ac_fn_cxx_try_link "$LINENO"; then : 19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19768$as_echo "no" >&6; } 19769 X_LIBS="$X_LIBS -R$x_libraries" 19770else 19771 LIBS="$ac_xsave_LIBS -R $x_libraries" 19772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19773/* end confdefs.h. */ 19774 19775int 19776main () 19777{ 19778 19779 ; 19780 return 0; 19781} 19782_ACEOF 19783if ac_fn_cxx_try_link "$LINENO"; then : 19784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19785$as_echo "yes" >&6; } 19786 X_LIBS="$X_LIBS -R $x_libraries" 19787else 19788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 19789$as_echo "neither works" >&6; } 19790fi 19791rm -f core conftest.err conftest.$ac_objext \ 19792 conftest$ac_exeext conftest.$ac_ext 19793fi 19794rm -f core conftest.err conftest.$ac_objext \ 19795 conftest$ac_exeext conftest.$ac_ext 19796 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 19797 LIBS=$ac_xsave_LIBS 19798 fi 19799 19800 # Check for system-dependent libraries X programs must link with. 19801 # Do this before checking for the system-independent R6 libraries 19802 # (-lICE), since we may need -lsocket or whatever for X linking. 19803 19804 if test "$ISC" = yes; then 19805 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 19806 else 19807 # Martyn Johnson says this is needed for Ultrix, if the X 19808 # libraries were built with DECnet support. And Karl Berry says 19809 # the Alpha needs dnet_stub (dnet does not exist). 19810 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 19811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19812/* end confdefs.h. */ 19813 19814/* Override any GCC internal prototype to avoid an error. 19815 Use char because int might match the return type of a GCC 19816 builtin and then its argument prototype would still apply. */ 19817#ifdef __cplusplus 19818extern "C" 19819#endif 19820char XOpenDisplay (); 19821int 19822main () 19823{ 19824return XOpenDisplay (); 19825 ; 19826 return 0; 19827} 19828_ACEOF 19829if ac_fn_cxx_try_link "$LINENO"; then : 19830 19831else 19832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 19833$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 19834if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 19835 $as_echo_n "(cached) " >&6 19836else 19837 ac_check_lib_save_LIBS=$LIBS 19838LIBS="-ldnet $LIBS" 19839cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19840/* end confdefs.h. */ 19841 19842/* Override any GCC internal prototype to avoid an error. 19843 Use char because int might match the return type of a GCC 19844 builtin and then its argument prototype would still apply. */ 19845#ifdef __cplusplus 19846extern "C" 19847#endif 19848char dnet_ntoa (); 19849int 19850main () 19851{ 19852return dnet_ntoa (); 19853 ; 19854 return 0; 19855} 19856_ACEOF 19857if ac_fn_cxx_try_link "$LINENO"; then : 19858 ac_cv_lib_dnet_dnet_ntoa=yes 19859else 19860 ac_cv_lib_dnet_dnet_ntoa=no 19861fi 19862rm -f core conftest.err conftest.$ac_objext \ 19863 conftest$ac_exeext conftest.$ac_ext 19864LIBS=$ac_check_lib_save_LIBS 19865fi 19866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 19867$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 19868if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 19869 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 19870fi 19871 19872 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 19873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 19874$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 19875if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 19876 $as_echo_n "(cached) " >&6 19877else 19878 ac_check_lib_save_LIBS=$LIBS 19879LIBS="-ldnet_stub $LIBS" 19880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19881/* end confdefs.h. */ 19882 19883/* Override any GCC internal prototype to avoid an error. 19884 Use char because int might match the return type of a GCC 19885 builtin and then its argument prototype would still apply. */ 19886#ifdef __cplusplus 19887extern "C" 19888#endif 19889char dnet_ntoa (); 19890int 19891main () 19892{ 19893return dnet_ntoa (); 19894 ; 19895 return 0; 19896} 19897_ACEOF 19898if ac_fn_cxx_try_link "$LINENO"; then : 19899 ac_cv_lib_dnet_stub_dnet_ntoa=yes 19900else 19901 ac_cv_lib_dnet_stub_dnet_ntoa=no 19902fi 19903rm -f core conftest.err conftest.$ac_objext \ 19904 conftest$ac_exeext conftest.$ac_ext 19905LIBS=$ac_check_lib_save_LIBS 19906fi 19907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 19908$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 19909if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 19910 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 19911fi 19912 19913 fi 19914fi 19915rm -f core conftest.err conftest.$ac_objext \ 19916 conftest$ac_exeext conftest.$ac_ext 19917 LIBS="$ac_xsave_LIBS" 19918 19919 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 19920 # to get the SysV transport functions. 19921 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 19922 # needs -lnsl. 19923 # The nsl library prevents programs from opening the X display 19924 # on Irix 5.2, according to T.E. Dickey. 19925 # The functions gethostbyname, getservbyname, and inet_addr are 19926 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 19927 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 19928if test "x$ac_cv_func_gethostbyname" = xyes; then : 19929 19930fi 19931 19932 if test $ac_cv_func_gethostbyname = no; then 19933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 19934$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 19935if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 19936 $as_echo_n "(cached) " >&6 19937else 19938 ac_check_lib_save_LIBS=$LIBS 19939LIBS="-lnsl $LIBS" 19940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19941/* end confdefs.h. */ 19942 19943/* Override any GCC internal prototype to avoid an error. 19944 Use char because int might match the return type of a GCC 19945 builtin and then its argument prototype would still apply. */ 19946#ifdef __cplusplus 19947extern "C" 19948#endif 19949char gethostbyname (); 19950int 19951main () 19952{ 19953return gethostbyname (); 19954 ; 19955 return 0; 19956} 19957_ACEOF 19958if ac_fn_cxx_try_link "$LINENO"; then : 19959 ac_cv_lib_nsl_gethostbyname=yes 19960else 19961 ac_cv_lib_nsl_gethostbyname=no 19962fi 19963rm -f core conftest.err conftest.$ac_objext \ 19964 conftest$ac_exeext conftest.$ac_ext 19965LIBS=$ac_check_lib_save_LIBS 19966fi 19967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 19968$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 19969if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 19970 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 19971fi 19972 19973 if test $ac_cv_lib_nsl_gethostbyname = no; then 19974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 19975$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 19976if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 19977 $as_echo_n "(cached) " >&6 19978else 19979 ac_check_lib_save_LIBS=$LIBS 19980LIBS="-lbsd $LIBS" 19981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19982/* end confdefs.h. */ 19983 19984/* Override any GCC internal prototype to avoid an error. 19985 Use char because int might match the return type of a GCC 19986 builtin and then its argument prototype would still apply. */ 19987#ifdef __cplusplus 19988extern "C" 19989#endif 19990char gethostbyname (); 19991int 19992main () 19993{ 19994return gethostbyname (); 19995 ; 19996 return 0; 19997} 19998_ACEOF 19999if ac_fn_cxx_try_link "$LINENO"; then : 20000 ac_cv_lib_bsd_gethostbyname=yes 20001else 20002 ac_cv_lib_bsd_gethostbyname=no 20003fi 20004rm -f core conftest.err conftest.$ac_objext \ 20005 conftest$ac_exeext conftest.$ac_ext 20006LIBS=$ac_check_lib_save_LIBS 20007fi 20008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 20009$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 20010if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 20011 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 20012fi 20013 20014 fi 20015 fi 20016 20017 # lieder@skyler.mavd.honeywell.com says without -lsocket, 20018 # socket/setsockopt and other routines are undefined under SCO ODT 20019 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 20020 # on later versions), says Simon Leinen: it contains gethostby* 20021 # variants that don't use the name server (or something). -lsocket 20022 # must be given before -lnsl if both are needed. We assume that 20023 # if connect needs -lnsl, so does gethostbyname. 20024 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 20025if test "x$ac_cv_func_connect" = xyes; then : 20026 20027fi 20028 20029 if test $ac_cv_func_connect = no; then 20030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 20031$as_echo_n "checking for connect in -lsocket... " >&6; } 20032if ${ac_cv_lib_socket_connect+:} false; then : 20033 $as_echo_n "(cached) " >&6 20034else 20035 ac_check_lib_save_LIBS=$LIBS 20036LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 20037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20038/* end confdefs.h. */ 20039 20040/* Override any GCC internal prototype to avoid an error. 20041 Use char because int might match the return type of a GCC 20042 builtin and then its argument prototype would still apply. */ 20043#ifdef __cplusplus 20044extern "C" 20045#endif 20046char connect (); 20047int 20048main () 20049{ 20050return connect (); 20051 ; 20052 return 0; 20053} 20054_ACEOF 20055if ac_fn_cxx_try_link "$LINENO"; then : 20056 ac_cv_lib_socket_connect=yes 20057else 20058 ac_cv_lib_socket_connect=no 20059fi 20060rm -f core conftest.err conftest.$ac_objext \ 20061 conftest$ac_exeext conftest.$ac_ext 20062LIBS=$ac_check_lib_save_LIBS 20063fi 20064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 20065$as_echo "$ac_cv_lib_socket_connect" >&6; } 20066if test "x$ac_cv_lib_socket_connect" = xyes; then : 20067 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 20068fi 20069 20070 fi 20071 20072 # Guillermo Gomez says -lposix is necessary on A/UX. 20073 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 20074if test "x$ac_cv_func_remove" = xyes; then : 20075 20076fi 20077 20078 if test $ac_cv_func_remove = no; then 20079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 20080$as_echo_n "checking for remove in -lposix... " >&6; } 20081if ${ac_cv_lib_posix_remove+:} false; then : 20082 $as_echo_n "(cached) " >&6 20083else 20084 ac_check_lib_save_LIBS=$LIBS 20085LIBS="-lposix $LIBS" 20086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20087/* end confdefs.h. */ 20088 20089/* Override any GCC internal prototype to avoid an error. 20090 Use char because int might match the return type of a GCC 20091 builtin and then its argument prototype would still apply. */ 20092#ifdef __cplusplus 20093extern "C" 20094#endif 20095char remove (); 20096int 20097main () 20098{ 20099return remove (); 20100 ; 20101 return 0; 20102} 20103_ACEOF 20104if ac_fn_cxx_try_link "$LINENO"; then : 20105 ac_cv_lib_posix_remove=yes 20106else 20107 ac_cv_lib_posix_remove=no 20108fi 20109rm -f core conftest.err conftest.$ac_objext \ 20110 conftest$ac_exeext conftest.$ac_ext 20111LIBS=$ac_check_lib_save_LIBS 20112fi 20113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 20114$as_echo "$ac_cv_lib_posix_remove" >&6; } 20115if test "x$ac_cv_lib_posix_remove" = xyes; then : 20116 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 20117fi 20118 20119 fi 20120 20121 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 20122 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 20123if test "x$ac_cv_func_shmat" = xyes; then : 20124 20125fi 20126 20127 if test $ac_cv_func_shmat = no; then 20128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 20129$as_echo_n "checking for shmat in -lipc... " >&6; } 20130if ${ac_cv_lib_ipc_shmat+:} false; then : 20131 $as_echo_n "(cached) " >&6 20132else 20133 ac_check_lib_save_LIBS=$LIBS 20134LIBS="-lipc $LIBS" 20135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20136/* end confdefs.h. */ 20137 20138/* Override any GCC internal prototype to avoid an error. 20139 Use char because int might match the return type of a GCC 20140 builtin and then its argument prototype would still apply. */ 20141#ifdef __cplusplus 20142extern "C" 20143#endif 20144char shmat (); 20145int 20146main () 20147{ 20148return shmat (); 20149 ; 20150 return 0; 20151} 20152_ACEOF 20153if ac_fn_cxx_try_link "$LINENO"; then : 20154 ac_cv_lib_ipc_shmat=yes 20155else 20156 ac_cv_lib_ipc_shmat=no 20157fi 20158rm -f core conftest.err conftest.$ac_objext \ 20159 conftest$ac_exeext conftest.$ac_ext 20160LIBS=$ac_check_lib_save_LIBS 20161fi 20162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 20163$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 20164if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 20165 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 20166fi 20167 20168 fi 20169 fi 20170 20171 # Check for libraries that X11R6 Xt/Xaw programs need. 20172 ac_save_LDFLAGS=$LDFLAGS 20173 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 20174 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 20175 # check for ICE first), but we must link in the order -lSM -lICE or 20176 # we get undefined symbols. So assume we have SM if we have ICE. 20177 # These have to be linked with before -lX11, unlike the other 20178 # libraries we check for below, so use a different variable. 20179 # John Interrante, Karl Berry 20180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 20181$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 20182if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 20183 $as_echo_n "(cached) " >&6 20184else 20185 ac_check_lib_save_LIBS=$LIBS 20186LIBS="-lICE $X_EXTRA_LIBS $LIBS" 20187cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20188/* end confdefs.h. */ 20189 20190/* Override any GCC internal prototype to avoid an error. 20191 Use char because int might match the return type of a GCC 20192 builtin and then its argument prototype would still apply. */ 20193#ifdef __cplusplus 20194extern "C" 20195#endif 20196char IceConnectionNumber (); 20197int 20198main () 20199{ 20200return IceConnectionNumber (); 20201 ; 20202 return 0; 20203} 20204_ACEOF 20205if ac_fn_cxx_try_link "$LINENO"; then : 20206 ac_cv_lib_ICE_IceConnectionNumber=yes 20207else 20208 ac_cv_lib_ICE_IceConnectionNumber=no 20209fi 20210rm -f core conftest.err conftest.$ac_objext \ 20211 conftest$ac_exeext conftest.$ac_ext 20212LIBS=$ac_check_lib_save_LIBS 20213fi 20214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 20215$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 20216if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 20217 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 20218fi 20219 20220 LDFLAGS=$ac_save_LDFLAGS 20221 20222fi 20223 20224if test -n "$X_CFLAGS"; then 20225CPPFLAGS="$CPPFLAGS $X_CFLAGS" 20226fi 20227if test -n "$X_LIBS"; then 20228LDFLAGS="$LDFLAGS $X_LIBS" 20229fi 20230if test -n "$X_PRE_LIBS"; then 20231LDFLAGS="$LDFLAGS $X_PRE_LIBS" 20232fi 20233if test -n "$X_EXTRA_LIBS"; then 20234LDFLAGS="$LDFLAGS $X_EXTRA_LIBS" 20235fi 20236 20237# Checks for libraries. 20238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lX11" >&5 20239$as_echo_n "checking for main in -lX11... " >&6; } 20240if ${ac_cv_lib_X11_main+:} false; then : 20241 $as_echo_n "(cached) " >&6 20242else 20243 ac_check_lib_save_LIBS=$LIBS 20244LIBS="-lX11 $LIBS" 20245cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20246/* end confdefs.h. */ 20247 20248 20249int 20250main () 20251{ 20252return main (); 20253 ; 20254 return 0; 20255} 20256_ACEOF 20257if ac_fn_cxx_try_link "$LINENO"; then : 20258 ac_cv_lib_X11_main=yes 20259else 20260 ac_cv_lib_X11_main=no 20261fi 20262rm -f core conftest.err conftest.$ac_objext \ 20263 conftest$ac_exeext conftest.$ac_ext 20264LIBS=$ac_check_lib_save_LIBS 20265fi 20266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_main" >&5 20267$as_echo "$ac_cv_lib_X11_main" >&6; } 20268if test "x$ac_cv_lib_X11_main" = xyes; then : 20269 cat >>confdefs.h <<_ACEOF 20270#define HAVE_LIBX11 1 20271_ACEOF 20272 20273 LIBS="-lX11 $LIBS" 20274 20275else 20276 as_fn_error $? "X11 lib not found" "$LINENO" 5 20277fi 20278 20279fi 20280 20281 20282 20283 20284 20285COMMONLIB_INCLUDE_DIR=../lib/src 20286 20287COMMONLIB_LIBRARY=../lib/src/libcommon.la 20288 20289 20290 20291ac_config_files="$ac_config_files Makefile stardict.spec stardict-withoutgnome.spec data/Makefile doc/Makefile debian-upstream/Makefile mac_dist/Makefile mac_dist/zh_CN.lproj/Makefile msvc_2008/Makefile po/Makefile.in m4/Makefile src/Makefile src/sigc++/Makefile src/sigc++config/Makefile src/lib/Makefile src/pixmaps/Makefile src/sounds/Makefile src/dic/Makefile src/dic/stardict-dict/Makefile src/dic/stardict-dict/res/Makefile src/skins/Makefile src/treedict/Makefile src/win32/Makefile src/win32/acrobat/Makefile src/win32/acrobat/sources/Makefile src/win32/acrobat/win32/Makefile src/win32/nsis/Makefile src/win32/PortableApps.com/Makefile stardict-plugins/Makefile stardict-plugins/stardict-advertisement-plugin/Makefile stardict-plugins/stardict-advertisement-plugin/data/Makefile stardict-plugins/stardict-man-plugin/Makefile stardict-plugins/stardict-qqwry-plugin/Makefile stardict-plugins/stardict-dictdotcn-plugin/Makefile stardict-plugins/stardict-update-info-plugin/Makefile stardict-plugins/stardict-spell-plugin/Makefile stardict-plugins/stardict-gucharmap-plugin/Makefile stardict-plugins/stardict-festival-tts-plugin/Makefile stardict-plugins/stardict-espeak-tts-plugin/Makefile stardict-plugins/stardict-wiki-parsedata-plugin/Makefile stardict-plugins/stardict-powerword-parsedata-plugin/Makefile stardict-plugins/stardict-xdxf-parsedata-plugin/Makefile stardict-plugins/stardict-wordnet-plugin/Makefile stardict-plugins/stardict-html-parsedata-plugin/Makefile stardict-plugins/stardict-sapi-tts-plugin/Makefile tests/Makefile pixmaps/Makefile help/Makefile" 20292 20293cat >confcache <<\_ACEOF 20294# This file is a shell script that caches the results of configure 20295# tests run on this system so they can be shared between configure 20296# scripts and configure runs, see configure's option --config-cache. 20297# It is not useful on other systems. If it contains results you don't 20298# want to keep, you may remove or edit it. 20299# 20300# config.status only pays attention to the cache file if you give it 20301# the --recheck option to rerun configure. 20302# 20303# `ac_cv_env_foo' variables (set or unset) will be overridden when 20304# loading this file, other *unset* `ac_cv_foo' will be assigned the 20305# following values. 20306 20307_ACEOF 20308 20309# The following way of writing the cache mishandles newlines in values, 20310# but we know of no workaround that is simple, portable, and efficient. 20311# So, we kill variables containing newlines. 20312# Ultrix sh set writes to stderr and can't be redirected directly, 20313# and sets the high bit in the cache file unless we assign to the vars. 20314( 20315 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20316 eval ac_val=\$$ac_var 20317 case $ac_val in #( 20318 *${as_nl}*) 20319 case $ac_var in #( 20320 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20321$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20322 esac 20323 case $ac_var in #( 20324 _ | IFS | as_nl) ;; #( 20325 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20326 *) { eval $ac_var=; unset $ac_var;} ;; 20327 esac ;; 20328 esac 20329 done 20330 20331 (set) 2>&1 | 20332 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20333 *${as_nl}ac_space=\ *) 20334 # `set' does not quote correctly, so add quotes: double-quote 20335 # substitution turns \\\\ into \\, and sed turns \\ into \. 20336 sed -n \ 20337 "s/'/'\\\\''/g; 20338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20339 ;; #( 20340 *) 20341 # `set' quotes correctly as required by POSIX, so do not add quotes. 20342 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20343 ;; 20344 esac | 20345 sort 20346) | 20347 sed ' 20348 /^ac_cv_env_/b end 20349 t clear 20350 :clear 20351 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20352 t end 20353 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20354 :end' >>confcache 20355if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20356 if test -w "$cache_file"; then 20357 if test "x$cache_file" != "x/dev/null"; then 20358 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20359$as_echo "$as_me: updating cache $cache_file" >&6;} 20360 if test ! -f "$cache_file" || test -h "$cache_file"; then 20361 cat confcache >"$cache_file" 20362 else 20363 case $cache_file in #( 20364 */* | ?:*) 20365 mv -f confcache "$cache_file"$$ && 20366 mv -f "$cache_file"$$ "$cache_file" ;; #( 20367 *) 20368 mv -f confcache "$cache_file" ;; 20369 esac 20370 fi 20371 fi 20372 else 20373 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20374$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20375 fi 20376fi 20377rm -f confcache 20378 20379test "x$prefix" = xNONE && prefix=$ac_default_prefix 20380# Let make expand exec_prefix. 20381test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20382 20383DEFS=-DHAVE_CONFIG_H 20384 20385ac_libobjs= 20386ac_ltlibobjs= 20387U= 20388for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20389 # 1. Remove the extension, and $U if already installed. 20390 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20391 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20392 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20393 # will be set to the directory where LIBOBJS objects are built. 20394 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20395 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20396done 20397LIBOBJS=$ac_libobjs 20398 20399LTLIBOBJS=$ac_ltlibobjs 20400 20401 20402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20403$as_echo_n "checking that generated files are newer than configure... " >&6; } 20404 if test -n "$am_sleep_pid"; then 20405 # Hide warnings about reused PIDs. 20406 wait $am_sleep_pid 2>/dev/null 20407 fi 20408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20409$as_echo "done" >&6; } 20410 if test -n "$EXEEXT"; then 20411 am__EXEEXT_TRUE= 20412 am__EXEEXT_FALSE='#' 20413else 20414 am__EXEEXT_TRUE='#' 20415 am__EXEEXT_FALSE= 20416fi 20417 20418if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20419 as_fn_error $? "conditional \"AMDEP\" was never defined. 20420Usually this means the macro was only invoked conditionally." "$LINENO" 5 20421fi 20422if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20423 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20424Usually this means the macro was only invoked conditionally." "$LINENO" 5 20425fi 20426 20427 ac_config_commands="$ac_config_commands po/stamp-it" 20428 20429 20430if test -z "${ENABLE_SK_TRUE}" && test -z "${ENABLE_SK_FALSE}"; then 20431 as_fn_error $? "conditional \"ENABLE_SK\" was never defined. 20432Usually this means the macro was only invoked conditionally." "$LINENO" 5 20433fi 20434if test -z "${HAVE_GNOME_DOC_UTILS_TRUE}" && test -z "${HAVE_GNOME_DOC_UTILS_FALSE}"; then 20435 as_fn_error $? "conditional \"HAVE_GNOME_DOC_UTILS\" was never defined. 20436Usually this means the macro was only invoked conditionally." "$LINENO" 5 20437fi 20438if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20439 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20440Usually this means the macro was only invoked conditionally." "$LINENO" 5 20441fi 20442if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20443 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 20444Usually this means the macro was only invoked conditionally." "$LINENO" 5 20445fi 20446if test -z "${GNOME_SUPPORT_TRUE}" && test -z "${GNOME_SUPPORT_FALSE}"; then 20447 as_fn_error $? "conditional \"GNOME_SUPPORT\" was never defined. 20448Usually this means the macro was only invoked conditionally." "$LINENO" 5 20449fi 20450if test -z "${GPE_SUPPORT_TRUE}" && test -z "${GPE_SUPPORT_FALSE}"; then 20451 as_fn_error $? "conditional \"GPE_SUPPORT\" was never defined. 20452Usually this means the macro was only invoked conditionally." "$LINENO" 5 20453fi 20454if test -z "${MAEMO_SUPPORT_TRUE}" && test -z "${MAEMO_SUPPORT_FALSE}"; then 20455 as_fn_error $? "conditional \"MAEMO_SUPPORT\" was never defined. 20456Usually this means the macro was only invoked conditionally." "$LINENO" 5 20457fi 20458if test -z "${DARWIN_SUPPORT_TRUE}" && test -z "${DARWIN_SUPPORT_FALSE}"; then 20459 as_fn_error $? "conditional \"DARWIN_SUPPORT\" was never defined. 20460Usually this means the macro was only invoked conditionally." "$LINENO" 5 20461fi 20462if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then 20463 as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined. 20464Usually this means the macro was only invoked conditionally." "$LINENO" 5 20465fi 20466if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then 20467 as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined. 20468Usually this means the macro was only invoked conditionally." "$LINENO" 5 20469fi 20470if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then 20471 as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined. 20472Usually this means the macro was only invoked conditionally." "$LINENO" 5 20473fi 20474if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then 20475 as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined. 20476Usually this means the macro was only invoked conditionally." "$LINENO" 5 20477fi 20478if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then 20479 as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined. 20480Usually this means the macro was only invoked conditionally." "$LINENO" 5 20481fi 20482if test -z "${USE_SYSTEM_SIGCPP_TRUE}" && test -z "${USE_SYSTEM_SIGCPP_FALSE}"; then 20483 as_fn_error $? "conditional \"USE_SYSTEM_SIGCPP\" was never defined. 20484Usually this means the macro was only invoked conditionally." "$LINENO" 5 20485fi 20486 20487: "${CONFIG_STATUS=./config.status}" 20488ac_write_fail=0 20489ac_clean_files_save=$ac_clean_files 20490ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20491{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20492$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20493as_write_fail=0 20494cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20495#! $SHELL 20496# Generated by $as_me. 20497# Run this file to recreate the current configuration. 20498# Compiler output produced by configure, useful for debugging 20499# configure, is in config.log if it exists. 20500 20501debug=false 20502ac_cs_recheck=false 20503ac_cs_silent=false 20504 20505SHELL=\${CONFIG_SHELL-$SHELL} 20506export SHELL 20507_ASEOF 20508cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20509## -------------------- ## 20510## M4sh Initialization. ## 20511## -------------------- ## 20512 20513# Be more Bourne compatible 20514DUALCASE=1; export DUALCASE # for MKS sh 20515if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20516 emulate sh 20517 NULLCMD=: 20518 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20519 # is contrary to our usage. Disable this feature. 20520 alias -g '${1+"$@"}'='"$@"' 20521 setopt NO_GLOB_SUBST 20522else 20523 case `(set -o) 2>/dev/null` in #( 20524 *posix*) : 20525 set -o posix ;; #( 20526 *) : 20527 ;; 20528esac 20529fi 20530 20531 20532as_nl=' 20533' 20534export as_nl 20535# Printing a long string crashes Solaris 7 /usr/bin/printf. 20536as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20537as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20538as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20539# Prefer a ksh shell builtin over an external printf program on Solaris, 20540# but without wasting forks for bash or zsh. 20541if test -z "$BASH_VERSION$ZSH_VERSION" \ 20542 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20543 as_echo='print -r --' 20544 as_echo_n='print -rn --' 20545elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20546 as_echo='printf %s\n' 20547 as_echo_n='printf %s' 20548else 20549 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20550 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20551 as_echo_n='/usr/ucb/echo -n' 20552 else 20553 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20554 as_echo_n_body='eval 20555 arg=$1; 20556 case $arg in #( 20557 *"$as_nl"*) 20558 expr "X$arg" : "X\\(.*\\)$as_nl"; 20559 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20560 esac; 20561 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20562 ' 20563 export as_echo_n_body 20564 as_echo_n='sh -c $as_echo_n_body as_echo' 20565 fi 20566 export as_echo_body 20567 as_echo='sh -c $as_echo_body as_echo' 20568fi 20569 20570# The user is always right. 20571if test "${PATH_SEPARATOR+set}" != set; then 20572 PATH_SEPARATOR=: 20573 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20574 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20575 PATH_SEPARATOR=';' 20576 } 20577fi 20578 20579 20580# IFS 20581# We need space, tab and new line, in precisely that order. Quoting is 20582# there to prevent editors from complaining about space-tab. 20583# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20584# splitting by setting IFS to empty value.) 20585IFS=" "" $as_nl" 20586 20587# Find who we are. Look in the path if we contain no directory separator. 20588as_myself= 20589case $0 in #(( 20590 *[\\/]* ) as_myself=$0 ;; 20591 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20592for as_dir in $PATH 20593do 20594 IFS=$as_save_IFS 20595 test -z "$as_dir" && as_dir=. 20596 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20597 done 20598IFS=$as_save_IFS 20599 20600 ;; 20601esac 20602# We did not find ourselves, most probably we were run as `sh COMMAND' 20603# in which case we are not to be found in the path. 20604if test "x$as_myself" = x; then 20605 as_myself=$0 20606fi 20607if test ! -f "$as_myself"; then 20608 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20609 exit 1 20610fi 20611 20612# Unset variables that we do not need and which cause bugs (e.g. in 20613# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20614# suppresses any "Segmentation fault" message there. '((' could 20615# trigger a bug in pdksh 5.2.14. 20616for as_var in BASH_ENV ENV MAIL MAILPATH 20617do eval test x\${$as_var+set} = xset \ 20618 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20619done 20620PS1='$ ' 20621PS2='> ' 20622PS4='+ ' 20623 20624# NLS nuisances. 20625LC_ALL=C 20626export LC_ALL 20627LANGUAGE=C 20628export LANGUAGE 20629 20630# CDPATH. 20631(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20632 20633 20634# as_fn_error STATUS ERROR [LINENO LOG_FD] 20635# ---------------------------------------- 20636# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20637# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20638# script with STATUS, using 1 if that was 0. 20639as_fn_error () 20640{ 20641 as_status=$1; test $as_status -eq 0 && as_status=1 20642 if test "$4"; then 20643 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20644 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20645 fi 20646 $as_echo "$as_me: error: $2" >&2 20647 as_fn_exit $as_status 20648} # as_fn_error 20649 20650 20651# as_fn_set_status STATUS 20652# ----------------------- 20653# Set $? to STATUS, without forking. 20654as_fn_set_status () 20655{ 20656 return $1 20657} # as_fn_set_status 20658 20659# as_fn_exit STATUS 20660# ----------------- 20661# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20662as_fn_exit () 20663{ 20664 set +e 20665 as_fn_set_status $1 20666 exit $1 20667} # as_fn_exit 20668 20669# as_fn_unset VAR 20670# --------------- 20671# Portably unset VAR. 20672as_fn_unset () 20673{ 20674 { eval $1=; unset $1;} 20675} 20676as_unset=as_fn_unset 20677# as_fn_append VAR VALUE 20678# ---------------------- 20679# Append the text in VALUE to the end of the definition contained in VAR. Take 20680# advantage of any shell optimizations that allow amortized linear growth over 20681# repeated appends, instead of the typical quadratic growth present in naive 20682# implementations. 20683if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20684 eval 'as_fn_append () 20685 { 20686 eval $1+=\$2 20687 }' 20688else 20689 as_fn_append () 20690 { 20691 eval $1=\$$1\$2 20692 } 20693fi # as_fn_append 20694 20695# as_fn_arith ARG... 20696# ------------------ 20697# Perform arithmetic evaluation on the ARGs, and store the result in the 20698# global $as_val. Take advantage of shells that can avoid forks. The arguments 20699# must be portable across $(()) and expr. 20700if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20701 eval 'as_fn_arith () 20702 { 20703 as_val=$(( $* )) 20704 }' 20705else 20706 as_fn_arith () 20707 { 20708 as_val=`expr "$@" || test $? -eq 1` 20709 } 20710fi # as_fn_arith 20711 20712 20713if expr a : '\(a\)' >/dev/null 2>&1 && 20714 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20715 as_expr=expr 20716else 20717 as_expr=false 20718fi 20719 20720if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20721 as_basename=basename 20722else 20723 as_basename=false 20724fi 20725 20726if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20727 as_dirname=dirname 20728else 20729 as_dirname=false 20730fi 20731 20732as_me=`$as_basename -- "$0" || 20733$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20734 X"$0" : 'X\(//\)$' \| \ 20735 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20736$as_echo X/"$0" | 20737 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20738 s//\1/ 20739 q 20740 } 20741 /^X\/\(\/\/\)$/{ 20742 s//\1/ 20743 q 20744 } 20745 /^X\/\(\/\).*/{ 20746 s//\1/ 20747 q 20748 } 20749 s/.*/./; q'` 20750 20751# Avoid depending upon Character Ranges. 20752as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20753as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20754as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20755as_cr_digits='0123456789' 20756as_cr_alnum=$as_cr_Letters$as_cr_digits 20757 20758ECHO_C= ECHO_N= ECHO_T= 20759case `echo -n x` in #((((( 20760-n*) 20761 case `echo 'xy\c'` in 20762 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20763 xy) ECHO_C='\c';; 20764 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20765 ECHO_T=' ';; 20766 esac;; 20767*) 20768 ECHO_N='-n';; 20769esac 20770 20771rm -f conf$$ conf$$.exe conf$$.file 20772if test -d conf$$.dir; then 20773 rm -f conf$$.dir/conf$$.file 20774else 20775 rm -f conf$$.dir 20776 mkdir conf$$.dir 2>/dev/null 20777fi 20778if (echo >conf$$.file) 2>/dev/null; then 20779 if ln -s conf$$.file conf$$ 2>/dev/null; then 20780 as_ln_s='ln -s' 20781 # ... but there are two gotchas: 20782 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20783 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20784 # In both cases, we have to default to `cp -pR'. 20785 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20786 as_ln_s='cp -pR' 20787 elif ln conf$$.file conf$$ 2>/dev/null; then 20788 as_ln_s=ln 20789 else 20790 as_ln_s='cp -pR' 20791 fi 20792else 20793 as_ln_s='cp -pR' 20794fi 20795rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20796rmdir conf$$.dir 2>/dev/null 20797 20798 20799# as_fn_mkdir_p 20800# ------------- 20801# Create "$as_dir" as a directory, including parents if necessary. 20802as_fn_mkdir_p () 20803{ 20804 20805 case $as_dir in #( 20806 -*) as_dir=./$as_dir;; 20807 esac 20808 test -d "$as_dir" || eval $as_mkdir_p || { 20809 as_dirs= 20810 while :; do 20811 case $as_dir in #( 20812 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20813 *) as_qdir=$as_dir;; 20814 esac 20815 as_dirs="'$as_qdir' $as_dirs" 20816 as_dir=`$as_dirname -- "$as_dir" || 20817$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20818 X"$as_dir" : 'X\(//\)[^/]' \| \ 20819 X"$as_dir" : 'X\(//\)$' \| \ 20820 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20821$as_echo X"$as_dir" | 20822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20823 s//\1/ 20824 q 20825 } 20826 /^X\(\/\/\)[^/].*/{ 20827 s//\1/ 20828 q 20829 } 20830 /^X\(\/\/\)$/{ 20831 s//\1/ 20832 q 20833 } 20834 /^X\(\/\).*/{ 20835 s//\1/ 20836 q 20837 } 20838 s/.*/./; q'` 20839 test -d "$as_dir" && break 20840 done 20841 test -z "$as_dirs" || eval "mkdir $as_dirs" 20842 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20843 20844 20845} # as_fn_mkdir_p 20846if mkdir -p . 2>/dev/null; then 20847 as_mkdir_p='mkdir -p "$as_dir"' 20848else 20849 test -d ./-p && rmdir ./-p 20850 as_mkdir_p=false 20851fi 20852 20853 20854# as_fn_executable_p FILE 20855# ----------------------- 20856# Test if FILE is an executable regular file. 20857as_fn_executable_p () 20858{ 20859 test -f "$1" && test -x "$1" 20860} # as_fn_executable_p 20861as_test_x='test -x' 20862as_executable_p=as_fn_executable_p 20863 20864# Sed expression to map a string onto a valid CPP name. 20865as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20866 20867# Sed expression to map a string onto a valid variable name. 20868as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20869 20870 20871exec 6>&1 20872## ----------------------------------- ## 20873## Main body of $CONFIG_STATUS script. ## 20874## ----------------------------------- ## 20875_ASEOF 20876test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20877 20878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20879# Save the log message, to keep $0 and so on meaningful, and to 20880# report actual input values of CONFIG_FILES etc. instead of their 20881# values after options handling. 20882ac_log=" 20883This file was extended by StarDict $as_me 3.0.6, which was 20884generated by GNU Autoconf 2.69. Invocation command line was 20885 20886 CONFIG_FILES = $CONFIG_FILES 20887 CONFIG_HEADERS = $CONFIG_HEADERS 20888 CONFIG_LINKS = $CONFIG_LINKS 20889 CONFIG_COMMANDS = $CONFIG_COMMANDS 20890 $ $0 $@ 20891 20892on `(hostname || uname -n) 2>/dev/null | sed 1q` 20893" 20894 20895_ACEOF 20896 20897case $ac_config_files in *" 20898"*) set x $ac_config_files; shift; ac_config_files=$*;; 20899esac 20900 20901case $ac_config_headers in *" 20902"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20903esac 20904 20905 20906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20907# Files that config.status was made for. 20908config_files="$ac_config_files" 20909config_headers="$ac_config_headers" 20910config_commands="$ac_config_commands" 20911 20912_ACEOF 20913 20914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20915ac_cs_usage="\ 20916\`$as_me' instantiates files and other configuration actions 20917from templates according to the current configuration. Unless the files 20918and actions are specified as TAGs, all are instantiated by default. 20919 20920Usage: $0 [OPTION]... [TAG]... 20921 20922 -h, --help print this help, then exit 20923 -V, --version print version number and configuration settings, then exit 20924 --config print configuration, then exit 20925 -q, --quiet, --silent 20926 do not print progress messages 20927 -d, --debug don't remove temporary files 20928 --recheck update $as_me by reconfiguring in the same conditions 20929 --file=FILE[:TEMPLATE] 20930 instantiate the configuration file FILE 20931 --header=FILE[:TEMPLATE] 20932 instantiate the configuration header FILE 20933 20934Configuration files: 20935$config_files 20936 20937Configuration headers: 20938$config_headers 20939 20940Configuration commands: 20941$config_commands 20942 20943Report bugs to <http://www.stardict.org>." 20944 20945_ACEOF 20946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20947ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20948ac_cs_version="\\ 20949StarDict config.status 3.0.6 20950configured by $0, generated by GNU Autoconf 2.69, 20951 with options \\"\$ac_cs_config\\" 20952 20953Copyright (C) 2012 Free Software Foundation, Inc. 20954This config.status script is free software; the Free Software Foundation 20955gives unlimited permission to copy, distribute and modify it." 20956 20957ac_pwd='$ac_pwd' 20958srcdir='$srcdir' 20959INSTALL='$INSTALL' 20960MKDIR_P='$MKDIR_P' 20961AWK='$AWK' 20962test -n "\$AWK" || AWK=awk 20963_ACEOF 20964 20965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20966# The default lists apply if the user does not specify any file. 20967ac_need_defaults=: 20968while test $# != 0 20969do 20970 case $1 in 20971 --*=?*) 20972 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20973 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20974 ac_shift=: 20975 ;; 20976 --*=) 20977 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20978 ac_optarg= 20979 ac_shift=: 20980 ;; 20981 *) 20982 ac_option=$1 20983 ac_optarg=$2 20984 ac_shift=shift 20985 ;; 20986 esac 20987 20988 case $ac_option in 20989 # Handling of the options. 20990 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20991 ac_cs_recheck=: ;; 20992 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20993 $as_echo "$ac_cs_version"; exit ;; 20994 --config | --confi | --conf | --con | --co | --c ) 20995 $as_echo "$ac_cs_config"; exit ;; 20996 --debug | --debu | --deb | --de | --d | -d ) 20997 debug=: ;; 20998 --file | --fil | --fi | --f ) 20999 $ac_shift 21000 case $ac_optarg in 21001 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21002 '') as_fn_error $? "missing file argument" ;; 21003 esac 21004 as_fn_append CONFIG_FILES " '$ac_optarg'" 21005 ac_need_defaults=false;; 21006 --header | --heade | --head | --hea ) 21007 $ac_shift 21008 case $ac_optarg in 21009 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21010 esac 21011 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21012 ac_need_defaults=false;; 21013 --he | --h) 21014 # Conflict between --help and --header 21015 as_fn_error $? "ambiguous option: \`$1' 21016Try \`$0 --help' for more information.";; 21017 --help | --hel | -h ) 21018 $as_echo "$ac_cs_usage"; exit ;; 21019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21020 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21021 ac_cs_silent=: ;; 21022 21023 # This is an error. 21024 -*) as_fn_error $? "unrecognized option: \`$1' 21025Try \`$0 --help' for more information." ;; 21026 21027 *) as_fn_append ac_config_targets " $1" 21028 ac_need_defaults=false ;; 21029 21030 esac 21031 shift 21032done 21033 21034ac_configure_extra_args= 21035 21036if $ac_cs_silent; then 21037 exec 6>/dev/null 21038 ac_configure_extra_args="$ac_configure_extra_args --silent" 21039fi 21040 21041_ACEOF 21042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21043if \$ac_cs_recheck; then 21044 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21045 shift 21046 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21047 CONFIG_SHELL='$SHELL' 21048 export CONFIG_SHELL 21049 exec "\$@" 21050fi 21051 21052_ACEOF 21053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21054exec 5>>config.log 21055{ 21056 echo 21057 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21058## Running $as_me. ## 21059_ASBOX 21060 $as_echo "$ac_log" 21061} >&5 21062 21063_ACEOF 21064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21065# 21066# INIT-COMMANDS 21067# 21068AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21069 21070 21071# The HP-UX ksh and POSIX shell print the target directory to stdout 21072# if CDPATH is set. 21073(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21074 21075sed_quote_subst='$sed_quote_subst' 21076double_quote_subst='$double_quote_subst' 21077delay_variable_subst='$delay_variable_subst' 21078enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21079macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21080macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21081enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21082pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21083enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21084SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21085ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21086PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21087host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21088host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21089host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21090build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21091build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21092build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21093SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21094Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21095GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21096EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21097FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21098LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21099NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21100LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21101max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21102ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21103exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21104lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21105lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21106lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21107lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21108lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21109reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21110reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21111OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21112deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21113file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21114file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21115want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21116DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21117sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21118AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21119AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21120archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21121STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21122RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21123old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21124old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21125old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21126lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21127CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21128CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21129compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21130GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21131lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21132lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21133lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21134lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 21135nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21136lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21137objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21138MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21139lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21140lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21141lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21142lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21143lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21144need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21145MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21146DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21147NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21148LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21149OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21150OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21151libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21152shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21153extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21154archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21155enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21156export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21157whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21158compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21159old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21160old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21161archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21162archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21163module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21164module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21165with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21166allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21167no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21168hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21169hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21170hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21171hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21172hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21173hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21174hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21175inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21176link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21177always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21178export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21179exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21180include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21181prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21182postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21183file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21184variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21185need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21186need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21187version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21188runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21189shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21190shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21191libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21192library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21193soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21194install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21195postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21196postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21197finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21198finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21199hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21200sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21201sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 21202hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21203enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21204enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21205enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21206old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21207striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21208compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 21209predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 21210postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 21211predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 21212postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 21213compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 21214LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 21215reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 21216reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21217old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21218compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 21219GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 21220lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 21221lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 21222lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 21223lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 21224lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 21225archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 21226enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 21227export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21228whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21229compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 21230old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21231old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21232archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21233archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21234module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21235module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21236with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 21237allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21238no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21239hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21240hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 21241hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 21242hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 21243hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 21244hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 21245hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 21246inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 21247link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 21248always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 21249export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21250exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21251include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21252prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21253postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21254file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 21255hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 21256compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 21257predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21258postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21259predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 21260postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 21261compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 21262 21263LTCC='$LTCC' 21264LTCFLAGS='$LTCFLAGS' 21265compiler='$compiler_DEFAULT' 21266 21267# A function that is used when there is no print builtin or printf. 21268func_fallback_echo () 21269{ 21270 eval 'cat <<_LTECHO_EOF 21271\$1 21272_LTECHO_EOF' 21273} 21274 21275# Quote evaled strings. 21276for var in SHELL \ 21277ECHO \ 21278PATH_SEPARATOR \ 21279SED \ 21280GREP \ 21281EGREP \ 21282FGREP \ 21283LD \ 21284NM \ 21285LN_S \ 21286lt_SP2NL \ 21287lt_NL2SP \ 21288reload_flag \ 21289OBJDUMP \ 21290deplibs_check_method \ 21291file_magic_cmd \ 21292file_magic_glob \ 21293want_nocaseglob \ 21294DLLTOOL \ 21295sharedlib_from_linklib_cmd \ 21296AR \ 21297AR_FLAGS \ 21298archiver_list_spec \ 21299STRIP \ 21300RANLIB \ 21301CC \ 21302CFLAGS \ 21303compiler \ 21304lt_cv_sys_global_symbol_pipe \ 21305lt_cv_sys_global_symbol_to_cdecl \ 21306lt_cv_sys_global_symbol_to_c_name_address \ 21307lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21308nm_file_list_spec \ 21309lt_prog_compiler_no_builtin_flag \ 21310lt_prog_compiler_pic \ 21311lt_prog_compiler_wl \ 21312lt_prog_compiler_static \ 21313lt_cv_prog_compiler_c_o \ 21314need_locks \ 21315MANIFEST_TOOL \ 21316DSYMUTIL \ 21317NMEDIT \ 21318LIPO \ 21319OTOOL \ 21320OTOOL64 \ 21321shrext_cmds \ 21322export_dynamic_flag_spec \ 21323whole_archive_flag_spec \ 21324compiler_needs_object \ 21325with_gnu_ld \ 21326allow_undefined_flag \ 21327no_undefined_flag \ 21328hardcode_libdir_flag_spec \ 21329hardcode_libdir_separator \ 21330exclude_expsyms \ 21331include_expsyms \ 21332file_list_spec \ 21333variables_saved_for_relink \ 21334libname_spec \ 21335library_names_spec \ 21336soname_spec \ 21337install_override_mode \ 21338finish_eval \ 21339old_striplib \ 21340striplib \ 21341compiler_lib_search_dirs \ 21342predep_objects \ 21343postdep_objects \ 21344predeps \ 21345postdeps \ 21346compiler_lib_search_path \ 21347LD_CXX \ 21348reload_flag_CXX \ 21349compiler_CXX \ 21350lt_prog_compiler_no_builtin_flag_CXX \ 21351lt_prog_compiler_pic_CXX \ 21352lt_prog_compiler_wl_CXX \ 21353lt_prog_compiler_static_CXX \ 21354lt_cv_prog_compiler_c_o_CXX \ 21355export_dynamic_flag_spec_CXX \ 21356whole_archive_flag_spec_CXX \ 21357compiler_needs_object_CXX \ 21358with_gnu_ld_CXX \ 21359allow_undefined_flag_CXX \ 21360no_undefined_flag_CXX \ 21361hardcode_libdir_flag_spec_CXX \ 21362hardcode_libdir_separator_CXX \ 21363exclude_expsyms_CXX \ 21364include_expsyms_CXX \ 21365file_list_spec_CXX \ 21366compiler_lib_search_dirs_CXX \ 21367predep_objects_CXX \ 21368postdep_objects_CXX \ 21369predeps_CXX \ 21370postdeps_CXX \ 21371compiler_lib_search_path_CXX; do 21372 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21373 *[\\\\\\\`\\"\\\$]*) 21374 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 21375 ;; 21376 *) 21377 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21378 ;; 21379 esac 21380done 21381 21382# Double-quote double-evaled strings. 21383for var in reload_cmds \ 21384old_postinstall_cmds \ 21385old_postuninstall_cmds \ 21386old_archive_cmds \ 21387extract_expsyms_cmds \ 21388old_archive_from_new_cmds \ 21389old_archive_from_expsyms_cmds \ 21390archive_cmds \ 21391archive_expsym_cmds \ 21392module_cmds \ 21393module_expsym_cmds \ 21394export_symbols_cmds \ 21395prelink_cmds \ 21396postlink_cmds \ 21397postinstall_cmds \ 21398postuninstall_cmds \ 21399finish_cmds \ 21400sys_lib_search_path_spec \ 21401sys_lib_dlsearch_path_spec \ 21402reload_cmds_CXX \ 21403old_archive_cmds_CXX \ 21404old_archive_from_new_cmds_CXX \ 21405old_archive_from_expsyms_cmds_CXX \ 21406archive_cmds_CXX \ 21407archive_expsym_cmds_CXX \ 21408module_cmds_CXX \ 21409module_expsym_cmds_CXX \ 21410export_symbols_cmds_CXX \ 21411prelink_cmds_CXX \ 21412postlink_cmds_CXX; do 21413 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21414 *[\\\\\\\`\\"\\\$]*) 21415 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 21416 ;; 21417 *) 21418 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21419 ;; 21420 esac 21421done 21422 21423ac_aux_dir='$ac_aux_dir' 21424xsi_shell='$xsi_shell' 21425lt_shell_append='$lt_shell_append' 21426 21427# See if we are running on zsh, and set the options which allow our 21428# commands through without removal of \ escapes INIT. 21429if test -n "\${ZSH_VERSION+set}" ; then 21430 setopt NO_GLOB_SUBST 21431fi 21432 21433 21434 PACKAGE='$PACKAGE' 21435 VERSION='$VERSION' 21436 TIMESTAMP='$TIMESTAMP' 21437 RM='$RM' 21438 ofile='$ofile' 21439 21440 21441 21442 21443 21444 21445 21446_ACEOF 21447 21448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21449 21450# Handling of arguments. 21451for ac_config_target in $ac_config_targets 21452do 21453 case $ac_config_target in 21454 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21455 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21456 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21457 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 21458 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21459 "stardict.spec") CONFIG_FILES="$CONFIG_FILES stardict.spec" ;; 21460 "stardict-withoutgnome.spec") CONFIG_FILES="$CONFIG_FILES stardict-withoutgnome.spec" ;; 21461 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; 21462 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 21463 "debian-upstream/Makefile") CONFIG_FILES="$CONFIG_FILES debian-upstream/Makefile" ;; 21464 "mac_dist/Makefile") CONFIG_FILES="$CONFIG_FILES mac_dist/Makefile" ;; 21465 "mac_dist/zh_CN.lproj/Makefile") CONFIG_FILES="$CONFIG_FILES mac_dist/zh_CN.lproj/Makefile" ;; 21466 "msvc_2008/Makefile") CONFIG_FILES="$CONFIG_FILES msvc_2008/Makefile" ;; 21467 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 21468 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 21469 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21470 "src/sigc++/Makefile") CONFIG_FILES="$CONFIG_FILES src/sigc++/Makefile" ;; 21471 "src/sigc++config/Makefile") CONFIG_FILES="$CONFIG_FILES src/sigc++config/Makefile" ;; 21472 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; 21473 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;; 21474 "src/sounds/Makefile") CONFIG_FILES="$CONFIG_FILES src/sounds/Makefile" ;; 21475 "src/dic/Makefile") CONFIG_FILES="$CONFIG_FILES src/dic/Makefile" ;; 21476 "src/dic/stardict-dict/Makefile") CONFIG_FILES="$CONFIG_FILES src/dic/stardict-dict/Makefile" ;; 21477 "src/dic/stardict-dict/res/Makefile") CONFIG_FILES="$CONFIG_FILES src/dic/stardict-dict/res/Makefile" ;; 21478 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;; 21479 "src/treedict/Makefile") CONFIG_FILES="$CONFIG_FILES src/treedict/Makefile" ;; 21480 "src/win32/Makefile") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;; 21481 "src/win32/acrobat/Makefile") CONFIG_FILES="$CONFIG_FILES src/win32/acrobat/Makefile" ;; 21482 "src/win32/acrobat/sources/Makefile") CONFIG_FILES="$CONFIG_FILES src/win32/acrobat/sources/Makefile" ;; 21483 "src/win32/acrobat/win32/Makefile") CONFIG_FILES="$CONFIG_FILES src/win32/acrobat/win32/Makefile" ;; 21484 "src/win32/nsis/Makefile") CONFIG_FILES="$CONFIG_FILES src/win32/nsis/Makefile" ;; 21485 "src/win32/PortableApps.com/Makefile") CONFIG_FILES="$CONFIG_FILES src/win32/PortableApps.com/Makefile" ;; 21486 "stardict-plugins/Makefile") CONFIG_FILES="$CONFIG_FILES stardict-plugins/Makefile" ;; 21487 "stardict-plugins/stardict-advertisement-plugin/Makefile") CONFIG_FILES="$CONFIG_FILES stardict-plugins/stardict-advertisement-plugin/Makefile" ;; 21488 "stardict-plugins/stardict-advertisement-plugin/data/Makefile") CONFIG_FILES="$CONFIG_FILES stardict-plugins/stardict-advertisement-plugin/data/Makefile" ;; 21489 "stardict-plugins/stardict-man-plugin/Makefile") CONFIG_FILES="$CONFIG_FILES stardict-plugins/stardict-man-plugin/Makefile" ;; 21490 "stardict-plugins/stardict-qqwry-plugin/Makefile") CONFIG_FILES="$CONFIG_FILES stardict-plugins/stardict-qqwry-plugin/Makefile" ;; 21491 "stardict-plugins/stardict-dictdotcn-plugin/Makefile") CONFIG_FILES="$CONFIG_FILES stardict-plugins/stardict-dictdotcn-plugin/Makefile" ;; 21492 "stardict-plugins/stardict-update-info-plugin/Makefile") CONFIG_FILES="$CONFIG_FILES stardict-plugins/stardict-update-info-plugin/Makefile" ;; 21493 "stardict-plugins/stardict-spell-plugin/Makefile") CONFIG_FILES="$CONFIG_FILES stardict-plugins/stardict-spell-plugin/Makefile" ;; 21494 "stardict-plugins/stardict-gucharmap-plugin/Makefile") CONFIG_FILES="$CONFIG_FILES stardict-plugins/stardict-gucharmap-plugin/Makefile" ;; 21495 "stardict-plugins/stardict-festival-tts-plugin/Makefile") CONFIG_FILES="$CONFIG_FILES stardict-plugins/stardict-festival-tts-plugin/Makefile" ;; 21496 "stardict-plugins/stardict-espeak-tts-plugin/Makefile") CONFIG_FILES="$CONFIG_FILES stardict-plugins/stardict-espeak-tts-plugin/Makefile" ;; 21497 "stardict-plugins/stardict-wiki-parsedata-plugin/Makefile") CONFIG_FILES="$CONFIG_FILES stardict-plugins/stardict-wiki-parsedata-plugin/Makefile" ;; 21498 "stardict-plugins/stardict-powerword-parsedata-plugin/Makefile") CONFIG_FILES="$CONFIG_FILES stardict-plugins/stardict-powerword-parsedata-plugin/Makefile" ;; 21499 "stardict-plugins/stardict-xdxf-parsedata-plugin/Makefile") CONFIG_FILES="$CONFIG_FILES stardict-plugins/stardict-xdxf-parsedata-plugin/Makefile" ;; 21500 "stardict-plugins/stardict-wordnet-plugin/Makefile") CONFIG_FILES="$CONFIG_FILES stardict-plugins/stardict-wordnet-plugin/Makefile" ;; 21501 "stardict-plugins/stardict-html-parsedata-plugin/Makefile") CONFIG_FILES="$CONFIG_FILES stardict-plugins/stardict-html-parsedata-plugin/Makefile" ;; 21502 "stardict-plugins/stardict-sapi-tts-plugin/Makefile") CONFIG_FILES="$CONFIG_FILES stardict-plugins/stardict-sapi-tts-plugin/Makefile" ;; 21503 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 21504 "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;; 21505 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; 21506 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; 21507 21508 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21509 esac 21510done 21511 21512 21513# If the user did not use the arguments to specify the items to instantiate, 21514# then the envvar interface is used. Set only those that are not. 21515# We use the long form for the default assignment because of an extremely 21516# bizarre bug on SunOS 4.1.3. 21517if $ac_need_defaults; then 21518 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21519 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21520 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21521fi 21522 21523# Have a temporary directory for convenience. Make it in the build tree 21524# simply because there is no reason against having it here, and in addition, 21525# creating and moving files from /tmp can sometimes cause problems. 21526# Hook for its removal unless debugging. 21527# Note that there is a small window in which the directory will not be cleaned: 21528# after its creation but before its name has been assigned to `$tmp'. 21529$debug || 21530{ 21531 tmp= ac_tmp= 21532 trap 'exit_status=$? 21533 : "${ac_tmp:=$tmp}" 21534 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21535' 0 21536 trap 'as_fn_exit 1' 1 2 13 15 21537} 21538# Create a (secure) tmp directory for tmp files. 21539 21540{ 21541 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21542 test -d "$tmp" 21543} || 21544{ 21545 tmp=./conf$$-$RANDOM 21546 (umask 077 && mkdir "$tmp") 21547} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21548ac_tmp=$tmp 21549 21550# Set up the scripts for CONFIG_FILES section. 21551# No need to generate them if there are no CONFIG_FILES. 21552# This happens for instance with `./config.status config.h'. 21553if test -n "$CONFIG_FILES"; then 21554 21555 21556ac_cr=`echo X | tr X '\015'` 21557# On cygwin, bash can eat \r inside `` if the user requested igncr. 21558# But we know of no other shell where ac_cr would be empty at this 21559# point, so we can use a bashism as a fallback. 21560if test "x$ac_cr" = x; then 21561 eval ac_cr=\$\'\\r\' 21562fi 21563ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21564if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21565 ac_cs_awk_cr='\\r' 21566else 21567 ac_cs_awk_cr=$ac_cr 21568fi 21569 21570echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21571_ACEOF 21572 21573 21574{ 21575 echo "cat >conf$$subs.awk <<_ACEOF" && 21576 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21577 echo "_ACEOF" 21578} >conf$$subs.sh || 21579 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21580ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21581ac_delim='%!_!# ' 21582for ac_last_try in false false false false false :; do 21583 . ./conf$$subs.sh || 21584 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21585 21586 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21587 if test $ac_delim_n = $ac_delim_num; then 21588 break 21589 elif $ac_last_try; then 21590 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21591 else 21592 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21593 fi 21594done 21595rm -f conf$$subs.sh 21596 21597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21598cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21599_ACEOF 21600sed -n ' 21601h 21602s/^/S["/; s/!.*/"]=/ 21603p 21604g 21605s/^[^!]*!// 21606:repl 21607t repl 21608s/'"$ac_delim"'$// 21609t delim 21610:nl 21611h 21612s/\(.\{148\}\)..*/\1/ 21613t more1 21614s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21615p 21616n 21617b repl 21618:more1 21619s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21620p 21621g 21622s/.\{148\}// 21623t nl 21624:delim 21625h 21626s/\(.\{148\}\)..*/\1/ 21627t more2 21628s/["\\]/\\&/g; s/^/"/; s/$/"/ 21629p 21630b 21631:more2 21632s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21633p 21634g 21635s/.\{148\}// 21636t delim 21637' <conf$$subs.awk | sed ' 21638/^[^""]/{ 21639 N 21640 s/\n// 21641} 21642' >>$CONFIG_STATUS || ac_write_fail=1 21643rm -f conf$$subs.awk 21644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21645_ACAWK 21646cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21647 for (key in S) S_is_set[key] = 1 21648 FS = "" 21649 21650} 21651{ 21652 line = $ 0 21653 nfields = split(line, field, "@") 21654 substed = 0 21655 len = length(field[1]) 21656 for (i = 2; i < nfields; i++) { 21657 key = field[i] 21658 keylen = length(key) 21659 if (S_is_set[key]) { 21660 value = S[key] 21661 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21662 len += length(value) + length(field[++i]) 21663 substed = 1 21664 } else 21665 len += 1 + keylen 21666 } 21667 21668 print line 21669} 21670 21671_ACAWK 21672_ACEOF 21673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21674if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21675 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21676else 21677 cat 21678fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21679 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21680_ACEOF 21681 21682# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21683# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21684# trailing colons and then remove the whole line if VPATH becomes empty 21685# (actually we leave an empty line to preserve line numbers). 21686if test "x$srcdir" = x.; then 21687 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21688h 21689s/// 21690s/^/:/ 21691s/[ ]*$/:/ 21692s/:\$(srcdir):/:/g 21693s/:\${srcdir}:/:/g 21694s/:@srcdir@:/:/g 21695s/^:*// 21696s/:*$// 21697x 21698s/\(=[ ]*\).*/\1/ 21699G 21700s/\n// 21701s/^[^=]*=[ ]*$// 21702}' 21703fi 21704 21705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21706fi # test -n "$CONFIG_FILES" 21707 21708# Set up the scripts for CONFIG_HEADERS section. 21709# No need to generate them if there are no CONFIG_HEADERS. 21710# This happens for instance with `./config.status Makefile'. 21711if test -n "$CONFIG_HEADERS"; then 21712cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21713BEGIN { 21714_ACEOF 21715 21716# Transform confdefs.h into an awk script `defines.awk', embedded as 21717# here-document in config.status, that substitutes the proper values into 21718# config.h.in to produce config.h. 21719 21720# Create a delimiter string that does not exist in confdefs.h, to ease 21721# handling of long lines. 21722ac_delim='%!_!# ' 21723for ac_last_try in false false :; do 21724 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21725 if test -z "$ac_tt"; then 21726 break 21727 elif $ac_last_try; then 21728 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21729 else 21730 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21731 fi 21732done 21733 21734# For the awk script, D is an array of macro values keyed by name, 21735# likewise P contains macro parameters if any. Preserve backslash 21736# newline sequences. 21737 21738ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21739sed -n ' 21740s/.\{148\}/&'"$ac_delim"'/g 21741t rset 21742:rset 21743s/^[ ]*#[ ]*define[ ][ ]*/ / 21744t def 21745d 21746:def 21747s/\\$// 21748t bsnl 21749s/["\\]/\\&/g 21750s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21751D["\1"]=" \3"/p 21752s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21753d 21754:bsnl 21755s/["\\]/\\&/g 21756s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21757D["\1"]=" \3\\\\\\n"\\/p 21758t cont 21759s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21760t cont 21761d 21762:cont 21763n 21764s/.\{148\}/&'"$ac_delim"'/g 21765t clear 21766:clear 21767s/\\$// 21768t bsnlc 21769s/["\\]/\\&/g; s/^/"/; s/$/"/p 21770d 21771:bsnlc 21772s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21773b cont 21774' <confdefs.h | sed ' 21775s/'"$ac_delim"'/"\\\ 21776"/g' >>$CONFIG_STATUS || ac_write_fail=1 21777 21778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21779 for (key in D) D_is_set[key] = 1 21780 FS = "" 21781} 21782/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21783 line = \$ 0 21784 split(line, arg, " ") 21785 if (arg[1] == "#") { 21786 defundef = arg[2] 21787 mac1 = arg[3] 21788 } else { 21789 defundef = substr(arg[1], 2) 21790 mac1 = arg[2] 21791 } 21792 split(mac1, mac2, "(") #) 21793 macro = mac2[1] 21794 prefix = substr(line, 1, index(line, defundef) - 1) 21795 if (D_is_set[macro]) { 21796 # Preserve the white space surrounding the "#". 21797 print prefix "define", macro P[macro] D[macro] 21798 next 21799 } else { 21800 # Replace #undef with comments. This is necessary, for example, 21801 # in the case of _POSIX_SOURCE, which is predefined and required 21802 # on some systems where configure will not decide to define it. 21803 if (defundef == "undef") { 21804 print "/*", prefix defundef, macro, "*/" 21805 next 21806 } 21807 } 21808} 21809{ print } 21810_ACAWK 21811_ACEOF 21812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21813 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21814fi # test -n "$CONFIG_HEADERS" 21815 21816 21817eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21818shift 21819for ac_tag 21820do 21821 case $ac_tag in 21822 :[FHLC]) ac_mode=$ac_tag; continue;; 21823 esac 21824 case $ac_mode$ac_tag in 21825 :[FHL]*:*);; 21826 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21827 :[FH]-) ac_tag=-:-;; 21828 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21829 esac 21830 ac_save_IFS=$IFS 21831 IFS=: 21832 set x $ac_tag 21833 IFS=$ac_save_IFS 21834 shift 21835 ac_file=$1 21836 shift 21837 21838 case $ac_mode in 21839 :L) ac_source=$1;; 21840 :[FH]) 21841 ac_file_inputs= 21842 for ac_f 21843 do 21844 case $ac_f in 21845 -) ac_f="$ac_tmp/stdin";; 21846 *) # Look for the file first in the build tree, then in the source tree 21847 # (if the path is not absolute). The absolute path cannot be DOS-style, 21848 # because $ac_f cannot contain `:'. 21849 test -f "$ac_f" || 21850 case $ac_f in 21851 [\\/$]*) false;; 21852 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21853 esac || 21854 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21855 esac 21856 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21857 as_fn_append ac_file_inputs " '$ac_f'" 21858 done 21859 21860 # Let's still pretend it is `configure' which instantiates (i.e., don't 21861 # use $as_me), people would be surprised to read: 21862 # /* config.h. Generated by config.status. */ 21863 configure_input='Generated from '` 21864 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21865 `' by configure.' 21866 if test x"$ac_file" != x-; then 21867 configure_input="$ac_file. $configure_input" 21868 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21869$as_echo "$as_me: creating $ac_file" >&6;} 21870 fi 21871 # Neutralize special characters interpreted by sed in replacement strings. 21872 case $configure_input in #( 21873 *\&* | *\|* | *\\* ) 21874 ac_sed_conf_input=`$as_echo "$configure_input" | 21875 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21876 *) ac_sed_conf_input=$configure_input;; 21877 esac 21878 21879 case $ac_tag in 21880 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21881 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21882 esac 21883 ;; 21884 esac 21885 21886 ac_dir=`$as_dirname -- "$ac_file" || 21887$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21888 X"$ac_file" : 'X\(//\)[^/]' \| \ 21889 X"$ac_file" : 'X\(//\)$' \| \ 21890 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21891$as_echo X"$ac_file" | 21892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21893 s//\1/ 21894 q 21895 } 21896 /^X\(\/\/\)[^/].*/{ 21897 s//\1/ 21898 q 21899 } 21900 /^X\(\/\/\)$/{ 21901 s//\1/ 21902 q 21903 } 21904 /^X\(\/\).*/{ 21905 s//\1/ 21906 q 21907 } 21908 s/.*/./; q'` 21909 as_dir="$ac_dir"; as_fn_mkdir_p 21910 ac_builddir=. 21911 21912case "$ac_dir" in 21913.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21914*) 21915 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21916 # A ".." for each directory in $ac_dir_suffix. 21917 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21918 case $ac_top_builddir_sub in 21919 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21920 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21921 esac ;; 21922esac 21923ac_abs_top_builddir=$ac_pwd 21924ac_abs_builddir=$ac_pwd$ac_dir_suffix 21925# for backward compatibility: 21926ac_top_builddir=$ac_top_build_prefix 21927 21928case $srcdir in 21929 .) # We are building in place. 21930 ac_srcdir=. 21931 ac_top_srcdir=$ac_top_builddir_sub 21932 ac_abs_top_srcdir=$ac_pwd ;; 21933 [\\/]* | ?:[\\/]* ) # Absolute name. 21934 ac_srcdir=$srcdir$ac_dir_suffix; 21935 ac_top_srcdir=$srcdir 21936 ac_abs_top_srcdir=$srcdir ;; 21937 *) # Relative name. 21938 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21939 ac_top_srcdir=$ac_top_build_prefix$srcdir 21940 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21941esac 21942ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21943 21944 21945 case $ac_mode in 21946 :F) 21947 # 21948 # CONFIG_FILE 21949 # 21950 21951 case $INSTALL in 21952 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21953 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21954 esac 21955 ac_MKDIR_P=$MKDIR_P 21956 case $MKDIR_P in 21957 [\\/$]* | ?:[\\/]* ) ;; 21958 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21959 esac 21960_ACEOF 21961 21962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21963# If the template does not know about datarootdir, expand it. 21964# FIXME: This hack should be removed a few years after 2.60. 21965ac_datarootdir_hack=; ac_datarootdir_seen= 21966ac_sed_dataroot=' 21967/datarootdir/ { 21968 p 21969 q 21970} 21971/@datadir@/p 21972/@docdir@/p 21973/@infodir@/p 21974/@localedir@/p 21975/@mandir@/p' 21976case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21977*datarootdir*) ac_datarootdir_seen=yes;; 21978*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21980$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21981_ACEOF 21982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21983 ac_datarootdir_hack=' 21984 s&@datadir@&$datadir&g 21985 s&@docdir@&$docdir&g 21986 s&@infodir@&$infodir&g 21987 s&@localedir@&$localedir&g 21988 s&@mandir@&$mandir&g 21989 s&\\\${datarootdir}&$datarootdir&g' ;; 21990esac 21991_ACEOF 21992 21993# Neutralize VPATH when `$srcdir' = `.'. 21994# Shell code in configure.ac might set extrasub. 21995# FIXME: do we really want to maintain this feature? 21996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21997ac_sed_extra="$ac_vpsub 21998$extrasub 21999_ACEOF 22000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22001:t 22002/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22003s|@configure_input@|$ac_sed_conf_input|;t t 22004s&@top_builddir@&$ac_top_builddir_sub&;t t 22005s&@top_build_prefix@&$ac_top_build_prefix&;t t 22006s&@srcdir@&$ac_srcdir&;t t 22007s&@abs_srcdir@&$ac_abs_srcdir&;t t 22008s&@top_srcdir@&$ac_top_srcdir&;t t 22009s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22010s&@builddir@&$ac_builddir&;t t 22011s&@abs_builddir@&$ac_abs_builddir&;t t 22012s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22013s&@INSTALL@&$ac_INSTALL&;t t 22014s&@MKDIR_P@&$ac_MKDIR_P&;t t 22015$ac_datarootdir_hack 22016" 22017eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22018 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22019 22020test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22021 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22022 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22023 "$ac_tmp/out"`; test -z "$ac_out"; } && 22024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22025which seems to be undefined. Please make sure it is defined" >&5 22026$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22027which seems to be undefined. Please make sure it is defined" >&2;} 22028 22029 rm -f "$ac_tmp/stdin" 22030 case $ac_file in 22031 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22032 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22033 esac \ 22034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22035 ;; 22036 :H) 22037 # 22038 # CONFIG_HEADER 22039 # 22040 if test x"$ac_file" != x-; then 22041 { 22042 $as_echo "/* $configure_input */" \ 22043 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22044 } >"$ac_tmp/config.h" \ 22045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22046 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22047 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22048$as_echo "$as_me: $ac_file is unchanged" >&6;} 22049 else 22050 rm -f "$ac_file" 22051 mv "$ac_tmp/config.h" "$ac_file" \ 22052 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22053 fi 22054 else 22055 $as_echo "/* $configure_input */" \ 22056 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22057 || as_fn_error $? "could not create -" "$LINENO" 5 22058 fi 22059# Compute "$ac_file"'s index in $config_headers. 22060_am_arg="$ac_file" 22061_am_stamp_count=1 22062for _am_header in $config_headers :; do 22063 case $_am_header in 22064 $_am_arg | $_am_arg:* ) 22065 break ;; 22066 * ) 22067 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22068 esac 22069done 22070echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22071$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22072 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22073 X"$_am_arg" : 'X\(//\)$' \| \ 22074 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22075$as_echo X"$_am_arg" | 22076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22077 s//\1/ 22078 q 22079 } 22080 /^X\(\/\/\)[^/].*/{ 22081 s//\1/ 22082 q 22083 } 22084 /^X\(\/\/\)$/{ 22085 s//\1/ 22086 q 22087 } 22088 /^X\(\/\).*/{ 22089 s//\1/ 22090 q 22091 } 22092 s/.*/./; q'`/stamp-h$_am_stamp_count 22093 ;; 22094 22095 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22096$as_echo "$as_me: executing $ac_file commands" >&6;} 22097 ;; 22098 esac 22099 22100 22101 case $ac_file$ac_mode in 22102 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22103 # Older Autoconf quotes --file arguments for eval, but not when files 22104 # are listed without --file. Let's play safe and only enable the eval 22105 # if we detect the quoting. 22106 case $CONFIG_FILES in 22107 *\'*) eval set x "$CONFIG_FILES" ;; 22108 *) set x $CONFIG_FILES ;; 22109 esac 22110 shift 22111 for mf 22112 do 22113 # Strip MF so we end up with the name of the file. 22114 mf=`echo "$mf" | sed -e 's/:.*$//'` 22115 # Check whether this is an Automake generated Makefile or not. 22116 # We used to match only the files named 'Makefile.in', but 22117 # some people rename them; so instead we look at the file content. 22118 # Grep'ing the first line is not enough: some people post-process 22119 # each Makefile.in and add a new line on top of each file to say so. 22120 # Grep'ing the whole file is not good either: AIX grep has a line 22121 # limit of 2048, but all sed's we know have understand at least 4000. 22122 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22123 dirpart=`$as_dirname -- "$mf" || 22124$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22125 X"$mf" : 'X\(//\)[^/]' \| \ 22126 X"$mf" : 'X\(//\)$' \| \ 22127 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22128$as_echo X"$mf" | 22129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22130 s//\1/ 22131 q 22132 } 22133 /^X\(\/\/\)[^/].*/{ 22134 s//\1/ 22135 q 22136 } 22137 /^X\(\/\/\)$/{ 22138 s//\1/ 22139 q 22140 } 22141 /^X\(\/\).*/{ 22142 s//\1/ 22143 q 22144 } 22145 s/.*/./; q'` 22146 else 22147 continue 22148 fi 22149 # Extract the definition of DEPDIR, am__include, and am__quote 22150 # from the Makefile without running 'make'. 22151 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22152 test -z "$DEPDIR" && continue 22153 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22154 test -z "$am__include" && continue 22155 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22156 # Find all dependency output files, they are included files with 22157 # $(DEPDIR) in their names. We invoke sed twice because it is the 22158 # simplest approach to changing $(DEPDIR) to its actual value in the 22159 # expansion. 22160 for file in `sed -n " 22161 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22162 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 22163 # Make sure the directory exists. 22164 test -f "$dirpart/$file" && continue 22165 fdir=`$as_dirname -- "$file" || 22166$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22167 X"$file" : 'X\(//\)[^/]' \| \ 22168 X"$file" : 'X\(//\)$' \| \ 22169 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22170$as_echo X"$file" | 22171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22172 s//\1/ 22173 q 22174 } 22175 /^X\(\/\/\)[^/].*/{ 22176 s//\1/ 22177 q 22178 } 22179 /^X\(\/\/\)$/{ 22180 s//\1/ 22181 q 22182 } 22183 /^X\(\/\).*/{ 22184 s//\1/ 22185 q 22186 } 22187 s/.*/./; q'` 22188 as_dir=$dirpart/$fdir; as_fn_mkdir_p 22189 # echo "creating $dirpart/$file" 22190 echo '# dummy' > "$dirpart/$file" 22191 done 22192 done 22193} 22194 ;; 22195 "libtool":C) 22196 22197 # See if we are running on zsh, and set the options which allow our 22198 # commands through without removal of \ escapes. 22199 if test -n "${ZSH_VERSION+set}" ; then 22200 setopt NO_GLOB_SUBST 22201 fi 22202 22203 cfgfile="${ofile}T" 22204 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22205 $RM "$cfgfile" 22206 22207 cat <<_LT_EOF >> "$cfgfile" 22208#! $SHELL 22209 22210# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 22211# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 22212# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22213# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22214# 22215# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 22216# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 22217# Foundation, Inc. 22218# Written by Gordon Matzigkeit, 1996 22219# 22220# This file is part of GNU Libtool. 22221# 22222# GNU Libtool is free software; you can redistribute it and/or 22223# modify it under the terms of the GNU General Public License as 22224# published by the Free Software Foundation; either version 2 of 22225# the License, or (at your option) any later version. 22226# 22227# As a special exception to the GNU General Public License, 22228# if you distribute this file as part of a program or library that 22229# is built using GNU Libtool, you may include this file under the 22230# same distribution terms that you use for the rest of that program. 22231# 22232# GNU Libtool is distributed in the hope that it will be useful, 22233# but WITHOUT ANY WARRANTY; without even the implied warranty of 22234# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22235# GNU General Public License for more details. 22236# 22237# You should have received a copy of the GNU General Public License 22238# along with GNU Libtool; see the file COPYING. If not, a copy 22239# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 22240# obtained by writing to the Free Software Foundation, Inc., 22241# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22242 22243 22244# The names of the tagged configurations supported by this script. 22245available_tags="CXX " 22246 22247# ### BEGIN LIBTOOL CONFIG 22248 22249# Whether or not to build static libraries. 22250build_old_libs=$enable_static 22251 22252# Which release of libtool.m4 was used? 22253macro_version=$macro_version 22254macro_revision=$macro_revision 22255 22256# Whether or not to build shared libraries. 22257build_libtool_libs=$enable_shared 22258 22259# What type of objects to build. 22260pic_mode=$pic_mode 22261 22262# Whether or not to optimize for fast installation. 22263fast_install=$enable_fast_install 22264 22265# Shell to use when invoking shell scripts. 22266SHELL=$lt_SHELL 22267 22268# An echo program that protects backslashes. 22269ECHO=$lt_ECHO 22270 22271# The PATH separator for the build system. 22272PATH_SEPARATOR=$lt_PATH_SEPARATOR 22273 22274# The host system. 22275host_alias=$host_alias 22276host=$host 22277host_os=$host_os 22278 22279# The build system. 22280build_alias=$build_alias 22281build=$build 22282build_os=$build_os 22283 22284# A sed program that does not truncate output. 22285SED=$lt_SED 22286 22287# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22288Xsed="\$SED -e 1s/^X//" 22289 22290# A grep program that handles long lines. 22291GREP=$lt_GREP 22292 22293# An ERE matcher. 22294EGREP=$lt_EGREP 22295 22296# A literal string matcher. 22297FGREP=$lt_FGREP 22298 22299# A BSD- or MS-compatible name lister. 22300NM=$lt_NM 22301 22302# Whether we need soft or hard links. 22303LN_S=$lt_LN_S 22304 22305# What is the maximum length of a command? 22306max_cmd_len=$max_cmd_len 22307 22308# Object file suffix (normally "o"). 22309objext=$ac_objext 22310 22311# Executable file suffix (normally ""). 22312exeext=$exeext 22313 22314# whether the shell understands "unset". 22315lt_unset=$lt_unset 22316 22317# turn spaces into newlines. 22318SP2NL=$lt_lt_SP2NL 22319 22320# turn newlines into spaces. 22321NL2SP=$lt_lt_NL2SP 22322 22323# convert \$build file names to \$host format. 22324to_host_file_cmd=$lt_cv_to_host_file_cmd 22325 22326# convert \$build files to toolchain format. 22327to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22328 22329# An object symbol dumper. 22330OBJDUMP=$lt_OBJDUMP 22331 22332# Method to check whether dependent libraries are shared objects. 22333deplibs_check_method=$lt_deplibs_check_method 22334 22335# Command to use when deplibs_check_method = "file_magic". 22336file_magic_cmd=$lt_file_magic_cmd 22337 22338# How to find potential files when deplibs_check_method = "file_magic". 22339file_magic_glob=$lt_file_magic_glob 22340 22341# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22342want_nocaseglob=$lt_want_nocaseglob 22343 22344# DLL creation program. 22345DLLTOOL=$lt_DLLTOOL 22346 22347# Command to associate shared and link libraries. 22348sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22349 22350# The archiver. 22351AR=$lt_AR 22352 22353# Flags to create an archive. 22354AR_FLAGS=$lt_AR_FLAGS 22355 22356# How to feed a file listing to the archiver. 22357archiver_list_spec=$lt_archiver_list_spec 22358 22359# A symbol stripping program. 22360STRIP=$lt_STRIP 22361 22362# Commands used to install an old-style archive. 22363RANLIB=$lt_RANLIB 22364old_postinstall_cmds=$lt_old_postinstall_cmds 22365old_postuninstall_cmds=$lt_old_postuninstall_cmds 22366 22367# Whether to use a lock for old archive extraction. 22368lock_old_archive_extraction=$lock_old_archive_extraction 22369 22370# A C compiler. 22371LTCC=$lt_CC 22372 22373# LTCC compiler flags. 22374LTCFLAGS=$lt_CFLAGS 22375 22376# Take the output of nm and produce a listing of raw symbols and C names. 22377global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22378 22379# Transform the output of nm in a proper C declaration. 22380global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22381 22382# Transform the output of nm in a C name address pair. 22383global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22384 22385# Transform the output of nm in a C name address pair when lib prefix is needed. 22386global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22387 22388# Specify filename containing input files for \$NM. 22389nm_file_list_spec=$lt_nm_file_list_spec 22390 22391# The root where to search for dependent libraries,and in which our libraries should be installed. 22392lt_sysroot=$lt_sysroot 22393 22394# The name of the directory that contains temporary libtool files. 22395objdir=$objdir 22396 22397# Used to examine libraries when file_magic_cmd begins with "file". 22398MAGIC_CMD=$MAGIC_CMD 22399 22400# Must we lock files when doing compilation? 22401need_locks=$lt_need_locks 22402 22403# Manifest tool. 22404MANIFEST_TOOL=$lt_MANIFEST_TOOL 22405 22406# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22407DSYMUTIL=$lt_DSYMUTIL 22408 22409# Tool to change global to local symbols on Mac OS X. 22410NMEDIT=$lt_NMEDIT 22411 22412# Tool to manipulate fat objects and archives on Mac OS X. 22413LIPO=$lt_LIPO 22414 22415# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22416OTOOL=$lt_OTOOL 22417 22418# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22419OTOOL64=$lt_OTOOL64 22420 22421# Old archive suffix (normally "a"). 22422libext=$libext 22423 22424# Shared library suffix (normally ".so"). 22425shrext_cmds=$lt_shrext_cmds 22426 22427# The commands to extract the exported symbol list from a shared archive. 22428extract_expsyms_cmds=$lt_extract_expsyms_cmds 22429 22430# Variables whose values should be saved in libtool wrapper scripts and 22431# restored at link time. 22432variables_saved_for_relink=$lt_variables_saved_for_relink 22433 22434# Do we need the "lib" prefix for modules? 22435need_lib_prefix=$need_lib_prefix 22436 22437# Do we need a version for libraries? 22438need_version=$need_version 22439 22440# Library versioning type. 22441version_type=$version_type 22442 22443# Shared library runtime path variable. 22444runpath_var=$runpath_var 22445 22446# Shared library path variable. 22447shlibpath_var=$shlibpath_var 22448 22449# Is shlibpath searched before the hard-coded library search path? 22450shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22451 22452# Format of library name prefix. 22453libname_spec=$lt_libname_spec 22454 22455# List of archive names. First name is the real one, the rest are links. 22456# The last name is the one that the linker finds with -lNAME 22457library_names_spec=$lt_library_names_spec 22458 22459# The coded name of the library, if different from the real name. 22460soname_spec=$lt_soname_spec 22461 22462# Permission mode override for installation of shared libraries. 22463install_override_mode=$lt_install_override_mode 22464 22465# Command to use after installation of a shared archive. 22466postinstall_cmds=$lt_postinstall_cmds 22467 22468# Command to use after uninstallation of a shared archive. 22469postuninstall_cmds=$lt_postuninstall_cmds 22470 22471# Commands used to finish a libtool library installation in a directory. 22472finish_cmds=$lt_finish_cmds 22473 22474# As "finish_cmds", except a single script fragment to be evaled but 22475# not shown. 22476finish_eval=$lt_finish_eval 22477 22478# Whether we should hardcode library paths into libraries. 22479hardcode_into_libs=$hardcode_into_libs 22480 22481# Compile-time system search path for libraries. 22482sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22483 22484# Run-time system search path for libraries. 22485sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 22486 22487# Whether dlopen is supported. 22488dlopen_support=$enable_dlopen 22489 22490# Whether dlopen of programs is supported. 22491dlopen_self=$enable_dlopen_self 22492 22493# Whether dlopen of statically linked programs is supported. 22494dlopen_self_static=$enable_dlopen_self_static 22495 22496# Commands to strip libraries. 22497old_striplib=$lt_old_striplib 22498striplib=$lt_striplib 22499 22500 22501# The linker used to build libraries. 22502LD=$lt_LD 22503 22504# How to create reloadable object files. 22505reload_flag=$lt_reload_flag 22506reload_cmds=$lt_reload_cmds 22507 22508# Commands used to build an old-style archive. 22509old_archive_cmds=$lt_old_archive_cmds 22510 22511# A language specific compiler. 22512CC=$lt_compiler 22513 22514# Is the compiler the GNU compiler? 22515with_gcc=$GCC 22516 22517# Compiler flag to turn off builtin functions. 22518no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22519 22520# Additional compiler flags for building library objects. 22521pic_flag=$lt_lt_prog_compiler_pic 22522 22523# How to pass a linker flag through the compiler. 22524wl=$lt_lt_prog_compiler_wl 22525 22526# Compiler flag to prevent dynamic linking. 22527link_static_flag=$lt_lt_prog_compiler_static 22528 22529# Does compiler simultaneously support -c and -o options? 22530compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22531 22532# Whether or not to add -lc for building shared libraries. 22533build_libtool_need_lc=$archive_cmds_need_lc 22534 22535# Whether or not to disallow shared libs when runtime libs are static. 22536allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22537 22538# Compiler flag to allow reflexive dlopens. 22539export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22540 22541# Compiler flag to generate shared objects directly from archives. 22542whole_archive_flag_spec=$lt_whole_archive_flag_spec 22543 22544# Whether the compiler copes with passing no objects directly. 22545compiler_needs_object=$lt_compiler_needs_object 22546 22547# Create an old-style archive from a shared archive. 22548old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22549 22550# Create a temporary old-style archive to link instead of a shared archive. 22551old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22552 22553# Commands used to build a shared archive. 22554archive_cmds=$lt_archive_cmds 22555archive_expsym_cmds=$lt_archive_expsym_cmds 22556 22557# Commands used to build a loadable module if different from building 22558# a shared archive. 22559module_cmds=$lt_module_cmds 22560module_expsym_cmds=$lt_module_expsym_cmds 22561 22562# Whether we are building with GNU ld or not. 22563with_gnu_ld=$lt_with_gnu_ld 22564 22565# Flag that allows shared libraries with undefined symbols to be built. 22566allow_undefined_flag=$lt_allow_undefined_flag 22567 22568# Flag that enforces no undefined symbols. 22569no_undefined_flag=$lt_no_undefined_flag 22570 22571# Flag to hardcode \$libdir into a binary during linking. 22572# This must work even if \$libdir does not exist 22573hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22574 22575# Whether we need a single "-rpath" flag with a separated argument. 22576hardcode_libdir_separator=$lt_hardcode_libdir_separator 22577 22578# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22579# DIR into the resulting binary. 22580hardcode_direct=$hardcode_direct 22581 22582# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22583# DIR into the resulting binary and the resulting library dependency is 22584# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 22585# library is relocated. 22586hardcode_direct_absolute=$hardcode_direct_absolute 22587 22588# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22589# into the resulting binary. 22590hardcode_minus_L=$hardcode_minus_L 22591 22592# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22593# into the resulting binary. 22594hardcode_shlibpath_var=$hardcode_shlibpath_var 22595 22596# Set to "yes" if building a shared library automatically hardcodes DIR 22597# into the library and all subsequent libraries and executables linked 22598# against it. 22599hardcode_automatic=$hardcode_automatic 22600 22601# Set to yes if linker adds runtime paths of dependent libraries 22602# to runtime path list. 22603inherit_rpath=$inherit_rpath 22604 22605# Whether libtool must link a program against all its dependency libraries. 22606link_all_deplibs=$link_all_deplibs 22607 22608# Set to "yes" if exported symbols are required. 22609always_export_symbols=$always_export_symbols 22610 22611# The commands to list exported symbols. 22612export_symbols_cmds=$lt_export_symbols_cmds 22613 22614# Symbols that should not be listed in the preloaded symbols. 22615exclude_expsyms=$lt_exclude_expsyms 22616 22617# Symbols that must always be exported. 22618include_expsyms=$lt_include_expsyms 22619 22620# Commands necessary for linking programs (against libraries) with templates. 22621prelink_cmds=$lt_prelink_cmds 22622 22623# Commands necessary for finishing linking programs. 22624postlink_cmds=$lt_postlink_cmds 22625 22626# Specify filename containing input files. 22627file_list_spec=$lt_file_list_spec 22628 22629# How to hardcode a shared library path into an executable. 22630hardcode_action=$hardcode_action 22631 22632# The directories searched by this compiler when creating a shared library. 22633compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 22634 22635# Dependencies to place before and after the objects being linked to 22636# create a shared library. 22637predep_objects=$lt_predep_objects 22638postdep_objects=$lt_postdep_objects 22639predeps=$lt_predeps 22640postdeps=$lt_postdeps 22641 22642# The library search path used internally by the compiler when linking 22643# a shared library. 22644compiler_lib_search_path=$lt_compiler_lib_search_path 22645 22646# ### END LIBTOOL CONFIG 22647 22648_LT_EOF 22649 22650 case $host_os in 22651 aix3*) 22652 cat <<\_LT_EOF >> "$cfgfile" 22653# AIX sometimes has problems with the GCC collect2 program. For some 22654# reason, if we set the COLLECT_NAMES environment variable, the problems 22655# vanish in a puff of smoke. 22656if test "X${COLLECT_NAMES+set}" != Xset; then 22657 COLLECT_NAMES= 22658 export COLLECT_NAMES 22659fi 22660_LT_EOF 22661 ;; 22662 esac 22663 22664 22665ltmain="$ac_aux_dir/ltmain.sh" 22666 22667 22668 # We use sed instead of cat because bash on DJGPP gets confused if 22669 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22670 # text mode, it properly converts lines to CR/LF. This bash problem 22671 # is reportedly fixed, but why not run on old versions too? 22672 sed '$q' "$ltmain" >> "$cfgfile" \ 22673 || (rm -f "$cfgfile"; exit 1) 22674 22675 if test x"$xsi_shell" = xyes; then 22676 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 22677func_dirname ()\ 22678{\ 22679\ case ${1} in\ 22680\ */*) func_dirname_result="${1%/*}${2}" ;;\ 22681\ * ) func_dirname_result="${3}" ;;\ 22682\ esac\ 22683} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 22684 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22685 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22686test 0 -eq $? || _lt_function_replace_fail=: 22687 22688 22689 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 22690func_basename ()\ 22691{\ 22692\ func_basename_result="${1##*/}"\ 22693} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 22694 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22695 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22696test 0 -eq $? || _lt_function_replace_fail=: 22697 22698 22699 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 22700func_dirname_and_basename ()\ 22701{\ 22702\ case ${1} in\ 22703\ */*) func_dirname_result="${1%/*}${2}" ;;\ 22704\ * ) func_dirname_result="${3}" ;;\ 22705\ esac\ 22706\ func_basename_result="${1##*/}"\ 22707} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 22708 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22709 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22710test 0 -eq $? || _lt_function_replace_fail=: 22711 22712 22713 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 22714func_stripname ()\ 22715{\ 22716\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 22717\ # positional parameters, so assign one to ordinary parameter first.\ 22718\ func_stripname_result=${3}\ 22719\ func_stripname_result=${func_stripname_result#"${1}"}\ 22720\ func_stripname_result=${func_stripname_result%"${2}"}\ 22721} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 22722 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22723 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22724test 0 -eq $? || _lt_function_replace_fail=: 22725 22726 22727 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 22728func_split_long_opt ()\ 22729{\ 22730\ func_split_long_opt_name=${1%%=*}\ 22731\ func_split_long_opt_arg=${1#*=}\ 22732} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 22733 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22734 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22735test 0 -eq $? || _lt_function_replace_fail=: 22736 22737 22738 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 22739func_split_short_opt ()\ 22740{\ 22741\ func_split_short_opt_arg=${1#??}\ 22742\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 22743} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 22744 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22745 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22746test 0 -eq $? || _lt_function_replace_fail=: 22747 22748 22749 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 22750func_lo2o ()\ 22751{\ 22752\ case ${1} in\ 22753\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 22754\ *) func_lo2o_result=${1} ;;\ 22755\ esac\ 22756} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 22757 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22759test 0 -eq $? || _lt_function_replace_fail=: 22760 22761 22762 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 22763func_xform ()\ 22764{\ 22765 func_xform_result=${1%.*}.lo\ 22766} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 22767 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22769test 0 -eq $? || _lt_function_replace_fail=: 22770 22771 22772 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 22773func_arith ()\ 22774{\ 22775 func_arith_result=$(( $* ))\ 22776} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 22777 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22779test 0 -eq $? || _lt_function_replace_fail=: 22780 22781 22782 sed -e '/^func_len ()$/,/^} # func_len /c\ 22783func_len ()\ 22784{\ 22785 func_len_result=${#1}\ 22786} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 22787 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22788 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22789test 0 -eq $? || _lt_function_replace_fail=: 22790 22791fi 22792 22793if test x"$lt_shell_append" = xyes; then 22794 sed -e '/^func_append ()$/,/^} # func_append /c\ 22795func_append ()\ 22796{\ 22797 eval "${1}+=\\${2}"\ 22798} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 22799 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22800 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22801test 0 -eq $? || _lt_function_replace_fail=: 22802 22803 22804 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 22805func_append_quoted ()\ 22806{\ 22807\ func_quote_for_eval "${2}"\ 22808\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 22809} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 22810 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22811 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22812test 0 -eq $? || _lt_function_replace_fail=: 22813 22814 22815 # Save a `func_append' function call where possible by direct use of '+=' 22816 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 22817 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22818 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22819 test 0 -eq $? || _lt_function_replace_fail=: 22820else 22821 # Save a `func_append' function call even when '+=' is not available 22822 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 22823 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22824 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22825 test 0 -eq $? || _lt_function_replace_fail=: 22826fi 22827 22828if test x"$_lt_function_replace_fail" = x":"; then 22829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 22830$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 22831fi 22832 22833 22834 mv -f "$cfgfile" "$ofile" || 22835 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22836 chmod +x "$ofile" 22837 22838 22839 cat <<_LT_EOF >> "$ofile" 22840 22841# ### BEGIN LIBTOOL TAG CONFIG: CXX 22842 22843# The linker used to build libraries. 22844LD=$lt_LD_CXX 22845 22846# How to create reloadable object files. 22847reload_flag=$lt_reload_flag_CXX 22848reload_cmds=$lt_reload_cmds_CXX 22849 22850# Commands used to build an old-style archive. 22851old_archive_cmds=$lt_old_archive_cmds_CXX 22852 22853# A language specific compiler. 22854CC=$lt_compiler_CXX 22855 22856# Is the compiler the GNU compiler? 22857with_gcc=$GCC_CXX 22858 22859# Compiler flag to turn off builtin functions. 22860no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 22861 22862# Additional compiler flags for building library objects. 22863pic_flag=$lt_lt_prog_compiler_pic_CXX 22864 22865# How to pass a linker flag through the compiler. 22866wl=$lt_lt_prog_compiler_wl_CXX 22867 22868# Compiler flag to prevent dynamic linking. 22869link_static_flag=$lt_lt_prog_compiler_static_CXX 22870 22871# Does compiler simultaneously support -c and -o options? 22872compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 22873 22874# Whether or not to add -lc for building shared libraries. 22875build_libtool_need_lc=$archive_cmds_need_lc_CXX 22876 22877# Whether or not to disallow shared libs when runtime libs are static. 22878allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 22879 22880# Compiler flag to allow reflexive dlopens. 22881export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 22882 22883# Compiler flag to generate shared objects directly from archives. 22884whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 22885 22886# Whether the compiler copes with passing no objects directly. 22887compiler_needs_object=$lt_compiler_needs_object_CXX 22888 22889# Create an old-style archive from a shared archive. 22890old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 22891 22892# Create a temporary old-style archive to link instead of a shared archive. 22893old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 22894 22895# Commands used to build a shared archive. 22896archive_cmds=$lt_archive_cmds_CXX 22897archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 22898 22899# Commands used to build a loadable module if different from building 22900# a shared archive. 22901module_cmds=$lt_module_cmds_CXX 22902module_expsym_cmds=$lt_module_expsym_cmds_CXX 22903 22904# Whether we are building with GNU ld or not. 22905with_gnu_ld=$lt_with_gnu_ld_CXX 22906 22907# Flag that allows shared libraries with undefined symbols to be built. 22908allow_undefined_flag=$lt_allow_undefined_flag_CXX 22909 22910# Flag that enforces no undefined symbols. 22911no_undefined_flag=$lt_no_undefined_flag_CXX 22912 22913# Flag to hardcode \$libdir into a binary during linking. 22914# This must work even if \$libdir does not exist 22915hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 22916 22917# Whether we need a single "-rpath" flag with a separated argument. 22918hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 22919 22920# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22921# DIR into the resulting binary. 22922hardcode_direct=$hardcode_direct_CXX 22923 22924# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22925# DIR into the resulting binary and the resulting library dependency is 22926# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 22927# library is relocated. 22928hardcode_direct_absolute=$hardcode_direct_absolute_CXX 22929 22930# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22931# into the resulting binary. 22932hardcode_minus_L=$hardcode_minus_L_CXX 22933 22934# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22935# into the resulting binary. 22936hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 22937 22938# Set to "yes" if building a shared library automatically hardcodes DIR 22939# into the library and all subsequent libraries and executables linked 22940# against it. 22941hardcode_automatic=$hardcode_automatic_CXX 22942 22943# Set to yes if linker adds runtime paths of dependent libraries 22944# to runtime path list. 22945inherit_rpath=$inherit_rpath_CXX 22946 22947# Whether libtool must link a program against all its dependency libraries. 22948link_all_deplibs=$link_all_deplibs_CXX 22949 22950# Set to "yes" if exported symbols are required. 22951always_export_symbols=$always_export_symbols_CXX 22952 22953# The commands to list exported symbols. 22954export_symbols_cmds=$lt_export_symbols_cmds_CXX 22955 22956# Symbols that should not be listed in the preloaded symbols. 22957exclude_expsyms=$lt_exclude_expsyms_CXX 22958 22959# Symbols that must always be exported. 22960include_expsyms=$lt_include_expsyms_CXX 22961 22962# Commands necessary for linking programs (against libraries) with templates. 22963prelink_cmds=$lt_prelink_cmds_CXX 22964 22965# Commands necessary for finishing linking programs. 22966postlink_cmds=$lt_postlink_cmds_CXX 22967 22968# Specify filename containing input files. 22969file_list_spec=$lt_file_list_spec_CXX 22970 22971# How to hardcode a shared library path into an executable. 22972hardcode_action=$hardcode_action_CXX 22973 22974# The directories searched by this compiler when creating a shared library. 22975compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 22976 22977# Dependencies to place before and after the objects being linked to 22978# create a shared library. 22979predep_objects=$lt_predep_objects_CXX 22980postdep_objects=$lt_postdep_objects_CXX 22981predeps=$lt_predeps_CXX 22982postdeps=$lt_postdeps_CXX 22983 22984# The library search path used internally by the compiler when linking 22985# a shared library. 22986compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 22987 22988# ### END LIBTOOL TAG CONFIG: CXX 22989_LT_EOF 22990 22991 ;; 22992 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) 22993 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 22994 esac ;; 22995 "po/stamp-it":C) 22996 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then 22997 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5 22998 fi 22999 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" 23000 >"po/stamp-it.tmp" 23001 sed '/^#/d 23002 s/^[[].*] *// 23003 /^[ ]*$/d 23004 '"s|^| $ac_top_srcdir/|" \ 23005 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES" 23006 23007 sed '/^POTFILES =/,/[^\\]$/ { 23008 /^POTFILES =/!d 23009 r po/POTFILES 23010 } 23011 ' "po/Makefile.in" >"po/Makefile" 23012 rm -f "po/Makefile.tmp" 23013 mv "po/stamp-it.tmp" "po/stamp-it" 23014 ;; 23015 23016 esac 23017done # for ac_tag 23018 23019 23020as_fn_exit 0 23021_ACEOF 23022ac_clean_files=$ac_clean_files_save 23023 23024test $ac_write_fail = 0 || 23025 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23026 23027 23028# configure is writing to config.log, and then calls config.status. 23029# config.status does its own redirection, appending to config.log. 23030# Unfortunately, on DOS this fails, as config.log is still kept open 23031# by configure, so config.status won't be able to write to it; its 23032# output is simply discarded. So we exec the FD to /dev/null, 23033# effectively closing config.log, so it can be properly (re)opened and 23034# appended to by config.status. When coming back to configure, we 23035# need to make the FD available again. 23036if test "$no_create" != yes; then 23037 ac_cs_success=: 23038 ac_config_status_args= 23039 test "$silent" = yes && 23040 ac_config_status_args="$ac_config_status_args --quiet" 23041 exec 5>/dev/null 23042 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23043 exec 5>>config.log 23044 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23045 # would make configure fail if this is the last instruction. 23046 $ac_cs_success || as_fn_exit 1 23047fi 23048if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23050$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23051fi 23052 23053