1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME= 589PACKAGE_TARNAME= 590PACKAGE_VERSION= 591PACKAGE_STRING= 592PACKAGE_BUGREPORT= 593PACKAGE_URL= 594 595ac_unique_file="src/gwenhywfarapi.h" 596ac_default_prefix=/usr/local 597# Factoring default headers for most tests. 598ac_includes_default="\ 599#include <stdio.h> 600#ifdef HAVE_SYS_TYPES_H 601# include <sys/types.h> 602#endif 603#ifdef HAVE_SYS_STAT_H 604# include <sys/stat.h> 605#endif 606#ifdef STDC_HEADERS 607# include <stdlib.h> 608# include <stddef.h> 609#else 610# ifdef HAVE_STDLIB_H 611# include <stdlib.h> 612# endif 613#endif 614#ifdef HAVE_STRING_H 615# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 616# include <memory.h> 617# endif 618# include <string.h> 619#endif 620#ifdef HAVE_STRINGS_H 621# include <strings.h> 622#endif 623#ifdef HAVE_INTTYPES_H 624# include <inttypes.h> 625#endif 626#ifdef HAVE_STDINT_H 627# include <stdint.h> 628#endif 629#ifdef HAVE_UNISTD_H 630# include <unistd.h> 631#endif" 632 633ac_header_list= 634ac_func_list= 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638gwenhywfar_plugins_cfgmgr_libs 639gwenhywfar_plugins_cfgmgr_dirs 640gwenhywfar_plugins_dbio_libs 641gwenhywfar_plugins_dbio_dirs 642gwenhywfar_plugins_ct_libs 643gwenhywfar_plugins_ct_dirs 644gwenhywfar_datadir 645gwenhywfar_symlinkdir 646gwenhywfar_headerdir 647gwenhywfar_headerdir_am 648gwenhywfar_plugindir 649gwenhywfar_pkgincludedir 650gwenhywfar_os_lib 651gwenhywfar_libsui 652gwenhywfar_libspp 653gwenhywfar_internal_libname 654gwenhywfar_libs 655gwenhywfar_bindir 656gwenhywfar_ldflags 657gwenhywfar_crypt_lib 658all_libraries 659all_includes 660PROG_LIBRARIES 661GWEN_OS 662DOXYGEN_DEFINE 663DOXYGEN_INPUT 664gwenhywfar_buffer_hardlimit 665WERROR 666visibility_cflags 667STRIPALL 668DOXYGEN_TAGFILES 669docpath 670QT_LUPDATE 671QT_LRELEASE 672QT_MOC 673QT_UIC 674QT_LIBS 675QT_DIR 676QT_CXXFLAGS 677X_EXTRA_LIBS 678X_LIBS 679X_PRE_LIBS 680X_CFLAGS 681XMKMF 682WITH_GUI_QT4_FALSE 683WITH_GUI_QT4_TRUE 684with_gui_qt4 685QT4_BINDIR 686YES 687qt4_uic 688qt4_moc 689qt4_includes 690qt4_libs 691LIBXML_LIBS 692LIBXML_CFLAGS 693WITH_LIBXML2_CODE_FALSE 694WITH_LIBXML2_CODE_TRUE 695WITH_GUI_GTK3_FALSE 696WITH_GUI_GTK3_TRUE 697with_gui_gtk3 698GTK3_LIBS 699GTK3_CFLAGS 700WITH_GUI_GTK2_FALSE 701WITH_GUI_GTK2_TRUE 702with_gui_gtk2 703GTK2_LIBS 704GTK2_CFLAGS 705WITH_GUI_FOX16_FALSE 706WITH_GUI_FOX16_TRUE 707with_gui_fox16 708fox_includes 709fox_libs 710gwenhywfar_guis 711ICONV_LIBS 712WITH_ICONV 713i18n_libs 714HAVE_I18N 715IF_MAKE_I18N_FILES_FALSE 716IF_MAKE_I18N_FILES_TRUE 717MAKE_I18N_FILES 718MSGFMT 719XGETTEXT 720aq_distrib_version 721aq_distrib_tag 722aq_distrib_name 723ssl_available 724IF_HAVE_OPENSSL_FALSE 725IF_HAVE_OPENSSL_TRUE 726OPENSSL_LIBS 727OPENSSL_CFLAGS 728LIBGNUTLS_LIBS 729LIBGNUTLS_CFLAGS 730PKG_CONFIG_LIBDIR 731PKG_CONFIG_PATH 732PKG_CONFIG 733GPG_ERROR_MT_LIBS 734GPG_ERROR_MT_CFLAGS 735GPG_ERROR_LIBS 736GPG_ERROR_CFLAGS 737GPG_ERROR_CONFIG 738LIBGCRYPT_CONFIG 739LIBGCRYPT_LIBS 740LIBGCRYPT_CFLAGS 741DPKG_ARCH 742PROFILING_LDFLAGS 743PROFILING_CFLAGS 744gwenhywfar_cfg_searchdir 745gwenhywfar_locale_searchdir 746gwenhywfar_sysdata_searchdir 747gwenhywfar_data_searchdir 748gwenhywfar_plugin_searchdir 749gwenhywfar_sys_is_windows 750IS_WINDOWS_FALSE 751IS_WINDOWS_TRUE 752INSTALL_CERTS_FALSE 753INSTALL_CERTS_TRUE 754BINRELOC_LIBS 755BINRELOC_CFLAGS 756LIBOBJS 757LTLIBICONV 758LIBICONV 759PTHREAD_CFLAGS 760PTHREAD_LIBS 761PTHREAD_CC 762ax_pthread_config 763ASTYLE 764USE_DOT 765RC 766AS 767CXXCPP 768LT_SYS_LIBRARY_PATH 769OTOOL64 770OTOOL 771LIPO 772NMEDIT 773DSYMUTIL 774MANIFEST_TOOL 775RANLIB 776ac_ct_AR 777AR 778DLLTOOL 779OBJDUMP 780LN_S 781NM 782ac_ct_DUMPBIN 783DUMPBIN 784LD 785FGREP 786EGREP 787GREP 788SED 789LIBTOOL 790am__fastdepOBJC_FALSE 791am__fastdepOBJC_TRUE 792OBJCDEPMODE 793ac_ct_OBJC 794OBJCFLAGS 795OBJC 796CPP 797am__fastdepCXX_FALSE 798am__fastdepCXX_TRUE 799CXXDEPMODE 800ac_ct_CXX 801CXXFLAGS 802CXX 803am__fastdepCC_FALSE 804am__fastdepCC_TRUE 805CCDEPMODE 806am__nodep 807AMDEPBACKSLASH 808AMDEP_FALSE 809AMDEP_TRUE 810am__quote 811am__include 812DEPDIR 813OBJEXT 814EXEEXT 815ac_ct_CC 816CPPFLAGS 817LDFLAGS 818CFLAGS 819CC 820WEBKIT_FRAMEWORK 821COREDATA_FRAMEWORK 822APPKIT_FRAMEWORK 823SYSCONF_FRAMEWORK 824FOUNDATION_FRAMEWORK 825COCOA_FRAMEWORK 826INSTALL_DLL_TARGET 827MAKE_DLL_TARGET 828OS_TYPE 829OSYSTEM 830GWENPP_SO_EFFECTIVE 831GWENPP_SO_AGE 832GWENPP_SO_REVISION 833GWENPP_SO_CURRENT 834GWENUI_SO_EFFECTIVE 835GWENUI_SO_AGE 836GWENUI_SO_REVISION 837GWENUI_SO_CURRENT 838AM_BACKSLASH 839AM_DEFAULT_VERBOSITY 840AM_DEFAULT_V 841AM_V 842am__untar 843am__tar 844AMTAR 845am__leading_dot 846SET_MAKE 847AWK 848mkdir_p 849MKDIR_P 850INSTALL_STRIP_PROGRAM 851STRIP 852install_sh 853MAKEINFO 854AUTOHEADER 855AUTOMAKE 856AUTOCONF 857ACLOCAL 858VERSION 859PACKAGE 860CYGPATH_W 861am__isrc 862INSTALL_DATA 863INSTALL_SCRIPT 864INSTALL_PROGRAM 865GWENHYWFAR_SO_EFFECTIVE 866GWENHYWFAR_SO_AGE 867GWENHYWFAR_SO_REVISION 868GWENHYWFAR_SO_CURRENT 869OHBCI_VERSION_STRING 870GWENHYWFAR_VERSION_RELEASE_STRING 871GWENHYWFAR_VERSION_STRING 872GWENHYWFAR_VERSION_FULL_STRING 873GWENHYWFAR_VERSION_TAG 874GWENHYWFAR_VERSION_BUILD 875GWENHYWFAR_VERSION_PATCHLEVEL 876GWENHYWFAR_VERSION_MINOR 877GWENHYWFAR_VERSION_MAJOR 878host_os 879host_vendor 880host_cpu 881host 882build_os 883build_vendor 884build_cpu 885build 886target_alias 887host_alias 888build_alias 889LIBS 890ECHO_T 891ECHO_N 892ECHO_C 893DEFS 894mandir 895localedir 896libdir 897psdir 898pdfdir 899dvidir 900htmldir 901infodir 902docdir 903oldincludedir 904includedir 905runstatedir 906localstatedir 907sharedstatedir 908sysconfdir 909datadir 910datarootdir 911libexecdir 912sbindir 913bindir 914program_transform_name 915prefix 916exec_prefix 917PACKAGE_URL 918PACKAGE_BUGREPORT 919PACKAGE_STRING 920PACKAGE_VERSION 921PACKAGE_TARNAME 922PACKAGE_NAME 923PATH_SEPARATOR 924SHELL' 925ac_subst_files='' 926ac_user_opts=' 927enable_option_checking 928enable_silent_rules 929enable_static 930enable_shared 931enable_dependency_tracking 932with_pic 933enable_fast_install 934with_aix_soname 935with_gnu_ld 936with_sysroot 937enable_libtool_lock 938enable_rpath 939with_libiconv_prefix 940enable_binreloc 941enable_binreloc_threads 942enable_gwen_subproject 943enable_system_certs 944enable_network_checks 945enable_testcode 946enable_local_install 947with_plugin_searchdir 948with_data_searchdir 949with_sysdata_searchdir 950with_locale_searchdir 951with_cfg_searchdir 952enable_variadic_macros 953enable_profiling 954with_libgcrypt_prefix 955with_libgpg_error_prefix 956with_gpg_error_prefix 957with_iconv 958with_guis 959enable_fox 960with_fox_includes 961with_fox_libs 962with_libxml2_code 963with_qt4_includes 964with_qt4_libs 965with_qt4_moc 966with_qt4_uic 967with_x 968with_qt5_qmake 969with_qt5_moc 970with_qt5_uic 971with_docpath 972enable_release 973enable_error_on_warning 974enable_debug 975enable_warnings 976enable_memtrace 977with_buffer_hardlimit 978enable_full_doc 979with_plugins_ct 980with_plugins_dbio 981with_plugins_cfgmgr 982' 983 ac_precious_vars='build_alias 984host_alias 985target_alias 986CC 987CFLAGS 988LDFLAGS 989LIBS 990CPPFLAGS 991CXX 992CXXFLAGS 993CCC 994CPP 995OBJC 996OBJCFLAGS 997LT_SYS_LIBRARY_PATH 998CXXCPP 999PKG_CONFIG 1000PKG_CONFIG_PATH 1001PKG_CONFIG_LIBDIR 1002LIBGNUTLS_CFLAGS 1003LIBGNUTLS_LIBS 1004OPENSSL_CFLAGS 1005OPENSSL_LIBS 1006GTK2_CFLAGS 1007GTK2_LIBS 1008GTK3_CFLAGS 1009GTK3_LIBS 1010LIBXML_CFLAGS 1011LIBXML_LIBS 1012XMKMF' 1013 1014 1015# Initialize some variables set by options. 1016ac_init_help= 1017ac_init_version=false 1018ac_unrecognized_opts= 1019ac_unrecognized_sep= 1020# The variables have the same names as the options, with 1021# dashes changed to underlines. 1022cache_file=/dev/null 1023exec_prefix=NONE 1024no_create= 1025no_recursion= 1026prefix=NONE 1027program_prefix=NONE 1028program_suffix=NONE 1029program_transform_name=s,x,x, 1030silent= 1031site= 1032srcdir= 1033verbose= 1034x_includes=NONE 1035x_libraries=NONE 1036 1037# Installation directory options. 1038# These are left unexpanded so users can "make install exec_prefix=/foo" 1039# and all the variables that are supposed to be based on exec_prefix 1040# by default will actually change. 1041# Use braces instead of parens because sh, perl, etc. also accept them. 1042# (The list follows the same order as the GNU Coding Standards.) 1043bindir='${exec_prefix}/bin' 1044sbindir='${exec_prefix}/sbin' 1045libexecdir='${exec_prefix}/libexec' 1046datarootdir='${prefix}/share' 1047datadir='${datarootdir}' 1048sysconfdir='${prefix}/etc' 1049sharedstatedir='${prefix}/com' 1050localstatedir='${prefix}/var' 1051runstatedir='${localstatedir}/run' 1052includedir='${prefix}/include' 1053oldincludedir='/usr/include' 1054docdir='${datarootdir}/doc/${PACKAGE}' 1055infodir='${datarootdir}/info' 1056htmldir='${docdir}' 1057dvidir='${docdir}' 1058pdfdir='${docdir}' 1059psdir='${docdir}' 1060libdir='${exec_prefix}/lib' 1061localedir='${datarootdir}/locale' 1062mandir='${datarootdir}/man' 1063 1064ac_prev= 1065ac_dashdash= 1066for ac_option 1067do 1068 # If the previous option needs an argument, assign it. 1069 if test -n "$ac_prev"; then 1070 eval $ac_prev=\$ac_option 1071 ac_prev= 1072 continue 1073 fi 1074 1075 case $ac_option in 1076 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1077 *=) ac_optarg= ;; 1078 *) ac_optarg=yes ;; 1079 esac 1080 1081 # Accept the important Cygnus configure options, so we can diagnose typos. 1082 1083 case $ac_dashdash$ac_option in 1084 --) 1085 ac_dashdash=yes ;; 1086 1087 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1088 ac_prev=bindir ;; 1089 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1090 bindir=$ac_optarg ;; 1091 1092 -build | --build | --buil | --bui | --bu) 1093 ac_prev=build_alias ;; 1094 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1095 build_alias=$ac_optarg ;; 1096 1097 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1098 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1099 ac_prev=cache_file ;; 1100 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1101 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1102 cache_file=$ac_optarg ;; 1103 1104 --config-cache | -C) 1105 cache_file=config.cache ;; 1106 1107 -datadir | --datadir | --datadi | --datad) 1108 ac_prev=datadir ;; 1109 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1110 datadir=$ac_optarg ;; 1111 1112 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1113 | --dataroo | --dataro | --datar) 1114 ac_prev=datarootdir ;; 1115 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1116 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1117 datarootdir=$ac_optarg ;; 1118 1119 -disable-* | --disable-*) 1120 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1121 # Reject names that are not valid shell variable names. 1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1123 as_fn_error $? "invalid feature name: $ac_useropt" 1124 ac_useropt_orig=$ac_useropt 1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1126 case $ac_user_opts in 1127 *" 1128"enable_$ac_useropt" 1129"*) ;; 1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1131 ac_unrecognized_sep=', ';; 1132 esac 1133 eval enable_$ac_useropt=no ;; 1134 1135 -docdir | --docdir | --docdi | --doc | --do) 1136 ac_prev=docdir ;; 1137 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1138 docdir=$ac_optarg ;; 1139 1140 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1141 ac_prev=dvidir ;; 1142 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1143 dvidir=$ac_optarg ;; 1144 1145 -enable-* | --enable-*) 1146 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1147 # Reject names that are not valid shell variable names. 1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1149 as_fn_error $? "invalid feature name: $ac_useropt" 1150 ac_useropt_orig=$ac_useropt 1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1152 case $ac_user_opts in 1153 *" 1154"enable_$ac_useropt" 1155"*) ;; 1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1157 ac_unrecognized_sep=', ';; 1158 esac 1159 eval enable_$ac_useropt=\$ac_optarg ;; 1160 1161 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1162 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1163 | --exec | --exe | --ex) 1164 ac_prev=exec_prefix ;; 1165 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1166 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1167 | --exec=* | --exe=* | --ex=*) 1168 exec_prefix=$ac_optarg ;; 1169 1170 -gas | --gas | --ga | --g) 1171 # Obsolete; use --with-gas. 1172 with_gas=yes ;; 1173 1174 -help | --help | --hel | --he | -h) 1175 ac_init_help=long ;; 1176 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1177 ac_init_help=recursive ;; 1178 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1179 ac_init_help=short ;; 1180 1181 -host | --host | --hos | --ho) 1182 ac_prev=host_alias ;; 1183 -host=* | --host=* | --hos=* | --ho=*) 1184 host_alias=$ac_optarg ;; 1185 1186 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1187 ac_prev=htmldir ;; 1188 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1189 | --ht=*) 1190 htmldir=$ac_optarg ;; 1191 1192 -includedir | --includedir | --includedi | --included | --include \ 1193 | --includ | --inclu | --incl | --inc) 1194 ac_prev=includedir ;; 1195 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1196 | --includ=* | --inclu=* | --incl=* | --inc=*) 1197 includedir=$ac_optarg ;; 1198 1199 -infodir | --infodir | --infodi | --infod | --info | --inf) 1200 ac_prev=infodir ;; 1201 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1202 infodir=$ac_optarg ;; 1203 1204 -libdir | --libdir | --libdi | --libd) 1205 ac_prev=libdir ;; 1206 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1207 libdir=$ac_optarg ;; 1208 1209 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1210 | --libexe | --libex | --libe) 1211 ac_prev=libexecdir ;; 1212 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1213 | --libexe=* | --libex=* | --libe=*) 1214 libexecdir=$ac_optarg ;; 1215 1216 -localedir | --localedir | --localedi | --localed | --locale) 1217 ac_prev=localedir ;; 1218 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1219 localedir=$ac_optarg ;; 1220 1221 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1222 | --localstate | --localstat | --localsta | --localst | --locals) 1223 ac_prev=localstatedir ;; 1224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1225 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1226 localstatedir=$ac_optarg ;; 1227 1228 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1229 ac_prev=mandir ;; 1230 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1231 mandir=$ac_optarg ;; 1232 1233 -nfp | --nfp | --nf) 1234 # Obsolete; use --without-fp. 1235 with_fp=no ;; 1236 1237 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1238 | --no-cr | --no-c | -n) 1239 no_create=yes ;; 1240 1241 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1242 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1243 no_recursion=yes ;; 1244 1245 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1246 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1247 | --oldin | --oldi | --old | --ol | --o) 1248 ac_prev=oldincludedir ;; 1249 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1250 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1251 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1252 oldincludedir=$ac_optarg ;; 1253 1254 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1255 ac_prev=prefix ;; 1256 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1257 prefix=$ac_optarg ;; 1258 1259 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1260 | --program-pre | --program-pr | --program-p) 1261 ac_prev=program_prefix ;; 1262 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1263 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1264 program_prefix=$ac_optarg ;; 1265 1266 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1267 | --program-suf | --program-su | --program-s) 1268 ac_prev=program_suffix ;; 1269 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1270 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1271 program_suffix=$ac_optarg ;; 1272 1273 -program-transform-name | --program-transform-name \ 1274 | --program-transform-nam | --program-transform-na \ 1275 | --program-transform-n | --program-transform- \ 1276 | --program-transform | --program-transfor \ 1277 | --program-transfo | --program-transf \ 1278 | --program-trans | --program-tran \ 1279 | --progr-tra | --program-tr | --program-t) 1280 ac_prev=program_transform_name ;; 1281 -program-transform-name=* | --program-transform-name=* \ 1282 | --program-transform-nam=* | --program-transform-na=* \ 1283 | --program-transform-n=* | --program-transform-=* \ 1284 | --program-transform=* | --program-transfor=* \ 1285 | --program-transfo=* | --program-transf=* \ 1286 | --program-trans=* | --program-tran=* \ 1287 | --progr-tra=* | --program-tr=* | --program-t=*) 1288 program_transform_name=$ac_optarg ;; 1289 1290 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1291 ac_prev=pdfdir ;; 1292 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1293 pdfdir=$ac_optarg ;; 1294 1295 -psdir | --psdir | --psdi | --psd | --ps) 1296 ac_prev=psdir ;; 1297 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1298 psdir=$ac_optarg ;; 1299 1300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1301 | -silent | --silent | --silen | --sile | --sil) 1302 silent=yes ;; 1303 1304 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1305 | --runstate | --runstat | --runsta | --runst | --runs \ 1306 | --run | --ru | --r) 1307 ac_prev=runstatedir ;; 1308 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1309 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1310 | --run=* | --ru=* | --r=*) 1311 runstatedir=$ac_optarg ;; 1312 1313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1314 ac_prev=sbindir ;; 1315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1316 | --sbi=* | --sb=*) 1317 sbindir=$ac_optarg ;; 1318 1319 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1321 | --sharedst | --shareds | --shared | --share | --shar \ 1322 | --sha | --sh) 1323 ac_prev=sharedstatedir ;; 1324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1327 | --sha=* | --sh=*) 1328 sharedstatedir=$ac_optarg ;; 1329 1330 -site | --site | --sit) 1331 ac_prev=site ;; 1332 -site=* | --site=* | --sit=*) 1333 site=$ac_optarg ;; 1334 1335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1336 ac_prev=srcdir ;; 1337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1338 srcdir=$ac_optarg ;; 1339 1340 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1341 | --syscon | --sysco | --sysc | --sys | --sy) 1342 ac_prev=sysconfdir ;; 1343 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1344 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1345 sysconfdir=$ac_optarg ;; 1346 1347 -target | --target | --targe | --targ | --tar | --ta | --t) 1348 ac_prev=target_alias ;; 1349 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1350 target_alias=$ac_optarg ;; 1351 1352 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1353 verbose=yes ;; 1354 1355 -version | --version | --versio | --versi | --vers | -V) 1356 ac_init_version=: ;; 1357 1358 -with-* | --with-*) 1359 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1360 # Reject names that are not valid shell variable names. 1361 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1362 as_fn_error $? "invalid package name: $ac_useropt" 1363 ac_useropt_orig=$ac_useropt 1364 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1365 case $ac_user_opts in 1366 *" 1367"with_$ac_useropt" 1368"*) ;; 1369 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1370 ac_unrecognized_sep=', ';; 1371 esac 1372 eval with_$ac_useropt=\$ac_optarg ;; 1373 1374 -without-* | --without-*) 1375 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1376 # Reject names that are not valid shell variable names. 1377 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1378 as_fn_error $? "invalid package name: $ac_useropt" 1379 ac_useropt_orig=$ac_useropt 1380 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1381 case $ac_user_opts in 1382 *" 1383"with_$ac_useropt" 1384"*) ;; 1385 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1386 ac_unrecognized_sep=', ';; 1387 esac 1388 eval with_$ac_useropt=no ;; 1389 1390 --x) 1391 # Obsolete; use --with-x. 1392 with_x=yes ;; 1393 1394 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1395 | --x-incl | --x-inc | --x-in | --x-i) 1396 ac_prev=x_includes ;; 1397 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1398 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1399 x_includes=$ac_optarg ;; 1400 1401 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1402 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1403 ac_prev=x_libraries ;; 1404 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1405 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1406 x_libraries=$ac_optarg ;; 1407 1408 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1409Try \`$0 --help' for more information" 1410 ;; 1411 1412 *=*) 1413 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1414 # Reject names that are not valid shell variable names. 1415 case $ac_envvar in #( 1416 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1417 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1418 esac 1419 eval $ac_envvar=\$ac_optarg 1420 export $ac_envvar ;; 1421 1422 *) 1423 # FIXME: should be removed in autoconf 3.0. 1424 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1425 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1426 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1427 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1428 ;; 1429 1430 esac 1431done 1432 1433if test -n "$ac_prev"; then 1434 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1435 as_fn_error $? "missing argument to $ac_option" 1436fi 1437 1438if test -n "$ac_unrecognized_opts"; then 1439 case $enable_option_checking in 1440 no) ;; 1441 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1442 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1443 esac 1444fi 1445 1446# Check all directory arguments for consistency. 1447for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1448 datadir sysconfdir sharedstatedir localstatedir includedir \ 1449 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1450 libdir localedir mandir runstatedir 1451do 1452 eval ac_val=\$$ac_var 1453 # Remove trailing slashes. 1454 case $ac_val in 1455 */ ) 1456 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1457 eval $ac_var=\$ac_val;; 1458 esac 1459 # Be sure to have absolute directory names. 1460 case $ac_val in 1461 [\\/$]* | ?:[\\/]* ) continue;; 1462 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1463 esac 1464 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1465done 1466 1467# There might be people who depend on the old broken behavior: `$host' 1468# used to hold the argument of --host etc. 1469# FIXME: To remove some day. 1470build=$build_alias 1471host=$host_alias 1472target=$target_alias 1473 1474# FIXME: To remove some day. 1475if test "x$host_alias" != x; then 1476 if test "x$build_alias" = x; then 1477 cross_compiling=maybe 1478 elif test "x$build_alias" != "x$host_alias"; then 1479 cross_compiling=yes 1480 fi 1481fi 1482 1483ac_tool_prefix= 1484test -n "$host_alias" && ac_tool_prefix=$host_alias- 1485 1486test "$silent" = yes && exec 6>/dev/null 1487 1488 1489ac_pwd=`pwd` && test -n "$ac_pwd" && 1490ac_ls_di=`ls -di .` && 1491ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1492 as_fn_error $? "working directory cannot be determined" 1493test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1494 as_fn_error $? "pwd does not report name of working directory" 1495 1496 1497# Find the source files, if location was not specified. 1498if test -z "$srcdir"; then 1499 ac_srcdir_defaulted=yes 1500 # Try the directory containing this script, then the parent directory. 1501 ac_confdir=`$as_dirname -- "$as_myself" || 1502$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1503 X"$as_myself" : 'X\(//\)[^/]' \| \ 1504 X"$as_myself" : 'X\(//\)$' \| \ 1505 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1506$as_echo X"$as_myself" | 1507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1508 s//\1/ 1509 q 1510 } 1511 /^X\(\/\/\)[^/].*/{ 1512 s//\1/ 1513 q 1514 } 1515 /^X\(\/\/\)$/{ 1516 s//\1/ 1517 q 1518 } 1519 /^X\(\/\).*/{ 1520 s//\1/ 1521 q 1522 } 1523 s/.*/./; q'` 1524 srcdir=$ac_confdir 1525 if test ! -r "$srcdir/$ac_unique_file"; then 1526 srcdir=.. 1527 fi 1528else 1529 ac_srcdir_defaulted=no 1530fi 1531if test ! -r "$srcdir/$ac_unique_file"; then 1532 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1533 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1534fi 1535ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1536ac_abs_confdir=`( 1537 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1538 pwd)` 1539# When building in place, set srcdir=. 1540if test "$ac_abs_confdir" = "$ac_pwd"; then 1541 srcdir=. 1542fi 1543# Remove unnecessary trailing slashes from srcdir. 1544# Double slashes in file names in object file debugging info 1545# mess up M-x gdb in Emacs. 1546case $srcdir in 1547*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1548esac 1549for ac_var in $ac_precious_vars; do 1550 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1551 eval ac_env_${ac_var}_value=\$${ac_var} 1552 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1553 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1554done 1555 1556# 1557# Report the --help message. 1558# 1559if test "$ac_init_help" = "long"; then 1560 # Omit some internal or obsolete options to make the list less imposing. 1561 # This message is too long to be a string in the A/UX 3.1 sh. 1562 cat <<_ACEOF 1563\`configure' configures this package to adapt to many kinds of systems. 1564 1565Usage: $0 [OPTION]... [VAR=VALUE]... 1566 1567To assign environment variables (e.g., CC, CFLAGS...), specify them as 1568VAR=VALUE. See below for descriptions of some of the useful variables. 1569 1570Defaults for the options are specified in brackets. 1571 1572Configuration: 1573 -h, --help display this help and exit 1574 --help=short display options specific to this package 1575 --help=recursive display the short help of all the included packages 1576 -V, --version display version information and exit 1577 -q, --quiet, --silent do not print \`checking ...' messages 1578 --cache-file=FILE cache test results in FILE [disabled] 1579 -C, --config-cache alias for \`--cache-file=config.cache' 1580 -n, --no-create do not create output files 1581 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1582 1583Installation directories: 1584 --prefix=PREFIX install architecture-independent files in PREFIX 1585 [$ac_default_prefix] 1586 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1587 [PREFIX] 1588 1589By default, \`make install' will install all the files in 1590\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1591an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1592for instance \`--prefix=\$HOME'. 1593 1594For better control, use the options below. 1595 1596Fine tuning of the installation directories: 1597 --bindir=DIR user executables [EPREFIX/bin] 1598 --sbindir=DIR system admin executables [EPREFIX/sbin] 1599 --libexecdir=DIR program executables [EPREFIX/libexec] 1600 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1601 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1602 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1603 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1604 --libdir=DIR object code libraries [EPREFIX/lib] 1605 --includedir=DIR C header files [PREFIX/include] 1606 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1607 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1608 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1609 --infodir=DIR info documentation [DATAROOTDIR/info] 1610 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1611 --mandir=DIR man documentation [DATAROOTDIR/man] 1612 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1613 --htmldir=DIR html documentation [DOCDIR] 1614 --dvidir=DIR dvi documentation [DOCDIR] 1615 --pdfdir=DIR pdf documentation [DOCDIR] 1616 --psdir=DIR ps documentation [DOCDIR] 1617_ACEOF 1618 1619 cat <<\_ACEOF 1620 1621Program names: 1622 --program-prefix=PREFIX prepend PREFIX to installed program names 1623 --program-suffix=SUFFIX append SUFFIX to installed program names 1624 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1625 1626X features: 1627 --x-includes=DIR X include files are in DIR 1628 --x-libraries=DIR X library files are in DIR 1629 1630System types: 1631 --build=BUILD configure for building on BUILD [guessed] 1632 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1633_ACEOF 1634fi 1635 1636if test -n "$ac_init_help"; then 1637 1638 cat <<\_ACEOF 1639 1640Optional Features: 1641 --disable-option-checking ignore unrecognized --enable/--with options 1642 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1643 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1644 --enable-silent-rules less verbose build output (undo: "make V=1") 1645 --disable-silent-rules verbose build output (undo: "make V=0") 1646 --enable-static[=PKGS] build static libraries [default=no] 1647 --enable-shared[=PKGS] build shared libraries [default=yes] 1648 --enable-dependency-tracking 1649 do not reject slow dependency extractors 1650 --disable-dependency-tracking 1651 speeds up one-time build 1652 --enable-fast-install[=PKGS] 1653 optimize for fast installation [default=yes] 1654 --disable-libtool-lock avoid locking (might break parallel builds) 1655 --disable-rpath do not hardcode runtime library paths 1656 --enable-binreloc compile with binary relocation support 1657 (default=enable when available) 1658 --enable-binreloc-threads compile binary relocation with threads support 1659 (default=yes) 1660 --enable-gwen-subproject make gwen only a subproject (default=no) 1661 --enable-system-certs use system-wide certificates (default=yes) 1662 --disable-network-checks disables checks that assume available network during build (default=enabled) 1663 --enable-testcode allow compiling of test code (default=no) 1664 --enable-local-install allow local installation mode (default=no) 1665 --enable-variadic-macros enable variadic macros (default=yes) 1666 --enable-profiling enable profiling (default=no) 1667 --enable-fox enable fox (default=yes) 1668 --enable-release make this an official release (default=no) 1669 --enable-error-on-warning treat compiler warnings as errors (default=no) 1670 --enable-debug compile with debugging code enabled, default=no 1671 --enable-warnings enable compilation warnings, default=yes 1672 --enable-error-on-warning treat all compile warnings as errors, default=no 1673 --enable-memtrace enable memory trace (default=no) 1674 --enable-full-doc enable creating full apidoc (default=no) 1675 1676Optional Packages: 1677 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1678 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1679 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1680 both] 1681 --with-aix-soname=aix|svr4|both 1682 shared library versioning (aka "SONAME") variant to 1683 provide on AIX, [default=aix]. 1684 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1685 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1686 compiler's sysroot if not specified). 1687 --with-gnu-ld assume the C compiler uses GNU ld default=no 1688 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1689 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1690 --with-plugin-searchdir=DIR where to search for plugins 1691 --with-data-searchdir=DIR where to search for gwen's data files 1692 --with-sysdata-searchdir=DIR where to search for data files 1693 --with-locale-searchdir=DIR where to search for locale files 1694 --with-cfg-searchdir=DIR where to search for cfg files 1695 --with-libgcrypt-prefix=PFX 1696 prefix where LIBGCRYPT is installed (optional) 1697 --with-libgpg-error-prefix=PFX 1698 prefix where GPG Error is installed (optional) 1699 1700 --with-iconv=PATH take iconv from PATH 1701 --with-guis=list space separated list of GUI implementations (default:all) 1702 --with-fox-includes=DIR uses fox includes from given dir 1703 --with-fox-libs=SPEC uses given fox libs 1704 --with-libxml2-code=yes compile libXML2-depending code 1705 --with-qt4-includes=DIR uses qt4 includes from given dir 1706 --with-qt4-libs=DIR uses qt4 libs from given dir 1707 --with-qt4-moc=FILE uses the given qt4 moc 1708 --with-qt4-uic=FILE uses the given qt4 uic 1709 --with-x use the X Window System 1710 --with-qt5-qmake=FILE uses given qmake 1711 --with-qt5-moc=FILE uses given qt moc 1712 --with-qt5-uic=FILE uses given qt uic 1713 --with-docpath=DIR where to store the apidoc 1714 --with-buffer-hardlimit=VALUE new default buffer hard limit 1715 --with-plugins-ct=LIST list of CT plugins to build 1716 --with-plugins-dbio=LIST list of DBIO plugins to build 1717 --with-plugins-cfgmgr=LIST list of ConfigManager plugins to build 1718 1719Some influential environment variables: 1720 CC C compiler command 1721 CFLAGS C compiler flags 1722 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1723 nonstandard directory <lib dir> 1724 LIBS libraries to pass to the linker, e.g. -l<library> 1725 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1726 you have headers in a nonstandard directory <include dir> 1727 CXX C++ compiler command 1728 CXXFLAGS C++ compiler flags 1729 CPP C preprocessor 1730 OBJC Objective C compiler command 1731 OBJCFLAGS Objective C compiler flags 1732 LT_SYS_LIBRARY_PATH 1733 User-defined run-time library search path. 1734 CXXCPP C++ preprocessor 1735 PKG_CONFIG path to pkg-config utility 1736 PKG_CONFIG_PATH 1737 directories to add to pkg-config's search path 1738 PKG_CONFIG_LIBDIR 1739 path overriding pkg-config's built-in search path 1740 LIBGNUTLS_CFLAGS 1741 C compiler flags for LIBGNUTLS, overriding pkg-config 1742 LIBGNUTLS_LIBS 1743 linker flags for LIBGNUTLS, overriding pkg-config 1744 OPENSSL_CFLAGS 1745 C compiler flags for OPENSSL, overriding pkg-config 1746 OPENSSL_LIBS 1747 linker flags for OPENSSL, overriding pkg-config 1748 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config 1749 GTK2_LIBS linker flags for GTK2, overriding pkg-config 1750 GTK3_CFLAGS C compiler flags for GTK3, overriding pkg-config 1751 GTK3_LIBS linker flags for GTK3, overriding pkg-config 1752 LIBXML_CFLAGS 1753 C compiler flags for LIBXML, overriding pkg-config 1754 LIBXML_LIBS linker flags for LIBXML, overriding pkg-config 1755 XMKMF Path to xmkmf, Makefile generator for X Window System 1756 1757Use these variables to override the choices made by `configure' or to help 1758it to find libraries and programs with nonstandard names/locations. 1759 1760Report bugs to the package provider. 1761_ACEOF 1762ac_status=$? 1763fi 1764 1765if test "$ac_init_help" = "recursive"; then 1766 # If there are subdirs, report their specific --help. 1767 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1768 test -d "$ac_dir" || 1769 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1770 continue 1771 ac_builddir=. 1772 1773case "$ac_dir" in 1774.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1775*) 1776 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1777 # A ".." for each directory in $ac_dir_suffix. 1778 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1779 case $ac_top_builddir_sub in 1780 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1781 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1782 esac ;; 1783esac 1784ac_abs_top_builddir=$ac_pwd 1785ac_abs_builddir=$ac_pwd$ac_dir_suffix 1786# for backward compatibility: 1787ac_top_builddir=$ac_top_build_prefix 1788 1789case $srcdir in 1790 .) # We are building in place. 1791 ac_srcdir=. 1792 ac_top_srcdir=$ac_top_builddir_sub 1793 ac_abs_top_srcdir=$ac_pwd ;; 1794 [\\/]* | ?:[\\/]* ) # Absolute name. 1795 ac_srcdir=$srcdir$ac_dir_suffix; 1796 ac_top_srcdir=$srcdir 1797 ac_abs_top_srcdir=$srcdir ;; 1798 *) # Relative name. 1799 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1800 ac_top_srcdir=$ac_top_build_prefix$srcdir 1801 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1802esac 1803ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1804 1805 cd "$ac_dir" || { ac_status=$?; continue; } 1806 # Check for guested configure. 1807 if test -f "$ac_srcdir/configure.gnu"; then 1808 echo && 1809 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1810 elif test -f "$ac_srcdir/configure"; then 1811 echo && 1812 $SHELL "$ac_srcdir/configure" --help=recursive 1813 else 1814 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1815 fi || ac_status=$? 1816 cd "$ac_pwd" || { ac_status=$?; break; } 1817 done 1818fi 1819 1820test -n "$ac_init_help" && exit $ac_status 1821if $ac_init_version; then 1822 cat <<\_ACEOF 1823configure 1824generated by GNU Autoconf 2.69 1825 1826Copyright (C) 2012 Free Software Foundation, Inc. 1827This configure script is free software; the Free Software Foundation 1828gives unlimited permission to copy, distribute and modify it. 1829_ACEOF 1830 exit 1831fi 1832 1833## ------------------------ ## 1834## Autoconf initialization. ## 1835## ------------------------ ## 1836 1837# ac_fn_c_try_compile LINENO 1838# -------------------------- 1839# Try to compile conftest.$ac_ext, and return whether this succeeded. 1840ac_fn_c_try_compile () 1841{ 1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1843 rm -f conftest.$ac_objext 1844 if { { ac_try="$ac_compile" 1845case "(($ac_try" in 1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1847 *) ac_try_echo=$ac_try;; 1848esac 1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1850$as_echo "$ac_try_echo"; } >&5 1851 (eval "$ac_compile") 2>conftest.err 1852 ac_status=$? 1853 if test -s conftest.err; then 1854 grep -v '^ *+' conftest.err >conftest.er1 1855 cat conftest.er1 >&5 1856 mv -f conftest.er1 conftest.err 1857 fi 1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1859 test $ac_status = 0; } && { 1860 test -z "$ac_c_werror_flag" || 1861 test ! -s conftest.err 1862 } && test -s conftest.$ac_objext; then : 1863 ac_retval=0 1864else 1865 $as_echo "$as_me: failed program was:" >&5 1866sed 's/^/| /' conftest.$ac_ext >&5 1867 1868 ac_retval=1 1869fi 1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1871 as_fn_set_status $ac_retval 1872 1873} # ac_fn_c_try_compile 1874 1875# ac_fn_cxx_try_compile LINENO 1876# ---------------------------- 1877# Try to compile conftest.$ac_ext, and return whether this succeeded. 1878ac_fn_cxx_try_compile () 1879{ 1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1881 rm -f conftest.$ac_objext 1882 if { { ac_try="$ac_compile" 1883case "(($ac_try" in 1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1885 *) ac_try_echo=$ac_try;; 1886esac 1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1888$as_echo "$ac_try_echo"; } >&5 1889 (eval "$ac_compile") 2>conftest.err 1890 ac_status=$? 1891 if test -s conftest.err; then 1892 grep -v '^ *+' conftest.err >conftest.er1 1893 cat conftest.er1 >&5 1894 mv -f conftest.er1 conftest.err 1895 fi 1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1897 test $ac_status = 0; } && { 1898 test -z "$ac_cxx_werror_flag" || 1899 test ! -s conftest.err 1900 } && test -s conftest.$ac_objext; then : 1901 ac_retval=0 1902else 1903 $as_echo "$as_me: failed program was:" >&5 1904sed 's/^/| /' conftest.$ac_ext >&5 1905 1906 ac_retval=1 1907fi 1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1909 as_fn_set_status $ac_retval 1910 1911} # ac_fn_cxx_try_compile 1912 1913# ac_fn_c_try_cpp LINENO 1914# ---------------------- 1915# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1916ac_fn_c_try_cpp () 1917{ 1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1919 if { { ac_try="$ac_cpp conftest.$ac_ext" 1920case "(($ac_try" in 1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1922 *) ac_try_echo=$ac_try;; 1923esac 1924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1925$as_echo "$ac_try_echo"; } >&5 1926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1927 ac_status=$? 1928 if test -s conftest.err; then 1929 grep -v '^ *+' conftest.err >conftest.er1 1930 cat conftest.er1 >&5 1931 mv -f conftest.er1 conftest.err 1932 fi 1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1934 test $ac_status = 0; } > conftest.i && { 1935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1936 test ! -s conftest.err 1937 }; then : 1938 ac_retval=0 1939else 1940 $as_echo "$as_me: failed program was:" >&5 1941sed 's/^/| /' conftest.$ac_ext >&5 1942 1943 ac_retval=1 1944fi 1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1946 as_fn_set_status $ac_retval 1947 1948} # ac_fn_c_try_cpp 1949 1950# ac_fn_objc_try_compile LINENO 1951# ----------------------------- 1952# Try to compile conftest.$ac_ext, and return whether this succeeded. 1953ac_fn_objc_try_compile () 1954{ 1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1956 rm -f conftest.$ac_objext 1957 if { { ac_try="$ac_compile" 1958case "(($ac_try" in 1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1960 *) ac_try_echo=$ac_try;; 1961esac 1962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1963$as_echo "$ac_try_echo"; } >&5 1964 (eval "$ac_compile") 2>conftest.err 1965 ac_status=$? 1966 if test -s conftest.err; then 1967 grep -v '^ *+' conftest.err >conftest.er1 1968 cat conftest.er1 >&5 1969 mv -f conftest.er1 conftest.err 1970 fi 1971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1972 test $ac_status = 0; } && { 1973 test -z "$ac_objc_werror_flag" || 1974 test ! -s conftest.err 1975 } && test -s conftest.$ac_objext; then : 1976 ac_retval=0 1977else 1978 $as_echo "$as_me: failed program was:" >&5 1979sed 's/^/| /' conftest.$ac_ext >&5 1980 1981 ac_retval=1 1982fi 1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1984 as_fn_set_status $ac_retval 1985 1986} # ac_fn_objc_try_compile 1987 1988# ac_fn_c_try_link LINENO 1989# ----------------------- 1990# Try to link conftest.$ac_ext, and return whether this succeeded. 1991ac_fn_c_try_link () 1992{ 1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1994 rm -f conftest.$ac_objext conftest$ac_exeext 1995 if { { ac_try="$ac_link" 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_link") 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_c_werror_flag" || 2012 test ! -s conftest.err 2013 } && test -s conftest$ac_exeext && { 2014 test "$cross_compiling" = yes || 2015 test -x conftest$ac_exeext 2016 }; then : 2017 ac_retval=0 2018else 2019 $as_echo "$as_me: failed program was:" >&5 2020sed 's/^/| /' conftest.$ac_ext >&5 2021 2022 ac_retval=1 2023fi 2024 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2025 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2026 # interfere with the next link command; also delete a directory that is 2027 # left behind by Apple's compiler. We do this before executing the actions. 2028 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2030 as_fn_set_status $ac_retval 2031 2032} # ac_fn_c_try_link 2033 2034# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2035# ------------------------------------------------------- 2036# Tests whether HEADER exists and can be compiled using the include files in 2037# INCLUDES, setting the cache variable VAR accordingly. 2038ac_fn_c_check_header_compile () 2039{ 2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2042$as_echo_n "checking for $2... " >&6; } 2043if eval \${$3+:} false; then : 2044 $as_echo_n "(cached) " >&6 2045else 2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2047/* end confdefs.h. */ 2048$4 2049#include <$2> 2050_ACEOF 2051if ac_fn_c_try_compile "$LINENO"; then : 2052 eval "$3=yes" 2053else 2054 eval "$3=no" 2055fi 2056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2057fi 2058eval ac_res=\$$3 2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2060$as_echo "$ac_res" >&6; } 2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2062 2063} # ac_fn_c_check_header_compile 2064 2065# ac_fn_c_try_run LINENO 2066# ---------------------- 2067# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2068# that executables *can* be run. 2069ac_fn_c_try_run () 2070{ 2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2072 if { { ac_try="$ac_link" 2073case "(($ac_try" in 2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2075 *) ac_try_echo=$ac_try;; 2076esac 2077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2078$as_echo "$ac_try_echo"; } >&5 2079 (eval "$ac_link") 2>&5 2080 ac_status=$? 2081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2082 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2083 { { case "(($ac_try" in 2084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2085 *) ac_try_echo=$ac_try;; 2086esac 2087eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2088$as_echo "$ac_try_echo"; } >&5 2089 (eval "$ac_try") 2>&5 2090 ac_status=$? 2091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2092 test $ac_status = 0; }; }; then : 2093 ac_retval=0 2094else 2095 $as_echo "$as_me: program exited with status $ac_status" >&5 2096 $as_echo "$as_me: failed program was:" >&5 2097sed 's/^/| /' conftest.$ac_ext >&5 2098 2099 ac_retval=$ac_status 2100fi 2101 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2103 as_fn_set_status $ac_retval 2104 2105} # ac_fn_c_try_run 2106 2107# ac_fn_c_check_func LINENO FUNC VAR 2108# ---------------------------------- 2109# Tests whether FUNC exists, setting the cache variable VAR accordingly 2110ac_fn_c_check_func () 2111{ 2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2114$as_echo_n "checking for $2... " >&6; } 2115if eval \${$3+:} false; then : 2116 $as_echo_n "(cached) " >&6 2117else 2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2119/* end confdefs.h. */ 2120/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2121 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2122#define $2 innocuous_$2 2123 2124/* System header to define __stub macros and hopefully few prototypes, 2125 which can conflict with char $2 (); below. 2126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2127 <limits.h> exists even on freestanding compilers. */ 2128 2129#ifdef __STDC__ 2130# include <limits.h> 2131#else 2132# include <assert.h> 2133#endif 2134 2135#undef $2 2136 2137/* Override any GCC internal prototype to avoid an error. 2138 Use char because int might match the return type of a GCC 2139 builtin and then its argument prototype would still apply. */ 2140#ifdef __cplusplus 2141extern "C" 2142#endif 2143char $2 (); 2144/* The GNU C library defines this for functions which it implements 2145 to always fail with ENOSYS. Some functions are actually named 2146 something starting with __ and the normal name is an alias. */ 2147#if defined __stub_$2 || defined __stub___$2 2148choke me 2149#endif 2150 2151int 2152main () 2153{ 2154return $2 (); 2155 ; 2156 return 0; 2157} 2158_ACEOF 2159if ac_fn_c_try_link "$LINENO"; then : 2160 eval "$3=yes" 2161else 2162 eval "$3=no" 2163fi 2164rm -f core conftest.err conftest.$ac_objext \ 2165 conftest$ac_exeext conftest.$ac_ext 2166fi 2167eval ac_res=\$$3 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2169$as_echo "$ac_res" >&6; } 2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2171 2172} # ac_fn_c_check_func 2173 2174# ac_fn_cxx_try_cpp LINENO 2175# ------------------------ 2176# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2177ac_fn_cxx_try_cpp () 2178{ 2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2180 if { { ac_try="$ac_cpp conftest.$ac_ext" 2181case "(($ac_try" in 2182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2183 *) ac_try_echo=$ac_try;; 2184esac 2185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2186$as_echo "$ac_try_echo"; } >&5 2187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2188 ac_status=$? 2189 if test -s conftest.err; then 2190 grep -v '^ *+' conftest.err >conftest.er1 2191 cat conftest.er1 >&5 2192 mv -f conftest.er1 conftest.err 2193 fi 2194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2195 test $ac_status = 0; } > conftest.i && { 2196 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2197 test ! -s conftest.err 2198 }; then : 2199 ac_retval=0 2200else 2201 $as_echo "$as_me: failed program was:" >&5 2202sed 's/^/| /' conftest.$ac_ext >&5 2203 2204 ac_retval=1 2205fi 2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2207 as_fn_set_status $ac_retval 2208 2209} # ac_fn_cxx_try_cpp 2210 2211# ac_fn_cxx_try_link LINENO 2212# ------------------------- 2213# Try to link conftest.$ac_ext, and return whether this succeeded. 2214ac_fn_cxx_try_link () 2215{ 2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2217 rm -f conftest.$ac_objext conftest$ac_exeext 2218 if { { ac_try="$ac_link" 2219case "(($ac_try" in 2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2221 *) ac_try_echo=$ac_try;; 2222esac 2223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2224$as_echo "$ac_try_echo"; } >&5 2225 (eval "$ac_link") 2>conftest.err 2226 ac_status=$? 2227 if test -s conftest.err; then 2228 grep -v '^ *+' conftest.err >conftest.er1 2229 cat conftest.er1 >&5 2230 mv -f conftest.er1 conftest.err 2231 fi 2232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2233 test $ac_status = 0; } && { 2234 test -z "$ac_cxx_werror_flag" || 2235 test ! -s conftest.err 2236 } && test -s conftest$ac_exeext && { 2237 test "$cross_compiling" = yes || 2238 test -x conftest$ac_exeext 2239 }; then : 2240 ac_retval=0 2241else 2242 $as_echo "$as_me: failed program was:" >&5 2243sed 's/^/| /' conftest.$ac_ext >&5 2244 2245 ac_retval=1 2246fi 2247 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2248 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2249 # interfere with the next link command; also delete a directory that is 2250 # left behind by Apple's compiler. We do this before executing the actions. 2251 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2253 as_fn_set_status $ac_retval 2254 2255} # ac_fn_cxx_try_link 2256 2257# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2258# ------------------------------------------------------- 2259# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2260# the include files in INCLUDES and setting the cache variable VAR 2261# accordingly. 2262ac_fn_c_check_header_mongrel () 2263{ 2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2265 if eval \${$3+:} false; then : 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2267$as_echo_n "checking for $2... " >&6; } 2268if eval \${$3+:} false; then : 2269 $as_echo_n "(cached) " >&6 2270fi 2271eval ac_res=\$$3 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2273$as_echo "$ac_res" >&6; } 2274else 2275 # Is the header compilable? 2276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2277$as_echo_n "checking $2 usability... " >&6; } 2278cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2279/* end confdefs.h. */ 2280$4 2281#include <$2> 2282_ACEOF 2283if ac_fn_c_try_compile "$LINENO"; then : 2284 ac_header_compiler=yes 2285else 2286 ac_header_compiler=no 2287fi 2288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2290$as_echo "$ac_header_compiler" >&6; } 2291 2292# Is the header present? 2293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2294$as_echo_n "checking $2 presence... " >&6; } 2295cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2296/* end confdefs.h. */ 2297#include <$2> 2298_ACEOF 2299if ac_fn_c_try_cpp "$LINENO"; then : 2300 ac_header_preproc=yes 2301else 2302 ac_header_preproc=no 2303fi 2304rm -f conftest.err conftest.i conftest.$ac_ext 2305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2306$as_echo "$ac_header_preproc" >&6; } 2307 2308# So? What about this header? 2309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2310 yes:no: ) 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2312$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2314$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2315 ;; 2316 no:yes:* ) 2317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2318$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2320$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2322$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2324$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2326$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2327 ;; 2328esac 2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2330$as_echo_n "checking for $2... " >&6; } 2331if eval \${$3+:} false; then : 2332 $as_echo_n "(cached) " >&6 2333else 2334 eval "$3=\$ac_header_compiler" 2335fi 2336eval ac_res=\$$3 2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2338$as_echo "$ac_res" >&6; } 2339fi 2340 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2341 2342} # ac_fn_c_check_header_mongrel 2343 2344# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2345# --------------------------------------------- 2346# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2347# accordingly. 2348ac_fn_c_check_decl () 2349{ 2350 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2351 as_decl_name=`echo $2|sed 's/ *(.*//'` 2352 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2354$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2355if eval \${$3+:} false; then : 2356 $as_echo_n "(cached) " >&6 2357else 2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2359/* end confdefs.h. */ 2360$4 2361int 2362main () 2363{ 2364#ifndef $as_decl_name 2365#ifdef __cplusplus 2366 (void) $as_decl_use; 2367#else 2368 (void) $as_decl_name; 2369#endif 2370#endif 2371 2372 ; 2373 return 0; 2374} 2375_ACEOF 2376if ac_fn_c_try_compile "$LINENO"; then : 2377 eval "$3=yes" 2378else 2379 eval "$3=no" 2380fi 2381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2382fi 2383eval ac_res=\$$3 2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2385$as_echo "$ac_res" >&6; } 2386 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2387 2388} # ac_fn_c_check_decl 2389 2390# ac_fn_cxx_check_func LINENO FUNC VAR 2391# ------------------------------------ 2392# Tests whether FUNC exists, setting the cache variable VAR accordingly 2393ac_fn_cxx_check_func () 2394{ 2395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2397$as_echo_n "checking for $2... " >&6; } 2398if eval \${$3+:} false; then : 2399 $as_echo_n "(cached) " >&6 2400else 2401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2402/* end confdefs.h. */ 2403/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2404 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2405#define $2 innocuous_$2 2406 2407/* System header to define __stub macros and hopefully few prototypes, 2408 which can conflict with char $2 (); below. 2409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2410 <limits.h> exists even on freestanding compilers. */ 2411 2412#ifdef __STDC__ 2413# include <limits.h> 2414#else 2415# include <assert.h> 2416#endif 2417 2418#undef $2 2419 2420/* Override any GCC internal prototype to avoid an error. 2421 Use char because int might match the return type of a GCC 2422 builtin and then its argument prototype would still apply. */ 2423#ifdef __cplusplus 2424extern "C" 2425#endif 2426char $2 (); 2427/* The GNU C library defines this for functions which it implements 2428 to always fail with ENOSYS. Some functions are actually named 2429 something starting with __ and the normal name is an alias. */ 2430#if defined __stub_$2 || defined __stub___$2 2431choke me 2432#endif 2433 2434int 2435main () 2436{ 2437return $2 (); 2438 ; 2439 return 0; 2440} 2441_ACEOF 2442if ac_fn_cxx_try_link "$LINENO"; then : 2443 eval "$3=yes" 2444else 2445 eval "$3=no" 2446fi 2447rm -f core conftest.err conftest.$ac_objext \ 2448 conftest$ac_exeext conftest.$ac_ext 2449fi 2450eval ac_res=\$$3 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2452$as_echo "$ac_res" >&6; } 2453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2454 2455} # ac_fn_cxx_check_func 2456cat >config.log <<_ACEOF 2457This file contains any messages produced by compilers while 2458running configure, to aid debugging if configure makes a mistake. 2459 2460It was created by $as_me, which was 2461generated by GNU Autoconf 2.69. Invocation command line was 2462 2463 $ $0 $@ 2464 2465_ACEOF 2466exec 5>>config.log 2467{ 2468cat <<_ASUNAME 2469## --------- ## 2470## Platform. ## 2471## --------- ## 2472 2473hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2474uname -m = `(uname -m) 2>/dev/null || echo unknown` 2475uname -r = `(uname -r) 2>/dev/null || echo unknown` 2476uname -s = `(uname -s) 2>/dev/null || echo unknown` 2477uname -v = `(uname -v) 2>/dev/null || echo unknown` 2478 2479/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2480/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2481 2482/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2483/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2484/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2485/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2486/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2487/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2488/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2489 2490_ASUNAME 2491 2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2493for as_dir in $PATH 2494do 2495 IFS=$as_save_IFS 2496 test -z "$as_dir" && as_dir=. 2497 $as_echo "PATH: $as_dir" 2498 done 2499IFS=$as_save_IFS 2500 2501} >&5 2502 2503cat >&5 <<_ACEOF 2504 2505 2506## ----------- ## 2507## Core tests. ## 2508## ----------- ## 2509 2510_ACEOF 2511 2512 2513# Keep a trace of the command line. 2514# Strip out --no-create and --no-recursion so they do not pile up. 2515# Strip out --silent because we don't want to record it for future runs. 2516# Also quote any args containing shell meta-characters. 2517# Make two passes to allow for proper duplicate-argument suppression. 2518ac_configure_args= 2519ac_configure_args0= 2520ac_configure_args1= 2521ac_must_keep_next=false 2522for ac_pass in 1 2 2523do 2524 for ac_arg 2525 do 2526 case $ac_arg in 2527 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2529 | -silent | --silent | --silen | --sile | --sil) 2530 continue ;; 2531 *\'*) 2532 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2533 esac 2534 case $ac_pass in 2535 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2536 2) 2537 as_fn_append ac_configure_args1 " '$ac_arg'" 2538 if test $ac_must_keep_next = true; then 2539 ac_must_keep_next=false # Got value, back to normal. 2540 else 2541 case $ac_arg in 2542 *=* | --config-cache | -C | -disable-* | --disable-* \ 2543 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2544 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2545 | -with-* | --with-* | -without-* | --without-* | --x) 2546 case "$ac_configure_args0 " in 2547 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2548 esac 2549 ;; 2550 -* ) ac_must_keep_next=true ;; 2551 esac 2552 fi 2553 as_fn_append ac_configure_args " '$ac_arg'" 2554 ;; 2555 esac 2556 done 2557done 2558{ ac_configure_args0=; unset ac_configure_args0;} 2559{ ac_configure_args1=; unset ac_configure_args1;} 2560 2561# When interrupted or exit'd, cleanup temporary files, and complete 2562# config.log. We remove comments because anyway the quotes in there 2563# would cause problems or look ugly. 2564# WARNING: Use '\'' to represent an apostrophe within the trap. 2565# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2566trap 'exit_status=$? 2567 # Save into config.log some information that might help in debugging. 2568 { 2569 echo 2570 2571 $as_echo "## ---------------- ## 2572## Cache variables. ## 2573## ---------------- ##" 2574 echo 2575 # The following way of writing the cache mishandles newlines in values, 2576( 2577 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2578 eval ac_val=\$$ac_var 2579 case $ac_val in #( 2580 *${as_nl}*) 2581 case $ac_var in #( 2582 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2583$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2584 esac 2585 case $ac_var in #( 2586 _ | IFS | as_nl) ;; #( 2587 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2588 *) { eval $ac_var=; unset $ac_var;} ;; 2589 esac ;; 2590 esac 2591 done 2592 (set) 2>&1 | 2593 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2594 *${as_nl}ac_space=\ *) 2595 sed -n \ 2596 "s/'\''/'\''\\\\'\'''\''/g; 2597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2598 ;; #( 2599 *) 2600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2601 ;; 2602 esac | 2603 sort 2604) 2605 echo 2606 2607 $as_echo "## ----------------- ## 2608## Output variables. ## 2609## ----------------- ##" 2610 echo 2611 for ac_var in $ac_subst_vars 2612 do 2613 eval ac_val=\$$ac_var 2614 case $ac_val in 2615 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2616 esac 2617 $as_echo "$ac_var='\''$ac_val'\''" 2618 done | sort 2619 echo 2620 2621 if test -n "$ac_subst_files"; then 2622 $as_echo "## ------------------- ## 2623## File substitutions. ## 2624## ------------------- ##" 2625 echo 2626 for ac_var in $ac_subst_files 2627 do 2628 eval ac_val=\$$ac_var 2629 case $ac_val in 2630 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2631 esac 2632 $as_echo "$ac_var='\''$ac_val'\''" 2633 done | sort 2634 echo 2635 fi 2636 2637 if test -s confdefs.h; then 2638 $as_echo "## ----------- ## 2639## confdefs.h. ## 2640## ----------- ##" 2641 echo 2642 cat confdefs.h 2643 echo 2644 fi 2645 test "$ac_signal" != 0 && 2646 $as_echo "$as_me: caught signal $ac_signal" 2647 $as_echo "$as_me: exit $exit_status" 2648 } >&5 2649 rm -f core *.core core.conftest.* && 2650 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2651 exit $exit_status 2652' 0 2653for ac_signal in 1 2 13 15; do 2654 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2655done 2656ac_signal=0 2657 2658# confdefs.h avoids OS command line length limits that DEFS can exceed. 2659rm -f -r conftest* confdefs.h 2660 2661$as_echo "/* confdefs.h */" > confdefs.h 2662 2663# Predefined preprocessor variables. 2664 2665cat >>confdefs.h <<_ACEOF 2666#define PACKAGE_NAME "$PACKAGE_NAME" 2667_ACEOF 2668 2669cat >>confdefs.h <<_ACEOF 2670#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2671_ACEOF 2672 2673cat >>confdefs.h <<_ACEOF 2674#define PACKAGE_VERSION "$PACKAGE_VERSION" 2675_ACEOF 2676 2677cat >>confdefs.h <<_ACEOF 2678#define PACKAGE_STRING "$PACKAGE_STRING" 2679_ACEOF 2680 2681cat >>confdefs.h <<_ACEOF 2682#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2683_ACEOF 2684 2685cat >>confdefs.h <<_ACEOF 2686#define PACKAGE_URL "$PACKAGE_URL" 2687_ACEOF 2688 2689 2690# Let the site file select an alternate cache file if it wants to. 2691# Prefer an explicitly selected file to automatically selected ones. 2692ac_site_file1=NONE 2693ac_site_file2=NONE 2694if test -n "$CONFIG_SITE"; then 2695 # We do not want a PATH search for config.site. 2696 case $CONFIG_SITE in #(( 2697 -*) ac_site_file1=./$CONFIG_SITE;; 2698 */*) ac_site_file1=$CONFIG_SITE;; 2699 *) ac_site_file1=./$CONFIG_SITE;; 2700 esac 2701elif test "x$prefix" != xNONE; then 2702 ac_site_file1=$prefix/share/config.site 2703 ac_site_file2=$prefix/etc/config.site 2704else 2705 ac_site_file1=$ac_default_prefix/share/config.site 2706 ac_site_file2=$ac_default_prefix/etc/config.site 2707fi 2708for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2709do 2710 test "x$ac_site_file" = xNONE && continue 2711 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2713$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2714 sed 's/^/| /' "$ac_site_file" >&5 2715 . "$ac_site_file" \ 2716 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2718as_fn_error $? "failed to load site script $ac_site_file 2719See \`config.log' for more details" "$LINENO" 5; } 2720 fi 2721done 2722 2723if test -r "$cache_file"; then 2724 # Some versions of bash will fail to source /dev/null (special files 2725 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2726 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2728$as_echo "$as_me: loading cache $cache_file" >&6;} 2729 case $cache_file in 2730 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2731 *) . "./$cache_file";; 2732 esac 2733 fi 2734else 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2736$as_echo "$as_me: creating cache $cache_file" >&6;} 2737 >$cache_file 2738fi 2739 2740as_fn_append ac_header_list " sys/time.h" 2741as_fn_append ac_header_list " unistd.h" 2742as_fn_append ac_func_list " alarm" 2743# Check that the precious variables saved in the cache have kept the same 2744# value. 2745ac_cache_corrupted=false 2746for ac_var in $ac_precious_vars; do 2747 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2748 eval ac_new_set=\$ac_env_${ac_var}_set 2749 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2750 eval ac_new_val=\$ac_env_${ac_var}_value 2751 case $ac_old_set,$ac_new_set in 2752 set,) 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2754$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2755 ac_cache_corrupted=: ;; 2756 ,set) 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2758$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2759 ac_cache_corrupted=: ;; 2760 ,);; 2761 *) 2762 if test "x$ac_old_val" != "x$ac_new_val"; then 2763 # differences in whitespace do not lead to failure. 2764 ac_old_val_w=`echo x $ac_old_val` 2765 ac_new_val_w=`echo x $ac_new_val` 2766 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2767 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2768$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2769 ac_cache_corrupted=: 2770 else 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2772$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2773 eval $ac_var=\$ac_old_val 2774 fi 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2776$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2777 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2778$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2779 fi;; 2780 esac 2781 # Pass precious variables to config.status. 2782 if test "$ac_new_set" = set; then 2783 case $ac_new_val in 2784 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2785 *) ac_arg=$ac_var=$ac_new_val ;; 2786 esac 2787 case " $ac_configure_args " in 2788 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2789 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2790 esac 2791 fi 2792done 2793if $ac_cache_corrupted; then 2794 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2797$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2798 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2799fi 2800## -------------------- ## 2801## Main body of script. ## 2802## -------------------- ## 2803 2804ac_ext=c 2805ac_cpp='$CPP $CPPFLAGS' 2806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2808ac_compiler_gnu=$ac_cv_c_compiler_gnu 2809 2810 2811ac_aux_dir= 2812for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2813 if test -f "$ac_dir/install-sh"; then 2814 ac_aux_dir=$ac_dir 2815 ac_install_sh="$ac_aux_dir/install-sh -c" 2816 break 2817 elif test -f "$ac_dir/install.sh"; then 2818 ac_aux_dir=$ac_dir 2819 ac_install_sh="$ac_aux_dir/install.sh -c" 2820 break 2821 elif test -f "$ac_dir/shtool"; then 2822 ac_aux_dir=$ac_dir 2823 ac_install_sh="$ac_aux_dir/shtool install -c" 2824 break 2825 fi 2826done 2827if test -z "$ac_aux_dir"; then 2828 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2829fi 2830 2831# These three variables are undocumented and unsupported, 2832# and are intended to be withdrawn in a future Autoconf release. 2833# They can cause serious problems if a builder's source tree is in a directory 2834# whose full name contains unusual characters. 2835ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2836ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2837ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2838 2839 2840# Make sure we can run config.sub. 2841$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2842 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2843 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2845$as_echo_n "checking build system type... " >&6; } 2846if ${ac_cv_build+:} false; then : 2847 $as_echo_n "(cached) " >&6 2848else 2849 ac_build_alias=$build_alias 2850test "x$ac_build_alias" = x && 2851 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2852test "x$ac_build_alias" = x && 2853 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2854ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2855 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2856 2857fi 2858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2859$as_echo "$ac_cv_build" >&6; } 2860case $ac_cv_build in 2861*-*-*) ;; 2862*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2863esac 2864build=$ac_cv_build 2865ac_save_IFS=$IFS; IFS='-' 2866set x $ac_cv_build 2867shift 2868build_cpu=$1 2869build_vendor=$2 2870shift; shift 2871# Remember, the first character of IFS is used to create $*, 2872# except with old shells: 2873build_os=$* 2874IFS=$ac_save_IFS 2875case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2876 2877 2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2879$as_echo_n "checking host system type... " >&6; } 2880if ${ac_cv_host+:} false; then : 2881 $as_echo_n "(cached) " >&6 2882else 2883 if test "x$host_alias" = x; then 2884 ac_cv_host=$ac_cv_build 2885else 2886 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2887 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2888fi 2889 2890fi 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2892$as_echo "$ac_cv_host" >&6; } 2893case $ac_cv_host in 2894*-*-*) ;; 2895*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2896esac 2897host=$ac_cv_host 2898ac_save_IFS=$IFS; IFS='-' 2899set x $ac_cv_host 2900shift 2901host_cpu=$1 2902host_vendor=$2 2903shift; shift 2904# Remember, the first character of IFS is used to create $*, 2905# except with old shells: 2906host_os=$* 2907IFS=$ac_save_IFS 2908case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2909 2910 2911 2912ac_config_headers="$ac_config_headers config.h" 2913 2914 2915###------------------------------------------------------------------------- 2916# 2917# versions 2918# 2919GWENHYWFAR_VERSION_MAJOR=5 2920GWENHYWFAR_VERSION_MINOR=6 2921GWENHYWFAR_VERSION_PATCHLEVEL=0 2922GWENHYWFAR_VERSION_BUILD=0 2923GWENHYWFAR_VERSION_TAG="stable" 2924 2925 2926 2927###------------------------------------------------------------------------- 2928# 2929# SO version for Gwenhywfar 2930# 2931GWENHYWFAR_SO_CURRENT="85" 2932GWENHYWFAR_SO_AGE="6" 2933GWENHYWFAR_SO_REVISION="0" 2934GWENHYWFAR_SO_EFFECTIVE="`echo \$(($GWENHYWFAR_SO_CURRENT-$GWENHYWFAR_SO_AGE))`" 2935 2936 2937 2938###------------------------------------------------------------------------- 2939# 2940# Generate version strings and BUILD 2941# 2942 2943#GWENHYWFAR_VERSION_BUILD="0" 2944# Let svn write the revision number directly into here on 2945# each svn update. Note: The trailing space is necessary for 2946# cvs versions. 2947#GWENHYWFAR_VERSION_BUILD=`echo "$Rev$ " | cut -d' ' -f2` 2948#if test "x$GWENHYWFAR_VERSION_BUILD" = "x" ; then 2949# GWENHYWFAR_VERSION_BUILD="0" 2950#fi 2951GWENHYWFAR_VERSION_FULL_STRING="$GWENHYWFAR_VERSION_MAJOR.$GWENHYWFAR_VERSION_MINOR.${GWENHYWFAR_VERSION_PATCHLEVEL}${GWENHYWFAR_VERSION_TAG}-${GWENHYWFAR_VERSION_BUILD}" 2952GWENHYWFAR_VERSION_STRING="$GWENHYWFAR_VERSION_MAJOR.$GWENHYWFAR_VERSION_MINOR.$GWENHYWFAR_VERSION_PATCHLEVEL" 2953 2954# The version number for the plugin/ct/ohbci/ohbci.la 2955OHBCI_VERSION_STRING="0.1.0" 2956 2957 2958 2959###------------------------------------------------------------------------- 2960# 2961# Create release strings 2962# 2963case "$GWENHYWFAR_VERSION_TAG" in 2964 cvs|svn|git) 2965 GWENHYWFAR_VERSION_RELEASE_STRING="$GWENHYWFAR_VERSION_MAJOR.$GWENHYWFAR_VERSION_MINOR.$GWENHYWFAR_VERSION_PATCHLEVEL.r${GWENHYWFAR_VERSION_BUILD}" 2966 ;; 2967 stable) 2968 GWENHYWFAR_VERSION_RELEASE_STRING="$GWENHYWFAR_VERSION_MAJOR.$GWENHYWFAR_VERSION_MINOR.$GWENHYWFAR_VERSION_PATCHLEVEL" 2969 ;; 2970 *) 2971 GWENHYWFAR_VERSION_RELEASE_STRING="$GWENHYWFAR_VERSION_MAJOR.$GWENHYWFAR_VERSION_MINOR.$GWENHYWFAR_VERSION_PATCHLEVEL" 2972 2973 # add TAG 2974 GWENHYWFAR_VERSION_RELEASE_STRING="${GWENHYWFAR_VERSION_RELEASE_STRING}${GWENHYWFAR_VERSION_TAG}" 2975 ;; 2976esac 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990cat >>confdefs.h <<_ACEOF 2991#define GWENHYWFAR_VERSION_MAJOR $GWENHYWFAR_VERSION_MAJOR 2992_ACEOF 2993 2994 2995cat >>confdefs.h <<_ACEOF 2996#define GWENHYWFAR_VERSION_MINOR $GWENHYWFAR_VERSION_MINOR 2997_ACEOF 2998 2999 3000cat >>confdefs.h <<_ACEOF 3001#define GWENHYWFAR_VERSION_PATCHLEVEL $GWENHYWFAR_VERSION_PATCHLEVEL 3002_ACEOF 3003 3004 3005cat >>confdefs.h <<_ACEOF 3006#define GWENHYWFAR_VERSION_BUILD $GWENHYWFAR_VERSION_BUILD 3007_ACEOF 3008 3009 3010cat >>confdefs.h <<_ACEOF 3011#define GWENHYWFAR_VERSION_STRING "$GWENHYWFAR_VERSION_STRING" 3012_ACEOF 3013 3014 3015cat >>confdefs.h <<_ACEOF 3016#define GWENHYWFAR_VERSION_FULL_STRING "$GWENHYWFAR_VERSION_FULL_STRING" 3017_ACEOF 3018 3019 3020cat >>confdefs.h <<_ACEOF 3021#define GWENHYWFAR_VERSION_TAG $GWENHYWFAR_VERSION_TAG 3022_ACEOF 3023 3024 3025 3026 3027 3028 3029 3030 3031am__api_version='1.15' 3032 3033# Find a good install program. We prefer a C program (faster), 3034# so one script is as good as another. But avoid the broken or 3035# incompatible versions: 3036# SysV /etc/install, /usr/sbin/install 3037# SunOS /usr/etc/install 3038# IRIX /sbin/install 3039# AIX /bin/install 3040# AmigaOS /C/install, which installs bootblocks on floppy discs 3041# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3042# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3043# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3044# OS/2's system install, which has a completely different semantic 3045# ./install, which can be erroneously created by make from ./install.sh. 3046# Reject install programs that cannot install multiple files. 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3048$as_echo_n "checking for a BSD-compatible install... " >&6; } 3049if test -z "$INSTALL"; then 3050if ${ac_cv_path_install+:} false; then : 3051 $as_echo_n "(cached) " >&6 3052else 3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3054for as_dir in $PATH 3055do 3056 IFS=$as_save_IFS 3057 test -z "$as_dir" && as_dir=. 3058 # Account for people who put trailing slashes in PATH elements. 3059case $as_dir/ in #(( 3060 ./ | .// | /[cC]/* | \ 3061 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3062 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3063 /usr/ucb/* ) ;; 3064 *) 3065 # OSF1 and SCO ODT 3.0 have their own names for install. 3066 # Don't use installbsd from OSF since it installs stuff as root 3067 # by default. 3068 for ac_prog in ginstall scoinst install; do 3069 for ac_exec_ext in '' $ac_executable_extensions; do 3070 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3071 if test $ac_prog = install && 3072 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3073 # AIX install. It has an incompatible calling convention. 3074 : 3075 elif test $ac_prog = install && 3076 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3077 # program-specific install script used by HP pwplus--don't use. 3078 : 3079 else 3080 rm -rf conftest.one conftest.two conftest.dir 3081 echo one > conftest.one 3082 echo two > conftest.two 3083 mkdir conftest.dir 3084 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3085 test -s conftest.one && test -s conftest.two && 3086 test -s conftest.dir/conftest.one && 3087 test -s conftest.dir/conftest.two 3088 then 3089 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3090 break 3 3091 fi 3092 fi 3093 fi 3094 done 3095 done 3096 ;; 3097esac 3098 3099 done 3100IFS=$as_save_IFS 3101 3102rm -rf conftest.one conftest.two conftest.dir 3103 3104fi 3105 if test "${ac_cv_path_install+set}" = set; then 3106 INSTALL=$ac_cv_path_install 3107 else 3108 # As a last resort, use the slow shell script. Don't cache a 3109 # value for INSTALL within a source directory, because that will 3110 # break other packages using the cache if that directory is 3111 # removed, or if the value is a relative name. 3112 INSTALL=$ac_install_sh 3113 fi 3114fi 3115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3116$as_echo "$INSTALL" >&6; } 3117 3118# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3119# It thinks the first close brace ends the variable substitution. 3120test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3121 3122test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3123 3124test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3125 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3127$as_echo_n "checking whether build environment is sane... " >&6; } 3128# Reject unsafe characters in $srcdir or the absolute working directory 3129# name. Accept space and tab only in the latter. 3130am_lf=' 3131' 3132case `pwd` in 3133 *[\\\"\#\$\&\'\`$am_lf]*) 3134 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3135esac 3136case $srcdir in 3137 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3138 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3139esac 3140 3141# Do 'set' in a subshell so we don't clobber the current shell's 3142# arguments. Must try -L first in case configure is actually a 3143# symlink; some systems play weird games with the mod time of symlinks 3144# (eg FreeBSD returns the mod time of the symlink's containing 3145# directory). 3146if ( 3147 am_has_slept=no 3148 for am_try in 1 2; do 3149 echo "timestamp, slept: $am_has_slept" > conftest.file 3150 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3151 if test "$*" = "X"; then 3152 # -L didn't work. 3153 set X `ls -t "$srcdir/configure" conftest.file` 3154 fi 3155 if test "$*" != "X $srcdir/configure conftest.file" \ 3156 && test "$*" != "X conftest.file $srcdir/configure"; then 3157 3158 # If neither matched, then we have a broken ls. This can happen 3159 # if, for instance, CONFIG_SHELL is bash and it inherits a 3160 # broken ls alias from the environment. This has actually 3161 # happened. Such a system could not be considered "sane". 3162 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3163 alias in your environment" "$LINENO" 5 3164 fi 3165 if test "$2" = conftest.file || test $am_try -eq 2; then 3166 break 3167 fi 3168 # Just in case. 3169 sleep 1 3170 am_has_slept=yes 3171 done 3172 test "$2" = conftest.file 3173 ) 3174then 3175 # Ok. 3176 : 3177else 3178 as_fn_error $? "newly created file is older than distributed files! 3179Check your system clock" "$LINENO" 5 3180fi 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3182$as_echo "yes" >&6; } 3183# If we didn't sleep, we still need to ensure time stamps of config.status and 3184# generated files are strictly newer. 3185am_sleep_pid= 3186if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3187 ( sleep 1 ) & 3188 am_sleep_pid=$! 3189fi 3190 3191rm -f conftest.file 3192 3193test "$program_prefix" != NONE && 3194 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3195# Use a double $ so make ignores it. 3196test "$program_suffix" != NONE && 3197 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3198# Double any \ or $. 3199# By default was `s,x,x', remove it if useless. 3200ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3201program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3202 3203# Expand $ac_aux_dir to an absolute path. 3204am_aux_dir=`cd "$ac_aux_dir" && pwd` 3205 3206if test x"${MISSING+set}" != xset; then 3207 case $am_aux_dir in 3208 *\ * | *\ *) 3209 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3210 *) 3211 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3212 esac 3213fi 3214# Use eval to expand $SHELL 3215if eval "$MISSING --is-lightweight"; then 3216 am_missing_run="$MISSING " 3217else 3218 am_missing_run= 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3220$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3221fi 3222 3223if test x"${install_sh+set}" != xset; then 3224 case $am_aux_dir in 3225 *\ * | *\ *) 3226 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3227 *) 3228 install_sh="\${SHELL} $am_aux_dir/install-sh" 3229 esac 3230fi 3231 3232# Installed binaries are usually stripped using 'strip' when the user 3233# run "make install-strip". However 'strip' might not be the right 3234# tool to use in cross-compilation environments, therefore Automake 3235# will honor the 'STRIP' environment variable to overrule this program. 3236if test "$cross_compiling" != no; then 3237 if test -n "$ac_tool_prefix"; then 3238 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3239set dummy ${ac_tool_prefix}strip; ac_word=$2 3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3241$as_echo_n "checking for $ac_word... " >&6; } 3242if ${ac_cv_prog_STRIP+:} false; then : 3243 $as_echo_n "(cached) " >&6 3244else 3245 if test -n "$STRIP"; then 3246 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3247else 3248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3249for as_dir in $PATH 3250do 3251 IFS=$as_save_IFS 3252 test -z "$as_dir" && as_dir=. 3253 for ac_exec_ext in '' $ac_executable_extensions; do 3254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3255 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3257 break 2 3258 fi 3259done 3260 done 3261IFS=$as_save_IFS 3262 3263fi 3264fi 3265STRIP=$ac_cv_prog_STRIP 3266if test -n "$STRIP"; then 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3268$as_echo "$STRIP" >&6; } 3269else 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3271$as_echo "no" >&6; } 3272fi 3273 3274 3275fi 3276if test -z "$ac_cv_prog_STRIP"; then 3277 ac_ct_STRIP=$STRIP 3278 # Extract the first word of "strip", so it can be a program name with args. 3279set dummy strip; ac_word=$2 3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3281$as_echo_n "checking for $ac_word... " >&6; } 3282if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3283 $as_echo_n "(cached) " >&6 3284else 3285 if test -n "$ac_ct_STRIP"; then 3286 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3287else 3288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3289for as_dir in $PATH 3290do 3291 IFS=$as_save_IFS 3292 test -z "$as_dir" && as_dir=. 3293 for ac_exec_ext in '' $ac_executable_extensions; do 3294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3295 ac_cv_prog_ac_ct_STRIP="strip" 3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3297 break 2 3298 fi 3299done 3300 done 3301IFS=$as_save_IFS 3302 3303fi 3304fi 3305ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3306if test -n "$ac_ct_STRIP"; then 3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3308$as_echo "$ac_ct_STRIP" >&6; } 3309else 3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3311$as_echo "no" >&6; } 3312fi 3313 3314 if test "x$ac_ct_STRIP" = x; then 3315 STRIP=":" 3316 else 3317 case $cross_compiling:$ac_tool_warned in 3318yes:) 3319{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3321ac_tool_warned=yes ;; 3322esac 3323 STRIP=$ac_ct_STRIP 3324 fi 3325else 3326 STRIP="$ac_cv_prog_STRIP" 3327fi 3328 3329fi 3330INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3331 3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3333$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3334if test -z "$MKDIR_P"; then 3335 if ${ac_cv_path_mkdir+:} false; then : 3336 $as_echo_n "(cached) " >&6 3337else 3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3339for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3340do 3341 IFS=$as_save_IFS 3342 test -z "$as_dir" && as_dir=. 3343 for ac_prog in mkdir gmkdir; do 3344 for ac_exec_ext in '' $ac_executable_extensions; do 3345 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3346 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3347 'mkdir (GNU coreutils) '* | \ 3348 'mkdir (coreutils) '* | \ 3349 'mkdir (fileutils) '4.1*) 3350 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3351 break 3;; 3352 esac 3353 done 3354 done 3355 done 3356IFS=$as_save_IFS 3357 3358fi 3359 3360 test -d ./--version && rmdir ./--version 3361 if test "${ac_cv_path_mkdir+set}" = set; then 3362 MKDIR_P="$ac_cv_path_mkdir -p" 3363 else 3364 # As a last resort, use the slow shell script. Don't cache a 3365 # value for MKDIR_P within a source directory, because that will 3366 # break other packages using the cache if that directory is 3367 # removed, or if the value is a relative name. 3368 MKDIR_P="$ac_install_sh -d" 3369 fi 3370fi 3371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3372$as_echo "$MKDIR_P" >&6; } 3373 3374for ac_prog in gawk mawk nawk awk 3375do 3376 # Extract the first word of "$ac_prog", so it can be a program name with args. 3377set dummy $ac_prog; ac_word=$2 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3379$as_echo_n "checking for $ac_word... " >&6; } 3380if ${ac_cv_prog_AWK+:} false; then : 3381 $as_echo_n "(cached) " >&6 3382else 3383 if test -n "$AWK"; then 3384 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3385else 3386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3387for as_dir in $PATH 3388do 3389 IFS=$as_save_IFS 3390 test -z "$as_dir" && as_dir=. 3391 for ac_exec_ext in '' $ac_executable_extensions; do 3392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3393 ac_cv_prog_AWK="$ac_prog" 3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3395 break 2 3396 fi 3397done 3398 done 3399IFS=$as_save_IFS 3400 3401fi 3402fi 3403AWK=$ac_cv_prog_AWK 3404if test -n "$AWK"; then 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3406$as_echo "$AWK" >&6; } 3407else 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3409$as_echo "no" >&6; } 3410fi 3411 3412 3413 test -n "$AWK" && break 3414done 3415 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3417$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3418set x ${MAKE-make} 3419ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3420if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3421 $as_echo_n "(cached) " >&6 3422else 3423 cat >conftest.make <<\_ACEOF 3424SHELL = /bin/sh 3425all: 3426 @echo '@@@%%%=$(MAKE)=@@@%%%' 3427_ACEOF 3428# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3429case `${MAKE-make} -f conftest.make 2>/dev/null` in 3430 *@@@%%%=?*=@@@%%%*) 3431 eval ac_cv_prog_make_${ac_make}_set=yes;; 3432 *) 3433 eval ac_cv_prog_make_${ac_make}_set=no;; 3434esac 3435rm -f conftest.make 3436fi 3437if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3439$as_echo "yes" >&6; } 3440 SET_MAKE= 3441else 3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3443$as_echo "no" >&6; } 3444 SET_MAKE="MAKE=${MAKE-make}" 3445fi 3446 3447rm -rf .tst 2>/dev/null 3448mkdir .tst 2>/dev/null 3449if test -d .tst; then 3450 am__leading_dot=. 3451else 3452 am__leading_dot=_ 3453fi 3454rmdir .tst 2>/dev/null 3455 3456# Check whether --enable-silent-rules was given. 3457if test "${enable_silent_rules+set}" = set; then : 3458 enableval=$enable_silent_rules; 3459fi 3460 3461case $enable_silent_rules in # ((( 3462 yes) AM_DEFAULT_VERBOSITY=0;; 3463 no) AM_DEFAULT_VERBOSITY=1;; 3464 *) AM_DEFAULT_VERBOSITY=1;; 3465esac 3466am_make=${MAKE-make} 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3468$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3469if ${am_cv_make_support_nested_variables+:} false; then : 3470 $as_echo_n "(cached) " >&6 3471else 3472 if $as_echo 'TRUE=$(BAR$(V)) 3473BAR0=false 3474BAR1=true 3475V=1 3476am__doit: 3477 @$(TRUE) 3478.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3479 am_cv_make_support_nested_variables=yes 3480else 3481 am_cv_make_support_nested_variables=no 3482fi 3483fi 3484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3485$as_echo "$am_cv_make_support_nested_variables" >&6; } 3486if test $am_cv_make_support_nested_variables = yes; then 3487 AM_V='$(V)' 3488 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3489else 3490 AM_V=$AM_DEFAULT_VERBOSITY 3491 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3492fi 3493AM_BACKSLASH='\' 3494 3495if test "`cd $srcdir && pwd`" != "`pwd`"; then 3496 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3497 # is not polluted with repeated "-I." 3498 am__isrc=' -I$(srcdir)' 3499 # test to see if srcdir already configured 3500 if test -f $srcdir/config.status; then 3501 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3502 fi 3503fi 3504 3505# test whether we have cygpath 3506if test -z "$CYGPATH_W"; then 3507 if (cygpath --version) >/dev/null 2>/dev/null; then 3508 CYGPATH_W='cygpath -w' 3509 else 3510 CYGPATH_W=echo 3511 fi 3512fi 3513 3514 3515# Define the identity of the package. 3516 3517 PACKAGE=gwenhywfar 3518 VERSION=$GWENHYWFAR_VERSION_RELEASE_STRING 3519 3520 3521cat >>confdefs.h <<_ACEOF 3522#define PACKAGE "$PACKAGE" 3523_ACEOF 3524 3525 3526cat >>confdefs.h <<_ACEOF 3527#define VERSION "$VERSION" 3528_ACEOF 3529 3530# Some tools Automake needs. 3531 3532ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3533 3534 3535AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3536 3537 3538AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3539 3540 3541AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3542 3543 3544MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3545 3546# For better backward compatibility. To be removed once Automake 1.9.x 3547# dies out for good. For more background, see: 3548# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3549# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3550mkdir_p='$(MKDIR_P)' 3551 3552# We need awk for the "check" target (and possibly the TAP driver). The 3553# system "awk" is bad on some platforms. 3554# Always define AMTAR for backward compatibility. Yes, it's still used 3555# in the wild :-( We should find a proper way to deprecate it ... 3556AMTAR='$${TAR-tar}' 3557 3558 3559# We'll loop over all known methods to create a tar archive until one works. 3560_am_tools='gnutar pax cpio none' 3561 3562am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3563 3564 3565 3566 3567 3568 3569# POSIX will say in a future version that running "rm -f" with no argument 3570# is OK; and we want to be able to make that assumption in our Makefile 3571# recipes. So use an aggressive probe to check that the usage we want is 3572# actually supported "in the wild" to an acceptable degree. 3573# See automake bug#10828. 3574# To make any issue more visible, cause the running configure to be aborted 3575# by default if the 'rm' program in use doesn't match our expectations; the 3576# user can still override this though. 3577if rm -f && rm -fr && rm -rf; then : OK; else 3578 cat >&2 <<'END' 3579Oops! 3580 3581Your 'rm' program seems unable to run without file operands specified 3582on the command line, even when the '-f' option is present. This is contrary 3583to the behaviour of most rm programs out there, and not conforming with 3584the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3585 3586Please tell bug-automake@gnu.org about your system, including the value 3587of your $PATH and any error possibly output before this message. This 3588can help us improve future automake versions. 3589 3590END 3591 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3592 echo 'Configuration will proceed anyway, since you have set the' >&2 3593 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3594 echo >&2 3595 else 3596 cat >&2 <<'END' 3597Aborting the configuration process, to ensure you take notice of the issue. 3598 3599You can download and install GNU coreutils to get an 'rm' implementation 3600that behaves properly: <http://www.gnu.org/software/coreutils/>. 3601 3602If you want to complete the configuration process using your problematic 3603'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3604to "yes", and re-run configure. 3605 3606END 3607 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3608 fi 3609fi 3610 3611 3612 3613 3614###------------------------------------------------------------------------- 3615# 3616# SO version for GwenUI 3617# 3618GWENUI_SO_CURRENT="1" 3619GWENUI_SO_REVISION="1" 3620GWENUI_SO_AGE="0" 3621GWENUI_SO_EFFECTIVE="`echo \$(($GWENUI_SO_CURRENT-$GWENUI_SO_AGE))`" 3622 3623 3624 3625 3626 3627 3628 3629 3630###------------------------------------------------------------------------- 3631# 3632# SO version for GwenPP 3633# 3634GWENPP_SO_CURRENT="16" 3635GWENPP_SO_REVISION="0" 3636GWENPP_SO_AGE="0" 3637GWENPP_SO_EFFECTIVE="`echo \$(($GWENPP_SO_CURRENT-$GWENPP_SO_AGE))`" 3638 3639 3640 3641 3642 3643 3644 3645 3646###------------------------------------------------------------------------- 3647# check for OS 3648 3649 3650 3651# check for OS 3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3653$as_echo_n "checking host system type... " >&6; } 3654OSYSTEM="" 3655OS_TYPE="" 3656MAKE_DLL_TARGET="" 3657INSTALL_DLL_TARGET="" 3658 3659cat >>confdefs.h <<_ACEOF 3660#define OS_NAME "$host" 3661_ACEOF 3662 3663case "$host" in 3664 *-linux*) 3665 OSYSTEM="linux" 3666 3667$as_echo "#define OS_LINUX 1" >>confdefs.h 3668 3669 3670$as_echo "#define OS_POSIX 1" >>confdefs.h 3671 3672 OS_TYPE="posix" 3673 ;; 3674 *-solaris*) 3675 OSYSTEM="solaris" 3676 3677$as_echo "#define OS_SOLARIS 1" >>confdefs.h 3678 3679 3680$as_echo "#define OS_POSIX 1" >>confdefs.h 3681 3682 OS_TYPE="posix" 3683 ;; 3684 *-darwin*) 3685 OSYSTEM="osx" 3686 3687$as_echo "#define OS_DARWIN 1" >>confdefs.h 3688 3689 3690$as_echo "#define OS_POSIX 1" >>confdefs.h 3691 3692 OS_TYPE="posix" 3693 ;; 3694 *-openbsd*) 3695 OSYSTEM="openbsd" 3696 3697$as_echo "#define OS_OPENBSD 1" >>confdefs.h 3698 3699 3700$as_echo "#define OS_POSIX 1" >>confdefs.h 3701 3702 OS_TYPE="posix" 3703 ;; 3704 *-freebsd* | *-kfreebsd*) 3705 OSYSTEM="freebsd" 3706 3707$as_echo "#define OS_FREEBSD 1" >>confdefs.h 3708 3709 3710$as_echo "#define OS_POSIX 1" >>confdefs.h 3711 3712 OS_TYPE="posix" 3713 ;; 3714 *-netbsd*) 3715 OSYSTEM="netbsd" 3716 3717$as_echo "#define OS_NETBSD 1" >>confdefs.h 3718 3719 3720$as_echo "#define OS_POSIX 1" >>confdefs.h 3721 3722 OS_TYPE="posix" 3723 ;; 3724 *-beos*) 3725 OSYSTEM="beos" 3726 3727$as_echo "#define OS_BEOS 1" >>confdefs.h 3728 3729 3730$as_echo "#define OS_POSIX 1" >>confdefs.h 3731 3732 OS_TYPE="posix" 3733 ;; 3734 *-win32*) 3735 OSYSTEM="windows" 3736 3737$as_echo "#define OS_WIN32 1" >>confdefs.h 3738 3739 OS_TYPE="windows" 3740 3741cat >>confdefs.h <<_ACEOF 3742#define BUILDING_DLL 1 3743_ACEOF 3744 3745 MAKE_DLL_TARGET="dll" 3746 INSTALL_DLL_TARGET="dll-install" 3747 ;; 3748 *-mingw32*) 3749 OSYSTEM="windows" 3750 3751$as_echo "#define OS_WIN32 1" >>confdefs.h 3752 3753 OS_TYPE="windows" 3754 3755cat >>confdefs.h <<_ACEOF 3756#define BUILDING_DLL 1 3757_ACEOF 3758 3759 MAKE_DLL_TARGET="dll" 3760 INSTALL_DLL_TARGET="dll-install" 3761 ;; 3762 *-palmos*) 3763 OSYSTEM="palmos" 3764 3765$as_echo "#define OS_PALMOS 1" >>confdefs.h 3766 3767 OS_TYPE="palmos" 3768 ;; 3769 *) 3770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, but host $host is not supported. 3771 Please report if it works anyway. We will assume that your system 3772 is a posix system and continue." >&5 3773$as_echo "$as_me: WARNING: Sorry, but host $host is not supported. 3774 Please report if it works anyway. We will assume that your system 3775 is a posix system and continue." >&2;} 3776 OSYSTEM="unknown" 3777 OS_TYPE="posix" 3778 3779$as_echo "#define OS_POSIX 1" >>confdefs.h 3780 3781 ;; 3782esac 3783 3784 3785 3786cat >>confdefs.h <<_ACEOF 3787#define OS_SHORTNAME "$OSYSTEM" 3788_ACEOF 3789 3790 3791 3792cat >>confdefs.h <<_ACEOF 3793#define OS_TYPE "$OS_TYPE" 3794_ACEOF 3795 3796 3797 3798 3799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS_TYPE" >&5 3800$as_echo "$OS_TYPE" >&6; } 3801 3802 3803 3804if test "$OSYSTEM" = "osx"; then 3805 COCOA_FRAMEWORK="-framework Cocoa" 3806 FOUNDATION_FRAMEWORK="-framework CoreFoundation" 3807 SYSCONF_FRAMEWORK="-framework SystemConfiguration" 3808 APPKIT_FRAMEWORK="-framework AppKit" 3809 COREDATA_FRAMEWORK="-framework CoreData" 3810 WEBKIT_FRAMEWORK="-framework WebKit" 3811fi 3812 3813 3814 3815 3816 3817 3818 3819 3820###------------------------------------------------------------------------- 3821# prefix handling 3822 3823 3824if test "x$prefix" = "xNONE"; then 3825 prefix=$ac_default_prefix 3826 ac_configure_args="$ac_configure_args --prefix $prefix" 3827fi 3828 3829 3830 3831 3832###------------------------------------------------------------------------- 3833# 3834# static/shared handling 3835# 3836# Check whether --enable-static was given. 3837if test "${enable_static+set}" = set; then : 3838 enableval=$enable_static; p=${PACKAGE-default} 3839 case $enableval in 3840 yes) enable_static=yes ;; 3841 no) enable_static=no ;; 3842 *) 3843 enable_static=no 3844 # Look at the argument we got. We use all the common list separators. 3845 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 3846 for pkg in $enableval; do 3847 IFS=$lt_save_ifs 3848 if test "X$pkg" = "X$p"; then 3849 enable_static=yes 3850 fi 3851 done 3852 IFS=$lt_save_ifs 3853 ;; 3854 esac 3855else 3856 enable_static=no 3857fi 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867# Check whether --enable-shared was given. 3868if test "${enable_shared+set}" = set; then : 3869 enableval=$enable_shared; p=${PACKAGE-default} 3870 case $enableval in 3871 yes) enable_shared=yes ;; 3872 no) enable_shared=no ;; 3873 *) 3874 enable_shared=no 3875 # Look at the argument we got. We use all the common list separators. 3876 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 3877 for pkg in $enableval; do 3878 IFS=$lt_save_ifs 3879 if test "X$pkg" = "X$p"; then 3880 enable_shared=yes 3881 fi 3882 done 3883 IFS=$lt_save_ifs 3884 ;; 3885 esac 3886else 3887 enable_shared=yes 3888fi 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900###------------------------------------------------------------------------- 3901# 3902# Checks for programs. 3903# 3904ac_ext=c 3905ac_cpp='$CPP $CPPFLAGS' 3906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3908ac_compiler_gnu=$ac_cv_c_compiler_gnu 3909if test -n "$ac_tool_prefix"; then 3910 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3911set dummy ${ac_tool_prefix}gcc; ac_word=$2 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3913$as_echo_n "checking for $ac_word... " >&6; } 3914if ${ac_cv_prog_CC+:} false; then : 3915 $as_echo_n "(cached) " >&6 3916else 3917 if test -n "$CC"; then 3918 ac_cv_prog_CC="$CC" # Let the user override the test. 3919else 3920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3921for as_dir in $PATH 3922do 3923 IFS=$as_save_IFS 3924 test -z "$as_dir" && as_dir=. 3925 for ac_exec_ext in '' $ac_executable_extensions; do 3926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3927 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3929 break 2 3930 fi 3931done 3932 done 3933IFS=$as_save_IFS 3934 3935fi 3936fi 3937CC=$ac_cv_prog_CC 3938if test -n "$CC"; then 3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3940$as_echo "$CC" >&6; } 3941else 3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3943$as_echo "no" >&6; } 3944fi 3945 3946 3947fi 3948if test -z "$ac_cv_prog_CC"; then 3949 ac_ct_CC=$CC 3950 # Extract the first word of "gcc", so it can be a program name with args. 3951set dummy gcc; ac_word=$2 3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3953$as_echo_n "checking for $ac_word... " >&6; } 3954if ${ac_cv_prog_ac_ct_CC+:} false; then : 3955 $as_echo_n "(cached) " >&6 3956else 3957 if test -n "$ac_ct_CC"; then 3958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3959else 3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3961for as_dir in $PATH 3962do 3963 IFS=$as_save_IFS 3964 test -z "$as_dir" && as_dir=. 3965 for ac_exec_ext in '' $ac_executable_extensions; do 3966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3967 ac_cv_prog_ac_ct_CC="gcc" 3968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3969 break 2 3970 fi 3971done 3972 done 3973IFS=$as_save_IFS 3974 3975fi 3976fi 3977ac_ct_CC=$ac_cv_prog_ac_ct_CC 3978if test -n "$ac_ct_CC"; then 3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3980$as_echo "$ac_ct_CC" >&6; } 3981else 3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3983$as_echo "no" >&6; } 3984fi 3985 3986 if test "x$ac_ct_CC" = x; then 3987 CC="" 3988 else 3989 case $cross_compiling:$ac_tool_warned in 3990yes:) 3991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3993ac_tool_warned=yes ;; 3994esac 3995 CC=$ac_ct_CC 3996 fi 3997else 3998 CC="$ac_cv_prog_CC" 3999fi 4000 4001if test -z "$CC"; then 4002 if test -n "$ac_tool_prefix"; then 4003 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4004set dummy ${ac_tool_prefix}cc; ac_word=$2 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4006$as_echo_n "checking for $ac_word... " >&6; } 4007if ${ac_cv_prog_CC+:} false; then : 4008 $as_echo_n "(cached) " >&6 4009else 4010 if test -n "$CC"; then 4011 ac_cv_prog_CC="$CC" # Let the user override the test. 4012else 4013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4014for as_dir in $PATH 4015do 4016 IFS=$as_save_IFS 4017 test -z "$as_dir" && as_dir=. 4018 for ac_exec_ext in '' $ac_executable_extensions; do 4019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4020 ac_cv_prog_CC="${ac_tool_prefix}cc" 4021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4022 break 2 4023 fi 4024done 4025 done 4026IFS=$as_save_IFS 4027 4028fi 4029fi 4030CC=$ac_cv_prog_CC 4031if test -n "$CC"; then 4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4033$as_echo "$CC" >&6; } 4034else 4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4036$as_echo "no" >&6; } 4037fi 4038 4039 4040 fi 4041fi 4042if test -z "$CC"; then 4043 # Extract the first word of "cc", so it can be a program name with args. 4044set dummy cc; ac_word=$2 4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4046$as_echo_n "checking for $ac_word... " >&6; } 4047if ${ac_cv_prog_CC+:} false; then : 4048 $as_echo_n "(cached) " >&6 4049else 4050 if test -n "$CC"; then 4051 ac_cv_prog_CC="$CC" # Let the user override the test. 4052else 4053 ac_prog_rejected=no 4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4055for as_dir in $PATH 4056do 4057 IFS=$as_save_IFS 4058 test -z "$as_dir" && as_dir=. 4059 for ac_exec_ext in '' $ac_executable_extensions; do 4060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4061 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4062 ac_prog_rejected=yes 4063 continue 4064 fi 4065 ac_cv_prog_CC="cc" 4066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4067 break 2 4068 fi 4069done 4070 done 4071IFS=$as_save_IFS 4072 4073if test $ac_prog_rejected = yes; then 4074 # We found a bogon in the path, so make sure we never use it. 4075 set dummy $ac_cv_prog_CC 4076 shift 4077 if test $# != 0; then 4078 # We chose a different compiler from the bogus one. 4079 # However, it has the same basename, so the bogon will be chosen 4080 # first if we set CC to just the basename; use the full file name. 4081 shift 4082 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4083 fi 4084fi 4085fi 4086fi 4087CC=$ac_cv_prog_CC 4088if test -n "$CC"; then 4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4090$as_echo "$CC" >&6; } 4091else 4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4093$as_echo "no" >&6; } 4094fi 4095 4096 4097fi 4098if test -z "$CC"; then 4099 if test -n "$ac_tool_prefix"; then 4100 for ac_prog in cl.exe 4101 do 4102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4103set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4105$as_echo_n "checking for $ac_word... " >&6; } 4106if ${ac_cv_prog_CC+:} false; then : 4107 $as_echo_n "(cached) " >&6 4108else 4109 if test -n "$CC"; then 4110 ac_cv_prog_CC="$CC" # Let the user override the test. 4111else 4112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4113for as_dir in $PATH 4114do 4115 IFS=$as_save_IFS 4116 test -z "$as_dir" && as_dir=. 4117 for ac_exec_ext in '' $ac_executable_extensions; do 4118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4119 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4121 break 2 4122 fi 4123done 4124 done 4125IFS=$as_save_IFS 4126 4127fi 4128fi 4129CC=$ac_cv_prog_CC 4130if test -n "$CC"; then 4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4132$as_echo "$CC" >&6; } 4133else 4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4135$as_echo "no" >&6; } 4136fi 4137 4138 4139 test -n "$CC" && break 4140 done 4141fi 4142if test -z "$CC"; then 4143 ac_ct_CC=$CC 4144 for ac_prog in cl.exe 4145do 4146 # Extract the first word of "$ac_prog", so it can be a program name with args. 4147set dummy $ac_prog; ac_word=$2 4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4149$as_echo_n "checking for $ac_word... " >&6; } 4150if ${ac_cv_prog_ac_ct_CC+:} false; then : 4151 $as_echo_n "(cached) " >&6 4152else 4153 if test -n "$ac_ct_CC"; then 4154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4155else 4156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4157for as_dir in $PATH 4158do 4159 IFS=$as_save_IFS 4160 test -z "$as_dir" && as_dir=. 4161 for ac_exec_ext in '' $ac_executable_extensions; do 4162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4163 ac_cv_prog_ac_ct_CC="$ac_prog" 4164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4165 break 2 4166 fi 4167done 4168 done 4169IFS=$as_save_IFS 4170 4171fi 4172fi 4173ac_ct_CC=$ac_cv_prog_ac_ct_CC 4174if test -n "$ac_ct_CC"; then 4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4176$as_echo "$ac_ct_CC" >&6; } 4177else 4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4179$as_echo "no" >&6; } 4180fi 4181 4182 4183 test -n "$ac_ct_CC" && break 4184done 4185 4186 if test "x$ac_ct_CC" = x; then 4187 CC="" 4188 else 4189 case $cross_compiling:$ac_tool_warned in 4190yes:) 4191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4193ac_tool_warned=yes ;; 4194esac 4195 CC=$ac_ct_CC 4196 fi 4197fi 4198 4199fi 4200 4201 4202test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4204as_fn_error $? "no acceptable C compiler found in \$PATH 4205See \`config.log' for more details" "$LINENO" 5; } 4206 4207# Provide some information about the compiler. 4208$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4209set X $ac_compile 4210ac_compiler=$2 4211for ac_option in --version -v -V -qversion; do 4212 { { ac_try="$ac_compiler $ac_option >&5" 4213case "(($ac_try" in 4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4215 *) ac_try_echo=$ac_try;; 4216esac 4217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4218$as_echo "$ac_try_echo"; } >&5 4219 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4220 ac_status=$? 4221 if test -s conftest.err; then 4222 sed '10a\ 4223... rest of stderr output deleted ... 4224 10q' conftest.err >conftest.er1 4225 cat conftest.er1 >&5 4226 fi 4227 rm -f conftest.er1 conftest.err 4228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4229 test $ac_status = 0; } 4230done 4231 4232cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4233/* end confdefs.h. */ 4234 4235int 4236main () 4237{ 4238 4239 ; 4240 return 0; 4241} 4242_ACEOF 4243ac_clean_files_save=$ac_clean_files 4244ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4245# Try to create an executable without -o first, disregard a.out. 4246# It will help us diagnose broken compilers, and finding out an intuition 4247# of exeext. 4248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4249$as_echo_n "checking whether the C compiler works... " >&6; } 4250ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4251 4252# The possible output files: 4253ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4254 4255ac_rmfiles= 4256for ac_file in $ac_files 4257do 4258 case $ac_file in 4259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4260 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4261 esac 4262done 4263rm -f $ac_rmfiles 4264 4265if { { ac_try="$ac_link_default" 4266case "(($ac_try" in 4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4268 *) ac_try_echo=$ac_try;; 4269esac 4270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4271$as_echo "$ac_try_echo"; } >&5 4272 (eval "$ac_link_default") 2>&5 4273 ac_status=$? 4274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4275 test $ac_status = 0; }; then : 4276 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4277# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4278# in a Makefile. We should not override ac_cv_exeext if it was cached, 4279# so that the user can short-circuit this test for compilers unknown to 4280# Autoconf. 4281for ac_file in $ac_files '' 4282do 4283 test -f "$ac_file" || continue 4284 case $ac_file in 4285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4286 ;; 4287 [ab].out ) 4288 # We found the default executable, but exeext='' is most 4289 # certainly right. 4290 break;; 4291 *.* ) 4292 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4293 then :; else 4294 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4295 fi 4296 # We set ac_cv_exeext here because the later test for it is not 4297 # safe: cross compilers may not add the suffix if given an `-o' 4298 # argument, so we may need to know it at that point already. 4299 # Even if this section looks crufty: it has the advantage of 4300 # actually working. 4301 break;; 4302 * ) 4303 break;; 4304 esac 4305done 4306test "$ac_cv_exeext" = no && ac_cv_exeext= 4307 4308else 4309 ac_file='' 4310fi 4311if test -z "$ac_file"; then : 4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4313$as_echo "no" >&6; } 4314$as_echo "$as_me: failed program was:" >&5 4315sed 's/^/| /' conftest.$ac_ext >&5 4316 4317{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4319as_fn_error 77 "C compiler cannot create executables 4320See \`config.log' for more details" "$LINENO" 5; } 4321else 4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4323$as_echo "yes" >&6; } 4324fi 4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4326$as_echo_n "checking for C compiler default output file name... " >&6; } 4327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4328$as_echo "$ac_file" >&6; } 4329ac_exeext=$ac_cv_exeext 4330 4331rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4332ac_clean_files=$ac_clean_files_save 4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4334$as_echo_n "checking for suffix of executables... " >&6; } 4335if { { ac_try="$ac_link" 4336case "(($ac_try" in 4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4338 *) ac_try_echo=$ac_try;; 4339esac 4340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4341$as_echo "$ac_try_echo"; } >&5 4342 (eval "$ac_link") 2>&5 4343 ac_status=$? 4344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4345 test $ac_status = 0; }; then : 4346 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4347# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4348# work properly (i.e., refer to `conftest.exe'), while it won't with 4349# `rm'. 4350for ac_file in conftest.exe conftest conftest.*; do 4351 test -f "$ac_file" || continue 4352 case $ac_file in 4353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4354 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4355 break;; 4356 * ) break;; 4357 esac 4358done 4359else 4360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4362as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4363See \`config.log' for more details" "$LINENO" 5; } 4364fi 4365rm -f conftest conftest$ac_cv_exeext 4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4367$as_echo "$ac_cv_exeext" >&6; } 4368 4369rm -f conftest.$ac_ext 4370EXEEXT=$ac_cv_exeext 4371ac_exeext=$EXEEXT 4372cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4373/* end confdefs.h. */ 4374#include <stdio.h> 4375int 4376main () 4377{ 4378FILE *f = fopen ("conftest.out", "w"); 4379 return ferror (f) || fclose (f) != 0; 4380 4381 ; 4382 return 0; 4383} 4384_ACEOF 4385ac_clean_files="$ac_clean_files conftest.out" 4386# Check that the compiler produces executables we can run. If not, either 4387# the compiler is broken, or we cross compile. 4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4389$as_echo_n "checking whether we are cross compiling... " >&6; } 4390if test "$cross_compiling" != yes; then 4391 { { ac_try="$ac_link" 4392case "(($ac_try" in 4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4394 *) ac_try_echo=$ac_try;; 4395esac 4396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4397$as_echo "$ac_try_echo"; } >&5 4398 (eval "$ac_link") 2>&5 4399 ac_status=$? 4400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4401 test $ac_status = 0; } 4402 if { ac_try='./conftest$ac_cv_exeext' 4403 { { case "(($ac_try" in 4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4405 *) ac_try_echo=$ac_try;; 4406esac 4407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4408$as_echo "$ac_try_echo"; } >&5 4409 (eval "$ac_try") 2>&5 4410 ac_status=$? 4411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4412 test $ac_status = 0; }; }; then 4413 cross_compiling=no 4414 else 4415 if test "$cross_compiling" = maybe; then 4416 cross_compiling=yes 4417 else 4418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4420as_fn_error $? "cannot run C compiled programs. 4421If you meant to cross compile, use \`--host'. 4422See \`config.log' for more details" "$LINENO" 5; } 4423 fi 4424 fi 4425fi 4426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4427$as_echo "$cross_compiling" >&6; } 4428 4429rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4430ac_clean_files=$ac_clean_files_save 4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4432$as_echo_n "checking for suffix of object files... " >&6; } 4433if ${ac_cv_objext+:} false; then : 4434 $as_echo_n "(cached) " >&6 4435else 4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4437/* end confdefs.h. */ 4438 4439int 4440main () 4441{ 4442 4443 ; 4444 return 0; 4445} 4446_ACEOF 4447rm -f conftest.o conftest.obj 4448if { { ac_try="$ac_compile" 4449case "(($ac_try" in 4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4451 *) ac_try_echo=$ac_try;; 4452esac 4453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4454$as_echo "$ac_try_echo"; } >&5 4455 (eval "$ac_compile") 2>&5 4456 ac_status=$? 4457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4458 test $ac_status = 0; }; then : 4459 for ac_file in conftest.o conftest.obj conftest.*; do 4460 test -f "$ac_file" || continue; 4461 case $ac_file in 4462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4463 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4464 break;; 4465 esac 4466done 4467else 4468 $as_echo "$as_me: failed program was:" >&5 4469sed 's/^/| /' conftest.$ac_ext >&5 4470 4471{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4473as_fn_error $? "cannot compute suffix of object files: cannot compile 4474See \`config.log' for more details" "$LINENO" 5; } 4475fi 4476rm -f conftest.$ac_cv_objext conftest.$ac_ext 4477fi 4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4479$as_echo "$ac_cv_objext" >&6; } 4480OBJEXT=$ac_cv_objext 4481ac_objext=$OBJEXT 4482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4483$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4484if ${ac_cv_c_compiler_gnu+:} false; then : 4485 $as_echo_n "(cached) " >&6 4486else 4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4488/* end confdefs.h. */ 4489 4490int 4491main () 4492{ 4493#ifndef __GNUC__ 4494 choke me 4495#endif 4496 4497 ; 4498 return 0; 4499} 4500_ACEOF 4501if ac_fn_c_try_compile "$LINENO"; then : 4502 ac_compiler_gnu=yes 4503else 4504 ac_compiler_gnu=no 4505fi 4506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4507ac_cv_c_compiler_gnu=$ac_compiler_gnu 4508 4509fi 4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4511$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4512if test $ac_compiler_gnu = yes; then 4513 GCC=yes 4514else 4515 GCC= 4516fi 4517ac_test_CFLAGS=${CFLAGS+set} 4518ac_save_CFLAGS=$CFLAGS 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4520$as_echo_n "checking whether $CC accepts -g... " >&6; } 4521if ${ac_cv_prog_cc_g+:} false; then : 4522 $as_echo_n "(cached) " >&6 4523else 4524 ac_save_c_werror_flag=$ac_c_werror_flag 4525 ac_c_werror_flag=yes 4526 ac_cv_prog_cc_g=no 4527 CFLAGS="-g" 4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4529/* end confdefs.h. */ 4530 4531int 4532main () 4533{ 4534 4535 ; 4536 return 0; 4537} 4538_ACEOF 4539if ac_fn_c_try_compile "$LINENO"; then : 4540 ac_cv_prog_cc_g=yes 4541else 4542 CFLAGS="" 4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4544/* end confdefs.h. */ 4545 4546int 4547main () 4548{ 4549 4550 ; 4551 return 0; 4552} 4553_ACEOF 4554if ac_fn_c_try_compile "$LINENO"; then : 4555 4556else 4557 ac_c_werror_flag=$ac_save_c_werror_flag 4558 CFLAGS="-g" 4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4560/* end confdefs.h. */ 4561 4562int 4563main () 4564{ 4565 4566 ; 4567 return 0; 4568} 4569_ACEOF 4570if ac_fn_c_try_compile "$LINENO"; then : 4571 ac_cv_prog_cc_g=yes 4572fi 4573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4574fi 4575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4576fi 4577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4578 ac_c_werror_flag=$ac_save_c_werror_flag 4579fi 4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4581$as_echo "$ac_cv_prog_cc_g" >&6; } 4582if test "$ac_test_CFLAGS" = set; then 4583 CFLAGS=$ac_save_CFLAGS 4584elif test $ac_cv_prog_cc_g = yes; then 4585 if test "$GCC" = yes; then 4586 CFLAGS="-g -O2" 4587 else 4588 CFLAGS="-g" 4589 fi 4590else 4591 if test "$GCC" = yes; then 4592 CFLAGS="-O2" 4593 else 4594 CFLAGS= 4595 fi 4596fi 4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4598$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4599if ${ac_cv_prog_cc_c89+:} false; then : 4600 $as_echo_n "(cached) " >&6 4601else 4602 ac_cv_prog_cc_c89=no 4603ac_save_CC=$CC 4604cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4605/* end confdefs.h. */ 4606#include <stdarg.h> 4607#include <stdio.h> 4608struct stat; 4609/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4610struct buf { int x; }; 4611FILE * (*rcsopen) (struct buf *, struct stat *, int); 4612static char *e (p, i) 4613 char **p; 4614 int i; 4615{ 4616 return p[i]; 4617} 4618static char *f (char * (*g) (char **, int), char **p, ...) 4619{ 4620 char *s; 4621 va_list v; 4622 va_start (v,p); 4623 s = g (p, va_arg (v,int)); 4624 va_end (v); 4625 return s; 4626} 4627 4628/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4629 function prototypes and stuff, but not '\xHH' hex character constants. 4630 These don't provoke an error unfortunately, instead are silently treated 4631 as 'x'. The following induces an error, until -std is added to get 4632 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4633 array size at least. It's necessary to write '\x00'==0 to get something 4634 that's true only with -std. */ 4635int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4636 4637/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4638 inside strings and character constants. */ 4639#define FOO(x) 'x' 4640int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4641 4642int test (int i, double x); 4643struct s1 {int (*f) (int a);}; 4644struct s2 {int (*f) (double a);}; 4645int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4646int argc; 4647char **argv; 4648int 4649main () 4650{ 4651return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4652 ; 4653 return 0; 4654} 4655_ACEOF 4656for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4657 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4658do 4659 CC="$ac_save_CC $ac_arg" 4660 if ac_fn_c_try_compile "$LINENO"; then : 4661 ac_cv_prog_cc_c89=$ac_arg 4662fi 4663rm -f core conftest.err conftest.$ac_objext 4664 test "x$ac_cv_prog_cc_c89" != "xno" && break 4665done 4666rm -f conftest.$ac_ext 4667CC=$ac_save_CC 4668 4669fi 4670# AC_CACHE_VAL 4671case "x$ac_cv_prog_cc_c89" in 4672 x) 4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4674$as_echo "none needed" >&6; } ;; 4675 xno) 4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4677$as_echo "unsupported" >&6; } ;; 4678 *) 4679 CC="$CC $ac_cv_prog_cc_c89" 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4681$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4682esac 4683if test "x$ac_cv_prog_cc_c89" != xno; then : 4684 4685fi 4686 4687ac_ext=c 4688ac_cpp='$CPP $CPPFLAGS' 4689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4691ac_compiler_gnu=$ac_cv_c_compiler_gnu 4692 4693ac_ext=c 4694ac_cpp='$CPP $CPPFLAGS' 4695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4697ac_compiler_gnu=$ac_cv_c_compiler_gnu 4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4699$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4700if ${am_cv_prog_cc_c_o+:} false; then : 4701 $as_echo_n "(cached) " >&6 4702else 4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4704/* end confdefs.h. */ 4705 4706int 4707main () 4708{ 4709 4710 ; 4711 return 0; 4712} 4713_ACEOF 4714 # Make sure it works both with $CC and with simple cc. 4715 # Following AC_PROG_CC_C_O, we do the test twice because some 4716 # compilers refuse to overwrite an existing .o file with -o, 4717 # though they will create one. 4718 am_cv_prog_cc_c_o=yes 4719 for am_i in 1 2; do 4720 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4721 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4722 ac_status=$? 4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4724 (exit $ac_status); } \ 4725 && test -f conftest2.$ac_objext; then 4726 : OK 4727 else 4728 am_cv_prog_cc_c_o=no 4729 break 4730 fi 4731 done 4732 rm -f core conftest* 4733 unset am_i 4734fi 4735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4736$as_echo "$am_cv_prog_cc_c_o" >&6; } 4737if test "$am_cv_prog_cc_c_o" != yes; then 4738 # Losing compiler, so override with the script. 4739 # FIXME: It is wrong to rewrite CC. 4740 # But if we don't then we get into trouble of one sort or another. 4741 # A longer-term fix would be to have automake use am__CC in this case, 4742 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4743 CC="$am_aux_dir/compile $CC" 4744fi 4745ac_ext=c 4746ac_cpp='$CPP $CPPFLAGS' 4747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4749ac_compiler_gnu=$ac_cv_c_compiler_gnu 4750 4751DEPDIR="${am__leading_dot}deps" 4752 4753ac_config_commands="$ac_config_commands depfiles" 4754 4755 4756am_make=${MAKE-make} 4757cat > confinc << 'END' 4758am__doit: 4759 @echo this is the am__doit target 4760.PHONY: am__doit 4761END 4762# If we don't find an include directive, just comment out the code. 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4764$as_echo_n "checking for style of include used by $am_make... " >&6; } 4765am__include="#" 4766am__quote= 4767_am_result=none 4768# First try GNU make style include. 4769echo "include confinc" > confmf 4770# Ignore all kinds of additional output from 'make'. 4771case `$am_make -s -f confmf 2> /dev/null` in #( 4772*the\ am__doit\ target*) 4773 am__include=include 4774 am__quote= 4775 _am_result=GNU 4776 ;; 4777esac 4778# Now try BSD make style include. 4779if test "$am__include" = "#"; then 4780 echo '.include "confinc"' > confmf 4781 case `$am_make -s -f confmf 2> /dev/null` in #( 4782 *the\ am__doit\ target*) 4783 am__include=.include 4784 am__quote="\"" 4785 _am_result=BSD 4786 ;; 4787 esac 4788fi 4789 4790 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4792$as_echo "$_am_result" >&6; } 4793rm -f confinc confmf 4794 4795# Check whether --enable-dependency-tracking was given. 4796if test "${enable_dependency_tracking+set}" = set; then : 4797 enableval=$enable_dependency_tracking; 4798fi 4799 4800if test "x$enable_dependency_tracking" != xno; then 4801 am_depcomp="$ac_aux_dir/depcomp" 4802 AMDEPBACKSLASH='\' 4803 am__nodep='_no' 4804fi 4805 if test "x$enable_dependency_tracking" != xno; then 4806 AMDEP_TRUE= 4807 AMDEP_FALSE='#' 4808else 4809 AMDEP_TRUE='#' 4810 AMDEP_FALSE= 4811fi 4812 4813 4814 4815depcc="$CC" am_compiler_list= 4816 4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4818$as_echo_n "checking dependency style of $depcc... " >&6; } 4819if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4820 $as_echo_n "(cached) " >&6 4821else 4822 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4823 # We make a subdir and do the tests there. Otherwise we can end up 4824 # making bogus files that we don't know about and never remove. For 4825 # instance it was reported that on HP-UX the gcc test will end up 4826 # making a dummy file named 'D' -- because '-MD' means "put the output 4827 # in D". 4828 rm -rf conftest.dir 4829 mkdir conftest.dir 4830 # Copy depcomp to subdir because otherwise we won't find it if we're 4831 # using a relative directory. 4832 cp "$am_depcomp" conftest.dir 4833 cd conftest.dir 4834 # We will build objects and dependencies in a subdirectory because 4835 # it helps to detect inapplicable dependency modes. For instance 4836 # both Tru64's cc and ICC support -MD to output dependencies as a 4837 # side effect of compilation, but ICC will put the dependencies in 4838 # the current directory while Tru64 will put them in the object 4839 # directory. 4840 mkdir sub 4841 4842 am_cv_CC_dependencies_compiler_type=none 4843 if test "$am_compiler_list" = ""; then 4844 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4845 fi 4846 am__universal=false 4847 case " $depcc " in #( 4848 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4849 esac 4850 4851 for depmode in $am_compiler_list; do 4852 # Setup a source with many dependencies, because some compilers 4853 # like to wrap large dependency lists on column 80 (with \), and 4854 # we should not choose a depcomp mode which is confused by this. 4855 # 4856 # We need to recreate these files for each test, as the compiler may 4857 # overwrite some of them when testing with obscure command lines. 4858 # This happens at least with the AIX C compiler. 4859 : > sub/conftest.c 4860 for i in 1 2 3 4 5 6; do 4861 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4862 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4863 # Solaris 10 /bin/sh. 4864 echo '/* dummy */' > sub/conftst$i.h 4865 done 4866 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4867 4868 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4869 # mode. It turns out that the SunPro C++ compiler does not properly 4870 # handle '-M -o', and we need to detect this. Also, some Intel 4871 # versions had trouble with output in subdirs. 4872 am__obj=sub/conftest.${OBJEXT-o} 4873 am__minus_obj="-o $am__obj" 4874 case $depmode in 4875 gcc) 4876 # This depmode causes a compiler race in universal mode. 4877 test "$am__universal" = false || continue 4878 ;; 4879 nosideeffect) 4880 # After this tag, mechanisms are not by side-effect, so they'll 4881 # only be used when explicitly requested. 4882 if test "x$enable_dependency_tracking" = xyes; then 4883 continue 4884 else 4885 break 4886 fi 4887 ;; 4888 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4889 # This compiler won't grok '-c -o', but also, the minuso test has 4890 # not run yet. These depmodes are late enough in the game, and 4891 # so weak that their functioning should not be impacted. 4892 am__obj=conftest.${OBJEXT-o} 4893 am__minus_obj= 4894 ;; 4895 none) break ;; 4896 esac 4897 if depmode=$depmode \ 4898 source=sub/conftest.c object=$am__obj \ 4899 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4900 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4901 >/dev/null 2>conftest.err && 4902 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4903 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4904 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4905 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4906 # icc doesn't choke on unknown options, it will just issue warnings 4907 # or remarks (even with -Werror). So we grep stderr for any message 4908 # that says an option was ignored or not supported. 4909 # When given -MP, icc 7.0 and 7.1 complain thusly: 4910 # icc: Command line warning: ignoring option '-M'; no argument required 4911 # The diagnosis changed in icc 8.0: 4912 # icc: Command line remark: option '-MP' not supported 4913 if (grep 'ignoring option' conftest.err || 4914 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4915 am_cv_CC_dependencies_compiler_type=$depmode 4916 break 4917 fi 4918 fi 4919 done 4920 4921 cd .. 4922 rm -rf conftest.dir 4923else 4924 am_cv_CC_dependencies_compiler_type=none 4925fi 4926 4927fi 4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4929$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4930CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4931 4932 if 4933 test "x$enable_dependency_tracking" != xno \ 4934 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4935 am__fastdepCC_TRUE= 4936 am__fastdepCC_FALSE='#' 4937else 4938 am__fastdepCC_TRUE='#' 4939 am__fastdepCC_FALSE= 4940fi 4941 4942 4943ac_ext=cpp 4944ac_cpp='$CXXCPP $CPPFLAGS' 4945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4948if test -z "$CXX"; then 4949 if test -n "$CCC"; then 4950 CXX=$CCC 4951 else 4952 if test -n "$ac_tool_prefix"; then 4953 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4954 do 4955 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4956set dummy $ac_tool_prefix$ac_prog; 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_prog_CXX+:} false; then : 4960 $as_echo_n "(cached) " >&6 4961else 4962 if test -n "$CXX"; then 4963 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4964else 4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4966for as_dir in $PATH 4967do 4968 IFS=$as_save_IFS 4969 test -z "$as_dir" && as_dir=. 4970 for ac_exec_ext in '' $ac_executable_extensions; do 4971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4972 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4974 break 2 4975 fi 4976done 4977 done 4978IFS=$as_save_IFS 4979 4980fi 4981fi 4982CXX=$ac_cv_prog_CXX 4983if test -n "$CXX"; then 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4985$as_echo "$CXX" >&6; } 4986else 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4988$as_echo "no" >&6; } 4989fi 4990 4991 4992 test -n "$CXX" && break 4993 done 4994fi 4995if test -z "$CXX"; then 4996 ac_ct_CXX=$CXX 4997 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4998do 4999 # Extract the first word of "$ac_prog", so it can be a program name with args. 5000set dummy $ac_prog; ac_word=$2 5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5002$as_echo_n "checking for $ac_word... " >&6; } 5003if ${ac_cv_prog_ac_ct_CXX+:} false; then : 5004 $as_echo_n "(cached) " >&6 5005else 5006 if test -n "$ac_ct_CXX"; then 5007 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5008else 5009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5010for as_dir in $PATH 5011do 5012 IFS=$as_save_IFS 5013 test -z "$as_dir" && as_dir=. 5014 for ac_exec_ext in '' $ac_executable_extensions; do 5015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5016 ac_cv_prog_ac_ct_CXX="$ac_prog" 5017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5018 break 2 5019 fi 5020done 5021 done 5022IFS=$as_save_IFS 5023 5024fi 5025fi 5026ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5027if test -n "$ac_ct_CXX"; then 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5029$as_echo "$ac_ct_CXX" >&6; } 5030else 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5032$as_echo "no" >&6; } 5033fi 5034 5035 5036 test -n "$ac_ct_CXX" && break 5037done 5038 5039 if test "x$ac_ct_CXX" = x; then 5040 CXX="g++" 5041 else 5042 case $cross_compiling:$ac_tool_warned in 5043yes:) 5044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5046ac_tool_warned=yes ;; 5047esac 5048 CXX=$ac_ct_CXX 5049 fi 5050fi 5051 5052 fi 5053fi 5054# Provide some information about the compiler. 5055$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5056set X $ac_compile 5057ac_compiler=$2 5058for ac_option in --version -v -V -qversion; do 5059 { { ac_try="$ac_compiler $ac_option >&5" 5060case "(($ac_try" in 5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5062 *) ac_try_echo=$ac_try;; 5063esac 5064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5065$as_echo "$ac_try_echo"; } >&5 5066 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5067 ac_status=$? 5068 if test -s conftest.err; then 5069 sed '10a\ 5070... rest of stderr output deleted ... 5071 10q' conftest.err >conftest.er1 5072 cat conftest.er1 >&5 5073 fi 5074 rm -f conftest.er1 conftest.err 5075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5076 test $ac_status = 0; } 5077done 5078 5079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5080$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5081if ${ac_cv_cxx_compiler_gnu+:} false; then : 5082 $as_echo_n "(cached) " >&6 5083else 5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5085/* end confdefs.h. */ 5086 5087int 5088main () 5089{ 5090#ifndef __GNUC__ 5091 choke me 5092#endif 5093 5094 ; 5095 return 0; 5096} 5097_ACEOF 5098if ac_fn_cxx_try_compile "$LINENO"; then : 5099 ac_compiler_gnu=yes 5100else 5101 ac_compiler_gnu=no 5102fi 5103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5104ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5105 5106fi 5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5108$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5109if test $ac_compiler_gnu = yes; then 5110 GXX=yes 5111else 5112 GXX= 5113fi 5114ac_test_CXXFLAGS=${CXXFLAGS+set} 5115ac_save_CXXFLAGS=$CXXFLAGS 5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5117$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5118if ${ac_cv_prog_cxx_g+:} false; then : 5119 $as_echo_n "(cached) " >&6 5120else 5121 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5122 ac_cxx_werror_flag=yes 5123 ac_cv_prog_cxx_g=no 5124 CXXFLAGS="-g" 5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5126/* end confdefs.h. */ 5127 5128int 5129main () 5130{ 5131 5132 ; 5133 return 0; 5134} 5135_ACEOF 5136if ac_fn_cxx_try_compile "$LINENO"; then : 5137 ac_cv_prog_cxx_g=yes 5138else 5139 CXXFLAGS="" 5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5141/* end confdefs.h. */ 5142 5143int 5144main () 5145{ 5146 5147 ; 5148 return 0; 5149} 5150_ACEOF 5151if ac_fn_cxx_try_compile "$LINENO"; then : 5152 5153else 5154 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5155 CXXFLAGS="-g" 5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5157/* end confdefs.h. */ 5158 5159int 5160main () 5161{ 5162 5163 ; 5164 return 0; 5165} 5166_ACEOF 5167if ac_fn_cxx_try_compile "$LINENO"; then : 5168 ac_cv_prog_cxx_g=yes 5169fi 5170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5171fi 5172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5173fi 5174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5175 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5176fi 5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5178$as_echo "$ac_cv_prog_cxx_g" >&6; } 5179if test "$ac_test_CXXFLAGS" = set; then 5180 CXXFLAGS=$ac_save_CXXFLAGS 5181elif test $ac_cv_prog_cxx_g = yes; then 5182 if test "$GXX" = yes; then 5183 CXXFLAGS="-g -O2" 5184 else 5185 CXXFLAGS="-g" 5186 fi 5187else 5188 if test "$GXX" = yes; then 5189 CXXFLAGS="-O2" 5190 else 5191 CXXFLAGS= 5192 fi 5193fi 5194ac_ext=c 5195ac_cpp='$CPP $CPPFLAGS' 5196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5198ac_compiler_gnu=$ac_cv_c_compiler_gnu 5199 5200depcc="$CXX" am_compiler_list= 5201 5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5203$as_echo_n "checking dependency style of $depcc... " >&6; } 5204if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 5205 $as_echo_n "(cached) " >&6 5206else 5207 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5208 # We make a subdir and do the tests there. Otherwise we can end up 5209 # making bogus files that we don't know about and never remove. For 5210 # instance it was reported that on HP-UX the gcc test will end up 5211 # making a dummy file named 'D' -- because '-MD' means "put the output 5212 # in D". 5213 rm -rf conftest.dir 5214 mkdir conftest.dir 5215 # Copy depcomp to subdir because otherwise we won't find it if we're 5216 # using a relative directory. 5217 cp "$am_depcomp" conftest.dir 5218 cd conftest.dir 5219 # We will build objects and dependencies in a subdirectory because 5220 # it helps to detect inapplicable dependency modes. For instance 5221 # both Tru64's cc and ICC support -MD to output dependencies as a 5222 # side effect of compilation, but ICC will put the dependencies in 5223 # the current directory while Tru64 will put them in the object 5224 # directory. 5225 mkdir sub 5226 5227 am_cv_CXX_dependencies_compiler_type=none 5228 if test "$am_compiler_list" = ""; then 5229 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5230 fi 5231 am__universal=false 5232 case " $depcc " in #( 5233 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5234 esac 5235 5236 for depmode in $am_compiler_list; do 5237 # Setup a source with many dependencies, because some compilers 5238 # like to wrap large dependency lists on column 80 (with \), and 5239 # we should not choose a depcomp mode which is confused by this. 5240 # 5241 # We need to recreate these files for each test, as the compiler may 5242 # overwrite some of them when testing with obscure command lines. 5243 # This happens at least with the AIX C compiler. 5244 : > sub/conftest.c 5245 for i in 1 2 3 4 5 6; do 5246 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5247 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5248 # Solaris 10 /bin/sh. 5249 echo '/* dummy */' > sub/conftst$i.h 5250 done 5251 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5252 5253 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5254 # mode. It turns out that the SunPro C++ compiler does not properly 5255 # handle '-M -o', and we need to detect this. Also, some Intel 5256 # versions had trouble with output in subdirs. 5257 am__obj=sub/conftest.${OBJEXT-o} 5258 am__minus_obj="-o $am__obj" 5259 case $depmode in 5260 gcc) 5261 # This depmode causes a compiler race in universal mode. 5262 test "$am__universal" = false || continue 5263 ;; 5264 nosideeffect) 5265 # After this tag, mechanisms are not by side-effect, so they'll 5266 # only be used when explicitly requested. 5267 if test "x$enable_dependency_tracking" = xyes; then 5268 continue 5269 else 5270 break 5271 fi 5272 ;; 5273 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5274 # This compiler won't grok '-c -o', but also, the minuso test has 5275 # not run yet. These depmodes are late enough in the game, and 5276 # so weak that their functioning should not be impacted. 5277 am__obj=conftest.${OBJEXT-o} 5278 am__minus_obj= 5279 ;; 5280 none) break ;; 5281 esac 5282 if depmode=$depmode \ 5283 source=sub/conftest.c object=$am__obj \ 5284 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5285 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5286 >/dev/null 2>conftest.err && 5287 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5288 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5289 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5290 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5291 # icc doesn't choke on unknown options, it will just issue warnings 5292 # or remarks (even with -Werror). So we grep stderr for any message 5293 # that says an option was ignored or not supported. 5294 # When given -MP, icc 7.0 and 7.1 complain thusly: 5295 # icc: Command line warning: ignoring option '-M'; no argument required 5296 # The diagnosis changed in icc 8.0: 5297 # icc: Command line remark: option '-MP' not supported 5298 if (grep 'ignoring option' conftest.err || 5299 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5300 am_cv_CXX_dependencies_compiler_type=$depmode 5301 break 5302 fi 5303 fi 5304 done 5305 5306 cd .. 5307 rm -rf conftest.dir 5308else 5309 am_cv_CXX_dependencies_compiler_type=none 5310fi 5311 5312fi 5313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5314$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5315CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5316 5317 if 5318 test "x$enable_dependency_tracking" != xno \ 5319 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5320 am__fastdepCXX_TRUE= 5321 am__fastdepCXX_FALSE='#' 5322else 5323 am__fastdepCXX_TRUE='#' 5324 am__fastdepCXX_FALSE= 5325fi 5326 5327 5328ac_ext=c 5329ac_cpp='$CPP $CPPFLAGS' 5330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5332ac_compiler_gnu=$ac_cv_c_compiler_gnu 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5334$as_echo_n "checking how to run the C preprocessor... " >&6; } 5335# On Suns, sometimes $CPP names a directory. 5336if test -n "$CPP" && test -d "$CPP"; then 5337 CPP= 5338fi 5339if test -z "$CPP"; then 5340 if ${ac_cv_prog_CPP+:} false; then : 5341 $as_echo_n "(cached) " >&6 5342else 5343 # Double quotes because CPP needs to be expanded 5344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5345 do 5346 ac_preproc_ok=false 5347for ac_c_preproc_warn_flag in '' yes 5348do 5349 # Use a header file that comes with gcc, so configuring glibc 5350 # with a fresh cross-compiler works. 5351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5352 # <limits.h> exists even on freestanding compilers. 5353 # On the NeXT, cc -E runs the code through the compiler's parser, 5354 # not just through cpp. "Syntax error" is here to catch this case. 5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5356/* end confdefs.h. */ 5357#ifdef __STDC__ 5358# include <limits.h> 5359#else 5360# include <assert.h> 5361#endif 5362 Syntax error 5363_ACEOF 5364if ac_fn_c_try_cpp "$LINENO"; then : 5365 5366else 5367 # Broken: fails on valid input. 5368continue 5369fi 5370rm -f conftest.err conftest.i conftest.$ac_ext 5371 5372 # OK, works on sane cases. Now check whether nonexistent headers 5373 # can be detected and how. 5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5375/* end confdefs.h. */ 5376#include <ac_nonexistent.h> 5377_ACEOF 5378if ac_fn_c_try_cpp "$LINENO"; then : 5379 # Broken: success on invalid input. 5380continue 5381else 5382 # Passes both tests. 5383ac_preproc_ok=: 5384break 5385fi 5386rm -f conftest.err conftest.i conftest.$ac_ext 5387 5388done 5389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5390rm -f conftest.i conftest.err conftest.$ac_ext 5391if $ac_preproc_ok; then : 5392 break 5393fi 5394 5395 done 5396 ac_cv_prog_CPP=$CPP 5397 5398fi 5399 CPP=$ac_cv_prog_CPP 5400else 5401 ac_cv_prog_CPP=$CPP 5402fi 5403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5404$as_echo "$CPP" >&6; } 5405ac_preproc_ok=false 5406for ac_c_preproc_warn_flag in '' yes 5407do 5408 # Use a header file that comes with gcc, so configuring glibc 5409 # with a fresh cross-compiler works. 5410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5411 # <limits.h> exists even on freestanding compilers. 5412 # On the NeXT, cc -E runs the code through the compiler's parser, 5413 # not just through cpp. "Syntax error" is here to catch this case. 5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5415/* end confdefs.h. */ 5416#ifdef __STDC__ 5417# include <limits.h> 5418#else 5419# include <assert.h> 5420#endif 5421 Syntax error 5422_ACEOF 5423if ac_fn_c_try_cpp "$LINENO"; then : 5424 5425else 5426 # Broken: fails on valid input. 5427continue 5428fi 5429rm -f conftest.err conftest.i conftest.$ac_ext 5430 5431 # OK, works on sane cases. Now check whether nonexistent headers 5432 # can be detected and how. 5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5434/* end confdefs.h. */ 5435#include <ac_nonexistent.h> 5436_ACEOF 5437if ac_fn_c_try_cpp "$LINENO"; then : 5438 # Broken: success on invalid input. 5439continue 5440else 5441 # Passes both tests. 5442ac_preproc_ok=: 5443break 5444fi 5445rm -f conftest.err conftest.i conftest.$ac_ext 5446 5447done 5448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5449rm -f conftest.i conftest.err conftest.$ac_ext 5450if $ac_preproc_ok; then : 5451 5452else 5453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5455as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5456See \`config.log' for more details" "$LINENO" 5; } 5457fi 5458 5459ac_ext=c 5460ac_cpp='$CPP $CPPFLAGS' 5461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5463ac_compiler_gnu=$ac_cv_c_compiler_gnu 5464 5465ac_ext=m 5466ac_cpp='$OBJCPP $CPPFLAGS' 5467ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5468ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5469ac_compiler_gnu=$ac_cv_objc_compiler_gnu 5470if test -n "$ac_tool_prefix"; then 5471 for ac_prog in gcc objcc objc cc CC 5472 do 5473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5474set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5476$as_echo_n "checking for $ac_word... " >&6; } 5477if ${ac_cv_prog_OBJC+:} false; then : 5478 $as_echo_n "(cached) " >&6 5479else 5480 if test -n "$OBJC"; then 5481 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 5482else 5483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5484for as_dir in $PATH 5485do 5486 IFS=$as_save_IFS 5487 test -z "$as_dir" && as_dir=. 5488 for ac_exec_ext in '' $ac_executable_extensions; do 5489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5490 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5492 break 2 5493 fi 5494done 5495 done 5496IFS=$as_save_IFS 5497 5498fi 5499fi 5500OBJC=$ac_cv_prog_OBJC 5501if test -n "$OBJC"; then 5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 5503$as_echo "$OBJC" >&6; } 5504else 5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5506$as_echo "no" >&6; } 5507fi 5508 5509 5510 test -n "$OBJC" && break 5511 done 5512fi 5513if test -z "$OBJC"; then 5514 ac_ct_OBJC=$OBJC 5515 for ac_prog in gcc objcc objc cc CC 5516do 5517 # Extract the first word of "$ac_prog", so it can be a program name with args. 5518set dummy $ac_prog; ac_word=$2 5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5520$as_echo_n "checking for $ac_word... " >&6; } 5521if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 5522 $as_echo_n "(cached) " >&6 5523else 5524 if test -n "$ac_ct_OBJC"; then 5525 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 5526else 5527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5528for as_dir in $PATH 5529do 5530 IFS=$as_save_IFS 5531 test -z "$as_dir" && as_dir=. 5532 for ac_exec_ext in '' $ac_executable_extensions; do 5533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5534 ac_cv_prog_ac_ct_OBJC="$ac_prog" 5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5536 break 2 5537 fi 5538done 5539 done 5540IFS=$as_save_IFS 5541 5542fi 5543fi 5544ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 5545if test -n "$ac_ct_OBJC"; then 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 5547$as_echo "$ac_ct_OBJC" >&6; } 5548else 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5550$as_echo "no" >&6; } 5551fi 5552 5553 5554 test -n "$ac_ct_OBJC" && break 5555done 5556 5557 if test "x$ac_ct_OBJC" = x; then 5558 OBJC="gcc" 5559 else 5560 case $cross_compiling:$ac_tool_warned in 5561yes:) 5562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5564ac_tool_warned=yes ;; 5565esac 5566 OBJC=$ac_ct_OBJC 5567 fi 5568fi 5569 5570# Provide some information about the compiler. 5571$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 5572set X $ac_compile 5573ac_compiler=$2 5574for ac_option in --version -v -V -qversion; do 5575 { { ac_try="$ac_compiler $ac_option >&5" 5576case "(($ac_try" in 5577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5578 *) ac_try_echo=$ac_try;; 5579esac 5580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5581$as_echo "$ac_try_echo"; } >&5 5582 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5583 ac_status=$? 5584 if test -s conftest.err; then 5585 sed '10a\ 5586... rest of stderr output deleted ... 5587 10q' conftest.err >conftest.er1 5588 cat conftest.er1 >&5 5589 fi 5590 rm -f conftest.er1 conftest.err 5591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5592 test $ac_status = 0; } 5593done 5594 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 5596$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 5597if ${ac_cv_objc_compiler_gnu+:} false; then : 5598 $as_echo_n "(cached) " >&6 5599else 5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5601/* end confdefs.h. */ 5602 5603int 5604main () 5605{ 5606#ifndef __GNUC__ 5607 choke me 5608#endif 5609 5610 ; 5611 return 0; 5612} 5613_ACEOF 5614if ac_fn_objc_try_compile "$LINENO"; then : 5615 ac_compiler_gnu=yes 5616else 5617 ac_compiler_gnu=no 5618fi 5619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5620ac_cv_objc_compiler_gnu=$ac_compiler_gnu 5621 5622fi 5623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 5624$as_echo "$ac_cv_objc_compiler_gnu" >&6; } 5625if test $ac_compiler_gnu = yes; then 5626 GOBJC=yes 5627else 5628 GOBJC= 5629fi 5630ac_test_OBJCFLAGS=${OBJCFLAGS+set} 5631ac_save_OBJCFLAGS=$OBJCFLAGS 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 5633$as_echo_n "checking whether $OBJC accepts -g... " >&6; } 5634if ${ac_cv_prog_objc_g+:} false; then : 5635 $as_echo_n "(cached) " >&6 5636else 5637 ac_save_objc_werror_flag=$ac_objc_werror_flag 5638 ac_objc_werror_flag=yes 5639 ac_cv_prog_objc_g=no 5640 OBJCFLAGS="-g" 5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5642/* end confdefs.h. */ 5643 5644int 5645main () 5646{ 5647 5648 ; 5649 return 0; 5650} 5651_ACEOF 5652if ac_fn_objc_try_compile "$LINENO"; then : 5653 ac_cv_prog_objc_g=yes 5654else 5655 OBJCFLAGS="" 5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5657/* end confdefs.h. */ 5658 5659int 5660main () 5661{ 5662 5663 ; 5664 return 0; 5665} 5666_ACEOF 5667if ac_fn_objc_try_compile "$LINENO"; then : 5668 5669else 5670 ac_objc_werror_flag=$ac_save_objc_werror_flag 5671 OBJCFLAGS="-g" 5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5673/* end confdefs.h. */ 5674 5675int 5676main () 5677{ 5678 5679 ; 5680 return 0; 5681} 5682_ACEOF 5683if ac_fn_objc_try_compile "$LINENO"; then : 5684 ac_cv_prog_objc_g=yes 5685fi 5686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5687fi 5688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5689fi 5690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5691 ac_objc_werror_flag=$ac_save_objc_werror_flag 5692fi 5693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 5694$as_echo "$ac_cv_prog_objc_g" >&6; } 5695if test "$ac_test_OBJCFLAGS" = set; then 5696 OBJCFLAGS=$ac_save_OBJCFLAGS 5697elif test $ac_cv_prog_objc_g = yes; then 5698 if test "$GOBJC" = yes; then 5699 OBJCFLAGS="-g -O2" 5700 else 5701 OBJCFLAGS="-g" 5702 fi 5703else 5704 if test "$GOBJC" = yes; then 5705 OBJCFLAGS="-O2" 5706 else 5707 OBJCFLAGS= 5708 fi 5709fi 5710ac_ext=c 5711ac_cpp='$CPP $CPPFLAGS' 5712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5714ac_compiler_gnu=$ac_cv_c_compiler_gnu 5715 5716depcc="$OBJC" am_compiler_list='gcc3 gcc' 5717 5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5719$as_echo_n "checking dependency style of $depcc... " >&6; } 5720if ${am_cv_OBJC_dependencies_compiler_type+:} false; then : 5721 $as_echo_n "(cached) " >&6 5722else 5723 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5724 # We make a subdir and do the tests there. Otherwise we can end up 5725 # making bogus files that we don't know about and never remove. For 5726 # instance it was reported that on HP-UX the gcc test will end up 5727 # making a dummy file named 'D' -- because '-MD' means "put the output 5728 # in D". 5729 rm -rf conftest.dir 5730 mkdir conftest.dir 5731 # Copy depcomp to subdir because otherwise we won't find it if we're 5732 # using a relative directory. 5733 cp "$am_depcomp" conftest.dir 5734 cd conftest.dir 5735 # We will build objects and dependencies in a subdirectory because 5736 # it helps to detect inapplicable dependency modes. For instance 5737 # both Tru64's cc and ICC support -MD to output dependencies as a 5738 # side effect of compilation, but ICC will put the dependencies in 5739 # the current directory while Tru64 will put them in the object 5740 # directory. 5741 mkdir sub 5742 5743 am_cv_OBJC_dependencies_compiler_type=none 5744 if test "$am_compiler_list" = ""; then 5745 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5746 fi 5747 am__universal=false 5748 5749 5750 for depmode in $am_compiler_list; do 5751 # Setup a source with many dependencies, because some compilers 5752 # like to wrap large dependency lists on column 80 (with \), and 5753 # we should not choose a depcomp mode which is confused by this. 5754 # 5755 # We need to recreate these files for each test, as the compiler may 5756 # overwrite some of them when testing with obscure command lines. 5757 # This happens at least with the AIX C compiler. 5758 : > sub/conftest.c 5759 for i in 1 2 3 4 5 6; do 5760 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5761 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5762 # Solaris 10 /bin/sh. 5763 echo '/* dummy */' > sub/conftst$i.h 5764 done 5765 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5766 5767 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5768 # mode. It turns out that the SunPro C++ compiler does not properly 5769 # handle '-M -o', and we need to detect this. Also, some Intel 5770 # versions had trouble with output in subdirs. 5771 am__obj=sub/conftest.${OBJEXT-o} 5772 am__minus_obj="-o $am__obj" 5773 case $depmode in 5774 gcc) 5775 # This depmode causes a compiler race in universal mode. 5776 test "$am__universal" = false || continue 5777 ;; 5778 nosideeffect) 5779 # After this tag, mechanisms are not by side-effect, so they'll 5780 # only be used when explicitly requested. 5781 if test "x$enable_dependency_tracking" = xyes; then 5782 continue 5783 else 5784 break 5785 fi 5786 ;; 5787 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5788 # This compiler won't grok '-c -o', but also, the minuso test has 5789 # not run yet. These depmodes are late enough in the game, and 5790 # so weak that their functioning should not be impacted. 5791 am__obj=conftest.${OBJEXT-o} 5792 am__minus_obj= 5793 ;; 5794 none) break ;; 5795 esac 5796 if depmode=$depmode \ 5797 source=sub/conftest.c object=$am__obj \ 5798 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5799 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5800 >/dev/null 2>conftest.err && 5801 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5802 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5803 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5804 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5805 # icc doesn't choke on unknown options, it will just issue warnings 5806 # or remarks (even with -Werror). So we grep stderr for any message 5807 # that says an option was ignored or not supported. 5808 # When given -MP, icc 7.0 and 7.1 complain thusly: 5809 # icc: Command line warning: ignoring option '-M'; no argument required 5810 # The diagnosis changed in icc 8.0: 5811 # icc: Command line remark: option '-MP' not supported 5812 if (grep 'ignoring option' conftest.err || 5813 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5814 am_cv_OBJC_dependencies_compiler_type=$depmode 5815 break 5816 fi 5817 fi 5818 done 5819 5820 cd .. 5821 rm -rf conftest.dir 5822else 5823 am_cv_OBJC_dependencies_compiler_type=none 5824fi 5825 5826fi 5827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 5828$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } 5829OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type 5830 5831 if 5832 test "x$enable_dependency_tracking" != xno \ 5833 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then 5834 am__fastdepOBJC_TRUE= 5835 am__fastdepOBJC_FALSE='#' 5836else 5837 am__fastdepOBJC_TRUE='#' 5838 am__fastdepOBJC_FALSE= 5839fi 5840 5841 5842#AC_PROG_OBJCXX 5843#AC_PROG_OBJCXXCPP 5844 5845case `pwd` in 5846 *\ * | *\ *) 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5848$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5849esac 5850 5851 5852 5853macro_version='2.4.6' 5854macro_revision='2.4.6' 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868ltmain=$ac_aux_dir/ltmain.sh 5869 5870# Backslashify metacharacters that are still active within 5871# double-quoted strings. 5872sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5873 5874# Same as above, but do not quote variable references. 5875double_quote_subst='s/\(["`\\]\)/\\\1/g' 5876 5877# Sed substitution to delay expansion of an escaped shell variable in a 5878# double_quote_subst'ed string. 5879delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5880 5881# Sed substitution to delay expansion of an escaped single quote. 5882delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5883 5884# Sed substitution to avoid accidental globbing in evaled expressions 5885no_glob_subst='s/\*/\\\*/g' 5886 5887ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5888ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5889ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5890 5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5892$as_echo_n "checking how to print strings... " >&6; } 5893# Test print first, because it will be a builtin if present. 5894if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5895 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5896 ECHO='print -r --' 5897elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5898 ECHO='printf %s\n' 5899else 5900 # Use this function as a fallback that always works. 5901 func_fallback_echo () 5902 { 5903 eval 'cat <<_LTECHO_EOF 5904$1 5905_LTECHO_EOF' 5906 } 5907 ECHO='func_fallback_echo' 5908fi 5909 5910# func_echo_all arg... 5911# Invoke $ECHO with all args, space-separated. 5912func_echo_all () 5913{ 5914 $ECHO "" 5915} 5916 5917case $ECHO in 5918 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5919$as_echo "printf" >&6; } ;; 5920 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5921$as_echo "print -r" >&6; } ;; 5922 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5923$as_echo "cat" >&6; } ;; 5924esac 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5940$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5941if ${ac_cv_path_SED+:} false; then : 5942 $as_echo_n "(cached) " >&6 5943else 5944 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5945 for ac_i in 1 2 3 4 5 6 7; do 5946 ac_script="$ac_script$as_nl$ac_script" 5947 done 5948 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5949 { ac_script=; unset ac_script;} 5950 if test -z "$SED"; then 5951 ac_path_SED_found=false 5952 # Loop through the user's path and test for each of PROGNAME-LIST 5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5954for as_dir in $PATH 5955do 5956 IFS=$as_save_IFS 5957 test -z "$as_dir" && as_dir=. 5958 for ac_prog in sed gsed; do 5959 for ac_exec_ext in '' $ac_executable_extensions; do 5960 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5961 as_fn_executable_p "$ac_path_SED" || continue 5962# Check for GNU ac_path_SED and select it if it is found. 5963 # Check for GNU $ac_path_SED 5964case `"$ac_path_SED" --version 2>&1` in 5965*GNU*) 5966 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5967*) 5968 ac_count=0 5969 $as_echo_n 0123456789 >"conftest.in" 5970 while : 5971 do 5972 cat "conftest.in" "conftest.in" >"conftest.tmp" 5973 mv "conftest.tmp" "conftest.in" 5974 cp "conftest.in" "conftest.nl" 5975 $as_echo '' >> "conftest.nl" 5976 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5977 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5978 as_fn_arith $ac_count + 1 && ac_count=$as_val 5979 if test $ac_count -gt ${ac_path_SED_max-0}; then 5980 # Best one so far, save it but keep looking for a better one 5981 ac_cv_path_SED="$ac_path_SED" 5982 ac_path_SED_max=$ac_count 5983 fi 5984 # 10*(2^10) chars as input seems more than enough 5985 test $ac_count -gt 10 && break 5986 done 5987 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5988esac 5989 5990 $ac_path_SED_found && break 3 5991 done 5992 done 5993 done 5994IFS=$as_save_IFS 5995 if test -z "$ac_cv_path_SED"; then 5996 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5997 fi 5998else 5999 ac_cv_path_SED=$SED 6000fi 6001 6002fi 6003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6004$as_echo "$ac_cv_path_SED" >&6; } 6005 SED="$ac_cv_path_SED" 6006 rm -f conftest.sed 6007 6008test -z "$SED" && SED=sed 6009Xsed="$SED -e 1s/^X//" 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6022$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6023if ${ac_cv_path_GREP+:} false; then : 6024 $as_echo_n "(cached) " >&6 6025else 6026 if test -z "$GREP"; then 6027 ac_path_GREP_found=false 6028 # Loop through the user's path and test for each of PROGNAME-LIST 6029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6030for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6031do 6032 IFS=$as_save_IFS 6033 test -z "$as_dir" && as_dir=. 6034 for ac_prog in grep ggrep; do 6035 for ac_exec_ext in '' $ac_executable_extensions; do 6036 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6037 as_fn_executable_p "$ac_path_GREP" || continue 6038# Check for GNU ac_path_GREP and select it if it is found. 6039 # Check for GNU $ac_path_GREP 6040case `"$ac_path_GREP" --version 2>&1` in 6041*GNU*) 6042 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6043*) 6044 ac_count=0 6045 $as_echo_n 0123456789 >"conftest.in" 6046 while : 6047 do 6048 cat "conftest.in" "conftest.in" >"conftest.tmp" 6049 mv "conftest.tmp" "conftest.in" 6050 cp "conftest.in" "conftest.nl" 6051 $as_echo 'GREP' >> "conftest.nl" 6052 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6054 as_fn_arith $ac_count + 1 && ac_count=$as_val 6055 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6056 # Best one so far, save it but keep looking for a better one 6057 ac_cv_path_GREP="$ac_path_GREP" 6058 ac_path_GREP_max=$ac_count 6059 fi 6060 # 10*(2^10) chars as input seems more than enough 6061 test $ac_count -gt 10 && break 6062 done 6063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6064esac 6065 6066 $ac_path_GREP_found && break 3 6067 done 6068 done 6069 done 6070IFS=$as_save_IFS 6071 if test -z "$ac_cv_path_GREP"; then 6072 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6073 fi 6074else 6075 ac_cv_path_GREP=$GREP 6076fi 6077 6078fi 6079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6080$as_echo "$ac_cv_path_GREP" >&6; } 6081 GREP="$ac_cv_path_GREP" 6082 6083 6084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6085$as_echo_n "checking for egrep... " >&6; } 6086if ${ac_cv_path_EGREP+:} false; then : 6087 $as_echo_n "(cached) " >&6 6088else 6089 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6090 then ac_cv_path_EGREP="$GREP -E" 6091 else 6092 if test -z "$EGREP"; then 6093 ac_path_EGREP_found=false 6094 # Loop through the user's path and test for each of PROGNAME-LIST 6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6096for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6097do 6098 IFS=$as_save_IFS 6099 test -z "$as_dir" && as_dir=. 6100 for ac_prog in egrep; do 6101 for ac_exec_ext in '' $ac_executable_extensions; do 6102 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6103 as_fn_executable_p "$ac_path_EGREP" || continue 6104# Check for GNU ac_path_EGREP and select it if it is found. 6105 # Check for GNU $ac_path_EGREP 6106case `"$ac_path_EGREP" --version 2>&1` in 6107*GNU*) 6108 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6109*) 6110 ac_count=0 6111 $as_echo_n 0123456789 >"conftest.in" 6112 while : 6113 do 6114 cat "conftest.in" "conftest.in" >"conftest.tmp" 6115 mv "conftest.tmp" "conftest.in" 6116 cp "conftest.in" "conftest.nl" 6117 $as_echo 'EGREP' >> "conftest.nl" 6118 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6120 as_fn_arith $ac_count + 1 && ac_count=$as_val 6121 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6122 # Best one so far, save it but keep looking for a better one 6123 ac_cv_path_EGREP="$ac_path_EGREP" 6124 ac_path_EGREP_max=$ac_count 6125 fi 6126 # 10*(2^10) chars as input seems more than enough 6127 test $ac_count -gt 10 && break 6128 done 6129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6130esac 6131 6132 $ac_path_EGREP_found && break 3 6133 done 6134 done 6135 done 6136IFS=$as_save_IFS 6137 if test -z "$ac_cv_path_EGREP"; then 6138 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6139 fi 6140else 6141 ac_cv_path_EGREP=$EGREP 6142fi 6143 6144 fi 6145fi 6146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6147$as_echo "$ac_cv_path_EGREP" >&6; } 6148 EGREP="$ac_cv_path_EGREP" 6149 6150 6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6152$as_echo_n "checking for fgrep... " >&6; } 6153if ${ac_cv_path_FGREP+:} false; then : 6154 $as_echo_n "(cached) " >&6 6155else 6156 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6157 then ac_cv_path_FGREP="$GREP -F" 6158 else 6159 if test -z "$FGREP"; then 6160 ac_path_FGREP_found=false 6161 # Loop through the user's path and test for each of PROGNAME-LIST 6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6163for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6164do 6165 IFS=$as_save_IFS 6166 test -z "$as_dir" && as_dir=. 6167 for ac_prog in fgrep; do 6168 for ac_exec_ext in '' $ac_executable_extensions; do 6169 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6170 as_fn_executable_p "$ac_path_FGREP" || continue 6171# Check for GNU ac_path_FGREP and select it if it is found. 6172 # Check for GNU $ac_path_FGREP 6173case `"$ac_path_FGREP" --version 2>&1` in 6174*GNU*) 6175 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6176*) 6177 ac_count=0 6178 $as_echo_n 0123456789 >"conftest.in" 6179 while : 6180 do 6181 cat "conftest.in" "conftest.in" >"conftest.tmp" 6182 mv "conftest.tmp" "conftest.in" 6183 cp "conftest.in" "conftest.nl" 6184 $as_echo 'FGREP' >> "conftest.nl" 6185 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6187 as_fn_arith $ac_count + 1 && ac_count=$as_val 6188 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6189 # Best one so far, save it but keep looking for a better one 6190 ac_cv_path_FGREP="$ac_path_FGREP" 6191 ac_path_FGREP_max=$ac_count 6192 fi 6193 # 10*(2^10) chars as input seems more than enough 6194 test $ac_count -gt 10 && break 6195 done 6196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6197esac 6198 6199 $ac_path_FGREP_found && break 3 6200 done 6201 done 6202 done 6203IFS=$as_save_IFS 6204 if test -z "$ac_cv_path_FGREP"; then 6205 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6206 fi 6207else 6208 ac_cv_path_FGREP=$FGREP 6209fi 6210 6211 fi 6212fi 6213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6214$as_echo "$ac_cv_path_FGREP" >&6; } 6215 FGREP="$ac_cv_path_FGREP" 6216 6217 6218test -z "$GREP" && GREP=grep 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238# Check whether --with-gnu-ld was given. 6239if test "${with_gnu_ld+set}" = set; then : 6240 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6241else 6242 with_gnu_ld=no 6243fi 6244 6245ac_prog=ld 6246if test yes = "$GCC"; then 6247 # Check if gcc -print-prog-name=ld gives a path. 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6249$as_echo_n "checking for ld used by $CC... " >&6; } 6250 case $host in 6251 *-*-mingw*) 6252 # gcc leaves a trailing carriage return, which upsets mingw 6253 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6254 *) 6255 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6256 esac 6257 case $ac_prog in 6258 # Accept absolute paths. 6259 [\\/]* | ?:[\\/]*) 6260 re_direlt='/[^/][^/]*/\.\./' 6261 # Canonicalize the pathname of ld 6262 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6263 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6264 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6265 done 6266 test -z "$LD" && LD=$ac_prog 6267 ;; 6268 "") 6269 # If it fails, then pretend we aren't using GCC. 6270 ac_prog=ld 6271 ;; 6272 *) 6273 # If it is relative, then search for the first ld in PATH. 6274 with_gnu_ld=unknown 6275 ;; 6276 esac 6277elif test yes = "$with_gnu_ld"; then 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6279$as_echo_n "checking for GNU ld... " >&6; } 6280else 6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6282$as_echo_n "checking for non-GNU ld... " >&6; } 6283fi 6284if ${lt_cv_path_LD+:} false; then : 6285 $as_echo_n "(cached) " >&6 6286else 6287 if test -z "$LD"; then 6288 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6289 for ac_dir in $PATH; do 6290 IFS=$lt_save_ifs 6291 test -z "$ac_dir" && ac_dir=. 6292 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6293 lt_cv_path_LD=$ac_dir/$ac_prog 6294 # Check to see if the program is GNU ld. I'd rather use --version, 6295 # but apparently some variants of GNU ld only accept -v. 6296 # Break only if it was the GNU/non-GNU ld that we prefer. 6297 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6298 *GNU* | *'with BFD'*) 6299 test no != "$with_gnu_ld" && break 6300 ;; 6301 *) 6302 test yes != "$with_gnu_ld" && break 6303 ;; 6304 esac 6305 fi 6306 done 6307 IFS=$lt_save_ifs 6308else 6309 lt_cv_path_LD=$LD # Let the user override the test with a path. 6310fi 6311fi 6312 6313LD=$lt_cv_path_LD 6314if test -n "$LD"; then 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6316$as_echo "$LD" >&6; } 6317else 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6319$as_echo "no" >&6; } 6320fi 6321test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6323$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6324if ${lt_cv_prog_gnu_ld+:} false; then : 6325 $as_echo_n "(cached) " >&6 6326else 6327 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6328case `$LD -v 2>&1 </dev/null` in 6329*GNU* | *'with BFD'*) 6330 lt_cv_prog_gnu_ld=yes 6331 ;; 6332*) 6333 lt_cv_prog_gnu_ld=no 6334 ;; 6335esac 6336fi 6337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6338$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6339with_gnu_ld=$lt_cv_prog_gnu_ld 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6350$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6351if ${lt_cv_path_NM+:} false; then : 6352 $as_echo_n "(cached) " >&6 6353else 6354 if test -n "$NM"; then 6355 # Let the user override the test. 6356 lt_cv_path_NM=$NM 6357else 6358 lt_nm_to_check=${ac_tool_prefix}nm 6359 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6360 lt_nm_to_check="$lt_nm_to_check nm" 6361 fi 6362 for lt_tmp_nm in $lt_nm_to_check; do 6363 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6364 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6365 IFS=$lt_save_ifs 6366 test -z "$ac_dir" && ac_dir=. 6367 tmp_nm=$ac_dir/$lt_tmp_nm 6368 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6369 # Check to see if the nm accepts a BSD-compat flag. 6370 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6371 # nm: unknown option "B" ignored 6372 # Tru64's nm complains that /dev/null is an invalid object file 6373 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6374 case $build_os in 6375 mingw*) lt_bad_file=conftest.nm/nofile ;; 6376 *) lt_bad_file=/dev/null ;; 6377 esac 6378 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6379 *$lt_bad_file* | *'Invalid file or object type'*) 6380 lt_cv_path_NM="$tmp_nm -B" 6381 break 2 6382 ;; 6383 *) 6384 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6385 */dev/null*) 6386 lt_cv_path_NM="$tmp_nm -p" 6387 break 2 6388 ;; 6389 *) 6390 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6391 continue # so that we can try to find one that supports BSD flags 6392 ;; 6393 esac 6394 ;; 6395 esac 6396 fi 6397 done 6398 IFS=$lt_save_ifs 6399 done 6400 : ${lt_cv_path_NM=no} 6401fi 6402fi 6403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6404$as_echo "$lt_cv_path_NM" >&6; } 6405if test no != "$lt_cv_path_NM"; then 6406 NM=$lt_cv_path_NM 6407else 6408 # Didn't find any BSD compatible name lister, look for dumpbin. 6409 if test -n "$DUMPBIN"; then : 6410 # Let the user override the test. 6411 else 6412 if test -n "$ac_tool_prefix"; then 6413 for ac_prog in dumpbin "link -dump" 6414 do 6415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6416set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6418$as_echo_n "checking for $ac_word... " >&6; } 6419if ${ac_cv_prog_DUMPBIN+:} false; then : 6420 $as_echo_n "(cached) " >&6 6421else 6422 if test -n "$DUMPBIN"; then 6423 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6424else 6425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6426for as_dir in $PATH 6427do 6428 IFS=$as_save_IFS 6429 test -z "$as_dir" && as_dir=. 6430 for ac_exec_ext in '' $ac_executable_extensions; do 6431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6432 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6434 break 2 6435 fi 6436done 6437 done 6438IFS=$as_save_IFS 6439 6440fi 6441fi 6442DUMPBIN=$ac_cv_prog_DUMPBIN 6443if test -n "$DUMPBIN"; then 6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6445$as_echo "$DUMPBIN" >&6; } 6446else 6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6448$as_echo "no" >&6; } 6449fi 6450 6451 6452 test -n "$DUMPBIN" && break 6453 done 6454fi 6455if test -z "$DUMPBIN"; then 6456 ac_ct_DUMPBIN=$DUMPBIN 6457 for ac_prog in dumpbin "link -dump" 6458do 6459 # Extract the first word of "$ac_prog", so it can be a program name with args. 6460set dummy $ac_prog; ac_word=$2 6461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6462$as_echo_n "checking for $ac_word... " >&6; } 6463if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6464 $as_echo_n "(cached) " >&6 6465else 6466 if test -n "$ac_ct_DUMPBIN"; then 6467 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6468else 6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6470for as_dir in $PATH 6471do 6472 IFS=$as_save_IFS 6473 test -z "$as_dir" && as_dir=. 6474 for ac_exec_ext in '' $ac_executable_extensions; do 6475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6476 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6478 break 2 6479 fi 6480done 6481 done 6482IFS=$as_save_IFS 6483 6484fi 6485fi 6486ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6487if test -n "$ac_ct_DUMPBIN"; then 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6489$as_echo "$ac_ct_DUMPBIN" >&6; } 6490else 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6492$as_echo "no" >&6; } 6493fi 6494 6495 6496 test -n "$ac_ct_DUMPBIN" && break 6497done 6498 6499 if test "x$ac_ct_DUMPBIN" = x; then 6500 DUMPBIN=":" 6501 else 6502 case $cross_compiling:$ac_tool_warned in 6503yes:) 6504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6506ac_tool_warned=yes ;; 6507esac 6508 DUMPBIN=$ac_ct_DUMPBIN 6509 fi 6510fi 6511 6512 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6513 *COFF*) 6514 DUMPBIN="$DUMPBIN -symbols -headers" 6515 ;; 6516 *) 6517 DUMPBIN=: 6518 ;; 6519 esac 6520 fi 6521 6522 if test : != "$DUMPBIN"; then 6523 NM=$DUMPBIN 6524 fi 6525fi 6526test -z "$NM" && NM=nm 6527 6528 6529 6530 6531 6532 6533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6534$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6535if ${lt_cv_nm_interface+:} false; then : 6536 $as_echo_n "(cached) " >&6 6537else 6538 lt_cv_nm_interface="BSD nm" 6539 echo "int some_variable = 0;" > conftest.$ac_ext 6540 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6541 (eval "$ac_compile" 2>conftest.err) 6542 cat conftest.err >&5 6543 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6544 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6545 cat conftest.err >&5 6546 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6547 cat conftest.out >&5 6548 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6549 lt_cv_nm_interface="MS dumpbin" 6550 fi 6551 rm -f conftest* 6552fi 6553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6554$as_echo "$lt_cv_nm_interface" >&6; } 6555 6556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6557$as_echo_n "checking whether ln -s works... " >&6; } 6558LN_S=$as_ln_s 6559if test "$LN_S" = "ln -s"; then 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6561$as_echo "yes" >&6; } 6562else 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6564$as_echo "no, using $LN_S" >&6; } 6565fi 6566 6567# find the maximum length of command line arguments 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6569$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6570if ${lt_cv_sys_max_cmd_len+:} false; then : 6571 $as_echo_n "(cached) " >&6 6572else 6573 i=0 6574 teststring=ABCD 6575 6576 case $build_os in 6577 msdosdjgpp*) 6578 # On DJGPP, this test can blow up pretty badly due to problems in libc 6579 # (any single argument exceeding 2000 bytes causes a buffer overrun 6580 # during glob expansion). Even if it were fixed, the result of this 6581 # check would be larger than it should be. 6582 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6583 ;; 6584 6585 gnu*) 6586 # Under GNU Hurd, this test is not required because there is 6587 # no limit to the length of command line arguments. 6588 # Libtool will interpret -1 as no limit whatsoever 6589 lt_cv_sys_max_cmd_len=-1; 6590 ;; 6591 6592 cygwin* | mingw* | cegcc*) 6593 # On Win9x/ME, this test blows up -- it succeeds, but takes 6594 # about 5 minutes as the teststring grows exponentially. 6595 # Worse, since 9x/ME are not pre-emptively multitasking, 6596 # you end up with a "frozen" computer, even though with patience 6597 # the test eventually succeeds (with a max line length of 256k). 6598 # Instead, let's just punt: use the minimum linelength reported by 6599 # all of the supported platforms: 8192 (on NT/2K/XP). 6600 lt_cv_sys_max_cmd_len=8192; 6601 ;; 6602 6603 mint*) 6604 # On MiNT this can take a long time and run out of memory. 6605 lt_cv_sys_max_cmd_len=8192; 6606 ;; 6607 6608 amigaos*) 6609 # On AmigaOS with pdksh, this test takes hours, literally. 6610 # So we just punt and use a minimum line length of 8192. 6611 lt_cv_sys_max_cmd_len=8192; 6612 ;; 6613 6614 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6615 # This has been around since 386BSD, at least. Likely further. 6616 if test -x /sbin/sysctl; then 6617 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6618 elif test -x /usr/sbin/sysctl; then 6619 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6620 else 6621 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6622 fi 6623 # And add a safety zone 6624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6626 ;; 6627 6628 interix*) 6629 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6630 lt_cv_sys_max_cmd_len=196608 6631 ;; 6632 6633 os2*) 6634 # The test takes a long time on OS/2. 6635 lt_cv_sys_max_cmd_len=8192 6636 ;; 6637 6638 osf*) 6639 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6640 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6641 # nice to cause kernel panics so lets avoid the loop below. 6642 # First set a reasonable default. 6643 lt_cv_sys_max_cmd_len=16384 6644 # 6645 if test -x /sbin/sysconfig; then 6646 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6647 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6648 esac 6649 fi 6650 ;; 6651 sco3.2v5*) 6652 lt_cv_sys_max_cmd_len=102400 6653 ;; 6654 sysv5* | sco5v6* | sysv4.2uw2*) 6655 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6656 if test -n "$kargmax"; then 6657 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6658 else 6659 lt_cv_sys_max_cmd_len=32768 6660 fi 6661 ;; 6662 *) 6663 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6664 if test -n "$lt_cv_sys_max_cmd_len" && \ 6665 test undefined != "$lt_cv_sys_max_cmd_len"; then 6666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6668 else 6669 # Make teststring a little bigger before we do anything with it. 6670 # a 1K string should be a reasonable start. 6671 for i in 1 2 3 4 5 6 7 8; do 6672 teststring=$teststring$teststring 6673 done 6674 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6675 # If test is not a shell built-in, we'll probably end up computing a 6676 # maximum length that is only half of the actual maximum length, but 6677 # we can't tell. 6678 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6679 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6680 test 17 != "$i" # 1/2 MB should be enough 6681 do 6682 i=`expr $i + 1` 6683 teststring=$teststring$teststring 6684 done 6685 # Only check the string length outside the loop. 6686 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6687 teststring= 6688 # Add a significant safety factor because C++ compilers can tack on 6689 # massive amounts of additional arguments before passing them to the 6690 # linker. It appears as though 1/2 is a usable value. 6691 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6692 fi 6693 ;; 6694 esac 6695 6696fi 6697 6698if test -n "$lt_cv_sys_max_cmd_len"; then 6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6700$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6701else 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6703$as_echo "none" >&6; } 6704fi 6705max_cmd_len=$lt_cv_sys_max_cmd_len 6706 6707 6708 6709 6710 6711 6712: ${CP="cp -f"} 6713: ${MV="mv -f"} 6714: ${RM="rm -f"} 6715 6716if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6717 lt_unset=unset 6718else 6719 lt_unset=false 6720fi 6721 6722 6723 6724 6725 6726# test EBCDIC or ASCII 6727case `echo X|tr X '\101'` in 6728 A) # ASCII based system 6729 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6730 lt_SP2NL='tr \040 \012' 6731 lt_NL2SP='tr \015\012 \040\040' 6732 ;; 6733 *) # EBCDIC based system 6734 lt_SP2NL='tr \100 \n' 6735 lt_NL2SP='tr \r\n \100\100' 6736 ;; 6737esac 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6748$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6749if ${lt_cv_to_host_file_cmd+:} false; then : 6750 $as_echo_n "(cached) " >&6 6751else 6752 case $host in 6753 *-*-mingw* ) 6754 case $build in 6755 *-*-mingw* ) # actually msys 6756 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6757 ;; 6758 *-*-cygwin* ) 6759 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6760 ;; 6761 * ) # otherwise, assume *nix 6762 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6763 ;; 6764 esac 6765 ;; 6766 *-*-cygwin* ) 6767 case $build in 6768 *-*-mingw* ) # actually msys 6769 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6770 ;; 6771 *-*-cygwin* ) 6772 lt_cv_to_host_file_cmd=func_convert_file_noop 6773 ;; 6774 * ) # otherwise, assume *nix 6775 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6776 ;; 6777 esac 6778 ;; 6779 * ) # unhandled hosts (and "normal" native builds) 6780 lt_cv_to_host_file_cmd=func_convert_file_noop 6781 ;; 6782esac 6783 6784fi 6785 6786to_host_file_cmd=$lt_cv_to_host_file_cmd 6787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6788$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6789 6790 6791 6792 6793 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6795$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6796if ${lt_cv_to_tool_file_cmd+:} false; then : 6797 $as_echo_n "(cached) " >&6 6798else 6799 #assume ordinary cross tools, or native build. 6800lt_cv_to_tool_file_cmd=func_convert_file_noop 6801case $host in 6802 *-*-mingw* ) 6803 case $build in 6804 *-*-mingw* ) # actually msys 6805 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6806 ;; 6807 esac 6808 ;; 6809esac 6810 6811fi 6812 6813to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6815$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6816 6817 6818 6819 6820 6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6822$as_echo_n "checking for $LD option to reload object files... " >&6; } 6823if ${lt_cv_ld_reload_flag+:} false; then : 6824 $as_echo_n "(cached) " >&6 6825else 6826 lt_cv_ld_reload_flag='-r' 6827fi 6828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6829$as_echo "$lt_cv_ld_reload_flag" >&6; } 6830reload_flag=$lt_cv_ld_reload_flag 6831case $reload_flag in 6832"" | " "*) ;; 6833*) reload_flag=" $reload_flag" ;; 6834esac 6835reload_cmds='$LD$reload_flag -o $output$reload_objs' 6836case $host_os in 6837 cygwin* | mingw* | pw32* | cegcc*) 6838 if test yes != "$GCC"; then 6839 reload_cmds=false 6840 fi 6841 ;; 6842 darwin*) 6843 if test yes = "$GCC"; then 6844 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6845 else 6846 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6847 fi 6848 ;; 6849esac 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859if test -n "$ac_tool_prefix"; then 6860 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6861set dummy ${ac_tool_prefix}objdump; ac_word=$2 6862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6863$as_echo_n "checking for $ac_word... " >&6; } 6864if ${ac_cv_prog_OBJDUMP+:} false; then : 6865 $as_echo_n "(cached) " >&6 6866else 6867 if test -n "$OBJDUMP"; then 6868 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6869else 6870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6871for as_dir in $PATH 6872do 6873 IFS=$as_save_IFS 6874 test -z "$as_dir" && as_dir=. 6875 for ac_exec_ext in '' $ac_executable_extensions; do 6876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6877 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6879 break 2 6880 fi 6881done 6882 done 6883IFS=$as_save_IFS 6884 6885fi 6886fi 6887OBJDUMP=$ac_cv_prog_OBJDUMP 6888if test -n "$OBJDUMP"; then 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6890$as_echo "$OBJDUMP" >&6; } 6891else 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6893$as_echo "no" >&6; } 6894fi 6895 6896 6897fi 6898if test -z "$ac_cv_prog_OBJDUMP"; then 6899 ac_ct_OBJDUMP=$OBJDUMP 6900 # Extract the first word of "objdump", so it can be a program name with args. 6901set dummy objdump; ac_word=$2 6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6903$as_echo_n "checking for $ac_word... " >&6; } 6904if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6905 $as_echo_n "(cached) " >&6 6906else 6907 if test -n "$ac_ct_OBJDUMP"; then 6908 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6909else 6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6911for as_dir in $PATH 6912do 6913 IFS=$as_save_IFS 6914 test -z "$as_dir" && as_dir=. 6915 for ac_exec_ext in '' $ac_executable_extensions; do 6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6917 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6919 break 2 6920 fi 6921done 6922 done 6923IFS=$as_save_IFS 6924 6925fi 6926fi 6927ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6928if test -n "$ac_ct_OBJDUMP"; then 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6930$as_echo "$ac_ct_OBJDUMP" >&6; } 6931else 6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6933$as_echo "no" >&6; } 6934fi 6935 6936 if test "x$ac_ct_OBJDUMP" = x; then 6937 OBJDUMP="false" 6938 else 6939 case $cross_compiling:$ac_tool_warned in 6940yes:) 6941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6943ac_tool_warned=yes ;; 6944esac 6945 OBJDUMP=$ac_ct_OBJDUMP 6946 fi 6947else 6948 OBJDUMP="$ac_cv_prog_OBJDUMP" 6949fi 6950 6951test -z "$OBJDUMP" && OBJDUMP=objdump 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6962$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6963if ${lt_cv_deplibs_check_method+:} false; then : 6964 $as_echo_n "(cached) " >&6 6965else 6966 lt_cv_file_magic_cmd='$MAGIC_CMD' 6967lt_cv_file_magic_test_file= 6968lt_cv_deplibs_check_method='unknown' 6969# Need to set the preceding variable on all platforms that support 6970# interlibrary dependencies. 6971# 'none' -- dependencies not supported. 6972# 'unknown' -- same as none, but documents that we really don't know. 6973# 'pass_all' -- all dependencies passed with no checks. 6974# 'test_compile' -- check by making test program. 6975# 'file_magic [[regex]]' -- check by looking for files in library path 6976# that responds to the $file_magic_cmd with a given extended regex. 6977# If you have 'file' or equivalent on your system and you're not sure 6978# whether 'pass_all' will *always* work, you probably want this one. 6979 6980case $host_os in 6981aix[4-9]*) 6982 lt_cv_deplibs_check_method=pass_all 6983 ;; 6984 6985beos*) 6986 lt_cv_deplibs_check_method=pass_all 6987 ;; 6988 6989bsdi[45]*) 6990 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6991 lt_cv_file_magic_cmd='/usr/bin/file -L' 6992 lt_cv_file_magic_test_file=/shlib/libc.so 6993 ;; 6994 6995cygwin*) 6996 # func_win32_libid is a shell function defined in ltmain.sh 6997 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6998 lt_cv_file_magic_cmd='func_win32_libid' 6999 ;; 7000 7001mingw* | pw32*) 7002 # Base MSYS/MinGW do not provide the 'file' command needed by 7003 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7004 # unless we find 'file', for example because we are cross-compiling. 7005 if ( file / ) >/dev/null 2>&1; then 7006 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7007 lt_cv_file_magic_cmd='func_win32_libid' 7008 else 7009 # Keep this pattern in sync with the one in func_win32_libid. 7010 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7011 lt_cv_file_magic_cmd='$OBJDUMP -f' 7012 fi 7013 ;; 7014 7015cegcc*) 7016 # use the weaker test based on 'objdump'. See mingw*. 7017 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7018 lt_cv_file_magic_cmd='$OBJDUMP -f' 7019 ;; 7020 7021darwin* | rhapsody*) 7022 lt_cv_deplibs_check_method=pass_all 7023 ;; 7024 7025freebsd* | dragonfly*) 7026 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7027 case $host_cpu in 7028 i*86 ) 7029 # Not sure whether the presence of OpenBSD here was a mistake. 7030 # Let's accept both of them until this is cleared up. 7031 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7032 lt_cv_file_magic_cmd=/usr/bin/file 7033 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7034 ;; 7035 esac 7036 else 7037 lt_cv_deplibs_check_method=pass_all 7038 fi 7039 ;; 7040 7041haiku*) 7042 lt_cv_deplibs_check_method=pass_all 7043 ;; 7044 7045hpux10.20* | hpux11*) 7046 lt_cv_file_magic_cmd=/usr/bin/file 7047 case $host_cpu in 7048 ia64*) 7049 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7050 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7051 ;; 7052 hppa*64*) 7053 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]' 7054 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7055 ;; 7056 *) 7057 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7058 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7059 ;; 7060 esac 7061 ;; 7062 7063interix[3-9]*) 7064 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7066 ;; 7067 7068irix5* | irix6* | nonstopux*) 7069 case $LD in 7070 *-32|*"-32 ") libmagic=32-bit;; 7071 *-n32|*"-n32 ") libmagic=N32;; 7072 *-64|*"-64 ") libmagic=64-bit;; 7073 *) libmagic=never-match;; 7074 esac 7075 lt_cv_deplibs_check_method=pass_all 7076 ;; 7077 7078# This must be glibc/ELF. 7079linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7080 lt_cv_deplibs_check_method=pass_all 7081 ;; 7082 7083netbsd* | netbsdelf*-gnu) 7084 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7086 else 7087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7088 fi 7089 ;; 7090 7091newos6*) 7092 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7093 lt_cv_file_magic_cmd=/usr/bin/file 7094 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7095 ;; 7096 7097*nto* | *qnx*) 7098 lt_cv_deplibs_check_method=pass_all 7099 ;; 7100 7101openbsd* | bitrig*) 7102 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7104 else 7105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7106 fi 7107 ;; 7108 7109osf3* | osf4* | osf5*) 7110 lt_cv_deplibs_check_method=pass_all 7111 ;; 7112 7113rdos*) 7114 lt_cv_deplibs_check_method=pass_all 7115 ;; 7116 7117solaris*) 7118 lt_cv_deplibs_check_method=pass_all 7119 ;; 7120 7121sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7122 lt_cv_deplibs_check_method=pass_all 7123 ;; 7124 7125sysv4 | sysv4.3*) 7126 case $host_vendor in 7127 motorola) 7128 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]' 7129 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7130 ;; 7131 ncr) 7132 lt_cv_deplibs_check_method=pass_all 7133 ;; 7134 sequent) 7135 lt_cv_file_magic_cmd='/bin/file' 7136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7137 ;; 7138 sni) 7139 lt_cv_file_magic_cmd='/bin/file' 7140 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7141 lt_cv_file_magic_test_file=/lib/libc.so 7142 ;; 7143 siemens) 7144 lt_cv_deplibs_check_method=pass_all 7145 ;; 7146 pc) 7147 lt_cv_deplibs_check_method=pass_all 7148 ;; 7149 esac 7150 ;; 7151 7152tpf*) 7153 lt_cv_deplibs_check_method=pass_all 7154 ;; 7155os2*) 7156 lt_cv_deplibs_check_method=pass_all 7157 ;; 7158esac 7159 7160fi 7161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7162$as_echo "$lt_cv_deplibs_check_method" >&6; } 7163 7164file_magic_glob= 7165want_nocaseglob=no 7166if test "$build" = "$host"; then 7167 case $host_os in 7168 mingw* | pw32*) 7169 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7170 want_nocaseglob=yes 7171 else 7172 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7173 fi 7174 ;; 7175 esac 7176fi 7177 7178file_magic_cmd=$lt_cv_file_magic_cmd 7179deplibs_check_method=$lt_cv_deplibs_check_method 7180test -z "$deplibs_check_method" && deplibs_check_method=unknown 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203if test -n "$ac_tool_prefix"; then 7204 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7205set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7207$as_echo_n "checking for $ac_word... " >&6; } 7208if ${ac_cv_prog_DLLTOOL+:} false; then : 7209 $as_echo_n "(cached) " >&6 7210else 7211 if test -n "$DLLTOOL"; then 7212 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7213else 7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7215for as_dir in $PATH 7216do 7217 IFS=$as_save_IFS 7218 test -z "$as_dir" && as_dir=. 7219 for ac_exec_ext in '' $ac_executable_extensions; do 7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7221 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7223 break 2 7224 fi 7225done 7226 done 7227IFS=$as_save_IFS 7228 7229fi 7230fi 7231DLLTOOL=$ac_cv_prog_DLLTOOL 7232if test -n "$DLLTOOL"; then 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7234$as_echo "$DLLTOOL" >&6; } 7235else 7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7237$as_echo "no" >&6; } 7238fi 7239 7240 7241fi 7242if test -z "$ac_cv_prog_DLLTOOL"; then 7243 ac_ct_DLLTOOL=$DLLTOOL 7244 # Extract the first word of "dlltool", so it can be a program name with args. 7245set dummy dlltool; ac_word=$2 7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7247$as_echo_n "checking for $ac_word... " >&6; } 7248if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7249 $as_echo_n "(cached) " >&6 7250else 7251 if test -n "$ac_ct_DLLTOOL"; then 7252 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7253else 7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7255for as_dir in $PATH 7256do 7257 IFS=$as_save_IFS 7258 test -z "$as_dir" && as_dir=. 7259 for ac_exec_ext in '' $ac_executable_extensions; do 7260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7261 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7263 break 2 7264 fi 7265done 7266 done 7267IFS=$as_save_IFS 7268 7269fi 7270fi 7271ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7272if test -n "$ac_ct_DLLTOOL"; then 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7274$as_echo "$ac_ct_DLLTOOL" >&6; } 7275else 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7277$as_echo "no" >&6; } 7278fi 7279 7280 if test "x$ac_ct_DLLTOOL" = x; then 7281 DLLTOOL="false" 7282 else 7283 case $cross_compiling:$ac_tool_warned in 7284yes:) 7285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7287ac_tool_warned=yes ;; 7288esac 7289 DLLTOOL=$ac_ct_DLLTOOL 7290 fi 7291else 7292 DLLTOOL="$ac_cv_prog_DLLTOOL" 7293fi 7294 7295test -z "$DLLTOOL" && DLLTOOL=dlltool 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7307$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7308if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7309 $as_echo_n "(cached) " >&6 7310else 7311 lt_cv_sharedlib_from_linklib_cmd='unknown' 7312 7313case $host_os in 7314cygwin* | mingw* | pw32* | cegcc*) 7315 # two different shell functions defined in ltmain.sh; 7316 # decide which one to use based on capabilities of $DLLTOOL 7317 case `$DLLTOOL --help 2>&1` in 7318 *--identify-strict*) 7319 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7320 ;; 7321 *) 7322 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7323 ;; 7324 esac 7325 ;; 7326*) 7327 # fallback: assume linklib IS sharedlib 7328 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7329 ;; 7330esac 7331 7332fi 7333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7334$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7335sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7336test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7337 7338 7339 7340 7341 7342 7343 7344 7345if test -n "$ac_tool_prefix"; then 7346 for ac_prog in ar 7347 do 7348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7349set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7351$as_echo_n "checking for $ac_word... " >&6; } 7352if ${ac_cv_prog_AR+:} false; then : 7353 $as_echo_n "(cached) " >&6 7354else 7355 if test -n "$AR"; then 7356 ac_cv_prog_AR="$AR" # Let the user override the test. 7357else 7358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7359for as_dir in $PATH 7360do 7361 IFS=$as_save_IFS 7362 test -z "$as_dir" && as_dir=. 7363 for ac_exec_ext in '' $ac_executable_extensions; do 7364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7365 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7367 break 2 7368 fi 7369done 7370 done 7371IFS=$as_save_IFS 7372 7373fi 7374fi 7375AR=$ac_cv_prog_AR 7376if test -n "$AR"; then 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7378$as_echo "$AR" >&6; } 7379else 7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7381$as_echo "no" >&6; } 7382fi 7383 7384 7385 test -n "$AR" && break 7386 done 7387fi 7388if test -z "$AR"; then 7389 ac_ct_AR=$AR 7390 for ac_prog in ar 7391do 7392 # Extract the first word of "$ac_prog", so it can be a program name with args. 7393set dummy $ac_prog; ac_word=$2 7394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7395$as_echo_n "checking for $ac_word... " >&6; } 7396if ${ac_cv_prog_ac_ct_AR+:} false; then : 7397 $as_echo_n "(cached) " >&6 7398else 7399 if test -n "$ac_ct_AR"; then 7400 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7401else 7402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7403for as_dir in $PATH 7404do 7405 IFS=$as_save_IFS 7406 test -z "$as_dir" && as_dir=. 7407 for ac_exec_ext in '' $ac_executable_extensions; do 7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7409 ac_cv_prog_ac_ct_AR="$ac_prog" 7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7411 break 2 7412 fi 7413done 7414 done 7415IFS=$as_save_IFS 7416 7417fi 7418fi 7419ac_ct_AR=$ac_cv_prog_ac_ct_AR 7420if test -n "$ac_ct_AR"; then 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7422$as_echo "$ac_ct_AR" >&6; } 7423else 7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7425$as_echo "no" >&6; } 7426fi 7427 7428 7429 test -n "$ac_ct_AR" && break 7430done 7431 7432 if test "x$ac_ct_AR" = x; then 7433 AR="false" 7434 else 7435 case $cross_compiling:$ac_tool_warned in 7436yes:) 7437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7439ac_tool_warned=yes ;; 7440esac 7441 AR=$ac_ct_AR 7442 fi 7443fi 7444 7445: ${AR=ar} 7446: ${AR_FLAGS=cru} 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7459$as_echo_n "checking for archiver @FILE support... " >&6; } 7460if ${lt_cv_ar_at_file+:} false; then : 7461 $as_echo_n "(cached) " >&6 7462else 7463 lt_cv_ar_at_file=no 7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7465/* end confdefs.h. */ 7466 7467int 7468main () 7469{ 7470 7471 ; 7472 return 0; 7473} 7474_ACEOF 7475if ac_fn_c_try_compile "$LINENO"; then : 7476 echo conftest.$ac_objext > conftest.lst 7477 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7479 (eval $lt_ar_try) 2>&5 7480 ac_status=$? 7481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7482 test $ac_status = 0; } 7483 if test 0 -eq "$ac_status"; then 7484 # Ensure the archiver fails upon bogus file names. 7485 rm -f conftest.$ac_objext libconftest.a 7486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7487 (eval $lt_ar_try) 2>&5 7488 ac_status=$? 7489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7490 test $ac_status = 0; } 7491 if test 0 -ne "$ac_status"; then 7492 lt_cv_ar_at_file=@ 7493 fi 7494 fi 7495 rm -f conftest.* libconftest.a 7496 7497fi 7498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7499 7500fi 7501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7502$as_echo "$lt_cv_ar_at_file" >&6; } 7503 7504if test no = "$lt_cv_ar_at_file"; then 7505 archiver_list_spec= 7506else 7507 archiver_list_spec=$lt_cv_ar_at_file 7508fi 7509 7510 7511 7512 7513 7514 7515 7516if test -n "$ac_tool_prefix"; then 7517 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7518set dummy ${ac_tool_prefix}strip; ac_word=$2 7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7520$as_echo_n "checking for $ac_word... " >&6; } 7521if ${ac_cv_prog_STRIP+:} false; then : 7522 $as_echo_n "(cached) " >&6 7523else 7524 if test -n "$STRIP"; then 7525 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7526else 7527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7528for as_dir in $PATH 7529do 7530 IFS=$as_save_IFS 7531 test -z "$as_dir" && as_dir=. 7532 for ac_exec_ext in '' $ac_executable_extensions; do 7533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7534 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7536 break 2 7537 fi 7538done 7539 done 7540IFS=$as_save_IFS 7541 7542fi 7543fi 7544STRIP=$ac_cv_prog_STRIP 7545if test -n "$STRIP"; then 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7547$as_echo "$STRIP" >&6; } 7548else 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7550$as_echo "no" >&6; } 7551fi 7552 7553 7554fi 7555if test -z "$ac_cv_prog_STRIP"; then 7556 ac_ct_STRIP=$STRIP 7557 # Extract the first word of "strip", so it can be a program name with args. 7558set dummy strip; ac_word=$2 7559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7560$as_echo_n "checking for $ac_word... " >&6; } 7561if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7562 $as_echo_n "(cached) " >&6 7563else 7564 if test -n "$ac_ct_STRIP"; then 7565 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7566else 7567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7568for as_dir in $PATH 7569do 7570 IFS=$as_save_IFS 7571 test -z "$as_dir" && as_dir=. 7572 for ac_exec_ext in '' $ac_executable_extensions; do 7573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7574 ac_cv_prog_ac_ct_STRIP="strip" 7575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7576 break 2 7577 fi 7578done 7579 done 7580IFS=$as_save_IFS 7581 7582fi 7583fi 7584ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7585if test -n "$ac_ct_STRIP"; then 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7587$as_echo "$ac_ct_STRIP" >&6; } 7588else 7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7590$as_echo "no" >&6; } 7591fi 7592 7593 if test "x$ac_ct_STRIP" = x; then 7594 STRIP=":" 7595 else 7596 case $cross_compiling:$ac_tool_warned in 7597yes:) 7598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7600ac_tool_warned=yes ;; 7601esac 7602 STRIP=$ac_ct_STRIP 7603 fi 7604else 7605 STRIP="$ac_cv_prog_STRIP" 7606fi 7607 7608test -z "$STRIP" && STRIP=: 7609 7610 7611 7612 7613 7614 7615if test -n "$ac_tool_prefix"; then 7616 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7617set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7619$as_echo_n "checking for $ac_word... " >&6; } 7620if ${ac_cv_prog_RANLIB+:} false; then : 7621 $as_echo_n "(cached) " >&6 7622else 7623 if test -n "$RANLIB"; then 7624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7625else 7626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7627for as_dir in $PATH 7628do 7629 IFS=$as_save_IFS 7630 test -z "$as_dir" && as_dir=. 7631 for ac_exec_ext in '' $ac_executable_extensions; do 7632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7633 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7635 break 2 7636 fi 7637done 7638 done 7639IFS=$as_save_IFS 7640 7641fi 7642fi 7643RANLIB=$ac_cv_prog_RANLIB 7644if test -n "$RANLIB"; then 7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7646$as_echo "$RANLIB" >&6; } 7647else 7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7649$as_echo "no" >&6; } 7650fi 7651 7652 7653fi 7654if test -z "$ac_cv_prog_RANLIB"; then 7655 ac_ct_RANLIB=$RANLIB 7656 # Extract the first word of "ranlib", so it can be a program name with args. 7657set dummy ranlib; ac_word=$2 7658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7659$as_echo_n "checking for $ac_word... " >&6; } 7660if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7661 $as_echo_n "(cached) " >&6 7662else 7663 if test -n "$ac_ct_RANLIB"; then 7664 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7665else 7666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7667for as_dir in $PATH 7668do 7669 IFS=$as_save_IFS 7670 test -z "$as_dir" && as_dir=. 7671 for ac_exec_ext in '' $ac_executable_extensions; do 7672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7673 ac_cv_prog_ac_ct_RANLIB="ranlib" 7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7675 break 2 7676 fi 7677done 7678 done 7679IFS=$as_save_IFS 7680 7681fi 7682fi 7683ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7684if test -n "$ac_ct_RANLIB"; then 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7686$as_echo "$ac_ct_RANLIB" >&6; } 7687else 7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7689$as_echo "no" >&6; } 7690fi 7691 7692 if test "x$ac_ct_RANLIB" = x; then 7693 RANLIB=":" 7694 else 7695 case $cross_compiling:$ac_tool_warned in 7696yes:) 7697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7699ac_tool_warned=yes ;; 7700esac 7701 RANLIB=$ac_ct_RANLIB 7702 fi 7703else 7704 RANLIB="$ac_cv_prog_RANLIB" 7705fi 7706 7707test -z "$RANLIB" && RANLIB=: 7708 7709 7710 7711 7712 7713 7714# Determine commands to create old-style static archives. 7715old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7716old_postinstall_cmds='chmod 644 $oldlib' 7717old_postuninstall_cmds= 7718 7719if test -n "$RANLIB"; then 7720 case $host_os in 7721 bitrig* | openbsd*) 7722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7723 ;; 7724 *) 7725 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7726 ;; 7727 esac 7728 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7729fi 7730 7731case $host_os in 7732 darwin*) 7733 lock_old_archive_extraction=yes ;; 7734 *) 7735 lock_old_archive_extraction=no ;; 7736esac 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776# If no C compiler was specified, use CC. 7777LTCC=${LTCC-"$CC"} 7778 7779# If no C compiler flags were specified, use CFLAGS. 7780LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7781 7782# Allow CC to be a program name with arguments. 7783compiler=$CC 7784 7785 7786# Check for command to grab the raw symbol name followed by C symbol from nm. 7787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7788$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7789if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7790 $as_echo_n "(cached) " >&6 7791else 7792 7793# These are sane defaults that work on at least a few old systems. 7794# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7795 7796# Character class describing NM global symbol codes. 7797symcode='[BCDEGRST]' 7798 7799# Regexp to match symbols that can be accessed directly from C. 7800sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7801 7802# Define system-specific variables. 7803case $host_os in 7804aix*) 7805 symcode='[BCDT]' 7806 ;; 7807cygwin* | mingw* | pw32* | cegcc*) 7808 symcode='[ABCDGISTW]' 7809 ;; 7810hpux*) 7811 if test ia64 = "$host_cpu"; then 7812 symcode='[ABCDEGRST]' 7813 fi 7814 ;; 7815irix* | nonstopux*) 7816 symcode='[BCDEGRST]' 7817 ;; 7818osf*) 7819 symcode='[BCDEGQRST]' 7820 ;; 7821solaris*) 7822 symcode='[BDRT]' 7823 ;; 7824sco3.2v5*) 7825 symcode='[DT]' 7826 ;; 7827sysv4.2uw2*) 7828 symcode='[DT]' 7829 ;; 7830sysv5* | sco5v6* | unixware* | OpenUNIX*) 7831 symcode='[ABDT]' 7832 ;; 7833sysv4) 7834 symcode='[DFNSTU]' 7835 ;; 7836esac 7837 7838# If we're using GNU nm, then use its standard symbol codes. 7839case `$NM -V 2>&1` in 7840*GNU* | *'with BFD'*) 7841 symcode='[ABCDGIRSTW]' ;; 7842esac 7843 7844if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7845 # Gets list of data symbols to import. 7846 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7847 # Adjust the below global symbol transforms to fixup imported variables. 7848 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7849 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7850 lt_c_name_lib_hook="\ 7851 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7852 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7853else 7854 # Disable hooks by default. 7855 lt_cv_sys_global_symbol_to_import= 7856 lt_cdecl_hook= 7857 lt_c_name_hook= 7858 lt_c_name_lib_hook= 7859fi 7860 7861# Transform an extracted symbol line into a proper C declaration. 7862# Some systems (esp. on ia64) link data and code symbols differently, 7863# so use this general approach. 7864lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7865$lt_cdecl_hook\ 7866" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7867" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7868 7869# Transform an extracted symbol line into symbol name and symbol address 7870lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7871$lt_c_name_hook\ 7872" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7873" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7874 7875# Transform an extracted symbol line into symbol name with lib prefix and 7876# symbol address. 7877lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7878$lt_c_name_lib_hook\ 7879" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7880" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7881" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7882 7883# Handle CRLF in mingw tool chain 7884opt_cr= 7885case $build_os in 7886mingw*) 7887 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7888 ;; 7889esac 7890 7891# Try without a prefix underscore, then with it. 7892for ac_symprfx in "" "_"; do 7893 7894 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7895 symxfrm="\\1 $ac_symprfx\\2 \\2" 7896 7897 # Write the raw and C identifiers. 7898 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7899 # Fake it for dumpbin and say T for any non-static function, 7900 # D for any global variable and I for any imported variable. 7901 # Also find C++ and __fastcall symbols from MSVC++, 7902 # which start with @ or ?. 7903 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7904" {last_section=section; section=\$ 3};"\ 7905" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7906" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7907" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7908" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7909" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7910" \$ 0!~/External *\|/{next};"\ 7911" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7912" {if(hide[section]) next};"\ 7913" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7914" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7915" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7916" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7917" ' prfx=^$ac_symprfx" 7918 else 7919 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7920 fi 7921 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7922 7923 # Check to see that the pipe works correctly. 7924 pipe_works=no 7925 7926 rm -f conftest* 7927 cat > conftest.$ac_ext <<_LT_EOF 7928#ifdef __cplusplus 7929extern "C" { 7930#endif 7931char nm_test_var; 7932void nm_test_func(void); 7933void nm_test_func(void){} 7934#ifdef __cplusplus 7935} 7936#endif 7937int main(){nm_test_var='a';nm_test_func();return(0);} 7938_LT_EOF 7939 7940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7941 (eval $ac_compile) 2>&5 7942 ac_status=$? 7943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7944 test $ac_status = 0; }; then 7945 # Now try to grab the symbols. 7946 nlist=conftest.nm 7947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7948 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7949 ac_status=$? 7950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7951 test $ac_status = 0; } && test -s "$nlist"; then 7952 # Try sorting and uniquifying the output. 7953 if sort "$nlist" | uniq > "$nlist"T; then 7954 mv -f "$nlist"T "$nlist" 7955 else 7956 rm -f "$nlist"T 7957 fi 7958 7959 # Make sure that we snagged all the symbols we need. 7960 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7961 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7962 cat <<_LT_EOF > conftest.$ac_ext 7963/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7964#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7965/* DATA imports from DLLs on WIN32 can't be const, because runtime 7966 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7967# define LT_DLSYM_CONST 7968#elif defined __osf__ 7969/* This system does not cope well with relocations in const data. */ 7970# define LT_DLSYM_CONST 7971#else 7972# define LT_DLSYM_CONST const 7973#endif 7974 7975#ifdef __cplusplus 7976extern "C" { 7977#endif 7978 7979_LT_EOF 7980 # Now generate the symbol file. 7981 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7982 7983 cat <<_LT_EOF >> conftest.$ac_ext 7984 7985/* The mapping between symbol names and symbols. */ 7986LT_DLSYM_CONST struct { 7987 const char *name; 7988 void *address; 7989} 7990lt__PROGRAM__LTX_preloaded_symbols[] = 7991{ 7992 { "@PROGRAM@", (void *) 0 }, 7993_LT_EOF 7994 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7995 cat <<\_LT_EOF >> conftest.$ac_ext 7996 {0, (void *) 0} 7997}; 7998 7999/* This works around a problem in FreeBSD linker */ 8000#ifdef FREEBSD_WORKAROUND 8001static const void *lt_preloaded_setup() { 8002 return lt__PROGRAM__LTX_preloaded_symbols; 8003} 8004#endif 8005 8006#ifdef __cplusplus 8007} 8008#endif 8009_LT_EOF 8010 # Now try linking the two files. 8011 mv conftest.$ac_objext conftstm.$ac_objext 8012 lt_globsym_save_LIBS=$LIBS 8013 lt_globsym_save_CFLAGS=$CFLAGS 8014 LIBS=conftstm.$ac_objext 8015 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8017 (eval $ac_link) 2>&5 8018 ac_status=$? 8019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8020 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8021 pipe_works=yes 8022 fi 8023 LIBS=$lt_globsym_save_LIBS 8024 CFLAGS=$lt_globsym_save_CFLAGS 8025 else 8026 echo "cannot find nm_test_func in $nlist" >&5 8027 fi 8028 else 8029 echo "cannot find nm_test_var in $nlist" >&5 8030 fi 8031 else 8032 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8033 fi 8034 else 8035 echo "$progname: failed program was:" >&5 8036 cat conftest.$ac_ext >&5 8037 fi 8038 rm -rf conftest* conftst* 8039 8040 # Do not use the global_symbol_pipe unless it works. 8041 if test yes = "$pipe_works"; then 8042 break 8043 else 8044 lt_cv_sys_global_symbol_pipe= 8045 fi 8046done 8047 8048fi 8049 8050if test -z "$lt_cv_sys_global_symbol_pipe"; then 8051 lt_cv_sys_global_symbol_to_cdecl= 8052fi 8053if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8055$as_echo "failed" >&6; } 8056else 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8058$as_echo "ok" >&6; } 8059fi 8060 8061# Response file support. 8062if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8063 nm_file_list_spec='@' 8064elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8065 nm_file_list_spec='@' 8066fi 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8105$as_echo_n "checking for sysroot... " >&6; } 8106 8107# Check whether --with-sysroot was given. 8108if test "${with_sysroot+set}" = set; then : 8109 withval=$with_sysroot; 8110else 8111 with_sysroot=no 8112fi 8113 8114 8115lt_sysroot= 8116case $with_sysroot in #( 8117 yes) 8118 if test yes = "$GCC"; then 8119 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8120 fi 8121 ;; #( 8122 /*) 8123 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8124 ;; #( 8125 no|'') 8126 ;; #( 8127 *) 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8129$as_echo "$with_sysroot" >&6; } 8130 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8131 ;; 8132esac 8133 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8135$as_echo "${lt_sysroot:-no}" >&6; } 8136 8137 8138 8139 8140 8141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8142$as_echo_n "checking for a working dd... " >&6; } 8143if ${ac_cv_path_lt_DD+:} false; then : 8144 $as_echo_n "(cached) " >&6 8145else 8146 printf 0123456789abcdef0123456789abcdef >conftest.i 8147cat conftest.i conftest.i >conftest2.i 8148: ${lt_DD:=$DD} 8149if test -z "$lt_DD"; then 8150 ac_path_lt_DD_found=false 8151 # Loop through the user's path and test for each of PROGNAME-LIST 8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8153for as_dir in $PATH 8154do 8155 IFS=$as_save_IFS 8156 test -z "$as_dir" && as_dir=. 8157 for ac_prog in dd; do 8158 for ac_exec_ext in '' $ac_executable_extensions; do 8159 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 8160 as_fn_executable_p "$ac_path_lt_DD" || continue 8161if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8162 cmp -s conftest.i conftest.out \ 8163 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8164fi 8165 $ac_path_lt_DD_found && break 3 8166 done 8167 done 8168 done 8169IFS=$as_save_IFS 8170 if test -z "$ac_cv_path_lt_DD"; then 8171 : 8172 fi 8173else 8174 ac_cv_path_lt_DD=$lt_DD 8175fi 8176 8177rm -f conftest.i conftest2.i conftest.out 8178fi 8179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8180$as_echo "$ac_cv_path_lt_DD" >&6; } 8181 8182 8183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8184$as_echo_n "checking how to truncate binary pipes... " >&6; } 8185if ${lt_cv_truncate_bin+:} false; then : 8186 $as_echo_n "(cached) " >&6 8187else 8188 printf 0123456789abcdef0123456789abcdef >conftest.i 8189cat conftest.i conftest.i >conftest2.i 8190lt_cv_truncate_bin= 8191if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8192 cmp -s conftest.i conftest.out \ 8193 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8194fi 8195rm -f conftest.i conftest2.i conftest.out 8196test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8197fi 8198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8199$as_echo "$lt_cv_truncate_bin" >&6; } 8200 8201 8202 8203 8204 8205 8206 8207# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8208func_cc_basename () 8209{ 8210 for cc_temp in $*""; do 8211 case $cc_temp in 8212 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8213 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8214 \-*) ;; 8215 *) break;; 8216 esac 8217 done 8218 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8219} 8220 8221# Check whether --enable-libtool-lock was given. 8222if test "${enable_libtool_lock+set}" = set; then : 8223 enableval=$enable_libtool_lock; 8224fi 8225 8226test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8227 8228# Some flags need to be propagated to the compiler or linker for good 8229# libtool support. 8230case $host in 8231ia64-*-hpux*) 8232 # Find out what ABI is being produced by ac_compile, and set mode 8233 # options accordingly. 8234 echo 'int i;' > conftest.$ac_ext 8235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8236 (eval $ac_compile) 2>&5 8237 ac_status=$? 8238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8239 test $ac_status = 0; }; then 8240 case `/usr/bin/file conftest.$ac_objext` in 8241 *ELF-32*) 8242 HPUX_IA64_MODE=32 8243 ;; 8244 *ELF-64*) 8245 HPUX_IA64_MODE=64 8246 ;; 8247 esac 8248 fi 8249 rm -rf conftest* 8250 ;; 8251*-*-irix6*) 8252 # Find out what ABI is being produced by ac_compile, and set linker 8253 # options accordingly. 8254 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8256 (eval $ac_compile) 2>&5 8257 ac_status=$? 8258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8259 test $ac_status = 0; }; then 8260 if test yes = "$lt_cv_prog_gnu_ld"; then 8261 case `/usr/bin/file conftest.$ac_objext` in 8262 *32-bit*) 8263 LD="${LD-ld} -melf32bsmip" 8264 ;; 8265 *N32*) 8266 LD="${LD-ld} -melf32bmipn32" 8267 ;; 8268 *64-bit*) 8269 LD="${LD-ld} -melf64bmip" 8270 ;; 8271 esac 8272 else 8273 case `/usr/bin/file conftest.$ac_objext` in 8274 *32-bit*) 8275 LD="${LD-ld} -32" 8276 ;; 8277 *N32*) 8278 LD="${LD-ld} -n32" 8279 ;; 8280 *64-bit*) 8281 LD="${LD-ld} -64" 8282 ;; 8283 esac 8284 fi 8285 fi 8286 rm -rf conftest* 8287 ;; 8288 8289mips64*-*linux*) 8290 # Find out what ABI is being produced by ac_compile, and set linker 8291 # options accordingly. 8292 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8294 (eval $ac_compile) 2>&5 8295 ac_status=$? 8296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8297 test $ac_status = 0; }; then 8298 emul=elf 8299 case `/usr/bin/file conftest.$ac_objext` in 8300 *32-bit*) 8301 emul="${emul}32" 8302 ;; 8303 *64-bit*) 8304 emul="${emul}64" 8305 ;; 8306 esac 8307 case `/usr/bin/file conftest.$ac_objext` in 8308 *MSB*) 8309 emul="${emul}btsmip" 8310 ;; 8311 *LSB*) 8312 emul="${emul}ltsmip" 8313 ;; 8314 esac 8315 case `/usr/bin/file conftest.$ac_objext` in 8316 *N32*) 8317 emul="${emul}n32" 8318 ;; 8319 esac 8320 LD="${LD-ld} -m $emul" 8321 fi 8322 rm -rf conftest* 8323 ;; 8324 8325x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8326s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8327 # Find out what ABI is being produced by ac_compile, and set linker 8328 # options accordingly. Note that the listed cases only cover the 8329 # situations where additional linker options are needed (such as when 8330 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8331 # vice versa); the common cases where no linker options are needed do 8332 # not appear in the list. 8333 echo 'int i;' > conftest.$ac_ext 8334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8335 (eval $ac_compile) 2>&5 8336 ac_status=$? 8337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8338 test $ac_status = 0; }; then 8339 case `/usr/bin/file conftest.o` in 8340 *32-bit*) 8341 case $host in 8342 x86_64-*kfreebsd*-gnu) 8343 LD="${LD-ld} -m elf_i386_fbsd" 8344 ;; 8345 x86_64-*linux*) 8346 case `/usr/bin/file conftest.o` in 8347 *x86-64*) 8348 LD="${LD-ld} -m elf32_x86_64" 8349 ;; 8350 *) 8351 LD="${LD-ld} -m elf_i386" 8352 ;; 8353 esac 8354 ;; 8355 powerpc64le-*linux*) 8356 LD="${LD-ld} -m elf32lppclinux" 8357 ;; 8358 powerpc64-*linux*) 8359 LD="${LD-ld} -m elf32ppclinux" 8360 ;; 8361 s390x-*linux*) 8362 LD="${LD-ld} -m elf_s390" 8363 ;; 8364 sparc64-*linux*) 8365 LD="${LD-ld} -m elf32_sparc" 8366 ;; 8367 esac 8368 ;; 8369 *64-bit*) 8370 case $host in 8371 x86_64-*kfreebsd*-gnu) 8372 LD="${LD-ld} -m elf_x86_64_fbsd" 8373 ;; 8374 x86_64-*linux*) 8375 LD="${LD-ld} -m elf_x86_64" 8376 ;; 8377 powerpcle-*linux*) 8378 LD="${LD-ld} -m elf64lppc" 8379 ;; 8380 powerpc-*linux*) 8381 LD="${LD-ld} -m elf64ppc" 8382 ;; 8383 s390*-*linux*|s390*-*tpf*) 8384 LD="${LD-ld} -m elf64_s390" 8385 ;; 8386 sparc*-*linux*) 8387 LD="${LD-ld} -m elf64_sparc" 8388 ;; 8389 esac 8390 ;; 8391 esac 8392 fi 8393 rm -rf conftest* 8394 ;; 8395 8396*-*-sco3.2v5*) 8397 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8398 SAVE_CFLAGS=$CFLAGS 8399 CFLAGS="$CFLAGS -belf" 8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8401$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8402if ${lt_cv_cc_needs_belf+:} false; then : 8403 $as_echo_n "(cached) " >&6 8404else 8405 ac_ext=c 8406ac_cpp='$CPP $CPPFLAGS' 8407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8409ac_compiler_gnu=$ac_cv_c_compiler_gnu 8410 8411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8412/* end confdefs.h. */ 8413 8414int 8415main () 8416{ 8417 8418 ; 8419 return 0; 8420} 8421_ACEOF 8422if ac_fn_c_try_link "$LINENO"; then : 8423 lt_cv_cc_needs_belf=yes 8424else 8425 lt_cv_cc_needs_belf=no 8426fi 8427rm -f core conftest.err conftest.$ac_objext \ 8428 conftest$ac_exeext conftest.$ac_ext 8429 ac_ext=c 8430ac_cpp='$CPP $CPPFLAGS' 8431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8433ac_compiler_gnu=$ac_cv_c_compiler_gnu 8434 8435fi 8436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8437$as_echo "$lt_cv_cc_needs_belf" >&6; } 8438 if test yes != "$lt_cv_cc_needs_belf"; then 8439 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8440 CFLAGS=$SAVE_CFLAGS 8441 fi 8442 ;; 8443*-*solaris*) 8444 # Find out what ABI is being produced by ac_compile, and set linker 8445 # options accordingly. 8446 echo 'int i;' > conftest.$ac_ext 8447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8448 (eval $ac_compile) 2>&5 8449 ac_status=$? 8450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8451 test $ac_status = 0; }; then 8452 case `/usr/bin/file conftest.o` in 8453 *64-bit*) 8454 case $lt_cv_prog_gnu_ld in 8455 yes*) 8456 case $host in 8457 i?86-*-solaris*|x86_64-*-solaris*) 8458 LD="${LD-ld} -m elf_x86_64" 8459 ;; 8460 sparc*-*-solaris*) 8461 LD="${LD-ld} -m elf64_sparc" 8462 ;; 8463 esac 8464 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8465 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8466 LD=${LD-ld}_sol2 8467 fi 8468 ;; 8469 *) 8470 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8471 LD="${LD-ld} -64" 8472 fi 8473 ;; 8474 esac 8475 ;; 8476 esac 8477 fi 8478 rm -rf conftest* 8479 ;; 8480esac 8481 8482need_locks=$enable_libtool_lock 8483 8484if test -n "$ac_tool_prefix"; then 8485 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8486set dummy ${ac_tool_prefix}mt; ac_word=$2 8487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8488$as_echo_n "checking for $ac_word... " >&6; } 8489if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8490 $as_echo_n "(cached) " >&6 8491else 8492 if test -n "$MANIFEST_TOOL"; then 8493 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8494else 8495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8496for as_dir in $PATH 8497do 8498 IFS=$as_save_IFS 8499 test -z "$as_dir" && as_dir=. 8500 for ac_exec_ext in '' $ac_executable_extensions; do 8501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8502 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8504 break 2 8505 fi 8506done 8507 done 8508IFS=$as_save_IFS 8509 8510fi 8511fi 8512MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8513if test -n "$MANIFEST_TOOL"; then 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8515$as_echo "$MANIFEST_TOOL" >&6; } 8516else 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8518$as_echo "no" >&6; } 8519fi 8520 8521 8522fi 8523if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8524 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8525 # Extract the first word of "mt", so it can be a program name with args. 8526set dummy mt; ac_word=$2 8527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8528$as_echo_n "checking for $ac_word... " >&6; } 8529if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8530 $as_echo_n "(cached) " >&6 8531else 8532 if test -n "$ac_ct_MANIFEST_TOOL"; then 8533 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8534else 8535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8536for as_dir in $PATH 8537do 8538 IFS=$as_save_IFS 8539 test -z "$as_dir" && as_dir=. 8540 for ac_exec_ext in '' $ac_executable_extensions; do 8541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8542 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8544 break 2 8545 fi 8546done 8547 done 8548IFS=$as_save_IFS 8549 8550fi 8551fi 8552ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8553if test -n "$ac_ct_MANIFEST_TOOL"; then 8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8555$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8556else 8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8558$as_echo "no" >&6; } 8559fi 8560 8561 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8562 MANIFEST_TOOL=":" 8563 else 8564 case $cross_compiling:$ac_tool_warned in 8565yes:) 8566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8568ac_tool_warned=yes ;; 8569esac 8570 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8571 fi 8572else 8573 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8574fi 8575 8576test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8578$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8579if ${lt_cv_path_mainfest_tool+:} false; then : 8580 $as_echo_n "(cached) " >&6 8581else 8582 lt_cv_path_mainfest_tool=no 8583 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8584 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8585 cat conftest.err >&5 8586 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8587 lt_cv_path_mainfest_tool=yes 8588 fi 8589 rm -f conftest* 8590fi 8591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8592$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8593if test yes != "$lt_cv_path_mainfest_tool"; then 8594 MANIFEST_TOOL=: 8595fi 8596 8597 8598 8599 8600 8601 8602 case $host_os in 8603 rhapsody* | darwin*) 8604 if test -n "$ac_tool_prefix"; then 8605 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8606set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8608$as_echo_n "checking for $ac_word... " >&6; } 8609if ${ac_cv_prog_DSYMUTIL+:} false; then : 8610 $as_echo_n "(cached) " >&6 8611else 8612 if test -n "$DSYMUTIL"; then 8613 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8614else 8615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8616for as_dir in $PATH 8617do 8618 IFS=$as_save_IFS 8619 test -z "$as_dir" && as_dir=. 8620 for ac_exec_ext in '' $ac_executable_extensions; do 8621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8622 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8624 break 2 8625 fi 8626done 8627 done 8628IFS=$as_save_IFS 8629 8630fi 8631fi 8632DSYMUTIL=$ac_cv_prog_DSYMUTIL 8633if test -n "$DSYMUTIL"; then 8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8635$as_echo "$DSYMUTIL" >&6; } 8636else 8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8638$as_echo "no" >&6; } 8639fi 8640 8641 8642fi 8643if test -z "$ac_cv_prog_DSYMUTIL"; then 8644 ac_ct_DSYMUTIL=$DSYMUTIL 8645 # Extract the first word of "dsymutil", so it can be a program name with args. 8646set dummy dsymutil; ac_word=$2 8647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8648$as_echo_n "checking for $ac_word... " >&6; } 8649if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8650 $as_echo_n "(cached) " >&6 8651else 8652 if test -n "$ac_ct_DSYMUTIL"; then 8653 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8654else 8655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8656for as_dir in $PATH 8657do 8658 IFS=$as_save_IFS 8659 test -z "$as_dir" && as_dir=. 8660 for ac_exec_ext in '' $ac_executable_extensions; do 8661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8662 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8664 break 2 8665 fi 8666done 8667 done 8668IFS=$as_save_IFS 8669 8670fi 8671fi 8672ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8673if test -n "$ac_ct_DSYMUTIL"; then 8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8675$as_echo "$ac_ct_DSYMUTIL" >&6; } 8676else 8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8678$as_echo "no" >&6; } 8679fi 8680 8681 if test "x$ac_ct_DSYMUTIL" = x; then 8682 DSYMUTIL=":" 8683 else 8684 case $cross_compiling:$ac_tool_warned in 8685yes:) 8686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8688ac_tool_warned=yes ;; 8689esac 8690 DSYMUTIL=$ac_ct_DSYMUTIL 8691 fi 8692else 8693 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8694fi 8695 8696 if test -n "$ac_tool_prefix"; then 8697 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8698set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8700$as_echo_n "checking for $ac_word... " >&6; } 8701if ${ac_cv_prog_NMEDIT+:} false; then : 8702 $as_echo_n "(cached) " >&6 8703else 8704 if test -n "$NMEDIT"; then 8705 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8706else 8707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8708for as_dir in $PATH 8709do 8710 IFS=$as_save_IFS 8711 test -z "$as_dir" && as_dir=. 8712 for ac_exec_ext in '' $ac_executable_extensions; do 8713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8714 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8716 break 2 8717 fi 8718done 8719 done 8720IFS=$as_save_IFS 8721 8722fi 8723fi 8724NMEDIT=$ac_cv_prog_NMEDIT 8725if test -n "$NMEDIT"; then 8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8727$as_echo "$NMEDIT" >&6; } 8728else 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8730$as_echo "no" >&6; } 8731fi 8732 8733 8734fi 8735if test -z "$ac_cv_prog_NMEDIT"; then 8736 ac_ct_NMEDIT=$NMEDIT 8737 # Extract the first word of "nmedit", so it can be a program name with args. 8738set dummy nmedit; ac_word=$2 8739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8740$as_echo_n "checking for $ac_word... " >&6; } 8741if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8742 $as_echo_n "(cached) " >&6 8743else 8744 if test -n "$ac_ct_NMEDIT"; then 8745 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8746else 8747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8748for as_dir in $PATH 8749do 8750 IFS=$as_save_IFS 8751 test -z "$as_dir" && as_dir=. 8752 for ac_exec_ext in '' $ac_executable_extensions; do 8753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8754 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8756 break 2 8757 fi 8758done 8759 done 8760IFS=$as_save_IFS 8761 8762fi 8763fi 8764ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8765if test -n "$ac_ct_NMEDIT"; then 8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8767$as_echo "$ac_ct_NMEDIT" >&6; } 8768else 8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8770$as_echo "no" >&6; } 8771fi 8772 8773 if test "x$ac_ct_NMEDIT" = x; then 8774 NMEDIT=":" 8775 else 8776 case $cross_compiling:$ac_tool_warned in 8777yes:) 8778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8780ac_tool_warned=yes ;; 8781esac 8782 NMEDIT=$ac_ct_NMEDIT 8783 fi 8784else 8785 NMEDIT="$ac_cv_prog_NMEDIT" 8786fi 8787 8788 if test -n "$ac_tool_prefix"; then 8789 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8790set dummy ${ac_tool_prefix}lipo; ac_word=$2 8791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8792$as_echo_n "checking for $ac_word... " >&6; } 8793if ${ac_cv_prog_LIPO+:} false; then : 8794 $as_echo_n "(cached) " >&6 8795else 8796 if test -n "$LIPO"; then 8797 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8798else 8799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8800for as_dir in $PATH 8801do 8802 IFS=$as_save_IFS 8803 test -z "$as_dir" && as_dir=. 8804 for ac_exec_ext in '' $ac_executable_extensions; do 8805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8806 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8808 break 2 8809 fi 8810done 8811 done 8812IFS=$as_save_IFS 8813 8814fi 8815fi 8816LIPO=$ac_cv_prog_LIPO 8817if test -n "$LIPO"; then 8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8819$as_echo "$LIPO" >&6; } 8820else 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8822$as_echo "no" >&6; } 8823fi 8824 8825 8826fi 8827if test -z "$ac_cv_prog_LIPO"; then 8828 ac_ct_LIPO=$LIPO 8829 # Extract the first word of "lipo", so it can be a program name with args. 8830set dummy lipo; ac_word=$2 8831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8832$as_echo_n "checking for $ac_word... " >&6; } 8833if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8834 $as_echo_n "(cached) " >&6 8835else 8836 if test -n "$ac_ct_LIPO"; then 8837 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8838else 8839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8840for as_dir in $PATH 8841do 8842 IFS=$as_save_IFS 8843 test -z "$as_dir" && as_dir=. 8844 for ac_exec_ext in '' $ac_executable_extensions; do 8845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8846 ac_cv_prog_ac_ct_LIPO="lipo" 8847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8848 break 2 8849 fi 8850done 8851 done 8852IFS=$as_save_IFS 8853 8854fi 8855fi 8856ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8857if test -n "$ac_ct_LIPO"; then 8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8859$as_echo "$ac_ct_LIPO" >&6; } 8860else 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8862$as_echo "no" >&6; } 8863fi 8864 8865 if test "x$ac_ct_LIPO" = x; then 8866 LIPO=":" 8867 else 8868 case $cross_compiling:$ac_tool_warned in 8869yes:) 8870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8872ac_tool_warned=yes ;; 8873esac 8874 LIPO=$ac_ct_LIPO 8875 fi 8876else 8877 LIPO="$ac_cv_prog_LIPO" 8878fi 8879 8880 if test -n "$ac_tool_prefix"; then 8881 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8882set dummy ${ac_tool_prefix}otool; ac_word=$2 8883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8884$as_echo_n "checking for $ac_word... " >&6; } 8885if ${ac_cv_prog_OTOOL+:} false; then : 8886 $as_echo_n "(cached) " >&6 8887else 8888 if test -n "$OTOOL"; then 8889 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8890else 8891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8892for as_dir in $PATH 8893do 8894 IFS=$as_save_IFS 8895 test -z "$as_dir" && as_dir=. 8896 for ac_exec_ext in '' $ac_executable_extensions; do 8897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8898 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8900 break 2 8901 fi 8902done 8903 done 8904IFS=$as_save_IFS 8905 8906fi 8907fi 8908OTOOL=$ac_cv_prog_OTOOL 8909if test -n "$OTOOL"; then 8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8911$as_echo "$OTOOL" >&6; } 8912else 8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8914$as_echo "no" >&6; } 8915fi 8916 8917 8918fi 8919if test -z "$ac_cv_prog_OTOOL"; then 8920 ac_ct_OTOOL=$OTOOL 8921 # Extract the first word of "otool", so it can be a program name with args. 8922set dummy otool; ac_word=$2 8923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8924$as_echo_n "checking for $ac_word... " >&6; } 8925if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8926 $as_echo_n "(cached) " >&6 8927else 8928 if test -n "$ac_ct_OTOOL"; then 8929 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8930else 8931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8932for as_dir in $PATH 8933do 8934 IFS=$as_save_IFS 8935 test -z "$as_dir" && as_dir=. 8936 for ac_exec_ext in '' $ac_executable_extensions; do 8937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8938 ac_cv_prog_ac_ct_OTOOL="otool" 8939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8940 break 2 8941 fi 8942done 8943 done 8944IFS=$as_save_IFS 8945 8946fi 8947fi 8948ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8949if test -n "$ac_ct_OTOOL"; then 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8951$as_echo "$ac_ct_OTOOL" >&6; } 8952else 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8954$as_echo "no" >&6; } 8955fi 8956 8957 if test "x$ac_ct_OTOOL" = x; then 8958 OTOOL=":" 8959 else 8960 case $cross_compiling:$ac_tool_warned in 8961yes:) 8962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8964ac_tool_warned=yes ;; 8965esac 8966 OTOOL=$ac_ct_OTOOL 8967 fi 8968else 8969 OTOOL="$ac_cv_prog_OTOOL" 8970fi 8971 8972 if test -n "$ac_tool_prefix"; then 8973 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8974set dummy ${ac_tool_prefix}otool64; ac_word=$2 8975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8976$as_echo_n "checking for $ac_word... " >&6; } 8977if ${ac_cv_prog_OTOOL64+:} false; then : 8978 $as_echo_n "(cached) " >&6 8979else 8980 if test -n "$OTOOL64"; then 8981 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8982else 8983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8984for as_dir in $PATH 8985do 8986 IFS=$as_save_IFS 8987 test -z "$as_dir" && as_dir=. 8988 for ac_exec_ext in '' $ac_executable_extensions; do 8989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8990 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8992 break 2 8993 fi 8994done 8995 done 8996IFS=$as_save_IFS 8997 8998fi 8999fi 9000OTOOL64=$ac_cv_prog_OTOOL64 9001if test -n "$OTOOL64"; then 9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9003$as_echo "$OTOOL64" >&6; } 9004else 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9006$as_echo "no" >&6; } 9007fi 9008 9009 9010fi 9011if test -z "$ac_cv_prog_OTOOL64"; then 9012 ac_ct_OTOOL64=$OTOOL64 9013 # Extract the first word of "otool64", so it can be a program name with args. 9014set dummy otool64; ac_word=$2 9015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9016$as_echo_n "checking for $ac_word... " >&6; } 9017if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9018 $as_echo_n "(cached) " >&6 9019else 9020 if test -n "$ac_ct_OTOOL64"; then 9021 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9022else 9023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9024for as_dir in $PATH 9025do 9026 IFS=$as_save_IFS 9027 test -z "$as_dir" && as_dir=. 9028 for ac_exec_ext in '' $ac_executable_extensions; do 9029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9030 ac_cv_prog_ac_ct_OTOOL64="otool64" 9031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9032 break 2 9033 fi 9034done 9035 done 9036IFS=$as_save_IFS 9037 9038fi 9039fi 9040ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9041if test -n "$ac_ct_OTOOL64"; then 9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9043$as_echo "$ac_ct_OTOOL64" >&6; } 9044else 9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9046$as_echo "no" >&6; } 9047fi 9048 9049 if test "x$ac_ct_OTOOL64" = x; then 9050 OTOOL64=":" 9051 else 9052 case $cross_compiling:$ac_tool_warned in 9053yes:) 9054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9056ac_tool_warned=yes ;; 9057esac 9058 OTOOL64=$ac_ct_OTOOL64 9059 fi 9060else 9061 OTOOL64="$ac_cv_prog_OTOOL64" 9062fi 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9091$as_echo_n "checking for -single_module linker flag... " >&6; } 9092if ${lt_cv_apple_cc_single_mod+:} false; then : 9093 $as_echo_n "(cached) " >&6 9094else 9095 lt_cv_apple_cc_single_mod=no 9096 if test -z "$LT_MULTI_MODULE"; then 9097 # By default we will add the -single_module flag. You can override 9098 # by either setting the environment variable LT_MULTI_MODULE 9099 # non-empty at configure time, or by adding -multi_module to the 9100 # link flags. 9101 rm -rf libconftest.dylib* 9102 echo "int foo(void){return 1;}" > conftest.c 9103 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9104-dynamiclib -Wl,-single_module conftest.c" >&5 9105 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9106 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9107 _lt_result=$? 9108 # If there is a non-empty error log, and "single_module" 9109 # appears in it, assume the flag caused a linker warning 9110 if test -s conftest.err && $GREP single_module conftest.err; then 9111 cat conftest.err >&5 9112 # Otherwise, if the output was created with a 0 exit code from 9113 # the compiler, it worked. 9114 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9115 lt_cv_apple_cc_single_mod=yes 9116 else 9117 cat conftest.err >&5 9118 fi 9119 rm -rf libconftest.dylib* 9120 rm -f conftest.* 9121 fi 9122fi 9123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9124$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9125 9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9127$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9128if ${lt_cv_ld_exported_symbols_list+:} false; then : 9129 $as_echo_n "(cached) " >&6 9130else 9131 lt_cv_ld_exported_symbols_list=no 9132 save_LDFLAGS=$LDFLAGS 9133 echo "_main" > conftest.sym 9134 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9136/* end confdefs.h. */ 9137 9138int 9139main () 9140{ 9141 9142 ; 9143 return 0; 9144} 9145_ACEOF 9146if ac_fn_c_try_link "$LINENO"; then : 9147 lt_cv_ld_exported_symbols_list=yes 9148else 9149 lt_cv_ld_exported_symbols_list=no 9150fi 9151rm -f core conftest.err conftest.$ac_objext \ 9152 conftest$ac_exeext conftest.$ac_ext 9153 LDFLAGS=$save_LDFLAGS 9154 9155fi 9156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9157$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9158 9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9160$as_echo_n "checking for -force_load linker flag... " >&6; } 9161if ${lt_cv_ld_force_load+:} false; then : 9162 $as_echo_n "(cached) " >&6 9163else 9164 lt_cv_ld_force_load=no 9165 cat > conftest.c << _LT_EOF 9166int forced_loaded() { return 2;} 9167_LT_EOF 9168 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9169 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9170 echo "$AR cru libconftest.a conftest.o" >&5 9171 $AR cru libconftest.a conftest.o 2>&5 9172 echo "$RANLIB libconftest.a" >&5 9173 $RANLIB libconftest.a 2>&5 9174 cat > conftest.c << _LT_EOF 9175int main() { return 0;} 9176_LT_EOF 9177 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9178 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9179 _lt_result=$? 9180 if test -s conftest.err && $GREP force_load conftest.err; then 9181 cat conftest.err >&5 9182 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9183 lt_cv_ld_force_load=yes 9184 else 9185 cat conftest.err >&5 9186 fi 9187 rm -f conftest.err libconftest.a conftest conftest.c 9188 rm -rf conftest.dSYM 9189 9190fi 9191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9192$as_echo "$lt_cv_ld_force_load" >&6; } 9193 case $host_os in 9194 rhapsody* | darwin1.[012]) 9195 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9196 darwin1.*) 9197 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9198 darwin*) # darwin 5.x on 9199 # if running on 10.5 or later, the deployment target defaults 9200 # to the OS version, if on x86, and 10.4, the deployment 9201 # target defaults to 10.4. Don't you love it? 9202 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9203 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9204 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9205 10.[012][,.]*) 9206 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9207 10.*) 9208 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9209 esac 9210 ;; 9211 esac 9212 if test yes = "$lt_cv_apple_cc_single_mod"; then 9213 _lt_dar_single_mod='$single_module' 9214 fi 9215 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9216 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9217 else 9218 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9219 fi 9220 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9221 _lt_dsymutil='~$DSYMUTIL $lib || :' 9222 else 9223 _lt_dsymutil= 9224 fi 9225 ;; 9226 esac 9227 9228# func_munge_path_list VARIABLE PATH 9229# ----------------------------------- 9230# VARIABLE is name of variable containing _space_ separated list of 9231# directories to be munged by the contents of PATH, which is string 9232# having a format: 9233# "DIR[:DIR]:" 9234# string "DIR[ DIR]" will be prepended to VARIABLE 9235# ":DIR[:DIR]" 9236# string "DIR[ DIR]" will be appended to VARIABLE 9237# "DIRP[:DIRP]::[DIRA:]DIRA" 9238# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9239# "DIRA[ DIRA]" will be appended to VARIABLE 9240# "DIR[:DIR]" 9241# VARIABLE will be replaced by "DIR[ DIR]" 9242func_munge_path_list () 9243{ 9244 case x$2 in 9245 x) 9246 ;; 9247 *:) 9248 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9249 ;; 9250 x:*) 9251 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9252 ;; 9253 *::*) 9254 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9255 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9256 ;; 9257 *) 9258 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9259 ;; 9260 esac 9261} 9262 9263 9264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 9265$as_echo_n "checking for ANSI C header files... " >&6; } 9266if ${ac_cv_header_stdc+:} false; then : 9267 $as_echo_n "(cached) " >&6 9268else 9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9270/* end confdefs.h. */ 9271#include <stdlib.h> 9272#include <stdarg.h> 9273#include <string.h> 9274#include <float.h> 9275 9276int 9277main () 9278{ 9279 9280 ; 9281 return 0; 9282} 9283_ACEOF 9284if ac_fn_c_try_compile "$LINENO"; then : 9285 ac_cv_header_stdc=yes 9286else 9287 ac_cv_header_stdc=no 9288fi 9289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9290 9291if test $ac_cv_header_stdc = yes; then 9292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9294/* end confdefs.h. */ 9295#include <string.h> 9296 9297_ACEOF 9298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9299 $EGREP "memchr" >/dev/null 2>&1; then : 9300 9301else 9302 ac_cv_header_stdc=no 9303fi 9304rm -f conftest* 9305 9306fi 9307 9308if test $ac_cv_header_stdc = yes; then 9309 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9311/* end confdefs.h. */ 9312#include <stdlib.h> 9313 9314_ACEOF 9315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9316 $EGREP "free" >/dev/null 2>&1; then : 9317 9318else 9319 ac_cv_header_stdc=no 9320fi 9321rm -f conftest* 9322 9323fi 9324 9325if test $ac_cv_header_stdc = yes; then 9326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 9327 if test "$cross_compiling" = yes; then : 9328 : 9329else 9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9331/* end confdefs.h. */ 9332#include <ctype.h> 9333#include <stdlib.h> 9334#if ((' ' & 0x0FF) == 0x020) 9335# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 9336# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 9337#else 9338# define ISLOWER(c) \ 9339 (('a' <= (c) && (c) <= 'i') \ 9340 || ('j' <= (c) && (c) <= 'r') \ 9341 || ('s' <= (c) && (c) <= 'z')) 9342# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 9343#endif 9344 9345#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 9346int 9347main () 9348{ 9349 int i; 9350 for (i = 0; i < 256; i++) 9351 if (XOR (islower (i), ISLOWER (i)) 9352 || toupper (i) != TOUPPER (i)) 9353 return 2; 9354 return 0; 9355} 9356_ACEOF 9357if ac_fn_c_try_run "$LINENO"; then : 9358 9359else 9360 ac_cv_header_stdc=no 9361fi 9362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9363 conftest.$ac_objext conftest.beam conftest.$ac_ext 9364fi 9365 9366fi 9367fi 9368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 9369$as_echo "$ac_cv_header_stdc" >&6; } 9370if test $ac_cv_header_stdc = yes; then 9371 9372$as_echo "#define STDC_HEADERS 1" >>confdefs.h 9373 9374fi 9375 9376# On IRIX 5.3, sys/types and inttypes.h are conflicting. 9377for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 9378 inttypes.h stdint.h unistd.h 9379do : 9380 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9381ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 9382" 9383if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9384 cat >>confdefs.h <<_ACEOF 9385#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9386_ACEOF 9387 9388fi 9389 9390done 9391 9392 9393for ac_header in dlfcn.h 9394do : 9395 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9396" 9397if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9398 cat >>confdefs.h <<_ACEOF 9399#define HAVE_DLFCN_H 1 9400_ACEOF 9401 9402fi 9403 9404done 9405 9406 9407 9408 9409func_stripname_cnf () 9410{ 9411 case $2 in 9412 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 9413 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 9414 esac 9415} # func_stripname_cnf 9416 9417 9418 9419 9420 9421# Set options 9422 9423 9424 9425 enable_dlopen=no 9426 9427 9428 enable_win32_dll=no 9429 9430 9431 9432 9433 9434# Check whether --with-pic was given. 9435if test "${with_pic+set}" = set; then : 9436 withval=$with_pic; lt_p=${PACKAGE-default} 9437 case $withval in 9438 yes|no) pic_mode=$withval ;; 9439 *) 9440 pic_mode=default 9441 # Look at the argument we got. We use all the common list separators. 9442 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9443 for lt_pkg in $withval; do 9444 IFS=$lt_save_ifs 9445 if test "X$lt_pkg" = "X$lt_p"; then 9446 pic_mode=yes 9447 fi 9448 done 9449 IFS=$lt_save_ifs 9450 ;; 9451 esac 9452else 9453 pic_mode=default 9454fi 9455 9456 9457 9458 9459 9460 9461 9462 9463 # Check whether --enable-fast-install was given. 9464if test "${enable_fast_install+set}" = set; then : 9465 enableval=$enable_fast_install; p=${PACKAGE-default} 9466 case $enableval in 9467 yes) enable_fast_install=yes ;; 9468 no) enable_fast_install=no ;; 9469 *) 9470 enable_fast_install=no 9471 # Look at the argument we got. We use all the common list separators. 9472 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9473 for pkg in $enableval; do 9474 IFS=$lt_save_ifs 9475 if test "X$pkg" = "X$p"; then 9476 enable_fast_install=yes 9477 fi 9478 done 9479 IFS=$lt_save_ifs 9480 ;; 9481 esac 9482else 9483 enable_fast_install=yes 9484fi 9485 9486 9487 9488 9489 9490 9491 9492 9493 shared_archive_member_spec= 9494case $host,$enable_shared in 9495power*-*-aix[5-9]*,yes) 9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9497$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9498 9499# Check whether --with-aix-soname was given. 9500if test "${with_aix_soname+set}" = set; then : 9501 withval=$with_aix_soname; case $withval in 9502 aix|svr4|both) 9503 ;; 9504 *) 9505 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9506 ;; 9507 esac 9508 lt_cv_with_aix_soname=$with_aix_soname 9509else 9510 if ${lt_cv_with_aix_soname+:} false; then : 9511 $as_echo_n "(cached) " >&6 9512else 9513 lt_cv_with_aix_soname=aix 9514fi 9515 9516 with_aix_soname=$lt_cv_with_aix_soname 9517fi 9518 9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9520$as_echo "$with_aix_soname" >&6; } 9521 if test aix != "$with_aix_soname"; then 9522 # For the AIX way of multilib, we name the shared archive member 9523 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9524 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9525 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9526 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9527 if test 64 = "${OBJECT_MODE-32}"; then 9528 shared_archive_member_spec=shr_64 9529 else 9530 shared_archive_member_spec=shr 9531 fi 9532 fi 9533 ;; 9534*) 9535 with_aix_soname=aix 9536 ;; 9537esac 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548# This can be used to rebuild libtool when needed 9549LIBTOOL_DEPS=$ltmain 9550 9551# Always use our own libtool. 9552LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583test -z "$LN_S" && LN_S="ln -s" 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598if test -n "${ZSH_VERSION+set}"; then 9599 setopt NO_GLOB_SUBST 9600fi 9601 9602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9603$as_echo_n "checking for objdir... " >&6; } 9604if ${lt_cv_objdir+:} false; then : 9605 $as_echo_n "(cached) " >&6 9606else 9607 rm -f .libs 2>/dev/null 9608mkdir .libs 2>/dev/null 9609if test -d .libs; then 9610 lt_cv_objdir=.libs 9611else 9612 # MS-DOS does not allow filenames that begin with a dot. 9613 lt_cv_objdir=_libs 9614fi 9615rmdir .libs 2>/dev/null 9616fi 9617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9618$as_echo "$lt_cv_objdir" >&6; } 9619objdir=$lt_cv_objdir 9620 9621 9622 9623 9624 9625cat >>confdefs.h <<_ACEOF 9626#define LT_OBJDIR "$lt_cv_objdir/" 9627_ACEOF 9628 9629 9630 9631 9632case $host_os in 9633aix3*) 9634 # AIX sometimes has problems with the GCC collect2 program. For some 9635 # reason, if we set the COLLECT_NAMES environment variable, the problems 9636 # vanish in a puff of smoke. 9637 if test set != "${COLLECT_NAMES+set}"; then 9638 COLLECT_NAMES= 9639 export COLLECT_NAMES 9640 fi 9641 ;; 9642esac 9643 9644# Global variables: 9645ofile=libtool 9646can_build_shared=yes 9647 9648# All known linkers require a '.a' archive for static linking (except MSVC, 9649# which needs '.lib'). 9650libext=a 9651 9652with_gnu_ld=$lt_cv_prog_gnu_ld 9653 9654old_CC=$CC 9655old_CFLAGS=$CFLAGS 9656 9657# Set sane defaults for various variables 9658test -z "$CC" && CC=cc 9659test -z "$LTCC" && LTCC=$CC 9660test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9661test -z "$LD" && LD=ld 9662test -z "$ac_objext" && ac_objext=o 9663 9664func_cc_basename $compiler 9665cc_basename=$func_cc_basename_result 9666 9667 9668# Only perform the check for file, if the check method requires it 9669test -z "$MAGIC_CMD" && MAGIC_CMD=file 9670case $deplibs_check_method in 9671file_magic*) 9672 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9674$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9675if ${lt_cv_path_MAGIC_CMD+:} false; then : 9676 $as_echo_n "(cached) " >&6 9677else 9678 case $MAGIC_CMD in 9679[\\/*] | ?:[\\/]*) 9680 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9681 ;; 9682*) 9683 lt_save_MAGIC_CMD=$MAGIC_CMD 9684 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9685 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9686 for ac_dir in $ac_dummy; do 9687 IFS=$lt_save_ifs 9688 test -z "$ac_dir" && ac_dir=. 9689 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9690 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9691 if test -n "$file_magic_test_file"; then 9692 case $deplibs_check_method in 9693 "file_magic "*) 9694 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9695 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9697 $EGREP "$file_magic_regex" > /dev/null; then 9698 : 9699 else 9700 cat <<_LT_EOF 1>&2 9701 9702*** Warning: the command libtool uses to detect shared libraries, 9703*** $file_magic_cmd, produces output that libtool cannot recognize. 9704*** The result is that libtool may fail to recognize shared libraries 9705*** as such. This will affect the creation of libtool libraries that 9706*** depend on shared libraries, but programs linked with such libtool 9707*** libraries will work regardless of this problem. Nevertheless, you 9708*** may want to report the problem to your system manager and/or to 9709*** bug-libtool@gnu.org 9710 9711_LT_EOF 9712 fi ;; 9713 esac 9714 fi 9715 break 9716 fi 9717 done 9718 IFS=$lt_save_ifs 9719 MAGIC_CMD=$lt_save_MAGIC_CMD 9720 ;; 9721esac 9722fi 9723 9724MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9725if test -n "$MAGIC_CMD"; then 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9727$as_echo "$MAGIC_CMD" >&6; } 9728else 9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9730$as_echo "no" >&6; } 9731fi 9732 9733 9734 9735 9736 9737if test -z "$lt_cv_path_MAGIC_CMD"; then 9738 if test -n "$ac_tool_prefix"; then 9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9740$as_echo_n "checking for file... " >&6; } 9741if ${lt_cv_path_MAGIC_CMD+:} false; then : 9742 $as_echo_n "(cached) " >&6 9743else 9744 case $MAGIC_CMD in 9745[\\/*] | ?:[\\/]*) 9746 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9747 ;; 9748*) 9749 lt_save_MAGIC_CMD=$MAGIC_CMD 9750 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9751 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9752 for ac_dir in $ac_dummy; do 9753 IFS=$lt_save_ifs 9754 test -z "$ac_dir" && ac_dir=. 9755 if test -f "$ac_dir/file"; then 9756 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9757 if test -n "$file_magic_test_file"; then 9758 case $deplibs_check_method in 9759 "file_magic "*) 9760 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9761 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9762 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9763 $EGREP "$file_magic_regex" > /dev/null; then 9764 : 9765 else 9766 cat <<_LT_EOF 1>&2 9767 9768*** Warning: the command libtool uses to detect shared libraries, 9769*** $file_magic_cmd, produces output that libtool cannot recognize. 9770*** The result is that libtool may fail to recognize shared libraries 9771*** as such. This will affect the creation of libtool libraries that 9772*** depend on shared libraries, but programs linked with such libtool 9773*** libraries will work regardless of this problem. Nevertheless, you 9774*** may want to report the problem to your system manager and/or to 9775*** bug-libtool@gnu.org 9776 9777_LT_EOF 9778 fi ;; 9779 esac 9780 fi 9781 break 9782 fi 9783 done 9784 IFS=$lt_save_ifs 9785 MAGIC_CMD=$lt_save_MAGIC_CMD 9786 ;; 9787esac 9788fi 9789 9790MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9791if test -n "$MAGIC_CMD"; then 9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9793$as_echo "$MAGIC_CMD" >&6; } 9794else 9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9796$as_echo "no" >&6; } 9797fi 9798 9799 9800 else 9801 MAGIC_CMD=: 9802 fi 9803fi 9804 9805 fi 9806 ;; 9807esac 9808 9809# Use C for the default configuration in the libtool script 9810 9811lt_save_CC=$CC 9812ac_ext=c 9813ac_cpp='$CPP $CPPFLAGS' 9814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9816ac_compiler_gnu=$ac_cv_c_compiler_gnu 9817 9818 9819# Source file extension for C test sources. 9820ac_ext=c 9821 9822# Object file extension for compiled C test sources. 9823objext=o 9824objext=$objext 9825 9826# Code to be used in simple compile tests 9827lt_simple_compile_test_code="int some_variable = 0;" 9828 9829# Code to be used in simple link tests 9830lt_simple_link_test_code='int main(){return(0);}' 9831 9832 9833 9834 9835 9836 9837 9838# If no C compiler was specified, use CC. 9839LTCC=${LTCC-"$CC"} 9840 9841# If no C compiler flags were specified, use CFLAGS. 9842LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9843 9844# Allow CC to be a program name with arguments. 9845compiler=$CC 9846 9847# Save the default compiler, since it gets overwritten when the other 9848# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9849compiler_DEFAULT=$CC 9850 9851# save warnings/boilerplate of simple test code 9852ac_outfile=conftest.$ac_objext 9853echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9854eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9855_lt_compiler_boilerplate=`cat conftest.err` 9856$RM conftest* 9857 9858ac_outfile=conftest.$ac_objext 9859echo "$lt_simple_link_test_code" >conftest.$ac_ext 9860eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9861_lt_linker_boilerplate=`cat conftest.err` 9862$RM -r conftest* 9863 9864 9865## CAVEAT EMPTOR: 9866## There is no encapsulation within the following macros, do not change 9867## the running order or otherwise move them around unless you know exactly 9868## what you are doing... 9869if test -n "$compiler"; then 9870 9871lt_prog_compiler_no_builtin_flag= 9872 9873if test yes = "$GCC"; then 9874 case $cc_basename in 9875 nvcc*) 9876 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9877 *) 9878 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9879 esac 9880 9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9882$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9883if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9884 $as_echo_n "(cached) " >&6 9885else 9886 lt_cv_prog_compiler_rtti_exceptions=no 9887 ac_outfile=conftest.$ac_objext 9888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9889 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9890 # Insert the option either (1) after the last *FLAGS variable, or 9891 # (2) before a word containing "conftest.", or (3) at the end. 9892 # Note that $ac_compile itself does not contain backslashes and begins 9893 # with a dollar sign (not a hyphen), so the echo should work correctly. 9894 # The option is referenced via a variable to avoid confusing sed. 9895 lt_compile=`echo "$ac_compile" | $SED \ 9896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9898 -e 's:$: $lt_compiler_flag:'` 9899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9900 (eval "$lt_compile" 2>conftest.err) 9901 ac_status=$? 9902 cat conftest.err >&5 9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9904 if (exit $ac_status) && test -s "$ac_outfile"; then 9905 # The compiler can only warn and ignore the option if not recognized 9906 # So say no if there are warnings other than the usual output. 9907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9909 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9910 lt_cv_prog_compiler_rtti_exceptions=yes 9911 fi 9912 fi 9913 $RM conftest* 9914 9915fi 9916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9917$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9918 9919if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9920 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9921else 9922 : 9923fi 9924 9925fi 9926 9927 9928 9929 9930 9931 9932 lt_prog_compiler_wl= 9933lt_prog_compiler_pic= 9934lt_prog_compiler_static= 9935 9936 9937 if test yes = "$GCC"; then 9938 lt_prog_compiler_wl='-Wl,' 9939 lt_prog_compiler_static='-static' 9940 9941 case $host_os in 9942 aix*) 9943 # All AIX code is PIC. 9944 if test ia64 = "$host_cpu"; then 9945 # AIX 5 now supports IA64 processor 9946 lt_prog_compiler_static='-Bstatic' 9947 fi 9948 lt_prog_compiler_pic='-fPIC' 9949 ;; 9950 9951 amigaos*) 9952 case $host_cpu in 9953 powerpc) 9954 # see comment about AmigaOS4 .so support 9955 lt_prog_compiler_pic='-fPIC' 9956 ;; 9957 m68k) 9958 # FIXME: we need at least 68020 code to build shared libraries, but 9959 # adding the '-m68020' flag to GCC prevents building anything better, 9960 # like '-m68040'. 9961 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9962 ;; 9963 esac 9964 ;; 9965 9966 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9967 # PIC is the default for these OSes. 9968 ;; 9969 9970 mingw* | cygwin* | pw32* | os2* | cegcc*) 9971 # This hack is so that the source file can tell whether it is being 9972 # built for inclusion in a dll (and should export symbols for example). 9973 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9974 # (--disable-auto-import) libraries 9975 lt_prog_compiler_pic='-DDLL_EXPORT' 9976 case $host_os in 9977 os2*) 9978 lt_prog_compiler_static='$wl-static' 9979 ;; 9980 esac 9981 ;; 9982 9983 darwin* | rhapsody*) 9984 # PIC is the default on this platform 9985 # Common symbols not allowed in MH_DYLIB files 9986 lt_prog_compiler_pic='-fno-common' 9987 ;; 9988 9989 haiku*) 9990 # PIC is the default for Haiku. 9991 # The "-static" flag exists, but is broken. 9992 lt_prog_compiler_static= 9993 ;; 9994 9995 hpux*) 9996 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9997 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9998 # sets the default TLS model and affects inlining. 9999 case $host_cpu in 10000 hppa*64*) 10001 # +Z the default 10002 ;; 10003 *) 10004 lt_prog_compiler_pic='-fPIC' 10005 ;; 10006 esac 10007 ;; 10008 10009 interix[3-9]*) 10010 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10011 # Instead, we relocate shared libraries at runtime. 10012 ;; 10013 10014 msdosdjgpp*) 10015 # Just because we use GCC doesn't mean we suddenly get shared libraries 10016 # on systems that don't support them. 10017 lt_prog_compiler_can_build_shared=no 10018 enable_shared=no 10019 ;; 10020 10021 *nto* | *qnx*) 10022 # QNX uses GNU C++, but need to define -shared option too, otherwise 10023 # it will coredump. 10024 lt_prog_compiler_pic='-fPIC -shared' 10025 ;; 10026 10027 sysv4*MP*) 10028 if test -d /usr/nec; then 10029 lt_prog_compiler_pic=-Kconform_pic 10030 fi 10031 ;; 10032 10033 *) 10034 lt_prog_compiler_pic='-fPIC' 10035 ;; 10036 esac 10037 10038 case $cc_basename in 10039 nvcc*) # Cuda Compiler Driver 2.2 10040 lt_prog_compiler_wl='-Xlinker ' 10041 if test -n "$lt_prog_compiler_pic"; then 10042 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10043 fi 10044 ;; 10045 esac 10046 else 10047 # PORTME Check for flag to pass linker flags through the system compiler. 10048 case $host_os in 10049 aix*) 10050 lt_prog_compiler_wl='-Wl,' 10051 if test ia64 = "$host_cpu"; then 10052 # AIX 5 now supports IA64 processor 10053 lt_prog_compiler_static='-Bstatic' 10054 else 10055 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10056 fi 10057 ;; 10058 10059 darwin* | rhapsody*) 10060 # PIC is the default on this platform 10061 # Common symbols not allowed in MH_DYLIB files 10062 lt_prog_compiler_pic='-fno-common' 10063 case $cc_basename in 10064 nagfor*) 10065 # NAG Fortran compiler 10066 lt_prog_compiler_wl='-Wl,-Wl,,' 10067 lt_prog_compiler_pic='-PIC' 10068 lt_prog_compiler_static='-Bstatic' 10069 ;; 10070 esac 10071 ;; 10072 10073 mingw* | cygwin* | pw32* | os2* | cegcc*) 10074 # This hack is so that the source file can tell whether it is being 10075 # built for inclusion in a dll (and should export symbols for example). 10076 lt_prog_compiler_pic='-DDLL_EXPORT' 10077 case $host_os in 10078 os2*) 10079 lt_prog_compiler_static='$wl-static' 10080 ;; 10081 esac 10082 ;; 10083 10084 hpux9* | hpux10* | hpux11*) 10085 lt_prog_compiler_wl='-Wl,' 10086 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10087 # not for PA HP-UX. 10088 case $host_cpu in 10089 hppa*64*|ia64*) 10090 # +Z the default 10091 ;; 10092 *) 10093 lt_prog_compiler_pic='+Z' 10094 ;; 10095 esac 10096 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10097 lt_prog_compiler_static='$wl-a ${wl}archive' 10098 ;; 10099 10100 irix5* | irix6* | nonstopux*) 10101 lt_prog_compiler_wl='-Wl,' 10102 # PIC (with -KPIC) is the default. 10103 lt_prog_compiler_static='-non_shared' 10104 ;; 10105 10106 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10107 case $cc_basename in 10108 # old Intel for x86_64, which still supported -KPIC. 10109 ecc*) 10110 lt_prog_compiler_wl='-Wl,' 10111 lt_prog_compiler_pic='-KPIC' 10112 lt_prog_compiler_static='-static' 10113 ;; 10114 # icc used to be incompatible with GCC. 10115 # ICC 10 doesn't accept -KPIC any more. 10116 icc* | ifort*) 10117 lt_prog_compiler_wl='-Wl,' 10118 lt_prog_compiler_pic='-fPIC' 10119 lt_prog_compiler_static='-static' 10120 ;; 10121 # Lahey Fortran 8.1. 10122 lf95*) 10123 lt_prog_compiler_wl='-Wl,' 10124 lt_prog_compiler_pic='--shared' 10125 lt_prog_compiler_static='--static' 10126 ;; 10127 nagfor*) 10128 # NAG Fortran compiler 10129 lt_prog_compiler_wl='-Wl,-Wl,,' 10130 lt_prog_compiler_pic='-PIC' 10131 lt_prog_compiler_static='-Bstatic' 10132 ;; 10133 tcc*) 10134 # Fabrice Bellard et al's Tiny C Compiler 10135 lt_prog_compiler_wl='-Wl,' 10136 lt_prog_compiler_pic='-fPIC' 10137 lt_prog_compiler_static='-static' 10138 ;; 10139 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10140 # Portland Group compilers (*not* the Pentium gcc compiler, 10141 # which looks to be a dead project) 10142 lt_prog_compiler_wl='-Wl,' 10143 lt_prog_compiler_pic='-fpic' 10144 lt_prog_compiler_static='-Bstatic' 10145 ;; 10146 ccc*) 10147 lt_prog_compiler_wl='-Wl,' 10148 # All Alpha code is PIC. 10149 lt_prog_compiler_static='-non_shared' 10150 ;; 10151 xl* | bgxl* | bgf* | mpixl*) 10152 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10153 lt_prog_compiler_wl='-Wl,' 10154 lt_prog_compiler_pic='-qpic' 10155 lt_prog_compiler_static='-qstaticlink' 10156 ;; 10157 *) 10158 case `$CC -V 2>&1 | sed 5q` in 10159 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10160 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10161 lt_prog_compiler_pic='-KPIC' 10162 lt_prog_compiler_static='-Bstatic' 10163 lt_prog_compiler_wl='' 10164 ;; 10165 *Sun\ F* | *Sun*Fortran*) 10166 lt_prog_compiler_pic='-KPIC' 10167 lt_prog_compiler_static='-Bstatic' 10168 lt_prog_compiler_wl='-Qoption ld ' 10169 ;; 10170 *Sun\ C*) 10171 # Sun C 5.9 10172 lt_prog_compiler_pic='-KPIC' 10173 lt_prog_compiler_static='-Bstatic' 10174 lt_prog_compiler_wl='-Wl,' 10175 ;; 10176 *Intel*\ [CF]*Compiler*) 10177 lt_prog_compiler_wl='-Wl,' 10178 lt_prog_compiler_pic='-fPIC' 10179 lt_prog_compiler_static='-static' 10180 ;; 10181 *Portland\ Group*) 10182 lt_prog_compiler_wl='-Wl,' 10183 lt_prog_compiler_pic='-fpic' 10184 lt_prog_compiler_static='-Bstatic' 10185 ;; 10186 esac 10187 ;; 10188 esac 10189 ;; 10190 10191 newsos6) 10192 lt_prog_compiler_pic='-KPIC' 10193 lt_prog_compiler_static='-Bstatic' 10194 ;; 10195 10196 *nto* | *qnx*) 10197 # QNX uses GNU C++, but need to define -shared option too, otherwise 10198 # it will coredump. 10199 lt_prog_compiler_pic='-fPIC -shared' 10200 ;; 10201 10202 osf3* | osf4* | osf5*) 10203 lt_prog_compiler_wl='-Wl,' 10204 # All OSF/1 code is PIC. 10205 lt_prog_compiler_static='-non_shared' 10206 ;; 10207 10208 rdos*) 10209 lt_prog_compiler_static='-non_shared' 10210 ;; 10211 10212 solaris*) 10213 lt_prog_compiler_pic='-KPIC' 10214 lt_prog_compiler_static='-Bstatic' 10215 case $cc_basename in 10216 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10217 lt_prog_compiler_wl='-Qoption ld ';; 10218 *) 10219 lt_prog_compiler_wl='-Wl,';; 10220 esac 10221 ;; 10222 10223 sunos4*) 10224 lt_prog_compiler_wl='-Qoption ld ' 10225 lt_prog_compiler_pic='-PIC' 10226 lt_prog_compiler_static='-Bstatic' 10227 ;; 10228 10229 sysv4 | sysv4.2uw2* | sysv4.3*) 10230 lt_prog_compiler_wl='-Wl,' 10231 lt_prog_compiler_pic='-KPIC' 10232 lt_prog_compiler_static='-Bstatic' 10233 ;; 10234 10235 sysv4*MP*) 10236 if test -d /usr/nec; then 10237 lt_prog_compiler_pic='-Kconform_pic' 10238 lt_prog_compiler_static='-Bstatic' 10239 fi 10240 ;; 10241 10242 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10243 lt_prog_compiler_wl='-Wl,' 10244 lt_prog_compiler_pic='-KPIC' 10245 lt_prog_compiler_static='-Bstatic' 10246 ;; 10247 10248 unicos*) 10249 lt_prog_compiler_wl='-Wl,' 10250 lt_prog_compiler_can_build_shared=no 10251 ;; 10252 10253 uts4*) 10254 lt_prog_compiler_pic='-pic' 10255 lt_prog_compiler_static='-Bstatic' 10256 ;; 10257 10258 *) 10259 lt_prog_compiler_can_build_shared=no 10260 ;; 10261 esac 10262 fi 10263 10264case $host_os in 10265 # For platforms that do not support PIC, -DPIC is meaningless: 10266 *djgpp*) 10267 lt_prog_compiler_pic= 10268 ;; 10269 *) 10270 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10271 ;; 10272esac 10273 10274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10275$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10276if ${lt_cv_prog_compiler_pic+:} false; then : 10277 $as_echo_n "(cached) " >&6 10278else 10279 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10280fi 10281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10282$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10283lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10284 10285# 10286# Check to make sure the PIC flag actually works. 10287# 10288if test -n "$lt_prog_compiler_pic"; then 10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10290$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10291if ${lt_cv_prog_compiler_pic_works+:} false; then : 10292 $as_echo_n "(cached) " >&6 10293else 10294 lt_cv_prog_compiler_pic_works=no 10295 ac_outfile=conftest.$ac_objext 10296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10297 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10298 # Insert the option either (1) after the last *FLAGS variable, or 10299 # (2) before a word containing "conftest.", or (3) at the end. 10300 # Note that $ac_compile itself does not contain backslashes and begins 10301 # with a dollar sign (not a hyphen), so the echo should work correctly. 10302 # The option is referenced via a variable to avoid confusing sed. 10303 lt_compile=`echo "$ac_compile" | $SED \ 10304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10306 -e 's:$: $lt_compiler_flag:'` 10307 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10308 (eval "$lt_compile" 2>conftest.err) 10309 ac_status=$? 10310 cat conftest.err >&5 10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10312 if (exit $ac_status) && test -s "$ac_outfile"; then 10313 # The compiler can only warn and ignore the option if not recognized 10314 # So say no if there are warnings other than the usual output. 10315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10317 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10318 lt_cv_prog_compiler_pic_works=yes 10319 fi 10320 fi 10321 $RM conftest* 10322 10323fi 10324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10325$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10326 10327if test yes = "$lt_cv_prog_compiler_pic_works"; then 10328 case $lt_prog_compiler_pic in 10329 "" | " "*) ;; 10330 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10331 esac 10332else 10333 lt_prog_compiler_pic= 10334 lt_prog_compiler_can_build_shared=no 10335fi 10336 10337fi 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349# 10350# Check to make sure the static flag actually works. 10351# 10352wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10354$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10355if ${lt_cv_prog_compiler_static_works+:} false; then : 10356 $as_echo_n "(cached) " >&6 10357else 10358 lt_cv_prog_compiler_static_works=no 10359 save_LDFLAGS=$LDFLAGS 10360 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10361 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10362 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10363 # The linker can only warn and ignore the option if not recognized 10364 # So say no if there are warnings 10365 if test -s conftest.err; then 10366 # Append any errors to the config.log. 10367 cat conftest.err 1>&5 10368 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10369 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10370 if diff conftest.exp conftest.er2 >/dev/null; then 10371 lt_cv_prog_compiler_static_works=yes 10372 fi 10373 else 10374 lt_cv_prog_compiler_static_works=yes 10375 fi 10376 fi 10377 $RM -r conftest* 10378 LDFLAGS=$save_LDFLAGS 10379 10380fi 10381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10382$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10383 10384if test yes = "$lt_cv_prog_compiler_static_works"; then 10385 : 10386else 10387 lt_prog_compiler_static= 10388fi 10389 10390 10391 10392 10393 10394 10395 10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10397$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10398if ${lt_cv_prog_compiler_c_o+:} false; then : 10399 $as_echo_n "(cached) " >&6 10400else 10401 lt_cv_prog_compiler_c_o=no 10402 $RM -r conftest 2>/dev/null 10403 mkdir conftest 10404 cd conftest 10405 mkdir out 10406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10407 10408 lt_compiler_flag="-o out/conftest2.$ac_objext" 10409 # Insert the option either (1) after the last *FLAGS variable, or 10410 # (2) before a word containing "conftest.", or (3) at the end. 10411 # Note that $ac_compile itself does not contain backslashes and begins 10412 # with a dollar sign (not a hyphen), so the echo should work correctly. 10413 lt_compile=`echo "$ac_compile" | $SED \ 10414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10416 -e 's:$: $lt_compiler_flag:'` 10417 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10418 (eval "$lt_compile" 2>out/conftest.err) 10419 ac_status=$? 10420 cat out/conftest.err >&5 10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10422 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10423 then 10424 # The compiler can only warn and ignore the option if not recognized 10425 # So say no if there are warnings 10426 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10427 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10428 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10429 lt_cv_prog_compiler_c_o=yes 10430 fi 10431 fi 10432 chmod u+w . 2>&5 10433 $RM conftest* 10434 # SGI C++ compiler will create directory out/ii_files/ for 10435 # template instantiation 10436 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10437 $RM out/* && rmdir out 10438 cd .. 10439 $RM -r conftest 10440 $RM conftest* 10441 10442fi 10443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10444$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10445 10446 10447 10448 10449 10450 10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10452$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10453if ${lt_cv_prog_compiler_c_o+:} false; then : 10454 $as_echo_n "(cached) " >&6 10455else 10456 lt_cv_prog_compiler_c_o=no 10457 $RM -r conftest 2>/dev/null 10458 mkdir conftest 10459 cd conftest 10460 mkdir out 10461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10462 10463 lt_compiler_flag="-o out/conftest2.$ac_objext" 10464 # Insert the option either (1) after the last *FLAGS variable, or 10465 # (2) before a word containing "conftest.", or (3) at the end. 10466 # Note that $ac_compile itself does not contain backslashes and begins 10467 # with a dollar sign (not a hyphen), so the echo should work correctly. 10468 lt_compile=`echo "$ac_compile" | $SED \ 10469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10471 -e 's:$: $lt_compiler_flag:'` 10472 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10473 (eval "$lt_compile" 2>out/conftest.err) 10474 ac_status=$? 10475 cat out/conftest.err >&5 10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10477 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10478 then 10479 # The compiler can only warn and ignore the option if not recognized 10480 # So say no if there are warnings 10481 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10482 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10483 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10484 lt_cv_prog_compiler_c_o=yes 10485 fi 10486 fi 10487 chmod u+w . 2>&5 10488 $RM conftest* 10489 # SGI C++ compiler will create directory out/ii_files/ for 10490 # template instantiation 10491 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10492 $RM out/* && rmdir out 10493 cd .. 10494 $RM -r conftest 10495 $RM conftest* 10496 10497fi 10498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10499$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10500 10501 10502 10503 10504hard_links=nottested 10505if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10506 # do not overwrite the value of need_locks provided by the user 10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10508$as_echo_n "checking if we can lock with hard links... " >&6; } 10509 hard_links=yes 10510 $RM conftest* 10511 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10512 touch conftest.a 10513 ln conftest.a conftest.b 2>&5 || hard_links=no 10514 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10516$as_echo "$hard_links" >&6; } 10517 if test no = "$hard_links"; then 10518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10519$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10520 need_locks=warn 10521 fi 10522else 10523 need_locks=no 10524fi 10525 10526 10527 10528 10529 10530 10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10532$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10533 10534 runpath_var= 10535 allow_undefined_flag= 10536 always_export_symbols=no 10537 archive_cmds= 10538 archive_expsym_cmds= 10539 compiler_needs_object=no 10540 enable_shared_with_static_runtimes=no 10541 export_dynamic_flag_spec= 10542 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10543 hardcode_automatic=no 10544 hardcode_direct=no 10545 hardcode_direct_absolute=no 10546 hardcode_libdir_flag_spec= 10547 hardcode_libdir_separator= 10548 hardcode_minus_L=no 10549 hardcode_shlibpath_var=unsupported 10550 inherit_rpath=no 10551 link_all_deplibs=unknown 10552 module_cmds= 10553 module_expsym_cmds= 10554 old_archive_from_new_cmds= 10555 old_archive_from_expsyms_cmds= 10556 thread_safe_flag_spec= 10557 whole_archive_flag_spec= 10558 # include_expsyms should be a list of space-separated symbols to be *always* 10559 # included in the symbol list 10560 include_expsyms= 10561 # exclude_expsyms can be an extended regexp of symbols to exclude 10562 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10563 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10564 # as well as any symbol that contains 'd'. 10565 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10566 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10567 # platforms (ab)use it in PIC code, but their linkers get confused if 10568 # the symbol is explicitly referenced. Since portable code cannot 10569 # rely on this symbol name, it's probably fine to never include it in 10570 # preloaded symbol tables. 10571 # Exclude shared library initialization/finalization symbols. 10572 extract_expsyms_cmds= 10573 10574 case $host_os in 10575 cygwin* | mingw* | pw32* | cegcc*) 10576 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10577 # When not using gcc, we currently assume that we are using 10578 # Microsoft Visual C++. 10579 if test yes != "$GCC"; then 10580 with_gnu_ld=no 10581 fi 10582 ;; 10583 interix*) 10584 # we just hope/assume this is gcc and not c89 (= MSVC++) 10585 with_gnu_ld=yes 10586 ;; 10587 openbsd* | bitrig*) 10588 with_gnu_ld=no 10589 ;; 10590 linux* | k*bsd*-gnu | gnu*) 10591 link_all_deplibs=no 10592 ;; 10593 esac 10594 10595 ld_shlibs=yes 10596 10597 # On some targets, GNU ld is compatible enough with the native linker 10598 # that we're better off using the native interface for both. 10599 lt_use_gnu_ld_interface=no 10600 if test yes = "$with_gnu_ld"; then 10601 case $host_os in 10602 aix*) 10603 # The AIX port of GNU ld has always aspired to compatibility 10604 # with the native linker. However, as the warning in the GNU ld 10605 # block says, versions before 2.19.5* couldn't really create working 10606 # shared libraries, regardless of the interface used. 10607 case `$LD -v 2>&1` in 10608 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10609 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10610 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10611 *) 10612 lt_use_gnu_ld_interface=yes 10613 ;; 10614 esac 10615 ;; 10616 *) 10617 lt_use_gnu_ld_interface=yes 10618 ;; 10619 esac 10620 fi 10621 10622 if test yes = "$lt_use_gnu_ld_interface"; then 10623 # If archive_cmds runs LD, not CC, wlarc should be empty 10624 wlarc='$wl' 10625 10626 # Set some defaults for GNU ld with shared library support. These 10627 # are reset later if shared libraries are not supported. Putting them 10628 # here allows them to be overridden if necessary. 10629 runpath_var=LD_RUN_PATH 10630 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10631 export_dynamic_flag_spec='$wl--export-dynamic' 10632 # ancient GNU ld didn't support --whole-archive et. al. 10633 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10634 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10635 else 10636 whole_archive_flag_spec= 10637 fi 10638 supports_anon_versioning=no 10639 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10640 *GNU\ gold*) supports_anon_versioning=yes ;; 10641 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10642 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10643 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10644 *\ 2.11.*) ;; # other 2.11 versions 10645 *) supports_anon_versioning=yes ;; 10646 esac 10647 10648 # See if GNU ld supports shared libraries. 10649 case $host_os in 10650 aix[3-9]*) 10651 # On AIX/PPC, the GNU linker is very broken 10652 if test ia64 != "$host_cpu"; then 10653 ld_shlibs=no 10654 cat <<_LT_EOF 1>&2 10655 10656*** Warning: the GNU linker, at least up to release 2.19, is reported 10657*** to be unable to reliably create shared libraries on AIX. 10658*** Therefore, libtool is disabling shared libraries support. If you 10659*** really care for shared libraries, you may want to install binutils 10660*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10661*** You will then need to restart the configuration process. 10662 10663_LT_EOF 10664 fi 10665 ;; 10666 10667 amigaos*) 10668 case $host_cpu in 10669 powerpc) 10670 # see comment about AmigaOS4 .so support 10671 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10672 archive_expsym_cmds='' 10673 ;; 10674 m68k) 10675 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)' 10676 hardcode_libdir_flag_spec='-L$libdir' 10677 hardcode_minus_L=yes 10678 ;; 10679 esac 10680 ;; 10681 10682 beos*) 10683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10684 allow_undefined_flag=unsupported 10685 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10686 # support --undefined. This deserves some investigation. FIXME 10687 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10688 else 10689 ld_shlibs=no 10690 fi 10691 ;; 10692 10693 cygwin* | mingw* | pw32* | cegcc*) 10694 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10695 # as there is no search path for DLLs. 10696 hardcode_libdir_flag_spec='-L$libdir' 10697 export_dynamic_flag_spec='$wl--export-all-symbols' 10698 allow_undefined_flag=unsupported 10699 always_export_symbols=no 10700 enable_shared_with_static_runtimes=yes 10701 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' 10702 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10703 10704 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10706 # If the export-symbols file already is a .def file, use it as 10707 # is; otherwise, prepend EXPORTS... 10708 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10709 cp $export_symbols $output_objdir/$soname.def; 10710 else 10711 echo EXPORTS > $output_objdir/$soname.def; 10712 cat $export_symbols >> $output_objdir/$soname.def; 10713 fi~ 10714 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10715 else 10716 ld_shlibs=no 10717 fi 10718 ;; 10719 10720 haiku*) 10721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10722 link_all_deplibs=yes 10723 ;; 10724 10725 os2*) 10726 hardcode_libdir_flag_spec='-L$libdir' 10727 hardcode_minus_L=yes 10728 allow_undefined_flag=unsupported 10729 shrext_cmds=.dll 10730 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10731 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10732 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10733 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10734 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10735 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10736 emximp -o $lib $output_objdir/$libname.def' 10737 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10738 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10739 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10740 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10741 prefix_cmds="$SED"~ 10742 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10743 prefix_cmds="$prefix_cmds -e 1d"; 10744 fi~ 10745 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10746 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10747 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10748 emximp -o $lib $output_objdir/$libname.def' 10749 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10750 enable_shared_with_static_runtimes=yes 10751 ;; 10752 10753 interix[3-9]*) 10754 hardcode_direct=no 10755 hardcode_shlibpath_var=no 10756 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10757 export_dynamic_flag_spec='$wl-E' 10758 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10759 # Instead, shared libraries are loaded at an image base (0x10000000 by 10760 # default) and relocated if they conflict, which is a slow very memory 10761 # consuming and fragmenting process. To avoid this, we pick a random, 10762 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10763 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10764 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10765 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' 10766 ;; 10767 10768 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10769 tmp_diet=no 10770 if test linux-dietlibc = "$host_os"; then 10771 case $cc_basename in 10772 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10773 esac 10774 fi 10775 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10776 && test no = "$tmp_diet" 10777 then 10778 tmp_addflag=' $pic_flag' 10779 tmp_sharedflag='-shared' 10780 case $cc_basename,$host_cpu in 10781 pgcc*) # Portland Group C compiler 10782 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' 10783 tmp_addflag=' $pic_flag' 10784 ;; 10785 pgf77* | pgf90* | pgf95* | pgfortran*) 10786 # Portland Group f77 and f90 compilers 10787 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' 10788 tmp_addflag=' $pic_flag -Mnomain' ;; 10789 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10790 tmp_addflag=' -i_dynamic' ;; 10791 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10792 tmp_addflag=' -i_dynamic -nofor_main' ;; 10793 ifc* | ifort*) # Intel Fortran compiler 10794 tmp_addflag=' -nofor_main' ;; 10795 lf95*) # Lahey Fortran 8.1 10796 whole_archive_flag_spec= 10797 tmp_sharedflag='--shared' ;; 10798 nagfor*) # NAGFOR 5.3 10799 tmp_sharedflag='-Wl,-shared' ;; 10800 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10801 tmp_sharedflag='-qmkshrobj' 10802 tmp_addflag= ;; 10803 nvcc*) # Cuda Compiler Driver 2.2 10804 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' 10805 compiler_needs_object=yes 10806 ;; 10807 esac 10808 case `$CC -V 2>&1 | sed 5q` in 10809 *Sun\ C*) # Sun C 5.9 10810 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' 10811 compiler_needs_object=yes 10812 tmp_sharedflag='-G' ;; 10813 *Sun\ F*) # Sun Fortran 8.3 10814 tmp_sharedflag='-G' ;; 10815 esac 10816 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10817 10818 if test yes = "$supports_anon_versioning"; then 10819 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10820 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10821 echo "local: *; };" >> $output_objdir/$libname.ver~ 10822 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10823 fi 10824 10825 case $cc_basename in 10826 tcc*) 10827 export_dynamic_flag_spec='-rdynamic' 10828 ;; 10829 xlf* | bgf* | bgxlf* | mpixlf*) 10830 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10831 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10832 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10833 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10834 if test yes = "$supports_anon_versioning"; then 10835 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10836 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10837 echo "local: *; };" >> $output_objdir/$libname.ver~ 10838 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10839 fi 10840 ;; 10841 esac 10842 else 10843 ld_shlibs=no 10844 fi 10845 ;; 10846 10847 netbsd* | netbsdelf*-gnu) 10848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10849 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10850 wlarc= 10851 else 10852 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10853 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10854 fi 10855 ;; 10856 10857 solaris*) 10858 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10859 ld_shlibs=no 10860 cat <<_LT_EOF 1>&2 10861 10862*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10863*** create shared libraries on Solaris systems. Therefore, libtool 10864*** is disabling shared libraries support. We urge you to upgrade GNU 10865*** binutils to release 2.9.1 or newer. Another option is to modify 10866*** your PATH or compiler configuration so that the native linker is 10867*** used, and then restart. 10868 10869_LT_EOF 10870 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10871 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10872 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10873 else 10874 ld_shlibs=no 10875 fi 10876 ;; 10877 10878 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10879 case `$LD -v 2>&1` in 10880 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10881 ld_shlibs=no 10882 cat <<_LT_EOF 1>&2 10883 10884*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10885*** reliably create shared libraries on SCO systems. Therefore, libtool 10886*** is disabling shared libraries support. We urge you to upgrade GNU 10887*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10888*** your PATH or compiler configuration so that the native linker is 10889*** used, and then restart. 10890 10891_LT_EOF 10892 ;; 10893 *) 10894 # For security reasons, it is highly recommended that you always 10895 # use absolute paths for naming shared libraries, and exclude the 10896 # DT_RUNPATH tag from executables and libraries. But doing so 10897 # requires that you compile everything twice, which is a pain. 10898 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10899 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10901 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10902 else 10903 ld_shlibs=no 10904 fi 10905 ;; 10906 esac 10907 ;; 10908 10909 sunos4*) 10910 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10911 wlarc= 10912 hardcode_direct=yes 10913 hardcode_shlibpath_var=no 10914 ;; 10915 10916 *) 10917 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10918 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10919 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10920 else 10921 ld_shlibs=no 10922 fi 10923 ;; 10924 esac 10925 10926 if test no = "$ld_shlibs"; then 10927 runpath_var= 10928 hardcode_libdir_flag_spec= 10929 export_dynamic_flag_spec= 10930 whole_archive_flag_spec= 10931 fi 10932 else 10933 # PORTME fill in a description of your system's linker (not GNU ld) 10934 case $host_os in 10935 aix3*) 10936 allow_undefined_flag=unsupported 10937 always_export_symbols=yes 10938 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' 10939 # Note: this linker hardcodes the directories in LIBPATH if there 10940 # are no directories specified by -L. 10941 hardcode_minus_L=yes 10942 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10943 # Neither direct hardcoding nor static linking is supported with a 10944 # broken collect2. 10945 hardcode_direct=unsupported 10946 fi 10947 ;; 10948 10949 aix[4-9]*) 10950 if test ia64 = "$host_cpu"; then 10951 # On IA64, the linker does run time linking by default, so we don't 10952 # have to do anything special. 10953 aix_use_runtimelinking=no 10954 exp_sym_flag='-Bexport' 10955 no_entry_flag= 10956 else 10957 # If we're using GNU nm, then we don't want the "-C" option. 10958 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10959 # Without the "-l" option, or with the "-B" option, AIX nm treats 10960 # weak defined symbols like other global defined symbols, whereas 10961 # GNU nm marks them as "W". 10962 # While the 'weak' keyword is ignored in the Export File, we need 10963 # it in the Import File for the 'aix-soname' feature, so we have 10964 # to replace the "-B" option with "-P" for AIX nm. 10965 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10966 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10967 else 10968 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10969 fi 10970 aix_use_runtimelinking=no 10971 10972 # Test if we are trying to use run time linking or normal 10973 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10974 # have runtime linking enabled, and use it for executables. 10975 # For shared libraries, we enable/disable runtime linking 10976 # depending on the kind of the shared library created - 10977 # when "with_aix_soname,aix_use_runtimelinking" is: 10978 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10979 # "aix,yes" lib.so shared, rtl:yes, for executables 10980 # lib.a static archive 10981 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10982 # lib.a(lib.so.V) shared, rtl:no, for executables 10983 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10984 # lib.a(lib.so.V) shared, rtl:no 10985 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10986 # lib.a static archive 10987 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10988 for ld_flag in $LDFLAGS; do 10989 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10990 aix_use_runtimelinking=yes 10991 break 10992 fi 10993 done 10994 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10995 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10996 # so we don't have lib.a shared libs to link our executables. 10997 # We have to force runtime linking in this case. 10998 aix_use_runtimelinking=yes 10999 LDFLAGS="$LDFLAGS -Wl,-brtl" 11000 fi 11001 ;; 11002 esac 11003 11004 exp_sym_flag='-bexport' 11005 no_entry_flag='-bnoentry' 11006 fi 11007 11008 # When large executables or shared objects are built, AIX ld can 11009 # have problems creating the table of contents. If linking a library 11010 # or program results in "error TOC overflow" add -mminimal-toc to 11011 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11012 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11013 11014 archive_cmds='' 11015 hardcode_direct=yes 11016 hardcode_direct_absolute=yes 11017 hardcode_libdir_separator=':' 11018 link_all_deplibs=yes 11019 file_list_spec='$wl-f,' 11020 case $with_aix_soname,$aix_use_runtimelinking in 11021 aix,*) ;; # traditional, no import file 11022 svr4,* | *,yes) # use import file 11023 # The Import File defines what to hardcode. 11024 hardcode_direct=no 11025 hardcode_direct_absolute=no 11026 ;; 11027 esac 11028 11029 if test yes = "$GCC"; then 11030 case $host_os in aix4.[012]|aix4.[012].*) 11031 # We only want to do this on AIX 4.2 and lower, the check 11032 # below for broken collect2 doesn't work under 4.3+ 11033 collect2name=`$CC -print-prog-name=collect2` 11034 if test -f "$collect2name" && 11035 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11036 then 11037 # We have reworked collect2 11038 : 11039 else 11040 # We have old collect2 11041 hardcode_direct=unsupported 11042 # It fails to find uninstalled libraries when the uninstalled 11043 # path is not listed in the libpath. Setting hardcode_minus_L 11044 # to unsupported forces relinking 11045 hardcode_minus_L=yes 11046 hardcode_libdir_flag_spec='-L$libdir' 11047 hardcode_libdir_separator= 11048 fi 11049 ;; 11050 esac 11051 shared_flag='-shared' 11052 if test yes = "$aix_use_runtimelinking"; then 11053 shared_flag="$shared_flag "'$wl-G' 11054 fi 11055 # Need to ensure runtime linking is disabled for the traditional 11056 # shared library, or the linker may eventually find shared libraries 11057 # /with/ Import File - we do not want to mix them. 11058 shared_flag_aix='-shared' 11059 shared_flag_svr4='-shared $wl-G' 11060 else 11061 # not using gcc 11062 if test ia64 = "$host_cpu"; then 11063 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11064 # chokes on -Wl,-G. The following line is correct: 11065 shared_flag='-G' 11066 else 11067 if test yes = "$aix_use_runtimelinking"; then 11068 shared_flag='$wl-G' 11069 else 11070 shared_flag='$wl-bM:SRE' 11071 fi 11072 shared_flag_aix='$wl-bM:SRE' 11073 shared_flag_svr4='$wl-G' 11074 fi 11075 fi 11076 11077 export_dynamic_flag_spec='$wl-bexpall' 11078 # It seems that -bexpall does not export symbols beginning with 11079 # underscore (_), so it is better to generate a list of symbols to export. 11080 always_export_symbols=yes 11081 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11082 # Warning - without using the other runtime loading flags (-brtl), 11083 # -berok will link without error, but may produce a broken library. 11084 allow_undefined_flag='-berok' 11085 # Determine the default libpath from the value encoded in an 11086 # empty executable. 11087 if test set = "${lt_cv_aix_libpath+set}"; then 11088 aix_libpath=$lt_cv_aix_libpath 11089else 11090 if ${lt_cv_aix_libpath_+:} false; then : 11091 $as_echo_n "(cached) " >&6 11092else 11093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11094/* end confdefs.h. */ 11095 11096int 11097main () 11098{ 11099 11100 ; 11101 return 0; 11102} 11103_ACEOF 11104if ac_fn_c_try_link "$LINENO"; then : 11105 11106 lt_aix_libpath_sed=' 11107 /Import File Strings/,/^$/ { 11108 /^0/ { 11109 s/^0 *\([^ ]*\) *$/\1/ 11110 p 11111 } 11112 }' 11113 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11114 # Check for a 64-bit object if we didn't find anything. 11115 if test -z "$lt_cv_aix_libpath_"; then 11116 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11117 fi 11118fi 11119rm -f core conftest.err conftest.$ac_objext \ 11120 conftest$ac_exeext conftest.$ac_ext 11121 if test -z "$lt_cv_aix_libpath_"; then 11122 lt_cv_aix_libpath_=/usr/lib:/lib 11123 fi 11124 11125fi 11126 11127 aix_libpath=$lt_cv_aix_libpath_ 11128fi 11129 11130 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11131 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 11132 else 11133 if test ia64 = "$host_cpu"; then 11134 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11135 allow_undefined_flag="-z nodefs" 11136 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" 11137 else 11138 # Determine the default libpath from the value encoded in an 11139 # empty executable. 11140 if test set = "${lt_cv_aix_libpath+set}"; then 11141 aix_libpath=$lt_cv_aix_libpath 11142else 11143 if ${lt_cv_aix_libpath_+:} false; then : 11144 $as_echo_n "(cached) " >&6 11145else 11146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11147/* end confdefs.h. */ 11148 11149int 11150main () 11151{ 11152 11153 ; 11154 return 0; 11155} 11156_ACEOF 11157if ac_fn_c_try_link "$LINENO"; then : 11158 11159 lt_aix_libpath_sed=' 11160 /Import File Strings/,/^$/ { 11161 /^0/ { 11162 s/^0 *\([^ ]*\) *$/\1/ 11163 p 11164 } 11165 }' 11166 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11167 # Check for a 64-bit object if we didn't find anything. 11168 if test -z "$lt_cv_aix_libpath_"; then 11169 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11170 fi 11171fi 11172rm -f core conftest.err conftest.$ac_objext \ 11173 conftest$ac_exeext conftest.$ac_ext 11174 if test -z "$lt_cv_aix_libpath_"; then 11175 lt_cv_aix_libpath_=/usr/lib:/lib 11176 fi 11177 11178fi 11179 11180 aix_libpath=$lt_cv_aix_libpath_ 11181fi 11182 11183 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11184 # Warning - without using the other run time loading flags, 11185 # -berok will link without error, but may produce a broken library. 11186 no_undefined_flag=' $wl-bernotok' 11187 allow_undefined_flag=' $wl-berok' 11188 if test yes = "$with_gnu_ld"; then 11189 # We only use this code for GNU lds that support --whole-archive. 11190 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11191 else 11192 # Exported symbols can be pulled into shared objects from archives 11193 whole_archive_flag_spec='$convenience' 11194 fi 11195 archive_cmds_need_lc=yes 11196 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11197 # -brtl affects multiple linker settings, -berok does not and is overridden later 11198 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11199 if test svr4 != "$with_aix_soname"; then 11200 # This is similar to how AIX traditionally builds its shared libraries. 11201 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 11202 fi 11203 if test aix != "$with_aix_soname"; then 11204 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 11205 else 11206 # used by -dlpreopen to get the symbols 11207 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11208 fi 11209 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11210 fi 11211 fi 11212 ;; 11213 11214 amigaos*) 11215 case $host_cpu in 11216 powerpc) 11217 # see comment about AmigaOS4 .so support 11218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11219 archive_expsym_cmds='' 11220 ;; 11221 m68k) 11222 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)' 11223 hardcode_libdir_flag_spec='-L$libdir' 11224 hardcode_minus_L=yes 11225 ;; 11226 esac 11227 ;; 11228 11229 bsdi[45]*) 11230 export_dynamic_flag_spec=-rdynamic 11231 ;; 11232 11233 cygwin* | mingw* | pw32* | cegcc*) 11234 # When not using gcc, we currently assume that we are using 11235 # Microsoft Visual C++. 11236 # hardcode_libdir_flag_spec is actually meaningless, as there is 11237 # no search path for DLLs. 11238 case $cc_basename in 11239 cl*) 11240 # Native MSVC 11241 hardcode_libdir_flag_spec=' ' 11242 allow_undefined_flag=unsupported 11243 always_export_symbols=yes 11244 file_list_spec='@' 11245 # Tell ltmain to make .lib files, not .a files. 11246 libext=lib 11247 # Tell ltmain to make .dll files, not .so files. 11248 shrext_cmds=.dll 11249 # FIXME: Setting linknames here is a bad hack. 11250 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11251 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11252 cp "$export_symbols" "$output_objdir/$soname.def"; 11253 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11254 else 11255 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11256 fi~ 11257 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11258 linknames=' 11259 # The linker will not automatically build a static lib if we build a DLL. 11260 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11261 enable_shared_with_static_runtimes=yes 11262 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11263 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11264 # Don't use ranlib 11265 old_postinstall_cmds='chmod 644 $oldlib' 11266 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11267 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11268 case $lt_outputfile in 11269 *.exe|*.EXE) ;; 11270 *) 11271 lt_outputfile=$lt_outputfile.exe 11272 lt_tool_outputfile=$lt_tool_outputfile.exe 11273 ;; 11274 esac~ 11275 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11276 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11277 $RM "$lt_outputfile.manifest"; 11278 fi' 11279 ;; 11280 *) 11281 # Assume MSVC wrapper 11282 hardcode_libdir_flag_spec=' ' 11283 allow_undefined_flag=unsupported 11284 # Tell ltmain to make .lib files, not .a files. 11285 libext=lib 11286 # Tell ltmain to make .dll files, not .so files. 11287 shrext_cmds=.dll 11288 # FIXME: Setting linknames here is a bad hack. 11289 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11290 # The linker will automatically build a .lib file if we build a DLL. 11291 old_archive_from_new_cmds='true' 11292 # FIXME: Should let the user specify the lib program. 11293 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11294 enable_shared_with_static_runtimes=yes 11295 ;; 11296 esac 11297 ;; 11298 11299 darwin* | rhapsody*) 11300 11301 11302 archive_cmds_need_lc=no 11303 hardcode_direct=no 11304 hardcode_automatic=yes 11305 hardcode_shlibpath_var=unsupported 11306 if test yes = "$lt_cv_ld_force_load"; then 11307 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\"`' 11308 11309 else 11310 whole_archive_flag_spec='' 11311 fi 11312 link_all_deplibs=yes 11313 allow_undefined_flag=$_lt_dar_allow_undefined 11314 case $cc_basename in 11315 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11316 *) _lt_dar_can_shared=$GCC ;; 11317 esac 11318 if test yes = "$_lt_dar_can_shared"; then 11319 output_verbose_link_cmd=func_echo_all 11320 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11321 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11322 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" 11323 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" 11324 11325 else 11326 ld_shlibs=no 11327 fi 11328 11329 ;; 11330 11331 dgux*) 11332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11333 hardcode_libdir_flag_spec='-L$libdir' 11334 hardcode_shlibpath_var=no 11335 ;; 11336 11337 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11338 # support. Future versions do this automatically, but an explicit c++rt0.o 11339 # does not break anything, and helps significantly (at the cost of a little 11340 # extra space). 11341 freebsd2.2*) 11342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11343 hardcode_libdir_flag_spec='-R$libdir' 11344 hardcode_direct=yes 11345 hardcode_shlibpath_var=no 11346 ;; 11347 11348 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11349 freebsd2.*) 11350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11351 hardcode_direct=yes 11352 hardcode_minus_L=yes 11353 hardcode_shlibpath_var=no 11354 ;; 11355 11356 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11357 freebsd* | dragonfly*) 11358 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11359 hardcode_libdir_flag_spec='-R$libdir' 11360 hardcode_direct=yes 11361 hardcode_shlibpath_var=no 11362 ;; 11363 11364 hpux9*) 11365 if test yes = "$GCC"; then 11366 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11367 else 11368 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11369 fi 11370 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11371 hardcode_libdir_separator=: 11372 hardcode_direct=yes 11373 11374 # hardcode_minus_L: Not really in the search PATH, 11375 # but as the default location of the library. 11376 hardcode_minus_L=yes 11377 export_dynamic_flag_spec='$wl-E' 11378 ;; 11379 11380 hpux10*) 11381 if test yes,no = "$GCC,$with_gnu_ld"; then 11382 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11383 else 11384 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11385 fi 11386 if test no = "$with_gnu_ld"; then 11387 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11388 hardcode_libdir_separator=: 11389 hardcode_direct=yes 11390 hardcode_direct_absolute=yes 11391 export_dynamic_flag_spec='$wl-E' 11392 # hardcode_minus_L: Not really in the search PATH, 11393 # but as the default location of the library. 11394 hardcode_minus_L=yes 11395 fi 11396 ;; 11397 11398 hpux11*) 11399 if test yes,no = "$GCC,$with_gnu_ld"; then 11400 case $host_cpu in 11401 hppa*64*) 11402 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11403 ;; 11404 ia64*) 11405 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11406 ;; 11407 *) 11408 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11409 ;; 11410 esac 11411 else 11412 case $host_cpu in 11413 hppa*64*) 11414 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11415 ;; 11416 ia64*) 11417 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11418 ;; 11419 *) 11420 11421 # Older versions of the 11.00 compiler do not understand -b yet 11422 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11424$as_echo_n "checking if $CC understands -b... " >&6; } 11425if ${lt_cv_prog_compiler__b+:} false; then : 11426 $as_echo_n "(cached) " >&6 11427else 11428 lt_cv_prog_compiler__b=no 11429 save_LDFLAGS=$LDFLAGS 11430 LDFLAGS="$LDFLAGS -b" 11431 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11432 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11433 # The linker can only warn and ignore the option if not recognized 11434 # So say no if there are warnings 11435 if test -s conftest.err; then 11436 # Append any errors to the config.log. 11437 cat conftest.err 1>&5 11438 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11440 if diff conftest.exp conftest.er2 >/dev/null; then 11441 lt_cv_prog_compiler__b=yes 11442 fi 11443 else 11444 lt_cv_prog_compiler__b=yes 11445 fi 11446 fi 11447 $RM -r conftest* 11448 LDFLAGS=$save_LDFLAGS 11449 11450fi 11451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11452$as_echo "$lt_cv_prog_compiler__b" >&6; } 11453 11454if test yes = "$lt_cv_prog_compiler__b"; then 11455 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11456else 11457 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11458fi 11459 11460 ;; 11461 esac 11462 fi 11463 if test no = "$with_gnu_ld"; then 11464 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11465 hardcode_libdir_separator=: 11466 11467 case $host_cpu in 11468 hppa*64*|ia64*) 11469 hardcode_direct=no 11470 hardcode_shlibpath_var=no 11471 ;; 11472 *) 11473 hardcode_direct=yes 11474 hardcode_direct_absolute=yes 11475 export_dynamic_flag_spec='$wl-E' 11476 11477 # hardcode_minus_L: Not really in the search PATH, 11478 # but as the default location of the library. 11479 hardcode_minus_L=yes 11480 ;; 11481 esac 11482 fi 11483 ;; 11484 11485 irix5* | irix6* | nonstopux*) 11486 if test yes = "$GCC"; then 11487 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' 11488 # Try to use the -exported_symbol ld option, if it does not 11489 # work, assume that -exports_file does not work either and 11490 # implicitly export all symbols. 11491 # This should be the same for all languages, so no per-tag cache variable. 11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11493$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11494if ${lt_cv_irix_exported_symbol+:} false; then : 11495 $as_echo_n "(cached) " >&6 11496else 11497 save_LDFLAGS=$LDFLAGS 11498 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11500/* end confdefs.h. */ 11501int foo (void) { return 0; } 11502_ACEOF 11503if ac_fn_c_try_link "$LINENO"; then : 11504 lt_cv_irix_exported_symbol=yes 11505else 11506 lt_cv_irix_exported_symbol=no 11507fi 11508rm -f core conftest.err conftest.$ac_objext \ 11509 conftest$ac_exeext conftest.$ac_ext 11510 LDFLAGS=$save_LDFLAGS 11511fi 11512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11513$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11514 if test yes = "$lt_cv_irix_exported_symbol"; then 11515 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' 11516 fi 11517 link_all_deplibs=no 11518 else 11519 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' 11520 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' 11521 fi 11522 archive_cmds_need_lc='no' 11523 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11524 hardcode_libdir_separator=: 11525 inherit_rpath=yes 11526 link_all_deplibs=yes 11527 ;; 11528 11529 linux*) 11530 case $cc_basename in 11531 tcc*) 11532 # Fabrice Bellard et al's Tiny C Compiler 11533 ld_shlibs=yes 11534 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11535 ;; 11536 esac 11537 ;; 11538 11539 netbsd* | netbsdelf*-gnu) 11540 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11541 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11542 else 11543 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11544 fi 11545 hardcode_libdir_flag_spec='-R$libdir' 11546 hardcode_direct=yes 11547 hardcode_shlibpath_var=no 11548 ;; 11549 11550 newsos6) 11551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11552 hardcode_direct=yes 11553 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11554 hardcode_libdir_separator=: 11555 hardcode_shlibpath_var=no 11556 ;; 11557 11558 *nto* | *qnx*) 11559 ;; 11560 11561 openbsd* | bitrig*) 11562 if test -f /usr/libexec/ld.so; then 11563 hardcode_direct=yes 11564 hardcode_shlibpath_var=no 11565 hardcode_direct_absolute=yes 11566 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11567 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11568 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11569 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11570 export_dynamic_flag_spec='$wl-E' 11571 else 11572 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11573 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11574 fi 11575 else 11576 ld_shlibs=no 11577 fi 11578 ;; 11579 11580 os2*) 11581 hardcode_libdir_flag_spec='-L$libdir' 11582 hardcode_minus_L=yes 11583 allow_undefined_flag=unsupported 11584 shrext_cmds=.dll 11585 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11586 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11587 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11588 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11589 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11590 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11591 emximp -o $lib $output_objdir/$libname.def' 11592 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11593 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11594 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11595 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11596 prefix_cmds="$SED"~ 11597 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11598 prefix_cmds="$prefix_cmds -e 1d"; 11599 fi~ 11600 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11601 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11602 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11603 emximp -o $lib $output_objdir/$libname.def' 11604 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11605 enable_shared_with_static_runtimes=yes 11606 ;; 11607 11608 osf3*) 11609 if test yes = "$GCC"; then 11610 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11611 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' 11612 else 11613 allow_undefined_flag=' -expect_unresolved \*' 11614 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' 11615 fi 11616 archive_cmds_need_lc='no' 11617 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11618 hardcode_libdir_separator=: 11619 ;; 11620 11621 osf4* | osf5*) # as osf3* with the addition of -msym flag 11622 if test yes = "$GCC"; then 11623 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11624 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' 11625 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11626 else 11627 allow_undefined_flag=' -expect_unresolved \*' 11628 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' 11629 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~ 11630 $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' 11631 11632 # Both c and cxx compiler support -rpath directly 11633 hardcode_libdir_flag_spec='-rpath $libdir' 11634 fi 11635 archive_cmds_need_lc='no' 11636 hardcode_libdir_separator=: 11637 ;; 11638 11639 solaris*) 11640 no_undefined_flag=' -z defs' 11641 if test yes = "$GCC"; then 11642 wlarc='$wl' 11643 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11644 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11645 $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' 11646 else 11647 case `$CC -V 2>&1` in 11648 *"Compilers 5.0"*) 11649 wlarc='' 11650 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11651 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11652 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11653 ;; 11654 *) 11655 wlarc='$wl' 11656 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11657 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11658 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11659 ;; 11660 esac 11661 fi 11662 hardcode_libdir_flag_spec='-R$libdir' 11663 hardcode_shlibpath_var=no 11664 case $host_os in 11665 solaris2.[0-5] | solaris2.[0-5].*) ;; 11666 *) 11667 # The compiler driver will combine and reorder linker options, 11668 # but understands '-z linker_flag'. GCC discards it without '$wl', 11669 # but is careful enough not to reorder. 11670 # Supported since Solaris 2.6 (maybe 2.5.1?) 11671 if test yes = "$GCC"; then 11672 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11673 else 11674 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11675 fi 11676 ;; 11677 esac 11678 link_all_deplibs=yes 11679 ;; 11680 11681 sunos4*) 11682 if test sequent = "$host_vendor"; then 11683 # Use $CC to link under sequent, because it throws in some extra .o 11684 # files that make .init and .fini sections work. 11685 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11686 else 11687 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11688 fi 11689 hardcode_libdir_flag_spec='-L$libdir' 11690 hardcode_direct=yes 11691 hardcode_minus_L=yes 11692 hardcode_shlibpath_var=no 11693 ;; 11694 11695 sysv4) 11696 case $host_vendor in 11697 sni) 11698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11699 hardcode_direct=yes # is this really true??? 11700 ;; 11701 siemens) 11702 ## LD is ld it makes a PLAMLIB 11703 ## CC just makes a GrossModule. 11704 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11705 reload_cmds='$CC -r -o $output$reload_objs' 11706 hardcode_direct=no 11707 ;; 11708 motorola) 11709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11710 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11711 ;; 11712 esac 11713 runpath_var='LD_RUN_PATH' 11714 hardcode_shlibpath_var=no 11715 ;; 11716 11717 sysv4.3*) 11718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11719 hardcode_shlibpath_var=no 11720 export_dynamic_flag_spec='-Bexport' 11721 ;; 11722 11723 sysv4*MP*) 11724 if test -d /usr/nec; then 11725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11726 hardcode_shlibpath_var=no 11727 runpath_var=LD_RUN_PATH 11728 hardcode_runpath_var=yes 11729 ld_shlibs=yes 11730 fi 11731 ;; 11732 11733 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11734 no_undefined_flag='$wl-z,text' 11735 archive_cmds_need_lc=no 11736 hardcode_shlibpath_var=no 11737 runpath_var='LD_RUN_PATH' 11738 11739 if test yes = "$GCC"; then 11740 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11741 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11742 else 11743 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11744 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11745 fi 11746 ;; 11747 11748 sysv5* | sco3.2v5* | sco5v6*) 11749 # Note: We CANNOT use -z defs as we might desire, because we do not 11750 # link with -lc, and that would cause any symbols used from libc to 11751 # always be unresolved, which means just about no library would 11752 # ever link correctly. If we're not using GNU ld we use -z text 11753 # though, which does catch some bad symbols but isn't as heavy-handed 11754 # as -z defs. 11755 no_undefined_flag='$wl-z,text' 11756 allow_undefined_flag='$wl-z,nodefs' 11757 archive_cmds_need_lc=no 11758 hardcode_shlibpath_var=no 11759 hardcode_libdir_flag_spec='$wl-R,$libdir' 11760 hardcode_libdir_separator=':' 11761 link_all_deplibs=yes 11762 export_dynamic_flag_spec='$wl-Bexport' 11763 runpath_var='LD_RUN_PATH' 11764 11765 if test yes = "$GCC"; then 11766 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11767 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11768 else 11769 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11770 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11771 fi 11772 ;; 11773 11774 uts4*) 11775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11776 hardcode_libdir_flag_spec='-L$libdir' 11777 hardcode_shlibpath_var=no 11778 ;; 11779 11780 *) 11781 ld_shlibs=no 11782 ;; 11783 esac 11784 11785 if test sni = "$host_vendor"; then 11786 case $host in 11787 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11788 export_dynamic_flag_spec='$wl-Blargedynsym' 11789 ;; 11790 esac 11791 fi 11792 fi 11793 11794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11795$as_echo "$ld_shlibs" >&6; } 11796test no = "$ld_shlibs" && can_build_shared=no 11797 11798with_gnu_ld=$with_gnu_ld 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814# 11815# Do we need to explicitly link libc? 11816# 11817case "x$archive_cmds_need_lc" in 11818x|xyes) 11819 # Assume -lc should be added 11820 archive_cmds_need_lc=yes 11821 11822 if test yes,yes = "$GCC,$enable_shared"; then 11823 case $archive_cmds in 11824 *'~'*) 11825 # FIXME: we may have to deal with multi-command sequences. 11826 ;; 11827 '$CC '*) 11828 # Test whether the compiler implicitly links with -lc since on some 11829 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11830 # to ld, don't add -lc before -lgcc. 11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11832$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11833if ${lt_cv_archive_cmds_need_lc+:} false; then : 11834 $as_echo_n "(cached) " >&6 11835else 11836 $RM conftest* 11837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11838 11839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11840 (eval $ac_compile) 2>&5 11841 ac_status=$? 11842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11843 test $ac_status = 0; } 2>conftest.err; then 11844 soname=conftest 11845 lib=conftest 11846 libobjs=conftest.$ac_objext 11847 deplibs= 11848 wl=$lt_prog_compiler_wl 11849 pic_flag=$lt_prog_compiler_pic 11850 compiler_flags=-v 11851 linker_flags=-v 11852 verstring= 11853 output_objdir=. 11854 libname=conftest 11855 lt_save_allow_undefined_flag=$allow_undefined_flag 11856 allow_undefined_flag= 11857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11858 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11859 ac_status=$? 11860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11861 test $ac_status = 0; } 11862 then 11863 lt_cv_archive_cmds_need_lc=no 11864 else 11865 lt_cv_archive_cmds_need_lc=yes 11866 fi 11867 allow_undefined_flag=$lt_save_allow_undefined_flag 11868 else 11869 cat conftest.err 1>&5 11870 fi 11871 $RM conftest* 11872 11873fi 11874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11875$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11876 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11877 ;; 11878 esac 11879 fi 11880 ;; 11881esac 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12035$as_echo_n "checking dynamic linker characteristics... " >&6; } 12036 12037if test yes = "$GCC"; then 12038 case $host_os in 12039 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12040 *) lt_awk_arg='/^libraries:/' ;; 12041 esac 12042 case $host_os in 12043 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12044 *) lt_sed_strip_eq='s|=/|/|g' ;; 12045 esac 12046 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12047 case $lt_search_path_spec in 12048 *\;*) 12049 # if the path contains ";" then we assume it to be the separator 12050 # otherwise default to the standard path separator (i.e. ":") - it is 12051 # assumed that no part of a normal pathname contains ";" but that should 12052 # okay in the real world where ";" in dirpaths is itself problematic. 12053 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12054 ;; 12055 *) 12056 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12057 ;; 12058 esac 12059 # Ok, now we have the path, separated by spaces, we can step through it 12060 # and add multilib dir if necessary... 12061 lt_tmp_lt_search_path_spec= 12062 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12063 # ...but if some path component already ends with the multilib dir we assume 12064 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12065 case "$lt_multi_os_dir; $lt_search_path_spec " in 12066 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12067 lt_multi_os_dir= 12068 ;; 12069 esac 12070 for lt_sys_path in $lt_search_path_spec; do 12071 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12072 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12073 elif test -n "$lt_multi_os_dir"; then 12074 test -d "$lt_sys_path" && \ 12075 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12076 fi 12077 done 12078 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12079BEGIN {RS = " "; FS = "/|\n";} { 12080 lt_foo = ""; 12081 lt_count = 0; 12082 for (lt_i = NF; lt_i > 0; lt_i--) { 12083 if ($lt_i != "" && $lt_i != ".") { 12084 if ($lt_i == "..") { 12085 lt_count++; 12086 } else { 12087 if (lt_count == 0) { 12088 lt_foo = "/" $lt_i lt_foo; 12089 } else { 12090 lt_count--; 12091 } 12092 } 12093 } 12094 } 12095 if (lt_foo != "") { lt_freq[lt_foo]++; } 12096 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12097}'` 12098 # AWK program above erroneously prepends '/' to C:/dos/paths 12099 # for these hosts. 12100 case $host_os in 12101 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12102 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12103 esac 12104 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12105else 12106 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12107fi 12108library_names_spec= 12109libname_spec='lib$name' 12110soname_spec= 12111shrext_cmds=.so 12112postinstall_cmds= 12113postuninstall_cmds= 12114finish_cmds= 12115finish_eval= 12116shlibpath_var= 12117shlibpath_overrides_runpath=unknown 12118version_type=none 12119dynamic_linker="$host_os ld.so" 12120sys_lib_dlsearch_path_spec="/lib /usr/lib" 12121need_lib_prefix=unknown 12122hardcode_into_libs=no 12123 12124# when you set need_version to no, make sure it does not cause -set_version 12125# flags to be left without arguments 12126need_version=unknown 12127 12128 12129 12130case $host_os in 12131aix3*) 12132 version_type=linux # correct to gnu/linux during the next big refactor 12133 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12134 shlibpath_var=LIBPATH 12135 12136 # AIX 3 has no versioning support, so we append a major version to the name. 12137 soname_spec='$libname$release$shared_ext$major' 12138 ;; 12139 12140aix[4-9]*) 12141 version_type=linux # correct to gnu/linux during the next big refactor 12142 need_lib_prefix=no 12143 need_version=no 12144 hardcode_into_libs=yes 12145 if test ia64 = "$host_cpu"; then 12146 # AIX 5 supports IA64 12147 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12148 shlibpath_var=LD_LIBRARY_PATH 12149 else 12150 # With GCC up to 2.95.x, collect2 would create an import file 12151 # for dependence libraries. The import file would start with 12152 # the line '#! .'. This would cause the generated library to 12153 # depend on '.', always an invalid library. This was fixed in 12154 # development snapshots of GCC prior to 3.0. 12155 case $host_os in 12156 aix4 | aix4.[01] | aix4.[01].*) 12157 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12158 echo ' yes ' 12159 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12160 : 12161 else 12162 can_build_shared=no 12163 fi 12164 ;; 12165 esac 12166 # Using Import Files as archive members, it is possible to support 12167 # filename-based versioning of shared library archives on AIX. While 12168 # this would work for both with and without runtime linking, it will 12169 # prevent static linking of such archives. So we do filename-based 12170 # shared library versioning with .so extension only, which is used 12171 # when both runtime linking and shared linking is enabled. 12172 # Unfortunately, runtime linking may impact performance, so we do 12173 # not want this to be the default eventually. Also, we use the 12174 # versioned .so libs for executables only if there is the -brtl 12175 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12176 # To allow for filename-based versioning support, we need to create 12177 # libNAME.so.V as an archive file, containing: 12178 # *) an Import File, referring to the versioned filename of the 12179 # archive as well as the shared archive member, telling the 12180 # bitwidth (32 or 64) of that shared object, and providing the 12181 # list of exported symbols of that shared object, eventually 12182 # decorated with the 'weak' keyword 12183 # *) the shared object with the F_LOADONLY flag set, to really avoid 12184 # it being seen by the linker. 12185 # At run time we better use the real file rather than another symlink, 12186 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12187 12188 case $with_aix_soname,$aix_use_runtimelinking in 12189 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12190 # soname into executable. Probably we can add versioning support to 12191 # collect2, so additional links can be useful in future. 12192 aix,yes) # traditional libtool 12193 dynamic_linker='AIX unversionable lib.so' 12194 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12195 # instead of lib<name>.a to let people know that these are not 12196 # typical AIX shared libraries. 12197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12198 ;; 12199 aix,no) # traditional AIX only 12200 dynamic_linker='AIX lib.a(lib.so.V)' 12201 # We preserve .a as extension for shared libraries through AIX4.2 12202 # and later when we are not doing run time linking. 12203 library_names_spec='$libname$release.a $libname.a' 12204 soname_spec='$libname$release$shared_ext$major' 12205 ;; 12206 svr4,*) # full svr4 only 12207 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12208 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12209 # We do not specify a path in Import Files, so LIBPATH fires. 12210 shlibpath_overrides_runpath=yes 12211 ;; 12212 *,yes) # both, prefer svr4 12213 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12214 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12215 # unpreferred sharedlib libNAME.a needs extra handling 12216 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12217 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12218 # We do not specify a path in Import Files, so LIBPATH fires. 12219 shlibpath_overrides_runpath=yes 12220 ;; 12221 *,no) # both, prefer aix 12222 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12223 library_names_spec='$libname$release.a $libname.a' 12224 soname_spec='$libname$release$shared_ext$major' 12225 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12226 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12227 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12228 ;; 12229 esac 12230 shlibpath_var=LIBPATH 12231 fi 12232 ;; 12233 12234amigaos*) 12235 case $host_cpu in 12236 powerpc) 12237 # Since July 2007 AmigaOS4 officially supports .so libraries. 12238 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12240 ;; 12241 m68k) 12242 library_names_spec='$libname.ixlibrary $libname.a' 12243 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12244 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 12245 ;; 12246 esac 12247 ;; 12248 12249beos*) 12250 library_names_spec='$libname$shared_ext' 12251 dynamic_linker="$host_os ld.so" 12252 shlibpath_var=LIBRARY_PATH 12253 ;; 12254 12255bsdi[45]*) 12256 version_type=linux # correct to gnu/linux during the next big refactor 12257 need_version=no 12258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12259 soname_spec='$libname$release$shared_ext$major' 12260 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12261 shlibpath_var=LD_LIBRARY_PATH 12262 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12263 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12264 # the default ld.so.conf also contains /usr/contrib/lib and 12265 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12266 # libtool to hard-code these into programs 12267 ;; 12268 12269cygwin* | mingw* | pw32* | cegcc*) 12270 version_type=windows 12271 shrext_cmds=.dll 12272 need_version=no 12273 need_lib_prefix=no 12274 12275 case $GCC,$cc_basename in 12276 yes,*) 12277 # gcc 12278 library_names_spec='$libname.dll.a' 12279 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12280 postinstall_cmds='base_file=`basename \$file`~ 12281 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12282 dldir=$destdir/`dirname \$dlpath`~ 12283 test -d \$dldir || mkdir -p \$dldir~ 12284 $install_prog $dir/$dlname \$dldir/$dlname~ 12285 chmod a+x \$dldir/$dlname~ 12286 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12287 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12288 fi' 12289 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12290 dlpath=$dir/\$dldll~ 12291 $RM \$dlpath' 12292 shlibpath_overrides_runpath=yes 12293 12294 case $host_os in 12295 cygwin*) 12296 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12297 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12298 12299 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12300 ;; 12301 mingw* | cegcc*) 12302 # MinGW DLLs use traditional 'lib' prefix 12303 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12304 ;; 12305 pw32*) 12306 # pw32 DLLs use 'pw' prefix rather than 'lib' 12307 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12308 ;; 12309 esac 12310 dynamic_linker='Win32 ld.exe' 12311 ;; 12312 12313 *,cl*) 12314 # Native MSVC 12315 libname_spec='$name' 12316 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12317 library_names_spec='$libname.dll.lib' 12318 12319 case $build_os in 12320 mingw*) 12321 sys_lib_search_path_spec= 12322 lt_save_ifs=$IFS 12323 IFS=';' 12324 for lt_path in $LIB 12325 do 12326 IFS=$lt_save_ifs 12327 # Let DOS variable expansion print the short 8.3 style file name. 12328 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12329 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12330 done 12331 IFS=$lt_save_ifs 12332 # Convert to MSYS style. 12333 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12334 ;; 12335 cygwin*) 12336 # Convert to unix form, then to dos form, then back to unix form 12337 # but this time dos style (no spaces!) so that the unix form looks 12338 # like /cygdrive/c/PROGRA~1:/cygdr... 12339 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12340 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12341 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12342 ;; 12343 *) 12344 sys_lib_search_path_spec=$LIB 12345 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12346 # It is most probably a Windows format PATH. 12347 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12348 else 12349 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12350 fi 12351 # FIXME: find the short name or the path components, as spaces are 12352 # common. (e.g. "Program Files" -> "PROGRA~1") 12353 ;; 12354 esac 12355 12356 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12357 postinstall_cmds='base_file=`basename \$file`~ 12358 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12359 dldir=$destdir/`dirname \$dlpath`~ 12360 test -d \$dldir || mkdir -p \$dldir~ 12361 $install_prog $dir/$dlname \$dldir/$dlname' 12362 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12363 dlpath=$dir/\$dldll~ 12364 $RM \$dlpath' 12365 shlibpath_overrides_runpath=yes 12366 dynamic_linker='Win32 link.exe' 12367 ;; 12368 12369 *) 12370 # Assume MSVC wrapper 12371 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12372 dynamic_linker='Win32 ld.exe' 12373 ;; 12374 esac 12375 # FIXME: first we should search . and the directory the executable is in 12376 shlibpath_var=PATH 12377 ;; 12378 12379darwin* | rhapsody*) 12380 dynamic_linker="$host_os dyld" 12381 version_type=darwin 12382 need_lib_prefix=no 12383 need_version=no 12384 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12385 soname_spec='$libname$release$major$shared_ext' 12386 shlibpath_overrides_runpath=yes 12387 shlibpath_var=DYLD_LIBRARY_PATH 12388 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12389 12390 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12391 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12392 ;; 12393 12394dgux*) 12395 version_type=linux # correct to gnu/linux during the next big refactor 12396 need_lib_prefix=no 12397 need_version=no 12398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12399 soname_spec='$libname$release$shared_ext$major' 12400 shlibpath_var=LD_LIBRARY_PATH 12401 ;; 12402 12403freebsd* | dragonfly*) 12404 # DragonFly does not have aout. When/if they implement a new 12405 # versioning mechanism, adjust this. 12406 if test -x /usr/bin/objformat; then 12407 objformat=`/usr/bin/objformat` 12408 else 12409 case $host_os in 12410 freebsd[23].*) objformat=aout ;; 12411 *) objformat=elf ;; 12412 esac 12413 fi 12414 version_type=freebsd-$objformat 12415 case $version_type in 12416 freebsd-elf*) 12417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12418 soname_spec='$libname$release$shared_ext$major' 12419 need_version=no 12420 need_lib_prefix=no 12421 ;; 12422 freebsd-*) 12423 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12424 need_version=yes 12425 ;; 12426 esac 12427 shlibpath_var=LD_LIBRARY_PATH 12428 case $host_os in 12429 freebsd2.*) 12430 shlibpath_overrides_runpath=yes 12431 ;; 12432 freebsd3.[01]* | freebsdelf3.[01]*) 12433 shlibpath_overrides_runpath=yes 12434 hardcode_into_libs=yes 12435 ;; 12436 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12437 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12438 shlibpath_overrides_runpath=no 12439 hardcode_into_libs=yes 12440 ;; 12441 *) # from 4.6 on, and DragonFly 12442 shlibpath_overrides_runpath=yes 12443 hardcode_into_libs=yes 12444 ;; 12445 esac 12446 ;; 12447 12448haiku*) 12449 version_type=linux # correct to gnu/linux during the next big refactor 12450 need_lib_prefix=no 12451 need_version=no 12452 dynamic_linker="$host_os runtime_loader" 12453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12454 soname_spec='$libname$release$shared_ext$major' 12455 shlibpath_var=LIBRARY_PATH 12456 shlibpath_overrides_runpath=no 12457 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12458 hardcode_into_libs=yes 12459 ;; 12460 12461hpux9* | hpux10* | hpux11*) 12462 # Give a soname corresponding to the major version so that dld.sl refuses to 12463 # link against other versions. 12464 version_type=sunos 12465 need_lib_prefix=no 12466 need_version=no 12467 case $host_cpu in 12468 ia64*) 12469 shrext_cmds='.so' 12470 hardcode_into_libs=yes 12471 dynamic_linker="$host_os dld.so" 12472 shlibpath_var=LD_LIBRARY_PATH 12473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12475 soname_spec='$libname$release$shared_ext$major' 12476 if test 32 = "$HPUX_IA64_MODE"; then 12477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12478 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12479 else 12480 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12481 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12482 fi 12483 ;; 12484 hppa*64*) 12485 shrext_cmds='.sl' 12486 hardcode_into_libs=yes 12487 dynamic_linker="$host_os dld.sl" 12488 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12489 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12491 soname_spec='$libname$release$shared_ext$major' 12492 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12493 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12494 ;; 12495 *) 12496 shrext_cmds='.sl' 12497 dynamic_linker="$host_os dld.sl" 12498 shlibpath_var=SHLIB_PATH 12499 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12501 soname_spec='$libname$release$shared_ext$major' 12502 ;; 12503 esac 12504 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12505 postinstall_cmds='chmod 555 $lib' 12506 # or fails outright, so override atomically: 12507 install_override_mode=555 12508 ;; 12509 12510interix[3-9]*) 12511 version_type=linux # correct to gnu/linux during the next big refactor 12512 need_lib_prefix=no 12513 need_version=no 12514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12515 soname_spec='$libname$release$shared_ext$major' 12516 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12517 shlibpath_var=LD_LIBRARY_PATH 12518 shlibpath_overrides_runpath=no 12519 hardcode_into_libs=yes 12520 ;; 12521 12522irix5* | irix6* | nonstopux*) 12523 case $host_os in 12524 nonstopux*) version_type=nonstopux ;; 12525 *) 12526 if test yes = "$lt_cv_prog_gnu_ld"; then 12527 version_type=linux # correct to gnu/linux during the next big refactor 12528 else 12529 version_type=irix 12530 fi ;; 12531 esac 12532 need_lib_prefix=no 12533 need_version=no 12534 soname_spec='$libname$release$shared_ext$major' 12535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12536 case $host_os in 12537 irix5* | nonstopux*) 12538 libsuff= shlibsuff= 12539 ;; 12540 *) 12541 case $LD in # libtool.m4 will add one of these switches to LD 12542 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12543 libsuff= shlibsuff= libmagic=32-bit;; 12544 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12545 libsuff=32 shlibsuff=N32 libmagic=N32;; 12546 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12547 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12548 *) libsuff= shlibsuff= libmagic=never-match;; 12549 esac 12550 ;; 12551 esac 12552 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12553 shlibpath_overrides_runpath=no 12554 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12555 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12556 hardcode_into_libs=yes 12557 ;; 12558 12559# No shared lib support for Linux oldld, aout, or coff. 12560linux*oldld* | linux*aout* | linux*coff*) 12561 dynamic_linker=no 12562 ;; 12563 12564linux*android*) 12565 version_type=none # Android doesn't support versioned libraries. 12566 need_lib_prefix=no 12567 need_version=no 12568 library_names_spec='$libname$release$shared_ext' 12569 soname_spec='$libname$release$shared_ext' 12570 finish_cmds= 12571 shlibpath_var=LD_LIBRARY_PATH 12572 shlibpath_overrides_runpath=yes 12573 12574 # This implies no fast_install, which is unacceptable. 12575 # Some rework will be needed to allow for fast_install 12576 # before this can be enabled. 12577 hardcode_into_libs=yes 12578 12579 dynamic_linker='Android linker' 12580 # Don't embed -rpath directories since the linker doesn't support them. 12581 hardcode_libdir_flag_spec='-L$libdir' 12582 ;; 12583 12584# This must be glibc/ELF. 12585linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12586 version_type=linux # correct to gnu/linux during the next big refactor 12587 need_lib_prefix=no 12588 need_version=no 12589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12590 soname_spec='$libname$release$shared_ext$major' 12591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12592 shlibpath_var=LD_LIBRARY_PATH 12593 shlibpath_overrides_runpath=no 12594 12595 # Some binutils ld are patched to set DT_RUNPATH 12596 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12597 $as_echo_n "(cached) " >&6 12598else 12599 lt_cv_shlibpath_overrides_runpath=no 12600 save_LDFLAGS=$LDFLAGS 12601 save_libdir=$libdir 12602 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12603 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12605/* end confdefs.h. */ 12606 12607int 12608main () 12609{ 12610 12611 ; 12612 return 0; 12613} 12614_ACEOF 12615if ac_fn_c_try_link "$LINENO"; then : 12616 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12617 lt_cv_shlibpath_overrides_runpath=yes 12618fi 12619fi 12620rm -f core conftest.err conftest.$ac_objext \ 12621 conftest$ac_exeext conftest.$ac_ext 12622 LDFLAGS=$save_LDFLAGS 12623 libdir=$save_libdir 12624 12625fi 12626 12627 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12628 12629 # This implies no fast_install, which is unacceptable. 12630 # Some rework will be needed to allow for fast_install 12631 # before this can be enabled. 12632 hardcode_into_libs=yes 12633 12634 # Ideally, we could use ldconfig to report *all* directores which are 12635 # searched for libraries, however this is still not possible. Aside from not 12636 # being certain /sbin/ldconfig is available, command 12637 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12638 # even though it is searched at run-time. Try to do the best guess by 12639 # appending ld.so.conf contents (and includes) to the search path. 12640 if test -f /etc/ld.so.conf; then 12641 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' ' '` 12642 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12643 fi 12644 12645 # We used to test for /lib/ld.so.1 and disable shared libraries on 12646 # powerpc, because MkLinux only supported shared libraries with the 12647 # GNU dynamic linker. Since this was broken with cross compilers, 12648 # most powerpc-linux boxes support dynamic linking these days and 12649 # people can always --disable-shared, the test was removed, and we 12650 # assume the GNU/Linux dynamic linker is in use. 12651 dynamic_linker='GNU/Linux ld.so' 12652 ;; 12653 12654netbsdelf*-gnu) 12655 version_type=linux 12656 need_lib_prefix=no 12657 need_version=no 12658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12659 soname_spec='${libname}${release}${shared_ext}$major' 12660 shlibpath_var=LD_LIBRARY_PATH 12661 shlibpath_overrides_runpath=no 12662 hardcode_into_libs=yes 12663 dynamic_linker='NetBSD ld.elf_so' 12664 ;; 12665 12666netbsd*) 12667 version_type=sunos 12668 need_lib_prefix=no 12669 need_version=no 12670 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12671 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12673 dynamic_linker='NetBSD (a.out) ld.so' 12674 else 12675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12676 soname_spec='$libname$release$shared_ext$major' 12677 dynamic_linker='NetBSD ld.elf_so' 12678 fi 12679 shlibpath_var=LD_LIBRARY_PATH 12680 shlibpath_overrides_runpath=yes 12681 hardcode_into_libs=yes 12682 ;; 12683 12684newsos6) 12685 version_type=linux # correct to gnu/linux during the next big refactor 12686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12687 shlibpath_var=LD_LIBRARY_PATH 12688 shlibpath_overrides_runpath=yes 12689 ;; 12690 12691*nto* | *qnx*) 12692 version_type=qnx 12693 need_lib_prefix=no 12694 need_version=no 12695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12696 soname_spec='$libname$release$shared_ext$major' 12697 shlibpath_var=LD_LIBRARY_PATH 12698 shlibpath_overrides_runpath=no 12699 hardcode_into_libs=yes 12700 dynamic_linker='ldqnx.so' 12701 ;; 12702 12703openbsd* | bitrig*) 12704 version_type=sunos 12705 sys_lib_dlsearch_path_spec=/usr/lib 12706 need_lib_prefix=no 12707 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12708 need_version=no 12709 else 12710 need_version=yes 12711 fi 12712 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12714 shlibpath_var=LD_LIBRARY_PATH 12715 shlibpath_overrides_runpath=yes 12716 ;; 12717 12718os2*) 12719 libname_spec='$name' 12720 version_type=windows 12721 shrext_cmds=.dll 12722 need_version=no 12723 need_lib_prefix=no 12724 # OS/2 can only load a DLL with a base name of 8 characters or less. 12725 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12726 v=$($ECHO $release$versuffix | tr -d .-); 12727 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12728 $ECHO $n$v`$shared_ext' 12729 library_names_spec='${libname}_dll.$libext' 12730 dynamic_linker='OS/2 ld.exe' 12731 shlibpath_var=BEGINLIBPATH 12732 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12734 postinstall_cmds='base_file=`basename \$file`~ 12735 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12736 dldir=$destdir/`dirname \$dlpath`~ 12737 test -d \$dldir || mkdir -p \$dldir~ 12738 $install_prog $dir/$dlname \$dldir/$dlname~ 12739 chmod a+x \$dldir/$dlname~ 12740 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12741 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12742 fi' 12743 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12744 dlpath=$dir/\$dldll~ 12745 $RM \$dlpath' 12746 ;; 12747 12748osf3* | osf4* | osf5*) 12749 version_type=osf 12750 need_lib_prefix=no 12751 need_version=no 12752 soname_spec='$libname$release$shared_ext$major' 12753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12754 shlibpath_var=LD_LIBRARY_PATH 12755 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12756 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12757 ;; 12758 12759rdos*) 12760 dynamic_linker=no 12761 ;; 12762 12763solaris*) 12764 version_type=linux # correct to gnu/linux during the next big refactor 12765 need_lib_prefix=no 12766 need_version=no 12767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12768 soname_spec='$libname$release$shared_ext$major' 12769 shlibpath_var=LD_LIBRARY_PATH 12770 shlibpath_overrides_runpath=yes 12771 hardcode_into_libs=yes 12772 # ldd complains unless libraries are executable 12773 postinstall_cmds='chmod +x $lib' 12774 ;; 12775 12776sunos4*) 12777 version_type=sunos 12778 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12779 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12780 shlibpath_var=LD_LIBRARY_PATH 12781 shlibpath_overrides_runpath=yes 12782 if test yes = "$with_gnu_ld"; then 12783 need_lib_prefix=no 12784 fi 12785 need_version=yes 12786 ;; 12787 12788sysv4 | sysv4.3*) 12789 version_type=linux # correct to gnu/linux during the next big refactor 12790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12791 soname_spec='$libname$release$shared_ext$major' 12792 shlibpath_var=LD_LIBRARY_PATH 12793 case $host_vendor in 12794 sni) 12795 shlibpath_overrides_runpath=no 12796 need_lib_prefix=no 12797 runpath_var=LD_RUN_PATH 12798 ;; 12799 siemens) 12800 need_lib_prefix=no 12801 ;; 12802 motorola) 12803 need_lib_prefix=no 12804 need_version=no 12805 shlibpath_overrides_runpath=no 12806 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12807 ;; 12808 esac 12809 ;; 12810 12811sysv4*MP*) 12812 if test -d /usr/nec; then 12813 version_type=linux # correct to gnu/linux during the next big refactor 12814 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12815 soname_spec='$libname$shared_ext.$major' 12816 shlibpath_var=LD_LIBRARY_PATH 12817 fi 12818 ;; 12819 12820sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12821 version_type=sco 12822 need_lib_prefix=no 12823 need_version=no 12824 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12825 soname_spec='$libname$release$shared_ext$major' 12826 shlibpath_var=LD_LIBRARY_PATH 12827 shlibpath_overrides_runpath=yes 12828 hardcode_into_libs=yes 12829 if test yes = "$with_gnu_ld"; then 12830 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12831 else 12832 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12833 case $host_os in 12834 sco3.2v5*) 12835 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12836 ;; 12837 esac 12838 fi 12839 sys_lib_dlsearch_path_spec='/usr/lib' 12840 ;; 12841 12842tpf*) 12843 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12844 version_type=linux # correct to gnu/linux during the next big refactor 12845 need_lib_prefix=no 12846 need_version=no 12847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12848 shlibpath_var=LD_LIBRARY_PATH 12849 shlibpath_overrides_runpath=no 12850 hardcode_into_libs=yes 12851 ;; 12852 12853uts4*) 12854 version_type=linux # correct to gnu/linux during the next big refactor 12855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12856 soname_spec='$libname$release$shared_ext$major' 12857 shlibpath_var=LD_LIBRARY_PATH 12858 ;; 12859 12860*) 12861 dynamic_linker=no 12862 ;; 12863esac 12864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12865$as_echo "$dynamic_linker" >&6; } 12866test no = "$dynamic_linker" && can_build_shared=no 12867 12868variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12869if test yes = "$GCC"; then 12870 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12871fi 12872 12873if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12874 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12875fi 12876 12877if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12878 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12879fi 12880 12881# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12882configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12883 12884# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12885func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12886 12887# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12888configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12987$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12988hardcode_action= 12989if test -n "$hardcode_libdir_flag_spec" || 12990 test -n "$runpath_var" || 12991 test yes = "$hardcode_automatic"; then 12992 12993 # We can hardcode non-existent directories. 12994 if test no != "$hardcode_direct" && 12995 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12996 # have to relink, otherwise we might link with an installed library 12997 # when we should be linking with a yet-to-be-installed one 12998 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12999 test no != "$hardcode_minus_L"; then 13000 # Linking always hardcodes the temporary library directory. 13001 hardcode_action=relink 13002 else 13003 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13004 hardcode_action=immediate 13005 fi 13006else 13007 # We cannot hardcode anything, or else we can only hardcode existing 13008 # directories. 13009 hardcode_action=unsupported 13010fi 13011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13012$as_echo "$hardcode_action" >&6; } 13013 13014if test relink = "$hardcode_action" || 13015 test yes = "$inherit_rpath"; then 13016 # Fast installation is not supported 13017 enable_fast_install=no 13018elif test yes = "$shlibpath_overrides_runpath" || 13019 test no = "$enable_shared"; then 13020 # Fast installation is not necessary 13021 enable_fast_install=needless 13022fi 13023 13024 13025 13026 13027 13028 13029 if test yes != "$enable_dlopen"; then 13030 enable_dlopen=unknown 13031 enable_dlopen_self=unknown 13032 enable_dlopen_self_static=unknown 13033else 13034 lt_cv_dlopen=no 13035 lt_cv_dlopen_libs= 13036 13037 case $host_os in 13038 beos*) 13039 lt_cv_dlopen=load_add_on 13040 lt_cv_dlopen_libs= 13041 lt_cv_dlopen_self=yes 13042 ;; 13043 13044 mingw* | pw32* | cegcc*) 13045 lt_cv_dlopen=LoadLibrary 13046 lt_cv_dlopen_libs= 13047 ;; 13048 13049 cygwin*) 13050 lt_cv_dlopen=dlopen 13051 lt_cv_dlopen_libs= 13052 ;; 13053 13054 darwin*) 13055 # if libdl is installed we need to link against it 13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13057$as_echo_n "checking for dlopen in -ldl... " >&6; } 13058if ${ac_cv_lib_dl_dlopen+:} false; then : 13059 $as_echo_n "(cached) " >&6 13060else 13061 ac_check_lib_save_LIBS=$LIBS 13062LIBS="-ldl $LIBS" 13063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13064/* end confdefs.h. */ 13065 13066/* Override any GCC internal prototype to avoid an error. 13067 Use char because int might match the return type of a GCC 13068 builtin and then its argument prototype would still apply. */ 13069#ifdef __cplusplus 13070extern "C" 13071#endif 13072char dlopen (); 13073int 13074main () 13075{ 13076return dlopen (); 13077 ; 13078 return 0; 13079} 13080_ACEOF 13081if ac_fn_c_try_link "$LINENO"; then : 13082 ac_cv_lib_dl_dlopen=yes 13083else 13084 ac_cv_lib_dl_dlopen=no 13085fi 13086rm -f core conftest.err conftest.$ac_objext \ 13087 conftest$ac_exeext conftest.$ac_ext 13088LIBS=$ac_check_lib_save_LIBS 13089fi 13090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13091$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13092if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13093 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13094else 13095 13096 lt_cv_dlopen=dyld 13097 lt_cv_dlopen_libs= 13098 lt_cv_dlopen_self=yes 13099 13100fi 13101 13102 ;; 13103 13104 tpf*) 13105 # Don't try to run any link tests for TPF. We know it's impossible 13106 # because TPF is a cross-compiler, and we know how we open DSOs. 13107 lt_cv_dlopen=dlopen 13108 lt_cv_dlopen_libs= 13109 lt_cv_dlopen_self=no 13110 ;; 13111 13112 *) 13113 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13114if test "x$ac_cv_func_shl_load" = xyes; then : 13115 lt_cv_dlopen=shl_load 13116else 13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13118$as_echo_n "checking for shl_load in -ldld... " >&6; } 13119if ${ac_cv_lib_dld_shl_load+:} false; then : 13120 $as_echo_n "(cached) " >&6 13121else 13122 ac_check_lib_save_LIBS=$LIBS 13123LIBS="-ldld $LIBS" 13124cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13125/* end confdefs.h. */ 13126 13127/* Override any GCC internal prototype to avoid an error. 13128 Use char because int might match the return type of a GCC 13129 builtin and then its argument prototype would still apply. */ 13130#ifdef __cplusplus 13131extern "C" 13132#endif 13133char shl_load (); 13134int 13135main () 13136{ 13137return shl_load (); 13138 ; 13139 return 0; 13140} 13141_ACEOF 13142if ac_fn_c_try_link "$LINENO"; then : 13143 ac_cv_lib_dld_shl_load=yes 13144else 13145 ac_cv_lib_dld_shl_load=no 13146fi 13147rm -f core conftest.err conftest.$ac_objext \ 13148 conftest$ac_exeext conftest.$ac_ext 13149LIBS=$ac_check_lib_save_LIBS 13150fi 13151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13152$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13153if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13154 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13155else 13156 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13157if test "x$ac_cv_func_dlopen" = xyes; then : 13158 lt_cv_dlopen=dlopen 13159else 13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13161$as_echo_n "checking for dlopen in -ldl... " >&6; } 13162if ${ac_cv_lib_dl_dlopen+:} false; then : 13163 $as_echo_n "(cached) " >&6 13164else 13165 ac_check_lib_save_LIBS=$LIBS 13166LIBS="-ldl $LIBS" 13167cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13168/* end confdefs.h. */ 13169 13170/* Override any GCC internal prototype to avoid an error. 13171 Use char because int might match the return type of a GCC 13172 builtin and then its argument prototype would still apply. */ 13173#ifdef __cplusplus 13174extern "C" 13175#endif 13176char dlopen (); 13177int 13178main () 13179{ 13180return dlopen (); 13181 ; 13182 return 0; 13183} 13184_ACEOF 13185if ac_fn_c_try_link "$LINENO"; then : 13186 ac_cv_lib_dl_dlopen=yes 13187else 13188 ac_cv_lib_dl_dlopen=no 13189fi 13190rm -f core conftest.err conftest.$ac_objext \ 13191 conftest$ac_exeext conftest.$ac_ext 13192LIBS=$ac_check_lib_save_LIBS 13193fi 13194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13195$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13196if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13197 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13198else 13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13200$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13201if ${ac_cv_lib_svld_dlopen+:} false; then : 13202 $as_echo_n "(cached) " >&6 13203else 13204 ac_check_lib_save_LIBS=$LIBS 13205LIBS="-lsvld $LIBS" 13206cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13207/* end confdefs.h. */ 13208 13209/* Override any GCC internal prototype to avoid an error. 13210 Use char because int might match the return type of a GCC 13211 builtin and then its argument prototype would still apply. */ 13212#ifdef __cplusplus 13213extern "C" 13214#endif 13215char dlopen (); 13216int 13217main () 13218{ 13219return dlopen (); 13220 ; 13221 return 0; 13222} 13223_ACEOF 13224if ac_fn_c_try_link "$LINENO"; then : 13225 ac_cv_lib_svld_dlopen=yes 13226else 13227 ac_cv_lib_svld_dlopen=no 13228fi 13229rm -f core conftest.err conftest.$ac_objext \ 13230 conftest$ac_exeext conftest.$ac_ext 13231LIBS=$ac_check_lib_save_LIBS 13232fi 13233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13234$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13235if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13236 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13237else 13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13239$as_echo_n "checking for dld_link in -ldld... " >&6; } 13240if ${ac_cv_lib_dld_dld_link+:} false; then : 13241 $as_echo_n "(cached) " >&6 13242else 13243 ac_check_lib_save_LIBS=$LIBS 13244LIBS="-ldld $LIBS" 13245cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13246/* end confdefs.h. */ 13247 13248/* Override any GCC internal prototype to avoid an error. 13249 Use char because int might match the return type of a GCC 13250 builtin and then its argument prototype would still apply. */ 13251#ifdef __cplusplus 13252extern "C" 13253#endif 13254char dld_link (); 13255int 13256main () 13257{ 13258return dld_link (); 13259 ; 13260 return 0; 13261} 13262_ACEOF 13263if ac_fn_c_try_link "$LINENO"; then : 13264 ac_cv_lib_dld_dld_link=yes 13265else 13266 ac_cv_lib_dld_dld_link=no 13267fi 13268rm -f core conftest.err conftest.$ac_objext \ 13269 conftest$ac_exeext conftest.$ac_ext 13270LIBS=$ac_check_lib_save_LIBS 13271fi 13272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13273$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13274if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13275 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13276fi 13277 13278 13279fi 13280 13281 13282fi 13283 13284 13285fi 13286 13287 13288fi 13289 13290 13291fi 13292 13293 ;; 13294 esac 13295 13296 if test no = "$lt_cv_dlopen"; then 13297 enable_dlopen=no 13298 else 13299 enable_dlopen=yes 13300 fi 13301 13302 case $lt_cv_dlopen in 13303 dlopen) 13304 save_CPPFLAGS=$CPPFLAGS 13305 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13306 13307 save_LDFLAGS=$LDFLAGS 13308 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13309 13310 save_LIBS=$LIBS 13311 LIBS="$lt_cv_dlopen_libs $LIBS" 13312 13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13314$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13315if ${lt_cv_dlopen_self+:} false; then : 13316 $as_echo_n "(cached) " >&6 13317else 13318 if test yes = "$cross_compiling"; then : 13319 lt_cv_dlopen_self=cross 13320else 13321 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13322 lt_status=$lt_dlunknown 13323 cat > conftest.$ac_ext <<_LT_EOF 13324#line $LINENO "configure" 13325#include "confdefs.h" 13326 13327#if HAVE_DLFCN_H 13328#include <dlfcn.h> 13329#endif 13330 13331#include <stdio.h> 13332 13333#ifdef RTLD_GLOBAL 13334# define LT_DLGLOBAL RTLD_GLOBAL 13335#else 13336# ifdef DL_GLOBAL 13337# define LT_DLGLOBAL DL_GLOBAL 13338# else 13339# define LT_DLGLOBAL 0 13340# endif 13341#endif 13342 13343/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13344 find out it does not work in some platform. */ 13345#ifndef LT_DLLAZY_OR_NOW 13346# ifdef RTLD_LAZY 13347# define LT_DLLAZY_OR_NOW RTLD_LAZY 13348# else 13349# ifdef DL_LAZY 13350# define LT_DLLAZY_OR_NOW DL_LAZY 13351# else 13352# ifdef RTLD_NOW 13353# define LT_DLLAZY_OR_NOW RTLD_NOW 13354# else 13355# ifdef DL_NOW 13356# define LT_DLLAZY_OR_NOW DL_NOW 13357# else 13358# define LT_DLLAZY_OR_NOW 0 13359# endif 13360# endif 13361# endif 13362# endif 13363#endif 13364 13365/* When -fvisibility=hidden is used, assume the code has been annotated 13366 correspondingly for the symbols needed. */ 13367#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13368int fnord () __attribute__((visibility("default"))); 13369#endif 13370 13371int fnord () { return 42; } 13372int main () 13373{ 13374 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13375 int status = $lt_dlunknown; 13376 13377 if (self) 13378 { 13379 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13380 else 13381 { 13382 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13383 else puts (dlerror ()); 13384 } 13385 /* dlclose (self); */ 13386 } 13387 else 13388 puts (dlerror ()); 13389 13390 return status; 13391} 13392_LT_EOF 13393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13394 (eval $ac_link) 2>&5 13395 ac_status=$? 13396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13397 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13398 (./conftest; exit; ) >&5 2>/dev/null 13399 lt_status=$? 13400 case x$lt_status in 13401 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13402 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13403 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13404 esac 13405 else : 13406 # compilation failed 13407 lt_cv_dlopen_self=no 13408 fi 13409fi 13410rm -fr conftest* 13411 13412 13413fi 13414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13415$as_echo "$lt_cv_dlopen_self" >&6; } 13416 13417 if test yes = "$lt_cv_dlopen_self"; then 13418 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13420$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13421if ${lt_cv_dlopen_self_static+:} false; then : 13422 $as_echo_n "(cached) " >&6 13423else 13424 if test yes = "$cross_compiling"; then : 13425 lt_cv_dlopen_self_static=cross 13426else 13427 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13428 lt_status=$lt_dlunknown 13429 cat > conftest.$ac_ext <<_LT_EOF 13430#line $LINENO "configure" 13431#include "confdefs.h" 13432 13433#if HAVE_DLFCN_H 13434#include <dlfcn.h> 13435#endif 13436 13437#include <stdio.h> 13438 13439#ifdef RTLD_GLOBAL 13440# define LT_DLGLOBAL RTLD_GLOBAL 13441#else 13442# ifdef DL_GLOBAL 13443# define LT_DLGLOBAL DL_GLOBAL 13444# else 13445# define LT_DLGLOBAL 0 13446# endif 13447#endif 13448 13449/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13450 find out it does not work in some platform. */ 13451#ifndef LT_DLLAZY_OR_NOW 13452# ifdef RTLD_LAZY 13453# define LT_DLLAZY_OR_NOW RTLD_LAZY 13454# else 13455# ifdef DL_LAZY 13456# define LT_DLLAZY_OR_NOW DL_LAZY 13457# else 13458# ifdef RTLD_NOW 13459# define LT_DLLAZY_OR_NOW RTLD_NOW 13460# else 13461# ifdef DL_NOW 13462# define LT_DLLAZY_OR_NOW DL_NOW 13463# else 13464# define LT_DLLAZY_OR_NOW 0 13465# endif 13466# endif 13467# endif 13468# endif 13469#endif 13470 13471/* When -fvisibility=hidden is used, assume the code has been annotated 13472 correspondingly for the symbols needed. */ 13473#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13474int fnord () __attribute__((visibility("default"))); 13475#endif 13476 13477int fnord () { return 42; } 13478int main () 13479{ 13480 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13481 int status = $lt_dlunknown; 13482 13483 if (self) 13484 { 13485 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13486 else 13487 { 13488 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13489 else puts (dlerror ()); 13490 } 13491 /* dlclose (self); */ 13492 } 13493 else 13494 puts (dlerror ()); 13495 13496 return status; 13497} 13498_LT_EOF 13499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13500 (eval $ac_link) 2>&5 13501 ac_status=$? 13502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13503 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13504 (./conftest; exit; ) >&5 2>/dev/null 13505 lt_status=$? 13506 case x$lt_status in 13507 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13508 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13509 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13510 esac 13511 else : 13512 # compilation failed 13513 lt_cv_dlopen_self_static=no 13514 fi 13515fi 13516rm -fr conftest* 13517 13518 13519fi 13520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13521$as_echo "$lt_cv_dlopen_self_static" >&6; } 13522 fi 13523 13524 CPPFLAGS=$save_CPPFLAGS 13525 LDFLAGS=$save_LDFLAGS 13526 LIBS=$save_LIBS 13527 ;; 13528 esac 13529 13530 case $lt_cv_dlopen_self in 13531 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13532 *) enable_dlopen_self=unknown ;; 13533 esac 13534 13535 case $lt_cv_dlopen_self_static in 13536 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13537 *) enable_dlopen_self_static=unknown ;; 13538 esac 13539fi 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557striplib= 13558old_striplib= 13559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13560$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13561if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13562 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13563 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13565$as_echo "yes" >&6; } 13566else 13567# FIXME - insert some real tests, host_os isn't really good enough 13568 case $host_os in 13569 darwin*) 13570 if test -n "$STRIP"; then 13571 striplib="$STRIP -x" 13572 old_striplib="$STRIP -S" 13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13574$as_echo "yes" >&6; } 13575 else 13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13577$as_echo "no" >&6; } 13578 fi 13579 ;; 13580 *) 13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13582$as_echo "no" >&6; } 13583 ;; 13584 esac 13585fi 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 # Report what library types will actually be built 13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13600$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13602$as_echo "$can_build_shared" >&6; } 13603 13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13605$as_echo_n "checking whether to build shared libraries... " >&6; } 13606 test no = "$can_build_shared" && enable_shared=no 13607 13608 # On AIX, shared libraries and static libraries use the same namespace, and 13609 # are all built from PIC. 13610 case $host_os in 13611 aix3*) 13612 test yes = "$enable_shared" && enable_static=no 13613 if test -n "$RANLIB"; then 13614 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13615 postinstall_cmds='$RANLIB $lib' 13616 fi 13617 ;; 13618 13619 aix[4-9]*) 13620 if test ia64 != "$host_cpu"; then 13621 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13622 yes,aix,yes) ;; # shared object as lib.so file only 13623 yes,svr4,*) ;; # shared object as lib.so archive member only 13624 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13625 esac 13626 fi 13627 ;; 13628 esac 13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13630$as_echo "$enable_shared" >&6; } 13631 13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13633$as_echo_n "checking whether to build static libraries... " >&6; } 13634 # Make sure either enable_shared or enable_static is yes. 13635 test yes = "$enable_shared" || enable_static=yes 13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13637$as_echo "$enable_static" >&6; } 13638 13639 13640 13641 13642fi 13643ac_ext=c 13644ac_cpp='$CPP $CPPFLAGS' 13645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13647ac_compiler_gnu=$ac_cv_c_compiler_gnu 13648 13649CC=$lt_save_CC 13650 13651 if test -n "$CXX" && ( test no != "$CXX" && 13652 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13653 (test g++ != "$CXX"))); then 13654 ac_ext=cpp 13655ac_cpp='$CXXCPP $CPPFLAGS' 13656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13660$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13661if test -z "$CXXCPP"; then 13662 if ${ac_cv_prog_CXXCPP+:} false; then : 13663 $as_echo_n "(cached) " >&6 13664else 13665 # Double quotes because CXXCPP needs to be expanded 13666 for CXXCPP in "$CXX -E" "/lib/cpp" 13667 do 13668 ac_preproc_ok=false 13669for ac_cxx_preproc_warn_flag in '' yes 13670do 13671 # Use a header file that comes with gcc, so configuring glibc 13672 # with a fresh cross-compiler works. 13673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13674 # <limits.h> exists even on freestanding compilers. 13675 # On the NeXT, cc -E runs the code through the compiler's parser, 13676 # not just through cpp. "Syntax error" is here to catch this case. 13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13678/* end confdefs.h. */ 13679#ifdef __STDC__ 13680# include <limits.h> 13681#else 13682# include <assert.h> 13683#endif 13684 Syntax error 13685_ACEOF 13686if ac_fn_cxx_try_cpp "$LINENO"; then : 13687 13688else 13689 # Broken: fails on valid input. 13690continue 13691fi 13692rm -f conftest.err conftest.i conftest.$ac_ext 13693 13694 # OK, works on sane cases. Now check whether nonexistent headers 13695 # can be detected and how. 13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13697/* end confdefs.h. */ 13698#include <ac_nonexistent.h> 13699_ACEOF 13700if ac_fn_cxx_try_cpp "$LINENO"; then : 13701 # Broken: success on invalid input. 13702continue 13703else 13704 # Passes both tests. 13705ac_preproc_ok=: 13706break 13707fi 13708rm -f conftest.err conftest.i conftest.$ac_ext 13709 13710done 13711# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13712rm -f conftest.i conftest.err conftest.$ac_ext 13713if $ac_preproc_ok; then : 13714 break 13715fi 13716 13717 done 13718 ac_cv_prog_CXXCPP=$CXXCPP 13719 13720fi 13721 CXXCPP=$ac_cv_prog_CXXCPP 13722else 13723 ac_cv_prog_CXXCPP=$CXXCPP 13724fi 13725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13726$as_echo "$CXXCPP" >&6; } 13727ac_preproc_ok=false 13728for ac_cxx_preproc_warn_flag in '' yes 13729do 13730 # Use a header file that comes with gcc, so configuring glibc 13731 # with a fresh cross-compiler works. 13732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13733 # <limits.h> exists even on freestanding compilers. 13734 # On the NeXT, cc -E runs the code through the compiler's parser, 13735 # not just through cpp. "Syntax error" is here to catch this case. 13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13737/* end confdefs.h. */ 13738#ifdef __STDC__ 13739# include <limits.h> 13740#else 13741# include <assert.h> 13742#endif 13743 Syntax error 13744_ACEOF 13745if ac_fn_cxx_try_cpp "$LINENO"; then : 13746 13747else 13748 # Broken: fails on valid input. 13749continue 13750fi 13751rm -f conftest.err conftest.i conftest.$ac_ext 13752 13753 # OK, works on sane cases. Now check whether nonexistent headers 13754 # can be detected and how. 13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13756/* end confdefs.h. */ 13757#include <ac_nonexistent.h> 13758_ACEOF 13759if ac_fn_cxx_try_cpp "$LINENO"; then : 13760 # Broken: success on invalid input. 13761continue 13762else 13763 # Passes both tests. 13764ac_preproc_ok=: 13765break 13766fi 13767rm -f conftest.err conftest.i conftest.$ac_ext 13768 13769done 13770# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13771rm -f conftest.i conftest.err conftest.$ac_ext 13772if $ac_preproc_ok; then : 13773 13774else 13775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13777as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13778See \`config.log' for more details" "$LINENO" 5; } 13779fi 13780 13781ac_ext=c 13782ac_cpp='$CPP $CPPFLAGS' 13783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13785ac_compiler_gnu=$ac_cv_c_compiler_gnu 13786 13787else 13788 _lt_caught_CXX_error=yes 13789fi 13790 13791ac_ext=cpp 13792ac_cpp='$CXXCPP $CPPFLAGS' 13793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13796 13797archive_cmds_need_lc_CXX=no 13798allow_undefined_flag_CXX= 13799always_export_symbols_CXX=no 13800archive_expsym_cmds_CXX= 13801compiler_needs_object_CXX=no 13802export_dynamic_flag_spec_CXX= 13803hardcode_direct_CXX=no 13804hardcode_direct_absolute_CXX=no 13805hardcode_libdir_flag_spec_CXX= 13806hardcode_libdir_separator_CXX= 13807hardcode_minus_L_CXX=no 13808hardcode_shlibpath_var_CXX=unsupported 13809hardcode_automatic_CXX=no 13810inherit_rpath_CXX=no 13811module_cmds_CXX= 13812module_expsym_cmds_CXX= 13813link_all_deplibs_CXX=unknown 13814old_archive_cmds_CXX=$old_archive_cmds 13815reload_flag_CXX=$reload_flag 13816reload_cmds_CXX=$reload_cmds 13817no_undefined_flag_CXX= 13818whole_archive_flag_spec_CXX= 13819enable_shared_with_static_runtimes_CXX=no 13820 13821# Source file extension for C++ test sources. 13822ac_ext=cpp 13823 13824# Object file extension for compiled C++ test sources. 13825objext=o 13826objext_CXX=$objext 13827 13828# No sense in running all these tests if we already determined that 13829# the CXX compiler isn't working. Some variables (like enable_shared) 13830# are currently assumed to apply to all compilers on this platform, 13831# and will be corrupted by setting them based on a non-working compiler. 13832if test yes != "$_lt_caught_CXX_error"; then 13833 # Code to be used in simple compile tests 13834 lt_simple_compile_test_code="int some_variable = 0;" 13835 13836 # Code to be used in simple link tests 13837 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13838 13839 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13840 13841 13842 13843 13844 13845 13846# If no C compiler was specified, use CC. 13847LTCC=${LTCC-"$CC"} 13848 13849# If no C compiler flags were specified, use CFLAGS. 13850LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13851 13852# Allow CC to be a program name with arguments. 13853compiler=$CC 13854 13855 13856 # save warnings/boilerplate of simple test code 13857 ac_outfile=conftest.$ac_objext 13858echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13859eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13860_lt_compiler_boilerplate=`cat conftest.err` 13861$RM conftest* 13862 13863 ac_outfile=conftest.$ac_objext 13864echo "$lt_simple_link_test_code" >conftest.$ac_ext 13865eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13866_lt_linker_boilerplate=`cat conftest.err` 13867$RM -r conftest* 13868 13869 13870 # Allow CC to be a program name with arguments. 13871 lt_save_CC=$CC 13872 lt_save_CFLAGS=$CFLAGS 13873 lt_save_LD=$LD 13874 lt_save_GCC=$GCC 13875 GCC=$GXX 13876 lt_save_with_gnu_ld=$with_gnu_ld 13877 lt_save_path_LD=$lt_cv_path_LD 13878 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13879 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13880 else 13881 $as_unset lt_cv_prog_gnu_ld 13882 fi 13883 if test -n "${lt_cv_path_LDCXX+set}"; then 13884 lt_cv_path_LD=$lt_cv_path_LDCXX 13885 else 13886 $as_unset lt_cv_path_LD 13887 fi 13888 test -z "${LDCXX+set}" || LD=$LDCXX 13889 CC=${CXX-"c++"} 13890 CFLAGS=$CXXFLAGS 13891 compiler=$CC 13892 compiler_CXX=$CC 13893 func_cc_basename $compiler 13894cc_basename=$func_cc_basename_result 13895 13896 13897 if test -n "$compiler"; then 13898 # We don't want -fno-exception when compiling C++ code, so set the 13899 # no_builtin_flag separately 13900 if test yes = "$GXX"; then 13901 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13902 else 13903 lt_prog_compiler_no_builtin_flag_CXX= 13904 fi 13905 13906 if test yes = "$GXX"; then 13907 # Set up default GNU C++ configuration 13908 13909 13910 13911# Check whether --with-gnu-ld was given. 13912if test "${with_gnu_ld+set}" = set; then : 13913 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13914else 13915 with_gnu_ld=no 13916fi 13917 13918ac_prog=ld 13919if test yes = "$GCC"; then 13920 # Check if gcc -print-prog-name=ld gives a path. 13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13922$as_echo_n "checking for ld used by $CC... " >&6; } 13923 case $host in 13924 *-*-mingw*) 13925 # gcc leaves a trailing carriage return, which upsets mingw 13926 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13927 *) 13928 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13929 esac 13930 case $ac_prog in 13931 # Accept absolute paths. 13932 [\\/]* | ?:[\\/]*) 13933 re_direlt='/[^/][^/]*/\.\./' 13934 # Canonicalize the pathname of ld 13935 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13936 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13937 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13938 done 13939 test -z "$LD" && LD=$ac_prog 13940 ;; 13941 "") 13942 # If it fails, then pretend we aren't using GCC. 13943 ac_prog=ld 13944 ;; 13945 *) 13946 # If it is relative, then search for the first ld in PATH. 13947 with_gnu_ld=unknown 13948 ;; 13949 esac 13950elif test yes = "$with_gnu_ld"; then 13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13952$as_echo_n "checking for GNU ld... " >&6; } 13953else 13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13955$as_echo_n "checking for non-GNU ld... " >&6; } 13956fi 13957if ${lt_cv_path_LD+:} false; then : 13958 $as_echo_n "(cached) " >&6 13959else 13960 if test -z "$LD"; then 13961 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13962 for ac_dir in $PATH; do 13963 IFS=$lt_save_ifs 13964 test -z "$ac_dir" && ac_dir=. 13965 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13966 lt_cv_path_LD=$ac_dir/$ac_prog 13967 # Check to see if the program is GNU ld. I'd rather use --version, 13968 # but apparently some variants of GNU ld only accept -v. 13969 # Break only if it was the GNU/non-GNU ld that we prefer. 13970 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13971 *GNU* | *'with BFD'*) 13972 test no != "$with_gnu_ld" && break 13973 ;; 13974 *) 13975 test yes != "$with_gnu_ld" && break 13976 ;; 13977 esac 13978 fi 13979 done 13980 IFS=$lt_save_ifs 13981else 13982 lt_cv_path_LD=$LD # Let the user override the test with a path. 13983fi 13984fi 13985 13986LD=$lt_cv_path_LD 13987if test -n "$LD"; then 13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13989$as_echo "$LD" >&6; } 13990else 13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13992$as_echo "no" >&6; } 13993fi 13994test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13996$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13997if ${lt_cv_prog_gnu_ld+:} false; then : 13998 $as_echo_n "(cached) " >&6 13999else 14000 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14001case `$LD -v 2>&1 </dev/null` in 14002*GNU* | *'with BFD'*) 14003 lt_cv_prog_gnu_ld=yes 14004 ;; 14005*) 14006 lt_cv_prog_gnu_ld=no 14007 ;; 14008esac 14009fi 14010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14011$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14012with_gnu_ld=$lt_cv_prog_gnu_ld 14013 14014 14015 14016 14017 14018 14019 14020 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14021 # archiving commands below assume that GNU ld is being used. 14022 if test yes = "$with_gnu_ld"; then 14023 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14024 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' 14025 14026 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14027 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14028 14029 # If archive_cmds runs LD, not CC, wlarc should be empty 14030 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14031 # investigate it a little bit more. (MM) 14032 wlarc='$wl' 14033 14034 # ancient GNU ld didn't support --whole-archive et. al. 14035 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14036 $GREP 'no-whole-archive' > /dev/null; then 14037 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14038 else 14039 whole_archive_flag_spec_CXX= 14040 fi 14041 else 14042 with_gnu_ld=no 14043 wlarc= 14044 14045 # A generic and very simple default shared library creation 14046 # command for GNU C++ for the case where it uses the native 14047 # linker, instead of GNU ld. If possible, this setting should 14048 # overridden to take advantage of the native linker features on 14049 # the platform it is being used on. 14050 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14051 fi 14052 14053 # Commands to make compiler produce verbose output that lists 14054 # what "hidden" libraries, object files and flags are used when 14055 # linking a shared library. 14056 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14057 14058 else 14059 GXX=no 14060 with_gnu_ld=no 14061 wlarc= 14062 fi 14063 14064 # PORTME: fill in a description of your system's C++ link characteristics 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14066$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14067 ld_shlibs_CXX=yes 14068 case $host_os in 14069 aix3*) 14070 # FIXME: insert proper C++ library support 14071 ld_shlibs_CXX=no 14072 ;; 14073 aix[4-9]*) 14074 if test ia64 = "$host_cpu"; then 14075 # On IA64, the linker does run time linking by default, so we don't 14076 # have to do anything special. 14077 aix_use_runtimelinking=no 14078 exp_sym_flag='-Bexport' 14079 no_entry_flag= 14080 else 14081 aix_use_runtimelinking=no 14082 14083 # Test if we are trying to use run time linking or normal 14084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14085 # have runtime linking enabled, and use it for executables. 14086 # For shared libraries, we enable/disable runtime linking 14087 # depending on the kind of the shared library created - 14088 # when "with_aix_soname,aix_use_runtimelinking" is: 14089 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14090 # "aix,yes" lib.so shared, rtl:yes, for executables 14091 # lib.a static archive 14092 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14093 # lib.a(lib.so.V) shared, rtl:no, for executables 14094 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14095 # lib.a(lib.so.V) shared, rtl:no 14096 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14097 # lib.a static archive 14098 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14099 for ld_flag in $LDFLAGS; do 14100 case $ld_flag in 14101 *-brtl*) 14102 aix_use_runtimelinking=yes 14103 break 14104 ;; 14105 esac 14106 done 14107 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14108 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14109 # so we don't have lib.a shared libs to link our executables. 14110 # We have to force runtime linking in this case. 14111 aix_use_runtimelinking=yes 14112 LDFLAGS="$LDFLAGS -Wl,-brtl" 14113 fi 14114 ;; 14115 esac 14116 14117 exp_sym_flag='-bexport' 14118 no_entry_flag='-bnoentry' 14119 fi 14120 14121 # When large executables or shared objects are built, AIX ld can 14122 # have problems creating the table of contents. If linking a library 14123 # or program results in "error TOC overflow" add -mminimal-toc to 14124 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14125 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14126 14127 archive_cmds_CXX='' 14128 hardcode_direct_CXX=yes 14129 hardcode_direct_absolute_CXX=yes 14130 hardcode_libdir_separator_CXX=':' 14131 link_all_deplibs_CXX=yes 14132 file_list_spec_CXX='$wl-f,' 14133 case $with_aix_soname,$aix_use_runtimelinking in 14134 aix,*) ;; # no import file 14135 svr4,* | *,yes) # use import file 14136 # The Import File defines what to hardcode. 14137 hardcode_direct_CXX=no 14138 hardcode_direct_absolute_CXX=no 14139 ;; 14140 esac 14141 14142 if test yes = "$GXX"; then 14143 case $host_os in aix4.[012]|aix4.[012].*) 14144 # We only want to do this on AIX 4.2 and lower, the check 14145 # below for broken collect2 doesn't work under 4.3+ 14146 collect2name=`$CC -print-prog-name=collect2` 14147 if test -f "$collect2name" && 14148 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14149 then 14150 # We have reworked collect2 14151 : 14152 else 14153 # We have old collect2 14154 hardcode_direct_CXX=unsupported 14155 # It fails to find uninstalled libraries when the uninstalled 14156 # path is not listed in the libpath. Setting hardcode_minus_L 14157 # to unsupported forces relinking 14158 hardcode_minus_L_CXX=yes 14159 hardcode_libdir_flag_spec_CXX='-L$libdir' 14160 hardcode_libdir_separator_CXX= 14161 fi 14162 esac 14163 shared_flag='-shared' 14164 if test yes = "$aix_use_runtimelinking"; then 14165 shared_flag=$shared_flag' $wl-G' 14166 fi 14167 # Need to ensure runtime linking is disabled for the traditional 14168 # shared library, or the linker may eventually find shared libraries 14169 # /with/ Import File - we do not want to mix them. 14170 shared_flag_aix='-shared' 14171 shared_flag_svr4='-shared $wl-G' 14172 else 14173 # not using gcc 14174 if test ia64 = "$host_cpu"; then 14175 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14176 # chokes on -Wl,-G. The following line is correct: 14177 shared_flag='-G' 14178 else 14179 if test yes = "$aix_use_runtimelinking"; then 14180 shared_flag='$wl-G' 14181 else 14182 shared_flag='$wl-bM:SRE' 14183 fi 14184 shared_flag_aix='$wl-bM:SRE' 14185 shared_flag_svr4='$wl-G' 14186 fi 14187 fi 14188 14189 export_dynamic_flag_spec_CXX='$wl-bexpall' 14190 # It seems that -bexpall does not export symbols beginning with 14191 # underscore (_), so it is better to generate a list of symbols to 14192 # export. 14193 always_export_symbols_CXX=yes 14194 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14195 # Warning - without using the other runtime loading flags (-brtl), 14196 # -berok will link without error, but may produce a broken library. 14197 # The "-G" linker flag allows undefined symbols. 14198 no_undefined_flag_CXX='-bernotok' 14199 # Determine the default libpath from the value encoded in an empty 14200 # executable. 14201 if test set = "${lt_cv_aix_libpath+set}"; then 14202 aix_libpath=$lt_cv_aix_libpath 14203else 14204 if ${lt_cv_aix_libpath__CXX+:} false; then : 14205 $as_echo_n "(cached) " >&6 14206else 14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14208/* end confdefs.h. */ 14209 14210int 14211main () 14212{ 14213 14214 ; 14215 return 0; 14216} 14217_ACEOF 14218if ac_fn_cxx_try_link "$LINENO"; then : 14219 14220 lt_aix_libpath_sed=' 14221 /Import File Strings/,/^$/ { 14222 /^0/ { 14223 s/^0 *\([^ ]*\) *$/\1/ 14224 p 14225 } 14226 }' 14227 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14228 # Check for a 64-bit object if we didn't find anything. 14229 if test -z "$lt_cv_aix_libpath__CXX"; then 14230 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14231 fi 14232fi 14233rm -f core conftest.err conftest.$ac_objext \ 14234 conftest$ac_exeext conftest.$ac_ext 14235 if test -z "$lt_cv_aix_libpath__CXX"; then 14236 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14237 fi 14238 14239fi 14240 14241 aix_libpath=$lt_cv_aix_libpath__CXX 14242fi 14243 14244 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14245 14246 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 14247 else 14248 if test ia64 = "$host_cpu"; then 14249 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14250 allow_undefined_flag_CXX="-z nodefs" 14251 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" 14252 else 14253 # Determine the default libpath from the value encoded in an 14254 # empty executable. 14255 if test set = "${lt_cv_aix_libpath+set}"; then 14256 aix_libpath=$lt_cv_aix_libpath 14257else 14258 if ${lt_cv_aix_libpath__CXX+:} false; then : 14259 $as_echo_n "(cached) " >&6 14260else 14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14262/* end confdefs.h. */ 14263 14264int 14265main () 14266{ 14267 14268 ; 14269 return 0; 14270} 14271_ACEOF 14272if ac_fn_cxx_try_link "$LINENO"; then : 14273 14274 lt_aix_libpath_sed=' 14275 /Import File Strings/,/^$/ { 14276 /^0/ { 14277 s/^0 *\([^ ]*\) *$/\1/ 14278 p 14279 } 14280 }' 14281 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14282 # Check for a 64-bit object if we didn't find anything. 14283 if test -z "$lt_cv_aix_libpath__CXX"; then 14284 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14285 fi 14286fi 14287rm -f core conftest.err conftest.$ac_objext \ 14288 conftest$ac_exeext conftest.$ac_ext 14289 if test -z "$lt_cv_aix_libpath__CXX"; then 14290 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14291 fi 14292 14293fi 14294 14295 aix_libpath=$lt_cv_aix_libpath__CXX 14296fi 14297 14298 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14299 # Warning - without using the other run time loading flags, 14300 # -berok will link without error, but may produce a broken library. 14301 no_undefined_flag_CXX=' $wl-bernotok' 14302 allow_undefined_flag_CXX=' $wl-berok' 14303 if test yes = "$with_gnu_ld"; then 14304 # We only use this code for GNU lds that support --whole-archive. 14305 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14306 else 14307 # Exported symbols can be pulled into shared objects from archives 14308 whole_archive_flag_spec_CXX='$convenience' 14309 fi 14310 archive_cmds_need_lc_CXX=yes 14311 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14312 # -brtl affects multiple linker settings, -berok does not and is overridden later 14313 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14314 if test svr4 != "$with_aix_soname"; then 14315 # This is similar to how AIX traditionally builds its shared 14316 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14317 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 14318 fi 14319 if test aix != "$with_aix_soname"; then 14320 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 14321 else 14322 # used by -dlpreopen to get the symbols 14323 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14324 fi 14325 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14326 fi 14327 fi 14328 ;; 14329 14330 beos*) 14331 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14332 allow_undefined_flag_CXX=unsupported 14333 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14334 # support --undefined. This deserves some investigation. FIXME 14335 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14336 else 14337 ld_shlibs_CXX=no 14338 fi 14339 ;; 14340 14341 chorus*) 14342 case $cc_basename in 14343 *) 14344 # FIXME: insert proper C++ library support 14345 ld_shlibs_CXX=no 14346 ;; 14347 esac 14348 ;; 14349 14350 cygwin* | mingw* | pw32* | cegcc*) 14351 case $GXX,$cc_basename in 14352 ,cl* | no,cl*) 14353 # Native MSVC 14354 # hardcode_libdir_flag_spec is actually meaningless, as there is 14355 # no search path for DLLs. 14356 hardcode_libdir_flag_spec_CXX=' ' 14357 allow_undefined_flag_CXX=unsupported 14358 always_export_symbols_CXX=yes 14359 file_list_spec_CXX='@' 14360 # Tell ltmain to make .lib files, not .a files. 14361 libext=lib 14362 # Tell ltmain to make .dll files, not .so files. 14363 shrext_cmds=.dll 14364 # FIXME: Setting linknames here is a bad hack. 14365 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14366 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14367 cp "$export_symbols" "$output_objdir/$soname.def"; 14368 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14369 else 14370 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14371 fi~ 14372 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14373 linknames=' 14374 # The linker will not automatically build a static lib if we build a DLL. 14375 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14376 enable_shared_with_static_runtimes_CXX=yes 14377 # Don't use ranlib 14378 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14379 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14380 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14381 case $lt_outputfile in 14382 *.exe|*.EXE) ;; 14383 *) 14384 lt_outputfile=$lt_outputfile.exe 14385 lt_tool_outputfile=$lt_tool_outputfile.exe 14386 ;; 14387 esac~ 14388 func_to_tool_file "$lt_outputfile"~ 14389 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14390 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14391 $RM "$lt_outputfile.manifest"; 14392 fi' 14393 ;; 14394 *) 14395 # g++ 14396 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14397 # as there is no search path for DLLs. 14398 hardcode_libdir_flag_spec_CXX='-L$libdir' 14399 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14400 allow_undefined_flag_CXX=unsupported 14401 always_export_symbols_CXX=no 14402 enable_shared_with_static_runtimes_CXX=yes 14403 14404 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14405 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' 14406 # If the export-symbols file already is a .def file, use it as 14407 # is; otherwise, prepend EXPORTS... 14408 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14409 cp $export_symbols $output_objdir/$soname.def; 14410 else 14411 echo EXPORTS > $output_objdir/$soname.def; 14412 cat $export_symbols >> $output_objdir/$soname.def; 14413 fi~ 14414 $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' 14415 else 14416 ld_shlibs_CXX=no 14417 fi 14418 ;; 14419 esac 14420 ;; 14421 darwin* | rhapsody*) 14422 14423 14424 archive_cmds_need_lc_CXX=no 14425 hardcode_direct_CXX=no 14426 hardcode_automatic_CXX=yes 14427 hardcode_shlibpath_var_CXX=unsupported 14428 if test yes = "$lt_cv_ld_force_load"; then 14429 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\"`' 14430 14431 else 14432 whole_archive_flag_spec_CXX='' 14433 fi 14434 link_all_deplibs_CXX=yes 14435 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14436 case $cc_basename in 14437 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14438 *) _lt_dar_can_shared=$GCC ;; 14439 esac 14440 if test yes = "$_lt_dar_can_shared"; then 14441 output_verbose_link_cmd=func_echo_all 14442 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" 14443 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14444 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" 14445 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" 14446 if test yes != "$lt_cv_apple_cc_single_mod"; then 14447 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" 14448 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" 14449 fi 14450 14451 else 14452 ld_shlibs_CXX=no 14453 fi 14454 14455 ;; 14456 14457 os2*) 14458 hardcode_libdir_flag_spec_CXX='-L$libdir' 14459 hardcode_minus_L_CXX=yes 14460 allow_undefined_flag_CXX=unsupported 14461 shrext_cmds=.dll 14462 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14463 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14464 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14465 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14466 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14467 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14468 emximp -o $lib $output_objdir/$libname.def' 14469 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14470 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14471 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14472 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14473 prefix_cmds="$SED"~ 14474 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14475 prefix_cmds="$prefix_cmds -e 1d"; 14476 fi~ 14477 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14478 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14479 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14480 emximp -o $lib $output_objdir/$libname.def' 14481 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14482 enable_shared_with_static_runtimes_CXX=yes 14483 ;; 14484 14485 dgux*) 14486 case $cc_basename in 14487 ec++*) 14488 # FIXME: insert proper C++ library support 14489 ld_shlibs_CXX=no 14490 ;; 14491 ghcx*) 14492 # Green Hills C++ Compiler 14493 # FIXME: insert proper C++ library support 14494 ld_shlibs_CXX=no 14495 ;; 14496 *) 14497 # FIXME: insert proper C++ library support 14498 ld_shlibs_CXX=no 14499 ;; 14500 esac 14501 ;; 14502 14503 freebsd2.*) 14504 # C++ shared libraries reported to be fairly broken before 14505 # switch to ELF 14506 ld_shlibs_CXX=no 14507 ;; 14508 14509 freebsd-elf*) 14510 archive_cmds_need_lc_CXX=no 14511 ;; 14512 14513 freebsd* | dragonfly*) 14514 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14515 # conventions 14516 ld_shlibs_CXX=yes 14517 ;; 14518 14519 haiku*) 14520 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14521 link_all_deplibs_CXX=yes 14522 ;; 14523 14524 hpux9*) 14525 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14526 hardcode_libdir_separator_CXX=: 14527 export_dynamic_flag_spec_CXX='$wl-E' 14528 hardcode_direct_CXX=yes 14529 hardcode_minus_L_CXX=yes # Not in the search PATH, 14530 # but as the default 14531 # location of the library. 14532 14533 case $cc_basename in 14534 CC*) 14535 # FIXME: insert proper C++ library support 14536 ld_shlibs_CXX=no 14537 ;; 14538 aCC*) 14539 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14540 # Commands to make compiler produce verbose output that lists 14541 # what "hidden" libraries, object files and flags are used when 14542 # linking a shared library. 14543 # 14544 # There doesn't appear to be a way to prevent this compiler from 14545 # explicitly linking system object files so we need to strip them 14546 # from the output so that they don't get included in the library 14547 # dependencies. 14548 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"' 14549 ;; 14550 *) 14551 if test yes = "$GXX"; then 14552 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14553 else 14554 # FIXME: insert proper C++ library support 14555 ld_shlibs_CXX=no 14556 fi 14557 ;; 14558 esac 14559 ;; 14560 14561 hpux10*|hpux11*) 14562 if test no = "$with_gnu_ld"; then 14563 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14564 hardcode_libdir_separator_CXX=: 14565 14566 case $host_cpu in 14567 hppa*64*|ia64*) 14568 ;; 14569 *) 14570 export_dynamic_flag_spec_CXX='$wl-E' 14571 ;; 14572 esac 14573 fi 14574 case $host_cpu in 14575 hppa*64*|ia64*) 14576 hardcode_direct_CXX=no 14577 hardcode_shlibpath_var_CXX=no 14578 ;; 14579 *) 14580 hardcode_direct_CXX=yes 14581 hardcode_direct_absolute_CXX=yes 14582 hardcode_minus_L_CXX=yes # Not in the search PATH, 14583 # but as the default 14584 # location of the library. 14585 ;; 14586 esac 14587 14588 case $cc_basename in 14589 CC*) 14590 # FIXME: insert proper C++ library support 14591 ld_shlibs_CXX=no 14592 ;; 14593 aCC*) 14594 case $host_cpu in 14595 hppa*64*) 14596 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14597 ;; 14598 ia64*) 14599 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14600 ;; 14601 *) 14602 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14603 ;; 14604 esac 14605 # Commands to make compiler produce verbose output that lists 14606 # what "hidden" libraries, object files and flags are used when 14607 # linking a shared library. 14608 # 14609 # There doesn't appear to be a way to prevent this compiler from 14610 # explicitly linking system object files so we need to strip them 14611 # from the output so that they don't get included in the library 14612 # dependencies. 14613 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"' 14614 ;; 14615 *) 14616 if test yes = "$GXX"; then 14617 if test no = "$with_gnu_ld"; then 14618 case $host_cpu in 14619 hppa*64*) 14620 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14621 ;; 14622 ia64*) 14623 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14624 ;; 14625 *) 14626 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' 14627 ;; 14628 esac 14629 fi 14630 else 14631 # FIXME: insert proper C++ library support 14632 ld_shlibs_CXX=no 14633 fi 14634 ;; 14635 esac 14636 ;; 14637 14638 interix[3-9]*) 14639 hardcode_direct_CXX=no 14640 hardcode_shlibpath_var_CXX=no 14641 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14642 export_dynamic_flag_spec_CXX='$wl-E' 14643 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14644 # Instead, shared libraries are loaded at an image base (0x10000000 by 14645 # default) and relocated if they conflict, which is a slow very memory 14646 # consuming and fragmenting process. To avoid this, we pick a random, 14647 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14648 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14649 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' 14650 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' 14651 ;; 14652 irix5* | irix6*) 14653 case $cc_basename in 14654 CC*) 14655 # SGI C++ 14656 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' 14657 14658 # Archives containing C++ object files must be created using 14659 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14660 # necessary to make sure instantiated templates are included 14661 # in the archive. 14662 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14663 ;; 14664 *) 14665 if test yes = "$GXX"; then 14666 if test no = "$with_gnu_ld"; then 14667 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' 14668 else 14669 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' 14670 fi 14671 fi 14672 link_all_deplibs_CXX=yes 14673 ;; 14674 esac 14675 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14676 hardcode_libdir_separator_CXX=: 14677 inherit_rpath_CXX=yes 14678 ;; 14679 14680 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14681 case $cc_basename in 14682 KCC*) 14683 # Kuck and Associates, Inc. (KAI) C++ Compiler 14684 14685 # KCC will only create a shared library if the output file 14686 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14687 # to its proper name (with version) after linking. 14688 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' 14689 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' 14690 # Commands to make compiler produce verbose output that lists 14691 # what "hidden" libraries, object files and flags are used when 14692 # linking a shared library. 14693 # 14694 # There doesn't appear to be a way to prevent this compiler from 14695 # explicitly linking system object files so we need to strip them 14696 # from the output so that they don't get included in the library 14697 # dependencies. 14698 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"' 14699 14700 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14701 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14702 14703 # Archives containing C++ object files must be created using 14704 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14705 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14706 ;; 14707 icpc* | ecpc* ) 14708 # Intel C++ 14709 with_gnu_ld=yes 14710 # version 8.0 and above of icpc choke on multiply defined symbols 14711 # if we add $predep_objects and $postdep_objects, however 7.1 and 14712 # earlier do not add the objects themselves. 14713 case `$CC -V 2>&1` in 14714 *"Version 7."*) 14715 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14716 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' 14717 ;; 14718 *) # Version 8.0 or newer 14719 tmp_idyn= 14720 case $host_cpu in 14721 ia64*) tmp_idyn=' -i_dynamic';; 14722 esac 14723 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14724 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' 14725 ;; 14726 esac 14727 archive_cmds_need_lc_CXX=no 14728 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14729 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14730 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14731 ;; 14732 pgCC* | pgcpp*) 14733 # Portland Group C++ compiler 14734 case `$CC -V` in 14735 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14736 prelink_cmds_CXX='tpldir=Template.dir~ 14737 rm -rf $tpldir~ 14738 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14739 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14740 old_archive_cmds_CXX='tpldir=Template.dir~ 14741 rm -rf $tpldir~ 14742 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14743 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14744 $RANLIB $oldlib' 14745 archive_cmds_CXX='tpldir=Template.dir~ 14746 rm -rf $tpldir~ 14747 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14748 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14749 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14750 rm -rf $tpldir~ 14751 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14752 $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' 14753 ;; 14754 *) # Version 6 and above use weak symbols 14755 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14756 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' 14757 ;; 14758 esac 14759 14760 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14761 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14762 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' 14763 ;; 14764 cxx*) 14765 # Compaq C++ 14766 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14767 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' 14768 14769 runpath_var=LD_RUN_PATH 14770 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14771 hardcode_libdir_separator_CXX=: 14772 14773 # Commands to make compiler produce verbose output that lists 14774 # what "hidden" libraries, object files and flags are used when 14775 # linking a shared library. 14776 # 14777 # There doesn't appear to be a way to prevent this compiler from 14778 # explicitly linking system object files so we need to strip them 14779 # from the output so that they don't get included in the library 14780 # dependencies. 14781 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' 14782 ;; 14783 xl* | mpixl* | bgxl*) 14784 # IBM XL 8.0 on PPC, with GNU ld 14785 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14786 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14787 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14788 if test yes = "$supports_anon_versioning"; then 14789 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14790 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14791 echo "local: *; };" >> $output_objdir/$libname.ver~ 14792 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14793 fi 14794 ;; 14795 *) 14796 case `$CC -V 2>&1 | sed 5q` in 14797 *Sun\ C*) 14798 # Sun C++ 5.9 14799 no_undefined_flag_CXX=' -zdefs' 14800 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14801 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' 14802 hardcode_libdir_flag_spec_CXX='-R$libdir' 14803 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' 14804 compiler_needs_object_CXX=yes 14805 14806 # Not sure whether something based on 14807 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14808 # would be better. 14809 output_verbose_link_cmd='func_echo_all' 14810 14811 # Archives containing C++ object files must be created using 14812 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14813 # necessary to make sure instantiated templates are included 14814 # in the archive. 14815 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14816 ;; 14817 esac 14818 ;; 14819 esac 14820 ;; 14821 14822 lynxos*) 14823 # FIXME: insert proper C++ library support 14824 ld_shlibs_CXX=no 14825 ;; 14826 14827 m88k*) 14828 # FIXME: insert proper C++ library support 14829 ld_shlibs_CXX=no 14830 ;; 14831 14832 mvs*) 14833 case $cc_basename in 14834 cxx*) 14835 # FIXME: insert proper C++ library support 14836 ld_shlibs_CXX=no 14837 ;; 14838 *) 14839 # FIXME: insert proper C++ library support 14840 ld_shlibs_CXX=no 14841 ;; 14842 esac 14843 ;; 14844 14845 netbsd*) 14846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14847 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14848 wlarc= 14849 hardcode_libdir_flag_spec_CXX='-R$libdir' 14850 hardcode_direct_CXX=yes 14851 hardcode_shlibpath_var_CXX=no 14852 fi 14853 # Workaround some broken pre-1.5 toolchains 14854 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14855 ;; 14856 14857 *nto* | *qnx*) 14858 ld_shlibs_CXX=yes 14859 ;; 14860 14861 openbsd* | bitrig*) 14862 if test -f /usr/libexec/ld.so; then 14863 hardcode_direct_CXX=yes 14864 hardcode_shlibpath_var_CXX=no 14865 hardcode_direct_absolute_CXX=yes 14866 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14867 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14869 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14870 export_dynamic_flag_spec_CXX='$wl-E' 14871 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14872 fi 14873 output_verbose_link_cmd=func_echo_all 14874 else 14875 ld_shlibs_CXX=no 14876 fi 14877 ;; 14878 14879 osf3* | osf4* | osf5*) 14880 case $cc_basename in 14881 KCC*) 14882 # Kuck and Associates, Inc. (KAI) C++ Compiler 14883 14884 # KCC will only create a shared library if the output file 14885 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14886 # to its proper name (with version) after linking. 14887 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' 14888 14889 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14890 hardcode_libdir_separator_CXX=: 14891 14892 # Archives containing C++ object files must be created using 14893 # the KAI C++ compiler. 14894 case $host in 14895 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14896 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14897 esac 14898 ;; 14899 RCC*) 14900 # Rational C++ 2.4.1 14901 # FIXME: insert proper C++ library support 14902 ld_shlibs_CXX=no 14903 ;; 14904 cxx*) 14905 case $host in 14906 osf3*) 14907 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14908 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' 14909 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14910 ;; 14911 *) 14912 allow_undefined_flag_CXX=' -expect_unresolved \*' 14913 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' 14914 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14915 echo "-hidden">> $lib.exp~ 14916 $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~ 14917 $RM $lib.exp' 14918 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14919 ;; 14920 esac 14921 14922 hardcode_libdir_separator_CXX=: 14923 14924 # Commands to make compiler produce verbose output that lists 14925 # what "hidden" libraries, object files and flags are used when 14926 # linking a shared library. 14927 # 14928 # There doesn't appear to be a way to prevent this compiler from 14929 # explicitly linking system object files so we need to strip them 14930 # from the output so that they don't get included in the library 14931 # dependencies. 14932 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"' 14933 ;; 14934 *) 14935 if test yes,no = "$GXX,$with_gnu_ld"; then 14936 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14937 case $host in 14938 osf3*) 14939 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' 14940 ;; 14941 *) 14942 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' 14943 ;; 14944 esac 14945 14946 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14947 hardcode_libdir_separator_CXX=: 14948 14949 # Commands to make compiler produce verbose output that lists 14950 # what "hidden" libraries, object files and flags are used when 14951 # linking a shared library. 14952 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14953 14954 else 14955 # FIXME: insert proper C++ library support 14956 ld_shlibs_CXX=no 14957 fi 14958 ;; 14959 esac 14960 ;; 14961 14962 psos*) 14963 # FIXME: insert proper C++ library support 14964 ld_shlibs_CXX=no 14965 ;; 14966 14967 sunos4*) 14968 case $cc_basename in 14969 CC*) 14970 # Sun C++ 4.x 14971 # FIXME: insert proper C++ library support 14972 ld_shlibs_CXX=no 14973 ;; 14974 lcc*) 14975 # Lucid 14976 # FIXME: insert proper C++ library support 14977 ld_shlibs_CXX=no 14978 ;; 14979 *) 14980 # FIXME: insert proper C++ library support 14981 ld_shlibs_CXX=no 14982 ;; 14983 esac 14984 ;; 14985 14986 solaris*) 14987 case $cc_basename in 14988 CC* | sunCC*) 14989 # Sun C++ 4.2, 5.x and Centerline C++ 14990 archive_cmds_need_lc_CXX=yes 14991 no_undefined_flag_CXX=' -zdefs' 14992 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14993 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14994 $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' 14995 14996 hardcode_libdir_flag_spec_CXX='-R$libdir' 14997 hardcode_shlibpath_var_CXX=no 14998 case $host_os in 14999 solaris2.[0-5] | solaris2.[0-5].*) ;; 15000 *) 15001 # The compiler driver will combine and reorder linker options, 15002 # but understands '-z linker_flag'. 15003 # Supported since Solaris 2.6 (maybe 2.5.1?) 15004 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15005 ;; 15006 esac 15007 link_all_deplibs_CXX=yes 15008 15009 output_verbose_link_cmd='func_echo_all' 15010 15011 # Archives containing C++ object files must be created using 15012 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15013 # necessary to make sure instantiated templates are included 15014 # in the archive. 15015 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15016 ;; 15017 gcx*) 15018 # Green Hills C++ Compiler 15019 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15020 15021 # The C++ compiler must be used to create the archive. 15022 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15023 ;; 15024 *) 15025 # GNU C++ compiler with Solaris linker 15026 if test yes,no = "$GXX,$with_gnu_ld"; then 15027 no_undefined_flag_CXX=' $wl-z ${wl}defs' 15028 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15029 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15030 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15031 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15032 15033 # Commands to make compiler produce verbose output that lists 15034 # what "hidden" libraries, object files and flags are used when 15035 # linking a shared library. 15036 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15037 else 15038 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15039 # platform. 15040 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15041 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15042 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15043 15044 # Commands to make compiler produce verbose output that lists 15045 # what "hidden" libraries, object files and flags are used when 15046 # linking a shared library. 15047 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15048 fi 15049 15050 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15051 case $host_os in 15052 solaris2.[0-5] | solaris2.[0-5].*) ;; 15053 *) 15054 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15055 ;; 15056 esac 15057 fi 15058 ;; 15059 esac 15060 ;; 15061 15062 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15063 no_undefined_flag_CXX='$wl-z,text' 15064 archive_cmds_need_lc_CXX=no 15065 hardcode_shlibpath_var_CXX=no 15066 runpath_var='LD_RUN_PATH' 15067 15068 case $cc_basename in 15069 CC*) 15070 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15071 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15072 ;; 15073 *) 15074 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15075 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15076 ;; 15077 esac 15078 ;; 15079 15080 sysv5* | sco3.2v5* | sco5v6*) 15081 # Note: We CANNOT use -z defs as we might desire, because we do not 15082 # link with -lc, and that would cause any symbols used from libc to 15083 # always be unresolved, which means just about no library would 15084 # ever link correctly. If we're not using GNU ld we use -z text 15085 # though, which does catch some bad symbols but isn't as heavy-handed 15086 # as -z defs. 15087 no_undefined_flag_CXX='$wl-z,text' 15088 allow_undefined_flag_CXX='$wl-z,nodefs' 15089 archive_cmds_need_lc_CXX=no 15090 hardcode_shlibpath_var_CXX=no 15091 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15092 hardcode_libdir_separator_CXX=':' 15093 link_all_deplibs_CXX=yes 15094 export_dynamic_flag_spec_CXX='$wl-Bexport' 15095 runpath_var='LD_RUN_PATH' 15096 15097 case $cc_basename in 15098 CC*) 15099 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15100 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15101 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15102 '"$old_archive_cmds_CXX" 15103 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15104 '"$reload_cmds_CXX" 15105 ;; 15106 *) 15107 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15108 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15109 ;; 15110 esac 15111 ;; 15112 15113 tandem*) 15114 case $cc_basename in 15115 NCC*) 15116 # NonStop-UX NCC 3.20 15117 # FIXME: insert proper C++ library support 15118 ld_shlibs_CXX=no 15119 ;; 15120 *) 15121 # FIXME: insert proper C++ library support 15122 ld_shlibs_CXX=no 15123 ;; 15124 esac 15125 ;; 15126 15127 vxworks*) 15128 # FIXME: insert proper C++ library support 15129 ld_shlibs_CXX=no 15130 ;; 15131 15132 *) 15133 # FIXME: insert proper C++ library support 15134 ld_shlibs_CXX=no 15135 ;; 15136 esac 15137 15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15139$as_echo "$ld_shlibs_CXX" >&6; } 15140 test no = "$ld_shlibs_CXX" && can_build_shared=no 15141 15142 GCC_CXX=$GXX 15143 LD_CXX=$LD 15144 15145 ## CAVEAT EMPTOR: 15146 ## There is no encapsulation within the following macros, do not change 15147 ## the running order or otherwise move them around unless you know exactly 15148 ## what you are doing... 15149 # Dependencies to place before and after the object being linked: 15150predep_objects_CXX= 15151postdep_objects_CXX= 15152predeps_CXX= 15153postdeps_CXX= 15154compiler_lib_search_path_CXX= 15155 15156cat > conftest.$ac_ext <<_LT_EOF 15157class Foo 15158{ 15159public: 15160 Foo (void) { a = 0; } 15161private: 15162 int a; 15163}; 15164_LT_EOF 15165 15166 15167_lt_libdeps_save_CFLAGS=$CFLAGS 15168case "$CC $CFLAGS " in #( 15169*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15170*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15171*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15172esac 15173 15174if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15175 (eval $ac_compile) 2>&5 15176 ac_status=$? 15177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15178 test $ac_status = 0; }; then 15179 # Parse the compiler output and extract the necessary 15180 # objects, libraries and library flags. 15181 15182 # Sentinel used to keep track of whether or not we are before 15183 # the conftest object file. 15184 pre_test_object_deps_done=no 15185 15186 for p in `eval "$output_verbose_link_cmd"`; do 15187 case $prev$p in 15188 15189 -L* | -R* | -l*) 15190 # Some compilers place space between "-{L,R}" and the path. 15191 # Remove the space. 15192 if test x-L = "$p" || 15193 test x-R = "$p"; then 15194 prev=$p 15195 continue 15196 fi 15197 15198 # Expand the sysroot to ease extracting the directories later. 15199 if test -z "$prev"; then 15200 case $p in 15201 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15202 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15203 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15204 esac 15205 fi 15206 case $p in 15207 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15208 esac 15209 if test no = "$pre_test_object_deps_done"; then 15210 case $prev in 15211 -L | -R) 15212 # Internal compiler library paths should come after those 15213 # provided the user. The postdeps already come after the 15214 # user supplied libs so there is no need to process them. 15215 if test -z "$compiler_lib_search_path_CXX"; then 15216 compiler_lib_search_path_CXX=$prev$p 15217 else 15218 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15219 fi 15220 ;; 15221 # The "-l" case would never come before the object being 15222 # linked, so don't bother handling this case. 15223 esac 15224 else 15225 if test -z "$postdeps_CXX"; then 15226 postdeps_CXX=$prev$p 15227 else 15228 postdeps_CXX="${postdeps_CXX} $prev$p" 15229 fi 15230 fi 15231 prev= 15232 ;; 15233 15234 *.lto.$objext) ;; # Ignore GCC LTO objects 15235 *.$objext) 15236 # This assumes that the test object file only shows up 15237 # once in the compiler output. 15238 if test "$p" = "conftest.$objext"; then 15239 pre_test_object_deps_done=yes 15240 continue 15241 fi 15242 15243 if test no = "$pre_test_object_deps_done"; then 15244 if test -z "$predep_objects_CXX"; then 15245 predep_objects_CXX=$p 15246 else 15247 predep_objects_CXX="$predep_objects_CXX $p" 15248 fi 15249 else 15250 if test -z "$postdep_objects_CXX"; then 15251 postdep_objects_CXX=$p 15252 else 15253 postdep_objects_CXX="$postdep_objects_CXX $p" 15254 fi 15255 fi 15256 ;; 15257 15258 *) ;; # Ignore the rest. 15259 15260 esac 15261 done 15262 15263 # Clean up. 15264 rm -f a.out a.exe 15265else 15266 echo "libtool.m4: error: problem compiling CXX test program" 15267fi 15268 15269$RM -f confest.$objext 15270CFLAGS=$_lt_libdeps_save_CFLAGS 15271 15272# PORTME: override above test on systems where it is broken 15273case $host_os in 15274interix[3-9]*) 15275 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15276 # hack all around it, let's just trust "g++" to DTRT. 15277 predep_objects_CXX= 15278 postdep_objects_CXX= 15279 postdeps_CXX= 15280 ;; 15281esac 15282 15283 15284case " $postdeps_CXX " in 15285*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15286esac 15287 compiler_lib_search_dirs_CXX= 15288if test -n "${compiler_lib_search_path_CXX}"; then 15289 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15290fi 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 lt_prog_compiler_wl_CXX= 15323lt_prog_compiler_pic_CXX= 15324lt_prog_compiler_static_CXX= 15325 15326 15327 # C++ specific cases for pic, static, wl, etc. 15328 if test yes = "$GXX"; then 15329 lt_prog_compiler_wl_CXX='-Wl,' 15330 lt_prog_compiler_static_CXX='-static' 15331 15332 case $host_os in 15333 aix*) 15334 # All AIX code is PIC. 15335 if test ia64 = "$host_cpu"; then 15336 # AIX 5 now supports IA64 processor 15337 lt_prog_compiler_static_CXX='-Bstatic' 15338 fi 15339 lt_prog_compiler_pic_CXX='-fPIC' 15340 ;; 15341 15342 amigaos*) 15343 case $host_cpu in 15344 powerpc) 15345 # see comment about AmigaOS4 .so support 15346 lt_prog_compiler_pic_CXX='-fPIC' 15347 ;; 15348 m68k) 15349 # FIXME: we need at least 68020 code to build shared libraries, but 15350 # adding the '-m68020' flag to GCC prevents building anything better, 15351 # like '-m68040'. 15352 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15353 ;; 15354 esac 15355 ;; 15356 15357 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15358 # PIC is the default for these OSes. 15359 ;; 15360 mingw* | cygwin* | os2* | pw32* | cegcc*) 15361 # This hack is so that the source file can tell whether it is being 15362 # built for inclusion in a dll (and should export symbols for example). 15363 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15364 # (--disable-auto-import) libraries 15365 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15366 case $host_os in 15367 os2*) 15368 lt_prog_compiler_static_CXX='$wl-static' 15369 ;; 15370 esac 15371 ;; 15372 darwin* | rhapsody*) 15373 # PIC is the default on this platform 15374 # Common symbols not allowed in MH_DYLIB files 15375 lt_prog_compiler_pic_CXX='-fno-common' 15376 ;; 15377 *djgpp*) 15378 # DJGPP does not support shared libraries at all 15379 lt_prog_compiler_pic_CXX= 15380 ;; 15381 haiku*) 15382 # PIC is the default for Haiku. 15383 # The "-static" flag exists, but is broken. 15384 lt_prog_compiler_static_CXX= 15385 ;; 15386 interix[3-9]*) 15387 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15388 # Instead, we relocate shared libraries at runtime. 15389 ;; 15390 sysv4*MP*) 15391 if test -d /usr/nec; then 15392 lt_prog_compiler_pic_CXX=-Kconform_pic 15393 fi 15394 ;; 15395 hpux*) 15396 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15397 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15398 # sets the default TLS model and affects inlining. 15399 case $host_cpu in 15400 hppa*64*) 15401 ;; 15402 *) 15403 lt_prog_compiler_pic_CXX='-fPIC' 15404 ;; 15405 esac 15406 ;; 15407 *qnx* | *nto*) 15408 # QNX uses GNU C++, but need to define -shared option too, otherwise 15409 # it will coredump. 15410 lt_prog_compiler_pic_CXX='-fPIC -shared' 15411 ;; 15412 *) 15413 lt_prog_compiler_pic_CXX='-fPIC' 15414 ;; 15415 esac 15416 else 15417 case $host_os in 15418 aix[4-9]*) 15419 # All AIX code is PIC. 15420 if test ia64 = "$host_cpu"; then 15421 # AIX 5 now supports IA64 processor 15422 lt_prog_compiler_static_CXX='-Bstatic' 15423 else 15424 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15425 fi 15426 ;; 15427 chorus*) 15428 case $cc_basename in 15429 cxch68*) 15430 # Green Hills C++ Compiler 15431 # _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" 15432 ;; 15433 esac 15434 ;; 15435 mingw* | cygwin* | os2* | pw32* | cegcc*) 15436 # This hack is so that the source file can tell whether it is being 15437 # built for inclusion in a dll (and should export symbols for example). 15438 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15439 ;; 15440 dgux*) 15441 case $cc_basename in 15442 ec++*) 15443 lt_prog_compiler_pic_CXX='-KPIC' 15444 ;; 15445 ghcx*) 15446 # Green Hills C++ Compiler 15447 lt_prog_compiler_pic_CXX='-pic' 15448 ;; 15449 *) 15450 ;; 15451 esac 15452 ;; 15453 freebsd* | dragonfly*) 15454 # FreeBSD uses GNU C++ 15455 ;; 15456 hpux9* | hpux10* | hpux11*) 15457 case $cc_basename in 15458 CC*) 15459 lt_prog_compiler_wl_CXX='-Wl,' 15460 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15461 if test ia64 != "$host_cpu"; then 15462 lt_prog_compiler_pic_CXX='+Z' 15463 fi 15464 ;; 15465 aCC*) 15466 lt_prog_compiler_wl_CXX='-Wl,' 15467 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15468 case $host_cpu in 15469 hppa*64*|ia64*) 15470 # +Z the default 15471 ;; 15472 *) 15473 lt_prog_compiler_pic_CXX='+Z' 15474 ;; 15475 esac 15476 ;; 15477 *) 15478 ;; 15479 esac 15480 ;; 15481 interix*) 15482 # This is c89, which is MS Visual C++ (no shared libs) 15483 # Anyone wants to do a port? 15484 ;; 15485 irix5* | irix6* | nonstopux*) 15486 case $cc_basename in 15487 CC*) 15488 lt_prog_compiler_wl_CXX='-Wl,' 15489 lt_prog_compiler_static_CXX='-non_shared' 15490 # CC pic flag -KPIC is the default. 15491 ;; 15492 *) 15493 ;; 15494 esac 15495 ;; 15496 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15497 case $cc_basename in 15498 KCC*) 15499 # KAI C++ Compiler 15500 lt_prog_compiler_wl_CXX='--backend -Wl,' 15501 lt_prog_compiler_pic_CXX='-fPIC' 15502 ;; 15503 ecpc* ) 15504 # old Intel C++ for x86_64, which still supported -KPIC. 15505 lt_prog_compiler_wl_CXX='-Wl,' 15506 lt_prog_compiler_pic_CXX='-KPIC' 15507 lt_prog_compiler_static_CXX='-static' 15508 ;; 15509 icpc* ) 15510 # Intel C++, used to be incompatible with GCC. 15511 # ICC 10 doesn't accept -KPIC any more. 15512 lt_prog_compiler_wl_CXX='-Wl,' 15513 lt_prog_compiler_pic_CXX='-fPIC' 15514 lt_prog_compiler_static_CXX='-static' 15515 ;; 15516 pgCC* | pgcpp*) 15517 # Portland Group C++ compiler 15518 lt_prog_compiler_wl_CXX='-Wl,' 15519 lt_prog_compiler_pic_CXX='-fpic' 15520 lt_prog_compiler_static_CXX='-Bstatic' 15521 ;; 15522 cxx*) 15523 # Compaq C++ 15524 # Make sure the PIC flag is empty. It appears that all Alpha 15525 # Linux and Compaq Tru64 Unix objects are PIC. 15526 lt_prog_compiler_pic_CXX= 15527 lt_prog_compiler_static_CXX='-non_shared' 15528 ;; 15529 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15530 # IBM XL 8.0, 9.0 on PPC and BlueGene 15531 lt_prog_compiler_wl_CXX='-Wl,' 15532 lt_prog_compiler_pic_CXX='-qpic' 15533 lt_prog_compiler_static_CXX='-qstaticlink' 15534 ;; 15535 *) 15536 case `$CC -V 2>&1 | sed 5q` in 15537 *Sun\ C*) 15538 # Sun C++ 5.9 15539 lt_prog_compiler_pic_CXX='-KPIC' 15540 lt_prog_compiler_static_CXX='-Bstatic' 15541 lt_prog_compiler_wl_CXX='-Qoption ld ' 15542 ;; 15543 esac 15544 ;; 15545 esac 15546 ;; 15547 lynxos*) 15548 ;; 15549 m88k*) 15550 ;; 15551 mvs*) 15552 case $cc_basename in 15553 cxx*) 15554 lt_prog_compiler_pic_CXX='-W c,exportall' 15555 ;; 15556 *) 15557 ;; 15558 esac 15559 ;; 15560 netbsd* | netbsdelf*-gnu) 15561 ;; 15562 *qnx* | *nto*) 15563 # QNX uses GNU C++, but need to define -shared option too, otherwise 15564 # it will coredump. 15565 lt_prog_compiler_pic_CXX='-fPIC -shared' 15566 ;; 15567 osf3* | osf4* | osf5*) 15568 case $cc_basename in 15569 KCC*) 15570 lt_prog_compiler_wl_CXX='--backend -Wl,' 15571 ;; 15572 RCC*) 15573 # Rational C++ 2.4.1 15574 lt_prog_compiler_pic_CXX='-pic' 15575 ;; 15576 cxx*) 15577 # Digital/Compaq C++ 15578 lt_prog_compiler_wl_CXX='-Wl,' 15579 # Make sure the PIC flag is empty. It appears that all Alpha 15580 # Linux and Compaq Tru64 Unix objects are PIC. 15581 lt_prog_compiler_pic_CXX= 15582 lt_prog_compiler_static_CXX='-non_shared' 15583 ;; 15584 *) 15585 ;; 15586 esac 15587 ;; 15588 psos*) 15589 ;; 15590 solaris*) 15591 case $cc_basename in 15592 CC* | sunCC*) 15593 # Sun C++ 4.2, 5.x and Centerline C++ 15594 lt_prog_compiler_pic_CXX='-KPIC' 15595 lt_prog_compiler_static_CXX='-Bstatic' 15596 lt_prog_compiler_wl_CXX='-Qoption ld ' 15597 ;; 15598 gcx*) 15599 # Green Hills C++ Compiler 15600 lt_prog_compiler_pic_CXX='-PIC' 15601 ;; 15602 *) 15603 ;; 15604 esac 15605 ;; 15606 sunos4*) 15607 case $cc_basename in 15608 CC*) 15609 # Sun C++ 4.x 15610 lt_prog_compiler_pic_CXX='-pic' 15611 lt_prog_compiler_static_CXX='-Bstatic' 15612 ;; 15613 lcc*) 15614 # Lucid 15615 lt_prog_compiler_pic_CXX='-pic' 15616 ;; 15617 *) 15618 ;; 15619 esac 15620 ;; 15621 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15622 case $cc_basename in 15623 CC*) 15624 lt_prog_compiler_wl_CXX='-Wl,' 15625 lt_prog_compiler_pic_CXX='-KPIC' 15626 lt_prog_compiler_static_CXX='-Bstatic' 15627 ;; 15628 esac 15629 ;; 15630 tandem*) 15631 case $cc_basename in 15632 NCC*) 15633 # NonStop-UX NCC 3.20 15634 lt_prog_compiler_pic_CXX='-KPIC' 15635 ;; 15636 *) 15637 ;; 15638 esac 15639 ;; 15640 vxworks*) 15641 ;; 15642 *) 15643 lt_prog_compiler_can_build_shared_CXX=no 15644 ;; 15645 esac 15646 fi 15647 15648case $host_os in 15649 # For platforms that do not support PIC, -DPIC is meaningless: 15650 *djgpp*) 15651 lt_prog_compiler_pic_CXX= 15652 ;; 15653 *) 15654 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15655 ;; 15656esac 15657 15658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15659$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15660if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15661 $as_echo_n "(cached) " >&6 15662else 15663 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15664fi 15665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15666$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15667lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15668 15669# 15670# Check to make sure the PIC flag actually works. 15671# 15672if test -n "$lt_prog_compiler_pic_CXX"; then 15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15674$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15675if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15676 $as_echo_n "(cached) " >&6 15677else 15678 lt_cv_prog_compiler_pic_works_CXX=no 15679 ac_outfile=conftest.$ac_objext 15680 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15681 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15682 # Insert the option either (1) after the last *FLAGS variable, or 15683 # (2) before a word containing "conftest.", or (3) at the end. 15684 # Note that $ac_compile itself does not contain backslashes and begins 15685 # with a dollar sign (not a hyphen), so the echo should work correctly. 15686 # The option is referenced via a variable to avoid confusing sed. 15687 lt_compile=`echo "$ac_compile" | $SED \ 15688 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15689 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15690 -e 's:$: $lt_compiler_flag:'` 15691 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15692 (eval "$lt_compile" 2>conftest.err) 15693 ac_status=$? 15694 cat conftest.err >&5 15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15696 if (exit $ac_status) && test -s "$ac_outfile"; then 15697 # The compiler can only warn and ignore the option if not recognized 15698 # So say no if there are warnings other than the usual output. 15699 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15700 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15701 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15702 lt_cv_prog_compiler_pic_works_CXX=yes 15703 fi 15704 fi 15705 $RM conftest* 15706 15707fi 15708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15709$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15710 15711if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15712 case $lt_prog_compiler_pic_CXX in 15713 "" | " "*) ;; 15714 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15715 esac 15716else 15717 lt_prog_compiler_pic_CXX= 15718 lt_prog_compiler_can_build_shared_CXX=no 15719fi 15720 15721fi 15722 15723 15724 15725 15726 15727# 15728# Check to make sure the static flag actually works. 15729# 15730wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15732$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15733if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15734 $as_echo_n "(cached) " >&6 15735else 15736 lt_cv_prog_compiler_static_works_CXX=no 15737 save_LDFLAGS=$LDFLAGS 15738 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15739 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15740 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15741 # The linker can only warn and ignore the option if not recognized 15742 # So say no if there are warnings 15743 if test -s conftest.err; then 15744 # Append any errors to the config.log. 15745 cat conftest.err 1>&5 15746 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15748 if diff conftest.exp conftest.er2 >/dev/null; then 15749 lt_cv_prog_compiler_static_works_CXX=yes 15750 fi 15751 else 15752 lt_cv_prog_compiler_static_works_CXX=yes 15753 fi 15754 fi 15755 $RM -r conftest* 15756 LDFLAGS=$save_LDFLAGS 15757 15758fi 15759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15760$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15761 15762if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15763 : 15764else 15765 lt_prog_compiler_static_CXX= 15766fi 15767 15768 15769 15770 15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15772$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15773if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15774 $as_echo_n "(cached) " >&6 15775else 15776 lt_cv_prog_compiler_c_o_CXX=no 15777 $RM -r conftest 2>/dev/null 15778 mkdir conftest 15779 cd conftest 15780 mkdir out 15781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15782 15783 lt_compiler_flag="-o out/conftest2.$ac_objext" 15784 # Insert the option either (1) after the last *FLAGS variable, or 15785 # (2) before a word containing "conftest.", or (3) at the end. 15786 # Note that $ac_compile itself does not contain backslashes and begins 15787 # with a dollar sign (not a hyphen), so the echo should work correctly. 15788 lt_compile=`echo "$ac_compile" | $SED \ 15789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15791 -e 's:$: $lt_compiler_flag:'` 15792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15793 (eval "$lt_compile" 2>out/conftest.err) 15794 ac_status=$? 15795 cat out/conftest.err >&5 15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15797 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15798 then 15799 # The compiler can only warn and ignore the option if not recognized 15800 # So say no if there are warnings 15801 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15802 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15803 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15804 lt_cv_prog_compiler_c_o_CXX=yes 15805 fi 15806 fi 15807 chmod u+w . 2>&5 15808 $RM conftest* 15809 # SGI C++ compiler will create directory out/ii_files/ for 15810 # template instantiation 15811 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15812 $RM out/* && rmdir out 15813 cd .. 15814 $RM -r conftest 15815 $RM conftest* 15816 15817fi 15818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15819$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15820 15821 15822 15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15824$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15825if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15826 $as_echo_n "(cached) " >&6 15827else 15828 lt_cv_prog_compiler_c_o_CXX=no 15829 $RM -r conftest 2>/dev/null 15830 mkdir conftest 15831 cd conftest 15832 mkdir out 15833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15834 15835 lt_compiler_flag="-o out/conftest2.$ac_objext" 15836 # Insert the option either (1) after the last *FLAGS variable, or 15837 # (2) before a word containing "conftest.", or (3) at the end. 15838 # Note that $ac_compile itself does not contain backslashes and begins 15839 # with a dollar sign (not a hyphen), so the echo should work correctly. 15840 lt_compile=`echo "$ac_compile" | $SED \ 15841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15843 -e 's:$: $lt_compiler_flag:'` 15844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15845 (eval "$lt_compile" 2>out/conftest.err) 15846 ac_status=$? 15847 cat out/conftest.err >&5 15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15849 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15850 then 15851 # The compiler can only warn and ignore the option if not recognized 15852 # So say no if there are warnings 15853 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15854 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15855 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15856 lt_cv_prog_compiler_c_o_CXX=yes 15857 fi 15858 fi 15859 chmod u+w . 2>&5 15860 $RM conftest* 15861 # SGI C++ compiler will create directory out/ii_files/ for 15862 # template instantiation 15863 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15864 $RM out/* && rmdir out 15865 cd .. 15866 $RM -r conftest 15867 $RM conftest* 15868 15869fi 15870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15871$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15872 15873 15874 15875 15876hard_links=nottested 15877if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15878 # do not overwrite the value of need_locks provided by the user 15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15880$as_echo_n "checking if we can lock with hard links... " >&6; } 15881 hard_links=yes 15882 $RM conftest* 15883 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15884 touch conftest.a 15885 ln conftest.a conftest.b 2>&5 || hard_links=no 15886 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15888$as_echo "$hard_links" >&6; } 15889 if test no = "$hard_links"; then 15890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15891$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15892 need_locks=warn 15893 fi 15894else 15895 need_locks=no 15896fi 15897 15898 15899 15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15901$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15902 15903 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15904 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15905 case $host_os in 15906 aix[4-9]*) 15907 # If we're using GNU nm, then we don't want the "-C" option. 15908 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15909 # Without the "-l" option, or with the "-B" option, AIX nm treats 15910 # weak defined symbols like other global defined symbols, whereas 15911 # GNU nm marks them as "W". 15912 # While the 'weak' keyword is ignored in the Export File, we need 15913 # it in the Import File for the 'aix-soname' feature, so we have 15914 # to replace the "-B" option with "-P" for AIX nm. 15915 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15916 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 15917 else 15918 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15919 fi 15920 ;; 15921 pw32*) 15922 export_symbols_cmds_CXX=$ltdll_cmds 15923 ;; 15924 cygwin* | mingw* | cegcc*) 15925 case $cc_basename in 15926 cl*) 15927 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15928 ;; 15929 *) 15930 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' 15931 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15932 ;; 15933 esac 15934 ;; 15935 linux* | k*bsd*-gnu | gnu*) 15936 link_all_deplibs_CXX=no 15937 ;; 15938 *) 15939 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15940 ;; 15941 esac 15942 15943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15944$as_echo "$ld_shlibs_CXX" >&6; } 15945test no = "$ld_shlibs_CXX" && can_build_shared=no 15946 15947with_gnu_ld_CXX=$with_gnu_ld 15948 15949 15950 15951 15952 15953 15954# 15955# Do we need to explicitly link libc? 15956# 15957case "x$archive_cmds_need_lc_CXX" in 15958x|xyes) 15959 # Assume -lc should be added 15960 archive_cmds_need_lc_CXX=yes 15961 15962 if test yes,yes = "$GCC,$enable_shared"; then 15963 case $archive_cmds_CXX in 15964 *'~'*) 15965 # FIXME: we may have to deal with multi-command sequences. 15966 ;; 15967 '$CC '*) 15968 # Test whether the compiler implicitly links with -lc since on some 15969 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15970 # to ld, don't add -lc before -lgcc. 15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15972$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15973if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15974 $as_echo_n "(cached) " >&6 15975else 15976 $RM conftest* 15977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15978 15979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15980 (eval $ac_compile) 2>&5 15981 ac_status=$? 15982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15983 test $ac_status = 0; } 2>conftest.err; then 15984 soname=conftest 15985 lib=conftest 15986 libobjs=conftest.$ac_objext 15987 deplibs= 15988 wl=$lt_prog_compiler_wl_CXX 15989 pic_flag=$lt_prog_compiler_pic_CXX 15990 compiler_flags=-v 15991 linker_flags=-v 15992 verstring= 15993 output_objdir=. 15994 libname=conftest 15995 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15996 allow_undefined_flag_CXX= 15997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15998 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15999 ac_status=$? 16000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16001 test $ac_status = 0; } 16002 then 16003 lt_cv_archive_cmds_need_lc_CXX=no 16004 else 16005 lt_cv_archive_cmds_need_lc_CXX=yes 16006 fi 16007 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16008 else 16009 cat conftest.err 1>&5 16010 fi 16011 $RM conftest* 16012 16013fi 16014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16015$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16016 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16017 ;; 16018 esac 16019 fi 16020 ;; 16021esac 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16085$as_echo_n "checking dynamic linker characteristics... " >&6; } 16086 16087library_names_spec= 16088libname_spec='lib$name' 16089soname_spec= 16090shrext_cmds=.so 16091postinstall_cmds= 16092postuninstall_cmds= 16093finish_cmds= 16094finish_eval= 16095shlibpath_var= 16096shlibpath_overrides_runpath=unknown 16097version_type=none 16098dynamic_linker="$host_os ld.so" 16099sys_lib_dlsearch_path_spec="/lib /usr/lib" 16100need_lib_prefix=unknown 16101hardcode_into_libs=no 16102 16103# when you set need_version to no, make sure it does not cause -set_version 16104# flags to be left without arguments 16105need_version=unknown 16106 16107 16108 16109case $host_os in 16110aix3*) 16111 version_type=linux # correct to gnu/linux during the next big refactor 16112 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16113 shlibpath_var=LIBPATH 16114 16115 # AIX 3 has no versioning support, so we append a major version to the name. 16116 soname_spec='$libname$release$shared_ext$major' 16117 ;; 16118 16119aix[4-9]*) 16120 version_type=linux # correct to gnu/linux during the next big refactor 16121 need_lib_prefix=no 16122 need_version=no 16123 hardcode_into_libs=yes 16124 if test ia64 = "$host_cpu"; then 16125 # AIX 5 supports IA64 16126 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16127 shlibpath_var=LD_LIBRARY_PATH 16128 else 16129 # With GCC up to 2.95.x, collect2 would create an import file 16130 # for dependence libraries. The import file would start with 16131 # the line '#! .'. This would cause the generated library to 16132 # depend on '.', always an invalid library. This was fixed in 16133 # development snapshots of GCC prior to 3.0. 16134 case $host_os in 16135 aix4 | aix4.[01] | aix4.[01].*) 16136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16137 echo ' yes ' 16138 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16139 : 16140 else 16141 can_build_shared=no 16142 fi 16143 ;; 16144 esac 16145 # Using Import Files as archive members, it is possible to support 16146 # filename-based versioning of shared library archives on AIX. While 16147 # this would work for both with and without runtime linking, it will 16148 # prevent static linking of such archives. So we do filename-based 16149 # shared library versioning with .so extension only, which is used 16150 # when both runtime linking and shared linking is enabled. 16151 # Unfortunately, runtime linking may impact performance, so we do 16152 # not want this to be the default eventually. Also, we use the 16153 # versioned .so libs for executables only if there is the -brtl 16154 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16155 # To allow for filename-based versioning support, we need to create 16156 # libNAME.so.V as an archive file, containing: 16157 # *) an Import File, referring to the versioned filename of the 16158 # archive as well as the shared archive member, telling the 16159 # bitwidth (32 or 64) of that shared object, and providing the 16160 # list of exported symbols of that shared object, eventually 16161 # decorated with the 'weak' keyword 16162 # *) the shared object with the F_LOADONLY flag set, to really avoid 16163 # it being seen by the linker. 16164 # At run time we better use the real file rather than another symlink, 16165 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16166 16167 case $with_aix_soname,$aix_use_runtimelinking in 16168 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16169 # soname into executable. Probably we can add versioning support to 16170 # collect2, so additional links can be useful in future. 16171 aix,yes) # traditional libtool 16172 dynamic_linker='AIX unversionable lib.so' 16173 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16174 # instead of lib<name>.a to let people know that these are not 16175 # typical AIX shared libraries. 16176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16177 ;; 16178 aix,no) # traditional AIX only 16179 dynamic_linker='AIX lib.a(lib.so.V)' 16180 # We preserve .a as extension for shared libraries through AIX4.2 16181 # and later when we are not doing run time linking. 16182 library_names_spec='$libname$release.a $libname.a' 16183 soname_spec='$libname$release$shared_ext$major' 16184 ;; 16185 svr4,*) # full svr4 only 16186 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16187 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16188 # We do not specify a path in Import Files, so LIBPATH fires. 16189 shlibpath_overrides_runpath=yes 16190 ;; 16191 *,yes) # both, prefer svr4 16192 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16193 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16194 # unpreferred sharedlib libNAME.a needs extra handling 16195 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 16196 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 16197 # We do not specify a path in Import Files, so LIBPATH fires. 16198 shlibpath_overrides_runpath=yes 16199 ;; 16200 *,no) # both, prefer aix 16201 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16202 library_names_spec='$libname$release.a $libname.a' 16203 soname_spec='$libname$release$shared_ext$major' 16204 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16205 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 16206 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 16207 ;; 16208 esac 16209 shlibpath_var=LIBPATH 16210 fi 16211 ;; 16212 16213amigaos*) 16214 case $host_cpu in 16215 powerpc) 16216 # Since July 2007 AmigaOS4 officially supports .so libraries. 16217 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16219 ;; 16220 m68k) 16221 library_names_spec='$libname.ixlibrary $libname.a' 16222 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16223 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 16224 ;; 16225 esac 16226 ;; 16227 16228beos*) 16229 library_names_spec='$libname$shared_ext' 16230 dynamic_linker="$host_os ld.so" 16231 shlibpath_var=LIBRARY_PATH 16232 ;; 16233 16234bsdi[45]*) 16235 version_type=linux # correct to gnu/linux during the next big refactor 16236 need_version=no 16237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16238 soname_spec='$libname$release$shared_ext$major' 16239 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16240 shlibpath_var=LD_LIBRARY_PATH 16241 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16242 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16243 # the default ld.so.conf also contains /usr/contrib/lib and 16244 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16245 # libtool to hard-code these into programs 16246 ;; 16247 16248cygwin* | mingw* | pw32* | cegcc*) 16249 version_type=windows 16250 shrext_cmds=.dll 16251 need_version=no 16252 need_lib_prefix=no 16253 16254 case $GCC,$cc_basename in 16255 yes,*) 16256 # gcc 16257 library_names_spec='$libname.dll.a' 16258 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16259 postinstall_cmds='base_file=`basename \$file`~ 16260 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16261 dldir=$destdir/`dirname \$dlpath`~ 16262 test -d \$dldir || mkdir -p \$dldir~ 16263 $install_prog $dir/$dlname \$dldir/$dlname~ 16264 chmod a+x \$dldir/$dlname~ 16265 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16266 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16267 fi' 16268 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16269 dlpath=$dir/\$dldll~ 16270 $RM \$dlpath' 16271 shlibpath_overrides_runpath=yes 16272 16273 case $host_os in 16274 cygwin*) 16275 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16276 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16277 16278 ;; 16279 mingw* | cegcc*) 16280 # MinGW DLLs use traditional 'lib' prefix 16281 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16282 ;; 16283 pw32*) 16284 # pw32 DLLs use 'pw' prefix rather than 'lib' 16285 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16286 ;; 16287 esac 16288 dynamic_linker='Win32 ld.exe' 16289 ;; 16290 16291 *,cl*) 16292 # Native MSVC 16293 libname_spec='$name' 16294 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16295 library_names_spec='$libname.dll.lib' 16296 16297 case $build_os in 16298 mingw*) 16299 sys_lib_search_path_spec= 16300 lt_save_ifs=$IFS 16301 IFS=';' 16302 for lt_path in $LIB 16303 do 16304 IFS=$lt_save_ifs 16305 # Let DOS variable expansion print the short 8.3 style file name. 16306 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16307 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16308 done 16309 IFS=$lt_save_ifs 16310 # Convert to MSYS style. 16311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16312 ;; 16313 cygwin*) 16314 # Convert to unix form, then to dos form, then back to unix form 16315 # but this time dos style (no spaces!) so that the unix form looks 16316 # like /cygdrive/c/PROGRA~1:/cygdr... 16317 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16318 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16319 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16320 ;; 16321 *) 16322 sys_lib_search_path_spec=$LIB 16323 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16324 # It is most probably a Windows format PATH. 16325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16326 else 16327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16328 fi 16329 # FIXME: find the short name or the path components, as spaces are 16330 # common. (e.g. "Program Files" -> "PROGRA~1") 16331 ;; 16332 esac 16333 16334 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16335 postinstall_cmds='base_file=`basename \$file`~ 16336 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16337 dldir=$destdir/`dirname \$dlpath`~ 16338 test -d \$dldir || mkdir -p \$dldir~ 16339 $install_prog $dir/$dlname \$dldir/$dlname' 16340 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16341 dlpath=$dir/\$dldll~ 16342 $RM \$dlpath' 16343 shlibpath_overrides_runpath=yes 16344 dynamic_linker='Win32 link.exe' 16345 ;; 16346 16347 *) 16348 # Assume MSVC wrapper 16349 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16350 dynamic_linker='Win32 ld.exe' 16351 ;; 16352 esac 16353 # FIXME: first we should search . and the directory the executable is in 16354 shlibpath_var=PATH 16355 ;; 16356 16357darwin* | rhapsody*) 16358 dynamic_linker="$host_os dyld" 16359 version_type=darwin 16360 need_lib_prefix=no 16361 need_version=no 16362 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16363 soname_spec='$libname$release$major$shared_ext' 16364 shlibpath_overrides_runpath=yes 16365 shlibpath_var=DYLD_LIBRARY_PATH 16366 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16367 16368 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16369 ;; 16370 16371dgux*) 16372 version_type=linux # correct to gnu/linux during the next big refactor 16373 need_lib_prefix=no 16374 need_version=no 16375 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16376 soname_spec='$libname$release$shared_ext$major' 16377 shlibpath_var=LD_LIBRARY_PATH 16378 ;; 16379 16380freebsd* | dragonfly*) 16381 # DragonFly does not have aout. When/if they implement a new 16382 # versioning mechanism, adjust this. 16383 if test -x /usr/bin/objformat; then 16384 objformat=`/usr/bin/objformat` 16385 else 16386 case $host_os in 16387 freebsd[23].*) objformat=aout ;; 16388 *) objformat=elf ;; 16389 esac 16390 fi 16391 version_type=freebsd-$objformat 16392 case $version_type in 16393 freebsd-elf*) 16394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16395 soname_spec='$libname$release$shared_ext$major' 16396 need_version=no 16397 need_lib_prefix=no 16398 ;; 16399 freebsd-*) 16400 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16401 need_version=yes 16402 ;; 16403 esac 16404 shlibpath_var=LD_LIBRARY_PATH 16405 case $host_os in 16406 freebsd2.*) 16407 shlibpath_overrides_runpath=yes 16408 ;; 16409 freebsd3.[01]* | freebsdelf3.[01]*) 16410 shlibpath_overrides_runpath=yes 16411 hardcode_into_libs=yes 16412 ;; 16413 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16414 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16415 shlibpath_overrides_runpath=no 16416 hardcode_into_libs=yes 16417 ;; 16418 *) # from 4.6 on, and DragonFly 16419 shlibpath_overrides_runpath=yes 16420 hardcode_into_libs=yes 16421 ;; 16422 esac 16423 ;; 16424 16425haiku*) 16426 version_type=linux # correct to gnu/linux during the next big refactor 16427 need_lib_prefix=no 16428 need_version=no 16429 dynamic_linker="$host_os runtime_loader" 16430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16431 soname_spec='$libname$release$shared_ext$major' 16432 shlibpath_var=LIBRARY_PATH 16433 shlibpath_overrides_runpath=no 16434 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16435 hardcode_into_libs=yes 16436 ;; 16437 16438hpux9* | hpux10* | hpux11*) 16439 # Give a soname corresponding to the major version so that dld.sl refuses to 16440 # link against other versions. 16441 version_type=sunos 16442 need_lib_prefix=no 16443 need_version=no 16444 case $host_cpu in 16445 ia64*) 16446 shrext_cmds='.so' 16447 hardcode_into_libs=yes 16448 dynamic_linker="$host_os dld.so" 16449 shlibpath_var=LD_LIBRARY_PATH 16450 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16452 soname_spec='$libname$release$shared_ext$major' 16453 if test 32 = "$HPUX_IA64_MODE"; then 16454 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16455 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16456 else 16457 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16458 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16459 fi 16460 ;; 16461 hppa*64*) 16462 shrext_cmds='.sl' 16463 hardcode_into_libs=yes 16464 dynamic_linker="$host_os dld.sl" 16465 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16468 soname_spec='$libname$release$shared_ext$major' 16469 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16470 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16471 ;; 16472 *) 16473 shrext_cmds='.sl' 16474 dynamic_linker="$host_os dld.sl" 16475 shlibpath_var=SHLIB_PATH 16476 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16478 soname_spec='$libname$release$shared_ext$major' 16479 ;; 16480 esac 16481 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16482 postinstall_cmds='chmod 555 $lib' 16483 # or fails outright, so override atomically: 16484 install_override_mode=555 16485 ;; 16486 16487interix[3-9]*) 16488 version_type=linux # correct to gnu/linux during the next big refactor 16489 need_lib_prefix=no 16490 need_version=no 16491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16492 soname_spec='$libname$release$shared_ext$major' 16493 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16494 shlibpath_var=LD_LIBRARY_PATH 16495 shlibpath_overrides_runpath=no 16496 hardcode_into_libs=yes 16497 ;; 16498 16499irix5* | irix6* | nonstopux*) 16500 case $host_os in 16501 nonstopux*) version_type=nonstopux ;; 16502 *) 16503 if test yes = "$lt_cv_prog_gnu_ld"; then 16504 version_type=linux # correct to gnu/linux during the next big refactor 16505 else 16506 version_type=irix 16507 fi ;; 16508 esac 16509 need_lib_prefix=no 16510 need_version=no 16511 soname_spec='$libname$release$shared_ext$major' 16512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16513 case $host_os in 16514 irix5* | nonstopux*) 16515 libsuff= shlibsuff= 16516 ;; 16517 *) 16518 case $LD in # libtool.m4 will add one of these switches to LD 16519 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16520 libsuff= shlibsuff= libmagic=32-bit;; 16521 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16522 libsuff=32 shlibsuff=N32 libmagic=N32;; 16523 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16524 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16525 *) libsuff= shlibsuff= libmagic=never-match;; 16526 esac 16527 ;; 16528 esac 16529 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16530 shlibpath_overrides_runpath=no 16531 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16532 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16533 hardcode_into_libs=yes 16534 ;; 16535 16536# No shared lib support for Linux oldld, aout, or coff. 16537linux*oldld* | linux*aout* | linux*coff*) 16538 dynamic_linker=no 16539 ;; 16540 16541linux*android*) 16542 version_type=none # Android doesn't support versioned libraries. 16543 need_lib_prefix=no 16544 need_version=no 16545 library_names_spec='$libname$release$shared_ext' 16546 soname_spec='$libname$release$shared_ext' 16547 finish_cmds= 16548 shlibpath_var=LD_LIBRARY_PATH 16549 shlibpath_overrides_runpath=yes 16550 16551 # This implies no fast_install, which is unacceptable. 16552 # Some rework will be needed to allow for fast_install 16553 # before this can be enabled. 16554 hardcode_into_libs=yes 16555 16556 dynamic_linker='Android linker' 16557 # Don't embed -rpath directories since the linker doesn't support them. 16558 hardcode_libdir_flag_spec_CXX='-L$libdir' 16559 ;; 16560 16561# This must be glibc/ELF. 16562linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16563 version_type=linux # correct to gnu/linux during the next big refactor 16564 need_lib_prefix=no 16565 need_version=no 16566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16567 soname_spec='$libname$release$shared_ext$major' 16568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16569 shlibpath_var=LD_LIBRARY_PATH 16570 shlibpath_overrides_runpath=no 16571 16572 # Some binutils ld are patched to set DT_RUNPATH 16573 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16574 $as_echo_n "(cached) " >&6 16575else 16576 lt_cv_shlibpath_overrides_runpath=no 16577 save_LDFLAGS=$LDFLAGS 16578 save_libdir=$libdir 16579 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16580 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16582/* end confdefs.h. */ 16583 16584int 16585main () 16586{ 16587 16588 ; 16589 return 0; 16590} 16591_ACEOF 16592if ac_fn_cxx_try_link "$LINENO"; then : 16593 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16594 lt_cv_shlibpath_overrides_runpath=yes 16595fi 16596fi 16597rm -f core conftest.err conftest.$ac_objext \ 16598 conftest$ac_exeext conftest.$ac_ext 16599 LDFLAGS=$save_LDFLAGS 16600 libdir=$save_libdir 16601 16602fi 16603 16604 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16605 16606 # This implies no fast_install, which is unacceptable. 16607 # Some rework will be needed to allow for fast_install 16608 # before this can be enabled. 16609 hardcode_into_libs=yes 16610 16611 # Ideally, we could use ldconfig to report *all* directores which are 16612 # searched for libraries, however this is still not possible. Aside from not 16613 # being certain /sbin/ldconfig is available, command 16614 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16615 # even though it is searched at run-time. Try to do the best guess by 16616 # appending ld.so.conf contents (and includes) to the search path. 16617 if test -f /etc/ld.so.conf; then 16618 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' ' '` 16619 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16620 fi 16621 16622 # We used to test for /lib/ld.so.1 and disable shared libraries on 16623 # powerpc, because MkLinux only supported shared libraries with the 16624 # GNU dynamic linker. Since this was broken with cross compilers, 16625 # most powerpc-linux boxes support dynamic linking these days and 16626 # people can always --disable-shared, the test was removed, and we 16627 # assume the GNU/Linux dynamic linker is in use. 16628 dynamic_linker='GNU/Linux ld.so' 16629 ;; 16630 16631netbsdelf*-gnu) 16632 version_type=linux 16633 need_lib_prefix=no 16634 need_version=no 16635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16636 soname_spec='${libname}${release}${shared_ext}$major' 16637 shlibpath_var=LD_LIBRARY_PATH 16638 shlibpath_overrides_runpath=no 16639 hardcode_into_libs=yes 16640 dynamic_linker='NetBSD ld.elf_so' 16641 ;; 16642 16643netbsd*) 16644 version_type=sunos 16645 need_lib_prefix=no 16646 need_version=no 16647 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16648 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16650 dynamic_linker='NetBSD (a.out) ld.so' 16651 else 16652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16653 soname_spec='$libname$release$shared_ext$major' 16654 dynamic_linker='NetBSD ld.elf_so' 16655 fi 16656 shlibpath_var=LD_LIBRARY_PATH 16657 shlibpath_overrides_runpath=yes 16658 hardcode_into_libs=yes 16659 ;; 16660 16661newsos6) 16662 version_type=linux # correct to gnu/linux during the next big refactor 16663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16664 shlibpath_var=LD_LIBRARY_PATH 16665 shlibpath_overrides_runpath=yes 16666 ;; 16667 16668*nto* | *qnx*) 16669 version_type=qnx 16670 need_lib_prefix=no 16671 need_version=no 16672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16673 soname_spec='$libname$release$shared_ext$major' 16674 shlibpath_var=LD_LIBRARY_PATH 16675 shlibpath_overrides_runpath=no 16676 hardcode_into_libs=yes 16677 dynamic_linker='ldqnx.so' 16678 ;; 16679 16680openbsd* | bitrig*) 16681 version_type=sunos 16682 sys_lib_dlsearch_path_spec=/usr/lib 16683 need_lib_prefix=no 16684 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16685 need_version=no 16686 else 16687 need_version=yes 16688 fi 16689 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16691 shlibpath_var=LD_LIBRARY_PATH 16692 shlibpath_overrides_runpath=yes 16693 ;; 16694 16695os2*) 16696 libname_spec='$name' 16697 version_type=windows 16698 shrext_cmds=.dll 16699 need_version=no 16700 need_lib_prefix=no 16701 # OS/2 can only load a DLL with a base name of 8 characters or less. 16702 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16703 v=$($ECHO $release$versuffix | tr -d .-); 16704 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16705 $ECHO $n$v`$shared_ext' 16706 library_names_spec='${libname}_dll.$libext' 16707 dynamic_linker='OS/2 ld.exe' 16708 shlibpath_var=BEGINLIBPATH 16709 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16711 postinstall_cmds='base_file=`basename \$file`~ 16712 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16713 dldir=$destdir/`dirname \$dlpath`~ 16714 test -d \$dldir || mkdir -p \$dldir~ 16715 $install_prog $dir/$dlname \$dldir/$dlname~ 16716 chmod a+x \$dldir/$dlname~ 16717 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16718 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16719 fi' 16720 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16721 dlpath=$dir/\$dldll~ 16722 $RM \$dlpath' 16723 ;; 16724 16725osf3* | osf4* | osf5*) 16726 version_type=osf 16727 need_lib_prefix=no 16728 need_version=no 16729 soname_spec='$libname$release$shared_ext$major' 16730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16731 shlibpath_var=LD_LIBRARY_PATH 16732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16734 ;; 16735 16736rdos*) 16737 dynamic_linker=no 16738 ;; 16739 16740solaris*) 16741 version_type=linux # correct to gnu/linux during the next big refactor 16742 need_lib_prefix=no 16743 need_version=no 16744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16745 soname_spec='$libname$release$shared_ext$major' 16746 shlibpath_var=LD_LIBRARY_PATH 16747 shlibpath_overrides_runpath=yes 16748 hardcode_into_libs=yes 16749 # ldd complains unless libraries are executable 16750 postinstall_cmds='chmod +x $lib' 16751 ;; 16752 16753sunos4*) 16754 version_type=sunos 16755 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16757 shlibpath_var=LD_LIBRARY_PATH 16758 shlibpath_overrides_runpath=yes 16759 if test yes = "$with_gnu_ld"; then 16760 need_lib_prefix=no 16761 fi 16762 need_version=yes 16763 ;; 16764 16765sysv4 | sysv4.3*) 16766 version_type=linux # correct to gnu/linux during the next big refactor 16767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16768 soname_spec='$libname$release$shared_ext$major' 16769 shlibpath_var=LD_LIBRARY_PATH 16770 case $host_vendor in 16771 sni) 16772 shlibpath_overrides_runpath=no 16773 need_lib_prefix=no 16774 runpath_var=LD_RUN_PATH 16775 ;; 16776 siemens) 16777 need_lib_prefix=no 16778 ;; 16779 motorola) 16780 need_lib_prefix=no 16781 need_version=no 16782 shlibpath_overrides_runpath=no 16783 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16784 ;; 16785 esac 16786 ;; 16787 16788sysv4*MP*) 16789 if test -d /usr/nec; then 16790 version_type=linux # correct to gnu/linux during the next big refactor 16791 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16792 soname_spec='$libname$shared_ext.$major' 16793 shlibpath_var=LD_LIBRARY_PATH 16794 fi 16795 ;; 16796 16797sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16798 version_type=sco 16799 need_lib_prefix=no 16800 need_version=no 16801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16802 soname_spec='$libname$release$shared_ext$major' 16803 shlibpath_var=LD_LIBRARY_PATH 16804 shlibpath_overrides_runpath=yes 16805 hardcode_into_libs=yes 16806 if test yes = "$with_gnu_ld"; then 16807 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16808 else 16809 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16810 case $host_os in 16811 sco3.2v5*) 16812 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16813 ;; 16814 esac 16815 fi 16816 sys_lib_dlsearch_path_spec='/usr/lib' 16817 ;; 16818 16819tpf*) 16820 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16821 version_type=linux # correct to gnu/linux during the next big refactor 16822 need_lib_prefix=no 16823 need_version=no 16824 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16825 shlibpath_var=LD_LIBRARY_PATH 16826 shlibpath_overrides_runpath=no 16827 hardcode_into_libs=yes 16828 ;; 16829 16830uts4*) 16831 version_type=linux # correct to gnu/linux during the next big refactor 16832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16833 soname_spec='$libname$release$shared_ext$major' 16834 shlibpath_var=LD_LIBRARY_PATH 16835 ;; 16836 16837*) 16838 dynamic_linker=no 16839 ;; 16840esac 16841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16842$as_echo "$dynamic_linker" >&6; } 16843test no = "$dynamic_linker" && can_build_shared=no 16844 16845variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16846if test yes = "$GCC"; then 16847 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16848fi 16849 16850if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16851 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16852fi 16853 16854if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16855 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16856fi 16857 16858# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16859configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16860 16861# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16862func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16863 16864# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16865configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16907$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16908hardcode_action_CXX= 16909if test -n "$hardcode_libdir_flag_spec_CXX" || 16910 test -n "$runpath_var_CXX" || 16911 test yes = "$hardcode_automatic_CXX"; then 16912 16913 # We can hardcode non-existent directories. 16914 if test no != "$hardcode_direct_CXX" && 16915 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16916 # have to relink, otherwise we might link with an installed library 16917 # when we should be linking with a yet-to-be-installed one 16918 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16919 test no != "$hardcode_minus_L_CXX"; then 16920 # Linking always hardcodes the temporary library directory. 16921 hardcode_action_CXX=relink 16922 else 16923 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16924 hardcode_action_CXX=immediate 16925 fi 16926else 16927 # We cannot hardcode anything, or else we can only hardcode existing 16928 # directories. 16929 hardcode_action_CXX=unsupported 16930fi 16931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16932$as_echo "$hardcode_action_CXX" >&6; } 16933 16934if test relink = "$hardcode_action_CXX" || 16935 test yes = "$inherit_rpath_CXX"; then 16936 # Fast installation is not supported 16937 enable_fast_install=no 16938elif test yes = "$shlibpath_overrides_runpath" || 16939 test no = "$enable_shared"; then 16940 # Fast installation is not necessary 16941 enable_fast_install=needless 16942fi 16943 16944 16945 16946 16947 16948 16949 16950 fi # test -n "$compiler" 16951 16952 CC=$lt_save_CC 16953 CFLAGS=$lt_save_CFLAGS 16954 LDCXX=$LD 16955 LD=$lt_save_LD 16956 GCC=$lt_save_GCC 16957 with_gnu_ld=$lt_save_with_gnu_ld 16958 lt_cv_path_LDCXX=$lt_cv_path_LD 16959 lt_cv_path_LD=$lt_save_path_LD 16960 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16961 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16962fi # test yes != "$_lt_caught_CXX_error" 16963 16964ac_ext=c 16965ac_cpp='$CPP $CPPFLAGS' 16966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16968ac_compiler_gnu=$ac_cv_c_compiler_gnu 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 ac_config_commands="$ac_config_commands libtool" 16985 16986 16987 16988 16989# Only expand once: 16990 16991 16992enable_win32_dll=yes 16993 16994case $host in 16995*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 16996 if test -n "$ac_tool_prefix"; then 16997 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 16998set dummy ${ac_tool_prefix}as; ac_word=$2 16999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17000$as_echo_n "checking for $ac_word... " >&6; } 17001if ${ac_cv_prog_AS+:} false; then : 17002 $as_echo_n "(cached) " >&6 17003else 17004 if test -n "$AS"; then 17005 ac_cv_prog_AS="$AS" # Let the user override the test. 17006else 17007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17008for as_dir in $PATH 17009do 17010 IFS=$as_save_IFS 17011 test -z "$as_dir" && as_dir=. 17012 for ac_exec_ext in '' $ac_executable_extensions; do 17013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17014 ac_cv_prog_AS="${ac_tool_prefix}as" 17015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17016 break 2 17017 fi 17018done 17019 done 17020IFS=$as_save_IFS 17021 17022fi 17023fi 17024AS=$ac_cv_prog_AS 17025if test -n "$AS"; then 17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 17027$as_echo "$AS" >&6; } 17028else 17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17030$as_echo "no" >&6; } 17031fi 17032 17033 17034fi 17035if test -z "$ac_cv_prog_AS"; then 17036 ac_ct_AS=$AS 17037 # Extract the first word of "as", so it can be a program name with args. 17038set dummy as; ac_word=$2 17039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17040$as_echo_n "checking for $ac_word... " >&6; } 17041if ${ac_cv_prog_ac_ct_AS+:} false; then : 17042 $as_echo_n "(cached) " >&6 17043else 17044 if test -n "$ac_ct_AS"; then 17045 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 17046else 17047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17048for as_dir in $PATH 17049do 17050 IFS=$as_save_IFS 17051 test -z "$as_dir" && as_dir=. 17052 for ac_exec_ext in '' $ac_executable_extensions; do 17053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17054 ac_cv_prog_ac_ct_AS="as" 17055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17056 break 2 17057 fi 17058done 17059 done 17060IFS=$as_save_IFS 17061 17062fi 17063fi 17064ac_ct_AS=$ac_cv_prog_ac_ct_AS 17065if test -n "$ac_ct_AS"; then 17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 17067$as_echo "$ac_ct_AS" >&6; } 17068else 17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17070$as_echo "no" >&6; } 17071fi 17072 17073 if test "x$ac_ct_AS" = x; then 17074 AS="false" 17075 else 17076 case $cross_compiling:$ac_tool_warned in 17077yes:) 17078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17080ac_tool_warned=yes ;; 17081esac 17082 AS=$ac_ct_AS 17083 fi 17084else 17085 AS="$ac_cv_prog_AS" 17086fi 17087 17088 if test -n "$ac_tool_prefix"; then 17089 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 17090set dummy ${ac_tool_prefix}dlltool; ac_word=$2 17091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17092$as_echo_n "checking for $ac_word... " >&6; } 17093if ${ac_cv_prog_DLLTOOL+:} false; then : 17094 $as_echo_n "(cached) " >&6 17095else 17096 if test -n "$DLLTOOL"; then 17097 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 17098else 17099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17100for as_dir in $PATH 17101do 17102 IFS=$as_save_IFS 17103 test -z "$as_dir" && as_dir=. 17104 for ac_exec_ext in '' $ac_executable_extensions; do 17105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17106 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 17107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17108 break 2 17109 fi 17110done 17111 done 17112IFS=$as_save_IFS 17113 17114fi 17115fi 17116DLLTOOL=$ac_cv_prog_DLLTOOL 17117if test -n "$DLLTOOL"; then 17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 17119$as_echo "$DLLTOOL" >&6; } 17120else 17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17122$as_echo "no" >&6; } 17123fi 17124 17125 17126fi 17127if test -z "$ac_cv_prog_DLLTOOL"; then 17128 ac_ct_DLLTOOL=$DLLTOOL 17129 # Extract the first word of "dlltool", so it can be a program name with args. 17130set dummy dlltool; ac_word=$2 17131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17132$as_echo_n "checking for $ac_word... " >&6; } 17133if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 17134 $as_echo_n "(cached) " >&6 17135else 17136 if test -n "$ac_ct_DLLTOOL"; then 17137 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 17138else 17139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17140for as_dir in $PATH 17141do 17142 IFS=$as_save_IFS 17143 test -z "$as_dir" && as_dir=. 17144 for ac_exec_ext in '' $ac_executable_extensions; do 17145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17146 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 17147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17148 break 2 17149 fi 17150done 17151 done 17152IFS=$as_save_IFS 17153 17154fi 17155fi 17156ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 17157if test -n "$ac_ct_DLLTOOL"; then 17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 17159$as_echo "$ac_ct_DLLTOOL" >&6; } 17160else 17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17162$as_echo "no" >&6; } 17163fi 17164 17165 if test "x$ac_ct_DLLTOOL" = x; then 17166 DLLTOOL="false" 17167 else 17168 case $cross_compiling:$ac_tool_warned in 17169yes:) 17170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17172ac_tool_warned=yes ;; 17173esac 17174 DLLTOOL=$ac_ct_DLLTOOL 17175 fi 17176else 17177 DLLTOOL="$ac_cv_prog_DLLTOOL" 17178fi 17179 17180 if test -n "$ac_tool_prefix"; then 17181 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 17182set dummy ${ac_tool_prefix}objdump; ac_word=$2 17183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17184$as_echo_n "checking for $ac_word... " >&6; } 17185if ${ac_cv_prog_OBJDUMP+:} false; then : 17186 $as_echo_n "(cached) " >&6 17187else 17188 if test -n "$OBJDUMP"; then 17189 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 17190else 17191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17192for as_dir in $PATH 17193do 17194 IFS=$as_save_IFS 17195 test -z "$as_dir" && as_dir=. 17196 for ac_exec_ext in '' $ac_executable_extensions; do 17197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17198 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 17199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17200 break 2 17201 fi 17202done 17203 done 17204IFS=$as_save_IFS 17205 17206fi 17207fi 17208OBJDUMP=$ac_cv_prog_OBJDUMP 17209if test -n "$OBJDUMP"; then 17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 17211$as_echo "$OBJDUMP" >&6; } 17212else 17213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17214$as_echo "no" >&6; } 17215fi 17216 17217 17218fi 17219if test -z "$ac_cv_prog_OBJDUMP"; then 17220 ac_ct_OBJDUMP=$OBJDUMP 17221 # Extract the first word of "objdump", so it can be a program name with args. 17222set dummy objdump; ac_word=$2 17223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17224$as_echo_n "checking for $ac_word... " >&6; } 17225if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 17226 $as_echo_n "(cached) " >&6 17227else 17228 if test -n "$ac_ct_OBJDUMP"; then 17229 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 17230else 17231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17232for as_dir in $PATH 17233do 17234 IFS=$as_save_IFS 17235 test -z "$as_dir" && as_dir=. 17236 for ac_exec_ext in '' $ac_executable_extensions; do 17237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17238 ac_cv_prog_ac_ct_OBJDUMP="objdump" 17239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17240 break 2 17241 fi 17242done 17243 done 17244IFS=$as_save_IFS 17245 17246fi 17247fi 17248ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 17249if test -n "$ac_ct_OBJDUMP"; then 17250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 17251$as_echo "$ac_ct_OBJDUMP" >&6; } 17252else 17253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17254$as_echo "no" >&6; } 17255fi 17256 17257 if test "x$ac_ct_OBJDUMP" = x; then 17258 OBJDUMP="false" 17259 else 17260 case $cross_compiling:$ac_tool_warned in 17261yes:) 17262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17264ac_tool_warned=yes ;; 17265esac 17266 OBJDUMP=$ac_ct_OBJDUMP 17267 fi 17268else 17269 OBJDUMP="$ac_cv_prog_OBJDUMP" 17270fi 17271 17272 ;; 17273esac 17274 17275test -z "$AS" && AS=as 17276 17277 17278 17279 17280 17281test -z "$DLLTOOL" && DLLTOOL=dlltool 17282 17283 17284test -z "$OBJDUMP" && OBJDUMP=objdump 17285 17286 17287 17288 17289if test -n "$ac_tool_prefix"; then 17290 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 17291set dummy ${ac_tool_prefix}windres; ac_word=$2 17292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17293$as_echo_n "checking for $ac_word... " >&6; } 17294if ${ac_cv_prog_RC+:} false; then : 17295 $as_echo_n "(cached) " >&6 17296else 17297 if test -n "$RC"; then 17298 ac_cv_prog_RC="$RC" # Let the user override the test. 17299else 17300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17301for as_dir in $PATH 17302do 17303 IFS=$as_save_IFS 17304 test -z "$as_dir" && as_dir=. 17305 for ac_exec_ext in '' $ac_executable_extensions; do 17306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17307 ac_cv_prog_RC="${ac_tool_prefix}windres" 17308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17309 break 2 17310 fi 17311done 17312 done 17313IFS=$as_save_IFS 17314 17315fi 17316fi 17317RC=$ac_cv_prog_RC 17318if test -n "$RC"; then 17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 17320$as_echo "$RC" >&6; } 17321else 17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17323$as_echo "no" >&6; } 17324fi 17325 17326 17327fi 17328if test -z "$ac_cv_prog_RC"; then 17329 ac_ct_RC=$RC 17330 # Extract the first word of "windres", so it can be a program name with args. 17331set dummy windres; ac_word=$2 17332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17333$as_echo_n "checking for $ac_word... " >&6; } 17334if ${ac_cv_prog_ac_ct_RC+:} false; then : 17335 $as_echo_n "(cached) " >&6 17336else 17337 if test -n "$ac_ct_RC"; then 17338 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. 17339else 17340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17341for as_dir in $PATH 17342do 17343 IFS=$as_save_IFS 17344 test -z "$as_dir" && as_dir=. 17345 for ac_exec_ext in '' $ac_executable_extensions; do 17346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17347 ac_cv_prog_ac_ct_RC="windres" 17348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17349 break 2 17350 fi 17351done 17352 done 17353IFS=$as_save_IFS 17354 17355fi 17356fi 17357ac_ct_RC=$ac_cv_prog_ac_ct_RC 17358if test -n "$ac_ct_RC"; then 17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 17360$as_echo "$ac_ct_RC" >&6; } 17361else 17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17363$as_echo "no" >&6; } 17364fi 17365 17366 if test "x$ac_ct_RC" = x; then 17367 RC="" 17368 else 17369 case $cross_compiling:$ac_tool_warned in 17370yes:) 17371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17373ac_tool_warned=yes ;; 17374esac 17375 RC=$ac_ct_RC 17376 fi 17377else 17378 RC="$ac_cv_prog_RC" 17379fi 17380 17381 17382 17383 17384# Source file extension for RC test sources. 17385ac_ext=rc 17386 17387# Object file extension for compiled RC test sources. 17388objext=o 17389objext_RC=$objext 17390 17391# Code to be used in simple compile tests 17392lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 17393 17394# Code to be used in simple link tests 17395lt_simple_link_test_code=$lt_simple_compile_test_code 17396 17397# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17398 17399 17400 17401 17402 17403 17404# If no C compiler was specified, use CC. 17405LTCC=${LTCC-"$CC"} 17406 17407# If no C compiler flags were specified, use CFLAGS. 17408LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17409 17410# Allow CC to be a program name with arguments. 17411compiler=$CC 17412 17413 17414# save warnings/boilerplate of simple test code 17415ac_outfile=conftest.$ac_objext 17416echo "$lt_simple_compile_test_code" >conftest.$ac_ext 17417eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17418_lt_compiler_boilerplate=`cat conftest.err` 17419$RM conftest* 17420 17421ac_outfile=conftest.$ac_objext 17422echo "$lt_simple_link_test_code" >conftest.$ac_ext 17423eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17424_lt_linker_boilerplate=`cat conftest.err` 17425$RM -r conftest* 17426 17427 17428# Allow CC to be a program name with arguments. 17429lt_save_CC=$CC 17430lt_save_CFLAGS=$CFLAGS 17431lt_save_GCC=$GCC 17432GCC= 17433CC=${RC-"windres"} 17434CFLAGS= 17435compiler=$CC 17436compiler_RC=$CC 17437func_cc_basename $compiler 17438cc_basename=$func_cc_basename_result 17439 17440lt_cv_prog_compiler_c_o_RC=yes 17441 17442if test -n "$compiler"; then 17443 : 17444 17445 17446 17447fi 17448 17449GCC=$lt_save_GCC 17450ac_ext=c 17451ac_cpp='$CPP $CPPFLAGS' 17452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17454ac_compiler_gnu=$ac_cv_c_compiler_gnu 17455 17456CC=$lt_save_CC 17457CFLAGS=$lt_save_CFLAGS 17458 17459# Newer libtool doesn't have AC_LIBTOOL_RC anymore. Need to check for 17460# $(RC) by ourselves. 17461if test -n "$ac_tool_prefix"; then 17462 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 17463set dummy ${ac_tool_prefix}windres; ac_word=$2 17464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17465$as_echo_n "checking for $ac_word... " >&6; } 17466if ${ac_cv_prog_RC+:} false; then : 17467 $as_echo_n "(cached) " >&6 17468else 17469 if test -n "$RC"; then 17470 ac_cv_prog_RC="$RC" # Let the user override the test. 17471else 17472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17473for as_dir in $PATH 17474do 17475 IFS=$as_save_IFS 17476 test -z "$as_dir" && as_dir=. 17477 for ac_exec_ext in '' $ac_executable_extensions; do 17478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17479 ac_cv_prog_RC="${ac_tool_prefix}windres" 17480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17481 break 2 17482 fi 17483done 17484 done 17485IFS=$as_save_IFS 17486 17487fi 17488fi 17489RC=$ac_cv_prog_RC 17490if test -n "$RC"; then 17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 17492$as_echo "$RC" >&6; } 17493else 17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17495$as_echo "no" >&6; } 17496fi 17497 17498 17499fi 17500if test -z "$ac_cv_prog_RC"; then 17501 ac_ct_RC=$RC 17502 # Extract the first word of "windres", so it can be a program name with args. 17503set dummy windres; ac_word=$2 17504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17505$as_echo_n "checking for $ac_word... " >&6; } 17506if ${ac_cv_prog_ac_ct_RC+:} false; then : 17507 $as_echo_n "(cached) " >&6 17508else 17509 if test -n "$ac_ct_RC"; then 17510 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. 17511else 17512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17513for as_dir in $PATH 17514do 17515 IFS=$as_save_IFS 17516 test -z "$as_dir" && as_dir=. 17517 for ac_exec_ext in '' $ac_executable_extensions; do 17518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17519 ac_cv_prog_ac_ct_RC="windres" 17520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17521 break 2 17522 fi 17523done 17524 done 17525IFS=$as_save_IFS 17526 17527fi 17528fi 17529ac_ct_RC=$ac_cv_prog_ac_ct_RC 17530if test -n "$ac_ct_RC"; then 17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 17532$as_echo "$ac_ct_RC" >&6; } 17533else 17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17535$as_echo "no" >&6; } 17536fi 17537 17538 if test "x$ac_ct_RC" = x; then 17539 RC="no" 17540 else 17541 case $cross_compiling:$ac_tool_warned in 17542yes:) 17543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17545ac_tool_warned=yes ;; 17546esac 17547 RC=$ac_ct_RC 17548 fi 17549else 17550 RC="$ac_cv_prog_RC" 17551fi 17552 17553for ac_prog in gawk mawk nawk awk 17554do 17555 # Extract the first word of "$ac_prog", so it can be a program name with args. 17556set dummy $ac_prog; ac_word=$2 17557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17558$as_echo_n "checking for $ac_word... " >&6; } 17559if ${ac_cv_prog_AWK+:} false; then : 17560 $as_echo_n "(cached) " >&6 17561else 17562 if test -n "$AWK"; then 17563 ac_cv_prog_AWK="$AWK" # Let the user override the test. 17564else 17565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17566for as_dir in $PATH 17567do 17568 IFS=$as_save_IFS 17569 test -z "$as_dir" && as_dir=. 17570 for ac_exec_ext in '' $ac_executable_extensions; do 17571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17572 ac_cv_prog_AWK="$ac_prog" 17573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17574 break 2 17575 fi 17576done 17577 done 17578IFS=$as_save_IFS 17579 17580fi 17581fi 17582AWK=$ac_cv_prog_AWK 17583if test -n "$AWK"; then 17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 17585$as_echo "$AWK" >&6; } 17586else 17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17588$as_echo "no" >&6; } 17589fi 17590 17591 17592 test -n "$AWK" && break 17593done 17594 17595# Extract the first word of "dot", so it can be a program name with args. 17596set dummy dot; ac_word=$2 17597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17598$as_echo_n "checking for $ac_word... " >&6; } 17599if ${ac_cv_prog_USE_DOT+:} false; then : 17600 $as_echo_n "(cached) " >&6 17601else 17602 if test -n "$USE_DOT"; then 17603 ac_cv_prog_USE_DOT="$USE_DOT" # Let the user override the test. 17604else 17605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17606for as_dir in $PATH 17607do 17608 IFS=$as_save_IFS 17609 test -z "$as_dir" && as_dir=. 17610 for ac_exec_ext in '' $ac_executable_extensions; do 17611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17612 ac_cv_prog_USE_DOT="YES" 17613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17614 break 2 17615 fi 17616done 17617 done 17618IFS=$as_save_IFS 17619 17620 test -z "$ac_cv_prog_USE_DOT" && ac_cv_prog_USE_DOT="NO" 17621fi 17622fi 17623USE_DOT=$ac_cv_prog_USE_DOT 17624if test -n "$USE_DOT"; then 17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_DOT" >&5 17626$as_echo "$USE_DOT" >&6; } 17627else 17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17629$as_echo "no" >&6; } 17630fi 17631 17632 17633# Extract the first word of "sed", so it can be a program name with args. 17634set dummy sed; ac_word=$2 17635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17636$as_echo_n "checking for $ac_word... " >&6; } 17637if ${ac_cv_prog_SED+:} false; then : 17638 $as_echo_n "(cached) " >&6 17639else 17640 if test -n "$SED"; then 17641 ac_cv_prog_SED="$SED" # Let the user override the test. 17642else 17643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17644for as_dir in $PATH 17645do 17646 IFS=$as_save_IFS 17647 test -z "$as_dir" && as_dir=. 17648 for ac_exec_ext in '' $ac_executable_extensions; do 17649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17650 ac_cv_prog_SED="sed" 17651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17652 break 2 17653 fi 17654done 17655 done 17656IFS=$as_save_IFS 17657 17658fi 17659fi 17660SED=$ac_cv_prog_SED 17661if test -n "$SED"; then 17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 17663$as_echo "$SED" >&6; } 17664else 17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17666$as_echo "no" >&6; } 17667fi 17668 17669 17670 17671# Check for the tool "astyle", but if not found, replace its program call by the no-op "echo" instead 17672# Extract the first word of "astyle", so it can be a program name with args. 17673set dummy astyle; ac_word=$2 17674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17675$as_echo_n "checking for $ac_word... " >&6; } 17676if ${ac_cv_prog_ASTYLE+:} false; then : 17677 $as_echo_n "(cached) " >&6 17678else 17679 if test -n "$ASTYLE"; then 17680 ac_cv_prog_ASTYLE="$ASTYLE" # Let the user override the test. 17681else 17682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17683for as_dir in $PATH 17684do 17685 IFS=$as_save_IFS 17686 test -z "$as_dir" && as_dir=. 17687 for ac_exec_ext in '' $ac_executable_extensions; do 17688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17689 ac_cv_prog_ASTYLE="astyle" 17690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17691 break 2 17692 fi 17693done 17694 done 17695IFS=$as_save_IFS 17696 17697 test -z "$ac_cv_prog_ASTYLE" && ac_cv_prog_ASTYLE="echo" 17698fi 17699fi 17700ASTYLE=$ac_cv_prog_ASTYLE 17701if test -n "$ASTYLE"; then 17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASTYLE" >&5 17703$as_echo "$ASTYLE" >&6; } 17704else 17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17706$as_echo "no" >&6; } 17707fi 17708 17709 17710 17711###------------------------------------------------------------------------- 17712# 17713# Checks for libraries. 17714# 17715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17716$as_echo_n "checking for dlopen in -ldl... " >&6; } 17717if ${ac_cv_lib_dl_dlopen+:} false; then : 17718 $as_echo_n "(cached) " >&6 17719else 17720 ac_check_lib_save_LIBS=$LIBS 17721LIBS="-ldl $LIBS" 17722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17723/* end confdefs.h. */ 17724 17725/* Override any GCC internal prototype to avoid an error. 17726 Use char because int might match the return type of a GCC 17727 builtin and then its argument prototype would still apply. */ 17728#ifdef __cplusplus 17729extern "C" 17730#endif 17731char dlopen (); 17732int 17733main () 17734{ 17735return dlopen (); 17736 ; 17737 return 0; 17738} 17739_ACEOF 17740if ac_fn_c_try_link "$LINENO"; then : 17741 ac_cv_lib_dl_dlopen=yes 17742else 17743 ac_cv_lib_dl_dlopen=no 17744fi 17745rm -f core conftest.err conftest.$ac_objext \ 17746 conftest$ac_exeext conftest.$ac_ext 17747LIBS=$ac_check_lib_save_LIBS 17748fi 17749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17750$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17751if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17752 cat >>confdefs.h <<_ACEOF 17753#define HAVE_LIBDL 1 17754_ACEOF 17755 17756 LIBS="-ldl $LIBS" 17757 17758fi 17759 17760# note: this AC_CHECK_LIB will also add -ldl to LIBS. 17761 17762 17763 17764 17765 17766ac_ext=c 17767ac_cpp='$CPP $CPPFLAGS' 17768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17770ac_compiler_gnu=$ac_cv_c_compiler_gnu 17771 17772ax_pthread_ok=no 17773 17774# We used to check for pthread.h first, but this fails if pthread.h 17775# requires special compiler flags (e.g. on Tru64 or Sequent). 17776# It gets checked for in the link test anyway. 17777 17778# First of all, check if the user has set any of the PTHREAD_LIBS, 17779# etcetera environment variables, and if threads linking works using 17780# them: 17781if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 17782 ax_pthread_save_CC="$CC" 17783 ax_pthread_save_CFLAGS="$CFLAGS" 17784 ax_pthread_save_LIBS="$LIBS" 17785 if test "x$PTHREAD_CC" != "x"; then : 17786 CC="$PTHREAD_CC" 17787fi 17788 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17789 LIBS="$PTHREAD_LIBS $LIBS" 17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 17791$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 17792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17793/* end confdefs.h. */ 17794 17795/* Override any GCC internal prototype to avoid an error. 17796 Use char because int might match the return type of a GCC 17797 builtin and then its argument prototype would still apply. */ 17798#ifdef __cplusplus 17799extern "C" 17800#endif 17801char pthread_join (); 17802int 17803main () 17804{ 17805return pthread_join (); 17806 ; 17807 return 0; 17808} 17809_ACEOF 17810if ac_fn_c_try_link "$LINENO"; then : 17811 ax_pthread_ok=yes 17812fi 17813rm -f core conftest.err conftest.$ac_objext \ 17814 conftest$ac_exeext conftest.$ac_ext 17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 17816$as_echo "$ax_pthread_ok" >&6; } 17817 if test "x$ax_pthread_ok" = "xno"; then 17818 PTHREAD_LIBS="" 17819 PTHREAD_CFLAGS="" 17820 fi 17821 CC="$ax_pthread_save_CC" 17822 CFLAGS="$ax_pthread_save_CFLAGS" 17823 LIBS="$ax_pthread_save_LIBS" 17824fi 17825 17826# We must check for the threads library under a number of different 17827# names; the ordering is very important because some systems 17828# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 17829# libraries is broken (non-POSIX). 17830 17831# Create a list of thread flags to try. Items starting with a "-" are 17832# C compiler flags, and other items are library names, except for "none" 17833# which indicates that we try without any flags at all, and "pthread-config" 17834# which is a program returning the flags for the Pth emulation library. 17835 17836ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 17837 17838# The ordering *is* (sometimes) important. Some notes on the 17839# individual items follow: 17840 17841# pthreads: AIX (must check this before -lpthread) 17842# none: in case threads are in libc; should be tried before -Kthread and 17843# other compiler flags to prevent continual compiler warnings 17844# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 17845# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 17846# (Note: HP C rejects this with "bad form for `-t' option") 17847# -pthreads: Solaris/gcc (Note: HP C also rejects) 17848# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 17849# doesn't hurt to check since this sometimes defines pthreads and 17850# -D_REENTRANT too), HP C (must be checked before -lpthread, which 17851# is present but should not be used directly; and before -mthreads, 17852# because the compiler interprets this as "-mt" + "-hreads") 17853# -mthreads: Mingw32/gcc, Lynx/gcc 17854# pthread: Linux, etcetera 17855# --thread-safe: KAI C++ 17856# pthread-config: use pthread-config program (for GNU Pth library) 17857 17858case $host_os in 17859 17860 freebsd*) 17861 17862 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 17863 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 17864 17865 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 17866 ;; 17867 17868 hpux*) 17869 17870 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 17871 # multi-threading and also sets -lpthread." 17872 17873 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 17874 ;; 17875 17876 openedition*) 17877 17878 # IBM z/OS requires a feature-test macro to be defined in order to 17879 # enable POSIX threads at all, so give the user a hint if this is 17880 # not set. (We don't define these ourselves, as they can affect 17881 # other portions of the system API in unpredictable ways.) 17882 17883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17884/* end confdefs.h. */ 17885 17886# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 17887 AX_PTHREAD_ZOS_MISSING 17888# endif 17889 17890_ACEOF 17891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17892 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 17893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 17894$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 17895fi 17896rm -f conftest* 17897 17898 ;; 17899 17900 solaris*) 17901 17902 # On Solaris (at least, for some versions), libc contains stubbed 17903 # (non-functional) versions of the pthreads routines, so link-based 17904 # tests will erroneously succeed. (N.B.: The stubs are missing 17905 # pthread_cleanup_push, or rather a function called by this macro, 17906 # so we could check for that, but who knows whether they'll stub 17907 # that too in a future libc.) So we'll check first for the 17908 # standard Solaris way of linking pthreads (-mt -lpthread). 17909 17910 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 17911 ;; 17912esac 17913 17914# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 17915 17916if test "x$GCC" = "xyes"; then : 17917 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags" 17918fi 17919 17920# The presence of a feature test macro requesting re-entrant function 17921# definitions is, on some systems, a strong hint that pthreads support is 17922# correctly enabled 17923 17924case $host_os in 17925 darwin* | hpux* | linux* | osf* | solaris*) 17926 ax_pthread_check_macro="_REENTRANT" 17927 ;; 17928 17929 aix*) 17930 ax_pthread_check_macro="_THREAD_SAFE" 17931 ;; 17932 17933 *) 17934 ax_pthread_check_macro="--" 17935 ;; 17936esac 17937if test "x$ax_pthread_check_macro" = "x--"; then : 17938 ax_pthread_check_cond=0 17939else 17940 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 17941fi 17942 17943# Are we compiling with Clang? 17944 17945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 17946$as_echo_n "checking whether $CC is Clang... " >&6; } 17947if ${ax_cv_PTHREAD_CLANG+:} false; then : 17948 $as_echo_n "(cached) " >&6 17949else 17950 ax_cv_PTHREAD_CLANG=no 17951 # Note that Autoconf sets GCC=yes for Clang as well as GCC 17952 if test "x$GCC" = "xyes"; then 17953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17954/* end confdefs.h. */ 17955/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 17956# if defined(__clang__) && defined(__llvm__) 17957 AX_PTHREAD_CC_IS_CLANG 17958# endif 17959 17960_ACEOF 17961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17962 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 17963 ax_cv_PTHREAD_CLANG=yes 17964fi 17965rm -f conftest* 17966 17967 fi 17968 17969fi 17970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 17971$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 17972ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 17973 17974ax_pthread_clang_warning=no 17975 17976# Clang needs special handling, because older versions handle the -pthread 17977# option in a rather... idiosyncratic way 17978 17979if test "x$ax_pthread_clang" = "xyes"; then 17980 17981 # Clang takes -pthread; it has never supported any other flag 17982 17983 # (Note 1: This will need to be revisited if a system that Clang 17984 # supports has POSIX threads in a separate library. This tends not 17985 # to be the way of modern systems, but it's conceivable.) 17986 17987 # (Note 2: On some systems, notably Darwin, -pthread is not needed 17988 # to get POSIX threads support; the API is always present and 17989 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 17990 # -pthread does define _REENTRANT, and while the Darwin headers 17991 # ignore this macro, third-party headers might not.) 17992 17993 PTHREAD_CFLAGS="-pthread" 17994 PTHREAD_LIBS= 17995 17996 ax_pthread_ok=yes 17997 17998 # However, older versions of Clang make a point of warning the user 17999 # that, in an invocation where only linking and no compilation is 18000 # taking place, the -pthread option has no effect ("argument unused 18001 # during compilation"). They expect -pthread to be passed in only 18002 # when source code is being compiled. 18003 # 18004 # Problem is, this is at odds with the way Automake and most other 18005 # C build frameworks function, which is that the same flags used in 18006 # compilation (CFLAGS) are also used in linking. Many systems 18007 # supported by AX_PTHREAD require exactly this for POSIX threads 18008 # support, and in fact it is often not straightforward to specify a 18009 # flag that is used only in the compilation phase and not in 18010 # linking. Such a scenario is extremely rare in practice. 18011 # 18012 # Even though use of the -pthread flag in linking would only print 18013 # a warning, this can be a nuisance for well-run software projects 18014 # that build with -Werror. So if the active version of Clang has 18015 # this misfeature, we search for an option to squash it. 18016 18017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 18018$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 18019if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 18020 $as_echo_n "(cached) " >&6 18021else 18022 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 18023 # Create an alternate version of $ac_link that compiles and 18024 # links in two steps (.c -> .o, .o -> exe) instead of one 18025 # (.c -> exe), because the warning occurs only in the second 18026 # step 18027 ax_pthread_save_ac_link="$ac_link" 18028 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 18029 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 18030 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 18031 ax_pthread_save_CFLAGS="$CFLAGS" 18032 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 18033 if test "x$ax_pthread_try" = "xunknown"; then : 18034 break 18035fi 18036 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 18037 ac_link="$ax_pthread_save_ac_link" 18038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18039/* end confdefs.h. */ 18040int main(void){return 0;} 18041_ACEOF 18042if ac_fn_c_try_link "$LINENO"; then : 18043 ac_link="$ax_pthread_2step_ac_link" 18044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18045/* end confdefs.h. */ 18046int main(void){return 0;} 18047_ACEOF 18048if ac_fn_c_try_link "$LINENO"; then : 18049 break 18050fi 18051rm -f core conftest.err conftest.$ac_objext \ 18052 conftest$ac_exeext conftest.$ac_ext 18053 18054fi 18055rm -f core conftest.err conftest.$ac_objext \ 18056 conftest$ac_exeext conftest.$ac_ext 18057 done 18058 ac_link="$ax_pthread_save_ac_link" 18059 CFLAGS="$ax_pthread_save_CFLAGS" 18060 if test "x$ax_pthread_try" = "x"; then : 18061 ax_pthread_try=no 18062fi 18063 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 18064 18065fi 18066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 18067$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 18068 18069 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 18070 no | unknown) ;; 18071 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 18072 esac 18073 18074fi # $ax_pthread_clang = yes 18075 18076if test "x$ax_pthread_ok" = "xno"; then 18077for ax_pthread_try_flag in $ax_pthread_flags; do 18078 18079 case $ax_pthread_try_flag in 18080 none) 18081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 18082$as_echo_n "checking whether pthreads work without any flags... " >&6; } 18083 ;; 18084 18085 -mt,pthread) 18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 18087$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } 18088 PTHREAD_CFLAGS="-mt" 18089 PTHREAD_LIBS="-lpthread" 18090 ;; 18091 18092 -*) 18093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 18094$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 18095 PTHREAD_CFLAGS="$ax_pthread_try_flag" 18096 ;; 18097 18098 pthread-config) 18099 # Extract the first word of "pthread-config", so it can be a program name with args. 18100set dummy pthread-config; ac_word=$2 18101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18102$as_echo_n "checking for $ac_word... " >&6; } 18103if ${ac_cv_prog_ax_pthread_config+:} false; then : 18104 $as_echo_n "(cached) " >&6 18105else 18106 if test -n "$ax_pthread_config"; then 18107 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 18108else 18109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18110for as_dir in $PATH 18111do 18112 IFS=$as_save_IFS 18113 test -z "$as_dir" && as_dir=. 18114 for ac_exec_ext in '' $ac_executable_extensions; do 18115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18116 ac_cv_prog_ax_pthread_config="yes" 18117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18118 break 2 18119 fi 18120done 18121 done 18122IFS=$as_save_IFS 18123 18124 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 18125fi 18126fi 18127ax_pthread_config=$ac_cv_prog_ax_pthread_config 18128if test -n "$ax_pthread_config"; then 18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 18130$as_echo "$ax_pthread_config" >&6; } 18131else 18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18133$as_echo "no" >&6; } 18134fi 18135 18136 18137 if test "x$ax_pthread_config" = "xno"; then : 18138 continue 18139fi 18140 PTHREAD_CFLAGS="`pthread-config --cflags`" 18141 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 18142 ;; 18143 18144 *) 18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 18146$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 18147 PTHREAD_LIBS="-l$ax_pthread_try_flag" 18148 ;; 18149 esac 18150 18151 ax_pthread_save_CFLAGS="$CFLAGS" 18152 ax_pthread_save_LIBS="$LIBS" 18153 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18154 LIBS="$PTHREAD_LIBS $LIBS" 18155 18156 # Check for various functions. We must include pthread.h, 18157 # since some functions may be macros. (On the Sequent, we 18158 # need a special flag -Kthread to make this header compile.) 18159 # We check for pthread_join because it is in -lpthread on IRIX 18160 # while pthread_create is in libc. We check for pthread_attr_init 18161 # due to DEC craziness with -lpthreads. We check for 18162 # pthread_cleanup_push because it is one of the few pthread 18163 # functions on Solaris that doesn't have a non-functional libc stub. 18164 # We try pthread_create on general principles. 18165 18166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18167/* end confdefs.h. */ 18168#include <pthread.h> 18169# if $ax_pthread_check_cond 18170# error "$ax_pthread_check_macro must be defined" 18171# endif 18172 static void routine(void *a) { a = 0; } 18173 static void *start_routine(void *a) { return a; } 18174int 18175main () 18176{ 18177pthread_t th; pthread_attr_t attr; 18178 pthread_create(&th, 0, start_routine, 0); 18179 pthread_join(th, 0); 18180 pthread_attr_init(&attr); 18181 pthread_cleanup_push(routine, 0); 18182 pthread_cleanup_pop(0) /* ; */ 18183 ; 18184 return 0; 18185} 18186_ACEOF 18187if ac_fn_c_try_link "$LINENO"; then : 18188 ax_pthread_ok=yes 18189fi 18190rm -f core conftest.err conftest.$ac_objext \ 18191 conftest$ac_exeext conftest.$ac_ext 18192 18193 CFLAGS="$ax_pthread_save_CFLAGS" 18194 LIBS="$ax_pthread_save_LIBS" 18195 18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 18197$as_echo "$ax_pthread_ok" >&6; } 18198 if test "x$ax_pthread_ok" = "xyes"; then : 18199 break 18200fi 18201 18202 PTHREAD_LIBS="" 18203 PTHREAD_CFLAGS="" 18204done 18205fi 18206 18207# Various other checks: 18208if test "x$ax_pthread_ok" = "xyes"; then 18209 ax_pthread_save_CFLAGS="$CFLAGS" 18210 ax_pthread_save_LIBS="$LIBS" 18211 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 18212 LIBS="$PTHREAD_LIBS $LIBS" 18213 18214 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 18216$as_echo_n "checking for joinable pthread attribute... " >&6; } 18217if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 18218 $as_echo_n "(cached) " >&6 18219else 18220 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 18221 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 18222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18223/* end confdefs.h. */ 18224#include <pthread.h> 18225int 18226main () 18227{ 18228int attr = $ax_pthread_attr; return attr /* ; */ 18229 ; 18230 return 0; 18231} 18232_ACEOF 18233if ac_fn_c_try_link "$LINENO"; then : 18234 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 18235fi 18236rm -f core conftest.err conftest.$ac_objext \ 18237 conftest$ac_exeext conftest.$ac_ext 18238 done 18239 18240fi 18241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 18242$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 18243 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 18244 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 18245 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 18246 18247cat >>confdefs.h <<_ACEOF 18248#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 18249_ACEOF 18250 18251 ax_pthread_joinable_attr_defined=yes 18252 18253fi 18254 18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 18256$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 18257if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 18258 $as_echo_n "(cached) " >&6 18259else 18260 ax_cv_PTHREAD_SPECIAL_FLAGS=no 18261 case $host_os in 18262 solaris*) 18263 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 18264 ;; 18265 esac 18266 18267fi 18268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 18269$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 18270 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 18271 test "x$ax_pthread_special_flags_added" != "xyes"; then : 18272 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 18273 ax_pthread_special_flags_added=yes 18274fi 18275 18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 18277$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 18278if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 18279 $as_echo_n "(cached) " >&6 18280else 18281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18282/* end confdefs.h. */ 18283#include <pthread.h> 18284int 18285main () 18286{ 18287int i = PTHREAD_PRIO_INHERIT; 18288 ; 18289 return 0; 18290} 18291_ACEOF 18292if ac_fn_c_try_link "$LINENO"; then : 18293 ax_cv_PTHREAD_PRIO_INHERIT=yes 18294else 18295 ax_cv_PTHREAD_PRIO_INHERIT=no 18296fi 18297rm -f core conftest.err conftest.$ac_objext \ 18298 conftest$ac_exeext conftest.$ac_ext 18299 18300fi 18301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 18302$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 18303 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 18304 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 18305 18306$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 18307 18308 ax_pthread_prio_inherit_defined=yes 18309 18310fi 18311 18312 CFLAGS="$ax_pthread_save_CFLAGS" 18313 LIBS="$ax_pthread_save_LIBS" 18314 18315 # More AIX lossage: compile with *_r variant 18316 if test "x$GCC" != "xyes"; then 18317 case $host_os in 18318 aix*) 18319 case "x/$CC" in #( 18320 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 18321 #handle absolute path differently from PATH based program lookup 18322 case "x$CC" in #( 18323 x/*) : 18324 if as_fn_executable_p ${CC}_r; then : 18325 PTHREAD_CC="${CC}_r" 18326fi ;; #( 18327 *) : 18328 for ac_prog in ${CC}_r 18329do 18330 # Extract the first word of "$ac_prog", so it can be a program name with args. 18331set dummy $ac_prog; ac_word=$2 18332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18333$as_echo_n "checking for $ac_word... " >&6; } 18334if ${ac_cv_prog_PTHREAD_CC+:} false; then : 18335 $as_echo_n "(cached) " >&6 18336else 18337 if test -n "$PTHREAD_CC"; then 18338 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 18339else 18340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18341for as_dir in $PATH 18342do 18343 IFS=$as_save_IFS 18344 test -z "$as_dir" && as_dir=. 18345 for ac_exec_ext in '' $ac_executable_extensions; do 18346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18347 ac_cv_prog_PTHREAD_CC="$ac_prog" 18348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18349 break 2 18350 fi 18351done 18352 done 18353IFS=$as_save_IFS 18354 18355fi 18356fi 18357PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 18358if test -n "$PTHREAD_CC"; then 18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 18360$as_echo "$PTHREAD_CC" >&6; } 18361else 18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18363$as_echo "no" >&6; } 18364fi 18365 18366 18367 test -n "$PTHREAD_CC" && break 18368done 18369test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 18370 ;; 18371esac ;; #( 18372 *) : 18373 ;; 18374esac 18375 ;; 18376 esac 18377 fi 18378fi 18379 18380test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 18381 18382 18383 18384 18385 18386# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 18387if test "x$ax_pthread_ok" = "xyes"; then 18388 18389$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 18390 18391 : 18392else 18393 ax_pthread_ok=no 18394 18395fi 18396ac_ext=c 18397ac_cpp='$CPP $CPPFLAGS' 18398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18400ac_compiler_gnu=$ac_cv_c_compiler_gnu 18401 18402 18403 18404 18405#AC_CHECK_LIB(rt, sem_init, 18406# [ 18407# rt_libs="-lrt -pthread" 18408# AC_DEFINE(HAVE_LIBRT, "1", [whether librt is available]) 18409# ], [], [-pthread]) 18410#AC_SUBST(rt_libs) 18411 18412 18413# Some systems have iconv in libc, some have it in libiconv (OSF/1 and 18414# those with the standalone portable GNU libiconv installed). Check 18415# which one is available. The define ICONV_CONST will be "" or "const" 18416# accordingly. 18417 18418 if test "X$prefix" = "XNONE"; then 18419 acl_final_prefix="$ac_default_prefix" 18420 else 18421 acl_final_prefix="$prefix" 18422 fi 18423 if test "X$exec_prefix" = "XNONE"; then 18424 acl_final_exec_prefix='${prefix}' 18425 else 18426 acl_final_exec_prefix="$exec_prefix" 18427 fi 18428 acl_save_prefix="$prefix" 18429 prefix="$acl_final_prefix" 18430 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 18431 prefix="$acl_save_prefix" 18432 18433 18434# Check whether --with-gnu-ld was given. 18435if test "${with_gnu_ld+set}" = set; then : 18436 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 18437else 18438 with_gnu_ld=no 18439fi 18440 18441# Prepare PATH_SEPARATOR. 18442# The user is always right. 18443if test "${PATH_SEPARATOR+set}" != set; then 18444 echo "#! /bin/sh" >conf$$.sh 18445 echo "exit 0" >>conf$$.sh 18446 chmod +x conf$$.sh 18447 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 18448 PATH_SEPARATOR=';' 18449 else 18450 PATH_SEPARATOR=: 18451 fi 18452 rm -f conf$$.sh 18453fi 18454ac_prog=ld 18455if test "$GCC" = yes; then 18456 # Check if gcc -print-prog-name=ld gives a path. 18457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 18458$as_echo_n "checking for ld used by GCC... " >&6; } 18459 case $host in 18460 *-*-mingw*) 18461 # gcc leaves a trailing carriage return which upsets mingw 18462 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 18463 *) 18464 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 18465 esac 18466 case $ac_prog in 18467 # Accept absolute paths. 18468 [\\/]* | [A-Za-z]:[\\/]*) 18469 re_direlt='/[^/][^/]*/\.\./' 18470 # Canonicalize the path of ld 18471 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 18472 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 18473 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 18474 done 18475 test -z "$LD" && LD="$ac_prog" 18476 ;; 18477 "") 18478 # If it fails, then pretend we aren't using GCC. 18479 ac_prog=ld 18480 ;; 18481 *) 18482 # If it is relative, then search for the first ld in PATH. 18483 with_gnu_ld=unknown 18484 ;; 18485 esac 18486elif test "$with_gnu_ld" = yes; then 18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 18488$as_echo_n "checking for GNU ld... " >&6; } 18489else 18490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 18491$as_echo_n "checking for non-GNU ld... " >&6; } 18492fi 18493if ${acl_cv_path_LD+:} false; then : 18494 $as_echo_n "(cached) " >&6 18495else 18496 if test -z "$LD"; then 18497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 18498 for ac_dir in $PATH; do 18499 test -z "$ac_dir" && ac_dir=. 18500 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 18501 acl_cv_path_LD="$ac_dir/$ac_prog" 18502 # Check to see if the program is GNU ld. I'd rather use --version, 18503 # but apparently some GNU ld's only accept -v. 18504 # Break only if it was the GNU/non-GNU ld that we prefer. 18505 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 18506 *GNU* | *'with BFD'*) 18507 test "$with_gnu_ld" != no && break ;; 18508 *) 18509 test "$with_gnu_ld" != yes && break ;; 18510 esac 18511 fi 18512 done 18513 IFS="$ac_save_ifs" 18514else 18515 acl_cv_path_LD="$LD" # Let the user override the test with a path. 18516fi 18517fi 18518 18519LD="$acl_cv_path_LD" 18520if test -n "$LD"; then 18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 18522$as_echo "$LD" >&6; } 18523else 18524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18525$as_echo "no" >&6; } 18526fi 18527test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 18528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 18529$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 18530if ${acl_cv_prog_gnu_ld+:} false; then : 18531 $as_echo_n "(cached) " >&6 18532else 18533 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 18534case `$LD -v 2>&1 </dev/null` in 18535*GNU* | *'with BFD'*) 18536 acl_cv_prog_gnu_ld=yes ;; 18537*) 18538 acl_cv_prog_gnu_ld=no ;; 18539esac 18540fi 18541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 18542$as_echo "$acl_cv_prog_gnu_ld" >&6; } 18543with_gnu_ld=$acl_cv_prog_gnu_ld 18544 18545 18546 18547 18548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 18549$as_echo_n "checking for shared library run path origin... " >&6; } 18550if ${acl_cv_rpath+:} false; then : 18551 $as_echo_n "(cached) " >&6 18552else 18553 18554 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 18555 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 18556 . ./conftest.sh 18557 rm -f ./conftest.sh 18558 acl_cv_rpath=done 18559 18560fi 18561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 18562$as_echo "$acl_cv_rpath" >&6; } 18563 wl="$acl_cv_wl" 18564 libext="$acl_cv_libext" 18565 shlibext="$acl_cv_shlibext" 18566 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 18567 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 18568 hardcode_direct="$acl_cv_hardcode_direct" 18569 hardcode_minus_L="$acl_cv_hardcode_minus_L" 18570 # Check whether --enable-rpath was given. 18571if test "${enable_rpath+set}" = set; then : 18572 enableval=$enable_rpath; : 18573else 18574 enable_rpath=yes 18575fi 18576 18577 18578 18579 acl_libdirstem=lib 18580 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 18581 if test -n "$searchpath"; then 18582 acl_save_IFS="${IFS= }"; IFS=":" 18583 for searchdir in $searchpath; do 18584 if test -d "$searchdir"; then 18585 case "$searchdir" in 18586 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 18587 *) searchdir=`cd "$searchdir" && pwd` 18588 case "$searchdir" in 18589 */lib64 ) acl_libdirstem=lib64 ;; 18590 esac ;; 18591 esac 18592 fi 18593 done 18594 IFS="$acl_save_IFS" 18595 fi 18596 18597 18598 18599 18600 18601 18602 18603 18604 use_additional=yes 18605 18606 acl_save_prefix="$prefix" 18607 prefix="$acl_final_prefix" 18608 acl_save_exec_prefix="$exec_prefix" 18609 exec_prefix="$acl_final_exec_prefix" 18610 18611 eval additional_includedir=\"$includedir\" 18612 eval additional_libdir=\"$libdir\" 18613 18614 exec_prefix="$acl_save_exec_prefix" 18615 prefix="$acl_save_prefix" 18616 18617 18618# Check whether --with-libiconv-prefix was given. 18619if test "${with_libiconv_prefix+set}" = set; then : 18620 withval=$with_libiconv_prefix; 18621 if test "X$withval" = "Xno"; then 18622 use_additional=no 18623 else 18624 if test "X$withval" = "X"; then 18625 18626 acl_save_prefix="$prefix" 18627 prefix="$acl_final_prefix" 18628 acl_save_exec_prefix="$exec_prefix" 18629 exec_prefix="$acl_final_exec_prefix" 18630 18631 eval additional_includedir=\"$includedir\" 18632 eval additional_libdir=\"$libdir\" 18633 18634 exec_prefix="$acl_save_exec_prefix" 18635 prefix="$acl_save_prefix" 18636 18637 else 18638 additional_includedir="$withval/include" 18639 additional_libdir="$withval/$acl_libdirstem" 18640 fi 18641 fi 18642 18643fi 18644 18645 LIBICONV= 18646 LTLIBICONV= 18647 INCICONV= 18648 rpathdirs= 18649 ltrpathdirs= 18650 names_already_handled= 18651 names_next_round='iconv ' 18652 while test -n "$names_next_round"; do 18653 names_this_round="$names_next_round" 18654 names_next_round= 18655 for name in $names_this_round; do 18656 already_handled= 18657 for n in $names_already_handled; do 18658 if test "$n" = "$name"; then 18659 already_handled=yes 18660 break 18661 fi 18662 done 18663 if test -z "$already_handled"; then 18664 names_already_handled="$names_already_handled $name" 18665 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 18666 eval value=\"\$HAVE_LIB$uppername\" 18667 if test -n "$value"; then 18668 if test "$value" = yes; then 18669 eval value=\"\$LIB$uppername\" 18670 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 18671 eval value=\"\$LTLIB$uppername\" 18672 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 18673 else 18674 : 18675 fi 18676 else 18677 found_dir= 18678 found_la= 18679 found_so= 18680 found_a= 18681 if test $use_additional = yes; then 18682 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 18683 found_dir="$additional_libdir" 18684 found_so="$additional_libdir/lib$name.$shlibext" 18685 if test -f "$additional_libdir/lib$name.la"; then 18686 found_la="$additional_libdir/lib$name.la" 18687 fi 18688 else 18689 if test -f "$additional_libdir/lib$name.$libext"; then 18690 found_dir="$additional_libdir" 18691 found_a="$additional_libdir/lib$name.$libext" 18692 if test -f "$additional_libdir/lib$name.la"; then 18693 found_la="$additional_libdir/lib$name.la" 18694 fi 18695 fi 18696 fi 18697 fi 18698 if test "X$found_dir" = "X"; then 18699 for x in $LDFLAGS $LTLIBICONV; do 18700 18701 acl_save_prefix="$prefix" 18702 prefix="$acl_final_prefix" 18703 acl_save_exec_prefix="$exec_prefix" 18704 exec_prefix="$acl_final_exec_prefix" 18705 eval x=\"$x\" 18706 exec_prefix="$acl_save_exec_prefix" 18707 prefix="$acl_save_prefix" 18708 18709 case "$x" in 18710 -L*) 18711 dir=`echo "X$x" | sed -e 's/^X-L//'` 18712 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 18713 found_dir="$dir" 18714 found_so="$dir/lib$name.$shlibext" 18715 if test -f "$dir/lib$name.la"; then 18716 found_la="$dir/lib$name.la" 18717 fi 18718 else 18719 if test -f "$dir/lib$name.$libext"; then 18720 found_dir="$dir" 18721 found_a="$dir/lib$name.$libext" 18722 if test -f "$dir/lib$name.la"; then 18723 found_la="$dir/lib$name.la" 18724 fi 18725 fi 18726 fi 18727 ;; 18728 esac 18729 if test "X$found_dir" != "X"; then 18730 break 18731 fi 18732 done 18733 fi 18734 if test "X$found_dir" != "X"; then 18735 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 18736 if test "X$found_so" != "X"; then 18737 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 18738 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 18739 else 18740 haveit= 18741 for x in $ltrpathdirs; do 18742 if test "X$x" = "X$found_dir"; then 18743 haveit=yes 18744 break 18745 fi 18746 done 18747 if test -z "$haveit"; then 18748 ltrpathdirs="$ltrpathdirs $found_dir" 18749 fi 18750 if test "$hardcode_direct" = yes; then 18751 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 18752 else 18753 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 18754 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 18755 haveit= 18756 for x in $rpathdirs; do 18757 if test "X$x" = "X$found_dir"; then 18758 haveit=yes 18759 break 18760 fi 18761 done 18762 if test -z "$haveit"; then 18763 rpathdirs="$rpathdirs $found_dir" 18764 fi 18765 else 18766 haveit= 18767 for x in $LDFLAGS $LIBICONV; do 18768 18769 acl_save_prefix="$prefix" 18770 prefix="$acl_final_prefix" 18771 acl_save_exec_prefix="$exec_prefix" 18772 exec_prefix="$acl_final_exec_prefix" 18773 eval x=\"$x\" 18774 exec_prefix="$acl_save_exec_prefix" 18775 prefix="$acl_save_prefix" 18776 18777 if test "X$x" = "X-L$found_dir"; then 18778 haveit=yes 18779 break 18780 fi 18781 done 18782 if test -z "$haveit"; then 18783 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 18784 fi 18785 if test "$hardcode_minus_L" != no; then 18786 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 18787 else 18788 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 18789 fi 18790 fi 18791 fi 18792 fi 18793 else 18794 if test "X$found_a" != "X"; then 18795 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 18796 else 18797 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 18798 fi 18799 fi 18800 additional_includedir= 18801 case "$found_dir" in 18802 */$acl_libdirstem | */$acl_libdirstem/) 18803 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 18804 additional_includedir="$basedir/include" 18805 ;; 18806 esac 18807 if test "X$additional_includedir" != "X"; then 18808 if test "X$additional_includedir" != "X/usr/include"; then 18809 haveit= 18810 if test "X$additional_includedir" = "X/usr/local/include"; then 18811 if test -n "$GCC"; then 18812 case $host_os in 18813 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 18814 esac 18815 fi 18816 fi 18817 if test -z "$haveit"; then 18818 for x in $CPPFLAGS $INCICONV; do 18819 18820 acl_save_prefix="$prefix" 18821 prefix="$acl_final_prefix" 18822 acl_save_exec_prefix="$exec_prefix" 18823 exec_prefix="$acl_final_exec_prefix" 18824 eval x=\"$x\" 18825 exec_prefix="$acl_save_exec_prefix" 18826 prefix="$acl_save_prefix" 18827 18828 if test "X$x" = "X-I$additional_includedir"; then 18829 haveit=yes 18830 break 18831 fi 18832 done 18833 if test -z "$haveit"; then 18834 if test -d "$additional_includedir"; then 18835 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 18836 fi 18837 fi 18838 fi 18839 fi 18840 fi 18841 if test -n "$found_la"; then 18842 save_libdir="$libdir" 18843 case "$found_la" in 18844 */* | *\\*) . "$found_la" ;; 18845 *) . "./$found_la" ;; 18846 esac 18847 libdir="$save_libdir" 18848 for dep in $dependency_libs; do 18849 case "$dep" in 18850 -L*) 18851 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 18852 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 18853 haveit= 18854 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 18855 if test -n "$GCC"; then 18856 case $host_os in 18857 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 18858 esac 18859 fi 18860 fi 18861 if test -z "$haveit"; then 18862 haveit= 18863 for x in $LDFLAGS $LIBICONV; do 18864 18865 acl_save_prefix="$prefix" 18866 prefix="$acl_final_prefix" 18867 acl_save_exec_prefix="$exec_prefix" 18868 exec_prefix="$acl_final_exec_prefix" 18869 eval x=\"$x\" 18870 exec_prefix="$acl_save_exec_prefix" 18871 prefix="$acl_save_prefix" 18872 18873 if test "X$x" = "X-L$additional_libdir"; then 18874 haveit=yes 18875 break 18876 fi 18877 done 18878 if test -z "$haveit"; then 18879 if test -d "$additional_libdir"; then 18880 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 18881 fi 18882 fi 18883 haveit= 18884 for x in $LDFLAGS $LTLIBICONV; do 18885 18886 acl_save_prefix="$prefix" 18887 prefix="$acl_final_prefix" 18888 acl_save_exec_prefix="$exec_prefix" 18889 exec_prefix="$acl_final_exec_prefix" 18890 eval x=\"$x\" 18891 exec_prefix="$acl_save_exec_prefix" 18892 prefix="$acl_save_prefix" 18893 18894 if test "X$x" = "X-L$additional_libdir"; then 18895 haveit=yes 18896 break 18897 fi 18898 done 18899 if test -z "$haveit"; then 18900 if test -d "$additional_libdir"; then 18901 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 18902 fi 18903 fi 18904 fi 18905 fi 18906 ;; 18907 -R*) 18908 dir=`echo "X$dep" | sed -e 's/^X-R//'` 18909 if test "$enable_rpath" != no; then 18910 haveit= 18911 for x in $rpathdirs; do 18912 if test "X$x" = "X$dir"; then 18913 haveit=yes 18914 break 18915 fi 18916 done 18917 if test -z "$haveit"; then 18918 rpathdirs="$rpathdirs $dir" 18919 fi 18920 haveit= 18921 for x in $ltrpathdirs; do 18922 if test "X$x" = "X$dir"; then 18923 haveit=yes 18924 break 18925 fi 18926 done 18927 if test -z "$haveit"; then 18928 ltrpathdirs="$ltrpathdirs $dir" 18929 fi 18930 fi 18931 ;; 18932 -l*) 18933 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 18934 ;; 18935 *.la) 18936 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 18937 ;; 18938 *) 18939 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 18940 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 18941 ;; 18942 esac 18943 done 18944 fi 18945 else 18946 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 18947 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 18948 fi 18949 fi 18950 fi 18951 done 18952 done 18953 if test "X$rpathdirs" != "X"; then 18954 if test -n "$hardcode_libdir_separator"; then 18955 alldirs= 18956 for found_dir in $rpathdirs; do 18957 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 18958 done 18959 acl_save_libdir="$libdir" 18960 libdir="$alldirs" 18961 eval flag=\"$hardcode_libdir_flag_spec\" 18962 libdir="$acl_save_libdir" 18963 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 18964 else 18965 for found_dir in $rpathdirs; do 18966 acl_save_libdir="$libdir" 18967 libdir="$found_dir" 18968 eval flag=\"$hardcode_libdir_flag_spec\" 18969 libdir="$acl_save_libdir" 18970 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 18971 done 18972 fi 18973 fi 18974 if test "X$ltrpathdirs" != "X"; then 18975 for found_dir in $ltrpathdirs; do 18976 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 18977 done 18978 fi 18979 18980 18981 18982 18983 18984 18985 18986 am_save_CPPFLAGS="$CPPFLAGS" 18987 18988 for element in $INCICONV; do 18989 haveit= 18990 for x in $CPPFLAGS; do 18991 18992 acl_save_prefix="$prefix" 18993 prefix="$acl_final_prefix" 18994 acl_save_exec_prefix="$exec_prefix" 18995 exec_prefix="$acl_final_exec_prefix" 18996 eval x=\"$x\" 18997 exec_prefix="$acl_save_exec_prefix" 18998 prefix="$acl_save_prefix" 18999 19000 if test "X$x" = "X$element"; then 19001 haveit=yes 19002 break 19003 fi 19004 done 19005 if test -z "$haveit"; then 19006 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 19007 fi 19008 done 19009 19010 19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 19012$as_echo_n "checking for iconv... " >&6; } 19013if ${am_cv_func_iconv+:} false; then : 19014 $as_echo_n "(cached) " >&6 19015else 19016 19017 am_cv_func_iconv="no, consider installing GNU libiconv" 19018 am_cv_lib_iconv=no 19019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19020/* end confdefs.h. */ 19021#include <stdlib.h> 19022#include <iconv.h> 19023int 19024main () 19025{ 19026iconv_t cd = iconv_open("",""); 19027 iconv(cd,NULL,NULL,NULL,NULL); 19028 iconv_close(cd); 19029 ; 19030 return 0; 19031} 19032_ACEOF 19033if ac_fn_c_try_link "$LINENO"; then : 19034 am_cv_func_iconv=yes 19035fi 19036rm -f core conftest.err conftest.$ac_objext \ 19037 conftest$ac_exeext conftest.$ac_ext 19038 if test "$am_cv_func_iconv" != yes; then 19039 am_save_LIBS="$LIBS" 19040 LIBS="$LIBS $LIBICONV" 19041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19042/* end confdefs.h. */ 19043#include <stdlib.h> 19044#include <iconv.h> 19045int 19046main () 19047{ 19048iconv_t cd = iconv_open("",""); 19049 iconv(cd,NULL,NULL,NULL,NULL); 19050 iconv_close(cd); 19051 ; 19052 return 0; 19053} 19054_ACEOF 19055if ac_fn_c_try_link "$LINENO"; then : 19056 am_cv_lib_iconv=yes 19057 am_cv_func_iconv=yes 19058fi 19059rm -f core conftest.err conftest.$ac_objext \ 19060 conftest$ac_exeext conftest.$ac_ext 19061 LIBS="$am_save_LIBS" 19062 fi 19063 19064fi 19065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 19066$as_echo "$am_cv_func_iconv" >&6; } 19067 if test "$am_cv_func_iconv" = yes; then 19068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 19069$as_echo_n "checking for working iconv... " >&6; } 19070if ${am_cv_func_iconv_works+:} false; then : 19071 $as_echo_n "(cached) " >&6 19072else 19073 19074 am_save_LIBS="$LIBS" 19075 if test $am_cv_lib_iconv = yes; then 19076 LIBS="$LIBS $LIBICONV" 19077 fi 19078 if test "$cross_compiling" = yes; then : 19079 case "$host_os" in 19080 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 19081 *) am_cv_func_iconv_works="guessing yes" ;; 19082 esac 19083else 19084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19085/* end confdefs.h. */ 19086 19087#include <iconv.h> 19088#include <string.h> 19089int main () 19090{ 19091 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 19092 returns. */ 19093 { 19094 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 19095 if (cd_utf8_to_88591 != (iconv_t)(-1)) 19096 { 19097 static const char input[] = "\342\202\254"; /* EURO SIGN */ 19098 char buf[10]; 19099 const char *inptr = input; 19100 size_t inbytesleft = strlen (input); 19101 char *outptr = buf; 19102 size_t outbytesleft = sizeof (buf); 19103 size_t res = iconv (cd_utf8_to_88591, 19104 (char **) &inptr, &inbytesleft, 19105 &outptr, &outbytesleft); 19106 if (res == 0) 19107 return 1; 19108 } 19109 } 19110#if 0 /* This bug could be worked around by the caller. */ 19111 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 19112 { 19113 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 19114 if (cd_88591_to_utf8 != (iconv_t)(-1)) 19115 { 19116 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 19117 char buf[50]; 19118 const char *inptr = input; 19119 size_t inbytesleft = strlen (input); 19120 char *outptr = buf; 19121 size_t outbytesleft = sizeof (buf); 19122 size_t res = iconv (cd_88591_to_utf8, 19123 (char **) &inptr, &inbytesleft, 19124 &outptr, &outbytesleft); 19125 if ((int)res > 0) 19126 return 1; 19127 } 19128 } 19129#endif 19130 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 19131 provided. */ 19132 if (/* Try standardized names. */ 19133 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 19134 /* Try IRIX, OSF/1 names. */ 19135 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 19136 /* Try AIX names. */ 19137 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 19138 /* Try HP-UX names. */ 19139 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 19140 return 1; 19141 return 0; 19142} 19143_ACEOF 19144if ac_fn_c_try_run "$LINENO"; then : 19145 am_cv_func_iconv_works=yes 19146else 19147 am_cv_func_iconv_works=no 19148fi 19149rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19150 conftest.$ac_objext conftest.beam conftest.$ac_ext 19151fi 19152 19153 LIBS="$am_save_LIBS" 19154 19155fi 19156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 19157$as_echo "$am_cv_func_iconv_works" >&6; } 19158 case "$am_cv_func_iconv_works" in 19159 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 19160 *) am_func_iconv=yes ;; 19161 esac 19162 else 19163 am_func_iconv=no am_cv_lib_iconv=no 19164 fi 19165 if test "$am_func_iconv" = yes; then 19166 19167$as_echo "#define HAVE_ICONV 1" >>confdefs.h 19168 19169 fi 19170 if test "$am_cv_lib_iconv" = yes; then 19171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 19172$as_echo_n "checking how to link with libiconv... " >&6; } 19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 19174$as_echo "$LIBICONV" >&6; } 19175 else 19176 CPPFLAGS="$am_save_CPPFLAGS" 19177 LIBICONV= 19178 LTLIBICONV= 19179 fi 19180 19181 19182 19183 if test "$am_cv_func_iconv" = yes; then 19184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 19185$as_echo_n "checking for iconv declaration... " >&6; } 19186 if ${am_cv_proto_iconv+:} false; then : 19187 $as_echo_n "(cached) " >&6 19188else 19189 19190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19191/* end confdefs.h. */ 19192 19193#include <stdlib.h> 19194#include <iconv.h> 19195extern 19196#ifdef __cplusplus 19197"C" 19198#endif 19199#if defined(__STDC__) || defined(__cplusplus) 19200size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 19201#else 19202size_t iconv(); 19203#endif 19204 19205int 19206main () 19207{ 19208 19209 ; 19210 return 0; 19211} 19212_ACEOF 19213if ac_fn_c_try_compile "$LINENO"; then : 19214 am_cv_proto_iconv_arg1="" 19215else 19216 am_cv_proto_iconv_arg1="const" 19217fi 19218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19219 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 19220fi 19221 19222 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- 19224 }$am_cv_proto_iconv" >&5 19225$as_echo "${ac_t:- 19226 }$am_cv_proto_iconv" >&6; } 19227 19228cat >>confdefs.h <<_ACEOF 19229#define ICONV_CONST $am_cv_proto_iconv_arg1 19230_ACEOF 19231 19232 fi 19233 19234 19235###------------------------------------------------------------------------- 19236# 19237# Checks for header files. 19238# 19239ac_header_dirent=no 19240for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 19241 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 19242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 19243$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 19244if eval \${$as_ac_Header+:} false; then : 19245 $as_echo_n "(cached) " >&6 19246else 19247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19248/* end confdefs.h. */ 19249#include <sys/types.h> 19250#include <$ac_hdr> 19251 19252int 19253main () 19254{ 19255if ((DIR *) 0) 19256return 0; 19257 ; 19258 return 0; 19259} 19260_ACEOF 19261if ac_fn_c_try_compile "$LINENO"; then : 19262 eval "$as_ac_Header=yes" 19263else 19264 eval "$as_ac_Header=no" 19265fi 19266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19267fi 19268eval ac_res=\$$as_ac_Header 19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19270$as_echo "$ac_res" >&6; } 19271if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19272 cat >>confdefs.h <<_ACEOF 19273#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 19274_ACEOF 19275 19276ac_header_dirent=$ac_hdr; break 19277fi 19278 19279done 19280# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 19281if test $ac_header_dirent = dirent.h; then 19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 19283$as_echo_n "checking for library containing opendir... " >&6; } 19284if ${ac_cv_search_opendir+:} false; then : 19285 $as_echo_n "(cached) " >&6 19286else 19287 ac_func_search_save_LIBS=$LIBS 19288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19289/* end confdefs.h. */ 19290 19291/* Override any GCC internal prototype to avoid an error. 19292 Use char because int might match the return type of a GCC 19293 builtin and then its argument prototype would still apply. */ 19294#ifdef __cplusplus 19295extern "C" 19296#endif 19297char opendir (); 19298int 19299main () 19300{ 19301return opendir (); 19302 ; 19303 return 0; 19304} 19305_ACEOF 19306for ac_lib in '' dir; do 19307 if test -z "$ac_lib"; then 19308 ac_res="none required" 19309 else 19310 ac_res=-l$ac_lib 19311 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19312 fi 19313 if ac_fn_c_try_link "$LINENO"; then : 19314 ac_cv_search_opendir=$ac_res 19315fi 19316rm -f core conftest.err conftest.$ac_objext \ 19317 conftest$ac_exeext 19318 if ${ac_cv_search_opendir+:} false; then : 19319 break 19320fi 19321done 19322if ${ac_cv_search_opendir+:} false; then : 19323 19324else 19325 ac_cv_search_opendir=no 19326fi 19327rm conftest.$ac_ext 19328LIBS=$ac_func_search_save_LIBS 19329fi 19330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 19331$as_echo "$ac_cv_search_opendir" >&6; } 19332ac_res=$ac_cv_search_opendir 19333if test "$ac_res" != no; then : 19334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19335 19336fi 19337 19338else 19339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 19340$as_echo_n "checking for library containing opendir... " >&6; } 19341if ${ac_cv_search_opendir+:} false; then : 19342 $as_echo_n "(cached) " >&6 19343else 19344 ac_func_search_save_LIBS=$LIBS 19345cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19346/* end confdefs.h. */ 19347 19348/* Override any GCC internal prototype to avoid an error. 19349 Use char because int might match the return type of a GCC 19350 builtin and then its argument prototype would still apply. */ 19351#ifdef __cplusplus 19352extern "C" 19353#endif 19354char opendir (); 19355int 19356main () 19357{ 19358return opendir (); 19359 ; 19360 return 0; 19361} 19362_ACEOF 19363for ac_lib in '' x; do 19364 if test -z "$ac_lib"; then 19365 ac_res="none required" 19366 else 19367 ac_res=-l$ac_lib 19368 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19369 fi 19370 if ac_fn_c_try_link "$LINENO"; then : 19371 ac_cv_search_opendir=$ac_res 19372fi 19373rm -f core conftest.err conftest.$ac_objext \ 19374 conftest$ac_exeext 19375 if ${ac_cv_search_opendir+:} false; then : 19376 break 19377fi 19378done 19379if ${ac_cv_search_opendir+:} false; then : 19380 19381else 19382 ac_cv_search_opendir=no 19383fi 19384rm conftest.$ac_ext 19385LIBS=$ac_func_search_save_LIBS 19386fi 19387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 19388$as_echo "$ac_cv_search_opendir" >&6; } 19389ac_res=$ac_cv_search_opendir 19390if test "$ac_res" != no; then : 19391 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19392 19393fi 19394 19395fi 19396 19397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 19398$as_echo_n "checking for ANSI C header files... " >&6; } 19399if ${ac_cv_header_stdc+:} false; then : 19400 $as_echo_n "(cached) " >&6 19401else 19402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19403/* end confdefs.h. */ 19404#include <stdlib.h> 19405#include <stdarg.h> 19406#include <string.h> 19407#include <float.h> 19408 19409int 19410main () 19411{ 19412 19413 ; 19414 return 0; 19415} 19416_ACEOF 19417if ac_fn_c_try_compile "$LINENO"; then : 19418 ac_cv_header_stdc=yes 19419else 19420 ac_cv_header_stdc=no 19421fi 19422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19423 19424if test $ac_cv_header_stdc = yes; then 19425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19427/* end confdefs.h. */ 19428#include <string.h> 19429 19430_ACEOF 19431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19432 $EGREP "memchr" >/dev/null 2>&1; then : 19433 19434else 19435 ac_cv_header_stdc=no 19436fi 19437rm -f conftest* 19438 19439fi 19440 19441if test $ac_cv_header_stdc = yes; then 19442 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19444/* end confdefs.h. */ 19445#include <stdlib.h> 19446 19447_ACEOF 19448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19449 $EGREP "free" >/dev/null 2>&1; then : 19450 19451else 19452 ac_cv_header_stdc=no 19453fi 19454rm -f conftest* 19455 19456fi 19457 19458if test $ac_cv_header_stdc = yes; then 19459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19460 if test "$cross_compiling" = yes; then : 19461 : 19462else 19463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19464/* end confdefs.h. */ 19465#include <ctype.h> 19466#include <stdlib.h> 19467#if ((' ' & 0x0FF) == 0x020) 19468# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19469# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19470#else 19471# define ISLOWER(c) \ 19472 (('a' <= (c) && (c) <= 'i') \ 19473 || ('j' <= (c) && (c) <= 'r') \ 19474 || ('s' <= (c) && (c) <= 'z')) 19475# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19476#endif 19477 19478#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19479int 19480main () 19481{ 19482 int i; 19483 for (i = 0; i < 256; i++) 19484 if (XOR (islower (i), ISLOWER (i)) 19485 || toupper (i) != TOUPPER (i)) 19486 return 2; 19487 return 0; 19488} 19489_ACEOF 19490if ac_fn_c_try_run "$LINENO"; then : 19491 19492else 19493 ac_cv_header_stdc=no 19494fi 19495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19496 conftest.$ac_objext conftest.beam conftest.$ac_ext 19497fi 19498 19499fi 19500fi 19501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 19502$as_echo "$ac_cv_header_stdc" >&6; } 19503if test $ac_cv_header_stdc = yes; then 19504 19505$as_echo "#define STDC_HEADERS 1" >>confdefs.h 19506 19507fi 19508 19509for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h 19510do : 19511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19512ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19513if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19514 cat >>confdefs.h <<_ACEOF 19515#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19516_ACEOF 19517 19518fi 19519 19520done 19521 19522for ac_header in stdlib.h string.h strings.h sys/socket.h sys/time.h 19523do : 19524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19525ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19526if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19527 cat >>confdefs.h <<_ACEOF 19528#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19529_ACEOF 19530 19531fi 19532 19533done 19534 19535for ac_header in syslog.h unistd.h 19536do : 19537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19538ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19539if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19540 cat >>confdefs.h <<_ACEOF 19541#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19542_ACEOF 19543 19544fi 19545 19546done 19547 19548for ac_header in unistd.h 19549do : 19550 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 19551if test "x$ac_cv_header_unistd_h" = xyes; then : 19552 cat >>confdefs.h <<_ACEOF 19553#define HAVE_UNISTD_H 1 19554_ACEOF 19555 19556fi 19557 19558done 19559 19560for ac_header in dlfcn.h 19561do : 19562 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 19563if test "x$ac_cv_header_dlfcn_h" = xyes; then : 19564 cat >>confdefs.h <<_ACEOF 19565#define HAVE_DLFCN_H 1 19566_ACEOF 19567 19568fi 19569 19570done 19571 19572for ac_header in signal.h termios.h langinfo.h localcharset.h iconv.h 19573do : 19574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19575ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19576if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19577 cat >>confdefs.h <<_ACEOF 19578#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19579_ACEOF 19580 19581fi 19582 19583done 19584 19585for ac_header in time.h locale.h 19586do : 19587 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19588ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19589if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19590 cat >>confdefs.h <<_ACEOF 19591#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19592_ACEOF 19593 19594fi 19595 19596done 19597 19598for ac_header in syslog.h 19599do : 19600 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" 19601if test "x$ac_cv_header_syslog_h" = xyes; then : 19602 cat >>confdefs.h <<_ACEOF 19603#define HAVE_SYSLOG_H 1 19604_ACEOF 19605 19606fi 19607 19608done 19609 19610for ac_header in sys/stat.h 19611do : 19612 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 19613if test "x$ac_cv_header_sys_stat_h" = xyes; then : 19614 cat >>confdefs.h <<_ACEOF 19615#define HAVE_SYS_STAT_H 1 19616_ACEOF 19617 19618fi 19619 19620done 19621 19622for ac_header in sys/types.h 19623do : 19624 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 19625if test "x$ac_cv_header_sys_types_h" = xyes; then : 19626 cat >>confdefs.h <<_ACEOF 19627#define HAVE_SYS_TYPES_H 1 19628_ACEOF 19629 19630fi 19631 19632done 19633 19634for ac_header in sys/wait.h 19635do : 19636 ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" 19637if test "x$ac_cv_header_sys_wait_h" = xyes; then : 19638 cat >>confdefs.h <<_ACEOF 19639#define HAVE_SYS_WAIT_H 1 19640_ACEOF 19641 19642fi 19643 19644done 19645 19646for ac_header in regex.h 19647do : 19648 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default" 19649if test "x$ac_cv_header_regex_h" = xyes; then : 19650 cat >>confdefs.h <<_ACEOF 19651#define HAVE_REGEX_H 1 19652_ACEOF 19653 19654fi 19655 19656done 19657 19658for ac_header in endian.h 19659do : 19660 ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" 19661if test "x$ac_cv_header_endian_h" = xyes; then : 19662 cat >>confdefs.h <<_ACEOF 19663#define HAVE_ENDIAN_H 1 19664_ACEOF 19665 19666fi 19667 19668done 19669 19670 19671 19672###------------------------------------------------------------------------- 19673# 19674# Checks for declarations 19675# 19676ac_fn_c_check_decl "$LINENO" "sigprocmask" "ac_cv_have_decl_sigprocmask" " 19677 #ifdef HAVE_SIGNAL_H 19678 # include <signal.h> 19679 #endif 19680 19681" 19682if test "x$ac_cv_have_decl_sigprocmask" = xyes; then : 19683 ac_have_decl=1 19684else 19685 ac_have_decl=0 19686fi 19687 19688cat >>confdefs.h <<_ACEOF 19689#define HAVE_DECL_SIGPROCMASK $ac_have_decl 19690_ACEOF 19691 19692 19693 19694###------------------------------------------------------------------------- 19695# 19696# Checks for typedefs, structures, and compiler characteristics. 19697# 19698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 19699$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 19700if ${ac_cv_c_const+:} false; then : 19701 $as_echo_n "(cached) " >&6 19702else 19703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19704/* end confdefs.h. */ 19705 19706int 19707main () 19708{ 19709 19710#ifndef __cplusplus 19711 /* Ultrix mips cc rejects this sort of thing. */ 19712 typedef int charset[2]; 19713 const charset cs = { 0, 0 }; 19714 /* SunOS 4.1.1 cc rejects this. */ 19715 char const *const *pcpcc; 19716 char **ppc; 19717 /* NEC SVR4.0.2 mips cc rejects this. */ 19718 struct point {int x, y;}; 19719 static struct point const zero = {0,0}; 19720 /* AIX XL C 1.02.0.0 rejects this. 19721 It does not let you subtract one const X* pointer from another in 19722 an arm of an if-expression whose if-part is not a constant 19723 expression */ 19724 const char *g = "string"; 19725 pcpcc = &g + (g ? g-g : 0); 19726 /* HPUX 7.0 cc rejects these. */ 19727 ++pcpcc; 19728 ppc = (char**) pcpcc; 19729 pcpcc = (char const *const *) ppc; 19730 { /* SCO 3.2v4 cc rejects this sort of thing. */ 19731 char tx; 19732 char *t = &tx; 19733 char const *s = 0 ? (char *) 0 : (char const *) 0; 19734 19735 *t++ = 0; 19736 if (s) return 0; 19737 } 19738 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 19739 int x[] = {25, 17}; 19740 const int *foo = &x[0]; 19741 ++foo; 19742 } 19743 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 19744 typedef const int *iptr; 19745 iptr p = 0; 19746 ++p; 19747 } 19748 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 19749 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 19750 struct s { int j; const int *ap[3]; } bx; 19751 struct s *b = &bx; b->j = 5; 19752 } 19753 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 19754 const int foo = 10; 19755 if (!foo) return 0; 19756 } 19757 return !cs[0] && !zero.x; 19758#endif 19759 19760 ; 19761 return 0; 19762} 19763_ACEOF 19764if ac_fn_c_try_compile "$LINENO"; then : 19765 ac_cv_c_const=yes 19766else 19767 ac_cv_c_const=no 19768fi 19769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19770fi 19771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 19772$as_echo "$ac_cv_c_const" >&6; } 19773if test $ac_cv_c_const = no; then 19774 19775$as_echo "#define const /**/" >>confdefs.h 19776 19777fi 19778 19779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 19780$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 19781if ${ac_cv_header_time+:} false; then : 19782 $as_echo_n "(cached) " >&6 19783else 19784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19785/* end confdefs.h. */ 19786#include <sys/types.h> 19787#include <sys/time.h> 19788#include <time.h> 19789 19790int 19791main () 19792{ 19793if ((struct tm *) 0) 19794return 0; 19795 ; 19796 return 0; 19797} 19798_ACEOF 19799if ac_fn_c_try_compile "$LINENO"; then : 19800 ac_cv_header_time=yes 19801else 19802 ac_cv_header_time=no 19803fi 19804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19805fi 19806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 19807$as_echo "$ac_cv_header_time" >&6; } 19808if test $ac_cv_header_time = yes; then 19809 19810$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 19811 19812fi 19813 19814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 19815$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 19816if ${ac_cv_struct_tm+:} false; then : 19817 $as_echo_n "(cached) " >&6 19818else 19819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19820/* end confdefs.h. */ 19821#include <sys/types.h> 19822#include <time.h> 19823 19824int 19825main () 19826{ 19827struct tm tm; 19828 int *p = &tm.tm_sec; 19829 return !p; 19830 ; 19831 return 0; 19832} 19833_ACEOF 19834if ac_fn_c_try_compile "$LINENO"; then : 19835 ac_cv_struct_tm=time.h 19836else 19837 ac_cv_struct_tm=sys/time.h 19838fi 19839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19840fi 19841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 19842$as_echo "$ac_cv_struct_tm" >&6; } 19843if test $ac_cv_struct_tm = sys/time.h; then 19844 19845$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 19846 19847fi 19848 19849 19850 19851###------------------------------------------------------------------------- 19852# 19853# Checks for library functions. 19854# 19855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 19856$as_echo_n "checking whether closedir returns void... " >&6; } 19857if ${ac_cv_func_closedir_void+:} false; then : 19858 $as_echo_n "(cached) " >&6 19859else 19860 if test "$cross_compiling" = yes; then : 19861 ac_cv_func_closedir_void=yes 19862else 19863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19864/* end confdefs.h. */ 19865$ac_includes_default 19866#include <$ac_header_dirent> 19867#ifndef __cplusplus 19868int closedir (); 19869#endif 19870 19871int 19872main () 19873{ 19874return closedir (opendir (".")) != 0; 19875 ; 19876 return 0; 19877} 19878_ACEOF 19879if ac_fn_c_try_run "$LINENO"; then : 19880 ac_cv_func_closedir_void=no 19881else 19882 ac_cv_func_closedir_void=yes 19883fi 19884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19885 conftest.$ac_objext conftest.beam conftest.$ac_ext 19886fi 19887 19888fi 19889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 19890$as_echo "$ac_cv_func_closedir_void" >&6; } 19891if test $ac_cv_func_closedir_void = yes; then 19892 19893$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h 19894 19895fi 19896 19897 19898 19899 19900 for ac_header in $ac_header_list 19901do : 19902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19903ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 19904" 19905if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19906 cat >>confdefs.h <<_ACEOF 19907#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19908_ACEOF 19909 19910fi 19911 19912done 19913 19914 19915 19916 19917 19918 19919 19920 19921 for ac_func in $ac_func_list 19922do : 19923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19924ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19925if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19926 cat >>confdefs.h <<_ACEOF 19927#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19928_ACEOF 19929 19930fi 19931done 19932 19933 19934 19935 19936 19937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 19938$as_echo_n "checking for working mktime... " >&6; } 19939if ${ac_cv_func_working_mktime+:} false; then : 19940 $as_echo_n "(cached) " >&6 19941else 19942 if test "$cross_compiling" = yes; then : 19943 ac_cv_func_working_mktime=no 19944else 19945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19946/* end confdefs.h. */ 19947/* Test program from Paul Eggert and Tony Leneis. */ 19948#ifdef TIME_WITH_SYS_TIME 19949# include <sys/time.h> 19950# include <time.h> 19951#else 19952# ifdef HAVE_SYS_TIME_H 19953# include <sys/time.h> 19954# else 19955# include <time.h> 19956# endif 19957#endif 19958 19959#include <limits.h> 19960#include <stdlib.h> 19961 19962#ifdef HAVE_UNISTD_H 19963# include <unistd.h> 19964#endif 19965 19966#ifndef HAVE_ALARM 19967# define alarm(X) /* empty */ 19968#endif 19969 19970/* Work around redefinition to rpl_putenv by other config tests. */ 19971#undef putenv 19972 19973static time_t time_t_max; 19974static time_t time_t_min; 19975 19976/* Values we'll use to set the TZ environment variable. */ 19977static const char *tz_strings[] = { 19978 (const char *) 0, "TZ=GMT0", "TZ=JST-9", 19979 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" 19980}; 19981#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) 19982 19983/* Return 0 if mktime fails to convert a date in the spring-forward gap. 19984 Based on a problem report from Andreas Jaeger. */ 19985static int 19986spring_forward_gap () 19987{ 19988 /* glibc (up to about 1998-10-07) failed this test. */ 19989 struct tm tm; 19990 19991 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 19992 instead of "TZ=America/Vancouver" in order to detect the bug even 19993 on systems that don't support the Olson extension, or don't have the 19994 full zoneinfo tables installed. */ 19995 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); 19996 19997 tm.tm_year = 98; 19998 tm.tm_mon = 3; 19999 tm.tm_mday = 5; 20000 tm.tm_hour = 2; 20001 tm.tm_min = 0; 20002 tm.tm_sec = 0; 20003 tm.tm_isdst = -1; 20004 return mktime (&tm) != (time_t) -1; 20005} 20006 20007static int 20008mktime_test1 (time_t now) 20009{ 20010 struct tm *lt; 20011 return ! (lt = localtime (&now)) || mktime (lt) == now; 20012} 20013 20014static int 20015mktime_test (time_t now) 20016{ 20017 return (mktime_test1 (now) 20018 && mktime_test1 ((time_t) (time_t_max - now)) 20019 && mktime_test1 ((time_t) (time_t_min + now))); 20020} 20021 20022static int 20023irix_6_4_bug () 20024{ 20025 /* Based on code from Ariel Faigon. */ 20026 struct tm tm; 20027 tm.tm_year = 96; 20028 tm.tm_mon = 3; 20029 tm.tm_mday = 0; 20030 tm.tm_hour = 0; 20031 tm.tm_min = 0; 20032 tm.tm_sec = 0; 20033 tm.tm_isdst = -1; 20034 mktime (&tm); 20035 return tm.tm_mon == 2 && tm.tm_mday == 31; 20036} 20037 20038static int 20039bigtime_test (int j) 20040{ 20041 struct tm tm; 20042 time_t now; 20043 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; 20044 now = mktime (&tm); 20045 if (now != (time_t) -1) 20046 { 20047 struct tm *lt = localtime (&now); 20048 if (! (lt 20049 && lt->tm_year == tm.tm_year 20050 && lt->tm_mon == tm.tm_mon 20051 && lt->tm_mday == tm.tm_mday 20052 && lt->tm_hour == tm.tm_hour 20053 && lt->tm_min == tm.tm_min 20054 && lt->tm_sec == tm.tm_sec 20055 && lt->tm_yday == tm.tm_yday 20056 && lt->tm_wday == tm.tm_wday 20057 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) 20058 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) 20059 return 0; 20060 } 20061 return 1; 20062} 20063 20064static int 20065year_2050_test () 20066{ 20067 /* The correct answer for 2050-02-01 00:00:00 in Pacific time, 20068 ignoring leap seconds. */ 20069 unsigned long int answer = 2527315200UL; 20070 20071 struct tm tm; 20072 time_t t; 20073 tm.tm_year = 2050 - 1900; 20074 tm.tm_mon = 2 - 1; 20075 tm.tm_mday = 1; 20076 tm.tm_hour = tm.tm_min = tm.tm_sec = 0; 20077 tm.tm_isdst = -1; 20078 20079 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 20080 instead of "TZ=America/Vancouver" in order to detect the bug even 20081 on systems that don't support the Olson extension, or don't have the 20082 full zoneinfo tables installed. */ 20083 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); 20084 20085 t = mktime (&tm); 20086 20087 /* Check that the result is either a failure, or close enough 20088 to the correct answer that we can assume the discrepancy is 20089 due to leap seconds. */ 20090 return (t == (time_t) -1 20091 || (0 < t && answer - 120 <= t && t <= answer + 120)); 20092} 20093 20094int 20095main () 20096{ 20097 time_t t, delta; 20098 int i, j; 20099 20100 /* This test makes some buggy mktime implementations loop. 20101 Give up after 60 seconds; a mktime slower than that 20102 isn't worth using anyway. */ 20103 alarm (60); 20104 20105 for (;;) 20106 { 20107 t = (time_t_max << 1) + 1; 20108 if (t <= time_t_max) 20109 break; 20110 time_t_max = t; 20111 } 20112 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; 20113 20114 delta = time_t_max / 997; /* a suitable prime number */ 20115 for (i = 0; i < N_STRINGS; i++) 20116 { 20117 if (tz_strings[i]) 20118 putenv ((char*) tz_strings[i]); 20119 20120 for (t = 0; t <= time_t_max - delta; t += delta) 20121 if (! mktime_test (t)) 20122 return 1; 20123 if (! (mktime_test ((time_t) 1) 20124 && mktime_test ((time_t) (60 * 60)) 20125 && mktime_test ((time_t) (60 * 60 * 24)))) 20126 return 1; 20127 20128 for (j = 1; ; j <<= 1) 20129 if (! bigtime_test (j)) 20130 return 1; 20131 else if (INT_MAX / 2 < j) 20132 break; 20133 if (! bigtime_test (INT_MAX)) 20134 return 1; 20135 } 20136 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 20137} 20138_ACEOF 20139if ac_fn_c_try_run "$LINENO"; then : 20140 ac_cv_func_working_mktime=yes 20141else 20142 ac_cv_func_working_mktime=no 20143fi 20144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20145 conftest.$ac_objext conftest.beam conftest.$ac_ext 20146fi 20147 20148fi 20149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 20150$as_echo "$ac_cv_func_working_mktime" >&6; } 20151if test $ac_cv_func_working_mktime = no; then 20152 case " $LIBOBJS " in 20153 *" mktime.$ac_objext "* ) ;; 20154 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" 20155 ;; 20156esac 20157 20158fi 20159 20160for ac_header in sys/select.h sys/socket.h 20161do : 20162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20163ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20164if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20165 cat >>confdefs.h <<_ACEOF 20166#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20167_ACEOF 20168 20169fi 20170 20171done 20172 20173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 20174$as_echo_n "checking types of arguments for select... " >&6; } 20175if ${ac_cv_func_select_args+:} false; then : 20176 $as_echo_n "(cached) " >&6 20177else 20178 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 20179 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 20180 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 20181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20182/* end confdefs.h. */ 20183$ac_includes_default 20184#ifdef HAVE_SYS_SELECT_H 20185# include <sys/select.h> 20186#endif 20187#ifdef HAVE_SYS_SOCKET_H 20188# include <sys/socket.h> 20189#endif 20190 20191int 20192main () 20193{ 20194extern int select ($ac_arg1, 20195 $ac_arg234, $ac_arg234, $ac_arg234, 20196 $ac_arg5); 20197 ; 20198 return 0; 20199} 20200_ACEOF 20201if ac_fn_c_try_compile "$LINENO"; then : 20202 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 20203fi 20204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20205 done 20206 done 20207done 20208# Provide a safe default value. 20209: "${ac_cv_func_select_args=int,int *,struct timeval *}" 20210 20211fi 20212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 20213$as_echo "$ac_cv_func_select_args" >&6; } 20214ac_save_IFS=$IFS; IFS=',' 20215set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 20216IFS=$ac_save_IFS 20217shift 20218 20219cat >>confdefs.h <<_ACEOF 20220#define SELECT_TYPE_ARG1 $1 20221_ACEOF 20222 20223 20224cat >>confdefs.h <<_ACEOF 20225#define SELECT_TYPE_ARG234 ($2) 20226_ACEOF 20227 20228 20229cat >>confdefs.h <<_ACEOF 20230#define SELECT_TYPE_ARG5 ($3) 20231_ACEOF 20232 20233rm -f conftest* 20234 20235for ac_func in gethostbyaddr gethostbyname inet_ntoa isascii getpid 20236do : 20237 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20238ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20239if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20240 cat >>confdefs.h <<_ACEOF 20241#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20242_ACEOF 20243 20244fi 20245done 20246 20247for ac_func in memmove memset 20248do : 20249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20250ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20251if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20252 cat >>confdefs.h <<_ACEOF 20253#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20254_ACEOF 20255 20256fi 20257done 20258 20259for ac_func in select socket 20260do : 20261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20262ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20263if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20264 cat >>confdefs.h <<_ACEOF 20265#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20266_ACEOF 20267 20268fi 20269done 20270 20271for ac_func in strcasecmp strchr strdup strerror 20272do : 20273 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20274ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20275if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20276 cat >>confdefs.h <<_ACEOF 20277#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20278_ACEOF 20279 20280fi 20281done 20282 20283for ac_func in snprintf 20284do : 20285 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 20286if test "x$ac_cv_func_snprintf" = xyes; then : 20287 cat >>confdefs.h <<_ACEOF 20288#define HAVE_SNPRINTF 1 20289_ACEOF 20290 20291fi 20292done 20293 20294for ac_func in symlink setlocale 20295do : 20296 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20297ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20298if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20299 cat >>confdefs.h <<_ACEOF 20300#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20301_ACEOF 20302 20303fi 20304done 20305 20306for ac_func in srandom random 20307do : 20308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20309ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20310if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20311 cat >>confdefs.h <<_ACEOF 20312#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20313_ACEOF 20314 20315fi 20316done 20317 20318 20319# Init binreloc 20320 20321 # Check whether --enable-binreloc was given. 20322if test "${enable_binreloc+set}" = set; then : 20323 enableval=$enable_binreloc; enable_binreloc=$enableval 20324else 20325 enable_binreloc=auto 20326fi 20327 20328 20329 # Check whether --enable-binreloc-threads was given. 20330if test "${enable_binreloc_threads+set}" = set; then : 20331 enableval=$enable_binreloc_threads; enable_binreloc_threads=$enableval 20332else 20333 enable_binreloc_threads=yes 20334fi 20335 20336 20337 BINRELOC_CFLAGS= 20338 BINRELOC_LIBS= 20339 if test "x$enable_binreloc" = "xauto"; then 20340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5 20341$as_echo_n "checking for /proc/self/maps... " >&6; } 20342if ${ac_cv_file__proc_self_maps+:} false; then : 20343 $as_echo_n "(cached) " >&6 20344else 20345 test "$cross_compiling" = yes && 20346 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20347if test -r "/proc/self/maps"; then 20348 ac_cv_file__proc_self_maps=yes 20349else 20350 ac_cv_file__proc_self_maps=no 20351fi 20352fi 20353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5 20354$as_echo "$ac_cv_file__proc_self_maps" >&6; } 20355if test "x$ac_cv_file__proc_self_maps" = xyes; then : 20356 20357fi 20358 20359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether everything is installed to the same prefix" >&5 20360$as_echo_n "checking whether everything is installed to the same prefix... " >&6; } 20361if ${br_cv_valid_prefixes+:} false; then : 20362 $as_echo_n "(cached) " >&6 20363else 20364 20365 # datarootdir variables was introduced with autoconf-2.60 20366 if test "$bindir" = '${exec_prefix}/bin' -a "$sbindir" = '${exec_prefix}/sbin' -a \ 20367 \( "$datadir" = '${prefix}/share' -o \( "$datadir" = '${datarootdir}' -a "$datarootdir" = '${prefix}/share' \) \) -a \ 20368 "$libdir" = '${exec_prefix}/lib' -a \ 20369 "$libexecdir" = '${exec_prefix}/libexec' -a "$sysconfdir" = '${prefix}/etc' 20370 then 20371 br_cv_valid_prefixes=yes 20372 else 20373 br_cv_valid_prefixes=no 20374 fi 20375 20376fi 20377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $br_cv_valid_prefixes" >&5 20378$as_echo "$br_cv_valid_prefixes" >&6; } 20379 fi 20380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binary relocation support should be enabled" >&5 20381$as_echo_n "checking whether binary relocation support should be enabled... " >&6; } 20382if ${br_cv_binreloc+:} false; then : 20383 $as_echo_n "(cached) " >&6 20384else 20385 if test "x$enable_binreloc" = "xyes"; then 20386 br_cv_binreloc=yes 20387 elif test "x$enable_binreloc" = "xauto"; then 20388 if test "x$br_cv_valid_prefixes" = "xyes" -a \ 20389 "x$ac_cv_file__proc_self_maps" = "xyes"; then 20390 br_cv_binreloc=yes 20391 else 20392 br_cv_binreloc=no 20393 fi 20394 else 20395 br_cv_binreloc=no 20396 fi 20397fi 20398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $br_cv_binreloc" >&5 20399$as_echo "$br_cv_binreloc" >&6; } 20400 20401 if test "x$br_cv_binreloc" = "xyes"; then 20402 BINRELOC_CFLAGS="-DENABLE_BINRELOC" 20403 20404$as_echo "#define ENABLE_BINRELOC /**/" >>confdefs.h 20405 20406 if test "x$enable_binreloc_threads" = "xyes"; then 20407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_getspecific in -lpthread" >&5 20408$as_echo_n "checking for pthread_getspecific in -lpthread... " >&6; } 20409if ${ac_cv_lib_pthread_pthread_getspecific+:} false; then : 20410 $as_echo_n "(cached) " >&6 20411else 20412 ac_check_lib_save_LIBS=$LIBS 20413LIBS="-lpthread $LIBS" 20414cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20415/* end confdefs.h. */ 20416 20417/* Override any GCC internal prototype to avoid an error. 20418 Use char because int might match the return type of a GCC 20419 builtin and then its argument prototype would still apply. */ 20420#ifdef __cplusplus 20421extern "C" 20422#endif 20423char pthread_getspecific (); 20424int 20425main () 20426{ 20427return pthread_getspecific (); 20428 ; 20429 return 0; 20430} 20431_ACEOF 20432if ac_fn_c_try_link "$LINENO"; then : 20433 ac_cv_lib_pthread_pthread_getspecific=yes 20434else 20435 ac_cv_lib_pthread_pthread_getspecific=no 20436fi 20437rm -f core conftest.err conftest.$ac_objext \ 20438 conftest$ac_exeext conftest.$ac_ext 20439LIBS=$ac_check_lib_save_LIBS 20440fi 20441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_getspecific" >&5 20442$as_echo "$ac_cv_lib_pthread_pthread_getspecific" >&6; } 20443if test "x$ac_cv_lib_pthread_pthread_getspecific" = xyes; then : 20444 cat >>confdefs.h <<_ACEOF 20445#define HAVE_LIBPTHREAD 1 20446_ACEOF 20447 20448 LIBS="-lpthread $LIBS" 20449 20450fi 20451 20452 fi 20453 20454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binary relocation should use threads" >&5 20455$as_echo_n "checking whether binary relocation should use threads... " >&6; } 20456if ${br_cv_binreloc_threads+:} false; then : 20457 $as_echo_n "(cached) " >&6 20458else 20459 if test "x$enable_binreloc_threads" = "xyes"; then 20460 if test "x$ac_cv_lib_pthread_pthread_getspecific" = "xyes"; then 20461 br_cv_binreloc_threads=yes 20462 else 20463 br_cv_binreloc_threads=no 20464 fi 20465 else 20466 br_cv_binreloc_threads=no 20467 fi 20468fi 20469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $br_cv_binreloc_threads" >&5 20470$as_echo "$br_cv_binreloc_threads" >&6; } 20471 20472 if test "x$br_cv_binreloc_threads" = "xyes"; then 20473 BINRELOC_LIBS="-lpthread" 20474 20475$as_echo "#define BR_PTHREAD 1" >>confdefs.h 20476 20477 else 20478 BINRELOC_CFLAGS="$BINRELOC_CFLAGS -DBR_PTHREADS=0" 20479 20480$as_echo "#define BR_PTHREAD 0" >>confdefs.h 20481 20482 fi 20483 fi 20484 20485 20486 20487 20488 20489 20490###------------------------------------------------------------------------- 20491# 20492# check whether gwen is a subproject to another one 20493# 20494 20495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gwen is a subproject" >&5 20496$as_echo_n "checking if gwen is a subproject... " >&6; } 20497# Check whether --enable-gwen-subproject was given. 20498if test "${enable_gwen_subproject+set}" = set; then : 20499 enableval=$enable_gwen_subproject; enable_gwen_subproject="$enableval" 20500else 20501 enable_gwen_subproject="no" 20502fi 20503 20504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gwen_subproject" >&5 20505$as_echo "$enable_gwen_subproject" >&6; } 20506 20507if test "$enable_gwen_subproject" != "no"; then 20508 20509$as_echo "#define GWENHYWFAR_IS_SUBPROJECT 1" >>confdefs.h 20510 20511fi 20512 20513 20514 20515###------------------------------------------------------------------------- 20516# 20517# check whether accompanying certificates should be used 20518# 20519 20520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system-wide trusted certificates should be set" >&5 20521$as_echo_n "checking whether system-wide trusted certificates should be set... " >&6; } 20522# Check whether --enable-system-certs was given. 20523if test "${enable_system_certs+set}" = set; then : 20524 enableval=$enable_system_certs; enable_system_certs="$enableval" 20525else 20526 enable_system_certs="yes" 20527fi 20528 20529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_system_certs" >&5 20530$as_echo "$enable_system_certs" >&6; } 20531 20532if test "$enable_system_certs" != "no"; then 20533 20534$as_echo "#define GWEN_TLS_USE_SYSTEM_CERTIFICATES 1" >>confdefs.h 20535 20536fi 20537 20538 if test "$enable_system_certs" = "no"; then 20539 INSTALL_CERTS_TRUE= 20540 INSTALL_CERTS_FALSE='#' 20541else 20542 INSTALL_CERTS_TRUE='#' 20543 INSTALL_CERTS_FALSE= 20544fi 20545 20546 20547 20548###------------------------------------------------------------------------- 20549# 20550# check whether 'make check' should run checks that depend on network connectivity 20551# 20552 20553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking network connectivity can be assumed available during 'make check'" >&5 20554$as_echo_n "checking network connectivity can be assumed available during 'make check'... " >&6; } 20555# Check whether --enable-network-checks was given. 20556if test "${enable_network_checks+set}" = set; then : 20557 enableval=$enable_network_checks; enable_gwen_network_checks="$enableval" 20558else 20559 enable_gwen_network_checks="yes" 20560fi 20561 20562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gwen_network_checks" >&5 20563$as_echo "$enable_gwen_network_checks" >&6; } 20564 20565if test "$enable_gwen_network_checks" = "no"; then 20566 20567$as_echo "#define GWENHYWFAR_SKIP_NETWORK_CHECKS 1" >>confdefs.h 20568 20569fi 20570 20571 20572 20573###------------------------------------------------------------------------- 20574# 20575# check whether test code should be enabled 20576# 20577 20578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable test code" >&5 20579$as_echo_n "checking whether to enable test code... " >&6; } 20580# Check whether --enable-testcode was given. 20581if test "${enable_testcode+set}" = set; then : 20582 enableval=$enable_testcode; enable_testcode="$enableval" 20583else 20584 enable_testcode="no" 20585fi 20586 20587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_testcode" >&5 20588$as_echo "$enable_testcode" >&6; } 20589 20590if test "$enable_testcode" != "no"; then 20591 20592$as_echo "#define GWENHYWFAR_ENABLE_TESTCODE 1" >>confdefs.h 20593 20594fi 20595 20596 20597 20598###------------------------------------------------------------------------- 20599# 20600# check whether local installation mode is enabled 20601# 20602 20603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether local installation mode is wanted" >&5 20604$as_echo_n "checking whether local installation mode is wanted... " >&6; } 20605# Check whether --enable-local-install was given. 20606if test "${enable_local_install+set}" = set; then : 20607 enableval=$enable_local_install; enable_local_install="$enableval" 20608else 20609 enable_local_install="no" 20610fi 20611 20612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_local_install" >&5 20613$as_echo "$enable_local_install" >&6; } 20614 20615if test "$enable_local_install" != "no"; then 20616 20617$as_echo "#define ENABLE_LOCAL_INSTALL 1" >>confdefs.h 20618 20619fi 20620 20621 20622 20623###------------------------------------------------------------------------- 20624# 20625# OS dependant settings 20626# 20627 20628# Common settings for all OSs 20629gwenhywfar_bindir="\${bindir}" 20630gwenhywfar_libs="-lgwenhywfar" 20631gwenhywfar_ldflags="-L\${libdir}" 20632gwenhywfar_internal_libname="libgwenhywfar.la" 20633gwenhywfar_headerdir_am="\$(includedir)/gwenhywfar5" 20634gwenhywfar_headerdir="\${includedir}/gwenhywfar5" 20635gwenhywfar_plugindir="\${libdir}/gwenhywfar/plugins/${GWENHYWFAR_SO_EFFECTIVE}" 20636gwenhywfar_symlinkdir="\$(top_builddir)/gwenhywfar5" 20637gwenhywfar_datadir="\${datadir}/gwenhywfar" 20638gwenhywfar_sysdatadir="\${datadir}" 20639 20640# Now the specific settings 20641case "$OS_TYPE" in 20642 posix) 20643 gwenhywfar_sys_is_windows=0 20644 gwenhywfar_os_lib="os/posix/libos.la" 20645 GWEN_OS="posix" 20646 20647 # add special libraries for solaris 20648 if test "$OSYSTEM" = "solaris"; then 20649 all_libraries="${all_libraries} -lresolv -lsocket" 20650 PROG_LIBRARIES="${PROG_LIBRARIES} -lresolv -lsocket" 20651 fi 20652 20653 # add special libraries for darwin 20654 if test "$OSYSTEM" = "osx"; then 20655 # hmm, this should be detected by the GETTEXT macro... 20656 #PROG_LIBRARIES="${PROG_LIBRARIES} -lintl" 20657 # for local install mode on Mac OS X link with the CoreFoundation framework 20658 if test "$enable_local_install" != "no"; then 20659 all_libraries="${all_libraries} -framework CoreFoundation" 20660 fi 20661 fi 20662 ;; 20663 windows) 20664 gwenhywfar_sys_is_windows=1 20665 20666 gwenhywfar_os_lib="os/windows/libos.la" 20667 GWEN_OS="windows" 20668 all_libraries="${all_libraries} -lwsock32" 20669 ;; 20670 *) 20671 as_fn_error $? "**** Unknown operating system type" "$LINENO" 5 20672 ;; 20673esac 20674 20675 if test "$OS_TYPE" = "windows"; then 20676 IS_WINDOWS_TRUE= 20677 IS_WINDOWS_FALSE='#' 20678else 20679 IS_WINDOWS_TRUE='#' 20680 IS_WINDOWS_FALSE= 20681fi 20682 20683 20684 20685 20686 20687 20688 20689###------------------------------------------------------------------------- 20690# 20691# check plugin search path 20692# 20693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking plugin search dir" >&5 20694$as_echo_n "checking plugin search dir... " >&6; } 20695 20696# Check whether --with-plugin-searchdir was given. 20697if test "${with_plugin_searchdir+set}" = set; then : 20698 withval=$with_plugin_searchdir; gwenhywfar_plugin_searchdir="$withval" 20699else 20700 gwenhywfar_plugin_searchdir="" 20701fi 20702 20703 20704if test -z "${gwenhywfar_plugin_searchdir}"; then 20705 if test "$OSYSTEM" = "windows"; then 20706 gwenhywfar_plugin_searchdir="lib/gwenhywfar/plugins/${GWENHYWFAR_SO_EFFECTIVE}" 20707 else 20708 if test "$enable_local_install" != "no"; then 20709 gwenhywfar_plugin_searchdir="lib/gwenhywfar/plugins/${GWENHYWFAR_SO_EFFECTIVE}" 20710 else 20711 gwenhywfar_plugin_searchdir="$gwenhywfar_plugindir" 20712 fi 20713 fi 20714fi 20715 20716 20717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gwenhywfar_plugin_searchdir" >&5 20718$as_echo "$gwenhywfar_plugin_searchdir" >&6; } 20719 20720 20721 20722###------------------------------------------------------------------------- 20723# 20724# check data search dir 20725# 20726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking data search dir" >&5 20727$as_echo_n "checking data search dir... " >&6; } 20728 20729# Check whether --with-data-searchdir was given. 20730if test "${with_data_searchdir+set}" = set; then : 20731 withval=$with_data_searchdir; gwenhywfar_data_searchdir="$withval" 20732else 20733 gwenhywfar_data_searchdir="" 20734fi 20735 20736 20737if test -z "${gwenhywfar_data_searchdir}"; then 20738 if test "$OSYSTEM" = "windows"; then 20739 gwenhywfar_data_searchdir="share/gwenhywfar" 20740 else 20741 if test "$enable_local_install" != "no"; then 20742 gwenhywfar_data_searchdir="share/gwenhywfar" 20743 else 20744 gwenhywfar_data_searchdir="$gwenhywfar_datadir" 20745 fi 20746 fi 20747fi 20748 20749 20750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gwenhywfar_data_searchdir" >&5 20751$as_echo "$gwenhywfar_data_searchdir" >&6; } 20752 20753 20754 20755###------------------------------------------------------------------------- 20756# 20757# check system data search dir 20758# 20759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking system data search dir" >&5 20760$as_echo_n "checking system data search dir... " >&6; } 20761 20762# Check whether --with-sysdata-searchdir was given. 20763if test "${with_sysdata_searchdir+set}" = set; then : 20764 withval=$with_sysdata_searchdir; gwenhywfar_sysdata_searchdir="$withval" 20765else 20766 gwenhywfar_sysdata_searchdir="" 20767fi 20768 20769 20770if test -z "${gwenhywfar_sysdata_searchdir}"; then 20771 if test "$OSYSTEM" = "windows"; then 20772 gwenhywfar_sysdata_searchdir="share" 20773 else 20774 if test "$enable_local_install" != "no"; then 20775 gwenhywfar_sysdata_searchdir="share" 20776 else 20777 gwenhywfar_sysdata_searchdir="$gwenhywfar_sysdatadir" 20778 fi 20779 fi 20780fi 20781 20782 20783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gwenhywfar_sysdata_searchdir" >&5 20784$as_echo "$gwenhywfar_sysdata_searchdir" >&6; } 20785 20786 20787 20788###------------------------------------------------------------------------- 20789# 20790# check locale search dir 20791# 20792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking locale search dir" >&5 20793$as_echo_n "checking locale search dir... " >&6; } 20794 20795# Check whether --with-locale-searchdir was given. 20796if test "${with_locale_searchdir+set}" = set; then : 20797 withval=$with_locale_searchdir; gwenhywfar_locale_searchdir="$withval" 20798else 20799 gwenhywfar_locale_searchdir="" 20800fi 20801 20802 20803if test -z "${gwenhywfar_locale_searchdir}"; then 20804 if test "$OSYSTEM" = "windows"; then 20805 gwenhywfar_locale_searchdir="share/locale" 20806 else 20807 if test "$enable_local_install" != "no"; then 20808 gwenhywfar_locale_searchdir="share/locale" 20809 else 20810 gwenhywfar_locale_searchdir="\$(localedir)" 20811 fi 20812 fi 20813fi 20814 20815 20816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gwenhywfar_locale_searchdir" >&5 20817$as_echo "$gwenhywfar_locale_searchdir" >&6; } 20818 20819 20820 20821###------------------------------------------------------------------------- 20822# 20823# check cfg search dir 20824# 20825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking cfg search dir" >&5 20826$as_echo_n "checking cfg search dir... " >&6; } 20827 20828# Check whether --with-cfg-searchdir was given. 20829if test "${with_cfg_searchdir+set}" = set; then : 20830 withval=$with_cfg_searchdir; gwenhywfar_cfg_searchdir="$withval" 20831else 20832 gwenhywfar_cfg_searchdir="" 20833fi 20834 20835 20836if test -z "$gwenhywfar_cfg_searchdir"; then 20837 if test "$OSYSTEM" = "windows"; then 20838 gwenhywfar_cfg_searchdir="etc" 20839 else 20840 if test "$enable_local_install" != "no"; then 20841 gwenhywfar_cfg_searchdir="etc" 20842 else 20843 gwenhywfar_cfg_searchdir="\$(sysconfdir)" 20844 fi 20845 fi 20846fi 20847 20848 20849 20850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gwenhywfar_cfg_searchdir" >&5 20851$as_echo "$gwenhywfar_cfg_searchdir" >&6; } 20852 20853 20854 20855###------------------------------------------------------------------------- 20856# 20857# check whether variadic macros should be supported 20858# 20859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling with variadic macros" >&5 20860$as_echo_n "checking if compiling with variadic macros... " >&6; } 20861# Check whether --enable-variadic-macros was given. 20862if test "${enable_variadic_macros+set}" = set; then : 20863 enableval=$enable_variadic_macros; enable_variadic_macros="$enableval" 20864else 20865 enable_variadic_macros="yes" 20866fi 20867 20868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_variadic_macros" >&5 20869$as_echo "$enable_variadic_macros" >&6; } 20870if test "x$enable_variadic_macros" = "xno"; then 20871 20872$as_echo "#define NO_VARIADIC_MACROS 1" >>confdefs.h 20873 20874fi 20875 20876 20877 20878###------------------------------------------------------------------------- 20879# 20880# check whether profiling is to be supported 20881# 20882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if profiling is to be supported" >&5 20883$as_echo_n "checking if profiling is to be supported... " >&6; } 20884# Check whether --enable-profiling was given. 20885if test "${enable_profiling+set}" = set; then : 20886 enableval=$enable_profiling; enable_profiling="$enableval" 20887else 20888 enable_profiling="no" 20889fi 20890 20891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 20892$as_echo "$enable_profiling" >&6; } 20893if test "x$enable_profiling" = "xyes"; then 20894 PROFILING_CFLAGS="-pg" 20895 PROFILING_LDFLAGS="-pg" 20896else 20897 PROFILING_CFLAGS="" 20898 PROFILING_LDFLAGS="" 20899fi 20900 20901 20902 20903 20904 20905###------------------------------------------------------------------------- 20906# 20907# check for Debian multiarch paths 20908# 20909if test -n "$ac_tool_prefix"; then 20910 # Extract the first word of "${ac_tool_prefix}dpkg-architecture", so it can be a program name with args. 20911set dummy ${ac_tool_prefix}dpkg-architecture; ac_word=$2 20912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20913$as_echo_n "checking for $ac_word... " >&6; } 20914if ${ac_cv_path_DPKG_ARCH+:} false; then : 20915 $as_echo_n "(cached) " >&6 20916else 20917 case $DPKG_ARCH in 20918 [\\/]* | ?:[\\/]*) 20919 ac_cv_path_DPKG_ARCH="$DPKG_ARCH" # Let the user override the test with a path. 20920 ;; 20921 *) 20922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20923for as_dir in $PATH 20924do 20925 IFS=$as_save_IFS 20926 test -z "$as_dir" && as_dir=. 20927 for ac_exec_ext in '' $ac_executable_extensions; do 20928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20929 ac_cv_path_DPKG_ARCH="$as_dir/$ac_word$ac_exec_ext" 20930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20931 break 2 20932 fi 20933done 20934 done 20935IFS=$as_save_IFS 20936 20937 ;; 20938esac 20939fi 20940DPKG_ARCH=$ac_cv_path_DPKG_ARCH 20941if test -n "$DPKG_ARCH"; then 20942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG_ARCH" >&5 20943$as_echo "$DPKG_ARCH" >&6; } 20944else 20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20946$as_echo "no" >&6; } 20947fi 20948 20949 20950fi 20951if test -z "$ac_cv_path_DPKG_ARCH"; then 20952 ac_pt_DPKG_ARCH=$DPKG_ARCH 20953 # Extract the first word of "dpkg-architecture", so it can be a program name with args. 20954set dummy dpkg-architecture; ac_word=$2 20955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20956$as_echo_n "checking for $ac_word... " >&6; } 20957if ${ac_cv_path_ac_pt_DPKG_ARCH+:} false; then : 20958 $as_echo_n "(cached) " >&6 20959else 20960 case $ac_pt_DPKG_ARCH in 20961 [\\/]* | ?:[\\/]*) 20962 ac_cv_path_ac_pt_DPKG_ARCH="$ac_pt_DPKG_ARCH" # Let the user override the test with a path. 20963 ;; 20964 *) 20965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20966for as_dir in $PATH 20967do 20968 IFS=$as_save_IFS 20969 test -z "$as_dir" && as_dir=. 20970 for ac_exec_ext in '' $ac_executable_extensions; do 20971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20972 ac_cv_path_ac_pt_DPKG_ARCH="$as_dir/$ac_word$ac_exec_ext" 20973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20974 break 2 20975 fi 20976done 20977 done 20978IFS=$as_save_IFS 20979 20980 ;; 20981esac 20982fi 20983ac_pt_DPKG_ARCH=$ac_cv_path_ac_pt_DPKG_ARCH 20984if test -n "$ac_pt_DPKG_ARCH"; then 20985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DPKG_ARCH" >&5 20986$as_echo "$ac_pt_DPKG_ARCH" >&6; } 20987else 20988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20989$as_echo "no" >&6; } 20990fi 20991 20992 if test "x$ac_pt_DPKG_ARCH" = x; then 20993 DPKG_ARCH="" 20994 else 20995 case $cross_compiling:$ac_tool_warned in 20996yes:) 20997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20999ac_tool_warned=yes ;; 21000esac 21001 DPKG_ARCH=$ac_pt_DPKG_ARCH 21002 fi 21003else 21004 DPKG_ARCH="$ac_cv_path_DPKG_ARCH" 21005fi 21006 21007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch paths" >&5 21008$as_echo_n "checking for multiarch paths... " >&6; } 21009multiarch_triplet="" 21010DEBIAN_MULTIARCH_DIRS="" 21011if test -n "$DPKG_ARCH"; then 21012 multiarch_triplet=$($DPKG_ARCH -qDEB_HOST_MULTIARCH 2> /dev/null) 21013 if test -z "$multiarch_triplet"; then 21014 multiarch_triplet=$($DPKG_ARCH -qDEB_HOST_GNU_TYPE) 21015 fi 21016fi 21017if test -n "$multiarch_triplet"; then 21018 DEBIAN_MULTIARCH_DIRS="/lib/$multiarch_triplet /usr/lib/$multiarch_triplet" 21019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBIAN_MULTIARCH_DIRS" >&5 21020$as_echo "$DEBIAN_MULTIARCH_DIRS" >&6; } 21021else 21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21023$as_echo "not found" >&6; } 21024fi 21025 21026 21027 21028###------------------------------------------------------------------------- 21029# 21030# check for libgcrypt 21031# 21032NEED_LIBGCRYPT_API=1 21033NEED_LIBGCRYPT_VERSION=1.2.0 21034 21035cat >>confdefs.h <<_ACEOF 21036#define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION" 21037_ACEOF 21038 21039case "$OS_TYPE" in 21040 windows) 21041 LIBGCRYPT_CFLAGS="" 21042 LIBGCRYPT_LIBS="-lgcrypt" 21043 21044 21045 ;; 21046 *) 21047 21048 21049# Check whether --with-libgcrypt-prefix was given. 21050if test "${with_libgcrypt_prefix+set}" = set; then : 21051 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval" 21052else 21053 libgcrypt_config_prefix="" 21054fi 21055 21056 if test x"${LIBGCRYPT_CONFIG}" = x ; then 21057 if test x"${libgcrypt_config_prefix}" != x ; then 21058 LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config" 21059 else 21060 case "${SYSROOT}" in 21061 /*) 21062 if test -x "${SYSROOT}/bin/libgcrypt-config" ; then 21063 LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config" 21064 fi 21065 ;; 21066 '') 21067 ;; 21068 *) 21069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5 21070$as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;} 21071 ;; 21072 esac 21073 fi 21074 fi 21075 21076 # Extract the first word of "libgcrypt-config", so it can be a program name with args. 21077set dummy libgcrypt-config; ac_word=$2 21078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21079$as_echo_n "checking for $ac_word... " >&6; } 21080if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then : 21081 $as_echo_n "(cached) " >&6 21082else 21083 case $LIBGCRYPT_CONFIG in 21084 [\\/]* | ?:[\\/]*) 21085 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path. 21086 ;; 21087 *) 21088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21089for as_dir in $PATH 21090do 21091 IFS=$as_save_IFS 21092 test -z "$as_dir" && as_dir=. 21093 for ac_exec_ext in '' $ac_executable_extensions; do 21094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21095 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21097 break 2 21098 fi 21099done 21100 done 21101IFS=$as_save_IFS 21102 21103 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no" 21104 ;; 21105esac 21106fi 21107LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG 21108if test -n "$LIBGCRYPT_CONFIG"; then 21109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5 21110$as_echo "$LIBGCRYPT_CONFIG" >&6; } 21111else 21112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21113$as_echo "no" >&6; } 21114fi 21115 21116 21117 tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION" 21118 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then 21119 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` 21120 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` 21121 else 21122 req_libgcrypt_api=0 21123 min_libgcrypt_version="$tmp" 21124 fi 21125 21126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5 21127$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; } 21128 ok=no 21129 if test "$LIBGCRYPT_CONFIG" != "no" ; then 21130 req_major=`echo $min_libgcrypt_version | \ 21131 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 21132 req_minor=`echo $min_libgcrypt_version | \ 21133 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 21134 req_micro=`echo $min_libgcrypt_version | \ 21135 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 21136 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version` 21137 major=`echo $libgcrypt_config_version | \ 21138 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'` 21139 minor=`echo $libgcrypt_config_version | \ 21140 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'` 21141 micro=`echo $libgcrypt_config_version | \ 21142 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` 21143 if test "$major" -gt "$req_major"; then 21144 ok=yes 21145 else 21146 if test "$major" -eq "$req_major"; then 21147 if test "$minor" -gt "$req_minor"; then 21148 ok=yes 21149 else 21150 if test "$minor" -eq "$req_minor"; then 21151 if test "$micro" -ge "$req_micro"; then 21152 ok=yes 21153 fi 21154 fi 21155 fi 21156 fi 21157 fi 21158 fi 21159 if test $ok = yes; then 21160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5 21161$as_echo "yes ($libgcrypt_config_version)" >&6; } 21162 else 21163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21164$as_echo "no" >&6; } 21165 fi 21166 if test $ok = yes; then 21167 # If we have a recent libgcrypt, we should also check that the 21168 # API is compatible 21169 if test "$req_libgcrypt_api" -gt 0 ; then 21170 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0` 21171 if test "$tmp" -gt 0 ; then 21172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5 21173$as_echo_n "checking LIBGCRYPT API version... " >&6; } 21174 if test "$req_libgcrypt_api" -eq "$tmp" ; then 21175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5 21176$as_echo "okay" >&6; } 21177 else 21178 ok=no 21179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5 21180$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; } 21181 fi 21182 fi 21183 fi 21184 fi 21185 if test $ok = yes; then 21186 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags` 21187 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs` 21188 have_gcrypt="yes" 21189 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none` 21190 if test x"$libgcrypt_config_host" != xnone ; then 21191 if test x"$libgcrypt_config_host" != x"$host" ; then 21192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 21193*** 21194*** The config script $LIBGCRYPT_CONFIG was 21195*** built for $libgcrypt_config_host and thus may not match the 21196*** used host $host. 21197*** You may want to use the configure option --with-libgcrypt-prefix 21198*** to specify a matching config script or use \$SYSROOT. 21199***" >&5 21200$as_echo "$as_me: WARNING: 21201*** 21202*** The config script $LIBGCRYPT_CONFIG was 21203*** built for $libgcrypt_config_host and thus may not match the 21204*** used host $host. 21205*** You may want to use the configure option --with-libgcrypt-prefix 21206*** to specify a matching config script or use \$SYSROOT. 21207***" >&2;} 21208 gpg_config_script_warn="$gpg_config_script_warn libgcrypt" 21209 fi 21210 fi 21211 else 21212 LIBGCRYPT_CFLAGS="" 21213 LIBGCRYPT_LIBS="" 21214 have_gcrypt="no" 21215 fi 21216 21217 21218 21219 if test "$have_gcrypt" != "yes"; then 21220 as_fn_error $? " 21221 **** Libgcrypt is required for Gwenhywfar. Please install it (including devel packages) 21222 **** (at least version $NEED_LIBGCRYPT_VERSION using API $NEED_LIBGCRYPT_API is required.)" "$LINENO" 5 21223 fi 21224 ;; 21225esac 21226 21227 21228 21229###------------------------------------------------------------------------- 21230# 21231# check for library for common error values and messages in GnuPG components 21232# 21233 21234 gpg_error_config_prefix="" 21235 21236# Check whether --with-libgpg-error-prefix was given. 21237if test "${with_libgpg_error_prefix+set}" = set; then : 21238 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval" 21239fi 21240 21241 21242 21243# Check whether --with-gpg-error-prefix was given. 21244if test "${with_gpg_error_prefix+set}" = set; then : 21245 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval" 21246fi 21247 21248 21249 if test x"${GPG_ERROR_CONFIG}" = x ; then 21250 if test x"${gpg_error_config_prefix}" != x ; then 21251 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config" 21252 else 21253 case "${SYSROOT}" in 21254 /*) 21255 if test -x "${SYSROOT}/bin/gpg-error-config" ; then 21256 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config" 21257 fi 21258 ;; 21259 '') 21260 ;; 21261 *) 21262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5 21263$as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;} 21264 ;; 21265 esac 21266 fi 21267 fi 21268 21269 # Extract the first word of "gpg-error-config", so it can be a program name with args. 21270set dummy gpg-error-config; ac_word=$2 21271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21272$as_echo_n "checking for $ac_word... " >&6; } 21273if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then : 21274 $as_echo_n "(cached) " >&6 21275else 21276 case $GPG_ERROR_CONFIG in 21277 [\\/]* | ?:[\\/]*) 21278 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path. 21279 ;; 21280 *) 21281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21282for as_dir in $PATH 21283do 21284 IFS=$as_save_IFS 21285 test -z "$as_dir" && as_dir=. 21286 for ac_exec_ext in '' $ac_executable_extensions; do 21287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21288 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21290 break 2 21291 fi 21292done 21293 done 21294IFS=$as_save_IFS 21295 21296 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no" 21297 ;; 21298esac 21299fi 21300GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG 21301if test -n "$GPG_ERROR_CONFIG"; then 21302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5 21303$as_echo "$GPG_ERROR_CONFIG" >&6; } 21304else 21305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21306$as_echo "no" >&6; } 21307fi 21308 21309 21310 min_gpg_error_version=0.0 21311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5 21312$as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; } 21313 ok=no 21314 if test "$GPG_ERROR_CONFIG" != "no" \ 21315 && test -f "$GPG_ERROR_CONFIG" ; then 21316 req_major=`echo $min_gpg_error_version | \ 21317 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'` 21318 req_minor=`echo $min_gpg_error_version | \ 21319 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'` 21320 gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version` 21321 major=`echo $gpg_error_config_version | \ 21322 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` 21323 minor=`echo $gpg_error_config_version | \ 21324 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` 21325 if test "$major" -gt "$req_major"; then 21326 ok=yes 21327 else 21328 if test "$major" -eq "$req_major"; then 21329 if test "$minor" -ge "$req_minor"; then 21330 ok=yes 21331 fi 21332 fi 21333 fi 21334 fi 21335 if test $ok = yes; then 21336 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags` 21337 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs` 21338 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null` 21339 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null` 21340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5 21341$as_echo "yes ($gpg_error_config_version)" >&6; } 21342 : 21343 gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none` 21344 if test x"$gpg_error_config_host" != xnone ; then 21345 if test x"$gpg_error_config_host" != x"$host" ; then 21346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 21347*** 21348*** The config script $GPG_ERROR_CONFIG was 21349*** built for $gpg_error_config_host and thus may not match the 21350*** used host $host. 21351*** You may want to use the configure option --with-libgpg-error-prefix 21352*** to specify a matching config script or use \$SYSROOT. 21353***" >&5 21354$as_echo "$as_me: WARNING: 21355*** 21356*** The config script $GPG_ERROR_CONFIG was 21357*** built for $gpg_error_config_host and thus may not match the 21358*** used host $host. 21359*** You may want to use the configure option --with-libgpg-error-prefix 21360*** to specify a matching config script or use \$SYSROOT. 21361***" >&2;} 21362 gpg_config_script_warn="$gpg_config_script_warn libgpg-error" 21363 fi 21364 fi 21365 else 21366 GPG_ERROR_CFLAGS="" 21367 GPG_ERROR_LIBS="" 21368 GPG_ERROR_MT_CFLAGS="" 21369 GPG_ERROR_MT_LIBS="" 21370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21371$as_echo "no" >&6; } 21372 : 21373 fi 21374 21375 21376 21377 21378 21379 21380 21381 21382###------------------------------------------------------------------------- 21383# 21384# check for libgnutls 21385# 21386 21387 21388 21389 21390 21391 21392 21393 21394if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21395 if test -n "$ac_tool_prefix"; then 21396 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21397set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21399$as_echo_n "checking for $ac_word... " >&6; } 21400if ${ac_cv_path_PKG_CONFIG+:} false; then : 21401 $as_echo_n "(cached) " >&6 21402else 21403 case $PKG_CONFIG in 21404 [\\/]* | ?:[\\/]*) 21405 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21406 ;; 21407 *) 21408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21409for as_dir in $PATH 21410do 21411 IFS=$as_save_IFS 21412 test -z "$as_dir" && as_dir=. 21413 for ac_exec_ext in '' $ac_executable_extensions; do 21414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21415 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21417 break 2 21418 fi 21419done 21420 done 21421IFS=$as_save_IFS 21422 21423 ;; 21424esac 21425fi 21426PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21427if test -n "$PKG_CONFIG"; then 21428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21429$as_echo "$PKG_CONFIG" >&6; } 21430else 21431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21432$as_echo "no" >&6; } 21433fi 21434 21435 21436fi 21437if test -z "$ac_cv_path_PKG_CONFIG"; then 21438 ac_pt_PKG_CONFIG=$PKG_CONFIG 21439 # Extract the first word of "pkg-config", so it can be a program name with args. 21440set dummy pkg-config; ac_word=$2 21441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21442$as_echo_n "checking for $ac_word... " >&6; } 21443if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 21444 $as_echo_n "(cached) " >&6 21445else 21446 case $ac_pt_PKG_CONFIG in 21447 [\\/]* | ?:[\\/]*) 21448 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21449 ;; 21450 *) 21451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21452for as_dir in $PATH 21453do 21454 IFS=$as_save_IFS 21455 test -z "$as_dir" && as_dir=. 21456 for ac_exec_ext in '' $ac_executable_extensions; do 21457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21458 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21460 break 2 21461 fi 21462done 21463 done 21464IFS=$as_save_IFS 21465 21466 ;; 21467esac 21468fi 21469ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21470if test -n "$ac_pt_PKG_CONFIG"; then 21471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 21472$as_echo "$ac_pt_PKG_CONFIG" >&6; } 21473else 21474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21475$as_echo "no" >&6; } 21476fi 21477 21478 if test "x$ac_pt_PKG_CONFIG" = x; then 21479 PKG_CONFIG="" 21480 else 21481 case $cross_compiling:$ac_tool_warned in 21482yes:) 21483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21485ac_tool_warned=yes ;; 21486esac 21487 PKG_CONFIG=$ac_pt_PKG_CONFIG 21488 fi 21489else 21490 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21491fi 21492 21493fi 21494if test -n "$PKG_CONFIG"; then 21495 _pkg_min_version=0.9.0 21496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 21497$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21498 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21500$as_echo "yes" >&6; } 21501 else 21502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21503$as_echo "no" >&6; } 21504 PKG_CONFIG="" 21505 fi 21506fi 21507 21508pkg_failed=no 21509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5 21510$as_echo_n "checking for LIBGNUTLS... " >&6; } 21511 21512if test -n "$LIBGNUTLS_CFLAGS"; then 21513 pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS" 21514 elif test -n "$PKG_CONFIG"; then 21515 if test -n "$PKG_CONFIG" && \ 21516 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.9.8\""; } >&5 21517 ($PKG_CONFIG --exists --print-errors "gnutls >= 2.9.8") 2>&5 21518 ac_status=$? 21519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21520 test $ac_status = 0; }; then 21521 pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.9.8" 2>/dev/null` 21522 test "x$?" != "x0" && pkg_failed=yes 21523else 21524 pkg_failed=yes 21525fi 21526 else 21527 pkg_failed=untried 21528fi 21529if test -n "$LIBGNUTLS_LIBS"; then 21530 pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS" 21531 elif test -n "$PKG_CONFIG"; then 21532 if test -n "$PKG_CONFIG" && \ 21533 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.9.8\""; } >&5 21534 ($PKG_CONFIG --exists --print-errors "gnutls >= 2.9.8") 2>&5 21535 ac_status=$? 21536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21537 test $ac_status = 0; }; then 21538 pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.9.8" 2>/dev/null` 21539 test "x$?" != "x0" && pkg_failed=yes 21540else 21541 pkg_failed=yes 21542fi 21543 else 21544 pkg_failed=untried 21545fi 21546 21547 21548 21549if test $pkg_failed = yes; then 21550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21551$as_echo "no" >&6; } 21552 21553if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21554 _pkg_short_errors_supported=yes 21555else 21556 _pkg_short_errors_supported=no 21557fi 21558 if test $_pkg_short_errors_supported = yes; then 21559 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= 2.9.8" 2>&1` 21560 else 21561 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= 2.9.8" 2>&1` 21562 fi 21563 # Put the nasty error message in config.log where it belongs 21564 echo "$LIBGNUTLS_PKG_ERRORS" >&5 21565 21566 as_fn_error $? "Package requirements (gnutls >= 2.9.8) were not met: 21567 21568$LIBGNUTLS_PKG_ERRORS 21569 21570Consider adjusting the PKG_CONFIG_PATH environment variable if you 21571installed software in a non-standard prefix. 21572 21573Alternatively, you may set the environment variables LIBGNUTLS_CFLAGS 21574and LIBGNUTLS_LIBS to avoid the need to call pkg-config. 21575See the pkg-config man page for more details." "$LINENO" 5 21576elif test $pkg_failed = untried; then 21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21578$as_echo "no" >&6; } 21579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21581as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21582is in your PATH or set the PKG_CONFIG environment variable to the full 21583path to pkg-config. 21584 21585Alternatively, you may set the environment variables LIBGNUTLS_CFLAGS 21586and LIBGNUTLS_LIBS to avoid the need to call pkg-config. 21587See the pkg-config man page for more details. 21588 21589To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21590See \`config.log' for more details" "$LINENO" 5; } 21591else 21592 LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS 21593 LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS 21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21595$as_echo "yes" >&6; } 21596 21597fi 21598 21599 21600###------------------------------------------------------------------------- 21601# 21602# check for OpenSSL 21603# 21604 21605pkg_failed=no 21606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5 21607$as_echo_n "checking for OPENSSL... " >&6; } 21608 21609if test -n "$OPENSSL_CFLAGS"; then 21610 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 21611 elif test -n "$PKG_CONFIG"; then 21612 if test -n "$PKG_CONFIG" && \ 21613 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 21614 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 21615 ac_status=$? 21616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21617 test $ac_status = 0; }; then 21618 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` 21619 test "x$?" != "x0" && pkg_failed=yes 21620else 21621 pkg_failed=yes 21622fi 21623 else 21624 pkg_failed=untried 21625fi 21626if test -n "$OPENSSL_LIBS"; then 21627 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 21628 elif test -n "$PKG_CONFIG"; then 21629 if test -n "$PKG_CONFIG" && \ 21630 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 21631 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 21632 ac_status=$? 21633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21634 test $ac_status = 0; }; then 21635 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` 21636 test "x$?" != "x0" && pkg_failed=yes 21637else 21638 pkg_failed=yes 21639fi 21640 else 21641 pkg_failed=untried 21642fi 21643 21644 21645 21646if test $pkg_failed = yes; then 21647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21648$as_echo "no" >&6; } 21649 21650if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21651 _pkg_short_errors_supported=yes 21652else 21653 _pkg_short_errors_supported=no 21654fi 21655 if test $_pkg_short_errors_supported = yes; then 21656 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1` 21657 else 21658 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1` 21659 fi 21660 # Put the nasty error message in config.log where it belongs 21661 echo "$OPENSSL_PKG_ERRORS" >&5 21662 21663 ssl_available=no 21664elif test $pkg_failed = untried; then 21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21666$as_echo "no" >&6; } 21667 ssl_available=no 21668else 21669 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 21670 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21672$as_echo "yes" >&6; } 21673 ssl_available=yes 21674fi 21675if test "$ssl_available" = "yes"; then 21676 21677cat >>confdefs.h <<_ACEOF 21678#define HAVE_OPENSSL 1 21679_ACEOF 21680 21681fi 21682 if test "$ssl_available" = "yes"; then 21683 IF_HAVE_OPENSSL_TRUE= 21684 IF_HAVE_OPENSSL_FALSE='#' 21685else 21686 IF_HAVE_OPENSSL_TRUE='#' 21687 IF_HAVE_OPENSSL_FALSE= 21688fi 21689 21690 21691 21692 21693 21694###------------------------------------------------------------------------- 21695# check for Distribution 21696 21697 21698 21699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preselected distribution name" >&5 21700$as_echo_n "checking for preselected distribution name... " >&6; } 21701if test -n "$aq_distrib_name"; then 21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $aq_distrib_name" >&5 21703$as_echo "yes, $aq_distrib_name" >&6; } 21704else 21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, will have to determine it" >&5 21706$as_echo "no, will have to determine it" >&6; } 21707 aq_distrib_name="" 21708 aq_distrib_version="" 21709 aq_distrib_tag="" 21710 21711 # Debian-style 21712 21713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is a Debian derivate" >&5 21714$as_echo_n "checking whether this is a Debian derivate... " >&6; } 21715 case `basename $CC` in 21716 gcc | gcc-* | *-gcc | *-gcc-*) 21717 debtype="` ${CC} --version | head -1`" 21718 case $debtype in 21719 *\(Debian\ *) 21720 aq_distrib_name="Debian" 21721 aq_distrib_tag="debian" 21722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $aq_distrib_name" >&5 21723$as_echo "yes, $aq_distrib_name" >&6; } 21724 ;; 21725 *\(Ubuntu\ * | *\(KUbuntu\ *) 21726 aq_distrib_name="Ubuntu" 21727 aq_distrib_tag="ubuntu" 21728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $aq_distrib_name" >&5 21729$as_echo "yes, $aq_distrib_name" >&6; } 21730 ;; 21731 *) 21732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21733$as_echo "no" >&6; } 21734 ;; 21735 esac 21736 ;; 21737 *) 21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21739$as_echo "no" >&6; } 21740 ;; 21741 esac 21742fi 21743 21744 21745if test -z "$aq_distrib_name"; then 21746 21747 # RPM-style 21748 21749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is an RPM distribution" >&5 21750$as_echo_n "checking whether this is an RPM distribution... " >&6; } 21751 RPM_COMMAND="`which rpm`" 21752 aq_distrib_name="" 21753 aq_distrib_tag="" 21754 aq_distrib_version="" 21755 if test -n "${RPM_COMMAND}"; then 21756 if test -x "${RPM_COMMAND}"; then 21757 if test -e "/etc/mandriva-release"; then 21758 aq_distrib_name="mandriva" 21759 aq_distrib_tag="mdk" 21760 aq_distrib_version="`rpm -q --queryformat='%{VERSION}' mandriva-release 2>/dev/null`" 21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $aq_distrib_name" >&5 21762$as_echo "yes, $aq_distrib_name" >&6; } 21763 elif test -e "/etc/mandrake-release"; then 21764 aq_distrib_name="mandrake" 21765 aq_distrib_tag="mdk" 21766 aq_distrib_version="`rpm -q --queryformat='%{VERSION}' mandrake-release 2>/dev/null`" 21767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $aq_distrib_name" >&5 21768$as_echo "yes, $aq_distrib_name" >&6; } 21769 elif test -e "/etc/SuSE-release"; then 21770 aq_distrib_name="suse" 21771 aq_distrib_tag="suse" 21772 read v1 v2 v3 v4 </etc/SuSE-release 21773 case "$v2" in 21774 *.*) 21775 aq_distrib_version=$v2 21776 ;; 21777 *) 21778 aq_distrib_version=$v3 21779 ;; 21780 esac 21781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $aq_distrib_name" >&5 21782$as_echo "yes, $aq_distrib_name" >&6; } 21783 elif test -e "/etc/fedora-release"; then 21784 aq_distrib_name="fedora" 21785 aq_distrib_tag="fc" 21786 aq_distrib_version="`rpm -q --queryformat='%{VERSION}' fedora-release 2>/dev/null`" 21787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $aq_distrib_name" >&5 21788$as_echo "yes, $aq_distrib_name" >&6; } 21789 else 21790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (RPM found, but unknown distribution)" >&5 21791$as_echo "no (RPM found, but unknown distribution)" >&6; } 21792 fi 21793 else 21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (RPM not found)" >&5 21795$as_echo "no (RPM not found)" >&6; } 21796 fi 21797 else 21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (no RPM installed)" >&5 21799$as_echo "no (no RPM installed)" >&6; } 21800 fi 21801fi 21802 21803 21804 21805 21806 21807 21808 21809 21810 21811###------------------------------------------------------------------------- 21812# 21813# check for I18N 21814# 21815 21816 21817# check whether i18n files are to be created 21818# Extract the first word of "xgettext", so it can be a program name with args. 21819set dummy xgettext; ac_word=$2 21820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21821$as_echo_n "checking for $ac_word... " >&6; } 21822if ${ac_cv_prog_XGETTEXT+:} false; then : 21823 $as_echo_n "(cached) " >&6 21824else 21825 if test -n "$XGETTEXT"; then 21826 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test. 21827else 21828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21829for as_dir in $PATH 21830do 21831 IFS=$as_save_IFS 21832 test -z "$as_dir" && as_dir=. 21833 for ac_exec_ext in '' $ac_executable_extensions; do 21834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21835 ac_cv_prog_XGETTEXT="xgettext" 21836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21837 break 2 21838 fi 21839done 21840 done 21841IFS=$as_save_IFS 21842 21843 test -z "$ac_cv_prog_XGETTEXT" && ac_cv_prog_XGETTEXT="missing" 21844fi 21845fi 21846XGETTEXT=$ac_cv_prog_XGETTEXT 21847if test -n "$XGETTEXT"; then 21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 21849$as_echo "$XGETTEXT" >&6; } 21850else 21851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21852$as_echo "no" >&6; } 21853fi 21854 21855 21856 21857MAKE_I18N_FILES="yes" 21858if test "$XGETTEXT" = "missing"; then 21859 MAKE_I18N_FILES="no" 21860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xgettext is missing. Locale suport is disabled." >&5 21861$as_echo "$as_me: WARNING: xgettext is missing. Locale suport is disabled." >&2;} 21862fi 21863 21864# Extract the first word of "msgfmt", so it can be a program name with args. 21865set dummy msgfmt; ac_word=$2 21866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21867$as_echo_n "checking for $ac_word... " >&6; } 21868if ${ac_cv_path_MSGFMT+:} false; then : 21869 $as_echo_n "(cached) " >&6 21870else 21871 case $MSGFMT in 21872 [\\/]* | ?:[\\/]*) 21873 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 21874 ;; 21875 *) 21876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21877for as_dir in $PATH 21878do 21879 IFS=$as_save_IFS 21880 test -z "$as_dir" && as_dir=. 21881 for ac_exec_ext in '' $ac_executable_extensions; do 21882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21883 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" 21884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21885 break 2 21886 fi 21887done 21888 done 21889IFS=$as_save_IFS 21890 21891 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="missing" 21892 ;; 21893esac 21894fi 21895MSGFMT=$ac_cv_path_MSGFMT 21896if test -n "$MSGFMT"; then 21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 21898$as_echo "$MSGFMT" >&6; } 21899else 21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21901$as_echo "no" >&6; } 21902fi 21903 21904 21905if test "$MSGFMT" = "missing"; then 21906 MAKE_I18N_FILES="no" 21907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: msgfmt is missing. Locale suport is disabled." >&5 21908$as_echo "$as_me: WARNING: msgfmt is missing. Locale suport is disabled." >&2;} 21909fi 21910 21911 21912 if test "$MAKE_I18N_FILES" = "yes"; then 21913 IF_MAKE_I18N_FILES_TRUE= 21914 IF_MAKE_I18N_FILES_FALSE='#' 21915else 21916 IF_MAKE_I18N_FILES_TRUE='#' 21917 IF_MAKE_I18N_FILES_FALSE= 21918fi 21919 21920 21921 21922# then check whether i18n support is to be compiled in 21923i18n_libs="" 21924HAVE_I18N="yes" 21925for ac_header in locale.h libintl.h 21926do : 21927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21928ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21929if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21930 cat >>confdefs.h <<_ACEOF 21931#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21932_ACEOF 21933 21934else 21935 HAVE_I18N="no" 21936fi 21937 21938done 21939 21940 21941if test "$OS_TYPE" != "windows"; then 21942 oldlibs="$LIBS" 21943 LIBS="" 21944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5 21945$as_echo_n "checking for library containing gettext... " >&6; } 21946if ${ac_cv_search_gettext+:} false; then : 21947 $as_echo_n "(cached) " >&6 21948else 21949 ac_func_search_save_LIBS=$LIBS 21950cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21951/* end confdefs.h. */ 21952 21953/* Override any GCC internal prototype to avoid an error. 21954 Use char because int might match the return type of a GCC 21955 builtin and then its argument prototype would still apply. */ 21956#ifdef __cplusplus 21957extern "C" 21958#endif 21959char gettext (); 21960int 21961main () 21962{ 21963return gettext (); 21964 ; 21965 return 0; 21966} 21967_ACEOF 21968for ac_lib in '' intl; do 21969 if test -z "$ac_lib"; then 21970 ac_res="none required" 21971 else 21972 ac_res=-l$ac_lib 21973 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21974 fi 21975 if ac_fn_c_try_link "$LINENO"; then : 21976 ac_cv_search_gettext=$ac_res 21977fi 21978rm -f core conftest.err conftest.$ac_objext \ 21979 conftest$ac_exeext 21980 if ${ac_cv_search_gettext+:} false; then : 21981 break 21982fi 21983done 21984if ${ac_cv_search_gettext+:} false; then : 21985 21986else 21987 ac_cv_search_gettext=no 21988fi 21989rm conftest.$ac_ext 21990LIBS=$ac_func_search_save_LIBS 21991fi 21992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5 21993$as_echo "$ac_cv_search_gettext" >&6; } 21994ac_res=$ac_cv_search_gettext 21995if test "$ac_res" != no; then : 21996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21997 21998else 21999 HAVE_I18N="no" 22000fi 22001 22002 i18n_libs="$LIBS" 22003 LIBS="$oldlibs" 22004else 22005 if test "$HAVE_I18N" != "no"; then 22006 i18n_libs="-lintl" 22007 all_libraries="${all_libraries} -lintl" 22008 fi 22009fi 22010 22011if test "$HAVE_I18N" != "no"; then 22012 22013cat >>confdefs.h <<_ACEOF 22014#define HAVE_I18N 1 22015_ACEOF 22016 22017fi 22018 22019 22020 22021 22022 22023 22024###------------------------------------------------------------------------- 22025# 22026# check for iconv 22027# 22028 22029 22030# Check whether --with-iconv was given. 22031if test "${with_iconv+set}" = set; then : 22032 withval=$with_iconv; ICONV_DIR="$withval" 22033else 22034 ICONV_DIR="/usr" 22035fi 22036 22037 22038if test "$ICONV_DIR" = "no" ; then 22039 echo Disabling ICONV support 22040else 22041 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then 22042 CPPFLAGS="${CPPFLAGS} -I$with_iconv/include" 22043 # Export this since our headers include iconv.h 22044 ICONV_INCLUDES="-I$ICONV_DIR/include" 22045 ICONV_LIBS="-L$ICONV_DIR/lib" 22046 fi 22047 22048 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" 22049if test "x$ac_cv_header_iconv_h" = xyes; then : 22050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 22051$as_echo_n "checking for iconv... " >&6; } 22052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22053/* end confdefs.h. */ 22054#include <stdlib.h> 22055#include <iconv.h> 22056int 22057main () 22058{ 22059 22060iconv_t cd = iconv_open ("",""); 22061iconv (cd, NULL, NULL, NULL, NULL); 22062 ; 22063 return 0; 22064} 22065_ACEOF 22066if ac_fn_c_try_link "$LINENO"; then : 22067 22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22069$as_echo "yes" >&6; } 22070 WITH_ICONV=1 22071else 22072 22073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22074$as_echo "no" >&6; } 22075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5 22076$as_echo_n "checking for iconv in -liconv... " >&6; } 22077 22078 _ldflags="${LDFLAGS}" 22079 _libs="${LIBS}" 22080 LDFLAGS="${LDFLAGS} ${ICONV_LIBS}" 22081 LIBS="${LIBS} -liconv" 22082 22083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22084/* end confdefs.h. */ 22085#include <stdlib.h> 22086#include <iconv.h> 22087int 22088main () 22089{ 22090 22091iconv_t cd = iconv_open ("",""); 22092iconv (cd, NULL, NULL, NULL, NULL); 22093 ; 22094 return 0; 22095} 22096_ACEOF 22097if ac_fn_c_try_link "$LINENO"; then : 22098 22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22100$as_echo "yes" >&6; } 22101 WITH_ICONV=1 22102 ICONV_LIBS="${ICONV_LIBS} -liconv" 22103 LIBS="${_libs}" 22104 LDFLAGS="${_ldflags}" 22105else 22106 22107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22108$as_echo "no" >&6; } 22109 LIBS="${_libs}" 22110 LDFLAGS="${_ldflags}" 22111fi 22112rm -f core conftest.err conftest.$ac_objext \ 22113 conftest$ac_exeext conftest.$ac_ext 22114fi 22115rm -f core conftest.err conftest.$ac_objext \ 22116 conftest$ac_exeext conftest.$ac_ext 22117fi 22118 22119 22120fi 22121 22122cat >>confdefs.h <<_ACEOF 22123#define HAVE_ICONV $WITH_ICONV 22124_ACEOF 22125 22126 22127 22128 22129 22130 22131###------------------------------------------------------------------------- 22132# 22133# guis 22134# 22135 22136 22137# Check whether --with-guis was given. 22138if test "${with_guis+set}" = set; then : 22139 withval=$with_guis; gwenhywfar_guis="$withval" 22140else 22141 gwenhywfar_guis="qt4 gtk2" 22142 22143fi 22144 22145if test "$gwenhywfar_guis" = "none"; then 22146 gwenhywfar_guis="" 22147fi 22148if test "$gwenhywfar_guis" = "yes"; then 22149 gwenhywfar_guis="" 22150fi 22151 22152 22153 22154 22155 22156###------------------------------------------------------------------------- 22157# Check for fox toolkit 22158# 22159 22160 22161case "$gwenhywfar_guis" in 22162 *fox16*) 22163 22164 22165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if FOX is allowed" >&5 22166$as_echo_n "checking if FOX is allowed... " >&6; } 22167# Check whether --enable-fox was given. 22168if test "${enable_fox+set}" = set; then : 22169 enableval=$enable_fox; enable_fox="$enableval" 22170else 22171 enable_fox="yes" 22172fi 22173 22174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fox" >&5 22175$as_echo "$enable_fox" >&6; } 22176 22177if test "$enable_fox" = "no"; then 22178 fox_libs="" 22179 fox_includes="" 22180 have_fox="no" 22181else 22182 22183 22184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fox includes" >&5 22185$as_echo_n "checking for fox includes... " >&6; } 22186 22187# Check whether --with-fox-includes was given. 22188if test "${with_fox_includes+set}" = set; then : 22189 withval=$with_fox_includes; local_fox_includes="$withval" 22190else 22191 local_fox_includes="\ 22192 /usr/include/fox-1.6 \ 22193 /usr/local/include/fox-1.6 \ 22194 /opt/fox-1.6/include \ 22195 " 22196 22197 22198fi 22199 22200 22201if test -z "$fox_includes"; then 22202 for i in $local_fox_includes; do 22203 if test -z "$fox_includes"; then 22204 if test -f "$i/fxver.h"; then 22205 fox_includes="-I$i" 22206 break; 22207 fi 22208 fi 22209 done 22210fi 22211if test -n "$fox_includes"; then 22212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fox_includes" >&5 22213$as_echo "$fox_includes" >&6; } 22214else 22215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22216$as_echo "not found" >&6; } 22217fi 22218 22219 22220# Check for x86_64 architecture; potentially set lib-directory suffix 22221if test "$target_cpu" = "x86_64"; then 22222 libdirsuffix="64" 22223else 22224 libdirsuffix="" 22225fi 22226 22227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fox libraries" >&5 22228$as_echo_n "checking for fox libraries... " >&6; } 22229 22230# Check whether --with-fox-libs was given. 22231if test "${with_fox_libs+set}" = set; then : 22232 withval=$with_fox_libs; local_fox_libs="$withval" 22233else 22234 22235 ac_ext=cpp 22236ac_cpp='$CXXCPP $CPPFLAGS' 22237ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22238ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22239ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22240 22241 SAVED_LDFLAGS=$LDFLAGS 22242 SAVED_CXXFLAGS=$CXXFLAGS 22243 LDFLAGS="$LDFLAGS -lFOX-1.6" 22244 CXXFLAGS="$CXXFLAGS $fox_includes" 22245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22246/* end confdefs.h. */ 22247#include <fx.h> 22248int 22249main () 22250{ 22251FX::FXDate dummy 22252 ; 22253 return 0; 22254} 22255_ACEOF 22256if ac_fn_cxx_try_link "$LINENO"; then : 22257 fox_libs="-lFOX-1.6" 22258fi 22259rm -f core conftest.err conftest.$ac_objext \ 22260 conftest$ac_exeext conftest.$ac_ext 22261 LDFLAGS=$SAVED_LDFLAGS 22262 CXXFLAGS=$SAVED_CXXFLAGS 22263 22264 22265fi 22266 22267 22268 22269 22270if test -z "$fox_libs"; then 22271 22272found_dir="" 22273ls=$qt_searchname 22274ld="$local_fox_libs" 22275for li in $ld; do 22276 case "$build" in 22277 *-win32*) fname="$li\\$ls" ;; 22278 *) fname="$li/$ls" ;; 22279 esac 22280 22281 if test -r "$fname"; then 22282 found_dir="$li" 22283 break 22284 fi 22285done 22286 22287 if test -n "$found_dir" ; then 22288 fox_libs="-L$found_dir -lFOX-1.6" 22289 fi 22290fi 22291 22292if test -n "$fox_libs"; then 22293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fox_libs" >&5 22294$as_echo "$fox_libs" >&6; } 22295else 22296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22297$as_echo "not found" >&6; } 22298fi 22299 22300 22301# check if all necessary fox components where found 22302if test -z "$fox_includes" || \ 22303 test -z "$fox_libs"; then 22304 fox_libs="" 22305 fox_includes="" 22306 have_fox="no" 22307else 22308 have_fox="yes" 22309 22310$as_echo "#define HAVE_FOX 1" >>confdefs.h 22311 22312fi 22313 22314 22315fi 22316 22317 22318 GIVEN_CFLAGS=$fox_includes 22319 INCLUDE_DIRS=`echo | ${CPP} -v 2>&1` 22320 22321 INCLUDE_DIRS=`echo $INCLUDE_DIRS | sed -e 's/.*<...> search starts here://' | sed -e 's/End of search list.*//'` 22322 for dir in $INCLUDE_DIRS; do 22323 GIVEN_CFLAGS=$(echo $GIVEN_CFLAGS | sed -e 's;-I$dir ;;' | sed -e 's;-I$dir$;;') 22324 done 22325 fox_includes=$GIVEN_CFLAGS 22326 22327 22328 22329 22330 22331 if test "$have_fox" != "yes"; then 22332 as_fn_error $? " 22333**** FOX Toolkit missing. 22334**** If you want to use the FOX-GUI you will have to install the package 22335**** libfox-1.6 and libfox-1.6-devel on Debian-like systems. 22336**** On RPM systems like SuSE those packages might have different names. 22337**** If you don't need the FOX-GUI you might want to use the option 22338**** --with-guis" "$LINENO" 5 22339 fi 22340 22341$as_echo "#define BUILD_GUI_FOX16 1" >>confdefs.h 22342 22343 with_gui_fox16="yes" 22344 ;; 22345esac 22346 22347 22348 if test "$with_gui_fox16" = "yes"; then 22349 WITH_GUI_FOX16_TRUE= 22350 WITH_GUI_FOX16_FALSE='#' 22351else 22352 WITH_GUI_FOX16_TRUE='#' 22353 WITH_GUI_FOX16_FALSE= 22354fi 22355 22356 22357 22358 22359###------------------------------------------------------------------------- 22360# Check for GTK+ 22361# 22362 22363 22364case "$gwenhywfar_guis" in 22365 *gtk2*) 22366 # We need at least GTK 2.17.5 because we use functions like 22367 # gtk_widget_get_sensitive() and gtk_widget_has_focus() 22368 pkg_modules="gtk+-2.0 >= 2.17.5" 22369 22370pkg_failed=no 22371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5 22372$as_echo_n "checking for GTK2... " >&6; } 22373 22374if test -n "$GTK2_CFLAGS"; then 22375 pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS" 22376 elif test -n "$PKG_CONFIG"; then 22377 if test -n "$PKG_CONFIG" && \ 22378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5 22379 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 22380 ac_status=$? 22381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22382 test $ac_status = 0; }; then 22383 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null` 22384 test "x$?" != "x0" && pkg_failed=yes 22385else 22386 pkg_failed=yes 22387fi 22388 else 22389 pkg_failed=untried 22390fi 22391if test -n "$GTK2_LIBS"; then 22392 pkg_cv_GTK2_LIBS="$GTK2_LIBS" 22393 elif test -n "$PKG_CONFIG"; then 22394 if test -n "$PKG_CONFIG" && \ 22395 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5 22396 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 22397 ac_status=$? 22398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22399 test $ac_status = 0; }; then 22400 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null` 22401 test "x$?" != "x0" && pkg_failed=yes 22402else 22403 pkg_failed=yes 22404fi 22405 else 22406 pkg_failed=untried 22407fi 22408 22409 22410 22411if test $pkg_failed = yes; then 22412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22413$as_echo "no" >&6; } 22414 22415if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22416 _pkg_short_errors_supported=yes 22417else 22418 _pkg_short_errors_supported=no 22419fi 22420 if test $_pkg_short_errors_supported = yes; then 22421 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$pkg_modules" 2>&1` 22422 else 22423 GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$pkg_modules" 2>&1` 22424 fi 22425 # Put the nasty error message in config.log where it belongs 22426 echo "$GTK2_PKG_ERRORS" >&5 22427 22428 true 22429elif test $pkg_failed = untried; then 22430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22431$as_echo "no" >&6; } 22432 true 22433else 22434 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS 22435 GTK2_LIBS=$pkg_cv_GTK2_LIBS 22436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22437$as_echo "yes" >&6; } 22438 22439fi 22440 22441$as_echo "#define BUILD_GUI_GTK2 1" >>confdefs.h 22442 22443 with_gui_gtk2="yes" 22444 ;; 22445esac 22446 22447 22448 if test "$with_gui_gtk2" = "yes"; then 22449 WITH_GUI_GTK2_TRUE= 22450 WITH_GUI_GTK2_FALSE='#' 22451else 22452 WITH_GUI_GTK2_TRUE='#' 22453 WITH_GUI_GTK2_FALSE= 22454fi 22455 22456 22457###------------------------------------------------------------------------- 22458# Check for GTK+ 22459# 22460 22461 22462case "$gwenhywfar_guis" in 22463 *gtk3*) 22464 # Minimum required gtk3 version 22465 pkg_modules="gtk+-3.0 >= 3.10.8" 22466 22467pkg_failed=no 22468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK3" >&5 22469$as_echo_n "checking for GTK3... " >&6; } 22470 22471if test -n "$GTK3_CFLAGS"; then 22472 pkg_cv_GTK3_CFLAGS="$GTK3_CFLAGS" 22473 elif test -n "$PKG_CONFIG"; then 22474 if test -n "$PKG_CONFIG" && \ 22475 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5 22476 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 22477 ac_status=$? 22478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22479 test $ac_status = 0; }; then 22480 pkg_cv_GTK3_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null` 22481 test "x$?" != "x0" && pkg_failed=yes 22482else 22483 pkg_failed=yes 22484fi 22485 else 22486 pkg_failed=untried 22487fi 22488if test -n "$GTK3_LIBS"; then 22489 pkg_cv_GTK3_LIBS="$GTK3_LIBS" 22490 elif test -n "$PKG_CONFIG"; then 22491 if test -n "$PKG_CONFIG" && \ 22492 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5 22493 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 22494 ac_status=$? 22495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22496 test $ac_status = 0; }; then 22497 pkg_cv_GTK3_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null` 22498 test "x$?" != "x0" && pkg_failed=yes 22499else 22500 pkg_failed=yes 22501fi 22502 else 22503 pkg_failed=untried 22504fi 22505 22506 22507 22508if test $pkg_failed = yes; then 22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22510$as_echo "no" >&6; } 22511 22512if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22513 _pkg_short_errors_supported=yes 22514else 22515 _pkg_short_errors_supported=no 22516fi 22517 if test $_pkg_short_errors_supported = yes; then 22518 GTK3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$pkg_modules" 2>&1` 22519 else 22520 GTK3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$pkg_modules" 2>&1` 22521 fi 22522 # Put the nasty error message in config.log where it belongs 22523 echo "$GTK3_PKG_ERRORS" >&5 22524 22525 as_fn_error $? "Package requirements ($pkg_modules) were not met: 22526 22527$GTK3_PKG_ERRORS 22528 22529Consider adjusting the PKG_CONFIG_PATH environment variable if you 22530installed software in a non-standard prefix. 22531 22532Alternatively, you may set the environment variables GTK3_CFLAGS 22533and GTK3_LIBS to avoid the need to call pkg-config. 22534See the pkg-config man page for more details." "$LINENO" 5 22535elif test $pkg_failed = untried; then 22536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22537$as_echo "no" >&6; } 22538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22540as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 22541is in your PATH or set the PKG_CONFIG environment variable to the full 22542path to pkg-config. 22543 22544Alternatively, you may set the environment variables GTK3_CFLAGS 22545and GTK3_LIBS to avoid the need to call pkg-config. 22546See the pkg-config man page for more details. 22547 22548To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22549See \`config.log' for more details" "$LINENO" 5; } 22550else 22551 GTK3_CFLAGS=$pkg_cv_GTK3_CFLAGS 22552 GTK3_LIBS=$pkg_cv_GTK3_LIBS 22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22554$as_echo "yes" >&6; } 22555 22556fi 22557 22558$as_echo "#define BUILD_GUI_GTK3 1" >>confdefs.h 22559 22560 with_gui_gtk3="yes" 22561 ;; 22562esac 22563 22564 22565 if test "$with_gui_gtk3" = "yes"; then 22566 WITH_GUI_GTK3_TRUE= 22567 WITH_GUI_GTK3_FALSE='#' 22568else 22569 WITH_GUI_GTK3_TRUE='#' 22570 WITH_GUI_GTK3_FALSE= 22571fi 22572 22573 22574 22575 22576###------------------------------------------------------------------------- 22577# 22578# check whether libXML2 code is to be compiled 22579# 22580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libXML2-depending code" >&5 22581$as_echo_n "checking libXML2-depending code... " >&6; } 22582 22583# Check whether --with-libxml2-code was given. 22584if test "${with_libxml2_code+set}" = set; then : 22585 withval=$with_libxml2_code; gwen_with_libxml2_code="$withval" 22586else 22587 gwen_with_libxml2_code="no" 22588fi 22589 22590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gwen_with_libxml2_code" >&5 22591$as_echo "$gwen_with_libxml2_code" >&6; } 22592 if test "$gwen_with_libxml2_code" = "yes"; then 22593 WITH_LIBXML2_CODE_TRUE= 22594 WITH_LIBXML2_CODE_FALSE='#' 22595else 22596 WITH_LIBXML2_CODE_TRUE='#' 22597 WITH_LIBXML2_CODE_FALSE= 22598fi 22599 22600 22601 22602 22603###------------------------------------------------------------------------- 22604# 22605# Check for libxml 22606# 22607if test "$gwen_with_libxml2_code" = "yes"; then 22608 22609$as_echo "#define GWEN_COMPILE_LIBXML2_CODE 1" >>confdefs.h 22610 22611 22612pkg_failed=no 22613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML" >&5 22614$as_echo_n "checking for LIBXML... " >&6; } 22615 22616if test -n "$LIBXML_CFLAGS"; then 22617 pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" 22618 elif test -n "$PKG_CONFIG"; then 22619 if test -n "$PKG_CONFIG" && \ 22620 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 22621 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 22622 ac_status=$? 22623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22624 test $ac_status = 0; }; then 22625 pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` 22626 test "x$?" != "x0" && pkg_failed=yes 22627else 22628 pkg_failed=yes 22629fi 22630 else 22631 pkg_failed=untried 22632fi 22633if test -n "$LIBXML_LIBS"; then 22634 pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" 22635 elif test -n "$PKG_CONFIG"; then 22636 if test -n "$PKG_CONFIG" && \ 22637 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 22638 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 22639 ac_status=$? 22640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22641 test $ac_status = 0; }; then 22642 pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` 22643 test "x$?" != "x0" && pkg_failed=yes 22644else 22645 pkg_failed=yes 22646fi 22647 else 22648 pkg_failed=untried 22649fi 22650 22651 22652 22653if test $pkg_failed = yes; then 22654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22655$as_echo "no" >&6; } 22656 22657if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22658 _pkg_short_errors_supported=yes 22659else 22660 _pkg_short_errors_supported=no 22661fi 22662 if test $_pkg_short_errors_supported = yes; then 22663 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1` 22664 else 22665 LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1` 22666 fi 22667 # Put the nasty error message in config.log where it belongs 22668 echo "$LIBXML_PKG_ERRORS" >&5 22669 22670 as_fn_error $? "Package requirements (libxml-2.0) were not met: 22671 22672$LIBXML_PKG_ERRORS 22673 22674Consider adjusting the PKG_CONFIG_PATH environment variable if you 22675installed software in a non-standard prefix. 22676 22677Alternatively, you may set the environment variables LIBXML_CFLAGS 22678and LIBXML_LIBS to avoid the need to call pkg-config. 22679See the pkg-config man page for more details." "$LINENO" 5 22680elif test $pkg_failed = untried; then 22681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22682$as_echo "no" >&6; } 22683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22685as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 22686is in your PATH or set the PKG_CONFIG environment variable to the full 22687path to pkg-config. 22688 22689Alternatively, you may set the environment variables LIBXML_CFLAGS 22690and LIBXML_LIBS to avoid the need to call pkg-config. 22691See the pkg-config man page for more details. 22692 22693To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22694See \`config.log' for more details" "$LINENO" 5; } 22695else 22696 LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS 22697 LIBXML_LIBS=$pkg_cv_LIBXML_LIBS 22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22699$as_echo "yes" >&6; } 22700 22701fi 22702fi 22703 22704 22705 22706###------------------------------------------------------------------------- 22707# 22708# QT4 22709# 22710 22711UIC4="NO" 22712QT4_BINDIR="" 22713 22714case "$gwenhywfar_guis" in 22715 *qt4*) 22716 22717 22718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt4 includes" >&5 22719$as_echo_n "checking for qt4 includes... " >&6; } 22720 22721# Check whether --with-qt4-includes was given. 22722if test "${with_qt4_includes+set}" = set; then : 22723 withval=$with_qt4_includes; local_qt4_includes="$withval" 22724else 22725 local_qt4_includes="\ 22726 $QTDIR/include \ 22727 /usr/include/qt4 \ 22728 /usr/local/include/qt4 \ 22729 /usr/lib/qt4/include \ 22730 /usr/local/lib/qt4/include \ 22731 /opt/qt4/include \ 22732 /usr/include/qt \ 22733 /usr/local/include/qt \ 22734 /usr/lib/qt/include \ 22735 /usr/local/lib/qt/include \ 22736 /usr/include \ 22737 /usr/local/include \ 22738 /opt/qt/include \ 22739 /usr/X11R6/include \ 22740 " 22741 22742 22743fi 22744 22745 22746if test -z "$qt4_includes"; then 22747 for i in $local_qt4_includes; do 22748 if test -z "$qt4_includes"; then 22749 qglobalh_paths="Qt QtCore" 22750 for q in $qglobalh_paths; do 22751 if test -f "$i/$q/qglobal.h"; then 22752 lv1=`grep -h "#define QT_VERSION_STR" $i/$q/qglobal.h` 22753 case $lv1 in 22754 *4.*) 22755 qt4_includes="-I$i -I$i/Qt -I$i/QtCore -I$i/QtGui" 22756 qt4_dir=`echo $i | ${SED} 's-/include.*--'` 22757 break; 22758 ;; 22759 esac 22760 fi 22761 done 22762 fi 22763 done 22764fi 22765if test -n "$qt4_includes"; then 22766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qt4_includes" >&5 22767$as_echo "$qt4_includes" >&6; } 22768else 22769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22770$as_echo "not found" >&6; } 22771fi 22772 22773 22774 22775# Check for x86_64 architecture; potentially set lib-directory suffix 22776if test "$target_cpu" = "x86_64"; then 22777 libdirsuffix="64" 22778else 22779 libdirsuffix="" 22780fi 22781 22782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt4 libraries" >&5 22783$as_echo_n "checking for qt4 libraries... " >&6; } 22784 22785# Check whether --with-qt4-libs was given. 22786if test "${with_qt4_libs+set}" = set; then : 22787 withval=$with_qt4_libs; local_qt4_libs="$withval" 22788else 22789 local_qt4_libs="\ 22790 $qt4_dir/lib${libdirsuffix} \ 22791 $QTDIR/lib${libdirsuffix} \ 22792 $DEBIAN_MULTIARCH_DIRS \ 22793 /usr/lib/qt4 \ 22794 /usr/local/lib/qt4 \ 22795 /usr/lib/qt4/lib${libdirsuffix} \ 22796 /usr/local/lib/qt4/lib${libdirsuffix} \ 22797 /opt/qt4/lib${libdirsuffix} \ 22798 /usr/lib/qt \ 22799 /usr/local/lib/qt \ 22800 /usr/lib/qt/lib${libdirsuffix} \ 22801 /usr/local/lib/qt/lib${libdirsuffix} \ 22802 /usr/lib${libdirsuffix} \ 22803 /usr/lib${libdirsuffix}/qt4/lib \ 22804 /usr/lib${libdirsuffix}/qt-4.5/lib \ 22805 /usr/lib${libdirsuffix}/qt-4.6/lib \ 22806 /usr/local/lib${libdirsuffix} \ 22807 /opt/qt/lib${libdirsuffix} \ 22808 /usr/X11R6/lib${libdirsuffix} \ 22809 " 22810 22811 22812fi 22813 22814 22815# Determine the extension of a shared library; the variable 22816# std_shrext comes from the AC_PROG_LIBTOOL macro. Copied from 22817# libtool. 22818 22819# Shared library suffix. On linux this was set as 22820# shrext_cmds='.so'; but on darwin it is actually a text command. 22821eval std_shrext=\"$shrext_cmds\" 22822if test -z "${std_shrext}"; then 22823 std_shrext='.so' 22824fi 22825 22826qt_libname="QtGui" 22827 22828# This is the name of the qt library to search for. 22829if test "x$OSYSTEM" = "xosx"; then 22830 qt_searchname="lib${qt_libname}.4.dylib" 22831elif test "x$host" = "xi686-w64-mingw32" || test "x$host" = "xx86_64-w64-mingw32"; then 22832 qt_searchname="lib${qt_libname}4${std_shrext}.a" 22833else 22834 qt_searchname="lib${qt_libname}${std_shrext}.4" 22835fi 22836 22837 22838if test -z "$qt4_libs"; then 22839 22840found_dir="" 22841ls=$qt_searchname 22842ld="$local_qt4_libs" 22843for li in $ld; do 22844 case "$build" in 22845 *-win32*) fname="$li\\$ls" ;; 22846 *) fname="$li/$ls" ;; 22847 esac 22848 22849 if test -r "$fname"; then 22850 found_dir="$li" 22851 break 22852 fi 22853done 22854 22855 if test -n "$found_dir" ; then 22856 if test "x$host" = "xi686-w64-mingw32" || test "x$host" = "xx86_64-w64-mingw32"; then 22857 qt4_libs="-L$found_dir -l${qt_libname}4 -lQtCore4 -no-undefined" 22858 else 22859 qt4_libs="-L$found_dir -l${qt_libname} -lQtCore" 22860 fi 22861 fi 22862fi 22863 22864if test -n "$qt4_libs"; then 22865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qt4_libs" >&5 22866$as_echo "$qt4_libs" >&6; } 22867else 22868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22869$as_echo "not found" >&6; } 22870fi 22871 22872 22873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt4 moc" >&5 22874$as_echo_n "checking for qt4 moc... " >&6; } 22875if test -z "$qt4_moc"; then 22876 22877# Check whether --with-qt4-moc was given. 22878if test "${with_qt4_moc+set}" = set; then : 22879 withval=$with_qt4_moc; qt4_moc="$withval" 22880else 22881 qt4_moc="" 22882 22883fi 22884 22885fi 22886 22887if test -z "$qt4_moc"; then 22888 searchdir="\ 22889 $qt4_dir/bin \ 22890 $QTDIR/bin \ 22891 /usr/lib/qt4/bin \ 22892 /usr/local/lib/qt4/bin \ 22893 /opt/qt4/bin \ 22894 /usr/lib/qt/bin \ 22895 /usr/local/lib/qt/bin \ 22896 /usr/bin \ 22897 /usr/local/bin \ 22898 /opt/qt/bin \ 22899 /usr/X11R6/bin \ 22900 " 22901 22902# search for "moc-qt4" 22903 for f in $searchdir; do 22904 if test -x $f/moc-qt4; then 22905 qt4_moc="$f/moc-qt4" 22906 break 22907 fi 22908 done 22909 22910# fall back to "moc" 22911 if test -z "$qt4_moc"; then 22912 for f in $searchdir; do 22913 if test -x $f/moc; then 22914 qt4_moc="$f/moc" 22915 break 22916 fi 22917 done 22918 fi 22919fi 22920 22921if test -n "$qt4_moc"; then 22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qt4_moc" >&5 22923$as_echo "$qt4_moc" >&6; } 22924else 22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22926$as_echo "not found" >&6; } 22927fi 22928 22929 22930 22931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt4 uic" >&5 22932$as_echo_n "checking for qt4 uic... " >&6; } 22933if test -z "$qt4_uic"; then 22934 22935# Check whether --with-qt4-uic was given. 22936if test "${with_qt4_uic+set}" = set; then : 22937 withval=$with_qt4_uic; qt4_uic="$withval" 22938else 22939 qt4_uic="" 22940 22941fi 22942 22943 22944 searchdir="\ 22945 $qt4_dir/bin \ 22946 $QTDIR/bin \ 22947 /usr/lib/qt4/bin \ 22948 /usr/local/lib/qt4/bin \ 22949 /opt/qt4/bin \ 22950 /usr/lib/qt/bin \ 22951 /usr/local/lib/qt/bin \ 22952 /usr/bin \ 22953 /usr/local/bin \ 22954 /opt/qt/bin \ 22955 /usr/X11R6/bin \ 22956 " 22957 22958# search for "uic-qt4" 22959 for f in $searchdir; do 22960 if test -x $f/uic-qt4; then 22961 qt4_uic="$f/uic-qt4" 22962 break 22963 fi 22964 done 22965 22966# fall back to "uic" 22967 if test -z "$qt4_uic"; then 22968 for f in $searchdir; do 22969 if test -x $f/uic; then 22970 qt4_uic="$f/uic" 22971 break 22972 fi 22973 done 22974 fi 22975fi 22976 22977if test -n "$qt4_uic"; then 22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qt4_uic" >&5 22979$as_echo "$qt4_uic" >&6; } 22980else 22981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22982$as_echo "not found" >&6; } 22983fi 22984 22985 22986 22987# check if all necessary qt4 components where found 22988if test -z "$qt4_includes" || \ 22989 test -z "$qt4_moc" || \ 22990 test -z "$qt4_uic" || \ 22991 test -z "$qt4_libs"; then 22992 qt4_libs="" 22993 qt4_moc="" 22994 qt4_uic="" 22995 qt4_includes="" 22996 have_qt4="no" 22997 as_fn_error $? " 22998 Compilation of QT applications is enabled but I could not find some Qt 22999 components (see which are missing in messages above). 23000 If you don't want to compile Qt4 applications please explicitly specify 23001 which GUIs you want to support using \"--with-guis\". 23002 " "$LINENO" 5 23003else 23004 have_qt4="yes" 23005 23006$as_echo "#define HAVE_QT4 1" >>confdefs.h 23007 23008fi 23009 23010 23011 23012 GIVEN_CFLAGS=$qt4_includes 23013 INCLUDE_DIRS=`echo | ${CPP} -v 2>&1` 23014 23015 INCLUDE_DIRS=`echo $INCLUDE_DIRS | sed -e 's/.*<...> search starts here://' | sed -e 's/End of search list.*//'` 23016 for dir in $INCLUDE_DIRS; do 23017 GIVEN_CFLAGS=$(echo $GIVEN_CFLAGS | sed -e 's;-I$dir ;;' | sed -e 's;-I$dir$;;') 23018 done 23019 qt4_includes=$GIVEN_CFLAGS 23020 23021 23022 23023 23024 23025 23026 23027 if test "$have_qt4" = "yes"; then 23028 # Define this macro to disable the cast from QString to const char 23029 # which implicitly uses latin1()! 23030 23031$as_echo "#define QT_NO_ASCII_CAST 1" >>confdefs.h 23032 23033 fi 23034 23035 # Extract the first word of "yes", so it can be a program name with args. 23036set dummy yes; ac_word=$2 23037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23038$as_echo_n "checking for $ac_word... " >&6; } 23039if ${ac_cv_prog_YES+:} false; then : 23040 $as_echo_n "(cached) " >&6 23041else 23042 if test -n "$YES"; then 23043 ac_cv_prog_YES="$YES" # Let the user override the test. 23044else 23045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23046for as_dir in $PATH 23047do 23048 IFS=$as_save_IFS 23049 test -z "$as_dir" && as_dir=. 23050 for ac_exec_ext in '' $ac_executable_extensions; do 23051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23052 ac_cv_prog_YES="yes" 23053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23054 break 2 23055 fi 23056done 23057 done 23058IFS=$as_save_IFS 23059 23060 test -z "$ac_cv_prog_YES" && ac_cv_prog_YES="echo -e 'y\ny\ny\ny\n'" 23061fi 23062fi 23063YES=$ac_cv_prog_YES 23064if test -n "$YES"; then 23065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YES" >&5 23066$as_echo "$YES" >&6; } 23067else 23068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23069$as_echo "no" >&6; } 23070fi 23071 23072 23073 23074 QT4_BINDIR="` echo ${qt4_moc} | ${SED} 's-/moc--' | ${SED} 's-/c/-c:\\\\-' | ${SED} 's-/-\\\\-g' `" 23075 UIC4="${qt4_uic}" 23076 23077 23078$as_echo "#define BUILD_GUI_QT4 1" >>confdefs.h 23079 23080 with_gui_qt4="yes" 23081 ;; 23082 *) 23083 ;; 23084esac 23085 23086 23087 23088 if test "$with_gui_qt4" = "yes"; then 23089 WITH_GUI_QT4_TRUE= 23090 WITH_GUI_QT4_FALSE='#' 23091else 23092 WITH_GUI_QT4_TRUE='#' 23093 WITH_GUI_QT4_FALSE= 23094fi 23095 23096 23097 23098 23099###------------------------------------------------------------------------- 23100# 23101# QT5 23102# 23103 23104case "$gwenhywfar_guis" in 23105 *qt5*) 23106 23107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 23108$as_echo_n "checking for X... " >&6; } 23109 23110 23111# Check whether --with-x was given. 23112if test "${with_x+set}" = set; then : 23113 withval=$with_x; 23114fi 23115 23116# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 23117if test "x$with_x" = xno; then 23118 # The user explicitly disabled X. 23119 have_x=disabled 23120else 23121 case $x_includes,$x_libraries in #( 23122 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 23123 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 23124 $as_echo_n "(cached) " >&6 23125else 23126 # One or both of the vars are not set, and there is no cached value. 23127ac_x_includes=no ac_x_libraries=no 23128rm -f -r conftest.dir 23129if mkdir conftest.dir; then 23130 cd conftest.dir 23131 cat >Imakefile <<'_ACEOF' 23132incroot: 23133 @echo incroot='${INCROOT}' 23134usrlibdir: 23135 @echo usrlibdir='${USRLIBDIR}' 23136libdir: 23137 @echo libdir='${LIBDIR}' 23138_ACEOF 23139 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 23140 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 23141 for ac_var in incroot usrlibdir libdir; do 23142 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 23143 done 23144 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 23145 for ac_extension in a so sl dylib la dll; do 23146 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 23147 test -f "$ac_im_libdir/libX11.$ac_extension"; then 23148 ac_im_usrlibdir=$ac_im_libdir; break 23149 fi 23150 done 23151 # Screen out bogus values from the imake configuration. They are 23152 # bogus both because they are the default anyway, and because 23153 # using them would break gcc on systems where it needs fixed includes. 23154 case $ac_im_incroot in 23155 /usr/include) ac_x_includes= ;; 23156 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 23157 esac 23158 case $ac_im_usrlibdir in 23159 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 23160 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 23161 esac 23162 fi 23163 cd .. 23164 rm -f -r conftest.dir 23165fi 23166 23167# Standard set of common directories for X headers. 23168# Check X11 before X11Rn because it is often a symlink to the current release. 23169ac_x_header_dirs=' 23170/usr/X11/include 23171/usr/X11R7/include 23172/usr/X11R6/include 23173/usr/X11R5/include 23174/usr/X11R4/include 23175 23176/usr/include/X11 23177/usr/include/X11R7 23178/usr/include/X11R6 23179/usr/include/X11R5 23180/usr/include/X11R4 23181 23182/usr/local/X11/include 23183/usr/local/X11R7/include 23184/usr/local/X11R6/include 23185/usr/local/X11R5/include 23186/usr/local/X11R4/include 23187 23188/usr/local/include/X11 23189/usr/local/include/X11R7 23190/usr/local/include/X11R6 23191/usr/local/include/X11R5 23192/usr/local/include/X11R4 23193 23194/usr/X386/include 23195/usr/x386/include 23196/usr/XFree86/include/X11 23197 23198/usr/include 23199/usr/local/include 23200/usr/unsupported/include 23201/usr/athena/include 23202/usr/local/x11r5/include 23203/usr/lpp/Xamples/include 23204 23205/usr/openwin/include 23206/usr/openwin/share/include' 23207 23208if test "$ac_x_includes" = no; then 23209 # Guess where to find include files, by looking for Xlib.h. 23210 # First, try using that file with no special directory specified. 23211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23212/* end confdefs.h. */ 23213#include <X11/Xlib.h> 23214_ACEOF 23215if ac_fn_cxx_try_cpp "$LINENO"; then : 23216 # We can compile using X headers with no special include directory. 23217ac_x_includes= 23218else 23219 for ac_dir in $ac_x_header_dirs; do 23220 if test -r "$ac_dir/X11/Xlib.h"; then 23221 ac_x_includes=$ac_dir 23222 break 23223 fi 23224done 23225fi 23226rm -f conftest.err conftest.i conftest.$ac_ext 23227fi # $ac_x_includes = no 23228 23229if test "$ac_x_libraries" = no; then 23230 # Check for the libraries. 23231 # See if we find them without any special options. 23232 # Don't add to $LIBS permanently. 23233 ac_save_LIBS=$LIBS 23234 LIBS="-lX11 $LIBS" 23235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23236/* end confdefs.h. */ 23237#include <X11/Xlib.h> 23238int 23239main () 23240{ 23241XrmInitialize () 23242 ; 23243 return 0; 23244} 23245_ACEOF 23246if ac_fn_cxx_try_link "$LINENO"; then : 23247 LIBS=$ac_save_LIBS 23248# We can link X programs with no special library path. 23249ac_x_libraries= 23250else 23251 LIBS=$ac_save_LIBS 23252for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 23253do 23254 # Don't even attempt the hair of trying to link an X program! 23255 for ac_extension in a so sl dylib la dll; do 23256 if test -r "$ac_dir/libX11.$ac_extension"; then 23257 ac_x_libraries=$ac_dir 23258 break 2 23259 fi 23260 done 23261done 23262fi 23263rm -f core conftest.err conftest.$ac_objext \ 23264 conftest$ac_exeext conftest.$ac_ext 23265fi # $ac_x_libraries = no 23266 23267case $ac_x_includes,$ac_x_libraries in #( 23268 no,* | *,no | *\'*) 23269 # Didn't find X, or a directory has "'" in its name. 23270 ac_cv_have_x="have_x=no";; #( 23271 *) 23272 # Record where we found X for the cache. 23273 ac_cv_have_x="have_x=yes\ 23274 ac_x_includes='$ac_x_includes'\ 23275 ac_x_libraries='$ac_x_libraries'" 23276esac 23277fi 23278;; #( 23279 *) have_x=yes;; 23280 esac 23281 eval "$ac_cv_have_x" 23282fi # $with_x != no 23283 23284if test "$have_x" != yes; then 23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 23286$as_echo "$have_x" >&6; } 23287 no_x=yes 23288else 23289 # If each of the values was on the command line, it overrides each guess. 23290 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 23291 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 23292 # Update the cache value to reflect the command line values. 23293 ac_cv_have_x="have_x=yes\ 23294 ac_x_includes='$x_includes'\ 23295 ac_x_libraries='$x_libraries'" 23296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 23297$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 23298fi 23299 23300if test "$no_x" = yes; then 23301 # Not all programs may use this symbol, but it does not hurt to define it. 23302 23303$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 23304 23305 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 23306else 23307 if test -n "$x_includes"; then 23308 X_CFLAGS="$X_CFLAGS -I$x_includes" 23309 fi 23310 23311 # It would also be nice to do this for all -L options, not just this one. 23312 if test -n "$x_libraries"; then 23313 X_LIBS="$X_LIBS -L$x_libraries" 23314 # For Solaris; some versions of Sun CC require a space after -R and 23315 # others require no space. Words are not sufficient . . . . 23316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 23317$as_echo_n "checking whether -R must be followed by a space... " >&6; } 23318 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 23319 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 23320 ac_cxx_werror_flag=yes 23321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23322/* end confdefs.h. */ 23323 23324int 23325main () 23326{ 23327 23328 ; 23329 return 0; 23330} 23331_ACEOF 23332if ac_fn_cxx_try_link "$LINENO"; then : 23333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23334$as_echo "no" >&6; } 23335 X_LIBS="$X_LIBS -R$x_libraries" 23336else 23337 LIBS="$ac_xsave_LIBS -R $x_libraries" 23338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23339/* end confdefs.h. */ 23340 23341int 23342main () 23343{ 23344 23345 ; 23346 return 0; 23347} 23348_ACEOF 23349if ac_fn_cxx_try_link "$LINENO"; then : 23350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23351$as_echo "yes" >&6; } 23352 X_LIBS="$X_LIBS -R $x_libraries" 23353else 23354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 23355$as_echo "neither works" >&6; } 23356fi 23357rm -f core conftest.err conftest.$ac_objext \ 23358 conftest$ac_exeext conftest.$ac_ext 23359fi 23360rm -f core conftest.err conftest.$ac_objext \ 23361 conftest$ac_exeext conftest.$ac_ext 23362 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 23363 LIBS=$ac_xsave_LIBS 23364 fi 23365 23366 # Check for system-dependent libraries X programs must link with. 23367 # Do this before checking for the system-independent R6 libraries 23368 # (-lICE), since we may need -lsocket or whatever for X linking. 23369 23370 if test "$ISC" = yes; then 23371 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 23372 else 23373 # Martyn Johnson says this is needed for Ultrix, if the X 23374 # libraries were built with DECnet support. And Karl Berry says 23375 # the Alpha needs dnet_stub (dnet does not exist). 23376 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 23377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23378/* end confdefs.h. */ 23379 23380/* Override any GCC internal prototype to avoid an error. 23381 Use char because int might match the return type of a GCC 23382 builtin and then its argument prototype would still apply. */ 23383#ifdef __cplusplus 23384extern "C" 23385#endif 23386char XOpenDisplay (); 23387int 23388main () 23389{ 23390return XOpenDisplay (); 23391 ; 23392 return 0; 23393} 23394_ACEOF 23395if ac_fn_cxx_try_link "$LINENO"; then : 23396 23397else 23398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 23399$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 23400if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 23401 $as_echo_n "(cached) " >&6 23402else 23403 ac_check_lib_save_LIBS=$LIBS 23404LIBS="-ldnet $LIBS" 23405cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23406/* end confdefs.h. */ 23407 23408/* Override any GCC internal prototype to avoid an error. 23409 Use char because int might match the return type of a GCC 23410 builtin and then its argument prototype would still apply. */ 23411#ifdef __cplusplus 23412extern "C" 23413#endif 23414char dnet_ntoa (); 23415int 23416main () 23417{ 23418return dnet_ntoa (); 23419 ; 23420 return 0; 23421} 23422_ACEOF 23423if ac_fn_cxx_try_link "$LINENO"; then : 23424 ac_cv_lib_dnet_dnet_ntoa=yes 23425else 23426 ac_cv_lib_dnet_dnet_ntoa=no 23427fi 23428rm -f core conftest.err conftest.$ac_objext \ 23429 conftest$ac_exeext conftest.$ac_ext 23430LIBS=$ac_check_lib_save_LIBS 23431fi 23432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 23433$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 23434if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 23435 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 23436fi 23437 23438 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 23439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 23440$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 23441if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 23442 $as_echo_n "(cached) " >&6 23443else 23444 ac_check_lib_save_LIBS=$LIBS 23445LIBS="-ldnet_stub $LIBS" 23446cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23447/* end confdefs.h. */ 23448 23449/* Override any GCC internal prototype to avoid an error. 23450 Use char because int might match the return type of a GCC 23451 builtin and then its argument prototype would still apply. */ 23452#ifdef __cplusplus 23453extern "C" 23454#endif 23455char dnet_ntoa (); 23456int 23457main () 23458{ 23459return dnet_ntoa (); 23460 ; 23461 return 0; 23462} 23463_ACEOF 23464if ac_fn_cxx_try_link "$LINENO"; then : 23465 ac_cv_lib_dnet_stub_dnet_ntoa=yes 23466else 23467 ac_cv_lib_dnet_stub_dnet_ntoa=no 23468fi 23469rm -f core conftest.err conftest.$ac_objext \ 23470 conftest$ac_exeext conftest.$ac_ext 23471LIBS=$ac_check_lib_save_LIBS 23472fi 23473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 23474$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 23475if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 23476 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 23477fi 23478 23479 fi 23480fi 23481rm -f core conftest.err conftest.$ac_objext \ 23482 conftest$ac_exeext conftest.$ac_ext 23483 LIBS="$ac_xsave_LIBS" 23484 23485 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 23486 # to get the SysV transport functions. 23487 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 23488 # needs -lnsl. 23489 # The nsl library prevents programs from opening the X display 23490 # on Irix 5.2, according to T.E. Dickey. 23491 # The functions gethostbyname, getservbyname, and inet_addr are 23492 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 23493 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 23494if test "x$ac_cv_func_gethostbyname" = xyes; then : 23495 23496fi 23497 23498 if test $ac_cv_func_gethostbyname = no; then 23499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 23500$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 23501if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 23502 $as_echo_n "(cached) " >&6 23503else 23504 ac_check_lib_save_LIBS=$LIBS 23505LIBS="-lnsl $LIBS" 23506cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23507/* end confdefs.h. */ 23508 23509/* Override any GCC internal prototype to avoid an error. 23510 Use char because int might match the return type of a GCC 23511 builtin and then its argument prototype would still apply. */ 23512#ifdef __cplusplus 23513extern "C" 23514#endif 23515char gethostbyname (); 23516int 23517main () 23518{ 23519return gethostbyname (); 23520 ; 23521 return 0; 23522} 23523_ACEOF 23524if ac_fn_cxx_try_link "$LINENO"; then : 23525 ac_cv_lib_nsl_gethostbyname=yes 23526else 23527 ac_cv_lib_nsl_gethostbyname=no 23528fi 23529rm -f core conftest.err conftest.$ac_objext \ 23530 conftest$ac_exeext conftest.$ac_ext 23531LIBS=$ac_check_lib_save_LIBS 23532fi 23533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 23534$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 23535if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 23536 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 23537fi 23538 23539 if test $ac_cv_lib_nsl_gethostbyname = no; then 23540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 23541$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 23542if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 23543 $as_echo_n "(cached) " >&6 23544else 23545 ac_check_lib_save_LIBS=$LIBS 23546LIBS="-lbsd $LIBS" 23547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23548/* end confdefs.h. */ 23549 23550/* Override any GCC internal prototype to avoid an error. 23551 Use char because int might match the return type of a GCC 23552 builtin and then its argument prototype would still apply. */ 23553#ifdef __cplusplus 23554extern "C" 23555#endif 23556char gethostbyname (); 23557int 23558main () 23559{ 23560return gethostbyname (); 23561 ; 23562 return 0; 23563} 23564_ACEOF 23565if ac_fn_cxx_try_link "$LINENO"; then : 23566 ac_cv_lib_bsd_gethostbyname=yes 23567else 23568 ac_cv_lib_bsd_gethostbyname=no 23569fi 23570rm -f core conftest.err conftest.$ac_objext \ 23571 conftest$ac_exeext conftest.$ac_ext 23572LIBS=$ac_check_lib_save_LIBS 23573fi 23574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 23575$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 23576if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 23577 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 23578fi 23579 23580 fi 23581 fi 23582 23583 # lieder@skyler.mavd.honeywell.com says without -lsocket, 23584 # socket/setsockopt and other routines are undefined under SCO ODT 23585 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 23586 # on later versions), says Simon Leinen: it contains gethostby* 23587 # variants that don't use the name server (or something). -lsocket 23588 # must be given before -lnsl if both are needed. We assume that 23589 # if connect needs -lnsl, so does gethostbyname. 23590 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 23591if test "x$ac_cv_func_connect" = xyes; then : 23592 23593fi 23594 23595 if test $ac_cv_func_connect = no; then 23596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 23597$as_echo_n "checking for connect in -lsocket... " >&6; } 23598if ${ac_cv_lib_socket_connect+:} false; then : 23599 $as_echo_n "(cached) " >&6 23600else 23601 ac_check_lib_save_LIBS=$LIBS 23602LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 23603cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23604/* end confdefs.h. */ 23605 23606/* Override any GCC internal prototype to avoid an error. 23607 Use char because int might match the return type of a GCC 23608 builtin and then its argument prototype would still apply. */ 23609#ifdef __cplusplus 23610extern "C" 23611#endif 23612char connect (); 23613int 23614main () 23615{ 23616return connect (); 23617 ; 23618 return 0; 23619} 23620_ACEOF 23621if ac_fn_cxx_try_link "$LINENO"; then : 23622 ac_cv_lib_socket_connect=yes 23623else 23624 ac_cv_lib_socket_connect=no 23625fi 23626rm -f core conftest.err conftest.$ac_objext \ 23627 conftest$ac_exeext conftest.$ac_ext 23628LIBS=$ac_check_lib_save_LIBS 23629fi 23630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 23631$as_echo "$ac_cv_lib_socket_connect" >&6; } 23632if test "x$ac_cv_lib_socket_connect" = xyes; then : 23633 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 23634fi 23635 23636 fi 23637 23638 # Guillermo Gomez says -lposix is necessary on A/UX. 23639 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 23640if test "x$ac_cv_func_remove" = xyes; then : 23641 23642fi 23643 23644 if test $ac_cv_func_remove = no; then 23645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 23646$as_echo_n "checking for remove in -lposix... " >&6; } 23647if ${ac_cv_lib_posix_remove+:} false; then : 23648 $as_echo_n "(cached) " >&6 23649else 23650 ac_check_lib_save_LIBS=$LIBS 23651LIBS="-lposix $LIBS" 23652cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23653/* end confdefs.h. */ 23654 23655/* Override any GCC internal prototype to avoid an error. 23656 Use char because int might match the return type of a GCC 23657 builtin and then its argument prototype would still apply. */ 23658#ifdef __cplusplus 23659extern "C" 23660#endif 23661char remove (); 23662int 23663main () 23664{ 23665return remove (); 23666 ; 23667 return 0; 23668} 23669_ACEOF 23670if ac_fn_cxx_try_link "$LINENO"; then : 23671 ac_cv_lib_posix_remove=yes 23672else 23673 ac_cv_lib_posix_remove=no 23674fi 23675rm -f core conftest.err conftest.$ac_objext \ 23676 conftest$ac_exeext conftest.$ac_ext 23677LIBS=$ac_check_lib_save_LIBS 23678fi 23679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 23680$as_echo "$ac_cv_lib_posix_remove" >&6; } 23681if test "x$ac_cv_lib_posix_remove" = xyes; then : 23682 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 23683fi 23684 23685 fi 23686 23687 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 23688 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 23689if test "x$ac_cv_func_shmat" = xyes; then : 23690 23691fi 23692 23693 if test $ac_cv_func_shmat = no; then 23694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 23695$as_echo_n "checking for shmat in -lipc... " >&6; } 23696if ${ac_cv_lib_ipc_shmat+:} false; then : 23697 $as_echo_n "(cached) " >&6 23698else 23699 ac_check_lib_save_LIBS=$LIBS 23700LIBS="-lipc $LIBS" 23701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23702/* end confdefs.h. */ 23703 23704/* Override any GCC internal prototype to avoid an error. 23705 Use char because int might match the return type of a GCC 23706 builtin and then its argument prototype would still apply. */ 23707#ifdef __cplusplus 23708extern "C" 23709#endif 23710char shmat (); 23711int 23712main () 23713{ 23714return shmat (); 23715 ; 23716 return 0; 23717} 23718_ACEOF 23719if ac_fn_cxx_try_link "$LINENO"; then : 23720 ac_cv_lib_ipc_shmat=yes 23721else 23722 ac_cv_lib_ipc_shmat=no 23723fi 23724rm -f core conftest.err conftest.$ac_objext \ 23725 conftest$ac_exeext conftest.$ac_ext 23726LIBS=$ac_check_lib_save_LIBS 23727fi 23728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 23729$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 23730if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 23731 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 23732fi 23733 23734 fi 23735 fi 23736 23737 # Check for libraries that X11R6 Xt/Xaw programs need. 23738 ac_save_LDFLAGS=$LDFLAGS 23739 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 23740 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 23741 # check for ICE first), but we must link in the order -lSM -lICE or 23742 # we get undefined symbols. So assume we have SM if we have ICE. 23743 # These have to be linked with before -lX11, unlike the other 23744 # libraries we check for below, so use a different variable. 23745 # John Interrante, Karl Berry 23746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 23747$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 23748if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 23749 $as_echo_n "(cached) " >&6 23750else 23751 ac_check_lib_save_LIBS=$LIBS 23752LIBS="-lICE $X_EXTRA_LIBS $LIBS" 23753cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23754/* end confdefs.h. */ 23755 23756/* Override any GCC internal prototype to avoid an error. 23757 Use char because int might match the return type of a GCC 23758 builtin and then its argument prototype would still apply. */ 23759#ifdef __cplusplus 23760extern "C" 23761#endif 23762char IceConnectionNumber (); 23763int 23764main () 23765{ 23766return IceConnectionNumber (); 23767 ; 23768 return 0; 23769} 23770_ACEOF 23771if ac_fn_cxx_try_link "$LINENO"; then : 23772 ac_cv_lib_ICE_IceConnectionNumber=yes 23773else 23774 ac_cv_lib_ICE_IceConnectionNumber=no 23775fi 23776rm -f core conftest.err conftest.$ac_objext \ 23777 conftest$ac_exeext conftest.$ac_ext 23778LIBS=$ac_check_lib_save_LIBS 23779fi 23780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 23781$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 23782if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 23783 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 23784fi 23785 23786 LDFLAGS=$ac_save_LDFLAGS 23787 23788fi 23789 23790 23791 23792 23793 23794 23795 23796# Check whether --with-qt5-qmake was given. 23797if test "${with_qt5_qmake+set}" = set; then : 23798 withval=$with_qt5_qmake; QT_QMAKE="$withval" 23799else 23800 QT_QMAKE="qmake" 23801 23802fi 23803 23804 23805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt" >&5 23806$as_echo_n "checking for Qt... " >&6; } 23807 # If we have Qt5 or later in the path, we're golden 23808 ver=`$QT_QMAKE --version | grep -o "Qt version ."` 23809 if test "$ver" ">" "Qt version 4"; then 23810 have_qt=yes 23811 # This pro file dumps qmake's variables, but it only works on Qt 5 or later 23812 am_have_qt_pro=`mktemp` 23813 am_have_qt_makefile=`mktemp` 23814 # http://qt-project.org/doc/qt-5/qmake-variable-reference.html#qt 23815 cat > $am_have_qt_pro << EOF 23816win32 { 23817 CONFIG -= debug_and_release 23818 CONFIG += release 23819} 23820qtHaveModule(core): QT += core 23821qtHaveModule(gui): QT += gui 23822qtHaveModule(widgets): QT += widgets 23823percent.target = % 23824percent.commands = @echo -n "\$(\$(@))\ " 23825QMAKE_EXTRA_TARGETS += percent 23826EOF 23827 $QT_QMAKE $am_have_qt_pro -o $am_have_qt_makefile 23828 QT_CXXFLAGS=`make -s -f $am_have_qt_makefile -VCXXFLAGS -VINCPATH | tr '\n' ' '` 23829 QT_LIBS=`make -s -f $am_have_qt_makefile -VLIBS | tr '\n' ' '` 23830 rm $am_have_qt_pro $am_have_qt_makefile 23831 23832 # Look for specific tools in $PATH 23833 23834# Check whether --with-qt5-moc was given. 23835if test "${with_qt5_moc+set}" = set; then : 23836 withval=$with_qt5_moc; QT_MOC="$withval" 23837else 23838 QT_MOC=`which moc` 23839 23840fi 23841 23842 23843 23844# Check whether --with-qt5-uic was given. 23845if test "${with_qt5_uic+set}" = set; then : 23846 withval=$with_qt5_uic; QT_UIC="$withval" 23847else 23848 QT_UIC=`which uic` 23849 23850fi 23851 23852 23853 QT_LRELEASE=#none 23854 QT_LUPDATE=#none 23855 23856 # Get Qt version from qmake 23857 QT_DIR=`$QT_QMAKE --version | grep -o -E /.+` 23858 23859 # All variables are defined, report the result 23860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_qt: 23861 QT_CXXFLAGS=$QT_CXXFLAGS 23862 QT_DIR=$QT_DIR 23863 QT_LIBS=$QT_LIBS 23864 QT_UIC=$QT_UIC 23865 QT_MOC=$QT_MOC 23866 QT_LRELEASE=$QT_LRELEASE 23867 QT_LUPDATE=$QT_LUPDATE" >&5 23868$as_echo "$have_qt: 23869 QT_CXXFLAGS=$QT_CXXFLAGS 23870 QT_DIR=$QT_DIR 23871 QT_LIBS=$QT_LIBS 23872 QT_UIC=$QT_UIC 23873 QT_MOC=$QT_MOC 23874 QT_LRELEASE=$QT_LRELEASE 23875 QT_LUPDATE=$QT_LUPDATE" >&6; } 23876 else 23877 # Qt was not found 23878 have_qt=no 23879 QT_CXXFLAGS= 23880 QT_DIR= 23881 QT_LIBS= 23882 QT_UIC= 23883 QT_MOC= 23884 QT_LRELEASE= 23885 QT_LUPDATE= 23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_qt" >&5 23887$as_echo "$have_qt" >&6; } 23888 fi 23889 23890 23891 23892 23893 23894 23895 23896 23897 #### Being paranoid: 23898 if test x"$have_qt" = xyes; then 23899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking correct functioning of Qt installation" >&5 23900$as_echo_n "checking correct functioning of Qt installation... " >&6; } 23901 if ${ax_cv_qt_test_result+:} false; then : 23902 $as_echo_n "(cached) " >&6 23903else 23904 23905 cat > ax_qt_test.h << EOF 23906#include <qobject.h> 23907class Test : public QObject 23908{ 23909Q_OBJECT 23910public: 23911 Test() {} 23912 ~Test() {} 23913public slots: 23914 void receive() {} 23915signals: 23916 void send(); 23917}; 23918EOF 23919 23920 cat > ax_qt_main.$ac_ext << EOF 23921#include "ax_qt_test.h" 23922#include <qapplication.h> 23923int main( int argc, char **argv ) 23924{ 23925 QApplication app( argc, argv ); 23926 Test t; 23927 QObject::connect( &t, SIGNAL(send()), &t, SLOT(receive()) ); 23928} 23929EOF 23930 23931 ax_cv_qt_test_result="failure" 23932 ax_try_1="$QT_MOC ax_qt_test.h -o moc_ax_qt_test.$ac_ext >/dev/null 2>/dev/null" 23933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ax_try_1\""; } >&5 23934 (eval $ax_try_1) 2>&5 23935 ac_status=$? 23936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23937 test $ac_status = 0; } 23938 if test x"$ac_status" != x0; then 23939 echo "$ax_err_1" >&5 23940 echo "configure: could not run $QT_MOC on:" >&5 23941 cat ax_qt_test.h >&5 23942 else 23943 ax_try_2="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o moc_ax_qt_test.o moc_ax_qt_test.$ac_ext >/dev/null 2>/dev/null" 23944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ax_try_2\""; } >&5 23945 (eval $ax_try_2) 2>&5 23946 ac_status=$? 23947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23948 test $ac_status = 0; } 23949 if test x"$ac_status" != x0; then 23950 echo "$ax_err_2" >&5 23951 echo "configure: could not compile:" >&5 23952 cat moc_ax_qt_test.$ac_ext >&5 23953 else 23954 ax_try_3="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o ax_qt_main.o ax_qt_main.$ac_ext >/dev/null 2>/dev/null" 23955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ax_try_3\""; } >&5 23956 (eval $ax_try_3) 2>&5 23957 ac_status=$? 23958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23959 test $ac_status = 0; } 23960 if test x"$ac_status" != x0; then 23961 echo "$ax_err_3" >&5 23962 echo "configure: could not compile:" >&5 23963 cat ax_qt_main.$ac_ext >&5 23964 else 23965 ax_try_4="$CXX -o ax_qt_main ax_qt_main.o moc_ax_qt_test.o $QT_LIBS $LIBS >/dev/null 2>/dev/null" 23966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ax_try_4\""; } >&5 23967 (eval $ax_try_4) 2>&5 23968 ac_status=$? 23969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23970 test $ac_status = 0; } 23971 if test x"$ac_status" != x0; then 23972 echo "$ax_err_4" >&5 23973 else 23974 ax_cv_qt_test_result="success" 23975 fi 23976 fi 23977 fi 23978 fi 23979 23980fi 23981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_qt_test_result" >&5 23982$as_echo "$ax_cv_qt_test_result" >&6; } 23983 if test x"$ax_cv_qt_test_result" = "xfailure"; then 23984 as_fn_error $? "Failed to find matching components of a complete 23985 Qt installation. Try using more options, 23986 see ./configure --help." "$LINENO" 5 23987 fi 23988 23989 rm -f ax_qt_test.h moc_ax_qt_test.$ac_ext moc_ax_qt_test.o \ 23990 ax_qt_main.$ac_ext ax_qt_main.o ax_qt_main 23991 fi 23992 23993esac 23994 23995 23996 23997###------------------------------------------------------------------------- 23998# 23999# check docpath 24000# 24001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking docpath" >&5 24002$as_echo_n "checking docpath... " >&6; } 24003 24004# Check whether --with-docpath was given. 24005if test "${with_docpath+set}" = set; then : 24006 withval=$with_docpath; docpath="$withval" 24007else 24008 docpath="${HOME}/apidoc" 24009fi 24010 24011 24012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $docpath" >&5 24013$as_echo "$docpath" >&6; } 24014 24015 24016 24017###------------------------------------------------------------------------- 24018# 24019# search for tag files 24020# 24021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking doxygen tag files" >&5 24022$as_echo_n "checking doxygen tag files... " >&6; } 24023DOXYGEN_TAGFILES="" 24024DOXYGEN_TAGFILEPATHS="" 24025if test -d "${docpath}"; then 24026 tagfiles="`cd ${docpath} && ls *.tag`" 24027 if test -n "${tagfiles}"; then 24028 # remove own package from list 24029 tagfiles="`echo ${tagfiles} | ${SED} -e s/${PACKAGE}.tag//`" 24030 24031 # add every remaining tag file 24032 for ff in ${tagfiles}; do 24033 DOXYGEN_TAGFILES="${DOXYGEN_TAGFILES} ${docpath}/${ff}=${docpath}/`basename -s .tag ${ff}`" 24034 done 24035 fi 24036fi 24037if test -z "${DOXYGEN_TAGFILES}"; then 24038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 24039$as_echo "none" >&6; } 24040else 24041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 24042$as_echo "found" >&6; } 24043fi 24044 24045 24046 24047 24048###------------------------------------------------------------------------- 24049# 24050# Search for dlopen 24051# 24052LIBS="" 24053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 24054$as_echo_n "checking for library containing dlopen... " >&6; } 24055if ${ac_cv_search_dlopen+:} false; then : 24056 $as_echo_n "(cached) " >&6 24057else 24058 ac_func_search_save_LIBS=$LIBS 24059cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24060/* end confdefs.h. */ 24061 24062/* Override any GCC internal prototype to avoid an error. 24063 Use char because int might match the return type of a GCC 24064 builtin and then its argument prototype would still apply. */ 24065#ifdef __cplusplus 24066extern "C" 24067#endif 24068char dlopen (); 24069int 24070main () 24071{ 24072return dlopen (); 24073 ; 24074 return 0; 24075} 24076_ACEOF 24077for ac_lib in '' c dl; do 24078 if test -z "$ac_lib"; then 24079 ac_res="none required" 24080 else 24081 ac_res=-l$ac_lib 24082 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24083 fi 24084 if ac_fn_cxx_try_link "$LINENO"; then : 24085 ac_cv_search_dlopen=$ac_res 24086fi 24087rm -f core conftest.err conftest.$ac_objext \ 24088 conftest$ac_exeext 24089 if ${ac_cv_search_dlopen+:} false; then : 24090 break 24091fi 24092done 24093if ${ac_cv_search_dlopen+:} false; then : 24094 24095else 24096 ac_cv_search_dlopen=no 24097fi 24098rm conftest.$ac_ext 24099LIBS=$ac_func_search_save_LIBS 24100fi 24101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 24102$as_echo "$ac_cv_search_dlopen" >&6; } 24103ac_res=$ac_cv_search_dlopen 24104if test "$ac_res" != no; then : 24105 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24106 24107fi 24108 24109if test "$LIBS" = "-lc"; then 24110 LIBS="" 24111fi 24112ld_library="$LIBS" 24113LIBS="" 24114all_libraries="$all_libraries $ld_library" 24115 24116 24117###------------------------------------------------------------------------- 24118# 24119# check for release 24120# 24121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is an official release" >&5 24122$as_echo_n "checking whether this is an official release... " >&6; } 24123# Check whether --enable-release was given. 24124if test "${enable_release+set}" = set; then : 24125 enableval=$enable_release; case "${enableval}" in 24126 yes) enable_release="yes";; 24127 no) enable_release="no";; 24128 *) as_fn_error $? "bad value ${enableval} for --enable-release" "$LINENO" 5;; 24129 esac 24130 24131else 24132 enable_release="no" 24133fi 24134 24135 24136if test "$enable_release" = "yes"; then 24137 STRIPALL="-s" 24138else 24139 STRIPALL="" 24140fi 24141 24142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_release" >&5 24143$as_echo "$enable_release" >&6; } 24144 24145 24146 24147###------------------------------------------------------------------------- 24148# 24149# Compiler check for symbol visibility 24150# 24151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports symbol visibility" >&5 24152$as_echo_n "checking whether compiler supports symbol visibility... " >&6; } 24153if ${ac_cv_hidden_visibility_attribute+:} false; then : 24154 $as_echo_n "(cached) " >&6 24155else 24156 24157 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c 24158 ac_cv_hidden_visibility_attribute=no 24159 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5' 24160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 24161 (eval $ac_try) 2>&5 24162 ac_status=$? 24163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24164 test $ac_status = 0; }; }; 24165 then 24166 if grep '\.hidden.*foo' conftest.s >/dev/null; 24167 then 24168 ac_cv_hidden_visibility_attribute=yes 24169 fi 24170 fi 24171 rm -f conftest.* 24172 24173fi 24174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hidden_visibility_attribute" >&5 24175$as_echo "$ac_cv_hidden_visibility_attribute" >&6; } 24176if test $ac_cv_hidden_visibility_attribute = yes; 24177then 24178 24179$as_echo "#define GCC_WITH_VISIBILITY_ATTRIBUTE 1" >>confdefs.h 24180 24181 visibility_cflags="-fvisibility=hidden" 24182 visibility_supported="yes" 24183fi 24184 24185 24186 24187 24188###------------------------------------------------------------------------- 24189# 24190# check for werror 24191# 24192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if CFLAG -Werror is to be used" >&5 24193$as_echo_n "checking if CFLAG -Werror is to be used... " >&6; } 24194# Check whether --enable-error-on-warning was given. 24195if test "${enable_error_on_warning+set}" = set; then : 24196 enableval=$enable_error_on_warning; enable_werror="$enableval" 24197else 24198 enable_werror="no" 24199fi 24200 24201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_werror" >&5 24202$as_echo "$enable_werror" >&6; } 24203 24204WERROR="" 24205if test "$enable_werror" != "no"; then 24206 WERROR="-Werror" 24207fi 24208 24209 24210 24211# Debug arguments for compilation 24212 24213 24214# Check whether --enable-debug was given. 24215if test "${enable_debug+set}" = set; then : 24216 enableval=$enable_debug; case "${enableval}" in 24217 yes) CXXFLAGS="${CXXFLAGS} -g" 24218 CFLAGS="${CFLAGS} -g" 24219 LDFLAGS="${LDFLAGS} -g" 24220 24221$as_echo "#define DEBUG 1" >>confdefs.h 24222 ;; 24223 no) ;; 24224 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; 24225 esac 24226 24227else 24228 24229 # Default value if the argument was not given 24230 CXXFLAGS="${CXXFLAGS}" 24231 CFLAGS="${CFLAGS}" 24232 LDFLAGS="${LDFLAGS}" 24233 24234fi 24235 24236 24237if test ${GCC}x = yesx; then 24238 24239 # Check whether --enable-warnings was given. 24240if test "${enable_warnings+set}" = set; then : 24241 enableval=$enable_warnings; case "${enableval}" in 24242 yes) CXXFLAGS="${CXXFLAGS} -Wall" 24243 CFLAGS="${CFLAGS} -Wall" ;; 24244 all) CXXFLAGS="${CXXFLAGS} -Wall -pedantic -ansi" 24245 CFLAGS="${CFLAGS} -Wall -pedantic -ansi" ;; 24246 no) ;; 24247 *) as_fn_error $? "bad value ${enableval} for --enable-warnings" "$LINENO" 5 ;; 24248 esac 24249 24250else 24251 24252 # Default value if the argument was not given 24253 CXXFLAGS="${CXXFLAGS} -Wall" 24254 CFLAGS="${CFLAGS} -Wall" 24255 24256fi 24257 24258 24259 GCC_VERSION=`${CC} -dumpversion` 24260 if test `echo ${GCC_VERSION} | cut -d. -f1` -ge 3; then 24261 # This is gcc >= 3.x.x 24262 if test `echo ${GCC_VERSION} | cut -d. -f2 | cut -d- -f1` -ge 4; then 24263 # This is gcc >= 3.4.x 24264 CFLAGS="${CFLAGS} -Wdeclaration-after-statement" 24265 fi 24266 fi 24267 24268 # Check whether --enable-error-on-warning was given. 24269if test "${enable_error_on_warning+set}" = set; then : 24270 enableval=$enable_error_on_warning; case "${enableval}" in 24271 yes) CXXFLAGS="${CXXFLAGS} -Werror" 24272 CFLAGS="${CFLAGS} -Werror" ;; 24273 no) ;; 24274 *) as_fn_error $? "bad value ${enableval} for --enable-error-on-warning" "$LINENO" 5 ;; 24275 esac 24276 24277else 24278 24279 # Default value if the argument was not given 24280 CXXFLAGS="${CXXFLAGS}" 24281 CFLAGS="${CFLAGS}" 24282 24283fi 24284 24285fi 24286 24287 24288 24289 24290 24291###------------------------------------------------------------------------- 24292# 24293# check for MEMTRACE 24294# 24295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if MEMTRACE is wanted" >&5 24296$as_echo_n "checking if MEMTRACE is wanted... " >&6; } 24297# Check whether --enable-memtrace was given. 24298if test "${enable_memtrace+set}" = set; then : 24299 enableval=$enable_memtrace; enable_memtrace="$enableval" 24300else 24301 enable_memtrace="no" 24302fi 24303 24304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_memtrace" >&5 24305$as_echo "$enable_memtrace" >&6; } 24306 24307if test "$enable_memtrace" != "no"; then 24308 #AC_DEFINE(GWEN_MEMTRACE, 1, [if memory trace is wanted]) 24309 24310$as_echo "#define GWEN_MEMORY_DEBUG 1" >>confdefs.h 24311 24312fi 24313 24314 24315# Debug arguments for compilation 24316 24317 24318# Check whether --enable-debug was given. 24319if test "${enable_debug+set}" = set; then : 24320 enableval=$enable_debug; case "${enableval}" in 24321 yes) CXXFLAGS="${CXXFLAGS} -g" 24322 CFLAGS="${CFLAGS} -g" 24323 LDFLAGS="${LDFLAGS} -g" 24324 24325$as_echo "#define DEBUG 1" >>confdefs.h 24326 ;; 24327 no) ;; 24328 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; 24329 esac 24330 24331else 24332 24333 # Default value if the argument was not given 24334 CXXFLAGS="${CXXFLAGS}" 24335 CFLAGS="${CFLAGS}" 24336 LDFLAGS="${LDFLAGS}" 24337 24338fi 24339 24340 24341if test ${GCC}x = yesx; then 24342 24343 # Check whether --enable-warnings was given. 24344if test "${enable_warnings+set}" = set; then : 24345 enableval=$enable_warnings; case "${enableval}" in 24346 yes) CXXFLAGS="${CXXFLAGS} -Wall" 24347 CFLAGS="${CFLAGS} -Wall" ;; 24348 all) CXXFLAGS="${CXXFLAGS} -Wall -pedantic -ansi" 24349 CFLAGS="${CFLAGS} -Wall -pedantic -ansi" ;; 24350 no) ;; 24351 *) as_fn_error $? "bad value ${enableval} for --enable-warnings" "$LINENO" 5 ;; 24352 esac 24353 24354else 24355 24356 # Default value if the argument was not given 24357 CXXFLAGS="${CXXFLAGS} -Wall" 24358 CFLAGS="${CFLAGS} -Wall" 24359 24360fi 24361 24362 24363 GCC_VERSION=`${CC} -dumpversion` 24364 if test `echo ${GCC_VERSION} | cut -d. -f1` -ge 3; then 24365 # This is gcc >= 3.x.x 24366 if test `echo ${GCC_VERSION} | cut -d. -f2 | cut -d- -f1` -ge 4; then 24367 # This is gcc >= 3.4.x 24368 CFLAGS="${CFLAGS} -Wdeclaration-after-statement" 24369 fi 24370 fi 24371 24372 # Check whether --enable-error-on-warning was given. 24373if test "${enable_error_on_warning+set}" = set; then : 24374 enableval=$enable_error_on_warning; case "${enableval}" in 24375 yes) CXXFLAGS="${CXXFLAGS} -Werror" 24376 CFLAGS="${CFLAGS} -Werror" ;; 24377 no) ;; 24378 *) as_fn_error $? "bad value ${enableval} for --enable-error-on-warning" "$LINENO" 5 ;; 24379 esac 24380 24381else 24382 24383 # Default value if the argument was not given 24384 CXXFLAGS="${CXXFLAGS}" 24385 CFLAGS="${CFLAGS}" 24386 24387fi 24388 24389fi 24390 24391 24392 24393 24394 24395###------------------------------------------------------------------------- 24396# 24397# check buffer hard limit 24398# 24399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default buffer hard limit" >&5 24400$as_echo_n "checking default buffer hard limit... " >&6; } 24401 24402# Check whether --with-buffer-hardlimit was given. 24403if test "${with_buffer_hardlimit+set}" = set; then : 24404 withval=$with_buffer_hardlimit; gwenhywfar_buffer_hardlimit="$withval" 24405else 24406 gwenhywfar_buffer_hardlimit="" 24407fi 24408 24409 24410if test -z "${gwenhywfar_buffer_hardlimit}"; then 24411 gwenhywfar_buffer_hardlimit="(16*1024*1024)" 24412fi 24413 24414 24415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gwenhywfar_buffer_hardlimit" >&5 24416$as_echo "$gwenhywfar_buffer_hardlimit" >&6; } 24417 24418 24419###------------------------------------------------------------------------- 24420# 24421# compile program flags 24422# 24423 24424PROG_LIBRARIES="${PROG_LIBRARIES} ${ncurses_libs}" 24425 24426# Clean up include variables 24427 24428 GIVEN_CFLAGS=$gwenhywfar_includes 24429 INCLUDE_DIRS=`echo | ${CPP} -v 2>&1` 24430 24431 INCLUDE_DIRS=`echo $INCLUDE_DIRS | sed -e 's/.*<...> search starts here://' | sed -e 's/End of search list.*//'` 24432 for dir in $INCLUDE_DIRS; do 24433 GIVEN_CFLAGS=$(echo $GIVEN_CFLAGS | sed -e 's;-I$dir ;;' | sed -e 's;-I$dir$;;') 24434 done 24435 gwenhywfar_includes=$GIVEN_CFLAGS 24436 24437 24438 GIVEN_CFLAGS=$all_includes 24439 INCLUDE_DIRS=`echo | ${CPP} -v 2>&1` 24440 24441 INCLUDE_DIRS=`echo $INCLUDE_DIRS | sed -e 's/.*<...> search starts here://' | sed -e 's/End of search list.*//'` 24442 for dir in $INCLUDE_DIRS; do 24443 GIVEN_CFLAGS=$(echo $GIVEN_CFLAGS | sed -e 's;-I$dir ;;' | sed -e 's;-I$dir$;;') 24444 done 24445 all_includes=$GIVEN_CFLAGS 24446 24447 24448 24449 24450###------------------------------------------------------------------------- 24451# 24452# check for doc type 24453# 24454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if full docu should be created" >&5 24455$as_echo_n "checking if full docu should be created... " >&6; } 24456# Check whether --enable-full-doc was given. 24457if test "${enable_full_doc+set}" = set; then : 24458 enableval=$enable_full_doc; case "${enableval}" in 24459 yes) enable_fulldoc="yes";; 24460 no) enable_fulldoc="no";; 24461 *) as_fn_error $? "bad value ${enableval} for --enable-full-doc" "$LINENO" 5;; 24462 esac 24463 24464else 24465 enable_fulldoc="no" 24466fi 24467 24468 24469if test "$enable_fulldoc" = "yes"; then 24470 DOXYGEN_INPUT="listdoc.h src gui plugins tools" 24471 DOXYGEN_DEFINE="" 24472else 24473 DOXYGEN_DEFINE="DOXYGEN_HIDE" 24474 DOXYGEN_INPUT="listdoc.h gwenhywfar5" 24475fi 24476 24477 24478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fulldoc" >&5 24479$as_echo "$enable_fulldoc" >&6; } 24480 24481 24482 24483# Debug arguments for compilation 24484 24485 24486# Check whether --enable-debug was given. 24487if test "${enable_debug+set}" = set; then : 24488 enableval=$enable_debug; case "${enableval}" in 24489 yes) CXXFLAGS="${CXXFLAGS} -g" 24490 CFLAGS="${CFLAGS} -g" 24491 LDFLAGS="${LDFLAGS} -g" 24492 24493$as_echo "#define DEBUG 1" >>confdefs.h 24494 ;; 24495 no) ;; 24496 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; 24497 esac 24498 24499else 24500 24501 # Default value if the argument was not given 24502 CXXFLAGS="${CXXFLAGS}" 24503 CFLAGS="${CFLAGS}" 24504 LDFLAGS="${LDFLAGS}" 24505 24506fi 24507 24508 24509if test ${GCC}x = yesx; then 24510 24511 # Check whether --enable-warnings was given. 24512if test "${enable_warnings+set}" = set; then : 24513 enableval=$enable_warnings; case "${enableval}" in 24514 yes) CXXFLAGS="${CXXFLAGS} -Wall" 24515 CFLAGS="${CFLAGS} -Wall" ;; 24516 all) CXXFLAGS="${CXXFLAGS} -Wall -pedantic -ansi" 24517 CFLAGS="${CFLAGS} -Wall -pedantic -ansi" ;; 24518 no) ;; 24519 *) as_fn_error $? "bad value ${enableval} for --enable-warnings" "$LINENO" 5 ;; 24520 esac 24521 24522else 24523 24524 # Default value if the argument was not given 24525 CXXFLAGS="${CXXFLAGS} -Wall" 24526 CFLAGS="${CFLAGS} -Wall" 24527 24528fi 24529 24530 24531 GCC_VERSION=`${CC} -dumpversion` 24532 if test `echo ${GCC_VERSION} | cut -d. -f1` -ge 3; then 24533 # This is gcc >= 3.x.x 24534 if test `echo ${GCC_VERSION} | cut -d. -f2 | cut -d- -f1` -ge 4; then 24535 # This is gcc >= 3.4.x 24536 CFLAGS="${CFLAGS} -Wdeclaration-after-statement" 24537 fi 24538 fi 24539 24540 # Check whether --enable-error-on-warning was given. 24541if test "${enable_error_on_warning+set}" = set; then : 24542 enableval=$enable_error_on_warning; case "${enableval}" in 24543 yes) CXXFLAGS="${CXXFLAGS} -Werror" 24544 CFLAGS="${CFLAGS} -Werror" ;; 24545 no) ;; 24546 *) as_fn_error $? "bad value ${enableval} for --enable-error-on-warning" "$LINENO" 5 ;; 24547 esac 24548 24549else 24550 24551 # Default value if the argument was not given 24552 CXXFLAGS="${CXXFLAGS}" 24553 CFLAGS="${CFLAGS}" 24554 24555fi 24556 24557fi 24558 24559 24560 24561 24562 24563###------------------------------------------------------------------------- 24564# 24565# substitute vars 24566# 24567 24568 24569 24570 24571 24572 24573 24574 24575 24576 24577 24578 24579 24580 24581 24582 24583 24584 24585 24586 24587 24588###------------------------------------------------------------------------- 24589# 24590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking crypt token plugins" >&5 24591$as_echo_n "checking crypt token plugins... " >&6; } 24592 24593# Check whether --with-plugins-ct was given. 24594if test "${with_plugins_ct+set}" = set; then : 24595 withval=$with_plugins_ct; plugins="$withval" 24596else 24597 plugins="all" 24598fi 24599 24600 24601if test "$plugins" = "all"; then 24602 plugins="ohbci"; 24603fi 24604 24605gwenhywfar_plugins_ct_dirs="" 24606gwenhywfar_plugins_ct_libs="" 24607for plugin in $plugins; do 24608 case "$plugin" in 24609 ohbci) 24610 gwenhywfar_plugins_ct_dirs="$gwenhywfar_plugins_ct_dirs ohbci" 24611 gwenhywfar_plugins_ct_libs="$gwenhywfar_plugins_ct_libs ohbci/libct_ohbci.la" 24612 24613$as_echo "#define GWENHYWFAR_WITH_PLUGIN_CT_OHBCI 1" >>confdefs.h 24614 24615 ;; 24616 *) 24617 as_fn_error $? ""ERROR: Unknown plugin \"$plugin\""" "$LINENO" 5 24618 ;; 24619 esac 24620done 24621 24622 24623 24624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugins" >&5 24625$as_echo "$plugins" >&6; } 24626 24627 24628 24629###------------------------------------------------------------------------- 24630# 24631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DBIO plugins" >&5 24632$as_echo_n "checking DBIO plugins... " >&6; } 24633 24634# Check whether --with-plugins-dbio was given. 24635if test "${with_plugins_dbio+set}" = set; then : 24636 withval=$with_plugins_dbio; plugins="$withval" 24637else 24638 plugins="all" 24639fi 24640 24641 24642if test "$plugins" = "all"; then 24643 plugins="csv olddb xmldb"; 24644fi 24645 24646gwenhywfar_plugins_dbio_dirs="" 24647gwenhywfar_plugins_dbio_libs="" 24648for plugin in $plugins; do 24649 case "$plugin" in 24650 csv) 24651 gwenhywfar_plugins_dbio_dirs="$gwenhywfar_plugins_dbio_dirs csv" 24652 gwenhywfar_plugins_dbio_libs="$gwenhywfar_plugins_dbio_libs csv/libdbio_csv.la" 24653 24654$as_echo "#define GWENHYWFAR_WITH_PLUGIN_DBIO_CSV 1" >>confdefs.h 24655 24656 ;; 24657 olddb) 24658 gwenhywfar_plugins_dbio_dirs="$gwenhywfar_plugins_dbio_dirs olddb" 24659 gwenhywfar_plugins_dbio_libs="$gwenhywfar_plugins_dbio_libs olddb/libdbio_olddb.la" 24660 24661$as_echo "#define GWENHYWFAR_WITH_PLUGIN_DBIO_OLDDB 1" >>confdefs.h 24662 24663 ;; 24664 xmldb) 24665 gwenhywfar_plugins_dbio_dirs="$gwenhywfar_plugins_dbio_dirs xmldb" 24666 gwenhywfar_plugins_dbio_libs="$gwenhywfar_plugins_dbio_libs xmldb/libdbio_xmldb.la" 24667 24668$as_echo "#define GWENHYWFAR_WITH_PLUGIN_DBIO_XMLDB 1" >>confdefs.h 24669 24670 ;; 24671 *) 24672 as_fn_error $? ""ERROR: Unknown plugin \"$plugin\""" "$LINENO" 5 24673 ;; 24674 esac 24675done 24676 24677 24678 24679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugins" >&5 24680$as_echo "$plugins" >&6; } 24681 24682 24683 24684###------------------------------------------------------------------------- 24685# 24686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ConfigManager plugins" >&5 24687$as_echo_n "checking ConfigManager plugins... " >&6; } 24688 24689# Check whether --with-plugins-cfgmgr was given. 24690if test "${with_plugins_cfgmgr+set}" = set; then : 24691 withval=$with_plugins_cfgmgr; plugins="$withval" 24692else 24693 plugins="all" 24694fi 24695 24696 24697if test "$plugins" = "all"; then 24698 plugins="dir"; 24699fi 24700 24701gwenhywfar_plugins_cfgmgr_dirs="" 24702gwenhywfar_plugins_cfgmgr_libs="" 24703for plugin in $plugins; do 24704 case "$plugin" in 24705 dir) 24706 gwenhywfar_plugins_cfgmgr_dirs="$gwenhywfar_plugins_cfgmgr_dirs dir" 24707 gwenhywfar_plugins_cfgmgr_libs="$gwenhywfar_plugins_cfgmgr_libs dir/libcfgmgr_dir.la" 24708 24709$as_echo "#define GWENHYWFAR_WITH_PLUGIN_CFGMGR_DIR 1" >>confdefs.h 24710 24711 ;; 24712 *) 24713 as_fn_error $? ""ERROR: Unknown plugin \"$plugin\""" "$LINENO" 5 24714 ;; 24715 esac 24716done 24717 24718 24719 24720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugins" >&5 24721$as_echo "$plugins" >&6; } 24722 24723 24724 24725###------------------------------------------------------------------------- 24726# 24727# list of files to create 24728# 24729ac_config_files="$ac_config_files Doxyfile Makefile admin/Makefile m4/Makefile po/Makefile gwenhywfar-config.in gwenhywfar.pc gwenhywfar-config.cmake gwenhywfar-config-version.cmake gwenhywfar.spec gwenhywfar.iss checks/Makefile data/Makefile doc/Makefile doc/dialog/Makefile doc/dialog/images/Makefile doc/inherit/Makefile doc/plugindescr.xsd src/Makefile src/types.h src/ressource.rc src/version.h src/base/Makefile src/crypt3/Makefile src/cryptmsg/Makefile src/crypttoken/Makefile src/gui/Makefile src/sio/Makefile src/html/Makefile src/os/Makefile src/os/posix/Makefile src/os/posix/system.h src/os/windows/Makefile src/os/windows/system.h src/parser/Makefile src/sar/Makefile src/test_framework/Makefile src/xmlcmd/Makefile plugins/Makefile plugins/dbio/Makefile plugins/dbio/csv/Makefile plugins/dbio/csv/csv.xml plugins/dbio/csv/ressource.rc plugins/dbio/olddb/Makefile plugins/dbio/olddb/olddb.xml plugins/dbio/olddb/ressource.rc plugins/dbio/xmldb/Makefile plugins/dbio/xmldb/xmldb.xml plugins/dbio/xmldb/ressource.rc plugins/ct/Makefile plugins/ct/ohbci/Makefile plugins/ct/ohbci/ohbci.xml plugins/ct/ohbci/ressource.rc plugins/configmgr/Makefile plugins/configmgr/dir/Makefile plugins/configmgr/dir/dir.xml tools/Makefile tools/xmlmerge/Makefile tools/typemaker/Makefile tools/typemaker2/Makefile tools/typemaker2/types/Makefile tools/typemaker2/types/c/Makefile tools/gcttool/Makefile tools/gsa/Makefile test/Makefile gui/Makefile gui/cpp/Makefile gui/cpp/gwengui-cpp-config.cmake gui/cpp/gwengui-cpp-config-version.cmake gui/qt4/Makefile gui/qt4/gwengui-qt4.pc gui/qt4/gwengui-qt4-config.cmake gui/qt4/gwengui-qt4-config-version.cmake gui/qt5/Makefile gui/qt5/gwengui-qt5.pc gui/qt5/gwengui-qt5-config.cmake gui/qt5/gwengui-qt5-config-version.cmake gui/fox16/Makefile gui/fox16/gwengui-fox16.pc gui/gtk2/Makefile gui/gtk2/gwengui-gtk2.pc gui/gtk3/Makefile gui/gtk3/gwengui-gtk3.pc gui/cocoa/Makefile gui/testdialogs/Makefile" 24730 24731cat >confcache <<\_ACEOF 24732# This file is a shell script that caches the results of configure 24733# tests run on this system so they can be shared between configure 24734# scripts and configure runs, see configure's option --config-cache. 24735# It is not useful on other systems. If it contains results you don't 24736# want to keep, you may remove or edit it. 24737# 24738# config.status only pays attention to the cache file if you give it 24739# the --recheck option to rerun configure. 24740# 24741# `ac_cv_env_foo' variables (set or unset) will be overridden when 24742# loading this file, other *unset* `ac_cv_foo' will be assigned the 24743# following values. 24744 24745_ACEOF 24746 24747# The following way of writing the cache mishandles newlines in values, 24748# but we know of no workaround that is simple, portable, and efficient. 24749# So, we kill variables containing newlines. 24750# Ultrix sh set writes to stderr and can't be redirected directly, 24751# and sets the high bit in the cache file unless we assign to the vars. 24752( 24753 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 24754 eval ac_val=\$$ac_var 24755 case $ac_val in #( 24756 *${as_nl}*) 24757 case $ac_var in #( 24758 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 24759$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 24760 esac 24761 case $ac_var in #( 24762 _ | IFS | as_nl) ;; #( 24763 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 24764 *) { eval $ac_var=; unset $ac_var;} ;; 24765 esac ;; 24766 esac 24767 done 24768 24769 (set) 2>&1 | 24770 case $as_nl`(ac_space=' '; set) 2>&1` in #( 24771 *${as_nl}ac_space=\ *) 24772 # `set' does not quote correctly, so add quotes: double-quote 24773 # substitution turns \\\\ into \\, and sed turns \\ into \. 24774 sed -n \ 24775 "s/'/'\\\\''/g; 24776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 24777 ;; #( 24778 *) 24779 # `set' quotes correctly as required by POSIX, so do not add quotes. 24780 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 24781 ;; 24782 esac | 24783 sort 24784) | 24785 sed ' 24786 /^ac_cv_env_/b end 24787 t clear 24788 :clear 24789 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 24790 t end 24791 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 24792 :end' >>confcache 24793if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 24794 if test -w "$cache_file"; then 24795 if test "x$cache_file" != "x/dev/null"; then 24796 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 24797$as_echo "$as_me: updating cache $cache_file" >&6;} 24798 if test ! -f "$cache_file" || test -h "$cache_file"; then 24799 cat confcache >"$cache_file" 24800 else 24801 case $cache_file in #( 24802 */* | ?:*) 24803 mv -f confcache "$cache_file"$$ && 24804 mv -f "$cache_file"$$ "$cache_file" ;; #( 24805 *) 24806 mv -f confcache "$cache_file" ;; 24807 esac 24808 fi 24809 fi 24810 else 24811 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 24812$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 24813 fi 24814fi 24815rm -f confcache 24816 24817test "x$prefix" = xNONE && prefix=$ac_default_prefix 24818# Let make expand exec_prefix. 24819test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24820 24821DEFS=-DHAVE_CONFIG_H 24822 24823ac_libobjs= 24824ac_ltlibobjs= 24825U= 24826for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 24827 # 1. Remove the extension, and $U if already installed. 24828 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 24829 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 24830 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 24831 # will be set to the directory where LIBOBJS objects are built. 24832 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 24833 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 24834done 24835LIBOBJS=$ac_libobjs 24836 24837LTLIBOBJS=$ac_ltlibobjs 24838 24839 24840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 24841$as_echo_n "checking that generated files are newer than configure... " >&6; } 24842 if test -n "$am_sleep_pid"; then 24843 # Hide warnings about reused PIDs. 24844 wait $am_sleep_pid 2>/dev/null 24845 fi 24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 24847$as_echo "done" >&6; } 24848 if test -n "$EXEEXT"; then 24849 am__EXEEXT_TRUE= 24850 am__EXEEXT_FALSE='#' 24851else 24852 am__EXEEXT_TRUE='#' 24853 am__EXEEXT_FALSE= 24854fi 24855 24856if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 24857 as_fn_error $? "conditional \"AMDEP\" was never defined. 24858Usually this means the macro was only invoked conditionally." "$LINENO" 5 24859fi 24860if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 24861 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 24862Usually this means the macro was only invoked conditionally." "$LINENO" 5 24863fi 24864if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 24865 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 24866Usually this means the macro was only invoked conditionally." "$LINENO" 5 24867fi 24868if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then 24869 as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. 24870Usually this means the macro was only invoked conditionally." "$LINENO" 5 24871fi 24872if test -z "${INSTALL_CERTS_TRUE}" && test -z "${INSTALL_CERTS_FALSE}"; then 24873 as_fn_error $? "conditional \"INSTALL_CERTS\" was never defined. 24874Usually this means the macro was only invoked conditionally." "$LINENO" 5 24875fi 24876if test -z "${IS_WINDOWS_TRUE}" && test -z "${IS_WINDOWS_FALSE}"; then 24877 as_fn_error $? "conditional \"IS_WINDOWS\" was never defined. 24878Usually this means the macro was only invoked conditionally." "$LINENO" 5 24879fi 24880if test -z "${IF_HAVE_OPENSSL_TRUE}" && test -z "${IF_HAVE_OPENSSL_FALSE}"; then 24881 as_fn_error $? "conditional \"IF_HAVE_OPENSSL\" was never defined. 24882Usually this means the macro was only invoked conditionally." "$LINENO" 5 24883fi 24884if test -z "${IF_MAKE_I18N_FILES_TRUE}" && test -z "${IF_MAKE_I18N_FILES_FALSE}"; then 24885 as_fn_error $? "conditional \"IF_MAKE_I18N_FILES\" was never defined. 24886Usually this means the macro was only invoked conditionally." "$LINENO" 5 24887fi 24888if test -z "${WITH_GUI_FOX16_TRUE}" && test -z "${WITH_GUI_FOX16_FALSE}"; then 24889 as_fn_error $? "conditional \"WITH_GUI_FOX16\" was never defined. 24890Usually this means the macro was only invoked conditionally." "$LINENO" 5 24891fi 24892if test -z "${WITH_GUI_GTK2_TRUE}" && test -z "${WITH_GUI_GTK2_FALSE}"; then 24893 as_fn_error $? "conditional \"WITH_GUI_GTK2\" was never defined. 24894Usually this means the macro was only invoked conditionally." "$LINENO" 5 24895fi 24896if test -z "${WITH_GUI_GTK3_TRUE}" && test -z "${WITH_GUI_GTK3_FALSE}"; then 24897 as_fn_error $? "conditional \"WITH_GUI_GTK3\" was never defined. 24898Usually this means the macro was only invoked conditionally." "$LINENO" 5 24899fi 24900if test -z "${WITH_LIBXML2_CODE_TRUE}" && test -z "${WITH_LIBXML2_CODE_FALSE}"; then 24901 as_fn_error $? "conditional \"WITH_LIBXML2_CODE\" was never defined. 24902Usually this means the macro was only invoked conditionally." "$LINENO" 5 24903fi 24904if test -z "${WITH_GUI_QT4_TRUE}" && test -z "${WITH_GUI_QT4_FALSE}"; then 24905 as_fn_error $? "conditional \"WITH_GUI_QT4\" was never defined. 24906Usually this means the macro was only invoked conditionally." "$LINENO" 5 24907fi 24908 24909: "${CONFIG_STATUS=./config.status}" 24910ac_write_fail=0 24911ac_clean_files_save=$ac_clean_files 24912ac_clean_files="$ac_clean_files $CONFIG_STATUS" 24913{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 24914$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 24915as_write_fail=0 24916cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 24917#! $SHELL 24918# Generated by $as_me. 24919# Run this file to recreate the current configuration. 24920# Compiler output produced by configure, useful for debugging 24921# configure, is in config.log if it exists. 24922 24923debug=false 24924ac_cs_recheck=false 24925ac_cs_silent=false 24926 24927SHELL=\${CONFIG_SHELL-$SHELL} 24928export SHELL 24929_ASEOF 24930cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 24931## -------------------- ## 24932## M4sh Initialization. ## 24933## -------------------- ## 24934 24935# Be more Bourne compatible 24936DUALCASE=1; export DUALCASE # for MKS sh 24937if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 24938 emulate sh 24939 NULLCMD=: 24940 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24941 # is contrary to our usage. Disable this feature. 24942 alias -g '${1+"$@"}'='"$@"' 24943 setopt NO_GLOB_SUBST 24944else 24945 case `(set -o) 2>/dev/null` in #( 24946 *posix*) : 24947 set -o posix ;; #( 24948 *) : 24949 ;; 24950esac 24951fi 24952 24953 24954as_nl=' 24955' 24956export as_nl 24957# Printing a long string crashes Solaris 7 /usr/bin/printf. 24958as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 24959as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 24960as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 24961# Prefer a ksh shell builtin over an external printf program on Solaris, 24962# but without wasting forks for bash or zsh. 24963if test -z "$BASH_VERSION$ZSH_VERSION" \ 24964 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 24965 as_echo='print -r --' 24966 as_echo_n='print -rn --' 24967elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 24968 as_echo='printf %s\n' 24969 as_echo_n='printf %s' 24970else 24971 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 24972 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 24973 as_echo_n='/usr/ucb/echo -n' 24974 else 24975 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 24976 as_echo_n_body='eval 24977 arg=$1; 24978 case $arg in #( 24979 *"$as_nl"*) 24980 expr "X$arg" : "X\\(.*\\)$as_nl"; 24981 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 24982 esac; 24983 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 24984 ' 24985 export as_echo_n_body 24986 as_echo_n='sh -c $as_echo_n_body as_echo' 24987 fi 24988 export as_echo_body 24989 as_echo='sh -c $as_echo_body as_echo' 24990fi 24991 24992# The user is always right. 24993if test "${PATH_SEPARATOR+set}" != set; then 24994 PATH_SEPARATOR=: 24995 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 24996 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 24997 PATH_SEPARATOR=';' 24998 } 24999fi 25000 25001 25002# IFS 25003# We need space, tab and new line, in precisely that order. Quoting is 25004# there to prevent editors from complaining about space-tab. 25005# (If _AS_PATH_WALK were called with IFS unset, it would disable word 25006# splitting by setting IFS to empty value.) 25007IFS=" "" $as_nl" 25008 25009# Find who we are. Look in the path if we contain no directory separator. 25010as_myself= 25011case $0 in #(( 25012 *[\\/]* ) as_myself=$0 ;; 25013 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25014for as_dir in $PATH 25015do 25016 IFS=$as_save_IFS 25017 test -z "$as_dir" && as_dir=. 25018 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 25019 done 25020IFS=$as_save_IFS 25021 25022 ;; 25023esac 25024# We did not find ourselves, most probably we were run as `sh COMMAND' 25025# in which case we are not to be found in the path. 25026if test "x$as_myself" = x; then 25027 as_myself=$0 25028fi 25029if test ! -f "$as_myself"; then 25030 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 25031 exit 1 25032fi 25033 25034# Unset variables that we do not need and which cause bugs (e.g. in 25035# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 25036# suppresses any "Segmentation fault" message there. '((' could 25037# trigger a bug in pdksh 5.2.14. 25038for as_var in BASH_ENV ENV MAIL MAILPATH 25039do eval test x\${$as_var+set} = xset \ 25040 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 25041done 25042PS1='$ ' 25043PS2='> ' 25044PS4='+ ' 25045 25046# NLS nuisances. 25047LC_ALL=C 25048export LC_ALL 25049LANGUAGE=C 25050export LANGUAGE 25051 25052# CDPATH. 25053(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25054 25055 25056# as_fn_error STATUS ERROR [LINENO LOG_FD] 25057# ---------------------------------------- 25058# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 25059# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 25060# script with STATUS, using 1 if that was 0. 25061as_fn_error () 25062{ 25063 as_status=$1; test $as_status -eq 0 && as_status=1 25064 if test "$4"; then 25065 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 25066 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 25067 fi 25068 $as_echo "$as_me: error: $2" >&2 25069 as_fn_exit $as_status 25070} # as_fn_error 25071 25072 25073# as_fn_set_status STATUS 25074# ----------------------- 25075# Set $? to STATUS, without forking. 25076as_fn_set_status () 25077{ 25078 return $1 25079} # as_fn_set_status 25080 25081# as_fn_exit STATUS 25082# ----------------- 25083# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 25084as_fn_exit () 25085{ 25086 set +e 25087 as_fn_set_status $1 25088 exit $1 25089} # as_fn_exit 25090 25091# as_fn_unset VAR 25092# --------------- 25093# Portably unset VAR. 25094as_fn_unset () 25095{ 25096 { eval $1=; unset $1;} 25097} 25098as_unset=as_fn_unset 25099# as_fn_append VAR VALUE 25100# ---------------------- 25101# Append the text in VALUE to the end of the definition contained in VAR. Take 25102# advantage of any shell optimizations that allow amortized linear growth over 25103# repeated appends, instead of the typical quadratic growth present in naive 25104# implementations. 25105if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 25106 eval 'as_fn_append () 25107 { 25108 eval $1+=\$2 25109 }' 25110else 25111 as_fn_append () 25112 { 25113 eval $1=\$$1\$2 25114 } 25115fi # as_fn_append 25116 25117# as_fn_arith ARG... 25118# ------------------ 25119# Perform arithmetic evaluation on the ARGs, and store the result in the 25120# global $as_val. Take advantage of shells that can avoid forks. The arguments 25121# must be portable across $(()) and expr. 25122if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 25123 eval 'as_fn_arith () 25124 { 25125 as_val=$(( $* )) 25126 }' 25127else 25128 as_fn_arith () 25129 { 25130 as_val=`expr "$@" || test $? -eq 1` 25131 } 25132fi # as_fn_arith 25133 25134 25135if expr a : '\(a\)' >/dev/null 2>&1 && 25136 test "X`expr 00001 : '.*\(...\)'`" = X001; then 25137 as_expr=expr 25138else 25139 as_expr=false 25140fi 25141 25142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 25143 as_basename=basename 25144else 25145 as_basename=false 25146fi 25147 25148if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 25149 as_dirname=dirname 25150else 25151 as_dirname=false 25152fi 25153 25154as_me=`$as_basename -- "$0" || 25155$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 25156 X"$0" : 'X\(//\)$' \| \ 25157 X"$0" : 'X\(/\)' \| . 2>/dev/null || 25158$as_echo X/"$0" | 25159 sed '/^.*\/\([^/][^/]*\)\/*$/{ 25160 s//\1/ 25161 q 25162 } 25163 /^X\/\(\/\/\)$/{ 25164 s//\1/ 25165 q 25166 } 25167 /^X\/\(\/\).*/{ 25168 s//\1/ 25169 q 25170 } 25171 s/.*/./; q'` 25172 25173# Avoid depending upon Character Ranges. 25174as_cr_letters='abcdefghijklmnopqrstuvwxyz' 25175as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 25176as_cr_Letters=$as_cr_letters$as_cr_LETTERS 25177as_cr_digits='0123456789' 25178as_cr_alnum=$as_cr_Letters$as_cr_digits 25179 25180ECHO_C= ECHO_N= ECHO_T= 25181case `echo -n x` in #((((( 25182-n*) 25183 case `echo 'xy\c'` in 25184 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 25185 xy) ECHO_C='\c';; 25186 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 25187 ECHO_T=' ';; 25188 esac;; 25189*) 25190 ECHO_N='-n';; 25191esac 25192 25193rm -f conf$$ conf$$.exe conf$$.file 25194if test -d conf$$.dir; then 25195 rm -f conf$$.dir/conf$$.file 25196else 25197 rm -f conf$$.dir 25198 mkdir conf$$.dir 2>/dev/null 25199fi 25200if (echo >conf$$.file) 2>/dev/null; then 25201 if ln -s conf$$.file conf$$ 2>/dev/null; then 25202 as_ln_s='ln -s' 25203 # ... but there are two gotchas: 25204 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 25205 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 25206 # In both cases, we have to default to `cp -pR'. 25207 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 25208 as_ln_s='cp -pR' 25209 elif ln conf$$.file conf$$ 2>/dev/null; then 25210 as_ln_s=ln 25211 else 25212 as_ln_s='cp -pR' 25213 fi 25214else 25215 as_ln_s='cp -pR' 25216fi 25217rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 25218rmdir conf$$.dir 2>/dev/null 25219 25220 25221# as_fn_mkdir_p 25222# ------------- 25223# Create "$as_dir" as a directory, including parents if necessary. 25224as_fn_mkdir_p () 25225{ 25226 25227 case $as_dir in #( 25228 -*) as_dir=./$as_dir;; 25229 esac 25230 test -d "$as_dir" || eval $as_mkdir_p || { 25231 as_dirs= 25232 while :; do 25233 case $as_dir in #( 25234 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 25235 *) as_qdir=$as_dir;; 25236 esac 25237 as_dirs="'$as_qdir' $as_dirs" 25238 as_dir=`$as_dirname -- "$as_dir" || 25239$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25240 X"$as_dir" : 'X\(//\)[^/]' \| \ 25241 X"$as_dir" : 'X\(//\)$' \| \ 25242 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25243$as_echo X"$as_dir" | 25244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25245 s//\1/ 25246 q 25247 } 25248 /^X\(\/\/\)[^/].*/{ 25249 s//\1/ 25250 q 25251 } 25252 /^X\(\/\/\)$/{ 25253 s//\1/ 25254 q 25255 } 25256 /^X\(\/\).*/{ 25257 s//\1/ 25258 q 25259 } 25260 s/.*/./; q'` 25261 test -d "$as_dir" && break 25262 done 25263 test -z "$as_dirs" || eval "mkdir $as_dirs" 25264 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 25265 25266 25267} # as_fn_mkdir_p 25268if mkdir -p . 2>/dev/null; then 25269 as_mkdir_p='mkdir -p "$as_dir"' 25270else 25271 test -d ./-p && rmdir ./-p 25272 as_mkdir_p=false 25273fi 25274 25275 25276# as_fn_executable_p FILE 25277# ----------------------- 25278# Test if FILE is an executable regular file. 25279as_fn_executable_p () 25280{ 25281 test -f "$1" && test -x "$1" 25282} # as_fn_executable_p 25283as_test_x='test -x' 25284as_executable_p=as_fn_executable_p 25285 25286# Sed expression to map a string onto a valid CPP name. 25287as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 25288 25289# Sed expression to map a string onto a valid variable name. 25290as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 25291 25292 25293exec 6>&1 25294## ----------------------------------- ## 25295## Main body of $CONFIG_STATUS script. ## 25296## ----------------------------------- ## 25297_ASEOF 25298test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 25299 25300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25301# Save the log message, to keep $0 and so on meaningful, and to 25302# report actual input values of CONFIG_FILES etc. instead of their 25303# values after options handling. 25304ac_log=" 25305This file was extended by $as_me, which was 25306generated by GNU Autoconf 2.69. Invocation command line was 25307 25308 CONFIG_FILES = $CONFIG_FILES 25309 CONFIG_HEADERS = $CONFIG_HEADERS 25310 CONFIG_LINKS = $CONFIG_LINKS 25311 CONFIG_COMMANDS = $CONFIG_COMMANDS 25312 $ $0 $@ 25313 25314on `(hostname || uname -n) 2>/dev/null | sed 1q` 25315" 25316 25317_ACEOF 25318 25319case $ac_config_files in *" 25320"*) set x $ac_config_files; shift; ac_config_files=$*;; 25321esac 25322 25323case $ac_config_headers in *" 25324"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 25325esac 25326 25327 25328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25329# Files that config.status was made for. 25330config_files="$ac_config_files" 25331config_headers="$ac_config_headers" 25332config_commands="$ac_config_commands" 25333 25334_ACEOF 25335 25336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25337ac_cs_usage="\ 25338\`$as_me' instantiates files and other configuration actions 25339from templates according to the current configuration. Unless the files 25340and actions are specified as TAGs, all are instantiated by default. 25341 25342Usage: $0 [OPTION]... [TAG]... 25343 25344 -h, --help print this help, then exit 25345 -V, --version print version number and configuration settings, then exit 25346 --config print configuration, then exit 25347 -q, --quiet, --silent 25348 do not print progress messages 25349 -d, --debug don't remove temporary files 25350 --recheck update $as_me by reconfiguring in the same conditions 25351 --file=FILE[:TEMPLATE] 25352 instantiate the configuration file FILE 25353 --header=FILE[:TEMPLATE] 25354 instantiate the configuration header FILE 25355 25356Configuration files: 25357$config_files 25358 25359Configuration headers: 25360$config_headers 25361 25362Configuration commands: 25363$config_commands 25364 25365Report bugs to the package provider." 25366 25367_ACEOF 25368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25369ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 25370ac_cs_version="\\ 25371config.status 25372configured by $0, generated by GNU Autoconf 2.69, 25373 with options \\"\$ac_cs_config\\" 25374 25375Copyright (C) 2012 Free Software Foundation, Inc. 25376This config.status script is free software; the Free Software Foundation 25377gives unlimited permission to copy, distribute and modify it." 25378 25379ac_pwd='$ac_pwd' 25380srcdir='$srcdir' 25381INSTALL='$INSTALL' 25382MKDIR_P='$MKDIR_P' 25383AWK='$AWK' 25384test -n "\$AWK" || AWK=awk 25385_ACEOF 25386 25387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25388# The default lists apply if the user does not specify any file. 25389ac_need_defaults=: 25390while test $# != 0 25391do 25392 case $1 in 25393 --*=?*) 25394 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25395 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 25396 ac_shift=: 25397 ;; 25398 --*=) 25399 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25400 ac_optarg= 25401 ac_shift=: 25402 ;; 25403 *) 25404 ac_option=$1 25405 ac_optarg=$2 25406 ac_shift=shift 25407 ;; 25408 esac 25409 25410 case $ac_option in 25411 # Handling of the options. 25412 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 25413 ac_cs_recheck=: ;; 25414 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 25415 $as_echo "$ac_cs_version"; exit ;; 25416 --config | --confi | --conf | --con | --co | --c ) 25417 $as_echo "$ac_cs_config"; exit ;; 25418 --debug | --debu | --deb | --de | --d | -d ) 25419 debug=: ;; 25420 --file | --fil | --fi | --f ) 25421 $ac_shift 25422 case $ac_optarg in 25423 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25424 '') as_fn_error $? "missing file argument" ;; 25425 esac 25426 as_fn_append CONFIG_FILES " '$ac_optarg'" 25427 ac_need_defaults=false;; 25428 --header | --heade | --head | --hea ) 25429 $ac_shift 25430 case $ac_optarg in 25431 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25432 esac 25433 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 25434 ac_need_defaults=false;; 25435 --he | --h) 25436 # Conflict between --help and --header 25437 as_fn_error $? "ambiguous option: \`$1' 25438Try \`$0 --help' for more information.";; 25439 --help | --hel | -h ) 25440 $as_echo "$ac_cs_usage"; exit ;; 25441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 25442 | -silent | --silent | --silen | --sile | --sil | --si | --s) 25443 ac_cs_silent=: ;; 25444 25445 # This is an error. 25446 -*) as_fn_error $? "unrecognized option: \`$1' 25447Try \`$0 --help' for more information." ;; 25448 25449 *) as_fn_append ac_config_targets " $1" 25450 ac_need_defaults=false ;; 25451 25452 esac 25453 shift 25454done 25455 25456ac_configure_extra_args= 25457 25458if $ac_cs_silent; then 25459 exec 6>/dev/null 25460 ac_configure_extra_args="$ac_configure_extra_args --silent" 25461fi 25462 25463_ACEOF 25464cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25465if \$ac_cs_recheck; then 25466 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 25467 shift 25468 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 25469 CONFIG_SHELL='$SHELL' 25470 export CONFIG_SHELL 25471 exec "\$@" 25472fi 25473 25474_ACEOF 25475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25476exec 5>>config.log 25477{ 25478 echo 25479 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 25480## Running $as_me. ## 25481_ASBOX 25482 $as_echo "$ac_log" 25483} >&5 25484 25485_ACEOF 25486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25487# 25488# INIT-COMMANDS 25489# 25490AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 25491 25492 25493# The HP-UX ksh and POSIX shell print the target directory to stdout 25494# if CDPATH is set. 25495(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25496 25497sed_quote_subst='$sed_quote_subst' 25498double_quote_subst='$double_quote_subst' 25499delay_variable_subst='$delay_variable_subst' 25500enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 25501enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 25502macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 25503macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 25504pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 25505enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 25506shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 25507SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 25508ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 25509PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 25510host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 25511host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 25512host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 25513build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 25514build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 25515build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 25516SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 25517Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 25518GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 25519EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 25520FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 25521LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 25522NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 25523LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 25524max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 25525ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 25526exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 25527lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 25528lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 25529lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 25530lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 25531lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 25532reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 25533reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 25534OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 25535deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 25536file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 25537file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 25538want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 25539DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 25540sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 25541AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 25542AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 25543archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 25544STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 25545RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 25546old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25547old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25548old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 25549lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 25550CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 25551CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 25552compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 25553GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 25554lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 25555lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 25556lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 25557lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 25558lt_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"`' 25559lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 25560nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 25561lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 25562lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 25563objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 25564MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 25565lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 25566lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 25567lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 25568lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 25569lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 25570need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 25571MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 25572DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 25573NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 25574LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 25575OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 25576OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 25577libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 25578shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 25579extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25580archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 25581enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 25582export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 25583whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 25584compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 25585old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 25586old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25587archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 25588archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25589module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 25590module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25591with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 25592allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 25593no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 25594hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 25595hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 25596hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 25597hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 25598hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 25599hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 25600hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 25601inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 25602link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 25603always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 25604export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 25605exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 25606include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 25607prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 25608postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 25609file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 25610variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 25611need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 25612need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 25613version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 25614runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 25615shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 25616shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 25617libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 25618library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 25619soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 25620install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 25621postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25622postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25623finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 25624finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 25625hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 25626sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 25627configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 25628configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 25629hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 25630enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 25631enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 25632enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 25633old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 25634striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 25635compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 25636predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 25637postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 25638predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 25639postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 25640compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 25641AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 25642LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 25643LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`' 25644reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 25645reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`' 25646reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25647reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`' 25648old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25649old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 25650compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 25651compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`' 25652GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 25653GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`' 25654lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 25655lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`' 25656lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 25657lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`' 25658lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 25659lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`' 25660lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 25661lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`' 25662lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 25663lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`' 25664archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 25665archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`' 25666enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 25667enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`' 25668export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 25669export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 25670whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 25671whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 25672compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 25673compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`' 25674old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25675old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`' 25676old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25677old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`' 25678archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25679archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 25680archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25681archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 25682module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25683module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`' 25684module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25685module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 25686with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 25687with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`' 25688allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 25689allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 25690no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 25691no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 25692hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 25693hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 25694hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 25695hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`' 25696hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 25697hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`' 25698hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 25699hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`' 25700hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 25701hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`' 25702hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 25703hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`' 25704hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 25705hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`' 25706inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 25707inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`' 25708link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 25709link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`' 25710always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 25711always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`' 25712export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25713export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`' 25714exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 25715exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`' 25716include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 25717include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`' 25718prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25719prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`' 25720postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 25721postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`' 25722file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 25723file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`' 25724hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 25725hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`' 25726compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 25727compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`' 25728predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 25729predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`' 25730postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 25731postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`' 25732predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 25733predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`' 25734postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 25735postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`' 25736compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 25737compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`' 25738 25739LTCC='$LTCC' 25740LTCFLAGS='$LTCFLAGS' 25741compiler='$compiler_DEFAULT' 25742 25743# A function that is used when there is no print builtin or printf. 25744func_fallback_echo () 25745{ 25746 eval 'cat <<_LTECHO_EOF 25747\$1 25748_LTECHO_EOF' 25749} 25750 25751# Quote evaled strings. 25752for var in SHELL \ 25753ECHO \ 25754PATH_SEPARATOR \ 25755SED \ 25756GREP \ 25757EGREP \ 25758FGREP \ 25759LD \ 25760NM \ 25761LN_S \ 25762lt_SP2NL \ 25763lt_NL2SP \ 25764reload_flag \ 25765OBJDUMP \ 25766deplibs_check_method \ 25767file_magic_cmd \ 25768file_magic_glob \ 25769want_nocaseglob \ 25770DLLTOOL \ 25771sharedlib_from_linklib_cmd \ 25772AR \ 25773AR_FLAGS \ 25774archiver_list_spec \ 25775STRIP \ 25776RANLIB \ 25777CC \ 25778CFLAGS \ 25779compiler \ 25780lt_cv_sys_global_symbol_pipe \ 25781lt_cv_sys_global_symbol_to_cdecl \ 25782lt_cv_sys_global_symbol_to_import \ 25783lt_cv_sys_global_symbol_to_c_name_address \ 25784lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 25785lt_cv_nm_interface \ 25786nm_file_list_spec \ 25787lt_cv_truncate_bin \ 25788lt_prog_compiler_no_builtin_flag \ 25789lt_prog_compiler_pic \ 25790lt_prog_compiler_wl \ 25791lt_prog_compiler_static \ 25792lt_cv_prog_compiler_c_o \ 25793need_locks \ 25794MANIFEST_TOOL \ 25795DSYMUTIL \ 25796NMEDIT \ 25797LIPO \ 25798OTOOL \ 25799OTOOL64 \ 25800shrext_cmds \ 25801export_dynamic_flag_spec \ 25802whole_archive_flag_spec \ 25803compiler_needs_object \ 25804with_gnu_ld \ 25805allow_undefined_flag \ 25806no_undefined_flag \ 25807hardcode_libdir_flag_spec \ 25808hardcode_libdir_separator \ 25809exclude_expsyms \ 25810include_expsyms \ 25811file_list_spec \ 25812variables_saved_for_relink \ 25813libname_spec \ 25814library_names_spec \ 25815soname_spec \ 25816install_override_mode \ 25817finish_eval \ 25818old_striplib \ 25819striplib \ 25820compiler_lib_search_dirs \ 25821predep_objects \ 25822postdep_objects \ 25823predeps \ 25824postdeps \ 25825compiler_lib_search_path \ 25826AS \ 25827LD_CXX \ 25828LD_RC \ 25829reload_flag_CXX \ 25830reload_flag_RC \ 25831compiler_CXX \ 25832compiler_RC \ 25833lt_prog_compiler_no_builtin_flag_CXX \ 25834lt_prog_compiler_no_builtin_flag_RC \ 25835lt_prog_compiler_pic_CXX \ 25836lt_prog_compiler_pic_RC \ 25837lt_prog_compiler_wl_CXX \ 25838lt_prog_compiler_wl_RC \ 25839lt_prog_compiler_static_CXX \ 25840lt_prog_compiler_static_RC \ 25841lt_cv_prog_compiler_c_o_CXX \ 25842lt_cv_prog_compiler_c_o_RC \ 25843export_dynamic_flag_spec_CXX \ 25844export_dynamic_flag_spec_RC \ 25845whole_archive_flag_spec_CXX \ 25846whole_archive_flag_spec_RC \ 25847compiler_needs_object_CXX \ 25848compiler_needs_object_RC \ 25849with_gnu_ld_CXX \ 25850with_gnu_ld_RC \ 25851allow_undefined_flag_CXX \ 25852allow_undefined_flag_RC \ 25853no_undefined_flag_CXX \ 25854no_undefined_flag_RC \ 25855hardcode_libdir_flag_spec_CXX \ 25856hardcode_libdir_flag_spec_RC \ 25857hardcode_libdir_separator_CXX \ 25858hardcode_libdir_separator_RC \ 25859exclude_expsyms_CXX \ 25860exclude_expsyms_RC \ 25861include_expsyms_CXX \ 25862include_expsyms_RC \ 25863file_list_spec_CXX \ 25864file_list_spec_RC \ 25865compiler_lib_search_dirs_CXX \ 25866compiler_lib_search_dirs_RC \ 25867predep_objects_CXX \ 25868predep_objects_RC \ 25869postdep_objects_CXX \ 25870postdep_objects_RC \ 25871predeps_CXX \ 25872predeps_RC \ 25873postdeps_CXX \ 25874postdeps_RC \ 25875compiler_lib_search_path_CXX \ 25876compiler_lib_search_path_RC; do 25877 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 25878 *[\\\\\\\`\\"\\\$]*) 25879 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 25880 ;; 25881 *) 25882 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25883 ;; 25884 esac 25885done 25886 25887# Double-quote double-evaled strings. 25888for var in reload_cmds \ 25889old_postinstall_cmds \ 25890old_postuninstall_cmds \ 25891old_archive_cmds \ 25892extract_expsyms_cmds \ 25893old_archive_from_new_cmds \ 25894old_archive_from_expsyms_cmds \ 25895archive_cmds \ 25896archive_expsym_cmds \ 25897module_cmds \ 25898module_expsym_cmds \ 25899export_symbols_cmds \ 25900prelink_cmds \ 25901postlink_cmds \ 25902postinstall_cmds \ 25903postuninstall_cmds \ 25904finish_cmds \ 25905sys_lib_search_path_spec \ 25906configure_time_dlsearch_path \ 25907configure_time_lt_sys_library_path \ 25908reload_cmds_CXX \ 25909reload_cmds_RC \ 25910old_archive_cmds_CXX \ 25911old_archive_cmds_RC \ 25912old_archive_from_new_cmds_CXX \ 25913old_archive_from_new_cmds_RC \ 25914old_archive_from_expsyms_cmds_CXX \ 25915old_archive_from_expsyms_cmds_RC \ 25916archive_cmds_CXX \ 25917archive_cmds_RC \ 25918archive_expsym_cmds_CXX \ 25919archive_expsym_cmds_RC \ 25920module_cmds_CXX \ 25921module_cmds_RC \ 25922module_expsym_cmds_CXX \ 25923module_expsym_cmds_RC \ 25924export_symbols_cmds_CXX \ 25925export_symbols_cmds_RC \ 25926prelink_cmds_CXX \ 25927prelink_cmds_RC \ 25928postlink_cmds_CXX \ 25929postlink_cmds_RC; do 25930 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 25931 *[\\\\\\\`\\"\\\$]*) 25932 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 25933 ;; 25934 *) 25935 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25936 ;; 25937 esac 25938done 25939 25940ac_aux_dir='$ac_aux_dir' 25941 25942# See if we are running on zsh, and set the options that allow our 25943# commands through without removal of \ escapes INIT. 25944if test -n "\${ZSH_VERSION+set}"; then 25945 setopt NO_GLOB_SUBST 25946fi 25947 25948 25949 PACKAGE='$PACKAGE' 25950 VERSION='$VERSION' 25951 RM='$RM' 25952 ofile='$ofile' 25953 25954 25955 25956 25957 25958 25959 25960 25961_ACEOF 25962 25963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25964 25965# Handling of arguments. 25966for ac_config_target in $ac_config_targets 25967do 25968 case $ac_config_target in 25969 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 25970 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 25971 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 25972 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;; 25973 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 25974 "admin/Makefile") CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;; 25975 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 25976 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; 25977 "gwenhywfar-config.in") CONFIG_FILES="$CONFIG_FILES gwenhywfar-config.in" ;; 25978 "gwenhywfar.pc") CONFIG_FILES="$CONFIG_FILES gwenhywfar.pc" ;; 25979 "gwenhywfar-config.cmake") CONFIG_FILES="$CONFIG_FILES gwenhywfar-config.cmake" ;; 25980 "gwenhywfar-config-version.cmake") CONFIG_FILES="$CONFIG_FILES gwenhywfar-config-version.cmake" ;; 25981 "gwenhywfar.spec") CONFIG_FILES="$CONFIG_FILES gwenhywfar.spec" ;; 25982 "gwenhywfar.iss") CONFIG_FILES="$CONFIG_FILES gwenhywfar.iss" ;; 25983 "checks/Makefile") CONFIG_FILES="$CONFIG_FILES checks/Makefile" ;; 25984 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; 25985 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 25986 "doc/dialog/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dialog/Makefile" ;; 25987 "doc/dialog/images/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dialog/images/Makefile" ;; 25988 "doc/inherit/Makefile") CONFIG_FILES="$CONFIG_FILES doc/inherit/Makefile" ;; 25989 "doc/plugindescr.xsd") CONFIG_FILES="$CONFIG_FILES doc/plugindescr.xsd" ;; 25990 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 25991 "src/types.h") CONFIG_FILES="$CONFIG_FILES src/types.h" ;; 25992 "src/ressource.rc") CONFIG_FILES="$CONFIG_FILES src/ressource.rc" ;; 25993 "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;; 25994 "src/base/Makefile") CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;; 25995 "src/crypt3/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypt3/Makefile" ;; 25996 "src/cryptmsg/Makefile") CONFIG_FILES="$CONFIG_FILES src/cryptmsg/Makefile" ;; 25997 "src/crypttoken/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypttoken/Makefile" ;; 25998 "src/gui/Makefile") CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;; 25999 "src/sio/Makefile") CONFIG_FILES="$CONFIG_FILES src/sio/Makefile" ;; 26000 "src/html/Makefile") CONFIG_FILES="$CONFIG_FILES src/html/Makefile" ;; 26001 "src/os/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/Makefile" ;; 26002 "src/os/posix/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/posix/Makefile" ;; 26003 "src/os/posix/system.h") CONFIG_FILES="$CONFIG_FILES src/os/posix/system.h" ;; 26004 "src/os/windows/Makefile") CONFIG_FILES="$CONFIG_FILES src/os/windows/Makefile" ;; 26005 "src/os/windows/system.h") CONFIG_FILES="$CONFIG_FILES src/os/windows/system.h" ;; 26006 "src/parser/Makefile") CONFIG_FILES="$CONFIG_FILES src/parser/Makefile" ;; 26007 "src/sar/Makefile") CONFIG_FILES="$CONFIG_FILES src/sar/Makefile" ;; 26008 "src/test_framework/Makefile") CONFIG_FILES="$CONFIG_FILES src/test_framework/Makefile" ;; 26009 "src/xmlcmd/Makefile") CONFIG_FILES="$CONFIG_FILES src/xmlcmd/Makefile" ;; 26010 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; 26011 "plugins/dbio/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/dbio/Makefile" ;; 26012 "plugins/dbio/csv/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/dbio/csv/Makefile" ;; 26013 "plugins/dbio/csv/csv.xml") CONFIG_FILES="$CONFIG_FILES plugins/dbio/csv/csv.xml" ;; 26014 "plugins/dbio/csv/ressource.rc") CONFIG_FILES="$CONFIG_FILES plugins/dbio/csv/ressource.rc" ;; 26015 "plugins/dbio/olddb/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/dbio/olddb/Makefile" ;; 26016 "plugins/dbio/olddb/olddb.xml") CONFIG_FILES="$CONFIG_FILES plugins/dbio/olddb/olddb.xml" ;; 26017 "plugins/dbio/olddb/ressource.rc") CONFIG_FILES="$CONFIG_FILES plugins/dbio/olddb/ressource.rc" ;; 26018 "plugins/dbio/xmldb/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/dbio/xmldb/Makefile" ;; 26019 "plugins/dbio/xmldb/xmldb.xml") CONFIG_FILES="$CONFIG_FILES plugins/dbio/xmldb/xmldb.xml" ;; 26020 "plugins/dbio/xmldb/ressource.rc") CONFIG_FILES="$CONFIG_FILES plugins/dbio/xmldb/ressource.rc" ;; 26021 "plugins/ct/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/ct/Makefile" ;; 26022 "plugins/ct/ohbci/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/ct/ohbci/Makefile" ;; 26023 "plugins/ct/ohbci/ohbci.xml") CONFIG_FILES="$CONFIG_FILES plugins/ct/ohbci/ohbci.xml" ;; 26024 "plugins/ct/ohbci/ressource.rc") CONFIG_FILES="$CONFIG_FILES plugins/ct/ohbci/ressource.rc" ;; 26025 "plugins/configmgr/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/configmgr/Makefile" ;; 26026 "plugins/configmgr/dir/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/configmgr/dir/Makefile" ;; 26027 "plugins/configmgr/dir/dir.xml") CONFIG_FILES="$CONFIG_FILES plugins/configmgr/dir/dir.xml" ;; 26028 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 26029 "tools/xmlmerge/Makefile") CONFIG_FILES="$CONFIG_FILES tools/xmlmerge/Makefile" ;; 26030 "tools/typemaker/Makefile") CONFIG_FILES="$CONFIG_FILES tools/typemaker/Makefile" ;; 26031 "tools/typemaker2/Makefile") CONFIG_FILES="$CONFIG_FILES tools/typemaker2/Makefile" ;; 26032 "tools/typemaker2/types/Makefile") CONFIG_FILES="$CONFIG_FILES tools/typemaker2/types/Makefile" ;; 26033 "tools/typemaker2/types/c/Makefile") CONFIG_FILES="$CONFIG_FILES tools/typemaker2/types/c/Makefile" ;; 26034 "tools/gcttool/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gcttool/Makefile" ;; 26035 "tools/gsa/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gsa/Makefile" ;; 26036 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 26037 "gui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;; 26038 "gui/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES gui/cpp/Makefile" ;; 26039 "gui/cpp/gwengui-cpp-config.cmake") CONFIG_FILES="$CONFIG_FILES gui/cpp/gwengui-cpp-config.cmake" ;; 26040 "gui/cpp/gwengui-cpp-config-version.cmake") CONFIG_FILES="$CONFIG_FILES gui/cpp/gwengui-cpp-config-version.cmake" ;; 26041 "gui/qt4/Makefile") CONFIG_FILES="$CONFIG_FILES gui/qt4/Makefile" ;; 26042 "gui/qt4/gwengui-qt4.pc") CONFIG_FILES="$CONFIG_FILES gui/qt4/gwengui-qt4.pc" ;; 26043 "gui/qt4/gwengui-qt4-config.cmake") CONFIG_FILES="$CONFIG_FILES gui/qt4/gwengui-qt4-config.cmake" ;; 26044 "gui/qt4/gwengui-qt4-config-version.cmake") CONFIG_FILES="$CONFIG_FILES gui/qt4/gwengui-qt4-config-version.cmake" ;; 26045 "gui/qt5/Makefile") CONFIG_FILES="$CONFIG_FILES gui/qt5/Makefile" ;; 26046 "gui/qt5/gwengui-qt5.pc") CONFIG_FILES="$CONFIG_FILES gui/qt5/gwengui-qt5.pc" ;; 26047 "gui/qt5/gwengui-qt5-config.cmake") CONFIG_FILES="$CONFIG_FILES gui/qt5/gwengui-qt5-config.cmake" ;; 26048 "gui/qt5/gwengui-qt5-config-version.cmake") CONFIG_FILES="$CONFIG_FILES gui/qt5/gwengui-qt5-config-version.cmake" ;; 26049 "gui/fox16/Makefile") CONFIG_FILES="$CONFIG_FILES gui/fox16/Makefile" ;; 26050 "gui/fox16/gwengui-fox16.pc") CONFIG_FILES="$CONFIG_FILES gui/fox16/gwengui-fox16.pc" ;; 26051 "gui/gtk2/Makefile") CONFIG_FILES="$CONFIG_FILES gui/gtk2/Makefile" ;; 26052 "gui/gtk2/gwengui-gtk2.pc") CONFIG_FILES="$CONFIG_FILES gui/gtk2/gwengui-gtk2.pc" ;; 26053 "gui/gtk3/Makefile") CONFIG_FILES="$CONFIG_FILES gui/gtk3/Makefile" ;; 26054 "gui/gtk3/gwengui-gtk3.pc") CONFIG_FILES="$CONFIG_FILES gui/gtk3/gwengui-gtk3.pc" ;; 26055 "gui/cocoa/Makefile") CONFIG_FILES="$CONFIG_FILES gui/cocoa/Makefile" ;; 26056 "gui/testdialogs/Makefile") CONFIG_FILES="$CONFIG_FILES gui/testdialogs/Makefile" ;; 26057 26058 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 26059 esac 26060done 26061 26062 26063# If the user did not use the arguments to specify the items to instantiate, 26064# then the envvar interface is used. Set only those that are not. 26065# We use the long form for the default assignment because of an extremely 26066# bizarre bug on SunOS 4.1.3. 26067if $ac_need_defaults; then 26068 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 26069 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 26070 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 26071fi 26072 26073# Have a temporary directory for convenience. Make it in the build tree 26074# simply because there is no reason against having it here, and in addition, 26075# creating and moving files from /tmp can sometimes cause problems. 26076# Hook for its removal unless debugging. 26077# Note that there is a small window in which the directory will not be cleaned: 26078# after its creation but before its name has been assigned to `$tmp'. 26079$debug || 26080{ 26081 tmp= ac_tmp= 26082 trap 'exit_status=$? 26083 : "${ac_tmp:=$tmp}" 26084 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 26085' 0 26086 trap 'as_fn_exit 1' 1 2 13 15 26087} 26088# Create a (secure) tmp directory for tmp files. 26089 26090{ 26091 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 26092 test -d "$tmp" 26093} || 26094{ 26095 tmp=./conf$$-$RANDOM 26096 (umask 077 && mkdir "$tmp") 26097} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 26098ac_tmp=$tmp 26099 26100# Set up the scripts for CONFIG_FILES section. 26101# No need to generate them if there are no CONFIG_FILES. 26102# This happens for instance with `./config.status config.h'. 26103if test -n "$CONFIG_FILES"; then 26104 26105 26106ac_cr=`echo X | tr X '\015'` 26107# On cygwin, bash can eat \r inside `` if the user requested igncr. 26108# But we know of no other shell where ac_cr would be empty at this 26109# point, so we can use a bashism as a fallback. 26110if test "x$ac_cr" = x; then 26111 eval ac_cr=\$\'\\r\' 26112fi 26113ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 26114if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 26115 ac_cs_awk_cr='\\r' 26116else 26117 ac_cs_awk_cr=$ac_cr 26118fi 26119 26120echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 26121_ACEOF 26122 26123 26124{ 26125 echo "cat >conf$$subs.awk <<_ACEOF" && 26126 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 26127 echo "_ACEOF" 26128} >conf$$subs.sh || 26129 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26130ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 26131ac_delim='%!_!# ' 26132for ac_last_try in false false false false false :; do 26133 . ./conf$$subs.sh || 26134 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26135 26136 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 26137 if test $ac_delim_n = $ac_delim_num; then 26138 break 26139 elif $ac_last_try; then 26140 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26141 else 26142 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26143 fi 26144done 26145rm -f conf$$subs.sh 26146 26147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26148cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 26149_ACEOF 26150sed -n ' 26151h 26152s/^/S["/; s/!.*/"]=/ 26153p 26154g 26155s/^[^!]*!// 26156:repl 26157t repl 26158s/'"$ac_delim"'$// 26159t delim 26160:nl 26161h 26162s/\(.\{148\}\)..*/\1/ 26163t more1 26164s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 26165p 26166n 26167b repl 26168:more1 26169s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26170p 26171g 26172s/.\{148\}// 26173t nl 26174:delim 26175h 26176s/\(.\{148\}\)..*/\1/ 26177t more2 26178s/["\\]/\\&/g; s/^/"/; s/$/"/ 26179p 26180b 26181:more2 26182s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26183p 26184g 26185s/.\{148\}// 26186t delim 26187' <conf$$subs.awk | sed ' 26188/^[^""]/{ 26189 N 26190 s/\n// 26191} 26192' >>$CONFIG_STATUS || ac_write_fail=1 26193rm -f conf$$subs.awk 26194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26195_ACAWK 26196cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 26197 for (key in S) S_is_set[key] = 1 26198 FS = "" 26199 26200} 26201{ 26202 line = $ 0 26203 nfields = split(line, field, "@") 26204 substed = 0 26205 len = length(field[1]) 26206 for (i = 2; i < nfields; i++) { 26207 key = field[i] 26208 keylen = length(key) 26209 if (S_is_set[key]) { 26210 value = S[key] 26211 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 26212 len += length(value) + length(field[++i]) 26213 substed = 1 26214 } else 26215 len += 1 + keylen 26216 } 26217 26218 print line 26219} 26220 26221_ACAWK 26222_ACEOF 26223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26224if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 26225 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 26226else 26227 cat 26228fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 26229 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 26230_ACEOF 26231 26232# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 26233# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 26234# trailing colons and then remove the whole line if VPATH becomes empty 26235# (actually we leave an empty line to preserve line numbers). 26236if test "x$srcdir" = x.; then 26237 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 26238h 26239s/// 26240s/^/:/ 26241s/[ ]*$/:/ 26242s/:\$(srcdir):/:/g 26243s/:\${srcdir}:/:/g 26244s/:@srcdir@:/:/g 26245s/^:*// 26246s/:*$// 26247x 26248s/\(=[ ]*\).*/\1/ 26249G 26250s/\n// 26251s/^[^=]*=[ ]*$// 26252}' 26253fi 26254 26255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26256fi # test -n "$CONFIG_FILES" 26257 26258# Set up the scripts for CONFIG_HEADERS section. 26259# No need to generate them if there are no CONFIG_HEADERS. 26260# This happens for instance with `./config.status Makefile'. 26261if test -n "$CONFIG_HEADERS"; then 26262cat >"$ac_tmp/defines.awk" <<\_ACAWK || 26263BEGIN { 26264_ACEOF 26265 26266# Transform confdefs.h into an awk script `defines.awk', embedded as 26267# here-document in config.status, that substitutes the proper values into 26268# config.h.in to produce config.h. 26269 26270# Create a delimiter string that does not exist in confdefs.h, to ease 26271# handling of long lines. 26272ac_delim='%!_!# ' 26273for ac_last_try in false false :; do 26274 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 26275 if test -z "$ac_tt"; then 26276 break 26277 elif $ac_last_try; then 26278 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 26279 else 26280 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26281 fi 26282done 26283 26284# For the awk script, D is an array of macro values keyed by name, 26285# likewise P contains macro parameters if any. Preserve backslash 26286# newline sequences. 26287 26288ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 26289sed -n ' 26290s/.\{148\}/&'"$ac_delim"'/g 26291t rset 26292:rset 26293s/^[ ]*#[ ]*define[ ][ ]*/ / 26294t def 26295d 26296:def 26297s/\\$// 26298t bsnl 26299s/["\\]/\\&/g 26300s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26301D["\1"]=" \3"/p 26302s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 26303d 26304:bsnl 26305s/["\\]/\\&/g 26306s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26307D["\1"]=" \3\\\\\\n"\\/p 26308t cont 26309s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 26310t cont 26311d 26312:cont 26313n 26314s/.\{148\}/&'"$ac_delim"'/g 26315t clear 26316:clear 26317s/\\$// 26318t bsnlc 26319s/["\\]/\\&/g; s/^/"/; s/$/"/p 26320d 26321:bsnlc 26322s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 26323b cont 26324' <confdefs.h | sed ' 26325s/'"$ac_delim"'/"\\\ 26326"/g' >>$CONFIG_STATUS || ac_write_fail=1 26327 26328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26329 for (key in D) D_is_set[key] = 1 26330 FS = "" 26331} 26332/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 26333 line = \$ 0 26334 split(line, arg, " ") 26335 if (arg[1] == "#") { 26336 defundef = arg[2] 26337 mac1 = arg[3] 26338 } else { 26339 defundef = substr(arg[1], 2) 26340 mac1 = arg[2] 26341 } 26342 split(mac1, mac2, "(") #) 26343 macro = mac2[1] 26344 prefix = substr(line, 1, index(line, defundef) - 1) 26345 if (D_is_set[macro]) { 26346 # Preserve the white space surrounding the "#". 26347 print prefix "define", macro P[macro] D[macro] 26348 next 26349 } else { 26350 # Replace #undef with comments. This is necessary, for example, 26351 # in the case of _POSIX_SOURCE, which is predefined and required 26352 # on some systems where configure will not decide to define it. 26353 if (defundef == "undef") { 26354 print "/*", prefix defundef, macro, "*/" 26355 next 26356 } 26357 } 26358} 26359{ print } 26360_ACAWK 26361_ACEOF 26362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26363 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 26364fi # test -n "$CONFIG_HEADERS" 26365 26366 26367eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 26368shift 26369for ac_tag 26370do 26371 case $ac_tag in 26372 :[FHLC]) ac_mode=$ac_tag; continue;; 26373 esac 26374 case $ac_mode$ac_tag in 26375 :[FHL]*:*);; 26376 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 26377 :[FH]-) ac_tag=-:-;; 26378 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 26379 esac 26380 ac_save_IFS=$IFS 26381 IFS=: 26382 set x $ac_tag 26383 IFS=$ac_save_IFS 26384 shift 26385 ac_file=$1 26386 shift 26387 26388 case $ac_mode in 26389 :L) ac_source=$1;; 26390 :[FH]) 26391 ac_file_inputs= 26392 for ac_f 26393 do 26394 case $ac_f in 26395 -) ac_f="$ac_tmp/stdin";; 26396 *) # Look for the file first in the build tree, then in the source tree 26397 # (if the path is not absolute). The absolute path cannot be DOS-style, 26398 # because $ac_f cannot contain `:'. 26399 test -f "$ac_f" || 26400 case $ac_f in 26401 [\\/$]*) false;; 26402 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 26403 esac || 26404 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 26405 esac 26406 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 26407 as_fn_append ac_file_inputs " '$ac_f'" 26408 done 26409 26410 # Let's still pretend it is `configure' which instantiates (i.e., don't 26411 # use $as_me), people would be surprised to read: 26412 # /* config.h. Generated by config.status. */ 26413 configure_input='Generated from '` 26414 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 26415 `' by configure.' 26416 if test x"$ac_file" != x-; then 26417 configure_input="$ac_file. $configure_input" 26418 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 26419$as_echo "$as_me: creating $ac_file" >&6;} 26420 fi 26421 # Neutralize special characters interpreted by sed in replacement strings. 26422 case $configure_input in #( 26423 *\&* | *\|* | *\\* ) 26424 ac_sed_conf_input=`$as_echo "$configure_input" | 26425 sed 's/[\\\\&|]/\\\\&/g'`;; #( 26426 *) ac_sed_conf_input=$configure_input;; 26427 esac 26428 26429 case $ac_tag in 26430 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 26431 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 26432 esac 26433 ;; 26434 esac 26435 26436 ac_dir=`$as_dirname -- "$ac_file" || 26437$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26438 X"$ac_file" : 'X\(//\)[^/]' \| \ 26439 X"$ac_file" : 'X\(//\)$' \| \ 26440 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 26441$as_echo X"$ac_file" | 26442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26443 s//\1/ 26444 q 26445 } 26446 /^X\(\/\/\)[^/].*/{ 26447 s//\1/ 26448 q 26449 } 26450 /^X\(\/\/\)$/{ 26451 s//\1/ 26452 q 26453 } 26454 /^X\(\/\).*/{ 26455 s//\1/ 26456 q 26457 } 26458 s/.*/./; q'` 26459 as_dir="$ac_dir"; as_fn_mkdir_p 26460 ac_builddir=. 26461 26462case "$ac_dir" in 26463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 26464*) 26465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 26466 # A ".." for each directory in $ac_dir_suffix. 26467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 26468 case $ac_top_builddir_sub in 26469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 26470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 26471 esac ;; 26472esac 26473ac_abs_top_builddir=$ac_pwd 26474ac_abs_builddir=$ac_pwd$ac_dir_suffix 26475# for backward compatibility: 26476ac_top_builddir=$ac_top_build_prefix 26477 26478case $srcdir in 26479 .) # We are building in place. 26480 ac_srcdir=. 26481 ac_top_srcdir=$ac_top_builddir_sub 26482 ac_abs_top_srcdir=$ac_pwd ;; 26483 [\\/]* | ?:[\\/]* ) # Absolute name. 26484 ac_srcdir=$srcdir$ac_dir_suffix; 26485 ac_top_srcdir=$srcdir 26486 ac_abs_top_srcdir=$srcdir ;; 26487 *) # Relative name. 26488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 26489 ac_top_srcdir=$ac_top_build_prefix$srcdir 26490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 26491esac 26492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 26493 26494 26495 case $ac_mode in 26496 :F) 26497 # 26498 # CONFIG_FILE 26499 # 26500 26501 case $INSTALL in 26502 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 26503 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 26504 esac 26505 ac_MKDIR_P=$MKDIR_P 26506 case $MKDIR_P in 26507 [\\/$]* | ?:[\\/]* ) ;; 26508 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 26509 esac 26510_ACEOF 26511 26512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26513# If the template does not know about datarootdir, expand it. 26514# FIXME: This hack should be removed a few years after 2.60. 26515ac_datarootdir_hack=; ac_datarootdir_seen= 26516ac_sed_dataroot=' 26517/datarootdir/ { 26518 p 26519 q 26520} 26521/@datadir@/p 26522/@docdir@/p 26523/@infodir@/p 26524/@localedir@/p 26525/@mandir@/p' 26526case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 26527*datarootdir*) ac_datarootdir_seen=yes;; 26528*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 26529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 26530$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 26531_ACEOF 26532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26533 ac_datarootdir_hack=' 26534 s&@datadir@&$datadir&g 26535 s&@docdir@&$docdir&g 26536 s&@infodir@&$infodir&g 26537 s&@localedir@&$localedir&g 26538 s&@mandir@&$mandir&g 26539 s&\\\${datarootdir}&$datarootdir&g' ;; 26540esac 26541_ACEOF 26542 26543# Neutralize VPATH when `$srcdir' = `.'. 26544# Shell code in configure.ac might set extrasub. 26545# FIXME: do we really want to maintain this feature? 26546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26547ac_sed_extra="$ac_vpsub 26548$extrasub 26549_ACEOF 26550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26551:t 26552/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 26553s|@configure_input@|$ac_sed_conf_input|;t t 26554s&@top_builddir@&$ac_top_builddir_sub&;t t 26555s&@top_build_prefix@&$ac_top_build_prefix&;t t 26556s&@srcdir@&$ac_srcdir&;t t 26557s&@abs_srcdir@&$ac_abs_srcdir&;t t 26558s&@top_srcdir@&$ac_top_srcdir&;t t 26559s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 26560s&@builddir@&$ac_builddir&;t t 26561s&@abs_builddir@&$ac_abs_builddir&;t t 26562s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 26563s&@INSTALL@&$ac_INSTALL&;t t 26564s&@MKDIR_P@&$ac_MKDIR_P&;t t 26565$ac_datarootdir_hack 26566" 26567eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 26568 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26569 26570test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 26571 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 26572 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 26573 "$ac_tmp/out"`; test -z "$ac_out"; } && 26574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26575which seems to be undefined. Please make sure it is defined" >&5 26576$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26577which seems to be undefined. Please make sure it is defined" >&2;} 26578 26579 rm -f "$ac_tmp/stdin" 26580 case $ac_file in 26581 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 26582 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 26583 esac \ 26584 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26585 ;; 26586 :H) 26587 # 26588 # CONFIG_HEADER 26589 # 26590 if test x"$ac_file" != x-; then 26591 { 26592 $as_echo "/* $configure_input */" \ 26593 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 26594 } >"$ac_tmp/config.h" \ 26595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26596 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 26597 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 26598$as_echo "$as_me: $ac_file is unchanged" >&6;} 26599 else 26600 rm -f "$ac_file" 26601 mv "$ac_tmp/config.h" "$ac_file" \ 26602 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26603 fi 26604 else 26605 $as_echo "/* $configure_input */" \ 26606 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 26607 || as_fn_error $? "could not create -" "$LINENO" 5 26608 fi 26609# Compute "$ac_file"'s index in $config_headers. 26610_am_arg="$ac_file" 26611_am_stamp_count=1 26612for _am_header in $config_headers :; do 26613 case $_am_header in 26614 $_am_arg | $_am_arg:* ) 26615 break ;; 26616 * ) 26617 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 26618 esac 26619done 26620echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 26621$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26622 X"$_am_arg" : 'X\(//\)[^/]' \| \ 26623 X"$_am_arg" : 'X\(//\)$' \| \ 26624 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 26625$as_echo X"$_am_arg" | 26626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26627 s//\1/ 26628 q 26629 } 26630 /^X\(\/\/\)[^/].*/{ 26631 s//\1/ 26632 q 26633 } 26634 /^X\(\/\/\)$/{ 26635 s//\1/ 26636 q 26637 } 26638 /^X\(\/\).*/{ 26639 s//\1/ 26640 q 26641 } 26642 s/.*/./; q'`/stamp-h$_am_stamp_count 26643 ;; 26644 26645 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 26646$as_echo "$as_me: executing $ac_file commands" >&6;} 26647 ;; 26648 esac 26649 26650 26651 case $ac_file$ac_mode in 26652 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 26653 # Older Autoconf quotes --file arguments for eval, but not when files 26654 # are listed without --file. Let's play safe and only enable the eval 26655 # if we detect the quoting. 26656 case $CONFIG_FILES in 26657 *\'*) eval set x "$CONFIG_FILES" ;; 26658 *) set x $CONFIG_FILES ;; 26659 esac 26660 shift 26661 for mf 26662 do 26663 # Strip MF so we end up with the name of the file. 26664 mf=`echo "$mf" | sed -e 's/:.*$//'` 26665 # Check whether this is an Automake generated Makefile or not. 26666 # We used to match only the files named 'Makefile.in', but 26667 # some people rename them; so instead we look at the file content. 26668 # Grep'ing the first line is not enough: some people post-process 26669 # each Makefile.in and add a new line on top of each file to say so. 26670 # Grep'ing the whole file is not good either: AIX grep has a line 26671 # limit of 2048, but all sed's we know have understand at least 4000. 26672 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 26673 dirpart=`$as_dirname -- "$mf" || 26674$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26675 X"$mf" : 'X\(//\)[^/]' \| \ 26676 X"$mf" : 'X\(//\)$' \| \ 26677 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 26678$as_echo X"$mf" | 26679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26680 s//\1/ 26681 q 26682 } 26683 /^X\(\/\/\)[^/].*/{ 26684 s//\1/ 26685 q 26686 } 26687 /^X\(\/\/\)$/{ 26688 s//\1/ 26689 q 26690 } 26691 /^X\(\/\).*/{ 26692 s//\1/ 26693 q 26694 } 26695 s/.*/./; q'` 26696 else 26697 continue 26698 fi 26699 # Extract the definition of DEPDIR, am__include, and am__quote 26700 # from the Makefile without running 'make'. 26701 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 26702 test -z "$DEPDIR" && continue 26703 am__include=`sed -n 's/^am__include = //p' < "$mf"` 26704 test -z "$am__include" && continue 26705 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 26706 # Find all dependency output files, they are included files with 26707 # $(DEPDIR) in their names. We invoke sed twice because it is the 26708 # simplest approach to changing $(DEPDIR) to its actual value in the 26709 # expansion. 26710 for file in `sed -n " 26711 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 26712 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 26713 # Make sure the directory exists. 26714 test -f "$dirpart/$file" && continue 26715 fdir=`$as_dirname -- "$file" || 26716$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26717 X"$file" : 'X\(//\)[^/]' \| \ 26718 X"$file" : 'X\(//\)$' \| \ 26719 X"$file" : 'X\(/\)' \| . 2>/dev/null || 26720$as_echo X"$file" | 26721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26722 s//\1/ 26723 q 26724 } 26725 /^X\(\/\/\)[^/].*/{ 26726 s//\1/ 26727 q 26728 } 26729 /^X\(\/\/\)$/{ 26730 s//\1/ 26731 q 26732 } 26733 /^X\(\/\).*/{ 26734 s//\1/ 26735 q 26736 } 26737 s/.*/./; q'` 26738 as_dir=$dirpart/$fdir; as_fn_mkdir_p 26739 # echo "creating $dirpart/$file" 26740 echo '# dummy' > "$dirpart/$file" 26741 done 26742 done 26743} 26744 ;; 26745 "libtool":C) 26746 26747 # See if we are running on zsh, and set the options that allow our 26748 # commands through without removal of \ escapes. 26749 if test -n "${ZSH_VERSION+set}"; then 26750 setopt NO_GLOB_SUBST 26751 fi 26752 26753 cfgfile=${ofile}T 26754 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 26755 $RM "$cfgfile" 26756 26757 cat <<_LT_EOF >> "$cfgfile" 26758#! $SHELL 26759# Generated automatically by $as_me ($PACKAGE) $VERSION 26760# NOTE: Changes made to this file will be lost: look at ltmain.sh. 26761 26762# Provide generalized library-building support services. 26763# Written by Gordon Matzigkeit, 1996 26764 26765# Copyright (C) 2014 Free Software Foundation, Inc. 26766# This is free software; see the source for copying conditions. There is NO 26767# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 26768 26769# GNU Libtool is free software; you can redistribute it and/or modify 26770# it under the terms of the GNU General Public License as published by 26771# the Free Software Foundation; either version 2 of of the License, or 26772# (at your option) any later version. 26773# 26774# As a special exception to the GNU General Public License, if you 26775# distribute this file as part of a program or library that is built 26776# using GNU Libtool, you may include this file under the same 26777# distribution terms that you use for the rest of that program. 26778# 26779# GNU Libtool is distributed in the hope that it will be useful, but 26780# WITHOUT ANY WARRANTY; without even the implied warranty of 26781# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 26782# GNU General Public License for more details. 26783# 26784# You should have received a copy of the GNU General Public License 26785# along with this program. If not, see <http://www.gnu.org/licenses/>. 26786 26787 26788# The names of the tagged configurations supported by this script. 26789available_tags='CXX RC ' 26790 26791# Configured defaults for sys_lib_dlsearch_path munging. 26792: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 26793 26794# ### BEGIN LIBTOOL CONFIG 26795 26796# Whether or not to build static libraries. 26797build_old_libs=$enable_static 26798 26799# Whether or not to build shared libraries. 26800build_libtool_libs=$enable_shared 26801 26802# Which release of libtool.m4 was used? 26803macro_version=$macro_version 26804macro_revision=$macro_revision 26805 26806# What type of objects to build. 26807pic_mode=$pic_mode 26808 26809# Whether or not to optimize for fast installation. 26810fast_install=$enable_fast_install 26811 26812# Shared archive member basename,for filename based shared library versioning on AIX. 26813shared_archive_member_spec=$shared_archive_member_spec 26814 26815# Shell to use when invoking shell scripts. 26816SHELL=$lt_SHELL 26817 26818# An echo program that protects backslashes. 26819ECHO=$lt_ECHO 26820 26821# The PATH separator for the build system. 26822PATH_SEPARATOR=$lt_PATH_SEPARATOR 26823 26824# The host system. 26825host_alias=$host_alias 26826host=$host 26827host_os=$host_os 26828 26829# The build system. 26830build_alias=$build_alias 26831build=$build 26832build_os=$build_os 26833 26834# A sed program that does not truncate output. 26835SED=$lt_SED 26836 26837# Sed that helps us avoid accidentally triggering echo(1) options like -n. 26838Xsed="\$SED -e 1s/^X//" 26839 26840# A grep program that handles long lines. 26841GREP=$lt_GREP 26842 26843# An ERE matcher. 26844EGREP=$lt_EGREP 26845 26846# A literal string matcher. 26847FGREP=$lt_FGREP 26848 26849# A BSD- or MS-compatible name lister. 26850NM=$lt_NM 26851 26852# Whether we need soft or hard links. 26853LN_S=$lt_LN_S 26854 26855# What is the maximum length of a command? 26856max_cmd_len=$max_cmd_len 26857 26858# Object file suffix (normally "o"). 26859objext=$ac_objext 26860 26861# Executable file suffix (normally ""). 26862exeext=$exeext 26863 26864# whether the shell understands "unset". 26865lt_unset=$lt_unset 26866 26867# turn spaces into newlines. 26868SP2NL=$lt_lt_SP2NL 26869 26870# turn newlines into spaces. 26871NL2SP=$lt_lt_NL2SP 26872 26873# convert \$build file names to \$host format. 26874to_host_file_cmd=$lt_cv_to_host_file_cmd 26875 26876# convert \$build files to toolchain format. 26877to_tool_file_cmd=$lt_cv_to_tool_file_cmd 26878 26879# An object symbol dumper. 26880OBJDUMP=$lt_OBJDUMP 26881 26882# Method to check whether dependent libraries are shared objects. 26883deplibs_check_method=$lt_deplibs_check_method 26884 26885# Command to use when deplibs_check_method = "file_magic". 26886file_magic_cmd=$lt_file_magic_cmd 26887 26888# How to find potential files when deplibs_check_method = "file_magic". 26889file_magic_glob=$lt_file_magic_glob 26890 26891# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 26892want_nocaseglob=$lt_want_nocaseglob 26893 26894# DLL creation program. 26895DLLTOOL=$lt_DLLTOOL 26896 26897# Command to associate shared and link libraries. 26898sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 26899 26900# The archiver. 26901AR=$lt_AR 26902 26903# Flags to create an archive. 26904AR_FLAGS=$lt_AR_FLAGS 26905 26906# How to feed a file listing to the archiver. 26907archiver_list_spec=$lt_archiver_list_spec 26908 26909# A symbol stripping program. 26910STRIP=$lt_STRIP 26911 26912# Commands used to install an old-style archive. 26913RANLIB=$lt_RANLIB 26914old_postinstall_cmds=$lt_old_postinstall_cmds 26915old_postuninstall_cmds=$lt_old_postuninstall_cmds 26916 26917# Whether to use a lock for old archive extraction. 26918lock_old_archive_extraction=$lock_old_archive_extraction 26919 26920# A C compiler. 26921LTCC=$lt_CC 26922 26923# LTCC compiler flags. 26924LTCFLAGS=$lt_CFLAGS 26925 26926# Take the output of nm and produce a listing of raw symbols and C names. 26927global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 26928 26929# Transform the output of nm in a proper C declaration. 26930global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 26931 26932# Transform the output of nm into a list of symbols to manually relocate. 26933global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 26934 26935# Transform the output of nm in a C name address pair. 26936global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 26937 26938# Transform the output of nm in a C name address pair when lib prefix is needed. 26939global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 26940 26941# The name lister interface. 26942nm_interface=$lt_lt_cv_nm_interface 26943 26944# Specify filename containing input files for \$NM. 26945nm_file_list_spec=$lt_nm_file_list_spec 26946 26947# The root where to search for dependent libraries,and where our libraries should be installed. 26948lt_sysroot=$lt_sysroot 26949 26950# Command to truncate a binary pipe. 26951lt_truncate_bin=$lt_lt_cv_truncate_bin 26952 26953# The name of the directory that contains temporary libtool files. 26954objdir=$objdir 26955 26956# Used to examine libraries when file_magic_cmd begins with "file". 26957MAGIC_CMD=$MAGIC_CMD 26958 26959# Must we lock files when doing compilation? 26960need_locks=$lt_need_locks 26961 26962# Manifest tool. 26963MANIFEST_TOOL=$lt_MANIFEST_TOOL 26964 26965# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 26966DSYMUTIL=$lt_DSYMUTIL 26967 26968# Tool to change global to local symbols on Mac OS X. 26969NMEDIT=$lt_NMEDIT 26970 26971# Tool to manipulate fat objects and archives on Mac OS X. 26972LIPO=$lt_LIPO 26973 26974# ldd/readelf like tool for Mach-O binaries on Mac OS X. 26975OTOOL=$lt_OTOOL 26976 26977# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 26978OTOOL64=$lt_OTOOL64 26979 26980# Old archive suffix (normally "a"). 26981libext=$libext 26982 26983# Shared library suffix (normally ".so"). 26984shrext_cmds=$lt_shrext_cmds 26985 26986# The commands to extract the exported symbol list from a shared archive. 26987extract_expsyms_cmds=$lt_extract_expsyms_cmds 26988 26989# Variables whose values should be saved in libtool wrapper scripts and 26990# restored at link time. 26991variables_saved_for_relink=$lt_variables_saved_for_relink 26992 26993# Do we need the "lib" prefix for modules? 26994need_lib_prefix=$need_lib_prefix 26995 26996# Do we need a version for libraries? 26997need_version=$need_version 26998 26999# Library versioning type. 27000version_type=$version_type 27001 27002# Shared library runtime path variable. 27003runpath_var=$runpath_var 27004 27005# Shared library path variable. 27006shlibpath_var=$shlibpath_var 27007 27008# Is shlibpath searched before the hard-coded library search path? 27009shlibpath_overrides_runpath=$shlibpath_overrides_runpath 27010 27011# Format of library name prefix. 27012libname_spec=$lt_libname_spec 27013 27014# List of archive names. First name is the real one, the rest are links. 27015# The last name is the one that the linker finds with -lNAME 27016library_names_spec=$lt_library_names_spec 27017 27018# The coded name of the library, if different from the real name. 27019soname_spec=$lt_soname_spec 27020 27021# Permission mode override for installation of shared libraries. 27022install_override_mode=$lt_install_override_mode 27023 27024# Command to use after installation of a shared archive. 27025postinstall_cmds=$lt_postinstall_cmds 27026 27027# Command to use after uninstallation of a shared archive. 27028postuninstall_cmds=$lt_postuninstall_cmds 27029 27030# Commands used to finish a libtool library installation in a directory. 27031finish_cmds=$lt_finish_cmds 27032 27033# As "finish_cmds", except a single script fragment to be evaled but 27034# not shown. 27035finish_eval=$lt_finish_eval 27036 27037# Whether we should hardcode library paths into libraries. 27038hardcode_into_libs=$hardcode_into_libs 27039 27040# Compile-time system search path for libraries. 27041sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 27042 27043# Detected run-time system search path for libraries. 27044sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 27045 27046# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 27047configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 27048 27049# Whether dlopen is supported. 27050dlopen_support=$enable_dlopen 27051 27052# Whether dlopen of programs is supported. 27053dlopen_self=$enable_dlopen_self 27054 27055# Whether dlopen of statically linked programs is supported. 27056dlopen_self_static=$enable_dlopen_self_static 27057 27058# Commands to strip libraries. 27059old_striplib=$lt_old_striplib 27060striplib=$lt_striplib 27061 27062# Assembler program. 27063AS=$lt_AS 27064 27065 27066# The linker used to build libraries. 27067LD=$lt_LD 27068 27069# How to create reloadable object files. 27070reload_flag=$lt_reload_flag 27071reload_cmds=$lt_reload_cmds 27072 27073# Commands used to build an old-style archive. 27074old_archive_cmds=$lt_old_archive_cmds 27075 27076# A language specific compiler. 27077CC=$lt_compiler 27078 27079# Is the compiler the GNU compiler? 27080with_gcc=$GCC 27081 27082# Compiler flag to turn off builtin functions. 27083no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 27084 27085# Additional compiler flags for building library objects. 27086pic_flag=$lt_lt_prog_compiler_pic 27087 27088# How to pass a linker flag through the compiler. 27089wl=$lt_lt_prog_compiler_wl 27090 27091# Compiler flag to prevent dynamic linking. 27092link_static_flag=$lt_lt_prog_compiler_static 27093 27094# Does compiler simultaneously support -c and -o options? 27095compiler_c_o=$lt_lt_cv_prog_compiler_c_o 27096 27097# Whether or not to add -lc for building shared libraries. 27098build_libtool_need_lc=$archive_cmds_need_lc 27099 27100# Whether or not to disallow shared libs when runtime libs are static. 27101allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 27102 27103# Compiler flag to allow reflexive dlopens. 27104export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 27105 27106# Compiler flag to generate shared objects directly from archives. 27107whole_archive_flag_spec=$lt_whole_archive_flag_spec 27108 27109# Whether the compiler copes with passing no objects directly. 27110compiler_needs_object=$lt_compiler_needs_object 27111 27112# Create an old-style archive from a shared archive. 27113old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 27114 27115# Create a temporary old-style archive to link instead of a shared archive. 27116old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 27117 27118# Commands used to build a shared archive. 27119archive_cmds=$lt_archive_cmds 27120archive_expsym_cmds=$lt_archive_expsym_cmds 27121 27122# Commands used to build a loadable module if different from building 27123# a shared archive. 27124module_cmds=$lt_module_cmds 27125module_expsym_cmds=$lt_module_expsym_cmds 27126 27127# Whether we are building with GNU ld or not. 27128with_gnu_ld=$lt_with_gnu_ld 27129 27130# Flag that allows shared libraries with undefined symbols to be built. 27131allow_undefined_flag=$lt_allow_undefined_flag 27132 27133# Flag that enforces no undefined symbols. 27134no_undefined_flag=$lt_no_undefined_flag 27135 27136# Flag to hardcode \$libdir into a binary during linking. 27137# This must work even if \$libdir does not exist 27138hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 27139 27140# Whether we need a single "-rpath" flag with a separated argument. 27141hardcode_libdir_separator=$lt_hardcode_libdir_separator 27142 27143# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27144# DIR into the resulting binary. 27145hardcode_direct=$hardcode_direct 27146 27147# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27148# DIR into the resulting binary and the resulting library dependency is 27149# "absolute",i.e impossible to change by setting \$shlibpath_var if the 27150# library is relocated. 27151hardcode_direct_absolute=$hardcode_direct_absolute 27152 27153# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 27154# into the resulting binary. 27155hardcode_minus_L=$hardcode_minus_L 27156 27157# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 27158# into the resulting binary. 27159hardcode_shlibpath_var=$hardcode_shlibpath_var 27160 27161# Set to "yes" if building a shared library automatically hardcodes DIR 27162# into the library and all subsequent libraries and executables linked 27163# against it. 27164hardcode_automatic=$hardcode_automatic 27165 27166# Set to yes if linker adds runtime paths of dependent libraries 27167# to runtime path list. 27168inherit_rpath=$inherit_rpath 27169 27170# Whether libtool must link a program against all its dependency libraries. 27171link_all_deplibs=$link_all_deplibs 27172 27173# Set to "yes" if exported symbols are required. 27174always_export_symbols=$always_export_symbols 27175 27176# The commands to list exported symbols. 27177export_symbols_cmds=$lt_export_symbols_cmds 27178 27179# Symbols that should not be listed in the preloaded symbols. 27180exclude_expsyms=$lt_exclude_expsyms 27181 27182# Symbols that must always be exported. 27183include_expsyms=$lt_include_expsyms 27184 27185# Commands necessary for linking programs (against libraries) with templates. 27186prelink_cmds=$lt_prelink_cmds 27187 27188# Commands necessary for finishing linking programs. 27189postlink_cmds=$lt_postlink_cmds 27190 27191# Specify filename containing input files. 27192file_list_spec=$lt_file_list_spec 27193 27194# How to hardcode a shared library path into an executable. 27195hardcode_action=$hardcode_action 27196 27197# The directories searched by this compiler when creating a shared library. 27198compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 27199 27200# Dependencies to place before and after the objects being linked to 27201# create a shared library. 27202predep_objects=$lt_predep_objects 27203postdep_objects=$lt_postdep_objects 27204predeps=$lt_predeps 27205postdeps=$lt_postdeps 27206 27207# The library search path used internally by the compiler when linking 27208# a shared library. 27209compiler_lib_search_path=$lt_compiler_lib_search_path 27210 27211# ### END LIBTOOL CONFIG 27212 27213_LT_EOF 27214 27215 cat <<'_LT_EOF' >> "$cfgfile" 27216 27217# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 27218 27219# func_munge_path_list VARIABLE PATH 27220# ----------------------------------- 27221# VARIABLE is name of variable containing _space_ separated list of 27222# directories to be munged by the contents of PATH, which is string 27223# having a format: 27224# "DIR[:DIR]:" 27225# string "DIR[ DIR]" will be prepended to VARIABLE 27226# ":DIR[:DIR]" 27227# string "DIR[ DIR]" will be appended to VARIABLE 27228# "DIRP[:DIRP]::[DIRA:]DIRA" 27229# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 27230# "DIRA[ DIRA]" will be appended to VARIABLE 27231# "DIR[:DIR]" 27232# VARIABLE will be replaced by "DIR[ DIR]" 27233func_munge_path_list () 27234{ 27235 case x$2 in 27236 x) 27237 ;; 27238 *:) 27239 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 27240 ;; 27241 x:*) 27242 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 27243 ;; 27244 *::*) 27245 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 27246 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 27247 ;; 27248 *) 27249 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 27250 ;; 27251 esac 27252} 27253 27254 27255# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 27256func_cc_basename () 27257{ 27258 for cc_temp in $*""; do 27259 case $cc_temp in 27260 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 27261 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 27262 \-*) ;; 27263 *) break;; 27264 esac 27265 done 27266 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 27267} 27268 27269 27270# ### END FUNCTIONS SHARED WITH CONFIGURE 27271 27272_LT_EOF 27273 27274 case $host_os in 27275 aix3*) 27276 cat <<\_LT_EOF >> "$cfgfile" 27277# AIX sometimes has problems with the GCC collect2 program. For some 27278# reason, if we set the COLLECT_NAMES environment variable, the problems 27279# vanish in a puff of smoke. 27280if test set != "${COLLECT_NAMES+set}"; then 27281 COLLECT_NAMES= 27282 export COLLECT_NAMES 27283fi 27284_LT_EOF 27285 ;; 27286 esac 27287 27288 27289ltmain=$ac_aux_dir/ltmain.sh 27290 27291 27292 # We use sed instead of cat because bash on DJGPP gets confused if 27293 # if finds mixed CR/LF and LF-only lines. Since sed operates in 27294 # text mode, it properly converts lines to CR/LF. This bash problem 27295 # is reportedly fixed, but why not run on old versions too? 27296 sed '$q' "$ltmain" >> "$cfgfile" \ 27297 || (rm -f "$cfgfile"; exit 1) 27298 27299 mv -f "$cfgfile" "$ofile" || 27300 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 27301 chmod +x "$ofile" 27302 27303 27304 cat <<_LT_EOF >> "$ofile" 27305 27306# ### BEGIN LIBTOOL TAG CONFIG: CXX 27307 27308# The linker used to build libraries. 27309LD=$lt_LD_CXX 27310 27311# How to create reloadable object files. 27312reload_flag=$lt_reload_flag_CXX 27313reload_cmds=$lt_reload_cmds_CXX 27314 27315# Commands used to build an old-style archive. 27316old_archive_cmds=$lt_old_archive_cmds_CXX 27317 27318# A language specific compiler. 27319CC=$lt_compiler_CXX 27320 27321# Is the compiler the GNU compiler? 27322with_gcc=$GCC_CXX 27323 27324# Compiler flag to turn off builtin functions. 27325no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 27326 27327# Additional compiler flags for building library objects. 27328pic_flag=$lt_lt_prog_compiler_pic_CXX 27329 27330# How to pass a linker flag through the compiler. 27331wl=$lt_lt_prog_compiler_wl_CXX 27332 27333# Compiler flag to prevent dynamic linking. 27334link_static_flag=$lt_lt_prog_compiler_static_CXX 27335 27336# Does compiler simultaneously support -c and -o options? 27337compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 27338 27339# Whether or not to add -lc for building shared libraries. 27340build_libtool_need_lc=$archive_cmds_need_lc_CXX 27341 27342# Whether or not to disallow shared libs when runtime libs are static. 27343allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 27344 27345# Compiler flag to allow reflexive dlopens. 27346export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 27347 27348# Compiler flag to generate shared objects directly from archives. 27349whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 27350 27351# Whether the compiler copes with passing no objects directly. 27352compiler_needs_object=$lt_compiler_needs_object_CXX 27353 27354# Create an old-style archive from a shared archive. 27355old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 27356 27357# Create a temporary old-style archive to link instead of a shared archive. 27358old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 27359 27360# Commands used to build a shared archive. 27361archive_cmds=$lt_archive_cmds_CXX 27362archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 27363 27364# Commands used to build a loadable module if different from building 27365# a shared archive. 27366module_cmds=$lt_module_cmds_CXX 27367module_expsym_cmds=$lt_module_expsym_cmds_CXX 27368 27369# Whether we are building with GNU ld or not. 27370with_gnu_ld=$lt_with_gnu_ld_CXX 27371 27372# Flag that allows shared libraries with undefined symbols to be built. 27373allow_undefined_flag=$lt_allow_undefined_flag_CXX 27374 27375# Flag that enforces no undefined symbols. 27376no_undefined_flag=$lt_no_undefined_flag_CXX 27377 27378# Flag to hardcode \$libdir into a binary during linking. 27379# This must work even if \$libdir does not exist 27380hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 27381 27382# Whether we need a single "-rpath" flag with a separated argument. 27383hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 27384 27385# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27386# DIR into the resulting binary. 27387hardcode_direct=$hardcode_direct_CXX 27388 27389# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27390# DIR into the resulting binary and the resulting library dependency is 27391# "absolute",i.e impossible to change by setting \$shlibpath_var if the 27392# library is relocated. 27393hardcode_direct_absolute=$hardcode_direct_absolute_CXX 27394 27395# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 27396# into the resulting binary. 27397hardcode_minus_L=$hardcode_minus_L_CXX 27398 27399# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 27400# into the resulting binary. 27401hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 27402 27403# Set to "yes" if building a shared library automatically hardcodes DIR 27404# into the library and all subsequent libraries and executables linked 27405# against it. 27406hardcode_automatic=$hardcode_automatic_CXX 27407 27408# Set to yes if linker adds runtime paths of dependent libraries 27409# to runtime path list. 27410inherit_rpath=$inherit_rpath_CXX 27411 27412# Whether libtool must link a program against all its dependency libraries. 27413link_all_deplibs=$link_all_deplibs_CXX 27414 27415# Set to "yes" if exported symbols are required. 27416always_export_symbols=$always_export_symbols_CXX 27417 27418# The commands to list exported symbols. 27419export_symbols_cmds=$lt_export_symbols_cmds_CXX 27420 27421# Symbols that should not be listed in the preloaded symbols. 27422exclude_expsyms=$lt_exclude_expsyms_CXX 27423 27424# Symbols that must always be exported. 27425include_expsyms=$lt_include_expsyms_CXX 27426 27427# Commands necessary for linking programs (against libraries) with templates. 27428prelink_cmds=$lt_prelink_cmds_CXX 27429 27430# Commands necessary for finishing linking programs. 27431postlink_cmds=$lt_postlink_cmds_CXX 27432 27433# Specify filename containing input files. 27434file_list_spec=$lt_file_list_spec_CXX 27435 27436# How to hardcode a shared library path into an executable. 27437hardcode_action=$hardcode_action_CXX 27438 27439# The directories searched by this compiler when creating a shared library. 27440compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 27441 27442# Dependencies to place before and after the objects being linked to 27443# create a shared library. 27444predep_objects=$lt_predep_objects_CXX 27445postdep_objects=$lt_postdep_objects_CXX 27446predeps=$lt_predeps_CXX 27447postdeps=$lt_postdeps_CXX 27448 27449# The library search path used internally by the compiler when linking 27450# a shared library. 27451compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 27452 27453# ### END LIBTOOL TAG CONFIG: CXX 27454_LT_EOF 27455 27456 27457 cat <<_LT_EOF >> "$ofile" 27458 27459# ### BEGIN LIBTOOL TAG CONFIG: RC 27460 27461# The linker used to build libraries. 27462LD=$lt_LD_RC 27463 27464# How to create reloadable object files. 27465reload_flag=$lt_reload_flag_RC 27466reload_cmds=$lt_reload_cmds_RC 27467 27468# Commands used to build an old-style archive. 27469old_archive_cmds=$lt_old_archive_cmds_RC 27470 27471# A language specific compiler. 27472CC=$lt_compiler_RC 27473 27474# Is the compiler the GNU compiler? 27475with_gcc=$GCC_RC 27476 27477# Compiler flag to turn off builtin functions. 27478no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 27479 27480# Additional compiler flags for building library objects. 27481pic_flag=$lt_lt_prog_compiler_pic_RC 27482 27483# How to pass a linker flag through the compiler. 27484wl=$lt_lt_prog_compiler_wl_RC 27485 27486# Compiler flag to prevent dynamic linking. 27487link_static_flag=$lt_lt_prog_compiler_static_RC 27488 27489# Does compiler simultaneously support -c and -o options? 27490compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 27491 27492# Whether or not to add -lc for building shared libraries. 27493build_libtool_need_lc=$archive_cmds_need_lc_RC 27494 27495# Whether or not to disallow shared libs when runtime libs are static. 27496allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 27497 27498# Compiler flag to allow reflexive dlopens. 27499export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 27500 27501# Compiler flag to generate shared objects directly from archives. 27502whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 27503 27504# Whether the compiler copes with passing no objects directly. 27505compiler_needs_object=$lt_compiler_needs_object_RC 27506 27507# Create an old-style archive from a shared archive. 27508old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 27509 27510# Create a temporary old-style archive to link instead of a shared archive. 27511old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 27512 27513# Commands used to build a shared archive. 27514archive_cmds=$lt_archive_cmds_RC 27515archive_expsym_cmds=$lt_archive_expsym_cmds_RC 27516 27517# Commands used to build a loadable module if different from building 27518# a shared archive. 27519module_cmds=$lt_module_cmds_RC 27520module_expsym_cmds=$lt_module_expsym_cmds_RC 27521 27522# Whether we are building with GNU ld or not. 27523with_gnu_ld=$lt_with_gnu_ld_RC 27524 27525# Flag that allows shared libraries with undefined symbols to be built. 27526allow_undefined_flag=$lt_allow_undefined_flag_RC 27527 27528# Flag that enforces no undefined symbols. 27529no_undefined_flag=$lt_no_undefined_flag_RC 27530 27531# Flag to hardcode \$libdir into a binary during linking. 27532# This must work even if \$libdir does not exist 27533hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 27534 27535# Whether we need a single "-rpath" flag with a separated argument. 27536hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 27537 27538# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27539# DIR into the resulting binary. 27540hardcode_direct=$hardcode_direct_RC 27541 27542# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27543# DIR into the resulting binary and the resulting library dependency is 27544# "absolute",i.e impossible to change by setting \$shlibpath_var if the 27545# library is relocated. 27546hardcode_direct_absolute=$hardcode_direct_absolute_RC 27547 27548# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 27549# into the resulting binary. 27550hardcode_minus_L=$hardcode_minus_L_RC 27551 27552# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 27553# into the resulting binary. 27554hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 27555 27556# Set to "yes" if building a shared library automatically hardcodes DIR 27557# into the library and all subsequent libraries and executables linked 27558# against it. 27559hardcode_automatic=$hardcode_automatic_RC 27560 27561# Set to yes if linker adds runtime paths of dependent libraries 27562# to runtime path list. 27563inherit_rpath=$inherit_rpath_RC 27564 27565# Whether libtool must link a program against all its dependency libraries. 27566link_all_deplibs=$link_all_deplibs_RC 27567 27568# Set to "yes" if exported symbols are required. 27569always_export_symbols=$always_export_symbols_RC 27570 27571# The commands to list exported symbols. 27572export_symbols_cmds=$lt_export_symbols_cmds_RC 27573 27574# Symbols that should not be listed in the preloaded symbols. 27575exclude_expsyms=$lt_exclude_expsyms_RC 27576 27577# Symbols that must always be exported. 27578include_expsyms=$lt_include_expsyms_RC 27579 27580# Commands necessary for linking programs (against libraries) with templates. 27581prelink_cmds=$lt_prelink_cmds_RC 27582 27583# Commands necessary for finishing linking programs. 27584postlink_cmds=$lt_postlink_cmds_RC 27585 27586# Specify filename containing input files. 27587file_list_spec=$lt_file_list_spec_RC 27588 27589# How to hardcode a shared library path into an executable. 27590hardcode_action=$hardcode_action_RC 27591 27592# The directories searched by this compiler when creating a shared library. 27593compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 27594 27595# Dependencies to place before and after the objects being linked to 27596# create a shared library. 27597predep_objects=$lt_predep_objects_RC 27598postdep_objects=$lt_postdep_objects_RC 27599predeps=$lt_predeps_RC 27600postdeps=$lt_postdeps_RC 27601 27602# The library search path used internally by the compiler when linking 27603# a shared library. 27604compiler_lib_search_path=$lt_compiler_lib_search_path_RC 27605 27606# ### END LIBTOOL TAG CONFIG: RC 27607_LT_EOF 27608 27609 ;; 27610 27611 esac 27612done # for ac_tag 27613 27614 27615as_fn_exit 0 27616_ACEOF 27617ac_clean_files=$ac_clean_files_save 27618 27619test $ac_write_fail = 0 || 27620 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 27621 27622 27623# configure is writing to config.log, and then calls config.status. 27624# config.status does its own redirection, appending to config.log. 27625# Unfortunately, on DOS this fails, as config.log is still kept open 27626# by configure, so config.status won't be able to write to it; its 27627# output is simply discarded. So we exec the FD to /dev/null, 27628# effectively closing config.log, so it can be properly (re)opened and 27629# appended to by config.status. When coming back to configure, we 27630# need to make the FD available again. 27631if test "$no_create" != yes; then 27632 ac_cs_success=: 27633 ac_config_status_args= 27634 test "$silent" = yes && 27635 ac_config_status_args="$ac_config_status_args --quiet" 27636 exec 5>/dev/null 27637 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 27638 exec 5>>config.log 27639 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27640 # would make configure fail if this is the last instruction. 27641 $ac_cs_success || as_fn_exit 1 27642fi 27643if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 27644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 27645$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 27646fi 27647 27648 27649 27650 27651 27652###------------------------------------------------------------------------- 27653# 27654# create header directory, make symlinks 27655# 27656HEADER_DIRS="src src/base src/crypt3 src/cryptmsg src/crypttoken src/sio src/os src/os/${GWEN_OS} src/gui src/html" 27657HEADER_DIRS="${HEADER_DIRS} src/parser src/sar src/xmlcmd src/test_framework" 27658lprefix="${srcdir}" 27659lprefix=`( cd ${lprefix} ; pwd )` 27660 27661rm -Rf gwenhywfar5 2>/dev/null 27662mkdir -p gwenhywfar5/gwenhywfar 27663for d in ${HEADER_DIRS}; do 27664 hfiles=`( cd "${srcdir}/${d}" && ls *.h 2>/dev/null )` 27665 for f in ${hfiles}; do 27666 case ${f} in 27667 *_l.h | *_p.h) 27668 ;; 27669 *) 27670 ln -s "${lprefix}/${d}/${f}" "gwenhywfar5/gwenhywfar/${f}" 27671 ;; 27672 esac 27673 done 27674done 27675#ln -s "${lprefix}/src/os/$OS_TYPE/system.h" "gwenhywfar5/gwenhywfar/system.h" 2>/dev/null 27676 27677 27678 27679# cpp 27680# 27681rm -Rf gwenhywfar5/gwen-gui-cpp 2>/dev/null 27682mkdir -p gwenhywfar5/gwen-gui-cpp 27683for d in gui/cpp; do 27684 hfiles=`( cd "${srcdir}/${d}" && ls *.hpp *.h 2>/dev/null )` 27685 for f in ${hfiles}; do 27686 case ${f} in 27687 *_l.hpp | *_p.hpp) 27688 ;; 27689 *) 27690 ln -s "${lprefix}/${d}/${f}" "gwenhywfar5/gwen-gui-cpp/${f}" 27691 ;; 27692 esac 27693 done 27694done 27695 27696 27697 27698# qt4 27699# 27700rm -Rf gwenhywfar5/gwen-gui-qt4 2>/dev/null 27701mkdir -p gwenhywfar5/gwen-gui-qt4 27702for d in gui/qt4; do 27703 hfiles=`( cd "${srcdir}/${d}" && ls *.hpp *.h 2>/dev/null )` 27704 for f in ${hfiles}; do 27705 case ${f} in 27706 *_l.hpp | *_p.hpp | qt4_gui_*.hpp) 27707 ;; 27708 *) 27709 ln -s "${lprefix}/${d}/${f}" "gwenhywfar5/gwen-gui-qt4/${f}" 27710 ;; 27711 esac 27712 done 27713done 27714 27715# qt5 27716# 27717rm -Rf gwenhywfar5/gwen-gui-qt5 2>/dev/null 27718mkdir -p gwenhywfar5/gwen-gui-qt5 27719for d in gui/qt5; do 27720 hfiles=`( cd "${srcdir}/${d}" && ls *.hpp *.h 2>/dev/null )` 27721 for f in ${hfiles}; do 27722 case ${f} in 27723 *_l.hpp | *_p.hpp | qt5_gui_*.hpp) 27724 ;; 27725 *) 27726 ln -s "${lprefix}/${d}/${f}" "gwenhywfar5/gwen-gui-qt5/${f}" 27727 ;; 27728 esac 27729 done 27730done 27731 27732 27733# fox16 27734# 27735rm -Rf gwenhywfar5/gwen-gui-fox16 2>/dev/null 27736mkdir -p gwenhywfar5/gwen-gui-fox16 27737for d in gui/fox16; do 27738 hfiles=`( cd "${srcdir}/${d}" && ls *.hpp *.h 2>/dev/null )` 27739 for f in ${hfiles}; do 27740 case ${f} in 27741 *_l.hpp | *_p.hpp | fox16_gui_*.hpp) 27742 ;; 27743 *) 27744 ln -s "${lprefix}/${d}/${f}" "gwenhywfar5/gwen-gui-fox16/${f}" 27745 ;; 27746 esac 27747 done 27748done 27749 27750 27751# gtk2 27752# 27753rm -Rf gwenhywfar5/gwen-gui-gtk2 2>/dev/null 27754mkdir -p gwenhywfar5/gwen-gui-gtk2 27755for d in gui/gtk2; do 27756 hfiles=`( cd "${srcdir}/${d}" && ls *.h 2>/dev/null )` 27757 for f in ${hfiles}; do 27758 case ${f} in 27759 *_l.h | *_p.h | gtk2_gui_*.h) 27760 ;; 27761 *) 27762 ln -s "${lprefix}/${d}/${f}" "gwenhywfar5/gwen-gui-gtk2/${f}" 27763 ;; 27764 esac 27765 done 27766done 27767 27768 27769# gtk3 27770# 27771rm -Rf gwenhywfar5/gwen-gui-gtk3 2>/dev/null 27772mkdir -p gwenhywfar5/gwen-gui-gtk3 27773for d in gui/gtk3; do 27774 hfiles=`( cd "${srcdir}/${d}" && ls *.h 2>/dev/null )` 27775 for f in ${hfiles}; do 27776 case ${f} in 27777 *_l.h | *_p.h | gtk3_gui_*.h) 27778 ;; 27779 *) 27780 ln -s "${lprefix}/${d}/${f}" "gwenhywfar5/gwen-gui-gtk3/${f}" 27781 ;; 27782 esac 27783 done 27784done 27785 27786 27787# cocoa 27788# 27789rm -Rf gwenhywfar5/gwen-gui-cocoa 2>/dev/null 27790mkdir -p gwenhywfar5/gwen-gui-cocoa 27791for d in gui/cocoa; do 27792 hfiles=`( cd "${srcdir}/${d}" && ls *.h 2>/dev/null )` 27793 for f in ${hfiles}; do 27794 case ${f} in 27795 *_l.h | *_p.h | gtk2_gui_*.h) 27796 ;; 27797 *) 27798 ln -s "${lprefix}/${d}/${f}" "gwenhywfar5/gwen-gui-cocoa/${f}" 27799 ;; 27800 esac 27801 done 27802done 27803 27804 27805 27806 27807###------------------------------------------------------------------------- 27808# 27809# summary 27810# 27811 27812echo 27813echo "Summary" 27814echo "=============================================" 27815echo "Version : $GWENHYWFAR_VERSION_FULL_STRING" 27816echo "System : $OSYSTEM" 27817echo "Installation Folder : $prefix" 27818echo "Local Installation Mode : $enable_local_install" 27819echo "Plugin Installation Folder : $gwenhywfar_plugindir" 27820echo "Plugin Search Folder : $gwenhywfar_plugin_searchdir" 27821echo "Data Search Folder : $gwenhywfar_data_searchdir" 27822echo "Locale Search Folder : $gwenhywfar_locale_searchdir" 27823echo "Config Search Folder : $gwenhywfar_cfg_searchdir" 27824echo "Buffer Default Hard Limit : $gwenhywfar_buffer_hardlimit" 27825echo "Symbol Visibility : $visibility_supported" 27826echo "OpenSSL Support for gct-tool : $ssl_available" 27827echo "GUI Support : $gwenhywfar_guis" 27828echo "Use system-wide certificates : $enable_system_certs" 27829echo "Compiling test code enabled : $enable_testcode" 27830echo "Compile LibXML2 code : $gwen_with_libxml2_code" 27831 27832 27833echo 27834echo "Plugins" 27835echo "=============================================" 27836echo " Crypt token plugins :$gwenhywfar_plugins_ct_dirs" 27837echo " DBIO plugins :$gwenhywfar_plugins_dbio_dirs" 27838echo " ConfigManager plugins :$gwenhywfar_plugins_cfgmgr_dirs" 27839 27840echo 27841echo "You can now use the command 'make' (or on *BSD 'gmake') to " 27842echo "build Gwenhywfar." 27843echo 27844 27845 27846