1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for nip2 8.7.1. 4# 5# Report bugs to <vipsip@jiscmail.ac.uk>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: vipsip@jiscmail.ac.uk about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='nip2' 592PACKAGE_TARNAME='nip2' 593PACKAGE_VERSION='8.7.1' 594PACKAGE_STRING='nip2 8.7.1' 595PACKAGE_BUGREPORT='vipsip@jiscmail.ac.uk' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638TOP_SRCDIR 639IP_LIBS 640IP_CFLAGS 641UPDATE_DESKTOP_FALSE 642UPDATE_DESKTOP_TRUE 643UPDATE_DESKTOP_DATABASE 644UPDATE_MIME_DATABASE 645XDG_OPEN 646GSL_LIBS 647GSL_CFLAGS 648LIBGVC_LIBS 649LIBGVC_CFLAGS 650LIBGOFFICE_LIBS 651LIBGOFFICE_CFLAGS 652LIBGSF_LIBS 653LIBGSF_CFLAGS 654FFTW3_LIBS 655FFTW3_CFLAGS 656ALLOCA 657REQUIRED_PACKAGES_LIBS 658REQUIRED_PACKAGES_CFLAGS 659PKG_CONFIG_LIBDIR 660PKG_CONFIG_PATH 661PKG_CONFIG 662MKINSTALLDIRS 663POSUB 664POFILES 665PO_IN_DATADIR_FALSE 666PO_IN_DATADIR_TRUE 667INTLLIBS 668INSTOBJEXT 669GMOFILES 670DATADIRNAME 671CATOBJEXT 672CATALOGS 673XGETTEXT 674GMSGFMT 675MSGFMT_OPTS 676MSGFMT 677INTL_MACOSX_LIBS 678USE_NLS 679GETTEXT_PACKAGE 680CPP 681LT_SYS_LIBRARY_PATH 682OTOOL64 683OTOOL 684LIPO 685NMEDIT 686DSYMUTIL 687MANIFEST_TOOL 688ac_ct_AR 689NM 690ac_ct_DUMPBIN 691DUMPBIN 692FGREP 693EGREP 694GREP 695SED 696LIBTOOL 697LD 698AS 699AR 700BISON 701RANLIB 702OBJDUMP 703DLLTOOL 704DLLWRAP 705WINDRES 706LN_S 707LEXLIB 708LEX_OUTPUT_ROOT 709LEX 710am__fastdepCC_FALSE 711am__fastdepCC_TRUE 712CCDEPMODE 713am__nodep 714AMDEPBACKSLASH 715AMDEP_FALSE 716AMDEP_TRUE 717am__include 718DEPDIR 719OBJEXT 720EXEEXT 721ac_ct_CC 722CPPFLAGS 723LDFLAGS 724CFLAGS 725CC 726OS_WIN32_FALSE 727OS_WIN32_TRUE 728host_os 729host_vendor 730host_cpu 731host 732build_os 733build_vendor 734build_cpu 735build 736AM_BACKSLASH 737AM_DEFAULT_VERBOSITY 738AM_DEFAULT_V 739AM_V 740am__untar 741am__tar 742AMTAR 743am__leading_dot 744SET_MAKE 745AWK 746mkdir_p 747MKDIR_P 748INSTALL_STRIP_PROGRAM 749STRIP 750install_sh 751MAKEINFO 752AUTOHEADER 753AUTOMAKE 754AUTOCONF 755ACLOCAL 756VERSION 757PACKAGE 758CYGPATH_W 759am__isrc 760INSTALL_DATA 761INSTALL_SCRIPT 762INSTALL_PROGRAM 763target_alias 764host_alias 765build_alias 766LIBS 767ECHO_T 768ECHO_N 769ECHO_C 770DEFS 771mandir 772localedir 773libdir 774psdir 775pdfdir 776dvidir 777htmldir 778infodir 779docdir 780oldincludedir 781includedir 782runstatedir 783localstatedir 784sharedstatedir 785sysconfdir 786datadir 787datarootdir 788libexecdir 789sbindir 790bindir 791program_transform_name 792prefix 793exec_prefix 794PACKAGE_URL 795PACKAGE_BUGREPORT 796PACKAGE_STRING 797PACKAGE_VERSION 798PACKAGE_TARNAME 799PACKAGE_NAME 800PATH_SEPARATOR 801SHELL 802am__quote' 803ac_subst_files='' 804ac_user_opts=' 805enable_option_checking 806enable_silent_rules 807enable_debug 808enable_largefile 809enable_dependency_tracking 810enable_shared 811enable_static 812with_pic 813enable_fast_install 814with_aix_soname 815with_gnu_ld 816with_sysroot 817enable_libtool_lock 818with_dmalloc 819with_fftw3 820with_libgsf 821with_libgoffice 822with_libgvc 823with_gsl 824enable_update_desktop 825' 826 ac_precious_vars='build_alias 827host_alias 828target_alias 829CC 830CFLAGS 831LDFLAGS 832LIBS 833CPPFLAGS 834LT_SYS_LIBRARY_PATH 835CPP 836PKG_CONFIG 837PKG_CONFIG_PATH 838PKG_CONFIG_LIBDIR 839REQUIRED_PACKAGES_CFLAGS 840REQUIRED_PACKAGES_LIBS 841FFTW3_CFLAGS 842FFTW3_LIBS 843LIBGSF_CFLAGS 844LIBGSF_LIBS 845LIBGOFFICE_CFLAGS 846LIBGOFFICE_LIBS 847LIBGVC_CFLAGS 848LIBGVC_LIBS 849GSL_CFLAGS 850GSL_LIBS' 851 852 853# Initialize some variables set by options. 854ac_init_help= 855ac_init_version=false 856ac_unrecognized_opts= 857ac_unrecognized_sep= 858# The variables have the same names as the options, with 859# dashes changed to underlines. 860cache_file=/dev/null 861exec_prefix=NONE 862no_create= 863no_recursion= 864prefix=NONE 865program_prefix=NONE 866program_suffix=NONE 867program_transform_name=s,x,x, 868silent= 869site= 870srcdir= 871verbose= 872x_includes=NONE 873x_libraries=NONE 874 875# Installation directory options. 876# These are left unexpanded so users can "make install exec_prefix=/foo" 877# and all the variables that are supposed to be based on exec_prefix 878# by default will actually change. 879# Use braces instead of parens because sh, perl, etc. also accept them. 880# (The list follows the same order as the GNU Coding Standards.) 881bindir='${exec_prefix}/bin' 882sbindir='${exec_prefix}/sbin' 883libexecdir='${exec_prefix}/libexec' 884datarootdir='${prefix}/share' 885datadir='${datarootdir}' 886sysconfdir='${prefix}/etc' 887sharedstatedir='${prefix}/com' 888localstatedir='${prefix}/var' 889runstatedir='${localstatedir}/run' 890includedir='${prefix}/include' 891oldincludedir='/usr/include' 892docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 893infodir='${datarootdir}/info' 894htmldir='${docdir}' 895dvidir='${docdir}' 896pdfdir='${docdir}' 897psdir='${docdir}' 898libdir='${exec_prefix}/lib' 899localedir='${datarootdir}/locale' 900mandir='${datarootdir}/man' 901 902ac_prev= 903ac_dashdash= 904for ac_option 905do 906 # If the previous option needs an argument, assign it. 907 if test -n "$ac_prev"; then 908 eval $ac_prev=\$ac_option 909 ac_prev= 910 continue 911 fi 912 913 case $ac_option in 914 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 915 *=) ac_optarg= ;; 916 *) ac_optarg=yes ;; 917 esac 918 919 # Accept the important Cygnus configure options, so we can diagnose typos. 920 921 case $ac_dashdash$ac_option in 922 --) 923 ac_dashdash=yes ;; 924 925 -bindir | --bindir | --bindi | --bind | --bin | --bi) 926 ac_prev=bindir ;; 927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 928 bindir=$ac_optarg ;; 929 930 -build | --build | --buil | --bui | --bu) 931 ac_prev=build_alias ;; 932 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 933 build_alias=$ac_optarg ;; 934 935 -cache-file | --cache-file | --cache-fil | --cache-fi \ 936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 937 ac_prev=cache_file ;; 938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 940 cache_file=$ac_optarg ;; 941 942 --config-cache | -C) 943 cache_file=config.cache ;; 944 945 -datadir | --datadir | --datadi | --datad) 946 ac_prev=datadir ;; 947 -datadir=* | --datadir=* | --datadi=* | --datad=*) 948 datadir=$ac_optarg ;; 949 950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 951 | --dataroo | --dataro | --datar) 952 ac_prev=datarootdir ;; 953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 955 datarootdir=$ac_optarg ;; 956 957 -disable-* | --disable-*) 958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 959 # Reject names that are not valid shell variable names. 960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 961 as_fn_error $? "invalid feature name: $ac_useropt" 962 ac_useropt_orig=$ac_useropt 963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 964 case $ac_user_opts in 965 *" 966"enable_$ac_useropt" 967"*) ;; 968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 969 ac_unrecognized_sep=', ';; 970 esac 971 eval enable_$ac_useropt=no ;; 972 973 -docdir | --docdir | --docdi | --doc | --do) 974 ac_prev=docdir ;; 975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 976 docdir=$ac_optarg ;; 977 978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 979 ac_prev=dvidir ;; 980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 981 dvidir=$ac_optarg ;; 982 983 -enable-* | --enable-*) 984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 985 # Reject names that are not valid shell variable names. 986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 987 as_fn_error $? "invalid feature name: $ac_useropt" 988 ac_useropt_orig=$ac_useropt 989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 990 case $ac_user_opts in 991 *" 992"enable_$ac_useropt" 993"*) ;; 994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 995 ac_unrecognized_sep=', ';; 996 esac 997 eval enable_$ac_useropt=\$ac_optarg ;; 998 999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1001 | --exec | --exe | --ex) 1002 ac_prev=exec_prefix ;; 1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1005 | --exec=* | --exe=* | --ex=*) 1006 exec_prefix=$ac_optarg ;; 1007 1008 -gas | --gas | --ga | --g) 1009 # Obsolete; use --with-gas. 1010 with_gas=yes ;; 1011 1012 -help | --help | --hel | --he | -h) 1013 ac_init_help=long ;; 1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1015 ac_init_help=recursive ;; 1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1017 ac_init_help=short ;; 1018 1019 -host | --host | --hos | --ho) 1020 ac_prev=host_alias ;; 1021 -host=* | --host=* | --hos=* | --ho=*) 1022 host_alias=$ac_optarg ;; 1023 1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1025 ac_prev=htmldir ;; 1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1027 | --ht=*) 1028 htmldir=$ac_optarg ;; 1029 1030 -includedir | --includedir | --includedi | --included | --include \ 1031 | --includ | --inclu | --incl | --inc) 1032 ac_prev=includedir ;; 1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1034 | --includ=* | --inclu=* | --incl=* | --inc=*) 1035 includedir=$ac_optarg ;; 1036 1037 -infodir | --infodir | --infodi | --infod | --info | --inf) 1038 ac_prev=infodir ;; 1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1040 infodir=$ac_optarg ;; 1041 1042 -libdir | --libdir | --libdi | --libd) 1043 ac_prev=libdir ;; 1044 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1045 libdir=$ac_optarg ;; 1046 1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1048 | --libexe | --libex | --libe) 1049 ac_prev=libexecdir ;; 1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1051 | --libexe=* | --libex=* | --libe=*) 1052 libexecdir=$ac_optarg ;; 1053 1054 -localedir | --localedir | --localedi | --localed | --locale) 1055 ac_prev=localedir ;; 1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1057 localedir=$ac_optarg ;; 1058 1059 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1060 | --localstate | --localstat | --localsta | --localst | --locals) 1061 ac_prev=localstatedir ;; 1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1064 localstatedir=$ac_optarg ;; 1065 1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1067 ac_prev=mandir ;; 1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1069 mandir=$ac_optarg ;; 1070 1071 -nfp | --nfp | --nf) 1072 # Obsolete; use --without-fp. 1073 with_fp=no ;; 1074 1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1076 | --no-cr | --no-c | -n) 1077 no_create=yes ;; 1078 1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1081 no_recursion=yes ;; 1082 1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1085 | --oldin | --oldi | --old | --ol | --o) 1086 ac_prev=oldincludedir ;; 1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1090 oldincludedir=$ac_optarg ;; 1091 1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1093 ac_prev=prefix ;; 1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1095 prefix=$ac_optarg ;; 1096 1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1098 | --program-pre | --program-pr | --program-p) 1099 ac_prev=program_prefix ;; 1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1102 program_prefix=$ac_optarg ;; 1103 1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1105 | --program-suf | --program-su | --program-s) 1106 ac_prev=program_suffix ;; 1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1109 program_suffix=$ac_optarg ;; 1110 1111 -program-transform-name | --program-transform-name \ 1112 | --program-transform-nam | --program-transform-na \ 1113 | --program-transform-n | --program-transform- \ 1114 | --program-transform | --program-transfor \ 1115 | --program-transfo | --program-transf \ 1116 | --program-trans | --program-tran \ 1117 | --progr-tra | --program-tr | --program-t) 1118 ac_prev=program_transform_name ;; 1119 -program-transform-name=* | --program-transform-name=* \ 1120 | --program-transform-nam=* | --program-transform-na=* \ 1121 | --program-transform-n=* | --program-transform-=* \ 1122 | --program-transform=* | --program-transfor=* \ 1123 | --program-transfo=* | --program-transf=* \ 1124 | --program-trans=* | --program-tran=* \ 1125 | --progr-tra=* | --program-tr=* | --program-t=*) 1126 program_transform_name=$ac_optarg ;; 1127 1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1129 ac_prev=pdfdir ;; 1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1131 pdfdir=$ac_optarg ;; 1132 1133 -psdir | --psdir | --psdi | --psd | --ps) 1134 ac_prev=psdir ;; 1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1136 psdir=$ac_optarg ;; 1137 1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1139 | -silent | --silent | --silen | --sile | --sil) 1140 silent=yes ;; 1141 1142 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1143 | --runstate | --runstat | --runsta | --runst | --runs \ 1144 | --run | --ru | --r) 1145 ac_prev=runstatedir ;; 1146 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1147 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1148 | --run=* | --ru=* | --r=*) 1149 runstatedir=$ac_optarg ;; 1150 1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1152 ac_prev=sbindir ;; 1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1154 | --sbi=* | --sb=*) 1155 sbindir=$ac_optarg ;; 1156 1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1159 | --sharedst | --shareds | --shared | --share | --shar \ 1160 | --sha | --sh) 1161 ac_prev=sharedstatedir ;; 1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1165 | --sha=* | --sh=*) 1166 sharedstatedir=$ac_optarg ;; 1167 1168 -site | --site | --sit) 1169 ac_prev=site ;; 1170 -site=* | --site=* | --sit=*) 1171 site=$ac_optarg ;; 1172 1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1174 ac_prev=srcdir ;; 1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1176 srcdir=$ac_optarg ;; 1177 1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1179 | --syscon | --sysco | --sysc | --sys | --sy) 1180 ac_prev=sysconfdir ;; 1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1183 sysconfdir=$ac_optarg ;; 1184 1185 -target | --target | --targe | --targ | --tar | --ta | --t) 1186 ac_prev=target_alias ;; 1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1188 target_alias=$ac_optarg ;; 1189 1190 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1191 verbose=yes ;; 1192 1193 -version | --version | --versio | --versi | --vers | -V) 1194 ac_init_version=: ;; 1195 1196 -with-* | --with-*) 1197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1198 # Reject names that are not valid shell variable names. 1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1200 as_fn_error $? "invalid package name: $ac_useropt" 1201 ac_useropt_orig=$ac_useropt 1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1203 case $ac_user_opts in 1204 *" 1205"with_$ac_useropt" 1206"*) ;; 1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1208 ac_unrecognized_sep=', ';; 1209 esac 1210 eval with_$ac_useropt=\$ac_optarg ;; 1211 1212 -without-* | --without-*) 1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1214 # Reject names that are not valid shell variable names. 1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1216 as_fn_error $? "invalid package name: $ac_useropt" 1217 ac_useropt_orig=$ac_useropt 1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1219 case $ac_user_opts in 1220 *" 1221"with_$ac_useropt" 1222"*) ;; 1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1224 ac_unrecognized_sep=', ';; 1225 esac 1226 eval with_$ac_useropt=no ;; 1227 1228 --x) 1229 # Obsolete; use --with-x. 1230 with_x=yes ;; 1231 1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1233 | --x-incl | --x-inc | --x-in | --x-i) 1234 ac_prev=x_includes ;; 1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1237 x_includes=$ac_optarg ;; 1238 1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1241 ac_prev=x_libraries ;; 1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1244 x_libraries=$ac_optarg ;; 1245 1246 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1247Try \`$0 --help' for more information" 1248 ;; 1249 1250 *=*) 1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1252 # Reject names that are not valid shell variable names. 1253 case $ac_envvar in #( 1254 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1255 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1256 esac 1257 eval $ac_envvar=\$ac_optarg 1258 export $ac_envvar ;; 1259 1260 *) 1261 # FIXME: should be removed in autoconf 3.0. 1262 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1264 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1265 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1266 ;; 1267 1268 esac 1269done 1270 1271if test -n "$ac_prev"; then 1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1273 as_fn_error $? "missing argument to $ac_option" 1274fi 1275 1276if test -n "$ac_unrecognized_opts"; then 1277 case $enable_option_checking in 1278 no) ;; 1279 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1280 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1281 esac 1282fi 1283 1284# Check all directory arguments for consistency. 1285for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1286 datadir sysconfdir sharedstatedir localstatedir includedir \ 1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1288 libdir localedir mandir runstatedir 1289do 1290 eval ac_val=\$$ac_var 1291 # Remove trailing slashes. 1292 case $ac_val in 1293 */ ) 1294 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1295 eval $ac_var=\$ac_val;; 1296 esac 1297 # Be sure to have absolute directory names. 1298 case $ac_val in 1299 [\\/$]* | ?:[\\/]* ) continue;; 1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1301 esac 1302 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1303done 1304 1305# There might be people who depend on the old broken behavior: `$host' 1306# used to hold the argument of --host etc. 1307# FIXME: To remove some day. 1308build=$build_alias 1309host=$host_alias 1310target=$target_alias 1311 1312# FIXME: To remove some day. 1313if test "x$host_alias" != x; then 1314 if test "x$build_alias" = x; then 1315 cross_compiling=maybe 1316 elif test "x$build_alias" != "x$host_alias"; then 1317 cross_compiling=yes 1318 fi 1319fi 1320 1321ac_tool_prefix= 1322test -n "$host_alias" && ac_tool_prefix=$host_alias- 1323 1324test "$silent" = yes && exec 6>/dev/null 1325 1326 1327ac_pwd=`pwd` && test -n "$ac_pwd" && 1328ac_ls_di=`ls -di .` && 1329ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1330 as_fn_error $? "working directory cannot be determined" 1331test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1332 as_fn_error $? "pwd does not report name of working directory" 1333 1334 1335# Find the source files, if location was not specified. 1336if test -z "$srcdir"; then 1337 ac_srcdir_defaulted=yes 1338 # Try the directory containing this script, then the parent directory. 1339 ac_confdir=`$as_dirname -- "$as_myself" || 1340$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1341 X"$as_myself" : 'X\(//\)[^/]' \| \ 1342 X"$as_myself" : 'X\(//\)$' \| \ 1343 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1344$as_echo X"$as_myself" | 1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1346 s//\1/ 1347 q 1348 } 1349 /^X\(\/\/\)[^/].*/{ 1350 s//\1/ 1351 q 1352 } 1353 /^X\(\/\/\)$/{ 1354 s//\1/ 1355 q 1356 } 1357 /^X\(\/\).*/{ 1358 s//\1/ 1359 q 1360 } 1361 s/.*/./; q'` 1362 srcdir=$ac_confdir 1363 if test ! -r "$srcdir/$ac_unique_file"; then 1364 srcdir=.. 1365 fi 1366else 1367 ac_srcdir_defaulted=no 1368fi 1369if test ! -r "$srcdir/$ac_unique_file"; then 1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1371 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1372fi 1373ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1374ac_abs_confdir=`( 1375 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1376 pwd)` 1377# When building in place, set srcdir=. 1378if test "$ac_abs_confdir" = "$ac_pwd"; then 1379 srcdir=. 1380fi 1381# Remove unnecessary trailing slashes from srcdir. 1382# Double slashes in file names in object file debugging info 1383# mess up M-x gdb in Emacs. 1384case $srcdir in 1385*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1386esac 1387for ac_var in $ac_precious_vars; do 1388 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1389 eval ac_env_${ac_var}_value=\$${ac_var} 1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1391 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1392done 1393 1394# 1395# Report the --help message. 1396# 1397if test "$ac_init_help" = "long"; then 1398 # Omit some internal or obsolete options to make the list less imposing. 1399 # This message is too long to be a string in the A/UX 3.1 sh. 1400 cat <<_ACEOF 1401\`configure' configures nip2 8.7.1 to adapt to many kinds of systems. 1402 1403Usage: $0 [OPTION]... [VAR=VALUE]... 1404 1405To assign environment variables (e.g., CC, CFLAGS...), specify them as 1406VAR=VALUE. See below for descriptions of some of the useful variables. 1407 1408Defaults for the options are specified in brackets. 1409 1410Configuration: 1411 -h, --help display this help and exit 1412 --help=short display options specific to this package 1413 --help=recursive display the short help of all the included packages 1414 -V, --version display version information and exit 1415 -q, --quiet, --silent do not print \`checking ...' messages 1416 --cache-file=FILE cache test results in FILE [disabled] 1417 -C, --config-cache alias for \`--cache-file=config.cache' 1418 -n, --no-create do not create output files 1419 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1420 1421Installation directories: 1422 --prefix=PREFIX install architecture-independent files in PREFIX 1423 [$ac_default_prefix] 1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1425 [PREFIX] 1426 1427By default, \`make install' will install all the files in 1428\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1429an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1430for instance \`--prefix=\$HOME'. 1431 1432For better control, use the options below. 1433 1434Fine tuning of the installation directories: 1435 --bindir=DIR user executables [EPREFIX/bin] 1436 --sbindir=DIR system admin executables [EPREFIX/sbin] 1437 --libexecdir=DIR program executables [EPREFIX/libexec] 1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1441 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1442 --libdir=DIR object code libraries [EPREFIX/lib] 1443 --includedir=DIR C header files [PREFIX/include] 1444 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1447 --infodir=DIR info documentation [DATAROOTDIR/info] 1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1449 --mandir=DIR man documentation [DATAROOTDIR/man] 1450 --docdir=DIR documentation root [DATAROOTDIR/doc/nip2] 1451 --htmldir=DIR html documentation [DOCDIR] 1452 --dvidir=DIR dvi documentation [DOCDIR] 1453 --pdfdir=DIR pdf documentation [DOCDIR] 1454 --psdir=DIR ps documentation [DOCDIR] 1455_ACEOF 1456 1457 cat <<\_ACEOF 1458 1459Program names: 1460 --program-prefix=PREFIX prepend PREFIX to installed program names 1461 --program-suffix=SUFFIX append SUFFIX to installed program names 1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1463 1464System types: 1465 --build=BUILD configure for building on BUILD [guessed] 1466 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1467_ACEOF 1468fi 1469 1470if test -n "$ac_init_help"; then 1471 case $ac_init_help in 1472 short | recursive ) echo "Configuration of nip2 8.7.1:";; 1473 esac 1474 cat <<\_ACEOF 1475 1476Optional Features: 1477 --disable-option-checking ignore unrecognized --enable/--with options 1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1480 --enable-silent-rules less verbose build output (undo: "make V=1") 1481 --disable-silent-rules verbose build output (undo: "make V=0") 1482 --enable-debug=[no/minimum/yes] 1483 turn on debugging [default=debug_default()] 1484 --disable-largefile omit support for large files 1485 --enable-dependency-tracking 1486 do not reject slow dependency extractors 1487 --disable-dependency-tracking 1488 speeds up one-time build 1489 --enable-shared[=PKGS] build shared libraries [default=yes] 1490 --enable-static[=PKGS] build static libraries [default=yes] 1491 --enable-fast-install[=PKGS] 1492 optimize for fast installation [default=yes] 1493 --disable-libtool-lock avoid locking (might break parallel builds) 1494 --disable-update-desktop 1495 disable update of desktop database 1496 1497Optional Packages: 1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1500 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1501 both] 1502 --with-aix-soname=aix|svr4|both 1503 shared library versioning (aka "SONAME") variant to 1504 provide on AIX, [default=aix]. 1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1506 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1507 compiler's sysroot if not specified). 1508 --with-dmalloc use dmalloc, as in http://www.dmalloc.com 1509 --without-fftw3 build without fftw3 (default: test) 1510 --without-libgsf build without libgsf (default: test) 1511 --without-libgoffice build without libgoffice (default: test) 1512 --without-libgvc build without libgvc (default: test) 1513 --without-gsl build without gsl (default: test) 1514 1515Some influential environment variables: 1516 CC C compiler command 1517 CFLAGS C compiler flags 1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1519 nonstandard directory <lib dir> 1520 LIBS libraries to pass to the linker, e.g. -l<library> 1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1522 you have headers in a nonstandard directory <include dir> 1523 LT_SYS_LIBRARY_PATH 1524 User-defined run-time library search path. 1525 CPP C preprocessor 1526 PKG_CONFIG path to pkg-config utility 1527 PKG_CONFIG_PATH 1528 directories to add to pkg-config's search path 1529 PKG_CONFIG_LIBDIR 1530 path overriding pkg-config's built-in search path 1531 REQUIRED_PACKAGES_CFLAGS 1532 C compiler flags for REQUIRED_PACKAGES, overriding pkg-config 1533 REQUIRED_PACKAGES_LIBS 1534 linker flags for REQUIRED_PACKAGES, overriding pkg-config 1535 FFTW3_CFLAGS 1536 C compiler flags for FFTW3, overriding pkg-config 1537 FFTW3_LIBS linker flags for FFTW3, overriding pkg-config 1538 LIBGSF_CFLAGS 1539 C compiler flags for LIBGSF, overriding pkg-config 1540 LIBGSF_LIBS linker flags for LIBGSF, overriding pkg-config 1541 LIBGOFFICE_CFLAGS 1542 C compiler flags for LIBGOFFICE, overriding pkg-config 1543 LIBGOFFICE_LIBS 1544 linker flags for LIBGOFFICE, overriding pkg-config 1545 LIBGVC_CFLAGS 1546 C compiler flags for LIBGVC, overriding pkg-config 1547 LIBGVC_LIBS linker flags for LIBGVC, overriding pkg-config 1548 GSL_CFLAGS C compiler flags for GSL, overriding pkg-config 1549 GSL_LIBS linker flags for GSL, overriding pkg-config 1550 1551Use these variables to override the choices made by `configure' or to help 1552it to find libraries and programs with nonstandard names/locations. 1553 1554Report bugs to <vipsip@jiscmail.ac.uk>. 1555_ACEOF 1556ac_status=$? 1557fi 1558 1559if test "$ac_init_help" = "recursive"; then 1560 # If there are subdirs, report their specific --help. 1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1562 test -d "$ac_dir" || 1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1564 continue 1565 ac_builddir=. 1566 1567case "$ac_dir" in 1568.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1569*) 1570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1571 # A ".." for each directory in $ac_dir_suffix. 1572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1573 case $ac_top_builddir_sub in 1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1576 esac ;; 1577esac 1578ac_abs_top_builddir=$ac_pwd 1579ac_abs_builddir=$ac_pwd$ac_dir_suffix 1580# for backward compatibility: 1581ac_top_builddir=$ac_top_build_prefix 1582 1583case $srcdir in 1584 .) # We are building in place. 1585 ac_srcdir=. 1586 ac_top_srcdir=$ac_top_builddir_sub 1587 ac_abs_top_srcdir=$ac_pwd ;; 1588 [\\/]* | ?:[\\/]* ) # Absolute name. 1589 ac_srcdir=$srcdir$ac_dir_suffix; 1590 ac_top_srcdir=$srcdir 1591 ac_abs_top_srcdir=$srcdir ;; 1592 *) # Relative name. 1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1594 ac_top_srcdir=$ac_top_build_prefix$srcdir 1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1596esac 1597ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1598 1599 cd "$ac_dir" || { ac_status=$?; continue; } 1600 # Check for guested configure. 1601 if test -f "$ac_srcdir/configure.gnu"; then 1602 echo && 1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1604 elif test -f "$ac_srcdir/configure"; then 1605 echo && 1606 $SHELL "$ac_srcdir/configure" --help=recursive 1607 else 1608 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1609 fi || ac_status=$? 1610 cd "$ac_pwd" || { ac_status=$?; break; } 1611 done 1612fi 1613 1614test -n "$ac_init_help" && exit $ac_status 1615if $ac_init_version; then 1616 cat <<\_ACEOF 1617nip2 configure 8.7.1 1618generated by GNU Autoconf 2.69 1619 1620Copyright (C) 2012 Free Software Foundation, Inc. 1621This configure script is free software; the Free Software Foundation 1622gives unlimited permission to copy, distribute and modify it. 1623_ACEOF 1624 exit 1625fi 1626 1627## ------------------------ ## 1628## Autoconf initialization. ## 1629## ------------------------ ## 1630 1631# ac_fn_c_try_compile LINENO 1632# -------------------------- 1633# Try to compile conftest.$ac_ext, and return whether this succeeded. 1634ac_fn_c_try_compile () 1635{ 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1637 rm -f conftest.$ac_objext 1638 if { { ac_try="$ac_compile" 1639case "(($ac_try" in 1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1641 *) ac_try_echo=$ac_try;; 1642esac 1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1644$as_echo "$ac_try_echo"; } >&5 1645 (eval "$ac_compile") 2>conftest.err 1646 ac_status=$? 1647 if test -s conftest.err; then 1648 grep -v '^ *+' conftest.err >conftest.er1 1649 cat conftest.er1 >&5 1650 mv -f conftest.er1 conftest.err 1651 fi 1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1653 test $ac_status = 0; } && { 1654 test -z "$ac_c_werror_flag" || 1655 test ! -s conftest.err 1656 } && test -s conftest.$ac_objext; then : 1657 ac_retval=0 1658else 1659 $as_echo "$as_me: failed program was:" >&5 1660sed 's/^/| /' conftest.$ac_ext >&5 1661 1662 ac_retval=1 1663fi 1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1665 as_fn_set_status $ac_retval 1666 1667} # ac_fn_c_try_compile 1668 1669# ac_fn_c_try_link LINENO 1670# ----------------------- 1671# Try to link conftest.$ac_ext, and return whether this succeeded. 1672ac_fn_c_try_link () 1673{ 1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1675 rm -f conftest.$ac_objext conftest$ac_exeext 1676 if { { ac_try="$ac_link" 1677case "(($ac_try" in 1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1679 *) ac_try_echo=$ac_try;; 1680esac 1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1682$as_echo "$ac_try_echo"; } >&5 1683 (eval "$ac_link") 2>conftest.err 1684 ac_status=$? 1685 if test -s conftest.err; then 1686 grep -v '^ *+' conftest.err >conftest.er1 1687 cat conftest.er1 >&5 1688 mv -f conftest.er1 conftest.err 1689 fi 1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1691 test $ac_status = 0; } && { 1692 test -z "$ac_c_werror_flag" || 1693 test ! -s conftest.err 1694 } && test -s conftest$ac_exeext && { 1695 test "$cross_compiling" = yes || 1696 test -x conftest$ac_exeext 1697 }; then : 1698 ac_retval=0 1699else 1700 $as_echo "$as_me: failed program was:" >&5 1701sed 's/^/| /' conftest.$ac_ext >&5 1702 1703 ac_retval=1 1704fi 1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1707 # interfere with the next link command; also delete a directory that is 1708 # left behind by Apple's compiler. We do this before executing the actions. 1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 as_fn_set_status $ac_retval 1712 1713} # ac_fn_c_try_link 1714 1715# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1716# ------------------------------------------------------- 1717# Tests whether HEADER exists and can be compiled using the include files in 1718# INCLUDES, setting the cache variable VAR accordingly. 1719ac_fn_c_check_header_compile () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1723$as_echo_n "checking for $2... " >&6; } 1724if eval \${$3+:} false; then : 1725 $as_echo_n "(cached) " >&6 1726else 1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1728/* end confdefs.h. */ 1729$4 1730#include <$2> 1731_ACEOF 1732if ac_fn_c_try_compile "$LINENO"; then : 1733 eval "$3=yes" 1734else 1735 eval "$3=no" 1736fi 1737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1738fi 1739eval ac_res=\$$3 1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1741$as_echo "$ac_res" >&6; } 1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1743 1744} # ac_fn_c_check_header_compile 1745 1746# ac_fn_c_try_cpp LINENO 1747# ---------------------- 1748# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1749ac_fn_c_try_cpp () 1750{ 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1752 if { { ac_try="$ac_cpp conftest.$ac_ext" 1753case "(($ac_try" in 1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1755 *) ac_try_echo=$ac_try;; 1756esac 1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1758$as_echo "$ac_try_echo"; } >&5 1759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1760 ac_status=$? 1761 if test -s conftest.err; then 1762 grep -v '^ *+' conftest.err >conftest.er1 1763 cat conftest.er1 >&5 1764 mv -f conftest.er1 conftest.err 1765 fi 1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1767 test $ac_status = 0; } > conftest.i && { 1768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1769 test ! -s conftest.err 1770 }; then : 1771 ac_retval=0 1772else 1773 $as_echo "$as_me: failed program was:" >&5 1774sed 's/^/| /' conftest.$ac_ext >&5 1775 1776 ac_retval=1 1777fi 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1779 as_fn_set_status $ac_retval 1780 1781} # ac_fn_c_try_cpp 1782 1783# ac_fn_c_try_run LINENO 1784# ---------------------- 1785# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1786# that executables *can* be run. 1787ac_fn_c_try_run () 1788{ 1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1790 if { { ac_try="$ac_link" 1791case "(($ac_try" in 1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1793 *) ac_try_echo=$ac_try;; 1794esac 1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1796$as_echo "$ac_try_echo"; } >&5 1797 (eval "$ac_link") 2>&5 1798 ac_status=$? 1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1800 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1801 { { case "(($ac_try" in 1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1803 *) ac_try_echo=$ac_try;; 1804esac 1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1806$as_echo "$ac_try_echo"; } >&5 1807 (eval "$ac_try") 2>&5 1808 ac_status=$? 1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1810 test $ac_status = 0; }; }; then : 1811 ac_retval=0 1812else 1813 $as_echo "$as_me: program exited with status $ac_status" >&5 1814 $as_echo "$as_me: failed program was:" >&5 1815sed 's/^/| /' conftest.$ac_ext >&5 1816 1817 ac_retval=$ac_status 1818fi 1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1821 as_fn_set_status $ac_retval 1822 1823} # ac_fn_c_try_run 1824 1825# ac_fn_c_check_func LINENO FUNC VAR 1826# ---------------------------------- 1827# Tests whether FUNC exists, setting the cache variable VAR accordingly 1828ac_fn_c_check_func () 1829{ 1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1832$as_echo_n "checking for $2... " >&6; } 1833if eval \${$3+:} false; then : 1834 $as_echo_n "(cached) " >&6 1835else 1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1837/* end confdefs.h. */ 1838/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1839 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1840#define $2 innocuous_$2 1841 1842/* System header to define __stub macros and hopefully few prototypes, 1843 which can conflict with char $2 (); below. 1844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1845 <limits.h> exists even on freestanding compilers. */ 1846 1847#ifdef __STDC__ 1848# include <limits.h> 1849#else 1850# include <assert.h> 1851#endif 1852 1853#undef $2 1854 1855/* Override any GCC internal prototype to avoid an error. 1856 Use char because int might match the return type of a GCC 1857 builtin and then its argument prototype would still apply. */ 1858#ifdef __cplusplus 1859extern "C" 1860#endif 1861char $2 (); 1862/* The GNU C library defines this for functions which it implements 1863 to always fail with ENOSYS. Some functions are actually named 1864 something starting with __ and the normal name is an alias. */ 1865#if defined __stub_$2 || defined __stub___$2 1866choke me 1867#endif 1868 1869int 1870main () 1871{ 1872return $2 (); 1873 ; 1874 return 0; 1875} 1876_ACEOF 1877if ac_fn_c_try_link "$LINENO"; then : 1878 eval "$3=yes" 1879else 1880 eval "$3=no" 1881fi 1882rm -f core conftest.err conftest.$ac_objext \ 1883 conftest$ac_exeext conftest.$ac_ext 1884fi 1885eval ac_res=\$$3 1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1887$as_echo "$ac_res" >&6; } 1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1889 1890} # ac_fn_c_check_func 1891 1892# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1893# ------------------------------------------------------- 1894# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1895# the include files in INCLUDES and setting the cache variable VAR 1896# accordingly. 1897ac_fn_c_check_header_mongrel () 1898{ 1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1900 if eval \${$3+:} false; then : 1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1902$as_echo_n "checking for $2... " >&6; } 1903if eval \${$3+:} false; then : 1904 $as_echo_n "(cached) " >&6 1905fi 1906eval ac_res=\$$3 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1908$as_echo "$ac_res" >&6; } 1909else 1910 # Is the header compilable? 1911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1912$as_echo_n "checking $2 usability... " >&6; } 1913cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1914/* end confdefs.h. */ 1915$4 1916#include <$2> 1917_ACEOF 1918if ac_fn_c_try_compile "$LINENO"; then : 1919 ac_header_compiler=yes 1920else 1921 ac_header_compiler=no 1922fi 1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1925$as_echo "$ac_header_compiler" >&6; } 1926 1927# Is the header present? 1928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1929$as_echo_n "checking $2 presence... " >&6; } 1930cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1931/* end confdefs.h. */ 1932#include <$2> 1933_ACEOF 1934if ac_fn_c_try_cpp "$LINENO"; then : 1935 ac_header_preproc=yes 1936else 1937 ac_header_preproc=no 1938fi 1939rm -f conftest.err conftest.i conftest.$ac_ext 1940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1941$as_echo "$ac_header_preproc" >&6; } 1942 1943# So? What about this header? 1944case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1945 yes:no: ) 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1947$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1949$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1950 ;; 1951 no:yes:* ) 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1953$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1955$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1957$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1959$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1961$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1962( $as_echo "## ------------------------------------ ## 1963## Report this to vipsip@jiscmail.ac.uk ## 1964## ------------------------------------ ##" 1965 ) | sed "s/^/$as_me: WARNING: /" >&2 1966 ;; 1967esac 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1969$as_echo_n "checking for $2... " >&6; } 1970if eval \${$3+:} false; then : 1971 $as_echo_n "(cached) " >&6 1972else 1973 eval "$3=\$ac_header_compiler" 1974fi 1975eval ac_res=\$$3 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1977$as_echo "$ac_res" >&6; } 1978fi 1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1980 1981} # ac_fn_c_check_header_mongrel 1982 1983# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1984# ------------------------------------------- 1985# Tests whether TYPE exists after having included INCLUDES, setting cache 1986# variable VAR accordingly. 1987ac_fn_c_check_type () 1988{ 1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1991$as_echo_n "checking for $2... " >&6; } 1992if eval \${$3+:} false; then : 1993 $as_echo_n "(cached) " >&6 1994else 1995 eval "$3=no" 1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1997/* end confdefs.h. */ 1998$4 1999int 2000main () 2001{ 2002if (sizeof ($2)) 2003 return 0; 2004 ; 2005 return 0; 2006} 2007_ACEOF 2008if ac_fn_c_try_compile "$LINENO"; then : 2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2010/* end confdefs.h. */ 2011$4 2012int 2013main () 2014{ 2015if (sizeof (($2))) 2016 return 0; 2017 ; 2018 return 0; 2019} 2020_ACEOF 2021if ac_fn_c_try_compile "$LINENO"; then : 2022 2023else 2024 eval "$3=yes" 2025fi 2026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2027fi 2028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2029fi 2030eval ac_res=\$$3 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2032$as_echo "$ac_res" >&6; } 2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2034 2035} # ac_fn_c_check_type 2036cat >config.log <<_ACEOF 2037This file contains any messages produced by compilers while 2038running configure, to aid debugging if configure makes a mistake. 2039 2040It was created by nip2 $as_me 8.7.1, which was 2041generated by GNU Autoconf 2.69. Invocation command line was 2042 2043 $ $0 $@ 2044 2045_ACEOF 2046exec 5>>config.log 2047{ 2048cat <<_ASUNAME 2049## --------- ## 2050## Platform. ## 2051## --------- ## 2052 2053hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2054uname -m = `(uname -m) 2>/dev/null || echo unknown` 2055uname -r = `(uname -r) 2>/dev/null || echo unknown` 2056uname -s = `(uname -s) 2>/dev/null || echo unknown` 2057uname -v = `(uname -v) 2>/dev/null || echo unknown` 2058 2059/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2060/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2061 2062/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2063/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2064/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2065/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2066/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2067/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2068/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2069 2070_ASUNAME 2071 2072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2073for as_dir in $PATH 2074do 2075 IFS=$as_save_IFS 2076 test -z "$as_dir" && as_dir=. 2077 $as_echo "PATH: $as_dir" 2078 done 2079IFS=$as_save_IFS 2080 2081} >&5 2082 2083cat >&5 <<_ACEOF 2084 2085 2086## ----------- ## 2087## Core tests. ## 2088## ----------- ## 2089 2090_ACEOF 2091 2092 2093# Keep a trace of the command line. 2094# Strip out --no-create and --no-recursion so they do not pile up. 2095# Strip out --silent because we don't want to record it for future runs. 2096# Also quote any args containing shell meta-characters. 2097# Make two passes to allow for proper duplicate-argument suppression. 2098ac_configure_args= 2099ac_configure_args0= 2100ac_configure_args1= 2101ac_must_keep_next=false 2102for ac_pass in 1 2 2103do 2104 for ac_arg 2105 do 2106 case $ac_arg in 2107 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2109 | -silent | --silent | --silen | --sile | --sil) 2110 continue ;; 2111 *\'*) 2112 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2113 esac 2114 case $ac_pass in 2115 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2116 2) 2117 as_fn_append ac_configure_args1 " '$ac_arg'" 2118 if test $ac_must_keep_next = true; then 2119 ac_must_keep_next=false # Got value, back to normal. 2120 else 2121 case $ac_arg in 2122 *=* | --config-cache | -C | -disable-* | --disable-* \ 2123 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2124 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2125 | -with-* | --with-* | -without-* | --without-* | --x) 2126 case "$ac_configure_args0 " in 2127 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2128 esac 2129 ;; 2130 -* ) ac_must_keep_next=true ;; 2131 esac 2132 fi 2133 as_fn_append ac_configure_args " '$ac_arg'" 2134 ;; 2135 esac 2136 done 2137done 2138{ ac_configure_args0=; unset ac_configure_args0;} 2139{ ac_configure_args1=; unset ac_configure_args1;} 2140 2141# When interrupted or exit'd, cleanup temporary files, and complete 2142# config.log. We remove comments because anyway the quotes in there 2143# would cause problems or look ugly. 2144# WARNING: Use '\'' to represent an apostrophe within the trap. 2145# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2146trap 'exit_status=$? 2147 # Save into config.log some information that might help in debugging. 2148 { 2149 echo 2150 2151 $as_echo "## ---------------- ## 2152## Cache variables. ## 2153## ---------------- ##" 2154 echo 2155 # The following way of writing the cache mishandles newlines in values, 2156( 2157 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2158 eval ac_val=\$$ac_var 2159 case $ac_val in #( 2160 *${as_nl}*) 2161 case $ac_var in #( 2162 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2163$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2164 esac 2165 case $ac_var in #( 2166 _ | IFS | as_nl) ;; #( 2167 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2168 *) { eval $ac_var=; unset $ac_var;} ;; 2169 esac ;; 2170 esac 2171 done 2172 (set) 2>&1 | 2173 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2174 *${as_nl}ac_space=\ *) 2175 sed -n \ 2176 "s/'\''/'\''\\\\'\'''\''/g; 2177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2178 ;; #( 2179 *) 2180 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2181 ;; 2182 esac | 2183 sort 2184) 2185 echo 2186 2187 $as_echo "## ----------------- ## 2188## Output variables. ## 2189## ----------------- ##" 2190 echo 2191 for ac_var in $ac_subst_vars 2192 do 2193 eval ac_val=\$$ac_var 2194 case $ac_val in 2195 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2196 esac 2197 $as_echo "$ac_var='\''$ac_val'\''" 2198 done | sort 2199 echo 2200 2201 if test -n "$ac_subst_files"; then 2202 $as_echo "## ------------------- ## 2203## File substitutions. ## 2204## ------------------- ##" 2205 echo 2206 for ac_var in $ac_subst_files 2207 do 2208 eval ac_val=\$$ac_var 2209 case $ac_val in 2210 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2211 esac 2212 $as_echo "$ac_var='\''$ac_val'\''" 2213 done | sort 2214 echo 2215 fi 2216 2217 if test -s confdefs.h; then 2218 $as_echo "## ----------- ## 2219## confdefs.h. ## 2220## ----------- ##" 2221 echo 2222 cat confdefs.h 2223 echo 2224 fi 2225 test "$ac_signal" != 0 && 2226 $as_echo "$as_me: caught signal $ac_signal" 2227 $as_echo "$as_me: exit $exit_status" 2228 } >&5 2229 rm -f core *.core core.conftest.* && 2230 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2231 exit $exit_status 2232' 0 2233for ac_signal in 1 2 13 15; do 2234 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2235done 2236ac_signal=0 2237 2238# confdefs.h avoids OS command line length limits that DEFS can exceed. 2239rm -f -r conftest* confdefs.h 2240 2241$as_echo "/* confdefs.h */" > confdefs.h 2242 2243# Predefined preprocessor variables. 2244 2245cat >>confdefs.h <<_ACEOF 2246#define PACKAGE_NAME "$PACKAGE_NAME" 2247_ACEOF 2248 2249cat >>confdefs.h <<_ACEOF 2250#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2251_ACEOF 2252 2253cat >>confdefs.h <<_ACEOF 2254#define PACKAGE_VERSION "$PACKAGE_VERSION" 2255_ACEOF 2256 2257cat >>confdefs.h <<_ACEOF 2258#define PACKAGE_STRING "$PACKAGE_STRING" 2259_ACEOF 2260 2261cat >>confdefs.h <<_ACEOF 2262#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2263_ACEOF 2264 2265cat >>confdefs.h <<_ACEOF 2266#define PACKAGE_URL "$PACKAGE_URL" 2267_ACEOF 2268 2269 2270# Let the site file select an alternate cache file if it wants to. 2271# Prefer an explicitly selected file to automatically selected ones. 2272ac_site_file1=NONE 2273ac_site_file2=NONE 2274if test -n "$CONFIG_SITE"; then 2275 # We do not want a PATH search for config.site. 2276 case $CONFIG_SITE in #(( 2277 -*) ac_site_file1=./$CONFIG_SITE;; 2278 */*) ac_site_file1=$CONFIG_SITE;; 2279 *) ac_site_file1=./$CONFIG_SITE;; 2280 esac 2281elif test "x$prefix" != xNONE; then 2282 ac_site_file1=$prefix/share/config.site 2283 ac_site_file2=$prefix/etc/config.site 2284else 2285 ac_site_file1=$ac_default_prefix/share/config.site 2286 ac_site_file2=$ac_default_prefix/etc/config.site 2287fi 2288for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2289do 2290 test "x$ac_site_file" = xNONE && continue 2291 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2293$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2294 sed 's/^/| /' "$ac_site_file" >&5 2295 . "$ac_site_file" \ 2296 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2298as_fn_error $? "failed to load site script $ac_site_file 2299See \`config.log' for more details" "$LINENO" 5; } 2300 fi 2301done 2302 2303if test -r "$cache_file"; then 2304 # Some versions of bash will fail to source /dev/null (special files 2305 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2306 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2308$as_echo "$as_me: loading cache $cache_file" >&6;} 2309 case $cache_file in 2310 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2311 *) . "./$cache_file";; 2312 esac 2313 fi 2314else 2315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2316$as_echo "$as_me: creating cache $cache_file" >&6;} 2317 >$cache_file 2318fi 2319 2320# Check that the precious variables saved in the cache have kept the same 2321# value. 2322ac_cache_corrupted=false 2323for ac_var in $ac_precious_vars; do 2324 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2325 eval ac_new_set=\$ac_env_${ac_var}_set 2326 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2327 eval ac_new_val=\$ac_env_${ac_var}_value 2328 case $ac_old_set,$ac_new_set in 2329 set,) 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2331$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2332 ac_cache_corrupted=: ;; 2333 ,set) 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2335$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2336 ac_cache_corrupted=: ;; 2337 ,);; 2338 *) 2339 if test "x$ac_old_val" != "x$ac_new_val"; then 2340 # differences in whitespace do not lead to failure. 2341 ac_old_val_w=`echo x $ac_old_val` 2342 ac_new_val_w=`echo x $ac_new_val` 2343 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2345$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2346 ac_cache_corrupted=: 2347 else 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2349$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2350 eval $ac_var=\$ac_old_val 2351 fi 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2353$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2355$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2356 fi;; 2357 esac 2358 # Pass precious variables to config.status. 2359 if test "$ac_new_set" = set; then 2360 case $ac_new_val in 2361 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2362 *) ac_arg=$ac_var=$ac_new_val ;; 2363 esac 2364 case " $ac_configure_args " in 2365 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2366 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2367 esac 2368 fi 2369done 2370if $ac_cache_corrupted; then 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2374$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2375 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2376fi 2377## -------------------- ## 2378## Main body of script. ## 2379## -------------------- ## 2380 2381ac_ext=c 2382ac_cpp='$CPP $CPPFLAGS' 2383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2385ac_compiler_gnu=$ac_cv_c_compiler_gnu 2386 2387 2388 2389# foreign stops complaints about a missing README (we use README.md instead) 2390# and missing INSTALL (the standard Gnu INSTALL is not very useful) 2391am__api_version='1.16' 2392 2393ac_aux_dir= 2394for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2395 if test -f "$ac_dir/install-sh"; then 2396 ac_aux_dir=$ac_dir 2397 ac_install_sh="$ac_aux_dir/install-sh -c" 2398 break 2399 elif test -f "$ac_dir/install.sh"; then 2400 ac_aux_dir=$ac_dir 2401 ac_install_sh="$ac_aux_dir/install.sh -c" 2402 break 2403 elif test -f "$ac_dir/shtool"; then 2404 ac_aux_dir=$ac_dir 2405 ac_install_sh="$ac_aux_dir/shtool install -c" 2406 break 2407 fi 2408done 2409if test -z "$ac_aux_dir"; then 2410 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2411fi 2412 2413# These three variables are undocumented and unsupported, 2414# and are intended to be withdrawn in a future Autoconf release. 2415# They can cause serious problems if a builder's source tree is in a directory 2416# whose full name contains unusual characters. 2417ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2418ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2419ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2420 2421 2422# Find a good install program. We prefer a C program (faster), 2423# so one script is as good as another. But avoid the broken or 2424# incompatible versions: 2425# SysV /etc/install, /usr/sbin/install 2426# SunOS /usr/etc/install 2427# IRIX /sbin/install 2428# AIX /bin/install 2429# AmigaOS /C/install, which installs bootblocks on floppy discs 2430# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2431# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2432# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2433# OS/2's system install, which has a completely different semantic 2434# ./install, which can be erroneously created by make from ./install.sh. 2435# Reject install programs that cannot install multiple files. 2436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2437$as_echo_n "checking for a BSD-compatible install... " >&6; } 2438if test -z "$INSTALL"; then 2439if ${ac_cv_path_install+:} false; then : 2440 $as_echo_n "(cached) " >&6 2441else 2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2443for as_dir in $PATH 2444do 2445 IFS=$as_save_IFS 2446 test -z "$as_dir" && as_dir=. 2447 # Account for people who put trailing slashes in PATH elements. 2448case $as_dir/ in #(( 2449 ./ | .// | /[cC]/* | \ 2450 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2451 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2452 /usr/ucb/* ) ;; 2453 *) 2454 # OSF1 and SCO ODT 3.0 have their own names for install. 2455 # Don't use installbsd from OSF since it installs stuff as root 2456 # by default. 2457 for ac_prog in ginstall scoinst install; do 2458 for ac_exec_ext in '' $ac_executable_extensions; do 2459 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2460 if test $ac_prog = install && 2461 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2462 # AIX install. It has an incompatible calling convention. 2463 : 2464 elif test $ac_prog = install && 2465 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2466 # program-specific install script used by HP pwplus--don't use. 2467 : 2468 else 2469 rm -rf conftest.one conftest.two conftest.dir 2470 echo one > conftest.one 2471 echo two > conftest.two 2472 mkdir conftest.dir 2473 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2474 test -s conftest.one && test -s conftest.two && 2475 test -s conftest.dir/conftest.one && 2476 test -s conftest.dir/conftest.two 2477 then 2478 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2479 break 3 2480 fi 2481 fi 2482 fi 2483 done 2484 done 2485 ;; 2486esac 2487 2488 done 2489IFS=$as_save_IFS 2490 2491rm -rf conftest.one conftest.two conftest.dir 2492 2493fi 2494 if test "${ac_cv_path_install+set}" = set; then 2495 INSTALL=$ac_cv_path_install 2496 else 2497 # As a last resort, use the slow shell script. Don't cache a 2498 # value for INSTALL within a source directory, because that will 2499 # break other packages using the cache if that directory is 2500 # removed, or if the value is a relative name. 2501 INSTALL=$ac_install_sh 2502 fi 2503fi 2504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2505$as_echo "$INSTALL" >&6; } 2506 2507# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2508# It thinks the first close brace ends the variable substitution. 2509test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2510 2511test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2512 2513test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2514 2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2516$as_echo_n "checking whether build environment is sane... " >&6; } 2517# Reject unsafe characters in $srcdir or the absolute working directory 2518# name. Accept space and tab only in the latter. 2519am_lf=' 2520' 2521case `pwd` in 2522 *[\\\"\#\$\&\'\`$am_lf]*) 2523 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2524esac 2525case $srcdir in 2526 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2527 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2528esac 2529 2530# Do 'set' in a subshell so we don't clobber the current shell's 2531# arguments. Must try -L first in case configure is actually a 2532# symlink; some systems play weird games with the mod time of symlinks 2533# (eg FreeBSD returns the mod time of the symlink's containing 2534# directory). 2535if ( 2536 am_has_slept=no 2537 for am_try in 1 2; do 2538 echo "timestamp, slept: $am_has_slept" > conftest.file 2539 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2540 if test "$*" = "X"; then 2541 # -L didn't work. 2542 set X `ls -t "$srcdir/configure" conftest.file` 2543 fi 2544 if test "$*" != "X $srcdir/configure conftest.file" \ 2545 && test "$*" != "X conftest.file $srcdir/configure"; then 2546 2547 # If neither matched, then we have a broken ls. This can happen 2548 # if, for instance, CONFIG_SHELL is bash and it inherits a 2549 # broken ls alias from the environment. This has actually 2550 # happened. Such a system could not be considered "sane". 2551 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2552 alias in your environment" "$LINENO" 5 2553 fi 2554 if test "$2" = conftest.file || test $am_try -eq 2; then 2555 break 2556 fi 2557 # Just in case. 2558 sleep 1 2559 am_has_slept=yes 2560 done 2561 test "$2" = conftest.file 2562 ) 2563then 2564 # Ok. 2565 : 2566else 2567 as_fn_error $? "newly created file is older than distributed files! 2568Check your system clock" "$LINENO" 5 2569fi 2570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2571$as_echo "yes" >&6; } 2572# If we didn't sleep, we still need to ensure time stamps of config.status and 2573# generated files are strictly newer. 2574am_sleep_pid= 2575if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2576 ( sleep 1 ) & 2577 am_sleep_pid=$! 2578fi 2579 2580rm -f conftest.file 2581 2582test "$program_prefix" != NONE && 2583 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2584# Use a double $ so make ignores it. 2585test "$program_suffix" != NONE && 2586 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2587# Double any \ or $. 2588# By default was `s,x,x', remove it if useless. 2589ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2590program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2591 2592# Expand $ac_aux_dir to an absolute path. 2593am_aux_dir=`cd "$ac_aux_dir" && pwd` 2594 2595if test x"${MISSING+set}" != xset; then 2596 case $am_aux_dir in 2597 *\ * | *\ *) 2598 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2599 *) 2600 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2601 esac 2602fi 2603# Use eval to expand $SHELL 2604if eval "$MISSING --is-lightweight"; then 2605 am_missing_run="$MISSING " 2606else 2607 am_missing_run= 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2609$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2610fi 2611 2612if test x"${install_sh+set}" != xset; then 2613 case $am_aux_dir in 2614 *\ * | *\ *) 2615 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2616 *) 2617 install_sh="\${SHELL} $am_aux_dir/install-sh" 2618 esac 2619fi 2620 2621# Installed binaries are usually stripped using 'strip' when the user 2622# run "make install-strip". However 'strip' might not be the right 2623# tool to use in cross-compilation environments, therefore Automake 2624# will honor the 'STRIP' environment variable to overrule this program. 2625if test "$cross_compiling" != no; then 2626 if test -n "$ac_tool_prefix"; then 2627 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2628set dummy ${ac_tool_prefix}strip; ac_word=$2 2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2630$as_echo_n "checking for $ac_word... " >&6; } 2631if ${ac_cv_prog_STRIP+:} false; then : 2632 $as_echo_n "(cached) " >&6 2633else 2634 if test -n "$STRIP"; then 2635 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2636else 2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2638for as_dir in $PATH 2639do 2640 IFS=$as_save_IFS 2641 test -z "$as_dir" && as_dir=. 2642 for ac_exec_ext in '' $ac_executable_extensions; do 2643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2644 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2646 break 2 2647 fi 2648done 2649 done 2650IFS=$as_save_IFS 2651 2652fi 2653fi 2654STRIP=$ac_cv_prog_STRIP 2655if test -n "$STRIP"; then 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2657$as_echo "$STRIP" >&6; } 2658else 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2660$as_echo "no" >&6; } 2661fi 2662 2663 2664fi 2665if test -z "$ac_cv_prog_STRIP"; then 2666 ac_ct_STRIP=$STRIP 2667 # Extract the first word of "strip", so it can be a program name with args. 2668set dummy strip; ac_word=$2 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2670$as_echo_n "checking for $ac_word... " >&6; } 2671if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2672 $as_echo_n "(cached) " >&6 2673else 2674 if test -n "$ac_ct_STRIP"; then 2675 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2676else 2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2678for as_dir in $PATH 2679do 2680 IFS=$as_save_IFS 2681 test -z "$as_dir" && as_dir=. 2682 for ac_exec_ext in '' $ac_executable_extensions; do 2683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2684 ac_cv_prog_ac_ct_STRIP="strip" 2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2686 break 2 2687 fi 2688done 2689 done 2690IFS=$as_save_IFS 2691 2692fi 2693fi 2694ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2695if test -n "$ac_ct_STRIP"; then 2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2697$as_echo "$ac_ct_STRIP" >&6; } 2698else 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2700$as_echo "no" >&6; } 2701fi 2702 2703 if test "x$ac_ct_STRIP" = x; then 2704 STRIP=":" 2705 else 2706 case $cross_compiling:$ac_tool_warned in 2707yes:) 2708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2710ac_tool_warned=yes ;; 2711esac 2712 STRIP=$ac_ct_STRIP 2713 fi 2714else 2715 STRIP="$ac_cv_prog_STRIP" 2716fi 2717 2718fi 2719INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2720 2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2722$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2723if test -z "$MKDIR_P"; then 2724 if ${ac_cv_path_mkdir+:} false; then : 2725 $as_echo_n "(cached) " >&6 2726else 2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2728for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2729do 2730 IFS=$as_save_IFS 2731 test -z "$as_dir" && as_dir=. 2732 for ac_prog in mkdir gmkdir; do 2733 for ac_exec_ext in '' $ac_executable_extensions; do 2734 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2735 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2736 'mkdir (GNU coreutils) '* | \ 2737 'mkdir (coreutils) '* | \ 2738 'mkdir (fileutils) '4.1*) 2739 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2740 break 3;; 2741 esac 2742 done 2743 done 2744 done 2745IFS=$as_save_IFS 2746 2747fi 2748 2749 test -d ./--version && rmdir ./--version 2750 if test "${ac_cv_path_mkdir+set}" = set; then 2751 MKDIR_P="$ac_cv_path_mkdir -p" 2752 else 2753 # As a last resort, use the slow shell script. Don't cache a 2754 # value for MKDIR_P within a source directory, because that will 2755 # break other packages using the cache if that directory is 2756 # removed, or if the value is a relative name. 2757 MKDIR_P="$ac_install_sh -d" 2758 fi 2759fi 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2761$as_echo "$MKDIR_P" >&6; } 2762 2763for ac_prog in gawk mawk nawk awk 2764do 2765 # Extract the first word of "$ac_prog", so it can be a program name with args. 2766set dummy $ac_prog; ac_word=$2 2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2768$as_echo_n "checking for $ac_word... " >&6; } 2769if ${ac_cv_prog_AWK+:} false; then : 2770 $as_echo_n "(cached) " >&6 2771else 2772 if test -n "$AWK"; then 2773 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2774else 2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2776for as_dir in $PATH 2777do 2778 IFS=$as_save_IFS 2779 test -z "$as_dir" && as_dir=. 2780 for ac_exec_ext in '' $ac_executable_extensions; do 2781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2782 ac_cv_prog_AWK="$ac_prog" 2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2784 break 2 2785 fi 2786done 2787 done 2788IFS=$as_save_IFS 2789 2790fi 2791fi 2792AWK=$ac_cv_prog_AWK 2793if test -n "$AWK"; then 2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2795$as_echo "$AWK" >&6; } 2796else 2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2798$as_echo "no" >&6; } 2799fi 2800 2801 2802 test -n "$AWK" && break 2803done 2804 2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2806$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2807set x ${MAKE-make} 2808ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2809if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2810 $as_echo_n "(cached) " >&6 2811else 2812 cat >conftest.make <<\_ACEOF 2813SHELL = /bin/sh 2814all: 2815 @echo '@@@%%%=$(MAKE)=@@@%%%' 2816_ACEOF 2817# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2818case `${MAKE-make} -f conftest.make 2>/dev/null` in 2819 *@@@%%%=?*=@@@%%%*) 2820 eval ac_cv_prog_make_${ac_make}_set=yes;; 2821 *) 2822 eval ac_cv_prog_make_${ac_make}_set=no;; 2823esac 2824rm -f conftest.make 2825fi 2826if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2828$as_echo "yes" >&6; } 2829 SET_MAKE= 2830else 2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2832$as_echo "no" >&6; } 2833 SET_MAKE="MAKE=${MAKE-make}" 2834fi 2835 2836rm -rf .tst 2>/dev/null 2837mkdir .tst 2>/dev/null 2838if test -d .tst; then 2839 am__leading_dot=. 2840else 2841 am__leading_dot=_ 2842fi 2843rmdir .tst 2>/dev/null 2844 2845# Check whether --enable-silent-rules was given. 2846if test "${enable_silent_rules+set}" = set; then : 2847 enableval=$enable_silent_rules; 2848fi 2849 2850case $enable_silent_rules in # ((( 2851 yes) AM_DEFAULT_VERBOSITY=0;; 2852 no) AM_DEFAULT_VERBOSITY=1;; 2853 *) AM_DEFAULT_VERBOSITY=1;; 2854esac 2855am_make=${MAKE-make} 2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2857$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2858if ${am_cv_make_support_nested_variables+:} false; then : 2859 $as_echo_n "(cached) " >&6 2860else 2861 if $as_echo 'TRUE=$(BAR$(V)) 2862BAR0=false 2863BAR1=true 2864V=1 2865am__doit: 2866 @$(TRUE) 2867.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2868 am_cv_make_support_nested_variables=yes 2869else 2870 am_cv_make_support_nested_variables=no 2871fi 2872fi 2873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2874$as_echo "$am_cv_make_support_nested_variables" >&6; } 2875if test $am_cv_make_support_nested_variables = yes; then 2876 AM_V='$(V)' 2877 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2878else 2879 AM_V=$AM_DEFAULT_VERBOSITY 2880 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2881fi 2882AM_BACKSLASH='\' 2883 2884if test "`cd $srcdir && pwd`" != "`pwd`"; then 2885 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2886 # is not polluted with repeated "-I." 2887 am__isrc=' -I$(srcdir)' 2888 # test to see if srcdir already configured 2889 if test -f $srcdir/config.status; then 2890 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2891 fi 2892fi 2893 2894# test whether we have cygpath 2895if test -z "$CYGPATH_W"; then 2896 if (cygpath --version) >/dev/null 2>/dev/null; then 2897 CYGPATH_W='cygpath -w' 2898 else 2899 CYGPATH_W=echo 2900 fi 2901fi 2902 2903 2904# Define the identity of the package. 2905 PACKAGE='nip2' 2906 VERSION='8.7.1' 2907 2908 2909cat >>confdefs.h <<_ACEOF 2910#define PACKAGE "$PACKAGE" 2911_ACEOF 2912 2913 2914cat >>confdefs.h <<_ACEOF 2915#define VERSION "$VERSION" 2916_ACEOF 2917 2918# Some tools Automake needs. 2919 2920ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2921 2922 2923AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2924 2925 2926AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2927 2928 2929AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2930 2931 2932MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2933 2934# For better backward compatibility. To be removed once Automake 1.9.x 2935# dies out for good. For more background, see: 2936# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2937# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2938mkdir_p='$(MKDIR_P)' 2939 2940# We need awk for the "check" target (and possibly the TAP driver). The 2941# system "awk" is bad on some platforms. 2942# Always define AMTAR for backward compatibility. Yes, it's still used 2943# in the wild :-( We should find a proper way to deprecate it ... 2944AMTAR='$${TAR-tar}' 2945 2946 2947# We'll loop over all known methods to create a tar archive until one works. 2948_am_tools='gnutar pax cpio none' 2949 2950am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2951 2952 2953 2954 2955 2956 2957# POSIX will say in a future version that running "rm -f" with no argument 2958# is OK; and we want to be able to make that assumption in our Makefile 2959# recipes. So use an aggressive probe to check that the usage we want is 2960# actually supported "in the wild" to an acceptable degree. 2961# See automake bug#10828. 2962# To make any issue more visible, cause the running configure to be aborted 2963# by default if the 'rm' program in use doesn't match our expectations; the 2964# user can still override this though. 2965if rm -f && rm -fr && rm -rf; then : OK; else 2966 cat >&2 <<'END' 2967Oops! 2968 2969Your 'rm' program seems unable to run without file operands specified 2970on the command line, even when the '-f' option is present. This is contrary 2971to the behaviour of most rm programs out there, and not conforming with 2972the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2973 2974Please tell bug-automake@gnu.org about your system, including the value 2975of your $PATH and any error possibly output before this message. This 2976can help us improve future automake versions. 2977 2978END 2979 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2980 echo 'Configuration will proceed anyway, since you have set the' >&2 2981 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2982 echo >&2 2983 else 2984 cat >&2 <<'END' 2985Aborting the configuration process, to ensure you take notice of the issue. 2986 2987You can download and install GNU coreutils to get an 'rm' implementation 2988that behaves properly: <https://www.gnu.org/software/coreutils/>. 2989 2990If you want to complete the configuration process using your problematic 2991'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2992to "yes", and re-run configure. 2993 2994END 2995 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2996 fi 2997fi 2998 2999 3000ac_config_headers="$ac_config_headers config.h" 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010MAJOR_VERSION=8 3011MINOR_VERSION=7 3012MICRO_VERSION=1 3013 3014 3015cat >>confdefs.h <<_ACEOF 3016#define MAJOR_VERSION $MAJOR_VERSION 3017_ACEOF 3018 3019 3020cat >>confdefs.h <<_ACEOF 3021#define MINOR_VERSION $MINOR_VERSION 3022_ACEOF 3023 3024 3025cat >>confdefs.h <<_ACEOF 3026#define MICRO_VERSION $MICRO_VERSION 3027_ACEOF 3028 3029 3030# Make sure we can run config.sub. 3031$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3032 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3033 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3035$as_echo_n "checking build system type... " >&6; } 3036if ${ac_cv_build+:} false; then : 3037 $as_echo_n "(cached) " >&6 3038else 3039 ac_build_alias=$build_alias 3040test "x$ac_build_alias" = x && 3041 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3042test "x$ac_build_alias" = x && 3043 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3044ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3045 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3046 3047fi 3048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3049$as_echo "$ac_cv_build" >&6; } 3050case $ac_cv_build in 3051*-*-*) ;; 3052*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3053esac 3054build=$ac_cv_build 3055ac_save_IFS=$IFS; IFS='-' 3056set x $ac_cv_build 3057shift 3058build_cpu=$1 3059build_vendor=$2 3060shift; shift 3061# Remember, the first character of IFS is used to create $*, 3062# except with old shells: 3063build_os=$* 3064IFS=$ac_save_IFS 3065case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3066 3067 3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3069$as_echo_n "checking host system type... " >&6; } 3070if ${ac_cv_host+:} false; then : 3071 $as_echo_n "(cached) " >&6 3072else 3073 if test "x$host_alias" = x; then 3074 ac_cv_host=$ac_cv_build 3075else 3076 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3077 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3078fi 3079 3080fi 3081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3082$as_echo "$ac_cv_host" >&6; } 3083case $ac_cv_host in 3084*-*-*) ;; 3085*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3086esac 3087host=$ac_cv_host 3088ac_save_IFS=$IFS; IFS='-' 3089set x $ac_cv_host 3090shift 3091host_cpu=$1 3092host_vendor=$2 3093shift; shift 3094# Remember, the first character of IFS is used to create $*, 3095# except with old shells: 3096host_os=$* 3097IFS=$ac_save_IFS 3098case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3099 3100 3101 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5 3103$as_echo_n "checking for native Win32... " >&6; } 3104case "$host" in 3105 *-*-mingw*) 3106 nip_os_win32=yes 3107 ;; 3108 *) 3109 nip_os_win32=no 3110 ;; 3111esac 3112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nip_os_win32" >&5 3113$as_echo "$nip_os_win32" >&6; } 3114 3115if test x"$nip_os_win32" = "xyes"; then 3116 3117$as_echo "#define OS_WIN32 1" >>confdefs.h 3118 3119 3120 # makes gcc use win native alignment 3121 IP_CFLAGS="-mms-bitfields $IP_CFLAGS" 3122fi 3123 3124# src/Makeile.am uses this to add an icon to the .exe 3125 if test x"$nip_os_win32" = "xyes"; then 3126 OS_WIN32_TRUE= 3127 OS_WIN32_FALSE='#' 3128else 3129 OS_WIN32_TRUE='#' 3130 OS_WIN32_FALSE= 3131fi 3132 3133 3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X" >&5 3135$as_echo_n "checking for Mac OS X... " >&6; } 3136case "$host" in 3137 *-*-darwin*) 3138 nip_os_darwin=yes 3139 ;; 3140 *) 3141 nip_os_darwin=no 3142 ;; 3143esac 3144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nip_os_darwin" >&5 3145$as_echo "$nip_os_darwin" >&6; } 3146if test x"$nip_os_darwin" = "xyes"; then 3147 3148$as_echo "#define OS_DARWIN 1" >>confdefs.h 3149 3150fi 3151 3152# Check whether --enable-debug was given. 3153if test "${enable_debug+set}" = set; then : 3154 enableval=$enable_debug; 3155else 3156 enable_debug=no 3157fi 3158 3159 3160if test "x$enable_debug" = "xyes"; then 3161 NIP_DEBUG_FLAGS="-DDEBUG_FATAL -DDEBUG_LEAK" 3162else 3163 NIP_DEBUG_FLAGS="-DG_DISABLE_CAST_CHECKS" 3164 3165 if test "x$enable_debug" = "xno"; then 3166 NIP_DEBUG_FLAGS="$GLIB_DEBUG_FLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS" 3167 fi 3168fi 3169 3170IP_CFLAGS="$NIP_DEBUG_FLAGS $IP_CFLAGS" 3171 3172# we want largefile support, if possible 3173DEPDIR="${am__leading_dot}deps" 3174 3175ac_config_commands="$ac_config_commands depfiles" 3176 3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3178$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3179cat > confinc.mk << 'END' 3180am__doit: 3181 @echo this is the am__doit target >confinc.out 3182.PHONY: am__doit 3183END 3184am__include="#" 3185am__quote= 3186# BSD make does it like this. 3187echo '.include "confinc.mk" # ignored' > confmf.BSD 3188# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3189echo 'include confinc.mk # ignored' > confmf.GNU 3190_am_result=no 3191for s in GNU BSD; do 3192 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3193 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3194 ac_status=$? 3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3196 (exit $ac_status); } 3197 case $?:`cat confinc.out 2>/dev/null` in #( 3198 '0:this is the am__doit target') : 3199 case $s in #( 3200 BSD) : 3201 am__include='.include' am__quote='"' ;; #( 3202 *) : 3203 am__include='include' am__quote='' ;; 3204esac ;; #( 3205 *) : 3206 ;; 3207esac 3208 if test "$am__include" != "#"; then 3209 _am_result="yes ($s style)" 3210 break 3211 fi 3212done 3213rm -f confinc.* confmf.* 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3215$as_echo "${_am_result}" >&6; } 3216 3217# Check whether --enable-dependency-tracking was given. 3218if test "${enable_dependency_tracking+set}" = set; then : 3219 enableval=$enable_dependency_tracking; 3220fi 3221 3222if test "x$enable_dependency_tracking" != xno; then 3223 am_depcomp="$ac_aux_dir/depcomp" 3224 AMDEPBACKSLASH='\' 3225 am__nodep='_no' 3226fi 3227 if test "x$enable_dependency_tracking" != xno; then 3228 AMDEP_TRUE= 3229 AMDEP_FALSE='#' 3230else 3231 AMDEP_TRUE='#' 3232 AMDEP_FALSE= 3233fi 3234 3235 3236ac_ext=c 3237ac_cpp='$CPP $CPPFLAGS' 3238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3240ac_compiler_gnu=$ac_cv_c_compiler_gnu 3241if test -n "$ac_tool_prefix"; then 3242 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3243set dummy ${ac_tool_prefix}gcc; ac_word=$2 3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3245$as_echo_n "checking for $ac_word... " >&6; } 3246if ${ac_cv_prog_CC+:} false; then : 3247 $as_echo_n "(cached) " >&6 3248else 3249 if test -n "$CC"; then 3250 ac_cv_prog_CC="$CC" # Let the user override the test. 3251else 3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3253for as_dir in $PATH 3254do 3255 IFS=$as_save_IFS 3256 test -z "$as_dir" && as_dir=. 3257 for ac_exec_ext in '' $ac_executable_extensions; do 3258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3259 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3261 break 2 3262 fi 3263done 3264 done 3265IFS=$as_save_IFS 3266 3267fi 3268fi 3269CC=$ac_cv_prog_CC 3270if test -n "$CC"; then 3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3272$as_echo "$CC" >&6; } 3273else 3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3275$as_echo "no" >&6; } 3276fi 3277 3278 3279fi 3280if test -z "$ac_cv_prog_CC"; then 3281 ac_ct_CC=$CC 3282 # Extract the first word of "gcc", so it can be a program name with args. 3283set dummy gcc; ac_word=$2 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3285$as_echo_n "checking for $ac_word... " >&6; } 3286if ${ac_cv_prog_ac_ct_CC+:} false; then : 3287 $as_echo_n "(cached) " >&6 3288else 3289 if test -n "$ac_ct_CC"; then 3290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3291else 3292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3293for as_dir in $PATH 3294do 3295 IFS=$as_save_IFS 3296 test -z "$as_dir" && as_dir=. 3297 for ac_exec_ext in '' $ac_executable_extensions; do 3298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3299 ac_cv_prog_ac_ct_CC="gcc" 3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3301 break 2 3302 fi 3303done 3304 done 3305IFS=$as_save_IFS 3306 3307fi 3308fi 3309ac_ct_CC=$ac_cv_prog_ac_ct_CC 3310if test -n "$ac_ct_CC"; then 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3312$as_echo "$ac_ct_CC" >&6; } 3313else 3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3315$as_echo "no" >&6; } 3316fi 3317 3318 if test "x$ac_ct_CC" = x; then 3319 CC="" 3320 else 3321 case $cross_compiling:$ac_tool_warned in 3322yes:) 3323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3325ac_tool_warned=yes ;; 3326esac 3327 CC=$ac_ct_CC 3328 fi 3329else 3330 CC="$ac_cv_prog_CC" 3331fi 3332 3333if test -z "$CC"; then 3334 if test -n "$ac_tool_prefix"; then 3335 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3336set dummy ${ac_tool_prefix}cc; ac_word=$2 3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3338$as_echo_n "checking for $ac_word... " >&6; } 3339if ${ac_cv_prog_CC+:} false; then : 3340 $as_echo_n "(cached) " >&6 3341else 3342 if test -n "$CC"; then 3343 ac_cv_prog_CC="$CC" # Let the user override the test. 3344else 3345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3346for as_dir in $PATH 3347do 3348 IFS=$as_save_IFS 3349 test -z "$as_dir" && as_dir=. 3350 for ac_exec_ext in '' $ac_executable_extensions; do 3351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3352 ac_cv_prog_CC="${ac_tool_prefix}cc" 3353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3354 break 2 3355 fi 3356done 3357 done 3358IFS=$as_save_IFS 3359 3360fi 3361fi 3362CC=$ac_cv_prog_CC 3363if test -n "$CC"; then 3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3365$as_echo "$CC" >&6; } 3366else 3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3368$as_echo "no" >&6; } 3369fi 3370 3371 3372 fi 3373fi 3374if test -z "$CC"; then 3375 # Extract the first word of "cc", so it can be a program name with args. 3376set dummy cc; ac_word=$2 3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3378$as_echo_n "checking for $ac_word... " >&6; } 3379if ${ac_cv_prog_CC+:} false; then : 3380 $as_echo_n "(cached) " >&6 3381else 3382 if test -n "$CC"; then 3383 ac_cv_prog_CC="$CC" # Let the user override the test. 3384else 3385 ac_prog_rejected=no 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3394 ac_prog_rejected=yes 3395 continue 3396 fi 3397 ac_cv_prog_CC="cc" 3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3399 break 2 3400 fi 3401done 3402 done 3403IFS=$as_save_IFS 3404 3405if test $ac_prog_rejected = yes; then 3406 # We found a bogon in the path, so make sure we never use it. 3407 set dummy $ac_cv_prog_CC 3408 shift 3409 if test $# != 0; then 3410 # We chose a different compiler from the bogus one. 3411 # However, it has the same basename, so the bogon will be chosen 3412 # first if we set CC to just the basename; use the full file name. 3413 shift 3414 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3415 fi 3416fi 3417fi 3418fi 3419CC=$ac_cv_prog_CC 3420if test -n "$CC"; then 3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3422$as_echo "$CC" >&6; } 3423else 3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3425$as_echo "no" >&6; } 3426fi 3427 3428 3429fi 3430if test -z "$CC"; then 3431 if test -n "$ac_tool_prefix"; then 3432 for ac_prog in cl.exe 3433 do 3434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3435set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3437$as_echo_n "checking for $ac_word... " >&6; } 3438if ${ac_cv_prog_CC+:} false; then : 3439 $as_echo_n "(cached) " >&6 3440else 3441 if test -n "$CC"; then 3442 ac_cv_prog_CC="$CC" # Let the user override the test. 3443else 3444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3445for as_dir in $PATH 3446do 3447 IFS=$as_save_IFS 3448 test -z "$as_dir" && as_dir=. 3449 for ac_exec_ext in '' $ac_executable_extensions; do 3450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3451 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3453 break 2 3454 fi 3455done 3456 done 3457IFS=$as_save_IFS 3458 3459fi 3460fi 3461CC=$ac_cv_prog_CC 3462if test -n "$CC"; then 3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3464$as_echo "$CC" >&6; } 3465else 3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3467$as_echo "no" >&6; } 3468fi 3469 3470 3471 test -n "$CC" && break 3472 done 3473fi 3474if test -z "$CC"; then 3475 ac_ct_CC=$CC 3476 for ac_prog in cl.exe 3477do 3478 # Extract the first word of "$ac_prog", so it can be a program name with args. 3479set dummy $ac_prog; ac_word=$2 3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3481$as_echo_n "checking for $ac_word... " >&6; } 3482if ${ac_cv_prog_ac_ct_CC+:} false; then : 3483 $as_echo_n "(cached) " >&6 3484else 3485 if test -n "$ac_ct_CC"; then 3486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3487else 3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3489for as_dir in $PATH 3490do 3491 IFS=$as_save_IFS 3492 test -z "$as_dir" && as_dir=. 3493 for ac_exec_ext in '' $ac_executable_extensions; do 3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3495 ac_cv_prog_ac_ct_CC="$ac_prog" 3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3497 break 2 3498 fi 3499done 3500 done 3501IFS=$as_save_IFS 3502 3503fi 3504fi 3505ac_ct_CC=$ac_cv_prog_ac_ct_CC 3506if test -n "$ac_ct_CC"; then 3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3508$as_echo "$ac_ct_CC" >&6; } 3509else 3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3511$as_echo "no" >&6; } 3512fi 3513 3514 3515 test -n "$ac_ct_CC" && break 3516done 3517 3518 if test "x$ac_ct_CC" = x; then 3519 CC="" 3520 else 3521 case $cross_compiling:$ac_tool_warned in 3522yes:) 3523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3525ac_tool_warned=yes ;; 3526esac 3527 CC=$ac_ct_CC 3528 fi 3529fi 3530 3531fi 3532 3533 3534test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3536as_fn_error $? "no acceptable C compiler found in \$PATH 3537See \`config.log' for more details" "$LINENO" 5; } 3538 3539# Provide some information about the compiler. 3540$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3541set X $ac_compile 3542ac_compiler=$2 3543for ac_option in --version -v -V -qversion; do 3544 { { ac_try="$ac_compiler $ac_option >&5" 3545case "(($ac_try" in 3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3547 *) ac_try_echo=$ac_try;; 3548esac 3549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3550$as_echo "$ac_try_echo"; } >&5 3551 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3552 ac_status=$? 3553 if test -s conftest.err; then 3554 sed '10a\ 3555... rest of stderr output deleted ... 3556 10q' conftest.err >conftest.er1 3557 cat conftest.er1 >&5 3558 fi 3559 rm -f conftest.er1 conftest.err 3560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3561 test $ac_status = 0; } 3562done 3563 3564cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3565/* end confdefs.h. */ 3566 3567int 3568main () 3569{ 3570 3571 ; 3572 return 0; 3573} 3574_ACEOF 3575ac_clean_files_save=$ac_clean_files 3576ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3577# Try to create an executable without -o first, disregard a.out. 3578# It will help us diagnose broken compilers, and finding out an intuition 3579# of exeext. 3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3581$as_echo_n "checking whether the C compiler works... " >&6; } 3582ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3583 3584# The possible output files: 3585ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3586 3587ac_rmfiles= 3588for ac_file in $ac_files 3589do 3590 case $ac_file in 3591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3592 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3593 esac 3594done 3595rm -f $ac_rmfiles 3596 3597if { { ac_try="$ac_link_default" 3598case "(($ac_try" in 3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3600 *) ac_try_echo=$ac_try;; 3601esac 3602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3603$as_echo "$ac_try_echo"; } >&5 3604 (eval "$ac_link_default") 2>&5 3605 ac_status=$? 3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3607 test $ac_status = 0; }; then : 3608 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3609# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3610# in a Makefile. We should not override ac_cv_exeext if it was cached, 3611# so that the user can short-circuit this test for compilers unknown to 3612# Autoconf. 3613for ac_file in $ac_files '' 3614do 3615 test -f "$ac_file" || continue 3616 case $ac_file in 3617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3618 ;; 3619 [ab].out ) 3620 # We found the default executable, but exeext='' is most 3621 # certainly right. 3622 break;; 3623 *.* ) 3624 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3625 then :; else 3626 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3627 fi 3628 # We set ac_cv_exeext here because the later test for it is not 3629 # safe: cross compilers may not add the suffix if given an `-o' 3630 # argument, so we may need to know it at that point already. 3631 # Even if this section looks crufty: it has the advantage of 3632 # actually working. 3633 break;; 3634 * ) 3635 break;; 3636 esac 3637done 3638test "$ac_cv_exeext" = no && ac_cv_exeext= 3639 3640else 3641 ac_file='' 3642fi 3643if test -z "$ac_file"; then : 3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3645$as_echo "no" >&6; } 3646$as_echo "$as_me: failed program was:" >&5 3647sed 's/^/| /' conftest.$ac_ext >&5 3648 3649{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3651as_fn_error 77 "C compiler cannot create executables 3652See \`config.log' for more details" "$LINENO" 5; } 3653else 3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3655$as_echo "yes" >&6; } 3656fi 3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3658$as_echo_n "checking for C compiler default output file name... " >&6; } 3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3660$as_echo "$ac_file" >&6; } 3661ac_exeext=$ac_cv_exeext 3662 3663rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3664ac_clean_files=$ac_clean_files_save 3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3666$as_echo_n "checking for suffix of executables... " >&6; } 3667if { { ac_try="$ac_link" 3668case "(($ac_try" in 3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3670 *) ac_try_echo=$ac_try;; 3671esac 3672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3673$as_echo "$ac_try_echo"; } >&5 3674 (eval "$ac_link") 2>&5 3675 ac_status=$? 3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3677 test $ac_status = 0; }; then : 3678 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3679# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3680# work properly (i.e., refer to `conftest.exe'), while it won't with 3681# `rm'. 3682for ac_file in conftest.exe conftest conftest.*; do 3683 test -f "$ac_file" || continue 3684 case $ac_file in 3685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3686 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3687 break;; 3688 * ) break;; 3689 esac 3690done 3691else 3692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3694as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3695See \`config.log' for more details" "$LINENO" 5; } 3696fi 3697rm -f conftest conftest$ac_cv_exeext 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3699$as_echo "$ac_cv_exeext" >&6; } 3700 3701rm -f conftest.$ac_ext 3702EXEEXT=$ac_cv_exeext 3703ac_exeext=$EXEEXT 3704cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3705/* end confdefs.h. */ 3706#include <stdio.h> 3707int 3708main () 3709{ 3710FILE *f = fopen ("conftest.out", "w"); 3711 return ferror (f) || fclose (f) != 0; 3712 3713 ; 3714 return 0; 3715} 3716_ACEOF 3717ac_clean_files="$ac_clean_files conftest.out" 3718# Check that the compiler produces executables we can run. If not, either 3719# the compiler is broken, or we cross compile. 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3721$as_echo_n "checking whether we are cross compiling... " >&6; } 3722if test "$cross_compiling" != yes; then 3723 { { ac_try="$ac_link" 3724case "(($ac_try" in 3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3726 *) ac_try_echo=$ac_try;; 3727esac 3728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3729$as_echo "$ac_try_echo"; } >&5 3730 (eval "$ac_link") 2>&5 3731 ac_status=$? 3732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3733 test $ac_status = 0; } 3734 if { ac_try='./conftest$ac_cv_exeext' 3735 { { case "(($ac_try" in 3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3737 *) ac_try_echo=$ac_try;; 3738esac 3739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3740$as_echo "$ac_try_echo"; } >&5 3741 (eval "$ac_try") 2>&5 3742 ac_status=$? 3743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3744 test $ac_status = 0; }; }; then 3745 cross_compiling=no 3746 else 3747 if test "$cross_compiling" = maybe; then 3748 cross_compiling=yes 3749 else 3750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3752as_fn_error $? "cannot run C compiled programs. 3753If you meant to cross compile, use \`--host'. 3754See \`config.log' for more details" "$LINENO" 5; } 3755 fi 3756 fi 3757fi 3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3759$as_echo "$cross_compiling" >&6; } 3760 3761rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3762ac_clean_files=$ac_clean_files_save 3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3764$as_echo_n "checking for suffix of object files... " >&6; } 3765if ${ac_cv_objext+:} false; then : 3766 $as_echo_n "(cached) " >&6 3767else 3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3769/* end confdefs.h. */ 3770 3771int 3772main () 3773{ 3774 3775 ; 3776 return 0; 3777} 3778_ACEOF 3779rm -f conftest.o conftest.obj 3780if { { ac_try="$ac_compile" 3781case "(($ac_try" in 3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3783 *) ac_try_echo=$ac_try;; 3784esac 3785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3786$as_echo "$ac_try_echo"; } >&5 3787 (eval "$ac_compile") 2>&5 3788 ac_status=$? 3789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3790 test $ac_status = 0; }; then : 3791 for ac_file in conftest.o conftest.obj conftest.*; do 3792 test -f "$ac_file" || continue; 3793 case $ac_file in 3794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3795 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3796 break;; 3797 esac 3798done 3799else 3800 $as_echo "$as_me: failed program was:" >&5 3801sed 's/^/| /' conftest.$ac_ext >&5 3802 3803{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3804$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3805as_fn_error $? "cannot compute suffix of object files: cannot compile 3806See \`config.log' for more details" "$LINENO" 5; } 3807fi 3808rm -f conftest.$ac_cv_objext conftest.$ac_ext 3809fi 3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3811$as_echo "$ac_cv_objext" >&6; } 3812OBJEXT=$ac_cv_objext 3813ac_objext=$OBJEXT 3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3815$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3816if ${ac_cv_c_compiler_gnu+:} false; then : 3817 $as_echo_n "(cached) " >&6 3818else 3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3820/* end confdefs.h. */ 3821 3822int 3823main () 3824{ 3825#ifndef __GNUC__ 3826 choke me 3827#endif 3828 3829 ; 3830 return 0; 3831} 3832_ACEOF 3833if ac_fn_c_try_compile "$LINENO"; then : 3834 ac_compiler_gnu=yes 3835else 3836 ac_compiler_gnu=no 3837fi 3838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3839ac_cv_c_compiler_gnu=$ac_compiler_gnu 3840 3841fi 3842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3843$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3844if test $ac_compiler_gnu = yes; then 3845 GCC=yes 3846else 3847 GCC= 3848fi 3849ac_test_CFLAGS=${CFLAGS+set} 3850ac_save_CFLAGS=$CFLAGS 3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3852$as_echo_n "checking whether $CC accepts -g... " >&6; } 3853if ${ac_cv_prog_cc_g+:} false; then : 3854 $as_echo_n "(cached) " >&6 3855else 3856 ac_save_c_werror_flag=$ac_c_werror_flag 3857 ac_c_werror_flag=yes 3858 ac_cv_prog_cc_g=no 3859 CFLAGS="-g" 3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3861/* end confdefs.h. */ 3862 3863int 3864main () 3865{ 3866 3867 ; 3868 return 0; 3869} 3870_ACEOF 3871if ac_fn_c_try_compile "$LINENO"; then : 3872 ac_cv_prog_cc_g=yes 3873else 3874 CFLAGS="" 3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3876/* end confdefs.h. */ 3877 3878int 3879main () 3880{ 3881 3882 ; 3883 return 0; 3884} 3885_ACEOF 3886if ac_fn_c_try_compile "$LINENO"; then : 3887 3888else 3889 ac_c_werror_flag=$ac_save_c_werror_flag 3890 CFLAGS="-g" 3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3892/* end confdefs.h. */ 3893 3894int 3895main () 3896{ 3897 3898 ; 3899 return 0; 3900} 3901_ACEOF 3902if ac_fn_c_try_compile "$LINENO"; then : 3903 ac_cv_prog_cc_g=yes 3904fi 3905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3906fi 3907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3908fi 3909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3910 ac_c_werror_flag=$ac_save_c_werror_flag 3911fi 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3913$as_echo "$ac_cv_prog_cc_g" >&6; } 3914if test "$ac_test_CFLAGS" = set; then 3915 CFLAGS=$ac_save_CFLAGS 3916elif test $ac_cv_prog_cc_g = yes; then 3917 if test "$GCC" = yes; then 3918 CFLAGS="-g -O2" 3919 else 3920 CFLAGS="-g" 3921 fi 3922else 3923 if test "$GCC" = yes; then 3924 CFLAGS="-O2" 3925 else 3926 CFLAGS= 3927 fi 3928fi 3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3930$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3931if ${ac_cv_prog_cc_c89+:} false; then : 3932 $as_echo_n "(cached) " >&6 3933else 3934 ac_cv_prog_cc_c89=no 3935ac_save_CC=$CC 3936cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3937/* end confdefs.h. */ 3938#include <stdarg.h> 3939#include <stdio.h> 3940struct stat; 3941/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3942struct buf { int x; }; 3943FILE * (*rcsopen) (struct buf *, struct stat *, int); 3944static char *e (p, i) 3945 char **p; 3946 int i; 3947{ 3948 return p[i]; 3949} 3950static char *f (char * (*g) (char **, int), char **p, ...) 3951{ 3952 char *s; 3953 va_list v; 3954 va_start (v,p); 3955 s = g (p, va_arg (v,int)); 3956 va_end (v); 3957 return s; 3958} 3959 3960/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3961 function prototypes and stuff, but not '\xHH' hex character constants. 3962 These don't provoke an error unfortunately, instead are silently treated 3963 as 'x'. The following induces an error, until -std is added to get 3964 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3965 array size at least. It's necessary to write '\x00'==0 to get something 3966 that's true only with -std. */ 3967int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3968 3969/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3970 inside strings and character constants. */ 3971#define FOO(x) 'x' 3972int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3973 3974int test (int i, double x); 3975struct s1 {int (*f) (int a);}; 3976struct s2 {int (*f) (double a);}; 3977int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3978int argc; 3979char **argv; 3980int 3981main () 3982{ 3983return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3984 ; 3985 return 0; 3986} 3987_ACEOF 3988for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3989 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3990do 3991 CC="$ac_save_CC $ac_arg" 3992 if ac_fn_c_try_compile "$LINENO"; then : 3993 ac_cv_prog_cc_c89=$ac_arg 3994fi 3995rm -f core conftest.err conftest.$ac_objext 3996 test "x$ac_cv_prog_cc_c89" != "xno" && break 3997done 3998rm -f conftest.$ac_ext 3999CC=$ac_save_CC 4000 4001fi 4002# AC_CACHE_VAL 4003case "x$ac_cv_prog_cc_c89" in 4004 x) 4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4006$as_echo "none needed" >&6; } ;; 4007 xno) 4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4009$as_echo "unsupported" >&6; } ;; 4010 *) 4011 CC="$CC $ac_cv_prog_cc_c89" 4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4013$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4014esac 4015if test "x$ac_cv_prog_cc_c89" != xno; then : 4016 4017fi 4018 4019ac_ext=c 4020ac_cpp='$CPP $CPPFLAGS' 4021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4023ac_compiler_gnu=$ac_cv_c_compiler_gnu 4024 4025ac_ext=c 4026ac_cpp='$CPP $CPPFLAGS' 4027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4029ac_compiler_gnu=$ac_cv_c_compiler_gnu 4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4031$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4032if ${am_cv_prog_cc_c_o+:} false; then : 4033 $as_echo_n "(cached) " >&6 4034else 4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4036/* end confdefs.h. */ 4037 4038int 4039main () 4040{ 4041 4042 ; 4043 return 0; 4044} 4045_ACEOF 4046 # Make sure it works both with $CC and with simple cc. 4047 # Following AC_PROG_CC_C_O, we do the test twice because some 4048 # compilers refuse to overwrite an existing .o file with -o, 4049 # though they will create one. 4050 am_cv_prog_cc_c_o=yes 4051 for am_i in 1 2; do 4052 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4053 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4054 ac_status=$? 4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4056 (exit $ac_status); } \ 4057 && test -f conftest2.$ac_objext; then 4058 : OK 4059 else 4060 am_cv_prog_cc_c_o=no 4061 break 4062 fi 4063 done 4064 rm -f core conftest* 4065 unset am_i 4066fi 4067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4068$as_echo "$am_cv_prog_cc_c_o" >&6; } 4069if test "$am_cv_prog_cc_c_o" != yes; then 4070 # Losing compiler, so override with the script. 4071 # FIXME: It is wrong to rewrite CC. 4072 # But if we don't then we get into trouble of one sort or another. 4073 # A longer-term fix would be to have automake use am__CC in this case, 4074 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4075 CC="$am_aux_dir/compile $CC" 4076fi 4077ac_ext=c 4078ac_cpp='$CPP $CPPFLAGS' 4079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4081ac_compiler_gnu=$ac_cv_c_compiler_gnu 4082 4083 4084depcc="$CC" am_compiler_list= 4085 4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4087$as_echo_n "checking dependency style of $depcc... " >&6; } 4088if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4089 $as_echo_n "(cached) " >&6 4090else 4091 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4092 # We make a subdir and do the tests there. Otherwise we can end up 4093 # making bogus files that we don't know about and never remove. For 4094 # instance it was reported that on HP-UX the gcc test will end up 4095 # making a dummy file named 'D' -- because '-MD' means "put the output 4096 # in D". 4097 rm -rf conftest.dir 4098 mkdir conftest.dir 4099 # Copy depcomp to subdir because otherwise we won't find it if we're 4100 # using a relative directory. 4101 cp "$am_depcomp" conftest.dir 4102 cd conftest.dir 4103 # We will build objects and dependencies in a subdirectory because 4104 # it helps to detect inapplicable dependency modes. For instance 4105 # both Tru64's cc and ICC support -MD to output dependencies as a 4106 # side effect of compilation, but ICC will put the dependencies in 4107 # the current directory while Tru64 will put them in the object 4108 # directory. 4109 mkdir sub 4110 4111 am_cv_CC_dependencies_compiler_type=none 4112 if test "$am_compiler_list" = ""; then 4113 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4114 fi 4115 am__universal=false 4116 case " $depcc " in #( 4117 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4118 esac 4119 4120 for depmode in $am_compiler_list; do 4121 # Setup a source with many dependencies, because some compilers 4122 # like to wrap large dependency lists on column 80 (with \), and 4123 # we should not choose a depcomp mode which is confused by this. 4124 # 4125 # We need to recreate these files for each test, as the compiler may 4126 # overwrite some of them when testing with obscure command lines. 4127 # This happens at least with the AIX C compiler. 4128 : > sub/conftest.c 4129 for i in 1 2 3 4 5 6; do 4130 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4131 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4132 # Solaris 10 /bin/sh. 4133 echo '/* dummy */' > sub/conftst$i.h 4134 done 4135 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4136 4137 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4138 # mode. It turns out that the SunPro C++ compiler does not properly 4139 # handle '-M -o', and we need to detect this. Also, some Intel 4140 # versions had trouble with output in subdirs. 4141 am__obj=sub/conftest.${OBJEXT-o} 4142 am__minus_obj="-o $am__obj" 4143 case $depmode in 4144 gcc) 4145 # This depmode causes a compiler race in universal mode. 4146 test "$am__universal" = false || continue 4147 ;; 4148 nosideeffect) 4149 # After this tag, mechanisms are not by side-effect, so they'll 4150 # only be used when explicitly requested. 4151 if test "x$enable_dependency_tracking" = xyes; then 4152 continue 4153 else 4154 break 4155 fi 4156 ;; 4157 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4158 # This compiler won't grok '-c -o', but also, the minuso test has 4159 # not run yet. These depmodes are late enough in the game, and 4160 # so weak that their functioning should not be impacted. 4161 am__obj=conftest.${OBJEXT-o} 4162 am__minus_obj= 4163 ;; 4164 none) break ;; 4165 esac 4166 if depmode=$depmode \ 4167 source=sub/conftest.c object=$am__obj \ 4168 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4169 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4170 >/dev/null 2>conftest.err && 4171 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4172 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4173 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4174 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4175 # icc doesn't choke on unknown options, it will just issue warnings 4176 # or remarks (even with -Werror). So we grep stderr for any message 4177 # that says an option was ignored or not supported. 4178 # When given -MP, icc 7.0 and 7.1 complain thusly: 4179 # icc: Command line warning: ignoring option '-M'; no argument required 4180 # The diagnosis changed in icc 8.0: 4181 # icc: Command line remark: option '-MP' not supported 4182 if (grep 'ignoring option' conftest.err || 4183 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4184 am_cv_CC_dependencies_compiler_type=$depmode 4185 break 4186 fi 4187 fi 4188 done 4189 4190 cd .. 4191 rm -rf conftest.dir 4192else 4193 am_cv_CC_dependencies_compiler_type=none 4194fi 4195 4196fi 4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4198$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4199CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4200 4201 if 4202 test "x$enable_dependency_tracking" != xno \ 4203 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4204 am__fastdepCC_TRUE= 4205 am__fastdepCC_FALSE='#' 4206else 4207 am__fastdepCC_TRUE='#' 4208 am__fastdepCC_FALSE= 4209fi 4210 4211 4212 4213# Check whether --enable-largefile was given. 4214if test "${enable_largefile+set}" = set; then : 4215 enableval=$enable_largefile; 4216fi 4217 4218if test "$enable_largefile" != no; then 4219 4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4221$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4222if ${ac_cv_sys_largefile_CC+:} false; then : 4223 $as_echo_n "(cached) " >&6 4224else 4225 ac_cv_sys_largefile_CC=no 4226 if test "$GCC" != yes; then 4227 ac_save_CC=$CC 4228 while :; do 4229 # IRIX 6.2 and later do not support large files by default, 4230 # so use the C compiler's -n32 option if that helps. 4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4232/* end confdefs.h. */ 4233#include <sys/types.h> 4234 /* Check that off_t can represent 2**63 - 1 correctly. 4235 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4236 since some C++ compilers masquerading as C compilers 4237 incorrectly reject 9223372036854775807. */ 4238#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4240 && LARGE_OFF_T % 2147483647 == 1) 4241 ? 1 : -1]; 4242int 4243main () 4244{ 4245 4246 ; 4247 return 0; 4248} 4249_ACEOF 4250 if ac_fn_c_try_compile "$LINENO"; then : 4251 break 4252fi 4253rm -f core conftest.err conftest.$ac_objext 4254 CC="$CC -n32" 4255 if ac_fn_c_try_compile "$LINENO"; then : 4256 ac_cv_sys_largefile_CC=' -n32'; break 4257fi 4258rm -f core conftest.err conftest.$ac_objext 4259 break 4260 done 4261 CC=$ac_save_CC 4262 rm -f conftest.$ac_ext 4263 fi 4264fi 4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4266$as_echo "$ac_cv_sys_largefile_CC" >&6; } 4267 if test "$ac_cv_sys_largefile_CC" != no; then 4268 CC=$CC$ac_cv_sys_largefile_CC 4269 fi 4270 4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4272$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4273if ${ac_cv_sys_file_offset_bits+:} false; then : 4274 $as_echo_n "(cached) " >&6 4275else 4276 while :; do 4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278/* end confdefs.h. */ 4279#include <sys/types.h> 4280 /* Check that off_t can represent 2**63 - 1 correctly. 4281 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4282 since some C++ compilers masquerading as C compilers 4283 incorrectly reject 9223372036854775807. */ 4284#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4285 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4286 && LARGE_OFF_T % 2147483647 == 1) 4287 ? 1 : -1]; 4288int 4289main () 4290{ 4291 4292 ; 4293 return 0; 4294} 4295_ACEOF 4296if ac_fn_c_try_compile "$LINENO"; then : 4297 ac_cv_sys_file_offset_bits=no; break 4298fi 4299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4301/* end confdefs.h. */ 4302#define _FILE_OFFSET_BITS 64 4303#include <sys/types.h> 4304 /* Check that off_t can represent 2**63 - 1 correctly. 4305 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4306 since some C++ compilers masquerading as C compilers 4307 incorrectly reject 9223372036854775807. */ 4308#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4309 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4310 && LARGE_OFF_T % 2147483647 == 1) 4311 ? 1 : -1]; 4312int 4313main () 4314{ 4315 4316 ; 4317 return 0; 4318} 4319_ACEOF 4320if ac_fn_c_try_compile "$LINENO"; then : 4321 ac_cv_sys_file_offset_bits=64; break 4322fi 4323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4324 ac_cv_sys_file_offset_bits=unknown 4325 break 4326done 4327fi 4328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4329$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 4330case $ac_cv_sys_file_offset_bits in #( 4331 no | unknown) ;; 4332 *) 4333cat >>confdefs.h <<_ACEOF 4334#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4335_ACEOF 4336;; 4337esac 4338rm -rf conftest* 4339 if test $ac_cv_sys_file_offset_bits = unknown; then 4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4341$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 4342if ${ac_cv_sys_large_files+:} false; then : 4343 $as_echo_n "(cached) " >&6 4344else 4345 while :; do 4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4347/* end confdefs.h. */ 4348#include <sys/types.h> 4349 /* Check that off_t can represent 2**63 - 1 correctly. 4350 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4351 since some C++ compilers masquerading as C compilers 4352 incorrectly reject 9223372036854775807. */ 4353#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4354 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4355 && LARGE_OFF_T % 2147483647 == 1) 4356 ? 1 : -1]; 4357int 4358main () 4359{ 4360 4361 ; 4362 return 0; 4363} 4364_ACEOF 4365if ac_fn_c_try_compile "$LINENO"; then : 4366 ac_cv_sys_large_files=no; break 4367fi 4368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4370/* end confdefs.h. */ 4371#define _LARGE_FILES 1 4372#include <sys/types.h> 4373 /* Check that off_t can represent 2**63 - 1 correctly. 4374 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4375 since some C++ compilers masquerading as C compilers 4376 incorrectly reject 9223372036854775807. */ 4377#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4378 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4379 && LARGE_OFF_T % 2147483647 == 1) 4380 ? 1 : -1]; 4381int 4382main () 4383{ 4384 4385 ; 4386 return 0; 4387} 4388_ACEOF 4389if ac_fn_c_try_compile "$LINENO"; then : 4390 ac_cv_sys_large_files=1; break 4391fi 4392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4393 ac_cv_sys_large_files=unknown 4394 break 4395done 4396fi 4397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4398$as_echo "$ac_cv_sys_large_files" >&6; } 4399case $ac_cv_sys_large_files in #( 4400 no | unknown) ;; 4401 *) 4402cat >>confdefs.h <<_ACEOF 4403#define _LARGE_FILES $ac_cv_sys_large_files 4404_ACEOF 4405;; 4406esac 4407rm -rf conftest* 4408 fi 4409 4410 4411fi 4412 4413 4414# Checks for programs. 4415for ac_prog in gawk mawk nawk awk 4416do 4417 # Extract the first word of "$ac_prog", so it can be a program name with args. 4418set dummy $ac_prog; ac_word=$2 4419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4420$as_echo_n "checking for $ac_word... " >&6; } 4421if ${ac_cv_prog_AWK+:} false; then : 4422 $as_echo_n "(cached) " >&6 4423else 4424 if test -n "$AWK"; then 4425 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4426else 4427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4428for as_dir in $PATH 4429do 4430 IFS=$as_save_IFS 4431 test -z "$as_dir" && as_dir=. 4432 for ac_exec_ext in '' $ac_executable_extensions; do 4433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4434 ac_cv_prog_AWK="$ac_prog" 4435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4436 break 2 4437 fi 4438done 4439 done 4440IFS=$as_save_IFS 4441 4442fi 4443fi 4444AWK=$ac_cv_prog_AWK 4445if test -n "$AWK"; then 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4447$as_echo "$AWK" >&6; } 4448else 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4450$as_echo "no" >&6; } 4451fi 4452 4453 4454 test -n "$AWK" && break 4455done 4456 4457ac_ext=c 4458ac_cpp='$CPP $CPPFLAGS' 4459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4461ac_compiler_gnu=$ac_cv_c_compiler_gnu 4462if test -n "$ac_tool_prefix"; then 4463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4464set dummy ${ac_tool_prefix}gcc; ac_word=$2 4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4466$as_echo_n "checking for $ac_word... " >&6; } 4467if ${ac_cv_prog_CC+:} false; then : 4468 $as_echo_n "(cached) " >&6 4469else 4470 if test -n "$CC"; then 4471 ac_cv_prog_CC="$CC" # Let the user override the test. 4472else 4473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4474for as_dir in $PATH 4475do 4476 IFS=$as_save_IFS 4477 test -z "$as_dir" && as_dir=. 4478 for ac_exec_ext in '' $ac_executable_extensions; do 4479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4480 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4482 break 2 4483 fi 4484done 4485 done 4486IFS=$as_save_IFS 4487 4488fi 4489fi 4490CC=$ac_cv_prog_CC 4491if test -n "$CC"; then 4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4493$as_echo "$CC" >&6; } 4494else 4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4496$as_echo "no" >&6; } 4497fi 4498 4499 4500fi 4501if test -z "$ac_cv_prog_CC"; then 4502 ac_ct_CC=$CC 4503 # Extract the first word of "gcc", so it can be a program name with args. 4504set dummy gcc; ac_word=$2 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4506$as_echo_n "checking for $ac_word... " >&6; } 4507if ${ac_cv_prog_ac_ct_CC+:} false; then : 4508 $as_echo_n "(cached) " >&6 4509else 4510 if test -n "$ac_ct_CC"; then 4511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4512else 4513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4514for as_dir in $PATH 4515do 4516 IFS=$as_save_IFS 4517 test -z "$as_dir" && as_dir=. 4518 for ac_exec_ext in '' $ac_executable_extensions; do 4519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4520 ac_cv_prog_ac_ct_CC="gcc" 4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4522 break 2 4523 fi 4524done 4525 done 4526IFS=$as_save_IFS 4527 4528fi 4529fi 4530ac_ct_CC=$ac_cv_prog_ac_ct_CC 4531if test -n "$ac_ct_CC"; then 4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4533$as_echo "$ac_ct_CC" >&6; } 4534else 4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4536$as_echo "no" >&6; } 4537fi 4538 4539 if test "x$ac_ct_CC" = x; then 4540 CC="" 4541 else 4542 case $cross_compiling:$ac_tool_warned in 4543yes:) 4544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4546ac_tool_warned=yes ;; 4547esac 4548 CC=$ac_ct_CC 4549 fi 4550else 4551 CC="$ac_cv_prog_CC" 4552fi 4553 4554if test -z "$CC"; then 4555 if test -n "$ac_tool_prefix"; then 4556 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4557set dummy ${ac_tool_prefix}cc; ac_word=$2 4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4559$as_echo_n "checking for $ac_word... " >&6; } 4560if ${ac_cv_prog_CC+:} false; then : 4561 $as_echo_n "(cached) " >&6 4562else 4563 if test -n "$CC"; then 4564 ac_cv_prog_CC="$CC" # Let the user override the test. 4565else 4566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4567for as_dir in $PATH 4568do 4569 IFS=$as_save_IFS 4570 test -z "$as_dir" && as_dir=. 4571 for ac_exec_ext in '' $ac_executable_extensions; do 4572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4573 ac_cv_prog_CC="${ac_tool_prefix}cc" 4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4575 break 2 4576 fi 4577done 4578 done 4579IFS=$as_save_IFS 4580 4581fi 4582fi 4583CC=$ac_cv_prog_CC 4584if test -n "$CC"; then 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4586$as_echo "$CC" >&6; } 4587else 4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4589$as_echo "no" >&6; } 4590fi 4591 4592 4593 fi 4594fi 4595if test -z "$CC"; then 4596 # Extract the first word of "cc", so it can be a program name with args. 4597set dummy cc; ac_word=$2 4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4599$as_echo_n "checking for $ac_word... " >&6; } 4600if ${ac_cv_prog_CC+:} false; then : 4601 $as_echo_n "(cached) " >&6 4602else 4603 if test -n "$CC"; then 4604 ac_cv_prog_CC="$CC" # Let the user override the test. 4605else 4606 ac_prog_rejected=no 4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4608for as_dir in $PATH 4609do 4610 IFS=$as_save_IFS 4611 test -z "$as_dir" && as_dir=. 4612 for ac_exec_ext in '' $ac_executable_extensions; do 4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4615 ac_prog_rejected=yes 4616 continue 4617 fi 4618 ac_cv_prog_CC="cc" 4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4620 break 2 4621 fi 4622done 4623 done 4624IFS=$as_save_IFS 4625 4626if test $ac_prog_rejected = yes; then 4627 # We found a bogon in the path, so make sure we never use it. 4628 set dummy $ac_cv_prog_CC 4629 shift 4630 if test $# != 0; then 4631 # We chose a different compiler from the bogus one. 4632 # However, it has the same basename, so the bogon will be chosen 4633 # first if we set CC to just the basename; use the full file name. 4634 shift 4635 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4636 fi 4637fi 4638fi 4639fi 4640CC=$ac_cv_prog_CC 4641if test -n "$CC"; then 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4643$as_echo "$CC" >&6; } 4644else 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4646$as_echo "no" >&6; } 4647fi 4648 4649 4650fi 4651if test -z "$CC"; then 4652 if test -n "$ac_tool_prefix"; then 4653 for ac_prog in cl.exe 4654 do 4655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4656set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4658$as_echo_n "checking for $ac_word... " >&6; } 4659if ${ac_cv_prog_CC+:} false; then : 4660 $as_echo_n "(cached) " >&6 4661else 4662 if test -n "$CC"; then 4663 ac_cv_prog_CC="$CC" # Let the user override the test. 4664else 4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4666for as_dir in $PATH 4667do 4668 IFS=$as_save_IFS 4669 test -z "$as_dir" && as_dir=. 4670 for ac_exec_ext in '' $ac_executable_extensions; do 4671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4674 break 2 4675 fi 4676done 4677 done 4678IFS=$as_save_IFS 4679 4680fi 4681fi 4682CC=$ac_cv_prog_CC 4683if test -n "$CC"; then 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4685$as_echo "$CC" >&6; } 4686else 4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4688$as_echo "no" >&6; } 4689fi 4690 4691 4692 test -n "$CC" && break 4693 done 4694fi 4695if test -z "$CC"; then 4696 ac_ct_CC=$CC 4697 for ac_prog in cl.exe 4698do 4699 # Extract the first word of "$ac_prog", so it can be a program name with args. 4700set dummy $ac_prog; ac_word=$2 4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4702$as_echo_n "checking for $ac_word... " >&6; } 4703if ${ac_cv_prog_ac_ct_CC+:} false; then : 4704 $as_echo_n "(cached) " >&6 4705else 4706 if test -n "$ac_ct_CC"; then 4707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4708else 4709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4710for as_dir in $PATH 4711do 4712 IFS=$as_save_IFS 4713 test -z "$as_dir" && as_dir=. 4714 for ac_exec_ext in '' $ac_executable_extensions; do 4715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4716 ac_cv_prog_ac_ct_CC="$ac_prog" 4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4718 break 2 4719 fi 4720done 4721 done 4722IFS=$as_save_IFS 4723 4724fi 4725fi 4726ac_ct_CC=$ac_cv_prog_ac_ct_CC 4727if test -n "$ac_ct_CC"; then 4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4729$as_echo "$ac_ct_CC" >&6; } 4730else 4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4732$as_echo "no" >&6; } 4733fi 4734 4735 4736 test -n "$ac_ct_CC" && break 4737done 4738 4739 if test "x$ac_ct_CC" = x; then 4740 CC="" 4741 else 4742 case $cross_compiling:$ac_tool_warned in 4743yes:) 4744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4746ac_tool_warned=yes ;; 4747esac 4748 CC=$ac_ct_CC 4749 fi 4750fi 4751 4752fi 4753 4754 4755test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4757as_fn_error $? "no acceptable C compiler found in \$PATH 4758See \`config.log' for more details" "$LINENO" 5; } 4759 4760# Provide some information about the compiler. 4761$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4762set X $ac_compile 4763ac_compiler=$2 4764for ac_option in --version -v -V -qversion; do 4765 { { ac_try="$ac_compiler $ac_option >&5" 4766case "(($ac_try" in 4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4768 *) ac_try_echo=$ac_try;; 4769esac 4770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4771$as_echo "$ac_try_echo"; } >&5 4772 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4773 ac_status=$? 4774 if test -s conftest.err; then 4775 sed '10a\ 4776... rest of stderr output deleted ... 4777 10q' conftest.err >conftest.er1 4778 cat conftest.er1 >&5 4779 fi 4780 rm -f conftest.er1 conftest.err 4781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4782 test $ac_status = 0; } 4783done 4784 4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4786$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4787if ${ac_cv_c_compiler_gnu+:} false; then : 4788 $as_echo_n "(cached) " >&6 4789else 4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4791/* end confdefs.h. */ 4792 4793int 4794main () 4795{ 4796#ifndef __GNUC__ 4797 choke me 4798#endif 4799 4800 ; 4801 return 0; 4802} 4803_ACEOF 4804if ac_fn_c_try_compile "$LINENO"; then : 4805 ac_compiler_gnu=yes 4806else 4807 ac_compiler_gnu=no 4808fi 4809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4810ac_cv_c_compiler_gnu=$ac_compiler_gnu 4811 4812fi 4813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4814$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4815if test $ac_compiler_gnu = yes; then 4816 GCC=yes 4817else 4818 GCC= 4819fi 4820ac_test_CFLAGS=${CFLAGS+set} 4821ac_save_CFLAGS=$CFLAGS 4822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4823$as_echo_n "checking whether $CC accepts -g... " >&6; } 4824if ${ac_cv_prog_cc_g+:} false; then : 4825 $as_echo_n "(cached) " >&6 4826else 4827 ac_save_c_werror_flag=$ac_c_werror_flag 4828 ac_c_werror_flag=yes 4829 ac_cv_prog_cc_g=no 4830 CFLAGS="-g" 4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4832/* end confdefs.h. */ 4833 4834int 4835main () 4836{ 4837 4838 ; 4839 return 0; 4840} 4841_ACEOF 4842if ac_fn_c_try_compile "$LINENO"; then : 4843 ac_cv_prog_cc_g=yes 4844else 4845 CFLAGS="" 4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4847/* end confdefs.h. */ 4848 4849int 4850main () 4851{ 4852 4853 ; 4854 return 0; 4855} 4856_ACEOF 4857if ac_fn_c_try_compile "$LINENO"; then : 4858 4859else 4860 ac_c_werror_flag=$ac_save_c_werror_flag 4861 CFLAGS="-g" 4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4863/* end confdefs.h. */ 4864 4865int 4866main () 4867{ 4868 4869 ; 4870 return 0; 4871} 4872_ACEOF 4873if ac_fn_c_try_compile "$LINENO"; then : 4874 ac_cv_prog_cc_g=yes 4875fi 4876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4877fi 4878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4879fi 4880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4881 ac_c_werror_flag=$ac_save_c_werror_flag 4882fi 4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4884$as_echo "$ac_cv_prog_cc_g" >&6; } 4885if test "$ac_test_CFLAGS" = set; then 4886 CFLAGS=$ac_save_CFLAGS 4887elif test $ac_cv_prog_cc_g = yes; then 4888 if test "$GCC" = yes; then 4889 CFLAGS="-g -O2" 4890 else 4891 CFLAGS="-g" 4892 fi 4893else 4894 if test "$GCC" = yes; then 4895 CFLAGS="-O2" 4896 else 4897 CFLAGS= 4898 fi 4899fi 4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4901$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4902if ${ac_cv_prog_cc_c89+:} false; then : 4903 $as_echo_n "(cached) " >&6 4904else 4905 ac_cv_prog_cc_c89=no 4906ac_save_CC=$CC 4907cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4908/* end confdefs.h. */ 4909#include <stdarg.h> 4910#include <stdio.h> 4911struct stat; 4912/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4913struct buf { int x; }; 4914FILE * (*rcsopen) (struct buf *, struct stat *, int); 4915static char *e (p, i) 4916 char **p; 4917 int i; 4918{ 4919 return p[i]; 4920} 4921static char *f (char * (*g) (char **, int), char **p, ...) 4922{ 4923 char *s; 4924 va_list v; 4925 va_start (v,p); 4926 s = g (p, va_arg (v,int)); 4927 va_end (v); 4928 return s; 4929} 4930 4931/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4932 function prototypes and stuff, but not '\xHH' hex character constants. 4933 These don't provoke an error unfortunately, instead are silently treated 4934 as 'x'. The following induces an error, until -std is added to get 4935 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4936 array size at least. It's necessary to write '\x00'==0 to get something 4937 that's true only with -std. */ 4938int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4939 4940/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4941 inside strings and character constants. */ 4942#define FOO(x) 'x' 4943int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4944 4945int test (int i, double x); 4946struct s1 {int (*f) (int a);}; 4947struct s2 {int (*f) (double a);}; 4948int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4949int argc; 4950char **argv; 4951int 4952main () 4953{ 4954return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4955 ; 4956 return 0; 4957} 4958_ACEOF 4959for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4960 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4961do 4962 CC="$ac_save_CC $ac_arg" 4963 if ac_fn_c_try_compile "$LINENO"; then : 4964 ac_cv_prog_cc_c89=$ac_arg 4965fi 4966rm -f core conftest.err conftest.$ac_objext 4967 test "x$ac_cv_prog_cc_c89" != "xno" && break 4968done 4969rm -f conftest.$ac_ext 4970CC=$ac_save_CC 4971 4972fi 4973# AC_CACHE_VAL 4974case "x$ac_cv_prog_cc_c89" in 4975 x) 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4977$as_echo "none needed" >&6; } ;; 4978 xno) 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4980$as_echo "unsupported" >&6; } ;; 4981 *) 4982 CC="$CC $ac_cv_prog_cc_c89" 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4984$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4985esac 4986if test "x$ac_cv_prog_cc_c89" != xno; then : 4987 4988fi 4989 4990ac_ext=c 4991ac_cpp='$CPP $CPPFLAGS' 4992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4994ac_compiler_gnu=$ac_cv_c_compiler_gnu 4995 4996ac_ext=c 4997ac_cpp='$CPP $CPPFLAGS' 4998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5000ac_compiler_gnu=$ac_cv_c_compiler_gnu 5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5002$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5003if ${am_cv_prog_cc_c_o+:} false; then : 5004 $as_echo_n "(cached) " >&6 5005else 5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5007/* end confdefs.h. */ 5008 5009int 5010main () 5011{ 5012 5013 ; 5014 return 0; 5015} 5016_ACEOF 5017 # Make sure it works both with $CC and with simple cc. 5018 # Following AC_PROG_CC_C_O, we do the test twice because some 5019 # compilers refuse to overwrite an existing .o file with -o, 5020 # though they will create one. 5021 am_cv_prog_cc_c_o=yes 5022 for am_i in 1 2; do 5023 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5024 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5025 ac_status=$? 5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5027 (exit $ac_status); } \ 5028 && test -f conftest2.$ac_objext; then 5029 : OK 5030 else 5031 am_cv_prog_cc_c_o=no 5032 break 5033 fi 5034 done 5035 rm -f core conftest* 5036 unset am_i 5037fi 5038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5039$as_echo "$am_cv_prog_cc_c_o" >&6; } 5040if test "$am_cv_prog_cc_c_o" != yes; then 5041 # Losing compiler, so override with the script. 5042 # FIXME: It is wrong to rewrite CC. 5043 # But if we don't then we get into trouble of one sort or another. 5044 # A longer-term fix would be to have automake use am__CC in this case, 5045 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5046 CC="$am_aux_dir/compile $CC" 5047fi 5048ac_ext=c 5049ac_cpp='$CPP $CPPFLAGS' 5050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5052ac_compiler_gnu=$ac_cv_c_compiler_gnu 5053 5054 5055depcc="$CC" am_compiler_list= 5056 5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5058$as_echo_n "checking dependency style of $depcc... " >&6; } 5059if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5060 $as_echo_n "(cached) " >&6 5061else 5062 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5063 # We make a subdir and do the tests there. Otherwise we can end up 5064 # making bogus files that we don't know about and never remove. For 5065 # instance it was reported that on HP-UX the gcc test will end up 5066 # making a dummy file named 'D' -- because '-MD' means "put the output 5067 # in D". 5068 rm -rf conftest.dir 5069 mkdir conftest.dir 5070 # Copy depcomp to subdir because otherwise we won't find it if we're 5071 # using a relative directory. 5072 cp "$am_depcomp" conftest.dir 5073 cd conftest.dir 5074 # We will build objects and dependencies in a subdirectory because 5075 # it helps to detect inapplicable dependency modes. For instance 5076 # both Tru64's cc and ICC support -MD to output dependencies as a 5077 # side effect of compilation, but ICC will put the dependencies in 5078 # the current directory while Tru64 will put them in the object 5079 # directory. 5080 mkdir sub 5081 5082 am_cv_CC_dependencies_compiler_type=none 5083 if test "$am_compiler_list" = ""; then 5084 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5085 fi 5086 am__universal=false 5087 case " $depcc " in #( 5088 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5089 esac 5090 5091 for depmode in $am_compiler_list; do 5092 # Setup a source with many dependencies, because some compilers 5093 # like to wrap large dependency lists on column 80 (with \), and 5094 # we should not choose a depcomp mode which is confused by this. 5095 # 5096 # We need to recreate these files for each test, as the compiler may 5097 # overwrite some of them when testing with obscure command lines. 5098 # This happens at least with the AIX C compiler. 5099 : > sub/conftest.c 5100 for i in 1 2 3 4 5 6; do 5101 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5102 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5103 # Solaris 10 /bin/sh. 5104 echo '/* dummy */' > sub/conftst$i.h 5105 done 5106 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5107 5108 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5109 # mode. It turns out that the SunPro C++ compiler does not properly 5110 # handle '-M -o', and we need to detect this. Also, some Intel 5111 # versions had trouble with output in subdirs. 5112 am__obj=sub/conftest.${OBJEXT-o} 5113 am__minus_obj="-o $am__obj" 5114 case $depmode in 5115 gcc) 5116 # This depmode causes a compiler race in universal mode. 5117 test "$am__universal" = false || continue 5118 ;; 5119 nosideeffect) 5120 # After this tag, mechanisms are not by side-effect, so they'll 5121 # only be used when explicitly requested. 5122 if test "x$enable_dependency_tracking" = xyes; then 5123 continue 5124 else 5125 break 5126 fi 5127 ;; 5128 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5129 # This compiler won't grok '-c -o', but also, the minuso test has 5130 # not run yet. These depmodes are late enough in the game, and 5131 # so weak that their functioning should not be impacted. 5132 am__obj=conftest.${OBJEXT-o} 5133 am__minus_obj= 5134 ;; 5135 none) break ;; 5136 esac 5137 if depmode=$depmode \ 5138 source=sub/conftest.c object=$am__obj \ 5139 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5140 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5141 >/dev/null 2>conftest.err && 5142 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5143 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5144 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5145 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5146 # icc doesn't choke on unknown options, it will just issue warnings 5147 # or remarks (even with -Werror). So we grep stderr for any message 5148 # that says an option was ignored or not supported. 5149 # When given -MP, icc 7.0 and 7.1 complain thusly: 5150 # icc: Command line warning: ignoring option '-M'; no argument required 5151 # The diagnosis changed in icc 8.0: 5152 # icc: Command line remark: option '-MP' not supported 5153 if (grep 'ignoring option' conftest.err || 5154 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5155 am_cv_CC_dependencies_compiler_type=$depmode 5156 break 5157 fi 5158 fi 5159 done 5160 5161 cd .. 5162 rm -rf conftest.dir 5163else 5164 am_cv_CC_dependencies_compiler_type=none 5165fi 5166 5167fi 5168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5169$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5170CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5171 5172 if 5173 test "x$enable_dependency_tracking" != xno \ 5174 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5175 am__fastdepCC_TRUE= 5176 am__fastdepCC_FALSE='#' 5177else 5178 am__fastdepCC_TRUE='#' 5179 am__fastdepCC_FALSE= 5180fi 5181 5182 5183 5184for ac_prog in flex lex 5185do 5186 # Extract the first word of "$ac_prog", so it can be a program name with args. 5187set dummy $ac_prog; ac_word=$2 5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5189$as_echo_n "checking for $ac_word... " >&6; } 5190if ${ac_cv_prog_LEX+:} false; then : 5191 $as_echo_n "(cached) " >&6 5192else 5193 if test -n "$LEX"; then 5194 ac_cv_prog_LEX="$LEX" # Let the user override the test. 5195else 5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5197for as_dir in $PATH 5198do 5199 IFS=$as_save_IFS 5200 test -z "$as_dir" && as_dir=. 5201 for ac_exec_ext in '' $ac_executable_extensions; do 5202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5203 ac_cv_prog_LEX="$ac_prog" 5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5205 break 2 5206 fi 5207done 5208 done 5209IFS=$as_save_IFS 5210 5211fi 5212fi 5213LEX=$ac_cv_prog_LEX 5214if test -n "$LEX"; then 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 5216$as_echo "$LEX" >&6; } 5217else 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5219$as_echo "no" >&6; } 5220fi 5221 5222 5223 test -n "$LEX" && break 5224done 5225test -n "$LEX" || LEX=":" 5226 5227if test "x$LEX" != "x:"; then 5228 cat >conftest.l <<_ACEOF 5229%% 5230a { ECHO; } 5231b { REJECT; } 5232c { yymore (); } 5233d { yyless (1); } 5234e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 5235 yyless ((input () != 0)); } 5236f { unput (yytext[0]); } 5237. { BEGIN INITIAL; } 5238%% 5239#ifdef YYTEXT_POINTER 5240extern char *yytext; 5241#endif 5242int 5243main (void) 5244{ 5245 return ! yylex () + ! yywrap (); 5246} 5247_ACEOF 5248{ { ac_try="$LEX conftest.l" 5249case "(($ac_try" in 5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5251 *) ac_try_echo=$ac_try;; 5252esac 5253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5254$as_echo "$ac_try_echo"; } >&5 5255 (eval "$LEX conftest.l") 2>&5 5256 ac_status=$? 5257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5258 test $ac_status = 0; } 5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 5260$as_echo_n "checking lex output file root... " >&6; } 5261if ${ac_cv_prog_lex_root+:} false; then : 5262 $as_echo_n "(cached) " >&6 5263else 5264 5265if test -f lex.yy.c; then 5266 ac_cv_prog_lex_root=lex.yy 5267elif test -f lexyy.c; then 5268 ac_cv_prog_lex_root=lexyy 5269else 5270 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 5271fi 5272fi 5273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 5274$as_echo "$ac_cv_prog_lex_root" >&6; } 5275LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 5276 5277if test -z "${LEXLIB+set}"; then 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 5279$as_echo_n "checking lex library... " >&6; } 5280if ${ac_cv_lib_lex+:} false; then : 5281 $as_echo_n "(cached) " >&6 5282else 5283 5284 ac_save_LIBS=$LIBS 5285 ac_cv_lib_lex='none needed' 5286 for ac_lib in '' -lfl -ll; do 5287 LIBS="$ac_lib $ac_save_LIBS" 5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5289/* end confdefs.h. */ 5290`cat $LEX_OUTPUT_ROOT.c` 5291_ACEOF 5292if ac_fn_c_try_link "$LINENO"; then : 5293 ac_cv_lib_lex=$ac_lib 5294fi 5295rm -f core conftest.err conftest.$ac_objext \ 5296 conftest$ac_exeext conftest.$ac_ext 5297 test "$ac_cv_lib_lex" != 'none needed' && break 5298 done 5299 LIBS=$ac_save_LIBS 5300 5301fi 5302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 5303$as_echo "$ac_cv_lib_lex" >&6; } 5304 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 5305fi 5306 5307 5308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 5309$as_echo_n "checking whether yytext is a pointer... " >&6; } 5310if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 5311 $as_echo_n "(cached) " >&6 5312else 5313 # POSIX says lex can declare yytext either as a pointer or an array; the 5314# default is implementation-dependent. Figure out which it is, since 5315# not all implementations provide the %pointer and %array declarations. 5316ac_cv_prog_lex_yytext_pointer=no 5317ac_save_LIBS=$LIBS 5318LIBS="$LEXLIB $ac_save_LIBS" 5319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5320/* end confdefs.h. */ 5321 5322 #define YYTEXT_POINTER 1 5323`cat $LEX_OUTPUT_ROOT.c` 5324_ACEOF 5325if ac_fn_c_try_link "$LINENO"; then : 5326 ac_cv_prog_lex_yytext_pointer=yes 5327fi 5328rm -f core conftest.err conftest.$ac_objext \ 5329 conftest$ac_exeext conftest.$ac_ext 5330LIBS=$ac_save_LIBS 5331 5332fi 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 5334$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 5335if test $ac_cv_prog_lex_yytext_pointer = yes; then 5336 5337$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 5338 5339fi 5340rm -f conftest.l $LEX_OUTPUT_ROOT.c 5341 5342fi 5343# we must have flex or lex 5344if test x"$LEX" = x:; then 5345 as_fn_error $? "lex/flex not found: $PACKAGE requires one of these" "$LINENO" 5 5346fi 5347IP_LIBS="$IP_LIBS $LEXLIB" 5348 5349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5350$as_echo_n "checking whether ln -s works... " >&6; } 5351LN_S=$as_ln_s 5352if test "$LN_S" = "ln -s"; then 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5354$as_echo "yes" >&6; } 5355else 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5357$as_echo "no, using $LN_S" >&6; } 5358fi 5359 5360if test -n "$ac_tool_prefix"; then 5361 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 5362set dummy ${ac_tool_prefix}windres; ac_word=$2 5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5364$as_echo_n "checking for $ac_word... " >&6; } 5365if ${ac_cv_prog_WINDRES+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367else 5368 if test -n "$WINDRES"; then 5369 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 5370else 5371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5372for as_dir in $PATH 5373do 5374 IFS=$as_save_IFS 5375 test -z "$as_dir" && as_dir=. 5376 for ac_exec_ext in '' $ac_executable_extensions; do 5377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5378 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5380 break 2 5381 fi 5382done 5383 done 5384IFS=$as_save_IFS 5385 5386fi 5387fi 5388WINDRES=$ac_cv_prog_WINDRES 5389if test -n "$WINDRES"; then 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 5391$as_echo "$WINDRES" >&6; } 5392else 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5394$as_echo "no" >&6; } 5395fi 5396 5397 5398fi 5399if test -z "$ac_cv_prog_WINDRES"; then 5400 ac_ct_WINDRES=$WINDRES 5401 # Extract the first word of "windres", so it can be a program name with args. 5402set dummy windres; ac_word=$2 5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5404$as_echo_n "checking for $ac_word... " >&6; } 5405if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 5406 $as_echo_n "(cached) " >&6 5407else 5408 if test -n "$ac_ct_WINDRES"; then 5409 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 5410else 5411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5412for as_dir in $PATH 5413do 5414 IFS=$as_save_IFS 5415 test -z "$as_dir" && as_dir=. 5416 for ac_exec_ext in '' $ac_executable_extensions; do 5417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5418 ac_cv_prog_ac_ct_WINDRES="windres" 5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5420 break 2 5421 fi 5422done 5423 done 5424IFS=$as_save_IFS 5425 5426fi 5427fi 5428ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 5429if test -n "$ac_ct_WINDRES"; then 5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 5431$as_echo "$ac_ct_WINDRES" >&6; } 5432else 5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5434$as_echo "no" >&6; } 5435fi 5436 5437 if test "x$ac_ct_WINDRES" = x; then 5438 WINDRES="" 5439 else 5440 case $cross_compiling:$ac_tool_warned in 5441yes:) 5442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5444ac_tool_warned=yes ;; 5445esac 5446 WINDRES=$ac_ct_WINDRES 5447 fi 5448else 5449 WINDRES="$ac_cv_prog_WINDRES" 5450fi 5451 5452if test -n "$ac_tool_prefix"; then 5453 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. 5454set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5456$as_echo_n "checking for $ac_word... " >&6; } 5457if ${ac_cv_prog_DLLWRAP+:} false; then : 5458 $as_echo_n "(cached) " >&6 5459else 5460 if test -n "$DLLWRAP"; then 5461 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. 5462else 5463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5464for as_dir in $PATH 5465do 5466 IFS=$as_save_IFS 5467 test -z "$as_dir" && as_dir=. 5468 for ac_exec_ext in '' $ac_executable_extensions; do 5469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5470 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" 5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5472 break 2 5473 fi 5474done 5475 done 5476IFS=$as_save_IFS 5477 5478fi 5479fi 5480DLLWRAP=$ac_cv_prog_DLLWRAP 5481if test -n "$DLLWRAP"; then 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5 5483$as_echo "$DLLWRAP" >&6; } 5484else 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5486$as_echo "no" >&6; } 5487fi 5488 5489 5490fi 5491if test -z "$ac_cv_prog_DLLWRAP"; then 5492 ac_ct_DLLWRAP=$DLLWRAP 5493 # Extract the first word of "dllwrap", so it can be a program name with args. 5494set dummy dllwrap; ac_word=$2 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5496$as_echo_n "checking for $ac_word... " >&6; } 5497if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then : 5498 $as_echo_n "(cached) " >&6 5499else 5500 if test -n "$ac_ct_DLLWRAP"; then 5501 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. 5502else 5503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5504for as_dir in $PATH 5505do 5506 IFS=$as_save_IFS 5507 test -z "$as_dir" && as_dir=. 5508 for ac_exec_ext in '' $ac_executable_extensions; do 5509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5510 ac_cv_prog_ac_ct_DLLWRAP="dllwrap" 5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5512 break 2 5513 fi 5514done 5515 done 5516IFS=$as_save_IFS 5517 5518fi 5519fi 5520ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP 5521if test -n "$ac_ct_DLLWRAP"; then 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5 5523$as_echo "$ac_ct_DLLWRAP" >&6; } 5524else 5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5526$as_echo "no" >&6; } 5527fi 5528 5529 if test "x$ac_ct_DLLWRAP" = x; then 5530 DLLWRAP="" 5531 else 5532 case $cross_compiling:$ac_tool_warned in 5533yes:) 5534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5536ac_tool_warned=yes ;; 5537esac 5538 DLLWRAP=$ac_ct_DLLWRAP 5539 fi 5540else 5541 DLLWRAP="$ac_cv_prog_DLLWRAP" 5542fi 5543 5544if test -n "$ac_tool_prefix"; then 5545 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5546set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5548$as_echo_n "checking for $ac_word... " >&6; } 5549if ${ac_cv_prog_DLLTOOL+:} false; then : 5550 $as_echo_n "(cached) " >&6 5551else 5552 if test -n "$DLLTOOL"; then 5553 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5554else 5555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5556for as_dir in $PATH 5557do 5558 IFS=$as_save_IFS 5559 test -z "$as_dir" && as_dir=. 5560 for ac_exec_ext in '' $ac_executable_extensions; do 5561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5562 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5564 break 2 5565 fi 5566done 5567 done 5568IFS=$as_save_IFS 5569 5570fi 5571fi 5572DLLTOOL=$ac_cv_prog_DLLTOOL 5573if test -n "$DLLTOOL"; then 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5575$as_echo "$DLLTOOL" >&6; } 5576else 5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5578$as_echo "no" >&6; } 5579fi 5580 5581 5582fi 5583if test -z "$ac_cv_prog_DLLTOOL"; then 5584 ac_ct_DLLTOOL=$DLLTOOL 5585 # Extract the first word of "dlltool", so it can be a program name with args. 5586set dummy dlltool; ac_word=$2 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5588$as_echo_n "checking for $ac_word... " >&6; } 5589if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5590 $as_echo_n "(cached) " >&6 5591else 5592 if test -n "$ac_ct_DLLTOOL"; then 5593 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5594else 5595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5596for as_dir in $PATH 5597do 5598 IFS=$as_save_IFS 5599 test -z "$as_dir" && as_dir=. 5600 for ac_exec_ext in '' $ac_executable_extensions; do 5601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5602 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5604 break 2 5605 fi 5606done 5607 done 5608IFS=$as_save_IFS 5609 5610fi 5611fi 5612ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5613if test -n "$ac_ct_DLLTOOL"; then 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5615$as_echo "$ac_ct_DLLTOOL" >&6; } 5616else 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5618$as_echo "no" >&6; } 5619fi 5620 5621 if test "x$ac_ct_DLLTOOL" = x; then 5622 DLLTOOL="" 5623 else 5624 case $cross_compiling:$ac_tool_warned in 5625yes:) 5626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5628ac_tool_warned=yes ;; 5629esac 5630 DLLTOOL=$ac_ct_DLLTOOL 5631 fi 5632else 5633 DLLTOOL="$ac_cv_prog_DLLTOOL" 5634fi 5635 5636if test -n "$ac_tool_prefix"; then 5637 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5638set dummy ${ac_tool_prefix}objdump; ac_word=$2 5639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5640$as_echo_n "checking for $ac_word... " >&6; } 5641if ${ac_cv_prog_OBJDUMP+:} false; then : 5642 $as_echo_n "(cached) " >&6 5643else 5644 if test -n "$OBJDUMP"; then 5645 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5646else 5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5648for as_dir in $PATH 5649do 5650 IFS=$as_save_IFS 5651 test -z "$as_dir" && as_dir=. 5652 for ac_exec_ext in '' $ac_executable_extensions; do 5653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5654 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5656 break 2 5657 fi 5658done 5659 done 5660IFS=$as_save_IFS 5661 5662fi 5663fi 5664OBJDUMP=$ac_cv_prog_OBJDUMP 5665if test -n "$OBJDUMP"; then 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5667$as_echo "$OBJDUMP" >&6; } 5668else 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5670$as_echo "no" >&6; } 5671fi 5672 5673 5674fi 5675if test -z "$ac_cv_prog_OBJDUMP"; then 5676 ac_ct_OBJDUMP=$OBJDUMP 5677 # Extract the first word of "objdump", so it can be a program name with args. 5678set dummy objdump; ac_word=$2 5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5680$as_echo_n "checking for $ac_word... " >&6; } 5681if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5682 $as_echo_n "(cached) " >&6 5683else 5684 if test -n "$ac_ct_OBJDUMP"; then 5685 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5686else 5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5688for as_dir in $PATH 5689do 5690 IFS=$as_save_IFS 5691 test -z "$as_dir" && as_dir=. 5692 for ac_exec_ext in '' $ac_executable_extensions; do 5693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5694 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5696 break 2 5697 fi 5698done 5699 done 5700IFS=$as_save_IFS 5701 5702fi 5703fi 5704ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5705if test -n "$ac_ct_OBJDUMP"; then 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5707$as_echo "$ac_ct_OBJDUMP" >&6; } 5708else 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5710$as_echo "no" >&6; } 5711fi 5712 5713 if test "x$ac_ct_OBJDUMP" = x; then 5714 OBJDUMP="" 5715 else 5716 case $cross_compiling:$ac_tool_warned in 5717yes:) 5718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5720ac_tool_warned=yes ;; 5721esac 5722 OBJDUMP=$ac_ct_OBJDUMP 5723 fi 5724else 5725 OBJDUMP="$ac_cv_prog_OBJDUMP" 5726fi 5727 5728if test -n "$ac_tool_prefix"; then 5729 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5730set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5732$as_echo_n "checking for $ac_word... " >&6; } 5733if ${ac_cv_prog_RANLIB+:} false; then : 5734 $as_echo_n "(cached) " >&6 5735else 5736 if test -n "$RANLIB"; then 5737 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5738else 5739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5740for as_dir in $PATH 5741do 5742 IFS=$as_save_IFS 5743 test -z "$as_dir" && as_dir=. 5744 for ac_exec_ext in '' $ac_executable_extensions; do 5745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5746 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5748 break 2 5749 fi 5750done 5751 done 5752IFS=$as_save_IFS 5753 5754fi 5755fi 5756RANLIB=$ac_cv_prog_RANLIB 5757if test -n "$RANLIB"; then 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5759$as_echo "$RANLIB" >&6; } 5760else 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5762$as_echo "no" >&6; } 5763fi 5764 5765 5766fi 5767if test -z "$ac_cv_prog_RANLIB"; then 5768 ac_ct_RANLIB=$RANLIB 5769 # Extract the first word of "ranlib", so it can be a program name with args. 5770set dummy ranlib; ac_word=$2 5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5772$as_echo_n "checking for $ac_word... " >&6; } 5773if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5774 $as_echo_n "(cached) " >&6 5775else 5776 if test -n "$ac_ct_RANLIB"; then 5777 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5778else 5779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5780for as_dir in $PATH 5781do 5782 IFS=$as_save_IFS 5783 test -z "$as_dir" && as_dir=. 5784 for ac_exec_ext in '' $ac_executable_extensions; do 5785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5786 ac_cv_prog_ac_ct_RANLIB="ranlib" 5787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5788 break 2 5789 fi 5790done 5791 done 5792IFS=$as_save_IFS 5793 5794fi 5795fi 5796ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5797if test -n "$ac_ct_RANLIB"; then 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5799$as_echo "$ac_ct_RANLIB" >&6; } 5800else 5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5802$as_echo "no" >&6; } 5803fi 5804 5805 if test "x$ac_ct_RANLIB" = x; then 5806 RANLIB="" 5807 else 5808 case $cross_compiling:$ac_tool_warned in 5809yes:) 5810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5812ac_tool_warned=yes ;; 5813esac 5814 RANLIB=$ac_ct_RANLIB 5815 fi 5816else 5817 RANLIB="$ac_cv_prog_RANLIB" 5818fi 5819 5820if test -n "$ac_tool_prefix"; then 5821 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5822set dummy ${ac_tool_prefix}strip; ac_word=$2 5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5824$as_echo_n "checking for $ac_word... " >&6; } 5825if ${ac_cv_prog_STRIP+:} false; then : 5826 $as_echo_n "(cached) " >&6 5827else 5828 if test -n "$STRIP"; then 5829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5830else 5831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5832for as_dir in $PATH 5833do 5834 IFS=$as_save_IFS 5835 test -z "$as_dir" && as_dir=. 5836 for ac_exec_ext in '' $ac_executable_extensions; do 5837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5838 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5840 break 2 5841 fi 5842done 5843 done 5844IFS=$as_save_IFS 5845 5846fi 5847fi 5848STRIP=$ac_cv_prog_STRIP 5849if test -n "$STRIP"; then 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5851$as_echo "$STRIP" >&6; } 5852else 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5854$as_echo "no" >&6; } 5855fi 5856 5857 5858fi 5859if test -z "$ac_cv_prog_STRIP"; then 5860 ac_ct_STRIP=$STRIP 5861 # Extract the first word of "strip", so it can be a program name with args. 5862set dummy strip; ac_word=$2 5863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5864$as_echo_n "checking for $ac_word... " >&6; } 5865if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5866 $as_echo_n "(cached) " >&6 5867else 5868 if test -n "$ac_ct_STRIP"; then 5869 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5870else 5871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5872for as_dir in $PATH 5873do 5874 IFS=$as_save_IFS 5875 test -z "$as_dir" && as_dir=. 5876 for ac_exec_ext in '' $ac_executable_extensions; do 5877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5878 ac_cv_prog_ac_ct_STRIP="strip" 5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5880 break 2 5881 fi 5882done 5883 done 5884IFS=$as_save_IFS 5885 5886fi 5887fi 5888ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5889if test -n "$ac_ct_STRIP"; then 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5891$as_echo "$ac_ct_STRIP" >&6; } 5892else 5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5894$as_echo "no" >&6; } 5895fi 5896 5897 if test "x$ac_ct_STRIP" = x; then 5898 STRIP="" 5899 else 5900 case $cross_compiling:$ac_tool_warned in 5901yes:) 5902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5904ac_tool_warned=yes ;; 5905esac 5906 STRIP=$ac_ct_STRIP 5907 fi 5908else 5909 STRIP="$ac_cv_prog_STRIP" 5910fi 5911 5912if test -n "$ac_tool_prefix"; then 5913 # Extract the first word of "${ac_tool_prefix}bison", so it can be a program name with args. 5914set dummy ${ac_tool_prefix}bison; ac_word=$2 5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5916$as_echo_n "checking for $ac_word... " >&6; } 5917if ${ac_cv_prog_BISON+:} false; then : 5918 $as_echo_n "(cached) " >&6 5919else 5920 if test -n "$BISON"; then 5921 ac_cv_prog_BISON="$BISON" # Let the user override the test. 5922else 5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5924for as_dir in $PATH 5925do 5926 IFS=$as_save_IFS 5927 test -z "$as_dir" && as_dir=. 5928 for ac_exec_ext in '' $ac_executable_extensions; do 5929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5930 ac_cv_prog_BISON="${ac_tool_prefix}bison" 5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5932 break 2 5933 fi 5934done 5935 done 5936IFS=$as_save_IFS 5937 5938fi 5939fi 5940BISON=$ac_cv_prog_BISON 5941if test -n "$BISON"; then 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 5943$as_echo "$BISON" >&6; } 5944else 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5946$as_echo "no" >&6; } 5947fi 5948 5949 5950fi 5951if test -z "$ac_cv_prog_BISON"; then 5952 ac_ct_BISON=$BISON 5953 # Extract the first word of "bison", so it can be a program name with args. 5954set dummy bison; ac_word=$2 5955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5956$as_echo_n "checking for $ac_word... " >&6; } 5957if ${ac_cv_prog_ac_ct_BISON+:} false; then : 5958 $as_echo_n "(cached) " >&6 5959else 5960 if test -n "$ac_ct_BISON"; then 5961 ac_cv_prog_ac_ct_BISON="$ac_ct_BISON" # Let the user override the test. 5962else 5963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5964for as_dir in $PATH 5965do 5966 IFS=$as_save_IFS 5967 test -z "$as_dir" && as_dir=. 5968 for ac_exec_ext in '' $ac_executable_extensions; do 5969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5970 ac_cv_prog_ac_ct_BISON="bison" 5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5972 break 2 5973 fi 5974done 5975 done 5976IFS=$as_save_IFS 5977 5978fi 5979fi 5980ac_ct_BISON=$ac_cv_prog_ac_ct_BISON 5981if test -n "$ac_ct_BISON"; then 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BISON" >&5 5983$as_echo "$ac_ct_BISON" >&6; } 5984else 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5986$as_echo "no" >&6; } 5987fi 5988 5989 if test "x$ac_ct_BISON" = x; then 5990 BISON="" 5991 else 5992 case $cross_compiling:$ac_tool_warned in 5993yes:) 5994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5996ac_tool_warned=yes ;; 5997esac 5998 BISON=$ac_ct_BISON 5999 fi 6000else 6001 BISON="$ac_cv_prog_BISON" 6002fi 6003 6004# we have to have bison :-( maybe we could ship the generated .c/.h files? not 6005# clear on their portability 6006if test x"$BISON" = x; then 6007 as_fn_error $? "bison not found: $PACKAGE uses bison-only features" "$LINENO" 5 6008fi 6009if test -n "$ac_tool_prefix"; then 6010 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6011set dummy ${ac_tool_prefix}ar; ac_word=$2 6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6013$as_echo_n "checking for $ac_word... " >&6; } 6014if ${ac_cv_prog_AR+:} false; then : 6015 $as_echo_n "(cached) " >&6 6016else 6017 if test -n "$AR"; then 6018 ac_cv_prog_AR="$AR" # Let the user override the test. 6019else 6020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6021for as_dir in $PATH 6022do 6023 IFS=$as_save_IFS 6024 test -z "$as_dir" && as_dir=. 6025 for ac_exec_ext in '' $ac_executable_extensions; do 6026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6027 ac_cv_prog_AR="${ac_tool_prefix}ar" 6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6029 break 2 6030 fi 6031done 6032 done 6033IFS=$as_save_IFS 6034 6035fi 6036fi 6037AR=$ac_cv_prog_AR 6038if test -n "$AR"; then 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6040$as_echo "$AR" >&6; } 6041else 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6043$as_echo "no" >&6; } 6044fi 6045 6046 6047fi 6048if test -z "$ac_cv_prog_AR"; then 6049 ac_ct_AR=$AR 6050 # Extract the first word of "ar", so it can be a program name with args. 6051set dummy ar; ac_word=$2 6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6053$as_echo_n "checking for $ac_word... " >&6; } 6054if ${ac_cv_prog_ac_ct_AR+:} false; then : 6055 $as_echo_n "(cached) " >&6 6056else 6057 if test -n "$ac_ct_AR"; then 6058 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6059else 6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6061for as_dir in $PATH 6062do 6063 IFS=$as_save_IFS 6064 test -z "$as_dir" && as_dir=. 6065 for ac_exec_ext in '' $ac_executable_extensions; do 6066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6067 ac_cv_prog_ac_ct_AR="ar" 6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6069 break 2 6070 fi 6071done 6072 done 6073IFS=$as_save_IFS 6074 6075fi 6076fi 6077ac_ct_AR=$ac_cv_prog_ac_ct_AR 6078if test -n "$ac_ct_AR"; then 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6080$as_echo "$ac_ct_AR" >&6; } 6081else 6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6083$as_echo "no" >&6; } 6084fi 6085 6086 if test "x$ac_ct_AR" = x; then 6087 AR="" 6088 else 6089 case $cross_compiling:$ac_tool_warned in 6090yes:) 6091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6093ac_tool_warned=yes ;; 6094esac 6095 AR=$ac_ct_AR 6096 fi 6097else 6098 AR="$ac_cv_prog_AR" 6099fi 6100 6101if test -n "$ac_tool_prefix"; then 6102 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 6103set dummy ${ac_tool_prefix}as; ac_word=$2 6104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6105$as_echo_n "checking for $ac_word... " >&6; } 6106if ${ac_cv_prog_AS+:} false; then : 6107 $as_echo_n "(cached) " >&6 6108else 6109 if test -n "$AS"; then 6110 ac_cv_prog_AS="$AS" # Let the user override the test. 6111else 6112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6113for as_dir in $PATH 6114do 6115 IFS=$as_save_IFS 6116 test -z "$as_dir" && as_dir=. 6117 for ac_exec_ext in '' $ac_executable_extensions; do 6118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6119 ac_cv_prog_AS="${ac_tool_prefix}as" 6120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6121 break 2 6122 fi 6123done 6124 done 6125IFS=$as_save_IFS 6126 6127fi 6128fi 6129AS=$ac_cv_prog_AS 6130if test -n "$AS"; then 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 6132$as_echo "$AS" >&6; } 6133else 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6135$as_echo "no" >&6; } 6136fi 6137 6138 6139fi 6140if test -z "$ac_cv_prog_AS"; then 6141 ac_ct_AS=$AS 6142 # Extract the first word of "as", so it can be a program name with args. 6143set dummy as; ac_word=$2 6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6145$as_echo_n "checking for $ac_word... " >&6; } 6146if ${ac_cv_prog_ac_ct_AS+:} false; then : 6147 $as_echo_n "(cached) " >&6 6148else 6149 if test -n "$ac_ct_AS"; then 6150 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 6151else 6152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6153for as_dir in $PATH 6154do 6155 IFS=$as_save_IFS 6156 test -z "$as_dir" && as_dir=. 6157 for ac_exec_ext in '' $ac_executable_extensions; do 6158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6159 ac_cv_prog_ac_ct_AS="as" 6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6161 break 2 6162 fi 6163done 6164 done 6165IFS=$as_save_IFS 6166 6167fi 6168fi 6169ac_ct_AS=$ac_cv_prog_ac_ct_AS 6170if test -n "$ac_ct_AS"; then 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 6172$as_echo "$ac_ct_AS" >&6; } 6173else 6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6175$as_echo "no" >&6; } 6176fi 6177 6178 if test "x$ac_ct_AS" = x; then 6179 AS="" 6180 else 6181 case $cross_compiling:$ac_tool_warned in 6182yes:) 6183{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6185ac_tool_warned=yes ;; 6186esac 6187 AS=$ac_ct_AS 6188 fi 6189else 6190 AS="$ac_cv_prog_AS" 6191fi 6192 6193if test -n "$ac_tool_prefix"; then 6194 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. 6195set dummy ${ac_tool_prefix}ld; ac_word=$2 6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6197$as_echo_n "checking for $ac_word... " >&6; } 6198if ${ac_cv_prog_LD+:} false; then : 6199 $as_echo_n "(cached) " >&6 6200else 6201 if test -n "$LD"; then 6202 ac_cv_prog_LD="$LD" # Let the user override the test. 6203else 6204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6205for as_dir in $PATH 6206do 6207 IFS=$as_save_IFS 6208 test -z "$as_dir" && as_dir=. 6209 for ac_exec_ext in '' $ac_executable_extensions; do 6210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6211 ac_cv_prog_LD="${ac_tool_prefix}ld" 6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6213 break 2 6214 fi 6215done 6216 done 6217IFS=$as_save_IFS 6218 6219fi 6220fi 6221LD=$ac_cv_prog_LD 6222if test -n "$LD"; then 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6224$as_echo "$LD" >&6; } 6225else 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6227$as_echo "no" >&6; } 6228fi 6229 6230 6231fi 6232if test -z "$ac_cv_prog_LD"; then 6233 ac_ct_LD=$LD 6234 # Extract the first word of "ld", so it can be a program name with args. 6235set dummy ld; ac_word=$2 6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6237$as_echo_n "checking for $ac_word... " >&6; } 6238if ${ac_cv_prog_ac_ct_LD+:} false; then : 6239 $as_echo_n "(cached) " >&6 6240else 6241 if test -n "$ac_ct_LD"; then 6242 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. 6243else 6244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6245for as_dir in $PATH 6246do 6247 IFS=$as_save_IFS 6248 test -z "$as_dir" && as_dir=. 6249 for ac_exec_ext in '' $ac_executable_extensions; do 6250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6251 ac_cv_prog_ac_ct_LD="ld" 6252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6253 break 2 6254 fi 6255done 6256 done 6257IFS=$as_save_IFS 6258 6259fi 6260fi 6261ac_ct_LD=$ac_cv_prog_ac_ct_LD 6262if test -n "$ac_ct_LD"; then 6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5 6264$as_echo "$ac_ct_LD" >&6; } 6265else 6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6267$as_echo "no" >&6; } 6268fi 6269 6270 if test "x$ac_ct_LD" = x; then 6271 LD="" 6272 else 6273 case $cross_compiling:$ac_tool_warned in 6274yes:) 6275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6277ac_tool_warned=yes ;; 6278esac 6279 LD=$ac_ct_LD 6280 fi 6281else 6282 LD="$ac_cv_prog_LD" 6283fi 6284 6285enable_win32_dll=yes 6286 6287case $host in 6288*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 6289 if test -n "$ac_tool_prefix"; then 6290 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 6291set dummy ${ac_tool_prefix}as; ac_word=$2 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6293$as_echo_n "checking for $ac_word... " >&6; } 6294if ${ac_cv_prog_AS+:} false; then : 6295 $as_echo_n "(cached) " >&6 6296else 6297 if test -n "$AS"; then 6298 ac_cv_prog_AS="$AS" # Let the user override the test. 6299else 6300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6301for as_dir in $PATH 6302do 6303 IFS=$as_save_IFS 6304 test -z "$as_dir" && as_dir=. 6305 for ac_exec_ext in '' $ac_executable_extensions; do 6306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6307 ac_cv_prog_AS="${ac_tool_prefix}as" 6308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6309 break 2 6310 fi 6311done 6312 done 6313IFS=$as_save_IFS 6314 6315fi 6316fi 6317AS=$ac_cv_prog_AS 6318if test -n "$AS"; then 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 6320$as_echo "$AS" >&6; } 6321else 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6323$as_echo "no" >&6; } 6324fi 6325 6326 6327fi 6328if test -z "$ac_cv_prog_AS"; then 6329 ac_ct_AS=$AS 6330 # Extract the first word of "as", so it can be a program name with args. 6331set dummy as; ac_word=$2 6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6333$as_echo_n "checking for $ac_word... " >&6; } 6334if ${ac_cv_prog_ac_ct_AS+:} false; then : 6335 $as_echo_n "(cached) " >&6 6336else 6337 if test -n "$ac_ct_AS"; then 6338 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 6339else 6340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6341for as_dir in $PATH 6342do 6343 IFS=$as_save_IFS 6344 test -z "$as_dir" && as_dir=. 6345 for ac_exec_ext in '' $ac_executable_extensions; do 6346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6347 ac_cv_prog_ac_ct_AS="as" 6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6349 break 2 6350 fi 6351done 6352 done 6353IFS=$as_save_IFS 6354 6355fi 6356fi 6357ac_ct_AS=$ac_cv_prog_ac_ct_AS 6358if test -n "$ac_ct_AS"; then 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 6360$as_echo "$ac_ct_AS" >&6; } 6361else 6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6363$as_echo "no" >&6; } 6364fi 6365 6366 if test "x$ac_ct_AS" = x; then 6367 AS="false" 6368 else 6369 case $cross_compiling:$ac_tool_warned in 6370yes:) 6371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6373ac_tool_warned=yes ;; 6374esac 6375 AS=$ac_ct_AS 6376 fi 6377else 6378 AS="$ac_cv_prog_AS" 6379fi 6380 6381 if test -n "$ac_tool_prefix"; then 6382 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6383set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6385$as_echo_n "checking for $ac_word... " >&6; } 6386if ${ac_cv_prog_DLLTOOL+:} false; then : 6387 $as_echo_n "(cached) " >&6 6388else 6389 if test -n "$DLLTOOL"; then 6390 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6391else 6392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6393for as_dir in $PATH 6394do 6395 IFS=$as_save_IFS 6396 test -z "$as_dir" && as_dir=. 6397 for ac_exec_ext in '' $ac_executable_extensions; do 6398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6399 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6401 break 2 6402 fi 6403done 6404 done 6405IFS=$as_save_IFS 6406 6407fi 6408fi 6409DLLTOOL=$ac_cv_prog_DLLTOOL 6410if test -n "$DLLTOOL"; then 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6412$as_echo "$DLLTOOL" >&6; } 6413else 6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6415$as_echo "no" >&6; } 6416fi 6417 6418 6419fi 6420if test -z "$ac_cv_prog_DLLTOOL"; then 6421 ac_ct_DLLTOOL=$DLLTOOL 6422 # Extract the first word of "dlltool", so it can be a program name with args. 6423set dummy dlltool; ac_word=$2 6424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6425$as_echo_n "checking for $ac_word... " >&6; } 6426if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6427 $as_echo_n "(cached) " >&6 6428else 6429 if test -n "$ac_ct_DLLTOOL"; then 6430 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6431else 6432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6433for as_dir in $PATH 6434do 6435 IFS=$as_save_IFS 6436 test -z "$as_dir" && as_dir=. 6437 for ac_exec_ext in '' $ac_executable_extensions; do 6438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6439 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6441 break 2 6442 fi 6443done 6444 done 6445IFS=$as_save_IFS 6446 6447fi 6448fi 6449ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6450if test -n "$ac_ct_DLLTOOL"; then 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6452$as_echo "$ac_ct_DLLTOOL" >&6; } 6453else 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6455$as_echo "no" >&6; } 6456fi 6457 6458 if test "x$ac_ct_DLLTOOL" = x; then 6459 DLLTOOL="false" 6460 else 6461 case $cross_compiling:$ac_tool_warned in 6462yes:) 6463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6465ac_tool_warned=yes ;; 6466esac 6467 DLLTOOL=$ac_ct_DLLTOOL 6468 fi 6469else 6470 DLLTOOL="$ac_cv_prog_DLLTOOL" 6471fi 6472 6473 if test -n "$ac_tool_prefix"; then 6474 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6475set dummy ${ac_tool_prefix}objdump; ac_word=$2 6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6477$as_echo_n "checking for $ac_word... " >&6; } 6478if ${ac_cv_prog_OBJDUMP+:} false; then : 6479 $as_echo_n "(cached) " >&6 6480else 6481 if test -n "$OBJDUMP"; then 6482 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6483else 6484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6485for as_dir in $PATH 6486do 6487 IFS=$as_save_IFS 6488 test -z "$as_dir" && as_dir=. 6489 for ac_exec_ext in '' $ac_executable_extensions; do 6490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6491 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6493 break 2 6494 fi 6495done 6496 done 6497IFS=$as_save_IFS 6498 6499fi 6500fi 6501OBJDUMP=$ac_cv_prog_OBJDUMP 6502if test -n "$OBJDUMP"; then 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6504$as_echo "$OBJDUMP" >&6; } 6505else 6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6507$as_echo "no" >&6; } 6508fi 6509 6510 6511fi 6512if test -z "$ac_cv_prog_OBJDUMP"; then 6513 ac_ct_OBJDUMP=$OBJDUMP 6514 # Extract the first word of "objdump", so it can be a program name with args. 6515set dummy objdump; ac_word=$2 6516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6517$as_echo_n "checking for $ac_word... " >&6; } 6518if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6519 $as_echo_n "(cached) " >&6 6520else 6521 if test -n "$ac_ct_OBJDUMP"; then 6522 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6523else 6524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6525for as_dir in $PATH 6526do 6527 IFS=$as_save_IFS 6528 test -z "$as_dir" && as_dir=. 6529 for ac_exec_ext in '' $ac_executable_extensions; do 6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6531 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6533 break 2 6534 fi 6535done 6536 done 6537IFS=$as_save_IFS 6538 6539fi 6540fi 6541ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6542if test -n "$ac_ct_OBJDUMP"; then 6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6544$as_echo "$ac_ct_OBJDUMP" >&6; } 6545else 6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6547$as_echo "no" >&6; } 6548fi 6549 6550 if test "x$ac_ct_OBJDUMP" = x; then 6551 OBJDUMP="false" 6552 else 6553 case $cross_compiling:$ac_tool_warned in 6554yes:) 6555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6557ac_tool_warned=yes ;; 6558esac 6559 OBJDUMP=$ac_ct_OBJDUMP 6560 fi 6561else 6562 OBJDUMP="$ac_cv_prog_OBJDUMP" 6563fi 6564 6565 ;; 6566esac 6567 6568test -z "$AS" && AS=as 6569 6570 6571 6572 6573 6574test -z "$DLLTOOL" && DLLTOOL=dlltool 6575 6576 6577 6578 6579 6580test -z "$OBJDUMP" && OBJDUMP=objdump 6581 6582 6583 6584 6585 6586 6587 6588case `pwd` in 6589 *\ * | *\ *) 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6591$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6592esac 6593 6594 6595 6596macro_version='2.4.6' 6597macro_revision='2.4.6' 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611ltmain=$ac_aux_dir/ltmain.sh 6612 6613# Backslashify metacharacters that are still active within 6614# double-quoted strings. 6615sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6616 6617# Same as above, but do not quote variable references. 6618double_quote_subst='s/\(["`\\]\)/\\\1/g' 6619 6620# Sed substitution to delay expansion of an escaped shell variable in a 6621# double_quote_subst'ed string. 6622delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6623 6624# Sed substitution to delay expansion of an escaped single quote. 6625delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6626 6627# Sed substitution to avoid accidental globbing in evaled expressions 6628no_glob_subst='s/\*/\\\*/g' 6629 6630ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6631ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6632ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6633 6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6635$as_echo_n "checking how to print strings... " >&6; } 6636# Test print first, because it will be a builtin if present. 6637if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6638 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6639 ECHO='print -r --' 6640elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6641 ECHO='printf %s\n' 6642else 6643 # Use this function as a fallback that always works. 6644 func_fallback_echo () 6645 { 6646 eval 'cat <<_LTECHO_EOF 6647$1 6648_LTECHO_EOF' 6649 } 6650 ECHO='func_fallback_echo' 6651fi 6652 6653# func_echo_all arg... 6654# Invoke $ECHO with all args, space-separated. 6655func_echo_all () 6656{ 6657 $ECHO "" 6658} 6659 6660case $ECHO in 6661 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6662$as_echo "printf" >&6; } ;; 6663 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6664$as_echo "print -r" >&6; } ;; 6665 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6666$as_echo "cat" >&6; } ;; 6667esac 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6683$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6684if ${ac_cv_path_SED+:} false; then : 6685 $as_echo_n "(cached) " >&6 6686else 6687 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6688 for ac_i in 1 2 3 4 5 6 7; do 6689 ac_script="$ac_script$as_nl$ac_script" 6690 done 6691 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6692 { ac_script=; unset ac_script;} 6693 if test -z "$SED"; then 6694 ac_path_SED_found=false 6695 # Loop through the user's path and test for each of PROGNAME-LIST 6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6697for as_dir in $PATH 6698do 6699 IFS=$as_save_IFS 6700 test -z "$as_dir" && as_dir=. 6701 for ac_prog in sed gsed; do 6702 for ac_exec_ext in '' $ac_executable_extensions; do 6703 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6704 as_fn_executable_p "$ac_path_SED" || continue 6705# Check for GNU ac_path_SED and select it if it is found. 6706 # Check for GNU $ac_path_SED 6707case `"$ac_path_SED" --version 2>&1` in 6708*GNU*) 6709 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6710*) 6711 ac_count=0 6712 $as_echo_n 0123456789 >"conftest.in" 6713 while : 6714 do 6715 cat "conftest.in" "conftest.in" >"conftest.tmp" 6716 mv "conftest.tmp" "conftest.in" 6717 cp "conftest.in" "conftest.nl" 6718 $as_echo '' >> "conftest.nl" 6719 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6721 as_fn_arith $ac_count + 1 && ac_count=$as_val 6722 if test $ac_count -gt ${ac_path_SED_max-0}; then 6723 # Best one so far, save it but keep looking for a better one 6724 ac_cv_path_SED="$ac_path_SED" 6725 ac_path_SED_max=$ac_count 6726 fi 6727 # 10*(2^10) chars as input seems more than enough 6728 test $ac_count -gt 10 && break 6729 done 6730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6731esac 6732 6733 $ac_path_SED_found && break 3 6734 done 6735 done 6736 done 6737IFS=$as_save_IFS 6738 if test -z "$ac_cv_path_SED"; then 6739 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6740 fi 6741else 6742 ac_cv_path_SED=$SED 6743fi 6744 6745fi 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6747$as_echo "$ac_cv_path_SED" >&6; } 6748 SED="$ac_cv_path_SED" 6749 rm -f conftest.sed 6750 6751test -z "$SED" && SED=sed 6752Xsed="$SED -e 1s/^X//" 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6765$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6766if ${ac_cv_path_GREP+:} false; then : 6767 $as_echo_n "(cached) " >&6 6768else 6769 if test -z "$GREP"; then 6770 ac_path_GREP_found=false 6771 # Loop through the user's path and test for each of PROGNAME-LIST 6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6773for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6774do 6775 IFS=$as_save_IFS 6776 test -z "$as_dir" && as_dir=. 6777 for ac_prog in grep ggrep; do 6778 for ac_exec_ext in '' $ac_executable_extensions; do 6779 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6780 as_fn_executable_p "$ac_path_GREP" || continue 6781# Check for GNU ac_path_GREP and select it if it is found. 6782 # Check for GNU $ac_path_GREP 6783case `"$ac_path_GREP" --version 2>&1` in 6784*GNU*) 6785 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6786*) 6787 ac_count=0 6788 $as_echo_n 0123456789 >"conftest.in" 6789 while : 6790 do 6791 cat "conftest.in" "conftest.in" >"conftest.tmp" 6792 mv "conftest.tmp" "conftest.in" 6793 cp "conftest.in" "conftest.nl" 6794 $as_echo 'GREP' >> "conftest.nl" 6795 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6796 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6797 as_fn_arith $ac_count + 1 && ac_count=$as_val 6798 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6799 # Best one so far, save it but keep looking for a better one 6800 ac_cv_path_GREP="$ac_path_GREP" 6801 ac_path_GREP_max=$ac_count 6802 fi 6803 # 10*(2^10) chars as input seems more than enough 6804 test $ac_count -gt 10 && break 6805 done 6806 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6807esac 6808 6809 $ac_path_GREP_found && break 3 6810 done 6811 done 6812 done 6813IFS=$as_save_IFS 6814 if test -z "$ac_cv_path_GREP"; then 6815 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6816 fi 6817else 6818 ac_cv_path_GREP=$GREP 6819fi 6820 6821fi 6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6823$as_echo "$ac_cv_path_GREP" >&6; } 6824 GREP="$ac_cv_path_GREP" 6825 6826 6827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6828$as_echo_n "checking for egrep... " >&6; } 6829if ${ac_cv_path_EGREP+:} false; then : 6830 $as_echo_n "(cached) " >&6 6831else 6832 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6833 then ac_cv_path_EGREP="$GREP -E" 6834 else 6835 if test -z "$EGREP"; then 6836 ac_path_EGREP_found=false 6837 # Loop through the user's path and test for each of PROGNAME-LIST 6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6839for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6840do 6841 IFS=$as_save_IFS 6842 test -z "$as_dir" && as_dir=. 6843 for ac_prog in egrep; do 6844 for ac_exec_ext in '' $ac_executable_extensions; do 6845 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6846 as_fn_executable_p "$ac_path_EGREP" || continue 6847# Check for GNU ac_path_EGREP and select it if it is found. 6848 # Check for GNU $ac_path_EGREP 6849case `"$ac_path_EGREP" --version 2>&1` in 6850*GNU*) 6851 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6852*) 6853 ac_count=0 6854 $as_echo_n 0123456789 >"conftest.in" 6855 while : 6856 do 6857 cat "conftest.in" "conftest.in" >"conftest.tmp" 6858 mv "conftest.tmp" "conftest.in" 6859 cp "conftest.in" "conftest.nl" 6860 $as_echo 'EGREP' >> "conftest.nl" 6861 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6863 as_fn_arith $ac_count + 1 && ac_count=$as_val 6864 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6865 # Best one so far, save it but keep looking for a better one 6866 ac_cv_path_EGREP="$ac_path_EGREP" 6867 ac_path_EGREP_max=$ac_count 6868 fi 6869 # 10*(2^10) chars as input seems more than enough 6870 test $ac_count -gt 10 && break 6871 done 6872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6873esac 6874 6875 $ac_path_EGREP_found && break 3 6876 done 6877 done 6878 done 6879IFS=$as_save_IFS 6880 if test -z "$ac_cv_path_EGREP"; then 6881 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6882 fi 6883else 6884 ac_cv_path_EGREP=$EGREP 6885fi 6886 6887 fi 6888fi 6889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6890$as_echo "$ac_cv_path_EGREP" >&6; } 6891 EGREP="$ac_cv_path_EGREP" 6892 6893 6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6895$as_echo_n "checking for fgrep... " >&6; } 6896if ${ac_cv_path_FGREP+:} false; then : 6897 $as_echo_n "(cached) " >&6 6898else 6899 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6900 then ac_cv_path_FGREP="$GREP -F" 6901 else 6902 if test -z "$FGREP"; then 6903 ac_path_FGREP_found=false 6904 # Loop through the user's path and test for each of PROGNAME-LIST 6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6906for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6907do 6908 IFS=$as_save_IFS 6909 test -z "$as_dir" && as_dir=. 6910 for ac_prog in fgrep; do 6911 for ac_exec_ext in '' $ac_executable_extensions; do 6912 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6913 as_fn_executable_p "$ac_path_FGREP" || continue 6914# Check for GNU ac_path_FGREP and select it if it is found. 6915 # Check for GNU $ac_path_FGREP 6916case `"$ac_path_FGREP" --version 2>&1` in 6917*GNU*) 6918 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6919*) 6920 ac_count=0 6921 $as_echo_n 0123456789 >"conftest.in" 6922 while : 6923 do 6924 cat "conftest.in" "conftest.in" >"conftest.tmp" 6925 mv "conftest.tmp" "conftest.in" 6926 cp "conftest.in" "conftest.nl" 6927 $as_echo 'FGREP' >> "conftest.nl" 6928 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6930 as_fn_arith $ac_count + 1 && ac_count=$as_val 6931 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6932 # Best one so far, save it but keep looking for a better one 6933 ac_cv_path_FGREP="$ac_path_FGREP" 6934 ac_path_FGREP_max=$ac_count 6935 fi 6936 # 10*(2^10) chars as input seems more than enough 6937 test $ac_count -gt 10 && break 6938 done 6939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6940esac 6941 6942 $ac_path_FGREP_found && break 3 6943 done 6944 done 6945 done 6946IFS=$as_save_IFS 6947 if test -z "$ac_cv_path_FGREP"; then 6948 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6949 fi 6950else 6951 ac_cv_path_FGREP=$FGREP 6952fi 6953 6954 fi 6955fi 6956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6957$as_echo "$ac_cv_path_FGREP" >&6; } 6958 FGREP="$ac_cv_path_FGREP" 6959 6960 6961test -z "$GREP" && GREP=grep 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981# Check whether --with-gnu-ld was given. 6982if test "${with_gnu_ld+set}" = set; then : 6983 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6984else 6985 with_gnu_ld=no 6986fi 6987 6988ac_prog=ld 6989if test yes = "$GCC"; then 6990 # Check if gcc -print-prog-name=ld gives a path. 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6992$as_echo_n "checking for ld used by $CC... " >&6; } 6993 case $host in 6994 *-*-mingw*) 6995 # gcc leaves a trailing carriage return, which upsets mingw 6996 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6997 *) 6998 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6999 esac 7000 case $ac_prog in 7001 # Accept absolute paths. 7002 [\\/]* | ?:[\\/]*) 7003 re_direlt='/[^/][^/]*/\.\./' 7004 # Canonicalize the pathname of ld 7005 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7006 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7007 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7008 done 7009 test -z "$LD" && LD=$ac_prog 7010 ;; 7011 "") 7012 # If it fails, then pretend we aren't using GCC. 7013 ac_prog=ld 7014 ;; 7015 *) 7016 # If it is relative, then search for the first ld in PATH. 7017 with_gnu_ld=unknown 7018 ;; 7019 esac 7020elif test yes = "$with_gnu_ld"; then 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7022$as_echo_n "checking for GNU ld... " >&6; } 7023else 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7025$as_echo_n "checking for non-GNU ld... " >&6; } 7026fi 7027if ${lt_cv_path_LD+:} false; then : 7028 $as_echo_n "(cached) " >&6 7029else 7030 if test -z "$LD"; then 7031 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7032 for ac_dir in $PATH; do 7033 IFS=$lt_save_ifs 7034 test -z "$ac_dir" && ac_dir=. 7035 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7036 lt_cv_path_LD=$ac_dir/$ac_prog 7037 # Check to see if the program is GNU ld. I'd rather use --version, 7038 # but apparently some variants of GNU ld only accept -v. 7039 # Break only if it was the GNU/non-GNU ld that we prefer. 7040 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7041 *GNU* | *'with BFD'*) 7042 test no != "$with_gnu_ld" && break 7043 ;; 7044 *) 7045 test yes != "$with_gnu_ld" && break 7046 ;; 7047 esac 7048 fi 7049 done 7050 IFS=$lt_save_ifs 7051else 7052 lt_cv_path_LD=$LD # Let the user override the test with a path. 7053fi 7054fi 7055 7056LD=$lt_cv_path_LD 7057if test -n "$LD"; then 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7059$as_echo "$LD" >&6; } 7060else 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7062$as_echo "no" >&6; } 7063fi 7064test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7066$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7067if ${lt_cv_prog_gnu_ld+:} false; then : 7068 $as_echo_n "(cached) " >&6 7069else 7070 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7071case `$LD -v 2>&1 </dev/null` in 7072*GNU* | *'with BFD'*) 7073 lt_cv_prog_gnu_ld=yes 7074 ;; 7075*) 7076 lt_cv_prog_gnu_ld=no 7077 ;; 7078esac 7079fi 7080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7081$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7082with_gnu_ld=$lt_cv_prog_gnu_ld 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7093$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7094if ${lt_cv_path_NM+:} false; then : 7095 $as_echo_n "(cached) " >&6 7096else 7097 if test -n "$NM"; then 7098 # Let the user override the test. 7099 lt_cv_path_NM=$NM 7100else 7101 lt_nm_to_check=${ac_tool_prefix}nm 7102 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7103 lt_nm_to_check="$lt_nm_to_check nm" 7104 fi 7105 for lt_tmp_nm in $lt_nm_to_check; do 7106 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7107 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7108 IFS=$lt_save_ifs 7109 test -z "$ac_dir" && ac_dir=. 7110 tmp_nm=$ac_dir/$lt_tmp_nm 7111 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7112 # Check to see if the nm accepts a BSD-compat flag. 7113 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7114 # nm: unknown option "B" ignored 7115 # Tru64's nm complains that /dev/null is an invalid object file 7116 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7117 case $build_os in 7118 mingw*) lt_bad_file=conftest.nm/nofile ;; 7119 *) lt_bad_file=/dev/null ;; 7120 esac 7121 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7122 *$lt_bad_file* | *'Invalid file or object type'*) 7123 lt_cv_path_NM="$tmp_nm -B" 7124 break 2 7125 ;; 7126 *) 7127 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7128 */dev/null*) 7129 lt_cv_path_NM="$tmp_nm -p" 7130 break 2 7131 ;; 7132 *) 7133 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7134 continue # so that we can try to find one that supports BSD flags 7135 ;; 7136 esac 7137 ;; 7138 esac 7139 fi 7140 done 7141 IFS=$lt_save_ifs 7142 done 7143 : ${lt_cv_path_NM=no} 7144fi 7145fi 7146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7147$as_echo "$lt_cv_path_NM" >&6; } 7148if test no != "$lt_cv_path_NM"; then 7149 NM=$lt_cv_path_NM 7150else 7151 # Didn't find any BSD compatible name lister, look for dumpbin. 7152 if test -n "$DUMPBIN"; then : 7153 # Let the user override the test. 7154 else 7155 if test -n "$ac_tool_prefix"; then 7156 for ac_prog in dumpbin "link -dump" 7157 do 7158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7159set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7161$as_echo_n "checking for $ac_word... " >&6; } 7162if ${ac_cv_prog_DUMPBIN+:} false; then : 7163 $as_echo_n "(cached) " >&6 7164else 7165 if test -n "$DUMPBIN"; then 7166 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7167else 7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7169for as_dir in $PATH 7170do 7171 IFS=$as_save_IFS 7172 test -z "$as_dir" && as_dir=. 7173 for ac_exec_ext in '' $ac_executable_extensions; do 7174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7175 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7177 break 2 7178 fi 7179done 7180 done 7181IFS=$as_save_IFS 7182 7183fi 7184fi 7185DUMPBIN=$ac_cv_prog_DUMPBIN 7186if test -n "$DUMPBIN"; then 7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7188$as_echo "$DUMPBIN" >&6; } 7189else 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7191$as_echo "no" >&6; } 7192fi 7193 7194 7195 test -n "$DUMPBIN" && break 7196 done 7197fi 7198if test -z "$DUMPBIN"; then 7199 ac_ct_DUMPBIN=$DUMPBIN 7200 for ac_prog in dumpbin "link -dump" 7201do 7202 # Extract the first word of "$ac_prog", so it can be a program name with args. 7203set dummy $ac_prog; ac_word=$2 7204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7205$as_echo_n "checking for $ac_word... " >&6; } 7206if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7207 $as_echo_n "(cached) " >&6 7208else 7209 if test -n "$ac_ct_DUMPBIN"; then 7210 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7211else 7212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7213for as_dir in $PATH 7214do 7215 IFS=$as_save_IFS 7216 test -z "$as_dir" && as_dir=. 7217 for ac_exec_ext in '' $ac_executable_extensions; do 7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7219 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7221 break 2 7222 fi 7223done 7224 done 7225IFS=$as_save_IFS 7226 7227fi 7228fi 7229ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7230if test -n "$ac_ct_DUMPBIN"; then 7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7232$as_echo "$ac_ct_DUMPBIN" >&6; } 7233else 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7235$as_echo "no" >&6; } 7236fi 7237 7238 7239 test -n "$ac_ct_DUMPBIN" && break 7240done 7241 7242 if test "x$ac_ct_DUMPBIN" = x; then 7243 DUMPBIN=":" 7244 else 7245 case $cross_compiling:$ac_tool_warned in 7246yes:) 7247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7249ac_tool_warned=yes ;; 7250esac 7251 DUMPBIN=$ac_ct_DUMPBIN 7252 fi 7253fi 7254 7255 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7256 *COFF*) 7257 DUMPBIN="$DUMPBIN -symbols -headers" 7258 ;; 7259 *) 7260 DUMPBIN=: 7261 ;; 7262 esac 7263 fi 7264 7265 if test : != "$DUMPBIN"; then 7266 NM=$DUMPBIN 7267 fi 7268fi 7269test -z "$NM" && NM=nm 7270 7271 7272 7273 7274 7275 7276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7277$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7278if ${lt_cv_nm_interface+:} false; then : 7279 $as_echo_n "(cached) " >&6 7280else 7281 lt_cv_nm_interface="BSD nm" 7282 echo "int some_variable = 0;" > conftest.$ac_ext 7283 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7284 (eval "$ac_compile" 2>conftest.err) 7285 cat conftest.err >&5 7286 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7287 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7288 cat conftest.err >&5 7289 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7290 cat conftest.out >&5 7291 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7292 lt_cv_nm_interface="MS dumpbin" 7293 fi 7294 rm -f conftest* 7295fi 7296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7297$as_echo "$lt_cv_nm_interface" >&6; } 7298 7299# find the maximum length of command line arguments 7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7301$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7302if ${lt_cv_sys_max_cmd_len+:} false; then : 7303 $as_echo_n "(cached) " >&6 7304else 7305 i=0 7306 teststring=ABCD 7307 7308 case $build_os in 7309 msdosdjgpp*) 7310 # On DJGPP, this test can blow up pretty badly due to problems in libc 7311 # (any single argument exceeding 2000 bytes causes a buffer overrun 7312 # during glob expansion). Even if it were fixed, the result of this 7313 # check would be larger than it should be. 7314 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7315 ;; 7316 7317 gnu*) 7318 # Under GNU Hurd, this test is not required because there is 7319 # no limit to the length of command line arguments. 7320 # Libtool will interpret -1 as no limit whatsoever 7321 lt_cv_sys_max_cmd_len=-1; 7322 ;; 7323 7324 cygwin* | mingw* | cegcc*) 7325 # On Win9x/ME, this test blows up -- it succeeds, but takes 7326 # about 5 minutes as the teststring grows exponentially. 7327 # Worse, since 9x/ME are not pre-emptively multitasking, 7328 # you end up with a "frozen" computer, even though with patience 7329 # the test eventually succeeds (with a max line length of 256k). 7330 # Instead, let's just punt: use the minimum linelength reported by 7331 # all of the supported platforms: 8192 (on NT/2K/XP). 7332 lt_cv_sys_max_cmd_len=8192; 7333 ;; 7334 7335 mint*) 7336 # On MiNT this can take a long time and run out of memory. 7337 lt_cv_sys_max_cmd_len=8192; 7338 ;; 7339 7340 amigaos*) 7341 # On AmigaOS with pdksh, this test takes hours, literally. 7342 # So we just punt and use a minimum line length of 8192. 7343 lt_cv_sys_max_cmd_len=8192; 7344 ;; 7345 7346 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 7347 # This has been around since 386BSD, at least. Likely further. 7348 if test -x /sbin/sysctl; then 7349 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7350 elif test -x /usr/sbin/sysctl; then 7351 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7352 else 7353 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7354 fi 7355 # And add a safety zone 7356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7357 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7358 ;; 7359 7360 interix*) 7361 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7362 lt_cv_sys_max_cmd_len=196608 7363 ;; 7364 7365 os2*) 7366 # The test takes a long time on OS/2. 7367 lt_cv_sys_max_cmd_len=8192 7368 ;; 7369 7370 osf*) 7371 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7372 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7373 # nice to cause kernel panics so lets avoid the loop below. 7374 # First set a reasonable default. 7375 lt_cv_sys_max_cmd_len=16384 7376 # 7377 if test -x /sbin/sysconfig; then 7378 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7379 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7380 esac 7381 fi 7382 ;; 7383 sco3.2v5*) 7384 lt_cv_sys_max_cmd_len=102400 7385 ;; 7386 sysv5* | sco5v6* | sysv4.2uw2*) 7387 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7388 if test -n "$kargmax"; then 7389 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7390 else 7391 lt_cv_sys_max_cmd_len=32768 7392 fi 7393 ;; 7394 *) 7395 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7396 if test -n "$lt_cv_sys_max_cmd_len" && \ 7397 test undefined != "$lt_cv_sys_max_cmd_len"; then 7398 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7400 else 7401 # Make teststring a little bigger before we do anything with it. 7402 # a 1K string should be a reasonable start. 7403 for i in 1 2 3 4 5 6 7 8; do 7404 teststring=$teststring$teststring 7405 done 7406 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7407 # If test is not a shell built-in, we'll probably end up computing a 7408 # maximum length that is only half of the actual maximum length, but 7409 # we can't tell. 7410 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7411 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7412 test 17 != "$i" # 1/2 MB should be enough 7413 do 7414 i=`expr $i + 1` 7415 teststring=$teststring$teststring 7416 done 7417 # Only check the string length outside the loop. 7418 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7419 teststring= 7420 # Add a significant safety factor because C++ compilers can tack on 7421 # massive amounts of additional arguments before passing them to the 7422 # linker. It appears as though 1/2 is a usable value. 7423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7424 fi 7425 ;; 7426 esac 7427 7428fi 7429 7430if test -n "$lt_cv_sys_max_cmd_len"; then 7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7432$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7433else 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7435$as_echo "none" >&6; } 7436fi 7437max_cmd_len=$lt_cv_sys_max_cmd_len 7438 7439 7440 7441 7442 7443 7444: ${CP="cp -f"} 7445: ${MV="mv -f"} 7446: ${RM="rm -f"} 7447 7448if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7449 lt_unset=unset 7450else 7451 lt_unset=false 7452fi 7453 7454 7455 7456 7457 7458# test EBCDIC or ASCII 7459case `echo X|tr X '\101'` in 7460 A) # ASCII based system 7461 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7462 lt_SP2NL='tr \040 \012' 7463 lt_NL2SP='tr \015\012 \040\040' 7464 ;; 7465 *) # EBCDIC based system 7466 lt_SP2NL='tr \100 \n' 7467 lt_NL2SP='tr \r\n \100\100' 7468 ;; 7469esac 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7480$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7481if ${lt_cv_to_host_file_cmd+:} false; then : 7482 $as_echo_n "(cached) " >&6 7483else 7484 case $host in 7485 *-*-mingw* ) 7486 case $build in 7487 *-*-mingw* ) # actually msys 7488 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7489 ;; 7490 *-*-cygwin* ) 7491 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7492 ;; 7493 * ) # otherwise, assume *nix 7494 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7495 ;; 7496 esac 7497 ;; 7498 *-*-cygwin* ) 7499 case $build in 7500 *-*-mingw* ) # actually msys 7501 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7502 ;; 7503 *-*-cygwin* ) 7504 lt_cv_to_host_file_cmd=func_convert_file_noop 7505 ;; 7506 * ) # otherwise, assume *nix 7507 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7508 ;; 7509 esac 7510 ;; 7511 * ) # unhandled hosts (and "normal" native builds) 7512 lt_cv_to_host_file_cmd=func_convert_file_noop 7513 ;; 7514esac 7515 7516fi 7517 7518to_host_file_cmd=$lt_cv_to_host_file_cmd 7519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7520$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7521 7522 7523 7524 7525 7526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7527$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7528if ${lt_cv_to_tool_file_cmd+:} false; then : 7529 $as_echo_n "(cached) " >&6 7530else 7531 #assume ordinary cross tools, or native build. 7532lt_cv_to_tool_file_cmd=func_convert_file_noop 7533case $host in 7534 *-*-mingw* ) 7535 case $build in 7536 *-*-mingw* ) # actually msys 7537 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7538 ;; 7539 esac 7540 ;; 7541esac 7542 7543fi 7544 7545to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7547$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7548 7549 7550 7551 7552 7553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7554$as_echo_n "checking for $LD option to reload object files... " >&6; } 7555if ${lt_cv_ld_reload_flag+:} false; then : 7556 $as_echo_n "(cached) " >&6 7557else 7558 lt_cv_ld_reload_flag='-r' 7559fi 7560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7561$as_echo "$lt_cv_ld_reload_flag" >&6; } 7562reload_flag=$lt_cv_ld_reload_flag 7563case $reload_flag in 7564"" | " "*) ;; 7565*) reload_flag=" $reload_flag" ;; 7566esac 7567reload_cmds='$LD$reload_flag -o $output$reload_objs' 7568case $host_os in 7569 cygwin* | mingw* | pw32* | cegcc*) 7570 if test yes != "$GCC"; then 7571 reload_cmds=false 7572 fi 7573 ;; 7574 darwin*) 7575 if test yes = "$GCC"; then 7576 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 7577 else 7578 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7579 fi 7580 ;; 7581esac 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591if test -n "$ac_tool_prefix"; then 7592 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7593set dummy ${ac_tool_prefix}objdump; ac_word=$2 7594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7595$as_echo_n "checking for $ac_word... " >&6; } 7596if ${ac_cv_prog_OBJDUMP+:} false; then : 7597 $as_echo_n "(cached) " >&6 7598else 7599 if test -n "$OBJDUMP"; then 7600 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7601else 7602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7603for as_dir in $PATH 7604do 7605 IFS=$as_save_IFS 7606 test -z "$as_dir" && as_dir=. 7607 for ac_exec_ext in '' $ac_executable_extensions; do 7608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7609 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7611 break 2 7612 fi 7613done 7614 done 7615IFS=$as_save_IFS 7616 7617fi 7618fi 7619OBJDUMP=$ac_cv_prog_OBJDUMP 7620if test -n "$OBJDUMP"; then 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7622$as_echo "$OBJDUMP" >&6; } 7623else 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7625$as_echo "no" >&6; } 7626fi 7627 7628 7629fi 7630if test -z "$ac_cv_prog_OBJDUMP"; then 7631 ac_ct_OBJDUMP=$OBJDUMP 7632 # Extract the first word of "objdump", so it can be a program name with args. 7633set dummy objdump; ac_word=$2 7634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7635$as_echo_n "checking for $ac_word... " >&6; } 7636if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7637 $as_echo_n "(cached) " >&6 7638else 7639 if test -n "$ac_ct_OBJDUMP"; then 7640 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7641else 7642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7643for as_dir in $PATH 7644do 7645 IFS=$as_save_IFS 7646 test -z "$as_dir" && as_dir=. 7647 for ac_exec_ext in '' $ac_executable_extensions; do 7648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7649 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7651 break 2 7652 fi 7653done 7654 done 7655IFS=$as_save_IFS 7656 7657fi 7658fi 7659ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7660if test -n "$ac_ct_OBJDUMP"; then 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7662$as_echo "$ac_ct_OBJDUMP" >&6; } 7663else 7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7665$as_echo "no" >&6; } 7666fi 7667 7668 if test "x$ac_ct_OBJDUMP" = x; then 7669 OBJDUMP="false" 7670 else 7671 case $cross_compiling:$ac_tool_warned in 7672yes:) 7673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7675ac_tool_warned=yes ;; 7676esac 7677 OBJDUMP=$ac_ct_OBJDUMP 7678 fi 7679else 7680 OBJDUMP="$ac_cv_prog_OBJDUMP" 7681fi 7682 7683test -z "$OBJDUMP" && OBJDUMP=objdump 7684 7685 7686 7687 7688 7689 7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7691$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7692if ${lt_cv_deplibs_check_method+:} false; then : 7693 $as_echo_n "(cached) " >&6 7694else 7695 lt_cv_file_magic_cmd='$MAGIC_CMD' 7696lt_cv_file_magic_test_file= 7697lt_cv_deplibs_check_method='unknown' 7698# Need to set the preceding variable on all platforms that support 7699# interlibrary dependencies. 7700# 'none' -- dependencies not supported. 7701# 'unknown' -- same as none, but documents that we really don't know. 7702# 'pass_all' -- all dependencies passed with no checks. 7703# 'test_compile' -- check by making test program. 7704# 'file_magic [[regex]]' -- check by looking for files in library path 7705# that responds to the $file_magic_cmd with a given extended regex. 7706# If you have 'file' or equivalent on your system and you're not sure 7707# whether 'pass_all' will *always* work, you probably want this one. 7708 7709case $host_os in 7710aix[4-9]*) 7711 lt_cv_deplibs_check_method=pass_all 7712 ;; 7713 7714beos*) 7715 lt_cv_deplibs_check_method=pass_all 7716 ;; 7717 7718bsdi[45]*) 7719 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7720 lt_cv_file_magic_cmd='/usr/bin/file -L' 7721 lt_cv_file_magic_test_file=/shlib/libc.so 7722 ;; 7723 7724cygwin*) 7725 # func_win32_libid is a shell function defined in ltmain.sh 7726 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7727 lt_cv_file_magic_cmd='func_win32_libid' 7728 ;; 7729 7730mingw* | pw32*) 7731 # Base MSYS/MinGW do not provide the 'file' command needed by 7732 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7733 # unless we find 'file', for example because we are cross-compiling. 7734 if ( file / ) >/dev/null 2>&1; then 7735 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7736 lt_cv_file_magic_cmd='func_win32_libid' 7737 else 7738 # Keep this pattern in sync with the one in func_win32_libid. 7739 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7740 lt_cv_file_magic_cmd='$OBJDUMP -f' 7741 fi 7742 ;; 7743 7744cegcc*) 7745 # use the weaker test based on 'objdump'. See mingw*. 7746 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7747 lt_cv_file_magic_cmd='$OBJDUMP -f' 7748 ;; 7749 7750darwin* | rhapsody*) 7751 lt_cv_deplibs_check_method=pass_all 7752 ;; 7753 7754freebsd* | dragonfly*) 7755 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7756 case $host_cpu in 7757 i*86 ) 7758 # Not sure whether the presence of OpenBSD here was a mistake. 7759 # Let's accept both of them until this is cleared up. 7760 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7761 lt_cv_file_magic_cmd=/usr/bin/file 7762 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7763 ;; 7764 esac 7765 else 7766 lt_cv_deplibs_check_method=pass_all 7767 fi 7768 ;; 7769 7770haiku*) 7771 lt_cv_deplibs_check_method=pass_all 7772 ;; 7773 7774hpux10.20* | hpux11*) 7775 lt_cv_file_magic_cmd=/usr/bin/file 7776 case $host_cpu in 7777 ia64*) 7778 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7779 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7780 ;; 7781 hppa*64*) 7782 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]' 7783 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7784 ;; 7785 *) 7786 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7787 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7788 ;; 7789 esac 7790 ;; 7791 7792interix[3-9]*) 7793 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7795 ;; 7796 7797irix5* | irix6* | nonstopux*) 7798 case $LD in 7799 *-32|*"-32 ") libmagic=32-bit;; 7800 *-n32|*"-n32 ") libmagic=N32;; 7801 *-64|*"-64 ") libmagic=64-bit;; 7802 *) libmagic=never-match;; 7803 esac 7804 lt_cv_deplibs_check_method=pass_all 7805 ;; 7806 7807# This must be glibc/ELF. 7808linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7809 lt_cv_deplibs_check_method=pass_all 7810 ;; 7811 7812netbsd* | netbsdelf*-gnu) 7813 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7815 else 7816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7817 fi 7818 ;; 7819 7820newos6*) 7821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7822 lt_cv_file_magic_cmd=/usr/bin/file 7823 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7824 ;; 7825 7826*nto* | *qnx*) 7827 lt_cv_deplibs_check_method=pass_all 7828 ;; 7829 7830openbsd* | bitrig*) 7831 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7833 else 7834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7835 fi 7836 ;; 7837 7838osf3* | osf4* | osf5*) 7839 lt_cv_deplibs_check_method=pass_all 7840 ;; 7841 7842rdos*) 7843 lt_cv_deplibs_check_method=pass_all 7844 ;; 7845 7846solaris*) 7847 lt_cv_deplibs_check_method=pass_all 7848 ;; 7849 7850sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7851 lt_cv_deplibs_check_method=pass_all 7852 ;; 7853 7854sysv4 | sysv4.3*) 7855 case $host_vendor in 7856 motorola) 7857 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]' 7858 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7859 ;; 7860 ncr) 7861 lt_cv_deplibs_check_method=pass_all 7862 ;; 7863 sequent) 7864 lt_cv_file_magic_cmd='/bin/file' 7865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7866 ;; 7867 sni) 7868 lt_cv_file_magic_cmd='/bin/file' 7869 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7870 lt_cv_file_magic_test_file=/lib/libc.so 7871 ;; 7872 siemens) 7873 lt_cv_deplibs_check_method=pass_all 7874 ;; 7875 pc) 7876 lt_cv_deplibs_check_method=pass_all 7877 ;; 7878 esac 7879 ;; 7880 7881tpf*) 7882 lt_cv_deplibs_check_method=pass_all 7883 ;; 7884os2*) 7885 lt_cv_deplibs_check_method=pass_all 7886 ;; 7887esac 7888 7889fi 7890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7891$as_echo "$lt_cv_deplibs_check_method" >&6; } 7892 7893file_magic_glob= 7894want_nocaseglob=no 7895if test "$build" = "$host"; then 7896 case $host_os in 7897 mingw* | pw32*) 7898 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7899 want_nocaseglob=yes 7900 else 7901 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7902 fi 7903 ;; 7904 esac 7905fi 7906 7907file_magic_cmd=$lt_cv_file_magic_cmd 7908deplibs_check_method=$lt_cv_deplibs_check_method 7909test -z "$deplibs_check_method" && deplibs_check_method=unknown 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932if test -n "$ac_tool_prefix"; then 7933 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7934set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7936$as_echo_n "checking for $ac_word... " >&6; } 7937if ${ac_cv_prog_DLLTOOL+:} false; then : 7938 $as_echo_n "(cached) " >&6 7939else 7940 if test -n "$DLLTOOL"; then 7941 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7942else 7943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7944for as_dir in $PATH 7945do 7946 IFS=$as_save_IFS 7947 test -z "$as_dir" && as_dir=. 7948 for ac_exec_ext in '' $ac_executable_extensions; do 7949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7950 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7952 break 2 7953 fi 7954done 7955 done 7956IFS=$as_save_IFS 7957 7958fi 7959fi 7960DLLTOOL=$ac_cv_prog_DLLTOOL 7961if test -n "$DLLTOOL"; then 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7963$as_echo "$DLLTOOL" >&6; } 7964else 7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7966$as_echo "no" >&6; } 7967fi 7968 7969 7970fi 7971if test -z "$ac_cv_prog_DLLTOOL"; then 7972 ac_ct_DLLTOOL=$DLLTOOL 7973 # Extract the first word of "dlltool", so it can be a program name with args. 7974set dummy dlltool; ac_word=$2 7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7976$as_echo_n "checking for $ac_word... " >&6; } 7977if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7978 $as_echo_n "(cached) " >&6 7979else 7980 if test -n "$ac_ct_DLLTOOL"; then 7981 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7982else 7983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7984for as_dir in $PATH 7985do 7986 IFS=$as_save_IFS 7987 test -z "$as_dir" && as_dir=. 7988 for ac_exec_ext in '' $ac_executable_extensions; do 7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7990 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7992 break 2 7993 fi 7994done 7995 done 7996IFS=$as_save_IFS 7997 7998fi 7999fi 8000ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8001if test -n "$ac_ct_DLLTOOL"; then 8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8003$as_echo "$ac_ct_DLLTOOL" >&6; } 8004else 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8006$as_echo "no" >&6; } 8007fi 8008 8009 if test "x$ac_ct_DLLTOOL" = x; then 8010 DLLTOOL="false" 8011 else 8012 case $cross_compiling:$ac_tool_warned in 8013yes:) 8014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8016ac_tool_warned=yes ;; 8017esac 8018 DLLTOOL=$ac_ct_DLLTOOL 8019 fi 8020else 8021 DLLTOOL="$ac_cv_prog_DLLTOOL" 8022fi 8023 8024test -z "$DLLTOOL" && DLLTOOL=dlltool 8025 8026 8027 8028 8029 8030 8031 8032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8033$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8034if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8035 $as_echo_n "(cached) " >&6 8036else 8037 lt_cv_sharedlib_from_linklib_cmd='unknown' 8038 8039case $host_os in 8040cygwin* | mingw* | pw32* | cegcc*) 8041 # two different shell functions defined in ltmain.sh; 8042 # decide which one to use based on capabilities of $DLLTOOL 8043 case `$DLLTOOL --help 2>&1` in 8044 *--identify-strict*) 8045 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8046 ;; 8047 *) 8048 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8049 ;; 8050 esac 8051 ;; 8052*) 8053 # fallback: assume linklib IS sharedlib 8054 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8055 ;; 8056esac 8057 8058fi 8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8060$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8061sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8062test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8063 8064 8065 8066 8067 8068 8069 8070if test -n "$ac_tool_prefix"; then 8071 for ac_prog in ar 8072 do 8073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8074set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8076$as_echo_n "checking for $ac_word... " >&6; } 8077if ${ac_cv_prog_AR+:} false; then : 8078 $as_echo_n "(cached) " >&6 8079else 8080 if test -n "$AR"; then 8081 ac_cv_prog_AR="$AR" # Let the user override the test. 8082else 8083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8084for as_dir in $PATH 8085do 8086 IFS=$as_save_IFS 8087 test -z "$as_dir" && as_dir=. 8088 for ac_exec_ext in '' $ac_executable_extensions; do 8089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8090 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8092 break 2 8093 fi 8094done 8095 done 8096IFS=$as_save_IFS 8097 8098fi 8099fi 8100AR=$ac_cv_prog_AR 8101if test -n "$AR"; then 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8103$as_echo "$AR" >&6; } 8104else 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8106$as_echo "no" >&6; } 8107fi 8108 8109 8110 test -n "$AR" && break 8111 done 8112fi 8113if test -z "$AR"; then 8114 ac_ct_AR=$AR 8115 for ac_prog in ar 8116do 8117 # Extract the first word of "$ac_prog", so it can be a program name with args. 8118set dummy $ac_prog; ac_word=$2 8119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8120$as_echo_n "checking for $ac_word... " >&6; } 8121if ${ac_cv_prog_ac_ct_AR+:} false; then : 8122 $as_echo_n "(cached) " >&6 8123else 8124 if test -n "$ac_ct_AR"; then 8125 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8126else 8127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8128for as_dir in $PATH 8129do 8130 IFS=$as_save_IFS 8131 test -z "$as_dir" && as_dir=. 8132 for ac_exec_ext in '' $ac_executable_extensions; do 8133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8134 ac_cv_prog_ac_ct_AR="$ac_prog" 8135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8136 break 2 8137 fi 8138done 8139 done 8140IFS=$as_save_IFS 8141 8142fi 8143fi 8144ac_ct_AR=$ac_cv_prog_ac_ct_AR 8145if test -n "$ac_ct_AR"; then 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8147$as_echo "$ac_ct_AR" >&6; } 8148else 8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8150$as_echo "no" >&6; } 8151fi 8152 8153 8154 test -n "$ac_ct_AR" && break 8155done 8156 8157 if test "x$ac_ct_AR" = x; then 8158 AR="false" 8159 else 8160 case $cross_compiling:$ac_tool_warned in 8161yes:) 8162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8164ac_tool_warned=yes ;; 8165esac 8166 AR=$ac_ct_AR 8167 fi 8168fi 8169 8170: ${AR=ar} 8171: ${AR_FLAGS=cru} 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8184$as_echo_n "checking for archiver @FILE support... " >&6; } 8185if ${lt_cv_ar_at_file+:} false; then : 8186 $as_echo_n "(cached) " >&6 8187else 8188 lt_cv_ar_at_file=no 8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8190/* end confdefs.h. */ 8191 8192int 8193main () 8194{ 8195 8196 ; 8197 return 0; 8198} 8199_ACEOF 8200if ac_fn_c_try_compile "$LINENO"; then : 8201 echo conftest.$ac_objext > conftest.lst 8202 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8204 (eval $lt_ar_try) 2>&5 8205 ac_status=$? 8206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8207 test $ac_status = 0; } 8208 if test 0 -eq "$ac_status"; then 8209 # Ensure the archiver fails upon bogus file names. 8210 rm -f conftest.$ac_objext libconftest.a 8211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8212 (eval $lt_ar_try) 2>&5 8213 ac_status=$? 8214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8215 test $ac_status = 0; } 8216 if test 0 -ne "$ac_status"; then 8217 lt_cv_ar_at_file=@ 8218 fi 8219 fi 8220 rm -f conftest.* libconftest.a 8221 8222fi 8223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8224 8225fi 8226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8227$as_echo "$lt_cv_ar_at_file" >&6; } 8228 8229if test no = "$lt_cv_ar_at_file"; then 8230 archiver_list_spec= 8231else 8232 archiver_list_spec=$lt_cv_ar_at_file 8233fi 8234 8235 8236 8237 8238 8239 8240 8241if test -n "$ac_tool_prefix"; then 8242 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8243set dummy ${ac_tool_prefix}strip; ac_word=$2 8244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8245$as_echo_n "checking for $ac_word... " >&6; } 8246if ${ac_cv_prog_STRIP+:} false; then : 8247 $as_echo_n "(cached) " >&6 8248else 8249 if test -n "$STRIP"; then 8250 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8251else 8252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8253for as_dir in $PATH 8254do 8255 IFS=$as_save_IFS 8256 test -z "$as_dir" && as_dir=. 8257 for ac_exec_ext in '' $ac_executable_extensions; do 8258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8259 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8261 break 2 8262 fi 8263done 8264 done 8265IFS=$as_save_IFS 8266 8267fi 8268fi 8269STRIP=$ac_cv_prog_STRIP 8270if test -n "$STRIP"; then 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8272$as_echo "$STRIP" >&6; } 8273else 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8275$as_echo "no" >&6; } 8276fi 8277 8278 8279fi 8280if test -z "$ac_cv_prog_STRIP"; then 8281 ac_ct_STRIP=$STRIP 8282 # Extract the first word of "strip", so it can be a program name with args. 8283set dummy strip; ac_word=$2 8284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8285$as_echo_n "checking for $ac_word... " >&6; } 8286if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8287 $as_echo_n "(cached) " >&6 8288else 8289 if test -n "$ac_ct_STRIP"; then 8290 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8291else 8292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8293for as_dir in $PATH 8294do 8295 IFS=$as_save_IFS 8296 test -z "$as_dir" && as_dir=. 8297 for ac_exec_ext in '' $ac_executable_extensions; do 8298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8299 ac_cv_prog_ac_ct_STRIP="strip" 8300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8301 break 2 8302 fi 8303done 8304 done 8305IFS=$as_save_IFS 8306 8307fi 8308fi 8309ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8310if test -n "$ac_ct_STRIP"; then 8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8312$as_echo "$ac_ct_STRIP" >&6; } 8313else 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8315$as_echo "no" >&6; } 8316fi 8317 8318 if test "x$ac_ct_STRIP" = x; then 8319 STRIP=":" 8320 else 8321 case $cross_compiling:$ac_tool_warned in 8322yes:) 8323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8325ac_tool_warned=yes ;; 8326esac 8327 STRIP=$ac_ct_STRIP 8328 fi 8329else 8330 STRIP="$ac_cv_prog_STRIP" 8331fi 8332 8333test -z "$STRIP" && STRIP=: 8334 8335 8336 8337 8338 8339 8340if test -n "$ac_tool_prefix"; then 8341 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8342set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8344$as_echo_n "checking for $ac_word... " >&6; } 8345if ${ac_cv_prog_RANLIB+:} false; then : 8346 $as_echo_n "(cached) " >&6 8347else 8348 if test -n "$RANLIB"; then 8349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8350else 8351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8352for as_dir in $PATH 8353do 8354 IFS=$as_save_IFS 8355 test -z "$as_dir" && as_dir=. 8356 for ac_exec_ext in '' $ac_executable_extensions; do 8357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8358 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8360 break 2 8361 fi 8362done 8363 done 8364IFS=$as_save_IFS 8365 8366fi 8367fi 8368RANLIB=$ac_cv_prog_RANLIB 8369if test -n "$RANLIB"; then 8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8371$as_echo "$RANLIB" >&6; } 8372else 8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8374$as_echo "no" >&6; } 8375fi 8376 8377 8378fi 8379if test -z "$ac_cv_prog_RANLIB"; then 8380 ac_ct_RANLIB=$RANLIB 8381 # Extract the first word of "ranlib", so it can be a program name with args. 8382set dummy ranlib; ac_word=$2 8383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8384$as_echo_n "checking for $ac_word... " >&6; } 8385if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8386 $as_echo_n "(cached) " >&6 8387else 8388 if test -n "$ac_ct_RANLIB"; then 8389 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8390else 8391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8392for as_dir in $PATH 8393do 8394 IFS=$as_save_IFS 8395 test -z "$as_dir" && as_dir=. 8396 for ac_exec_ext in '' $ac_executable_extensions; do 8397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8398 ac_cv_prog_ac_ct_RANLIB="ranlib" 8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8400 break 2 8401 fi 8402done 8403 done 8404IFS=$as_save_IFS 8405 8406fi 8407fi 8408ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8409if test -n "$ac_ct_RANLIB"; then 8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8411$as_echo "$ac_ct_RANLIB" >&6; } 8412else 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8414$as_echo "no" >&6; } 8415fi 8416 8417 if test "x$ac_ct_RANLIB" = x; then 8418 RANLIB=":" 8419 else 8420 case $cross_compiling:$ac_tool_warned in 8421yes:) 8422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8424ac_tool_warned=yes ;; 8425esac 8426 RANLIB=$ac_ct_RANLIB 8427 fi 8428else 8429 RANLIB="$ac_cv_prog_RANLIB" 8430fi 8431 8432test -z "$RANLIB" && RANLIB=: 8433 8434 8435 8436 8437 8438 8439# Determine commands to create old-style static archives. 8440old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8441old_postinstall_cmds='chmod 644 $oldlib' 8442old_postuninstall_cmds= 8443 8444if test -n "$RANLIB"; then 8445 case $host_os in 8446 bitrig* | openbsd*) 8447 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8448 ;; 8449 *) 8450 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8451 ;; 8452 esac 8453 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8454fi 8455 8456case $host_os in 8457 darwin*) 8458 lock_old_archive_extraction=yes ;; 8459 *) 8460 lock_old_archive_extraction=no ;; 8461esac 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501# If no C compiler was specified, use CC. 8502LTCC=${LTCC-"$CC"} 8503 8504# If no C compiler flags were specified, use CFLAGS. 8505LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8506 8507# Allow CC to be a program name with arguments. 8508compiler=$CC 8509 8510 8511# Check for command to grab the raw symbol name followed by C symbol from nm. 8512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8513$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8514if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8515 $as_echo_n "(cached) " >&6 8516else 8517 8518# These are sane defaults that work on at least a few old systems. 8519# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8520 8521# Character class describing NM global symbol codes. 8522symcode='[BCDEGRST]' 8523 8524# Regexp to match symbols that can be accessed directly from C. 8525sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8526 8527# Define system-specific variables. 8528case $host_os in 8529aix*) 8530 symcode='[BCDT]' 8531 ;; 8532cygwin* | mingw* | pw32* | cegcc*) 8533 symcode='[ABCDGISTW]' 8534 ;; 8535hpux*) 8536 if test ia64 = "$host_cpu"; then 8537 symcode='[ABCDEGRST]' 8538 fi 8539 ;; 8540irix* | nonstopux*) 8541 symcode='[BCDEGRST]' 8542 ;; 8543osf*) 8544 symcode='[BCDEGQRST]' 8545 ;; 8546solaris*) 8547 symcode='[BDRT]' 8548 ;; 8549sco3.2v5*) 8550 symcode='[DT]' 8551 ;; 8552sysv4.2uw2*) 8553 symcode='[DT]' 8554 ;; 8555sysv5* | sco5v6* | unixware* | OpenUNIX*) 8556 symcode='[ABDT]' 8557 ;; 8558sysv4) 8559 symcode='[DFNSTU]' 8560 ;; 8561esac 8562 8563# If we're using GNU nm, then use its standard symbol codes. 8564case `$NM -V 2>&1` in 8565*GNU* | *'with BFD'*) 8566 symcode='[ABCDGIRSTW]' ;; 8567esac 8568 8569if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8570 # Gets list of data symbols to import. 8571 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 8572 # Adjust the below global symbol transforms to fixup imported variables. 8573 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8574 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8575 lt_c_name_lib_hook="\ 8576 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8577 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8578else 8579 # Disable hooks by default. 8580 lt_cv_sys_global_symbol_to_import= 8581 lt_cdecl_hook= 8582 lt_c_name_hook= 8583 lt_c_name_lib_hook= 8584fi 8585 8586# Transform an extracted symbol line into a proper C declaration. 8587# Some systems (esp. on ia64) link data and code symbols differently, 8588# so use this general approach. 8589lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 8590$lt_cdecl_hook\ 8591" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8592" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8593 8594# Transform an extracted symbol line into symbol name and symbol address 8595lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 8596$lt_c_name_hook\ 8597" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8598" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8599 8600# Transform an extracted symbol line into symbol name with lib prefix and 8601# symbol address. 8602lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 8603$lt_c_name_lib_hook\ 8604" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8605" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8606" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8607 8608# Handle CRLF in mingw tool chain 8609opt_cr= 8610case $build_os in 8611mingw*) 8612 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8613 ;; 8614esac 8615 8616# Try without a prefix underscore, then with it. 8617for ac_symprfx in "" "_"; do 8618 8619 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8620 symxfrm="\\1 $ac_symprfx\\2 \\2" 8621 8622 # Write the raw and C identifiers. 8623 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8624 # Fake it for dumpbin and say T for any non-static function, 8625 # D for any global variable and I for any imported variable. 8626 # Also find C++ and __fastcall symbols from MSVC++, 8627 # which start with @ or ?. 8628 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8629" {last_section=section; section=\$ 3};"\ 8630" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8631" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8632" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8633" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8634" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8635" \$ 0!~/External *\|/{next};"\ 8636" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8637" {if(hide[section]) next};"\ 8638" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8639" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8640" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8641" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8642" ' prfx=^$ac_symprfx" 8643 else 8644 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8645 fi 8646 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8647 8648 # Check to see that the pipe works correctly. 8649 pipe_works=no 8650 8651 rm -f conftest* 8652 cat > conftest.$ac_ext <<_LT_EOF 8653#ifdef __cplusplus 8654extern "C" { 8655#endif 8656char nm_test_var; 8657void nm_test_func(void); 8658void nm_test_func(void){} 8659#ifdef __cplusplus 8660} 8661#endif 8662int main(){nm_test_var='a';nm_test_func();return(0);} 8663_LT_EOF 8664 8665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8666 (eval $ac_compile) 2>&5 8667 ac_status=$? 8668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8669 test $ac_status = 0; }; then 8670 # Now try to grab the symbols. 8671 nlist=conftest.nm 8672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8673 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8674 ac_status=$? 8675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8676 test $ac_status = 0; } && test -s "$nlist"; then 8677 # Try sorting and uniquifying the output. 8678 if sort "$nlist" | uniq > "$nlist"T; then 8679 mv -f "$nlist"T "$nlist" 8680 else 8681 rm -f "$nlist"T 8682 fi 8683 8684 # Make sure that we snagged all the symbols we need. 8685 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8686 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8687 cat <<_LT_EOF > conftest.$ac_ext 8688/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8689#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 8690/* DATA imports from DLLs on WIN32 can't be const, because runtime 8691 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8692# define LT_DLSYM_CONST 8693#elif defined __osf__ 8694/* This system does not cope well with relocations in const data. */ 8695# define LT_DLSYM_CONST 8696#else 8697# define LT_DLSYM_CONST const 8698#endif 8699 8700#ifdef __cplusplus 8701extern "C" { 8702#endif 8703 8704_LT_EOF 8705 # Now generate the symbol file. 8706 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8707 8708 cat <<_LT_EOF >> conftest.$ac_ext 8709 8710/* The mapping between symbol names and symbols. */ 8711LT_DLSYM_CONST struct { 8712 const char *name; 8713 void *address; 8714} 8715lt__PROGRAM__LTX_preloaded_symbols[] = 8716{ 8717 { "@PROGRAM@", (void *) 0 }, 8718_LT_EOF 8719 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8720 cat <<\_LT_EOF >> conftest.$ac_ext 8721 {0, (void *) 0} 8722}; 8723 8724/* This works around a problem in FreeBSD linker */ 8725#ifdef FREEBSD_WORKAROUND 8726static const void *lt_preloaded_setup() { 8727 return lt__PROGRAM__LTX_preloaded_symbols; 8728} 8729#endif 8730 8731#ifdef __cplusplus 8732} 8733#endif 8734_LT_EOF 8735 # Now try linking the two files. 8736 mv conftest.$ac_objext conftstm.$ac_objext 8737 lt_globsym_save_LIBS=$LIBS 8738 lt_globsym_save_CFLAGS=$CFLAGS 8739 LIBS=conftstm.$ac_objext 8740 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8742 (eval $ac_link) 2>&5 8743 ac_status=$? 8744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8745 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8746 pipe_works=yes 8747 fi 8748 LIBS=$lt_globsym_save_LIBS 8749 CFLAGS=$lt_globsym_save_CFLAGS 8750 else 8751 echo "cannot find nm_test_func in $nlist" >&5 8752 fi 8753 else 8754 echo "cannot find nm_test_var in $nlist" >&5 8755 fi 8756 else 8757 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8758 fi 8759 else 8760 echo "$progname: failed program was:" >&5 8761 cat conftest.$ac_ext >&5 8762 fi 8763 rm -rf conftest* conftst* 8764 8765 # Do not use the global_symbol_pipe unless it works. 8766 if test yes = "$pipe_works"; then 8767 break 8768 else 8769 lt_cv_sys_global_symbol_pipe= 8770 fi 8771done 8772 8773fi 8774 8775if test -z "$lt_cv_sys_global_symbol_pipe"; then 8776 lt_cv_sys_global_symbol_to_cdecl= 8777fi 8778if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8780$as_echo "failed" >&6; } 8781else 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8783$as_echo "ok" >&6; } 8784fi 8785 8786# Response file support. 8787if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8788 nm_file_list_spec='@' 8789elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8790 nm_file_list_spec='@' 8791fi 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8830$as_echo_n "checking for sysroot... " >&6; } 8831 8832# Check whether --with-sysroot was given. 8833if test "${with_sysroot+set}" = set; then : 8834 withval=$with_sysroot; 8835else 8836 with_sysroot=no 8837fi 8838 8839 8840lt_sysroot= 8841case $with_sysroot in #( 8842 yes) 8843 if test yes = "$GCC"; then 8844 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8845 fi 8846 ;; #( 8847 /*) 8848 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8849 ;; #( 8850 no|'') 8851 ;; #( 8852 *) 8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8854$as_echo "$with_sysroot" >&6; } 8855 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8856 ;; 8857esac 8858 8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8860$as_echo "${lt_sysroot:-no}" >&6; } 8861 8862 8863 8864 8865 8866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8867$as_echo_n "checking for a working dd... " >&6; } 8868if ${ac_cv_path_lt_DD+:} false; then : 8869 $as_echo_n "(cached) " >&6 8870else 8871 printf 0123456789abcdef0123456789abcdef >conftest.i 8872cat conftest.i conftest.i >conftest2.i 8873: ${lt_DD:=$DD} 8874if test -z "$lt_DD"; then 8875 ac_path_lt_DD_found=false 8876 # Loop through the user's path and test for each of PROGNAME-LIST 8877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8878for as_dir in $PATH 8879do 8880 IFS=$as_save_IFS 8881 test -z "$as_dir" && as_dir=. 8882 for ac_prog in dd; do 8883 for ac_exec_ext in '' $ac_executable_extensions; do 8884 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 8885 as_fn_executable_p "$ac_path_lt_DD" || continue 8886if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8887 cmp -s conftest.i conftest.out \ 8888 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8889fi 8890 $ac_path_lt_DD_found && break 3 8891 done 8892 done 8893 done 8894IFS=$as_save_IFS 8895 if test -z "$ac_cv_path_lt_DD"; then 8896 : 8897 fi 8898else 8899 ac_cv_path_lt_DD=$lt_DD 8900fi 8901 8902rm -f conftest.i conftest2.i conftest.out 8903fi 8904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8905$as_echo "$ac_cv_path_lt_DD" >&6; } 8906 8907 8908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8909$as_echo_n "checking how to truncate binary pipes... " >&6; } 8910if ${lt_cv_truncate_bin+:} false; then : 8911 $as_echo_n "(cached) " >&6 8912else 8913 printf 0123456789abcdef0123456789abcdef >conftest.i 8914cat conftest.i conftest.i >conftest2.i 8915lt_cv_truncate_bin= 8916if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8917 cmp -s conftest.i conftest.out \ 8918 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8919fi 8920rm -f conftest.i conftest2.i conftest.out 8921test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8922fi 8923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8924$as_echo "$lt_cv_truncate_bin" >&6; } 8925 8926 8927 8928 8929 8930 8931 8932# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8933func_cc_basename () 8934{ 8935 for cc_temp in $*""; do 8936 case $cc_temp in 8937 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8938 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8939 \-*) ;; 8940 *) break;; 8941 esac 8942 done 8943 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8944} 8945 8946# Check whether --enable-libtool-lock was given. 8947if test "${enable_libtool_lock+set}" = set; then : 8948 enableval=$enable_libtool_lock; 8949fi 8950 8951test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8952 8953# Some flags need to be propagated to the compiler or linker for good 8954# libtool support. 8955case $host in 8956ia64-*-hpux*) 8957 # Find out what ABI is being produced by ac_compile, and set mode 8958 # options accordingly. 8959 echo 'int i;' > conftest.$ac_ext 8960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8961 (eval $ac_compile) 2>&5 8962 ac_status=$? 8963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8964 test $ac_status = 0; }; then 8965 case `/usr/bin/file conftest.$ac_objext` in 8966 *ELF-32*) 8967 HPUX_IA64_MODE=32 8968 ;; 8969 *ELF-64*) 8970 HPUX_IA64_MODE=64 8971 ;; 8972 esac 8973 fi 8974 rm -rf conftest* 8975 ;; 8976*-*-irix6*) 8977 # Find out what ABI is being produced by ac_compile, and set linker 8978 # options accordingly. 8979 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8981 (eval $ac_compile) 2>&5 8982 ac_status=$? 8983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8984 test $ac_status = 0; }; then 8985 if test yes = "$lt_cv_prog_gnu_ld"; then 8986 case `/usr/bin/file conftest.$ac_objext` in 8987 *32-bit*) 8988 LD="${LD-ld} -melf32bsmip" 8989 ;; 8990 *N32*) 8991 LD="${LD-ld} -melf32bmipn32" 8992 ;; 8993 *64-bit*) 8994 LD="${LD-ld} -melf64bmip" 8995 ;; 8996 esac 8997 else 8998 case `/usr/bin/file conftest.$ac_objext` in 8999 *32-bit*) 9000 LD="${LD-ld} -32" 9001 ;; 9002 *N32*) 9003 LD="${LD-ld} -n32" 9004 ;; 9005 *64-bit*) 9006 LD="${LD-ld} -64" 9007 ;; 9008 esac 9009 fi 9010 fi 9011 rm -rf conftest* 9012 ;; 9013 9014mips64*-*linux*) 9015 # Find out what ABI is being produced by ac_compile, and set linker 9016 # options accordingly. 9017 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9019 (eval $ac_compile) 2>&5 9020 ac_status=$? 9021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9022 test $ac_status = 0; }; then 9023 emul=elf 9024 case `/usr/bin/file conftest.$ac_objext` in 9025 *32-bit*) 9026 emul="${emul}32" 9027 ;; 9028 *64-bit*) 9029 emul="${emul}64" 9030 ;; 9031 esac 9032 case `/usr/bin/file conftest.$ac_objext` in 9033 *MSB*) 9034 emul="${emul}btsmip" 9035 ;; 9036 *LSB*) 9037 emul="${emul}ltsmip" 9038 ;; 9039 esac 9040 case `/usr/bin/file conftest.$ac_objext` in 9041 *N32*) 9042 emul="${emul}n32" 9043 ;; 9044 esac 9045 LD="${LD-ld} -m $emul" 9046 fi 9047 rm -rf conftest* 9048 ;; 9049 9050x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9051s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9052 # Find out what ABI is being produced by ac_compile, and set linker 9053 # options accordingly. Note that the listed cases only cover the 9054 # situations where additional linker options are needed (such as when 9055 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9056 # vice versa); the common cases where no linker options are needed do 9057 # not appear in the list. 9058 echo 'int i;' > conftest.$ac_ext 9059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9060 (eval $ac_compile) 2>&5 9061 ac_status=$? 9062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9063 test $ac_status = 0; }; then 9064 case `/usr/bin/file conftest.o` in 9065 *32-bit*) 9066 case $host in 9067 x86_64-*kfreebsd*-gnu) 9068 LD="${LD-ld} -m elf_i386_fbsd" 9069 ;; 9070 x86_64-*linux*) 9071 case `/usr/bin/file conftest.o` in 9072 *x86-64*) 9073 LD="${LD-ld} -m elf32_x86_64" 9074 ;; 9075 *) 9076 LD="${LD-ld} -m elf_i386" 9077 ;; 9078 esac 9079 ;; 9080 powerpc64le-*linux*) 9081 LD="${LD-ld} -m elf32lppclinux" 9082 ;; 9083 powerpc64-*linux*) 9084 LD="${LD-ld} -m elf32ppclinux" 9085 ;; 9086 s390x-*linux*) 9087 LD="${LD-ld} -m elf_s390" 9088 ;; 9089 sparc64-*linux*) 9090 LD="${LD-ld} -m elf32_sparc" 9091 ;; 9092 esac 9093 ;; 9094 *64-bit*) 9095 case $host in 9096 x86_64-*kfreebsd*-gnu) 9097 LD="${LD-ld} -m elf_x86_64_fbsd" 9098 ;; 9099 x86_64-*linux*) 9100 LD="${LD-ld} -m elf_x86_64" 9101 ;; 9102 powerpcle-*linux*) 9103 LD="${LD-ld} -m elf64lppc" 9104 ;; 9105 powerpc-*linux*) 9106 LD="${LD-ld} -m elf64ppc" 9107 ;; 9108 s390*-*linux*|s390*-*tpf*) 9109 LD="${LD-ld} -m elf64_s390" 9110 ;; 9111 sparc*-*linux*) 9112 LD="${LD-ld} -m elf64_sparc" 9113 ;; 9114 esac 9115 ;; 9116 esac 9117 fi 9118 rm -rf conftest* 9119 ;; 9120 9121*-*-sco3.2v5*) 9122 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9123 SAVE_CFLAGS=$CFLAGS 9124 CFLAGS="$CFLAGS -belf" 9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9126$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9127if ${lt_cv_cc_needs_belf+:} false; then : 9128 $as_echo_n "(cached) " >&6 9129else 9130 ac_ext=c 9131ac_cpp='$CPP $CPPFLAGS' 9132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9134ac_compiler_gnu=$ac_cv_c_compiler_gnu 9135 9136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9137/* end confdefs.h. */ 9138 9139int 9140main () 9141{ 9142 9143 ; 9144 return 0; 9145} 9146_ACEOF 9147if ac_fn_c_try_link "$LINENO"; then : 9148 lt_cv_cc_needs_belf=yes 9149else 9150 lt_cv_cc_needs_belf=no 9151fi 9152rm -f core conftest.err conftest.$ac_objext \ 9153 conftest$ac_exeext conftest.$ac_ext 9154 ac_ext=c 9155ac_cpp='$CPP $CPPFLAGS' 9156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9158ac_compiler_gnu=$ac_cv_c_compiler_gnu 9159 9160fi 9161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9162$as_echo "$lt_cv_cc_needs_belf" >&6; } 9163 if test yes != "$lt_cv_cc_needs_belf"; then 9164 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9165 CFLAGS=$SAVE_CFLAGS 9166 fi 9167 ;; 9168*-*solaris*) 9169 # Find out what ABI is being produced by ac_compile, and set linker 9170 # options accordingly. 9171 echo 'int i;' > conftest.$ac_ext 9172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9173 (eval $ac_compile) 2>&5 9174 ac_status=$? 9175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9176 test $ac_status = 0; }; then 9177 case `/usr/bin/file conftest.o` in 9178 *64-bit*) 9179 case $lt_cv_prog_gnu_ld in 9180 yes*) 9181 case $host in 9182 i?86-*-solaris*|x86_64-*-solaris*) 9183 LD="${LD-ld} -m elf_x86_64" 9184 ;; 9185 sparc*-*-solaris*) 9186 LD="${LD-ld} -m elf64_sparc" 9187 ;; 9188 esac 9189 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9190 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9191 LD=${LD-ld}_sol2 9192 fi 9193 ;; 9194 *) 9195 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9196 LD="${LD-ld} -64" 9197 fi 9198 ;; 9199 esac 9200 ;; 9201 esac 9202 fi 9203 rm -rf conftest* 9204 ;; 9205esac 9206 9207need_locks=$enable_libtool_lock 9208 9209if test -n "$ac_tool_prefix"; then 9210 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9211set dummy ${ac_tool_prefix}mt; ac_word=$2 9212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9213$as_echo_n "checking for $ac_word... " >&6; } 9214if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9215 $as_echo_n "(cached) " >&6 9216else 9217 if test -n "$MANIFEST_TOOL"; then 9218 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9219else 9220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9221for as_dir in $PATH 9222do 9223 IFS=$as_save_IFS 9224 test -z "$as_dir" && as_dir=. 9225 for ac_exec_ext in '' $ac_executable_extensions; do 9226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9227 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9229 break 2 9230 fi 9231done 9232 done 9233IFS=$as_save_IFS 9234 9235fi 9236fi 9237MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9238if test -n "$MANIFEST_TOOL"; then 9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9240$as_echo "$MANIFEST_TOOL" >&6; } 9241else 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9243$as_echo "no" >&6; } 9244fi 9245 9246 9247fi 9248if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9249 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9250 # Extract the first word of "mt", so it can be a program name with args. 9251set dummy mt; ac_word=$2 9252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9253$as_echo_n "checking for $ac_word... " >&6; } 9254if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9255 $as_echo_n "(cached) " >&6 9256else 9257 if test -n "$ac_ct_MANIFEST_TOOL"; then 9258 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9259else 9260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9261for as_dir in $PATH 9262do 9263 IFS=$as_save_IFS 9264 test -z "$as_dir" && as_dir=. 9265 for ac_exec_ext in '' $ac_executable_extensions; do 9266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9267 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9269 break 2 9270 fi 9271done 9272 done 9273IFS=$as_save_IFS 9274 9275fi 9276fi 9277ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9278if test -n "$ac_ct_MANIFEST_TOOL"; then 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9280$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9281else 9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9283$as_echo "no" >&6; } 9284fi 9285 9286 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9287 MANIFEST_TOOL=":" 9288 else 9289 case $cross_compiling:$ac_tool_warned in 9290yes:) 9291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9293ac_tool_warned=yes ;; 9294esac 9295 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9296 fi 9297else 9298 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9299fi 9300 9301test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9303$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9304if ${lt_cv_path_mainfest_tool+:} false; then : 9305 $as_echo_n "(cached) " >&6 9306else 9307 lt_cv_path_mainfest_tool=no 9308 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9309 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9310 cat conftest.err >&5 9311 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9312 lt_cv_path_mainfest_tool=yes 9313 fi 9314 rm -f conftest* 9315fi 9316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9317$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9318if test yes != "$lt_cv_path_mainfest_tool"; then 9319 MANIFEST_TOOL=: 9320fi 9321 9322 9323 9324 9325 9326 9327 case $host_os in 9328 rhapsody* | darwin*) 9329 if test -n "$ac_tool_prefix"; then 9330 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9331set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9333$as_echo_n "checking for $ac_word... " >&6; } 9334if ${ac_cv_prog_DSYMUTIL+:} false; then : 9335 $as_echo_n "(cached) " >&6 9336else 9337 if test -n "$DSYMUTIL"; then 9338 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9339else 9340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9341for as_dir in $PATH 9342do 9343 IFS=$as_save_IFS 9344 test -z "$as_dir" && as_dir=. 9345 for ac_exec_ext in '' $ac_executable_extensions; do 9346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9347 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9349 break 2 9350 fi 9351done 9352 done 9353IFS=$as_save_IFS 9354 9355fi 9356fi 9357DSYMUTIL=$ac_cv_prog_DSYMUTIL 9358if test -n "$DSYMUTIL"; then 9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9360$as_echo "$DSYMUTIL" >&6; } 9361else 9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9363$as_echo "no" >&6; } 9364fi 9365 9366 9367fi 9368if test -z "$ac_cv_prog_DSYMUTIL"; then 9369 ac_ct_DSYMUTIL=$DSYMUTIL 9370 # Extract the first word of "dsymutil", so it can be a program name with args. 9371set dummy dsymutil; ac_word=$2 9372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9373$as_echo_n "checking for $ac_word... " >&6; } 9374if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9375 $as_echo_n "(cached) " >&6 9376else 9377 if test -n "$ac_ct_DSYMUTIL"; then 9378 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9379else 9380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9381for as_dir in $PATH 9382do 9383 IFS=$as_save_IFS 9384 test -z "$as_dir" && as_dir=. 9385 for ac_exec_ext in '' $ac_executable_extensions; do 9386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9387 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9389 break 2 9390 fi 9391done 9392 done 9393IFS=$as_save_IFS 9394 9395fi 9396fi 9397ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9398if test -n "$ac_ct_DSYMUTIL"; then 9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9400$as_echo "$ac_ct_DSYMUTIL" >&6; } 9401else 9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9403$as_echo "no" >&6; } 9404fi 9405 9406 if test "x$ac_ct_DSYMUTIL" = x; then 9407 DSYMUTIL=":" 9408 else 9409 case $cross_compiling:$ac_tool_warned in 9410yes:) 9411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9413ac_tool_warned=yes ;; 9414esac 9415 DSYMUTIL=$ac_ct_DSYMUTIL 9416 fi 9417else 9418 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9419fi 9420 9421 if test -n "$ac_tool_prefix"; then 9422 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9423set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9425$as_echo_n "checking for $ac_word... " >&6; } 9426if ${ac_cv_prog_NMEDIT+:} false; then : 9427 $as_echo_n "(cached) " >&6 9428else 9429 if test -n "$NMEDIT"; then 9430 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9431else 9432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9433for as_dir in $PATH 9434do 9435 IFS=$as_save_IFS 9436 test -z "$as_dir" && as_dir=. 9437 for ac_exec_ext in '' $ac_executable_extensions; do 9438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9439 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9441 break 2 9442 fi 9443done 9444 done 9445IFS=$as_save_IFS 9446 9447fi 9448fi 9449NMEDIT=$ac_cv_prog_NMEDIT 9450if test -n "$NMEDIT"; then 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9452$as_echo "$NMEDIT" >&6; } 9453else 9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9455$as_echo "no" >&6; } 9456fi 9457 9458 9459fi 9460if test -z "$ac_cv_prog_NMEDIT"; then 9461 ac_ct_NMEDIT=$NMEDIT 9462 # Extract the first word of "nmedit", so it can be a program name with args. 9463set dummy nmedit; ac_word=$2 9464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9465$as_echo_n "checking for $ac_word... " >&6; } 9466if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9467 $as_echo_n "(cached) " >&6 9468else 9469 if test -n "$ac_ct_NMEDIT"; then 9470 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9471else 9472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9473for as_dir in $PATH 9474do 9475 IFS=$as_save_IFS 9476 test -z "$as_dir" && as_dir=. 9477 for ac_exec_ext in '' $ac_executable_extensions; do 9478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9479 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9481 break 2 9482 fi 9483done 9484 done 9485IFS=$as_save_IFS 9486 9487fi 9488fi 9489ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9490if test -n "$ac_ct_NMEDIT"; then 9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9492$as_echo "$ac_ct_NMEDIT" >&6; } 9493else 9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9495$as_echo "no" >&6; } 9496fi 9497 9498 if test "x$ac_ct_NMEDIT" = x; then 9499 NMEDIT=":" 9500 else 9501 case $cross_compiling:$ac_tool_warned in 9502yes:) 9503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9505ac_tool_warned=yes ;; 9506esac 9507 NMEDIT=$ac_ct_NMEDIT 9508 fi 9509else 9510 NMEDIT="$ac_cv_prog_NMEDIT" 9511fi 9512 9513 if test -n "$ac_tool_prefix"; then 9514 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9515set dummy ${ac_tool_prefix}lipo; ac_word=$2 9516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9517$as_echo_n "checking for $ac_word... " >&6; } 9518if ${ac_cv_prog_LIPO+:} false; then : 9519 $as_echo_n "(cached) " >&6 9520else 9521 if test -n "$LIPO"; then 9522 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9523else 9524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9525for as_dir in $PATH 9526do 9527 IFS=$as_save_IFS 9528 test -z "$as_dir" && as_dir=. 9529 for ac_exec_ext in '' $ac_executable_extensions; do 9530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9531 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9533 break 2 9534 fi 9535done 9536 done 9537IFS=$as_save_IFS 9538 9539fi 9540fi 9541LIPO=$ac_cv_prog_LIPO 9542if test -n "$LIPO"; then 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9544$as_echo "$LIPO" >&6; } 9545else 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9547$as_echo "no" >&6; } 9548fi 9549 9550 9551fi 9552if test -z "$ac_cv_prog_LIPO"; then 9553 ac_ct_LIPO=$LIPO 9554 # Extract the first word of "lipo", so it can be a program name with args. 9555set dummy lipo; ac_word=$2 9556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9557$as_echo_n "checking for $ac_word... " >&6; } 9558if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9559 $as_echo_n "(cached) " >&6 9560else 9561 if test -n "$ac_ct_LIPO"; then 9562 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9563else 9564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9565for as_dir in $PATH 9566do 9567 IFS=$as_save_IFS 9568 test -z "$as_dir" && as_dir=. 9569 for ac_exec_ext in '' $ac_executable_extensions; do 9570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9571 ac_cv_prog_ac_ct_LIPO="lipo" 9572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9573 break 2 9574 fi 9575done 9576 done 9577IFS=$as_save_IFS 9578 9579fi 9580fi 9581ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9582if test -n "$ac_ct_LIPO"; then 9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9584$as_echo "$ac_ct_LIPO" >&6; } 9585else 9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9587$as_echo "no" >&6; } 9588fi 9589 9590 if test "x$ac_ct_LIPO" = x; then 9591 LIPO=":" 9592 else 9593 case $cross_compiling:$ac_tool_warned in 9594yes:) 9595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9597ac_tool_warned=yes ;; 9598esac 9599 LIPO=$ac_ct_LIPO 9600 fi 9601else 9602 LIPO="$ac_cv_prog_LIPO" 9603fi 9604 9605 if test -n "$ac_tool_prefix"; then 9606 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9607set dummy ${ac_tool_prefix}otool; ac_word=$2 9608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9609$as_echo_n "checking for $ac_word... " >&6; } 9610if ${ac_cv_prog_OTOOL+:} false; then : 9611 $as_echo_n "(cached) " >&6 9612else 9613 if test -n "$OTOOL"; then 9614 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9615else 9616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9617for as_dir in $PATH 9618do 9619 IFS=$as_save_IFS 9620 test -z "$as_dir" && as_dir=. 9621 for ac_exec_ext in '' $ac_executable_extensions; do 9622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9623 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9625 break 2 9626 fi 9627done 9628 done 9629IFS=$as_save_IFS 9630 9631fi 9632fi 9633OTOOL=$ac_cv_prog_OTOOL 9634if test -n "$OTOOL"; then 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9636$as_echo "$OTOOL" >&6; } 9637else 9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9639$as_echo "no" >&6; } 9640fi 9641 9642 9643fi 9644if test -z "$ac_cv_prog_OTOOL"; then 9645 ac_ct_OTOOL=$OTOOL 9646 # Extract the first word of "otool", so it can be a program name with args. 9647set dummy otool; ac_word=$2 9648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9649$as_echo_n "checking for $ac_word... " >&6; } 9650if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9651 $as_echo_n "(cached) " >&6 9652else 9653 if test -n "$ac_ct_OTOOL"; then 9654 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9655else 9656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9657for as_dir in $PATH 9658do 9659 IFS=$as_save_IFS 9660 test -z "$as_dir" && as_dir=. 9661 for ac_exec_ext in '' $ac_executable_extensions; do 9662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9663 ac_cv_prog_ac_ct_OTOOL="otool" 9664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9665 break 2 9666 fi 9667done 9668 done 9669IFS=$as_save_IFS 9670 9671fi 9672fi 9673ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9674if test -n "$ac_ct_OTOOL"; then 9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9676$as_echo "$ac_ct_OTOOL" >&6; } 9677else 9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9679$as_echo "no" >&6; } 9680fi 9681 9682 if test "x$ac_ct_OTOOL" = x; then 9683 OTOOL=":" 9684 else 9685 case $cross_compiling:$ac_tool_warned in 9686yes:) 9687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9689ac_tool_warned=yes ;; 9690esac 9691 OTOOL=$ac_ct_OTOOL 9692 fi 9693else 9694 OTOOL="$ac_cv_prog_OTOOL" 9695fi 9696 9697 if test -n "$ac_tool_prefix"; then 9698 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9699set dummy ${ac_tool_prefix}otool64; ac_word=$2 9700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9701$as_echo_n "checking for $ac_word... " >&6; } 9702if ${ac_cv_prog_OTOOL64+:} false; then : 9703 $as_echo_n "(cached) " >&6 9704else 9705 if test -n "$OTOOL64"; then 9706 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9707else 9708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9709for as_dir in $PATH 9710do 9711 IFS=$as_save_IFS 9712 test -z "$as_dir" && as_dir=. 9713 for ac_exec_ext in '' $ac_executable_extensions; do 9714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9715 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9717 break 2 9718 fi 9719done 9720 done 9721IFS=$as_save_IFS 9722 9723fi 9724fi 9725OTOOL64=$ac_cv_prog_OTOOL64 9726if test -n "$OTOOL64"; then 9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9728$as_echo "$OTOOL64" >&6; } 9729else 9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9731$as_echo "no" >&6; } 9732fi 9733 9734 9735fi 9736if test -z "$ac_cv_prog_OTOOL64"; then 9737 ac_ct_OTOOL64=$OTOOL64 9738 # Extract the first word of "otool64", so it can be a program name with args. 9739set dummy otool64; ac_word=$2 9740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9741$as_echo_n "checking for $ac_word... " >&6; } 9742if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9743 $as_echo_n "(cached) " >&6 9744else 9745 if test -n "$ac_ct_OTOOL64"; then 9746 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9747else 9748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9749for as_dir in $PATH 9750do 9751 IFS=$as_save_IFS 9752 test -z "$as_dir" && as_dir=. 9753 for ac_exec_ext in '' $ac_executable_extensions; do 9754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9755 ac_cv_prog_ac_ct_OTOOL64="otool64" 9756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9757 break 2 9758 fi 9759done 9760 done 9761IFS=$as_save_IFS 9762 9763fi 9764fi 9765ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9766if test -n "$ac_ct_OTOOL64"; then 9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9768$as_echo "$ac_ct_OTOOL64" >&6; } 9769else 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9771$as_echo "no" >&6; } 9772fi 9773 9774 if test "x$ac_ct_OTOOL64" = x; then 9775 OTOOL64=":" 9776 else 9777 case $cross_compiling:$ac_tool_warned in 9778yes:) 9779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9781ac_tool_warned=yes ;; 9782esac 9783 OTOOL64=$ac_ct_OTOOL64 9784 fi 9785else 9786 OTOOL64="$ac_cv_prog_OTOOL64" 9787fi 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9816$as_echo_n "checking for -single_module linker flag... " >&6; } 9817if ${lt_cv_apple_cc_single_mod+:} false; then : 9818 $as_echo_n "(cached) " >&6 9819else 9820 lt_cv_apple_cc_single_mod=no 9821 if test -z "$LT_MULTI_MODULE"; then 9822 # By default we will add the -single_module flag. You can override 9823 # by either setting the environment variable LT_MULTI_MODULE 9824 # non-empty at configure time, or by adding -multi_module to the 9825 # link flags. 9826 rm -rf libconftest.dylib* 9827 echo "int foo(void){return 1;}" > conftest.c 9828 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9829-dynamiclib -Wl,-single_module conftest.c" >&5 9830 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9831 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9832 _lt_result=$? 9833 # If there is a non-empty error log, and "single_module" 9834 # appears in it, assume the flag caused a linker warning 9835 if test -s conftest.err && $GREP single_module conftest.err; then 9836 cat conftest.err >&5 9837 # Otherwise, if the output was created with a 0 exit code from 9838 # the compiler, it worked. 9839 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9840 lt_cv_apple_cc_single_mod=yes 9841 else 9842 cat conftest.err >&5 9843 fi 9844 rm -rf libconftest.dylib* 9845 rm -f conftest.* 9846 fi 9847fi 9848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9849$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9850 9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9852$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9853if ${lt_cv_ld_exported_symbols_list+:} false; then : 9854 $as_echo_n "(cached) " >&6 9855else 9856 lt_cv_ld_exported_symbols_list=no 9857 save_LDFLAGS=$LDFLAGS 9858 echo "_main" > conftest.sym 9859 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9861/* end confdefs.h. */ 9862 9863int 9864main () 9865{ 9866 9867 ; 9868 return 0; 9869} 9870_ACEOF 9871if ac_fn_c_try_link "$LINENO"; then : 9872 lt_cv_ld_exported_symbols_list=yes 9873else 9874 lt_cv_ld_exported_symbols_list=no 9875fi 9876rm -f core conftest.err conftest.$ac_objext \ 9877 conftest$ac_exeext conftest.$ac_ext 9878 LDFLAGS=$save_LDFLAGS 9879 9880fi 9881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9882$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9883 9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9885$as_echo_n "checking for -force_load linker flag... " >&6; } 9886if ${lt_cv_ld_force_load+:} false; then : 9887 $as_echo_n "(cached) " >&6 9888else 9889 lt_cv_ld_force_load=no 9890 cat > conftest.c << _LT_EOF 9891int forced_loaded() { return 2;} 9892_LT_EOF 9893 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9894 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9895 echo "$AR cru libconftest.a conftest.o" >&5 9896 $AR cru libconftest.a conftest.o 2>&5 9897 echo "$RANLIB libconftest.a" >&5 9898 $RANLIB libconftest.a 2>&5 9899 cat > conftest.c << _LT_EOF 9900int main() { return 0;} 9901_LT_EOF 9902 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9903 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9904 _lt_result=$? 9905 if test -s conftest.err && $GREP force_load conftest.err; then 9906 cat conftest.err >&5 9907 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9908 lt_cv_ld_force_load=yes 9909 else 9910 cat conftest.err >&5 9911 fi 9912 rm -f conftest.err libconftest.a conftest conftest.c 9913 rm -rf conftest.dSYM 9914 9915fi 9916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9917$as_echo "$lt_cv_ld_force_load" >&6; } 9918 case $host_os in 9919 rhapsody* | darwin1.[012]) 9920 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9921 darwin1.*) 9922 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9923 darwin*) # darwin 5.x on 9924 # if running on 10.5 or later, the deployment target defaults 9925 # to the OS version, if on x86, and 10.4, the deployment 9926 # target defaults to 10.4. Don't you love it? 9927 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9928 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9929 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9930 10.[012][,.]*) 9931 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9932 10.*) 9933 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9934 esac 9935 ;; 9936 esac 9937 if test yes = "$lt_cv_apple_cc_single_mod"; then 9938 _lt_dar_single_mod='$single_module' 9939 fi 9940 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9941 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9942 else 9943 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9944 fi 9945 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9946 _lt_dsymutil='~$DSYMUTIL $lib || :' 9947 else 9948 _lt_dsymutil= 9949 fi 9950 ;; 9951 esac 9952 9953# func_munge_path_list VARIABLE PATH 9954# ----------------------------------- 9955# VARIABLE is name of variable containing _space_ separated list of 9956# directories to be munged by the contents of PATH, which is string 9957# having a format: 9958# "DIR[:DIR]:" 9959# string "DIR[ DIR]" will be prepended to VARIABLE 9960# ":DIR[:DIR]" 9961# string "DIR[ DIR]" will be appended to VARIABLE 9962# "DIRP[:DIRP]::[DIRA:]DIRA" 9963# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9964# "DIRA[ DIRA]" will be appended to VARIABLE 9965# "DIR[:DIR]" 9966# VARIABLE will be replaced by "DIR[ DIR]" 9967func_munge_path_list () 9968{ 9969 case x$2 in 9970 x) 9971 ;; 9972 *:) 9973 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9974 ;; 9975 x:*) 9976 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9977 ;; 9978 *::*) 9979 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9980 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9981 ;; 9982 *) 9983 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9984 ;; 9985 esac 9986} 9987 9988ac_ext=c 9989ac_cpp='$CPP $CPPFLAGS' 9990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9992ac_compiler_gnu=$ac_cv_c_compiler_gnu 9993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 9994$as_echo_n "checking how to run the C preprocessor... " >&6; } 9995# On Suns, sometimes $CPP names a directory. 9996if test -n "$CPP" && test -d "$CPP"; then 9997 CPP= 9998fi 9999if test -z "$CPP"; then 10000 if ${ac_cv_prog_CPP+:} false; then : 10001 $as_echo_n "(cached) " >&6 10002else 10003 # Double quotes because CPP needs to be expanded 10004 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 10005 do 10006 ac_preproc_ok=false 10007for ac_c_preproc_warn_flag in '' yes 10008do 10009 # Use a header file that comes with gcc, so configuring glibc 10010 # with a fresh cross-compiler works. 10011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10012 # <limits.h> exists even on freestanding compilers. 10013 # On the NeXT, cc -E runs the code through the compiler's parser, 10014 # not just through cpp. "Syntax error" is here to catch this case. 10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10016/* end confdefs.h. */ 10017#ifdef __STDC__ 10018# include <limits.h> 10019#else 10020# include <assert.h> 10021#endif 10022 Syntax error 10023_ACEOF 10024if ac_fn_c_try_cpp "$LINENO"; then : 10025 10026else 10027 # Broken: fails on valid input. 10028continue 10029fi 10030rm -f conftest.err conftest.i conftest.$ac_ext 10031 10032 # OK, works on sane cases. Now check whether nonexistent headers 10033 # can be detected and how. 10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10035/* end confdefs.h. */ 10036#include <ac_nonexistent.h> 10037_ACEOF 10038if ac_fn_c_try_cpp "$LINENO"; then : 10039 # Broken: success on invalid input. 10040continue 10041else 10042 # Passes both tests. 10043ac_preproc_ok=: 10044break 10045fi 10046rm -f conftest.err conftest.i conftest.$ac_ext 10047 10048done 10049# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10050rm -f conftest.i conftest.err conftest.$ac_ext 10051if $ac_preproc_ok; then : 10052 break 10053fi 10054 10055 done 10056 ac_cv_prog_CPP=$CPP 10057 10058fi 10059 CPP=$ac_cv_prog_CPP 10060else 10061 ac_cv_prog_CPP=$CPP 10062fi 10063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 10064$as_echo "$CPP" >&6; } 10065ac_preproc_ok=false 10066for ac_c_preproc_warn_flag in '' yes 10067do 10068 # Use a header file that comes with gcc, so configuring glibc 10069 # with a fresh cross-compiler works. 10070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10071 # <limits.h> exists even on freestanding compilers. 10072 # On the NeXT, cc -E runs the code through the compiler's parser, 10073 # not just through cpp. "Syntax error" is here to catch this case. 10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10075/* end confdefs.h. */ 10076#ifdef __STDC__ 10077# include <limits.h> 10078#else 10079# include <assert.h> 10080#endif 10081 Syntax error 10082_ACEOF 10083if ac_fn_c_try_cpp "$LINENO"; then : 10084 10085else 10086 # Broken: fails on valid input. 10087continue 10088fi 10089rm -f conftest.err conftest.i conftest.$ac_ext 10090 10091 # OK, works on sane cases. Now check whether nonexistent headers 10092 # can be detected and how. 10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10094/* end confdefs.h. */ 10095#include <ac_nonexistent.h> 10096_ACEOF 10097if ac_fn_c_try_cpp "$LINENO"; then : 10098 # Broken: success on invalid input. 10099continue 10100else 10101 # Passes both tests. 10102ac_preproc_ok=: 10103break 10104fi 10105rm -f conftest.err conftest.i conftest.$ac_ext 10106 10107done 10108# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10109rm -f conftest.i conftest.err conftest.$ac_ext 10110if $ac_preproc_ok; then : 10111 10112else 10113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10115as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 10116See \`config.log' for more details" "$LINENO" 5; } 10117fi 10118 10119ac_ext=c 10120ac_cpp='$CPP $CPPFLAGS' 10121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10123ac_compiler_gnu=$ac_cv_c_compiler_gnu 10124 10125 10126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 10127$as_echo_n "checking for ANSI C header files... " >&6; } 10128if ${ac_cv_header_stdc+:} false; then : 10129 $as_echo_n "(cached) " >&6 10130else 10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10132/* end confdefs.h. */ 10133#include <stdlib.h> 10134#include <stdarg.h> 10135#include <string.h> 10136#include <float.h> 10137 10138int 10139main () 10140{ 10141 10142 ; 10143 return 0; 10144} 10145_ACEOF 10146if ac_fn_c_try_compile "$LINENO"; then : 10147 ac_cv_header_stdc=yes 10148else 10149 ac_cv_header_stdc=no 10150fi 10151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10152 10153if test $ac_cv_header_stdc = yes; then 10154 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10156/* end confdefs.h. */ 10157#include <string.h> 10158 10159_ACEOF 10160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10161 $EGREP "memchr" >/dev/null 2>&1; then : 10162 10163else 10164 ac_cv_header_stdc=no 10165fi 10166rm -f conftest* 10167 10168fi 10169 10170if test $ac_cv_header_stdc = yes; then 10171 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10173/* end confdefs.h. */ 10174#include <stdlib.h> 10175 10176_ACEOF 10177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10178 $EGREP "free" >/dev/null 2>&1; then : 10179 10180else 10181 ac_cv_header_stdc=no 10182fi 10183rm -f conftest* 10184 10185fi 10186 10187if test $ac_cv_header_stdc = yes; then 10188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10189 if test "$cross_compiling" = yes; then : 10190 : 10191else 10192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10193/* end confdefs.h. */ 10194#include <ctype.h> 10195#include <stdlib.h> 10196#if ((' ' & 0x0FF) == 0x020) 10197# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10198# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10199#else 10200# define ISLOWER(c) \ 10201 (('a' <= (c) && (c) <= 'i') \ 10202 || ('j' <= (c) && (c) <= 'r') \ 10203 || ('s' <= (c) && (c) <= 'z')) 10204# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10205#endif 10206 10207#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10208int 10209main () 10210{ 10211 int i; 10212 for (i = 0; i < 256; i++) 10213 if (XOR (islower (i), ISLOWER (i)) 10214 || toupper (i) != TOUPPER (i)) 10215 return 2; 10216 return 0; 10217} 10218_ACEOF 10219if ac_fn_c_try_run "$LINENO"; then : 10220 10221else 10222 ac_cv_header_stdc=no 10223fi 10224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10225 conftest.$ac_objext conftest.beam conftest.$ac_ext 10226fi 10227 10228fi 10229fi 10230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 10231$as_echo "$ac_cv_header_stdc" >&6; } 10232if test $ac_cv_header_stdc = yes; then 10233 10234$as_echo "#define STDC_HEADERS 1" >>confdefs.h 10235 10236fi 10237 10238# On IRIX 5.3, sys/types and inttypes.h are conflicting. 10239for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 10240 inttypes.h stdint.h unistd.h 10241do : 10242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10243ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10244" 10245if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10246 cat >>confdefs.h <<_ACEOF 10247#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10248_ACEOF 10249 10250fi 10251 10252done 10253 10254 10255for ac_header in dlfcn.h 10256do : 10257 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10258" 10259if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10260 cat >>confdefs.h <<_ACEOF 10261#define HAVE_DLFCN_H 1 10262_ACEOF 10263 10264fi 10265 10266done 10267 10268 10269 10270 10271 10272# Set options 10273 10274 10275 10276 enable_dlopen=no 10277 10278 10279 10280 # Check whether --enable-shared was given. 10281if test "${enable_shared+set}" = set; then : 10282 enableval=$enable_shared; p=${PACKAGE-default} 10283 case $enableval in 10284 yes) enable_shared=yes ;; 10285 no) enable_shared=no ;; 10286 *) 10287 enable_shared=no 10288 # Look at the argument we got. We use all the common list separators. 10289 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10290 for pkg in $enableval; do 10291 IFS=$lt_save_ifs 10292 if test "X$pkg" = "X$p"; then 10293 enable_shared=yes 10294 fi 10295 done 10296 IFS=$lt_save_ifs 10297 ;; 10298 esac 10299else 10300 enable_shared=yes 10301fi 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 # Check whether --enable-static was given. 10312if test "${enable_static+set}" = set; then : 10313 enableval=$enable_static; p=${PACKAGE-default} 10314 case $enableval in 10315 yes) enable_static=yes ;; 10316 no) enable_static=no ;; 10317 *) 10318 enable_static=no 10319 # Look at the argument we got. We use all the common list separators. 10320 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10321 for pkg in $enableval; do 10322 IFS=$lt_save_ifs 10323 if test "X$pkg" = "X$p"; then 10324 enable_static=yes 10325 fi 10326 done 10327 IFS=$lt_save_ifs 10328 ;; 10329 esac 10330else 10331 enable_static=yes 10332fi 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343# Check whether --with-pic was given. 10344if test "${with_pic+set}" = set; then : 10345 withval=$with_pic; lt_p=${PACKAGE-default} 10346 case $withval in 10347 yes|no) pic_mode=$withval ;; 10348 *) 10349 pic_mode=default 10350 # Look at the argument we got. We use all the common list separators. 10351 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10352 for lt_pkg in $withval; do 10353 IFS=$lt_save_ifs 10354 if test "X$lt_pkg" = "X$lt_p"; then 10355 pic_mode=yes 10356 fi 10357 done 10358 IFS=$lt_save_ifs 10359 ;; 10360 esac 10361else 10362 pic_mode=default 10363fi 10364 10365 10366 10367 10368 10369 10370 10371 10372 # Check whether --enable-fast-install was given. 10373if test "${enable_fast_install+set}" = set; then : 10374 enableval=$enable_fast_install; p=${PACKAGE-default} 10375 case $enableval in 10376 yes) enable_fast_install=yes ;; 10377 no) enable_fast_install=no ;; 10378 *) 10379 enable_fast_install=no 10380 # Look at the argument we got. We use all the common list separators. 10381 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10382 for pkg in $enableval; do 10383 IFS=$lt_save_ifs 10384 if test "X$pkg" = "X$p"; then 10385 enable_fast_install=yes 10386 fi 10387 done 10388 IFS=$lt_save_ifs 10389 ;; 10390 esac 10391else 10392 enable_fast_install=yes 10393fi 10394 10395 10396 10397 10398 10399 10400 10401 10402 shared_archive_member_spec= 10403case $host,$enable_shared in 10404power*-*-aix[5-9]*,yes) 10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10406$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 10407 10408# Check whether --with-aix-soname was given. 10409if test "${with_aix_soname+set}" = set; then : 10410 withval=$with_aix_soname; case $withval in 10411 aix|svr4|both) 10412 ;; 10413 *) 10414 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10415 ;; 10416 esac 10417 lt_cv_with_aix_soname=$with_aix_soname 10418else 10419 if ${lt_cv_with_aix_soname+:} false; then : 10420 $as_echo_n "(cached) " >&6 10421else 10422 lt_cv_with_aix_soname=aix 10423fi 10424 10425 with_aix_soname=$lt_cv_with_aix_soname 10426fi 10427 10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10429$as_echo "$with_aix_soname" >&6; } 10430 if test aix != "$with_aix_soname"; then 10431 # For the AIX way of multilib, we name the shared archive member 10432 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10433 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10434 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10435 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10436 if test 64 = "${OBJECT_MODE-32}"; then 10437 shared_archive_member_spec=shr_64 10438 else 10439 shared_archive_member_spec=shr 10440 fi 10441 fi 10442 ;; 10443*) 10444 with_aix_soname=aix 10445 ;; 10446esac 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457# This can be used to rebuild libtool when needed 10458LIBTOOL_DEPS=$ltmain 10459 10460# Always use our own libtool. 10461LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492test -z "$LN_S" && LN_S="ln -s" 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507if test -n "${ZSH_VERSION+set}"; then 10508 setopt NO_GLOB_SUBST 10509fi 10510 10511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10512$as_echo_n "checking for objdir... " >&6; } 10513if ${lt_cv_objdir+:} false; then : 10514 $as_echo_n "(cached) " >&6 10515else 10516 rm -f .libs 2>/dev/null 10517mkdir .libs 2>/dev/null 10518if test -d .libs; then 10519 lt_cv_objdir=.libs 10520else 10521 # MS-DOS does not allow filenames that begin with a dot. 10522 lt_cv_objdir=_libs 10523fi 10524rmdir .libs 2>/dev/null 10525fi 10526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10527$as_echo "$lt_cv_objdir" >&6; } 10528objdir=$lt_cv_objdir 10529 10530 10531 10532 10533 10534cat >>confdefs.h <<_ACEOF 10535#define LT_OBJDIR "$lt_cv_objdir/" 10536_ACEOF 10537 10538 10539 10540 10541case $host_os in 10542aix3*) 10543 # AIX sometimes has problems with the GCC collect2 program. For some 10544 # reason, if we set the COLLECT_NAMES environment variable, the problems 10545 # vanish in a puff of smoke. 10546 if test set != "${COLLECT_NAMES+set}"; then 10547 COLLECT_NAMES= 10548 export COLLECT_NAMES 10549 fi 10550 ;; 10551esac 10552 10553# Global variables: 10554ofile=libtool 10555can_build_shared=yes 10556 10557# All known linkers require a '.a' archive for static linking (except MSVC, 10558# which needs '.lib'). 10559libext=a 10560 10561with_gnu_ld=$lt_cv_prog_gnu_ld 10562 10563old_CC=$CC 10564old_CFLAGS=$CFLAGS 10565 10566# Set sane defaults for various variables 10567test -z "$CC" && CC=cc 10568test -z "$LTCC" && LTCC=$CC 10569test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10570test -z "$LD" && LD=ld 10571test -z "$ac_objext" && ac_objext=o 10572 10573func_cc_basename $compiler 10574cc_basename=$func_cc_basename_result 10575 10576 10577# Only perform the check for file, if the check method requires it 10578test -z "$MAGIC_CMD" && MAGIC_CMD=file 10579case $deplibs_check_method in 10580file_magic*) 10581 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10583$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10584if ${lt_cv_path_MAGIC_CMD+:} false; then : 10585 $as_echo_n "(cached) " >&6 10586else 10587 case $MAGIC_CMD in 10588[\\/*] | ?:[\\/]*) 10589 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10590 ;; 10591*) 10592 lt_save_MAGIC_CMD=$MAGIC_CMD 10593 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10594 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10595 for ac_dir in $ac_dummy; do 10596 IFS=$lt_save_ifs 10597 test -z "$ac_dir" && ac_dir=. 10598 if test -f "$ac_dir/${ac_tool_prefix}file"; then 10599 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 10600 if test -n "$file_magic_test_file"; then 10601 case $deplibs_check_method in 10602 "file_magic "*) 10603 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10604 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10605 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10606 $EGREP "$file_magic_regex" > /dev/null; then 10607 : 10608 else 10609 cat <<_LT_EOF 1>&2 10610 10611*** Warning: the command libtool uses to detect shared libraries, 10612*** $file_magic_cmd, produces output that libtool cannot recognize. 10613*** The result is that libtool may fail to recognize shared libraries 10614*** as such. This will affect the creation of libtool libraries that 10615*** depend on shared libraries, but programs linked with such libtool 10616*** libraries will work regardless of this problem. Nevertheless, you 10617*** may want to report the problem to your system manager and/or to 10618*** bug-libtool@gnu.org 10619 10620_LT_EOF 10621 fi ;; 10622 esac 10623 fi 10624 break 10625 fi 10626 done 10627 IFS=$lt_save_ifs 10628 MAGIC_CMD=$lt_save_MAGIC_CMD 10629 ;; 10630esac 10631fi 10632 10633MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10634if test -n "$MAGIC_CMD"; then 10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10636$as_echo "$MAGIC_CMD" >&6; } 10637else 10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10639$as_echo "no" >&6; } 10640fi 10641 10642 10643 10644 10645 10646if test -z "$lt_cv_path_MAGIC_CMD"; then 10647 if test -n "$ac_tool_prefix"; then 10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10649$as_echo_n "checking for file... " >&6; } 10650if ${lt_cv_path_MAGIC_CMD+:} false; then : 10651 $as_echo_n "(cached) " >&6 10652else 10653 case $MAGIC_CMD in 10654[\\/*] | ?:[\\/]*) 10655 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10656 ;; 10657*) 10658 lt_save_MAGIC_CMD=$MAGIC_CMD 10659 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10660 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10661 for ac_dir in $ac_dummy; do 10662 IFS=$lt_save_ifs 10663 test -z "$ac_dir" && ac_dir=. 10664 if test -f "$ac_dir/file"; then 10665 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10666 if test -n "$file_magic_test_file"; then 10667 case $deplibs_check_method in 10668 "file_magic "*) 10669 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10670 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10671 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10672 $EGREP "$file_magic_regex" > /dev/null; then 10673 : 10674 else 10675 cat <<_LT_EOF 1>&2 10676 10677*** Warning: the command libtool uses to detect shared libraries, 10678*** $file_magic_cmd, produces output that libtool cannot recognize. 10679*** The result is that libtool may fail to recognize shared libraries 10680*** as such. This will affect the creation of libtool libraries that 10681*** depend on shared libraries, but programs linked with such libtool 10682*** libraries will work regardless of this problem. Nevertheless, you 10683*** may want to report the problem to your system manager and/or to 10684*** bug-libtool@gnu.org 10685 10686_LT_EOF 10687 fi ;; 10688 esac 10689 fi 10690 break 10691 fi 10692 done 10693 IFS=$lt_save_ifs 10694 MAGIC_CMD=$lt_save_MAGIC_CMD 10695 ;; 10696esac 10697fi 10698 10699MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10700if test -n "$MAGIC_CMD"; then 10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10702$as_echo "$MAGIC_CMD" >&6; } 10703else 10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10705$as_echo "no" >&6; } 10706fi 10707 10708 10709 else 10710 MAGIC_CMD=: 10711 fi 10712fi 10713 10714 fi 10715 ;; 10716esac 10717 10718# Use C for the default configuration in the libtool script 10719 10720lt_save_CC=$CC 10721ac_ext=c 10722ac_cpp='$CPP $CPPFLAGS' 10723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10725ac_compiler_gnu=$ac_cv_c_compiler_gnu 10726 10727 10728# Source file extension for C test sources. 10729ac_ext=c 10730 10731# Object file extension for compiled C test sources. 10732objext=o 10733objext=$objext 10734 10735# Code to be used in simple compile tests 10736lt_simple_compile_test_code="int some_variable = 0;" 10737 10738# Code to be used in simple link tests 10739lt_simple_link_test_code='int main(){return(0);}' 10740 10741 10742 10743 10744 10745 10746 10747# If no C compiler was specified, use CC. 10748LTCC=${LTCC-"$CC"} 10749 10750# If no C compiler flags were specified, use CFLAGS. 10751LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10752 10753# Allow CC to be a program name with arguments. 10754compiler=$CC 10755 10756# Save the default compiler, since it gets overwritten when the other 10757# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10758compiler_DEFAULT=$CC 10759 10760# save warnings/boilerplate of simple test code 10761ac_outfile=conftest.$ac_objext 10762echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10763eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10764_lt_compiler_boilerplate=`cat conftest.err` 10765$RM conftest* 10766 10767ac_outfile=conftest.$ac_objext 10768echo "$lt_simple_link_test_code" >conftest.$ac_ext 10769eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10770_lt_linker_boilerplate=`cat conftest.err` 10771$RM -r conftest* 10772 10773 10774## CAVEAT EMPTOR: 10775## There is no encapsulation within the following macros, do not change 10776## the running order or otherwise move them around unless you know exactly 10777## what you are doing... 10778if test -n "$compiler"; then 10779 10780lt_prog_compiler_no_builtin_flag= 10781 10782if test yes = "$GCC"; then 10783 case $cc_basename in 10784 nvcc*) 10785 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10786 *) 10787 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10788 esac 10789 10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10791$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10792if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10793 $as_echo_n "(cached) " >&6 10794else 10795 lt_cv_prog_compiler_rtti_exceptions=no 10796 ac_outfile=conftest.$ac_objext 10797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10798 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10799 # Insert the option either (1) after the last *FLAGS variable, or 10800 # (2) before a word containing "conftest.", or (3) at the end. 10801 # Note that $ac_compile itself does not contain backslashes and begins 10802 # with a dollar sign (not a hyphen), so the echo should work correctly. 10803 # The option is referenced via a variable to avoid confusing sed. 10804 lt_compile=`echo "$ac_compile" | $SED \ 10805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10807 -e 's:$: $lt_compiler_flag:'` 10808 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10809 (eval "$lt_compile" 2>conftest.err) 10810 ac_status=$? 10811 cat conftest.err >&5 10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10813 if (exit $ac_status) && test -s "$ac_outfile"; then 10814 # The compiler can only warn and ignore the option if not recognized 10815 # So say no if there are warnings other than the usual output. 10816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10818 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10819 lt_cv_prog_compiler_rtti_exceptions=yes 10820 fi 10821 fi 10822 $RM conftest* 10823 10824fi 10825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10826$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10827 10828if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10829 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10830else 10831 : 10832fi 10833 10834fi 10835 10836 10837 10838 10839 10840 10841 lt_prog_compiler_wl= 10842lt_prog_compiler_pic= 10843lt_prog_compiler_static= 10844 10845 10846 if test yes = "$GCC"; then 10847 lt_prog_compiler_wl='-Wl,' 10848 lt_prog_compiler_static='-static' 10849 10850 case $host_os in 10851 aix*) 10852 # All AIX code is PIC. 10853 if test ia64 = "$host_cpu"; then 10854 # AIX 5 now supports IA64 processor 10855 lt_prog_compiler_static='-Bstatic' 10856 fi 10857 lt_prog_compiler_pic='-fPIC' 10858 ;; 10859 10860 amigaos*) 10861 case $host_cpu in 10862 powerpc) 10863 # see comment about AmigaOS4 .so support 10864 lt_prog_compiler_pic='-fPIC' 10865 ;; 10866 m68k) 10867 # FIXME: we need at least 68020 code to build shared libraries, but 10868 # adding the '-m68020' flag to GCC prevents building anything better, 10869 # like '-m68040'. 10870 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10871 ;; 10872 esac 10873 ;; 10874 10875 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10876 # PIC is the default for these OSes. 10877 ;; 10878 10879 mingw* | cygwin* | pw32* | os2* | cegcc*) 10880 # This hack is so that the source file can tell whether it is being 10881 # built for inclusion in a dll (and should export symbols for example). 10882 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10883 # (--disable-auto-import) libraries 10884 lt_prog_compiler_pic='-DDLL_EXPORT' 10885 case $host_os in 10886 os2*) 10887 lt_prog_compiler_static='$wl-static' 10888 ;; 10889 esac 10890 ;; 10891 10892 darwin* | rhapsody*) 10893 # PIC is the default on this platform 10894 # Common symbols not allowed in MH_DYLIB files 10895 lt_prog_compiler_pic='-fno-common' 10896 ;; 10897 10898 haiku*) 10899 # PIC is the default for Haiku. 10900 # The "-static" flag exists, but is broken. 10901 lt_prog_compiler_static= 10902 ;; 10903 10904 hpux*) 10905 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10906 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10907 # sets the default TLS model and affects inlining. 10908 case $host_cpu in 10909 hppa*64*) 10910 # +Z the default 10911 ;; 10912 *) 10913 lt_prog_compiler_pic='-fPIC' 10914 ;; 10915 esac 10916 ;; 10917 10918 interix[3-9]*) 10919 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10920 # Instead, we relocate shared libraries at runtime. 10921 ;; 10922 10923 msdosdjgpp*) 10924 # Just because we use GCC doesn't mean we suddenly get shared libraries 10925 # on systems that don't support them. 10926 lt_prog_compiler_can_build_shared=no 10927 enable_shared=no 10928 ;; 10929 10930 *nto* | *qnx*) 10931 # QNX uses GNU C++, but need to define -shared option too, otherwise 10932 # it will coredump. 10933 lt_prog_compiler_pic='-fPIC -shared' 10934 ;; 10935 10936 sysv4*MP*) 10937 if test -d /usr/nec; then 10938 lt_prog_compiler_pic=-Kconform_pic 10939 fi 10940 ;; 10941 10942 *) 10943 lt_prog_compiler_pic='-fPIC' 10944 ;; 10945 esac 10946 10947 case $cc_basename in 10948 nvcc*) # Cuda Compiler Driver 2.2 10949 lt_prog_compiler_wl='-Xlinker ' 10950 if test -n "$lt_prog_compiler_pic"; then 10951 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10952 fi 10953 ;; 10954 esac 10955 else 10956 # PORTME Check for flag to pass linker flags through the system compiler. 10957 case $host_os in 10958 aix*) 10959 lt_prog_compiler_wl='-Wl,' 10960 if test ia64 = "$host_cpu"; then 10961 # AIX 5 now supports IA64 processor 10962 lt_prog_compiler_static='-Bstatic' 10963 else 10964 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10965 fi 10966 ;; 10967 10968 darwin* | rhapsody*) 10969 # PIC is the default on this platform 10970 # Common symbols not allowed in MH_DYLIB files 10971 lt_prog_compiler_pic='-fno-common' 10972 case $cc_basename in 10973 nagfor*) 10974 # NAG Fortran compiler 10975 lt_prog_compiler_wl='-Wl,-Wl,,' 10976 lt_prog_compiler_pic='-PIC' 10977 lt_prog_compiler_static='-Bstatic' 10978 ;; 10979 esac 10980 ;; 10981 10982 mingw* | cygwin* | pw32* | os2* | cegcc*) 10983 # This hack is so that the source file can tell whether it is being 10984 # built for inclusion in a dll (and should export symbols for example). 10985 lt_prog_compiler_pic='-DDLL_EXPORT' 10986 case $host_os in 10987 os2*) 10988 lt_prog_compiler_static='$wl-static' 10989 ;; 10990 esac 10991 ;; 10992 10993 hpux9* | hpux10* | hpux11*) 10994 lt_prog_compiler_wl='-Wl,' 10995 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10996 # not for PA HP-UX. 10997 case $host_cpu in 10998 hppa*64*|ia64*) 10999 # +Z the default 11000 ;; 11001 *) 11002 lt_prog_compiler_pic='+Z' 11003 ;; 11004 esac 11005 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11006 lt_prog_compiler_static='$wl-a ${wl}archive' 11007 ;; 11008 11009 irix5* | irix6* | nonstopux*) 11010 lt_prog_compiler_wl='-Wl,' 11011 # PIC (with -KPIC) is the default. 11012 lt_prog_compiler_static='-non_shared' 11013 ;; 11014 11015 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11016 case $cc_basename in 11017 # old Intel for x86_64, which still supported -KPIC. 11018 ecc*) 11019 lt_prog_compiler_wl='-Wl,' 11020 lt_prog_compiler_pic='-KPIC' 11021 lt_prog_compiler_static='-static' 11022 ;; 11023 # icc used to be incompatible with GCC. 11024 # ICC 10 doesn't accept -KPIC any more. 11025 icc* | ifort*) 11026 lt_prog_compiler_wl='-Wl,' 11027 lt_prog_compiler_pic='-fPIC' 11028 lt_prog_compiler_static='-static' 11029 ;; 11030 # Lahey Fortran 8.1. 11031 lf95*) 11032 lt_prog_compiler_wl='-Wl,' 11033 lt_prog_compiler_pic='--shared' 11034 lt_prog_compiler_static='--static' 11035 ;; 11036 nagfor*) 11037 # NAG Fortran compiler 11038 lt_prog_compiler_wl='-Wl,-Wl,,' 11039 lt_prog_compiler_pic='-PIC' 11040 lt_prog_compiler_static='-Bstatic' 11041 ;; 11042 tcc*) 11043 # Fabrice Bellard et al's Tiny C Compiler 11044 lt_prog_compiler_wl='-Wl,' 11045 lt_prog_compiler_pic='-fPIC' 11046 lt_prog_compiler_static='-static' 11047 ;; 11048 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11049 # Portland Group compilers (*not* the Pentium gcc compiler, 11050 # which looks to be a dead project) 11051 lt_prog_compiler_wl='-Wl,' 11052 lt_prog_compiler_pic='-fpic' 11053 lt_prog_compiler_static='-Bstatic' 11054 ;; 11055 ccc*) 11056 lt_prog_compiler_wl='-Wl,' 11057 # All Alpha code is PIC. 11058 lt_prog_compiler_static='-non_shared' 11059 ;; 11060 xl* | bgxl* | bgf* | mpixl*) 11061 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11062 lt_prog_compiler_wl='-Wl,' 11063 lt_prog_compiler_pic='-qpic' 11064 lt_prog_compiler_static='-qstaticlink' 11065 ;; 11066 *) 11067 case `$CC -V 2>&1 | sed 5q` in 11068 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11069 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11070 lt_prog_compiler_pic='-KPIC' 11071 lt_prog_compiler_static='-Bstatic' 11072 lt_prog_compiler_wl='' 11073 ;; 11074 *Sun\ F* | *Sun*Fortran*) 11075 lt_prog_compiler_pic='-KPIC' 11076 lt_prog_compiler_static='-Bstatic' 11077 lt_prog_compiler_wl='-Qoption ld ' 11078 ;; 11079 *Sun\ C*) 11080 # Sun C 5.9 11081 lt_prog_compiler_pic='-KPIC' 11082 lt_prog_compiler_static='-Bstatic' 11083 lt_prog_compiler_wl='-Wl,' 11084 ;; 11085 *Intel*\ [CF]*Compiler*) 11086 lt_prog_compiler_wl='-Wl,' 11087 lt_prog_compiler_pic='-fPIC' 11088 lt_prog_compiler_static='-static' 11089 ;; 11090 *Portland\ Group*) 11091 lt_prog_compiler_wl='-Wl,' 11092 lt_prog_compiler_pic='-fpic' 11093 lt_prog_compiler_static='-Bstatic' 11094 ;; 11095 esac 11096 ;; 11097 esac 11098 ;; 11099 11100 newsos6) 11101 lt_prog_compiler_pic='-KPIC' 11102 lt_prog_compiler_static='-Bstatic' 11103 ;; 11104 11105 *nto* | *qnx*) 11106 # QNX uses GNU C++, but need to define -shared option too, otherwise 11107 # it will coredump. 11108 lt_prog_compiler_pic='-fPIC -shared' 11109 ;; 11110 11111 osf3* | osf4* | osf5*) 11112 lt_prog_compiler_wl='-Wl,' 11113 # All OSF/1 code is PIC. 11114 lt_prog_compiler_static='-non_shared' 11115 ;; 11116 11117 rdos*) 11118 lt_prog_compiler_static='-non_shared' 11119 ;; 11120 11121 solaris*) 11122 lt_prog_compiler_pic='-KPIC' 11123 lt_prog_compiler_static='-Bstatic' 11124 case $cc_basename in 11125 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11126 lt_prog_compiler_wl='-Qoption ld ';; 11127 *) 11128 lt_prog_compiler_wl='-Wl,';; 11129 esac 11130 ;; 11131 11132 sunos4*) 11133 lt_prog_compiler_wl='-Qoption ld ' 11134 lt_prog_compiler_pic='-PIC' 11135 lt_prog_compiler_static='-Bstatic' 11136 ;; 11137 11138 sysv4 | sysv4.2uw2* | sysv4.3*) 11139 lt_prog_compiler_wl='-Wl,' 11140 lt_prog_compiler_pic='-KPIC' 11141 lt_prog_compiler_static='-Bstatic' 11142 ;; 11143 11144 sysv4*MP*) 11145 if test -d /usr/nec; then 11146 lt_prog_compiler_pic='-Kconform_pic' 11147 lt_prog_compiler_static='-Bstatic' 11148 fi 11149 ;; 11150 11151 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11152 lt_prog_compiler_wl='-Wl,' 11153 lt_prog_compiler_pic='-KPIC' 11154 lt_prog_compiler_static='-Bstatic' 11155 ;; 11156 11157 unicos*) 11158 lt_prog_compiler_wl='-Wl,' 11159 lt_prog_compiler_can_build_shared=no 11160 ;; 11161 11162 uts4*) 11163 lt_prog_compiler_pic='-pic' 11164 lt_prog_compiler_static='-Bstatic' 11165 ;; 11166 11167 *) 11168 lt_prog_compiler_can_build_shared=no 11169 ;; 11170 esac 11171 fi 11172 11173case $host_os in 11174 # For platforms that do not support PIC, -DPIC is meaningless: 11175 *djgpp*) 11176 lt_prog_compiler_pic= 11177 ;; 11178 *) 11179 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11180 ;; 11181esac 11182 11183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11184$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11185if ${lt_cv_prog_compiler_pic+:} false; then : 11186 $as_echo_n "(cached) " >&6 11187else 11188 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11189fi 11190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11191$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11192lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11193 11194# 11195# Check to make sure the PIC flag actually works. 11196# 11197if test -n "$lt_prog_compiler_pic"; then 11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11199$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11200if ${lt_cv_prog_compiler_pic_works+:} false; then : 11201 $as_echo_n "(cached) " >&6 11202else 11203 lt_cv_prog_compiler_pic_works=no 11204 ac_outfile=conftest.$ac_objext 11205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11206 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11207 # Insert the option either (1) after the last *FLAGS variable, or 11208 # (2) before a word containing "conftest.", or (3) at the end. 11209 # Note that $ac_compile itself does not contain backslashes and begins 11210 # with a dollar sign (not a hyphen), so the echo should work correctly. 11211 # The option is referenced via a variable to avoid confusing sed. 11212 lt_compile=`echo "$ac_compile" | $SED \ 11213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11215 -e 's:$: $lt_compiler_flag:'` 11216 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11217 (eval "$lt_compile" 2>conftest.err) 11218 ac_status=$? 11219 cat conftest.err >&5 11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11221 if (exit $ac_status) && test -s "$ac_outfile"; then 11222 # The compiler can only warn and ignore the option if not recognized 11223 # So say no if there are warnings other than the usual output. 11224 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11226 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11227 lt_cv_prog_compiler_pic_works=yes 11228 fi 11229 fi 11230 $RM conftest* 11231 11232fi 11233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11234$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11235 11236if test yes = "$lt_cv_prog_compiler_pic_works"; then 11237 case $lt_prog_compiler_pic in 11238 "" | " "*) ;; 11239 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11240 esac 11241else 11242 lt_prog_compiler_pic= 11243 lt_prog_compiler_can_build_shared=no 11244fi 11245 11246fi 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258# 11259# Check to make sure the static flag actually works. 11260# 11261wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11263$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11264if ${lt_cv_prog_compiler_static_works+:} false; then : 11265 $as_echo_n "(cached) " >&6 11266else 11267 lt_cv_prog_compiler_static_works=no 11268 save_LDFLAGS=$LDFLAGS 11269 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11270 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11271 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11272 # The linker can only warn and ignore the option if not recognized 11273 # So say no if there are warnings 11274 if test -s conftest.err; then 11275 # Append any errors to the config.log. 11276 cat conftest.err 1>&5 11277 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11279 if diff conftest.exp conftest.er2 >/dev/null; then 11280 lt_cv_prog_compiler_static_works=yes 11281 fi 11282 else 11283 lt_cv_prog_compiler_static_works=yes 11284 fi 11285 fi 11286 $RM -r conftest* 11287 LDFLAGS=$save_LDFLAGS 11288 11289fi 11290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11291$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11292 11293if test yes = "$lt_cv_prog_compiler_static_works"; then 11294 : 11295else 11296 lt_prog_compiler_static= 11297fi 11298 11299 11300 11301 11302 11303 11304 11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11306$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11307if ${lt_cv_prog_compiler_c_o+:} false; then : 11308 $as_echo_n "(cached) " >&6 11309else 11310 lt_cv_prog_compiler_c_o=no 11311 $RM -r conftest 2>/dev/null 11312 mkdir conftest 11313 cd conftest 11314 mkdir out 11315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11316 11317 lt_compiler_flag="-o out/conftest2.$ac_objext" 11318 # Insert the option either (1) after the last *FLAGS variable, or 11319 # (2) before a word containing "conftest.", or (3) at the end. 11320 # Note that $ac_compile itself does not contain backslashes and begins 11321 # with a dollar sign (not a hyphen), so the echo should work correctly. 11322 lt_compile=`echo "$ac_compile" | $SED \ 11323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11325 -e 's:$: $lt_compiler_flag:'` 11326 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11327 (eval "$lt_compile" 2>out/conftest.err) 11328 ac_status=$? 11329 cat out/conftest.err >&5 11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11331 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11332 then 11333 # The compiler can only warn and ignore the option if not recognized 11334 # So say no if there are warnings 11335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11336 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11337 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11338 lt_cv_prog_compiler_c_o=yes 11339 fi 11340 fi 11341 chmod u+w . 2>&5 11342 $RM conftest* 11343 # SGI C++ compiler will create directory out/ii_files/ for 11344 # template instantiation 11345 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11346 $RM out/* && rmdir out 11347 cd .. 11348 $RM -r conftest 11349 $RM conftest* 11350 11351fi 11352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11353$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11354 11355 11356 11357 11358 11359 11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11361$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11362if ${lt_cv_prog_compiler_c_o+:} false; then : 11363 $as_echo_n "(cached) " >&6 11364else 11365 lt_cv_prog_compiler_c_o=no 11366 $RM -r conftest 2>/dev/null 11367 mkdir conftest 11368 cd conftest 11369 mkdir out 11370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11371 11372 lt_compiler_flag="-o out/conftest2.$ac_objext" 11373 # Insert the option either (1) after the last *FLAGS variable, or 11374 # (2) before a word containing "conftest.", or (3) at the end. 11375 # Note that $ac_compile itself does not contain backslashes and begins 11376 # with a dollar sign (not a hyphen), so the echo should work correctly. 11377 lt_compile=`echo "$ac_compile" | $SED \ 11378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11380 -e 's:$: $lt_compiler_flag:'` 11381 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11382 (eval "$lt_compile" 2>out/conftest.err) 11383 ac_status=$? 11384 cat out/conftest.err >&5 11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11386 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11387 then 11388 # The compiler can only warn and ignore the option if not recognized 11389 # So say no if there are warnings 11390 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11391 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11392 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11393 lt_cv_prog_compiler_c_o=yes 11394 fi 11395 fi 11396 chmod u+w . 2>&5 11397 $RM conftest* 11398 # SGI C++ compiler will create directory out/ii_files/ for 11399 # template instantiation 11400 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11401 $RM out/* && rmdir out 11402 cd .. 11403 $RM -r conftest 11404 $RM conftest* 11405 11406fi 11407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11408$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11409 11410 11411 11412 11413hard_links=nottested 11414if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11415 # do not overwrite the value of need_locks provided by the user 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11417$as_echo_n "checking if we can lock with hard links... " >&6; } 11418 hard_links=yes 11419 $RM conftest* 11420 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11421 touch conftest.a 11422 ln conftest.a conftest.b 2>&5 || hard_links=no 11423 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11425$as_echo "$hard_links" >&6; } 11426 if test no = "$hard_links"; then 11427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11428$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11429 need_locks=warn 11430 fi 11431else 11432 need_locks=no 11433fi 11434 11435 11436 11437 11438 11439 11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11441$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11442 11443 runpath_var= 11444 allow_undefined_flag= 11445 always_export_symbols=no 11446 archive_cmds= 11447 archive_expsym_cmds= 11448 compiler_needs_object=no 11449 enable_shared_with_static_runtimes=no 11450 export_dynamic_flag_spec= 11451 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11452 hardcode_automatic=no 11453 hardcode_direct=no 11454 hardcode_direct_absolute=no 11455 hardcode_libdir_flag_spec= 11456 hardcode_libdir_separator= 11457 hardcode_minus_L=no 11458 hardcode_shlibpath_var=unsupported 11459 inherit_rpath=no 11460 link_all_deplibs=unknown 11461 module_cmds= 11462 module_expsym_cmds= 11463 old_archive_from_new_cmds= 11464 old_archive_from_expsyms_cmds= 11465 thread_safe_flag_spec= 11466 whole_archive_flag_spec= 11467 # include_expsyms should be a list of space-separated symbols to be *always* 11468 # included in the symbol list 11469 include_expsyms= 11470 # exclude_expsyms can be an extended regexp of symbols to exclude 11471 # it will be wrapped by ' (' and ')$', so one must not match beginning or 11472 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 11473 # as well as any symbol that contains 'd'. 11474 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11475 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11476 # platforms (ab)use it in PIC code, but their linkers get confused if 11477 # the symbol is explicitly referenced. Since portable code cannot 11478 # rely on this symbol name, it's probably fine to never include it in 11479 # preloaded symbol tables. 11480 # Exclude shared library initialization/finalization symbols. 11481 extract_expsyms_cmds= 11482 11483 case $host_os in 11484 cygwin* | mingw* | pw32* | cegcc*) 11485 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11486 # When not using gcc, we currently assume that we are using 11487 # Microsoft Visual C++. 11488 if test yes != "$GCC"; then 11489 with_gnu_ld=no 11490 fi 11491 ;; 11492 interix*) 11493 # we just hope/assume this is gcc and not c89 (= MSVC++) 11494 with_gnu_ld=yes 11495 ;; 11496 openbsd* | bitrig*) 11497 with_gnu_ld=no 11498 ;; 11499 linux* | k*bsd*-gnu | gnu*) 11500 link_all_deplibs=no 11501 ;; 11502 esac 11503 11504 ld_shlibs=yes 11505 11506 # On some targets, GNU ld is compatible enough with the native linker 11507 # that we're better off using the native interface for both. 11508 lt_use_gnu_ld_interface=no 11509 if test yes = "$with_gnu_ld"; then 11510 case $host_os in 11511 aix*) 11512 # The AIX port of GNU ld has always aspired to compatibility 11513 # with the native linker. However, as the warning in the GNU ld 11514 # block says, versions before 2.19.5* couldn't really create working 11515 # shared libraries, regardless of the interface used. 11516 case `$LD -v 2>&1` in 11517 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11518 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11519 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11520 *) 11521 lt_use_gnu_ld_interface=yes 11522 ;; 11523 esac 11524 ;; 11525 *) 11526 lt_use_gnu_ld_interface=yes 11527 ;; 11528 esac 11529 fi 11530 11531 if test yes = "$lt_use_gnu_ld_interface"; then 11532 # If archive_cmds runs LD, not CC, wlarc should be empty 11533 wlarc='$wl' 11534 11535 # Set some defaults for GNU ld with shared library support. These 11536 # are reset later if shared libraries are not supported. Putting them 11537 # here allows them to be overridden if necessary. 11538 runpath_var=LD_RUN_PATH 11539 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11540 export_dynamic_flag_spec='$wl--export-dynamic' 11541 # ancient GNU ld didn't support --whole-archive et. al. 11542 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11543 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 11544 else 11545 whole_archive_flag_spec= 11546 fi 11547 supports_anon_versioning=no 11548 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 11549 *GNU\ gold*) supports_anon_versioning=yes ;; 11550 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11551 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11552 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11553 *\ 2.11.*) ;; # other 2.11 versions 11554 *) supports_anon_versioning=yes ;; 11555 esac 11556 11557 # See if GNU ld supports shared libraries. 11558 case $host_os in 11559 aix[3-9]*) 11560 # On AIX/PPC, the GNU linker is very broken 11561 if test ia64 != "$host_cpu"; then 11562 ld_shlibs=no 11563 cat <<_LT_EOF 1>&2 11564 11565*** Warning: the GNU linker, at least up to release 2.19, is reported 11566*** to be unable to reliably create shared libraries on AIX. 11567*** Therefore, libtool is disabling shared libraries support. If you 11568*** really care for shared libraries, you may want to install binutils 11569*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11570*** You will then need to restart the configuration process. 11571 11572_LT_EOF 11573 fi 11574 ;; 11575 11576 amigaos*) 11577 case $host_cpu in 11578 powerpc) 11579 # see comment about AmigaOS4 .so support 11580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11581 archive_expsym_cmds='' 11582 ;; 11583 m68k) 11584 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)' 11585 hardcode_libdir_flag_spec='-L$libdir' 11586 hardcode_minus_L=yes 11587 ;; 11588 esac 11589 ;; 11590 11591 beos*) 11592 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11593 allow_undefined_flag=unsupported 11594 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11595 # support --undefined. This deserves some investigation. FIXME 11596 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11597 else 11598 ld_shlibs=no 11599 fi 11600 ;; 11601 11602 cygwin* | mingw* | pw32* | cegcc*) 11603 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11604 # as there is no search path for DLLs. 11605 hardcode_libdir_flag_spec='-L$libdir' 11606 export_dynamic_flag_spec='$wl--export-all-symbols' 11607 allow_undefined_flag=unsupported 11608 always_export_symbols=no 11609 enable_shared_with_static_runtimes=yes 11610 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' 11611 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11612 11613 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11615 # If the export-symbols file already is a .def file, use it as 11616 # is; otherwise, prepend EXPORTS... 11617 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11618 cp $export_symbols $output_objdir/$soname.def; 11619 else 11620 echo EXPORTS > $output_objdir/$soname.def; 11621 cat $export_symbols >> $output_objdir/$soname.def; 11622 fi~ 11623 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11624 else 11625 ld_shlibs=no 11626 fi 11627 ;; 11628 11629 haiku*) 11630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11631 link_all_deplibs=yes 11632 ;; 11633 11634 os2*) 11635 hardcode_libdir_flag_spec='-L$libdir' 11636 hardcode_minus_L=yes 11637 allow_undefined_flag=unsupported 11638 shrext_cmds=.dll 11639 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11640 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11641 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11642 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11643 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11644 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11645 emximp -o $lib $output_objdir/$libname.def' 11646 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11647 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11648 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11649 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11650 prefix_cmds="$SED"~ 11651 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11652 prefix_cmds="$prefix_cmds -e 1d"; 11653 fi~ 11654 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11655 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11656 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11657 emximp -o $lib $output_objdir/$libname.def' 11658 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11659 enable_shared_with_static_runtimes=yes 11660 ;; 11661 11662 interix[3-9]*) 11663 hardcode_direct=no 11664 hardcode_shlibpath_var=no 11665 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11666 export_dynamic_flag_spec='$wl-E' 11667 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11668 # Instead, shared libraries are loaded at an image base (0x10000000 by 11669 # default) and relocated if they conflict, which is a slow very memory 11670 # consuming and fragmenting process. To avoid this, we pick a random, 11671 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11672 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11673 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11674 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' 11675 ;; 11676 11677 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11678 tmp_diet=no 11679 if test linux-dietlibc = "$host_os"; then 11680 case $cc_basename in 11681 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11682 esac 11683 fi 11684 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11685 && test no = "$tmp_diet" 11686 then 11687 tmp_addflag=' $pic_flag' 11688 tmp_sharedflag='-shared' 11689 case $cc_basename,$host_cpu in 11690 pgcc*) # Portland Group C compiler 11691 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' 11692 tmp_addflag=' $pic_flag' 11693 ;; 11694 pgf77* | pgf90* | pgf95* | pgfortran*) 11695 # Portland Group f77 and f90 compilers 11696 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' 11697 tmp_addflag=' $pic_flag -Mnomain' ;; 11698 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11699 tmp_addflag=' -i_dynamic' ;; 11700 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11701 tmp_addflag=' -i_dynamic -nofor_main' ;; 11702 ifc* | ifort*) # Intel Fortran compiler 11703 tmp_addflag=' -nofor_main' ;; 11704 lf95*) # Lahey Fortran 8.1 11705 whole_archive_flag_spec= 11706 tmp_sharedflag='--shared' ;; 11707 nagfor*) # NAGFOR 5.3 11708 tmp_sharedflag='-Wl,-shared' ;; 11709 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11710 tmp_sharedflag='-qmkshrobj' 11711 tmp_addflag= ;; 11712 nvcc*) # Cuda Compiler Driver 2.2 11713 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' 11714 compiler_needs_object=yes 11715 ;; 11716 esac 11717 case `$CC -V 2>&1 | sed 5q` in 11718 *Sun\ C*) # Sun C 5.9 11719 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' 11720 compiler_needs_object=yes 11721 tmp_sharedflag='-G' ;; 11722 *Sun\ F*) # Sun Fortran 8.3 11723 tmp_sharedflag='-G' ;; 11724 esac 11725 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11726 11727 if test yes = "$supports_anon_versioning"; then 11728 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11729 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11730 echo "local: *; };" >> $output_objdir/$libname.ver~ 11731 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11732 fi 11733 11734 case $cc_basename in 11735 tcc*) 11736 export_dynamic_flag_spec='-rdynamic' 11737 ;; 11738 xlf* | bgf* | bgxlf* | mpixlf*) 11739 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11740 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11741 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11742 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11743 if test yes = "$supports_anon_versioning"; then 11744 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11745 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11746 echo "local: *; };" >> $output_objdir/$libname.ver~ 11747 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11748 fi 11749 ;; 11750 esac 11751 else 11752 ld_shlibs=no 11753 fi 11754 ;; 11755 11756 netbsd* | netbsdelf*-gnu) 11757 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11758 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11759 wlarc= 11760 else 11761 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11762 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11763 fi 11764 ;; 11765 11766 solaris*) 11767 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11768 ld_shlibs=no 11769 cat <<_LT_EOF 1>&2 11770 11771*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11772*** create shared libraries on Solaris systems. Therefore, libtool 11773*** is disabling shared libraries support. We urge you to upgrade GNU 11774*** binutils to release 2.9.1 or newer. Another option is to modify 11775*** your PATH or compiler configuration so that the native linker is 11776*** used, and then restart. 11777 11778_LT_EOF 11779 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11780 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11781 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11782 else 11783 ld_shlibs=no 11784 fi 11785 ;; 11786 11787 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11788 case `$LD -v 2>&1` in 11789 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11790 ld_shlibs=no 11791 cat <<_LT_EOF 1>&2 11792 11793*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11794*** reliably create shared libraries on SCO systems. Therefore, libtool 11795*** is disabling shared libraries support. We urge you to upgrade GNU 11796*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11797*** your PATH or compiler configuration so that the native linker is 11798*** used, and then restart. 11799 11800_LT_EOF 11801 ;; 11802 *) 11803 # For security reasons, it is highly recommended that you always 11804 # use absolute paths for naming shared libraries, and exclude the 11805 # DT_RUNPATH tag from executables and libraries. But doing so 11806 # requires that you compile everything twice, which is a pain. 11807 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11808 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11810 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11811 else 11812 ld_shlibs=no 11813 fi 11814 ;; 11815 esac 11816 ;; 11817 11818 sunos4*) 11819 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11820 wlarc= 11821 hardcode_direct=yes 11822 hardcode_shlibpath_var=no 11823 ;; 11824 11825 *) 11826 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11827 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11828 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11829 else 11830 ld_shlibs=no 11831 fi 11832 ;; 11833 esac 11834 11835 if test no = "$ld_shlibs"; then 11836 runpath_var= 11837 hardcode_libdir_flag_spec= 11838 export_dynamic_flag_spec= 11839 whole_archive_flag_spec= 11840 fi 11841 else 11842 # PORTME fill in a description of your system's linker (not GNU ld) 11843 case $host_os in 11844 aix3*) 11845 allow_undefined_flag=unsupported 11846 always_export_symbols=yes 11847 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' 11848 # Note: this linker hardcodes the directories in LIBPATH if there 11849 # are no directories specified by -L. 11850 hardcode_minus_L=yes 11851 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11852 # Neither direct hardcoding nor static linking is supported with a 11853 # broken collect2. 11854 hardcode_direct=unsupported 11855 fi 11856 ;; 11857 11858 aix[4-9]*) 11859 if test ia64 = "$host_cpu"; then 11860 # On IA64, the linker does run time linking by default, so we don't 11861 # have to do anything special. 11862 aix_use_runtimelinking=no 11863 exp_sym_flag='-Bexport' 11864 no_entry_flag= 11865 else 11866 # If we're using GNU nm, then we don't want the "-C" option. 11867 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11868 # Without the "-l" option, or with the "-B" option, AIX nm treats 11869 # weak defined symbols like other global defined symbols, whereas 11870 # GNU nm marks them as "W". 11871 # While the 'weak' keyword is ignored in the Export File, we need 11872 # it in the Import File for the 'aix-soname' feature, so we have 11873 # to replace the "-B" option with "-P" for AIX nm. 11874 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11875 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' 11876 else 11877 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' 11878 fi 11879 aix_use_runtimelinking=no 11880 11881 # Test if we are trying to use run time linking or normal 11882 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11883 # have runtime linking enabled, and use it for executables. 11884 # For shared libraries, we enable/disable runtime linking 11885 # depending on the kind of the shared library created - 11886 # when "with_aix_soname,aix_use_runtimelinking" is: 11887 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11888 # "aix,yes" lib.so shared, rtl:yes, for executables 11889 # lib.a static archive 11890 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11891 # lib.a(lib.so.V) shared, rtl:no, for executables 11892 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11893 # lib.a(lib.so.V) shared, rtl:no 11894 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11895 # lib.a static archive 11896 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11897 for ld_flag in $LDFLAGS; do 11898 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11899 aix_use_runtimelinking=yes 11900 break 11901 fi 11902 done 11903 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11904 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11905 # so we don't have lib.a shared libs to link our executables. 11906 # We have to force runtime linking in this case. 11907 aix_use_runtimelinking=yes 11908 LDFLAGS="$LDFLAGS -Wl,-brtl" 11909 fi 11910 ;; 11911 esac 11912 11913 exp_sym_flag='-bexport' 11914 no_entry_flag='-bnoentry' 11915 fi 11916 11917 # When large executables or shared objects are built, AIX ld can 11918 # have problems creating the table of contents. If linking a library 11919 # or program results in "error TOC overflow" add -mminimal-toc to 11920 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11921 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11922 11923 archive_cmds='' 11924 hardcode_direct=yes 11925 hardcode_direct_absolute=yes 11926 hardcode_libdir_separator=':' 11927 link_all_deplibs=yes 11928 file_list_spec='$wl-f,' 11929 case $with_aix_soname,$aix_use_runtimelinking in 11930 aix,*) ;; # traditional, no import file 11931 svr4,* | *,yes) # use import file 11932 # The Import File defines what to hardcode. 11933 hardcode_direct=no 11934 hardcode_direct_absolute=no 11935 ;; 11936 esac 11937 11938 if test yes = "$GCC"; then 11939 case $host_os in aix4.[012]|aix4.[012].*) 11940 # We only want to do this on AIX 4.2 and lower, the check 11941 # below for broken collect2 doesn't work under 4.3+ 11942 collect2name=`$CC -print-prog-name=collect2` 11943 if test -f "$collect2name" && 11944 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11945 then 11946 # We have reworked collect2 11947 : 11948 else 11949 # We have old collect2 11950 hardcode_direct=unsupported 11951 # It fails to find uninstalled libraries when the uninstalled 11952 # path is not listed in the libpath. Setting hardcode_minus_L 11953 # to unsupported forces relinking 11954 hardcode_minus_L=yes 11955 hardcode_libdir_flag_spec='-L$libdir' 11956 hardcode_libdir_separator= 11957 fi 11958 ;; 11959 esac 11960 shared_flag='-shared' 11961 if test yes = "$aix_use_runtimelinking"; then 11962 shared_flag="$shared_flag "'$wl-G' 11963 fi 11964 # Need to ensure runtime linking is disabled for the traditional 11965 # shared library, or the linker may eventually find shared libraries 11966 # /with/ Import File - we do not want to mix them. 11967 shared_flag_aix='-shared' 11968 shared_flag_svr4='-shared $wl-G' 11969 else 11970 # not using gcc 11971 if test ia64 = "$host_cpu"; then 11972 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11973 # chokes on -Wl,-G. The following line is correct: 11974 shared_flag='-G' 11975 else 11976 if test yes = "$aix_use_runtimelinking"; then 11977 shared_flag='$wl-G' 11978 else 11979 shared_flag='$wl-bM:SRE' 11980 fi 11981 shared_flag_aix='$wl-bM:SRE' 11982 shared_flag_svr4='$wl-G' 11983 fi 11984 fi 11985 11986 export_dynamic_flag_spec='$wl-bexpall' 11987 # It seems that -bexpall does not export symbols beginning with 11988 # underscore (_), so it is better to generate a list of symbols to export. 11989 always_export_symbols=yes 11990 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11991 # Warning - without using the other runtime loading flags (-brtl), 11992 # -berok will link without error, but may produce a broken library. 11993 allow_undefined_flag='-berok' 11994 # Determine the default libpath from the value encoded in an 11995 # empty executable. 11996 if test set = "${lt_cv_aix_libpath+set}"; then 11997 aix_libpath=$lt_cv_aix_libpath 11998else 11999 if ${lt_cv_aix_libpath_+:} false; then : 12000 $as_echo_n "(cached) " >&6 12001else 12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12003/* end confdefs.h. */ 12004 12005int 12006main () 12007{ 12008 12009 ; 12010 return 0; 12011} 12012_ACEOF 12013if ac_fn_c_try_link "$LINENO"; then : 12014 12015 lt_aix_libpath_sed=' 12016 /Import File Strings/,/^$/ { 12017 /^0/ { 12018 s/^0 *\([^ ]*\) *$/\1/ 12019 p 12020 } 12021 }' 12022 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12023 # Check for a 64-bit object if we didn't find anything. 12024 if test -z "$lt_cv_aix_libpath_"; then 12025 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12026 fi 12027fi 12028rm -f core conftest.err conftest.$ac_objext \ 12029 conftest$ac_exeext conftest.$ac_ext 12030 if test -z "$lt_cv_aix_libpath_"; then 12031 lt_cv_aix_libpath_=/usr/lib:/lib 12032 fi 12033 12034fi 12035 12036 aix_libpath=$lt_cv_aix_libpath_ 12037fi 12038 12039 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12040 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 12041 else 12042 if test ia64 = "$host_cpu"; then 12043 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12044 allow_undefined_flag="-z nodefs" 12045 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" 12046 else 12047 # Determine the default libpath from the value encoded in an 12048 # empty executable. 12049 if test set = "${lt_cv_aix_libpath+set}"; then 12050 aix_libpath=$lt_cv_aix_libpath 12051else 12052 if ${lt_cv_aix_libpath_+:} false; then : 12053 $as_echo_n "(cached) " >&6 12054else 12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12056/* end confdefs.h. */ 12057 12058int 12059main () 12060{ 12061 12062 ; 12063 return 0; 12064} 12065_ACEOF 12066if ac_fn_c_try_link "$LINENO"; then : 12067 12068 lt_aix_libpath_sed=' 12069 /Import File Strings/,/^$/ { 12070 /^0/ { 12071 s/^0 *\([^ ]*\) *$/\1/ 12072 p 12073 } 12074 }' 12075 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12076 # Check for a 64-bit object if we didn't find anything. 12077 if test -z "$lt_cv_aix_libpath_"; then 12078 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12079 fi 12080fi 12081rm -f core conftest.err conftest.$ac_objext \ 12082 conftest$ac_exeext conftest.$ac_ext 12083 if test -z "$lt_cv_aix_libpath_"; then 12084 lt_cv_aix_libpath_=/usr/lib:/lib 12085 fi 12086 12087fi 12088 12089 aix_libpath=$lt_cv_aix_libpath_ 12090fi 12091 12092 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12093 # Warning - without using the other run time loading flags, 12094 # -berok will link without error, but may produce a broken library. 12095 no_undefined_flag=' $wl-bernotok' 12096 allow_undefined_flag=' $wl-berok' 12097 if test yes = "$with_gnu_ld"; then 12098 # We only use this code for GNU lds that support --whole-archive. 12099 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12100 else 12101 # Exported symbols can be pulled into shared objects from archives 12102 whole_archive_flag_spec='$convenience' 12103 fi 12104 archive_cmds_need_lc=yes 12105 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12106 # -brtl affects multiple linker settings, -berok does not and is overridden later 12107 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12108 if test svr4 != "$with_aix_soname"; then 12109 # This is similar to how AIX traditionally builds its shared libraries. 12110 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' 12111 fi 12112 if test aix != "$with_aix_soname"; then 12113 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' 12114 else 12115 # used by -dlpreopen to get the symbols 12116 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12117 fi 12118 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12119 fi 12120 fi 12121 ;; 12122 12123 amigaos*) 12124 case $host_cpu in 12125 powerpc) 12126 # see comment about AmigaOS4 .so support 12127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12128 archive_expsym_cmds='' 12129 ;; 12130 m68k) 12131 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)' 12132 hardcode_libdir_flag_spec='-L$libdir' 12133 hardcode_minus_L=yes 12134 ;; 12135 esac 12136 ;; 12137 12138 bsdi[45]*) 12139 export_dynamic_flag_spec=-rdynamic 12140 ;; 12141 12142 cygwin* | mingw* | pw32* | cegcc*) 12143 # When not using gcc, we currently assume that we are using 12144 # Microsoft Visual C++. 12145 # hardcode_libdir_flag_spec is actually meaningless, as there is 12146 # no search path for DLLs. 12147 case $cc_basename in 12148 cl*) 12149 # Native MSVC 12150 hardcode_libdir_flag_spec=' ' 12151 allow_undefined_flag=unsupported 12152 always_export_symbols=yes 12153 file_list_spec='@' 12154 # Tell ltmain to make .lib files, not .a files. 12155 libext=lib 12156 # Tell ltmain to make .dll files, not .so files. 12157 shrext_cmds=.dll 12158 # FIXME: Setting linknames here is a bad hack. 12159 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12160 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12161 cp "$export_symbols" "$output_objdir/$soname.def"; 12162 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12163 else 12164 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12165 fi~ 12166 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12167 linknames=' 12168 # The linker will not automatically build a static lib if we build a DLL. 12169 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12170 enable_shared_with_static_runtimes=yes 12171 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12172 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12173 # Don't use ranlib 12174 old_postinstall_cmds='chmod 644 $oldlib' 12175 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12176 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12177 case $lt_outputfile in 12178 *.exe|*.EXE) ;; 12179 *) 12180 lt_outputfile=$lt_outputfile.exe 12181 lt_tool_outputfile=$lt_tool_outputfile.exe 12182 ;; 12183 esac~ 12184 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12185 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12186 $RM "$lt_outputfile.manifest"; 12187 fi' 12188 ;; 12189 *) 12190 # Assume MSVC wrapper 12191 hardcode_libdir_flag_spec=' ' 12192 allow_undefined_flag=unsupported 12193 # Tell ltmain to make .lib files, not .a files. 12194 libext=lib 12195 # Tell ltmain to make .dll files, not .so files. 12196 shrext_cmds=.dll 12197 # FIXME: Setting linknames here is a bad hack. 12198 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12199 # The linker will automatically build a .lib file if we build a DLL. 12200 old_archive_from_new_cmds='true' 12201 # FIXME: Should let the user specify the lib program. 12202 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12203 enable_shared_with_static_runtimes=yes 12204 ;; 12205 esac 12206 ;; 12207 12208 darwin* | rhapsody*) 12209 12210 12211 archive_cmds_need_lc=no 12212 hardcode_direct=no 12213 hardcode_automatic=yes 12214 hardcode_shlibpath_var=unsupported 12215 if test yes = "$lt_cv_ld_force_load"; then 12216 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\"`' 12217 12218 else 12219 whole_archive_flag_spec='' 12220 fi 12221 link_all_deplibs=yes 12222 allow_undefined_flag=$_lt_dar_allow_undefined 12223 case $cc_basename in 12224 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12225 *) _lt_dar_can_shared=$GCC ;; 12226 esac 12227 if test yes = "$_lt_dar_can_shared"; then 12228 output_verbose_link_cmd=func_echo_all 12229 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12230 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12231 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" 12232 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" 12233 12234 else 12235 ld_shlibs=no 12236 fi 12237 12238 ;; 12239 12240 dgux*) 12241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12242 hardcode_libdir_flag_spec='-L$libdir' 12243 hardcode_shlibpath_var=no 12244 ;; 12245 12246 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12247 # support. Future versions do this automatically, but an explicit c++rt0.o 12248 # does not break anything, and helps significantly (at the cost of a little 12249 # extra space). 12250 freebsd2.2*) 12251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12252 hardcode_libdir_flag_spec='-R$libdir' 12253 hardcode_direct=yes 12254 hardcode_shlibpath_var=no 12255 ;; 12256 12257 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12258 freebsd2.*) 12259 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12260 hardcode_direct=yes 12261 hardcode_minus_L=yes 12262 hardcode_shlibpath_var=no 12263 ;; 12264 12265 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12266 freebsd* | dragonfly*) 12267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12268 hardcode_libdir_flag_spec='-R$libdir' 12269 hardcode_direct=yes 12270 hardcode_shlibpath_var=no 12271 ;; 12272 12273 hpux9*) 12274 if test yes = "$GCC"; then 12275 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' 12276 else 12277 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' 12278 fi 12279 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12280 hardcode_libdir_separator=: 12281 hardcode_direct=yes 12282 12283 # hardcode_minus_L: Not really in the search PATH, 12284 # but as the default location of the library. 12285 hardcode_minus_L=yes 12286 export_dynamic_flag_spec='$wl-E' 12287 ;; 12288 12289 hpux10*) 12290 if test yes,no = "$GCC,$with_gnu_ld"; then 12291 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12292 else 12293 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12294 fi 12295 if test no = "$with_gnu_ld"; then 12296 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12297 hardcode_libdir_separator=: 12298 hardcode_direct=yes 12299 hardcode_direct_absolute=yes 12300 export_dynamic_flag_spec='$wl-E' 12301 # hardcode_minus_L: Not really in the search PATH, 12302 # but as the default location of the library. 12303 hardcode_minus_L=yes 12304 fi 12305 ;; 12306 12307 hpux11*) 12308 if test yes,no = "$GCC,$with_gnu_ld"; then 12309 case $host_cpu in 12310 hppa*64*) 12311 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12312 ;; 12313 ia64*) 12314 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12315 ;; 12316 *) 12317 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12318 ;; 12319 esac 12320 else 12321 case $host_cpu in 12322 hppa*64*) 12323 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12324 ;; 12325 ia64*) 12326 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12327 ;; 12328 *) 12329 12330 # Older versions of the 11.00 compiler do not understand -b yet 12331 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12333$as_echo_n "checking if $CC understands -b... " >&6; } 12334if ${lt_cv_prog_compiler__b+:} false; then : 12335 $as_echo_n "(cached) " >&6 12336else 12337 lt_cv_prog_compiler__b=no 12338 save_LDFLAGS=$LDFLAGS 12339 LDFLAGS="$LDFLAGS -b" 12340 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12341 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12342 # The linker can only warn and ignore the option if not recognized 12343 # So say no if there are warnings 12344 if test -s conftest.err; then 12345 # Append any errors to the config.log. 12346 cat conftest.err 1>&5 12347 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12348 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12349 if diff conftest.exp conftest.er2 >/dev/null; then 12350 lt_cv_prog_compiler__b=yes 12351 fi 12352 else 12353 lt_cv_prog_compiler__b=yes 12354 fi 12355 fi 12356 $RM -r conftest* 12357 LDFLAGS=$save_LDFLAGS 12358 12359fi 12360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12361$as_echo "$lt_cv_prog_compiler__b" >&6; } 12362 12363if test yes = "$lt_cv_prog_compiler__b"; then 12364 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12365else 12366 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12367fi 12368 12369 ;; 12370 esac 12371 fi 12372 if test no = "$with_gnu_ld"; then 12373 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12374 hardcode_libdir_separator=: 12375 12376 case $host_cpu in 12377 hppa*64*|ia64*) 12378 hardcode_direct=no 12379 hardcode_shlibpath_var=no 12380 ;; 12381 *) 12382 hardcode_direct=yes 12383 hardcode_direct_absolute=yes 12384 export_dynamic_flag_spec='$wl-E' 12385 12386 # hardcode_minus_L: Not really in the search PATH, 12387 # but as the default location of the library. 12388 hardcode_minus_L=yes 12389 ;; 12390 esac 12391 fi 12392 ;; 12393 12394 irix5* | irix6* | nonstopux*) 12395 if test yes = "$GCC"; then 12396 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' 12397 # Try to use the -exported_symbol ld option, if it does not 12398 # work, assume that -exports_file does not work either and 12399 # implicitly export all symbols. 12400 # This should be the same for all languages, so no per-tag cache variable. 12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12402$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12403if ${lt_cv_irix_exported_symbol+:} false; then : 12404 $as_echo_n "(cached) " >&6 12405else 12406 save_LDFLAGS=$LDFLAGS 12407 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12409/* end confdefs.h. */ 12410int foo (void) { return 0; } 12411_ACEOF 12412if ac_fn_c_try_link "$LINENO"; then : 12413 lt_cv_irix_exported_symbol=yes 12414else 12415 lt_cv_irix_exported_symbol=no 12416fi 12417rm -f core conftest.err conftest.$ac_objext \ 12418 conftest$ac_exeext conftest.$ac_ext 12419 LDFLAGS=$save_LDFLAGS 12420fi 12421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12422$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12423 if test yes = "$lt_cv_irix_exported_symbol"; then 12424 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' 12425 fi 12426 link_all_deplibs=no 12427 else 12428 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' 12429 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' 12430 fi 12431 archive_cmds_need_lc='no' 12432 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12433 hardcode_libdir_separator=: 12434 inherit_rpath=yes 12435 link_all_deplibs=yes 12436 ;; 12437 12438 linux*) 12439 case $cc_basename in 12440 tcc*) 12441 # Fabrice Bellard et al's Tiny C Compiler 12442 ld_shlibs=yes 12443 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12444 ;; 12445 esac 12446 ;; 12447 12448 netbsd* | netbsdelf*-gnu) 12449 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12451 else 12452 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12453 fi 12454 hardcode_libdir_flag_spec='-R$libdir' 12455 hardcode_direct=yes 12456 hardcode_shlibpath_var=no 12457 ;; 12458 12459 newsos6) 12460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12461 hardcode_direct=yes 12462 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12463 hardcode_libdir_separator=: 12464 hardcode_shlibpath_var=no 12465 ;; 12466 12467 *nto* | *qnx*) 12468 ;; 12469 12470 openbsd* | bitrig*) 12471 if test -f /usr/libexec/ld.so; then 12472 hardcode_direct=yes 12473 hardcode_shlibpath_var=no 12474 hardcode_direct_absolute=yes 12475 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12476 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12477 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 12478 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12479 export_dynamic_flag_spec='$wl-E' 12480 else 12481 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12482 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12483 fi 12484 else 12485 ld_shlibs=no 12486 fi 12487 ;; 12488 12489 os2*) 12490 hardcode_libdir_flag_spec='-L$libdir' 12491 hardcode_minus_L=yes 12492 allow_undefined_flag=unsupported 12493 shrext_cmds=.dll 12494 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12495 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12496 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12497 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12498 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12499 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12500 emximp -o $lib $output_objdir/$libname.def' 12501 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12502 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12503 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12504 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12505 prefix_cmds="$SED"~ 12506 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12507 prefix_cmds="$prefix_cmds -e 1d"; 12508 fi~ 12509 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12510 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12511 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12512 emximp -o $lib $output_objdir/$libname.def' 12513 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12514 enable_shared_with_static_runtimes=yes 12515 ;; 12516 12517 osf3*) 12518 if test yes = "$GCC"; then 12519 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12520 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' 12521 else 12522 allow_undefined_flag=' -expect_unresolved \*' 12523 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' 12524 fi 12525 archive_cmds_need_lc='no' 12526 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12527 hardcode_libdir_separator=: 12528 ;; 12529 12530 osf4* | osf5*) # as osf3* with the addition of -msym flag 12531 if test yes = "$GCC"; then 12532 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12533 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' 12534 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12535 else 12536 allow_undefined_flag=' -expect_unresolved \*' 12537 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' 12538 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~ 12539 $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' 12540 12541 # Both c and cxx compiler support -rpath directly 12542 hardcode_libdir_flag_spec='-rpath $libdir' 12543 fi 12544 archive_cmds_need_lc='no' 12545 hardcode_libdir_separator=: 12546 ;; 12547 12548 solaris*) 12549 no_undefined_flag=' -z defs' 12550 if test yes = "$GCC"; then 12551 wlarc='$wl' 12552 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12553 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12554 $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' 12555 else 12556 case `$CC -V 2>&1` in 12557 *"Compilers 5.0"*) 12558 wlarc='' 12559 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 12560 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12561 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12562 ;; 12563 *) 12564 wlarc='$wl' 12565 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12566 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12567 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12568 ;; 12569 esac 12570 fi 12571 hardcode_libdir_flag_spec='-R$libdir' 12572 hardcode_shlibpath_var=no 12573 case $host_os in 12574 solaris2.[0-5] | solaris2.[0-5].*) ;; 12575 *) 12576 # The compiler driver will combine and reorder linker options, 12577 # but understands '-z linker_flag'. GCC discards it without '$wl', 12578 # but is careful enough not to reorder. 12579 # Supported since Solaris 2.6 (maybe 2.5.1?) 12580 if test yes = "$GCC"; then 12581 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 12582 else 12583 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12584 fi 12585 ;; 12586 esac 12587 link_all_deplibs=yes 12588 ;; 12589 12590 sunos4*) 12591 if test sequent = "$host_vendor"; then 12592 # Use $CC to link under sequent, because it throws in some extra .o 12593 # files that make .init and .fini sections work. 12594 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12595 else 12596 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12597 fi 12598 hardcode_libdir_flag_spec='-L$libdir' 12599 hardcode_direct=yes 12600 hardcode_minus_L=yes 12601 hardcode_shlibpath_var=no 12602 ;; 12603 12604 sysv4) 12605 case $host_vendor in 12606 sni) 12607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12608 hardcode_direct=yes # is this really true??? 12609 ;; 12610 siemens) 12611 ## LD is ld it makes a PLAMLIB 12612 ## CC just makes a GrossModule. 12613 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12614 reload_cmds='$CC -r -o $output$reload_objs' 12615 hardcode_direct=no 12616 ;; 12617 motorola) 12618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12619 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12620 ;; 12621 esac 12622 runpath_var='LD_RUN_PATH' 12623 hardcode_shlibpath_var=no 12624 ;; 12625 12626 sysv4.3*) 12627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12628 hardcode_shlibpath_var=no 12629 export_dynamic_flag_spec='-Bexport' 12630 ;; 12631 12632 sysv4*MP*) 12633 if test -d /usr/nec; then 12634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12635 hardcode_shlibpath_var=no 12636 runpath_var=LD_RUN_PATH 12637 hardcode_runpath_var=yes 12638 ld_shlibs=yes 12639 fi 12640 ;; 12641 12642 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12643 no_undefined_flag='$wl-z,text' 12644 archive_cmds_need_lc=no 12645 hardcode_shlibpath_var=no 12646 runpath_var='LD_RUN_PATH' 12647 12648 if test yes = "$GCC"; then 12649 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12650 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12651 else 12652 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12653 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12654 fi 12655 ;; 12656 12657 sysv5* | sco3.2v5* | sco5v6*) 12658 # Note: We CANNOT use -z defs as we might desire, because we do not 12659 # link with -lc, and that would cause any symbols used from libc to 12660 # always be unresolved, which means just about no library would 12661 # ever link correctly. If we're not using GNU ld we use -z text 12662 # though, which does catch some bad symbols but isn't as heavy-handed 12663 # as -z defs. 12664 no_undefined_flag='$wl-z,text' 12665 allow_undefined_flag='$wl-z,nodefs' 12666 archive_cmds_need_lc=no 12667 hardcode_shlibpath_var=no 12668 hardcode_libdir_flag_spec='$wl-R,$libdir' 12669 hardcode_libdir_separator=':' 12670 link_all_deplibs=yes 12671 export_dynamic_flag_spec='$wl-Bexport' 12672 runpath_var='LD_RUN_PATH' 12673 12674 if test yes = "$GCC"; then 12675 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12676 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12677 else 12678 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12679 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12680 fi 12681 ;; 12682 12683 uts4*) 12684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12685 hardcode_libdir_flag_spec='-L$libdir' 12686 hardcode_shlibpath_var=no 12687 ;; 12688 12689 *) 12690 ld_shlibs=no 12691 ;; 12692 esac 12693 12694 if test sni = "$host_vendor"; then 12695 case $host in 12696 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12697 export_dynamic_flag_spec='$wl-Blargedynsym' 12698 ;; 12699 esac 12700 fi 12701 fi 12702 12703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12704$as_echo "$ld_shlibs" >&6; } 12705test no = "$ld_shlibs" && can_build_shared=no 12706 12707with_gnu_ld=$with_gnu_ld 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723# 12724# Do we need to explicitly link libc? 12725# 12726case "x$archive_cmds_need_lc" in 12727x|xyes) 12728 # Assume -lc should be added 12729 archive_cmds_need_lc=yes 12730 12731 if test yes,yes = "$GCC,$enable_shared"; then 12732 case $archive_cmds in 12733 *'~'*) 12734 # FIXME: we may have to deal with multi-command sequences. 12735 ;; 12736 '$CC '*) 12737 # Test whether the compiler implicitly links with -lc since on some 12738 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12739 # to ld, don't add -lc before -lgcc. 12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12741$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12742if ${lt_cv_archive_cmds_need_lc+:} false; then : 12743 $as_echo_n "(cached) " >&6 12744else 12745 $RM conftest* 12746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12747 12748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12749 (eval $ac_compile) 2>&5 12750 ac_status=$? 12751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12752 test $ac_status = 0; } 2>conftest.err; then 12753 soname=conftest 12754 lib=conftest 12755 libobjs=conftest.$ac_objext 12756 deplibs= 12757 wl=$lt_prog_compiler_wl 12758 pic_flag=$lt_prog_compiler_pic 12759 compiler_flags=-v 12760 linker_flags=-v 12761 verstring= 12762 output_objdir=. 12763 libname=conftest 12764 lt_save_allow_undefined_flag=$allow_undefined_flag 12765 allow_undefined_flag= 12766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12767 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12768 ac_status=$? 12769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12770 test $ac_status = 0; } 12771 then 12772 lt_cv_archive_cmds_need_lc=no 12773 else 12774 lt_cv_archive_cmds_need_lc=yes 12775 fi 12776 allow_undefined_flag=$lt_save_allow_undefined_flag 12777 else 12778 cat conftest.err 1>&5 12779 fi 12780 $RM conftest* 12781 12782fi 12783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12784$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12785 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12786 ;; 12787 esac 12788 fi 12789 ;; 12790esac 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12944$as_echo_n "checking dynamic linker characteristics... " >&6; } 12945 12946if test yes = "$GCC"; then 12947 case $host_os in 12948 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12949 *) lt_awk_arg='/^libraries:/' ;; 12950 esac 12951 case $host_os in 12952 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12953 *) lt_sed_strip_eq='s|=/|/|g' ;; 12954 esac 12955 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12956 case $lt_search_path_spec in 12957 *\;*) 12958 # if the path contains ";" then we assume it to be the separator 12959 # otherwise default to the standard path separator (i.e. ":") - it is 12960 # assumed that no part of a normal pathname contains ";" but that should 12961 # okay in the real world where ";" in dirpaths is itself problematic. 12962 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12963 ;; 12964 *) 12965 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12966 ;; 12967 esac 12968 # Ok, now we have the path, separated by spaces, we can step through it 12969 # and add multilib dir if necessary... 12970 lt_tmp_lt_search_path_spec= 12971 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12972 # ...but if some path component already ends with the multilib dir we assume 12973 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12974 case "$lt_multi_os_dir; $lt_search_path_spec " in 12975 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12976 lt_multi_os_dir= 12977 ;; 12978 esac 12979 for lt_sys_path in $lt_search_path_spec; do 12980 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12981 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12982 elif test -n "$lt_multi_os_dir"; then 12983 test -d "$lt_sys_path" && \ 12984 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12985 fi 12986 done 12987 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12988BEGIN {RS = " "; FS = "/|\n";} { 12989 lt_foo = ""; 12990 lt_count = 0; 12991 for (lt_i = NF; lt_i > 0; lt_i--) { 12992 if ($lt_i != "" && $lt_i != ".") { 12993 if ($lt_i == "..") { 12994 lt_count++; 12995 } else { 12996 if (lt_count == 0) { 12997 lt_foo = "/" $lt_i lt_foo; 12998 } else { 12999 lt_count--; 13000 } 13001 } 13002 } 13003 } 13004 if (lt_foo != "") { lt_freq[lt_foo]++; } 13005 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13006}'` 13007 # AWK program above erroneously prepends '/' to C:/dos/paths 13008 # for these hosts. 13009 case $host_os in 13010 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13011 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13012 esac 13013 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13014else 13015 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13016fi 13017library_names_spec= 13018libname_spec='lib$name' 13019soname_spec= 13020shrext_cmds=.so 13021postinstall_cmds= 13022postuninstall_cmds= 13023finish_cmds= 13024finish_eval= 13025shlibpath_var= 13026shlibpath_overrides_runpath=unknown 13027version_type=none 13028dynamic_linker="$host_os ld.so" 13029sys_lib_dlsearch_path_spec="/lib /usr/lib" 13030need_lib_prefix=unknown 13031hardcode_into_libs=no 13032 13033# when you set need_version to no, make sure it does not cause -set_version 13034# flags to be left without arguments 13035need_version=unknown 13036 13037 13038 13039case $host_os in 13040aix3*) 13041 version_type=linux # correct to gnu/linux during the next big refactor 13042 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13043 shlibpath_var=LIBPATH 13044 13045 # AIX 3 has no versioning support, so we append a major version to the name. 13046 soname_spec='$libname$release$shared_ext$major' 13047 ;; 13048 13049aix[4-9]*) 13050 version_type=linux # correct to gnu/linux during the next big refactor 13051 need_lib_prefix=no 13052 need_version=no 13053 hardcode_into_libs=yes 13054 if test ia64 = "$host_cpu"; then 13055 # AIX 5 supports IA64 13056 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13057 shlibpath_var=LD_LIBRARY_PATH 13058 else 13059 # With GCC up to 2.95.x, collect2 would create an import file 13060 # for dependence libraries. The import file would start with 13061 # the line '#! .'. This would cause the generated library to 13062 # depend on '.', always an invalid library. This was fixed in 13063 # development snapshots of GCC prior to 3.0. 13064 case $host_os in 13065 aix4 | aix4.[01] | aix4.[01].*) 13066 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13067 echo ' yes ' 13068 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13069 : 13070 else 13071 can_build_shared=no 13072 fi 13073 ;; 13074 esac 13075 # Using Import Files as archive members, it is possible to support 13076 # filename-based versioning of shared library archives on AIX. While 13077 # this would work for both with and without runtime linking, it will 13078 # prevent static linking of such archives. So we do filename-based 13079 # shared library versioning with .so extension only, which is used 13080 # when both runtime linking and shared linking is enabled. 13081 # Unfortunately, runtime linking may impact performance, so we do 13082 # not want this to be the default eventually. Also, we use the 13083 # versioned .so libs for executables only if there is the -brtl 13084 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 13085 # To allow for filename-based versioning support, we need to create 13086 # libNAME.so.V as an archive file, containing: 13087 # *) an Import File, referring to the versioned filename of the 13088 # archive as well as the shared archive member, telling the 13089 # bitwidth (32 or 64) of that shared object, and providing the 13090 # list of exported symbols of that shared object, eventually 13091 # decorated with the 'weak' keyword 13092 # *) the shared object with the F_LOADONLY flag set, to really avoid 13093 # it being seen by the linker. 13094 # At run time we better use the real file rather than another symlink, 13095 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13096 13097 case $with_aix_soname,$aix_use_runtimelinking in 13098 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13099 # soname into executable. Probably we can add versioning support to 13100 # collect2, so additional links can be useful in future. 13101 aix,yes) # traditional libtool 13102 dynamic_linker='AIX unversionable lib.so' 13103 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13104 # instead of lib<name>.a to let people know that these are not 13105 # typical AIX shared libraries. 13106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13107 ;; 13108 aix,no) # traditional AIX only 13109 dynamic_linker='AIX lib.a(lib.so.V)' 13110 # We preserve .a as extension for shared libraries through AIX4.2 13111 # and later when we are not doing run time linking. 13112 library_names_spec='$libname$release.a $libname.a' 13113 soname_spec='$libname$release$shared_ext$major' 13114 ;; 13115 svr4,*) # full svr4 only 13116 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13117 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13118 # We do not specify a path in Import Files, so LIBPATH fires. 13119 shlibpath_overrides_runpath=yes 13120 ;; 13121 *,yes) # both, prefer svr4 13122 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13123 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13124 # unpreferred sharedlib libNAME.a needs extra handling 13125 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"' 13126 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"' 13127 # We do not specify a path in Import Files, so LIBPATH fires. 13128 shlibpath_overrides_runpath=yes 13129 ;; 13130 *,no) # both, prefer aix 13131 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13132 library_names_spec='$libname$release.a $libname.a' 13133 soname_spec='$libname$release$shared_ext$major' 13134 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13135 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)' 13136 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"' 13137 ;; 13138 esac 13139 shlibpath_var=LIBPATH 13140 fi 13141 ;; 13142 13143amigaos*) 13144 case $host_cpu in 13145 powerpc) 13146 # Since July 2007 AmigaOS4 officially supports .so libraries. 13147 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13149 ;; 13150 m68k) 13151 library_names_spec='$libname.ixlibrary $libname.a' 13152 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13153 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' 13154 ;; 13155 esac 13156 ;; 13157 13158beos*) 13159 library_names_spec='$libname$shared_ext' 13160 dynamic_linker="$host_os ld.so" 13161 shlibpath_var=LIBRARY_PATH 13162 ;; 13163 13164bsdi[45]*) 13165 version_type=linux # correct to gnu/linux during the next big refactor 13166 need_version=no 13167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13168 soname_spec='$libname$release$shared_ext$major' 13169 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13170 shlibpath_var=LD_LIBRARY_PATH 13171 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13172 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13173 # the default ld.so.conf also contains /usr/contrib/lib and 13174 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13175 # libtool to hard-code these into programs 13176 ;; 13177 13178cygwin* | mingw* | pw32* | cegcc*) 13179 version_type=windows 13180 shrext_cmds=.dll 13181 need_version=no 13182 need_lib_prefix=no 13183 13184 case $GCC,$cc_basename in 13185 yes,*) 13186 # gcc 13187 library_names_spec='$libname.dll.a' 13188 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13189 postinstall_cmds='base_file=`basename \$file`~ 13190 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13191 dldir=$destdir/`dirname \$dlpath`~ 13192 test -d \$dldir || mkdir -p \$dldir~ 13193 $install_prog $dir/$dlname \$dldir/$dlname~ 13194 chmod a+x \$dldir/$dlname~ 13195 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13196 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13197 fi' 13198 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13199 dlpath=$dir/\$dldll~ 13200 $RM \$dlpath' 13201 shlibpath_overrides_runpath=yes 13202 13203 case $host_os in 13204 cygwin*) 13205 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13206 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13207 13208 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13209 ;; 13210 mingw* | cegcc*) 13211 # MinGW DLLs use traditional 'lib' prefix 13212 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13213 ;; 13214 pw32*) 13215 # pw32 DLLs use 'pw' prefix rather than 'lib' 13216 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13217 ;; 13218 esac 13219 dynamic_linker='Win32 ld.exe' 13220 ;; 13221 13222 *,cl*) 13223 # Native MSVC 13224 libname_spec='$name' 13225 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13226 library_names_spec='$libname.dll.lib' 13227 13228 case $build_os in 13229 mingw*) 13230 sys_lib_search_path_spec= 13231 lt_save_ifs=$IFS 13232 IFS=';' 13233 for lt_path in $LIB 13234 do 13235 IFS=$lt_save_ifs 13236 # Let DOS variable expansion print the short 8.3 style file name. 13237 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13238 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13239 done 13240 IFS=$lt_save_ifs 13241 # Convert to MSYS style. 13242 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13243 ;; 13244 cygwin*) 13245 # Convert to unix form, then to dos form, then back to unix form 13246 # but this time dos style (no spaces!) so that the unix form looks 13247 # like /cygdrive/c/PROGRA~1:/cygdr... 13248 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13249 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13250 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13251 ;; 13252 *) 13253 sys_lib_search_path_spec=$LIB 13254 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13255 # It is most probably a Windows format PATH. 13256 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13257 else 13258 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13259 fi 13260 # FIXME: find the short name or the path components, as spaces are 13261 # common. (e.g. "Program Files" -> "PROGRA~1") 13262 ;; 13263 esac 13264 13265 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13266 postinstall_cmds='base_file=`basename \$file`~ 13267 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13268 dldir=$destdir/`dirname \$dlpath`~ 13269 test -d \$dldir || mkdir -p \$dldir~ 13270 $install_prog $dir/$dlname \$dldir/$dlname' 13271 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13272 dlpath=$dir/\$dldll~ 13273 $RM \$dlpath' 13274 shlibpath_overrides_runpath=yes 13275 dynamic_linker='Win32 link.exe' 13276 ;; 13277 13278 *) 13279 # Assume MSVC wrapper 13280 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13281 dynamic_linker='Win32 ld.exe' 13282 ;; 13283 esac 13284 # FIXME: first we should search . and the directory the executable is in 13285 shlibpath_var=PATH 13286 ;; 13287 13288darwin* | rhapsody*) 13289 dynamic_linker="$host_os dyld" 13290 version_type=darwin 13291 need_lib_prefix=no 13292 need_version=no 13293 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13294 soname_spec='$libname$release$major$shared_ext' 13295 shlibpath_overrides_runpath=yes 13296 shlibpath_var=DYLD_LIBRARY_PATH 13297 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13298 13299 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13300 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13301 ;; 13302 13303dgux*) 13304 version_type=linux # correct to gnu/linux during the next big refactor 13305 need_lib_prefix=no 13306 need_version=no 13307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13308 soname_spec='$libname$release$shared_ext$major' 13309 shlibpath_var=LD_LIBRARY_PATH 13310 ;; 13311 13312freebsd* | dragonfly*) 13313 # DragonFly does not have aout. When/if they implement a new 13314 # versioning mechanism, adjust this. 13315 if test -x /usr/bin/objformat; then 13316 objformat=`/usr/bin/objformat` 13317 else 13318 case $host_os in 13319 freebsd[23].*) objformat=aout ;; 13320 *) objformat=elf ;; 13321 esac 13322 fi 13323 version_type=freebsd-$objformat 13324 case $version_type in 13325 freebsd-elf*) 13326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13327 soname_spec='$libname$release$shared_ext$major' 13328 need_version=no 13329 need_lib_prefix=no 13330 ;; 13331 freebsd-*) 13332 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13333 need_version=yes 13334 ;; 13335 esac 13336 shlibpath_var=LD_LIBRARY_PATH 13337 case $host_os in 13338 freebsd2.*) 13339 shlibpath_overrides_runpath=yes 13340 ;; 13341 freebsd3.[01]* | freebsdelf3.[01]*) 13342 shlibpath_overrides_runpath=yes 13343 hardcode_into_libs=yes 13344 ;; 13345 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13346 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13347 shlibpath_overrides_runpath=no 13348 hardcode_into_libs=yes 13349 ;; 13350 *) # from 4.6 on, and DragonFly 13351 shlibpath_overrides_runpath=yes 13352 hardcode_into_libs=yes 13353 ;; 13354 esac 13355 ;; 13356 13357haiku*) 13358 version_type=linux # correct to gnu/linux during the next big refactor 13359 need_lib_prefix=no 13360 need_version=no 13361 dynamic_linker="$host_os runtime_loader" 13362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13363 soname_spec='$libname$release$shared_ext$major' 13364 shlibpath_var=LIBRARY_PATH 13365 shlibpath_overrides_runpath=no 13366 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13367 hardcode_into_libs=yes 13368 ;; 13369 13370hpux9* | hpux10* | hpux11*) 13371 # Give a soname corresponding to the major version so that dld.sl refuses to 13372 # link against other versions. 13373 version_type=sunos 13374 need_lib_prefix=no 13375 need_version=no 13376 case $host_cpu in 13377 ia64*) 13378 shrext_cmds='.so' 13379 hardcode_into_libs=yes 13380 dynamic_linker="$host_os dld.so" 13381 shlibpath_var=LD_LIBRARY_PATH 13382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13384 soname_spec='$libname$release$shared_ext$major' 13385 if test 32 = "$HPUX_IA64_MODE"; then 13386 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13387 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13388 else 13389 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13390 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13391 fi 13392 ;; 13393 hppa*64*) 13394 shrext_cmds='.sl' 13395 hardcode_into_libs=yes 13396 dynamic_linker="$host_os dld.sl" 13397 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13398 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13400 soname_spec='$libname$release$shared_ext$major' 13401 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13402 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13403 ;; 13404 *) 13405 shrext_cmds='.sl' 13406 dynamic_linker="$host_os dld.sl" 13407 shlibpath_var=SHLIB_PATH 13408 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13409 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13410 soname_spec='$libname$release$shared_ext$major' 13411 ;; 13412 esac 13413 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13414 postinstall_cmds='chmod 555 $lib' 13415 # or fails outright, so override atomically: 13416 install_override_mode=555 13417 ;; 13418 13419interix[3-9]*) 13420 version_type=linux # correct to gnu/linux during the next big refactor 13421 need_lib_prefix=no 13422 need_version=no 13423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13424 soname_spec='$libname$release$shared_ext$major' 13425 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13426 shlibpath_var=LD_LIBRARY_PATH 13427 shlibpath_overrides_runpath=no 13428 hardcode_into_libs=yes 13429 ;; 13430 13431irix5* | irix6* | nonstopux*) 13432 case $host_os in 13433 nonstopux*) version_type=nonstopux ;; 13434 *) 13435 if test yes = "$lt_cv_prog_gnu_ld"; then 13436 version_type=linux # correct to gnu/linux during the next big refactor 13437 else 13438 version_type=irix 13439 fi ;; 13440 esac 13441 need_lib_prefix=no 13442 need_version=no 13443 soname_spec='$libname$release$shared_ext$major' 13444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13445 case $host_os in 13446 irix5* | nonstopux*) 13447 libsuff= shlibsuff= 13448 ;; 13449 *) 13450 case $LD in # libtool.m4 will add one of these switches to LD 13451 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13452 libsuff= shlibsuff= libmagic=32-bit;; 13453 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13454 libsuff=32 shlibsuff=N32 libmagic=N32;; 13455 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13456 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13457 *) libsuff= shlibsuff= libmagic=never-match;; 13458 esac 13459 ;; 13460 esac 13461 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13462 shlibpath_overrides_runpath=no 13463 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13464 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 13465 hardcode_into_libs=yes 13466 ;; 13467 13468# No shared lib support for Linux oldld, aout, or coff. 13469linux*oldld* | linux*aout* | linux*coff*) 13470 dynamic_linker=no 13471 ;; 13472 13473linux*android*) 13474 version_type=none # Android doesn't support versioned libraries. 13475 need_lib_prefix=no 13476 need_version=no 13477 library_names_spec='$libname$release$shared_ext' 13478 soname_spec='$libname$release$shared_ext' 13479 finish_cmds= 13480 shlibpath_var=LD_LIBRARY_PATH 13481 shlibpath_overrides_runpath=yes 13482 13483 # This implies no fast_install, which is unacceptable. 13484 # Some rework will be needed to allow for fast_install 13485 # before this can be enabled. 13486 hardcode_into_libs=yes 13487 13488 dynamic_linker='Android linker' 13489 # Don't embed -rpath directories since the linker doesn't support them. 13490 hardcode_libdir_flag_spec='-L$libdir' 13491 ;; 13492 13493# This must be glibc/ELF. 13494linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13495 version_type=linux # correct to gnu/linux during the next big refactor 13496 need_lib_prefix=no 13497 need_version=no 13498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13499 soname_spec='$libname$release$shared_ext$major' 13500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13501 shlibpath_var=LD_LIBRARY_PATH 13502 shlibpath_overrides_runpath=no 13503 13504 # Some binutils ld are patched to set DT_RUNPATH 13505 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13506 $as_echo_n "(cached) " >&6 13507else 13508 lt_cv_shlibpath_overrides_runpath=no 13509 save_LDFLAGS=$LDFLAGS 13510 save_libdir=$libdir 13511 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13512 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13514/* end confdefs.h. */ 13515 13516int 13517main () 13518{ 13519 13520 ; 13521 return 0; 13522} 13523_ACEOF 13524if ac_fn_c_try_link "$LINENO"; then : 13525 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13526 lt_cv_shlibpath_overrides_runpath=yes 13527fi 13528fi 13529rm -f core conftest.err conftest.$ac_objext \ 13530 conftest$ac_exeext conftest.$ac_ext 13531 LDFLAGS=$save_LDFLAGS 13532 libdir=$save_libdir 13533 13534fi 13535 13536 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13537 13538 # This implies no fast_install, which is unacceptable. 13539 # Some rework will be needed to allow for fast_install 13540 # before this can be enabled. 13541 hardcode_into_libs=yes 13542 13543 # Ideally, we could use ldconfig to report *all* directores which are 13544 # searched for libraries, however this is still not possible. Aside from not 13545 # being certain /sbin/ldconfig is available, command 13546 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 13547 # even though it is searched at run-time. Try to do the best guess by 13548 # appending ld.so.conf contents (and includes) to the search path. 13549 if test -f /etc/ld.so.conf; then 13550 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' ' '` 13551 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13552 fi 13553 13554 # We used to test for /lib/ld.so.1 and disable shared libraries on 13555 # powerpc, because MkLinux only supported shared libraries with the 13556 # GNU dynamic linker. Since this was broken with cross compilers, 13557 # most powerpc-linux boxes support dynamic linking these days and 13558 # people can always --disable-shared, the test was removed, and we 13559 # assume the GNU/Linux dynamic linker is in use. 13560 dynamic_linker='GNU/Linux ld.so' 13561 ;; 13562 13563netbsdelf*-gnu) 13564 version_type=linux 13565 need_lib_prefix=no 13566 need_version=no 13567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13568 soname_spec='${libname}${release}${shared_ext}$major' 13569 shlibpath_var=LD_LIBRARY_PATH 13570 shlibpath_overrides_runpath=no 13571 hardcode_into_libs=yes 13572 dynamic_linker='NetBSD ld.elf_so' 13573 ;; 13574 13575netbsd*) 13576 version_type=sunos 13577 need_lib_prefix=no 13578 need_version=no 13579 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13580 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13582 dynamic_linker='NetBSD (a.out) ld.so' 13583 else 13584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13585 soname_spec='$libname$release$shared_ext$major' 13586 dynamic_linker='NetBSD ld.elf_so' 13587 fi 13588 shlibpath_var=LD_LIBRARY_PATH 13589 shlibpath_overrides_runpath=yes 13590 hardcode_into_libs=yes 13591 ;; 13592 13593newsos6) 13594 version_type=linux # correct to gnu/linux during the next big refactor 13595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13596 shlibpath_var=LD_LIBRARY_PATH 13597 shlibpath_overrides_runpath=yes 13598 ;; 13599 13600*nto* | *qnx*) 13601 version_type=qnx 13602 need_lib_prefix=no 13603 need_version=no 13604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13605 soname_spec='$libname$release$shared_ext$major' 13606 shlibpath_var=LD_LIBRARY_PATH 13607 shlibpath_overrides_runpath=no 13608 hardcode_into_libs=yes 13609 dynamic_linker='ldqnx.so' 13610 ;; 13611 13612openbsd* | bitrig*) 13613 version_type=sunos 13614 sys_lib_dlsearch_path_spec=/usr/lib 13615 need_lib_prefix=no 13616 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13617 need_version=no 13618 else 13619 need_version=yes 13620 fi 13621 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13623 shlibpath_var=LD_LIBRARY_PATH 13624 shlibpath_overrides_runpath=yes 13625 ;; 13626 13627os2*) 13628 libname_spec='$name' 13629 version_type=windows 13630 shrext_cmds=.dll 13631 need_version=no 13632 need_lib_prefix=no 13633 # OS/2 can only load a DLL with a base name of 8 characters or less. 13634 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13635 v=$($ECHO $release$versuffix | tr -d .-); 13636 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13637 $ECHO $n$v`$shared_ext' 13638 library_names_spec='${libname}_dll.$libext' 13639 dynamic_linker='OS/2 ld.exe' 13640 shlibpath_var=BEGINLIBPATH 13641 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13643 postinstall_cmds='base_file=`basename \$file`~ 13644 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13645 dldir=$destdir/`dirname \$dlpath`~ 13646 test -d \$dldir || mkdir -p \$dldir~ 13647 $install_prog $dir/$dlname \$dldir/$dlname~ 13648 chmod a+x \$dldir/$dlname~ 13649 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13650 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13651 fi' 13652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13653 dlpath=$dir/\$dldll~ 13654 $RM \$dlpath' 13655 ;; 13656 13657osf3* | osf4* | osf5*) 13658 version_type=osf 13659 need_lib_prefix=no 13660 need_version=no 13661 soname_spec='$libname$release$shared_ext$major' 13662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13663 shlibpath_var=LD_LIBRARY_PATH 13664 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13666 ;; 13667 13668rdos*) 13669 dynamic_linker=no 13670 ;; 13671 13672solaris*) 13673 version_type=linux # correct to gnu/linux during the next big refactor 13674 need_lib_prefix=no 13675 need_version=no 13676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13677 soname_spec='$libname$release$shared_ext$major' 13678 shlibpath_var=LD_LIBRARY_PATH 13679 shlibpath_overrides_runpath=yes 13680 hardcode_into_libs=yes 13681 # ldd complains unless libraries are executable 13682 postinstall_cmds='chmod +x $lib' 13683 ;; 13684 13685sunos4*) 13686 version_type=sunos 13687 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13688 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13689 shlibpath_var=LD_LIBRARY_PATH 13690 shlibpath_overrides_runpath=yes 13691 if test yes = "$with_gnu_ld"; then 13692 need_lib_prefix=no 13693 fi 13694 need_version=yes 13695 ;; 13696 13697sysv4 | sysv4.3*) 13698 version_type=linux # correct to gnu/linux during the next big refactor 13699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13700 soname_spec='$libname$release$shared_ext$major' 13701 shlibpath_var=LD_LIBRARY_PATH 13702 case $host_vendor in 13703 sni) 13704 shlibpath_overrides_runpath=no 13705 need_lib_prefix=no 13706 runpath_var=LD_RUN_PATH 13707 ;; 13708 siemens) 13709 need_lib_prefix=no 13710 ;; 13711 motorola) 13712 need_lib_prefix=no 13713 need_version=no 13714 shlibpath_overrides_runpath=no 13715 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13716 ;; 13717 esac 13718 ;; 13719 13720sysv4*MP*) 13721 if test -d /usr/nec; then 13722 version_type=linux # correct to gnu/linux during the next big refactor 13723 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13724 soname_spec='$libname$shared_ext.$major' 13725 shlibpath_var=LD_LIBRARY_PATH 13726 fi 13727 ;; 13728 13729sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13730 version_type=sco 13731 need_lib_prefix=no 13732 need_version=no 13733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13734 soname_spec='$libname$release$shared_ext$major' 13735 shlibpath_var=LD_LIBRARY_PATH 13736 shlibpath_overrides_runpath=yes 13737 hardcode_into_libs=yes 13738 if test yes = "$with_gnu_ld"; then 13739 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13740 else 13741 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13742 case $host_os in 13743 sco3.2v5*) 13744 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13745 ;; 13746 esac 13747 fi 13748 sys_lib_dlsearch_path_spec='/usr/lib' 13749 ;; 13750 13751tpf*) 13752 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13753 version_type=linux # correct to gnu/linux during the next big refactor 13754 need_lib_prefix=no 13755 need_version=no 13756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13757 shlibpath_var=LD_LIBRARY_PATH 13758 shlibpath_overrides_runpath=no 13759 hardcode_into_libs=yes 13760 ;; 13761 13762uts4*) 13763 version_type=linux # correct to gnu/linux during the next big refactor 13764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13765 soname_spec='$libname$release$shared_ext$major' 13766 shlibpath_var=LD_LIBRARY_PATH 13767 ;; 13768 13769*) 13770 dynamic_linker=no 13771 ;; 13772esac 13773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13774$as_echo "$dynamic_linker" >&6; } 13775test no = "$dynamic_linker" && can_build_shared=no 13776 13777variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13778if test yes = "$GCC"; then 13779 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13780fi 13781 13782if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13783 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13784fi 13785 13786if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13787 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13788fi 13789 13790# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13791configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13792 13793# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13794func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13795 13796# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13797configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13896$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13897hardcode_action= 13898if test -n "$hardcode_libdir_flag_spec" || 13899 test -n "$runpath_var" || 13900 test yes = "$hardcode_automatic"; then 13901 13902 # We can hardcode non-existent directories. 13903 if test no != "$hardcode_direct" && 13904 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13905 # have to relink, otherwise we might link with an installed library 13906 # when we should be linking with a yet-to-be-installed one 13907 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13908 test no != "$hardcode_minus_L"; then 13909 # Linking always hardcodes the temporary library directory. 13910 hardcode_action=relink 13911 else 13912 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13913 hardcode_action=immediate 13914 fi 13915else 13916 # We cannot hardcode anything, or else we can only hardcode existing 13917 # directories. 13918 hardcode_action=unsupported 13919fi 13920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13921$as_echo "$hardcode_action" >&6; } 13922 13923if test relink = "$hardcode_action" || 13924 test yes = "$inherit_rpath"; then 13925 # Fast installation is not supported 13926 enable_fast_install=no 13927elif test yes = "$shlibpath_overrides_runpath" || 13928 test no = "$enable_shared"; then 13929 # Fast installation is not necessary 13930 enable_fast_install=needless 13931fi 13932 13933 13934 13935 13936 13937 13938 if test yes != "$enable_dlopen"; then 13939 enable_dlopen=unknown 13940 enable_dlopen_self=unknown 13941 enable_dlopen_self_static=unknown 13942else 13943 lt_cv_dlopen=no 13944 lt_cv_dlopen_libs= 13945 13946 case $host_os in 13947 beos*) 13948 lt_cv_dlopen=load_add_on 13949 lt_cv_dlopen_libs= 13950 lt_cv_dlopen_self=yes 13951 ;; 13952 13953 mingw* | pw32* | cegcc*) 13954 lt_cv_dlopen=LoadLibrary 13955 lt_cv_dlopen_libs= 13956 ;; 13957 13958 cygwin*) 13959 lt_cv_dlopen=dlopen 13960 lt_cv_dlopen_libs= 13961 ;; 13962 13963 darwin*) 13964 # if libdl is installed we need to link against it 13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13966$as_echo_n "checking for dlopen in -ldl... " >&6; } 13967if ${ac_cv_lib_dl_dlopen+:} false; then : 13968 $as_echo_n "(cached) " >&6 13969else 13970 ac_check_lib_save_LIBS=$LIBS 13971LIBS="-ldl $LIBS" 13972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13973/* end confdefs.h. */ 13974 13975/* Override any GCC internal prototype to avoid an error. 13976 Use char because int might match the return type of a GCC 13977 builtin and then its argument prototype would still apply. */ 13978#ifdef __cplusplus 13979extern "C" 13980#endif 13981char dlopen (); 13982int 13983main () 13984{ 13985return dlopen (); 13986 ; 13987 return 0; 13988} 13989_ACEOF 13990if ac_fn_c_try_link "$LINENO"; then : 13991 ac_cv_lib_dl_dlopen=yes 13992else 13993 ac_cv_lib_dl_dlopen=no 13994fi 13995rm -f core conftest.err conftest.$ac_objext \ 13996 conftest$ac_exeext conftest.$ac_ext 13997LIBS=$ac_check_lib_save_LIBS 13998fi 13999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14000$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14001if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14002 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14003else 14004 14005 lt_cv_dlopen=dyld 14006 lt_cv_dlopen_libs= 14007 lt_cv_dlopen_self=yes 14008 14009fi 14010 14011 ;; 14012 14013 tpf*) 14014 # Don't try to run any link tests for TPF. We know it's impossible 14015 # because TPF is a cross-compiler, and we know how we open DSOs. 14016 lt_cv_dlopen=dlopen 14017 lt_cv_dlopen_libs= 14018 lt_cv_dlopen_self=no 14019 ;; 14020 14021 *) 14022 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14023if test "x$ac_cv_func_shl_load" = xyes; then : 14024 lt_cv_dlopen=shl_load 14025else 14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14027$as_echo_n "checking for shl_load in -ldld... " >&6; } 14028if ${ac_cv_lib_dld_shl_load+:} false; then : 14029 $as_echo_n "(cached) " >&6 14030else 14031 ac_check_lib_save_LIBS=$LIBS 14032LIBS="-ldld $LIBS" 14033cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14034/* end confdefs.h. */ 14035 14036/* Override any GCC internal prototype to avoid an error. 14037 Use char because int might match the return type of a GCC 14038 builtin and then its argument prototype would still apply. */ 14039#ifdef __cplusplus 14040extern "C" 14041#endif 14042char shl_load (); 14043int 14044main () 14045{ 14046return shl_load (); 14047 ; 14048 return 0; 14049} 14050_ACEOF 14051if ac_fn_c_try_link "$LINENO"; then : 14052 ac_cv_lib_dld_shl_load=yes 14053else 14054 ac_cv_lib_dld_shl_load=no 14055fi 14056rm -f core conftest.err conftest.$ac_objext \ 14057 conftest$ac_exeext conftest.$ac_ext 14058LIBS=$ac_check_lib_save_LIBS 14059fi 14060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14061$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14062if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14063 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 14064else 14065 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14066if test "x$ac_cv_func_dlopen" = xyes; then : 14067 lt_cv_dlopen=dlopen 14068else 14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14070$as_echo_n "checking for dlopen in -ldl... " >&6; } 14071if ${ac_cv_lib_dl_dlopen+:} false; then : 14072 $as_echo_n "(cached) " >&6 14073else 14074 ac_check_lib_save_LIBS=$LIBS 14075LIBS="-ldl $LIBS" 14076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14077/* end confdefs.h. */ 14078 14079/* Override any GCC internal prototype to avoid an error. 14080 Use char because int might match the return type of a GCC 14081 builtin and then its argument prototype would still apply. */ 14082#ifdef __cplusplus 14083extern "C" 14084#endif 14085char dlopen (); 14086int 14087main () 14088{ 14089return dlopen (); 14090 ; 14091 return 0; 14092} 14093_ACEOF 14094if ac_fn_c_try_link "$LINENO"; then : 14095 ac_cv_lib_dl_dlopen=yes 14096else 14097 ac_cv_lib_dl_dlopen=no 14098fi 14099rm -f core conftest.err conftest.$ac_objext \ 14100 conftest$ac_exeext conftest.$ac_ext 14101LIBS=$ac_check_lib_save_LIBS 14102fi 14103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14104$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14105if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14106 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14107else 14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14109$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14110if ${ac_cv_lib_svld_dlopen+:} false; then : 14111 $as_echo_n "(cached) " >&6 14112else 14113 ac_check_lib_save_LIBS=$LIBS 14114LIBS="-lsvld $LIBS" 14115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14116/* end confdefs.h. */ 14117 14118/* Override any GCC internal prototype to avoid an error. 14119 Use char because int might match the return type of a GCC 14120 builtin and then its argument prototype would still apply. */ 14121#ifdef __cplusplus 14122extern "C" 14123#endif 14124char dlopen (); 14125int 14126main () 14127{ 14128return dlopen (); 14129 ; 14130 return 0; 14131} 14132_ACEOF 14133if ac_fn_c_try_link "$LINENO"; then : 14134 ac_cv_lib_svld_dlopen=yes 14135else 14136 ac_cv_lib_svld_dlopen=no 14137fi 14138rm -f core conftest.err conftest.$ac_objext \ 14139 conftest$ac_exeext conftest.$ac_ext 14140LIBS=$ac_check_lib_save_LIBS 14141fi 14142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14143$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14144if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14145 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14146else 14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14148$as_echo_n "checking for dld_link in -ldld... " >&6; } 14149if ${ac_cv_lib_dld_dld_link+:} false; then : 14150 $as_echo_n "(cached) " >&6 14151else 14152 ac_check_lib_save_LIBS=$LIBS 14153LIBS="-ldld $LIBS" 14154cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14155/* end confdefs.h. */ 14156 14157/* Override any GCC internal prototype to avoid an error. 14158 Use char because int might match the return type of a GCC 14159 builtin and then its argument prototype would still apply. */ 14160#ifdef __cplusplus 14161extern "C" 14162#endif 14163char dld_link (); 14164int 14165main () 14166{ 14167return dld_link (); 14168 ; 14169 return 0; 14170} 14171_ACEOF 14172if ac_fn_c_try_link "$LINENO"; then : 14173 ac_cv_lib_dld_dld_link=yes 14174else 14175 ac_cv_lib_dld_dld_link=no 14176fi 14177rm -f core conftest.err conftest.$ac_objext \ 14178 conftest$ac_exeext conftest.$ac_ext 14179LIBS=$ac_check_lib_save_LIBS 14180fi 14181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14182$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14183if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14184 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14185fi 14186 14187 14188fi 14189 14190 14191fi 14192 14193 14194fi 14195 14196 14197fi 14198 14199 14200fi 14201 14202 ;; 14203 esac 14204 14205 if test no = "$lt_cv_dlopen"; then 14206 enable_dlopen=no 14207 else 14208 enable_dlopen=yes 14209 fi 14210 14211 case $lt_cv_dlopen in 14212 dlopen) 14213 save_CPPFLAGS=$CPPFLAGS 14214 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14215 14216 save_LDFLAGS=$LDFLAGS 14217 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14218 14219 save_LIBS=$LIBS 14220 LIBS="$lt_cv_dlopen_libs $LIBS" 14221 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14223$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14224if ${lt_cv_dlopen_self+:} false; then : 14225 $as_echo_n "(cached) " >&6 14226else 14227 if test yes = "$cross_compiling"; then : 14228 lt_cv_dlopen_self=cross 14229else 14230 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14231 lt_status=$lt_dlunknown 14232 cat > conftest.$ac_ext <<_LT_EOF 14233#line $LINENO "configure" 14234#include "confdefs.h" 14235 14236#if HAVE_DLFCN_H 14237#include <dlfcn.h> 14238#endif 14239 14240#include <stdio.h> 14241 14242#ifdef RTLD_GLOBAL 14243# define LT_DLGLOBAL RTLD_GLOBAL 14244#else 14245# ifdef DL_GLOBAL 14246# define LT_DLGLOBAL DL_GLOBAL 14247# else 14248# define LT_DLGLOBAL 0 14249# endif 14250#endif 14251 14252/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14253 find out it does not work in some platform. */ 14254#ifndef LT_DLLAZY_OR_NOW 14255# ifdef RTLD_LAZY 14256# define LT_DLLAZY_OR_NOW RTLD_LAZY 14257# else 14258# ifdef DL_LAZY 14259# define LT_DLLAZY_OR_NOW DL_LAZY 14260# else 14261# ifdef RTLD_NOW 14262# define LT_DLLAZY_OR_NOW RTLD_NOW 14263# else 14264# ifdef DL_NOW 14265# define LT_DLLAZY_OR_NOW DL_NOW 14266# else 14267# define LT_DLLAZY_OR_NOW 0 14268# endif 14269# endif 14270# endif 14271# endif 14272#endif 14273 14274/* When -fvisibility=hidden is used, assume the code has been annotated 14275 correspondingly for the symbols needed. */ 14276#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14277int fnord () __attribute__((visibility("default"))); 14278#endif 14279 14280int fnord () { return 42; } 14281int main () 14282{ 14283 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14284 int status = $lt_dlunknown; 14285 14286 if (self) 14287 { 14288 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14289 else 14290 { 14291 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14292 else puts (dlerror ()); 14293 } 14294 /* dlclose (self); */ 14295 } 14296 else 14297 puts (dlerror ()); 14298 14299 return status; 14300} 14301_LT_EOF 14302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14303 (eval $ac_link) 2>&5 14304 ac_status=$? 14305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14306 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14307 (./conftest; exit; ) >&5 2>/dev/null 14308 lt_status=$? 14309 case x$lt_status in 14310 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14311 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14312 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14313 esac 14314 else : 14315 # compilation failed 14316 lt_cv_dlopen_self=no 14317 fi 14318fi 14319rm -fr conftest* 14320 14321 14322fi 14323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14324$as_echo "$lt_cv_dlopen_self" >&6; } 14325 14326 if test yes = "$lt_cv_dlopen_self"; then 14327 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14329$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14330if ${lt_cv_dlopen_self_static+:} false; then : 14331 $as_echo_n "(cached) " >&6 14332else 14333 if test yes = "$cross_compiling"; then : 14334 lt_cv_dlopen_self_static=cross 14335else 14336 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14337 lt_status=$lt_dlunknown 14338 cat > conftest.$ac_ext <<_LT_EOF 14339#line $LINENO "configure" 14340#include "confdefs.h" 14341 14342#if HAVE_DLFCN_H 14343#include <dlfcn.h> 14344#endif 14345 14346#include <stdio.h> 14347 14348#ifdef RTLD_GLOBAL 14349# define LT_DLGLOBAL RTLD_GLOBAL 14350#else 14351# ifdef DL_GLOBAL 14352# define LT_DLGLOBAL DL_GLOBAL 14353# else 14354# define LT_DLGLOBAL 0 14355# endif 14356#endif 14357 14358/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14359 find out it does not work in some platform. */ 14360#ifndef LT_DLLAZY_OR_NOW 14361# ifdef RTLD_LAZY 14362# define LT_DLLAZY_OR_NOW RTLD_LAZY 14363# else 14364# ifdef DL_LAZY 14365# define LT_DLLAZY_OR_NOW DL_LAZY 14366# else 14367# ifdef RTLD_NOW 14368# define LT_DLLAZY_OR_NOW RTLD_NOW 14369# else 14370# ifdef DL_NOW 14371# define LT_DLLAZY_OR_NOW DL_NOW 14372# else 14373# define LT_DLLAZY_OR_NOW 0 14374# endif 14375# endif 14376# endif 14377# endif 14378#endif 14379 14380/* When -fvisibility=hidden is used, assume the code has been annotated 14381 correspondingly for the symbols needed. */ 14382#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14383int fnord () __attribute__((visibility("default"))); 14384#endif 14385 14386int fnord () { return 42; } 14387int main () 14388{ 14389 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14390 int status = $lt_dlunknown; 14391 14392 if (self) 14393 { 14394 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14395 else 14396 { 14397 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14398 else puts (dlerror ()); 14399 } 14400 /* dlclose (self); */ 14401 } 14402 else 14403 puts (dlerror ()); 14404 14405 return status; 14406} 14407_LT_EOF 14408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14409 (eval $ac_link) 2>&5 14410 ac_status=$? 14411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14412 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14413 (./conftest; exit; ) >&5 2>/dev/null 14414 lt_status=$? 14415 case x$lt_status in 14416 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14417 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14418 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14419 esac 14420 else : 14421 # compilation failed 14422 lt_cv_dlopen_self_static=no 14423 fi 14424fi 14425rm -fr conftest* 14426 14427 14428fi 14429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14430$as_echo "$lt_cv_dlopen_self_static" >&6; } 14431 fi 14432 14433 CPPFLAGS=$save_CPPFLAGS 14434 LDFLAGS=$save_LDFLAGS 14435 LIBS=$save_LIBS 14436 ;; 14437 esac 14438 14439 case $lt_cv_dlopen_self in 14440 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14441 *) enable_dlopen_self=unknown ;; 14442 esac 14443 14444 case $lt_cv_dlopen_self_static in 14445 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14446 *) enable_dlopen_self_static=unknown ;; 14447 esac 14448fi 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466striplib= 14467old_striplib= 14468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14469$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14470if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14471 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14472 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14474$as_echo "yes" >&6; } 14475else 14476# FIXME - insert some real tests, host_os isn't really good enough 14477 case $host_os in 14478 darwin*) 14479 if test -n "$STRIP"; then 14480 striplib="$STRIP -x" 14481 old_striplib="$STRIP -S" 14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14483$as_echo "yes" >&6; } 14484 else 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14486$as_echo "no" >&6; } 14487 fi 14488 ;; 14489 *) 14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14491$as_echo "no" >&6; } 14492 ;; 14493 esac 14494fi 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 # Report what library types will actually be built 14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14509$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14511$as_echo "$can_build_shared" >&6; } 14512 14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14514$as_echo_n "checking whether to build shared libraries... " >&6; } 14515 test no = "$can_build_shared" && enable_shared=no 14516 14517 # On AIX, shared libraries and static libraries use the same namespace, and 14518 # are all built from PIC. 14519 case $host_os in 14520 aix3*) 14521 test yes = "$enable_shared" && enable_static=no 14522 if test -n "$RANLIB"; then 14523 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14524 postinstall_cmds='$RANLIB $lib' 14525 fi 14526 ;; 14527 14528 aix[4-9]*) 14529 if test ia64 != "$host_cpu"; then 14530 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14531 yes,aix,yes) ;; # shared object as lib.so file only 14532 yes,svr4,*) ;; # shared object as lib.so archive member only 14533 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14534 esac 14535 fi 14536 ;; 14537 esac 14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14539$as_echo "$enable_shared" >&6; } 14540 14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14542$as_echo_n "checking whether to build static libraries... " >&6; } 14543 # Make sure either enable_shared or enable_static is yes. 14544 test yes = "$enable_shared" || enable_static=yes 14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14546$as_echo "$enable_static" >&6; } 14547 14548 14549 14550 14551fi 14552ac_ext=c 14553ac_cpp='$CPP $CPPFLAGS' 14554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14556ac_compiler_gnu=$ac_cv_c_compiler_gnu 14557 14558CC=$lt_save_CC 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 ac_config_commands="$ac_config_commands libtool" 14575 14576 14577 14578 14579# Only expand once: 14580 14581 14582 14583# dmalloc option 14584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5 14585$as_echo_n "checking if malloc debugging is wanted... " >&6; } 14586 14587# Check whether --with-dmalloc was given. 14588if test "${with_dmalloc+set}" = set; then : 14589 withval=$with_dmalloc; if test "$withval" = yes; then 14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14591$as_echo "yes" >&6; } 14592 14593$as_echo "#define WITH_DMALLOC 1" >>confdefs.h 14594 14595 LIBS="$LIBS -ldmalloc" 14596 LDFLAGS="$LDFLAGS -g" 14597else 14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14599$as_echo "no" >&6; } 14600fi 14601else 14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14603$as_echo "no" >&6; } 14604fi 14605 14606 14607 14608# i18n 14609GETTEXT_PACKAGE=nip2 14610 14611 14612cat >>confdefs.h <<_ACEOF 14613#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" 14614_ACEOF 14615 14616# ALL_LINGUAS="en_GB malkovich" 14617ALL_LINGUAS="en_GB" 14618 14619 for ac_header in locale.h 14620do : 14621 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 14622if test "x$ac_cv_header_locale_h" = xyes; then : 14623 cat >>confdefs.h <<_ACEOF 14624#define HAVE_LOCALE_H 1 14625_ACEOF 14626 14627fi 14628 14629done 14630 14631 if test $ac_cv_header_locale_h = yes; then 14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 14633$as_echo_n "checking for LC_MESSAGES... " >&6; } 14634if ${am_cv_val_LC_MESSAGES+:} false; then : 14635 $as_echo_n "(cached) " >&6 14636else 14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14638/* end confdefs.h. */ 14639#include <locale.h> 14640int 14641main () 14642{ 14643return LC_MESSAGES 14644 ; 14645 return 0; 14646} 14647_ACEOF 14648if ac_fn_c_try_link "$LINENO"; then : 14649 am_cv_val_LC_MESSAGES=yes 14650else 14651 am_cv_val_LC_MESSAGES=no 14652fi 14653rm -f core conftest.err conftest.$ac_objext \ 14654 conftest$ac_exeext conftest.$ac_ext 14655fi 14656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 14657$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 14658 if test $am_cv_val_LC_MESSAGES = yes; then 14659 14660$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 14661 14662 fi 14663 fi 14664 USE_NLS=yes 14665 14666 14667 gt_cv_have_gettext=no 14668 14669 CATOBJEXT=NONE 14670 XGETTEXT=: 14671 INTLLIBS= 14672 14673 14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 14675$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 14676if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 14677 $as_echo_n "(cached) " >&6 14678else 14679 gt_save_LIBS="$LIBS" 14680 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 14681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14682/* end confdefs.h. */ 14683#include <CoreFoundation/CFPreferences.h> 14684int 14685main () 14686{ 14687CFPreferencesCopyAppValue(NULL, NULL) 14688 ; 14689 return 0; 14690} 14691_ACEOF 14692if ac_fn_c_try_link "$LINENO"; then : 14693 gt_cv_func_CFPreferencesCopyAppValue=yes 14694else 14695 gt_cv_func_CFPreferencesCopyAppValue=no 14696fi 14697rm -f core conftest.err conftest.$ac_objext \ 14698 conftest$ac_exeext conftest.$ac_ext 14699 LIBS="$gt_save_LIBS" 14700fi 14701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 14702$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 14703 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 14704 14705$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 14706 14707 fi 14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 14709$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 14710if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 14711 $as_echo_n "(cached) " >&6 14712else 14713 gt_save_LIBS="$LIBS" 14714 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14716/* end confdefs.h. */ 14717#include <CoreFoundation/CFLocale.h> 14718int 14719main () 14720{ 14721CFLocaleCopyCurrent(); 14722 ; 14723 return 0; 14724} 14725_ACEOF 14726if ac_fn_c_try_link "$LINENO"; then : 14727 gt_cv_func_CFLocaleCopyCurrent=yes 14728else 14729 gt_cv_func_CFLocaleCopyCurrent=no 14730fi 14731rm -f core conftest.err conftest.$ac_objext \ 14732 conftest$ac_exeext conftest.$ac_ext 14733 LIBS="$gt_save_LIBS" 14734fi 14735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 14736$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 14737 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 14738 14739$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 14740 14741 fi 14742 INTL_MACOSX_LIBS= 14743 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 14744 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 14745 fi 14746 14747 14748 14749 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" 14750if test "x$ac_cv_header_libintl_h" = xyes; then : 14751 gt_cv_func_dgettext_libintl="no" 14752 libintl_extra_libs="" 14753 14754 # 14755 # First check in libc 14756 # 14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5 14758$as_echo_n "checking for ngettext in libc... " >&6; } 14759if ${gt_cv_func_ngettext_libc+:} false; then : 14760 $as_echo_n "(cached) " >&6 14761else 14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14763/* end confdefs.h. */ 14764 14765#include <libintl.h> 14766 14767int 14768main () 14769{ 14770return !ngettext ("","", 1) 14771 ; 14772 return 0; 14773} 14774_ACEOF 14775if ac_fn_c_try_link "$LINENO"; then : 14776 gt_cv_func_ngettext_libc=yes 14777else 14778 gt_cv_func_ngettext_libc=no 14779fi 14780rm -f core conftest.err conftest.$ac_objext \ 14781 conftest$ac_exeext conftest.$ac_ext 14782 14783fi 14784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5 14785$as_echo "$gt_cv_func_ngettext_libc" >&6; } 14786 14787 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5 14789$as_echo_n "checking for dgettext in libc... " >&6; } 14790if ${gt_cv_func_dgettext_libc+:} false; then : 14791 $as_echo_n "(cached) " >&6 14792else 14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14794/* end confdefs.h. */ 14795 14796#include <libintl.h> 14797 14798int 14799main () 14800{ 14801return !dgettext ("","") 14802 ; 14803 return 0; 14804} 14805_ACEOF 14806if ac_fn_c_try_link "$LINENO"; then : 14807 gt_cv_func_dgettext_libc=yes 14808else 14809 gt_cv_func_dgettext_libc=no 14810fi 14811rm -f core conftest.err conftest.$ac_objext \ 14812 conftest$ac_exeext conftest.$ac_ext 14813 14814fi 14815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5 14816$as_echo "$gt_cv_func_dgettext_libc" >&6; } 14817 fi 14818 14819 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 14820 for ac_func in bind_textdomain_codeset 14821do : 14822 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 14823if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 14824 cat >>confdefs.h <<_ACEOF 14825#define HAVE_BIND_TEXTDOMAIN_CODESET 1 14826_ACEOF 14827 14828fi 14829done 14830 14831 fi 14832 14833 # 14834 # If we don't have everything we want, check in libintl 14835 # 14836 if test "$gt_cv_func_dgettext_libc" != "yes" \ 14837 || test "$gt_cv_func_ngettext_libc" != "yes" \ 14838 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 14839 14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 14841$as_echo_n "checking for bindtextdomain in -lintl... " >&6; } 14842if ${ac_cv_lib_intl_bindtextdomain+:} false; then : 14843 $as_echo_n "(cached) " >&6 14844else 14845 ac_check_lib_save_LIBS=$LIBS 14846LIBS="-lintl $LIBS" 14847cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14848/* end confdefs.h. */ 14849 14850/* Override any GCC internal prototype to avoid an error. 14851 Use char because int might match the return type of a GCC 14852 builtin and then its argument prototype would still apply. */ 14853#ifdef __cplusplus 14854extern "C" 14855#endif 14856char bindtextdomain (); 14857int 14858main () 14859{ 14860return bindtextdomain (); 14861 ; 14862 return 0; 14863} 14864_ACEOF 14865if ac_fn_c_try_link "$LINENO"; then : 14866 ac_cv_lib_intl_bindtextdomain=yes 14867else 14868 ac_cv_lib_intl_bindtextdomain=no 14869fi 14870rm -f core conftest.err conftest.$ac_objext \ 14871 conftest$ac_exeext conftest.$ac_ext 14872LIBS=$ac_check_lib_save_LIBS 14873fi 14874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 14875$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } 14876if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then : 14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 14878$as_echo_n "checking for ngettext in -lintl... " >&6; } 14879if ${ac_cv_lib_intl_ngettext+:} false; then : 14880 $as_echo_n "(cached) " >&6 14881else 14882 ac_check_lib_save_LIBS=$LIBS 14883LIBS="-lintl $LIBS" 14884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14885/* end confdefs.h. */ 14886 14887/* Override any GCC internal prototype to avoid an error. 14888 Use char because int might match the return type of a GCC 14889 builtin and then its argument prototype would still apply. */ 14890#ifdef __cplusplus 14891extern "C" 14892#endif 14893char ngettext (); 14894int 14895main () 14896{ 14897return ngettext (); 14898 ; 14899 return 0; 14900} 14901_ACEOF 14902if ac_fn_c_try_link "$LINENO"; then : 14903 ac_cv_lib_intl_ngettext=yes 14904else 14905 ac_cv_lib_intl_ngettext=no 14906fi 14907rm -f core conftest.err conftest.$ac_objext \ 14908 conftest$ac_exeext conftest.$ac_ext 14909LIBS=$ac_check_lib_save_LIBS 14910fi 14911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 14912$as_echo "$ac_cv_lib_intl_ngettext" >&6; } 14913if test "x$ac_cv_lib_intl_ngettext" = xyes; then : 14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 14915$as_echo_n "checking for dgettext in -lintl... " >&6; } 14916if ${ac_cv_lib_intl_dgettext+:} false; then : 14917 $as_echo_n "(cached) " >&6 14918else 14919 ac_check_lib_save_LIBS=$LIBS 14920LIBS="-lintl $LIBS" 14921cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14922/* end confdefs.h. */ 14923 14924/* Override any GCC internal prototype to avoid an error. 14925 Use char because int might match the return type of a GCC 14926 builtin and then its argument prototype would still apply. */ 14927#ifdef __cplusplus 14928extern "C" 14929#endif 14930char dgettext (); 14931int 14932main () 14933{ 14934return dgettext (); 14935 ; 14936 return 0; 14937} 14938_ACEOF 14939if ac_fn_c_try_link "$LINENO"; then : 14940 ac_cv_lib_intl_dgettext=yes 14941else 14942 ac_cv_lib_intl_dgettext=no 14943fi 14944rm -f core conftest.err conftest.$ac_objext \ 14945 conftest$ac_exeext conftest.$ac_ext 14946LIBS=$ac_check_lib_save_LIBS 14947fi 14948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 14949$as_echo "$ac_cv_lib_intl_dgettext" >&6; } 14950if test "x$ac_cv_lib_intl_dgettext" = xyes; then : 14951 gt_cv_func_dgettext_libintl=yes 14952fi 14953 14954fi 14955 14956fi 14957 14958 14959 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5 14961$as_echo_n "checking if -liconv is needed to use gettext... " >&6; } 14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 14963$as_echo "" >&6; } 14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 14965$as_echo_n "checking for ngettext in -lintl... " >&6; } 14966if ${ac_cv_lib_intl_ngettext+:} false; then : 14967 $as_echo_n "(cached) " >&6 14968else 14969 ac_check_lib_save_LIBS=$LIBS 14970LIBS="-lintl -liconv $LIBS" 14971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14972/* end confdefs.h. */ 14973 14974/* Override any GCC internal prototype to avoid an error. 14975 Use char because int might match the return type of a GCC 14976 builtin and then its argument prototype would still apply. */ 14977#ifdef __cplusplus 14978extern "C" 14979#endif 14980char ngettext (); 14981int 14982main () 14983{ 14984return ngettext (); 14985 ; 14986 return 0; 14987} 14988_ACEOF 14989if ac_fn_c_try_link "$LINENO"; then : 14990 ac_cv_lib_intl_ngettext=yes 14991else 14992 ac_cv_lib_intl_ngettext=no 14993fi 14994rm -f core conftest.err conftest.$ac_objext \ 14995 conftest$ac_exeext conftest.$ac_ext 14996LIBS=$ac_check_lib_save_LIBS 14997fi 14998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 14999$as_echo "$ac_cv_lib_intl_ngettext" >&6; } 15000if test "x$ac_cv_lib_intl_ngettext" = xyes; then : 15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5 15002$as_echo_n "checking for dcgettext in -lintl... " >&6; } 15003if ${ac_cv_lib_intl_dcgettext+:} false; then : 15004 $as_echo_n "(cached) " >&6 15005else 15006 ac_check_lib_save_LIBS=$LIBS 15007LIBS="-lintl -liconv $LIBS" 15008cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15009/* end confdefs.h. */ 15010 15011/* Override any GCC internal prototype to avoid an error. 15012 Use char because int might match the return type of a GCC 15013 builtin and then its argument prototype would still apply. */ 15014#ifdef __cplusplus 15015extern "C" 15016#endif 15017char dcgettext (); 15018int 15019main () 15020{ 15021return dcgettext (); 15022 ; 15023 return 0; 15024} 15025_ACEOF 15026if ac_fn_c_try_link "$LINENO"; then : 15027 ac_cv_lib_intl_dcgettext=yes 15028else 15029 ac_cv_lib_intl_dcgettext=no 15030fi 15031rm -f core conftest.err conftest.$ac_objext \ 15032 conftest$ac_exeext conftest.$ac_ext 15033LIBS=$ac_check_lib_save_LIBS 15034fi 15035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5 15036$as_echo "$ac_cv_lib_intl_dcgettext" >&6; } 15037if test "x$ac_cv_lib_intl_dcgettext" = xyes; then : 15038 gt_cv_func_dgettext_libintl=yes 15039 libintl_extra_libs=-liconv 15040else 15041 : 15042fi 15043 15044else 15045 : 15046fi 15047 15048 fi 15049 15050 # 15051 # If we found libintl, then check in it for bind_textdomain_codeset(); 15052 # we'll prefer libc if neither have bind_textdomain_codeset(), 15053 # and both have dgettext and ngettext 15054 # 15055 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 15056 glib_save_LIBS="$LIBS" 15057 LIBS="$LIBS -lintl $libintl_extra_libs" 15058 unset ac_cv_func_bind_textdomain_codeset 15059 for ac_func in bind_textdomain_codeset 15060do : 15061 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 15062if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 15063 cat >>confdefs.h <<_ACEOF 15064#define HAVE_BIND_TEXTDOMAIN_CODESET 1 15065_ACEOF 15066 15067fi 15068done 15069 15070 LIBS="$glib_save_LIBS" 15071 15072 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 15073 gt_cv_func_dgettext_libc=no 15074 else 15075 if test "$gt_cv_func_dgettext_libc" = "yes" \ 15076 && test "$gt_cv_func_ngettext_libc" = "yes"; then 15077 gt_cv_func_dgettext_libintl=no 15078 fi 15079 fi 15080 fi 15081 fi 15082 15083 if test "$gt_cv_func_dgettext_libc" = "yes" \ 15084 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 15085 gt_cv_have_gettext=yes 15086 fi 15087 15088 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 15089 INTLLIBS="-lintl $libintl_extra_libs $INTL_MACOSX_LIBS" 15090 fi 15091 15092 if test "$gt_cv_have_gettext" = "yes"; then 15093 15094$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 15095 15096 # Extract the first word of "msgfmt", so it can be a program name with args. 15097set dummy msgfmt; ac_word=$2 15098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15099$as_echo_n "checking for $ac_word... " >&6; } 15100if ${ac_cv_path_MSGFMT+:} false; then : 15101 $as_echo_n "(cached) " >&6 15102else 15103 case "$MSGFMT" in 15104 /*) 15105 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 15106 ;; 15107 *) 15108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 15109 for ac_dir in $PATH; do 15110 test -z "$ac_dir" && ac_dir=. 15111 if test -f $ac_dir/$ac_word; then 15112 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 15113 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 15114 break 15115 fi 15116 fi 15117 done 15118 IFS="$ac_save_ifs" 15119 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 15120 ;; 15121esac 15122fi 15123MSGFMT="$ac_cv_path_MSGFMT" 15124if test "$MSGFMT" != "no"; then 15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 15126$as_echo "$MSGFMT" >&6; } 15127else 15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15129$as_echo "no" >&6; } 15130fi 15131 if test "$MSGFMT" != "no"; then 15132 glib_save_LIBS="$LIBS" 15133 LIBS="$LIBS $INTLLIBS" 15134 for ac_func in dcgettext 15135do : 15136 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext" 15137if test "x$ac_cv_func_dcgettext" = xyes; then : 15138 cat >>confdefs.h <<_ACEOF 15139#define HAVE_DCGETTEXT 1 15140_ACEOF 15141 15142fi 15143done 15144 15145 MSGFMT_OPTS= 15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5 15147$as_echo_n "checking if msgfmt accepts -c... " >&6; } 15148 cat >conftest.foo <<_ACEOF 15149 15150msgid "" 15151msgstr "" 15152"Content-Type: text/plain; charset=UTF-8\n" 15153"Project-Id-Version: test 1.0\n" 15154"PO-Revision-Date: 2007-02-15 12:01+0100\n" 15155"Last-Translator: test <foo@bar.xx>\n" 15156"Language-Team: C <LL@li.org>\n" 15157"MIME-Version: 1.0\n" 15158"Content-Transfer-Encoding: 8bit\n" 15159 15160_ACEOF 15161if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5 15162 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5 15163 ac_status=$? 15164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15165 test $ac_status = 0; }; then 15166 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15167$as_echo "yes" >&6; } 15168else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15169$as_echo "no" >&6; } 15170echo "$as_me: failed input was:" >&5 15171sed 's/^/| /' conftest.foo >&5 15172fi 15173 15174 # Extract the first word of "gmsgfmt", so it can be a program name with args. 15175set dummy gmsgfmt; ac_word=$2 15176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15177$as_echo_n "checking for $ac_word... " >&6; } 15178if ${ac_cv_path_GMSGFMT+:} false; then : 15179 $as_echo_n "(cached) " >&6 15180else 15181 case $GMSGFMT in 15182 [\\/]* | ?:[\\/]*) 15183 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 15184 ;; 15185 *) 15186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15187for as_dir in $PATH 15188do 15189 IFS=$as_save_IFS 15190 test -z "$as_dir" && as_dir=. 15191 for ac_exec_ext in '' $ac_executable_extensions; do 15192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15193 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 15194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15195 break 2 15196 fi 15197done 15198 done 15199IFS=$as_save_IFS 15200 15201 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 15202 ;; 15203esac 15204fi 15205GMSGFMT=$ac_cv_path_GMSGFMT 15206if test -n "$GMSGFMT"; then 15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 15208$as_echo "$GMSGFMT" >&6; } 15209else 15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15211$as_echo "no" >&6; } 15212fi 15213 15214 15215 # Extract the first word of "xgettext", so it can be a program name with args. 15216set dummy xgettext; ac_word=$2 15217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15218$as_echo_n "checking for $ac_word... " >&6; } 15219if ${ac_cv_path_XGETTEXT+:} false; then : 15220 $as_echo_n "(cached) " >&6 15221else 15222 case "$XGETTEXT" in 15223 /*) 15224 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 15225 ;; 15226 *) 15227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 15228 for ac_dir in $PATH; do 15229 test -z "$ac_dir" && ac_dir=. 15230 if test -f $ac_dir/$ac_word; then 15231 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 15232 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 15233 break 15234 fi 15235 fi 15236 done 15237 IFS="$ac_save_ifs" 15238 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 15239 ;; 15240esac 15241fi 15242XGETTEXT="$ac_cv_path_XGETTEXT" 15243if test "$XGETTEXT" != ":"; then 15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 15245$as_echo "$XGETTEXT" >&6; } 15246else 15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15248$as_echo "no" >&6; } 15249fi 15250 15251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15252/* end confdefs.h. */ 15253 15254int 15255main () 15256{ 15257extern int _nl_msg_cat_cntr; 15258 return _nl_msg_cat_cntr 15259 ; 15260 return 0; 15261} 15262_ACEOF 15263if ac_fn_c_try_link "$LINENO"; then : 15264 CATOBJEXT=.gmo 15265 DATADIRNAME=share 15266else 15267 case $host in 15268 *-*-solaris*) 15269 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 15270if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 15271 CATOBJEXT=.gmo 15272 DATADIRNAME=share 15273else 15274 CATOBJEXT=.mo 15275 DATADIRNAME=lib 15276fi 15277 15278 ;; 15279 *-*-openbsd*) 15280 CATOBJEXT=.mo 15281 DATADIRNAME=share 15282 ;; 15283 *) 15284 CATOBJEXT=.mo 15285 DATADIRNAME=lib 15286 ;; 15287 esac 15288fi 15289rm -f core conftest.err conftest.$ac_objext \ 15290 conftest$ac_exeext conftest.$ac_ext 15291 LIBS="$glib_save_LIBS" 15292 INSTOBJEXT=.mo 15293 else 15294 gt_cv_have_gettext=no 15295 fi 15296 fi 15297 15298fi 15299 15300 15301 15302 if test "$gt_cv_have_gettext" = "yes" ; then 15303 15304$as_echo "#define ENABLE_NLS 1" >>confdefs.h 15305 15306 fi 15307 15308 if test "$XGETTEXT" != ":"; then 15309 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 15310 : ; 15311 else 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 15313$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 15314 XGETTEXT=":" 15315 fi 15316 fi 15317 15318 # We need to process the po/ directory. 15319 POSUB=po 15320 15321 ac_config_commands="$ac_config_commands default-1" 15322 15323 15324 for lang in $ALL_LINGUAS; do 15325 GMOFILES="$GMOFILES $lang.gmo" 15326 POFILES="$POFILES $lang.po" 15327 done 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 if test "$gt_cv_have_gettext" = "yes"; then 15342 if test "x$ALL_LINGUAS" = "x"; then 15343 LINGUAS= 15344 else 15345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 15346$as_echo_n "checking for catalogs to be installed... " >&6; } 15347 NEW_LINGUAS= 15348 for presentlang in $ALL_LINGUAS; do 15349 useit=no 15350 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 15351 desiredlanguages="$LINGUAS" 15352 else 15353 desiredlanguages="$ALL_LINGUAS" 15354 fi 15355 for desiredlang in $desiredlanguages; do 15356 # Use the presentlang catalog if desiredlang is 15357 # a. equal to presentlang, or 15358 # b. a variant of presentlang (because in this case, 15359 # presentlang can be used as a fallback for messages 15360 # which are not translated in the desiredlang catalog). 15361 case "$desiredlang" in 15362 "$presentlang"*) useit=yes;; 15363 esac 15364 done 15365 if test $useit = yes; then 15366 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 15367 fi 15368 done 15369 LINGUAS=$NEW_LINGUAS 15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 15371$as_echo "$LINGUAS" >&6; } 15372 fi 15373 15374 if test -n "$LINGUAS"; then 15375 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 15376 fi 15377 fi 15378 15379 MKINSTALLDIRS= 15380 if test -n "$ac_aux_dir"; then 15381 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 15382 fi 15383 if test -z "$MKINSTALLDIRS"; then 15384 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 15385 fi 15386 15387 15388 test -d po || mkdir po 15389 if test "x$srcdir" != "x."; then 15390 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 15391 posrcprefix="$srcdir/" 15392 else 15393 posrcprefix="../$srcdir/" 15394 fi 15395 else 15396 posrcprefix="../" 15397 fi 15398 rm -f po/POTFILES 15399 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 15400 < $srcdir/po/POTFILES.in > po/POTFILES 15401 15402 15403# check for flex ... nip needs to adjust itself a bit 15404if test "${LEX}" = "flex"; then 15405 15406$as_echo "#define HAVE_FLEX 1" >>confdefs.h 15407 15408fi 15409 15410# flex >= 2.5.36 uses a nonstandard type for yyleng 15411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yyleng is yy_size_t" >&5 15412$as_echo_n "checking whether yyleng is yy_size_t... " >&6; } 15413cat > conftest.l <<EOF 15414%% 15415%% 15416yy_size_t yyleng; 15417EOF 15418$LEX conftest.l 15419cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15420/* end confdefs.h. */ 15421 `cat $LEX_OUTPUT_ROOT.c` 15422_ACEOF 15423if ac_fn_c_try_compile "$LINENO"; then : 15424 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15426$as_echo "yes" >&6; } 15427 15428$as_echo "#define YYLENG_IS_YY_SIZE_T 1" >>confdefs.h 15429 15430 15431else 15432 15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15434$as_echo "no" >&6; } 15435 15436fi 15437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15438rm -f conftest.l $LEX_OUTPUT_ROOT.c 15439 15440# get packages we need 15441# gtk before 2.4.9 crashes with the way we use combobox :-( 15442# vips before 7.30 used "vips-x.y" as the pkg name 15443 15444 15445 15446 15447 15448 15449 15450if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15451 if test -n "$ac_tool_prefix"; then 15452 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15453set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15455$as_echo_n "checking for $ac_word... " >&6; } 15456if ${ac_cv_path_PKG_CONFIG+:} false; then : 15457 $as_echo_n "(cached) " >&6 15458else 15459 case $PKG_CONFIG in 15460 [\\/]* | ?:[\\/]*) 15461 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15462 ;; 15463 *) 15464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15465for as_dir in $PATH 15466do 15467 IFS=$as_save_IFS 15468 test -z "$as_dir" && as_dir=. 15469 for ac_exec_ext in '' $ac_executable_extensions; do 15470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15471 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15473 break 2 15474 fi 15475done 15476 done 15477IFS=$as_save_IFS 15478 15479 ;; 15480esac 15481fi 15482PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15483if test -n "$PKG_CONFIG"; then 15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15485$as_echo "$PKG_CONFIG" >&6; } 15486else 15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15488$as_echo "no" >&6; } 15489fi 15490 15491 15492fi 15493if test -z "$ac_cv_path_PKG_CONFIG"; then 15494 ac_pt_PKG_CONFIG=$PKG_CONFIG 15495 # Extract the first word of "pkg-config", so it can be a program name with args. 15496set dummy pkg-config; ac_word=$2 15497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15498$as_echo_n "checking for $ac_word... " >&6; } 15499if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 15500 $as_echo_n "(cached) " >&6 15501else 15502 case $ac_pt_PKG_CONFIG in 15503 [\\/]* | ?:[\\/]*) 15504 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15505 ;; 15506 *) 15507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15508for as_dir in $PATH 15509do 15510 IFS=$as_save_IFS 15511 test -z "$as_dir" && as_dir=. 15512 for ac_exec_ext in '' $ac_executable_extensions; do 15513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15514 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15516 break 2 15517 fi 15518done 15519 done 15520IFS=$as_save_IFS 15521 15522 ;; 15523esac 15524fi 15525ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15526if test -n "$ac_pt_PKG_CONFIG"; then 15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15528$as_echo "$ac_pt_PKG_CONFIG" >&6; } 15529else 15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15531$as_echo "no" >&6; } 15532fi 15533 15534 if test "x$ac_pt_PKG_CONFIG" = x; then 15535 PKG_CONFIG="" 15536 else 15537 case $cross_compiling:$ac_tool_warned in 15538yes:) 15539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15541ac_tool_warned=yes ;; 15542esac 15543 PKG_CONFIG=$ac_pt_PKG_CONFIG 15544 fi 15545else 15546 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15547fi 15548 15549fi 15550if test -n "$PKG_CONFIG"; then 15551 _pkg_min_version=0.9.0 15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15553$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15554 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15556$as_echo "yes" >&6; } 15557 else 15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15559$as_echo "no" >&6; } 15560 PKG_CONFIG="" 15561 fi 15562fi 15563 15564pkg_failed=no 15565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for REQUIRED_PACKAGES" >&5 15566$as_echo_n "checking for REQUIRED_PACKAGES... " >&6; } 15567 15568if test -n "$REQUIRED_PACKAGES_CFLAGS"; then 15569 pkg_cv_REQUIRED_PACKAGES_CFLAGS="$REQUIRED_PACKAGES_CFLAGS" 15570 elif test -n "$PKG_CONFIG"; then 15571 if test -n "$PKG_CONFIG" && \ 15572 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0 gthread-2.0 gtk+-2.0 >= 2.4.9 libxml-2.0 vips >= 7.30\""; } >&5 15573 ($PKG_CONFIG --exists --print-errors "gmodule-2.0 gthread-2.0 gtk+-2.0 >= 2.4.9 libxml-2.0 vips >= 7.30") 2>&5 15574 ac_status=$? 15575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15576 test $ac_status = 0; }; then 15577 pkg_cv_REQUIRED_PACKAGES_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0 gthread-2.0 gtk+-2.0 >= 2.4.9 libxml-2.0 vips >= 7.30" 2>/dev/null` 15578 test "x$?" != "x0" && pkg_failed=yes 15579else 15580 pkg_failed=yes 15581fi 15582 else 15583 pkg_failed=untried 15584fi 15585if test -n "$REQUIRED_PACKAGES_LIBS"; then 15586 pkg_cv_REQUIRED_PACKAGES_LIBS="$REQUIRED_PACKAGES_LIBS" 15587 elif test -n "$PKG_CONFIG"; then 15588 if test -n "$PKG_CONFIG" && \ 15589 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0 gthread-2.0 gtk+-2.0 >= 2.4.9 libxml-2.0 vips >= 7.30\""; } >&5 15590 ($PKG_CONFIG --exists --print-errors "gmodule-2.0 gthread-2.0 gtk+-2.0 >= 2.4.9 libxml-2.0 vips >= 7.30") 2>&5 15591 ac_status=$? 15592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15593 test $ac_status = 0; }; then 15594 pkg_cv_REQUIRED_PACKAGES_LIBS=`$PKG_CONFIG --libs "gmodule-2.0 gthread-2.0 gtk+-2.0 >= 2.4.9 libxml-2.0 vips >= 7.30" 2>/dev/null` 15595 test "x$?" != "x0" && pkg_failed=yes 15596else 15597 pkg_failed=yes 15598fi 15599 else 15600 pkg_failed=untried 15601fi 15602 15603 15604 15605if test $pkg_failed = yes; then 15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15607$as_echo "no" >&6; } 15608 15609if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15610 _pkg_short_errors_supported=yes 15611else 15612 _pkg_short_errors_supported=no 15613fi 15614 if test $_pkg_short_errors_supported = yes; then 15615 REQUIRED_PACKAGES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0 gthread-2.0 gtk+-2.0 >= 2.4.9 libxml-2.0 vips >= 7.30" 2>&1` 15616 else 15617 REQUIRED_PACKAGES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0 gthread-2.0 gtk+-2.0 >= 2.4.9 libxml-2.0 vips >= 7.30" 2>&1` 15618 fi 15619 # Put the nasty error message in config.log where it belongs 15620 echo "$REQUIRED_PACKAGES_PKG_ERRORS" >&5 15621 15622 as_fn_error $? "Package requirements (gmodule-2.0 gthread-2.0 gtk+-2.0 >= 2.4.9 libxml-2.0 vips >= 7.30) were not met: 15623 15624$REQUIRED_PACKAGES_PKG_ERRORS 15625 15626Consider adjusting the PKG_CONFIG_PATH environment variable if you 15627installed software in a non-standard prefix. 15628 15629Alternatively, you may set the environment variables REQUIRED_PACKAGES_CFLAGS 15630and REQUIRED_PACKAGES_LIBS to avoid the need to call pkg-config. 15631See the pkg-config man page for more details." "$LINENO" 5 15632elif test $pkg_failed = untried; then 15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15634$as_echo "no" >&6; } 15635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15637as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 15638is in your PATH or set the PKG_CONFIG environment variable to the full 15639path to pkg-config. 15640 15641Alternatively, you may set the environment variables REQUIRED_PACKAGES_CFLAGS 15642and REQUIRED_PACKAGES_LIBS to avoid the need to call pkg-config. 15643See the pkg-config man page for more details. 15644 15645To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15646See \`config.log' for more details" "$LINENO" 5; } 15647else 15648 REQUIRED_PACKAGES_CFLAGS=$pkg_cv_REQUIRED_PACKAGES_CFLAGS 15649 REQUIRED_PACKAGES_LIBS=$pkg_cv_REQUIRED_PACKAGES_LIBS 15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15651$as_echo "yes" >&6; } 15652 15653fi 15654IP_CFLAGS="$REQUIRED_PACKAGES_CFLAGS $IP_CFLAGS" 15655IP_LIBS="$REQUIRED_PACKAGES_LIBS $IP_LIBS" 15656 15657# gdk_window_set_opacity() was added in gtk 2.12 15658if test -n "$PKG_CONFIG" && \ 15659 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.12\""; } >&5 15660 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.12") 2>&5 15661 ac_status=$? 15662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15663 test $ac_status = 0; }; then 15664 nip_set_opacity=yes 15665else 15666 nip_set_opacity=no 15667 15668fi 15669 15670if test x"$nip_set_opacity" = x"yes"; then 15671 15672$as_echo "#define HAVE_SET_OPACITY 1" >>confdefs.h 15673 15674fi 15675 15676# GtkInfoBar was added in gtk 2.18 15677if test -n "$PKG_CONFIG" && \ 15678 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18\""; } >&5 15679 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18") 2>&5 15680 ac_status=$? 15681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15682 test $ac_status = 0; }; then 15683 nip_use_infobar=yes 15684else 15685 nip_use_infobar=no 15686 15687fi 15688 15689if test x"$nip_use_infobar" = x"yes"; then 15690 15691$as_echo "#define USE_INFOBAR 1" >>confdefs.h 15692 15693fi 15694 15695# notebook action widgets came in 2.20 15696if test -n "$PKG_CONFIG" && \ 15697 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.20\""; } >&5 15698 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.20") 2>&5 15699 ac_status=$? 15700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15701 test $ac_status = 0; }; then 15702 nip_use_notebook_action=yes 15703else 15704 nip_use_notebook_action=no 15705 15706fi 15707 15708if test x"$nip_use_notebook_action" = x"yes"; then 15709 15710$as_echo "#define USE_NOTEBOOK_ACTION 1" >>confdefs.h 15711 15712fi 15713 15714# notebook group names widgets came in 2.24 15715if test -n "$PKG_CONFIG" && \ 15716 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.24\""; } >&5 15717 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.24") 2>&5 15718 ac_status=$? 15719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15720 test $ac_status = 0; }; then 15721 nip_use_notebook_group_name=yes 15722else 15723 nip_use_notebook_group_name=no 15724 15725fi 15726 15727if test x"$nip_use_notebook_group_name" = x"yes"; then 15728 15729$as_echo "#define USE_NOTEBOOK_GROUP_NAME 1" >>confdefs.h 15730 15731fi 15732 15733# GRegex was added in glib-2.14 15734# we need it for regex searching in the program window 15735if test -n "$PKG_CONFIG" && \ 15736 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.14\""; } >&5 15737 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.14") 2>&5 15738 ac_status=$? 15739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15740 test $ac_status = 0; }; then 15741 nip_use_gregex=yes 15742else 15743 nip_use_gregex=no 15744 15745fi 15746 15747if test x"$nip_use_gregex" = x"yes"; then 15748 15749$as_echo "#define HAVE_GREGEX 1" >>confdefs.h 15750 15751fi 15752 15753# Check for the function strccpy in libgen 15754ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" 15755if test "x$ac_cv_header_libgen_h" = xyes; then : 15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strccpy in -lgen" >&5 15757$as_echo_n "checking for strccpy in -lgen... " >&6; } 15758if ${ac_cv_lib_gen_strccpy+:} false; then : 15759 $as_echo_n "(cached) " >&6 15760else 15761 ac_check_lib_save_LIBS=$LIBS 15762LIBS="-lgen $LIBS" 15763cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15764/* end confdefs.h. */ 15765 15766/* Override any GCC internal prototype to avoid an error. 15767 Use char because int might match the return type of a GCC 15768 builtin and then its argument prototype would still apply. */ 15769#ifdef __cplusplus 15770extern "C" 15771#endif 15772char strccpy (); 15773int 15774main () 15775{ 15776return strccpy (); 15777 ; 15778 return 0; 15779} 15780_ACEOF 15781if ac_fn_c_try_link "$LINENO"; then : 15782 ac_cv_lib_gen_strccpy=yes 15783else 15784 ac_cv_lib_gen_strccpy=no 15785fi 15786rm -f core conftest.err conftest.$ac_objext \ 15787 conftest$ac_exeext conftest.$ac_ext 15788LIBS=$ac_check_lib_save_LIBS 15789fi 15790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_strccpy" >&5 15791$as_echo "$ac_cv_lib_gen_strccpy" >&6; } 15792if test "x$ac_cv_lib_gen_strccpy" = xyes; then : 15793 15794$as_echo "#define HAVE_STRCCPY 1" >>confdefs.h 15795 15796 IP_LIBS="$IP_LIBS -lgen" 15797 15798fi 15799 15800fi 15801 15802 15803 15804# Checks for header files. 15805ac_header_dirent=no 15806for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 15807 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 15808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 15809$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 15810if eval \${$as_ac_Header+:} false; then : 15811 $as_echo_n "(cached) " >&6 15812else 15813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15814/* end confdefs.h. */ 15815#include <sys/types.h> 15816#include <$ac_hdr> 15817 15818int 15819main () 15820{ 15821if ((DIR *) 0) 15822return 0; 15823 ; 15824 return 0; 15825} 15826_ACEOF 15827if ac_fn_c_try_compile "$LINENO"; then : 15828 eval "$as_ac_Header=yes" 15829else 15830 eval "$as_ac_Header=no" 15831fi 15832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15833fi 15834eval ac_res=\$$as_ac_Header 15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15836$as_echo "$ac_res" >&6; } 15837if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15838 cat >>confdefs.h <<_ACEOF 15839#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 15840_ACEOF 15841 15842ac_header_dirent=$ac_hdr; break 15843fi 15844 15845done 15846# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 15847if test $ac_header_dirent = dirent.h; then 15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 15849$as_echo_n "checking for library containing opendir... " >&6; } 15850if ${ac_cv_search_opendir+:} false; then : 15851 $as_echo_n "(cached) " >&6 15852else 15853 ac_func_search_save_LIBS=$LIBS 15854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15855/* end confdefs.h. */ 15856 15857/* Override any GCC internal prototype to avoid an error. 15858 Use char because int might match the return type of a GCC 15859 builtin and then its argument prototype would still apply. */ 15860#ifdef __cplusplus 15861extern "C" 15862#endif 15863char opendir (); 15864int 15865main () 15866{ 15867return opendir (); 15868 ; 15869 return 0; 15870} 15871_ACEOF 15872for ac_lib in '' dir; do 15873 if test -z "$ac_lib"; then 15874 ac_res="none required" 15875 else 15876 ac_res=-l$ac_lib 15877 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15878 fi 15879 if ac_fn_c_try_link "$LINENO"; then : 15880 ac_cv_search_opendir=$ac_res 15881fi 15882rm -f core conftest.err conftest.$ac_objext \ 15883 conftest$ac_exeext 15884 if ${ac_cv_search_opendir+:} false; then : 15885 break 15886fi 15887done 15888if ${ac_cv_search_opendir+:} false; then : 15889 15890else 15891 ac_cv_search_opendir=no 15892fi 15893rm conftest.$ac_ext 15894LIBS=$ac_func_search_save_LIBS 15895fi 15896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 15897$as_echo "$ac_cv_search_opendir" >&6; } 15898ac_res=$ac_cv_search_opendir 15899if test "$ac_res" != no; then : 15900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15901 15902fi 15903 15904else 15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 15906$as_echo_n "checking for library containing opendir... " >&6; } 15907if ${ac_cv_search_opendir+:} false; then : 15908 $as_echo_n "(cached) " >&6 15909else 15910 ac_func_search_save_LIBS=$LIBS 15911cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15912/* end confdefs.h. */ 15913 15914/* Override any GCC internal prototype to avoid an error. 15915 Use char because int might match the return type of a GCC 15916 builtin and then its argument prototype would still apply. */ 15917#ifdef __cplusplus 15918extern "C" 15919#endif 15920char opendir (); 15921int 15922main () 15923{ 15924return opendir (); 15925 ; 15926 return 0; 15927} 15928_ACEOF 15929for ac_lib in '' x; do 15930 if test -z "$ac_lib"; then 15931 ac_res="none required" 15932 else 15933 ac_res=-l$ac_lib 15934 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15935 fi 15936 if ac_fn_c_try_link "$LINENO"; then : 15937 ac_cv_search_opendir=$ac_res 15938fi 15939rm -f core conftest.err conftest.$ac_objext \ 15940 conftest$ac_exeext 15941 if ${ac_cv_search_opendir+:} false; then : 15942 break 15943fi 15944done 15945if ${ac_cv_search_opendir+:} false; then : 15946 15947else 15948 ac_cv_search_opendir=no 15949fi 15950rm conftest.$ac_ext 15951LIBS=$ac_func_search_save_LIBS 15952fi 15953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 15954$as_echo "$ac_cv_search_opendir" >&6; } 15955ac_res=$ac_cv_search_opendir 15956if test "$ac_res" != no; then : 15957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15958 15959fi 15960 15961fi 15962 15963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 15964$as_echo_n "checking for ANSI C header files... " >&6; } 15965if ${ac_cv_header_stdc+:} false; then : 15966 $as_echo_n "(cached) " >&6 15967else 15968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15969/* end confdefs.h. */ 15970#include <stdlib.h> 15971#include <stdarg.h> 15972#include <string.h> 15973#include <float.h> 15974 15975int 15976main () 15977{ 15978 15979 ; 15980 return 0; 15981} 15982_ACEOF 15983if ac_fn_c_try_compile "$LINENO"; then : 15984 ac_cv_header_stdc=yes 15985else 15986 ac_cv_header_stdc=no 15987fi 15988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15989 15990if test $ac_cv_header_stdc = yes; then 15991 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15993/* end confdefs.h. */ 15994#include <string.h> 15995 15996_ACEOF 15997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15998 $EGREP "memchr" >/dev/null 2>&1; then : 15999 16000else 16001 ac_cv_header_stdc=no 16002fi 16003rm -f conftest* 16004 16005fi 16006 16007if test $ac_cv_header_stdc = yes; then 16008 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 16009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16010/* end confdefs.h. */ 16011#include <stdlib.h> 16012 16013_ACEOF 16014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16015 $EGREP "free" >/dev/null 2>&1; then : 16016 16017else 16018 ac_cv_header_stdc=no 16019fi 16020rm -f conftest* 16021 16022fi 16023 16024if test $ac_cv_header_stdc = yes; then 16025 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 16026 if test "$cross_compiling" = yes; then : 16027 : 16028else 16029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16030/* end confdefs.h. */ 16031#include <ctype.h> 16032#include <stdlib.h> 16033#if ((' ' & 0x0FF) == 0x020) 16034# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 16035# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 16036#else 16037# define ISLOWER(c) \ 16038 (('a' <= (c) && (c) <= 'i') \ 16039 || ('j' <= (c) && (c) <= 'r') \ 16040 || ('s' <= (c) && (c) <= 'z')) 16041# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 16042#endif 16043 16044#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 16045int 16046main () 16047{ 16048 int i; 16049 for (i = 0; i < 256; i++) 16050 if (XOR (islower (i), ISLOWER (i)) 16051 || toupper (i) != TOUPPER (i)) 16052 return 2; 16053 return 0; 16054} 16055_ACEOF 16056if ac_fn_c_try_run "$LINENO"; then : 16057 16058else 16059 ac_cv_header_stdc=no 16060fi 16061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16062 conftest.$ac_objext conftest.beam conftest.$ac_ext 16063fi 16064 16065fi 16066fi 16067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 16068$as_echo "$ac_cv_header_stdc" >&6; } 16069if test $ac_cv_header_stdc = yes; then 16070 16071$as_echo "#define STDC_HEADERS 1" >>confdefs.h 16072 16073fi 16074 16075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 16076$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 16077if ${ac_cv_header_sys_wait_h+:} false; then : 16078 $as_echo_n "(cached) " >&6 16079else 16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16081/* end confdefs.h. */ 16082#include <sys/types.h> 16083#include <sys/wait.h> 16084#ifndef WEXITSTATUS 16085# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 16086#endif 16087#ifndef WIFEXITED 16088# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 16089#endif 16090 16091int 16092main () 16093{ 16094 int s; 16095 wait (&s); 16096 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 16097 ; 16098 return 0; 16099} 16100_ACEOF 16101if ac_fn_c_try_compile "$LINENO"; then : 16102 ac_cv_header_sys_wait_h=yes 16103else 16104 ac_cv_header_sys_wait_h=no 16105fi 16106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16107fi 16108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 16109$as_echo "$ac_cv_header_sys_wait_h" >&6; } 16110if test $ac_cv_header_sys_wait_h = yes; then 16111 16112$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 16113 16114fi 16115 16116for ac_header in limits.h pwd.h fnmatch.h sys/statvfs.h sys/vfs.h sys/mount.h sys/resource.h sys/wait.h malloc.h sys/time.h sys/param.h unistd.h 16117do : 16118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16119ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16120if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16121 cat >>confdefs.h <<_ACEOF 16122#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16123_ACEOF 16124 16125fi 16126 16127done 16128 16129 16130# Checks for typedefs, structures, and compiler characteristics. 16131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16132$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16133if ${ac_cv_c_const+:} false; then : 16134 $as_echo_n "(cached) " >&6 16135else 16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16137/* end confdefs.h. */ 16138 16139int 16140main () 16141{ 16142 16143#ifndef __cplusplus 16144 /* Ultrix mips cc rejects this sort of thing. */ 16145 typedef int charset[2]; 16146 const charset cs = { 0, 0 }; 16147 /* SunOS 4.1.1 cc rejects this. */ 16148 char const *const *pcpcc; 16149 char **ppc; 16150 /* NEC SVR4.0.2 mips cc rejects this. */ 16151 struct point {int x, y;}; 16152 static struct point const zero = {0,0}; 16153 /* AIX XL C 1.02.0.0 rejects this. 16154 It does not let you subtract one const X* pointer from another in 16155 an arm of an if-expression whose if-part is not a constant 16156 expression */ 16157 const char *g = "string"; 16158 pcpcc = &g + (g ? g-g : 0); 16159 /* HPUX 7.0 cc rejects these. */ 16160 ++pcpcc; 16161 ppc = (char**) pcpcc; 16162 pcpcc = (char const *const *) ppc; 16163 { /* SCO 3.2v4 cc rejects this sort of thing. */ 16164 char tx; 16165 char *t = &tx; 16166 char const *s = 0 ? (char *) 0 : (char const *) 0; 16167 16168 *t++ = 0; 16169 if (s) return 0; 16170 } 16171 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16172 int x[] = {25, 17}; 16173 const int *foo = &x[0]; 16174 ++foo; 16175 } 16176 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16177 typedef const int *iptr; 16178 iptr p = 0; 16179 ++p; 16180 } 16181 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 16182 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16183 struct s { int j; const int *ap[3]; } bx; 16184 struct s *b = &bx; b->j = 5; 16185 } 16186 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16187 const int foo = 10; 16188 if (!foo) return 0; 16189 } 16190 return !cs[0] && !zero.x; 16191#endif 16192 16193 ; 16194 return 0; 16195} 16196_ACEOF 16197if ac_fn_c_try_compile "$LINENO"; then : 16198 ac_cv_c_const=yes 16199else 16200 ac_cv_c_const=no 16201fi 16202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16203fi 16204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16205$as_echo "$ac_cv_c_const" >&6; } 16206if test $ac_cv_c_const = no; then 16207 16208$as_echo "#define const /**/" >>confdefs.h 16209 16210fi 16211 16212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 16213$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 16214if ${ac_cv_struct_tm+:} false; then : 16215 $as_echo_n "(cached) " >&6 16216else 16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16218/* end confdefs.h. */ 16219#include <sys/types.h> 16220#include <time.h> 16221 16222int 16223main () 16224{ 16225struct tm tm; 16226 int *p = &tm.tm_sec; 16227 return !p; 16228 ; 16229 return 0; 16230} 16231_ACEOF 16232if ac_fn_c_try_compile "$LINENO"; then : 16233 ac_cv_struct_tm=time.h 16234else 16235 ac_cv_struct_tm=sys/time.h 16236fi 16237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16238fi 16239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 16240$as_echo "$ac_cv_struct_tm" >&6; } 16241if test $ac_cv_struct_tm = sys/time.h; then 16242 16243$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 16244 16245fi 16246 16247 16248# Checks for library functions. 16249ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16250if test "x$ac_cv_type_size_t" = xyes; then : 16251 16252else 16253 16254cat >>confdefs.h <<_ACEOF 16255#define size_t unsigned int 16256_ACEOF 16257 16258fi 16259 16260# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 16261# for constant arguments. Useless! 16262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 16263$as_echo_n "checking for working alloca.h... " >&6; } 16264if ${ac_cv_working_alloca_h+:} false; then : 16265 $as_echo_n "(cached) " >&6 16266else 16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16268/* end confdefs.h. */ 16269#include <alloca.h> 16270int 16271main () 16272{ 16273char *p = (char *) alloca (2 * sizeof (int)); 16274 if (p) return 0; 16275 ; 16276 return 0; 16277} 16278_ACEOF 16279if ac_fn_c_try_link "$LINENO"; then : 16280 ac_cv_working_alloca_h=yes 16281else 16282 ac_cv_working_alloca_h=no 16283fi 16284rm -f core conftest.err conftest.$ac_objext \ 16285 conftest$ac_exeext conftest.$ac_ext 16286fi 16287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 16288$as_echo "$ac_cv_working_alloca_h" >&6; } 16289if test $ac_cv_working_alloca_h = yes; then 16290 16291$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 16292 16293fi 16294 16295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 16296$as_echo_n "checking for alloca... " >&6; } 16297if ${ac_cv_func_alloca_works+:} false; then : 16298 $as_echo_n "(cached) " >&6 16299else 16300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16301/* end confdefs.h. */ 16302#ifdef __GNUC__ 16303# define alloca __builtin_alloca 16304#else 16305# ifdef _MSC_VER 16306# include <malloc.h> 16307# define alloca _alloca 16308# else 16309# ifdef HAVE_ALLOCA_H 16310# include <alloca.h> 16311# else 16312# ifdef _AIX 16313 #pragma alloca 16314# else 16315# ifndef alloca /* predefined by HP cc +Olibcalls */ 16316void *alloca (size_t); 16317# endif 16318# endif 16319# endif 16320# endif 16321#endif 16322 16323int 16324main () 16325{ 16326char *p = (char *) alloca (1); 16327 if (p) return 0; 16328 ; 16329 return 0; 16330} 16331_ACEOF 16332if ac_fn_c_try_link "$LINENO"; then : 16333 ac_cv_func_alloca_works=yes 16334else 16335 ac_cv_func_alloca_works=no 16336fi 16337rm -f core conftest.err conftest.$ac_objext \ 16338 conftest$ac_exeext conftest.$ac_ext 16339fi 16340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 16341$as_echo "$ac_cv_func_alloca_works" >&6; } 16342 16343if test $ac_cv_func_alloca_works = yes; then 16344 16345$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 16346 16347else 16348 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 16349# that cause trouble. Some versions do not even contain alloca or 16350# contain a buggy version. If you still want to use their alloca, 16351# use ar to extract alloca.o from them instead of compiling alloca.c. 16352 16353ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 16354 16355$as_echo "#define C_ALLOCA 1" >>confdefs.h 16356 16357 16358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 16359$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 16360if ${ac_cv_os_cray+:} false; then : 16361 $as_echo_n "(cached) " >&6 16362else 16363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16364/* end confdefs.h. */ 16365#if defined CRAY && ! defined CRAY2 16366webecray 16367#else 16368wenotbecray 16369#endif 16370 16371_ACEOF 16372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16373 $EGREP "webecray" >/dev/null 2>&1; then : 16374 ac_cv_os_cray=yes 16375else 16376 ac_cv_os_cray=no 16377fi 16378rm -f conftest* 16379 16380fi 16381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 16382$as_echo "$ac_cv_os_cray" >&6; } 16383if test $ac_cv_os_cray = yes; then 16384 for ac_func in _getb67 GETB67 getb67; do 16385 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16386ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16387if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16388 16389cat >>confdefs.h <<_ACEOF 16390#define CRAY_STACKSEG_END $ac_func 16391_ACEOF 16392 16393 break 16394fi 16395 16396 done 16397fi 16398 16399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 16400$as_echo_n "checking stack direction for C alloca... " >&6; } 16401if ${ac_cv_c_stack_direction+:} false; then : 16402 $as_echo_n "(cached) " >&6 16403else 16404 if test "$cross_compiling" = yes; then : 16405 ac_cv_c_stack_direction=0 16406else 16407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16408/* end confdefs.h. */ 16409$ac_includes_default 16410int 16411find_stack_direction (int *addr, int depth) 16412{ 16413 int dir, dummy = 0; 16414 if (! addr) 16415 addr = &dummy; 16416 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 16417 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 16418 return dir + dummy; 16419} 16420 16421int 16422main (int argc, char **argv) 16423{ 16424 return find_stack_direction (0, argc + !argv + 20) < 0; 16425} 16426_ACEOF 16427if ac_fn_c_try_run "$LINENO"; then : 16428 ac_cv_c_stack_direction=1 16429else 16430 ac_cv_c_stack_direction=-1 16431fi 16432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16433 conftest.$ac_objext conftest.beam conftest.$ac_ext 16434fi 16435 16436fi 16437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 16438$as_echo "$ac_cv_c_stack_direction" >&6; } 16439cat >>confdefs.h <<_ACEOF 16440#define STACK_DIRECTION $ac_cv_c_stack_direction 16441_ACEOF 16442 16443 16444fi 16445 16446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5 16447$as_echo_n "checking for working POSIX fnmatch... " >&6; } 16448if ${ac_cv_func_fnmatch_works+:} false; then : 16449 $as_echo_n "(cached) " >&6 16450else 16451 # Some versions of Solaris, SCO, and the GNU C Library 16452 # have a broken or incompatible fnmatch. 16453 # So we run a test program. If we are cross-compiling, take no chance. 16454 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test. 16455 if test "$cross_compiling" = yes; then : 16456 ac_cv_func_fnmatch_works=cross 16457else 16458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16459/* end confdefs.h. */ 16460#include <fnmatch.h> 16461# define y(a, b, c) (fnmatch (a, b, c) == 0) 16462# define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH) 16463 16464int 16465main () 16466{ 16467return 16468 (!(y ("a*", "abc", 0) 16469 && n ("d*/*1", "d/s/1", FNM_PATHNAME) 16470 && y ("a\\\\bc", "abc", 0) 16471 && n ("a\\\\bc", "abc", FNM_NOESCAPE) 16472 && y ("*x", ".x", 0) 16473 && n ("*x", ".x", FNM_PERIOD) 16474 && 1)); 16475 ; 16476 return 0; 16477} 16478_ACEOF 16479if ac_fn_c_try_run "$LINENO"; then : 16480 ac_cv_func_fnmatch_works=yes 16481else 16482 ac_cv_func_fnmatch_works=no 16483fi 16484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16485 conftest.$ac_objext conftest.beam conftest.$ac_ext 16486fi 16487 16488fi 16489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5 16490$as_echo "$ac_cv_func_fnmatch_works" >&6; } 16491if test $ac_cv_func_fnmatch_works = yes; then : 16492 16493$as_echo "#define HAVE_FNMATCH 1" >>confdefs.h 16494 16495fi 16496 16497 16498for ac_func in vprintf 16499do : 16500 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 16501if test "x$ac_cv_func_vprintf" = xyes; then : 16502 cat >>confdefs.h <<_ACEOF 16503#define HAVE_VPRINTF 1 16504_ACEOF 16505 16506ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 16507if test "x$ac_cv_func__doprnt" = xyes; then : 16508 16509$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 16510 16511fi 16512 16513fi 16514done 16515 16516 16517for ac_func in geteuid getcwd getpwnam getrlimit getpwent getwd putenv regcomp strcspn strspn strstr 16518do : 16519 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16520ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16521if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16522 cat >>confdefs.h <<_ACEOF 16523#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16524_ACEOF 16525 16526fi 16527done 16528 16529 16530# need fftw so we load and unload wisdom on startup/shutdown 16531 16532# Check whether --with-fftw3 was given. 16533if test "${with_fftw3+set}" = set; then : 16534 withval=$with_fftw3; 16535fi 16536 16537 16538if test "x$with_fftw3" != "xno"; then 16539 16540pkg_failed=no 16541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW3" >&5 16542$as_echo_n "checking for FFTW3... " >&6; } 16543 16544if test -n "$FFTW3_CFLAGS"; then 16545 pkg_cv_FFTW3_CFLAGS="$FFTW3_CFLAGS" 16546 elif test -n "$PKG_CONFIG"; then 16547 if test -n "$PKG_CONFIG" && \ 16548 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3\""; } >&5 16549 ($PKG_CONFIG --exists --print-errors "fftw3") 2>&5 16550 ac_status=$? 16551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16552 test $ac_status = 0; }; then 16553 pkg_cv_FFTW3_CFLAGS=`$PKG_CONFIG --cflags "fftw3" 2>/dev/null` 16554 test "x$?" != "x0" && pkg_failed=yes 16555else 16556 pkg_failed=yes 16557fi 16558 else 16559 pkg_failed=untried 16560fi 16561if test -n "$FFTW3_LIBS"; then 16562 pkg_cv_FFTW3_LIBS="$FFTW3_LIBS" 16563 elif test -n "$PKG_CONFIG"; then 16564 if test -n "$PKG_CONFIG" && \ 16565 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3\""; } >&5 16566 ($PKG_CONFIG --exists --print-errors "fftw3") 2>&5 16567 ac_status=$? 16568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16569 test $ac_status = 0; }; then 16570 pkg_cv_FFTW3_LIBS=`$PKG_CONFIG --libs "fftw3" 2>/dev/null` 16571 test "x$?" != "x0" && pkg_failed=yes 16572else 16573 pkg_failed=yes 16574fi 16575 else 16576 pkg_failed=untried 16577fi 16578 16579 16580 16581if test $pkg_failed = yes; then 16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16583$as_echo "no" >&6; } 16584 16585if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16586 _pkg_short_errors_supported=yes 16587else 16588 _pkg_short_errors_supported=no 16589fi 16590 if test $_pkg_short_errors_supported = yes; then 16591 FFTW3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3" 2>&1` 16592 else 16593 FFTW3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3" 2>&1` 16594 fi 16595 # Put the nasty error message in config.log where it belongs 16596 echo "$FFTW3_PKG_ERRORS" >&5 16597 16598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fftw3 not found; disabling fftw support" >&5 16599$as_echo "$as_me: WARNING: fftw3 not found; disabling fftw support" >&2;} 16600 with_fftw3=no 16601 16602elif test $pkg_failed = untried; then 16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16604$as_echo "no" >&6; } 16605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fftw3 not found; disabling fftw support" >&5 16606$as_echo "$as_me: WARNING: fftw3 not found; disabling fftw support" >&2;} 16607 with_fftw3=no 16608 16609else 16610 FFTW3_CFLAGS=$pkg_cv_FFTW3_CFLAGS 16611 FFTW3_LIBS=$pkg_cv_FFTW3_LIBS 16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16613$as_echo "yes" >&6; } 16614 16615$as_echo "#define HAVE_FFTW3 1" >>confdefs.h 16616 16617 with_fftw3=yes 16618 16619fi 16620 IP_CFLAGS="$FFTW3_INCLUDES $FFTW3_CFLAGS $IP_CFLAGS" 16621 IP_LIBS="$FFTW3_LIBS $IP_LIBS" 16622fi 16623 16624# goffice needs libgsf to save plots to files 16625 16626# Check whether --with-libgsf was given. 16627if test "${with_libgsf+set}" = set; then : 16628 withval=$with_libgsf; 16629fi 16630 16631 16632if test "x$with_libgsf" != "xno"; then 16633 16634pkg_failed=no 16635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGSF" >&5 16636$as_echo_n "checking for LIBGSF... " >&6; } 16637 16638if test -n "$LIBGSF_CFLAGS"; then 16639 pkg_cv_LIBGSF_CFLAGS="$LIBGSF_CFLAGS" 16640 elif test -n "$PKG_CONFIG"; then 16641 if test -n "$PKG_CONFIG" && \ 16642 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgsf-1\""; } >&5 16643 ($PKG_CONFIG --exists --print-errors "libgsf-1") 2>&5 16644 ac_status=$? 16645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16646 test $ac_status = 0; }; then 16647 pkg_cv_LIBGSF_CFLAGS=`$PKG_CONFIG --cflags "libgsf-1" 2>/dev/null` 16648 test "x$?" != "x0" && pkg_failed=yes 16649else 16650 pkg_failed=yes 16651fi 16652 else 16653 pkg_failed=untried 16654fi 16655if test -n "$LIBGSF_LIBS"; then 16656 pkg_cv_LIBGSF_LIBS="$LIBGSF_LIBS" 16657 elif test -n "$PKG_CONFIG"; then 16658 if test -n "$PKG_CONFIG" && \ 16659 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgsf-1\""; } >&5 16660 ($PKG_CONFIG --exists --print-errors "libgsf-1") 2>&5 16661 ac_status=$? 16662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16663 test $ac_status = 0; }; then 16664 pkg_cv_LIBGSF_LIBS=`$PKG_CONFIG --libs "libgsf-1" 2>/dev/null` 16665 test "x$?" != "x0" && pkg_failed=yes 16666else 16667 pkg_failed=yes 16668fi 16669 else 16670 pkg_failed=untried 16671fi 16672 16673 16674 16675if test $pkg_failed = yes; then 16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16677$as_echo "no" >&6; } 16678 16679if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16680 _pkg_short_errors_supported=yes 16681else 16682 _pkg_short_errors_supported=no 16683fi 16684 if test $_pkg_short_errors_supported = yes; then 16685 LIBGSF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgsf-1" 2>&1` 16686 else 16687 LIBGSF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgsf-1" 2>&1` 16688 fi 16689 # Put the nasty error message in config.log where it belongs 16690 echo "$LIBGSF_PKG_ERRORS" >&5 16691 16692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libgsf not found; disabling save plot to file" >&5 16693$as_echo "$as_me: WARNING: libgsf not found; disabling save plot to file" >&2;} 16694 with_libgsf=no 16695 16696elif test $pkg_failed = untried; then 16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16698$as_echo "no" >&6; } 16699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libgsf not found; disabling save plot to file" >&5 16700$as_echo "$as_me: WARNING: libgsf not found; disabling save plot to file" >&2;} 16701 with_libgsf=no 16702 16703else 16704 LIBGSF_CFLAGS=$pkg_cv_LIBGSF_CFLAGS 16705 LIBGSF_LIBS=$pkg_cv_LIBGSF_LIBS 16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16707$as_echo "yes" >&6; } 16708 16709$as_echo "#define HAVE_LIBGSF 1" >>confdefs.h 16710 16711 with_libgsf=yes 16712 16713fi 16714 IP_CFLAGS="$LIBGSF_CFLAGS $LIBGSF_INCLUDES $IP_CFLAGS" 16715 IP_LIBS="$LIBGSF_LIBS $IP_LIBS" 16716fi 16717 16718# optional ... use libgoffice to draw plots 16719# pretty basic functionality, really, but we need to be able to build without 16720# it for testing 16721 16722# Check whether --with-libgoffice was given. 16723if test "${with_libgoffice+set}" = set; then : 16724 withval=$with_libgoffice; 16725fi 16726 16727 16728if test "x$with_libgoffice" != "xno"; then 16729 16730pkg_failed=no 16731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGOFFICE" >&5 16732$as_echo_n "checking for LIBGOFFICE... " >&6; } 16733 16734if test -n "$LIBGOFFICE_CFLAGS"; then 16735 pkg_cv_LIBGOFFICE_CFLAGS="$LIBGOFFICE_CFLAGS" 16736 elif test -n "$PKG_CONFIG"; then 16737 if test -n "$PKG_CONFIG" && \ 16738 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgoffice-0.8\""; } >&5 16739 ($PKG_CONFIG --exists --print-errors "libgoffice-0.8") 2>&5 16740 ac_status=$? 16741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16742 test $ac_status = 0; }; then 16743 pkg_cv_LIBGOFFICE_CFLAGS=`$PKG_CONFIG --cflags "libgoffice-0.8" 2>/dev/null` 16744 test "x$?" != "x0" && pkg_failed=yes 16745else 16746 pkg_failed=yes 16747fi 16748 else 16749 pkg_failed=untried 16750fi 16751if test -n "$LIBGOFFICE_LIBS"; then 16752 pkg_cv_LIBGOFFICE_LIBS="$LIBGOFFICE_LIBS" 16753 elif test -n "$PKG_CONFIG"; then 16754 if test -n "$PKG_CONFIG" && \ 16755 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgoffice-0.8\""; } >&5 16756 ($PKG_CONFIG --exists --print-errors "libgoffice-0.8") 2>&5 16757 ac_status=$? 16758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16759 test $ac_status = 0; }; then 16760 pkg_cv_LIBGOFFICE_LIBS=`$PKG_CONFIG --libs "libgoffice-0.8" 2>/dev/null` 16761 test "x$?" != "x0" && pkg_failed=yes 16762else 16763 pkg_failed=yes 16764fi 16765 else 16766 pkg_failed=untried 16767fi 16768 16769 16770 16771if test $pkg_failed = yes; then 16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16773$as_echo "no" >&6; } 16774 16775if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16776 _pkg_short_errors_supported=yes 16777else 16778 _pkg_short_errors_supported=no 16779fi 16780 if test $_pkg_short_errors_supported = yes; then 16781 LIBGOFFICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgoffice-0.8" 2>&1` 16782 else 16783 LIBGOFFICE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgoffice-0.8" 2>&1` 16784 fi 16785 # Put the nasty error message in config.log where it belongs 16786 echo "$LIBGOFFICE_PKG_ERRORS" >&5 16787 16788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libgoffice not found; disabling plot display" >&5 16789$as_echo "$as_me: WARNING: libgoffice not found; disabling plot display" >&2;} 16790 with_libgoffice=no 16791 16792elif test $pkg_failed = untried; then 16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16794$as_echo "no" >&6; } 16795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libgoffice not found; disabling plot display" >&5 16796$as_echo "$as_me: WARNING: libgoffice not found; disabling plot display" >&2;} 16797 with_libgoffice=no 16798 16799else 16800 LIBGOFFICE_CFLAGS=$pkg_cv_LIBGOFFICE_CFLAGS 16801 LIBGOFFICE_LIBS=$pkg_cv_LIBGOFFICE_LIBS 16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16803$as_echo "yes" >&6; } 16804 16805$as_echo "#define HAVE_LIBGOFFICE 1" >>confdefs.h 16806 16807 with_libgoffice=yes 16808 16809fi 16810 IP_CFLAGS="$LIBGOFFICE_CFLAGS $LIBGOFFICE_INCLUDES $IP_CFLAGS" 16811 IP_LIBS="$LIBGOFFICE_LIBS $IP_LIBS" 16812fi 16813 16814# optional ... use libgvc to draw graphs of workspace dependencies 16815 16816# Check whether --with-libgvc was given. 16817if test "${with_libgvc+set}" = set; then : 16818 withval=$with_libgvc; 16819fi 16820 16821 16822# gvc 2.30 is broken in a number of ways and we can't use it, see for example 16823# http://lists.research.att.com/pipermail/graphviz-devel/2012/001544.html 16824 16825if test "x$with_libgvc" != "xno"; then 16826 16827pkg_failed=no 16828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGVC" >&5 16829$as_echo_n "checking for LIBGVC... " >&6; } 16830 16831if test -n "$LIBGVC_CFLAGS"; then 16832 pkg_cv_LIBGVC_CFLAGS="$LIBGVC_CFLAGS" 16833 elif test -n "$PKG_CONFIG"; then 16834 if test -n "$PKG_CONFIG" && \ 16835 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc > 2.30\""; } >&5 16836 ($PKG_CONFIG --exists --print-errors "libgvc > 2.30") 2>&5 16837 ac_status=$? 16838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16839 test $ac_status = 0; }; then 16840 pkg_cv_LIBGVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc > 2.30" 2>/dev/null` 16841 test "x$?" != "x0" && pkg_failed=yes 16842else 16843 pkg_failed=yes 16844fi 16845 else 16846 pkg_failed=untried 16847fi 16848if test -n "$LIBGVC_LIBS"; then 16849 pkg_cv_LIBGVC_LIBS="$LIBGVC_LIBS" 16850 elif test -n "$PKG_CONFIG"; then 16851 if test -n "$PKG_CONFIG" && \ 16852 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc > 2.30\""; } >&5 16853 ($PKG_CONFIG --exists --print-errors "libgvc > 2.30") 2>&5 16854 ac_status=$? 16855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16856 test $ac_status = 0; }; then 16857 pkg_cv_LIBGVC_LIBS=`$PKG_CONFIG --libs "libgvc > 2.30" 2>/dev/null` 16858 test "x$?" != "x0" && pkg_failed=yes 16859else 16860 pkg_failed=yes 16861fi 16862 else 16863 pkg_failed=untried 16864fi 16865 16866 16867 16868if test $pkg_failed = yes; then 16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16870$as_echo "no" >&6; } 16871 16872if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16873 _pkg_short_errors_supported=yes 16874else 16875 _pkg_short_errors_supported=no 16876fi 16877 if test $_pkg_short_errors_supported = yes; then 16878 LIBGVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc > 2.30" 2>&1` 16879 else 16880 LIBGVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc > 2.30" 2>&1` 16881 fi 16882 # Put the nasty error message in config.log where it belongs 16883 echo "$LIBGVC_PKG_ERRORS" >&5 16884 16885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libgvc not found; disabling workspace dep graph display" >&5 16886$as_echo "$as_me: WARNING: libgvc not found; disabling workspace dep graph display" >&2;} 16887 with_libgvc=no 16888 16889elif test $pkg_failed = untried; then 16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16891$as_echo "no" >&6; } 16892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libgvc not found; disabling workspace dep graph display" >&5 16893$as_echo "$as_me: WARNING: libgvc not found; disabling workspace dep graph display" >&2;} 16894 with_libgvc=no 16895 16896else 16897 LIBGVC_CFLAGS=$pkg_cv_LIBGVC_CFLAGS 16898 LIBGVC_LIBS=$pkg_cv_LIBGVC_LIBS 16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16900$as_echo "yes" >&6; } 16901 16902$as_echo "#define HAVE_LIBGVC 1" >>confdefs.h 16903 16904 with_libgvc=yes 16905 16906fi 16907 IP_CFLAGS="$LIBGVC_CFLAGS $LIBGVC_INCLUDES $IP_CFLAGS" 16908 IP_LIBS="$LIBGVC_LIBS $IP_LIBS" 16909fi 16910 16911# optional ... we add some gsl funcs as builtins if available 16912 16913# Check whether --with-gsl was given. 16914if test "${with_gsl+set}" = set; then : 16915 withval=$with_gsl; 16916fi 16917 16918 16919if test "x$with_gsl" != "xno"; then 16920 16921pkg_failed=no 16922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSL" >&5 16923$as_echo_n "checking for GSL... " >&6; } 16924 16925if test -n "$GSL_CFLAGS"; then 16926 pkg_cv_GSL_CFLAGS="$GSL_CFLAGS" 16927 elif test -n "$PKG_CONFIG"; then 16928 if test -n "$PKG_CONFIG" && \ 16929 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gsl\""; } >&5 16930 ($PKG_CONFIG --exists --print-errors "gsl") 2>&5 16931 ac_status=$? 16932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16933 test $ac_status = 0; }; then 16934 pkg_cv_GSL_CFLAGS=`$PKG_CONFIG --cflags "gsl" 2>/dev/null` 16935 test "x$?" != "x0" && pkg_failed=yes 16936else 16937 pkg_failed=yes 16938fi 16939 else 16940 pkg_failed=untried 16941fi 16942if test -n "$GSL_LIBS"; then 16943 pkg_cv_GSL_LIBS="$GSL_LIBS" 16944 elif test -n "$PKG_CONFIG"; then 16945 if test -n "$PKG_CONFIG" && \ 16946 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gsl\""; } >&5 16947 ($PKG_CONFIG --exists --print-errors "gsl") 2>&5 16948 ac_status=$? 16949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16950 test $ac_status = 0; }; then 16951 pkg_cv_GSL_LIBS=`$PKG_CONFIG --libs "gsl" 2>/dev/null` 16952 test "x$?" != "x0" && pkg_failed=yes 16953else 16954 pkg_failed=yes 16955fi 16956 else 16957 pkg_failed=untried 16958fi 16959 16960 16961 16962if test $pkg_failed = yes; then 16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16964$as_echo "no" >&6; } 16965 16966if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16967 _pkg_short_errors_supported=yes 16968else 16969 _pkg_short_errors_supported=no 16970fi 16971 if test $_pkg_short_errors_supported = yes; then 16972 GSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gsl" 2>&1` 16973 else 16974 GSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gsl" 2>&1` 16975 fi 16976 # Put the nasty error message in config.log where it belongs 16977 echo "$GSL_PKG_ERRORS" >&5 16978 16979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gsl not found; disabling extra numerical functions" >&5 16980$as_echo "$as_me: WARNING: gsl not found; disabling extra numerical functions" >&2;} 16981 with_gsl=no 16982 16983elif test $pkg_failed = untried; then 16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16985$as_echo "no" >&6; } 16986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gsl not found; disabling extra numerical functions" >&5 16987$as_echo "$as_me: WARNING: gsl not found; disabling extra numerical functions" >&2;} 16988 with_gsl=no 16989 16990else 16991 GSL_CFLAGS=$pkg_cv_GSL_CFLAGS 16992 GSL_LIBS=$pkg_cv_GSL_LIBS 16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16994$as_echo "yes" >&6; } 16995 16996$as_echo "#define HAVE_GSL 1" >>confdefs.h 16997 16998 with_gsl=yes 16999 17000fi 17001 IP_CFLAGS="$GSL_CFLAGS $GSL_INCLUDES $IP_CFLAGS" 17002 IP_LIBS="$GSL_LIBS $IP_LIBS" 17003fi 17004 17005# optional ... use this to open the help browser, if available 17006# Extract the first word of "xdg-open", so it can be a program name with args. 17007set dummy xdg-open; ac_word=$2 17008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17009$as_echo_n "checking for $ac_word... " >&6; } 17010if ${ac_cv_path_XDG_OPEN+:} false; then : 17011 $as_echo_n "(cached) " >&6 17012else 17013 case $XDG_OPEN in 17014 [\\/]* | ?:[\\/]*) 17015 ac_cv_path_XDG_OPEN="$XDG_OPEN" # Let the user override the test with a path. 17016 ;; 17017 *) 17018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17019for as_dir in $PATH 17020do 17021 IFS=$as_save_IFS 17022 test -z "$as_dir" && as_dir=. 17023 for ac_exec_ext in '' $ac_executable_extensions; do 17024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17025 ac_cv_path_XDG_OPEN="$as_dir/$ac_word$ac_exec_ext" 17026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17027 break 2 17028 fi 17029done 17030 done 17031IFS=$as_save_IFS 17032 17033 test -z "$ac_cv_path_XDG_OPEN" && ac_cv_path_XDG_OPEN="no" 17034 ;; 17035esac 17036fi 17037XDG_OPEN=$ac_cv_path_XDG_OPEN 17038if test -n "$XDG_OPEN"; then 17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDG_OPEN" >&5 17040$as_echo "$XDG_OPEN" >&6; } 17041else 17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17043$as_echo "no" >&6; } 17044fi 17045 17046 17047 17048if test "x$XDG_OPEN" != "xno"; then 17049 17050$as_echo "#define HAVE_XDG_OPEN 1" >>confdefs.h 17051 17052 17053cat >>confdefs.h <<_ACEOF 17054#define XDG_OPEN "$XDG_OPEN" 17055_ACEOF 17056 17057fi 17058 17059# optional ... use these to update desktop after install 17060# Extract the first word of "update-mime-database", so it can be a program name with args. 17061set dummy update-mime-database; ac_word=$2 17062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17063$as_echo_n "checking for $ac_word... " >&6; } 17064if ${ac_cv_path_UPDATE_MIME_DATABASE+:} false; then : 17065 $as_echo_n "(cached) " >&6 17066else 17067 case $UPDATE_MIME_DATABASE in 17068 [\\/]* | ?:[\\/]*) 17069 ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path. 17070 ;; 17071 *) 17072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17073for as_dir in $PATH 17074do 17075 IFS=$as_save_IFS 17076 test -z "$as_dir" && as_dir=. 17077 for ac_exec_ext in '' $ac_executable_extensions; do 17078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17079 ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext" 17080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17081 break 2 17082 fi 17083done 17084 done 17085IFS=$as_save_IFS 17086 17087 test -z "$ac_cv_path_UPDATE_MIME_DATABASE" && ac_cv_path_UPDATE_MIME_DATABASE="no" 17088 ;; 17089esac 17090fi 17091UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE 17092if test -n "$UPDATE_MIME_DATABASE"; then 17093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5 17094$as_echo "$UPDATE_MIME_DATABASE" >&6; } 17095else 17096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17097$as_echo "no" >&6; } 17098fi 17099 17100 17101# Extract the first word of "update-desktop-database", so it can be a program name with args. 17102set dummy update-desktop-database; ac_word=$2 17103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17104$as_echo_n "checking for $ac_word... " >&6; } 17105if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then : 17106 $as_echo_n "(cached) " >&6 17107else 17108 case $UPDATE_DESKTOP_DATABASE in 17109 [\\/]* | ?:[\\/]*) 17110 ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path. 17111 ;; 17112 *) 17113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17114for as_dir in $PATH 17115do 17116 IFS=$as_save_IFS 17117 test -z "$as_dir" && as_dir=. 17118 for ac_exec_ext in '' $ac_executable_extensions; do 17119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17120 ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext" 17121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17122 break 2 17123 fi 17124done 17125 done 17126IFS=$as_save_IFS 17127 17128 test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no" 17129 ;; 17130esac 17131fi 17132UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE 17133if test -n "$UPDATE_DESKTOP_DATABASE"; then 17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5 17135$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; } 17136else 17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17138$as_echo "no" >&6; } 17139fi 17140 17141 17142 17143nip_desktop_update=no 17144if test "x$UPDATE_MIME_DATABASE" != "xno"; then 17145 if test "x$UPDATE_DESKTOP_DATABASE" != "xno"; then 17146 nip_desktop_update=yes 17147 fi 17148fi 17149 17150# stop the DBs being updated: useful for packagers 17151# Check whether --enable-update-desktop was given. 17152if test "${enable_update_desktop+set}" = set; then : 17153 enableval=$enable_update_desktop; nip_desktop_update=$enableval 17154fi 17155 17156 17157if test x"$nip_desktop_update" = "xyes"; then 17158 if true; then 17159 UPDATE_DESKTOP_TRUE= 17160 UPDATE_DESKTOP_FALSE='#' 17161else 17162 UPDATE_DESKTOP_TRUE='#' 17163 UPDATE_DESKTOP_FALSE= 17164fi 17165 17166else 17167 if false; then 17168 UPDATE_DESKTOP_TRUE= 17169 UPDATE_DESKTOP_FALSE='#' 17170else 17171 UPDATE_DESKTOP_TRUE='#' 17172 UPDATE_DESKTOP_FALSE= 17173fi 17174 17175fi 17176 17177# we always need -lm 17178IP_LIBS="$IP_LIBS -lm" 17179 17180 17181 17182 17183# needed by test/test_all.sh 17184# :( what's a better way to do this, argh 17185TOP_SRCDIR=$ac_pwd 17186 17187 17188ac_config_files="$ac_config_files nip2.desktop Makefile man/Makefile man/man1/Makefile share/Makefile share/nip2/Makefile share/nip2/data/Makefile share/nip2/rc/Makefile share/nip2/start/Makefile share/nip2/compat/Makefile share/nip2/compat/7.8/Makefile share/nip2/compat/7.9/Makefile share/nip2/compat/7.10/Makefile share/nip2/compat/7.12/Makefile share/nip2/compat/7.14/Makefile share/nip2/compat/7.16/Makefile share/nip2/compat/7.24/Makefile share/nip2/compat/7.26/Makefile share/nip2/compat/7.28/Makefile share/nip2/compat/7.38/Makefile share/nip2/compat/7.40/Makefile share/nip2/compat/8.2/Makefile share/nip2/compat/8.3/Makefile share/nip2/compat/8.4/Makefile share/nip2/compat/8.5/Makefile share/nip2/compat/8.6/Makefile src/BITMAPS/Makefile src/Makefile test/Makefile test/test_all.sh po/Makefile.in nip2.spec" 17189 17190cat >confcache <<\_ACEOF 17191# This file is a shell script that caches the results of configure 17192# tests run on this system so they can be shared between configure 17193# scripts and configure runs, see configure's option --config-cache. 17194# It is not useful on other systems. If it contains results you don't 17195# want to keep, you may remove or edit it. 17196# 17197# config.status only pays attention to the cache file if you give it 17198# the --recheck option to rerun configure. 17199# 17200# `ac_cv_env_foo' variables (set or unset) will be overridden when 17201# loading this file, other *unset* `ac_cv_foo' will be assigned the 17202# following values. 17203 17204_ACEOF 17205 17206# The following way of writing the cache mishandles newlines in values, 17207# but we know of no workaround that is simple, portable, and efficient. 17208# So, we kill variables containing newlines. 17209# Ultrix sh set writes to stderr and can't be redirected directly, 17210# and sets the high bit in the cache file unless we assign to the vars. 17211( 17212 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17213 eval ac_val=\$$ac_var 17214 case $ac_val in #( 17215 *${as_nl}*) 17216 case $ac_var in #( 17217 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17218$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17219 esac 17220 case $ac_var in #( 17221 _ | IFS | as_nl) ;; #( 17222 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17223 *) { eval $ac_var=; unset $ac_var;} ;; 17224 esac ;; 17225 esac 17226 done 17227 17228 (set) 2>&1 | 17229 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17230 *${as_nl}ac_space=\ *) 17231 # `set' does not quote correctly, so add quotes: double-quote 17232 # substitution turns \\\\ into \\, and sed turns \\ into \. 17233 sed -n \ 17234 "s/'/'\\\\''/g; 17235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17236 ;; #( 17237 *) 17238 # `set' quotes correctly as required by POSIX, so do not add quotes. 17239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17240 ;; 17241 esac | 17242 sort 17243) | 17244 sed ' 17245 /^ac_cv_env_/b end 17246 t clear 17247 :clear 17248 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17249 t end 17250 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17251 :end' >>confcache 17252if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17253 if test -w "$cache_file"; then 17254 if test "x$cache_file" != "x/dev/null"; then 17255 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17256$as_echo "$as_me: updating cache $cache_file" >&6;} 17257 if test ! -f "$cache_file" || test -h "$cache_file"; then 17258 cat confcache >"$cache_file" 17259 else 17260 case $cache_file in #( 17261 */* | ?:*) 17262 mv -f confcache "$cache_file"$$ && 17263 mv -f "$cache_file"$$ "$cache_file" ;; #( 17264 *) 17265 mv -f confcache "$cache_file" ;; 17266 esac 17267 fi 17268 fi 17269 else 17270 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17271$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17272 fi 17273fi 17274rm -f confcache 17275 17276test "x$prefix" = xNONE && prefix=$ac_default_prefix 17277# Let make expand exec_prefix. 17278test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17279 17280DEFS=-DHAVE_CONFIG_H 17281 17282ac_libobjs= 17283ac_ltlibobjs= 17284U= 17285for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17286 # 1. Remove the extension, and $U if already installed. 17287 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17288 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17289 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17290 # will be set to the directory where LIBOBJS objects are built. 17291 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17292 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17293done 17294LIBOBJS=$ac_libobjs 17295 17296LTLIBOBJS=$ac_ltlibobjs 17297 17298 17299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17300$as_echo_n "checking that generated files are newer than configure... " >&6; } 17301 if test -n "$am_sleep_pid"; then 17302 # Hide warnings about reused PIDs. 17303 wait $am_sleep_pid 2>/dev/null 17304 fi 17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17306$as_echo "done" >&6; } 17307 if test -n "$EXEEXT"; then 17308 am__EXEEXT_TRUE= 17309 am__EXEEXT_FALSE='#' 17310else 17311 am__EXEEXT_TRUE='#' 17312 am__EXEEXT_FALSE= 17313fi 17314 17315if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then 17316 as_fn_error $? "conditional \"OS_WIN32\" was never defined. 17317Usually this means the macro was only invoked conditionally." "$LINENO" 5 17318fi 17319if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17320 as_fn_error $? "conditional \"AMDEP\" was never defined. 17321Usually this means the macro was only invoked conditionally." "$LINENO" 5 17322fi 17323if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17324 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17325Usually this means the macro was only invoked conditionally." "$LINENO" 5 17326fi 17327if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17328 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17329Usually this means the macro was only invoked conditionally." "$LINENO" 5 17330fi 17331if test -z "${UPDATE_DESKTOP_TRUE}" && test -z "${UPDATE_DESKTOP_FALSE}"; then 17332 as_fn_error $? "conditional \"UPDATE_DESKTOP\" was never defined. 17333Usually this means the macro was only invoked conditionally." "$LINENO" 5 17334fi 17335if test -z "${UPDATE_DESKTOP_TRUE}" && test -z "${UPDATE_DESKTOP_FALSE}"; then 17336 as_fn_error $? "conditional \"UPDATE_DESKTOP\" was never defined. 17337Usually this means the macro was only invoked conditionally." "$LINENO" 5 17338fi 17339 17340: "${CONFIG_STATUS=./config.status}" 17341ac_write_fail=0 17342ac_clean_files_save=$ac_clean_files 17343ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17344{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17345$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17346as_write_fail=0 17347cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17348#! $SHELL 17349# Generated by $as_me. 17350# Run this file to recreate the current configuration. 17351# Compiler output produced by configure, useful for debugging 17352# configure, is in config.log if it exists. 17353 17354debug=false 17355ac_cs_recheck=false 17356ac_cs_silent=false 17357 17358SHELL=\${CONFIG_SHELL-$SHELL} 17359export SHELL 17360_ASEOF 17361cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17362## -------------------- ## 17363## M4sh Initialization. ## 17364## -------------------- ## 17365 17366# Be more Bourne compatible 17367DUALCASE=1; export DUALCASE # for MKS sh 17368if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17369 emulate sh 17370 NULLCMD=: 17371 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17372 # is contrary to our usage. Disable this feature. 17373 alias -g '${1+"$@"}'='"$@"' 17374 setopt NO_GLOB_SUBST 17375else 17376 case `(set -o) 2>/dev/null` in #( 17377 *posix*) : 17378 set -o posix ;; #( 17379 *) : 17380 ;; 17381esac 17382fi 17383 17384 17385as_nl=' 17386' 17387export as_nl 17388# Printing a long string crashes Solaris 7 /usr/bin/printf. 17389as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17390as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17391as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17392# Prefer a ksh shell builtin over an external printf program on Solaris, 17393# but without wasting forks for bash or zsh. 17394if test -z "$BASH_VERSION$ZSH_VERSION" \ 17395 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17396 as_echo='print -r --' 17397 as_echo_n='print -rn --' 17398elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17399 as_echo='printf %s\n' 17400 as_echo_n='printf %s' 17401else 17402 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17403 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17404 as_echo_n='/usr/ucb/echo -n' 17405 else 17406 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17407 as_echo_n_body='eval 17408 arg=$1; 17409 case $arg in #( 17410 *"$as_nl"*) 17411 expr "X$arg" : "X\\(.*\\)$as_nl"; 17412 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17413 esac; 17414 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17415 ' 17416 export as_echo_n_body 17417 as_echo_n='sh -c $as_echo_n_body as_echo' 17418 fi 17419 export as_echo_body 17420 as_echo='sh -c $as_echo_body as_echo' 17421fi 17422 17423# The user is always right. 17424if test "${PATH_SEPARATOR+set}" != set; then 17425 PATH_SEPARATOR=: 17426 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17427 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17428 PATH_SEPARATOR=';' 17429 } 17430fi 17431 17432 17433# IFS 17434# We need space, tab and new line, in precisely that order. Quoting is 17435# there to prevent editors from complaining about space-tab. 17436# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17437# splitting by setting IFS to empty value.) 17438IFS=" "" $as_nl" 17439 17440# Find who we are. Look in the path if we contain no directory separator. 17441as_myself= 17442case $0 in #(( 17443 *[\\/]* ) as_myself=$0 ;; 17444 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17445for as_dir in $PATH 17446do 17447 IFS=$as_save_IFS 17448 test -z "$as_dir" && as_dir=. 17449 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17450 done 17451IFS=$as_save_IFS 17452 17453 ;; 17454esac 17455# We did not find ourselves, most probably we were run as `sh COMMAND' 17456# in which case we are not to be found in the path. 17457if test "x$as_myself" = x; then 17458 as_myself=$0 17459fi 17460if test ! -f "$as_myself"; then 17461 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17462 exit 1 17463fi 17464 17465# Unset variables that we do not need and which cause bugs (e.g. in 17466# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17467# suppresses any "Segmentation fault" message there. '((' could 17468# trigger a bug in pdksh 5.2.14. 17469for as_var in BASH_ENV ENV MAIL MAILPATH 17470do eval test x\${$as_var+set} = xset \ 17471 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17472done 17473PS1='$ ' 17474PS2='> ' 17475PS4='+ ' 17476 17477# NLS nuisances. 17478LC_ALL=C 17479export LC_ALL 17480LANGUAGE=C 17481export LANGUAGE 17482 17483# CDPATH. 17484(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17485 17486 17487# as_fn_error STATUS ERROR [LINENO LOG_FD] 17488# ---------------------------------------- 17489# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17490# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17491# script with STATUS, using 1 if that was 0. 17492as_fn_error () 17493{ 17494 as_status=$1; test $as_status -eq 0 && as_status=1 17495 if test "$4"; then 17496 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17497 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17498 fi 17499 $as_echo "$as_me: error: $2" >&2 17500 as_fn_exit $as_status 17501} # as_fn_error 17502 17503 17504# as_fn_set_status STATUS 17505# ----------------------- 17506# Set $? to STATUS, without forking. 17507as_fn_set_status () 17508{ 17509 return $1 17510} # as_fn_set_status 17511 17512# as_fn_exit STATUS 17513# ----------------- 17514# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17515as_fn_exit () 17516{ 17517 set +e 17518 as_fn_set_status $1 17519 exit $1 17520} # as_fn_exit 17521 17522# as_fn_unset VAR 17523# --------------- 17524# Portably unset VAR. 17525as_fn_unset () 17526{ 17527 { eval $1=; unset $1;} 17528} 17529as_unset=as_fn_unset 17530# as_fn_append VAR VALUE 17531# ---------------------- 17532# Append the text in VALUE to the end of the definition contained in VAR. Take 17533# advantage of any shell optimizations that allow amortized linear growth over 17534# repeated appends, instead of the typical quadratic growth present in naive 17535# implementations. 17536if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17537 eval 'as_fn_append () 17538 { 17539 eval $1+=\$2 17540 }' 17541else 17542 as_fn_append () 17543 { 17544 eval $1=\$$1\$2 17545 } 17546fi # as_fn_append 17547 17548# as_fn_arith ARG... 17549# ------------------ 17550# Perform arithmetic evaluation on the ARGs, and store the result in the 17551# global $as_val. Take advantage of shells that can avoid forks. The arguments 17552# must be portable across $(()) and expr. 17553if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17554 eval 'as_fn_arith () 17555 { 17556 as_val=$(( $* )) 17557 }' 17558else 17559 as_fn_arith () 17560 { 17561 as_val=`expr "$@" || test $? -eq 1` 17562 } 17563fi # as_fn_arith 17564 17565 17566if expr a : '\(a\)' >/dev/null 2>&1 && 17567 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17568 as_expr=expr 17569else 17570 as_expr=false 17571fi 17572 17573if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17574 as_basename=basename 17575else 17576 as_basename=false 17577fi 17578 17579if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17580 as_dirname=dirname 17581else 17582 as_dirname=false 17583fi 17584 17585as_me=`$as_basename -- "$0" || 17586$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17587 X"$0" : 'X\(//\)$' \| \ 17588 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17589$as_echo X/"$0" | 17590 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17591 s//\1/ 17592 q 17593 } 17594 /^X\/\(\/\/\)$/{ 17595 s//\1/ 17596 q 17597 } 17598 /^X\/\(\/\).*/{ 17599 s//\1/ 17600 q 17601 } 17602 s/.*/./; q'` 17603 17604# Avoid depending upon Character Ranges. 17605as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17606as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17607as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17608as_cr_digits='0123456789' 17609as_cr_alnum=$as_cr_Letters$as_cr_digits 17610 17611ECHO_C= ECHO_N= ECHO_T= 17612case `echo -n x` in #((((( 17613-n*) 17614 case `echo 'xy\c'` in 17615 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17616 xy) ECHO_C='\c';; 17617 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17618 ECHO_T=' ';; 17619 esac;; 17620*) 17621 ECHO_N='-n';; 17622esac 17623 17624rm -f conf$$ conf$$.exe conf$$.file 17625if test -d conf$$.dir; then 17626 rm -f conf$$.dir/conf$$.file 17627else 17628 rm -f conf$$.dir 17629 mkdir conf$$.dir 2>/dev/null 17630fi 17631if (echo >conf$$.file) 2>/dev/null; then 17632 if ln -s conf$$.file conf$$ 2>/dev/null; then 17633 as_ln_s='ln -s' 17634 # ... but there are two gotchas: 17635 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17636 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17637 # In both cases, we have to default to `cp -pR'. 17638 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17639 as_ln_s='cp -pR' 17640 elif ln conf$$.file conf$$ 2>/dev/null; then 17641 as_ln_s=ln 17642 else 17643 as_ln_s='cp -pR' 17644 fi 17645else 17646 as_ln_s='cp -pR' 17647fi 17648rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17649rmdir conf$$.dir 2>/dev/null 17650 17651 17652# as_fn_mkdir_p 17653# ------------- 17654# Create "$as_dir" as a directory, including parents if necessary. 17655as_fn_mkdir_p () 17656{ 17657 17658 case $as_dir in #( 17659 -*) as_dir=./$as_dir;; 17660 esac 17661 test -d "$as_dir" || eval $as_mkdir_p || { 17662 as_dirs= 17663 while :; do 17664 case $as_dir in #( 17665 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17666 *) as_qdir=$as_dir;; 17667 esac 17668 as_dirs="'$as_qdir' $as_dirs" 17669 as_dir=`$as_dirname -- "$as_dir" || 17670$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17671 X"$as_dir" : 'X\(//\)[^/]' \| \ 17672 X"$as_dir" : 'X\(//\)$' \| \ 17673 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17674$as_echo X"$as_dir" | 17675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17676 s//\1/ 17677 q 17678 } 17679 /^X\(\/\/\)[^/].*/{ 17680 s//\1/ 17681 q 17682 } 17683 /^X\(\/\/\)$/{ 17684 s//\1/ 17685 q 17686 } 17687 /^X\(\/\).*/{ 17688 s//\1/ 17689 q 17690 } 17691 s/.*/./; q'` 17692 test -d "$as_dir" && break 17693 done 17694 test -z "$as_dirs" || eval "mkdir $as_dirs" 17695 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17696 17697 17698} # as_fn_mkdir_p 17699if mkdir -p . 2>/dev/null; then 17700 as_mkdir_p='mkdir -p "$as_dir"' 17701else 17702 test -d ./-p && rmdir ./-p 17703 as_mkdir_p=false 17704fi 17705 17706 17707# as_fn_executable_p FILE 17708# ----------------------- 17709# Test if FILE is an executable regular file. 17710as_fn_executable_p () 17711{ 17712 test -f "$1" && test -x "$1" 17713} # as_fn_executable_p 17714as_test_x='test -x' 17715as_executable_p=as_fn_executable_p 17716 17717# Sed expression to map a string onto a valid CPP name. 17718as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17719 17720# Sed expression to map a string onto a valid variable name. 17721as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17722 17723 17724exec 6>&1 17725## ----------------------------------- ## 17726## Main body of $CONFIG_STATUS script. ## 17727## ----------------------------------- ## 17728_ASEOF 17729test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17730 17731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17732# Save the log message, to keep $0 and so on meaningful, and to 17733# report actual input values of CONFIG_FILES etc. instead of their 17734# values after options handling. 17735ac_log=" 17736This file was extended by nip2 $as_me 8.7.1, which was 17737generated by GNU Autoconf 2.69. Invocation command line was 17738 17739 CONFIG_FILES = $CONFIG_FILES 17740 CONFIG_HEADERS = $CONFIG_HEADERS 17741 CONFIG_LINKS = $CONFIG_LINKS 17742 CONFIG_COMMANDS = $CONFIG_COMMANDS 17743 $ $0 $@ 17744 17745on `(hostname || uname -n) 2>/dev/null | sed 1q` 17746" 17747 17748_ACEOF 17749 17750case $ac_config_files in *" 17751"*) set x $ac_config_files; shift; ac_config_files=$*;; 17752esac 17753 17754case $ac_config_headers in *" 17755"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17756esac 17757 17758 17759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17760# Files that config.status was made for. 17761config_files="$ac_config_files" 17762config_headers="$ac_config_headers" 17763config_commands="$ac_config_commands" 17764 17765_ACEOF 17766 17767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17768ac_cs_usage="\ 17769\`$as_me' instantiates files and other configuration actions 17770from templates according to the current configuration. Unless the files 17771and actions are specified as TAGs, all are instantiated by default. 17772 17773Usage: $0 [OPTION]... [TAG]... 17774 17775 -h, --help print this help, then exit 17776 -V, --version print version number and configuration settings, then exit 17777 --config print configuration, then exit 17778 -q, --quiet, --silent 17779 do not print progress messages 17780 -d, --debug don't remove temporary files 17781 --recheck update $as_me by reconfiguring in the same conditions 17782 --file=FILE[:TEMPLATE] 17783 instantiate the configuration file FILE 17784 --header=FILE[:TEMPLATE] 17785 instantiate the configuration header FILE 17786 17787Configuration files: 17788$config_files 17789 17790Configuration headers: 17791$config_headers 17792 17793Configuration commands: 17794$config_commands 17795 17796Report bugs to <vipsip@jiscmail.ac.uk>." 17797 17798_ACEOF 17799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17800ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17801ac_cs_version="\\ 17802nip2 config.status 8.7.1 17803configured by $0, generated by GNU Autoconf 2.69, 17804 with options \\"\$ac_cs_config\\" 17805 17806Copyright (C) 2012 Free Software Foundation, Inc. 17807This config.status script is free software; the Free Software Foundation 17808gives unlimited permission to copy, distribute and modify it." 17809 17810ac_pwd='$ac_pwd' 17811srcdir='$srcdir' 17812INSTALL='$INSTALL' 17813MKDIR_P='$MKDIR_P' 17814AWK='$AWK' 17815test -n "\$AWK" || AWK=awk 17816_ACEOF 17817 17818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17819# The default lists apply if the user does not specify any file. 17820ac_need_defaults=: 17821while test $# != 0 17822do 17823 case $1 in 17824 --*=?*) 17825 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17826 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17827 ac_shift=: 17828 ;; 17829 --*=) 17830 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17831 ac_optarg= 17832 ac_shift=: 17833 ;; 17834 *) 17835 ac_option=$1 17836 ac_optarg=$2 17837 ac_shift=shift 17838 ;; 17839 esac 17840 17841 case $ac_option in 17842 # Handling of the options. 17843 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17844 ac_cs_recheck=: ;; 17845 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17846 $as_echo "$ac_cs_version"; exit ;; 17847 --config | --confi | --conf | --con | --co | --c ) 17848 $as_echo "$ac_cs_config"; exit ;; 17849 --debug | --debu | --deb | --de | --d | -d ) 17850 debug=: ;; 17851 --file | --fil | --fi | --f ) 17852 $ac_shift 17853 case $ac_optarg in 17854 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17855 '') as_fn_error $? "missing file argument" ;; 17856 esac 17857 as_fn_append CONFIG_FILES " '$ac_optarg'" 17858 ac_need_defaults=false;; 17859 --header | --heade | --head | --hea ) 17860 $ac_shift 17861 case $ac_optarg in 17862 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17863 esac 17864 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17865 ac_need_defaults=false;; 17866 --he | --h) 17867 # Conflict between --help and --header 17868 as_fn_error $? "ambiguous option: \`$1' 17869Try \`$0 --help' for more information.";; 17870 --help | --hel | -h ) 17871 $as_echo "$ac_cs_usage"; exit ;; 17872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17873 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17874 ac_cs_silent=: ;; 17875 17876 # This is an error. 17877 -*) as_fn_error $? "unrecognized option: \`$1' 17878Try \`$0 --help' for more information." ;; 17879 17880 *) as_fn_append ac_config_targets " $1" 17881 ac_need_defaults=false ;; 17882 17883 esac 17884 shift 17885done 17886 17887ac_configure_extra_args= 17888 17889if $ac_cs_silent; then 17890 exec 6>/dev/null 17891 ac_configure_extra_args="$ac_configure_extra_args --silent" 17892fi 17893 17894_ACEOF 17895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17896if \$ac_cs_recheck; then 17897 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17898 shift 17899 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17900 CONFIG_SHELL='$SHELL' 17901 export CONFIG_SHELL 17902 exec "\$@" 17903fi 17904 17905_ACEOF 17906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17907exec 5>>config.log 17908{ 17909 echo 17910 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17911## Running $as_me. ## 17912_ASBOX 17913 $as_echo "$ac_log" 17914} >&5 17915 17916_ACEOF 17917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17918# 17919# INIT-COMMANDS 17920# 17921AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 17922 17923 17924# The HP-UX ksh and POSIX shell print the target directory to stdout 17925# if CDPATH is set. 17926(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17927 17928sed_quote_subst='$sed_quote_subst' 17929double_quote_subst='$double_quote_subst' 17930delay_variable_subst='$delay_variable_subst' 17931AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 17932DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17933OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17934macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17935macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17936enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17937enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17938pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17939enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17940shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17941SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17942ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17943PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17944host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17945host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17946host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17947build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17948build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17949build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17950SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17951Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17952GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17953EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17954FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17955LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17956NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17957LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17958max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17959ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17960exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17961lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17962lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17963lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17964lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17965lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17966reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17967reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17968deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17969file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17970file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17971want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17972sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17973AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17974AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17975archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17976STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17977RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17978old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17979old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17980old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17981lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17982CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17983CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17984compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17985GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17986lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17987lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17988lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17989lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17990lt_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"`' 17991lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17992nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17993lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17994lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17995objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17996MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17997lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17998lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17999lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18000lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18001lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18002need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18003MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18004DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18005NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18006LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18007OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18008OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18009libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18010shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18011extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18012archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18013enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18014export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18015whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18016compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18017old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18018old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18019archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18020archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18021module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18022module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18023with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18024allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18025no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18026hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18027hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18028hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18029hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18030hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18031hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18032hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18033inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18034link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18035always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18036export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18037exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18038include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18039prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18040postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18041file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18042variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18043need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18044need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18045version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18046runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18047shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18048shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18049libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18050library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18051soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18052install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18053postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18054postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18055finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18056finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18057hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18058sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18059configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 18060configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 18061hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18062enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18063enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18064enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18065old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18066striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18067 18068LTCC='$LTCC' 18069LTCFLAGS='$LTCFLAGS' 18070compiler='$compiler_DEFAULT' 18071 18072# A function that is used when there is no print builtin or printf. 18073func_fallback_echo () 18074{ 18075 eval 'cat <<_LTECHO_EOF 18076\$1 18077_LTECHO_EOF' 18078} 18079 18080# Quote evaled strings. 18081for var in AS \ 18082DLLTOOL \ 18083OBJDUMP \ 18084SHELL \ 18085ECHO \ 18086PATH_SEPARATOR \ 18087SED \ 18088GREP \ 18089EGREP \ 18090FGREP \ 18091LD \ 18092NM \ 18093LN_S \ 18094lt_SP2NL \ 18095lt_NL2SP \ 18096reload_flag \ 18097deplibs_check_method \ 18098file_magic_cmd \ 18099file_magic_glob \ 18100want_nocaseglob \ 18101sharedlib_from_linklib_cmd \ 18102AR \ 18103AR_FLAGS \ 18104archiver_list_spec \ 18105STRIP \ 18106RANLIB \ 18107CC \ 18108CFLAGS \ 18109compiler \ 18110lt_cv_sys_global_symbol_pipe \ 18111lt_cv_sys_global_symbol_to_cdecl \ 18112lt_cv_sys_global_symbol_to_import \ 18113lt_cv_sys_global_symbol_to_c_name_address \ 18114lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18115lt_cv_nm_interface \ 18116nm_file_list_spec \ 18117lt_cv_truncate_bin \ 18118lt_prog_compiler_no_builtin_flag \ 18119lt_prog_compiler_pic \ 18120lt_prog_compiler_wl \ 18121lt_prog_compiler_static \ 18122lt_cv_prog_compiler_c_o \ 18123need_locks \ 18124MANIFEST_TOOL \ 18125DSYMUTIL \ 18126NMEDIT \ 18127LIPO \ 18128OTOOL \ 18129OTOOL64 \ 18130shrext_cmds \ 18131export_dynamic_flag_spec \ 18132whole_archive_flag_spec \ 18133compiler_needs_object \ 18134with_gnu_ld \ 18135allow_undefined_flag \ 18136no_undefined_flag \ 18137hardcode_libdir_flag_spec \ 18138hardcode_libdir_separator \ 18139exclude_expsyms \ 18140include_expsyms \ 18141file_list_spec \ 18142variables_saved_for_relink \ 18143libname_spec \ 18144library_names_spec \ 18145soname_spec \ 18146install_override_mode \ 18147finish_eval \ 18148old_striplib \ 18149striplib; do 18150 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18151 *[\\\\\\\`\\"\\\$]*) 18152 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18153 ;; 18154 *) 18155 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18156 ;; 18157 esac 18158done 18159 18160# Double-quote double-evaled strings. 18161for var in reload_cmds \ 18162old_postinstall_cmds \ 18163old_postuninstall_cmds \ 18164old_archive_cmds \ 18165extract_expsyms_cmds \ 18166old_archive_from_new_cmds \ 18167old_archive_from_expsyms_cmds \ 18168archive_cmds \ 18169archive_expsym_cmds \ 18170module_cmds \ 18171module_expsym_cmds \ 18172export_symbols_cmds \ 18173prelink_cmds \ 18174postlink_cmds \ 18175postinstall_cmds \ 18176postuninstall_cmds \ 18177finish_cmds \ 18178sys_lib_search_path_spec \ 18179configure_time_dlsearch_path \ 18180configure_time_lt_sys_library_path; do 18181 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18182 *[\\\\\\\`\\"\\\$]*) 18183 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18184 ;; 18185 *) 18186 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18187 ;; 18188 esac 18189done 18190 18191ac_aux_dir='$ac_aux_dir' 18192 18193# See if we are running on zsh, and set the options that allow our 18194# commands through without removal of \ escapes INIT. 18195if test -n "\${ZSH_VERSION+set}"; then 18196 setopt NO_GLOB_SUBST 18197fi 18198 18199 18200 PACKAGE='$PACKAGE' 18201 VERSION='$VERSION' 18202 RM='$RM' 18203 ofile='$ofile' 18204 18205 18206 18207 18208 18209_ACEOF 18210 18211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18212 18213# Handling of arguments. 18214for ac_config_target in $ac_config_targets 18215do 18216 case $ac_config_target in 18217 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18218 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18219 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18220 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 18221 "nip2.desktop") CONFIG_FILES="$CONFIG_FILES nip2.desktop" ;; 18222 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18223 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 18224 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;; 18225 "share/Makefile") CONFIG_FILES="$CONFIG_FILES share/Makefile" ;; 18226 "share/nip2/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/Makefile" ;; 18227 "share/nip2/data/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/data/Makefile" ;; 18228 "share/nip2/rc/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/rc/Makefile" ;; 18229 "share/nip2/start/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/start/Makefile" ;; 18230 "share/nip2/compat/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/compat/Makefile" ;; 18231 "share/nip2/compat/7.8/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/compat/7.8/Makefile" ;; 18232 "share/nip2/compat/7.9/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/compat/7.9/Makefile" ;; 18233 "share/nip2/compat/7.10/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/compat/7.10/Makefile" ;; 18234 "share/nip2/compat/7.12/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/compat/7.12/Makefile" ;; 18235 "share/nip2/compat/7.14/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/compat/7.14/Makefile" ;; 18236 "share/nip2/compat/7.16/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/compat/7.16/Makefile" ;; 18237 "share/nip2/compat/7.24/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/compat/7.24/Makefile" ;; 18238 "share/nip2/compat/7.26/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/compat/7.26/Makefile" ;; 18239 "share/nip2/compat/7.28/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/compat/7.28/Makefile" ;; 18240 "share/nip2/compat/7.38/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/compat/7.38/Makefile" ;; 18241 "share/nip2/compat/7.40/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/compat/7.40/Makefile" ;; 18242 "share/nip2/compat/8.2/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/compat/8.2/Makefile" ;; 18243 "share/nip2/compat/8.3/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/compat/8.3/Makefile" ;; 18244 "share/nip2/compat/8.4/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/compat/8.4/Makefile" ;; 18245 "share/nip2/compat/8.5/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/compat/8.5/Makefile" ;; 18246 "share/nip2/compat/8.6/Makefile") CONFIG_FILES="$CONFIG_FILES share/nip2/compat/8.6/Makefile" ;; 18247 "src/BITMAPS/Makefile") CONFIG_FILES="$CONFIG_FILES src/BITMAPS/Makefile" ;; 18248 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18249 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 18250 "test/test_all.sh") CONFIG_FILES="$CONFIG_FILES test/test_all.sh" ;; 18251 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 18252 "nip2.spec") CONFIG_FILES="$CONFIG_FILES nip2.spec" ;; 18253 18254 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18255 esac 18256done 18257 18258 18259# If the user did not use the arguments to specify the items to instantiate, 18260# then the envvar interface is used. Set only those that are not. 18261# We use the long form for the default assignment because of an extremely 18262# bizarre bug on SunOS 4.1.3. 18263if $ac_need_defaults; then 18264 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18265 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18266 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18267fi 18268 18269# Have a temporary directory for convenience. Make it in the build tree 18270# simply because there is no reason against having it here, and in addition, 18271# creating and moving files from /tmp can sometimes cause problems. 18272# Hook for its removal unless debugging. 18273# Note that there is a small window in which the directory will not be cleaned: 18274# after its creation but before its name has been assigned to `$tmp'. 18275$debug || 18276{ 18277 tmp= ac_tmp= 18278 trap 'exit_status=$? 18279 : "${ac_tmp:=$tmp}" 18280 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18281' 0 18282 trap 'as_fn_exit 1' 1 2 13 15 18283} 18284# Create a (secure) tmp directory for tmp files. 18285 18286{ 18287 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18288 test -d "$tmp" 18289} || 18290{ 18291 tmp=./conf$$-$RANDOM 18292 (umask 077 && mkdir "$tmp") 18293} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18294ac_tmp=$tmp 18295 18296# Set up the scripts for CONFIG_FILES section. 18297# No need to generate them if there are no CONFIG_FILES. 18298# This happens for instance with `./config.status config.h'. 18299if test -n "$CONFIG_FILES"; then 18300 18301 18302ac_cr=`echo X | tr X '\015'` 18303# On cygwin, bash can eat \r inside `` if the user requested igncr. 18304# But we know of no other shell where ac_cr would be empty at this 18305# point, so we can use a bashism as a fallback. 18306if test "x$ac_cr" = x; then 18307 eval ac_cr=\$\'\\r\' 18308fi 18309ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18310if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18311 ac_cs_awk_cr='\\r' 18312else 18313 ac_cs_awk_cr=$ac_cr 18314fi 18315 18316echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18317_ACEOF 18318 18319 18320{ 18321 echo "cat >conf$$subs.awk <<_ACEOF" && 18322 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18323 echo "_ACEOF" 18324} >conf$$subs.sh || 18325 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18326ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18327ac_delim='%!_!# ' 18328for ac_last_try in false false false false false :; do 18329 . ./conf$$subs.sh || 18330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18331 18332 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18333 if test $ac_delim_n = $ac_delim_num; then 18334 break 18335 elif $ac_last_try; then 18336 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18337 else 18338 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18339 fi 18340done 18341rm -f conf$$subs.sh 18342 18343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18344cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18345_ACEOF 18346sed -n ' 18347h 18348s/^/S["/; s/!.*/"]=/ 18349p 18350g 18351s/^[^!]*!// 18352:repl 18353t repl 18354s/'"$ac_delim"'$// 18355t delim 18356:nl 18357h 18358s/\(.\{148\}\)..*/\1/ 18359t more1 18360s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18361p 18362n 18363b repl 18364:more1 18365s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18366p 18367g 18368s/.\{148\}// 18369t nl 18370:delim 18371h 18372s/\(.\{148\}\)..*/\1/ 18373t more2 18374s/["\\]/\\&/g; s/^/"/; s/$/"/ 18375p 18376b 18377:more2 18378s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18379p 18380g 18381s/.\{148\}// 18382t delim 18383' <conf$$subs.awk | sed ' 18384/^[^""]/{ 18385 N 18386 s/\n// 18387} 18388' >>$CONFIG_STATUS || ac_write_fail=1 18389rm -f conf$$subs.awk 18390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18391_ACAWK 18392cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18393 for (key in S) S_is_set[key] = 1 18394 FS = "" 18395 18396} 18397{ 18398 line = $ 0 18399 nfields = split(line, field, "@") 18400 substed = 0 18401 len = length(field[1]) 18402 for (i = 2; i < nfields; i++) { 18403 key = field[i] 18404 keylen = length(key) 18405 if (S_is_set[key]) { 18406 value = S[key] 18407 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18408 len += length(value) + length(field[++i]) 18409 substed = 1 18410 } else 18411 len += 1 + keylen 18412 } 18413 18414 print line 18415} 18416 18417_ACAWK 18418_ACEOF 18419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18420if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18421 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18422else 18423 cat 18424fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18425 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18426_ACEOF 18427 18428# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18429# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18430# trailing colons and then remove the whole line if VPATH becomes empty 18431# (actually we leave an empty line to preserve line numbers). 18432if test "x$srcdir" = x.; then 18433 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18434h 18435s/// 18436s/^/:/ 18437s/[ ]*$/:/ 18438s/:\$(srcdir):/:/g 18439s/:\${srcdir}:/:/g 18440s/:@srcdir@:/:/g 18441s/^:*// 18442s/:*$// 18443x 18444s/\(=[ ]*\).*/\1/ 18445G 18446s/\n// 18447s/^[^=]*=[ ]*$// 18448}' 18449fi 18450 18451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18452fi # test -n "$CONFIG_FILES" 18453 18454# Set up the scripts for CONFIG_HEADERS section. 18455# No need to generate them if there are no CONFIG_HEADERS. 18456# This happens for instance with `./config.status Makefile'. 18457if test -n "$CONFIG_HEADERS"; then 18458cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18459BEGIN { 18460_ACEOF 18461 18462# Transform confdefs.h into an awk script `defines.awk', embedded as 18463# here-document in config.status, that substitutes the proper values into 18464# config.h.in to produce config.h. 18465 18466# Create a delimiter string that does not exist in confdefs.h, to ease 18467# handling of long lines. 18468ac_delim='%!_!# ' 18469for ac_last_try in false false :; do 18470 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18471 if test -z "$ac_tt"; then 18472 break 18473 elif $ac_last_try; then 18474 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18475 else 18476 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18477 fi 18478done 18479 18480# For the awk script, D is an array of macro values keyed by name, 18481# likewise P contains macro parameters if any. Preserve backslash 18482# newline sequences. 18483 18484ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18485sed -n ' 18486s/.\{148\}/&'"$ac_delim"'/g 18487t rset 18488:rset 18489s/^[ ]*#[ ]*define[ ][ ]*/ / 18490t def 18491d 18492:def 18493s/\\$// 18494t bsnl 18495s/["\\]/\\&/g 18496s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18497D["\1"]=" \3"/p 18498s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18499d 18500:bsnl 18501s/["\\]/\\&/g 18502s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18503D["\1"]=" \3\\\\\\n"\\/p 18504t cont 18505s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18506t cont 18507d 18508:cont 18509n 18510s/.\{148\}/&'"$ac_delim"'/g 18511t clear 18512:clear 18513s/\\$// 18514t bsnlc 18515s/["\\]/\\&/g; s/^/"/; s/$/"/p 18516d 18517:bsnlc 18518s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18519b cont 18520' <confdefs.h | sed ' 18521s/'"$ac_delim"'/"\\\ 18522"/g' >>$CONFIG_STATUS || ac_write_fail=1 18523 18524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18525 for (key in D) D_is_set[key] = 1 18526 FS = "" 18527} 18528/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18529 line = \$ 0 18530 split(line, arg, " ") 18531 if (arg[1] == "#") { 18532 defundef = arg[2] 18533 mac1 = arg[3] 18534 } else { 18535 defundef = substr(arg[1], 2) 18536 mac1 = arg[2] 18537 } 18538 split(mac1, mac2, "(") #) 18539 macro = mac2[1] 18540 prefix = substr(line, 1, index(line, defundef) - 1) 18541 if (D_is_set[macro]) { 18542 # Preserve the white space surrounding the "#". 18543 print prefix "define", macro P[macro] D[macro] 18544 next 18545 } else { 18546 # Replace #undef with comments. This is necessary, for example, 18547 # in the case of _POSIX_SOURCE, which is predefined and required 18548 # on some systems where configure will not decide to define it. 18549 if (defundef == "undef") { 18550 print "/*", prefix defundef, macro, "*/" 18551 next 18552 } 18553 } 18554} 18555{ print } 18556_ACAWK 18557_ACEOF 18558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18559 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18560fi # test -n "$CONFIG_HEADERS" 18561 18562 18563eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18564shift 18565for ac_tag 18566do 18567 case $ac_tag in 18568 :[FHLC]) ac_mode=$ac_tag; continue;; 18569 esac 18570 case $ac_mode$ac_tag in 18571 :[FHL]*:*);; 18572 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18573 :[FH]-) ac_tag=-:-;; 18574 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18575 esac 18576 ac_save_IFS=$IFS 18577 IFS=: 18578 set x $ac_tag 18579 IFS=$ac_save_IFS 18580 shift 18581 ac_file=$1 18582 shift 18583 18584 case $ac_mode in 18585 :L) ac_source=$1;; 18586 :[FH]) 18587 ac_file_inputs= 18588 for ac_f 18589 do 18590 case $ac_f in 18591 -) ac_f="$ac_tmp/stdin";; 18592 *) # Look for the file first in the build tree, then in the source tree 18593 # (if the path is not absolute). The absolute path cannot be DOS-style, 18594 # because $ac_f cannot contain `:'. 18595 test -f "$ac_f" || 18596 case $ac_f in 18597 [\\/$]*) false;; 18598 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18599 esac || 18600 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18601 esac 18602 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18603 as_fn_append ac_file_inputs " '$ac_f'" 18604 done 18605 18606 # Let's still pretend it is `configure' which instantiates (i.e., don't 18607 # use $as_me), people would be surprised to read: 18608 # /* config.h. Generated by config.status. */ 18609 configure_input='Generated from '` 18610 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18611 `' by configure.' 18612 if test x"$ac_file" != x-; then 18613 configure_input="$ac_file. $configure_input" 18614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18615$as_echo "$as_me: creating $ac_file" >&6;} 18616 fi 18617 # Neutralize special characters interpreted by sed in replacement strings. 18618 case $configure_input in #( 18619 *\&* | *\|* | *\\* ) 18620 ac_sed_conf_input=`$as_echo "$configure_input" | 18621 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18622 *) ac_sed_conf_input=$configure_input;; 18623 esac 18624 18625 case $ac_tag in 18626 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18628 esac 18629 ;; 18630 esac 18631 18632 ac_dir=`$as_dirname -- "$ac_file" || 18633$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18634 X"$ac_file" : 'X\(//\)[^/]' \| \ 18635 X"$ac_file" : 'X\(//\)$' \| \ 18636 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18637$as_echo X"$ac_file" | 18638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18639 s//\1/ 18640 q 18641 } 18642 /^X\(\/\/\)[^/].*/{ 18643 s//\1/ 18644 q 18645 } 18646 /^X\(\/\/\)$/{ 18647 s//\1/ 18648 q 18649 } 18650 /^X\(\/\).*/{ 18651 s//\1/ 18652 q 18653 } 18654 s/.*/./; q'` 18655 as_dir="$ac_dir"; as_fn_mkdir_p 18656 ac_builddir=. 18657 18658case "$ac_dir" in 18659.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18660*) 18661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18662 # A ".." for each directory in $ac_dir_suffix. 18663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18664 case $ac_top_builddir_sub in 18665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18667 esac ;; 18668esac 18669ac_abs_top_builddir=$ac_pwd 18670ac_abs_builddir=$ac_pwd$ac_dir_suffix 18671# for backward compatibility: 18672ac_top_builddir=$ac_top_build_prefix 18673 18674case $srcdir in 18675 .) # We are building in place. 18676 ac_srcdir=. 18677 ac_top_srcdir=$ac_top_builddir_sub 18678 ac_abs_top_srcdir=$ac_pwd ;; 18679 [\\/]* | ?:[\\/]* ) # Absolute name. 18680 ac_srcdir=$srcdir$ac_dir_suffix; 18681 ac_top_srcdir=$srcdir 18682 ac_abs_top_srcdir=$srcdir ;; 18683 *) # Relative name. 18684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18685 ac_top_srcdir=$ac_top_build_prefix$srcdir 18686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18687esac 18688ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18689 18690 18691 case $ac_mode in 18692 :F) 18693 # 18694 # CONFIG_FILE 18695 # 18696 18697 case $INSTALL in 18698 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18699 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18700 esac 18701 ac_MKDIR_P=$MKDIR_P 18702 case $MKDIR_P in 18703 [\\/$]* | ?:[\\/]* ) ;; 18704 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18705 esac 18706_ACEOF 18707 18708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18709# If the template does not know about datarootdir, expand it. 18710# FIXME: This hack should be removed a few years after 2.60. 18711ac_datarootdir_hack=; ac_datarootdir_seen= 18712ac_sed_dataroot=' 18713/datarootdir/ { 18714 p 18715 q 18716} 18717/@datadir@/p 18718/@docdir@/p 18719/@infodir@/p 18720/@localedir@/p 18721/@mandir@/p' 18722case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18723*datarootdir*) ac_datarootdir_seen=yes;; 18724*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18726$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18727_ACEOF 18728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18729 ac_datarootdir_hack=' 18730 s&@datadir@&$datadir&g 18731 s&@docdir@&$docdir&g 18732 s&@infodir@&$infodir&g 18733 s&@localedir@&$localedir&g 18734 s&@mandir@&$mandir&g 18735 s&\\\${datarootdir}&$datarootdir&g' ;; 18736esac 18737_ACEOF 18738 18739# Neutralize VPATH when `$srcdir' = `.'. 18740# Shell code in configure.ac might set extrasub. 18741# FIXME: do we really want to maintain this feature? 18742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18743ac_sed_extra="$ac_vpsub 18744$extrasub 18745_ACEOF 18746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18747:t 18748/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18749s|@configure_input@|$ac_sed_conf_input|;t t 18750s&@top_builddir@&$ac_top_builddir_sub&;t t 18751s&@top_build_prefix@&$ac_top_build_prefix&;t t 18752s&@srcdir@&$ac_srcdir&;t t 18753s&@abs_srcdir@&$ac_abs_srcdir&;t t 18754s&@top_srcdir@&$ac_top_srcdir&;t t 18755s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18756s&@builddir@&$ac_builddir&;t t 18757s&@abs_builddir@&$ac_abs_builddir&;t t 18758s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18759s&@INSTALL@&$ac_INSTALL&;t t 18760s&@MKDIR_P@&$ac_MKDIR_P&;t t 18761$ac_datarootdir_hack 18762" 18763eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18764 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18765 18766test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18767 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18768 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18769 "$ac_tmp/out"`; test -z "$ac_out"; } && 18770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18771which seems to be undefined. Please make sure it is defined" >&5 18772$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18773which seems to be undefined. Please make sure it is defined" >&2;} 18774 18775 rm -f "$ac_tmp/stdin" 18776 case $ac_file in 18777 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18778 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18779 esac \ 18780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18781 ;; 18782 :H) 18783 # 18784 # CONFIG_HEADER 18785 # 18786 if test x"$ac_file" != x-; then 18787 { 18788 $as_echo "/* $configure_input */" \ 18789 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18790 } >"$ac_tmp/config.h" \ 18791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18792 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18793 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18794$as_echo "$as_me: $ac_file is unchanged" >&6;} 18795 else 18796 rm -f "$ac_file" 18797 mv "$ac_tmp/config.h" "$ac_file" \ 18798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18799 fi 18800 else 18801 $as_echo "/* $configure_input */" \ 18802 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18803 || as_fn_error $? "could not create -" "$LINENO" 5 18804 fi 18805# Compute "$ac_file"'s index in $config_headers. 18806_am_arg="$ac_file" 18807_am_stamp_count=1 18808for _am_header in $config_headers :; do 18809 case $_am_header in 18810 $_am_arg | $_am_arg:* ) 18811 break ;; 18812 * ) 18813 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18814 esac 18815done 18816echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18817$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18818 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18819 X"$_am_arg" : 'X\(//\)$' \| \ 18820 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18821$as_echo X"$_am_arg" | 18822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18823 s//\1/ 18824 q 18825 } 18826 /^X\(\/\/\)[^/].*/{ 18827 s//\1/ 18828 q 18829 } 18830 /^X\(\/\/\)$/{ 18831 s//\1/ 18832 q 18833 } 18834 /^X\(\/\).*/{ 18835 s//\1/ 18836 q 18837 } 18838 s/.*/./; q'`/stamp-h$_am_stamp_count 18839 ;; 18840 18841 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18842$as_echo "$as_me: executing $ac_file commands" >&6;} 18843 ;; 18844 esac 18845 18846 18847 case $ac_file$ac_mode in 18848 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18849 # Older Autoconf quotes --file arguments for eval, but not when files 18850 # are listed without --file. Let's play safe and only enable the eval 18851 # if we detect the quoting. 18852 # TODO: see whether this extra hack can be removed once we start 18853 # requiring Autoconf 2.70 or later. 18854 case $CONFIG_FILES in #( 18855 *\'*) : 18856 eval set x "$CONFIG_FILES" ;; #( 18857 *) : 18858 set x $CONFIG_FILES ;; #( 18859 *) : 18860 ;; 18861esac 18862 shift 18863 # Used to flag and report bootstrapping failures. 18864 am_rc=0 18865 for am_mf 18866 do 18867 # Strip MF so we end up with the name of the file. 18868 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 18869 # Check whether this is an Automake generated Makefile which includes 18870 # dependency-tracking related rules and includes. 18871 # Grep'ing the whole file directly is not great: AIX grep has a line 18872 # limit of 2048, but all sed's we know have understand at least 4000. 18873 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 18874 || continue 18875 am_dirpart=`$as_dirname -- "$am_mf" || 18876$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18877 X"$am_mf" : 'X\(//\)[^/]' \| \ 18878 X"$am_mf" : 'X\(//\)$' \| \ 18879 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18880$as_echo X"$am_mf" | 18881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18882 s//\1/ 18883 q 18884 } 18885 /^X\(\/\/\)[^/].*/{ 18886 s//\1/ 18887 q 18888 } 18889 /^X\(\/\/\)$/{ 18890 s//\1/ 18891 q 18892 } 18893 /^X\(\/\).*/{ 18894 s//\1/ 18895 q 18896 } 18897 s/.*/./; q'` 18898 am_filepart=`$as_basename -- "$am_mf" || 18899$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 18900 X"$am_mf" : 'X\(//\)$' \| \ 18901 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18902$as_echo X/"$am_mf" | 18903 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18904 s//\1/ 18905 q 18906 } 18907 /^X\/\(\/\/\)$/{ 18908 s//\1/ 18909 q 18910 } 18911 /^X\/\(\/\).*/{ 18912 s//\1/ 18913 q 18914 } 18915 s/.*/./; q'` 18916 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 18917 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18918 | $MAKE -f - am--depfiles" >&5 18919 (cd "$am_dirpart" \ 18920 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18921 | $MAKE -f - am--depfiles) >&5 2>&5 18922 ac_status=$? 18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18924 (exit $ac_status); } || am_rc=$? 18925 done 18926 if test $am_rc -ne 0; then 18927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18929as_fn_error $? "Something went wrong bootstrapping makefile fragments 18930 for automatic dependency tracking. Try re-running configure with the 18931 '--disable-dependency-tracking' option to at least be able to build 18932 the package (albeit without support for automatic dependency tracking). 18933See \`config.log' for more details" "$LINENO" 5; } 18934 fi 18935 { am_dirpart=; unset am_dirpart;} 18936 { am_filepart=; unset am_filepart;} 18937 { am_mf=; unset am_mf;} 18938 { am_rc=; unset am_rc;} 18939 rm -f conftest-deps.mk 18940} 18941 ;; 18942 "libtool":C) 18943 18944 # See if we are running on zsh, and set the options that allow our 18945 # commands through without removal of \ escapes. 18946 if test -n "${ZSH_VERSION+set}"; then 18947 setopt NO_GLOB_SUBST 18948 fi 18949 18950 cfgfile=${ofile}T 18951 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18952 $RM "$cfgfile" 18953 18954 cat <<_LT_EOF >> "$cfgfile" 18955#! $SHELL 18956# Generated automatically by $as_me ($PACKAGE) $VERSION 18957# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18958 18959# Provide generalized library-building support services. 18960# Written by Gordon Matzigkeit, 1996 18961 18962# Copyright (C) 2014 Free Software Foundation, Inc. 18963# This is free software; see the source for copying conditions. There is NO 18964# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18965 18966# GNU Libtool is free software; you can redistribute it and/or modify 18967# it under the terms of the GNU General Public License as published by 18968# the Free Software Foundation; either version 2 of of the License, or 18969# (at your option) any later version. 18970# 18971# As a special exception to the GNU General Public License, if you 18972# distribute this file as part of a program or library that is built 18973# using GNU Libtool, you may include this file under the same 18974# distribution terms that you use for the rest of that program. 18975# 18976# GNU Libtool is distributed in the hope that it will be useful, but 18977# WITHOUT ANY WARRANTY; without even the implied warranty of 18978# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18979# GNU General Public License for more details. 18980# 18981# You should have received a copy of the GNU General Public License 18982# along with this program. If not, see <http://www.gnu.org/licenses/>. 18983 18984 18985# The names of the tagged configurations supported by this script. 18986available_tags='' 18987 18988# Configured defaults for sys_lib_dlsearch_path munging. 18989: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18990 18991# ### BEGIN LIBTOOL CONFIG 18992 18993# Assembler program. 18994AS=$lt_AS 18995 18996# DLL creation program. 18997DLLTOOL=$lt_DLLTOOL 18998 18999# Object dumper program. 19000OBJDUMP=$lt_OBJDUMP 19001 19002# Which release of libtool.m4 was used? 19003macro_version=$macro_version 19004macro_revision=$macro_revision 19005 19006# Whether or not to build shared libraries. 19007build_libtool_libs=$enable_shared 19008 19009# Whether or not to build static libraries. 19010build_old_libs=$enable_static 19011 19012# What type of objects to build. 19013pic_mode=$pic_mode 19014 19015# Whether or not to optimize for fast installation. 19016fast_install=$enable_fast_install 19017 19018# Shared archive member basename,for filename based shared library versioning on AIX. 19019shared_archive_member_spec=$shared_archive_member_spec 19020 19021# Shell to use when invoking shell scripts. 19022SHELL=$lt_SHELL 19023 19024# An echo program that protects backslashes. 19025ECHO=$lt_ECHO 19026 19027# The PATH separator for the build system. 19028PATH_SEPARATOR=$lt_PATH_SEPARATOR 19029 19030# The host system. 19031host_alias=$host_alias 19032host=$host 19033host_os=$host_os 19034 19035# The build system. 19036build_alias=$build_alias 19037build=$build 19038build_os=$build_os 19039 19040# A sed program that does not truncate output. 19041SED=$lt_SED 19042 19043# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19044Xsed="\$SED -e 1s/^X//" 19045 19046# A grep program that handles long lines. 19047GREP=$lt_GREP 19048 19049# An ERE matcher. 19050EGREP=$lt_EGREP 19051 19052# A literal string matcher. 19053FGREP=$lt_FGREP 19054 19055# A BSD- or MS-compatible name lister. 19056NM=$lt_NM 19057 19058# Whether we need soft or hard links. 19059LN_S=$lt_LN_S 19060 19061# What is the maximum length of a command? 19062max_cmd_len=$max_cmd_len 19063 19064# Object file suffix (normally "o"). 19065objext=$ac_objext 19066 19067# Executable file suffix (normally ""). 19068exeext=$exeext 19069 19070# whether the shell understands "unset". 19071lt_unset=$lt_unset 19072 19073# turn spaces into newlines. 19074SP2NL=$lt_lt_SP2NL 19075 19076# turn newlines into spaces. 19077NL2SP=$lt_lt_NL2SP 19078 19079# convert \$build file names to \$host format. 19080to_host_file_cmd=$lt_cv_to_host_file_cmd 19081 19082# convert \$build files to toolchain format. 19083to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19084 19085# Method to check whether dependent libraries are shared objects. 19086deplibs_check_method=$lt_deplibs_check_method 19087 19088# Command to use when deplibs_check_method = "file_magic". 19089file_magic_cmd=$lt_file_magic_cmd 19090 19091# How to find potential files when deplibs_check_method = "file_magic". 19092file_magic_glob=$lt_file_magic_glob 19093 19094# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19095want_nocaseglob=$lt_want_nocaseglob 19096 19097# Command to associate shared and link libraries. 19098sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19099 19100# The archiver. 19101AR=$lt_AR 19102 19103# Flags to create an archive. 19104AR_FLAGS=$lt_AR_FLAGS 19105 19106# How to feed a file listing to the archiver. 19107archiver_list_spec=$lt_archiver_list_spec 19108 19109# A symbol stripping program. 19110STRIP=$lt_STRIP 19111 19112# Commands used to install an old-style archive. 19113RANLIB=$lt_RANLIB 19114old_postinstall_cmds=$lt_old_postinstall_cmds 19115old_postuninstall_cmds=$lt_old_postuninstall_cmds 19116 19117# Whether to use a lock for old archive extraction. 19118lock_old_archive_extraction=$lock_old_archive_extraction 19119 19120# A C compiler. 19121LTCC=$lt_CC 19122 19123# LTCC compiler flags. 19124LTCFLAGS=$lt_CFLAGS 19125 19126# Take the output of nm and produce a listing of raw symbols and C names. 19127global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19128 19129# Transform the output of nm in a proper C declaration. 19130global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19131 19132# Transform the output of nm into a list of symbols to manually relocate. 19133global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 19134 19135# Transform the output of nm in a C name address pair. 19136global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19137 19138# Transform the output of nm in a C name address pair when lib prefix is needed. 19139global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19140 19141# The name lister interface. 19142nm_interface=$lt_lt_cv_nm_interface 19143 19144# Specify filename containing input files for \$NM. 19145nm_file_list_spec=$lt_nm_file_list_spec 19146 19147# The root where to search for dependent libraries,and where our libraries should be installed. 19148lt_sysroot=$lt_sysroot 19149 19150# Command to truncate a binary pipe. 19151lt_truncate_bin=$lt_lt_cv_truncate_bin 19152 19153# The name of the directory that contains temporary libtool files. 19154objdir=$objdir 19155 19156# Used to examine libraries when file_magic_cmd begins with "file". 19157MAGIC_CMD=$MAGIC_CMD 19158 19159# Must we lock files when doing compilation? 19160need_locks=$lt_need_locks 19161 19162# Manifest tool. 19163MANIFEST_TOOL=$lt_MANIFEST_TOOL 19164 19165# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19166DSYMUTIL=$lt_DSYMUTIL 19167 19168# Tool to change global to local symbols on Mac OS X. 19169NMEDIT=$lt_NMEDIT 19170 19171# Tool to manipulate fat objects and archives on Mac OS X. 19172LIPO=$lt_LIPO 19173 19174# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19175OTOOL=$lt_OTOOL 19176 19177# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19178OTOOL64=$lt_OTOOL64 19179 19180# Old archive suffix (normally "a"). 19181libext=$libext 19182 19183# Shared library suffix (normally ".so"). 19184shrext_cmds=$lt_shrext_cmds 19185 19186# The commands to extract the exported symbol list from a shared archive. 19187extract_expsyms_cmds=$lt_extract_expsyms_cmds 19188 19189# Variables whose values should be saved in libtool wrapper scripts and 19190# restored at link time. 19191variables_saved_for_relink=$lt_variables_saved_for_relink 19192 19193# Do we need the "lib" prefix for modules? 19194need_lib_prefix=$need_lib_prefix 19195 19196# Do we need a version for libraries? 19197need_version=$need_version 19198 19199# Library versioning type. 19200version_type=$version_type 19201 19202# Shared library runtime path variable. 19203runpath_var=$runpath_var 19204 19205# Shared library path variable. 19206shlibpath_var=$shlibpath_var 19207 19208# Is shlibpath searched before the hard-coded library search path? 19209shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19210 19211# Format of library name prefix. 19212libname_spec=$lt_libname_spec 19213 19214# List of archive names. First name is the real one, the rest are links. 19215# The last name is the one that the linker finds with -lNAME 19216library_names_spec=$lt_library_names_spec 19217 19218# The coded name of the library, if different from the real name. 19219soname_spec=$lt_soname_spec 19220 19221# Permission mode override for installation of shared libraries. 19222install_override_mode=$lt_install_override_mode 19223 19224# Command to use after installation of a shared archive. 19225postinstall_cmds=$lt_postinstall_cmds 19226 19227# Command to use after uninstallation of a shared archive. 19228postuninstall_cmds=$lt_postuninstall_cmds 19229 19230# Commands used to finish a libtool library installation in a directory. 19231finish_cmds=$lt_finish_cmds 19232 19233# As "finish_cmds", except a single script fragment to be evaled but 19234# not shown. 19235finish_eval=$lt_finish_eval 19236 19237# Whether we should hardcode library paths into libraries. 19238hardcode_into_libs=$hardcode_into_libs 19239 19240# Compile-time system search path for libraries. 19241sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19242 19243# Detected run-time system search path for libraries. 19244sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19245 19246# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19247configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19248 19249# Whether dlopen is supported. 19250dlopen_support=$enable_dlopen 19251 19252# Whether dlopen of programs is supported. 19253dlopen_self=$enable_dlopen_self 19254 19255# Whether dlopen of statically linked programs is supported. 19256dlopen_self_static=$enable_dlopen_self_static 19257 19258# Commands to strip libraries. 19259old_striplib=$lt_old_striplib 19260striplib=$lt_striplib 19261 19262 19263# The linker used to build libraries. 19264LD=$lt_LD 19265 19266# How to create reloadable object files. 19267reload_flag=$lt_reload_flag 19268reload_cmds=$lt_reload_cmds 19269 19270# Commands used to build an old-style archive. 19271old_archive_cmds=$lt_old_archive_cmds 19272 19273# A language specific compiler. 19274CC=$lt_compiler 19275 19276# Is the compiler the GNU compiler? 19277with_gcc=$GCC 19278 19279# Compiler flag to turn off builtin functions. 19280no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19281 19282# Additional compiler flags for building library objects. 19283pic_flag=$lt_lt_prog_compiler_pic 19284 19285# How to pass a linker flag through the compiler. 19286wl=$lt_lt_prog_compiler_wl 19287 19288# Compiler flag to prevent dynamic linking. 19289link_static_flag=$lt_lt_prog_compiler_static 19290 19291# Does compiler simultaneously support -c and -o options? 19292compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19293 19294# Whether or not to add -lc for building shared libraries. 19295build_libtool_need_lc=$archive_cmds_need_lc 19296 19297# Whether or not to disallow shared libs when runtime libs are static. 19298allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19299 19300# Compiler flag to allow reflexive dlopens. 19301export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19302 19303# Compiler flag to generate shared objects directly from archives. 19304whole_archive_flag_spec=$lt_whole_archive_flag_spec 19305 19306# Whether the compiler copes with passing no objects directly. 19307compiler_needs_object=$lt_compiler_needs_object 19308 19309# Create an old-style archive from a shared archive. 19310old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19311 19312# Create a temporary old-style archive to link instead of a shared archive. 19313old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19314 19315# Commands used to build a shared archive. 19316archive_cmds=$lt_archive_cmds 19317archive_expsym_cmds=$lt_archive_expsym_cmds 19318 19319# Commands used to build a loadable module if different from building 19320# a shared archive. 19321module_cmds=$lt_module_cmds 19322module_expsym_cmds=$lt_module_expsym_cmds 19323 19324# Whether we are building with GNU ld or not. 19325with_gnu_ld=$lt_with_gnu_ld 19326 19327# Flag that allows shared libraries with undefined symbols to be built. 19328allow_undefined_flag=$lt_allow_undefined_flag 19329 19330# Flag that enforces no undefined symbols. 19331no_undefined_flag=$lt_no_undefined_flag 19332 19333# Flag to hardcode \$libdir into a binary during linking. 19334# This must work even if \$libdir does not exist 19335hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19336 19337# Whether we need a single "-rpath" flag with a separated argument. 19338hardcode_libdir_separator=$lt_hardcode_libdir_separator 19339 19340# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19341# DIR into the resulting binary. 19342hardcode_direct=$hardcode_direct 19343 19344# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19345# DIR into the resulting binary and the resulting library dependency is 19346# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19347# library is relocated. 19348hardcode_direct_absolute=$hardcode_direct_absolute 19349 19350# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19351# into the resulting binary. 19352hardcode_minus_L=$hardcode_minus_L 19353 19354# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19355# into the resulting binary. 19356hardcode_shlibpath_var=$hardcode_shlibpath_var 19357 19358# Set to "yes" if building a shared library automatically hardcodes DIR 19359# into the library and all subsequent libraries and executables linked 19360# against it. 19361hardcode_automatic=$hardcode_automatic 19362 19363# Set to yes if linker adds runtime paths of dependent libraries 19364# to runtime path list. 19365inherit_rpath=$inherit_rpath 19366 19367# Whether libtool must link a program against all its dependency libraries. 19368link_all_deplibs=$link_all_deplibs 19369 19370# Set to "yes" if exported symbols are required. 19371always_export_symbols=$always_export_symbols 19372 19373# The commands to list exported symbols. 19374export_symbols_cmds=$lt_export_symbols_cmds 19375 19376# Symbols that should not be listed in the preloaded symbols. 19377exclude_expsyms=$lt_exclude_expsyms 19378 19379# Symbols that must always be exported. 19380include_expsyms=$lt_include_expsyms 19381 19382# Commands necessary for linking programs (against libraries) with templates. 19383prelink_cmds=$lt_prelink_cmds 19384 19385# Commands necessary for finishing linking programs. 19386postlink_cmds=$lt_postlink_cmds 19387 19388# Specify filename containing input files. 19389file_list_spec=$lt_file_list_spec 19390 19391# How to hardcode a shared library path into an executable. 19392hardcode_action=$hardcode_action 19393 19394# ### END LIBTOOL CONFIG 19395 19396_LT_EOF 19397 19398 cat <<'_LT_EOF' >> "$cfgfile" 19399 19400# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 19401 19402# func_munge_path_list VARIABLE PATH 19403# ----------------------------------- 19404# VARIABLE is name of variable containing _space_ separated list of 19405# directories to be munged by the contents of PATH, which is string 19406# having a format: 19407# "DIR[:DIR]:" 19408# string "DIR[ DIR]" will be prepended to VARIABLE 19409# ":DIR[:DIR]" 19410# string "DIR[ DIR]" will be appended to VARIABLE 19411# "DIRP[:DIRP]::[DIRA:]DIRA" 19412# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 19413# "DIRA[ DIRA]" will be appended to VARIABLE 19414# "DIR[:DIR]" 19415# VARIABLE will be replaced by "DIR[ DIR]" 19416func_munge_path_list () 19417{ 19418 case x$2 in 19419 x) 19420 ;; 19421 *:) 19422 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 19423 ;; 19424 x:*) 19425 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 19426 ;; 19427 *::*) 19428 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 19429 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 19430 ;; 19431 *) 19432 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 19433 ;; 19434 esac 19435} 19436 19437 19438# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 19439func_cc_basename () 19440{ 19441 for cc_temp in $*""; do 19442 case $cc_temp in 19443 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19444 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19445 \-*) ;; 19446 *) break;; 19447 esac 19448 done 19449 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19450} 19451 19452 19453# ### END FUNCTIONS SHARED WITH CONFIGURE 19454 19455_LT_EOF 19456 19457 case $host_os in 19458 aix3*) 19459 cat <<\_LT_EOF >> "$cfgfile" 19460# AIX sometimes has problems with the GCC collect2 program. For some 19461# reason, if we set the COLLECT_NAMES environment variable, the problems 19462# vanish in a puff of smoke. 19463if test set != "${COLLECT_NAMES+set}"; then 19464 COLLECT_NAMES= 19465 export COLLECT_NAMES 19466fi 19467_LT_EOF 19468 ;; 19469 esac 19470 19471 19472ltmain=$ac_aux_dir/ltmain.sh 19473 19474 19475 # We use sed instead of cat because bash on DJGPP gets confused if 19476 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19477 # text mode, it properly converts lines to CR/LF. This bash problem 19478 # is reportedly fixed, but why not run on old versions too? 19479 sed '$q' "$ltmain" >> "$cfgfile" \ 19480 || (rm -f "$cfgfile"; exit 1) 19481 19482 mv -f "$cfgfile" "$ofile" || 19483 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19484 chmod +x "$ofile" 19485 19486 ;; 19487 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) 19488 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 19489 esac ;; 19490 19491 esac 19492done # for ac_tag 19493 19494 19495as_fn_exit 0 19496_ACEOF 19497ac_clean_files=$ac_clean_files_save 19498 19499test $ac_write_fail = 0 || 19500 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19501 19502 19503# configure is writing to config.log, and then calls config.status. 19504# config.status does its own redirection, appending to config.log. 19505# Unfortunately, on DOS this fails, as config.log is still kept open 19506# by configure, so config.status won't be able to write to it; its 19507# output is simply discarded. So we exec the FD to /dev/null, 19508# effectively closing config.log, so it can be properly (re)opened and 19509# appended to by config.status. When coming back to configure, we 19510# need to make the FD available again. 19511if test "$no_create" != yes; then 19512 ac_cs_success=: 19513 ac_config_status_args= 19514 test "$silent" = yes && 19515 ac_config_status_args="$ac_config_status_args --quiet" 19516 exec 5>/dev/null 19517 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19518 exec 5>>config.log 19519 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19520 # would make configure fail if this is the last instruction. 19521 $ac_cs_success || as_fn_exit 1 19522fi 19523if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19525$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19526fi 19527 19528 19529# generated script needs to be executable 19530chmod +x test/test_all.sh 19531 19532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 19533* general build options 19534native win32: $nip_os_win32 19535native os x: $nip_os_darwin 19536update desktop after install: $nip_desktop_update 19537debug: $enable_debug 19538 19539* optional packages and modules 19540use fftw3 for FFT: $with_fftw3 19541use gsl for numeric functions: $with_gsl 19542use libgoffice to show plots: $with_libgoffice 19543use libgsf to save plots to files: $with_libgsf 19544use libgvc to show ws dep graphs: $with_libgvc 19545 (requires gvc > 2.30) 19546use gtkinfobar to show messages: $nip_use_infobar 19547 (requires gtk+-2.0 >= 2.18) 19548use notebook action widget: $nip_use_notebook_action 19549 (requires gtk+-2.0 >= 2.20) 19550use notebook group name: $nip_use_notebook_group_name 19551 (requires gtk+-2.0 >= 2.24) 19552allow regex searches: $nip_use_gregex 19553 (requires glib-2.0 >= 2.14) 19554display help files with xdg: $XDG_OPEN 19555" >&5 19556$as_echo " 19557* general build options 19558native win32: $nip_os_win32 19559native os x: $nip_os_darwin 19560update desktop after install: $nip_desktop_update 19561debug: $enable_debug 19562 19563* optional packages and modules 19564use fftw3 for FFT: $with_fftw3 19565use gsl for numeric functions: $with_gsl 19566use libgoffice to show plots: $with_libgoffice 19567use libgsf to save plots to files: $with_libgsf 19568use libgvc to show ws dep graphs: $with_libgvc 19569 (requires gvc > 2.30) 19570use gtkinfobar to show messages: $nip_use_infobar 19571 (requires gtk+-2.0 >= 2.18) 19572use notebook action widget: $nip_use_notebook_action 19573 (requires gtk+-2.0 >= 2.20) 19574use notebook group name: $nip_use_notebook_group_name 19575 (requires gtk+-2.0 >= 2.24) 19576allow regex searches: $nip_use_gregex 19577 (requires glib-2.0 >= 2.14) 19578display help files with xdg: $XDG_OPEN 19579" >&6; } 19580