1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for GNOME Online Accounts 3.40.1. 4# 5# Report bugs to <https://gitlab.gnome.org/GNOME/gnome-online-accounts/issues>. 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 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: https://gitlab.gnome.org/GNOME/gnome-online-accounts/issues 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='GNOME Online Accounts' 593PACKAGE_TARNAME='gnome-online-accounts' 594PACKAGE_VERSION='3.40.1' 595PACKAGE_STRING='GNOME Online Accounts 3.40.1' 596PACKAGE_BUGREPORT='https://gitlab.gnome.org/GNOME/gnome-online-accounts/issues' 597PACKAGE_URL='https://wiki.gnome.org/Projects/GnomeOnlineAccounts' 598 599ac_unique_file="src" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636gt_needs= 637ac_subst_vars='am__EXEEXT_FALSE 638am__EXEEXT_TRUE 639LTLIBOBJS 640LIBOBJS 641POSUB 642LTLIBINTL 643LIBINTL 644INTLLIBS 645LTLIBICONV 646LIBICONV 647INTL_MACOSX_LIBS 648XGETTEXT_EXTRA_OPTIONS 649MSGMERGE_FOR_MSGFMT_OPTION 650MSGMERGE 651XGETTEXT_015 652XGETTEXT 653GMSGFMT_015 654GMSGFMT 655MSGFMT 656GETTEXT_MACRO_VERSION 657USE_NLS 658GETTEXT_PACKAGE 659BUILD_IDENTITY_SERVICE_FALSE 660BUILD_IDENTITY_SERVICE_TRUE 661BUILD_KERBEROS_FALSE 662BUILD_KERBEROS_TRUE 663BUILD_FEDORA_FALSE 664BUILD_FEDORA_TRUE 665KRB5_LIBS 666KRB5_CFLAGS 667GCR_LIBS 668GCR_CFLAGS 669KRB5_CONFIG 670LIBXML_LIBS 671LIBXML_CFLAGS 672SECRET_LIBS 673SECRET_CFLAGS 674REST_LIBS 675REST_CFLAGS 676JSON_GLIB_LIBS 677JSON_GLIB_CFLAGS 678LIBSOUP_LIBS 679LIBSOUP_CFLAGS 680WEBKIT_GTK_LIBS 681WEBKIT_GTK_CFLAGS 682JAVASCRIPT_CORE_GTK_LIBS 683JAVASCRIPT_CORE_GTK_CFLAGS 684GTK_LIBS 685GTK_CFLAGS 686BUILD_BACKEND_FALSE 687BUILD_BACKEND_TRUE 688ENABLE_VAPIGEN_FALSE 689ENABLE_VAPIGEN_TRUE 690VAPIGEN_MAKEFILE 691VAPIGEN_VAPIDIR 692VAPIGEN 693HAVE_INTROSPECTION_FALSE 694HAVE_INTROSPECTION_TRUE 695INTROSPECTION_MAKEFILE 696INTROSPECTION_LIBS 697INTROSPECTION_CFLAGS 698INTROSPECTION_TYPELIBDIR 699INTROSPECTION_GIRDIR 700INTROSPECTION_GENERATE 701INTROSPECTION_COMPILER 702INTROSPECTION_SCANNER 703_GI_EXP_LIBDIR 704_GI_EXP_DATADIR 705GLIB_LIBS 706GLIB_CFLAGS 707GTK_DOC_USE_REBASE_FALSE 708GTK_DOC_USE_REBASE_TRUE 709GTK_DOC_USE_LIBTOOL_FALSE 710GTK_DOC_USE_LIBTOOL_TRUE 711GTK_DOC_BUILD_PDF_FALSE 712GTK_DOC_BUILD_PDF_TRUE 713GTK_DOC_BUILD_HTML_FALSE 714GTK_DOC_BUILD_HTML_TRUE 715ENABLE_GTK_DOC_FALSE 716ENABLE_GTK_DOC_TRUE 717HAVE_GTK_DOC_FALSE 718HAVE_GTK_DOC_TRUE 719GTKDOC_DEPS_LIBS 720GTKDOC_DEPS_CFLAGS 721HTML_DIR 722GTKDOC_MKPDF 723GTKDOC_REBASE 724GTKDOC_CHECK_PATH 725GTKDOC_CHECK 726XSLTPROC 727ENABLE_DOCUMENTATION_FALSE 728ENABLE_DOCUMENTATION_TRUE 729GSETTINGS_RULES 730GLIB_COMPILE_SCHEMAS 731gsettingsschemadir 732GSETTINGS_DISABLE_SCHEMAS_COMPILE 733GOA_BACKEND_LT_VERSION 734GOA_LT_VERSION 735GOA_MICRO_VERSION 736GOA_MINOR_VERSION 737GOA_MAJOR_VERSION 738PKG_CONFIG_LIBDIR 739PKG_CONFIG_PATH 740PKG_CONFIG 741CPP 742LT_SYS_LIBRARY_PATH 743OTOOL64 744OTOOL 745LIPO 746NMEDIT 747DSYMUTIL 748MANIFEST_TOOL 749RANLIB 750ac_ct_AR 751AR 752DLLTOOL 753OBJDUMP 754LN_S 755NM 756ac_ct_DUMPBIN 757DUMPBIN 758LD 759FGREP 760EGREP 761GREP 762host_os 763host_vendor 764host_cpu 765host 766build_os 767build_vendor 768build_cpu 769build 770LIBTOOL 771WARN_SCANNERFLAGS 772WARN_LDFLAGS 773WARN_CFLAGS 774am__fastdepCC_FALSE 775am__fastdepCC_TRUE 776CCDEPMODE 777am__nodep 778AMDEPBACKSLASH 779AMDEP_FALSE 780AMDEP_TRUE 781am__include 782DEPDIR 783OBJEXT 784EXEEXT 785ac_ct_CC 786CPPFLAGS 787LDFLAGS 788CFLAGS 789CC 790SED 791MAINT 792MAINTAINER_MODE_FALSE 793MAINTAINER_MODE_TRUE 794AM_BACKSLASH 795AM_DEFAULT_VERBOSITY 796AM_DEFAULT_V 797AM_V 798am__untar 799am__tar 800AMTAR 801am__leading_dot 802SET_MAKE 803AWK 804mkdir_p 805MKDIR_P 806INSTALL_STRIP_PROGRAM 807STRIP 808install_sh 809MAKEINFO 810AUTOHEADER 811AUTOMAKE 812AUTOCONF 813ACLOCAL 814VERSION 815PACKAGE 816CYGPATH_W 817am__isrc 818INSTALL_DATA 819INSTALL_SCRIPT 820INSTALL_PROGRAM 821target_alias 822host_alias 823build_alias 824LIBS 825ECHO_T 826ECHO_N 827ECHO_C 828DEFS 829mandir 830localedir 831libdir 832psdir 833pdfdir 834dvidir 835htmldir 836infodir 837docdir 838oldincludedir 839includedir 840localstatedir 841sharedstatedir 842sysconfdir 843datadir 844datarootdir 845libexecdir 846sbindir 847bindir 848program_transform_name 849prefix 850exec_prefix 851PACKAGE_URL 852PACKAGE_BUGREPORT 853PACKAGE_STRING 854PACKAGE_VERSION 855PACKAGE_TARNAME 856PACKAGE_NAME 857PATH_SEPARATOR 858SHELL 859am__quote' 860ac_subst_files='' 861ac_user_opts=' 862enable_option_checking 863enable_silent_rules 864enable_maintainer_mode 865enable_compile_warnings 866enable_Werror 867enable_dependency_tracking 868enable_shared 869enable_static 870with_pic 871enable_fast_install 872with_aix_soname 873with_gnu_ld 874with_sysroot 875enable_libtool_lock 876enable_schemas_compile 877enable_documentation 878with_html_dir 879enable_gtk_doc 880enable_gtk_doc_html 881enable_gtk_doc_pdf 882enable_introspection 883enable_vala 884enable_backend 885enable_inspector 886with_template_file 887enable_exchange 888enable_fedora 889enable_flickr 890with_flickr_consumer_key 891with_flickr_consumer_secret 892enable_foursquare 893with_foursquare_client_id 894enable_google 895with_google_client_id 896with_google_client_secret 897enable_imap_smtp 898enable_media_server 899enable_owncloud 900enable_facebook 901with_facebook_client_id 902enable_windows_live 903with_windows_live_client_id 904enable_kerberos 905enable_lastfm 906with_lastfm_client_id 907with_lastfm_client_secret 908enable_nls 909enable_rpath 910with_libiconv_prefix 911with_libintl_prefix 912' 913 ac_precious_vars='build_alias 914host_alias 915target_alias 916CC 917CFLAGS 918LDFLAGS 919LIBS 920CPPFLAGS 921LT_SYS_LIBRARY_PATH 922CPP 923PKG_CONFIG 924PKG_CONFIG_PATH 925PKG_CONFIG_LIBDIR 926GLIB_COMPILE_SCHEMAS 927GTKDOC_DEPS_CFLAGS 928GTKDOC_DEPS_LIBS 929GLIB_CFLAGS 930GLIB_LIBS 931GTK_CFLAGS 932GTK_LIBS 933JAVASCRIPT_CORE_GTK_CFLAGS 934JAVASCRIPT_CORE_GTK_LIBS 935WEBKIT_GTK_CFLAGS 936WEBKIT_GTK_LIBS 937LIBSOUP_CFLAGS 938LIBSOUP_LIBS 939JSON_GLIB_CFLAGS 940JSON_GLIB_LIBS 941REST_CFLAGS 942REST_LIBS 943SECRET_CFLAGS 944SECRET_LIBS 945LIBXML_CFLAGS 946LIBXML_LIBS 947GCR_CFLAGS 948GCR_LIBS' 949 950 951# Initialize some variables set by options. 952ac_init_help= 953ac_init_version=false 954ac_unrecognized_opts= 955ac_unrecognized_sep= 956# The variables have the same names as the options, with 957# dashes changed to underlines. 958cache_file=/dev/null 959exec_prefix=NONE 960no_create= 961no_recursion= 962prefix=NONE 963program_prefix=NONE 964program_suffix=NONE 965program_transform_name=s,x,x, 966silent= 967site= 968srcdir= 969verbose= 970x_includes=NONE 971x_libraries=NONE 972 973# Installation directory options. 974# These are left unexpanded so users can "make install exec_prefix=/foo" 975# and all the variables that are supposed to be based on exec_prefix 976# by default will actually change. 977# Use braces instead of parens because sh, perl, etc. also accept them. 978# (The list follows the same order as the GNU Coding Standards.) 979bindir='${exec_prefix}/bin' 980sbindir='${exec_prefix}/sbin' 981libexecdir='${exec_prefix}/libexec' 982datarootdir='${prefix}/share' 983datadir='${datarootdir}' 984sysconfdir='${prefix}/etc' 985sharedstatedir='${prefix}/com' 986localstatedir='${prefix}/var' 987includedir='${prefix}/include' 988oldincludedir='/usr/include' 989docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 990infodir='${datarootdir}/info' 991htmldir='${docdir}' 992dvidir='${docdir}' 993pdfdir='${docdir}' 994psdir='${docdir}' 995libdir='${exec_prefix}/lib' 996localedir='${datarootdir}/locale' 997mandir='${datarootdir}/man' 998 999ac_prev= 1000ac_dashdash= 1001for ac_option 1002do 1003 # If the previous option needs an argument, assign it. 1004 if test -n "$ac_prev"; then 1005 eval $ac_prev=\$ac_option 1006 ac_prev= 1007 continue 1008 fi 1009 1010 case $ac_option in 1011 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1012 *=) ac_optarg= ;; 1013 *) ac_optarg=yes ;; 1014 esac 1015 1016 # Accept the important Cygnus configure options, so we can diagnose typos. 1017 1018 case $ac_dashdash$ac_option in 1019 --) 1020 ac_dashdash=yes ;; 1021 1022 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1023 ac_prev=bindir ;; 1024 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1025 bindir=$ac_optarg ;; 1026 1027 -build | --build | --buil | --bui | --bu) 1028 ac_prev=build_alias ;; 1029 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1030 build_alias=$ac_optarg ;; 1031 1032 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1033 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1034 ac_prev=cache_file ;; 1035 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1036 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1037 cache_file=$ac_optarg ;; 1038 1039 --config-cache | -C) 1040 cache_file=config.cache ;; 1041 1042 -datadir | --datadir | --datadi | --datad) 1043 ac_prev=datadir ;; 1044 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1045 datadir=$ac_optarg ;; 1046 1047 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1048 | --dataroo | --dataro | --datar) 1049 ac_prev=datarootdir ;; 1050 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1051 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1052 datarootdir=$ac_optarg ;; 1053 1054 -disable-* | --disable-*) 1055 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1056 # Reject names that are not valid shell variable names. 1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1058 as_fn_error $? "invalid feature name: $ac_useropt" 1059 ac_useropt_orig=$ac_useropt 1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1061 case $ac_user_opts in 1062 *" 1063"enable_$ac_useropt" 1064"*) ;; 1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1066 ac_unrecognized_sep=', ';; 1067 esac 1068 eval enable_$ac_useropt=no ;; 1069 1070 -docdir | --docdir | --docdi | --doc | --do) 1071 ac_prev=docdir ;; 1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1073 docdir=$ac_optarg ;; 1074 1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1076 ac_prev=dvidir ;; 1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1078 dvidir=$ac_optarg ;; 1079 1080 -enable-* | --enable-*) 1081 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1082 # Reject names that are not valid shell variable names. 1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1084 as_fn_error $? "invalid feature name: $ac_useropt" 1085 ac_useropt_orig=$ac_useropt 1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1087 case $ac_user_opts in 1088 *" 1089"enable_$ac_useropt" 1090"*) ;; 1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1092 ac_unrecognized_sep=', ';; 1093 esac 1094 eval enable_$ac_useropt=\$ac_optarg ;; 1095 1096 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1097 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1098 | --exec | --exe | --ex) 1099 ac_prev=exec_prefix ;; 1100 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1101 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1102 | --exec=* | --exe=* | --ex=*) 1103 exec_prefix=$ac_optarg ;; 1104 1105 -gas | --gas | --ga | --g) 1106 # Obsolete; use --with-gas. 1107 with_gas=yes ;; 1108 1109 -help | --help | --hel | --he | -h) 1110 ac_init_help=long ;; 1111 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1112 ac_init_help=recursive ;; 1113 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1114 ac_init_help=short ;; 1115 1116 -host | --host | --hos | --ho) 1117 ac_prev=host_alias ;; 1118 -host=* | --host=* | --hos=* | --ho=*) 1119 host_alias=$ac_optarg ;; 1120 1121 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1122 ac_prev=htmldir ;; 1123 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1124 | --ht=*) 1125 htmldir=$ac_optarg ;; 1126 1127 -includedir | --includedir | --includedi | --included | --include \ 1128 | --includ | --inclu | --incl | --inc) 1129 ac_prev=includedir ;; 1130 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1131 | --includ=* | --inclu=* | --incl=* | --inc=*) 1132 includedir=$ac_optarg ;; 1133 1134 -infodir | --infodir | --infodi | --infod | --info | --inf) 1135 ac_prev=infodir ;; 1136 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1137 infodir=$ac_optarg ;; 1138 1139 -libdir | --libdir | --libdi | --libd) 1140 ac_prev=libdir ;; 1141 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1142 libdir=$ac_optarg ;; 1143 1144 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1145 | --libexe | --libex | --libe) 1146 ac_prev=libexecdir ;; 1147 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1148 | --libexe=* | --libex=* | --libe=*) 1149 libexecdir=$ac_optarg ;; 1150 1151 -localedir | --localedir | --localedi | --localed | --locale) 1152 ac_prev=localedir ;; 1153 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1154 localedir=$ac_optarg ;; 1155 1156 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1157 | --localstate | --localstat | --localsta | --localst | --locals) 1158 ac_prev=localstatedir ;; 1159 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1160 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1161 localstatedir=$ac_optarg ;; 1162 1163 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1164 ac_prev=mandir ;; 1165 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1166 mandir=$ac_optarg ;; 1167 1168 -nfp | --nfp | --nf) 1169 # Obsolete; use --without-fp. 1170 with_fp=no ;; 1171 1172 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1173 | --no-cr | --no-c | -n) 1174 no_create=yes ;; 1175 1176 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1177 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1178 no_recursion=yes ;; 1179 1180 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1181 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1182 | --oldin | --oldi | --old | --ol | --o) 1183 ac_prev=oldincludedir ;; 1184 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1185 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1186 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1187 oldincludedir=$ac_optarg ;; 1188 1189 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1190 ac_prev=prefix ;; 1191 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1192 prefix=$ac_optarg ;; 1193 1194 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1195 | --program-pre | --program-pr | --program-p) 1196 ac_prev=program_prefix ;; 1197 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1198 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1199 program_prefix=$ac_optarg ;; 1200 1201 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1202 | --program-suf | --program-su | --program-s) 1203 ac_prev=program_suffix ;; 1204 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1205 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1206 program_suffix=$ac_optarg ;; 1207 1208 -program-transform-name | --program-transform-name \ 1209 | --program-transform-nam | --program-transform-na \ 1210 | --program-transform-n | --program-transform- \ 1211 | --program-transform | --program-transfor \ 1212 | --program-transfo | --program-transf \ 1213 | --program-trans | --program-tran \ 1214 | --progr-tra | --program-tr | --program-t) 1215 ac_prev=program_transform_name ;; 1216 -program-transform-name=* | --program-transform-name=* \ 1217 | --program-transform-nam=* | --program-transform-na=* \ 1218 | --program-transform-n=* | --program-transform-=* \ 1219 | --program-transform=* | --program-transfor=* \ 1220 | --program-transfo=* | --program-transf=* \ 1221 | --program-trans=* | --program-tran=* \ 1222 | --progr-tra=* | --program-tr=* | --program-t=*) 1223 program_transform_name=$ac_optarg ;; 1224 1225 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1226 ac_prev=pdfdir ;; 1227 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1228 pdfdir=$ac_optarg ;; 1229 1230 -psdir | --psdir | --psdi | --psd | --ps) 1231 ac_prev=psdir ;; 1232 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1233 psdir=$ac_optarg ;; 1234 1235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1236 | -silent | --silent | --silen | --sile | --sil) 1237 silent=yes ;; 1238 1239 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1240 ac_prev=sbindir ;; 1241 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1242 | --sbi=* | --sb=*) 1243 sbindir=$ac_optarg ;; 1244 1245 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1246 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1247 | --sharedst | --shareds | --shared | --share | --shar \ 1248 | --sha | --sh) 1249 ac_prev=sharedstatedir ;; 1250 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1251 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1252 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1253 | --sha=* | --sh=*) 1254 sharedstatedir=$ac_optarg ;; 1255 1256 -site | --site | --sit) 1257 ac_prev=site ;; 1258 -site=* | --site=* | --sit=*) 1259 site=$ac_optarg ;; 1260 1261 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1262 ac_prev=srcdir ;; 1263 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1264 srcdir=$ac_optarg ;; 1265 1266 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1267 | --syscon | --sysco | --sysc | --sys | --sy) 1268 ac_prev=sysconfdir ;; 1269 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1270 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1271 sysconfdir=$ac_optarg ;; 1272 1273 -target | --target | --targe | --targ | --tar | --ta | --t) 1274 ac_prev=target_alias ;; 1275 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1276 target_alias=$ac_optarg ;; 1277 1278 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1279 verbose=yes ;; 1280 1281 -version | --version | --versio | --versi | --vers | -V) 1282 ac_init_version=: ;; 1283 1284 -with-* | --with-*) 1285 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1286 # Reject names that are not valid shell variable names. 1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1288 as_fn_error $? "invalid package name: $ac_useropt" 1289 ac_useropt_orig=$ac_useropt 1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1291 case $ac_user_opts in 1292 *" 1293"with_$ac_useropt" 1294"*) ;; 1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1296 ac_unrecognized_sep=', ';; 1297 esac 1298 eval with_$ac_useropt=\$ac_optarg ;; 1299 1300 -without-* | --without-*) 1301 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1302 # Reject names that are not valid shell variable names. 1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1304 as_fn_error $? "invalid package name: $ac_useropt" 1305 ac_useropt_orig=$ac_useropt 1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1307 case $ac_user_opts in 1308 *" 1309"with_$ac_useropt" 1310"*) ;; 1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1312 ac_unrecognized_sep=', ';; 1313 esac 1314 eval with_$ac_useropt=no ;; 1315 1316 --x) 1317 # Obsolete; use --with-x. 1318 with_x=yes ;; 1319 1320 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1321 | --x-incl | --x-inc | --x-in | --x-i) 1322 ac_prev=x_includes ;; 1323 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1324 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1325 x_includes=$ac_optarg ;; 1326 1327 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1328 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1329 ac_prev=x_libraries ;; 1330 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1331 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1332 x_libraries=$ac_optarg ;; 1333 1334 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1335Try \`$0 --help' for more information" 1336 ;; 1337 1338 *=*) 1339 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1340 # Reject names that are not valid shell variable names. 1341 case $ac_envvar in #( 1342 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1343 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1344 esac 1345 eval $ac_envvar=\$ac_optarg 1346 export $ac_envvar ;; 1347 1348 *) 1349 # FIXME: should be removed in autoconf 3.0. 1350 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1351 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1352 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1353 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1354 ;; 1355 1356 esac 1357done 1358 1359if test -n "$ac_prev"; then 1360 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1361 as_fn_error $? "missing argument to $ac_option" 1362fi 1363 1364if test -n "$ac_unrecognized_opts"; then 1365 case $enable_option_checking in 1366 no) ;; 1367 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1368 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1369 esac 1370fi 1371 1372# Check all directory arguments for consistency. 1373for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1374 datadir sysconfdir sharedstatedir localstatedir includedir \ 1375 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1376 libdir localedir mandir 1377do 1378 eval ac_val=\$$ac_var 1379 # Remove trailing slashes. 1380 case $ac_val in 1381 */ ) 1382 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1383 eval $ac_var=\$ac_val;; 1384 esac 1385 # Be sure to have absolute directory names. 1386 case $ac_val in 1387 [\\/$]* | ?:[\\/]* ) continue;; 1388 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1389 esac 1390 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1391done 1392 1393# There might be people who depend on the old broken behavior: `$host' 1394# used to hold the argument of --host etc. 1395# FIXME: To remove some day. 1396build=$build_alias 1397host=$host_alias 1398target=$target_alias 1399 1400# FIXME: To remove some day. 1401if test "x$host_alias" != x; then 1402 if test "x$build_alias" = x; then 1403 cross_compiling=maybe 1404 elif test "x$build_alias" != "x$host_alias"; then 1405 cross_compiling=yes 1406 fi 1407fi 1408 1409ac_tool_prefix= 1410test -n "$host_alias" && ac_tool_prefix=$host_alias- 1411 1412test "$silent" = yes && exec 6>/dev/null 1413 1414 1415ac_pwd=`pwd` && test -n "$ac_pwd" && 1416ac_ls_di=`ls -di .` && 1417ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1418 as_fn_error $? "working directory cannot be determined" 1419test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1420 as_fn_error $? "pwd does not report name of working directory" 1421 1422 1423# Find the source files, if location was not specified. 1424if test -z "$srcdir"; then 1425 ac_srcdir_defaulted=yes 1426 # Try the directory containing this script, then the parent directory. 1427 ac_confdir=`$as_dirname -- "$as_myself" || 1428$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1429 X"$as_myself" : 'X\(//\)[^/]' \| \ 1430 X"$as_myself" : 'X\(//\)$' \| \ 1431 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1432$as_echo X"$as_myself" | 1433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1434 s//\1/ 1435 q 1436 } 1437 /^X\(\/\/\)[^/].*/{ 1438 s//\1/ 1439 q 1440 } 1441 /^X\(\/\/\)$/{ 1442 s//\1/ 1443 q 1444 } 1445 /^X\(\/\).*/{ 1446 s//\1/ 1447 q 1448 } 1449 s/.*/./; q'` 1450 srcdir=$ac_confdir 1451 if test ! -r "$srcdir/$ac_unique_file"; then 1452 srcdir=.. 1453 fi 1454else 1455 ac_srcdir_defaulted=no 1456fi 1457if test ! -r "$srcdir/$ac_unique_file"; then 1458 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1459 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1460fi 1461ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1462ac_abs_confdir=`( 1463 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1464 pwd)` 1465# When building in place, set srcdir=. 1466if test "$ac_abs_confdir" = "$ac_pwd"; then 1467 srcdir=. 1468fi 1469# Remove unnecessary trailing slashes from srcdir. 1470# Double slashes in file names in object file debugging info 1471# mess up M-x gdb in Emacs. 1472case $srcdir in 1473*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1474esac 1475for ac_var in $ac_precious_vars; do 1476 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1477 eval ac_env_${ac_var}_value=\$${ac_var} 1478 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1479 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1480done 1481 1482# 1483# Report the --help message. 1484# 1485if test "$ac_init_help" = "long"; then 1486 # Omit some internal or obsolete options to make the list less imposing. 1487 # This message is too long to be a string in the A/UX 3.1 sh. 1488 cat <<_ACEOF 1489\`configure' configures GNOME Online Accounts 3.40.1 to adapt to many kinds of systems. 1490 1491Usage: $0 [OPTION]... [VAR=VALUE]... 1492 1493To assign environment variables (e.g., CC, CFLAGS...), specify them as 1494VAR=VALUE. See below for descriptions of some of the useful variables. 1495 1496Defaults for the options are specified in brackets. 1497 1498Configuration: 1499 -h, --help display this help and exit 1500 --help=short display options specific to this package 1501 --help=recursive display the short help of all the included packages 1502 -V, --version display version information and exit 1503 -q, --quiet, --silent do not print \`checking ...' messages 1504 --cache-file=FILE cache test results in FILE [disabled] 1505 -C, --config-cache alias for \`--cache-file=config.cache' 1506 -n, --no-create do not create output files 1507 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1508 1509Installation directories: 1510 --prefix=PREFIX install architecture-independent files in PREFIX 1511 [$ac_default_prefix] 1512 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1513 [PREFIX] 1514 1515By default, \`make install' will install all the files in 1516\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1517an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1518for instance \`--prefix=\$HOME'. 1519 1520For better control, use the options below. 1521 1522Fine tuning of the installation directories: 1523 --bindir=DIR user executables [EPREFIX/bin] 1524 --sbindir=DIR system admin executables [EPREFIX/sbin] 1525 --libexecdir=DIR program executables [EPREFIX/libexec] 1526 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1527 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1528 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1529 --libdir=DIR object code libraries [EPREFIX/lib] 1530 --includedir=DIR C header files [PREFIX/include] 1531 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1532 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1533 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1534 --infodir=DIR info documentation [DATAROOTDIR/info] 1535 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1536 --mandir=DIR man documentation [DATAROOTDIR/man] 1537 --docdir=DIR documentation root 1538 [DATAROOTDIR/doc/gnome-online-accounts] 1539 --htmldir=DIR html documentation [DOCDIR] 1540 --dvidir=DIR dvi documentation [DOCDIR] 1541 --pdfdir=DIR pdf documentation [DOCDIR] 1542 --psdir=DIR ps documentation [DOCDIR] 1543_ACEOF 1544 1545 cat <<\_ACEOF 1546 1547Program names: 1548 --program-prefix=PREFIX prepend PREFIX to installed program names 1549 --program-suffix=SUFFIX append SUFFIX to installed program names 1550 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1551 1552System types: 1553 --build=BUILD configure for building on BUILD [guessed] 1554 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1555_ACEOF 1556fi 1557 1558if test -n "$ac_init_help"; then 1559 case $ac_init_help in 1560 short | recursive ) echo "Configuration of GNOME Online Accounts 3.40.1:";; 1561 esac 1562 cat <<\_ACEOF 1563 1564Optional Features: 1565 --disable-option-checking ignore unrecognized --enable/--with options 1566 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1567 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1568 --enable-silent-rules less verbose build output (undo: "make V=1") 1569 --disable-silent-rules verbose build output (undo: "make V=0") 1570 --disable-maintainer-mode 1571 disable make rules and dependencies not useful (and 1572 sometimes confusing) to the casual installer 1573 --enable-compile-warnings=[no/yes/error] 1574 Enable compiler warnings and errors 1575 --disable-Werror Unconditionally make all compiler warnings non-fatal 1576 --enable-dependency-tracking 1577 do not reject slow dependency extractors 1578 --disable-dependency-tracking 1579 speeds up one-time build 1580 --enable-shared[=PKGS] build shared libraries [default=yes] 1581 --enable-static[=PKGS] build static libraries [default=yes] 1582 --enable-fast-install[=PKGS] 1583 optimize for fast installation [default=yes] 1584 --disable-libtool-lock avoid locking (might break parallel builds) 1585 --disable-schemas-compile 1586 Disable regeneration of gschemas.compiled on install 1587 --enable-documentation enable man pages 1588 --enable-gtk-doc use gtk-doc to build documentation [[default=no]] 1589 --enable-gtk-doc-html build documentation in html format [[default=yes]] 1590 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] 1591 --enable-introspection=[no/auto/yes] 1592 Enable introspection for this build 1593 --enable-vala=[no/auto/yes] 1594 build Vala bindings [default=auto] 1595 --enable-backend Enable goabackend library 1596 --enable-inspector Enable a WebKitWebInspector for the embedded web 1597 view 1598 --enable-exchange Enable Microsoft Exchange provider 1599 --enable-fedora Enable Fedora Account System support 1600 --enable-flickr Enable Flickr provider 1601 --enable-foursquare Enable Foursquare provider 1602 --enable-google Enable Google provider 1603 --enable-imap-smtp Enable IMAP/SMTP provider 1604 --enable-media-server Enable Media Server provider 1605 --enable-owncloud Enable ownCloud provider 1606 --enable-facebook Enable Facebook provider 1607 --enable-windows-live Enable Windows Live provider 1608 --enable-kerberos Enable kerberos support 1609 --enable-lastfm Enable Last.fm provider 1610 --disable-nls do not use Native Language Support 1611 --disable-rpath do not hardcode runtime library paths 1612 1613Optional Packages: 1614 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1615 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1616 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1617 both] 1618 --with-aix-soname=aix|svr4|both 1619 shared library versioning (aka "SONAME") variant to 1620 provide on AIX, [default=aix]. 1621 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1622 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1623 compiler's sysroot if not specified). 1624 --with-html-dir=PATH path to installed docs 1625 --with-template-file Path to the template file 1626 --with-flickr-consumer-key 1627 Flickr OAuth 1.0 consumer key 1628 --with-flickr-consumer-secret 1629 Flickr OAuth 1.0 consumer secret 1630 --with-foursquare-client-id 1631 Foursquare OAuth 2.0 client id 1632 --with-google-client-id Google OAuth 2.0 client id 1633 --with-google-client-secret 1634 Google OAuth 2.0 client secret 1635 --with-facebook-client-id 1636 Facebook OAuth 2.0 client id 1637 --with-windows-live-client-id 1638 Windows Live OAuth 2.0 client id 1639 --with-lastfm-client-id Last.fm client id 1640 --with-lastfm-client-secret 1641 Last.fm client secret 1642 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1643 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1644 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1645 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1646 --without-libintl-prefix don't search for libintl in includedir and libdir 1647 1648Some influential environment variables: 1649 CC C compiler command 1650 CFLAGS C compiler flags 1651 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1652 nonstandard directory <lib dir> 1653 LIBS libraries to pass to the linker, e.g. -l<library> 1654 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1655 you have headers in a nonstandard directory <include dir> 1656 LT_SYS_LIBRARY_PATH 1657 User-defined run-time library search path. 1658 CPP C preprocessor 1659 PKG_CONFIG path to pkg-config utility 1660 PKG_CONFIG_PATH 1661 directories to add to pkg-config's search path 1662 PKG_CONFIG_LIBDIR 1663 path overriding pkg-config's built-in search path 1664 GLIB_COMPILE_SCHEMAS 1665 value of glib_compile_schemas for gio-2.0, overriding pkg-config 1666 GTKDOC_DEPS_CFLAGS 1667 C compiler flags for GTKDOC_DEPS, overriding pkg-config 1668 GTKDOC_DEPS_LIBS 1669 linker flags for GTKDOC_DEPS, overriding pkg-config 1670 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1671 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1672 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config 1673 GTK_LIBS linker flags for GTK, overriding pkg-config 1674 JAVASCRIPT_CORE_GTK_CFLAGS 1675 C compiler flags for JAVASCRIPT_CORE_GTK, overriding pkg-config 1676 JAVASCRIPT_CORE_GTK_LIBS 1677 linker flags for JAVASCRIPT_CORE_GTK, overriding pkg-config 1678 WEBKIT_GTK_CFLAGS 1679 C compiler flags for WEBKIT_GTK, overriding pkg-config 1680 WEBKIT_GTK_LIBS 1681 linker flags for WEBKIT_GTK, overriding pkg-config 1682 LIBSOUP_CFLAGS 1683 C compiler flags for LIBSOUP, overriding pkg-config 1684 LIBSOUP_LIBS 1685 linker flags for LIBSOUP, overriding pkg-config 1686 JSON_GLIB_CFLAGS 1687 C compiler flags for JSON_GLIB, overriding pkg-config 1688 JSON_GLIB_LIBS 1689 linker flags for JSON_GLIB, overriding pkg-config 1690 REST_CFLAGS C compiler flags for REST, overriding pkg-config 1691 REST_LIBS linker flags for REST, overriding pkg-config 1692 SECRET_CFLAGS 1693 C compiler flags for SECRET, overriding pkg-config 1694 SECRET_LIBS linker flags for SECRET, overriding pkg-config 1695 LIBXML_CFLAGS 1696 C compiler flags for LIBXML, overriding pkg-config 1697 LIBXML_LIBS linker flags for LIBXML, overriding pkg-config 1698 GCR_CFLAGS C compiler flags for GCR, overriding pkg-config 1699 GCR_LIBS linker flags for GCR, overriding pkg-config 1700 1701Use these variables to override the choices made by `configure' or to help 1702it to find libraries and programs with nonstandard names/locations. 1703 1704Report bugs to <https://gitlab.gnome.org/GNOME/gnome-online-accounts/issues>. 1705GNOME Online Accounts home page: <https://wiki.gnome.org/Projects/GnomeOnlineAccounts>. 1706_ACEOF 1707ac_status=$? 1708fi 1709 1710if test "$ac_init_help" = "recursive"; then 1711 # If there are subdirs, report their specific --help. 1712 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1713 test -d "$ac_dir" || 1714 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1715 continue 1716 ac_builddir=. 1717 1718case "$ac_dir" in 1719.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1720*) 1721 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1722 # A ".." for each directory in $ac_dir_suffix. 1723 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1724 case $ac_top_builddir_sub in 1725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1727 esac ;; 1728esac 1729ac_abs_top_builddir=$ac_pwd 1730ac_abs_builddir=$ac_pwd$ac_dir_suffix 1731# for backward compatibility: 1732ac_top_builddir=$ac_top_build_prefix 1733 1734case $srcdir in 1735 .) # We are building in place. 1736 ac_srcdir=. 1737 ac_top_srcdir=$ac_top_builddir_sub 1738 ac_abs_top_srcdir=$ac_pwd ;; 1739 [\\/]* | ?:[\\/]* ) # Absolute name. 1740 ac_srcdir=$srcdir$ac_dir_suffix; 1741 ac_top_srcdir=$srcdir 1742 ac_abs_top_srcdir=$srcdir ;; 1743 *) # Relative name. 1744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1745 ac_top_srcdir=$ac_top_build_prefix$srcdir 1746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1747esac 1748ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1749 1750 cd "$ac_dir" || { ac_status=$?; continue; } 1751 # Check for guested configure. 1752 if test -f "$ac_srcdir/configure.gnu"; then 1753 echo && 1754 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1755 elif test -f "$ac_srcdir/configure"; then 1756 echo && 1757 $SHELL "$ac_srcdir/configure" --help=recursive 1758 else 1759 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1760 fi || ac_status=$? 1761 cd "$ac_pwd" || { ac_status=$?; break; } 1762 done 1763fi 1764 1765test -n "$ac_init_help" && exit $ac_status 1766if $ac_init_version; then 1767 cat <<\_ACEOF 1768GNOME Online Accounts configure 3.40.1 1769generated by GNU Autoconf 2.69 1770 1771Copyright (C) 2012 Free Software Foundation, Inc. 1772This configure script is free software; the Free Software Foundation 1773gives unlimited permission to copy, distribute and modify it. 1774_ACEOF 1775 exit 1776fi 1777 1778## ------------------------ ## 1779## Autoconf initialization. ## 1780## ------------------------ ## 1781 1782# ac_fn_c_try_compile LINENO 1783# -------------------------- 1784# Try to compile conftest.$ac_ext, and return whether this succeeded. 1785ac_fn_c_try_compile () 1786{ 1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1788 rm -f conftest.$ac_objext 1789 if { { ac_try="$ac_compile" 1790case "(($ac_try" in 1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1792 *) ac_try_echo=$ac_try;; 1793esac 1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1795$as_echo "$ac_try_echo"; } >&5 1796 (eval "$ac_compile") 2>conftest.err 1797 ac_status=$? 1798 if test -s conftest.err; then 1799 grep -v '^ *+' conftest.err >conftest.er1 1800 cat conftest.er1 >&5 1801 mv -f conftest.er1 conftest.err 1802 fi 1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1804 test $ac_status = 0; } && { 1805 test -z "$ac_c_werror_flag" || 1806 test ! -s conftest.err 1807 } && test -s conftest.$ac_objext; then : 1808 ac_retval=0 1809else 1810 $as_echo "$as_me: failed program was:" >&5 1811sed 's/^/| /' conftest.$ac_ext >&5 1812 1813 ac_retval=1 1814fi 1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1816 as_fn_set_status $ac_retval 1817 1818} # ac_fn_c_try_compile 1819 1820# ac_fn_c_try_link LINENO 1821# ----------------------- 1822# Try to link conftest.$ac_ext, and return whether this succeeded. 1823ac_fn_c_try_link () 1824{ 1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1826 rm -f conftest.$ac_objext conftest$ac_exeext 1827 if { { ac_try="$ac_link" 1828case "(($ac_try" in 1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1830 *) ac_try_echo=$ac_try;; 1831esac 1832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1833$as_echo "$ac_try_echo"; } >&5 1834 (eval "$ac_link") 2>conftest.err 1835 ac_status=$? 1836 if test -s conftest.err; then 1837 grep -v '^ *+' conftest.err >conftest.er1 1838 cat conftest.er1 >&5 1839 mv -f conftest.er1 conftest.err 1840 fi 1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1842 test $ac_status = 0; } && { 1843 test -z "$ac_c_werror_flag" || 1844 test ! -s conftest.err 1845 } && test -s conftest$ac_exeext && { 1846 test "$cross_compiling" = yes || 1847 test -x conftest$ac_exeext 1848 }; then : 1849 ac_retval=0 1850else 1851 $as_echo "$as_me: failed program was:" >&5 1852sed 's/^/| /' conftest.$ac_ext >&5 1853 1854 ac_retval=1 1855fi 1856 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1857 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1858 # interfere with the next link command; also delete a directory that is 1859 # left behind by Apple's compiler. We do this before executing the actions. 1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1862 as_fn_set_status $ac_retval 1863 1864} # ac_fn_c_try_link 1865 1866# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1867# ------------------------------------------------------- 1868# Tests whether HEADER exists and can be compiled using the include files in 1869# INCLUDES, setting the cache variable VAR accordingly. 1870ac_fn_c_check_header_compile () 1871{ 1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1874$as_echo_n "checking for $2... " >&6; } 1875if eval \${$3+:} false; then : 1876 $as_echo_n "(cached) " >&6 1877else 1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1879/* end confdefs.h. */ 1880$4 1881#include <$2> 1882_ACEOF 1883if ac_fn_c_try_compile "$LINENO"; then : 1884 eval "$3=yes" 1885else 1886 eval "$3=no" 1887fi 1888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1889fi 1890eval ac_res=\$$3 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1892$as_echo "$ac_res" >&6; } 1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1894 1895} # ac_fn_c_check_header_compile 1896 1897# ac_fn_c_try_cpp LINENO 1898# ---------------------- 1899# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1900ac_fn_c_try_cpp () 1901{ 1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1903 if { { ac_try="$ac_cpp conftest.$ac_ext" 1904case "(($ac_try" in 1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1906 *) ac_try_echo=$ac_try;; 1907esac 1908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1909$as_echo "$ac_try_echo"; } >&5 1910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1911 ac_status=$? 1912 if test -s conftest.err; then 1913 grep -v '^ *+' conftest.err >conftest.er1 1914 cat conftest.er1 >&5 1915 mv -f conftest.er1 conftest.err 1916 fi 1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1918 test $ac_status = 0; } > conftest.i && { 1919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1920 test ! -s conftest.err 1921 }; then : 1922 ac_retval=0 1923else 1924 $as_echo "$as_me: failed program was:" >&5 1925sed 's/^/| /' conftest.$ac_ext >&5 1926 1927 ac_retval=1 1928fi 1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1930 as_fn_set_status $ac_retval 1931 1932} # ac_fn_c_try_cpp 1933 1934# ac_fn_c_try_run LINENO 1935# ---------------------- 1936# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1937# that executables *can* be run. 1938ac_fn_c_try_run () 1939{ 1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1941 if { { ac_try="$ac_link" 1942case "(($ac_try" in 1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1944 *) ac_try_echo=$ac_try;; 1945esac 1946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1947$as_echo "$ac_try_echo"; } >&5 1948 (eval "$ac_link") 2>&5 1949 ac_status=$? 1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1951 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1952 { { case "(($ac_try" in 1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1954 *) ac_try_echo=$ac_try;; 1955esac 1956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1957$as_echo "$ac_try_echo"; } >&5 1958 (eval "$ac_try") 2>&5 1959 ac_status=$? 1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1961 test $ac_status = 0; }; }; then : 1962 ac_retval=0 1963else 1964 $as_echo "$as_me: program exited with status $ac_status" >&5 1965 $as_echo "$as_me: failed program was:" >&5 1966sed 's/^/| /' conftest.$ac_ext >&5 1967 1968 ac_retval=$ac_status 1969fi 1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1972 as_fn_set_status $ac_retval 1973 1974} # ac_fn_c_try_run 1975 1976# ac_fn_c_check_func LINENO FUNC VAR 1977# ---------------------------------- 1978# Tests whether FUNC exists, setting the cache variable VAR accordingly 1979ac_fn_c_check_func () 1980{ 1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1983$as_echo_n "checking for $2... " >&6; } 1984if eval \${$3+:} false; then : 1985 $as_echo_n "(cached) " >&6 1986else 1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1988/* end confdefs.h. */ 1989/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1990 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1991#define $2 innocuous_$2 1992 1993/* System header to define __stub macros and hopefully few prototypes, 1994 which can conflict with char $2 (); below. 1995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1996 <limits.h> exists even on freestanding compilers. */ 1997 1998#ifdef __STDC__ 1999# include <limits.h> 2000#else 2001# include <assert.h> 2002#endif 2003 2004#undef $2 2005 2006/* Override any GCC internal prototype to avoid an error. 2007 Use char because int might match the return type of a GCC 2008 builtin and then its argument prototype would still apply. */ 2009#ifdef __cplusplus 2010extern "C" 2011#endif 2012char $2 (); 2013/* The GNU C library defines this for functions which it implements 2014 to always fail with ENOSYS. Some functions are actually named 2015 something starting with __ and the normal name is an alias. */ 2016#if defined __stub_$2 || defined __stub___$2 2017choke me 2018#endif 2019 2020int 2021main () 2022{ 2023return $2 (); 2024 ; 2025 return 0; 2026} 2027_ACEOF 2028if ac_fn_c_try_link "$LINENO"; then : 2029 eval "$3=yes" 2030else 2031 eval "$3=no" 2032fi 2033rm -f core conftest.err conftest.$ac_objext \ 2034 conftest$ac_exeext conftest.$ac_ext 2035fi 2036eval ac_res=\$$3 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2038$as_echo "$ac_res" >&6; } 2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2040 2041} # ac_fn_c_check_func 2042cat >config.log <<_ACEOF 2043This file contains any messages produced by compilers while 2044running configure, to aid debugging if configure makes a mistake. 2045 2046It was created by GNOME Online Accounts $as_me 3.40.1, which was 2047generated by GNU Autoconf 2.69. Invocation command line was 2048 2049 $ $0 $@ 2050 2051_ACEOF 2052exec 5>>config.log 2053{ 2054cat <<_ASUNAME 2055## --------- ## 2056## Platform. ## 2057## --------- ## 2058 2059hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2060uname -m = `(uname -m) 2>/dev/null || echo unknown` 2061uname -r = `(uname -r) 2>/dev/null || echo unknown` 2062uname -s = `(uname -s) 2>/dev/null || echo unknown` 2063uname -v = `(uname -v) 2>/dev/null || echo unknown` 2064 2065/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2066/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2067 2068/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2069/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2070/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2071/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2072/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2073/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2074/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2075 2076_ASUNAME 2077 2078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2079for as_dir in $PATH 2080do 2081 IFS=$as_save_IFS 2082 test -z "$as_dir" && as_dir=. 2083 $as_echo "PATH: $as_dir" 2084 done 2085IFS=$as_save_IFS 2086 2087} >&5 2088 2089cat >&5 <<_ACEOF 2090 2091 2092## ----------- ## 2093## Core tests. ## 2094## ----------- ## 2095 2096_ACEOF 2097 2098 2099# Keep a trace of the command line. 2100# Strip out --no-create and --no-recursion so they do not pile up. 2101# Strip out --silent because we don't want to record it for future runs. 2102# Also quote any args containing shell meta-characters. 2103# Make two passes to allow for proper duplicate-argument suppression. 2104ac_configure_args= 2105ac_configure_args0= 2106ac_configure_args1= 2107ac_must_keep_next=false 2108for ac_pass in 1 2 2109do 2110 for ac_arg 2111 do 2112 case $ac_arg in 2113 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2115 | -silent | --silent | --silen | --sile | --sil) 2116 continue ;; 2117 *\'*) 2118 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2119 esac 2120 case $ac_pass in 2121 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2122 2) 2123 as_fn_append ac_configure_args1 " '$ac_arg'" 2124 if test $ac_must_keep_next = true; then 2125 ac_must_keep_next=false # Got value, back to normal. 2126 else 2127 case $ac_arg in 2128 *=* | --config-cache | -C | -disable-* | --disable-* \ 2129 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2130 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2131 | -with-* | --with-* | -without-* | --without-* | --x) 2132 case "$ac_configure_args0 " in 2133 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2134 esac 2135 ;; 2136 -* ) ac_must_keep_next=true ;; 2137 esac 2138 fi 2139 as_fn_append ac_configure_args " '$ac_arg'" 2140 ;; 2141 esac 2142 done 2143done 2144{ ac_configure_args0=; unset ac_configure_args0;} 2145{ ac_configure_args1=; unset ac_configure_args1;} 2146 2147# When interrupted or exit'd, cleanup temporary files, and complete 2148# config.log. We remove comments because anyway the quotes in there 2149# would cause problems or look ugly. 2150# WARNING: Use '\'' to represent an apostrophe within the trap. 2151# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2152trap 'exit_status=$? 2153 # Save into config.log some information that might help in debugging. 2154 { 2155 echo 2156 2157 $as_echo "## ---------------- ## 2158## Cache variables. ## 2159## ---------------- ##" 2160 echo 2161 # The following way of writing the cache mishandles newlines in values, 2162( 2163 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2164 eval ac_val=\$$ac_var 2165 case $ac_val in #( 2166 *${as_nl}*) 2167 case $ac_var in #( 2168 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2169$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2170 esac 2171 case $ac_var in #( 2172 _ | IFS | as_nl) ;; #( 2173 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2174 *) { eval $ac_var=; unset $ac_var;} ;; 2175 esac ;; 2176 esac 2177 done 2178 (set) 2>&1 | 2179 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2180 *${as_nl}ac_space=\ *) 2181 sed -n \ 2182 "s/'\''/'\''\\\\'\'''\''/g; 2183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2184 ;; #( 2185 *) 2186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2187 ;; 2188 esac | 2189 sort 2190) 2191 echo 2192 2193 $as_echo "## ----------------- ## 2194## Output variables. ## 2195## ----------------- ##" 2196 echo 2197 for ac_var in $ac_subst_vars 2198 do 2199 eval ac_val=\$$ac_var 2200 case $ac_val in 2201 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2202 esac 2203 $as_echo "$ac_var='\''$ac_val'\''" 2204 done | sort 2205 echo 2206 2207 if test -n "$ac_subst_files"; then 2208 $as_echo "## ------------------- ## 2209## File substitutions. ## 2210## ------------------- ##" 2211 echo 2212 for ac_var in $ac_subst_files 2213 do 2214 eval ac_val=\$$ac_var 2215 case $ac_val in 2216 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2217 esac 2218 $as_echo "$ac_var='\''$ac_val'\''" 2219 done | sort 2220 echo 2221 fi 2222 2223 if test -s confdefs.h; then 2224 $as_echo "## ----------- ## 2225## confdefs.h. ## 2226## ----------- ##" 2227 echo 2228 cat confdefs.h 2229 echo 2230 fi 2231 test "$ac_signal" != 0 && 2232 $as_echo "$as_me: caught signal $ac_signal" 2233 $as_echo "$as_me: exit $exit_status" 2234 } >&5 2235 rm -f core *.core core.conftest.* && 2236 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2237 exit $exit_status 2238' 0 2239for ac_signal in 1 2 13 15; do 2240 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2241done 2242ac_signal=0 2243 2244# confdefs.h avoids OS command line length limits that DEFS can exceed. 2245rm -f -r conftest* confdefs.h 2246 2247$as_echo "/* confdefs.h */" > confdefs.h 2248 2249# Predefined preprocessor variables. 2250 2251cat >>confdefs.h <<_ACEOF 2252#define PACKAGE_NAME "$PACKAGE_NAME" 2253_ACEOF 2254 2255cat >>confdefs.h <<_ACEOF 2256#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2257_ACEOF 2258 2259cat >>confdefs.h <<_ACEOF 2260#define PACKAGE_VERSION "$PACKAGE_VERSION" 2261_ACEOF 2262 2263cat >>confdefs.h <<_ACEOF 2264#define PACKAGE_STRING "$PACKAGE_STRING" 2265_ACEOF 2266 2267cat >>confdefs.h <<_ACEOF 2268#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2269_ACEOF 2270 2271cat >>confdefs.h <<_ACEOF 2272#define PACKAGE_URL "$PACKAGE_URL" 2273_ACEOF 2274 2275 2276# Let the site file select an alternate cache file if it wants to. 2277# Prefer an explicitly selected file to automatically selected ones. 2278ac_site_file1=NONE 2279ac_site_file2=NONE 2280if test -n "$CONFIG_SITE"; then 2281 # We do not want a PATH search for config.site. 2282 case $CONFIG_SITE in #(( 2283 -*) ac_site_file1=./$CONFIG_SITE;; 2284 */*) ac_site_file1=$CONFIG_SITE;; 2285 *) ac_site_file1=./$CONFIG_SITE;; 2286 esac 2287elif test "x$prefix" != xNONE; then 2288 ac_site_file1=$prefix/share/config.site 2289 ac_site_file2=$prefix/etc/config.site 2290else 2291 ac_site_file1=$ac_default_prefix/share/config.site 2292 ac_site_file2=$ac_default_prefix/etc/config.site 2293fi 2294for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2295do 2296 test "x$ac_site_file" = xNONE && continue 2297 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2298 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2299$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2300 sed 's/^/| /' "$ac_site_file" >&5 2301 . "$ac_site_file" \ 2302 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2304as_fn_error $? "failed to load site script $ac_site_file 2305See \`config.log' for more details" "$LINENO" 5; } 2306 fi 2307done 2308 2309if test -r "$cache_file"; then 2310 # Some versions of bash will fail to source /dev/null (special files 2311 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2312 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2314$as_echo "$as_me: loading cache $cache_file" >&6;} 2315 case $cache_file in 2316 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2317 *) . "./$cache_file";; 2318 esac 2319 fi 2320else 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2322$as_echo "$as_me: creating cache $cache_file" >&6;} 2323 >$cache_file 2324fi 2325 2326gt_needs="$gt_needs " 2327# Check that the precious variables saved in the cache have kept the same 2328# value. 2329ac_cache_corrupted=false 2330for ac_var in $ac_precious_vars; do 2331 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2332 eval ac_new_set=\$ac_env_${ac_var}_set 2333 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2334 eval ac_new_val=\$ac_env_${ac_var}_value 2335 case $ac_old_set,$ac_new_set in 2336 set,) 2337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2338$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2339 ac_cache_corrupted=: ;; 2340 ,set) 2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2342$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2343 ac_cache_corrupted=: ;; 2344 ,);; 2345 *) 2346 if test "x$ac_old_val" != "x$ac_new_val"; then 2347 # differences in whitespace do not lead to failure. 2348 ac_old_val_w=`echo x $ac_old_val` 2349 ac_new_val_w=`echo x $ac_new_val` 2350 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2352$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2353 ac_cache_corrupted=: 2354 else 2355 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2356$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2357 eval $ac_var=\$ac_old_val 2358 fi 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2360$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2362$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2363 fi;; 2364 esac 2365 # Pass precious variables to config.status. 2366 if test "$ac_new_set" = set; then 2367 case $ac_new_val in 2368 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2369 *) ac_arg=$ac_var=$ac_new_val ;; 2370 esac 2371 case " $ac_configure_args " in 2372 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2373 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2374 esac 2375 fi 2376done 2377if $ac_cache_corrupted; then 2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2381$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2382 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2383fi 2384## -------------------- ## 2385## Main body of script. ## 2386## -------------------- ## 2387 2388ac_ext=c 2389ac_cpp='$CPP $CPPFLAGS' 2390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2392ac_compiler_gnu=$ac_cv_c_compiler_gnu 2393 2394 2395 2396am__api_version='1.16' 2397 2398ac_aux_dir= 2399for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2400 if test -f "$ac_dir/install-sh"; then 2401 ac_aux_dir=$ac_dir 2402 ac_install_sh="$ac_aux_dir/install-sh -c" 2403 break 2404 elif test -f "$ac_dir/install.sh"; then 2405 ac_aux_dir=$ac_dir 2406 ac_install_sh="$ac_aux_dir/install.sh -c" 2407 break 2408 elif test -f "$ac_dir/shtool"; then 2409 ac_aux_dir=$ac_dir 2410 ac_install_sh="$ac_aux_dir/shtool install -c" 2411 break 2412 fi 2413done 2414if test -z "$ac_aux_dir"; then 2415 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2416fi 2417 2418# These three variables are undocumented and unsupported, 2419# and are intended to be withdrawn in a future Autoconf release. 2420# They can cause serious problems if a builder's source tree is in a directory 2421# whose full name contains unusual characters. 2422ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2423ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2424ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2425 2426 2427# Find a good install program. We prefer a C program (faster), 2428# so one script is as good as another. But avoid the broken or 2429# incompatible versions: 2430# SysV /etc/install, /usr/sbin/install 2431# SunOS /usr/etc/install 2432# IRIX /sbin/install 2433# AIX /bin/install 2434# AmigaOS /C/install, which installs bootblocks on floppy discs 2435# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2436# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2437# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2438# OS/2's system install, which has a completely different semantic 2439# ./install, which can be erroneously created by make from ./install.sh. 2440# Reject install programs that cannot install multiple files. 2441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2442$as_echo_n "checking for a BSD-compatible install... " >&6; } 2443if test -z "$INSTALL"; then 2444if ${ac_cv_path_install+:} false; then : 2445 $as_echo_n "(cached) " >&6 2446else 2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2448for as_dir in $PATH 2449do 2450 IFS=$as_save_IFS 2451 test -z "$as_dir" && as_dir=. 2452 # Account for people who put trailing slashes in PATH elements. 2453case $as_dir/ in #(( 2454 ./ | .// | /[cC]/* | \ 2455 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2456 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2457 /usr/ucb/* ) ;; 2458 *) 2459 # OSF1 and SCO ODT 3.0 have their own names for install. 2460 # Don't use installbsd from OSF since it installs stuff as root 2461 # by default. 2462 for ac_prog in ginstall scoinst install; do 2463 for ac_exec_ext in '' $ac_executable_extensions; do 2464 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2465 if test $ac_prog = install && 2466 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2467 # AIX install. It has an incompatible calling convention. 2468 : 2469 elif test $ac_prog = install && 2470 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2471 # program-specific install script used by HP pwplus--don't use. 2472 : 2473 else 2474 rm -rf conftest.one conftest.two conftest.dir 2475 echo one > conftest.one 2476 echo two > conftest.two 2477 mkdir conftest.dir 2478 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2479 test -s conftest.one && test -s conftest.two && 2480 test -s conftest.dir/conftest.one && 2481 test -s conftest.dir/conftest.two 2482 then 2483 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2484 break 3 2485 fi 2486 fi 2487 fi 2488 done 2489 done 2490 ;; 2491esac 2492 2493 done 2494IFS=$as_save_IFS 2495 2496rm -rf conftest.one conftest.two conftest.dir 2497 2498fi 2499 if test "${ac_cv_path_install+set}" = set; then 2500 INSTALL=$ac_cv_path_install 2501 else 2502 # As a last resort, use the slow shell script. Don't cache a 2503 # value for INSTALL within a source directory, because that will 2504 # break other packages using the cache if that directory is 2505 # removed, or if the value is a relative name. 2506 INSTALL=$ac_install_sh 2507 fi 2508fi 2509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2510$as_echo "$INSTALL" >&6; } 2511 2512# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2513# It thinks the first close brace ends the variable substitution. 2514test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2515 2516test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2517 2518test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2519 2520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2521$as_echo_n "checking whether build environment is sane... " >&6; } 2522# Reject unsafe characters in $srcdir or the absolute working directory 2523# name. Accept space and tab only in the latter. 2524am_lf=' 2525' 2526case `pwd` in 2527 *[\\\"\#\$\&\'\`$am_lf]*) 2528 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2529esac 2530case $srcdir in 2531 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2532 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2533esac 2534 2535# Do 'set' in a subshell so we don't clobber the current shell's 2536# arguments. Must try -L first in case configure is actually a 2537# symlink; some systems play weird games with the mod time of symlinks 2538# (eg FreeBSD returns the mod time of the symlink's containing 2539# directory). 2540if ( 2541 am_has_slept=no 2542 for am_try in 1 2; do 2543 echo "timestamp, slept: $am_has_slept" > conftest.file 2544 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2545 if test "$*" = "X"; then 2546 # -L didn't work. 2547 set X `ls -t "$srcdir/configure" conftest.file` 2548 fi 2549 if test "$*" != "X $srcdir/configure conftest.file" \ 2550 && test "$*" != "X conftest.file $srcdir/configure"; then 2551 2552 # If neither matched, then we have a broken ls. This can happen 2553 # if, for instance, CONFIG_SHELL is bash and it inherits a 2554 # broken ls alias from the environment. This has actually 2555 # happened. Such a system could not be considered "sane". 2556 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2557 alias in your environment" "$LINENO" 5 2558 fi 2559 if test "$2" = conftest.file || test $am_try -eq 2; then 2560 break 2561 fi 2562 # Just in case. 2563 sleep 1 2564 am_has_slept=yes 2565 done 2566 test "$2" = conftest.file 2567 ) 2568then 2569 # Ok. 2570 : 2571else 2572 as_fn_error $? "newly created file is older than distributed files! 2573Check your system clock" "$LINENO" 5 2574fi 2575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2576$as_echo "yes" >&6; } 2577# If we didn't sleep, we still need to ensure time stamps of config.status and 2578# generated files are strictly newer. 2579am_sleep_pid= 2580if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2581 ( sleep 1 ) & 2582 am_sleep_pid=$! 2583fi 2584 2585rm -f conftest.file 2586 2587test "$program_prefix" != NONE && 2588 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2589# Use a double $ so make ignores it. 2590test "$program_suffix" != NONE && 2591 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2592# Double any \ or $. 2593# By default was `s,x,x', remove it if useless. 2594ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2595program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2596 2597# Expand $ac_aux_dir to an absolute path. 2598am_aux_dir=`cd "$ac_aux_dir" && pwd` 2599 2600if test x"${MISSING+set}" != xset; then 2601 case $am_aux_dir in 2602 *\ * | *\ *) 2603 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2604 *) 2605 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2606 esac 2607fi 2608# Use eval to expand $SHELL 2609if eval "$MISSING --is-lightweight"; then 2610 am_missing_run="$MISSING " 2611else 2612 am_missing_run= 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2614$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2615fi 2616 2617if test x"${install_sh+set}" != xset; then 2618 case $am_aux_dir in 2619 *\ * | *\ *) 2620 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2621 *) 2622 install_sh="\${SHELL} $am_aux_dir/install-sh" 2623 esac 2624fi 2625 2626# Installed binaries are usually stripped using 'strip' when the user 2627# run "make install-strip". However 'strip' might not be the right 2628# tool to use in cross-compilation environments, therefore Automake 2629# will honor the 'STRIP' environment variable to overrule this program. 2630if test "$cross_compiling" != no; then 2631 if test -n "$ac_tool_prefix"; then 2632 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2633set dummy ${ac_tool_prefix}strip; ac_word=$2 2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2635$as_echo_n "checking for $ac_word... " >&6; } 2636if ${ac_cv_prog_STRIP+:} false; then : 2637 $as_echo_n "(cached) " >&6 2638else 2639 if test -n "$STRIP"; then 2640 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2641else 2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2643for as_dir in $PATH 2644do 2645 IFS=$as_save_IFS 2646 test -z "$as_dir" && as_dir=. 2647 for ac_exec_ext in '' $ac_executable_extensions; do 2648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2649 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2651 break 2 2652 fi 2653done 2654 done 2655IFS=$as_save_IFS 2656 2657fi 2658fi 2659STRIP=$ac_cv_prog_STRIP 2660if test -n "$STRIP"; then 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2662$as_echo "$STRIP" >&6; } 2663else 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2665$as_echo "no" >&6; } 2666fi 2667 2668 2669fi 2670if test -z "$ac_cv_prog_STRIP"; then 2671 ac_ct_STRIP=$STRIP 2672 # Extract the first word of "strip", so it can be a program name with args. 2673set dummy strip; ac_word=$2 2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2675$as_echo_n "checking for $ac_word... " >&6; } 2676if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2677 $as_echo_n "(cached) " >&6 2678else 2679 if test -n "$ac_ct_STRIP"; then 2680 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2681else 2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2683for as_dir in $PATH 2684do 2685 IFS=$as_save_IFS 2686 test -z "$as_dir" && as_dir=. 2687 for ac_exec_ext in '' $ac_executable_extensions; do 2688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2689 ac_cv_prog_ac_ct_STRIP="strip" 2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2691 break 2 2692 fi 2693done 2694 done 2695IFS=$as_save_IFS 2696 2697fi 2698fi 2699ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2700if test -n "$ac_ct_STRIP"; then 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2702$as_echo "$ac_ct_STRIP" >&6; } 2703else 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2705$as_echo "no" >&6; } 2706fi 2707 2708 if test "x$ac_ct_STRIP" = x; then 2709 STRIP=":" 2710 else 2711 case $cross_compiling:$ac_tool_warned in 2712yes:) 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2715ac_tool_warned=yes ;; 2716esac 2717 STRIP=$ac_ct_STRIP 2718 fi 2719else 2720 STRIP="$ac_cv_prog_STRIP" 2721fi 2722 2723fi 2724INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2725 2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2727$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2728if test -z "$MKDIR_P"; then 2729 if ${ac_cv_path_mkdir+:} false; then : 2730 $as_echo_n "(cached) " >&6 2731else 2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2733for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2734do 2735 IFS=$as_save_IFS 2736 test -z "$as_dir" && as_dir=. 2737 for ac_prog in mkdir gmkdir; do 2738 for ac_exec_ext in '' $ac_executable_extensions; do 2739 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2740 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2741 'mkdir (GNU coreutils) '* | \ 2742 'mkdir (coreutils) '* | \ 2743 'mkdir (fileutils) '4.1*) 2744 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2745 break 3;; 2746 esac 2747 done 2748 done 2749 done 2750IFS=$as_save_IFS 2751 2752fi 2753 2754 test -d ./--version && rmdir ./--version 2755 if test "${ac_cv_path_mkdir+set}" = set; then 2756 MKDIR_P="$ac_cv_path_mkdir -p" 2757 else 2758 # As a last resort, use the slow shell script. Don't cache a 2759 # value for MKDIR_P within a source directory, because that will 2760 # break other packages using the cache if that directory is 2761 # removed, or if the value is a relative name. 2762 MKDIR_P="$ac_install_sh -d" 2763 fi 2764fi 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2766$as_echo "$MKDIR_P" >&6; } 2767 2768for ac_prog in gawk mawk nawk awk 2769do 2770 # Extract the first word of "$ac_prog", so it can be a program name with args. 2771set dummy $ac_prog; ac_word=$2 2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2773$as_echo_n "checking for $ac_word... " >&6; } 2774if ${ac_cv_prog_AWK+:} false; then : 2775 $as_echo_n "(cached) " >&6 2776else 2777 if test -n "$AWK"; then 2778 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2779else 2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2781for as_dir in $PATH 2782do 2783 IFS=$as_save_IFS 2784 test -z "$as_dir" && as_dir=. 2785 for ac_exec_ext in '' $ac_executable_extensions; do 2786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2787 ac_cv_prog_AWK="$ac_prog" 2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2789 break 2 2790 fi 2791done 2792 done 2793IFS=$as_save_IFS 2794 2795fi 2796fi 2797AWK=$ac_cv_prog_AWK 2798if test -n "$AWK"; then 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2800$as_echo "$AWK" >&6; } 2801else 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2803$as_echo "no" >&6; } 2804fi 2805 2806 2807 test -n "$AWK" && break 2808done 2809 2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2811$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2812set x ${MAKE-make} 2813ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2814if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2815 $as_echo_n "(cached) " >&6 2816else 2817 cat >conftest.make <<\_ACEOF 2818SHELL = /bin/sh 2819all: 2820 @echo '@@@%%%=$(MAKE)=@@@%%%' 2821_ACEOF 2822# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2823case `${MAKE-make} -f conftest.make 2>/dev/null` in 2824 *@@@%%%=?*=@@@%%%*) 2825 eval ac_cv_prog_make_${ac_make}_set=yes;; 2826 *) 2827 eval ac_cv_prog_make_${ac_make}_set=no;; 2828esac 2829rm -f conftest.make 2830fi 2831if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2833$as_echo "yes" >&6; } 2834 SET_MAKE= 2835else 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2837$as_echo "no" >&6; } 2838 SET_MAKE="MAKE=${MAKE-make}" 2839fi 2840 2841rm -rf .tst 2>/dev/null 2842mkdir .tst 2>/dev/null 2843if test -d .tst; then 2844 am__leading_dot=. 2845else 2846 am__leading_dot=_ 2847fi 2848rmdir .tst 2>/dev/null 2849 2850# Check whether --enable-silent-rules was given. 2851if test "${enable_silent_rules+set}" = set; then : 2852 enableval=$enable_silent_rules; 2853fi 2854 2855case $enable_silent_rules in # ((( 2856 yes) AM_DEFAULT_VERBOSITY=0;; 2857 no) AM_DEFAULT_VERBOSITY=1;; 2858 *) AM_DEFAULT_VERBOSITY=1;; 2859esac 2860am_make=${MAKE-make} 2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2862$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2863if ${am_cv_make_support_nested_variables+:} false; then : 2864 $as_echo_n "(cached) " >&6 2865else 2866 if $as_echo 'TRUE=$(BAR$(V)) 2867BAR0=false 2868BAR1=true 2869V=1 2870am__doit: 2871 @$(TRUE) 2872.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2873 am_cv_make_support_nested_variables=yes 2874else 2875 am_cv_make_support_nested_variables=no 2876fi 2877fi 2878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2879$as_echo "$am_cv_make_support_nested_variables" >&6; } 2880if test $am_cv_make_support_nested_variables = yes; then 2881 AM_V='$(V)' 2882 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2883else 2884 AM_V=$AM_DEFAULT_VERBOSITY 2885 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2886fi 2887AM_BACKSLASH='\' 2888 2889if test "`cd $srcdir && pwd`" != "`pwd`"; then 2890 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2891 # is not polluted with repeated "-I." 2892 am__isrc=' -I$(srcdir)' 2893 # test to see if srcdir already configured 2894 if test -f $srcdir/config.status; then 2895 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2896 fi 2897fi 2898 2899# test whether we have cygpath 2900if test -z "$CYGPATH_W"; then 2901 if (cygpath --version) >/dev/null 2>/dev/null; then 2902 CYGPATH_W='cygpath -w' 2903 else 2904 CYGPATH_W=echo 2905 fi 2906fi 2907 2908 2909# Define the identity of the package. 2910 PACKAGE='gnome-online-accounts' 2911 VERSION='3.40.1' 2912 2913 2914cat >>confdefs.h <<_ACEOF 2915#define PACKAGE "$PACKAGE" 2916_ACEOF 2917 2918 2919cat >>confdefs.h <<_ACEOF 2920#define VERSION "$VERSION" 2921_ACEOF 2922 2923# Some tools Automake needs. 2924 2925ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2926 2927 2928AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2929 2930 2931AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2932 2933 2934AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2935 2936 2937MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2938 2939# For better backward compatibility. To be removed once Automake 1.9.x 2940# dies out for good. For more background, see: 2941# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2942# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2943mkdir_p='$(MKDIR_P)' 2944 2945# We need awk for the "check" target (and possibly the TAP driver). The 2946# system "awk" is bad on some platforms. 2947# Always define AMTAR for backward compatibility. Yes, it's still used 2948# in the wild :-( We should find a proper way to deprecate it ... 2949AMTAR='$${TAR-tar}' 2950 2951 2952# We'll loop over all known methods to create a tar archive until one works. 2953_am_tools='gnutar plaintar pax cpio none' 2954 2955# The POSIX 1988 'ustar' format is defined with fixed-size fields. 2956 # There is notably a 21 bits limit for the UID and the GID. In fact, 2957 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 2958 # and bug#13588). 2959 am_max_uid=2097151 # 2^21 - 1 2960 am_max_gid=$am_max_uid 2961 # The $UID and $GID variables are not portable, so we need to resort 2962 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 2963 # below are definitely unexpected, so allow the users to see them 2964 # (that is, avoid stderr redirection). 2965 am_uid=`id -u || echo unknown` 2966 am_gid=`id -g || echo unknown` 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 2968$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 2969 if test $am_uid -le $am_max_uid; then 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2971$as_echo "yes" >&6; } 2972 else 2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2974$as_echo "no" >&6; } 2975 _am_tools=none 2976 fi 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 2978$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 2979 if test $am_gid -le $am_max_gid; then 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2981$as_echo "yes" >&6; } 2982 else 2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2984$as_echo "no" >&6; } 2985 _am_tools=none 2986 fi 2987 2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 2989$as_echo_n "checking how to create a ustar tar archive... " >&6; } 2990 2991 # Go ahead even if we have the value already cached. We do so because we 2992 # need to set the values for the 'am__tar' and 'am__untar' variables. 2993 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 2994 2995 for _am_tool in $_am_tools; do 2996 case $_am_tool in 2997 gnutar) 2998 for _am_tar in tar gnutar gtar; do 2999 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3000 ($_am_tar --version) >&5 2>&5 3001 ac_status=$? 3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3003 (exit $ac_status); } && break 3004 done 3005 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3006 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3007 am__untar="$_am_tar -xf -" 3008 ;; 3009 plaintar) 3010 # Must skip GNU tar: if it does not support --format= it doesn't create 3011 # ustar tarball either. 3012 (tar --version) >/dev/null 2>&1 && continue 3013 am__tar='tar chf - "$$tardir"' 3014 am__tar_='tar chf - "$tardir"' 3015 am__untar='tar xf -' 3016 ;; 3017 pax) 3018 am__tar='pax -L -x ustar -w "$$tardir"' 3019 am__tar_='pax -L -x ustar -w "$tardir"' 3020 am__untar='pax -r' 3021 ;; 3022 cpio) 3023 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3024 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3025 am__untar='cpio -i -H ustar -d' 3026 ;; 3027 none) 3028 am__tar=false 3029 am__tar_=false 3030 am__untar=false 3031 ;; 3032 esac 3033 3034 # If the value was cached, stop now. We just wanted to have am__tar 3035 # and am__untar set. 3036 test -n "${am_cv_prog_tar_ustar}" && break 3037 3038 # tar/untar a dummy directory, and stop if the command works. 3039 rm -rf conftest.dir 3040 mkdir conftest.dir 3041 echo GrepMe > conftest.dir/file 3042 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3043 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3044 ac_status=$? 3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3046 (exit $ac_status); } 3047 rm -rf conftest.dir 3048 if test -s conftest.tar; then 3049 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3050 ($am__untar <conftest.tar) >&5 2>&5 3051 ac_status=$? 3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3053 (exit $ac_status); } 3054 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3055 (cat conftest.dir/file) >&5 2>&5 3056 ac_status=$? 3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3058 (exit $ac_status); } 3059 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3060 fi 3061 done 3062 rm -rf conftest.dir 3063 3064 if ${am_cv_prog_tar_ustar+:} false; then : 3065 $as_echo_n "(cached) " >&6 3066else 3067 am_cv_prog_tar_ustar=$_am_tool 3068fi 3069 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3071$as_echo "$am_cv_prog_tar_ustar" >&6; } 3072 3073 3074 3075 3076 3077 3078# POSIX will say in a future version that running "rm -f" with no argument 3079# is OK; and we want to be able to make that assumption in our Makefile 3080# recipes. So use an aggressive probe to check that the usage we want is 3081# actually supported "in the wild" to an acceptable degree. 3082# See automake bug#10828. 3083# To make any issue more visible, cause the running configure to be aborted 3084# by default if the 'rm' program in use doesn't match our expectations; the 3085# user can still override this though. 3086if rm -f && rm -fr && rm -rf; then : OK; else 3087 cat >&2 <<'END' 3088Oops! 3089 3090Your 'rm' program seems unable to run without file operands specified 3091on the command line, even when the '-f' option is present. This is contrary 3092to the behaviour of most rm programs out there, and not conforming with 3093the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3094 3095Please tell bug-automake@gnu.org about your system, including the value 3096of your $PATH and any error possibly output before this message. This 3097can help us improve future automake versions. 3098 3099END 3100 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3101 echo 'Configuration will proceed anyway, since you have set the' >&2 3102 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3103 echo >&2 3104 else 3105 cat >&2 <<'END' 3106Aborting the configuration process, to ensure you take notice of the issue. 3107 3108You can download and install GNU coreutils to get an 'rm' implementation 3109that behaves properly: <https://www.gnu.org/software/coreutils/>. 3110 3111If you want to complete the configuration process using your problematic 3112'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3113to "yes", and re-run configure. 3114 3115END 3116 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3117 fi 3118fi 3119 3120 3121 3122ac_config_headers="$ac_config_headers config.h" 3123 3124 3125 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3127$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3128 # Check whether --enable-maintainer-mode was given. 3129if test "${enable_maintainer_mode+set}" = set; then : 3130 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3131else 3132 USE_MAINTAINER_MODE=yes 3133fi 3134 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3136$as_echo "$USE_MAINTAINER_MODE" >&6; } 3137 if test $USE_MAINTAINER_MODE = yes; then 3138 MAINTAINER_MODE_TRUE= 3139 MAINTAINER_MODE_FALSE='#' 3140else 3141 MAINTAINER_MODE_TRUE='#' 3142 MAINTAINER_MODE_FALSE= 3143fi 3144 3145 MAINT=$MAINTAINER_MODE_TRUE 3146 3147 3148 3149 3150 3151 3152 3153 # $is_release = (.git directory does not exist) 3154 if test -d ${srcdir}/.git; then : 3155 ax_is_release=no 3156else 3157 ax_is_release=yes 3158fi 3159 3160 3161 3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3163$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3164if ${ac_cv_path_SED+:} false; then : 3165 $as_echo_n "(cached) " >&6 3166else 3167 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3168 for ac_i in 1 2 3 4 5 6 7; do 3169 ac_script="$ac_script$as_nl$ac_script" 3170 done 3171 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3172 { ac_script=; unset ac_script;} 3173 if test -z "$SED"; then 3174 ac_path_SED_found=false 3175 # Loop through the user's path and test for each of PROGNAME-LIST 3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3177for as_dir in $PATH 3178do 3179 IFS=$as_save_IFS 3180 test -z "$as_dir" && as_dir=. 3181 for ac_prog in sed gsed; do 3182 for ac_exec_ext in '' $ac_executable_extensions; do 3183 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3184 as_fn_executable_p "$ac_path_SED" || continue 3185# Check for GNU ac_path_SED and select it if it is found. 3186 # Check for GNU $ac_path_SED 3187case `"$ac_path_SED" --version 2>&1` in 3188*GNU*) 3189 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3190*) 3191 ac_count=0 3192 $as_echo_n 0123456789 >"conftest.in" 3193 while : 3194 do 3195 cat "conftest.in" "conftest.in" >"conftest.tmp" 3196 mv "conftest.tmp" "conftest.in" 3197 cp "conftest.in" "conftest.nl" 3198 $as_echo '' >> "conftest.nl" 3199 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3201 as_fn_arith $ac_count + 1 && ac_count=$as_val 3202 if test $ac_count -gt ${ac_path_SED_max-0}; then 3203 # Best one so far, save it but keep looking for a better one 3204 ac_cv_path_SED="$ac_path_SED" 3205 ac_path_SED_max=$ac_count 3206 fi 3207 # 10*(2^10) chars as input seems more than enough 3208 test $ac_count -gt 10 && break 3209 done 3210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3211esac 3212 3213 $ac_path_SED_found && break 3 3214 done 3215 done 3216 done 3217IFS=$as_save_IFS 3218 if test -z "$ac_cv_path_SED"; then 3219 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3220 fi 3221else 3222 ac_cv_path_SED=$SED 3223fi 3224 3225fi 3226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3227$as_echo "$ac_cv_path_SED" >&6; } 3228 SED="$ac_cv_path_SED" 3229 rm -f conftest.sed 3230 3231DEPDIR="${am__leading_dot}deps" 3232 3233ac_config_commands="$ac_config_commands depfiles" 3234 3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3236$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3237cat > confinc.mk << 'END' 3238am__doit: 3239 @echo this is the am__doit target >confinc.out 3240.PHONY: am__doit 3241END 3242am__include="#" 3243am__quote= 3244# BSD make does it like this. 3245echo '.include "confinc.mk" # ignored' > confmf.BSD 3246# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3247echo 'include confinc.mk # ignored' > confmf.GNU 3248_am_result=no 3249for s in GNU BSD; do 3250 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3251 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3252 ac_status=$? 3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3254 (exit $ac_status); } 3255 case $?:`cat confinc.out 2>/dev/null` in #( 3256 '0:this is the am__doit target') : 3257 case $s in #( 3258 BSD) : 3259 am__include='.include' am__quote='"' ;; #( 3260 *) : 3261 am__include='include' am__quote='' ;; 3262esac ;; #( 3263 *) : 3264 ;; 3265esac 3266 if test "$am__include" != "#"; then 3267 _am_result="yes ($s style)" 3268 break 3269 fi 3270done 3271rm -f confinc.* confmf.* 3272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3273$as_echo "${_am_result}" >&6; } 3274 3275# Check whether --enable-dependency-tracking was given. 3276if test "${enable_dependency_tracking+set}" = set; then : 3277 enableval=$enable_dependency_tracking; 3278fi 3279 3280if test "x$enable_dependency_tracking" != xno; then 3281 am_depcomp="$ac_aux_dir/depcomp" 3282 AMDEPBACKSLASH='\' 3283 am__nodep='_no' 3284fi 3285 if test "x$enable_dependency_tracking" != xno; then 3286 AMDEP_TRUE= 3287 AMDEP_FALSE='#' 3288else 3289 AMDEP_TRUE='#' 3290 AMDEP_FALSE= 3291fi 3292 3293 3294ac_ext=c 3295ac_cpp='$CPP $CPPFLAGS' 3296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3298ac_compiler_gnu=$ac_cv_c_compiler_gnu 3299if test -n "$ac_tool_prefix"; then 3300 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3301set dummy ${ac_tool_prefix}gcc; ac_word=$2 3302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3303$as_echo_n "checking for $ac_word... " >&6; } 3304if ${ac_cv_prog_CC+:} false; then : 3305 $as_echo_n "(cached) " >&6 3306else 3307 if test -n "$CC"; then 3308 ac_cv_prog_CC="$CC" # Let the user override the test. 3309else 3310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3311for as_dir in $PATH 3312do 3313 IFS=$as_save_IFS 3314 test -z "$as_dir" && as_dir=. 3315 for ac_exec_ext in '' $ac_executable_extensions; do 3316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3317 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3319 break 2 3320 fi 3321done 3322 done 3323IFS=$as_save_IFS 3324 3325fi 3326fi 3327CC=$ac_cv_prog_CC 3328if test -n "$CC"; then 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3330$as_echo "$CC" >&6; } 3331else 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3333$as_echo "no" >&6; } 3334fi 3335 3336 3337fi 3338if test -z "$ac_cv_prog_CC"; then 3339 ac_ct_CC=$CC 3340 # Extract the first word of "gcc", so it can be a program name with args. 3341set dummy gcc; ac_word=$2 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3343$as_echo_n "checking for $ac_word... " >&6; } 3344if ${ac_cv_prog_ac_ct_CC+:} false; then : 3345 $as_echo_n "(cached) " >&6 3346else 3347 if test -n "$ac_ct_CC"; then 3348 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3349else 3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3351for as_dir in $PATH 3352do 3353 IFS=$as_save_IFS 3354 test -z "$as_dir" && as_dir=. 3355 for ac_exec_ext in '' $ac_executable_extensions; do 3356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3357 ac_cv_prog_ac_ct_CC="gcc" 3358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3359 break 2 3360 fi 3361done 3362 done 3363IFS=$as_save_IFS 3364 3365fi 3366fi 3367ac_ct_CC=$ac_cv_prog_ac_ct_CC 3368if test -n "$ac_ct_CC"; then 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3370$as_echo "$ac_ct_CC" >&6; } 3371else 3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3373$as_echo "no" >&6; } 3374fi 3375 3376 if test "x$ac_ct_CC" = x; then 3377 CC="" 3378 else 3379 case $cross_compiling:$ac_tool_warned in 3380yes:) 3381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3383ac_tool_warned=yes ;; 3384esac 3385 CC=$ac_ct_CC 3386 fi 3387else 3388 CC="$ac_cv_prog_CC" 3389fi 3390 3391if test -z "$CC"; then 3392 if test -n "$ac_tool_prefix"; then 3393 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3394set dummy ${ac_tool_prefix}cc; ac_word=$2 3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3396$as_echo_n "checking for $ac_word... " >&6; } 3397if ${ac_cv_prog_CC+:} false; then : 3398 $as_echo_n "(cached) " >&6 3399else 3400 if test -n "$CC"; then 3401 ac_cv_prog_CC="$CC" # Let the user override the test. 3402else 3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3404for as_dir in $PATH 3405do 3406 IFS=$as_save_IFS 3407 test -z "$as_dir" && as_dir=. 3408 for ac_exec_ext in '' $ac_executable_extensions; do 3409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3410 ac_cv_prog_CC="${ac_tool_prefix}cc" 3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3412 break 2 3413 fi 3414done 3415 done 3416IFS=$as_save_IFS 3417 3418fi 3419fi 3420CC=$ac_cv_prog_CC 3421if test -n "$CC"; then 3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3423$as_echo "$CC" >&6; } 3424else 3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3426$as_echo "no" >&6; } 3427fi 3428 3429 3430 fi 3431fi 3432if test -z "$CC"; then 3433 # Extract the first word of "cc", so it can be a program name with args. 3434set dummy cc; ac_word=$2 3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3436$as_echo_n "checking for $ac_word... " >&6; } 3437if ${ac_cv_prog_CC+:} false; then : 3438 $as_echo_n "(cached) " >&6 3439else 3440 if test -n "$CC"; then 3441 ac_cv_prog_CC="$CC" # Let the user override the test. 3442else 3443 ac_prog_rejected=no 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3452 ac_prog_rejected=yes 3453 continue 3454 fi 3455 ac_cv_prog_CC="cc" 3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3457 break 2 3458 fi 3459done 3460 done 3461IFS=$as_save_IFS 3462 3463if test $ac_prog_rejected = yes; then 3464 # We found a bogon in the path, so make sure we never use it. 3465 set dummy $ac_cv_prog_CC 3466 shift 3467 if test $# != 0; then 3468 # We chose a different compiler from the bogus one. 3469 # However, it has the same basename, so the bogon will be chosen 3470 # first if we set CC to just the basename; use the full file name. 3471 shift 3472 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3473 fi 3474fi 3475fi 3476fi 3477CC=$ac_cv_prog_CC 3478if test -n "$CC"; then 3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3480$as_echo "$CC" >&6; } 3481else 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3483$as_echo "no" >&6; } 3484fi 3485 3486 3487fi 3488if test -z "$CC"; then 3489 if test -n "$ac_tool_prefix"; then 3490 for ac_prog in cl.exe 3491 do 3492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3493set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3495$as_echo_n "checking for $ac_word... " >&6; } 3496if ${ac_cv_prog_CC+:} false; then : 3497 $as_echo_n "(cached) " >&6 3498else 3499 if test -n "$CC"; then 3500 ac_cv_prog_CC="$CC" # Let the user override the test. 3501else 3502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3503for as_dir in $PATH 3504do 3505 IFS=$as_save_IFS 3506 test -z "$as_dir" && as_dir=. 3507 for ac_exec_ext in '' $ac_executable_extensions; do 3508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3509 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3511 break 2 3512 fi 3513done 3514 done 3515IFS=$as_save_IFS 3516 3517fi 3518fi 3519CC=$ac_cv_prog_CC 3520if test -n "$CC"; then 3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3522$as_echo "$CC" >&6; } 3523else 3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3525$as_echo "no" >&6; } 3526fi 3527 3528 3529 test -n "$CC" && break 3530 done 3531fi 3532if test -z "$CC"; then 3533 ac_ct_CC=$CC 3534 for ac_prog in cl.exe 3535do 3536 # Extract the first word of "$ac_prog", so it can be a program name with args. 3537set dummy $ac_prog; ac_word=$2 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3539$as_echo_n "checking for $ac_word... " >&6; } 3540if ${ac_cv_prog_ac_ct_CC+:} false; then : 3541 $as_echo_n "(cached) " >&6 3542else 3543 if test -n "$ac_ct_CC"; then 3544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3545else 3546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3547for as_dir in $PATH 3548do 3549 IFS=$as_save_IFS 3550 test -z "$as_dir" && as_dir=. 3551 for ac_exec_ext in '' $ac_executable_extensions; do 3552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3553 ac_cv_prog_ac_ct_CC="$ac_prog" 3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3555 break 2 3556 fi 3557done 3558 done 3559IFS=$as_save_IFS 3560 3561fi 3562fi 3563ac_ct_CC=$ac_cv_prog_ac_ct_CC 3564if test -n "$ac_ct_CC"; then 3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3566$as_echo "$ac_ct_CC" >&6; } 3567else 3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3569$as_echo "no" >&6; } 3570fi 3571 3572 3573 test -n "$ac_ct_CC" && break 3574done 3575 3576 if test "x$ac_ct_CC" = x; then 3577 CC="" 3578 else 3579 case $cross_compiling:$ac_tool_warned in 3580yes:) 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3583ac_tool_warned=yes ;; 3584esac 3585 CC=$ac_ct_CC 3586 fi 3587fi 3588 3589fi 3590 3591 3592test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3594as_fn_error $? "no acceptable C compiler found in \$PATH 3595See \`config.log' for more details" "$LINENO" 5; } 3596 3597# Provide some information about the compiler. 3598$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3599set X $ac_compile 3600ac_compiler=$2 3601for ac_option in --version -v -V -qversion; do 3602 { { ac_try="$ac_compiler $ac_option >&5" 3603case "(($ac_try" in 3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3605 *) ac_try_echo=$ac_try;; 3606esac 3607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3608$as_echo "$ac_try_echo"; } >&5 3609 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3610 ac_status=$? 3611 if test -s conftest.err; then 3612 sed '10a\ 3613... rest of stderr output deleted ... 3614 10q' conftest.err >conftest.er1 3615 cat conftest.er1 >&5 3616 fi 3617 rm -f conftest.er1 conftest.err 3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3619 test $ac_status = 0; } 3620done 3621 3622cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3623/* end confdefs.h. */ 3624 3625int 3626main () 3627{ 3628 3629 ; 3630 return 0; 3631} 3632_ACEOF 3633ac_clean_files_save=$ac_clean_files 3634ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3635# Try to create an executable without -o first, disregard a.out. 3636# It will help us diagnose broken compilers, and finding out an intuition 3637# of exeext. 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3639$as_echo_n "checking whether the C compiler works... " >&6; } 3640ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3641 3642# The possible output files: 3643ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3644 3645ac_rmfiles= 3646for ac_file in $ac_files 3647do 3648 case $ac_file in 3649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3650 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3651 esac 3652done 3653rm -f $ac_rmfiles 3654 3655if { { ac_try="$ac_link_default" 3656case "(($ac_try" in 3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3658 *) ac_try_echo=$ac_try;; 3659esac 3660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3661$as_echo "$ac_try_echo"; } >&5 3662 (eval "$ac_link_default") 2>&5 3663 ac_status=$? 3664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3665 test $ac_status = 0; }; then : 3666 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3667# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3668# in a Makefile. We should not override ac_cv_exeext if it was cached, 3669# so that the user can short-circuit this test for compilers unknown to 3670# Autoconf. 3671for ac_file in $ac_files '' 3672do 3673 test -f "$ac_file" || continue 3674 case $ac_file in 3675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3676 ;; 3677 [ab].out ) 3678 # We found the default executable, but exeext='' is most 3679 # certainly right. 3680 break;; 3681 *.* ) 3682 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3683 then :; else 3684 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3685 fi 3686 # We set ac_cv_exeext here because the later test for it is not 3687 # safe: cross compilers may not add the suffix if given an `-o' 3688 # argument, so we may need to know it at that point already. 3689 # Even if this section looks crufty: it has the advantage of 3690 # actually working. 3691 break;; 3692 * ) 3693 break;; 3694 esac 3695done 3696test "$ac_cv_exeext" = no && ac_cv_exeext= 3697 3698else 3699 ac_file='' 3700fi 3701if test -z "$ac_file"; then : 3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3703$as_echo "no" >&6; } 3704$as_echo "$as_me: failed program was:" >&5 3705sed 's/^/| /' conftest.$ac_ext >&5 3706 3707{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3709as_fn_error 77 "C compiler cannot create executables 3710See \`config.log' for more details" "$LINENO" 5; } 3711else 3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3713$as_echo "yes" >&6; } 3714fi 3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3716$as_echo_n "checking for C compiler default output file name... " >&6; } 3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3718$as_echo "$ac_file" >&6; } 3719ac_exeext=$ac_cv_exeext 3720 3721rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3722ac_clean_files=$ac_clean_files_save 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3724$as_echo_n "checking for suffix of executables... " >&6; } 3725if { { ac_try="$ac_link" 3726case "(($ac_try" in 3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3728 *) ac_try_echo=$ac_try;; 3729esac 3730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3731$as_echo "$ac_try_echo"; } >&5 3732 (eval "$ac_link") 2>&5 3733 ac_status=$? 3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3735 test $ac_status = 0; }; then : 3736 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3737# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3738# work properly (i.e., refer to `conftest.exe'), while it won't with 3739# `rm'. 3740for ac_file in conftest.exe conftest conftest.*; do 3741 test -f "$ac_file" || continue 3742 case $ac_file in 3743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3744 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3745 break;; 3746 * ) break;; 3747 esac 3748done 3749else 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 compute suffix of executables: cannot compile and link 3753See \`config.log' for more details" "$LINENO" 5; } 3754fi 3755rm -f conftest conftest$ac_cv_exeext 3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3757$as_echo "$ac_cv_exeext" >&6; } 3758 3759rm -f conftest.$ac_ext 3760EXEEXT=$ac_cv_exeext 3761ac_exeext=$EXEEXT 3762cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3763/* end confdefs.h. */ 3764#include <stdio.h> 3765int 3766main () 3767{ 3768FILE *f = fopen ("conftest.out", "w"); 3769 return ferror (f) || fclose (f) != 0; 3770 3771 ; 3772 return 0; 3773} 3774_ACEOF 3775ac_clean_files="$ac_clean_files conftest.out" 3776# Check that the compiler produces executables we can run. If not, either 3777# the compiler is broken, or we cross compile. 3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3779$as_echo_n "checking whether we are cross compiling... " >&6; } 3780if test "$cross_compiling" != yes; then 3781 { { ac_try="$ac_link" 3782case "(($ac_try" in 3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3784 *) ac_try_echo=$ac_try;; 3785esac 3786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3787$as_echo "$ac_try_echo"; } >&5 3788 (eval "$ac_link") 2>&5 3789 ac_status=$? 3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3791 test $ac_status = 0; } 3792 if { ac_try='./conftest$ac_cv_exeext' 3793 { { case "(($ac_try" in 3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3795 *) ac_try_echo=$ac_try;; 3796esac 3797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3798$as_echo "$ac_try_echo"; } >&5 3799 (eval "$ac_try") 2>&5 3800 ac_status=$? 3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3802 test $ac_status = 0; }; }; then 3803 cross_compiling=no 3804 else 3805 if test "$cross_compiling" = maybe; then 3806 cross_compiling=yes 3807 else 3808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3810as_fn_error $? "cannot run C compiled programs. 3811If you meant to cross compile, use \`--host'. 3812See \`config.log' for more details" "$LINENO" 5; } 3813 fi 3814 fi 3815fi 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3817$as_echo "$cross_compiling" >&6; } 3818 3819rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3820ac_clean_files=$ac_clean_files_save 3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3822$as_echo_n "checking for suffix of object files... " >&6; } 3823if ${ac_cv_objext+:} false; then : 3824 $as_echo_n "(cached) " >&6 3825else 3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3827/* end confdefs.h. */ 3828 3829int 3830main () 3831{ 3832 3833 ; 3834 return 0; 3835} 3836_ACEOF 3837rm -f conftest.o conftest.obj 3838if { { ac_try="$ac_compile" 3839case "(($ac_try" in 3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3841 *) ac_try_echo=$ac_try;; 3842esac 3843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3844$as_echo "$ac_try_echo"; } >&5 3845 (eval "$ac_compile") 2>&5 3846 ac_status=$? 3847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3848 test $ac_status = 0; }; then : 3849 for ac_file in conftest.o conftest.obj conftest.*; do 3850 test -f "$ac_file" || continue; 3851 case $ac_file in 3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3853 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3854 break;; 3855 esac 3856done 3857else 3858 $as_echo "$as_me: failed program was:" >&5 3859sed 's/^/| /' conftest.$ac_ext >&5 3860 3861{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3862$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3863as_fn_error $? "cannot compute suffix of object files: cannot compile 3864See \`config.log' for more details" "$LINENO" 5; } 3865fi 3866rm -f conftest.$ac_cv_objext conftest.$ac_ext 3867fi 3868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3869$as_echo "$ac_cv_objext" >&6; } 3870OBJEXT=$ac_cv_objext 3871ac_objext=$OBJEXT 3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3873$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3874if ${ac_cv_c_compiler_gnu+:} false; then : 3875 $as_echo_n "(cached) " >&6 3876else 3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3878/* end confdefs.h. */ 3879 3880int 3881main () 3882{ 3883#ifndef __GNUC__ 3884 choke me 3885#endif 3886 3887 ; 3888 return 0; 3889} 3890_ACEOF 3891if ac_fn_c_try_compile "$LINENO"; then : 3892 ac_compiler_gnu=yes 3893else 3894 ac_compiler_gnu=no 3895fi 3896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3897ac_cv_c_compiler_gnu=$ac_compiler_gnu 3898 3899fi 3900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3901$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3902if test $ac_compiler_gnu = yes; then 3903 GCC=yes 3904else 3905 GCC= 3906fi 3907ac_test_CFLAGS=${CFLAGS+set} 3908ac_save_CFLAGS=$CFLAGS 3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3910$as_echo_n "checking whether $CC accepts -g... " >&6; } 3911if ${ac_cv_prog_cc_g+:} false; then : 3912 $as_echo_n "(cached) " >&6 3913else 3914 ac_save_c_werror_flag=$ac_c_werror_flag 3915 ac_c_werror_flag=yes 3916 ac_cv_prog_cc_g=no 3917 CFLAGS="-g" 3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3919/* end confdefs.h. */ 3920 3921int 3922main () 3923{ 3924 3925 ; 3926 return 0; 3927} 3928_ACEOF 3929if ac_fn_c_try_compile "$LINENO"; then : 3930 ac_cv_prog_cc_g=yes 3931else 3932 CFLAGS="" 3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3934/* end confdefs.h. */ 3935 3936int 3937main () 3938{ 3939 3940 ; 3941 return 0; 3942} 3943_ACEOF 3944if ac_fn_c_try_compile "$LINENO"; then : 3945 3946else 3947 ac_c_werror_flag=$ac_save_c_werror_flag 3948 CFLAGS="-g" 3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3950/* end confdefs.h. */ 3951 3952int 3953main () 3954{ 3955 3956 ; 3957 return 0; 3958} 3959_ACEOF 3960if ac_fn_c_try_compile "$LINENO"; then : 3961 ac_cv_prog_cc_g=yes 3962fi 3963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3964fi 3965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3966fi 3967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3968 ac_c_werror_flag=$ac_save_c_werror_flag 3969fi 3970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3971$as_echo "$ac_cv_prog_cc_g" >&6; } 3972if test "$ac_test_CFLAGS" = set; then 3973 CFLAGS=$ac_save_CFLAGS 3974elif test $ac_cv_prog_cc_g = yes; then 3975 if test "$GCC" = yes; then 3976 CFLAGS="-g -O2" 3977 else 3978 CFLAGS="-g" 3979 fi 3980else 3981 if test "$GCC" = yes; then 3982 CFLAGS="-O2" 3983 else 3984 CFLAGS= 3985 fi 3986fi 3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3988$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3989if ${ac_cv_prog_cc_c89+:} false; then : 3990 $as_echo_n "(cached) " >&6 3991else 3992 ac_cv_prog_cc_c89=no 3993ac_save_CC=$CC 3994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3995/* end confdefs.h. */ 3996#include <stdarg.h> 3997#include <stdio.h> 3998struct stat; 3999/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4000struct buf { int x; }; 4001FILE * (*rcsopen) (struct buf *, struct stat *, int); 4002static char *e (p, i) 4003 char **p; 4004 int i; 4005{ 4006 return p[i]; 4007} 4008static char *f (char * (*g) (char **, int), char **p, ...) 4009{ 4010 char *s; 4011 va_list v; 4012 va_start (v,p); 4013 s = g (p, va_arg (v,int)); 4014 va_end (v); 4015 return s; 4016} 4017 4018/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4019 function prototypes and stuff, but not '\xHH' hex character constants. 4020 These don't provoke an error unfortunately, instead are silently treated 4021 as 'x'. The following induces an error, until -std is added to get 4022 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4023 array size at least. It's necessary to write '\x00'==0 to get something 4024 that's true only with -std. */ 4025int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4026 4027/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4028 inside strings and character constants. */ 4029#define FOO(x) 'x' 4030int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4031 4032int test (int i, double x); 4033struct s1 {int (*f) (int a);}; 4034struct s2 {int (*f) (double a);}; 4035int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4036int argc; 4037char **argv; 4038int 4039main () 4040{ 4041return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4042 ; 4043 return 0; 4044} 4045_ACEOF 4046for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4047 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4048do 4049 CC="$ac_save_CC $ac_arg" 4050 if ac_fn_c_try_compile "$LINENO"; then : 4051 ac_cv_prog_cc_c89=$ac_arg 4052fi 4053rm -f core conftest.err conftest.$ac_objext 4054 test "x$ac_cv_prog_cc_c89" != "xno" && break 4055done 4056rm -f conftest.$ac_ext 4057CC=$ac_save_CC 4058 4059fi 4060# AC_CACHE_VAL 4061case "x$ac_cv_prog_cc_c89" in 4062 x) 4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4064$as_echo "none needed" >&6; } ;; 4065 xno) 4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4067$as_echo "unsupported" >&6; } ;; 4068 *) 4069 CC="$CC $ac_cv_prog_cc_c89" 4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4071$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4072esac 4073if test "x$ac_cv_prog_cc_c89" != xno; then : 4074 4075fi 4076 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 4083ac_ext=c 4084ac_cpp='$CPP $CPPFLAGS' 4085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4087ac_compiler_gnu=$ac_cv_c_compiler_gnu 4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4089$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4090if ${am_cv_prog_cc_c_o+:} false; then : 4091 $as_echo_n "(cached) " >&6 4092else 4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4094/* end confdefs.h. */ 4095 4096int 4097main () 4098{ 4099 4100 ; 4101 return 0; 4102} 4103_ACEOF 4104 # Make sure it works both with $CC and with simple cc. 4105 # Following AC_PROG_CC_C_O, we do the test twice because some 4106 # compilers refuse to overwrite an existing .o file with -o, 4107 # though they will create one. 4108 am_cv_prog_cc_c_o=yes 4109 for am_i in 1 2; do 4110 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4111 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4112 ac_status=$? 4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4114 (exit $ac_status); } \ 4115 && test -f conftest2.$ac_objext; then 4116 : OK 4117 else 4118 am_cv_prog_cc_c_o=no 4119 break 4120 fi 4121 done 4122 rm -f core conftest* 4123 unset am_i 4124fi 4125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4126$as_echo "$am_cv_prog_cc_c_o" >&6; } 4127if test "$am_cv_prog_cc_c_o" != yes; then 4128 # Losing compiler, so override with the script. 4129 # FIXME: It is wrong to rewrite CC. 4130 # But if we don't then we get into trouble of one sort or another. 4131 # A longer-term fix would be to have automake use am__CC in this case, 4132 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4133 CC="$am_aux_dir/compile $CC" 4134fi 4135ac_ext=c 4136ac_cpp='$CPP $CPPFLAGS' 4137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4139ac_compiler_gnu=$ac_cv_c_compiler_gnu 4140 4141 4142depcc="$CC" am_compiler_list= 4143 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4145$as_echo_n "checking dependency style of $depcc... " >&6; } 4146if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4147 $as_echo_n "(cached) " >&6 4148else 4149 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4150 # We make a subdir and do the tests there. Otherwise we can end up 4151 # making bogus files that we don't know about and never remove. For 4152 # instance it was reported that on HP-UX the gcc test will end up 4153 # making a dummy file named 'D' -- because '-MD' means "put the output 4154 # in D". 4155 rm -rf conftest.dir 4156 mkdir conftest.dir 4157 # Copy depcomp to subdir because otherwise we won't find it if we're 4158 # using a relative directory. 4159 cp "$am_depcomp" conftest.dir 4160 cd conftest.dir 4161 # We will build objects and dependencies in a subdirectory because 4162 # it helps to detect inapplicable dependency modes. For instance 4163 # both Tru64's cc and ICC support -MD to output dependencies as a 4164 # side effect of compilation, but ICC will put the dependencies in 4165 # the current directory while Tru64 will put them in the object 4166 # directory. 4167 mkdir sub 4168 4169 am_cv_CC_dependencies_compiler_type=none 4170 if test "$am_compiler_list" = ""; then 4171 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4172 fi 4173 am__universal=false 4174 case " $depcc " in #( 4175 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4176 esac 4177 4178 for depmode in $am_compiler_list; do 4179 # Setup a source with many dependencies, because some compilers 4180 # like to wrap large dependency lists on column 80 (with \), and 4181 # we should not choose a depcomp mode which is confused by this. 4182 # 4183 # We need to recreate these files for each test, as the compiler may 4184 # overwrite some of them when testing with obscure command lines. 4185 # This happens at least with the AIX C compiler. 4186 : > sub/conftest.c 4187 for i in 1 2 3 4 5 6; do 4188 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4189 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4190 # Solaris 10 /bin/sh. 4191 echo '/* dummy */' > sub/conftst$i.h 4192 done 4193 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4194 4195 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4196 # mode. It turns out that the SunPro C++ compiler does not properly 4197 # handle '-M -o', and we need to detect this. Also, some Intel 4198 # versions had trouble with output in subdirs. 4199 am__obj=sub/conftest.${OBJEXT-o} 4200 am__minus_obj="-o $am__obj" 4201 case $depmode in 4202 gcc) 4203 # This depmode causes a compiler race in universal mode. 4204 test "$am__universal" = false || continue 4205 ;; 4206 nosideeffect) 4207 # After this tag, mechanisms are not by side-effect, so they'll 4208 # only be used when explicitly requested. 4209 if test "x$enable_dependency_tracking" = xyes; then 4210 continue 4211 else 4212 break 4213 fi 4214 ;; 4215 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4216 # This compiler won't grok '-c -o', but also, the minuso test has 4217 # not run yet. These depmodes are late enough in the game, and 4218 # so weak that their functioning should not be impacted. 4219 am__obj=conftest.${OBJEXT-o} 4220 am__minus_obj= 4221 ;; 4222 none) break ;; 4223 esac 4224 if depmode=$depmode \ 4225 source=sub/conftest.c object=$am__obj \ 4226 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4227 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4228 >/dev/null 2>conftest.err && 4229 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4230 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4231 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4232 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4233 # icc doesn't choke on unknown options, it will just issue warnings 4234 # or remarks (even with -Werror). So we grep stderr for any message 4235 # that says an option was ignored or not supported. 4236 # When given -MP, icc 7.0 and 7.1 complain thusly: 4237 # icc: Command line warning: ignoring option '-M'; no argument required 4238 # The diagnosis changed in icc 8.0: 4239 # icc: Command line remark: option '-MP' not supported 4240 if (grep 'ignoring option' conftest.err || 4241 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4242 am_cv_CC_dependencies_compiler_type=$depmode 4243 break 4244 fi 4245 fi 4246 done 4247 4248 cd .. 4249 rm -rf conftest.dir 4250else 4251 am_cv_CC_dependencies_compiler_type=none 4252fi 4253 4254fi 4255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4256$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4257CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4258 4259 if 4260 test "x$enable_dependency_tracking" != xno \ 4261 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4262 am__fastdepCC_TRUE= 4263 am__fastdepCC_FALSE='#' 4264else 4265 am__fastdepCC_TRUE='#' 4266 am__fastdepCC_FALSE= 4267fi 4268 4269 4270 4271 4272 # C support is enabled by default. 4273 4274 4275 # Only enable C++ support if AC_PROG_CXX is called. The redefinition of 4276 # AC_PROG_CXX is so that a fatal error is emitted if this macro is called 4277 # before AC_PROG_CXX, which would otherwise cause no C++ warnings to be 4278 # checked. 4279 4280 4281 4282 4283 # Default value for IS-RELEASE is $ax_is_release 4284 ax_compiler_flags_is_release=$ax_is_release 4285 4286 # Check whether --enable-compile-warnings was given. 4287if test "${enable_compile_warnings+set}" = set; then : 4288 enableval=$enable_compile_warnings; 4289else 4290 if test "$ax_compiler_flags_is_release" = "yes"; then : 4291 enable_compile_warnings="yes" 4292else 4293 enable_compile_warnings="error" 4294fi 4295fi 4296 4297 # Check whether --enable-Werror was given. 4298if test "${enable_Werror+set}" = set; then : 4299 enableval=$enable_Werror; 4300else 4301 enable_Werror=maybe 4302fi 4303 4304 4305 # Return the user's chosen warning level 4306 if test "$enable_Werror" = "no" -a \ 4307 "$enable_compile_warnings" = "error"; then : 4308 4309 enable_compile_warnings="yes" 4310 4311fi 4312 4313 ax_enable_compile_warnings=$enable_compile_warnings 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 # Variable names 4325 4326 4327 ac_ext=c 4328ac_cpp='$CPP $CPPFLAGS' 4329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4331ac_compiler_gnu=$ac_cv_c_compiler_gnu 4332 4333 4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4335/* end confdefs.h. */ 4336 4337 #ifndef __cplusplus 4338 #error "no C++" 4339 #endif 4340int 4341main () 4342{ 4343 4344 ; 4345 return 0; 4346} 4347_ACEOF 4348if ac_fn_c_try_compile "$LINENO"; then : 4349 ax_compiler_cxx=yes; 4350else 4351 ax_compiler_cxx=no; 4352fi 4353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4354 4355 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad 4356 # flags, otherwise they are always appended to the warn_cflags variable, and 4357 # Clang warns on them for every compilation unit. 4358 # If this is passed to GCC, it will explode, so the flag must be enabled 4359 # conditionally. 4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5 4361$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; } 4362if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then : 4363 $as_echo_n "(cached) " >&6 4364else 4365 4366 ax_check_save_flags=$CFLAGS 4367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4369/* end confdefs.h. */ 4370 4371int 4372main () 4373{ 4374 4375 ; 4376 return 0; 4377} 4378_ACEOF 4379if ac_fn_c_try_compile "$LINENO"; then : 4380 ax_cv_check_cflags___Werror_unknown_warning_option=yes 4381else 4382 ax_cv_check_cflags___Werror_unknown_warning_option=no 4383fi 4384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4385 CFLAGS=$ax_check_save_flags 4386fi 4387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5 4388$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; } 4389if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then : 4390 4391 ax_compiler_flags_test="-Werror=unknown-warning-option" 4392 4393else 4394 4395 ax_compiler_flags_test="" 4396 4397fi 4398 4399 4400 # Check that -Wno-suggest-attribute=format is supported 4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-suggest-attribute=format" >&5 4402$as_echo_n "checking whether C compiler accepts -Wno-suggest-attribute=format... " >&6; } 4403if ${ax_cv_check_cflags___Wno_suggest_attribute_format+:} false; then : 4404 $as_echo_n "(cached) " >&6 4405else 4406 4407 ax_check_save_flags=$CFLAGS 4408 CFLAGS="$CFLAGS -Wno-suggest-attribute=format" 4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4410/* end confdefs.h. */ 4411 4412int 4413main () 4414{ 4415 4416 ; 4417 return 0; 4418} 4419_ACEOF 4420if ac_fn_c_try_compile "$LINENO"; then : 4421 ax_cv_check_cflags___Wno_suggest_attribute_format=yes 4422else 4423 ax_cv_check_cflags___Wno_suggest_attribute_format=no 4424fi 4425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4426 CFLAGS=$ax_check_save_flags 4427fi 4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_suggest_attribute_format" >&5 4429$as_echo "$ax_cv_check_cflags___Wno_suggest_attribute_format" >&6; } 4430if test "x$ax_cv_check_cflags___Wno_suggest_attribute_format" = xyes; then : 4431 4432 ax_compiler_no_suggest_attribute_flags="-Wno-suggest-attribute=format" 4433 4434else 4435 4436 ax_compiler_no_suggest_attribute_flags="" 4437 4438fi 4439 4440 4441 # Base flags 4442 4443 4444 4445 4446for flag in -fno-strict-aliasing ; do 4447 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 4449$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 4450if eval \${$as_CACHEVAR+:} false; then : 4451 $as_echo_n "(cached) " >&6 4452else 4453 4454 ax_check_save_flags=$CFLAGS 4455 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4457/* end confdefs.h. */ 4458 4459int 4460main () 4461{ 4462 4463 ; 4464 return 0; 4465} 4466_ACEOF 4467if ac_fn_c_try_compile "$LINENO"; then : 4468 eval "$as_CACHEVAR=yes" 4469else 4470 eval "$as_CACHEVAR=no" 4471fi 4472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4473 CFLAGS=$ax_check_save_flags 4474fi 4475eval ac_res=\$$as_CACHEVAR 4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4477$as_echo "$ac_res" >&6; } 4478if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 4479 4480if ${WARN_CFLAGS+:} false; then : 4481 4482 case " $WARN_CFLAGS " in #( 4483 *" $flag "*) : 4484 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 4485 (: WARN_CFLAGS already contains $flag) 2>&5 4486 ac_status=$? 4487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4488 test $ac_status = 0; } ;; #( 4489 *) : 4490 4491 as_fn_append WARN_CFLAGS " $flag" 4492 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 4493 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 4494 ac_status=$? 4495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4496 test $ac_status = 0; } 4497 ;; 4498esac 4499 4500else 4501 4502 WARN_CFLAGS=$flag 4503 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 4504 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 4505 ac_status=$? 4506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4507 test $ac_status = 0; } 4508 4509fi 4510 4511else 4512 : 4513fi 4514 4515done 4516 4517 4518 if test "$ax_enable_compile_warnings" != "no"; then : 4519 4520 if test "$ax_compiler_cxx" = "no" ; then 4521 # C-only flags. Warn in C++ 4522 4523 4524 4525 4526for flag in -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -Wimplicit-function-declaration -Wold-style-definition -Wjump-misses-init ; do 4527 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 4529$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 4530if eval \${$as_CACHEVAR+:} false; then : 4531 $as_echo_n "(cached) " >&6 4532else 4533 4534 ax_check_save_flags=$CFLAGS 4535 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4537/* end confdefs.h. */ 4538 4539int 4540main () 4541{ 4542 4543 ; 4544 return 0; 4545} 4546_ACEOF 4547if ac_fn_c_try_compile "$LINENO"; then : 4548 eval "$as_CACHEVAR=yes" 4549else 4550 eval "$as_CACHEVAR=no" 4551fi 4552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4553 CFLAGS=$ax_check_save_flags 4554fi 4555eval ac_res=\$$as_CACHEVAR 4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4557$as_echo "$ac_res" >&6; } 4558if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 4559 4560if ${WARN_CFLAGS+:} false; then : 4561 4562 case " $WARN_CFLAGS " in #( 4563 *" $flag "*) : 4564 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 4565 (: WARN_CFLAGS already contains $flag) 2>&5 4566 ac_status=$? 4567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4568 test $ac_status = 0; } ;; #( 4569 *) : 4570 4571 as_fn_append WARN_CFLAGS " $flag" 4572 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 4573 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 4574 ac_status=$? 4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4576 test $ac_status = 0; } 4577 ;; 4578esac 4579 4580else 4581 4582 WARN_CFLAGS=$flag 4583 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 4584 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 4585 ac_status=$? 4586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4587 test $ac_status = 0; } 4588 4589fi 4590 4591else 4592 : 4593fi 4594 4595done 4596 4597 fi 4598 4599 # "yes" flags 4600 4601 4602 4603 4604for flag in -Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2 -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wredundant-decls -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wdouble-promotion -Wno-cast-function-type -Wno-error=cast-function-type ; do 4605 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 4607$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 4608if eval \${$as_CACHEVAR+:} false; then : 4609 $as_echo_n "(cached) " >&6 4610else 4611 4612 ax_check_save_flags=$CFLAGS 4613 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4615/* end confdefs.h. */ 4616 4617int 4618main () 4619{ 4620 4621 ; 4622 return 0; 4623} 4624_ACEOF 4625if ac_fn_c_try_compile "$LINENO"; then : 4626 eval "$as_CACHEVAR=yes" 4627else 4628 eval "$as_CACHEVAR=no" 4629fi 4630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4631 CFLAGS=$ax_check_save_flags 4632fi 4633eval ac_res=\$$as_CACHEVAR 4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4635$as_echo "$ac_res" >&6; } 4636if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 4637 4638if ${WARN_CFLAGS+:} false; then : 4639 4640 case " $WARN_CFLAGS " in #( 4641 *" $flag "*) : 4642 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 4643 (: WARN_CFLAGS already contains $flag) 2>&5 4644 ac_status=$? 4645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4646 test $ac_status = 0; } ;; #( 4647 *) : 4648 4649 as_fn_append WARN_CFLAGS " $flag" 4650 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 4651 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 4652 ac_status=$? 4653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4654 test $ac_status = 0; } 4655 ;; 4656esac 4657 4658else 4659 4660 WARN_CFLAGS=$flag 4661 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 4662 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 4663 ac_status=$? 4664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4665 test $ac_status = 0; } 4666 4667fi 4668 4669else 4670 : 4671fi 4672 4673done 4674 4675 4676fi 4677 if test "$ax_enable_compile_warnings" = "error"; then : 4678 4679 # "error" flags; -Werror has to be appended unconditionally because 4680 # it's not possible to test for 4681 # 4682 # suggest-attribute=format is disabled because it gives too many false 4683 # positives 4684 4685if ${WARN_CFLAGS+:} false; then : 4686 4687 case " $WARN_CFLAGS " in #( 4688 *" -Werror "*) : 4689 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains -Werror"; } >&5 4690 (: WARN_CFLAGS already contains -Werror) 2>&5 4691 ac_status=$? 4692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4693 test $ac_status = 0; } ;; #( 4694 *) : 4695 4696 as_fn_append WARN_CFLAGS " -Werror" 4697 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 4698 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 4699 ac_status=$? 4700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4701 test $ac_status = 0; } 4702 ;; 4703esac 4704 4705else 4706 4707 WARN_CFLAGS=-Werror 4708 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 4709 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 4710 ac_status=$? 4711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4712 test $ac_status = 0; } 4713 4714fi 4715 4716 4717 4718 4719 4720 4721for flag in $ax_compiler_no_suggest_attribute_flags ; do 4722 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 4724$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 4725if eval \${$as_CACHEVAR+:} false; then : 4726 $as_echo_n "(cached) " >&6 4727else 4728 4729 ax_check_save_flags=$CFLAGS 4730 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4732/* end confdefs.h. */ 4733 4734int 4735main () 4736{ 4737 4738 ; 4739 return 0; 4740} 4741_ACEOF 4742if ac_fn_c_try_compile "$LINENO"; then : 4743 eval "$as_CACHEVAR=yes" 4744else 4745 eval "$as_CACHEVAR=no" 4746fi 4747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4748 CFLAGS=$ax_check_save_flags 4749fi 4750eval ac_res=\$$as_CACHEVAR 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4752$as_echo "$ac_res" >&6; } 4753if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 4754 4755if ${WARN_CFLAGS+:} false; then : 4756 4757 case " $WARN_CFLAGS " in #( 4758 *" $flag "*) : 4759 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 4760 (: WARN_CFLAGS already contains $flag) 2>&5 4761 ac_status=$? 4762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4763 test $ac_status = 0; } ;; #( 4764 *) : 4765 4766 as_fn_append WARN_CFLAGS " $flag" 4767 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 4768 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 4769 ac_status=$? 4770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4771 test $ac_status = 0; } 4772 ;; 4773esac 4774 4775else 4776 4777 WARN_CFLAGS=$flag 4778 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 4779 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 4780 ac_status=$? 4781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4782 test $ac_status = 0; } 4783 4784fi 4785 4786else 4787 : 4788fi 4789 4790done 4791 4792 4793fi 4794 4795 # In the flags below, when disabling specific flags, always add *both* 4796 # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example) 4797 # we enable -Werror, disable a flag, and a build bot passes CFLAGS=-Wall, 4798 # which effectively turns that flag back on again as an error. 4799 for flag in $WARN_CFLAGS; do 4800 case $flag in #( 4801 -Wno-*=*) : 4802 ;; #( 4803 -Wno-*) : 4804 4805 4806 4807 4808 4809for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do 4810 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 4812$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 4813if eval \${$as_CACHEVAR+:} false; then : 4814 $as_echo_n "(cached) " >&6 4815else 4816 4817 ax_check_save_flags=$CFLAGS 4818 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4820/* end confdefs.h. */ 4821 4822int 4823main () 4824{ 4825 4826 ; 4827 return 0; 4828} 4829_ACEOF 4830if ac_fn_c_try_compile "$LINENO"; then : 4831 eval "$as_CACHEVAR=yes" 4832else 4833 eval "$as_CACHEVAR=no" 4834fi 4835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4836 CFLAGS=$ax_check_save_flags 4837fi 4838eval ac_res=\$$as_CACHEVAR 4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4840$as_echo "$ac_res" >&6; } 4841if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 4842 4843if ${WARN_CFLAGS+:} false; then : 4844 4845 case " $WARN_CFLAGS " in #( 4846 *" $flag "*) : 4847 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 4848 (: WARN_CFLAGS already contains $flag) 2>&5 4849 ac_status=$? 4850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4851 test $ac_status = 0; } ;; #( 4852 *) : 4853 4854 as_fn_append WARN_CFLAGS " $flag" 4855 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 4856 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 4857 ac_status=$? 4858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4859 test $ac_status = 0; } 4860 ;; 4861esac 4862 4863else 4864 4865 WARN_CFLAGS=$flag 4866 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 4867 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 4868 ac_status=$? 4869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4870 test $ac_status = 0; } 4871 4872fi 4873 4874else 4875 : 4876fi 4877 4878done 4879 4880 ;; #( 4881 *) : 4882 ;; 4883esac 4884 done 4885 4886 ac_ext=c 4887ac_cpp='$CPP $CPPFLAGS' 4888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4890ac_compiler_gnu=$ac_cv_c_compiler_gnu 4891 4892 4893 # Substitute the variables 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 # Variable names 4908 4909 4910 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad 4911 # flags, otherwise they are always appended to the warn_ldflags variable, 4912 # and Clang warns on them for every compilation unit. 4913 # If this is passed to GCC, it will explode, so the flag must be enabled 4914 # conditionally. 4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5 4916$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; } 4917if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919else 4920 4921 ax_check_save_flags=$CFLAGS 4922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4924/* end confdefs.h. */ 4925 4926int 4927main () 4928{ 4929 4930 ; 4931 return 0; 4932} 4933_ACEOF 4934if ac_fn_c_try_compile "$LINENO"; then : 4935 ax_cv_check_cflags___Werror_unknown_warning_option=yes 4936else 4937 ax_cv_check_cflags___Werror_unknown_warning_option=no 4938fi 4939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4940 CFLAGS=$ax_check_save_flags 4941fi 4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5 4943$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; } 4944if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then : 4945 4946 ax_compiler_flags_test="-Werror=unknown-warning-option" 4947 4948else 4949 4950 ax_compiler_flags_test="" 4951 4952fi 4953 4954 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--as-needed" >&5 4956$as_echo_n "checking whether the linker accepts -Wl,--as-needed... " >&6; } 4957if ${ax_cv_check_ldflags___Wl___as_needed+:} false; then : 4958 $as_echo_n "(cached) " >&6 4959else 4960 4961 ax_check_save_flags=$LDFLAGS 4962 LDFLAGS="$LDFLAGS -Wl,--as-needed" 4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4964/* end confdefs.h. */ 4965 4966int 4967main () 4968{ 4969 4970 ; 4971 return 0; 4972} 4973_ACEOF 4974if ac_fn_c_try_link "$LINENO"; then : 4975 ax_cv_check_ldflags___Wl___as_needed=yes 4976else 4977 ax_cv_check_ldflags___Wl___as_needed=no 4978fi 4979rm -f core conftest.err conftest.$ac_objext \ 4980 conftest$ac_exeext conftest.$ac_ext 4981 LDFLAGS=$ax_check_save_flags 4982fi 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___as_needed" >&5 4984$as_echo "$ax_cv_check_ldflags___Wl___as_needed" >&6; } 4985if test "x$ax_cv_check_ldflags___Wl___as_needed" = xyes; then : 4986 4987 4988 4989 4990 4991for flag in -Wl,--as-needed; do 4992 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 4994$as_echo_n "checking whether the linker accepts $flag... " >&6; } 4995if eval \${$as_CACHEVAR+:} false; then : 4996 $as_echo_n "(cached) " >&6 4997else 4998 4999 ax_check_save_flags=$LDFLAGS 5000 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag" 5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5002/* end confdefs.h. */ 5003 5004int 5005main () 5006{ 5007 5008 ; 5009 return 0; 5010} 5011_ACEOF 5012if ac_fn_c_try_link "$LINENO"; then : 5013 eval "$as_CACHEVAR=yes" 5014else 5015 eval "$as_CACHEVAR=no" 5016fi 5017rm -f core conftest.err conftest.$ac_objext \ 5018 conftest$ac_exeext conftest.$ac_ext 5019 LDFLAGS=$ax_check_save_flags 5020fi 5021eval ac_res=\$$as_CACHEVAR 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5023$as_echo "$ac_res" >&6; } 5024if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 5025 5026if ${AM_LDFLAGS+:} false; then : 5027 5028 case " $AM_LDFLAGS " in #( 5029 *" $flag "*) : 5030 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5 5031 (: AM_LDFLAGS already contains $flag) 2>&5 5032 ac_status=$? 5033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5034 test $ac_status = 0; } ;; #( 5035 *) : 5036 5037 as_fn_append AM_LDFLAGS " $flag" 5038 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5 5039 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5 5040 ac_status=$? 5041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5042 test $ac_status = 0; } 5043 ;; 5044esac 5045 5046else 5047 5048 AM_LDFLAGS=$flag 5049 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5 5050 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5 5051 ac_status=$? 5052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5053 test $ac_status = 0; } 5054 5055fi 5056 5057else 5058 : 5059fi 5060 5061done 5062 5063 5064else 5065 : 5066fi 5067 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5 5069$as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; } 5070if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then : 5071 $as_echo_n "(cached) " >&6 5072else 5073 5074 ax_check_save_flags=$LDFLAGS 5075 LDFLAGS="$LDFLAGS -Wl,-z,relro" 5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5077/* end confdefs.h. */ 5078 5079int 5080main () 5081{ 5082 5083 ; 5084 return 0; 5085} 5086_ACEOF 5087if ac_fn_c_try_link "$LINENO"; then : 5088 ax_cv_check_ldflags___Wl__z_relro=yes 5089else 5090 ax_cv_check_ldflags___Wl__z_relro=no 5091fi 5092rm -f core conftest.err conftest.$ac_objext \ 5093 conftest$ac_exeext conftest.$ac_ext 5094 LDFLAGS=$ax_check_save_flags 5095fi 5096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5 5097$as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; } 5098if test "x$ax_cv_check_ldflags___Wl__z_relro" = xyes; then : 5099 5100 5101 5102 5103 5104for flag in -Wl,-z,relro; do 5105 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 5106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 5107$as_echo_n "checking whether the linker accepts $flag... " >&6; } 5108if eval \${$as_CACHEVAR+:} false; then : 5109 $as_echo_n "(cached) " >&6 5110else 5111 5112 ax_check_save_flags=$LDFLAGS 5113 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag" 5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5115/* end confdefs.h. */ 5116 5117int 5118main () 5119{ 5120 5121 ; 5122 return 0; 5123} 5124_ACEOF 5125if ac_fn_c_try_link "$LINENO"; then : 5126 eval "$as_CACHEVAR=yes" 5127else 5128 eval "$as_CACHEVAR=no" 5129fi 5130rm -f core conftest.err conftest.$ac_objext \ 5131 conftest$ac_exeext conftest.$ac_ext 5132 LDFLAGS=$ax_check_save_flags 5133fi 5134eval ac_res=\$$as_CACHEVAR 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5136$as_echo "$ac_res" >&6; } 5137if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 5138 5139if ${AM_LDFLAGS+:} false; then : 5140 5141 case " $AM_LDFLAGS " in #( 5142 *" $flag "*) : 5143 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5 5144 (: AM_LDFLAGS already contains $flag) 2>&5 5145 ac_status=$? 5146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5147 test $ac_status = 0; } ;; #( 5148 *) : 5149 5150 as_fn_append AM_LDFLAGS " $flag" 5151 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5 5152 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5 5153 ac_status=$? 5154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5155 test $ac_status = 0; } 5156 ;; 5157esac 5158 5159else 5160 5161 AM_LDFLAGS=$flag 5162 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5 5163 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5 5164 ac_status=$? 5165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5166 test $ac_status = 0; } 5167 5168fi 5169 5170else 5171 : 5172fi 5173 5174done 5175 5176 5177else 5178 : 5179fi 5180 5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5 5182$as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; } 5183if ${ax_cv_check_ldflags___Wl__z_now+:} false; then : 5184 $as_echo_n "(cached) " >&6 5185else 5186 5187 ax_check_save_flags=$LDFLAGS 5188 LDFLAGS="$LDFLAGS -Wl,-z,now" 5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5190/* end confdefs.h. */ 5191 5192int 5193main () 5194{ 5195 5196 ; 5197 return 0; 5198} 5199_ACEOF 5200if ac_fn_c_try_link "$LINENO"; then : 5201 ax_cv_check_ldflags___Wl__z_now=yes 5202else 5203 ax_cv_check_ldflags___Wl__z_now=no 5204fi 5205rm -f core conftest.err conftest.$ac_objext \ 5206 conftest$ac_exeext conftest.$ac_ext 5207 LDFLAGS=$ax_check_save_flags 5208fi 5209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5 5210$as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; } 5211if test "x$ax_cv_check_ldflags___Wl__z_now" = xyes; then : 5212 5213 5214 5215 5216 5217for flag in -Wl,-z,now; do 5218 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 5220$as_echo_n "checking whether the linker accepts $flag... " >&6; } 5221if eval \${$as_CACHEVAR+:} false; then : 5222 $as_echo_n "(cached) " >&6 5223else 5224 5225 ax_check_save_flags=$LDFLAGS 5226 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag" 5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5228/* end confdefs.h. */ 5229 5230int 5231main () 5232{ 5233 5234 ; 5235 return 0; 5236} 5237_ACEOF 5238if ac_fn_c_try_link "$LINENO"; then : 5239 eval "$as_CACHEVAR=yes" 5240else 5241 eval "$as_CACHEVAR=no" 5242fi 5243rm -f core conftest.err conftest.$ac_objext \ 5244 conftest$ac_exeext conftest.$ac_ext 5245 LDFLAGS=$ax_check_save_flags 5246fi 5247eval ac_res=\$$as_CACHEVAR 5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5249$as_echo "$ac_res" >&6; } 5250if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 5251 5252if ${AM_LDFLAGS+:} false; then : 5253 5254 case " $AM_LDFLAGS " in #( 5255 *" $flag "*) : 5256 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5 5257 (: AM_LDFLAGS already contains $flag) 2>&5 5258 ac_status=$? 5259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5260 test $ac_status = 0; } ;; #( 5261 *) : 5262 5263 as_fn_append AM_LDFLAGS " $flag" 5264 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5 5265 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5 5266 ac_status=$? 5267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5268 test $ac_status = 0; } 5269 ;; 5270esac 5271 5272else 5273 5274 AM_LDFLAGS=$flag 5275 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5 5276 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5 5277 ac_status=$? 5278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5279 test $ac_status = 0; } 5280 5281fi 5282 5283else 5284 : 5285fi 5286 5287done 5288 5289 5290else 5291 : 5292fi 5293 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5 5295$as_echo_n "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; } 5296if ${ax_cv_check_ldflags___Wl__z_noexecstack+:} false; then : 5297 $as_echo_n "(cached) " >&6 5298else 5299 5300 ax_check_save_flags=$LDFLAGS 5301 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack" 5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5303/* end confdefs.h. */ 5304 5305int 5306main () 5307{ 5308 5309 ; 5310 return 0; 5311} 5312_ACEOF 5313if ac_fn_c_try_link "$LINENO"; then : 5314 ax_cv_check_ldflags___Wl__z_noexecstack=yes 5315else 5316 ax_cv_check_ldflags___Wl__z_noexecstack=no 5317fi 5318rm -f core conftest.err conftest.$ac_objext \ 5319 conftest$ac_exeext conftest.$ac_ext 5320 LDFLAGS=$ax_check_save_flags 5321fi 5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5 5323$as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; } 5324if test "x$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then : 5325 5326 5327 5328 5329 5330for flag in -Wl,-z,noexecstack; do 5331 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 5333$as_echo_n "checking whether the linker accepts $flag... " >&6; } 5334if eval \${$as_CACHEVAR+:} false; then : 5335 $as_echo_n "(cached) " >&6 5336else 5337 5338 ax_check_save_flags=$LDFLAGS 5339 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag" 5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5341/* end confdefs.h. */ 5342 5343int 5344main () 5345{ 5346 5347 ; 5348 return 0; 5349} 5350_ACEOF 5351if ac_fn_c_try_link "$LINENO"; then : 5352 eval "$as_CACHEVAR=yes" 5353else 5354 eval "$as_CACHEVAR=no" 5355fi 5356rm -f core conftest.err conftest.$ac_objext \ 5357 conftest$ac_exeext conftest.$ac_ext 5358 LDFLAGS=$ax_check_save_flags 5359fi 5360eval ac_res=\$$as_CACHEVAR 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5362$as_echo "$ac_res" >&6; } 5363if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 5364 5365if ${AM_LDFLAGS+:} false; then : 5366 5367 case " $AM_LDFLAGS " in #( 5368 *" $flag "*) : 5369 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS already contains \$flag"; } >&5 5370 (: AM_LDFLAGS already contains $flag) 2>&5 5371 ac_status=$? 5372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5373 test $ac_status = 0; } ;; #( 5374 *) : 5375 5376 as_fn_append AM_LDFLAGS " $flag" 5377 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5 5378 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5 5379 ac_status=$? 5380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5381 test $ac_status = 0; } 5382 ;; 5383esac 5384 5385else 5386 5387 AM_LDFLAGS=$flag 5388 { { $as_echo "$as_me:${as_lineno-$LINENO}: : AM_LDFLAGS=\"\$AM_LDFLAGS\""; } >&5 5389 (: AM_LDFLAGS="$AM_LDFLAGS") 2>&5 5390 ac_status=$? 5391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5392 test $ac_status = 0; } 5393 5394fi 5395 5396else 5397 : 5398fi 5399 5400done 5401 5402 5403else 5404 : 5405fi 5406 5407 # textonly, retpolineplt not yet 5408 5409 # macOS and cygwin linker do not have --as-needed 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--no-as-needed" >&5 5411$as_echo_n "checking whether the linker accepts -Wl,--no-as-needed... " >&6; } 5412if ${ax_cv_check_ldflags___Wl___no_as_needed+:} false; then : 5413 $as_echo_n "(cached) " >&6 5414else 5415 5416 ax_check_save_flags=$LDFLAGS 5417 LDFLAGS="$LDFLAGS -Wl,--no-as-needed" 5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5419/* end confdefs.h. */ 5420 5421int 5422main () 5423{ 5424 5425 ; 5426 return 0; 5427} 5428_ACEOF 5429if ac_fn_c_try_link "$LINENO"; then : 5430 ax_cv_check_ldflags___Wl___no_as_needed=yes 5431else 5432 ax_cv_check_ldflags___Wl___no_as_needed=no 5433fi 5434rm -f core conftest.err conftest.$ac_objext \ 5435 conftest$ac_exeext conftest.$ac_ext 5436 LDFLAGS=$ax_check_save_flags 5437fi 5438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___no_as_needed" >&5 5439$as_echo "$ax_cv_check_ldflags___Wl___no_as_needed" >&6; } 5440if test "x$ax_cv_check_ldflags___Wl___no_as_needed" = xyes; then : 5441 5442 ax_compiler_flags_as_needed_option="-Wl,--no-as-needed" 5443 5444else 5445 5446 ax_compiler_flags_as_needed_option="" 5447 5448fi 5449 5450 5451 # macOS linker speaks with a different accent 5452 ax_compiler_flags_fatal_warnings_option="" 5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--fatal-warnings" >&5 5454$as_echo_n "checking whether the linker accepts -Wl,--fatal-warnings... " >&6; } 5455if ${ax_cv_check_ldflags___Wl___fatal_warnings+:} false; then : 5456 $as_echo_n "(cached) " >&6 5457else 5458 5459 ax_check_save_flags=$LDFLAGS 5460 LDFLAGS="$LDFLAGS -Wl,--fatal-warnings" 5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5462/* end confdefs.h. */ 5463 5464int 5465main () 5466{ 5467 5468 ; 5469 return 0; 5470} 5471_ACEOF 5472if ac_fn_c_try_link "$LINENO"; then : 5473 ax_cv_check_ldflags___Wl___fatal_warnings=yes 5474else 5475 ax_cv_check_ldflags___Wl___fatal_warnings=no 5476fi 5477rm -f core conftest.err conftest.$ac_objext \ 5478 conftest$ac_exeext conftest.$ac_ext 5479 LDFLAGS=$ax_check_save_flags 5480fi 5481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___fatal_warnings" >&5 5482$as_echo "$ax_cv_check_ldflags___Wl___fatal_warnings" >&6; } 5483if test "x$ax_cv_check_ldflags___Wl___fatal_warnings" = xyes; then : 5484 5485 ax_compiler_flags_fatal_warnings_option="-Wl,--fatal-warnings" 5486 5487else 5488 : 5489fi 5490 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-fatal_warnings" >&5 5492$as_echo_n "checking whether the linker accepts -Wl,-fatal_warnings... " >&6; } 5493if ${ax_cv_check_ldflags___Wl__fatal_warnings+:} false; then : 5494 $as_echo_n "(cached) " >&6 5495else 5496 5497 ax_check_save_flags=$LDFLAGS 5498 LDFLAGS="$LDFLAGS -Wl,-fatal_warnings" 5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5500/* end confdefs.h. */ 5501 5502int 5503main () 5504{ 5505 5506 ; 5507 return 0; 5508} 5509_ACEOF 5510if ac_fn_c_try_link "$LINENO"; then : 5511 ax_cv_check_ldflags___Wl__fatal_warnings=yes 5512else 5513 ax_cv_check_ldflags___Wl__fatal_warnings=no 5514fi 5515rm -f core conftest.err conftest.$ac_objext \ 5516 conftest$ac_exeext conftest.$ac_ext 5517 LDFLAGS=$ax_check_save_flags 5518fi 5519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__fatal_warnings" >&5 5520$as_echo "$ax_cv_check_ldflags___Wl__fatal_warnings" >&6; } 5521if test "x$ax_cv_check_ldflags___Wl__fatal_warnings" = xyes; then : 5522 5523 ax_compiler_flags_fatal_warnings_option="-Wl,-fatal_warnings" 5524 5525else 5526 : 5527fi 5528 5529 5530 # Base flags 5531 5532 5533 5534 5535for flag in $ax_compiler_flags_as_needed_option ; do 5536 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 5538$as_echo_n "checking whether the linker accepts $flag... " >&6; } 5539if eval \${$as_CACHEVAR+:} false; then : 5540 $as_echo_n "(cached) " >&6 5541else 5542 5543 ax_check_save_flags=$LDFLAGS 5544 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag" 5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5546/* end confdefs.h. */ 5547 5548int 5549main () 5550{ 5551 5552 ; 5553 return 0; 5554} 5555_ACEOF 5556if ac_fn_c_try_link "$LINENO"; then : 5557 eval "$as_CACHEVAR=yes" 5558else 5559 eval "$as_CACHEVAR=no" 5560fi 5561rm -f core conftest.err conftest.$ac_objext \ 5562 conftest$ac_exeext conftest.$ac_ext 5563 LDFLAGS=$ax_check_save_flags 5564fi 5565eval ac_res=\$$as_CACHEVAR 5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5567$as_echo "$ac_res" >&6; } 5568if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 5569 5570if ${WARN_LDFLAGS+:} false; then : 5571 5572 case " $WARN_LDFLAGS " in #( 5573 *" $flag "*) : 5574 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5 5575 (: WARN_LDFLAGS already contains $flag) 2>&5 5576 ac_status=$? 5577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5578 test $ac_status = 0; } ;; #( 5579 *) : 5580 5581 as_fn_append WARN_LDFLAGS " $flag" 5582 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 5583 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 5584 ac_status=$? 5585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5586 test $ac_status = 0; } 5587 ;; 5588esac 5589 5590else 5591 5592 WARN_LDFLAGS=$flag 5593 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 5594 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 5595 ac_status=$? 5596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5597 test $ac_status = 0; } 5598 5599fi 5600 5601else 5602 : 5603fi 5604 5605done 5606 5607 5608 if test "$ax_enable_compile_warnings" != "no"; then : 5609 5610 # "yes" flags 5611 5612 5613 5614 5615for flag in ; do 5616 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 5618$as_echo_n "checking whether the linker accepts $flag... " >&6; } 5619if eval \${$as_CACHEVAR+:} false; then : 5620 $as_echo_n "(cached) " >&6 5621else 5622 5623 ax_check_save_flags=$LDFLAGS 5624 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag" 5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5626/* end confdefs.h. */ 5627 5628int 5629main () 5630{ 5631 5632 ; 5633 return 0; 5634} 5635_ACEOF 5636if ac_fn_c_try_link "$LINENO"; then : 5637 eval "$as_CACHEVAR=yes" 5638else 5639 eval "$as_CACHEVAR=no" 5640fi 5641rm -f core conftest.err conftest.$ac_objext \ 5642 conftest$ac_exeext conftest.$ac_ext 5643 LDFLAGS=$ax_check_save_flags 5644fi 5645eval ac_res=\$$as_CACHEVAR 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5647$as_echo "$ac_res" >&6; } 5648if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 5649 5650if ${WARN_LDFLAGS+:} false; then : 5651 5652 case " $WARN_LDFLAGS " in #( 5653 *" $flag "*) : 5654 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5 5655 (: WARN_LDFLAGS already contains $flag) 2>&5 5656 ac_status=$? 5657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5658 test $ac_status = 0; } ;; #( 5659 *) : 5660 5661 as_fn_append WARN_LDFLAGS " $flag" 5662 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 5663 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 5664 ac_status=$? 5665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5666 test $ac_status = 0; } 5667 ;; 5668esac 5669 5670else 5671 5672 WARN_LDFLAGS=$flag 5673 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 5674 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 5675 ac_status=$? 5676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5677 test $ac_status = 0; } 5678 5679fi 5680 5681else 5682 : 5683fi 5684 5685done 5686 5687 5688fi 5689 if test "$ax_enable_compile_warnings" = "error"; then : 5690 5691 # "error" flags; -Werror has to be appended unconditionally because 5692 # it's not possible to test for 5693 # 5694 # suggest-attribute=format is disabled because it gives too many false 5695 # positives 5696 5697 5698 5699 5700for flag in $ax_compiler_flags_fatal_warnings_option ; do 5701 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 5703$as_echo_n "checking whether the linker accepts $flag... " >&6; } 5704if eval \${$as_CACHEVAR+:} false; then : 5705 $as_echo_n "(cached) " >&6 5706else 5707 5708 ax_check_save_flags=$LDFLAGS 5709 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag" 5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5711/* end confdefs.h. */ 5712 5713int 5714main () 5715{ 5716 5717 ; 5718 return 0; 5719} 5720_ACEOF 5721if ac_fn_c_try_link "$LINENO"; then : 5722 eval "$as_CACHEVAR=yes" 5723else 5724 eval "$as_CACHEVAR=no" 5725fi 5726rm -f core conftest.err conftest.$ac_objext \ 5727 conftest$ac_exeext conftest.$ac_ext 5728 LDFLAGS=$ax_check_save_flags 5729fi 5730eval ac_res=\$$as_CACHEVAR 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5732$as_echo "$ac_res" >&6; } 5733if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 5734 5735if ${WARN_LDFLAGS+:} false; then : 5736 5737 case " $WARN_LDFLAGS " in #( 5738 *" $flag "*) : 5739 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5 5740 (: WARN_LDFLAGS already contains $flag) 2>&5 5741 ac_status=$? 5742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5743 test $ac_status = 0; } ;; #( 5744 *) : 5745 5746 as_fn_append WARN_LDFLAGS " $flag" 5747 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 5748 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 5749 ac_status=$? 5750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5751 test $ac_status = 0; } 5752 ;; 5753esac 5754 5755else 5756 5757 WARN_LDFLAGS=$flag 5758 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 5759 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 5760 ac_status=$? 5761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5762 test $ac_status = 0; } 5763 5764fi 5765 5766else 5767 : 5768fi 5769 5770done 5771 5772 5773fi 5774 5775 # Substitute the variables 5776 5777 5778 5779 5780 5781 5782 # Variable names 5783 5784 5785 # Base flags 5786 5787if ${WARN_SCANNERFLAGS+:} false; then : 5788 5789 case " $WARN_SCANNERFLAGS " in #( 5790 *" "*) : 5791 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains "; } >&5 5792 (: WARN_SCANNERFLAGS already contains ) 2>&5 5793 ac_status=$? 5794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5795 test $ac_status = 0; } ;; #( 5796 *) : 5797 5798 as_fn_append WARN_SCANNERFLAGS " " 5799 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 5800 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 5801 ac_status=$? 5802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5803 test $ac_status = 0; } 5804 ;; 5805esac 5806 5807else 5808 5809 WARN_SCANNERFLAGS= 5810 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 5811 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 5812 ac_status=$? 5813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5814 test $ac_status = 0; } 5815 5816fi 5817 5818 5819 if test "$ax_enable_compile_warnings" != "no"; then : 5820 5821 # "yes" flags 5822 5823if ${WARN_SCANNERFLAGS+:} false; then : 5824 5825 case " $WARN_SCANNERFLAGS " in #( 5826 *" --warn-all "*) : 5827 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-all "; } >&5 5828 (: WARN_SCANNERFLAGS already contains --warn-all ) 2>&5 5829 ac_status=$? 5830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5831 test $ac_status = 0; } ;; #( 5832 *) : 5833 5834 as_fn_append WARN_SCANNERFLAGS " --warn-all " 5835 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 5836 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 5837 ac_status=$? 5838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5839 test $ac_status = 0; } 5840 ;; 5841esac 5842 5843else 5844 5845 WARN_SCANNERFLAGS= --warn-all 5846 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 5847 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 5848 ac_status=$? 5849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5850 test $ac_status = 0; } 5851 5852fi 5853 5854 5855fi 5856 if test "$ax_enable_compile_warnings" = "error"; then : 5857 5858 # "error" flags 5859 5860if ${WARN_SCANNERFLAGS+:} false; then : 5861 5862 case " $WARN_SCANNERFLAGS " in #( 5863 *" --warn-error "*) : 5864 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-error "; } >&5 5865 (: WARN_SCANNERFLAGS already contains --warn-error ) 2>&5 5866 ac_status=$? 5867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5868 test $ac_status = 0; } ;; #( 5869 *) : 5870 5871 as_fn_append WARN_SCANNERFLAGS " --warn-error " 5872 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 5873 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 5874 ac_status=$? 5875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5876 test $ac_status = 0; } 5877 ;; 5878esac 5879 5880else 5881 5882 WARN_SCANNERFLAGS= --warn-error 5883 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 5884 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 5885 ac_status=$? 5886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5887 test $ac_status = 0; } 5888 5889fi 5890 5891 5892fi 5893 5894 # Substitute the variables 5895 5896 5897 5898 5899ac_ext=c 5900ac_cpp='$CPP $CPPFLAGS' 5901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5903ac_compiler_gnu=$ac_cv_c_compiler_gnu 5904if test -n "$ac_tool_prefix"; then 5905 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5906set dummy ${ac_tool_prefix}gcc; ac_word=$2 5907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5908$as_echo_n "checking for $ac_word... " >&6; } 5909if ${ac_cv_prog_CC+:} false; then : 5910 $as_echo_n "(cached) " >&6 5911else 5912 if test -n "$CC"; then 5913 ac_cv_prog_CC="$CC" # Let the user override the test. 5914else 5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5916for as_dir in $PATH 5917do 5918 IFS=$as_save_IFS 5919 test -z "$as_dir" && as_dir=. 5920 for ac_exec_ext in '' $ac_executable_extensions; do 5921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5922 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5924 break 2 5925 fi 5926done 5927 done 5928IFS=$as_save_IFS 5929 5930fi 5931fi 5932CC=$ac_cv_prog_CC 5933if test -n "$CC"; then 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5935$as_echo "$CC" >&6; } 5936else 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5938$as_echo "no" >&6; } 5939fi 5940 5941 5942fi 5943if test -z "$ac_cv_prog_CC"; then 5944 ac_ct_CC=$CC 5945 # Extract the first word of "gcc", so it can be a program name with args. 5946set dummy gcc; ac_word=$2 5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5948$as_echo_n "checking for $ac_word... " >&6; } 5949if ${ac_cv_prog_ac_ct_CC+:} false; then : 5950 $as_echo_n "(cached) " >&6 5951else 5952 if test -n "$ac_ct_CC"; then 5953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5954else 5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5956for as_dir in $PATH 5957do 5958 IFS=$as_save_IFS 5959 test -z "$as_dir" && as_dir=. 5960 for ac_exec_ext in '' $ac_executable_extensions; do 5961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5962 ac_cv_prog_ac_ct_CC="gcc" 5963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5964 break 2 5965 fi 5966done 5967 done 5968IFS=$as_save_IFS 5969 5970fi 5971fi 5972ac_ct_CC=$ac_cv_prog_ac_ct_CC 5973if test -n "$ac_ct_CC"; then 5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5975$as_echo "$ac_ct_CC" >&6; } 5976else 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5978$as_echo "no" >&6; } 5979fi 5980 5981 if test "x$ac_ct_CC" = x; then 5982 CC="" 5983 else 5984 case $cross_compiling:$ac_tool_warned in 5985yes:) 5986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5988ac_tool_warned=yes ;; 5989esac 5990 CC=$ac_ct_CC 5991 fi 5992else 5993 CC="$ac_cv_prog_CC" 5994fi 5995 5996if test -z "$CC"; then 5997 if test -n "$ac_tool_prefix"; then 5998 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5999set dummy ${ac_tool_prefix}cc; ac_word=$2 6000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6001$as_echo_n "checking for $ac_word... " >&6; } 6002if ${ac_cv_prog_CC+:} false; then : 6003 $as_echo_n "(cached) " >&6 6004else 6005 if test -n "$CC"; then 6006 ac_cv_prog_CC="$CC" # Let the user override the test. 6007else 6008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6009for as_dir in $PATH 6010do 6011 IFS=$as_save_IFS 6012 test -z "$as_dir" && as_dir=. 6013 for ac_exec_ext in '' $ac_executable_extensions; do 6014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6015 ac_cv_prog_CC="${ac_tool_prefix}cc" 6016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6017 break 2 6018 fi 6019done 6020 done 6021IFS=$as_save_IFS 6022 6023fi 6024fi 6025CC=$ac_cv_prog_CC 6026if test -n "$CC"; then 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6028$as_echo "$CC" >&6; } 6029else 6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6031$as_echo "no" >&6; } 6032fi 6033 6034 6035 fi 6036fi 6037if test -z "$CC"; then 6038 # Extract the first word of "cc", so it can be a program name with args. 6039set dummy cc; ac_word=$2 6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6041$as_echo_n "checking for $ac_word... " >&6; } 6042if ${ac_cv_prog_CC+:} false; then : 6043 $as_echo_n "(cached) " >&6 6044else 6045 if test -n "$CC"; then 6046 ac_cv_prog_CC="$CC" # Let the user override the test. 6047else 6048 ac_prog_rejected=no 6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6050for as_dir in $PATH 6051do 6052 IFS=$as_save_IFS 6053 test -z "$as_dir" && as_dir=. 6054 for ac_exec_ext in '' $ac_executable_extensions; do 6055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6056 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 6057 ac_prog_rejected=yes 6058 continue 6059 fi 6060 ac_cv_prog_CC="cc" 6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6062 break 2 6063 fi 6064done 6065 done 6066IFS=$as_save_IFS 6067 6068if test $ac_prog_rejected = yes; then 6069 # We found a bogon in the path, so make sure we never use it. 6070 set dummy $ac_cv_prog_CC 6071 shift 6072 if test $# != 0; then 6073 # We chose a different compiler from the bogus one. 6074 # However, it has the same basename, so the bogon will be chosen 6075 # first if we set CC to just the basename; use the full file name. 6076 shift 6077 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 6078 fi 6079fi 6080fi 6081fi 6082CC=$ac_cv_prog_CC 6083if test -n "$CC"; then 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6085$as_echo "$CC" >&6; } 6086else 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6088$as_echo "no" >&6; } 6089fi 6090 6091 6092fi 6093if test -z "$CC"; then 6094 if test -n "$ac_tool_prefix"; then 6095 for ac_prog in cl.exe 6096 do 6097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6098set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6100$as_echo_n "checking for $ac_word... " >&6; } 6101if ${ac_cv_prog_CC+:} false; then : 6102 $as_echo_n "(cached) " >&6 6103else 6104 if test -n "$CC"; then 6105 ac_cv_prog_CC="$CC" # Let the user override the test. 6106else 6107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6108for as_dir in $PATH 6109do 6110 IFS=$as_save_IFS 6111 test -z "$as_dir" && as_dir=. 6112 for ac_exec_ext in '' $ac_executable_extensions; do 6113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6114 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 6115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6116 break 2 6117 fi 6118done 6119 done 6120IFS=$as_save_IFS 6121 6122fi 6123fi 6124CC=$ac_cv_prog_CC 6125if test -n "$CC"; then 6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6127$as_echo "$CC" >&6; } 6128else 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6130$as_echo "no" >&6; } 6131fi 6132 6133 6134 test -n "$CC" && break 6135 done 6136fi 6137if test -z "$CC"; then 6138 ac_ct_CC=$CC 6139 for ac_prog in cl.exe 6140do 6141 # Extract the first word of "$ac_prog", so it can be a program name with args. 6142set dummy $ac_prog; ac_word=$2 6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6144$as_echo_n "checking for $ac_word... " >&6; } 6145if ${ac_cv_prog_ac_ct_CC+:} false; then : 6146 $as_echo_n "(cached) " >&6 6147else 6148 if test -n "$ac_ct_CC"; then 6149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6150else 6151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6152for as_dir in $PATH 6153do 6154 IFS=$as_save_IFS 6155 test -z "$as_dir" && as_dir=. 6156 for ac_exec_ext in '' $ac_executable_extensions; do 6157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6158 ac_cv_prog_ac_ct_CC="$ac_prog" 6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6160 break 2 6161 fi 6162done 6163 done 6164IFS=$as_save_IFS 6165 6166fi 6167fi 6168ac_ct_CC=$ac_cv_prog_ac_ct_CC 6169if test -n "$ac_ct_CC"; then 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6171$as_echo "$ac_ct_CC" >&6; } 6172else 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6174$as_echo "no" >&6; } 6175fi 6176 6177 6178 test -n "$ac_ct_CC" && break 6179done 6180 6181 if test "x$ac_ct_CC" = x; then 6182 CC="" 6183 else 6184 case $cross_compiling:$ac_tool_warned in 6185yes:) 6186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6188ac_tool_warned=yes ;; 6189esac 6190 CC=$ac_ct_CC 6191 fi 6192fi 6193 6194fi 6195 6196 6197test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6199as_fn_error $? "no acceptable C compiler found in \$PATH 6200See \`config.log' for more details" "$LINENO" 5; } 6201 6202# Provide some information about the compiler. 6203$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 6204set X $ac_compile 6205ac_compiler=$2 6206for ac_option in --version -v -V -qversion; do 6207 { { ac_try="$ac_compiler $ac_option >&5" 6208case "(($ac_try" in 6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6210 *) ac_try_echo=$ac_try;; 6211esac 6212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6213$as_echo "$ac_try_echo"; } >&5 6214 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6215 ac_status=$? 6216 if test -s conftest.err; then 6217 sed '10a\ 6218... rest of stderr output deleted ... 6219 10q' conftest.err >conftest.er1 6220 cat conftest.er1 >&5 6221 fi 6222 rm -f conftest.er1 conftest.err 6223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6224 test $ac_status = 0; } 6225done 6226 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 6228$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 6229if ${ac_cv_c_compiler_gnu+:} false; then : 6230 $as_echo_n "(cached) " >&6 6231else 6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6233/* end confdefs.h. */ 6234 6235int 6236main () 6237{ 6238#ifndef __GNUC__ 6239 choke me 6240#endif 6241 6242 ; 6243 return 0; 6244} 6245_ACEOF 6246if ac_fn_c_try_compile "$LINENO"; then : 6247 ac_compiler_gnu=yes 6248else 6249 ac_compiler_gnu=no 6250fi 6251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6252ac_cv_c_compiler_gnu=$ac_compiler_gnu 6253 6254fi 6255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 6256$as_echo "$ac_cv_c_compiler_gnu" >&6; } 6257if test $ac_compiler_gnu = yes; then 6258 GCC=yes 6259else 6260 GCC= 6261fi 6262ac_test_CFLAGS=${CFLAGS+set} 6263ac_save_CFLAGS=$CFLAGS 6264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 6265$as_echo_n "checking whether $CC accepts -g... " >&6; } 6266if ${ac_cv_prog_cc_g+:} false; then : 6267 $as_echo_n "(cached) " >&6 6268else 6269 ac_save_c_werror_flag=$ac_c_werror_flag 6270 ac_c_werror_flag=yes 6271 ac_cv_prog_cc_g=no 6272 CFLAGS="-g" 6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6274/* end confdefs.h. */ 6275 6276int 6277main () 6278{ 6279 6280 ; 6281 return 0; 6282} 6283_ACEOF 6284if ac_fn_c_try_compile "$LINENO"; then : 6285 ac_cv_prog_cc_g=yes 6286else 6287 CFLAGS="" 6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6289/* end confdefs.h. */ 6290 6291int 6292main () 6293{ 6294 6295 ; 6296 return 0; 6297} 6298_ACEOF 6299if ac_fn_c_try_compile "$LINENO"; then : 6300 6301else 6302 ac_c_werror_flag=$ac_save_c_werror_flag 6303 CFLAGS="-g" 6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6305/* end confdefs.h. */ 6306 6307int 6308main () 6309{ 6310 6311 ; 6312 return 0; 6313} 6314_ACEOF 6315if ac_fn_c_try_compile "$LINENO"; then : 6316 ac_cv_prog_cc_g=yes 6317fi 6318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6319fi 6320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6321fi 6322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6323 ac_c_werror_flag=$ac_save_c_werror_flag 6324fi 6325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 6326$as_echo "$ac_cv_prog_cc_g" >&6; } 6327if test "$ac_test_CFLAGS" = set; then 6328 CFLAGS=$ac_save_CFLAGS 6329elif test $ac_cv_prog_cc_g = yes; then 6330 if test "$GCC" = yes; then 6331 CFLAGS="-g -O2" 6332 else 6333 CFLAGS="-g" 6334 fi 6335else 6336 if test "$GCC" = yes; then 6337 CFLAGS="-O2" 6338 else 6339 CFLAGS= 6340 fi 6341fi 6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6343$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6344if ${ac_cv_prog_cc_c89+:} false; then : 6345 $as_echo_n "(cached) " >&6 6346else 6347 ac_cv_prog_cc_c89=no 6348ac_save_CC=$CC 6349cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6350/* end confdefs.h. */ 6351#include <stdarg.h> 6352#include <stdio.h> 6353struct stat; 6354/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6355struct buf { int x; }; 6356FILE * (*rcsopen) (struct buf *, struct stat *, int); 6357static char *e (p, i) 6358 char **p; 6359 int i; 6360{ 6361 return p[i]; 6362} 6363static char *f (char * (*g) (char **, int), char **p, ...) 6364{ 6365 char *s; 6366 va_list v; 6367 va_start (v,p); 6368 s = g (p, va_arg (v,int)); 6369 va_end (v); 6370 return s; 6371} 6372 6373/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6374 function prototypes and stuff, but not '\xHH' hex character constants. 6375 These don't provoke an error unfortunately, instead are silently treated 6376 as 'x'. The following induces an error, until -std is added to get 6377 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6378 array size at least. It's necessary to write '\x00'==0 to get something 6379 that's true only with -std. */ 6380int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6381 6382/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6383 inside strings and character constants. */ 6384#define FOO(x) 'x' 6385int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6386 6387int test (int i, double x); 6388struct s1 {int (*f) (int a);}; 6389struct s2 {int (*f) (double a);}; 6390int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6391int argc; 6392char **argv; 6393int 6394main () 6395{ 6396return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6397 ; 6398 return 0; 6399} 6400_ACEOF 6401for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6402 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6403do 6404 CC="$ac_save_CC $ac_arg" 6405 if ac_fn_c_try_compile "$LINENO"; then : 6406 ac_cv_prog_cc_c89=$ac_arg 6407fi 6408rm -f core conftest.err conftest.$ac_objext 6409 test "x$ac_cv_prog_cc_c89" != "xno" && break 6410done 6411rm -f conftest.$ac_ext 6412CC=$ac_save_CC 6413 6414fi 6415# AC_CACHE_VAL 6416case "x$ac_cv_prog_cc_c89" in 6417 x) 6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6419$as_echo "none needed" >&6; } ;; 6420 xno) 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6422$as_echo "unsupported" >&6; } ;; 6423 *) 6424 CC="$CC $ac_cv_prog_cc_c89" 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6426$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6427esac 6428if test "x$ac_cv_prog_cc_c89" != xno; then : 6429 6430fi 6431 6432ac_ext=c 6433ac_cpp='$CPP $CPPFLAGS' 6434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6436ac_compiler_gnu=$ac_cv_c_compiler_gnu 6437 6438ac_ext=c 6439ac_cpp='$CPP $CPPFLAGS' 6440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6442ac_compiler_gnu=$ac_cv_c_compiler_gnu 6443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 6444$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 6445if ${am_cv_prog_cc_c_o+:} false; then : 6446 $as_echo_n "(cached) " >&6 6447else 6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6449/* end confdefs.h. */ 6450 6451int 6452main () 6453{ 6454 6455 ; 6456 return 0; 6457} 6458_ACEOF 6459 # Make sure it works both with $CC and with simple cc. 6460 # Following AC_PROG_CC_C_O, we do the test twice because some 6461 # compilers refuse to overwrite an existing .o file with -o, 6462 # though they will create one. 6463 am_cv_prog_cc_c_o=yes 6464 for am_i in 1 2; do 6465 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 6466 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 6467 ac_status=$? 6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6469 (exit $ac_status); } \ 6470 && test -f conftest2.$ac_objext; then 6471 : OK 6472 else 6473 am_cv_prog_cc_c_o=no 6474 break 6475 fi 6476 done 6477 rm -f core conftest* 6478 unset am_i 6479fi 6480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 6481$as_echo "$am_cv_prog_cc_c_o" >&6; } 6482if test "$am_cv_prog_cc_c_o" != yes; then 6483 # Losing compiler, so override with the script. 6484 # FIXME: It is wrong to rewrite CC. 6485 # But if we don't then we get into trouble of one sort or another. 6486 # A longer-term fix would be to have automake use am__CC in this case, 6487 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6488 CC="$am_aux_dir/compile $CC" 6489fi 6490ac_ext=c 6491ac_cpp='$CPP $CPPFLAGS' 6492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6494ac_compiler_gnu=$ac_cv_c_compiler_gnu 6495 6496 6497depcc="$CC" am_compiler_list= 6498 6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6500$as_echo_n "checking dependency style of $depcc... " >&6; } 6501if ${am_cv_CC_dependencies_compiler_type+:} false; then : 6502 $as_echo_n "(cached) " >&6 6503else 6504 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6505 # We make a subdir and do the tests there. Otherwise we can end up 6506 # making bogus files that we don't know about and never remove. For 6507 # instance it was reported that on HP-UX the gcc test will end up 6508 # making a dummy file named 'D' -- because '-MD' means "put the output 6509 # in D". 6510 rm -rf conftest.dir 6511 mkdir conftest.dir 6512 # Copy depcomp to subdir because otherwise we won't find it if we're 6513 # using a relative directory. 6514 cp "$am_depcomp" conftest.dir 6515 cd conftest.dir 6516 # We will build objects and dependencies in a subdirectory because 6517 # it helps to detect inapplicable dependency modes. For instance 6518 # both Tru64's cc and ICC support -MD to output dependencies as a 6519 # side effect of compilation, but ICC will put the dependencies in 6520 # the current directory while Tru64 will put them in the object 6521 # directory. 6522 mkdir sub 6523 6524 am_cv_CC_dependencies_compiler_type=none 6525 if test "$am_compiler_list" = ""; then 6526 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6527 fi 6528 am__universal=false 6529 case " $depcc " in #( 6530 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6531 esac 6532 6533 for depmode in $am_compiler_list; do 6534 # Setup a source with many dependencies, because some compilers 6535 # like to wrap large dependency lists on column 80 (with \), and 6536 # we should not choose a depcomp mode which is confused by this. 6537 # 6538 # We need to recreate these files for each test, as the compiler may 6539 # overwrite some of them when testing with obscure command lines. 6540 # This happens at least with the AIX C compiler. 6541 : > sub/conftest.c 6542 for i in 1 2 3 4 5 6; do 6543 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6544 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6545 # Solaris 10 /bin/sh. 6546 echo '/* dummy */' > sub/conftst$i.h 6547 done 6548 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6549 6550 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6551 # mode. It turns out that the SunPro C++ compiler does not properly 6552 # handle '-M -o', and we need to detect this. Also, some Intel 6553 # versions had trouble with output in subdirs. 6554 am__obj=sub/conftest.${OBJEXT-o} 6555 am__minus_obj="-o $am__obj" 6556 case $depmode in 6557 gcc) 6558 # This depmode causes a compiler race in universal mode. 6559 test "$am__universal" = false || continue 6560 ;; 6561 nosideeffect) 6562 # After this tag, mechanisms are not by side-effect, so they'll 6563 # only be used when explicitly requested. 6564 if test "x$enable_dependency_tracking" = xyes; then 6565 continue 6566 else 6567 break 6568 fi 6569 ;; 6570 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6571 # This compiler won't grok '-c -o', but also, the minuso test has 6572 # not run yet. These depmodes are late enough in the game, and 6573 # so weak that their functioning should not be impacted. 6574 am__obj=conftest.${OBJEXT-o} 6575 am__minus_obj= 6576 ;; 6577 none) break ;; 6578 esac 6579 if depmode=$depmode \ 6580 source=sub/conftest.c object=$am__obj \ 6581 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6582 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6583 >/dev/null 2>conftest.err && 6584 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6585 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6586 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6587 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6588 # icc doesn't choke on unknown options, it will just issue warnings 6589 # or remarks (even with -Werror). So we grep stderr for any message 6590 # that says an option was ignored or not supported. 6591 # When given -MP, icc 7.0 and 7.1 complain thusly: 6592 # icc: Command line warning: ignoring option '-M'; no argument required 6593 # The diagnosis changed in icc 8.0: 6594 # icc: Command line remark: option '-MP' not supported 6595 if (grep 'ignoring option' conftest.err || 6596 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6597 am_cv_CC_dependencies_compiler_type=$depmode 6598 break 6599 fi 6600 fi 6601 done 6602 6603 cd .. 6604 rm -rf conftest.dir 6605else 6606 am_cv_CC_dependencies_compiler_type=none 6607fi 6608 6609fi 6610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6611$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6612CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6613 6614 if 6615 test "x$enable_dependency_tracking" != xno \ 6616 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6617 am__fastdepCC_TRUE= 6618 am__fastdepCC_FALSE='#' 6619else 6620 am__fastdepCC_TRUE='#' 6621 am__fastdepCC_FALSE= 6622fi 6623 6624 6625case `pwd` in 6626 *\ * | *\ *) 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6628$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6629esac 6630 6631 6632 6633macro_version='2.4.6' 6634macro_revision='2.4.6' 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648ltmain=$ac_aux_dir/ltmain.sh 6649 6650# Make sure we can run config.sub. 6651$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6652 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6653 6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6655$as_echo_n "checking build system type... " >&6; } 6656if ${ac_cv_build+:} false; then : 6657 $as_echo_n "(cached) " >&6 6658else 6659 ac_build_alias=$build_alias 6660test "x$ac_build_alias" = x && 6661 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6662test "x$ac_build_alias" = x && 6663 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6664ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6665 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6666 6667fi 6668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6669$as_echo "$ac_cv_build" >&6; } 6670case $ac_cv_build in 6671*-*-*) ;; 6672*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6673esac 6674build=$ac_cv_build 6675ac_save_IFS=$IFS; IFS='-' 6676set x $ac_cv_build 6677shift 6678build_cpu=$1 6679build_vendor=$2 6680shift; shift 6681# Remember, the first character of IFS is used to create $*, 6682# except with old shells: 6683build_os=$* 6684IFS=$ac_save_IFS 6685case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6686 6687 6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6689$as_echo_n "checking host system type... " >&6; } 6690if ${ac_cv_host+:} false; then : 6691 $as_echo_n "(cached) " >&6 6692else 6693 if test "x$host_alias" = x; then 6694 ac_cv_host=$ac_cv_build 6695else 6696 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6697 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6698fi 6699 6700fi 6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6702$as_echo "$ac_cv_host" >&6; } 6703case $ac_cv_host in 6704*-*-*) ;; 6705*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6706esac 6707host=$ac_cv_host 6708ac_save_IFS=$IFS; IFS='-' 6709set x $ac_cv_host 6710shift 6711host_cpu=$1 6712host_vendor=$2 6713shift; shift 6714# Remember, the first character of IFS is used to create $*, 6715# except with old shells: 6716host_os=$* 6717IFS=$ac_save_IFS 6718case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6719 6720 6721# Backslashify metacharacters that are still active within 6722# double-quoted strings. 6723sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6724 6725# Same as above, but do not quote variable references. 6726double_quote_subst='s/\(["`\\]\)/\\\1/g' 6727 6728# Sed substitution to delay expansion of an escaped shell variable in a 6729# double_quote_subst'ed string. 6730delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6731 6732# Sed substitution to delay expansion of an escaped single quote. 6733delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6734 6735# Sed substitution to avoid accidental globbing in evaled expressions 6736no_glob_subst='s/\*/\\\*/g' 6737 6738ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6739ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6740ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6741 6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6743$as_echo_n "checking how to print strings... " >&6; } 6744# Test print first, because it will be a builtin if present. 6745if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6746 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6747 ECHO='print -r --' 6748elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6749 ECHO='printf %s\n' 6750else 6751 # Use this function as a fallback that always works. 6752 func_fallback_echo () 6753 { 6754 eval 'cat <<_LTECHO_EOF 6755$1 6756_LTECHO_EOF' 6757 } 6758 ECHO='func_fallback_echo' 6759fi 6760 6761# func_echo_all arg... 6762# Invoke $ECHO with all args, space-separated. 6763func_echo_all () 6764{ 6765 $ECHO "" 6766} 6767 6768case $ECHO in 6769 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6770$as_echo "printf" >&6; } ;; 6771 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6772$as_echo "print -r" >&6; } ;; 6773 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6774$as_echo "cat" >&6; } ;; 6775esac 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6791$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6792if ${ac_cv_path_SED+:} false; then : 6793 $as_echo_n "(cached) " >&6 6794else 6795 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6796 for ac_i in 1 2 3 4 5 6 7; do 6797 ac_script="$ac_script$as_nl$ac_script" 6798 done 6799 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6800 { ac_script=; unset ac_script;} 6801 if test -z "$SED"; then 6802 ac_path_SED_found=false 6803 # Loop through the user's path and test for each of PROGNAME-LIST 6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6805for as_dir in $PATH 6806do 6807 IFS=$as_save_IFS 6808 test -z "$as_dir" && as_dir=. 6809 for ac_prog in sed gsed; do 6810 for ac_exec_ext in '' $ac_executable_extensions; do 6811 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6812 as_fn_executable_p "$ac_path_SED" || continue 6813# Check for GNU ac_path_SED and select it if it is found. 6814 # Check for GNU $ac_path_SED 6815case `"$ac_path_SED" --version 2>&1` in 6816*GNU*) 6817 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6818*) 6819 ac_count=0 6820 $as_echo_n 0123456789 >"conftest.in" 6821 while : 6822 do 6823 cat "conftest.in" "conftest.in" >"conftest.tmp" 6824 mv "conftest.tmp" "conftest.in" 6825 cp "conftest.in" "conftest.nl" 6826 $as_echo '' >> "conftest.nl" 6827 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6828 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6829 as_fn_arith $ac_count + 1 && ac_count=$as_val 6830 if test $ac_count -gt ${ac_path_SED_max-0}; then 6831 # Best one so far, save it but keep looking for a better one 6832 ac_cv_path_SED="$ac_path_SED" 6833 ac_path_SED_max=$ac_count 6834 fi 6835 # 10*(2^10) chars as input seems more than enough 6836 test $ac_count -gt 10 && break 6837 done 6838 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6839esac 6840 6841 $ac_path_SED_found && break 3 6842 done 6843 done 6844 done 6845IFS=$as_save_IFS 6846 if test -z "$ac_cv_path_SED"; then 6847 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6848 fi 6849else 6850 ac_cv_path_SED=$SED 6851fi 6852 6853fi 6854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6855$as_echo "$ac_cv_path_SED" >&6; } 6856 SED="$ac_cv_path_SED" 6857 rm -f conftest.sed 6858 6859test -z "$SED" && SED=sed 6860Xsed="$SED -e 1s/^X//" 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6873$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6874if ${ac_cv_path_GREP+:} false; then : 6875 $as_echo_n "(cached) " >&6 6876else 6877 if test -z "$GREP"; then 6878 ac_path_GREP_found=false 6879 # Loop through the user's path and test for each of PROGNAME-LIST 6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6881for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6882do 6883 IFS=$as_save_IFS 6884 test -z "$as_dir" && as_dir=. 6885 for ac_prog in grep ggrep; do 6886 for ac_exec_ext in '' $ac_executable_extensions; do 6887 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6888 as_fn_executable_p "$ac_path_GREP" || continue 6889# Check for GNU ac_path_GREP and select it if it is found. 6890 # Check for GNU $ac_path_GREP 6891case `"$ac_path_GREP" --version 2>&1` in 6892*GNU*) 6893 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6894*) 6895 ac_count=0 6896 $as_echo_n 0123456789 >"conftest.in" 6897 while : 6898 do 6899 cat "conftest.in" "conftest.in" >"conftest.tmp" 6900 mv "conftest.tmp" "conftest.in" 6901 cp "conftest.in" "conftest.nl" 6902 $as_echo 'GREP' >> "conftest.nl" 6903 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6905 as_fn_arith $ac_count + 1 && ac_count=$as_val 6906 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6907 # Best one so far, save it but keep looking for a better one 6908 ac_cv_path_GREP="$ac_path_GREP" 6909 ac_path_GREP_max=$ac_count 6910 fi 6911 # 10*(2^10) chars as input seems more than enough 6912 test $ac_count -gt 10 && break 6913 done 6914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6915esac 6916 6917 $ac_path_GREP_found && break 3 6918 done 6919 done 6920 done 6921IFS=$as_save_IFS 6922 if test -z "$ac_cv_path_GREP"; then 6923 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6924 fi 6925else 6926 ac_cv_path_GREP=$GREP 6927fi 6928 6929fi 6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6931$as_echo "$ac_cv_path_GREP" >&6; } 6932 GREP="$ac_cv_path_GREP" 6933 6934 6935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6936$as_echo_n "checking for egrep... " >&6; } 6937if ${ac_cv_path_EGREP+:} false; then : 6938 $as_echo_n "(cached) " >&6 6939else 6940 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6941 then ac_cv_path_EGREP="$GREP -E" 6942 else 6943 if test -z "$EGREP"; then 6944 ac_path_EGREP_found=false 6945 # Loop through the user's path and test for each of PROGNAME-LIST 6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6947for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6948do 6949 IFS=$as_save_IFS 6950 test -z "$as_dir" && as_dir=. 6951 for ac_prog in egrep; do 6952 for ac_exec_ext in '' $ac_executable_extensions; do 6953 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6954 as_fn_executable_p "$ac_path_EGREP" || continue 6955# Check for GNU ac_path_EGREP and select it if it is found. 6956 # Check for GNU $ac_path_EGREP 6957case `"$ac_path_EGREP" --version 2>&1` in 6958*GNU*) 6959 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6960*) 6961 ac_count=0 6962 $as_echo_n 0123456789 >"conftest.in" 6963 while : 6964 do 6965 cat "conftest.in" "conftest.in" >"conftest.tmp" 6966 mv "conftest.tmp" "conftest.in" 6967 cp "conftest.in" "conftest.nl" 6968 $as_echo 'EGREP' >> "conftest.nl" 6969 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6971 as_fn_arith $ac_count + 1 && ac_count=$as_val 6972 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6973 # Best one so far, save it but keep looking for a better one 6974 ac_cv_path_EGREP="$ac_path_EGREP" 6975 ac_path_EGREP_max=$ac_count 6976 fi 6977 # 10*(2^10) chars as input seems more than enough 6978 test $ac_count -gt 10 && break 6979 done 6980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6981esac 6982 6983 $ac_path_EGREP_found && break 3 6984 done 6985 done 6986 done 6987IFS=$as_save_IFS 6988 if test -z "$ac_cv_path_EGREP"; then 6989 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6990 fi 6991else 6992 ac_cv_path_EGREP=$EGREP 6993fi 6994 6995 fi 6996fi 6997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6998$as_echo "$ac_cv_path_EGREP" >&6; } 6999 EGREP="$ac_cv_path_EGREP" 7000 7001 7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7003$as_echo_n "checking for fgrep... " >&6; } 7004if ${ac_cv_path_FGREP+:} false; then : 7005 $as_echo_n "(cached) " >&6 7006else 7007 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7008 then ac_cv_path_FGREP="$GREP -F" 7009 else 7010 if test -z "$FGREP"; then 7011 ac_path_FGREP_found=false 7012 # Loop through the user's path and test for each of PROGNAME-LIST 7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7014for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7015do 7016 IFS=$as_save_IFS 7017 test -z "$as_dir" && as_dir=. 7018 for ac_prog in fgrep; do 7019 for ac_exec_ext in '' $ac_executable_extensions; do 7020 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7021 as_fn_executable_p "$ac_path_FGREP" || continue 7022# Check for GNU ac_path_FGREP and select it if it is found. 7023 # Check for GNU $ac_path_FGREP 7024case `"$ac_path_FGREP" --version 2>&1` in 7025*GNU*) 7026 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7027*) 7028 ac_count=0 7029 $as_echo_n 0123456789 >"conftest.in" 7030 while : 7031 do 7032 cat "conftest.in" "conftest.in" >"conftest.tmp" 7033 mv "conftest.tmp" "conftest.in" 7034 cp "conftest.in" "conftest.nl" 7035 $as_echo 'FGREP' >> "conftest.nl" 7036 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7038 as_fn_arith $ac_count + 1 && ac_count=$as_val 7039 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7040 # Best one so far, save it but keep looking for a better one 7041 ac_cv_path_FGREP="$ac_path_FGREP" 7042 ac_path_FGREP_max=$ac_count 7043 fi 7044 # 10*(2^10) chars as input seems more than enough 7045 test $ac_count -gt 10 && break 7046 done 7047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7048esac 7049 7050 $ac_path_FGREP_found && break 3 7051 done 7052 done 7053 done 7054IFS=$as_save_IFS 7055 if test -z "$ac_cv_path_FGREP"; then 7056 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7057 fi 7058else 7059 ac_cv_path_FGREP=$FGREP 7060fi 7061 7062 fi 7063fi 7064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7065$as_echo "$ac_cv_path_FGREP" >&6; } 7066 FGREP="$ac_cv_path_FGREP" 7067 7068 7069test -z "$GREP" && GREP=grep 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089# Check whether --with-gnu-ld was given. 7090if test "${with_gnu_ld+set}" = set; then : 7091 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7092else 7093 with_gnu_ld=no 7094fi 7095 7096ac_prog=ld 7097if test yes = "$GCC"; then 7098 # Check if gcc -print-prog-name=ld gives a path. 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7100$as_echo_n "checking for ld used by $CC... " >&6; } 7101 case $host in 7102 *-*-mingw*) 7103 # gcc leaves a trailing carriage return, which upsets mingw 7104 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7105 *) 7106 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7107 esac 7108 case $ac_prog in 7109 # Accept absolute paths. 7110 [\\/]* | ?:[\\/]*) 7111 re_direlt='/[^/][^/]*/\.\./' 7112 # Canonicalize the pathname of ld 7113 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7114 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7115 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7116 done 7117 test -z "$LD" && LD=$ac_prog 7118 ;; 7119 "") 7120 # If it fails, then pretend we aren't using GCC. 7121 ac_prog=ld 7122 ;; 7123 *) 7124 # If it is relative, then search for the first ld in PATH. 7125 with_gnu_ld=unknown 7126 ;; 7127 esac 7128elif test yes = "$with_gnu_ld"; then 7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7130$as_echo_n "checking for GNU ld... " >&6; } 7131else 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7133$as_echo_n "checking for non-GNU ld... " >&6; } 7134fi 7135if ${lt_cv_path_LD+:} false; then : 7136 $as_echo_n "(cached) " >&6 7137else 7138 if test -z "$LD"; then 7139 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7140 for ac_dir in $PATH; do 7141 IFS=$lt_save_ifs 7142 test -z "$ac_dir" && ac_dir=. 7143 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7144 lt_cv_path_LD=$ac_dir/$ac_prog 7145 # Check to see if the program is GNU ld. I'd rather use --version, 7146 # but apparently some variants of GNU ld only accept -v. 7147 # Break only if it was the GNU/non-GNU ld that we prefer. 7148 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7149 *GNU* | *'with BFD'*) 7150 test no != "$with_gnu_ld" && break 7151 ;; 7152 *) 7153 test yes != "$with_gnu_ld" && break 7154 ;; 7155 esac 7156 fi 7157 done 7158 IFS=$lt_save_ifs 7159else 7160 lt_cv_path_LD=$LD # Let the user override the test with a path. 7161fi 7162fi 7163 7164LD=$lt_cv_path_LD 7165if test -n "$LD"; then 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7167$as_echo "$LD" >&6; } 7168else 7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7170$as_echo "no" >&6; } 7171fi 7172test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7174$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7175if ${lt_cv_prog_gnu_ld+:} false; then : 7176 $as_echo_n "(cached) " >&6 7177else 7178 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7179case `$LD -v 2>&1 </dev/null` in 7180*GNU* | *'with BFD'*) 7181 lt_cv_prog_gnu_ld=yes 7182 ;; 7183*) 7184 lt_cv_prog_gnu_ld=no 7185 ;; 7186esac 7187fi 7188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7189$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7190with_gnu_ld=$lt_cv_prog_gnu_ld 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7201$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7202if ${lt_cv_path_NM+:} false; then : 7203 $as_echo_n "(cached) " >&6 7204else 7205 if test -n "$NM"; then 7206 # Let the user override the test. 7207 lt_cv_path_NM=$NM 7208else 7209 lt_nm_to_check=${ac_tool_prefix}nm 7210 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7211 lt_nm_to_check="$lt_nm_to_check nm" 7212 fi 7213 for lt_tmp_nm in $lt_nm_to_check; do 7214 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7215 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7216 IFS=$lt_save_ifs 7217 test -z "$ac_dir" && ac_dir=. 7218 tmp_nm=$ac_dir/$lt_tmp_nm 7219 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7220 # Check to see if the nm accepts a BSD-compat flag. 7221 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7222 # nm: unknown option "B" ignored 7223 # Tru64's nm complains that /dev/null is an invalid object file 7224 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7225 case $build_os in 7226 mingw*) lt_bad_file=conftest.nm/nofile ;; 7227 *) lt_bad_file=/dev/null ;; 7228 esac 7229 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7230 *$lt_bad_file* | *'Invalid file or object type'*) 7231 lt_cv_path_NM="$tmp_nm -B" 7232 break 2 7233 ;; 7234 *) 7235 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7236 */dev/null*) 7237 lt_cv_path_NM="$tmp_nm -p" 7238 break 2 7239 ;; 7240 *) 7241 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7242 continue # so that we can try to find one that supports BSD flags 7243 ;; 7244 esac 7245 ;; 7246 esac 7247 fi 7248 done 7249 IFS=$lt_save_ifs 7250 done 7251 : ${lt_cv_path_NM=no} 7252fi 7253fi 7254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7255$as_echo "$lt_cv_path_NM" >&6; } 7256if test no != "$lt_cv_path_NM"; then 7257 NM=$lt_cv_path_NM 7258else 7259 # Didn't find any BSD compatible name lister, look for dumpbin. 7260 if test -n "$DUMPBIN"; then : 7261 # Let the user override the test. 7262 else 7263 if test -n "$ac_tool_prefix"; then 7264 for ac_prog in dumpbin "link -dump" 7265 do 7266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7267set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7269$as_echo_n "checking for $ac_word... " >&6; } 7270if ${ac_cv_prog_DUMPBIN+:} false; then : 7271 $as_echo_n "(cached) " >&6 7272else 7273 if test -n "$DUMPBIN"; then 7274 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7275else 7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7277for as_dir in $PATH 7278do 7279 IFS=$as_save_IFS 7280 test -z "$as_dir" && as_dir=. 7281 for ac_exec_ext in '' $ac_executable_extensions; do 7282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7283 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7285 break 2 7286 fi 7287done 7288 done 7289IFS=$as_save_IFS 7290 7291fi 7292fi 7293DUMPBIN=$ac_cv_prog_DUMPBIN 7294if test -n "$DUMPBIN"; then 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7296$as_echo "$DUMPBIN" >&6; } 7297else 7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7299$as_echo "no" >&6; } 7300fi 7301 7302 7303 test -n "$DUMPBIN" && break 7304 done 7305fi 7306if test -z "$DUMPBIN"; then 7307 ac_ct_DUMPBIN=$DUMPBIN 7308 for ac_prog in dumpbin "link -dump" 7309do 7310 # Extract the first word of "$ac_prog", so it can be a program name with args. 7311set dummy $ac_prog; ac_word=$2 7312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7313$as_echo_n "checking for $ac_word... " >&6; } 7314if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7315 $as_echo_n "(cached) " >&6 7316else 7317 if test -n "$ac_ct_DUMPBIN"; then 7318 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7319else 7320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7321for as_dir in $PATH 7322do 7323 IFS=$as_save_IFS 7324 test -z "$as_dir" && as_dir=. 7325 for ac_exec_ext in '' $ac_executable_extensions; do 7326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7327 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7329 break 2 7330 fi 7331done 7332 done 7333IFS=$as_save_IFS 7334 7335fi 7336fi 7337ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7338if test -n "$ac_ct_DUMPBIN"; then 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7340$as_echo "$ac_ct_DUMPBIN" >&6; } 7341else 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7343$as_echo "no" >&6; } 7344fi 7345 7346 7347 test -n "$ac_ct_DUMPBIN" && break 7348done 7349 7350 if test "x$ac_ct_DUMPBIN" = x; then 7351 DUMPBIN=":" 7352 else 7353 case $cross_compiling:$ac_tool_warned in 7354yes:) 7355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7357ac_tool_warned=yes ;; 7358esac 7359 DUMPBIN=$ac_ct_DUMPBIN 7360 fi 7361fi 7362 7363 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7364 *COFF*) 7365 DUMPBIN="$DUMPBIN -symbols -headers" 7366 ;; 7367 *) 7368 DUMPBIN=: 7369 ;; 7370 esac 7371 fi 7372 7373 if test : != "$DUMPBIN"; then 7374 NM=$DUMPBIN 7375 fi 7376fi 7377test -z "$NM" && NM=nm 7378 7379 7380 7381 7382 7383 7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7385$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7386if ${lt_cv_nm_interface+:} false; then : 7387 $as_echo_n "(cached) " >&6 7388else 7389 lt_cv_nm_interface="BSD nm" 7390 echo "int some_variable = 0;" > conftest.$ac_ext 7391 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7392 (eval "$ac_compile" 2>conftest.err) 7393 cat conftest.err >&5 7394 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7395 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7396 cat conftest.err >&5 7397 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7398 cat conftest.out >&5 7399 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7400 lt_cv_nm_interface="MS dumpbin" 7401 fi 7402 rm -f conftest* 7403fi 7404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7405$as_echo "$lt_cv_nm_interface" >&6; } 7406 7407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7408$as_echo_n "checking whether ln -s works... " >&6; } 7409LN_S=$as_ln_s 7410if test "$LN_S" = "ln -s"; then 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7412$as_echo "yes" >&6; } 7413else 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7415$as_echo "no, using $LN_S" >&6; } 7416fi 7417 7418# find the maximum length of command line arguments 7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7420$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7421if ${lt_cv_sys_max_cmd_len+:} false; then : 7422 $as_echo_n "(cached) " >&6 7423else 7424 i=0 7425 teststring=ABCD 7426 7427 case $build_os in 7428 msdosdjgpp*) 7429 # On DJGPP, this test can blow up pretty badly due to problems in libc 7430 # (any single argument exceeding 2000 bytes causes a buffer overrun 7431 # during glob expansion). Even if it were fixed, the result of this 7432 # check would be larger than it should be. 7433 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7434 ;; 7435 7436 gnu*) 7437 # Under GNU Hurd, this test is not required because there is 7438 # no limit to the length of command line arguments. 7439 # Libtool will interpret -1 as no limit whatsoever 7440 lt_cv_sys_max_cmd_len=-1; 7441 ;; 7442 7443 cygwin* | mingw* | cegcc*) 7444 # On Win9x/ME, this test blows up -- it succeeds, but takes 7445 # about 5 minutes as the teststring grows exponentially. 7446 # Worse, since 9x/ME are not pre-emptively multitasking, 7447 # you end up with a "frozen" computer, even though with patience 7448 # the test eventually succeeds (with a max line length of 256k). 7449 # Instead, let's just punt: use the minimum linelength reported by 7450 # all of the supported platforms: 8192 (on NT/2K/XP). 7451 lt_cv_sys_max_cmd_len=8192; 7452 ;; 7453 7454 mint*) 7455 # On MiNT this can take a long time and run out of memory. 7456 lt_cv_sys_max_cmd_len=8192; 7457 ;; 7458 7459 amigaos*) 7460 # On AmigaOS with pdksh, this test takes hours, literally. 7461 # So we just punt and use a minimum line length of 8192. 7462 lt_cv_sys_max_cmd_len=8192; 7463 ;; 7464 7465 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 7466 # This has been around since 386BSD, at least. Likely further. 7467 if test -x /sbin/sysctl; then 7468 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7469 elif test -x /usr/sbin/sysctl; then 7470 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7471 else 7472 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7473 fi 7474 # And add a safety zone 7475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7477 ;; 7478 7479 interix*) 7480 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7481 lt_cv_sys_max_cmd_len=196608 7482 ;; 7483 7484 os2*) 7485 # The test takes a long time on OS/2. 7486 lt_cv_sys_max_cmd_len=8192 7487 ;; 7488 7489 osf*) 7490 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7491 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7492 # nice to cause kernel panics so lets avoid the loop below. 7493 # First set a reasonable default. 7494 lt_cv_sys_max_cmd_len=16384 7495 # 7496 if test -x /sbin/sysconfig; then 7497 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7498 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7499 esac 7500 fi 7501 ;; 7502 sco3.2v5*) 7503 lt_cv_sys_max_cmd_len=102400 7504 ;; 7505 sysv5* | sco5v6* | sysv4.2uw2*) 7506 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7507 if test -n "$kargmax"; then 7508 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7509 else 7510 lt_cv_sys_max_cmd_len=32768 7511 fi 7512 ;; 7513 *) 7514 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7515 if test -n "$lt_cv_sys_max_cmd_len" && \ 7516 test undefined != "$lt_cv_sys_max_cmd_len"; then 7517 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7519 else 7520 # Make teststring a little bigger before we do anything with it. 7521 # a 1K string should be a reasonable start. 7522 for i in 1 2 3 4 5 6 7 8; do 7523 teststring=$teststring$teststring 7524 done 7525 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7526 # If test is not a shell built-in, we'll probably end up computing a 7527 # maximum length that is only half of the actual maximum length, but 7528 # we can't tell. 7529 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7530 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7531 test 17 != "$i" # 1/2 MB should be enough 7532 do 7533 i=`expr $i + 1` 7534 teststring=$teststring$teststring 7535 done 7536 # Only check the string length outside the loop. 7537 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7538 teststring= 7539 # Add a significant safety factor because C++ compilers can tack on 7540 # massive amounts of additional arguments before passing them to the 7541 # linker. It appears as though 1/2 is a usable value. 7542 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7543 fi 7544 ;; 7545 esac 7546 7547fi 7548 7549if test -n "$lt_cv_sys_max_cmd_len"; then 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7551$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7552else 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7554$as_echo "none" >&6; } 7555fi 7556max_cmd_len=$lt_cv_sys_max_cmd_len 7557 7558 7559 7560 7561 7562 7563: ${CP="cp -f"} 7564: ${MV="mv -f"} 7565: ${RM="rm -f"} 7566 7567if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7568 lt_unset=unset 7569else 7570 lt_unset=false 7571fi 7572 7573 7574 7575 7576 7577# test EBCDIC or ASCII 7578case `echo X|tr X '\101'` in 7579 A) # ASCII based system 7580 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7581 lt_SP2NL='tr \040 \012' 7582 lt_NL2SP='tr \015\012 \040\040' 7583 ;; 7584 *) # EBCDIC based system 7585 lt_SP2NL='tr \100 \n' 7586 lt_NL2SP='tr \r\n \100\100' 7587 ;; 7588esac 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7599$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7600if ${lt_cv_to_host_file_cmd+:} false; then : 7601 $as_echo_n "(cached) " >&6 7602else 7603 case $host in 7604 *-*-mingw* ) 7605 case $build in 7606 *-*-mingw* ) # actually msys 7607 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7608 ;; 7609 *-*-cygwin* ) 7610 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7611 ;; 7612 * ) # otherwise, assume *nix 7613 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7614 ;; 7615 esac 7616 ;; 7617 *-*-cygwin* ) 7618 case $build in 7619 *-*-mingw* ) # actually msys 7620 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7621 ;; 7622 *-*-cygwin* ) 7623 lt_cv_to_host_file_cmd=func_convert_file_noop 7624 ;; 7625 * ) # otherwise, assume *nix 7626 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7627 ;; 7628 esac 7629 ;; 7630 * ) # unhandled hosts (and "normal" native builds) 7631 lt_cv_to_host_file_cmd=func_convert_file_noop 7632 ;; 7633esac 7634 7635fi 7636 7637to_host_file_cmd=$lt_cv_to_host_file_cmd 7638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7639$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7640 7641 7642 7643 7644 7645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7646$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7647if ${lt_cv_to_tool_file_cmd+:} false; then : 7648 $as_echo_n "(cached) " >&6 7649else 7650 #assume ordinary cross tools, or native build. 7651lt_cv_to_tool_file_cmd=func_convert_file_noop 7652case $host in 7653 *-*-mingw* ) 7654 case $build in 7655 *-*-mingw* ) # actually msys 7656 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7657 ;; 7658 esac 7659 ;; 7660esac 7661 7662fi 7663 7664to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7666$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7667 7668 7669 7670 7671 7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7673$as_echo_n "checking for $LD option to reload object files... " >&6; } 7674if ${lt_cv_ld_reload_flag+:} false; then : 7675 $as_echo_n "(cached) " >&6 7676else 7677 lt_cv_ld_reload_flag='-r' 7678fi 7679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7680$as_echo "$lt_cv_ld_reload_flag" >&6; } 7681reload_flag=$lt_cv_ld_reload_flag 7682case $reload_flag in 7683"" | " "*) ;; 7684*) reload_flag=" $reload_flag" ;; 7685esac 7686reload_cmds='$LD$reload_flag -o $output$reload_objs' 7687case $host_os in 7688 cygwin* | mingw* | pw32* | cegcc*) 7689 if test yes != "$GCC"; then 7690 reload_cmds=false 7691 fi 7692 ;; 7693 darwin*) 7694 if test yes = "$GCC"; then 7695 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 7696 else 7697 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7698 fi 7699 ;; 7700esac 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710if test -n "$ac_tool_prefix"; then 7711 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7712set dummy ${ac_tool_prefix}objdump; ac_word=$2 7713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7714$as_echo_n "checking for $ac_word... " >&6; } 7715if ${ac_cv_prog_OBJDUMP+:} false; then : 7716 $as_echo_n "(cached) " >&6 7717else 7718 if test -n "$OBJDUMP"; then 7719 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7720else 7721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7722for as_dir in $PATH 7723do 7724 IFS=$as_save_IFS 7725 test -z "$as_dir" && as_dir=. 7726 for ac_exec_ext in '' $ac_executable_extensions; do 7727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7728 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7730 break 2 7731 fi 7732done 7733 done 7734IFS=$as_save_IFS 7735 7736fi 7737fi 7738OBJDUMP=$ac_cv_prog_OBJDUMP 7739if test -n "$OBJDUMP"; then 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7741$as_echo "$OBJDUMP" >&6; } 7742else 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7744$as_echo "no" >&6; } 7745fi 7746 7747 7748fi 7749if test -z "$ac_cv_prog_OBJDUMP"; then 7750 ac_ct_OBJDUMP=$OBJDUMP 7751 # Extract the first word of "objdump", so it can be a program name with args. 7752set dummy objdump; ac_word=$2 7753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7754$as_echo_n "checking for $ac_word... " >&6; } 7755if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7756 $as_echo_n "(cached) " >&6 7757else 7758 if test -n "$ac_ct_OBJDUMP"; then 7759 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7760else 7761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7762for as_dir in $PATH 7763do 7764 IFS=$as_save_IFS 7765 test -z "$as_dir" && as_dir=. 7766 for ac_exec_ext in '' $ac_executable_extensions; do 7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7768 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7770 break 2 7771 fi 7772done 7773 done 7774IFS=$as_save_IFS 7775 7776fi 7777fi 7778ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7779if test -n "$ac_ct_OBJDUMP"; then 7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7781$as_echo "$ac_ct_OBJDUMP" >&6; } 7782else 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7784$as_echo "no" >&6; } 7785fi 7786 7787 if test "x$ac_ct_OBJDUMP" = x; then 7788 OBJDUMP="false" 7789 else 7790 case $cross_compiling:$ac_tool_warned in 7791yes:) 7792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7794ac_tool_warned=yes ;; 7795esac 7796 OBJDUMP=$ac_ct_OBJDUMP 7797 fi 7798else 7799 OBJDUMP="$ac_cv_prog_OBJDUMP" 7800fi 7801 7802test -z "$OBJDUMP" && OBJDUMP=objdump 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7813$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7814if ${lt_cv_deplibs_check_method+:} false; then : 7815 $as_echo_n "(cached) " >&6 7816else 7817 lt_cv_file_magic_cmd='$MAGIC_CMD' 7818lt_cv_file_magic_test_file= 7819lt_cv_deplibs_check_method='unknown' 7820# Need to set the preceding variable on all platforms that support 7821# interlibrary dependencies. 7822# 'none' -- dependencies not supported. 7823# 'unknown' -- same as none, but documents that we really don't know. 7824# 'pass_all' -- all dependencies passed with no checks. 7825# 'test_compile' -- check by making test program. 7826# 'file_magic [[regex]]' -- check by looking for files in library path 7827# that responds to the $file_magic_cmd with a given extended regex. 7828# If you have 'file' or equivalent on your system and you're not sure 7829# whether 'pass_all' will *always* work, you probably want this one. 7830 7831case $host_os in 7832aix[4-9]*) 7833 lt_cv_deplibs_check_method=pass_all 7834 ;; 7835 7836beos*) 7837 lt_cv_deplibs_check_method=pass_all 7838 ;; 7839 7840bsdi[45]*) 7841 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7842 lt_cv_file_magic_cmd='/usr/bin/file -L' 7843 lt_cv_file_magic_test_file=/shlib/libc.so 7844 ;; 7845 7846cygwin*) 7847 # func_win32_libid is a shell function defined in ltmain.sh 7848 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7849 lt_cv_file_magic_cmd='func_win32_libid' 7850 ;; 7851 7852mingw* | pw32*) 7853 # Base MSYS/MinGW do not provide the 'file' command needed by 7854 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7855 # unless we find 'file', for example because we are cross-compiling. 7856 if ( file / ) >/dev/null 2>&1; then 7857 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7858 lt_cv_file_magic_cmd='func_win32_libid' 7859 else 7860 # Keep this pattern in sync with the one in func_win32_libid. 7861 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7862 lt_cv_file_magic_cmd='$OBJDUMP -f' 7863 fi 7864 ;; 7865 7866cegcc*) 7867 # use the weaker test based on 'objdump'. See mingw*. 7868 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7869 lt_cv_file_magic_cmd='$OBJDUMP -f' 7870 ;; 7871 7872darwin* | rhapsody*) 7873 lt_cv_deplibs_check_method=pass_all 7874 ;; 7875 7876freebsd* | dragonfly*) 7877 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7878 case $host_cpu in 7879 i*86 ) 7880 # Not sure whether the presence of OpenBSD here was a mistake. 7881 # Let's accept both of them until this is cleared up. 7882 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7883 lt_cv_file_magic_cmd=/usr/bin/file 7884 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7885 ;; 7886 esac 7887 else 7888 lt_cv_deplibs_check_method=pass_all 7889 fi 7890 ;; 7891 7892haiku*) 7893 lt_cv_deplibs_check_method=pass_all 7894 ;; 7895 7896hpux10.20* | hpux11*) 7897 lt_cv_file_magic_cmd=/usr/bin/file 7898 case $host_cpu in 7899 ia64*) 7900 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7901 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7902 ;; 7903 hppa*64*) 7904 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]' 7905 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7906 ;; 7907 *) 7908 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7909 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7910 ;; 7911 esac 7912 ;; 7913 7914interix[3-9]*) 7915 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7917 ;; 7918 7919irix5* | irix6* | nonstopux*) 7920 case $LD in 7921 *-32|*"-32 ") libmagic=32-bit;; 7922 *-n32|*"-n32 ") libmagic=N32;; 7923 *-64|*"-64 ") libmagic=64-bit;; 7924 *) libmagic=never-match;; 7925 esac 7926 lt_cv_deplibs_check_method=pass_all 7927 ;; 7928 7929# This must be glibc/ELF. 7930linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7931 lt_cv_deplibs_check_method=pass_all 7932 ;; 7933 7934netbsd*) 7935 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7936 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7937 else 7938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7939 fi 7940 ;; 7941 7942newos6*) 7943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7944 lt_cv_file_magic_cmd=/usr/bin/file 7945 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7946 ;; 7947 7948*nto* | *qnx*) 7949 lt_cv_deplibs_check_method=pass_all 7950 ;; 7951 7952openbsd* | bitrig*) 7953 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7955 else 7956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7957 fi 7958 ;; 7959 7960osf3* | osf4* | osf5*) 7961 lt_cv_deplibs_check_method=pass_all 7962 ;; 7963 7964rdos*) 7965 lt_cv_deplibs_check_method=pass_all 7966 ;; 7967 7968solaris*) 7969 lt_cv_deplibs_check_method=pass_all 7970 ;; 7971 7972sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7973 lt_cv_deplibs_check_method=pass_all 7974 ;; 7975 7976sysv4 | sysv4.3*) 7977 case $host_vendor in 7978 motorola) 7979 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]' 7980 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7981 ;; 7982 ncr) 7983 lt_cv_deplibs_check_method=pass_all 7984 ;; 7985 sequent) 7986 lt_cv_file_magic_cmd='/bin/file' 7987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7988 ;; 7989 sni) 7990 lt_cv_file_magic_cmd='/bin/file' 7991 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7992 lt_cv_file_magic_test_file=/lib/libc.so 7993 ;; 7994 siemens) 7995 lt_cv_deplibs_check_method=pass_all 7996 ;; 7997 pc) 7998 lt_cv_deplibs_check_method=pass_all 7999 ;; 8000 esac 8001 ;; 8002 8003tpf*) 8004 lt_cv_deplibs_check_method=pass_all 8005 ;; 8006os2*) 8007 lt_cv_deplibs_check_method=pass_all 8008 ;; 8009esac 8010 8011fi 8012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8013$as_echo "$lt_cv_deplibs_check_method" >&6; } 8014 8015file_magic_glob= 8016want_nocaseglob=no 8017if test "$build" = "$host"; then 8018 case $host_os in 8019 mingw* | pw32*) 8020 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8021 want_nocaseglob=yes 8022 else 8023 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8024 fi 8025 ;; 8026 esac 8027fi 8028 8029file_magic_cmd=$lt_cv_file_magic_cmd 8030deplibs_check_method=$lt_cv_deplibs_check_method 8031test -z "$deplibs_check_method" && deplibs_check_method=unknown 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054if test -n "$ac_tool_prefix"; then 8055 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8056set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8058$as_echo_n "checking for $ac_word... " >&6; } 8059if ${ac_cv_prog_DLLTOOL+:} false; then : 8060 $as_echo_n "(cached) " >&6 8061else 8062 if test -n "$DLLTOOL"; then 8063 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8064else 8065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8066for as_dir in $PATH 8067do 8068 IFS=$as_save_IFS 8069 test -z "$as_dir" && as_dir=. 8070 for ac_exec_ext in '' $ac_executable_extensions; do 8071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8072 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8074 break 2 8075 fi 8076done 8077 done 8078IFS=$as_save_IFS 8079 8080fi 8081fi 8082DLLTOOL=$ac_cv_prog_DLLTOOL 8083if test -n "$DLLTOOL"; then 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8085$as_echo "$DLLTOOL" >&6; } 8086else 8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8088$as_echo "no" >&6; } 8089fi 8090 8091 8092fi 8093if test -z "$ac_cv_prog_DLLTOOL"; then 8094 ac_ct_DLLTOOL=$DLLTOOL 8095 # Extract the first word of "dlltool", so it can be a program name with args. 8096set dummy dlltool; ac_word=$2 8097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8098$as_echo_n "checking for $ac_word... " >&6; } 8099if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8100 $as_echo_n "(cached) " >&6 8101else 8102 if test -n "$ac_ct_DLLTOOL"; then 8103 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8104else 8105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8106for as_dir in $PATH 8107do 8108 IFS=$as_save_IFS 8109 test -z "$as_dir" && as_dir=. 8110 for ac_exec_ext in '' $ac_executable_extensions; do 8111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8112 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8114 break 2 8115 fi 8116done 8117 done 8118IFS=$as_save_IFS 8119 8120fi 8121fi 8122ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8123if test -n "$ac_ct_DLLTOOL"; then 8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8125$as_echo "$ac_ct_DLLTOOL" >&6; } 8126else 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8128$as_echo "no" >&6; } 8129fi 8130 8131 if test "x$ac_ct_DLLTOOL" = x; then 8132 DLLTOOL="false" 8133 else 8134 case $cross_compiling:$ac_tool_warned in 8135yes:) 8136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8138ac_tool_warned=yes ;; 8139esac 8140 DLLTOOL=$ac_ct_DLLTOOL 8141 fi 8142else 8143 DLLTOOL="$ac_cv_prog_DLLTOOL" 8144fi 8145 8146test -z "$DLLTOOL" && DLLTOOL=dlltool 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8158$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8159if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8160 $as_echo_n "(cached) " >&6 8161else 8162 lt_cv_sharedlib_from_linklib_cmd='unknown' 8163 8164case $host_os in 8165cygwin* | mingw* | pw32* | cegcc*) 8166 # two different shell functions defined in ltmain.sh; 8167 # decide which one to use based on capabilities of $DLLTOOL 8168 case `$DLLTOOL --help 2>&1` in 8169 *--identify-strict*) 8170 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8171 ;; 8172 *) 8173 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8174 ;; 8175 esac 8176 ;; 8177*) 8178 # fallback: assume linklib IS sharedlib 8179 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8180 ;; 8181esac 8182 8183fi 8184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8185$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8186sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8187test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8188 8189 8190 8191 8192 8193 8194 8195if test -n "$ac_tool_prefix"; then 8196 for ac_prog in ar 8197 do 8198 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8199set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8201$as_echo_n "checking for $ac_word... " >&6; } 8202if ${ac_cv_prog_AR+:} false; then : 8203 $as_echo_n "(cached) " >&6 8204else 8205 if test -n "$AR"; then 8206 ac_cv_prog_AR="$AR" # Let the user override the test. 8207else 8208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8209for as_dir in $PATH 8210do 8211 IFS=$as_save_IFS 8212 test -z "$as_dir" && as_dir=. 8213 for ac_exec_ext in '' $ac_executable_extensions; do 8214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8215 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8217 break 2 8218 fi 8219done 8220 done 8221IFS=$as_save_IFS 8222 8223fi 8224fi 8225AR=$ac_cv_prog_AR 8226if test -n "$AR"; then 8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8228$as_echo "$AR" >&6; } 8229else 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8231$as_echo "no" >&6; } 8232fi 8233 8234 8235 test -n "$AR" && break 8236 done 8237fi 8238if test -z "$AR"; then 8239 ac_ct_AR=$AR 8240 for ac_prog in ar 8241do 8242 # Extract the first word of "$ac_prog", so it can be a program name with args. 8243set dummy $ac_prog; 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_ac_ct_AR+:} false; then : 8247 $as_echo_n "(cached) " >&6 8248else 8249 if test -n "$ac_ct_AR"; then 8250 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="$ac_prog" 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 8269ac_ct_AR=$ac_cv_prog_ac_ct_AR 8270if test -n "$ac_ct_AR"; then 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8272$as_echo "$ac_ct_AR" >&6; } 8273else 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8275$as_echo "no" >&6; } 8276fi 8277 8278 8279 test -n "$ac_ct_AR" && break 8280done 8281 8282 if test "x$ac_ct_AR" = x; then 8283 AR="false" 8284 else 8285 case $cross_compiling:$ac_tool_warned in 8286yes:) 8287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8289ac_tool_warned=yes ;; 8290esac 8291 AR=$ac_ct_AR 8292 fi 8293fi 8294 8295: ${AR=ar} 8296: ${AR_FLAGS=cru} 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8309$as_echo_n "checking for archiver @FILE support... " >&6; } 8310if ${lt_cv_ar_at_file+:} false; then : 8311 $as_echo_n "(cached) " >&6 8312else 8313 lt_cv_ar_at_file=no 8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8315/* end confdefs.h. */ 8316 8317int 8318main () 8319{ 8320 8321 ; 8322 return 0; 8323} 8324_ACEOF 8325if ac_fn_c_try_compile "$LINENO"; then : 8326 echo conftest.$ac_objext > conftest.lst 8327 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8329 (eval $lt_ar_try) 2>&5 8330 ac_status=$? 8331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8332 test $ac_status = 0; } 8333 if test 0 -eq "$ac_status"; then 8334 # Ensure the archiver fails upon bogus file names. 8335 rm -f conftest.$ac_objext libconftest.a 8336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8337 (eval $lt_ar_try) 2>&5 8338 ac_status=$? 8339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8340 test $ac_status = 0; } 8341 if test 0 -ne "$ac_status"; then 8342 lt_cv_ar_at_file=@ 8343 fi 8344 fi 8345 rm -f conftest.* libconftest.a 8346 8347fi 8348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8349 8350fi 8351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8352$as_echo "$lt_cv_ar_at_file" >&6; } 8353 8354if test no = "$lt_cv_ar_at_file"; then 8355 archiver_list_spec= 8356else 8357 archiver_list_spec=$lt_cv_ar_at_file 8358fi 8359 8360 8361 8362 8363 8364 8365 8366if test -n "$ac_tool_prefix"; then 8367 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8368set dummy ${ac_tool_prefix}strip; ac_word=$2 8369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8370$as_echo_n "checking for $ac_word... " >&6; } 8371if ${ac_cv_prog_STRIP+:} false; then : 8372 $as_echo_n "(cached) " >&6 8373else 8374 if test -n "$STRIP"; then 8375 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8376else 8377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8378for as_dir in $PATH 8379do 8380 IFS=$as_save_IFS 8381 test -z "$as_dir" && as_dir=. 8382 for ac_exec_ext in '' $ac_executable_extensions; do 8383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8384 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8386 break 2 8387 fi 8388done 8389 done 8390IFS=$as_save_IFS 8391 8392fi 8393fi 8394STRIP=$ac_cv_prog_STRIP 8395if test -n "$STRIP"; then 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8397$as_echo "$STRIP" >&6; } 8398else 8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8400$as_echo "no" >&6; } 8401fi 8402 8403 8404fi 8405if test -z "$ac_cv_prog_STRIP"; then 8406 ac_ct_STRIP=$STRIP 8407 # Extract the first word of "strip", so it can be a program name with args. 8408set dummy strip; ac_word=$2 8409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8410$as_echo_n "checking for $ac_word... " >&6; } 8411if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8412 $as_echo_n "(cached) " >&6 8413else 8414 if test -n "$ac_ct_STRIP"; then 8415 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8416else 8417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8418for as_dir in $PATH 8419do 8420 IFS=$as_save_IFS 8421 test -z "$as_dir" && as_dir=. 8422 for ac_exec_ext in '' $ac_executable_extensions; do 8423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8424 ac_cv_prog_ac_ct_STRIP="strip" 8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8426 break 2 8427 fi 8428done 8429 done 8430IFS=$as_save_IFS 8431 8432fi 8433fi 8434ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8435if test -n "$ac_ct_STRIP"; then 8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8437$as_echo "$ac_ct_STRIP" >&6; } 8438else 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8440$as_echo "no" >&6; } 8441fi 8442 8443 if test "x$ac_ct_STRIP" = x; then 8444 STRIP=":" 8445 else 8446 case $cross_compiling:$ac_tool_warned in 8447yes:) 8448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8450ac_tool_warned=yes ;; 8451esac 8452 STRIP=$ac_ct_STRIP 8453 fi 8454else 8455 STRIP="$ac_cv_prog_STRIP" 8456fi 8457 8458test -z "$STRIP" && STRIP=: 8459 8460 8461 8462 8463 8464 8465if test -n "$ac_tool_prefix"; then 8466 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8467set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8469$as_echo_n "checking for $ac_word... " >&6; } 8470if ${ac_cv_prog_RANLIB+:} false; then : 8471 $as_echo_n "(cached) " >&6 8472else 8473 if test -n "$RANLIB"; then 8474 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8475else 8476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8477for as_dir in $PATH 8478do 8479 IFS=$as_save_IFS 8480 test -z "$as_dir" && as_dir=. 8481 for ac_exec_ext in '' $ac_executable_extensions; do 8482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8483 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8485 break 2 8486 fi 8487done 8488 done 8489IFS=$as_save_IFS 8490 8491fi 8492fi 8493RANLIB=$ac_cv_prog_RANLIB 8494if test -n "$RANLIB"; then 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8496$as_echo "$RANLIB" >&6; } 8497else 8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8499$as_echo "no" >&6; } 8500fi 8501 8502 8503fi 8504if test -z "$ac_cv_prog_RANLIB"; then 8505 ac_ct_RANLIB=$RANLIB 8506 # Extract the first word of "ranlib", so it can be a program name with args. 8507set dummy ranlib; ac_word=$2 8508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8509$as_echo_n "checking for $ac_word... " >&6; } 8510if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8511 $as_echo_n "(cached) " >&6 8512else 8513 if test -n "$ac_ct_RANLIB"; then 8514 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8515else 8516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8517for as_dir in $PATH 8518do 8519 IFS=$as_save_IFS 8520 test -z "$as_dir" && as_dir=. 8521 for ac_exec_ext in '' $ac_executable_extensions; do 8522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8523 ac_cv_prog_ac_ct_RANLIB="ranlib" 8524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8525 break 2 8526 fi 8527done 8528 done 8529IFS=$as_save_IFS 8530 8531fi 8532fi 8533ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8534if test -n "$ac_ct_RANLIB"; then 8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8536$as_echo "$ac_ct_RANLIB" >&6; } 8537else 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8539$as_echo "no" >&6; } 8540fi 8541 8542 if test "x$ac_ct_RANLIB" = x; then 8543 RANLIB=":" 8544 else 8545 case $cross_compiling:$ac_tool_warned in 8546yes:) 8547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8549ac_tool_warned=yes ;; 8550esac 8551 RANLIB=$ac_ct_RANLIB 8552 fi 8553else 8554 RANLIB="$ac_cv_prog_RANLIB" 8555fi 8556 8557test -z "$RANLIB" && RANLIB=: 8558 8559 8560 8561 8562 8563 8564# Determine commands to create old-style static archives. 8565old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8566old_postinstall_cmds='chmod 644 $oldlib' 8567old_postuninstall_cmds= 8568 8569if test -n "$RANLIB"; then 8570 case $host_os in 8571 bitrig* | openbsd*) 8572 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8573 ;; 8574 *) 8575 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8576 ;; 8577 esac 8578 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8579fi 8580 8581case $host_os in 8582 darwin*) 8583 lock_old_archive_extraction=yes ;; 8584 *) 8585 lock_old_archive_extraction=no ;; 8586esac 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626# If no C compiler was specified, use CC. 8627LTCC=${LTCC-"$CC"} 8628 8629# If no C compiler flags were specified, use CFLAGS. 8630LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8631 8632# Allow CC to be a program name with arguments. 8633compiler=$CC 8634 8635 8636# Check for command to grab the raw symbol name followed by C symbol from nm. 8637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8638$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8639if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8640 $as_echo_n "(cached) " >&6 8641else 8642 8643# These are sane defaults that work on at least a few old systems. 8644# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8645 8646# Character class describing NM global symbol codes. 8647symcode='[BCDEGRST]' 8648 8649# Regexp to match symbols that can be accessed directly from C. 8650sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8651 8652# Define system-specific variables. 8653case $host_os in 8654aix*) 8655 symcode='[BCDT]' 8656 ;; 8657cygwin* | mingw* | pw32* | cegcc*) 8658 symcode='[ABCDGISTW]' 8659 ;; 8660hpux*) 8661 if test ia64 = "$host_cpu"; then 8662 symcode='[ABCDEGRST]' 8663 fi 8664 ;; 8665irix* | nonstopux*) 8666 symcode='[BCDEGRST]' 8667 ;; 8668osf*) 8669 symcode='[BCDEGQRST]' 8670 ;; 8671solaris*) 8672 symcode='[BDRT]' 8673 ;; 8674sco3.2v5*) 8675 symcode='[DT]' 8676 ;; 8677sysv4.2uw2*) 8678 symcode='[DT]' 8679 ;; 8680sysv5* | sco5v6* | unixware* | OpenUNIX*) 8681 symcode='[ABDT]' 8682 ;; 8683sysv4) 8684 symcode='[DFNSTU]' 8685 ;; 8686esac 8687 8688# If we're using GNU nm, then use its standard symbol codes. 8689case `$NM -V 2>&1` in 8690*GNU* | *'with BFD'*) 8691 symcode='[ABCDGIRSTW]' ;; 8692esac 8693 8694if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8695 # Gets list of data symbols to import. 8696 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 8697 # Adjust the below global symbol transforms to fixup imported variables. 8698 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8699 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8700 lt_c_name_lib_hook="\ 8701 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8702 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8703else 8704 # Disable hooks by default. 8705 lt_cv_sys_global_symbol_to_import= 8706 lt_cdecl_hook= 8707 lt_c_name_hook= 8708 lt_c_name_lib_hook= 8709fi 8710 8711# Transform an extracted symbol line into a proper C declaration. 8712# Some systems (esp. on ia64) link data and code symbols differently, 8713# so use this general approach. 8714lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 8715$lt_cdecl_hook\ 8716" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8717" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8718 8719# Transform an extracted symbol line into symbol name and symbol address 8720lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 8721$lt_c_name_hook\ 8722" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8723" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8724 8725# Transform an extracted symbol line into symbol name with lib prefix and 8726# symbol address. 8727lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 8728$lt_c_name_lib_hook\ 8729" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8730" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8731" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8732 8733# Handle CRLF in mingw tool chain 8734opt_cr= 8735case $build_os in 8736mingw*) 8737 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8738 ;; 8739esac 8740 8741# Try without a prefix underscore, then with it. 8742for ac_symprfx in "" "_"; do 8743 8744 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8745 symxfrm="\\1 $ac_symprfx\\2 \\2" 8746 8747 # Write the raw and C identifiers. 8748 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8749 # Fake it for dumpbin and say T for any non-static function, 8750 # D for any global variable and I for any imported variable. 8751 # Also find C++ and __fastcall symbols from MSVC++, 8752 # which start with @ or ?. 8753 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8754" {last_section=section; section=\$ 3};"\ 8755" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8756" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8757" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8758" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8759" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8760" \$ 0!~/External *\|/{next};"\ 8761" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8762" {if(hide[section]) next};"\ 8763" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8764" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8765" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8766" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8767" ' prfx=^$ac_symprfx" 8768 else 8769 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8770 fi 8771 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8772 8773 # Check to see that the pipe works correctly. 8774 pipe_works=no 8775 8776 rm -f conftest* 8777 cat > conftest.$ac_ext <<_LT_EOF 8778#ifdef __cplusplus 8779extern "C" { 8780#endif 8781char nm_test_var; 8782void nm_test_func(void); 8783void nm_test_func(void){} 8784#ifdef __cplusplus 8785} 8786#endif 8787int main(){nm_test_var='a';nm_test_func();return(0);} 8788_LT_EOF 8789 8790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8791 (eval $ac_compile) 2>&5 8792 ac_status=$? 8793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8794 test $ac_status = 0; }; then 8795 # Now try to grab the symbols. 8796 nlist=conftest.nm 8797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8798 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8799 ac_status=$? 8800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8801 test $ac_status = 0; } && test -s "$nlist"; then 8802 # Try sorting and uniquifying the output. 8803 if sort "$nlist" | uniq > "$nlist"T; then 8804 mv -f "$nlist"T "$nlist" 8805 else 8806 rm -f "$nlist"T 8807 fi 8808 8809 # Make sure that we snagged all the symbols we need. 8810 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8811 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8812 cat <<_LT_EOF > conftest.$ac_ext 8813/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8814#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 8815/* DATA imports from DLLs on WIN32 can't be const, because runtime 8816 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8817# define LT_DLSYM_CONST 8818#elif defined __osf__ 8819/* This system does not cope well with relocations in const data. */ 8820# define LT_DLSYM_CONST 8821#else 8822# define LT_DLSYM_CONST const 8823#endif 8824 8825#ifdef __cplusplus 8826extern "C" { 8827#endif 8828 8829_LT_EOF 8830 # Now generate the symbol file. 8831 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8832 8833 cat <<_LT_EOF >> conftest.$ac_ext 8834 8835/* The mapping between symbol names and symbols. */ 8836LT_DLSYM_CONST struct { 8837 const char *name; 8838 void *address; 8839} 8840lt__PROGRAM__LTX_preloaded_symbols[] = 8841{ 8842 { "@PROGRAM@", (void *) 0 }, 8843_LT_EOF 8844 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8845 cat <<\_LT_EOF >> conftest.$ac_ext 8846 {0, (void *) 0} 8847}; 8848 8849/* This works around a problem in FreeBSD linker */ 8850#ifdef FREEBSD_WORKAROUND 8851static const void *lt_preloaded_setup() { 8852 return lt__PROGRAM__LTX_preloaded_symbols; 8853} 8854#endif 8855 8856#ifdef __cplusplus 8857} 8858#endif 8859_LT_EOF 8860 # Now try linking the two files. 8861 mv conftest.$ac_objext conftstm.$ac_objext 8862 lt_globsym_save_LIBS=$LIBS 8863 lt_globsym_save_CFLAGS=$CFLAGS 8864 LIBS=conftstm.$ac_objext 8865 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8867 (eval $ac_link) 2>&5 8868 ac_status=$? 8869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8870 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8871 pipe_works=yes 8872 fi 8873 LIBS=$lt_globsym_save_LIBS 8874 CFLAGS=$lt_globsym_save_CFLAGS 8875 else 8876 echo "cannot find nm_test_func in $nlist" >&5 8877 fi 8878 else 8879 echo "cannot find nm_test_var in $nlist" >&5 8880 fi 8881 else 8882 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8883 fi 8884 else 8885 echo "$progname: failed program was:" >&5 8886 cat conftest.$ac_ext >&5 8887 fi 8888 rm -rf conftest* conftst* 8889 8890 # Do not use the global_symbol_pipe unless it works. 8891 if test yes = "$pipe_works"; then 8892 break 8893 else 8894 lt_cv_sys_global_symbol_pipe= 8895 fi 8896done 8897 8898fi 8899 8900if test -z "$lt_cv_sys_global_symbol_pipe"; then 8901 lt_cv_sys_global_symbol_to_cdecl= 8902fi 8903if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8905$as_echo "failed" >&6; } 8906else 8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8908$as_echo "ok" >&6; } 8909fi 8910 8911# Response file support. 8912if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8913 nm_file_list_spec='@' 8914elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8915 nm_file_list_spec='@' 8916fi 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8955$as_echo_n "checking for sysroot... " >&6; } 8956 8957# Check whether --with-sysroot was given. 8958if test "${with_sysroot+set}" = set; then : 8959 withval=$with_sysroot; 8960else 8961 with_sysroot=no 8962fi 8963 8964 8965lt_sysroot= 8966case $with_sysroot in #( 8967 yes) 8968 if test yes = "$GCC"; then 8969 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8970 fi 8971 ;; #( 8972 /*) 8973 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8974 ;; #( 8975 no|'') 8976 ;; #( 8977 *) 8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8979$as_echo "$with_sysroot" >&6; } 8980 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8981 ;; 8982esac 8983 8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8985$as_echo "${lt_sysroot:-no}" >&6; } 8986 8987 8988 8989 8990 8991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8992$as_echo_n "checking for a working dd... " >&6; } 8993if ${ac_cv_path_lt_DD+:} false; then : 8994 $as_echo_n "(cached) " >&6 8995else 8996 printf 0123456789abcdef0123456789abcdef >conftest.i 8997cat conftest.i conftest.i >conftest2.i 8998: ${lt_DD:=$DD} 8999if test -z "$lt_DD"; then 9000 ac_path_lt_DD_found=false 9001 # Loop through the user's path and test for each of PROGNAME-LIST 9002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9003for as_dir in $PATH 9004do 9005 IFS=$as_save_IFS 9006 test -z "$as_dir" && as_dir=. 9007 for ac_prog in dd; do 9008 for ac_exec_ext in '' $ac_executable_extensions; do 9009 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 9010 as_fn_executable_p "$ac_path_lt_DD" || continue 9011if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9012 cmp -s conftest.i conftest.out \ 9013 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9014fi 9015 $ac_path_lt_DD_found && break 3 9016 done 9017 done 9018 done 9019IFS=$as_save_IFS 9020 if test -z "$ac_cv_path_lt_DD"; then 9021 : 9022 fi 9023else 9024 ac_cv_path_lt_DD=$lt_DD 9025fi 9026 9027rm -f conftest.i conftest2.i conftest.out 9028fi 9029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9030$as_echo "$ac_cv_path_lt_DD" >&6; } 9031 9032 9033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9034$as_echo_n "checking how to truncate binary pipes... " >&6; } 9035if ${lt_cv_truncate_bin+:} false; then : 9036 $as_echo_n "(cached) " >&6 9037else 9038 printf 0123456789abcdef0123456789abcdef >conftest.i 9039cat conftest.i conftest.i >conftest2.i 9040lt_cv_truncate_bin= 9041if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9042 cmp -s conftest.i conftest.out \ 9043 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9044fi 9045rm -f conftest.i conftest2.i conftest.out 9046test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 9047fi 9048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9049$as_echo "$lt_cv_truncate_bin" >&6; } 9050 9051 9052 9053 9054 9055 9056 9057# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9058func_cc_basename () 9059{ 9060 for cc_temp in $*""; do 9061 case $cc_temp in 9062 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9063 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9064 \-*) ;; 9065 *) break;; 9066 esac 9067 done 9068 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9069} 9070 9071# Check whether --enable-libtool-lock was given. 9072if test "${enable_libtool_lock+set}" = set; then : 9073 enableval=$enable_libtool_lock; 9074fi 9075 9076test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9077 9078# Some flags need to be propagated to the compiler or linker for good 9079# libtool support. 9080case $host in 9081ia64-*-hpux*) 9082 # Find out what ABI is being produced by ac_compile, and set mode 9083 # options accordingly. 9084 echo 'int i;' > conftest.$ac_ext 9085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9086 (eval $ac_compile) 2>&5 9087 ac_status=$? 9088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9089 test $ac_status = 0; }; then 9090 case `/usr/bin/file conftest.$ac_objext` in 9091 *ELF-32*) 9092 HPUX_IA64_MODE=32 9093 ;; 9094 *ELF-64*) 9095 HPUX_IA64_MODE=64 9096 ;; 9097 esac 9098 fi 9099 rm -rf conftest* 9100 ;; 9101*-*-irix6*) 9102 # Find out what ABI is being produced by ac_compile, and set linker 9103 # options accordingly. 9104 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9106 (eval $ac_compile) 2>&5 9107 ac_status=$? 9108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9109 test $ac_status = 0; }; then 9110 if test yes = "$lt_cv_prog_gnu_ld"; then 9111 case `/usr/bin/file conftest.$ac_objext` in 9112 *32-bit*) 9113 LD="${LD-ld} -melf32bsmip" 9114 ;; 9115 *N32*) 9116 LD="${LD-ld} -melf32bmipn32" 9117 ;; 9118 *64-bit*) 9119 LD="${LD-ld} -melf64bmip" 9120 ;; 9121 esac 9122 else 9123 case `/usr/bin/file conftest.$ac_objext` in 9124 *32-bit*) 9125 LD="${LD-ld} -32" 9126 ;; 9127 *N32*) 9128 LD="${LD-ld} -n32" 9129 ;; 9130 *64-bit*) 9131 LD="${LD-ld} -64" 9132 ;; 9133 esac 9134 fi 9135 fi 9136 rm -rf conftest* 9137 ;; 9138 9139mips64*-*linux*) 9140 # Find out what ABI is being produced by ac_compile, and set linker 9141 # options accordingly. 9142 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9144 (eval $ac_compile) 2>&5 9145 ac_status=$? 9146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9147 test $ac_status = 0; }; then 9148 emul=elf 9149 case `/usr/bin/file conftest.$ac_objext` in 9150 *32-bit*) 9151 emul="${emul}32" 9152 ;; 9153 *64-bit*) 9154 emul="${emul}64" 9155 ;; 9156 esac 9157 case `/usr/bin/file conftest.$ac_objext` in 9158 *MSB*) 9159 emul="${emul}btsmip" 9160 ;; 9161 *LSB*) 9162 emul="${emul}ltsmip" 9163 ;; 9164 esac 9165 case `/usr/bin/file conftest.$ac_objext` in 9166 *N32*) 9167 emul="${emul}n32" 9168 ;; 9169 esac 9170 LD="${LD-ld} -m $emul" 9171 fi 9172 rm -rf conftest* 9173 ;; 9174 9175x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9176s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9177 # Find out what ABI is being produced by ac_compile, and set linker 9178 # options accordingly. Note that the listed cases only cover the 9179 # situations where additional linker options are needed (such as when 9180 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9181 # vice versa); the common cases where no linker options are needed do 9182 # not appear in the list. 9183 echo 'int i;' > conftest.$ac_ext 9184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9185 (eval $ac_compile) 2>&5 9186 ac_status=$? 9187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9188 test $ac_status = 0; }; then 9189 case `/usr/bin/file conftest.o` in 9190 *32-bit*) 9191 case $host in 9192 x86_64-*kfreebsd*-gnu) 9193 LD="${LD-ld} -m elf_i386_fbsd" 9194 ;; 9195 x86_64-*linux*) 9196 case `/usr/bin/file conftest.o` in 9197 *x86-64*) 9198 LD="${LD-ld} -m elf32_x86_64" 9199 ;; 9200 *) 9201 LD="${LD-ld} -m elf_i386" 9202 ;; 9203 esac 9204 ;; 9205 powerpc64le-*linux*) 9206 LD="${LD-ld} -m elf32lppclinux" 9207 ;; 9208 powerpc64-*linux*) 9209 LD="${LD-ld} -m elf32ppclinux" 9210 ;; 9211 s390x-*linux*) 9212 LD="${LD-ld} -m elf_s390" 9213 ;; 9214 sparc64-*linux*) 9215 LD="${LD-ld} -m elf32_sparc" 9216 ;; 9217 esac 9218 ;; 9219 *64-bit*) 9220 case $host in 9221 x86_64-*kfreebsd*-gnu) 9222 LD="${LD-ld} -m elf_x86_64_fbsd" 9223 ;; 9224 x86_64-*linux*) 9225 LD="${LD-ld} -m elf_x86_64" 9226 ;; 9227 powerpcle-*linux*) 9228 LD="${LD-ld} -m elf64lppc" 9229 ;; 9230 powerpc-*linux*) 9231 LD="${LD-ld} -m elf64ppc" 9232 ;; 9233 s390*-*linux*|s390*-*tpf*) 9234 LD="${LD-ld} -m elf64_s390" 9235 ;; 9236 sparc*-*linux*) 9237 LD="${LD-ld} -m elf64_sparc" 9238 ;; 9239 esac 9240 ;; 9241 esac 9242 fi 9243 rm -rf conftest* 9244 ;; 9245 9246*-*-sco3.2v5*) 9247 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9248 SAVE_CFLAGS=$CFLAGS 9249 CFLAGS="$CFLAGS -belf" 9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9251$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9252if ${lt_cv_cc_needs_belf+:} false; then : 9253 $as_echo_n "(cached) " >&6 9254else 9255 ac_ext=c 9256ac_cpp='$CPP $CPPFLAGS' 9257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9259ac_compiler_gnu=$ac_cv_c_compiler_gnu 9260 9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9262/* end confdefs.h. */ 9263 9264int 9265main () 9266{ 9267 9268 ; 9269 return 0; 9270} 9271_ACEOF 9272if ac_fn_c_try_link "$LINENO"; then : 9273 lt_cv_cc_needs_belf=yes 9274else 9275 lt_cv_cc_needs_belf=no 9276fi 9277rm -f core conftest.err conftest.$ac_objext \ 9278 conftest$ac_exeext conftest.$ac_ext 9279 ac_ext=c 9280ac_cpp='$CPP $CPPFLAGS' 9281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9283ac_compiler_gnu=$ac_cv_c_compiler_gnu 9284 9285fi 9286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9287$as_echo "$lt_cv_cc_needs_belf" >&6; } 9288 if test yes != "$lt_cv_cc_needs_belf"; then 9289 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9290 CFLAGS=$SAVE_CFLAGS 9291 fi 9292 ;; 9293*-*solaris*) 9294 # Find out what ABI is being produced by ac_compile, and set linker 9295 # options accordingly. 9296 echo 'int i;' > conftest.$ac_ext 9297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9298 (eval $ac_compile) 2>&5 9299 ac_status=$? 9300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9301 test $ac_status = 0; }; then 9302 case `/usr/bin/file conftest.o` in 9303 *64-bit*) 9304 case $lt_cv_prog_gnu_ld in 9305 yes*) 9306 case $host in 9307 i?86-*-solaris*|x86_64-*-solaris*) 9308 LD="${LD-ld} -m elf_x86_64" 9309 ;; 9310 sparc*-*-solaris*) 9311 LD="${LD-ld} -m elf64_sparc" 9312 ;; 9313 esac 9314 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9315 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9316 LD=${LD-ld}_sol2 9317 fi 9318 ;; 9319 *) 9320 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9321 LD="${LD-ld} -64" 9322 fi 9323 ;; 9324 esac 9325 ;; 9326 esac 9327 fi 9328 rm -rf conftest* 9329 ;; 9330esac 9331 9332need_locks=$enable_libtool_lock 9333 9334if test -n "$ac_tool_prefix"; then 9335 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9336set dummy ${ac_tool_prefix}mt; ac_word=$2 9337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9338$as_echo_n "checking for $ac_word... " >&6; } 9339if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9340 $as_echo_n "(cached) " >&6 9341else 9342 if test -n "$MANIFEST_TOOL"; then 9343 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9344else 9345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9346for as_dir in $PATH 9347do 9348 IFS=$as_save_IFS 9349 test -z "$as_dir" && as_dir=. 9350 for ac_exec_ext in '' $ac_executable_extensions; do 9351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9352 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9354 break 2 9355 fi 9356done 9357 done 9358IFS=$as_save_IFS 9359 9360fi 9361fi 9362MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9363if test -n "$MANIFEST_TOOL"; then 9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9365$as_echo "$MANIFEST_TOOL" >&6; } 9366else 9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9368$as_echo "no" >&6; } 9369fi 9370 9371 9372fi 9373if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9374 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9375 # Extract the first word of "mt", so it can be a program name with args. 9376set dummy mt; ac_word=$2 9377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9378$as_echo_n "checking for $ac_word... " >&6; } 9379if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9380 $as_echo_n "(cached) " >&6 9381else 9382 if test -n "$ac_ct_MANIFEST_TOOL"; then 9383 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9384else 9385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9386for as_dir in $PATH 9387do 9388 IFS=$as_save_IFS 9389 test -z "$as_dir" && as_dir=. 9390 for ac_exec_ext in '' $ac_executable_extensions; do 9391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9392 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9394 break 2 9395 fi 9396done 9397 done 9398IFS=$as_save_IFS 9399 9400fi 9401fi 9402ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9403if test -n "$ac_ct_MANIFEST_TOOL"; then 9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9405$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9406else 9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9408$as_echo "no" >&6; } 9409fi 9410 9411 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9412 MANIFEST_TOOL=":" 9413 else 9414 case $cross_compiling:$ac_tool_warned in 9415yes:) 9416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9418ac_tool_warned=yes ;; 9419esac 9420 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9421 fi 9422else 9423 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9424fi 9425 9426test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9428$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9429if ${lt_cv_path_mainfest_tool+:} false; then : 9430 $as_echo_n "(cached) " >&6 9431else 9432 lt_cv_path_mainfest_tool=no 9433 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9434 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9435 cat conftest.err >&5 9436 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9437 lt_cv_path_mainfest_tool=yes 9438 fi 9439 rm -f conftest* 9440fi 9441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9442$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9443if test yes != "$lt_cv_path_mainfest_tool"; then 9444 MANIFEST_TOOL=: 9445fi 9446 9447 9448 9449 9450 9451 9452 case $host_os in 9453 rhapsody* | darwin*) 9454 if test -n "$ac_tool_prefix"; then 9455 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9456set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9458$as_echo_n "checking for $ac_word... " >&6; } 9459if ${ac_cv_prog_DSYMUTIL+:} false; then : 9460 $as_echo_n "(cached) " >&6 9461else 9462 if test -n "$DSYMUTIL"; then 9463 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9464else 9465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9466for as_dir in $PATH 9467do 9468 IFS=$as_save_IFS 9469 test -z "$as_dir" && as_dir=. 9470 for ac_exec_ext in '' $ac_executable_extensions; do 9471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9472 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9474 break 2 9475 fi 9476done 9477 done 9478IFS=$as_save_IFS 9479 9480fi 9481fi 9482DSYMUTIL=$ac_cv_prog_DSYMUTIL 9483if test -n "$DSYMUTIL"; then 9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9485$as_echo "$DSYMUTIL" >&6; } 9486else 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9488$as_echo "no" >&6; } 9489fi 9490 9491 9492fi 9493if test -z "$ac_cv_prog_DSYMUTIL"; then 9494 ac_ct_DSYMUTIL=$DSYMUTIL 9495 # Extract the first word of "dsymutil", so it can be a program name with args. 9496set dummy dsymutil; ac_word=$2 9497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9498$as_echo_n "checking for $ac_word... " >&6; } 9499if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9500 $as_echo_n "(cached) " >&6 9501else 9502 if test -n "$ac_ct_DSYMUTIL"; then 9503 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9504else 9505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9506for as_dir in $PATH 9507do 9508 IFS=$as_save_IFS 9509 test -z "$as_dir" && as_dir=. 9510 for ac_exec_ext in '' $ac_executable_extensions; do 9511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9512 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9514 break 2 9515 fi 9516done 9517 done 9518IFS=$as_save_IFS 9519 9520fi 9521fi 9522ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9523if test -n "$ac_ct_DSYMUTIL"; then 9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9525$as_echo "$ac_ct_DSYMUTIL" >&6; } 9526else 9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9528$as_echo "no" >&6; } 9529fi 9530 9531 if test "x$ac_ct_DSYMUTIL" = x; then 9532 DSYMUTIL=":" 9533 else 9534 case $cross_compiling:$ac_tool_warned in 9535yes:) 9536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9538ac_tool_warned=yes ;; 9539esac 9540 DSYMUTIL=$ac_ct_DSYMUTIL 9541 fi 9542else 9543 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9544fi 9545 9546 if test -n "$ac_tool_prefix"; then 9547 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9548set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9550$as_echo_n "checking for $ac_word... " >&6; } 9551if ${ac_cv_prog_NMEDIT+:} false; then : 9552 $as_echo_n "(cached) " >&6 9553else 9554 if test -n "$NMEDIT"; then 9555 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9556else 9557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9558for as_dir in $PATH 9559do 9560 IFS=$as_save_IFS 9561 test -z "$as_dir" && as_dir=. 9562 for ac_exec_ext in '' $ac_executable_extensions; do 9563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9564 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9566 break 2 9567 fi 9568done 9569 done 9570IFS=$as_save_IFS 9571 9572fi 9573fi 9574NMEDIT=$ac_cv_prog_NMEDIT 9575if test -n "$NMEDIT"; then 9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9577$as_echo "$NMEDIT" >&6; } 9578else 9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9580$as_echo "no" >&6; } 9581fi 9582 9583 9584fi 9585if test -z "$ac_cv_prog_NMEDIT"; then 9586 ac_ct_NMEDIT=$NMEDIT 9587 # Extract the first word of "nmedit", so it can be a program name with args. 9588set dummy nmedit; ac_word=$2 9589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9590$as_echo_n "checking for $ac_word... " >&6; } 9591if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9592 $as_echo_n "(cached) " >&6 9593else 9594 if test -n "$ac_ct_NMEDIT"; then 9595 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9596else 9597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9598for as_dir in $PATH 9599do 9600 IFS=$as_save_IFS 9601 test -z "$as_dir" && as_dir=. 9602 for ac_exec_ext in '' $ac_executable_extensions; do 9603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9604 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9606 break 2 9607 fi 9608done 9609 done 9610IFS=$as_save_IFS 9611 9612fi 9613fi 9614ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9615if test -n "$ac_ct_NMEDIT"; then 9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9617$as_echo "$ac_ct_NMEDIT" >&6; } 9618else 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9620$as_echo "no" >&6; } 9621fi 9622 9623 if test "x$ac_ct_NMEDIT" = x; then 9624 NMEDIT=":" 9625 else 9626 case $cross_compiling:$ac_tool_warned in 9627yes:) 9628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9630ac_tool_warned=yes ;; 9631esac 9632 NMEDIT=$ac_ct_NMEDIT 9633 fi 9634else 9635 NMEDIT="$ac_cv_prog_NMEDIT" 9636fi 9637 9638 if test -n "$ac_tool_prefix"; then 9639 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9640set dummy ${ac_tool_prefix}lipo; ac_word=$2 9641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9642$as_echo_n "checking for $ac_word... " >&6; } 9643if ${ac_cv_prog_LIPO+:} false; then : 9644 $as_echo_n "(cached) " >&6 9645else 9646 if test -n "$LIPO"; then 9647 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9648else 9649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9650for as_dir in $PATH 9651do 9652 IFS=$as_save_IFS 9653 test -z "$as_dir" && as_dir=. 9654 for ac_exec_ext in '' $ac_executable_extensions; do 9655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9656 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9658 break 2 9659 fi 9660done 9661 done 9662IFS=$as_save_IFS 9663 9664fi 9665fi 9666LIPO=$ac_cv_prog_LIPO 9667if test -n "$LIPO"; then 9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9669$as_echo "$LIPO" >&6; } 9670else 9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9672$as_echo "no" >&6; } 9673fi 9674 9675 9676fi 9677if test -z "$ac_cv_prog_LIPO"; then 9678 ac_ct_LIPO=$LIPO 9679 # Extract the first word of "lipo", so it can be a program name with args. 9680set dummy lipo; ac_word=$2 9681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9682$as_echo_n "checking for $ac_word... " >&6; } 9683if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9684 $as_echo_n "(cached) " >&6 9685else 9686 if test -n "$ac_ct_LIPO"; then 9687 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9688else 9689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9690for as_dir in $PATH 9691do 9692 IFS=$as_save_IFS 9693 test -z "$as_dir" && as_dir=. 9694 for ac_exec_ext in '' $ac_executable_extensions; do 9695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9696 ac_cv_prog_ac_ct_LIPO="lipo" 9697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9698 break 2 9699 fi 9700done 9701 done 9702IFS=$as_save_IFS 9703 9704fi 9705fi 9706ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9707if test -n "$ac_ct_LIPO"; then 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9709$as_echo "$ac_ct_LIPO" >&6; } 9710else 9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9712$as_echo "no" >&6; } 9713fi 9714 9715 if test "x$ac_ct_LIPO" = x; then 9716 LIPO=":" 9717 else 9718 case $cross_compiling:$ac_tool_warned in 9719yes:) 9720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9722ac_tool_warned=yes ;; 9723esac 9724 LIPO=$ac_ct_LIPO 9725 fi 9726else 9727 LIPO="$ac_cv_prog_LIPO" 9728fi 9729 9730 if test -n "$ac_tool_prefix"; then 9731 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9732set dummy ${ac_tool_prefix}otool; ac_word=$2 9733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9734$as_echo_n "checking for $ac_word... " >&6; } 9735if ${ac_cv_prog_OTOOL+:} false; then : 9736 $as_echo_n "(cached) " >&6 9737else 9738 if test -n "$OTOOL"; then 9739 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9740else 9741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9742for as_dir in $PATH 9743do 9744 IFS=$as_save_IFS 9745 test -z "$as_dir" && as_dir=. 9746 for ac_exec_ext in '' $ac_executable_extensions; do 9747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9748 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9750 break 2 9751 fi 9752done 9753 done 9754IFS=$as_save_IFS 9755 9756fi 9757fi 9758OTOOL=$ac_cv_prog_OTOOL 9759if test -n "$OTOOL"; then 9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9761$as_echo "$OTOOL" >&6; } 9762else 9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9764$as_echo "no" >&6; } 9765fi 9766 9767 9768fi 9769if test -z "$ac_cv_prog_OTOOL"; then 9770 ac_ct_OTOOL=$OTOOL 9771 # Extract the first word of "otool", so it can be a program name with args. 9772set dummy otool; ac_word=$2 9773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9774$as_echo_n "checking for $ac_word... " >&6; } 9775if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9776 $as_echo_n "(cached) " >&6 9777else 9778 if test -n "$ac_ct_OTOOL"; then 9779 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9780else 9781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9782for as_dir in $PATH 9783do 9784 IFS=$as_save_IFS 9785 test -z "$as_dir" && as_dir=. 9786 for ac_exec_ext in '' $ac_executable_extensions; do 9787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9788 ac_cv_prog_ac_ct_OTOOL="otool" 9789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9790 break 2 9791 fi 9792done 9793 done 9794IFS=$as_save_IFS 9795 9796fi 9797fi 9798ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9799if test -n "$ac_ct_OTOOL"; then 9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9801$as_echo "$ac_ct_OTOOL" >&6; } 9802else 9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9804$as_echo "no" >&6; } 9805fi 9806 9807 if test "x$ac_ct_OTOOL" = x; then 9808 OTOOL=":" 9809 else 9810 case $cross_compiling:$ac_tool_warned in 9811yes:) 9812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9814ac_tool_warned=yes ;; 9815esac 9816 OTOOL=$ac_ct_OTOOL 9817 fi 9818else 9819 OTOOL="$ac_cv_prog_OTOOL" 9820fi 9821 9822 if test -n "$ac_tool_prefix"; then 9823 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9824set dummy ${ac_tool_prefix}otool64; ac_word=$2 9825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9826$as_echo_n "checking for $ac_word... " >&6; } 9827if ${ac_cv_prog_OTOOL64+:} false; then : 9828 $as_echo_n "(cached) " >&6 9829else 9830 if test -n "$OTOOL64"; then 9831 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9832else 9833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9834for as_dir in $PATH 9835do 9836 IFS=$as_save_IFS 9837 test -z "$as_dir" && as_dir=. 9838 for ac_exec_ext in '' $ac_executable_extensions; do 9839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9840 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9842 break 2 9843 fi 9844done 9845 done 9846IFS=$as_save_IFS 9847 9848fi 9849fi 9850OTOOL64=$ac_cv_prog_OTOOL64 9851if test -n "$OTOOL64"; then 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9853$as_echo "$OTOOL64" >&6; } 9854else 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9856$as_echo "no" >&6; } 9857fi 9858 9859 9860fi 9861if test -z "$ac_cv_prog_OTOOL64"; then 9862 ac_ct_OTOOL64=$OTOOL64 9863 # Extract the first word of "otool64", so it can be a program name with args. 9864set dummy otool64; ac_word=$2 9865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9866$as_echo_n "checking for $ac_word... " >&6; } 9867if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9868 $as_echo_n "(cached) " >&6 9869else 9870 if test -n "$ac_ct_OTOOL64"; then 9871 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9872else 9873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9874for as_dir in $PATH 9875do 9876 IFS=$as_save_IFS 9877 test -z "$as_dir" && as_dir=. 9878 for ac_exec_ext in '' $ac_executable_extensions; do 9879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9880 ac_cv_prog_ac_ct_OTOOL64="otool64" 9881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9882 break 2 9883 fi 9884done 9885 done 9886IFS=$as_save_IFS 9887 9888fi 9889fi 9890ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9891if test -n "$ac_ct_OTOOL64"; then 9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9893$as_echo "$ac_ct_OTOOL64" >&6; } 9894else 9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9896$as_echo "no" >&6; } 9897fi 9898 9899 if test "x$ac_ct_OTOOL64" = x; then 9900 OTOOL64=":" 9901 else 9902 case $cross_compiling:$ac_tool_warned in 9903yes:) 9904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9906ac_tool_warned=yes ;; 9907esac 9908 OTOOL64=$ac_ct_OTOOL64 9909 fi 9910else 9911 OTOOL64="$ac_cv_prog_OTOOL64" 9912fi 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9941$as_echo_n "checking for -single_module linker flag... " >&6; } 9942if ${lt_cv_apple_cc_single_mod+:} false; then : 9943 $as_echo_n "(cached) " >&6 9944else 9945 lt_cv_apple_cc_single_mod=no 9946 if test -z "$LT_MULTI_MODULE"; then 9947 # By default we will add the -single_module flag. You can override 9948 # by either setting the environment variable LT_MULTI_MODULE 9949 # non-empty at configure time, or by adding -multi_module to the 9950 # link flags. 9951 rm -rf libconftest.dylib* 9952 echo "int foo(void){return 1;}" > conftest.c 9953 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9954-dynamiclib -Wl,-single_module conftest.c" >&5 9955 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9956 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9957 _lt_result=$? 9958 # If there is a non-empty error log, and "single_module" 9959 # appears in it, assume the flag caused a linker warning 9960 if test -s conftest.err && $GREP single_module conftest.err; then 9961 cat conftest.err >&5 9962 # Otherwise, if the output was created with a 0 exit code from 9963 # the compiler, it worked. 9964 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9965 lt_cv_apple_cc_single_mod=yes 9966 else 9967 cat conftest.err >&5 9968 fi 9969 rm -rf libconftest.dylib* 9970 rm -f conftest.* 9971 fi 9972fi 9973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9974$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9975 9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9977$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9978if ${lt_cv_ld_exported_symbols_list+:} false; then : 9979 $as_echo_n "(cached) " >&6 9980else 9981 lt_cv_ld_exported_symbols_list=no 9982 save_LDFLAGS=$LDFLAGS 9983 echo "_main" > conftest.sym 9984 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9986/* end confdefs.h. */ 9987 9988int 9989main () 9990{ 9991 9992 ; 9993 return 0; 9994} 9995_ACEOF 9996if ac_fn_c_try_link "$LINENO"; then : 9997 lt_cv_ld_exported_symbols_list=yes 9998else 9999 lt_cv_ld_exported_symbols_list=no 10000fi 10001rm -f core conftest.err conftest.$ac_objext \ 10002 conftest$ac_exeext conftest.$ac_ext 10003 LDFLAGS=$save_LDFLAGS 10004 10005fi 10006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10007$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10008 10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10010$as_echo_n "checking for -force_load linker flag... " >&6; } 10011if ${lt_cv_ld_force_load+:} false; then : 10012 $as_echo_n "(cached) " >&6 10013else 10014 lt_cv_ld_force_load=no 10015 cat > conftest.c << _LT_EOF 10016int forced_loaded() { return 2;} 10017_LT_EOF 10018 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10019 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10020 echo "$AR cru libconftest.a conftest.o" >&5 10021 $AR cru libconftest.a conftest.o 2>&5 10022 echo "$RANLIB libconftest.a" >&5 10023 $RANLIB libconftest.a 2>&5 10024 cat > conftest.c << _LT_EOF 10025int main() { return 0;} 10026_LT_EOF 10027 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10028 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10029 _lt_result=$? 10030 if test -s conftest.err && $GREP force_load conftest.err; then 10031 cat conftest.err >&5 10032 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10033 lt_cv_ld_force_load=yes 10034 else 10035 cat conftest.err >&5 10036 fi 10037 rm -f conftest.err libconftest.a conftest conftest.c 10038 rm -rf conftest.dSYM 10039 10040fi 10041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10042$as_echo "$lt_cv_ld_force_load" >&6; } 10043 case $host_os in 10044 rhapsody* | darwin1.[012]) 10045 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10046 darwin1.*) 10047 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10048 darwin*) # darwin 5.x on 10049 # if running on 10.5 or later, the deployment target defaults 10050 # to the OS version, if on x86, and 10.4, the deployment 10051 # target defaults to 10.4. Don't you love it? 10052 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10053 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10054 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10055 10.[012][,.]*) 10056 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10057 10.*) 10058 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10059 esac 10060 ;; 10061 esac 10062 if test yes = "$lt_cv_apple_cc_single_mod"; then 10063 _lt_dar_single_mod='$single_module' 10064 fi 10065 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10066 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10067 else 10068 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10069 fi 10070 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10071 _lt_dsymutil='~$DSYMUTIL $lib || :' 10072 else 10073 _lt_dsymutil= 10074 fi 10075 ;; 10076 esac 10077 10078# func_munge_path_list VARIABLE PATH 10079# ----------------------------------- 10080# VARIABLE is name of variable containing _space_ separated list of 10081# directories to be munged by the contents of PATH, which is string 10082# having a format: 10083# "DIR[:DIR]:" 10084# string "DIR[ DIR]" will be prepended to VARIABLE 10085# ":DIR[:DIR]" 10086# string "DIR[ DIR]" will be appended to VARIABLE 10087# "DIRP[:DIRP]::[DIRA:]DIRA" 10088# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10089# "DIRA[ DIRA]" will be appended to VARIABLE 10090# "DIR[:DIR]" 10091# VARIABLE will be replaced by "DIR[ DIR]" 10092func_munge_path_list () 10093{ 10094 case x$2 in 10095 x) 10096 ;; 10097 *:) 10098 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10099 ;; 10100 x:*) 10101 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10102 ;; 10103 *::*) 10104 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10105 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10106 ;; 10107 *) 10108 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10109 ;; 10110 esac 10111} 10112 10113ac_ext=c 10114ac_cpp='$CPP $CPPFLAGS' 10115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10117ac_compiler_gnu=$ac_cv_c_compiler_gnu 10118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 10119$as_echo_n "checking how to run the C preprocessor... " >&6; } 10120# On Suns, sometimes $CPP names a directory. 10121if test -n "$CPP" && test -d "$CPP"; then 10122 CPP= 10123fi 10124if test -z "$CPP"; then 10125 if ${ac_cv_prog_CPP+:} false; then : 10126 $as_echo_n "(cached) " >&6 10127else 10128 # Double quotes because CPP needs to be expanded 10129 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 10130 do 10131 ac_preproc_ok=false 10132for ac_c_preproc_warn_flag in '' yes 10133do 10134 # Use a header file that comes with gcc, so configuring glibc 10135 # with a fresh cross-compiler works. 10136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10137 # <limits.h> exists even on freestanding compilers. 10138 # On the NeXT, cc -E runs the code through the compiler's parser, 10139 # not just through cpp. "Syntax error" is here to catch this case. 10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10141/* end confdefs.h. */ 10142#ifdef __STDC__ 10143# include <limits.h> 10144#else 10145# include <assert.h> 10146#endif 10147 Syntax error 10148_ACEOF 10149if ac_fn_c_try_cpp "$LINENO"; then : 10150 10151else 10152 # Broken: fails on valid input. 10153continue 10154fi 10155rm -f conftest.err conftest.i conftest.$ac_ext 10156 10157 # OK, works on sane cases. Now check whether nonexistent headers 10158 # can be detected and how. 10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10160/* end confdefs.h. */ 10161#include <ac_nonexistent.h> 10162_ACEOF 10163if ac_fn_c_try_cpp "$LINENO"; then : 10164 # Broken: success on invalid input. 10165continue 10166else 10167 # Passes both tests. 10168ac_preproc_ok=: 10169break 10170fi 10171rm -f conftest.err conftest.i conftest.$ac_ext 10172 10173done 10174# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10175rm -f conftest.i conftest.err conftest.$ac_ext 10176if $ac_preproc_ok; then : 10177 break 10178fi 10179 10180 done 10181 ac_cv_prog_CPP=$CPP 10182 10183fi 10184 CPP=$ac_cv_prog_CPP 10185else 10186 ac_cv_prog_CPP=$CPP 10187fi 10188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 10189$as_echo "$CPP" >&6; } 10190ac_preproc_ok=false 10191for ac_c_preproc_warn_flag in '' yes 10192do 10193 # Use a header file that comes with gcc, so configuring glibc 10194 # with a fresh cross-compiler works. 10195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10196 # <limits.h> exists even on freestanding compilers. 10197 # On the NeXT, cc -E runs the code through the compiler's parser, 10198 # not just through cpp. "Syntax error" is here to catch this case. 10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10200/* end confdefs.h. */ 10201#ifdef __STDC__ 10202# include <limits.h> 10203#else 10204# include <assert.h> 10205#endif 10206 Syntax error 10207_ACEOF 10208if ac_fn_c_try_cpp "$LINENO"; then : 10209 10210else 10211 # Broken: fails on valid input. 10212continue 10213fi 10214rm -f conftest.err conftest.i conftest.$ac_ext 10215 10216 # OK, works on sane cases. Now check whether nonexistent headers 10217 # can be detected and how. 10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10219/* end confdefs.h. */ 10220#include <ac_nonexistent.h> 10221_ACEOF 10222if ac_fn_c_try_cpp "$LINENO"; then : 10223 # Broken: success on invalid input. 10224continue 10225else 10226 # Passes both tests. 10227ac_preproc_ok=: 10228break 10229fi 10230rm -f conftest.err conftest.i conftest.$ac_ext 10231 10232done 10233# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10234rm -f conftest.i conftest.err conftest.$ac_ext 10235if $ac_preproc_ok; then : 10236 10237else 10238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10240as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 10241See \`config.log' for more details" "$LINENO" 5; } 10242fi 10243 10244ac_ext=c 10245ac_cpp='$CPP $CPPFLAGS' 10246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10248ac_compiler_gnu=$ac_cv_c_compiler_gnu 10249 10250 10251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 10252$as_echo_n "checking for ANSI C header files... " >&6; } 10253if ${ac_cv_header_stdc+:} false; then : 10254 $as_echo_n "(cached) " >&6 10255else 10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10257/* end confdefs.h. */ 10258#include <stdlib.h> 10259#include <stdarg.h> 10260#include <string.h> 10261#include <float.h> 10262 10263int 10264main () 10265{ 10266 10267 ; 10268 return 0; 10269} 10270_ACEOF 10271if ac_fn_c_try_compile "$LINENO"; then : 10272 ac_cv_header_stdc=yes 10273else 10274 ac_cv_header_stdc=no 10275fi 10276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10277 10278if test $ac_cv_header_stdc = yes; then 10279 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10281/* end confdefs.h. */ 10282#include <string.h> 10283 10284_ACEOF 10285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10286 $EGREP "memchr" >/dev/null 2>&1; then : 10287 10288else 10289 ac_cv_header_stdc=no 10290fi 10291rm -f conftest* 10292 10293fi 10294 10295if test $ac_cv_header_stdc = yes; then 10296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10298/* end confdefs.h. */ 10299#include <stdlib.h> 10300 10301_ACEOF 10302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10303 $EGREP "free" >/dev/null 2>&1; then : 10304 10305else 10306 ac_cv_header_stdc=no 10307fi 10308rm -f conftest* 10309 10310fi 10311 10312if test $ac_cv_header_stdc = yes; then 10313 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10314 if test "$cross_compiling" = yes; then : 10315 : 10316else 10317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10318/* end confdefs.h. */ 10319#include <ctype.h> 10320#include <stdlib.h> 10321#if ((' ' & 0x0FF) == 0x020) 10322# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10323# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10324#else 10325# define ISLOWER(c) \ 10326 (('a' <= (c) && (c) <= 'i') \ 10327 || ('j' <= (c) && (c) <= 'r') \ 10328 || ('s' <= (c) && (c) <= 'z')) 10329# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10330#endif 10331 10332#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10333int 10334main () 10335{ 10336 int i; 10337 for (i = 0; i < 256; i++) 10338 if (XOR (islower (i), ISLOWER (i)) 10339 || toupper (i) != TOUPPER (i)) 10340 return 2; 10341 return 0; 10342} 10343_ACEOF 10344if ac_fn_c_try_run "$LINENO"; then : 10345 10346else 10347 ac_cv_header_stdc=no 10348fi 10349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10350 conftest.$ac_objext conftest.beam conftest.$ac_ext 10351fi 10352 10353fi 10354fi 10355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 10356$as_echo "$ac_cv_header_stdc" >&6; } 10357if test $ac_cv_header_stdc = yes; then 10358 10359$as_echo "#define STDC_HEADERS 1" >>confdefs.h 10360 10361fi 10362 10363# On IRIX 5.3, sys/types and inttypes.h are conflicting. 10364for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 10365 inttypes.h stdint.h unistd.h 10366do : 10367 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10368ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10369" 10370if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10371 cat >>confdefs.h <<_ACEOF 10372#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10373_ACEOF 10374 10375fi 10376 10377done 10378 10379 10380for ac_header in dlfcn.h 10381do : 10382 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10383" 10384if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10385 cat >>confdefs.h <<_ACEOF 10386#define HAVE_DLFCN_H 1 10387_ACEOF 10388 10389fi 10390 10391done 10392 10393 10394 10395 10396 10397# Set options 10398 10399 10400 10401 enable_dlopen=no 10402 10403 10404 enable_win32_dll=no 10405 10406 10407 # Check whether --enable-shared was given. 10408if test "${enable_shared+set}" = set; then : 10409 enableval=$enable_shared; p=${PACKAGE-default} 10410 case $enableval in 10411 yes) enable_shared=yes ;; 10412 no) enable_shared=no ;; 10413 *) 10414 enable_shared=no 10415 # Look at the argument we got. We use all the common list separators. 10416 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10417 for pkg in $enableval; do 10418 IFS=$lt_save_ifs 10419 if test "X$pkg" = "X$p"; then 10420 enable_shared=yes 10421 fi 10422 done 10423 IFS=$lt_save_ifs 10424 ;; 10425 esac 10426else 10427 enable_shared=yes 10428fi 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 # Check whether --enable-static was given. 10439if test "${enable_static+set}" = set; then : 10440 enableval=$enable_static; p=${PACKAGE-default} 10441 case $enableval in 10442 yes) enable_static=yes ;; 10443 no) enable_static=no ;; 10444 *) 10445 enable_static=no 10446 # Look at the argument we got. We use all the common list separators. 10447 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10448 for pkg in $enableval; do 10449 IFS=$lt_save_ifs 10450 if test "X$pkg" = "X$p"; then 10451 enable_static=yes 10452 fi 10453 done 10454 IFS=$lt_save_ifs 10455 ;; 10456 esac 10457else 10458 enable_static=yes 10459fi 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470# Check whether --with-pic was given. 10471if test "${with_pic+set}" = set; then : 10472 withval=$with_pic; lt_p=${PACKAGE-default} 10473 case $withval in 10474 yes|no) pic_mode=$withval ;; 10475 *) 10476 pic_mode=default 10477 # Look at the argument we got. We use all the common list separators. 10478 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10479 for lt_pkg in $withval; do 10480 IFS=$lt_save_ifs 10481 if test "X$lt_pkg" = "X$lt_p"; then 10482 pic_mode=yes 10483 fi 10484 done 10485 IFS=$lt_save_ifs 10486 ;; 10487 esac 10488else 10489 pic_mode=default 10490fi 10491 10492 10493 10494 10495 10496 10497 10498 10499 # Check whether --enable-fast-install was given. 10500if test "${enable_fast_install+set}" = set; then : 10501 enableval=$enable_fast_install; p=${PACKAGE-default} 10502 case $enableval in 10503 yes) enable_fast_install=yes ;; 10504 no) enable_fast_install=no ;; 10505 *) 10506 enable_fast_install=no 10507 # Look at the argument we got. We use all the common list separators. 10508 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10509 for pkg in $enableval; do 10510 IFS=$lt_save_ifs 10511 if test "X$pkg" = "X$p"; then 10512 enable_fast_install=yes 10513 fi 10514 done 10515 IFS=$lt_save_ifs 10516 ;; 10517 esac 10518else 10519 enable_fast_install=yes 10520fi 10521 10522 10523 10524 10525 10526 10527 10528 10529 shared_archive_member_spec= 10530case $host,$enable_shared in 10531power*-*-aix[5-9]*,yes) 10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10533$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 10534 10535# Check whether --with-aix-soname was given. 10536if test "${with_aix_soname+set}" = set; then : 10537 withval=$with_aix_soname; case $withval in 10538 aix|svr4|both) 10539 ;; 10540 *) 10541 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10542 ;; 10543 esac 10544 lt_cv_with_aix_soname=$with_aix_soname 10545else 10546 if ${lt_cv_with_aix_soname+:} false; then : 10547 $as_echo_n "(cached) " >&6 10548else 10549 lt_cv_with_aix_soname=aix 10550fi 10551 10552 with_aix_soname=$lt_cv_with_aix_soname 10553fi 10554 10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10556$as_echo "$with_aix_soname" >&6; } 10557 if test aix != "$with_aix_soname"; then 10558 # For the AIX way of multilib, we name the shared archive member 10559 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10560 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10561 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10562 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10563 if test 64 = "${OBJECT_MODE-32}"; then 10564 shared_archive_member_spec=shr_64 10565 else 10566 shared_archive_member_spec=shr 10567 fi 10568 fi 10569 ;; 10570*) 10571 with_aix_soname=aix 10572 ;; 10573esac 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584# This can be used to rebuild libtool when needed 10585LIBTOOL_DEPS=$ltmain 10586 10587# Always use our own libtool. 10588LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619test -z "$LN_S" && LN_S="ln -s" 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634if test -n "${ZSH_VERSION+set}"; then 10635 setopt NO_GLOB_SUBST 10636fi 10637 10638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10639$as_echo_n "checking for objdir... " >&6; } 10640if ${lt_cv_objdir+:} false; then : 10641 $as_echo_n "(cached) " >&6 10642else 10643 rm -f .libs 2>/dev/null 10644mkdir .libs 2>/dev/null 10645if test -d .libs; then 10646 lt_cv_objdir=.libs 10647else 10648 # MS-DOS does not allow filenames that begin with a dot. 10649 lt_cv_objdir=_libs 10650fi 10651rmdir .libs 2>/dev/null 10652fi 10653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10654$as_echo "$lt_cv_objdir" >&6; } 10655objdir=$lt_cv_objdir 10656 10657 10658 10659 10660 10661cat >>confdefs.h <<_ACEOF 10662#define LT_OBJDIR "$lt_cv_objdir/" 10663_ACEOF 10664 10665 10666 10667 10668case $host_os in 10669aix3*) 10670 # AIX sometimes has problems with the GCC collect2 program. For some 10671 # reason, if we set the COLLECT_NAMES environment variable, the problems 10672 # vanish in a puff of smoke. 10673 if test set != "${COLLECT_NAMES+set}"; then 10674 COLLECT_NAMES= 10675 export COLLECT_NAMES 10676 fi 10677 ;; 10678esac 10679 10680# Global variables: 10681ofile=libtool 10682can_build_shared=yes 10683 10684# All known linkers require a '.a' archive for static linking (except MSVC, 10685# which needs '.lib'). 10686libext=a 10687 10688with_gnu_ld=$lt_cv_prog_gnu_ld 10689 10690old_CC=$CC 10691old_CFLAGS=$CFLAGS 10692 10693# Set sane defaults for various variables 10694test -z "$CC" && CC=cc 10695test -z "$LTCC" && LTCC=$CC 10696test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10697test -z "$LD" && LD=ld 10698test -z "$ac_objext" && ac_objext=o 10699 10700func_cc_basename $compiler 10701cc_basename=$func_cc_basename_result 10702 10703 10704# Only perform the check for file, if the check method requires it 10705test -z "$MAGIC_CMD" && MAGIC_CMD=file 10706case $deplibs_check_method in 10707file_magic*) 10708 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10710$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10711if ${lt_cv_path_MAGIC_CMD+:} false; then : 10712 $as_echo_n "(cached) " >&6 10713else 10714 case $MAGIC_CMD in 10715[\\/*] | ?:[\\/]*) 10716 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10717 ;; 10718*) 10719 lt_save_MAGIC_CMD=$MAGIC_CMD 10720 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10721 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10722 for ac_dir in $ac_dummy; do 10723 IFS=$lt_save_ifs 10724 test -z "$ac_dir" && ac_dir=. 10725 if test -f "$ac_dir/${ac_tool_prefix}file"; then 10726 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 10727 if test -n "$file_magic_test_file"; then 10728 case $deplibs_check_method in 10729 "file_magic "*) 10730 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10731 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10732 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10733 $EGREP "$file_magic_regex" > /dev/null; then 10734 : 10735 else 10736 cat <<_LT_EOF 1>&2 10737 10738*** Warning: the command libtool uses to detect shared libraries, 10739*** $file_magic_cmd, produces output that libtool cannot recognize. 10740*** The result is that libtool may fail to recognize shared libraries 10741*** as such. This will affect the creation of libtool libraries that 10742*** depend on shared libraries, but programs linked with such libtool 10743*** libraries will work regardless of this problem. Nevertheless, you 10744*** may want to report the problem to your system manager and/or to 10745*** bug-libtool@gnu.org 10746 10747_LT_EOF 10748 fi ;; 10749 esac 10750 fi 10751 break 10752 fi 10753 done 10754 IFS=$lt_save_ifs 10755 MAGIC_CMD=$lt_save_MAGIC_CMD 10756 ;; 10757esac 10758fi 10759 10760MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10761if test -n "$MAGIC_CMD"; then 10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10763$as_echo "$MAGIC_CMD" >&6; } 10764else 10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10766$as_echo "no" >&6; } 10767fi 10768 10769 10770 10771 10772 10773if test -z "$lt_cv_path_MAGIC_CMD"; then 10774 if test -n "$ac_tool_prefix"; then 10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10776$as_echo_n "checking for file... " >&6; } 10777if ${lt_cv_path_MAGIC_CMD+:} false; then : 10778 $as_echo_n "(cached) " >&6 10779else 10780 case $MAGIC_CMD in 10781[\\/*] | ?:[\\/]*) 10782 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10783 ;; 10784*) 10785 lt_save_MAGIC_CMD=$MAGIC_CMD 10786 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10787 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10788 for ac_dir in $ac_dummy; do 10789 IFS=$lt_save_ifs 10790 test -z "$ac_dir" && ac_dir=. 10791 if test -f "$ac_dir/file"; then 10792 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10793 if test -n "$file_magic_test_file"; then 10794 case $deplibs_check_method in 10795 "file_magic "*) 10796 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10797 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10798 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10799 $EGREP "$file_magic_regex" > /dev/null; then 10800 : 10801 else 10802 cat <<_LT_EOF 1>&2 10803 10804*** Warning: the command libtool uses to detect shared libraries, 10805*** $file_magic_cmd, produces output that libtool cannot recognize. 10806*** The result is that libtool may fail to recognize shared libraries 10807*** as such. This will affect the creation of libtool libraries that 10808*** depend on shared libraries, but programs linked with such libtool 10809*** libraries will work regardless of this problem. Nevertheless, you 10810*** may want to report the problem to your system manager and/or to 10811*** bug-libtool@gnu.org 10812 10813_LT_EOF 10814 fi ;; 10815 esac 10816 fi 10817 break 10818 fi 10819 done 10820 IFS=$lt_save_ifs 10821 MAGIC_CMD=$lt_save_MAGIC_CMD 10822 ;; 10823esac 10824fi 10825 10826MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10827if test -n "$MAGIC_CMD"; then 10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10829$as_echo "$MAGIC_CMD" >&6; } 10830else 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10832$as_echo "no" >&6; } 10833fi 10834 10835 10836 else 10837 MAGIC_CMD=: 10838 fi 10839fi 10840 10841 fi 10842 ;; 10843esac 10844 10845# Use C for the default configuration in the libtool script 10846 10847lt_save_CC=$CC 10848ac_ext=c 10849ac_cpp='$CPP $CPPFLAGS' 10850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10852ac_compiler_gnu=$ac_cv_c_compiler_gnu 10853 10854 10855# Source file extension for C test sources. 10856ac_ext=c 10857 10858# Object file extension for compiled C test sources. 10859objext=o 10860objext=$objext 10861 10862# Code to be used in simple compile tests 10863lt_simple_compile_test_code="int some_variable = 0;" 10864 10865# Code to be used in simple link tests 10866lt_simple_link_test_code='int main(){return(0);}' 10867 10868 10869 10870 10871 10872 10873 10874# If no C compiler was specified, use CC. 10875LTCC=${LTCC-"$CC"} 10876 10877# If no C compiler flags were specified, use CFLAGS. 10878LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10879 10880# Allow CC to be a program name with arguments. 10881compiler=$CC 10882 10883# Save the default compiler, since it gets overwritten when the other 10884# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10885compiler_DEFAULT=$CC 10886 10887# save warnings/boilerplate of simple test code 10888ac_outfile=conftest.$ac_objext 10889echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10890eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10891_lt_compiler_boilerplate=`cat conftest.err` 10892$RM conftest* 10893 10894ac_outfile=conftest.$ac_objext 10895echo "$lt_simple_link_test_code" >conftest.$ac_ext 10896eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10897_lt_linker_boilerplate=`cat conftest.err` 10898$RM -r conftest* 10899 10900 10901## CAVEAT EMPTOR: 10902## There is no encapsulation within the following macros, do not change 10903## the running order or otherwise move them around unless you know exactly 10904## what you are doing... 10905if test -n "$compiler"; then 10906 10907lt_prog_compiler_no_builtin_flag= 10908 10909if test yes = "$GCC"; then 10910 case $cc_basename in 10911 nvcc*) 10912 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10913 *) 10914 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10915 esac 10916 10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10918$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10919if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10920 $as_echo_n "(cached) " >&6 10921else 10922 lt_cv_prog_compiler_rtti_exceptions=no 10923 ac_outfile=conftest.$ac_objext 10924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10925 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10926 # Insert the option either (1) after the last *FLAGS variable, or 10927 # (2) before a word containing "conftest.", or (3) at the end. 10928 # Note that $ac_compile itself does not contain backslashes and begins 10929 # with a dollar sign (not a hyphen), so the echo should work correctly. 10930 # The option is referenced via a variable to avoid confusing sed. 10931 lt_compile=`echo "$ac_compile" | $SED \ 10932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10934 -e 's:$: $lt_compiler_flag:'` 10935 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10936 (eval "$lt_compile" 2>conftest.err) 10937 ac_status=$? 10938 cat conftest.err >&5 10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10940 if (exit $ac_status) && test -s "$ac_outfile"; then 10941 # The compiler can only warn and ignore the option if not recognized 10942 # So say no if there are warnings other than the usual output. 10943 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10945 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10946 lt_cv_prog_compiler_rtti_exceptions=yes 10947 fi 10948 fi 10949 $RM conftest* 10950 10951fi 10952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10953$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10954 10955if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10956 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10957else 10958 : 10959fi 10960 10961fi 10962 10963 10964 10965 10966 10967 10968 lt_prog_compiler_wl= 10969lt_prog_compiler_pic= 10970lt_prog_compiler_static= 10971 10972 10973 if test yes = "$GCC"; then 10974 lt_prog_compiler_wl='-Wl,' 10975 lt_prog_compiler_static='-static' 10976 10977 case $host_os in 10978 aix*) 10979 # All AIX code is PIC. 10980 if test ia64 = "$host_cpu"; then 10981 # AIX 5 now supports IA64 processor 10982 lt_prog_compiler_static='-Bstatic' 10983 fi 10984 lt_prog_compiler_pic='-fPIC' 10985 ;; 10986 10987 amigaos*) 10988 case $host_cpu in 10989 powerpc) 10990 # see comment about AmigaOS4 .so support 10991 lt_prog_compiler_pic='-fPIC' 10992 ;; 10993 m68k) 10994 # FIXME: we need at least 68020 code to build shared libraries, but 10995 # adding the '-m68020' flag to GCC prevents building anything better, 10996 # like '-m68040'. 10997 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10998 ;; 10999 esac 11000 ;; 11001 11002 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11003 # PIC is the default for these OSes. 11004 ;; 11005 11006 mingw* | cygwin* | pw32* | os2* | cegcc*) 11007 # This hack is so that the source file can tell whether it is being 11008 # built for inclusion in a dll (and should export symbols for example). 11009 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11010 # (--disable-auto-import) libraries 11011 lt_prog_compiler_pic='-DDLL_EXPORT' 11012 case $host_os in 11013 os2*) 11014 lt_prog_compiler_static='$wl-static' 11015 ;; 11016 esac 11017 ;; 11018 11019 darwin* | rhapsody*) 11020 # PIC is the default on this platform 11021 # Common symbols not allowed in MH_DYLIB files 11022 lt_prog_compiler_pic='-fno-common' 11023 ;; 11024 11025 haiku*) 11026 # PIC is the default for Haiku. 11027 # The "-static" flag exists, but is broken. 11028 lt_prog_compiler_static= 11029 ;; 11030 11031 hpux*) 11032 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11033 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11034 # sets the default TLS model and affects inlining. 11035 case $host_cpu in 11036 hppa*64*) 11037 # +Z the default 11038 ;; 11039 *) 11040 lt_prog_compiler_pic='-fPIC' 11041 ;; 11042 esac 11043 ;; 11044 11045 interix[3-9]*) 11046 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11047 # Instead, we relocate shared libraries at runtime. 11048 ;; 11049 11050 msdosdjgpp*) 11051 # Just because we use GCC doesn't mean we suddenly get shared libraries 11052 # on systems that don't support them. 11053 lt_prog_compiler_can_build_shared=no 11054 enable_shared=no 11055 ;; 11056 11057 *nto* | *qnx*) 11058 # QNX uses GNU C++, but need to define -shared option too, otherwise 11059 # it will coredump. 11060 lt_prog_compiler_pic='-fPIC -shared' 11061 ;; 11062 11063 sysv4*MP*) 11064 if test -d /usr/nec; then 11065 lt_prog_compiler_pic=-Kconform_pic 11066 fi 11067 ;; 11068 11069 *) 11070 lt_prog_compiler_pic='-fPIC' 11071 ;; 11072 esac 11073 11074 case $cc_basename in 11075 nvcc*) # Cuda Compiler Driver 2.2 11076 lt_prog_compiler_wl='-Xlinker ' 11077 if test -n "$lt_prog_compiler_pic"; then 11078 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11079 fi 11080 ;; 11081 esac 11082 else 11083 # PORTME Check for flag to pass linker flags through the system compiler. 11084 case $host_os in 11085 aix*) 11086 lt_prog_compiler_wl='-Wl,' 11087 if test ia64 = "$host_cpu"; then 11088 # AIX 5 now supports IA64 processor 11089 lt_prog_compiler_static='-Bstatic' 11090 else 11091 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11092 fi 11093 ;; 11094 11095 darwin* | rhapsody*) 11096 # PIC is the default on this platform 11097 # Common symbols not allowed in MH_DYLIB files 11098 lt_prog_compiler_pic='-fno-common' 11099 case $cc_basename in 11100 nagfor*) 11101 # NAG Fortran compiler 11102 lt_prog_compiler_wl='-Wl,-Wl,,' 11103 lt_prog_compiler_pic='-PIC' 11104 lt_prog_compiler_static='-Bstatic' 11105 ;; 11106 esac 11107 ;; 11108 11109 mingw* | cygwin* | pw32* | os2* | cegcc*) 11110 # This hack is so that the source file can tell whether it is being 11111 # built for inclusion in a dll (and should export symbols for example). 11112 lt_prog_compiler_pic='-DDLL_EXPORT' 11113 case $host_os in 11114 os2*) 11115 lt_prog_compiler_static='$wl-static' 11116 ;; 11117 esac 11118 ;; 11119 11120 hpux9* | hpux10* | hpux11*) 11121 lt_prog_compiler_wl='-Wl,' 11122 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11123 # not for PA HP-UX. 11124 case $host_cpu in 11125 hppa*64*|ia64*) 11126 # +Z the default 11127 ;; 11128 *) 11129 lt_prog_compiler_pic='+Z' 11130 ;; 11131 esac 11132 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11133 lt_prog_compiler_static='$wl-a ${wl}archive' 11134 ;; 11135 11136 irix5* | irix6* | nonstopux*) 11137 lt_prog_compiler_wl='-Wl,' 11138 # PIC (with -KPIC) is the default. 11139 lt_prog_compiler_static='-non_shared' 11140 ;; 11141 11142 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11143 case $cc_basename in 11144 # old Intel for x86_64, which still supported -KPIC. 11145 ecc*) 11146 lt_prog_compiler_wl='-Wl,' 11147 lt_prog_compiler_pic='-KPIC' 11148 lt_prog_compiler_static='-static' 11149 ;; 11150 # icc used to be incompatible with GCC. 11151 # ICC 10 doesn't accept -KPIC any more. 11152 icc* | ifort*) 11153 lt_prog_compiler_wl='-Wl,' 11154 lt_prog_compiler_pic='-fPIC' 11155 lt_prog_compiler_static='-static' 11156 ;; 11157 # Lahey Fortran 8.1. 11158 lf95*) 11159 lt_prog_compiler_wl='-Wl,' 11160 lt_prog_compiler_pic='--shared' 11161 lt_prog_compiler_static='--static' 11162 ;; 11163 nagfor*) 11164 # NAG Fortran compiler 11165 lt_prog_compiler_wl='-Wl,-Wl,,' 11166 lt_prog_compiler_pic='-PIC' 11167 lt_prog_compiler_static='-Bstatic' 11168 ;; 11169 tcc*) 11170 # Fabrice Bellard et al's Tiny C Compiler 11171 lt_prog_compiler_wl='-Wl,' 11172 lt_prog_compiler_pic='-fPIC' 11173 lt_prog_compiler_static='-static' 11174 ;; 11175 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11176 # Portland Group compilers (*not* the Pentium gcc compiler, 11177 # which looks to be a dead project) 11178 lt_prog_compiler_wl='-Wl,' 11179 lt_prog_compiler_pic='-fpic' 11180 lt_prog_compiler_static='-Bstatic' 11181 ;; 11182 ccc*) 11183 lt_prog_compiler_wl='-Wl,' 11184 # All Alpha code is PIC. 11185 lt_prog_compiler_static='-non_shared' 11186 ;; 11187 xl* | bgxl* | bgf* | mpixl*) 11188 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11189 lt_prog_compiler_wl='-Wl,' 11190 lt_prog_compiler_pic='-qpic' 11191 lt_prog_compiler_static='-qstaticlink' 11192 ;; 11193 *) 11194 case `$CC -V 2>&1 | sed 5q` in 11195 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11196 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11197 lt_prog_compiler_pic='-KPIC' 11198 lt_prog_compiler_static='-Bstatic' 11199 lt_prog_compiler_wl='' 11200 ;; 11201 *Sun\ F* | *Sun*Fortran*) 11202 lt_prog_compiler_pic='-KPIC' 11203 lt_prog_compiler_static='-Bstatic' 11204 lt_prog_compiler_wl='-Qoption ld ' 11205 ;; 11206 *Sun\ C*) 11207 # Sun C 5.9 11208 lt_prog_compiler_pic='-KPIC' 11209 lt_prog_compiler_static='-Bstatic' 11210 lt_prog_compiler_wl='-Wl,' 11211 ;; 11212 *Intel*\ [CF]*Compiler*) 11213 lt_prog_compiler_wl='-Wl,' 11214 lt_prog_compiler_pic='-fPIC' 11215 lt_prog_compiler_static='-static' 11216 ;; 11217 *Portland\ Group*) 11218 lt_prog_compiler_wl='-Wl,' 11219 lt_prog_compiler_pic='-fpic' 11220 lt_prog_compiler_static='-Bstatic' 11221 ;; 11222 esac 11223 ;; 11224 esac 11225 ;; 11226 11227 newsos6) 11228 lt_prog_compiler_pic='-KPIC' 11229 lt_prog_compiler_static='-Bstatic' 11230 ;; 11231 11232 *nto* | *qnx*) 11233 # QNX uses GNU C++, but need to define -shared option too, otherwise 11234 # it will coredump. 11235 lt_prog_compiler_pic='-fPIC -shared' 11236 ;; 11237 11238 osf3* | osf4* | osf5*) 11239 lt_prog_compiler_wl='-Wl,' 11240 # All OSF/1 code is PIC. 11241 lt_prog_compiler_static='-non_shared' 11242 ;; 11243 11244 rdos*) 11245 lt_prog_compiler_static='-non_shared' 11246 ;; 11247 11248 solaris*) 11249 lt_prog_compiler_pic='-KPIC' 11250 lt_prog_compiler_static='-Bstatic' 11251 case $cc_basename in 11252 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11253 lt_prog_compiler_wl='-Qoption ld ';; 11254 *) 11255 lt_prog_compiler_wl='-Wl,';; 11256 esac 11257 ;; 11258 11259 sunos4*) 11260 lt_prog_compiler_wl='-Qoption ld ' 11261 lt_prog_compiler_pic='-PIC' 11262 lt_prog_compiler_static='-Bstatic' 11263 ;; 11264 11265 sysv4 | sysv4.2uw2* | sysv4.3*) 11266 lt_prog_compiler_wl='-Wl,' 11267 lt_prog_compiler_pic='-KPIC' 11268 lt_prog_compiler_static='-Bstatic' 11269 ;; 11270 11271 sysv4*MP*) 11272 if test -d /usr/nec; then 11273 lt_prog_compiler_pic='-Kconform_pic' 11274 lt_prog_compiler_static='-Bstatic' 11275 fi 11276 ;; 11277 11278 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11279 lt_prog_compiler_wl='-Wl,' 11280 lt_prog_compiler_pic='-KPIC' 11281 lt_prog_compiler_static='-Bstatic' 11282 ;; 11283 11284 unicos*) 11285 lt_prog_compiler_wl='-Wl,' 11286 lt_prog_compiler_can_build_shared=no 11287 ;; 11288 11289 uts4*) 11290 lt_prog_compiler_pic='-pic' 11291 lt_prog_compiler_static='-Bstatic' 11292 ;; 11293 11294 *) 11295 lt_prog_compiler_can_build_shared=no 11296 ;; 11297 esac 11298 fi 11299 11300case $host_os in 11301 # For platforms that do not support PIC, -DPIC is meaningless: 11302 *djgpp*) 11303 lt_prog_compiler_pic= 11304 ;; 11305 *) 11306 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11307 ;; 11308esac 11309 11310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11311$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11312if ${lt_cv_prog_compiler_pic+:} false; then : 11313 $as_echo_n "(cached) " >&6 11314else 11315 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11316fi 11317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11318$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11319lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11320 11321# 11322# Check to make sure the PIC flag actually works. 11323# 11324if test -n "$lt_prog_compiler_pic"; then 11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11326$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11327if ${lt_cv_prog_compiler_pic_works+:} false; then : 11328 $as_echo_n "(cached) " >&6 11329else 11330 lt_cv_prog_compiler_pic_works=no 11331 ac_outfile=conftest.$ac_objext 11332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11333 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11334 # Insert the option either (1) after the last *FLAGS variable, or 11335 # (2) before a word containing "conftest.", or (3) at the end. 11336 # Note that $ac_compile itself does not contain backslashes and begins 11337 # with a dollar sign (not a hyphen), so the echo should work correctly. 11338 # The option is referenced via a variable to avoid confusing sed. 11339 lt_compile=`echo "$ac_compile" | $SED \ 11340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11342 -e 's:$: $lt_compiler_flag:'` 11343 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11344 (eval "$lt_compile" 2>conftest.err) 11345 ac_status=$? 11346 cat conftest.err >&5 11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11348 if (exit $ac_status) && test -s "$ac_outfile"; then 11349 # The compiler can only warn and ignore the option if not recognized 11350 # So say no if there are warnings other than the usual output. 11351 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11352 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11353 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11354 lt_cv_prog_compiler_pic_works=yes 11355 fi 11356 fi 11357 $RM conftest* 11358 11359fi 11360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11361$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11362 11363if test yes = "$lt_cv_prog_compiler_pic_works"; then 11364 case $lt_prog_compiler_pic in 11365 "" | " "*) ;; 11366 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11367 esac 11368else 11369 lt_prog_compiler_pic= 11370 lt_prog_compiler_can_build_shared=no 11371fi 11372 11373fi 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385# 11386# Check to make sure the static flag actually works. 11387# 11388wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11390$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11391if ${lt_cv_prog_compiler_static_works+:} false; then : 11392 $as_echo_n "(cached) " >&6 11393else 11394 lt_cv_prog_compiler_static_works=no 11395 save_LDFLAGS=$LDFLAGS 11396 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11397 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11398 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11399 # The linker can only warn and ignore the option if not recognized 11400 # So say no if there are warnings 11401 if test -s conftest.err; then 11402 # Append any errors to the config.log. 11403 cat conftest.err 1>&5 11404 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11406 if diff conftest.exp conftest.er2 >/dev/null; then 11407 lt_cv_prog_compiler_static_works=yes 11408 fi 11409 else 11410 lt_cv_prog_compiler_static_works=yes 11411 fi 11412 fi 11413 $RM -r conftest* 11414 LDFLAGS=$save_LDFLAGS 11415 11416fi 11417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11418$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11419 11420if test yes = "$lt_cv_prog_compiler_static_works"; then 11421 : 11422else 11423 lt_prog_compiler_static= 11424fi 11425 11426 11427 11428 11429 11430 11431 11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11433$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11434if ${lt_cv_prog_compiler_c_o+:} false; then : 11435 $as_echo_n "(cached) " >&6 11436else 11437 lt_cv_prog_compiler_c_o=no 11438 $RM -r conftest 2>/dev/null 11439 mkdir conftest 11440 cd conftest 11441 mkdir out 11442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11443 11444 lt_compiler_flag="-o out/conftest2.$ac_objext" 11445 # Insert the option either (1) after the last *FLAGS variable, or 11446 # (2) before a word containing "conftest.", or (3) at the end. 11447 # Note that $ac_compile itself does not contain backslashes and begins 11448 # with a dollar sign (not a hyphen), so the echo should work correctly. 11449 lt_compile=`echo "$ac_compile" | $SED \ 11450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11452 -e 's:$: $lt_compiler_flag:'` 11453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11454 (eval "$lt_compile" 2>out/conftest.err) 11455 ac_status=$? 11456 cat out/conftest.err >&5 11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11458 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11459 then 11460 # The compiler can only warn and ignore the option if not recognized 11461 # So say no if there are warnings 11462 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11463 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11464 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11465 lt_cv_prog_compiler_c_o=yes 11466 fi 11467 fi 11468 chmod u+w . 2>&5 11469 $RM conftest* 11470 # SGI C++ compiler will create directory out/ii_files/ for 11471 # template instantiation 11472 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11473 $RM out/* && rmdir out 11474 cd .. 11475 $RM -r conftest 11476 $RM conftest* 11477 11478fi 11479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11480$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11481 11482 11483 11484 11485 11486 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11488$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11489if ${lt_cv_prog_compiler_c_o+:} false; then : 11490 $as_echo_n "(cached) " >&6 11491else 11492 lt_cv_prog_compiler_c_o=no 11493 $RM -r conftest 2>/dev/null 11494 mkdir conftest 11495 cd conftest 11496 mkdir out 11497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11498 11499 lt_compiler_flag="-o out/conftest2.$ac_objext" 11500 # Insert the option either (1) after the last *FLAGS variable, or 11501 # (2) before a word containing "conftest.", or (3) at the end. 11502 # Note that $ac_compile itself does not contain backslashes and begins 11503 # with a dollar sign (not a hyphen), so the echo should work correctly. 11504 lt_compile=`echo "$ac_compile" | $SED \ 11505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11507 -e 's:$: $lt_compiler_flag:'` 11508 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11509 (eval "$lt_compile" 2>out/conftest.err) 11510 ac_status=$? 11511 cat out/conftest.err >&5 11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11513 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11514 then 11515 # The compiler can only warn and ignore the option if not recognized 11516 # So say no if there are warnings 11517 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11520 lt_cv_prog_compiler_c_o=yes 11521 fi 11522 fi 11523 chmod u+w . 2>&5 11524 $RM conftest* 11525 # SGI C++ compiler will create directory out/ii_files/ for 11526 # template instantiation 11527 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11528 $RM out/* && rmdir out 11529 cd .. 11530 $RM -r conftest 11531 $RM conftest* 11532 11533fi 11534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11535$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11536 11537 11538 11539 11540hard_links=nottested 11541if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11542 # do not overwrite the value of need_locks provided by the user 11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11544$as_echo_n "checking if we can lock with hard links... " >&6; } 11545 hard_links=yes 11546 $RM conftest* 11547 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11548 touch conftest.a 11549 ln conftest.a conftest.b 2>&5 || hard_links=no 11550 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11552$as_echo "$hard_links" >&6; } 11553 if test no = "$hard_links"; then 11554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11555$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11556 need_locks=warn 11557 fi 11558else 11559 need_locks=no 11560fi 11561 11562 11563 11564 11565 11566 11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11568$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11569 11570 runpath_var= 11571 allow_undefined_flag= 11572 always_export_symbols=no 11573 archive_cmds= 11574 archive_expsym_cmds= 11575 compiler_needs_object=no 11576 enable_shared_with_static_runtimes=no 11577 export_dynamic_flag_spec= 11578 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11579 hardcode_automatic=no 11580 hardcode_direct=no 11581 hardcode_direct_absolute=no 11582 hardcode_libdir_flag_spec= 11583 hardcode_libdir_separator= 11584 hardcode_minus_L=no 11585 hardcode_shlibpath_var=unsupported 11586 inherit_rpath=no 11587 link_all_deplibs=unknown 11588 module_cmds= 11589 module_expsym_cmds= 11590 old_archive_from_new_cmds= 11591 old_archive_from_expsyms_cmds= 11592 thread_safe_flag_spec= 11593 whole_archive_flag_spec= 11594 # include_expsyms should be a list of space-separated symbols to be *always* 11595 # included in the symbol list 11596 include_expsyms= 11597 # exclude_expsyms can be an extended regexp of symbols to exclude 11598 # it will be wrapped by ' (' and ')$', so one must not match beginning or 11599 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 11600 # as well as any symbol that contains 'd'. 11601 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11602 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11603 # platforms (ab)use it in PIC code, but their linkers get confused if 11604 # the symbol is explicitly referenced. Since portable code cannot 11605 # rely on this symbol name, it's probably fine to never include it in 11606 # preloaded symbol tables. 11607 # Exclude shared library initialization/finalization symbols. 11608 extract_expsyms_cmds= 11609 11610 case $host_os in 11611 cygwin* | mingw* | pw32* | cegcc*) 11612 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11613 # When not using gcc, we currently assume that we are using 11614 # Microsoft Visual C++. 11615 if test yes != "$GCC"; then 11616 with_gnu_ld=no 11617 fi 11618 ;; 11619 interix*) 11620 # we just hope/assume this is gcc and not c89 (= MSVC++) 11621 with_gnu_ld=yes 11622 ;; 11623 openbsd* | bitrig*) 11624 with_gnu_ld=no 11625 ;; 11626 esac 11627 11628 ld_shlibs=yes 11629 11630 # On some targets, GNU ld is compatible enough with the native linker 11631 # that we're better off using the native interface for both. 11632 lt_use_gnu_ld_interface=no 11633 if test yes = "$with_gnu_ld"; then 11634 case $host_os in 11635 aix*) 11636 # The AIX port of GNU ld has always aspired to compatibility 11637 # with the native linker. However, as the warning in the GNU ld 11638 # block says, versions before 2.19.5* couldn't really create working 11639 # shared libraries, regardless of the interface used. 11640 case `$LD -v 2>&1` in 11641 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11642 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11643 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11644 *) 11645 lt_use_gnu_ld_interface=yes 11646 ;; 11647 esac 11648 ;; 11649 *) 11650 lt_use_gnu_ld_interface=yes 11651 ;; 11652 esac 11653 fi 11654 11655 if test yes = "$lt_use_gnu_ld_interface"; then 11656 # If archive_cmds runs LD, not CC, wlarc should be empty 11657 wlarc='$wl' 11658 11659 # Set some defaults for GNU ld with shared library support. These 11660 # are reset later if shared libraries are not supported. Putting them 11661 # here allows them to be overridden if necessary. 11662 runpath_var=LD_RUN_PATH 11663 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11664 export_dynamic_flag_spec='$wl--export-dynamic' 11665 # ancient GNU ld didn't support --whole-archive et. al. 11666 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11667 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 11668 else 11669 whole_archive_flag_spec= 11670 fi 11671 supports_anon_versioning=no 11672 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 11673 *GNU\ gold*) supports_anon_versioning=yes ;; 11674 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11675 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11676 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11677 *\ 2.11.*) ;; # other 2.11 versions 11678 *) supports_anon_versioning=yes ;; 11679 esac 11680 11681 # See if GNU ld supports shared libraries. 11682 case $host_os in 11683 aix[3-9]*) 11684 # On AIX/PPC, the GNU linker is very broken 11685 if test ia64 != "$host_cpu"; then 11686 ld_shlibs=no 11687 cat <<_LT_EOF 1>&2 11688 11689*** Warning: the GNU linker, at least up to release 2.19, is reported 11690*** to be unable to reliably create shared libraries on AIX. 11691*** Therefore, libtool is disabling shared libraries support. If you 11692*** really care for shared libraries, you may want to install binutils 11693*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11694*** You will then need to restart the configuration process. 11695 11696_LT_EOF 11697 fi 11698 ;; 11699 11700 amigaos*) 11701 case $host_cpu in 11702 powerpc) 11703 # see comment about AmigaOS4 .so support 11704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11705 archive_expsym_cmds='' 11706 ;; 11707 m68k) 11708 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)' 11709 hardcode_libdir_flag_spec='-L$libdir' 11710 hardcode_minus_L=yes 11711 ;; 11712 esac 11713 ;; 11714 11715 beos*) 11716 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11717 allow_undefined_flag=unsupported 11718 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11719 # support --undefined. This deserves some investigation. FIXME 11720 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11721 else 11722 ld_shlibs=no 11723 fi 11724 ;; 11725 11726 cygwin* | mingw* | pw32* | cegcc*) 11727 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11728 # as there is no search path for DLLs. 11729 hardcode_libdir_flag_spec='-L$libdir' 11730 export_dynamic_flag_spec='$wl--export-all-symbols' 11731 allow_undefined_flag=unsupported 11732 always_export_symbols=no 11733 enable_shared_with_static_runtimes=yes 11734 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' 11735 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11736 11737 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11739 # If the export-symbols file already is a .def file, use it as 11740 # is; otherwise, prepend EXPORTS... 11741 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11742 cp $export_symbols $output_objdir/$soname.def; 11743 else 11744 echo EXPORTS > $output_objdir/$soname.def; 11745 cat $export_symbols >> $output_objdir/$soname.def; 11746 fi~ 11747 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11748 else 11749 ld_shlibs=no 11750 fi 11751 ;; 11752 11753 haiku*) 11754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11755 link_all_deplibs=yes 11756 ;; 11757 11758 os2*) 11759 hardcode_libdir_flag_spec='-L$libdir' 11760 hardcode_minus_L=yes 11761 allow_undefined_flag=unsupported 11762 shrext_cmds=.dll 11763 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11764 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11765 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11766 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11767 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11768 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11769 emximp -o $lib $output_objdir/$libname.def' 11770 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11771 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11772 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11773 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11774 prefix_cmds="$SED"~ 11775 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11776 prefix_cmds="$prefix_cmds -e 1d"; 11777 fi~ 11778 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11779 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11780 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11781 emximp -o $lib $output_objdir/$libname.def' 11782 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11783 enable_shared_with_static_runtimes=yes 11784 ;; 11785 11786 interix[3-9]*) 11787 hardcode_direct=no 11788 hardcode_shlibpath_var=no 11789 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11790 export_dynamic_flag_spec='$wl-E' 11791 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11792 # Instead, shared libraries are loaded at an image base (0x10000000 by 11793 # default) and relocated if they conflict, which is a slow very memory 11794 # consuming and fragmenting process. To avoid this, we pick a random, 11795 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11796 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11797 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11798 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' 11799 ;; 11800 11801 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11802 tmp_diet=no 11803 if test linux-dietlibc = "$host_os"; then 11804 case $cc_basename in 11805 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11806 esac 11807 fi 11808 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11809 && test no = "$tmp_diet" 11810 then 11811 tmp_addflag=' $pic_flag' 11812 tmp_sharedflag='-shared' 11813 case $cc_basename,$host_cpu in 11814 pgcc*) # Portland Group C compiler 11815 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' 11816 tmp_addflag=' $pic_flag' 11817 ;; 11818 pgf77* | pgf90* | pgf95* | pgfortran*) 11819 # Portland Group f77 and f90 compilers 11820 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' 11821 tmp_addflag=' $pic_flag -Mnomain' ;; 11822 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11823 tmp_addflag=' -i_dynamic' ;; 11824 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11825 tmp_addflag=' -i_dynamic -nofor_main' ;; 11826 ifc* | ifort*) # Intel Fortran compiler 11827 tmp_addflag=' -nofor_main' ;; 11828 lf95*) # Lahey Fortran 8.1 11829 whole_archive_flag_spec= 11830 tmp_sharedflag='--shared' ;; 11831 nagfor*) # NAGFOR 5.3 11832 tmp_sharedflag='-Wl,-shared' ;; 11833 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11834 tmp_sharedflag='-qmkshrobj' 11835 tmp_addflag= ;; 11836 nvcc*) # Cuda Compiler Driver 2.2 11837 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' 11838 compiler_needs_object=yes 11839 ;; 11840 esac 11841 case `$CC -V 2>&1 | sed 5q` in 11842 *Sun\ C*) # Sun C 5.9 11843 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' 11844 compiler_needs_object=yes 11845 tmp_sharedflag='-G' ;; 11846 *Sun\ F*) # Sun Fortran 8.3 11847 tmp_sharedflag='-G' ;; 11848 esac 11849 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11850 11851 if test yes = "$supports_anon_versioning"; then 11852 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11853 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11854 echo "local: *; };" >> $output_objdir/$libname.ver~ 11855 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11856 fi 11857 11858 case $cc_basename in 11859 tcc*) 11860 export_dynamic_flag_spec='-rdynamic' 11861 ;; 11862 xlf* | bgf* | bgxlf* | mpixlf*) 11863 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11864 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11865 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11866 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11867 if test yes = "$supports_anon_versioning"; then 11868 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11869 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11870 echo "local: *; };" >> $output_objdir/$libname.ver~ 11871 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11872 fi 11873 ;; 11874 esac 11875 else 11876 ld_shlibs=no 11877 fi 11878 ;; 11879 11880 netbsd*) 11881 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11882 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11883 wlarc= 11884 else 11885 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11886 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11887 fi 11888 ;; 11889 11890 solaris*) 11891 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11892 ld_shlibs=no 11893 cat <<_LT_EOF 1>&2 11894 11895*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11896*** create shared libraries on Solaris systems. Therefore, libtool 11897*** is disabling shared libraries support. We urge you to upgrade GNU 11898*** binutils to release 2.9.1 or newer. Another option is to modify 11899*** your PATH or compiler configuration so that the native linker is 11900*** used, and then restart. 11901 11902_LT_EOF 11903 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11904 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11905 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11906 else 11907 ld_shlibs=no 11908 fi 11909 ;; 11910 11911 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11912 case `$LD -v 2>&1` in 11913 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11914 ld_shlibs=no 11915 cat <<_LT_EOF 1>&2 11916 11917*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11918*** reliably create shared libraries on SCO systems. Therefore, libtool 11919*** is disabling shared libraries support. We urge you to upgrade GNU 11920*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11921*** your PATH or compiler configuration so that the native linker is 11922*** used, and then restart. 11923 11924_LT_EOF 11925 ;; 11926 *) 11927 # For security reasons, it is highly recommended that you always 11928 # use absolute paths for naming shared libraries, and exclude the 11929 # DT_RUNPATH tag from executables and libraries. But doing so 11930 # requires that you compile everything twice, which is a pain. 11931 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11932 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11934 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11935 else 11936 ld_shlibs=no 11937 fi 11938 ;; 11939 esac 11940 ;; 11941 11942 sunos4*) 11943 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11944 wlarc= 11945 hardcode_direct=yes 11946 hardcode_shlibpath_var=no 11947 ;; 11948 11949 *) 11950 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11951 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11952 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11953 else 11954 ld_shlibs=no 11955 fi 11956 ;; 11957 esac 11958 11959 if test no = "$ld_shlibs"; then 11960 runpath_var= 11961 hardcode_libdir_flag_spec= 11962 export_dynamic_flag_spec= 11963 whole_archive_flag_spec= 11964 fi 11965 else 11966 # PORTME fill in a description of your system's linker (not GNU ld) 11967 case $host_os in 11968 aix3*) 11969 allow_undefined_flag=unsupported 11970 always_export_symbols=yes 11971 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' 11972 # Note: this linker hardcodes the directories in LIBPATH if there 11973 # are no directories specified by -L. 11974 hardcode_minus_L=yes 11975 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11976 # Neither direct hardcoding nor static linking is supported with a 11977 # broken collect2. 11978 hardcode_direct=unsupported 11979 fi 11980 ;; 11981 11982 aix[4-9]*) 11983 if test ia64 = "$host_cpu"; then 11984 # On IA64, the linker does run time linking by default, so we don't 11985 # have to do anything special. 11986 aix_use_runtimelinking=no 11987 exp_sym_flag='-Bexport' 11988 no_entry_flag= 11989 else 11990 # If we're using GNU nm, then we don't want the "-C" option. 11991 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11992 # Without the "-l" option, or with the "-B" option, AIX nm treats 11993 # weak defined symbols like other global defined symbols, whereas 11994 # GNU nm marks them as "W". 11995 # While the 'weak' keyword is ignored in the Export File, we need 11996 # it in the Import File for the 'aix-soname' feature, so we have 11997 # to replace the "-B" option with "-P" for AIX nm. 11998 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11999 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' 12000 else 12001 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' 12002 fi 12003 aix_use_runtimelinking=no 12004 12005 # Test if we are trying to use run time linking or normal 12006 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12007 # have runtime linking enabled, and use it for executables. 12008 # For shared libraries, we enable/disable runtime linking 12009 # depending on the kind of the shared library created - 12010 # when "with_aix_soname,aix_use_runtimelinking" is: 12011 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 12012 # "aix,yes" lib.so shared, rtl:yes, for executables 12013 # lib.a static archive 12014 # "both,no" lib.so.V(shr.o) shared, rtl:yes 12015 # lib.a(lib.so.V) shared, rtl:no, for executables 12016 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 12017 # lib.a(lib.so.V) shared, rtl:no 12018 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 12019 # lib.a static archive 12020 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12021 for ld_flag in $LDFLAGS; do 12022 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 12023 aix_use_runtimelinking=yes 12024 break 12025 fi 12026 done 12027 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 12028 # With aix-soname=svr4, we create the lib.so.V shared archives only, 12029 # so we don't have lib.a shared libs to link our executables. 12030 # We have to force runtime linking in this case. 12031 aix_use_runtimelinking=yes 12032 LDFLAGS="$LDFLAGS -Wl,-brtl" 12033 fi 12034 ;; 12035 esac 12036 12037 exp_sym_flag='-bexport' 12038 no_entry_flag='-bnoentry' 12039 fi 12040 12041 # When large executables or shared objects are built, AIX ld can 12042 # have problems creating the table of contents. If linking a library 12043 # or program results in "error TOC overflow" add -mminimal-toc to 12044 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12045 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12046 12047 archive_cmds='' 12048 hardcode_direct=yes 12049 hardcode_direct_absolute=yes 12050 hardcode_libdir_separator=':' 12051 link_all_deplibs=yes 12052 file_list_spec='$wl-f,' 12053 case $with_aix_soname,$aix_use_runtimelinking in 12054 aix,*) ;; # traditional, no import file 12055 svr4,* | *,yes) # use import file 12056 # The Import File defines what to hardcode. 12057 hardcode_direct=no 12058 hardcode_direct_absolute=no 12059 ;; 12060 esac 12061 12062 if test yes = "$GCC"; then 12063 case $host_os in aix4.[012]|aix4.[012].*) 12064 # We only want to do this on AIX 4.2 and lower, the check 12065 # below for broken collect2 doesn't work under 4.3+ 12066 collect2name=`$CC -print-prog-name=collect2` 12067 if test -f "$collect2name" && 12068 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12069 then 12070 # We have reworked collect2 12071 : 12072 else 12073 # We have old collect2 12074 hardcode_direct=unsupported 12075 # It fails to find uninstalled libraries when the uninstalled 12076 # path is not listed in the libpath. Setting hardcode_minus_L 12077 # to unsupported forces relinking 12078 hardcode_minus_L=yes 12079 hardcode_libdir_flag_spec='-L$libdir' 12080 hardcode_libdir_separator= 12081 fi 12082 ;; 12083 esac 12084 shared_flag='-shared' 12085 if test yes = "$aix_use_runtimelinking"; then 12086 shared_flag="$shared_flag "'$wl-G' 12087 fi 12088 # Need to ensure runtime linking is disabled for the traditional 12089 # shared library, or the linker may eventually find shared libraries 12090 # /with/ Import File - we do not want to mix them. 12091 shared_flag_aix='-shared' 12092 shared_flag_svr4='-shared $wl-G' 12093 else 12094 # not using gcc 12095 if test ia64 = "$host_cpu"; then 12096 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12097 # chokes on -Wl,-G. The following line is correct: 12098 shared_flag='-G' 12099 else 12100 if test yes = "$aix_use_runtimelinking"; then 12101 shared_flag='$wl-G' 12102 else 12103 shared_flag='$wl-bM:SRE' 12104 fi 12105 shared_flag_aix='$wl-bM:SRE' 12106 shared_flag_svr4='$wl-G' 12107 fi 12108 fi 12109 12110 export_dynamic_flag_spec='$wl-bexpall' 12111 # It seems that -bexpall does not export symbols beginning with 12112 # underscore (_), so it is better to generate a list of symbols to export. 12113 always_export_symbols=yes 12114 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12115 # Warning - without using the other runtime loading flags (-brtl), 12116 # -berok will link without error, but may produce a broken library. 12117 allow_undefined_flag='-berok' 12118 # Determine the default libpath from the value encoded in an 12119 # empty executable. 12120 if test set = "${lt_cv_aix_libpath+set}"; then 12121 aix_libpath=$lt_cv_aix_libpath 12122else 12123 if ${lt_cv_aix_libpath_+:} false; then : 12124 $as_echo_n "(cached) " >&6 12125else 12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12127/* end confdefs.h. */ 12128 12129int 12130main () 12131{ 12132 12133 ; 12134 return 0; 12135} 12136_ACEOF 12137if ac_fn_c_try_link "$LINENO"; then : 12138 12139 lt_aix_libpath_sed=' 12140 /Import File Strings/,/^$/ { 12141 /^0/ { 12142 s/^0 *\([^ ]*\) *$/\1/ 12143 p 12144 } 12145 }' 12146 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12147 # Check for a 64-bit object if we didn't find anything. 12148 if test -z "$lt_cv_aix_libpath_"; then 12149 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12150 fi 12151fi 12152rm -f core conftest.err conftest.$ac_objext \ 12153 conftest$ac_exeext conftest.$ac_ext 12154 if test -z "$lt_cv_aix_libpath_"; then 12155 lt_cv_aix_libpath_=/usr/lib:/lib 12156 fi 12157 12158fi 12159 12160 aix_libpath=$lt_cv_aix_libpath_ 12161fi 12162 12163 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12164 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 12165 else 12166 if test ia64 = "$host_cpu"; then 12167 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12168 allow_undefined_flag="-z nodefs" 12169 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" 12170 else 12171 # Determine the default libpath from the value encoded in an 12172 # empty executable. 12173 if test set = "${lt_cv_aix_libpath+set}"; then 12174 aix_libpath=$lt_cv_aix_libpath 12175else 12176 if ${lt_cv_aix_libpath_+:} false; then : 12177 $as_echo_n "(cached) " >&6 12178else 12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12180/* end confdefs.h. */ 12181 12182int 12183main () 12184{ 12185 12186 ; 12187 return 0; 12188} 12189_ACEOF 12190if ac_fn_c_try_link "$LINENO"; then : 12191 12192 lt_aix_libpath_sed=' 12193 /Import File Strings/,/^$/ { 12194 /^0/ { 12195 s/^0 *\([^ ]*\) *$/\1/ 12196 p 12197 } 12198 }' 12199 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12200 # Check for a 64-bit object if we didn't find anything. 12201 if test -z "$lt_cv_aix_libpath_"; then 12202 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12203 fi 12204fi 12205rm -f core conftest.err conftest.$ac_objext \ 12206 conftest$ac_exeext conftest.$ac_ext 12207 if test -z "$lt_cv_aix_libpath_"; then 12208 lt_cv_aix_libpath_=/usr/lib:/lib 12209 fi 12210 12211fi 12212 12213 aix_libpath=$lt_cv_aix_libpath_ 12214fi 12215 12216 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12217 # Warning - without using the other run time loading flags, 12218 # -berok will link without error, but may produce a broken library. 12219 no_undefined_flag=' $wl-bernotok' 12220 allow_undefined_flag=' $wl-berok' 12221 if test yes = "$with_gnu_ld"; then 12222 # We only use this code for GNU lds that support --whole-archive. 12223 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12224 else 12225 # Exported symbols can be pulled into shared objects from archives 12226 whole_archive_flag_spec='$convenience' 12227 fi 12228 archive_cmds_need_lc=yes 12229 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12230 # -brtl affects multiple linker settings, -berok does not and is overridden later 12231 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12232 if test svr4 != "$with_aix_soname"; then 12233 # This is similar to how AIX traditionally builds its shared libraries. 12234 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' 12235 fi 12236 if test aix != "$with_aix_soname"; then 12237 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' 12238 else 12239 # used by -dlpreopen to get the symbols 12240 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12241 fi 12242 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12243 fi 12244 fi 12245 ;; 12246 12247 amigaos*) 12248 case $host_cpu in 12249 powerpc) 12250 # see comment about AmigaOS4 .so support 12251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12252 archive_expsym_cmds='' 12253 ;; 12254 m68k) 12255 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)' 12256 hardcode_libdir_flag_spec='-L$libdir' 12257 hardcode_minus_L=yes 12258 ;; 12259 esac 12260 ;; 12261 12262 bsdi[45]*) 12263 export_dynamic_flag_spec=-rdynamic 12264 ;; 12265 12266 cygwin* | mingw* | pw32* | cegcc*) 12267 # When not using gcc, we currently assume that we are using 12268 # Microsoft Visual C++. 12269 # hardcode_libdir_flag_spec is actually meaningless, as there is 12270 # no search path for DLLs. 12271 case $cc_basename in 12272 cl*) 12273 # Native MSVC 12274 hardcode_libdir_flag_spec=' ' 12275 allow_undefined_flag=unsupported 12276 always_export_symbols=yes 12277 file_list_spec='@' 12278 # Tell ltmain to make .lib files, not .a files. 12279 libext=lib 12280 # Tell ltmain to make .dll files, not .so files. 12281 shrext_cmds=.dll 12282 # FIXME: Setting linknames here is a bad hack. 12283 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12284 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12285 cp "$export_symbols" "$output_objdir/$soname.def"; 12286 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12287 else 12288 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12289 fi~ 12290 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12291 linknames=' 12292 # The linker will not automatically build a static lib if we build a DLL. 12293 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12294 enable_shared_with_static_runtimes=yes 12295 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12296 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12297 # Don't use ranlib 12298 old_postinstall_cmds='chmod 644 $oldlib' 12299 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12300 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12301 case $lt_outputfile in 12302 *.exe|*.EXE) ;; 12303 *) 12304 lt_outputfile=$lt_outputfile.exe 12305 lt_tool_outputfile=$lt_tool_outputfile.exe 12306 ;; 12307 esac~ 12308 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12309 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12310 $RM "$lt_outputfile.manifest"; 12311 fi' 12312 ;; 12313 *) 12314 # Assume MSVC wrapper 12315 hardcode_libdir_flag_spec=' ' 12316 allow_undefined_flag=unsupported 12317 # Tell ltmain to make .lib files, not .a files. 12318 libext=lib 12319 # Tell ltmain to make .dll files, not .so files. 12320 shrext_cmds=.dll 12321 # FIXME: Setting linknames here is a bad hack. 12322 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12323 # The linker will automatically build a .lib file if we build a DLL. 12324 old_archive_from_new_cmds='true' 12325 # FIXME: Should let the user specify the lib program. 12326 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12327 enable_shared_with_static_runtimes=yes 12328 ;; 12329 esac 12330 ;; 12331 12332 darwin* | rhapsody*) 12333 12334 12335 archive_cmds_need_lc=no 12336 hardcode_direct=no 12337 hardcode_automatic=yes 12338 hardcode_shlibpath_var=unsupported 12339 if test yes = "$lt_cv_ld_force_load"; then 12340 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\"`' 12341 12342 else 12343 whole_archive_flag_spec='' 12344 fi 12345 link_all_deplibs=yes 12346 allow_undefined_flag=$_lt_dar_allow_undefined 12347 case $cc_basename in 12348 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12349 *) _lt_dar_can_shared=$GCC ;; 12350 esac 12351 if test yes = "$_lt_dar_can_shared"; then 12352 output_verbose_link_cmd=func_echo_all 12353 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12354 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12355 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" 12356 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" 12357 12358 else 12359 ld_shlibs=no 12360 fi 12361 12362 ;; 12363 12364 dgux*) 12365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12366 hardcode_libdir_flag_spec='-L$libdir' 12367 hardcode_shlibpath_var=no 12368 ;; 12369 12370 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12371 # support. Future versions do this automatically, but an explicit c++rt0.o 12372 # does not break anything, and helps significantly (at the cost of a little 12373 # extra space). 12374 freebsd2.2*) 12375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12376 hardcode_libdir_flag_spec='-R$libdir' 12377 hardcode_direct=yes 12378 hardcode_shlibpath_var=no 12379 ;; 12380 12381 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12382 freebsd2.*) 12383 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12384 hardcode_direct=yes 12385 hardcode_minus_L=yes 12386 hardcode_shlibpath_var=no 12387 ;; 12388 12389 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12390 freebsd* | dragonfly*) 12391 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12392 hardcode_libdir_flag_spec='-R$libdir' 12393 hardcode_direct=yes 12394 hardcode_shlibpath_var=no 12395 ;; 12396 12397 hpux9*) 12398 if test yes = "$GCC"; then 12399 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' 12400 else 12401 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' 12402 fi 12403 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12404 hardcode_libdir_separator=: 12405 hardcode_direct=yes 12406 12407 # hardcode_minus_L: Not really in the search PATH, 12408 # but as the default location of the library. 12409 hardcode_minus_L=yes 12410 export_dynamic_flag_spec='$wl-E' 12411 ;; 12412 12413 hpux10*) 12414 if test yes,no = "$GCC,$with_gnu_ld"; then 12415 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12416 else 12417 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12418 fi 12419 if test no = "$with_gnu_ld"; then 12420 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12421 hardcode_libdir_separator=: 12422 hardcode_direct=yes 12423 hardcode_direct_absolute=yes 12424 export_dynamic_flag_spec='$wl-E' 12425 # hardcode_minus_L: Not really in the search PATH, 12426 # but as the default location of the library. 12427 hardcode_minus_L=yes 12428 fi 12429 ;; 12430 12431 hpux11*) 12432 if test yes,no = "$GCC,$with_gnu_ld"; then 12433 case $host_cpu in 12434 hppa*64*) 12435 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12436 ;; 12437 ia64*) 12438 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12439 ;; 12440 *) 12441 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12442 ;; 12443 esac 12444 else 12445 case $host_cpu in 12446 hppa*64*) 12447 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12448 ;; 12449 ia64*) 12450 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12451 ;; 12452 *) 12453 12454 # Older versions of the 11.00 compiler do not understand -b yet 12455 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12457$as_echo_n "checking if $CC understands -b... " >&6; } 12458if ${lt_cv_prog_compiler__b+:} false; then : 12459 $as_echo_n "(cached) " >&6 12460else 12461 lt_cv_prog_compiler__b=no 12462 save_LDFLAGS=$LDFLAGS 12463 LDFLAGS="$LDFLAGS -b" 12464 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12465 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12466 # The linker can only warn and ignore the option if not recognized 12467 # So say no if there are warnings 12468 if test -s conftest.err; then 12469 # Append any errors to the config.log. 12470 cat conftest.err 1>&5 12471 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12473 if diff conftest.exp conftest.er2 >/dev/null; then 12474 lt_cv_prog_compiler__b=yes 12475 fi 12476 else 12477 lt_cv_prog_compiler__b=yes 12478 fi 12479 fi 12480 $RM -r conftest* 12481 LDFLAGS=$save_LDFLAGS 12482 12483fi 12484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12485$as_echo "$lt_cv_prog_compiler__b" >&6; } 12486 12487if test yes = "$lt_cv_prog_compiler__b"; then 12488 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12489else 12490 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12491fi 12492 12493 ;; 12494 esac 12495 fi 12496 if test no = "$with_gnu_ld"; then 12497 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12498 hardcode_libdir_separator=: 12499 12500 case $host_cpu in 12501 hppa*64*|ia64*) 12502 hardcode_direct=no 12503 hardcode_shlibpath_var=no 12504 ;; 12505 *) 12506 hardcode_direct=yes 12507 hardcode_direct_absolute=yes 12508 export_dynamic_flag_spec='$wl-E' 12509 12510 # hardcode_minus_L: Not really in the search PATH, 12511 # but as the default location of the library. 12512 hardcode_minus_L=yes 12513 ;; 12514 esac 12515 fi 12516 ;; 12517 12518 irix5* | irix6* | nonstopux*) 12519 if test yes = "$GCC"; then 12520 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' 12521 # Try to use the -exported_symbol ld option, if it does not 12522 # work, assume that -exports_file does not work either and 12523 # implicitly export all symbols. 12524 # This should be the same for all languages, so no per-tag cache variable. 12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12526$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12527if ${lt_cv_irix_exported_symbol+:} false; then : 12528 $as_echo_n "(cached) " >&6 12529else 12530 save_LDFLAGS=$LDFLAGS 12531 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12533/* end confdefs.h. */ 12534int foo (void) { return 0; } 12535_ACEOF 12536if ac_fn_c_try_link "$LINENO"; then : 12537 lt_cv_irix_exported_symbol=yes 12538else 12539 lt_cv_irix_exported_symbol=no 12540fi 12541rm -f core conftest.err conftest.$ac_objext \ 12542 conftest$ac_exeext conftest.$ac_ext 12543 LDFLAGS=$save_LDFLAGS 12544fi 12545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12546$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12547 if test yes = "$lt_cv_irix_exported_symbol"; then 12548 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' 12549 fi 12550 else 12551 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' 12552 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' 12553 fi 12554 archive_cmds_need_lc='no' 12555 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12556 hardcode_libdir_separator=: 12557 inherit_rpath=yes 12558 link_all_deplibs=yes 12559 ;; 12560 12561 linux*) 12562 case $cc_basename in 12563 tcc*) 12564 # Fabrice Bellard et al's Tiny C Compiler 12565 ld_shlibs=yes 12566 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12567 ;; 12568 esac 12569 ;; 12570 12571 netbsd*) 12572 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12574 else 12575 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12576 fi 12577 hardcode_libdir_flag_spec='-R$libdir' 12578 hardcode_direct=yes 12579 hardcode_shlibpath_var=no 12580 ;; 12581 12582 newsos6) 12583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12584 hardcode_direct=yes 12585 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12586 hardcode_libdir_separator=: 12587 hardcode_shlibpath_var=no 12588 ;; 12589 12590 *nto* | *qnx*) 12591 ;; 12592 12593 openbsd* | bitrig*) 12594 if test -f /usr/libexec/ld.so; then 12595 hardcode_direct=yes 12596 hardcode_shlibpath_var=no 12597 hardcode_direct_absolute=yes 12598 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12599 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12600 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 12601 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12602 export_dynamic_flag_spec='$wl-E' 12603 else 12604 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12605 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12606 fi 12607 else 12608 ld_shlibs=no 12609 fi 12610 ;; 12611 12612 os2*) 12613 hardcode_libdir_flag_spec='-L$libdir' 12614 hardcode_minus_L=yes 12615 allow_undefined_flag=unsupported 12616 shrext_cmds=.dll 12617 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12618 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12619 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12620 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12621 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12622 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12623 emximp -o $lib $output_objdir/$libname.def' 12624 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12625 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12626 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12627 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12628 prefix_cmds="$SED"~ 12629 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12630 prefix_cmds="$prefix_cmds -e 1d"; 12631 fi~ 12632 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12633 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12634 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12635 emximp -o $lib $output_objdir/$libname.def' 12636 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12637 enable_shared_with_static_runtimes=yes 12638 ;; 12639 12640 osf3*) 12641 if test yes = "$GCC"; then 12642 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12643 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' 12644 else 12645 allow_undefined_flag=' -expect_unresolved \*' 12646 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' 12647 fi 12648 archive_cmds_need_lc='no' 12649 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12650 hardcode_libdir_separator=: 12651 ;; 12652 12653 osf4* | osf5*) # as osf3* with the addition of -msym flag 12654 if test yes = "$GCC"; then 12655 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12656 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' 12657 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12658 else 12659 allow_undefined_flag=' -expect_unresolved \*' 12660 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' 12661 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~ 12662 $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' 12663 12664 # Both c and cxx compiler support -rpath directly 12665 hardcode_libdir_flag_spec='-rpath $libdir' 12666 fi 12667 archive_cmds_need_lc='no' 12668 hardcode_libdir_separator=: 12669 ;; 12670 12671 solaris*) 12672 no_undefined_flag=' -z defs' 12673 if test yes = "$GCC"; then 12674 wlarc='$wl' 12675 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12676 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12677 $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' 12678 else 12679 case `$CC -V 2>&1` in 12680 *"Compilers 5.0"*) 12681 wlarc='' 12682 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 12683 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12684 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12685 ;; 12686 *) 12687 wlarc='$wl' 12688 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12689 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12690 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12691 ;; 12692 esac 12693 fi 12694 hardcode_libdir_flag_spec='-R$libdir' 12695 hardcode_shlibpath_var=no 12696 case $host_os in 12697 solaris2.[0-5] | solaris2.[0-5].*) ;; 12698 *) 12699 # The compiler driver will combine and reorder linker options, 12700 # but understands '-z linker_flag'. GCC discards it without '$wl', 12701 # but is careful enough not to reorder. 12702 # Supported since Solaris 2.6 (maybe 2.5.1?) 12703 if test yes = "$GCC"; then 12704 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 12705 else 12706 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12707 fi 12708 ;; 12709 esac 12710 link_all_deplibs=yes 12711 ;; 12712 12713 sunos4*) 12714 if test sequent = "$host_vendor"; then 12715 # Use $CC to link under sequent, because it throws in some extra .o 12716 # files that make .init and .fini sections work. 12717 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12718 else 12719 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12720 fi 12721 hardcode_libdir_flag_spec='-L$libdir' 12722 hardcode_direct=yes 12723 hardcode_minus_L=yes 12724 hardcode_shlibpath_var=no 12725 ;; 12726 12727 sysv4) 12728 case $host_vendor in 12729 sni) 12730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12731 hardcode_direct=yes # is this really true??? 12732 ;; 12733 siemens) 12734 ## LD is ld it makes a PLAMLIB 12735 ## CC just makes a GrossModule. 12736 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12737 reload_cmds='$CC -r -o $output$reload_objs' 12738 hardcode_direct=no 12739 ;; 12740 motorola) 12741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12742 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12743 ;; 12744 esac 12745 runpath_var='LD_RUN_PATH' 12746 hardcode_shlibpath_var=no 12747 ;; 12748 12749 sysv4.3*) 12750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12751 hardcode_shlibpath_var=no 12752 export_dynamic_flag_spec='-Bexport' 12753 ;; 12754 12755 sysv4*MP*) 12756 if test -d /usr/nec; then 12757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12758 hardcode_shlibpath_var=no 12759 runpath_var=LD_RUN_PATH 12760 hardcode_runpath_var=yes 12761 ld_shlibs=yes 12762 fi 12763 ;; 12764 12765 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12766 no_undefined_flag='$wl-z,text' 12767 archive_cmds_need_lc=no 12768 hardcode_shlibpath_var=no 12769 runpath_var='LD_RUN_PATH' 12770 12771 if test yes = "$GCC"; then 12772 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12773 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12774 else 12775 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12776 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12777 fi 12778 ;; 12779 12780 sysv5* | sco3.2v5* | sco5v6*) 12781 # Note: We CANNOT use -z defs as we might desire, because we do not 12782 # link with -lc, and that would cause any symbols used from libc to 12783 # always be unresolved, which means just about no library would 12784 # ever link correctly. If we're not using GNU ld we use -z text 12785 # though, which does catch some bad symbols but isn't as heavy-handed 12786 # as -z defs. 12787 no_undefined_flag='$wl-z,text' 12788 allow_undefined_flag='$wl-z,nodefs' 12789 archive_cmds_need_lc=no 12790 hardcode_shlibpath_var=no 12791 hardcode_libdir_flag_spec='$wl-R,$libdir' 12792 hardcode_libdir_separator=':' 12793 link_all_deplibs=yes 12794 export_dynamic_flag_spec='$wl-Bexport' 12795 runpath_var='LD_RUN_PATH' 12796 12797 if test yes = "$GCC"; then 12798 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12799 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12800 else 12801 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12802 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12803 fi 12804 ;; 12805 12806 uts4*) 12807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12808 hardcode_libdir_flag_spec='-L$libdir' 12809 hardcode_shlibpath_var=no 12810 ;; 12811 12812 *) 12813 ld_shlibs=no 12814 ;; 12815 esac 12816 12817 if test sni = "$host_vendor"; then 12818 case $host in 12819 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12820 export_dynamic_flag_spec='$wl-Blargedynsym' 12821 ;; 12822 esac 12823 fi 12824 fi 12825 12826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12827$as_echo "$ld_shlibs" >&6; } 12828test no = "$ld_shlibs" && can_build_shared=no 12829 12830with_gnu_ld=$with_gnu_ld 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846# 12847# Do we need to explicitly link libc? 12848# 12849case "x$archive_cmds_need_lc" in 12850x|xyes) 12851 # Assume -lc should be added 12852 archive_cmds_need_lc=yes 12853 12854 if test yes,yes = "$GCC,$enable_shared"; then 12855 case $archive_cmds in 12856 *'~'*) 12857 # FIXME: we may have to deal with multi-command sequences. 12858 ;; 12859 '$CC '*) 12860 # Test whether the compiler implicitly links with -lc since on some 12861 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12862 # to ld, don't add -lc before -lgcc. 12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12864$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12865if ${lt_cv_archive_cmds_need_lc+:} false; then : 12866 $as_echo_n "(cached) " >&6 12867else 12868 $RM conftest* 12869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12870 12871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12872 (eval $ac_compile) 2>&5 12873 ac_status=$? 12874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12875 test $ac_status = 0; } 2>conftest.err; then 12876 soname=conftest 12877 lib=conftest 12878 libobjs=conftest.$ac_objext 12879 deplibs= 12880 wl=$lt_prog_compiler_wl 12881 pic_flag=$lt_prog_compiler_pic 12882 compiler_flags=-v 12883 linker_flags=-v 12884 verstring= 12885 output_objdir=. 12886 libname=conftest 12887 lt_save_allow_undefined_flag=$allow_undefined_flag 12888 allow_undefined_flag= 12889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12890 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12891 ac_status=$? 12892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12893 test $ac_status = 0; } 12894 then 12895 lt_cv_archive_cmds_need_lc=no 12896 else 12897 lt_cv_archive_cmds_need_lc=yes 12898 fi 12899 allow_undefined_flag=$lt_save_allow_undefined_flag 12900 else 12901 cat conftest.err 1>&5 12902 fi 12903 $RM conftest* 12904 12905fi 12906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12907$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12908 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12909 ;; 12910 esac 12911 fi 12912 ;; 12913esac 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13067$as_echo_n "checking dynamic linker characteristics... " >&6; } 13068 13069if test yes = "$GCC"; then 13070 case $host_os in 13071 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 13072 *) lt_awk_arg='/^libraries:/' ;; 13073 esac 13074 case $host_os in 13075 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 13076 *) lt_sed_strip_eq='s|=/|/|g' ;; 13077 esac 13078 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13079 case $lt_search_path_spec in 13080 *\;*) 13081 # if the path contains ";" then we assume it to be the separator 13082 # otherwise default to the standard path separator (i.e. ":") - it is 13083 # assumed that no part of a normal pathname contains ";" but that should 13084 # okay in the real world where ";" in dirpaths is itself problematic. 13085 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13086 ;; 13087 *) 13088 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13089 ;; 13090 esac 13091 # Ok, now we have the path, separated by spaces, we can step through it 13092 # and add multilib dir if necessary... 13093 lt_tmp_lt_search_path_spec= 13094 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13095 # ...but if some path component already ends with the multilib dir we assume 13096 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 13097 case "$lt_multi_os_dir; $lt_search_path_spec " in 13098 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 13099 lt_multi_os_dir= 13100 ;; 13101 esac 13102 for lt_sys_path in $lt_search_path_spec; do 13103 if test -d "$lt_sys_path$lt_multi_os_dir"; then 13104 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 13105 elif test -n "$lt_multi_os_dir"; then 13106 test -d "$lt_sys_path" && \ 13107 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13108 fi 13109 done 13110 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13111BEGIN {RS = " "; FS = "/|\n";} { 13112 lt_foo = ""; 13113 lt_count = 0; 13114 for (lt_i = NF; lt_i > 0; lt_i--) { 13115 if ($lt_i != "" && $lt_i != ".") { 13116 if ($lt_i == "..") { 13117 lt_count++; 13118 } else { 13119 if (lt_count == 0) { 13120 lt_foo = "/" $lt_i lt_foo; 13121 } else { 13122 lt_count--; 13123 } 13124 } 13125 } 13126 } 13127 if (lt_foo != "") { lt_freq[lt_foo]++; } 13128 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13129}'` 13130 # AWK program above erroneously prepends '/' to C:/dos/paths 13131 # for these hosts. 13132 case $host_os in 13133 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13134 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13135 esac 13136 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13137else 13138 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13139fi 13140library_names_spec= 13141libname_spec='lib$name' 13142soname_spec= 13143shrext_cmds=.so 13144postinstall_cmds= 13145postuninstall_cmds= 13146finish_cmds= 13147finish_eval= 13148shlibpath_var= 13149shlibpath_overrides_runpath=unknown 13150version_type=none 13151dynamic_linker="$host_os ld.so" 13152sys_lib_dlsearch_path_spec="/lib /usr/lib" 13153need_lib_prefix=unknown 13154hardcode_into_libs=no 13155 13156# when you set need_version to no, make sure it does not cause -set_version 13157# flags to be left without arguments 13158need_version=unknown 13159 13160 13161 13162case $host_os in 13163aix3*) 13164 version_type=linux # correct to gnu/linux during the next big refactor 13165 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13166 shlibpath_var=LIBPATH 13167 13168 # AIX 3 has no versioning support, so we append a major version to the name. 13169 soname_spec='$libname$release$shared_ext$major' 13170 ;; 13171 13172aix[4-9]*) 13173 version_type=linux # correct to gnu/linux during the next big refactor 13174 need_lib_prefix=no 13175 need_version=no 13176 hardcode_into_libs=yes 13177 if test ia64 = "$host_cpu"; then 13178 # AIX 5 supports IA64 13179 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13180 shlibpath_var=LD_LIBRARY_PATH 13181 else 13182 # With GCC up to 2.95.x, collect2 would create an import file 13183 # for dependence libraries. The import file would start with 13184 # the line '#! .'. This would cause the generated library to 13185 # depend on '.', always an invalid library. This was fixed in 13186 # development snapshots of GCC prior to 3.0. 13187 case $host_os in 13188 aix4 | aix4.[01] | aix4.[01].*) 13189 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13190 echo ' yes ' 13191 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13192 : 13193 else 13194 can_build_shared=no 13195 fi 13196 ;; 13197 esac 13198 # Using Import Files as archive members, it is possible to support 13199 # filename-based versioning of shared library archives on AIX. While 13200 # this would work for both with and without runtime linking, it will 13201 # prevent static linking of such archives. So we do filename-based 13202 # shared library versioning with .so extension only, which is used 13203 # when both runtime linking and shared linking is enabled. 13204 # Unfortunately, runtime linking may impact performance, so we do 13205 # not want this to be the default eventually. Also, we use the 13206 # versioned .so libs for executables only if there is the -brtl 13207 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 13208 # To allow for filename-based versioning support, we need to create 13209 # libNAME.so.V as an archive file, containing: 13210 # *) an Import File, referring to the versioned filename of the 13211 # archive as well as the shared archive member, telling the 13212 # bitwidth (32 or 64) of that shared object, and providing the 13213 # list of exported symbols of that shared object, eventually 13214 # decorated with the 'weak' keyword 13215 # *) the shared object with the F_LOADONLY flag set, to really avoid 13216 # it being seen by the linker. 13217 # At run time we better use the real file rather than another symlink, 13218 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13219 13220 case $with_aix_soname,$aix_use_runtimelinking in 13221 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13222 # soname into executable. Probably we can add versioning support to 13223 # collect2, so additional links can be useful in future. 13224 aix,yes) # traditional libtool 13225 dynamic_linker='AIX unversionable lib.so' 13226 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13227 # instead of lib<name>.a to let people know that these are not 13228 # typical AIX shared libraries. 13229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13230 ;; 13231 aix,no) # traditional AIX only 13232 dynamic_linker='AIX lib.a(lib.so.V)' 13233 # We preserve .a as extension for shared libraries through AIX4.2 13234 # and later when we are not doing run time linking. 13235 library_names_spec='$libname$release.a $libname.a' 13236 soname_spec='$libname$release$shared_ext$major' 13237 ;; 13238 svr4,*) # full svr4 only 13239 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13240 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13241 # We do not specify a path in Import Files, so LIBPATH fires. 13242 shlibpath_overrides_runpath=yes 13243 ;; 13244 *,yes) # both, prefer svr4 13245 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13246 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13247 # unpreferred sharedlib libNAME.a needs extra handling 13248 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"' 13249 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"' 13250 # We do not specify a path in Import Files, so LIBPATH fires. 13251 shlibpath_overrides_runpath=yes 13252 ;; 13253 *,no) # both, prefer aix 13254 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13255 library_names_spec='$libname$release.a $libname.a' 13256 soname_spec='$libname$release$shared_ext$major' 13257 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13258 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)' 13259 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"' 13260 ;; 13261 esac 13262 shlibpath_var=LIBPATH 13263 fi 13264 ;; 13265 13266amigaos*) 13267 case $host_cpu in 13268 powerpc) 13269 # Since July 2007 AmigaOS4 officially supports .so libraries. 13270 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13271 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13272 ;; 13273 m68k) 13274 library_names_spec='$libname.ixlibrary $libname.a' 13275 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13276 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' 13277 ;; 13278 esac 13279 ;; 13280 13281beos*) 13282 library_names_spec='$libname$shared_ext' 13283 dynamic_linker="$host_os ld.so" 13284 shlibpath_var=LIBRARY_PATH 13285 ;; 13286 13287bsdi[45]*) 13288 version_type=linux # correct to gnu/linux during the next big refactor 13289 need_version=no 13290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13291 soname_spec='$libname$release$shared_ext$major' 13292 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13293 shlibpath_var=LD_LIBRARY_PATH 13294 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13295 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13296 # the default ld.so.conf also contains /usr/contrib/lib and 13297 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13298 # libtool to hard-code these into programs 13299 ;; 13300 13301cygwin* | mingw* | pw32* | cegcc*) 13302 version_type=windows 13303 shrext_cmds=.dll 13304 need_version=no 13305 need_lib_prefix=no 13306 13307 case $GCC,$cc_basename in 13308 yes,*) 13309 # gcc 13310 library_names_spec='$libname.dll.a' 13311 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13312 postinstall_cmds='base_file=`basename \$file`~ 13313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13314 dldir=$destdir/`dirname \$dlpath`~ 13315 test -d \$dldir || mkdir -p \$dldir~ 13316 $install_prog $dir/$dlname \$dldir/$dlname~ 13317 chmod a+x \$dldir/$dlname~ 13318 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13319 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13320 fi' 13321 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13322 dlpath=$dir/\$dldll~ 13323 $RM \$dlpath' 13324 shlibpath_overrides_runpath=yes 13325 13326 case $host_os in 13327 cygwin*) 13328 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13329 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13330 13331 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13332 ;; 13333 mingw* | cegcc*) 13334 # MinGW DLLs use traditional 'lib' prefix 13335 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13336 ;; 13337 pw32*) 13338 # pw32 DLLs use 'pw' prefix rather than 'lib' 13339 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13340 ;; 13341 esac 13342 dynamic_linker='Win32 ld.exe' 13343 ;; 13344 13345 *,cl*) 13346 # Native MSVC 13347 libname_spec='$name' 13348 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13349 library_names_spec='$libname.dll.lib' 13350 13351 case $build_os in 13352 mingw*) 13353 sys_lib_search_path_spec= 13354 lt_save_ifs=$IFS 13355 IFS=';' 13356 for lt_path in $LIB 13357 do 13358 IFS=$lt_save_ifs 13359 # Let DOS variable expansion print the short 8.3 style file name. 13360 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13361 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13362 done 13363 IFS=$lt_save_ifs 13364 # Convert to MSYS style. 13365 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13366 ;; 13367 cygwin*) 13368 # Convert to unix form, then to dos form, then back to unix form 13369 # but this time dos style (no spaces!) so that the unix form looks 13370 # like /cygdrive/c/PROGRA~1:/cygdr... 13371 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13372 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13373 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13374 ;; 13375 *) 13376 sys_lib_search_path_spec=$LIB 13377 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13378 # It is most probably a Windows format PATH. 13379 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13380 else 13381 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13382 fi 13383 # FIXME: find the short name or the path components, as spaces are 13384 # common. (e.g. "Program Files" -> "PROGRA~1") 13385 ;; 13386 esac 13387 13388 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13389 postinstall_cmds='base_file=`basename \$file`~ 13390 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13391 dldir=$destdir/`dirname \$dlpath`~ 13392 test -d \$dldir || mkdir -p \$dldir~ 13393 $install_prog $dir/$dlname \$dldir/$dlname' 13394 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13395 dlpath=$dir/\$dldll~ 13396 $RM \$dlpath' 13397 shlibpath_overrides_runpath=yes 13398 dynamic_linker='Win32 link.exe' 13399 ;; 13400 13401 *) 13402 # Assume MSVC wrapper 13403 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13404 dynamic_linker='Win32 ld.exe' 13405 ;; 13406 esac 13407 # FIXME: first we should search . and the directory the executable is in 13408 shlibpath_var=PATH 13409 ;; 13410 13411darwin* | rhapsody*) 13412 dynamic_linker="$host_os dyld" 13413 version_type=darwin 13414 need_lib_prefix=no 13415 need_version=no 13416 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13417 soname_spec='$libname$release$major$shared_ext' 13418 shlibpath_overrides_runpath=yes 13419 shlibpath_var=DYLD_LIBRARY_PATH 13420 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13421 13422 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13423 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13424 ;; 13425 13426dgux*) 13427 version_type=linux # correct to gnu/linux during the next big refactor 13428 need_lib_prefix=no 13429 need_version=no 13430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13431 soname_spec='$libname$release$shared_ext$major' 13432 shlibpath_var=LD_LIBRARY_PATH 13433 ;; 13434 13435freebsd* | dragonfly*) 13436 # DragonFly does not have aout. When/if they implement a new 13437 # versioning mechanism, adjust this. 13438 if test -x /usr/bin/objformat; then 13439 objformat=`/usr/bin/objformat` 13440 else 13441 case $host_os in 13442 freebsd[23].*) objformat=aout ;; 13443 *) objformat=elf ;; 13444 esac 13445 fi 13446 version_type=freebsd-$objformat 13447 case $version_type in 13448 freebsd-elf*) 13449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13450 soname_spec='$libname$release$shared_ext$major' 13451 need_version=no 13452 need_lib_prefix=no 13453 ;; 13454 freebsd-*) 13455 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13456 need_version=yes 13457 ;; 13458 esac 13459 shlibpath_var=LD_LIBRARY_PATH 13460 case $host_os in 13461 freebsd2.*) 13462 shlibpath_overrides_runpath=yes 13463 ;; 13464 freebsd3.[01]* | freebsdelf3.[01]*) 13465 shlibpath_overrides_runpath=yes 13466 hardcode_into_libs=yes 13467 ;; 13468 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13469 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13470 shlibpath_overrides_runpath=no 13471 hardcode_into_libs=yes 13472 ;; 13473 *) # from 4.6 on, and DragonFly 13474 shlibpath_overrides_runpath=yes 13475 hardcode_into_libs=yes 13476 ;; 13477 esac 13478 ;; 13479 13480haiku*) 13481 version_type=linux # correct to gnu/linux during the next big refactor 13482 need_lib_prefix=no 13483 need_version=no 13484 dynamic_linker="$host_os runtime_loader" 13485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13486 soname_spec='$libname$release$shared_ext$major' 13487 shlibpath_var=LIBRARY_PATH 13488 shlibpath_overrides_runpath=no 13489 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13490 hardcode_into_libs=yes 13491 ;; 13492 13493hpux9* | hpux10* | hpux11*) 13494 # Give a soname corresponding to the major version so that dld.sl refuses to 13495 # link against other versions. 13496 version_type=sunos 13497 need_lib_prefix=no 13498 need_version=no 13499 case $host_cpu in 13500 ia64*) 13501 shrext_cmds='.so' 13502 hardcode_into_libs=yes 13503 dynamic_linker="$host_os dld.so" 13504 shlibpath_var=LD_LIBRARY_PATH 13505 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13507 soname_spec='$libname$release$shared_ext$major' 13508 if test 32 = "$HPUX_IA64_MODE"; then 13509 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13510 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13511 else 13512 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13513 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13514 fi 13515 ;; 13516 hppa*64*) 13517 shrext_cmds='.sl' 13518 hardcode_into_libs=yes 13519 dynamic_linker="$host_os dld.sl" 13520 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13523 soname_spec='$libname$release$shared_ext$major' 13524 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13526 ;; 13527 *) 13528 shrext_cmds='.sl' 13529 dynamic_linker="$host_os dld.sl" 13530 shlibpath_var=SHLIB_PATH 13531 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13533 soname_spec='$libname$release$shared_ext$major' 13534 ;; 13535 esac 13536 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13537 postinstall_cmds='chmod 555 $lib' 13538 # or fails outright, so override atomically: 13539 install_override_mode=555 13540 ;; 13541 13542interix[3-9]*) 13543 version_type=linux # correct to gnu/linux during the next big refactor 13544 need_lib_prefix=no 13545 need_version=no 13546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13547 soname_spec='$libname$release$shared_ext$major' 13548 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13549 shlibpath_var=LD_LIBRARY_PATH 13550 shlibpath_overrides_runpath=no 13551 hardcode_into_libs=yes 13552 ;; 13553 13554irix5* | irix6* | nonstopux*) 13555 case $host_os in 13556 nonstopux*) version_type=nonstopux ;; 13557 *) 13558 if test yes = "$lt_cv_prog_gnu_ld"; then 13559 version_type=linux # correct to gnu/linux during the next big refactor 13560 else 13561 version_type=irix 13562 fi ;; 13563 esac 13564 need_lib_prefix=no 13565 need_version=no 13566 soname_spec='$libname$release$shared_ext$major' 13567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13568 case $host_os in 13569 irix5* | nonstopux*) 13570 libsuff= shlibsuff= 13571 ;; 13572 *) 13573 case $LD in # libtool.m4 will add one of these switches to LD 13574 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13575 libsuff= shlibsuff= libmagic=32-bit;; 13576 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13577 libsuff=32 shlibsuff=N32 libmagic=N32;; 13578 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13579 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13580 *) libsuff= shlibsuff= libmagic=never-match;; 13581 esac 13582 ;; 13583 esac 13584 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13585 shlibpath_overrides_runpath=no 13586 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13587 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 13588 hardcode_into_libs=yes 13589 ;; 13590 13591# No shared lib support for Linux oldld, aout, or coff. 13592linux*oldld* | linux*aout* | linux*coff*) 13593 dynamic_linker=no 13594 ;; 13595 13596linux*android*) 13597 version_type=none # Android doesn't support versioned libraries. 13598 need_lib_prefix=no 13599 need_version=no 13600 library_names_spec='$libname$release$shared_ext' 13601 soname_spec='$libname$release$shared_ext' 13602 finish_cmds= 13603 shlibpath_var=LD_LIBRARY_PATH 13604 shlibpath_overrides_runpath=yes 13605 13606 # This implies no fast_install, which is unacceptable. 13607 # Some rework will be needed to allow for fast_install 13608 # before this can be enabled. 13609 hardcode_into_libs=yes 13610 13611 dynamic_linker='Android linker' 13612 # Don't embed -rpath directories since the linker doesn't support them. 13613 hardcode_libdir_flag_spec='-L$libdir' 13614 ;; 13615 13616# This must be glibc/ELF. 13617linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13618 version_type=linux # correct to gnu/linux during the next big refactor 13619 need_lib_prefix=no 13620 need_version=no 13621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13622 soname_spec='$libname$release$shared_ext$major' 13623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13624 shlibpath_var=LD_LIBRARY_PATH 13625 shlibpath_overrides_runpath=no 13626 13627 # Some binutils ld are patched to set DT_RUNPATH 13628 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13629 $as_echo_n "(cached) " >&6 13630else 13631 lt_cv_shlibpath_overrides_runpath=no 13632 save_LDFLAGS=$LDFLAGS 13633 save_libdir=$libdir 13634 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13635 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13637/* end confdefs.h. */ 13638 13639int 13640main () 13641{ 13642 13643 ; 13644 return 0; 13645} 13646_ACEOF 13647if ac_fn_c_try_link "$LINENO"; then : 13648 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13649 lt_cv_shlibpath_overrides_runpath=yes 13650fi 13651fi 13652rm -f core conftest.err conftest.$ac_objext \ 13653 conftest$ac_exeext conftest.$ac_ext 13654 LDFLAGS=$save_LDFLAGS 13655 libdir=$save_libdir 13656 13657fi 13658 13659 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13660 13661 # This implies no fast_install, which is unacceptable. 13662 # Some rework will be needed to allow for fast_install 13663 # before this can be enabled. 13664 hardcode_into_libs=yes 13665 13666 # Add ABI-specific directories to the system library path. 13667 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 13668 13669 # Ideally, we could use ldconfig to report *all* directores which are 13670 # searched for libraries, however this is still not possible. Aside from not 13671 # being certain /sbin/ldconfig is available, command 13672 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 13673 # even though it is searched at run-time. Try to do the best guess by 13674 # appending ld.so.conf contents (and includes) to the search path. 13675 if test -f /etc/ld.so.conf; then 13676 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' ' '` 13677 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13678 fi 13679 13680 # We used to test for /lib/ld.so.1 and disable shared libraries on 13681 # powerpc, because MkLinux only supported shared libraries with the 13682 # GNU dynamic linker. Since this was broken with cross compilers, 13683 # most powerpc-linux boxes support dynamic linking these days and 13684 # people can always --disable-shared, the test was removed, and we 13685 # assume the GNU/Linux dynamic linker is in use. 13686 dynamic_linker='GNU/Linux ld.so' 13687 ;; 13688 13689netbsd*) 13690 version_type=sunos 13691 need_lib_prefix=no 13692 need_version=no 13693 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13694 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13696 dynamic_linker='NetBSD (a.out) ld.so' 13697 else 13698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13699 soname_spec='$libname$release$shared_ext$major' 13700 dynamic_linker='NetBSD ld.elf_so' 13701 fi 13702 shlibpath_var=LD_LIBRARY_PATH 13703 shlibpath_overrides_runpath=yes 13704 hardcode_into_libs=yes 13705 ;; 13706 13707newsos6) 13708 version_type=linux # correct to gnu/linux during the next big refactor 13709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13710 shlibpath_var=LD_LIBRARY_PATH 13711 shlibpath_overrides_runpath=yes 13712 ;; 13713 13714*nto* | *qnx*) 13715 version_type=qnx 13716 need_lib_prefix=no 13717 need_version=no 13718 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13719 soname_spec='$libname$release$shared_ext$major' 13720 shlibpath_var=LD_LIBRARY_PATH 13721 shlibpath_overrides_runpath=no 13722 hardcode_into_libs=yes 13723 dynamic_linker='ldqnx.so' 13724 ;; 13725 13726openbsd* | bitrig*) 13727 version_type=sunos 13728 sys_lib_dlsearch_path_spec=/usr/lib 13729 need_lib_prefix=no 13730 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13731 need_version=no 13732 else 13733 need_version=yes 13734 fi 13735 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13737 shlibpath_var=LD_LIBRARY_PATH 13738 shlibpath_overrides_runpath=yes 13739 ;; 13740 13741os2*) 13742 libname_spec='$name' 13743 version_type=windows 13744 shrext_cmds=.dll 13745 need_version=no 13746 need_lib_prefix=no 13747 # OS/2 can only load a DLL with a base name of 8 characters or less. 13748 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13749 v=$($ECHO $release$versuffix | tr -d .-); 13750 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13751 $ECHO $n$v`$shared_ext' 13752 library_names_spec='${libname}_dll.$libext' 13753 dynamic_linker='OS/2 ld.exe' 13754 shlibpath_var=BEGINLIBPATH 13755 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13756 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13757 postinstall_cmds='base_file=`basename \$file`~ 13758 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13759 dldir=$destdir/`dirname \$dlpath`~ 13760 test -d \$dldir || mkdir -p \$dldir~ 13761 $install_prog $dir/$dlname \$dldir/$dlname~ 13762 chmod a+x \$dldir/$dlname~ 13763 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13764 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13765 fi' 13766 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13767 dlpath=$dir/\$dldll~ 13768 $RM \$dlpath' 13769 ;; 13770 13771osf3* | osf4* | osf5*) 13772 version_type=osf 13773 need_lib_prefix=no 13774 need_version=no 13775 soname_spec='$libname$release$shared_ext$major' 13776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13777 shlibpath_var=LD_LIBRARY_PATH 13778 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13780 ;; 13781 13782rdos*) 13783 dynamic_linker=no 13784 ;; 13785 13786solaris*) 13787 version_type=linux # correct to gnu/linux during the next big refactor 13788 need_lib_prefix=no 13789 need_version=no 13790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13791 soname_spec='$libname$release$shared_ext$major' 13792 shlibpath_var=LD_LIBRARY_PATH 13793 shlibpath_overrides_runpath=yes 13794 hardcode_into_libs=yes 13795 # ldd complains unless libraries are executable 13796 postinstall_cmds='chmod +x $lib' 13797 ;; 13798 13799sunos4*) 13800 version_type=sunos 13801 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13802 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13803 shlibpath_var=LD_LIBRARY_PATH 13804 shlibpath_overrides_runpath=yes 13805 if test yes = "$with_gnu_ld"; then 13806 need_lib_prefix=no 13807 fi 13808 need_version=yes 13809 ;; 13810 13811sysv4 | sysv4.3*) 13812 version_type=linux # correct to gnu/linux during the next big refactor 13813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13814 soname_spec='$libname$release$shared_ext$major' 13815 shlibpath_var=LD_LIBRARY_PATH 13816 case $host_vendor in 13817 sni) 13818 shlibpath_overrides_runpath=no 13819 need_lib_prefix=no 13820 runpath_var=LD_RUN_PATH 13821 ;; 13822 siemens) 13823 need_lib_prefix=no 13824 ;; 13825 motorola) 13826 need_lib_prefix=no 13827 need_version=no 13828 shlibpath_overrides_runpath=no 13829 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13830 ;; 13831 esac 13832 ;; 13833 13834sysv4*MP*) 13835 if test -d /usr/nec; then 13836 version_type=linux # correct to gnu/linux during the next big refactor 13837 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13838 soname_spec='$libname$shared_ext.$major' 13839 shlibpath_var=LD_LIBRARY_PATH 13840 fi 13841 ;; 13842 13843sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13844 version_type=sco 13845 need_lib_prefix=no 13846 need_version=no 13847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13848 soname_spec='$libname$release$shared_ext$major' 13849 shlibpath_var=LD_LIBRARY_PATH 13850 shlibpath_overrides_runpath=yes 13851 hardcode_into_libs=yes 13852 if test yes = "$with_gnu_ld"; then 13853 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13854 else 13855 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13856 case $host_os in 13857 sco3.2v5*) 13858 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13859 ;; 13860 esac 13861 fi 13862 sys_lib_dlsearch_path_spec='/usr/lib' 13863 ;; 13864 13865tpf*) 13866 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13867 version_type=linux # correct to gnu/linux during the next big refactor 13868 need_lib_prefix=no 13869 need_version=no 13870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13871 shlibpath_var=LD_LIBRARY_PATH 13872 shlibpath_overrides_runpath=no 13873 hardcode_into_libs=yes 13874 ;; 13875 13876uts4*) 13877 version_type=linux # correct to gnu/linux during the next big refactor 13878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13879 soname_spec='$libname$release$shared_ext$major' 13880 shlibpath_var=LD_LIBRARY_PATH 13881 ;; 13882 13883*) 13884 dynamic_linker=no 13885 ;; 13886esac 13887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13888$as_echo "$dynamic_linker" >&6; } 13889test no = "$dynamic_linker" && can_build_shared=no 13890 13891variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13892if test yes = "$GCC"; then 13893 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13894fi 13895 13896if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13897 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13898fi 13899 13900if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13901 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13902fi 13903 13904# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13905configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13906 13907# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13908func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13909 13910# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13911configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14010$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14011hardcode_action= 14012if test -n "$hardcode_libdir_flag_spec" || 14013 test -n "$runpath_var" || 14014 test yes = "$hardcode_automatic"; then 14015 14016 # We can hardcode non-existent directories. 14017 if test no != "$hardcode_direct" && 14018 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14019 # have to relink, otherwise we might link with an installed library 14020 # when we should be linking with a yet-to-be-installed one 14021 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 14022 test no != "$hardcode_minus_L"; then 14023 # Linking always hardcodes the temporary library directory. 14024 hardcode_action=relink 14025 else 14026 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14027 hardcode_action=immediate 14028 fi 14029else 14030 # We cannot hardcode anything, or else we can only hardcode existing 14031 # directories. 14032 hardcode_action=unsupported 14033fi 14034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14035$as_echo "$hardcode_action" >&6; } 14036 14037if test relink = "$hardcode_action" || 14038 test yes = "$inherit_rpath"; then 14039 # Fast installation is not supported 14040 enable_fast_install=no 14041elif test yes = "$shlibpath_overrides_runpath" || 14042 test no = "$enable_shared"; then 14043 # Fast installation is not necessary 14044 enable_fast_install=needless 14045fi 14046 14047 14048 14049 14050 14051 14052 if test yes != "$enable_dlopen"; then 14053 enable_dlopen=unknown 14054 enable_dlopen_self=unknown 14055 enable_dlopen_self_static=unknown 14056else 14057 lt_cv_dlopen=no 14058 lt_cv_dlopen_libs= 14059 14060 case $host_os in 14061 beos*) 14062 lt_cv_dlopen=load_add_on 14063 lt_cv_dlopen_libs= 14064 lt_cv_dlopen_self=yes 14065 ;; 14066 14067 mingw* | pw32* | cegcc*) 14068 lt_cv_dlopen=LoadLibrary 14069 lt_cv_dlopen_libs= 14070 ;; 14071 14072 cygwin*) 14073 lt_cv_dlopen=dlopen 14074 lt_cv_dlopen_libs= 14075 ;; 14076 14077 darwin*) 14078 # if libdl is installed we need to link against it 14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14080$as_echo_n "checking for dlopen in -ldl... " >&6; } 14081if ${ac_cv_lib_dl_dlopen+:} false; then : 14082 $as_echo_n "(cached) " >&6 14083else 14084 ac_check_lib_save_LIBS=$LIBS 14085LIBS="-ldl $LIBS" 14086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14087/* end confdefs.h. */ 14088 14089/* Override any GCC internal prototype to avoid an error. 14090 Use char because int might match the return type of a GCC 14091 builtin and then its argument prototype would still apply. */ 14092#ifdef __cplusplus 14093extern "C" 14094#endif 14095char dlopen (); 14096int 14097main () 14098{ 14099return dlopen (); 14100 ; 14101 return 0; 14102} 14103_ACEOF 14104if ac_fn_c_try_link "$LINENO"; then : 14105 ac_cv_lib_dl_dlopen=yes 14106else 14107 ac_cv_lib_dl_dlopen=no 14108fi 14109rm -f core conftest.err conftest.$ac_objext \ 14110 conftest$ac_exeext conftest.$ac_ext 14111LIBS=$ac_check_lib_save_LIBS 14112fi 14113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14114$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14115if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14116 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14117else 14118 14119 lt_cv_dlopen=dyld 14120 lt_cv_dlopen_libs= 14121 lt_cv_dlopen_self=yes 14122 14123fi 14124 14125 ;; 14126 14127 tpf*) 14128 # Don't try to run any link tests for TPF. We know it's impossible 14129 # because TPF is a cross-compiler, and we know how we open DSOs. 14130 lt_cv_dlopen=dlopen 14131 lt_cv_dlopen_libs= 14132 lt_cv_dlopen_self=no 14133 ;; 14134 14135 *) 14136 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14137if test "x$ac_cv_func_shl_load" = xyes; then : 14138 lt_cv_dlopen=shl_load 14139else 14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14141$as_echo_n "checking for shl_load in -ldld... " >&6; } 14142if ${ac_cv_lib_dld_shl_load+:} false; then : 14143 $as_echo_n "(cached) " >&6 14144else 14145 ac_check_lib_save_LIBS=$LIBS 14146LIBS="-ldld $LIBS" 14147cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14148/* end confdefs.h. */ 14149 14150/* Override any GCC internal prototype to avoid an error. 14151 Use char because int might match the return type of a GCC 14152 builtin and then its argument prototype would still apply. */ 14153#ifdef __cplusplus 14154extern "C" 14155#endif 14156char shl_load (); 14157int 14158main () 14159{ 14160return shl_load (); 14161 ; 14162 return 0; 14163} 14164_ACEOF 14165if ac_fn_c_try_link "$LINENO"; then : 14166 ac_cv_lib_dld_shl_load=yes 14167else 14168 ac_cv_lib_dld_shl_load=no 14169fi 14170rm -f core conftest.err conftest.$ac_objext \ 14171 conftest$ac_exeext conftest.$ac_ext 14172LIBS=$ac_check_lib_save_LIBS 14173fi 14174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14175$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14176if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14177 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 14178else 14179 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14180if test "x$ac_cv_func_dlopen" = xyes; then : 14181 lt_cv_dlopen=dlopen 14182else 14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14184$as_echo_n "checking for dlopen in -ldl... " >&6; } 14185if ${ac_cv_lib_dl_dlopen+:} false; then : 14186 $as_echo_n "(cached) " >&6 14187else 14188 ac_check_lib_save_LIBS=$LIBS 14189LIBS="-ldl $LIBS" 14190cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14191/* end confdefs.h. */ 14192 14193/* Override any GCC internal prototype to avoid an error. 14194 Use char because int might match the return type of a GCC 14195 builtin and then its argument prototype would still apply. */ 14196#ifdef __cplusplus 14197extern "C" 14198#endif 14199char dlopen (); 14200int 14201main () 14202{ 14203return dlopen (); 14204 ; 14205 return 0; 14206} 14207_ACEOF 14208if ac_fn_c_try_link "$LINENO"; then : 14209 ac_cv_lib_dl_dlopen=yes 14210else 14211 ac_cv_lib_dl_dlopen=no 14212fi 14213rm -f core conftest.err conftest.$ac_objext \ 14214 conftest$ac_exeext conftest.$ac_ext 14215LIBS=$ac_check_lib_save_LIBS 14216fi 14217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14218$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14219if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14220 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14221else 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14223$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14224if ${ac_cv_lib_svld_dlopen+:} false; then : 14225 $as_echo_n "(cached) " >&6 14226else 14227 ac_check_lib_save_LIBS=$LIBS 14228LIBS="-lsvld $LIBS" 14229cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14230/* end confdefs.h. */ 14231 14232/* Override any GCC internal prototype to avoid an error. 14233 Use char because int might match the return type of a GCC 14234 builtin and then its argument prototype would still apply. */ 14235#ifdef __cplusplus 14236extern "C" 14237#endif 14238char dlopen (); 14239int 14240main () 14241{ 14242return dlopen (); 14243 ; 14244 return 0; 14245} 14246_ACEOF 14247if ac_fn_c_try_link "$LINENO"; then : 14248 ac_cv_lib_svld_dlopen=yes 14249else 14250 ac_cv_lib_svld_dlopen=no 14251fi 14252rm -f core conftest.err conftest.$ac_objext \ 14253 conftest$ac_exeext conftest.$ac_ext 14254LIBS=$ac_check_lib_save_LIBS 14255fi 14256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14257$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14258if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14259 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14260else 14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14262$as_echo_n "checking for dld_link in -ldld... " >&6; } 14263if ${ac_cv_lib_dld_dld_link+:} false; then : 14264 $as_echo_n "(cached) " >&6 14265else 14266 ac_check_lib_save_LIBS=$LIBS 14267LIBS="-ldld $LIBS" 14268cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14269/* end confdefs.h. */ 14270 14271/* Override any GCC internal prototype to avoid an error. 14272 Use char because int might match the return type of a GCC 14273 builtin and then its argument prototype would still apply. */ 14274#ifdef __cplusplus 14275extern "C" 14276#endif 14277char dld_link (); 14278int 14279main () 14280{ 14281return dld_link (); 14282 ; 14283 return 0; 14284} 14285_ACEOF 14286if ac_fn_c_try_link "$LINENO"; then : 14287 ac_cv_lib_dld_dld_link=yes 14288else 14289 ac_cv_lib_dld_dld_link=no 14290fi 14291rm -f core conftest.err conftest.$ac_objext \ 14292 conftest$ac_exeext conftest.$ac_ext 14293LIBS=$ac_check_lib_save_LIBS 14294fi 14295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14296$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14297if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14298 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14299fi 14300 14301 14302fi 14303 14304 14305fi 14306 14307 14308fi 14309 14310 14311fi 14312 14313 14314fi 14315 14316 ;; 14317 esac 14318 14319 if test no = "$lt_cv_dlopen"; then 14320 enable_dlopen=no 14321 else 14322 enable_dlopen=yes 14323 fi 14324 14325 case $lt_cv_dlopen in 14326 dlopen) 14327 save_CPPFLAGS=$CPPFLAGS 14328 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14329 14330 save_LDFLAGS=$LDFLAGS 14331 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14332 14333 save_LIBS=$LIBS 14334 LIBS="$lt_cv_dlopen_libs $LIBS" 14335 14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14337$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14338if ${lt_cv_dlopen_self+:} false; then : 14339 $as_echo_n "(cached) " >&6 14340else 14341 if test yes = "$cross_compiling"; then : 14342 lt_cv_dlopen_self=cross 14343else 14344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14345 lt_status=$lt_dlunknown 14346 cat > conftest.$ac_ext <<_LT_EOF 14347#line $LINENO "configure" 14348#include "confdefs.h" 14349 14350#if HAVE_DLFCN_H 14351#include <dlfcn.h> 14352#endif 14353 14354#include <stdio.h> 14355 14356#ifdef RTLD_GLOBAL 14357# define LT_DLGLOBAL RTLD_GLOBAL 14358#else 14359# ifdef DL_GLOBAL 14360# define LT_DLGLOBAL DL_GLOBAL 14361# else 14362# define LT_DLGLOBAL 0 14363# endif 14364#endif 14365 14366/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14367 find out it does not work in some platform. */ 14368#ifndef LT_DLLAZY_OR_NOW 14369# ifdef RTLD_LAZY 14370# define LT_DLLAZY_OR_NOW RTLD_LAZY 14371# else 14372# ifdef DL_LAZY 14373# define LT_DLLAZY_OR_NOW DL_LAZY 14374# else 14375# ifdef RTLD_NOW 14376# define LT_DLLAZY_OR_NOW RTLD_NOW 14377# else 14378# ifdef DL_NOW 14379# define LT_DLLAZY_OR_NOW DL_NOW 14380# else 14381# define LT_DLLAZY_OR_NOW 0 14382# endif 14383# endif 14384# endif 14385# endif 14386#endif 14387 14388/* When -fvisibility=hidden is used, assume the code has been annotated 14389 correspondingly for the symbols needed. */ 14390#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14391int fnord () __attribute__((visibility("default"))); 14392#endif 14393 14394int fnord () { return 42; } 14395int main () 14396{ 14397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14398 int status = $lt_dlunknown; 14399 14400 if (self) 14401 { 14402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14403 else 14404 { 14405 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14406 else puts (dlerror ()); 14407 } 14408 /* dlclose (self); */ 14409 } 14410 else 14411 puts (dlerror ()); 14412 14413 return status; 14414} 14415_LT_EOF 14416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14417 (eval $ac_link) 2>&5 14418 ac_status=$? 14419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14420 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14421 (./conftest; exit; ) >&5 2>/dev/null 14422 lt_status=$? 14423 case x$lt_status in 14424 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14425 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14426 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14427 esac 14428 else : 14429 # compilation failed 14430 lt_cv_dlopen_self=no 14431 fi 14432fi 14433rm -fr conftest* 14434 14435 14436fi 14437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14438$as_echo "$lt_cv_dlopen_self" >&6; } 14439 14440 if test yes = "$lt_cv_dlopen_self"; then 14441 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14443$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14444if ${lt_cv_dlopen_self_static+:} false; then : 14445 $as_echo_n "(cached) " >&6 14446else 14447 if test yes = "$cross_compiling"; then : 14448 lt_cv_dlopen_self_static=cross 14449else 14450 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14451 lt_status=$lt_dlunknown 14452 cat > conftest.$ac_ext <<_LT_EOF 14453#line $LINENO "configure" 14454#include "confdefs.h" 14455 14456#if HAVE_DLFCN_H 14457#include <dlfcn.h> 14458#endif 14459 14460#include <stdio.h> 14461 14462#ifdef RTLD_GLOBAL 14463# define LT_DLGLOBAL RTLD_GLOBAL 14464#else 14465# ifdef DL_GLOBAL 14466# define LT_DLGLOBAL DL_GLOBAL 14467# else 14468# define LT_DLGLOBAL 0 14469# endif 14470#endif 14471 14472/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14473 find out it does not work in some platform. */ 14474#ifndef LT_DLLAZY_OR_NOW 14475# ifdef RTLD_LAZY 14476# define LT_DLLAZY_OR_NOW RTLD_LAZY 14477# else 14478# ifdef DL_LAZY 14479# define LT_DLLAZY_OR_NOW DL_LAZY 14480# else 14481# ifdef RTLD_NOW 14482# define LT_DLLAZY_OR_NOW RTLD_NOW 14483# else 14484# ifdef DL_NOW 14485# define LT_DLLAZY_OR_NOW DL_NOW 14486# else 14487# define LT_DLLAZY_OR_NOW 0 14488# endif 14489# endif 14490# endif 14491# endif 14492#endif 14493 14494/* When -fvisibility=hidden is used, assume the code has been annotated 14495 correspondingly for the symbols needed. */ 14496#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14497int fnord () __attribute__((visibility("default"))); 14498#endif 14499 14500int fnord () { return 42; } 14501int main () 14502{ 14503 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14504 int status = $lt_dlunknown; 14505 14506 if (self) 14507 { 14508 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14509 else 14510 { 14511 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14512 else puts (dlerror ()); 14513 } 14514 /* dlclose (self); */ 14515 } 14516 else 14517 puts (dlerror ()); 14518 14519 return status; 14520} 14521_LT_EOF 14522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14523 (eval $ac_link) 2>&5 14524 ac_status=$? 14525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14526 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14527 (./conftest; exit; ) >&5 2>/dev/null 14528 lt_status=$? 14529 case x$lt_status in 14530 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14531 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14532 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14533 esac 14534 else : 14535 # compilation failed 14536 lt_cv_dlopen_self_static=no 14537 fi 14538fi 14539rm -fr conftest* 14540 14541 14542fi 14543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14544$as_echo "$lt_cv_dlopen_self_static" >&6; } 14545 fi 14546 14547 CPPFLAGS=$save_CPPFLAGS 14548 LDFLAGS=$save_LDFLAGS 14549 LIBS=$save_LIBS 14550 ;; 14551 esac 14552 14553 case $lt_cv_dlopen_self in 14554 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14555 *) enable_dlopen_self=unknown ;; 14556 esac 14557 14558 case $lt_cv_dlopen_self_static in 14559 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14560 *) enable_dlopen_self_static=unknown ;; 14561 esac 14562fi 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580striplib= 14581old_striplib= 14582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14583$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14584if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14585 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14586 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14588$as_echo "yes" >&6; } 14589else 14590# FIXME - insert some real tests, host_os isn't really good enough 14591 case $host_os in 14592 darwin*) 14593 if test -n "$STRIP"; then 14594 striplib="$STRIP -x" 14595 old_striplib="$STRIP -S" 14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14597$as_echo "yes" >&6; } 14598 else 14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14600$as_echo "no" >&6; } 14601 fi 14602 ;; 14603 *) 14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14605$as_echo "no" >&6; } 14606 ;; 14607 esac 14608fi 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 # Report what library types will actually be built 14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14623$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14625$as_echo "$can_build_shared" >&6; } 14626 14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14628$as_echo_n "checking whether to build shared libraries... " >&6; } 14629 test no = "$can_build_shared" && enable_shared=no 14630 14631 # On AIX, shared libraries and static libraries use the same namespace, and 14632 # are all built from PIC. 14633 case $host_os in 14634 aix3*) 14635 test yes = "$enable_shared" && enable_static=no 14636 if test -n "$RANLIB"; then 14637 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14638 postinstall_cmds='$RANLIB $lib' 14639 fi 14640 ;; 14641 14642 aix[4-9]*) 14643 if test ia64 != "$host_cpu"; then 14644 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14645 yes,aix,yes) ;; # shared object as lib.so file only 14646 yes,svr4,*) ;; # shared object as lib.so archive member only 14647 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14648 esac 14649 fi 14650 ;; 14651 esac 14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14653$as_echo "$enable_shared" >&6; } 14654 14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14656$as_echo_n "checking whether to build static libraries... " >&6; } 14657 # Make sure either enable_shared or enable_static is yes. 14658 test yes = "$enable_shared" || enable_static=yes 14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14660$as_echo "$enable_static" >&6; } 14661 14662 14663 14664 14665fi 14666ac_ext=c 14667ac_cpp='$CPP $CPPFLAGS' 14668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14670ac_compiler_gnu=$ac_cv_c_compiler_gnu 14671 14672CC=$lt_save_CC 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 ac_config_commands="$ac_config_commands libtool" 14689 14690 14691 14692 14693# Only expand once: 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 14705 if test -n "$ac_tool_prefix"; then 14706 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14707set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14709$as_echo_n "checking for $ac_word... " >&6; } 14710if ${ac_cv_path_PKG_CONFIG+:} false; then : 14711 $as_echo_n "(cached) " >&6 14712else 14713 case $PKG_CONFIG in 14714 [\\/]* | ?:[\\/]*) 14715 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14716 ;; 14717 *) 14718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14719for as_dir in $PATH 14720do 14721 IFS=$as_save_IFS 14722 test -z "$as_dir" && as_dir=. 14723 for ac_exec_ext in '' $ac_executable_extensions; do 14724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14725 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14727 break 2 14728 fi 14729done 14730 done 14731IFS=$as_save_IFS 14732 14733 ;; 14734esac 14735fi 14736PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14737if test -n "$PKG_CONFIG"; then 14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14739$as_echo "$PKG_CONFIG" >&6; } 14740else 14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14742$as_echo "no" >&6; } 14743fi 14744 14745 14746fi 14747if test -z "$ac_cv_path_PKG_CONFIG"; then 14748 ac_pt_PKG_CONFIG=$PKG_CONFIG 14749 # Extract the first word of "pkg-config", so it can be a program name with args. 14750set dummy pkg-config; ac_word=$2 14751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14752$as_echo_n "checking for $ac_word... " >&6; } 14753if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 14754 $as_echo_n "(cached) " >&6 14755else 14756 case $ac_pt_PKG_CONFIG in 14757 [\\/]* | ?:[\\/]*) 14758 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14759 ;; 14760 *) 14761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14762for as_dir in $PATH 14763do 14764 IFS=$as_save_IFS 14765 test -z "$as_dir" && as_dir=. 14766 for ac_exec_ext in '' $ac_executable_extensions; do 14767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14768 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14770 break 2 14771 fi 14772done 14773 done 14774IFS=$as_save_IFS 14775 14776 ;; 14777esac 14778fi 14779ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14780if test -n "$ac_pt_PKG_CONFIG"; then 14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 14782$as_echo "$ac_pt_PKG_CONFIG" >&6; } 14783else 14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14785$as_echo "no" >&6; } 14786fi 14787 14788 if test "x$ac_pt_PKG_CONFIG" = x; then 14789 PKG_CONFIG="" 14790 else 14791 case $cross_compiling:$ac_tool_warned in 14792yes:) 14793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14795ac_tool_warned=yes ;; 14796esac 14797 PKG_CONFIG=$ac_pt_PKG_CONFIG 14798 fi 14799else 14800 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 14801fi 14802 14803fi 14804if test -n "$PKG_CONFIG"; then 14805 _pkg_min_version=0.16 14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 14807$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 14808 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14810$as_echo "yes" >&6; } 14811 else 14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14813$as_echo "no" >&6; } 14814 PKG_CONFIG="" 14815 fi 14816fi 14817 14818# Check whether --enable-silent-rules was given. 14819if test "${enable_silent_rules+set}" = set; then : 14820 enableval=$enable_silent_rules; 14821fi 14822 14823case $enable_silent_rules in # ((( 14824 yes) AM_DEFAULT_VERBOSITY=0;; 14825 no) AM_DEFAULT_VERBOSITY=1;; 14826 *) AM_DEFAULT_VERBOSITY=0;; 14827esac 14828am_make=${MAKE-make} 14829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 14830$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 14831if ${am_cv_make_support_nested_variables+:} false; then : 14832 $as_echo_n "(cached) " >&6 14833else 14834 if $as_echo 'TRUE=$(BAR$(V)) 14835BAR0=false 14836BAR1=true 14837V=1 14838am__doit: 14839 @$(TRUE) 14840.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 14841 am_cv_make_support_nested_variables=yes 14842else 14843 am_cv_make_support_nested_variables=no 14844fi 14845fi 14846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 14847$as_echo "$am_cv_make_support_nested_variables" >&6; } 14848if test $am_cv_make_support_nested_variables = yes; then 14849 AM_V='$(V)' 14850 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 14851else 14852 AM_V=$AM_DEFAULT_VERBOSITY 14853 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 14854fi 14855AM_BACKSLASH='\' 14856 14857 14858GOA_MAJOR_VERSION=3 14859GOA_MINOR_VERSION=40 14860GOA_MICRO_VERSION=1 14861 14862 14863 14864 14865 14866# Before making a release, the LT_VERSION string should be modified. 14867# The string is of the form C:R:A. 14868# - If interfaces have been changed or added, but binary compatibility has 14869# been preserved, change to C+1:0:A+1 14870# - If binary compatibility has been broken (eg removed or changed interfaces) 14871# change to C+1:0:0 14872# - If the interface is the same as the previous version, change to C:R+1:A 14873GOA_LT_VERSION=0:0:0 14874GOA_BACKEND_LT_VERSION=1:0:0 14875 14876 14877 14878 14879$as_echo "#define GOA_MAJOR_VERSION 3" >>confdefs.h 14880 14881 14882$as_echo "#define GOA_MINOR_VERSION 40" >>confdefs.h 14883 14884 14885$as_echo "#define GOA_MICRO_VERSION 1" >>confdefs.h 14886 14887 14888# Initialization 14889# 14890 14891 14892 14893 14894 14895 14896 14897 # Check whether --enable-schemas-compile was given. 14898if test "${enable_schemas_compile+set}" = set; then : 14899 enableval=$enable_schemas_compile; case ${enableval} in 14900 yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;; 14901 no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;; 14902 *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;; 14903 esac 14904fi 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 14915 if test -n "$ac_tool_prefix"; then 14916 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14917set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14919$as_echo_n "checking for $ac_word... " >&6; } 14920if ${ac_cv_path_PKG_CONFIG+:} false; then : 14921 $as_echo_n "(cached) " >&6 14922else 14923 case $PKG_CONFIG in 14924 [\\/]* | ?:[\\/]*) 14925 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14926 ;; 14927 *) 14928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14929for as_dir in $PATH 14930do 14931 IFS=$as_save_IFS 14932 test -z "$as_dir" && as_dir=. 14933 for ac_exec_ext in '' $ac_executable_extensions; do 14934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14935 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14937 break 2 14938 fi 14939done 14940 done 14941IFS=$as_save_IFS 14942 14943 ;; 14944esac 14945fi 14946PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14947if test -n "$PKG_CONFIG"; then 14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14949$as_echo "$PKG_CONFIG" >&6; } 14950else 14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14952$as_echo "no" >&6; } 14953fi 14954 14955 14956fi 14957if test -z "$ac_cv_path_PKG_CONFIG"; then 14958 ac_pt_PKG_CONFIG=$PKG_CONFIG 14959 # Extract the first word of "pkg-config", so it can be a program name with args. 14960set dummy pkg-config; ac_word=$2 14961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14962$as_echo_n "checking for $ac_word... " >&6; } 14963if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 14964 $as_echo_n "(cached) " >&6 14965else 14966 case $ac_pt_PKG_CONFIG in 14967 [\\/]* | ?:[\\/]*) 14968 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14969 ;; 14970 *) 14971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14972for as_dir in $PATH 14973do 14974 IFS=$as_save_IFS 14975 test -z "$as_dir" && as_dir=. 14976 for ac_exec_ext in '' $ac_executable_extensions; do 14977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14978 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14980 break 2 14981 fi 14982done 14983 done 14984IFS=$as_save_IFS 14985 14986 ;; 14987esac 14988fi 14989ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14990if test -n "$ac_pt_PKG_CONFIG"; then 14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 14992$as_echo "$ac_pt_PKG_CONFIG" >&6; } 14993else 14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14995$as_echo "no" >&6; } 14996fi 14997 14998 if test "x$ac_pt_PKG_CONFIG" = x; then 14999 PKG_CONFIG="" 15000 else 15001 case $cross_compiling:$ac_tool_warned in 15002yes:) 15003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15005ac_tool_warned=yes ;; 15006esac 15007 PKG_CONFIG=$ac_pt_PKG_CONFIG 15008 fi 15009else 15010 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15011fi 15012 15013fi 15014if test -n "$PKG_CONFIG"; then 15015 _pkg_min_version=0.16 15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15017$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15018 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15020$as_echo "yes" >&6; } 15021 else 15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15023$as_echo "no" >&6; } 15024 PKG_CONFIG="" 15025 fi 15026fi 15027 gsettingsschemadir=${datadir}/glib-2.0/schemas 15028 15029 if test x$cross_compiling != xyes; then : 15030 15031if test -n "$GLIB_COMPILE_SCHEMAS"; then 15032 pkg_cv_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" 15033 elif test -n "$PKG_CONFIG"; then 15034 if test -n "$PKG_CONFIG" && \ 15035 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5 15036 ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5 15037 ac_status=$? 15038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15039 test $ac_status = 0; }; then 15040 pkg_cv_GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable="glib_compile_schemas" "gio-2.0" 2>/dev/null` 15041 test "x$?" != "x0" && pkg_failed=yes 15042else 15043 pkg_failed=yes 15044fi 15045 else 15046 pkg_failed=untried 15047fi 15048GLIB_COMPILE_SCHEMAS=$pkg_cv_GLIB_COMPILE_SCHEMAS 15049 15050if test "x$GLIB_COMPILE_SCHEMAS" = x""; then : 15051 15052fi 15053else 15054 # Extract the first word of "glib-compile-schemas", so it can be a program name with args. 15055set dummy glib-compile-schemas; ac_word=$2 15056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15057$as_echo_n "checking for $ac_word... " >&6; } 15058if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then : 15059 $as_echo_n "(cached) " >&6 15060else 15061 case $GLIB_COMPILE_SCHEMAS in 15062 [\\/]* | ?:[\\/]*) 15063 ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path. 15064 ;; 15065 *) 15066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15067for as_dir in $PATH 15068do 15069 IFS=$as_save_IFS 15070 test -z "$as_dir" && as_dir=. 15071 for ac_exec_ext in '' $ac_executable_extensions; do 15072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15073 ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext" 15074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15075 break 2 15076 fi 15077done 15078 done 15079IFS=$as_save_IFS 15080 15081 ;; 15082esac 15083fi 15084GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS 15085if test -n "$GLIB_COMPILE_SCHEMAS"; then 15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5 15087$as_echo "$GLIB_COMPILE_SCHEMAS" >&6; } 15088else 15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15090$as_echo "no" >&6; } 15091fi 15092 15093 15094fi 15095 15096 if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then 15097 as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5 15098 else 15099 : 15100 fi 15101 15102 GSETTINGS_RULES=' 15103.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas 15104 15105mostlyclean-am: clean-gsettings-schemas 15106 15107gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE)) 15108 15109%.gschema.valid: %.gschema.xml $(gsettings__enum_file) 15110 $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p $(@D) && touch $@ 15111 15112all-am: $(gsettings_SCHEMAS:.xml=.valid) 15113uninstall-am: uninstall-gsettings-schemas 15114install-data-am: install-gsettings-schemas 15115 15116.SECONDARY: $(gsettings_SCHEMAS) 15117 15118install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file) 15119 @$(NORMAL_INSTALL) 15120 if test -n "$^"; then \ 15121 test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \ 15122 $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \ 15123 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \ 15124 fi 15125 15126uninstall-gsettings-schemas: 15127 @$(NORMAL_UNINSTALL) 15128 @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \ 15129 files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \ 15130 test -n "$$files" || exit 0; \ 15131 echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \ 15132 cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files 15133 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir) 15134 15135clean-gsettings-schemas: 15136 rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file) 15137 15138ifdef gsettings_ENUM_NAMESPACE 15139$(gsettings__enum_file): $(gsettings_ENUM_FILES) 15140 $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" $^ > $@.tmp && mv $@.tmp $@ 15141endif 15142' 15143 15144 15145 15146 15147 15148 15149 15150# Check whether --enable-documentation was given. 15151if test "${enable_documentation+set}" = set; then : 15152 enableval=$enable_documentation; 15153else 15154 enable_documentation=no 15155fi 15156 15157 if test x$enable_documentation = xyes; then 15158 ENABLE_DOCUMENTATION_TRUE= 15159 ENABLE_DOCUMENTATION_FALSE='#' 15160else 15161 ENABLE_DOCUMENTATION_TRUE='#' 15162 ENABLE_DOCUMENTATION_FALSE= 15163fi 15164 15165if test x$enable_documentation = xyes; then 15166 # Extract the first word of "xsltproc", so it can be a program name with args. 15167set dummy xsltproc; ac_word=$2 15168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15169$as_echo_n "checking for $ac_word... " >&6; } 15170if ${ac_cv_path_XSLTPROC+:} false; then : 15171 $as_echo_n "(cached) " >&6 15172else 15173 case $XSLTPROC in 15174 [\\/]* | ?:[\\/]*) 15175 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 15176 ;; 15177 *) 15178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15179for as_dir in $PATH 15180do 15181 IFS=$as_save_IFS 15182 test -z "$as_dir" && as_dir=. 15183 for ac_exec_ext in '' $ac_executable_extensions; do 15184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15185 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 15186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15187 break 2 15188 fi 15189done 15190 done 15191IFS=$as_save_IFS 15192 15193 ;; 15194esac 15195fi 15196XSLTPROC=$ac_cv_path_XSLTPROC 15197if test -n "$XSLTPROC"; then 15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 15199$as_echo "$XSLTPROC" >&6; } 15200else 15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15202$as_echo "no" >&6; } 15203fi 15204 15205 15206 if test -z "$XSLTPROC"; then 15207 as_fn_error $? "xsltproc is needed" "$LINENO" 5 15208 fi 15209fi 15210 15211 15212 15213 15214 15215 15216 gtk_doc_requires="gtk-doc >= 1.3" 15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5 15218$as_echo_n "checking for gtk-doc... " >&6; } 15219 if test -n "$PKG_CONFIG" && \ 15220 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5 15221 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5 15222 ac_status=$? 15223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15224 test $ac_status = 0; }; then 15225 have_gtk_doc=yes 15226else 15227 have_gtk_doc=no 15228fi 15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5 15230$as_echo "$have_gtk_doc" >&6; } 15231 15232 if test "$have_gtk_doc" = "no"; then 15233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 15234 You will not be able to create source packages with 'make dist' 15235 because $gtk_doc_requires is not found." >&5 15236$as_echo "$as_me: WARNING: 15237 You will not be able to create source packages with 'make dist' 15238 because $gtk_doc_requires is not found." >&2;} 15239 fi 15240 15241 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 15242set dummy gtkdoc-check; ac_word=$2 15243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15244$as_echo_n "checking for $ac_word... " >&6; } 15245if ${ac_cv_prog_GTKDOC_CHECK+:} false; then : 15246 $as_echo_n "(cached) " >&6 15247else 15248 if test -n "$GTKDOC_CHECK"; then 15249 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test. 15250else 15251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15252for as_dir in $PATH 15253do 15254 IFS=$as_save_IFS 15255 test -z "$as_dir" && as_dir=. 15256 for ac_exec_ext in '' $ac_executable_extensions; do 15257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15258 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test" 15259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15260 break 2 15261 fi 15262done 15263 done 15264IFS=$as_save_IFS 15265 15266fi 15267fi 15268GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK 15269if test -n "$GTKDOC_CHECK"; then 15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 15271$as_echo "$GTKDOC_CHECK" >&6; } 15272else 15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15274$as_echo "no" >&6; } 15275fi 15276 15277 15278 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 15279set dummy gtkdoc-check; ac_word=$2 15280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15281$as_echo_n "checking for $ac_word... " >&6; } 15282if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then : 15283 $as_echo_n "(cached) " >&6 15284else 15285 case $GTKDOC_CHECK_PATH in 15286 [\\/]* | ?:[\\/]*) 15287 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path. 15288 ;; 15289 *) 15290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15291for as_dir in $PATH 15292do 15293 IFS=$as_save_IFS 15294 test -z "$as_dir" && as_dir=. 15295 for ac_exec_ext in '' $ac_executable_extensions; do 15296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15297 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext" 15298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15299 break 2 15300 fi 15301done 15302 done 15303IFS=$as_save_IFS 15304 15305 ;; 15306esac 15307fi 15308GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH 15309if test -n "$GTKDOC_CHECK_PATH"; then 15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5 15311$as_echo "$GTKDOC_CHECK_PATH" >&6; } 15312else 15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15314$as_echo "no" >&6; } 15315fi 15316 15317 15318 for ac_prog in gtkdoc-rebase 15319do 15320 # Extract the first word of "$ac_prog", so it can be a program name with args. 15321set dummy $ac_prog; ac_word=$2 15322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15323$as_echo_n "checking for $ac_word... " >&6; } 15324if ${ac_cv_path_GTKDOC_REBASE+:} false; then : 15325 $as_echo_n "(cached) " >&6 15326else 15327 case $GTKDOC_REBASE in 15328 [\\/]* | ?:[\\/]*) 15329 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path. 15330 ;; 15331 *) 15332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15333for as_dir in $PATH 15334do 15335 IFS=$as_save_IFS 15336 test -z "$as_dir" && as_dir=. 15337 for ac_exec_ext in '' $ac_executable_extensions; do 15338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15339 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext" 15340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15341 break 2 15342 fi 15343done 15344 done 15345IFS=$as_save_IFS 15346 15347 ;; 15348esac 15349fi 15350GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE 15351if test -n "$GTKDOC_REBASE"; then 15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5 15353$as_echo "$GTKDOC_REBASE" >&6; } 15354else 15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15356$as_echo "no" >&6; } 15357fi 15358 15359 15360 test -n "$GTKDOC_REBASE" && break 15361done 15362test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true" 15363 15364 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args. 15365set dummy gtkdoc-mkpdf; ac_word=$2 15366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15367$as_echo_n "checking for $ac_word... " >&6; } 15368if ${ac_cv_path_GTKDOC_MKPDF+:} false; then : 15369 $as_echo_n "(cached) " >&6 15370else 15371 case $GTKDOC_MKPDF in 15372 [\\/]* | ?:[\\/]*) 15373 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path. 15374 ;; 15375 *) 15376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15377for as_dir in $PATH 15378do 15379 IFS=$as_save_IFS 15380 test -z "$as_dir" && as_dir=. 15381 for ac_exec_ext in '' $ac_executable_extensions; do 15382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15383 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext" 15384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15385 break 2 15386 fi 15387done 15388 done 15389IFS=$as_save_IFS 15390 15391 ;; 15392esac 15393fi 15394GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF 15395if test -n "$GTKDOC_MKPDF"; then 15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5 15397$as_echo "$GTKDOC_MKPDF" >&6; } 15398else 15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15400$as_echo "no" >&6; } 15401fi 15402 15403 15404 15405 15406# Check whether --with-html-dir was given. 15407if test "${with_html_dir+set}" = set; then : 15408 withval=$with_html_dir; 15409else 15410 with_html_dir='${datadir}/gtk-doc/html' 15411fi 15412 15413 HTML_DIR="$with_html_dir" 15414 15415 15416 # Check whether --enable-gtk-doc was given. 15417if test "${enable_gtk_doc+set}" = set; then : 15418 enableval=$enable_gtk_doc; 15419else 15420 enable_gtk_doc=no 15421fi 15422 15423 15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 15425$as_echo_n "checking whether to build gtk-doc documentation... " >&6; } 15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 15427$as_echo "$enable_gtk_doc" >&6; } 15428 15429 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then 15430 as_fn_error $? " 15431 You must have $gtk_doc_requires installed to build documentation for 15432 $PACKAGE_NAME. Please install gtk-doc or disable building the 15433 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5 15434 fi 15435 15436 if test "x$PACKAGE_NAME" != "xglib"; then 15437 15438pkg_failed=no 15439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5 15440$as_echo_n "checking for GTKDOC_DEPS... " >&6; } 15441 15442if test -n "$GTKDOC_DEPS_CFLAGS"; then 15443 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS" 15444 elif test -n "$PKG_CONFIG"; then 15445 if test -n "$PKG_CONFIG" && \ 15446 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 15447 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 15448 ac_status=$? 15449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15450 test $ac_status = 0; }; then 15451 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 15452 test "x$?" != "x0" && pkg_failed=yes 15453else 15454 pkg_failed=yes 15455fi 15456 else 15457 pkg_failed=untried 15458fi 15459if test -n "$GTKDOC_DEPS_LIBS"; then 15460 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS" 15461 elif test -n "$PKG_CONFIG"; then 15462 if test -n "$PKG_CONFIG" && \ 15463 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 15464 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 15465 ac_status=$? 15466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15467 test $ac_status = 0; }; then 15468 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 15469 test "x$?" != "x0" && pkg_failed=yes 15470else 15471 pkg_failed=yes 15472fi 15473 else 15474 pkg_failed=untried 15475fi 15476 15477 15478 15479if test $pkg_failed = yes; then 15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15481$as_echo "no" >&6; } 15482 15483if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15484 _pkg_short_errors_supported=yes 15485else 15486 _pkg_short_errors_supported=no 15487fi 15488 if test $_pkg_short_errors_supported = yes; then 15489 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` 15490 else 15491 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` 15492 fi 15493 # Put the nasty error message in config.log where it belongs 15494 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5 15495 15496 : 15497elif test $pkg_failed = untried; then 15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15499$as_echo "no" >&6; } 15500 : 15501else 15502 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS 15503 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS 15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15505$as_echo "yes" >&6; } 15506 15507fi 15508 fi 15509 15510 # Check whether --enable-gtk-doc-html was given. 15511if test "${enable_gtk_doc_html+set}" = set; then : 15512 enableval=$enable_gtk_doc_html; 15513else 15514 enable_gtk_doc_html=yes 15515fi 15516 15517 # Check whether --enable-gtk-doc-pdf was given. 15518if test "${enable_gtk_doc_pdf+set}" = set; then : 15519 enableval=$enable_gtk_doc_pdf; 15520else 15521 enable_gtk_doc_pdf=no 15522fi 15523 15524 15525 if test -z "$GTKDOC_MKPDF"; then 15526 enable_gtk_doc_pdf=no 15527 fi 15528 15529 if test -z "$AM_DEFAULT_VERBOSITY"; then 15530 AM_DEFAULT_VERBOSITY=1 15531 fi 15532 15533 15534 if test x$have_gtk_doc = xyes; then 15535 HAVE_GTK_DOC_TRUE= 15536 HAVE_GTK_DOC_FALSE='#' 15537else 15538 HAVE_GTK_DOC_TRUE='#' 15539 HAVE_GTK_DOC_FALSE= 15540fi 15541 15542 if test x$enable_gtk_doc = xyes; then 15543 ENABLE_GTK_DOC_TRUE= 15544 ENABLE_GTK_DOC_FALSE='#' 15545else 15546 ENABLE_GTK_DOC_TRUE='#' 15547 ENABLE_GTK_DOC_FALSE= 15548fi 15549 15550 if test x$enable_gtk_doc_html = xyes; then 15551 GTK_DOC_BUILD_HTML_TRUE= 15552 GTK_DOC_BUILD_HTML_FALSE='#' 15553else 15554 GTK_DOC_BUILD_HTML_TRUE='#' 15555 GTK_DOC_BUILD_HTML_FALSE= 15556fi 15557 15558 if test x$enable_gtk_doc_pdf = xyes; then 15559 GTK_DOC_BUILD_PDF_TRUE= 15560 GTK_DOC_BUILD_PDF_FALSE='#' 15561else 15562 GTK_DOC_BUILD_PDF_TRUE='#' 15563 GTK_DOC_BUILD_PDF_FALSE= 15564fi 15565 15566 if test -n "$LIBTOOL"; then 15567 GTK_DOC_USE_LIBTOOL_TRUE= 15568 GTK_DOC_USE_LIBTOOL_FALSE='#' 15569else 15570 GTK_DOC_USE_LIBTOOL_TRUE='#' 15571 GTK_DOC_USE_LIBTOOL_FALSE= 15572fi 15573 15574 if test -n "$GTKDOC_REBASE"; then 15575 GTK_DOC_USE_REBASE_TRUE= 15576 GTK_DOC_USE_REBASE_FALSE='#' 15577else 15578 GTK_DOC_USE_REBASE_TRUE='#' 15579 GTK_DOC_USE_REBASE_FALSE= 15580fi 15581 15582 15583 15584# Libraries 15585# 15586 15587 15588pkg_failed=no 15589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 15590$as_echo_n "checking for GLIB... " >&6; } 15591 15592if test -n "$GLIB_CFLAGS"; then 15593 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 15594 elif test -n "$PKG_CONFIG"; then 15595 if test -n "$PKG_CONFIG" && \ 15596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gio-2.0 gio-unix-2.0 >= 2.52\""; } >&5 15597 ($PKG_CONFIG --exists --print-errors "glib-2.0 gio-2.0 gio-unix-2.0 >= 2.52") 2>&5 15598 ac_status=$? 15599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15600 test $ac_status = 0; }; then 15601 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 gio-2.0 gio-unix-2.0 >= 2.52" 2>/dev/null` 15602 test "x$?" != "x0" && pkg_failed=yes 15603else 15604 pkg_failed=yes 15605fi 15606 else 15607 pkg_failed=untried 15608fi 15609if test -n "$GLIB_LIBS"; then 15610 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 15611 elif test -n "$PKG_CONFIG"; then 15612 if test -n "$PKG_CONFIG" && \ 15613 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gio-2.0 gio-unix-2.0 >= 2.52\""; } >&5 15614 ($PKG_CONFIG --exists --print-errors "glib-2.0 gio-2.0 gio-unix-2.0 >= 2.52") 2>&5 15615 ac_status=$? 15616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15617 test $ac_status = 0; }; then 15618 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 gio-2.0 gio-unix-2.0 >= 2.52" 2>/dev/null` 15619 test "x$?" != "x0" && pkg_failed=yes 15620else 15621 pkg_failed=yes 15622fi 15623 else 15624 pkg_failed=untried 15625fi 15626 15627 15628 15629if test $pkg_failed = yes; then 15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15631$as_echo "no" >&6; } 15632 15633if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15634 _pkg_short_errors_supported=yes 15635else 15636 _pkg_short_errors_supported=no 15637fi 15638 if test $_pkg_short_errors_supported = yes; then 15639 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 gio-2.0 gio-unix-2.0 >= 2.52" 2>&1` 15640 else 15641 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 gio-2.0 gio-unix-2.0 >= 2.52" 2>&1` 15642 fi 15643 # Put the nasty error message in config.log where it belongs 15644 echo "$GLIB_PKG_ERRORS" >&5 15645 15646 as_fn_error $? "Package requirements (glib-2.0 gio-2.0 gio-unix-2.0 >= 2.52) were not met: 15647 15648$GLIB_PKG_ERRORS 15649 15650Consider adjusting the PKG_CONFIG_PATH environment variable if you 15651installed software in a non-standard prefix. 15652 15653Alternatively, you may set the environment variables GLIB_CFLAGS 15654and GLIB_LIBS to avoid the need to call pkg-config. 15655See the pkg-config man page for more details." "$LINENO" 5 15656elif test $pkg_failed = untried; then 15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15658$as_echo "no" >&6; } 15659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15661as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 15662is in your PATH or set the PKG_CONFIG environment variable to the full 15663path to pkg-config. 15664 15665Alternatively, you may set the environment variables GLIB_CFLAGS 15666and GLIB_LIBS to avoid the need to call pkg-config. 15667See the pkg-config man page for more details. 15668 15669To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15670See \`config.log' for more details" "$LINENO" 5; } 15671else 15672 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 15673 GLIB_LIBS=$pkg_cv_GLIB_LIBS 15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15675$as_echo "yes" >&6; } 15676 15677fi 15678 15679 15680 15681 15682 15683 15684 15685 15686 # Check whether --enable-introspection was given. 15687if test "${enable_introspection+set}" = set; then : 15688 enableval=$enable_introspection; 15689else 15690 enable_introspection=auto 15691fi 15692 15693 15694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5 15695$as_echo_n "checking for gobject-introspection... " >&6; } 15696 15697 case $enable_introspection in #( 15698 no) : 15699 found_introspection="no (disabled, use --enable-introspection to enable)" 15700 ;; #( 15701 yes) : 15702 if test -n "$PKG_CONFIG" && \ 15703 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5 15704 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5 15705 ac_status=$? 15706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15707 test $ac_status = 0; }; then 15708 : 15709else 15710 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5 15711fi 15712 if test -n "$PKG_CONFIG" && \ 15713 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.2\""; } >&5 15714 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.2") 2>&5 15715 ac_status=$? 15716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15717 test $ac_status = 0; }; then 15718 found_introspection=yes 15719else 15720 as_fn_error $? "You need to have gobject-introspection >= 0.6.2 installed to build GNOME Online Accounts" "$LINENO" 5 15721fi 15722 ;; #( 15723 auto) : 15724 if test -n "$PKG_CONFIG" && \ 15725 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.2\""; } >&5 15726 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.2") 2>&5 15727 ac_status=$? 15728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15729 test $ac_status = 0; }; then 15730 found_introspection=yes 15731else 15732 found_introspection=no 15733fi 15734 enable_introspection=$found_introspection 15735 ;; #( 15736 *) : 15737 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5 15738 ;; 15739esac 15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5 15741$as_echo "$found_introspection" >&6; } 15742 15743 15744 EXP_VAR=_GI_EXP_DATADIR 15745 FROM_VAR="$datadir" 15746 15747 prefix_save=$prefix 15748 exec_prefix_save=$exec_prefix 15749 15750 if test "x$prefix" = "xNONE"; then 15751 prefix="$ac_default_prefix" 15752 fi 15753 if test "x$exec_prefix" = "xNONE"; then 15754 exec_prefix=$prefix 15755 fi 15756 15757 full_var="$FROM_VAR" 15758 while true; do 15759 new_full_var="`eval echo $full_var`" 15760 if test "x$new_full_var" = "x$full_var"; then break; fi 15761 full_var=$new_full_var 15762 done 15763 15764 full_var=$new_full_var 15765 _GI_EXP_DATADIR="$full_var" 15766 15767 15768 prefix=$prefix_save 15769 exec_prefix=$exec_prefix_save 15770 15771 15772 EXP_VAR=_GI_EXP_LIBDIR 15773 FROM_VAR="$libdir" 15774 15775 prefix_save=$prefix 15776 exec_prefix_save=$exec_prefix 15777 15778 if test "x$prefix" = "xNONE"; then 15779 prefix="$ac_default_prefix" 15780 fi 15781 if test "x$exec_prefix" = "xNONE"; then 15782 exec_prefix=$prefix 15783 fi 15784 15785 full_var="$FROM_VAR" 15786 while true; do 15787 new_full_var="`eval echo $full_var`" 15788 if test "x$new_full_var" = "x$full_var"; then break; fi 15789 full_var=$new_full_var 15790 done 15791 15792 full_var=$new_full_var 15793 _GI_EXP_LIBDIR="$full_var" 15794 15795 15796 prefix=$prefix_save 15797 exec_prefix=$exec_prefix_save 15798 15799 15800 INTROSPECTION_SCANNER= 15801 INTROSPECTION_COMPILER= 15802 INTROSPECTION_GENERATE= 15803 INTROSPECTION_GIRDIR= 15804 INTROSPECTION_TYPELIBDIR= 15805 if test "x$found_introspection" = "xyes"; then 15806 INTROSPECTION_SCANNER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` 15807 INTROSPECTION_COMPILER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` 15808 INTROSPECTION_GENERATE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` 15809 INTROSPECTION_GIRDIR=`$PKG_CONFIG --define-variable=datadir="${_GI_EXP_DATADIR}" --variable=girdir gobject-introspection-1.0` 15810 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --define-variable=libdir="${_GI_EXP_LIBDIR}" --variable=typelibdir gobject-introspection-1.0)" 15811 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` 15812 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` 15813 INTROSPECTION_MAKEFILE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection 15814 fi 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 if test "x$found_introspection" = "xyes"; then 15825 HAVE_INTROSPECTION_TRUE= 15826 HAVE_INTROSPECTION_FALSE='#' 15827else 15828 HAVE_INTROSPECTION_TRUE='#' 15829 HAVE_INTROSPECTION_FALSE= 15830fi 15831 15832 15833 15834 15835 15836 if test "x" != "xyes"; then : 15837 15838 15839 15840fi 15841 15842 # Check whether --enable-vala was given. 15843if test "${enable_vala+set}" = set; then : 15844 enableval=$enable_vala; 15845else 15846 15847 if test "x" = "x"; then : 15848 15849 enable_vala=auto 15850 15851else 15852 15853 enable_vala= 15854 15855fi 15856 15857fi 15858 15859 15860 case $enable_vala in #( 15861 no) : 15862 enable_vala=no ;; #( 15863 yes) : 15864 15865 if test "x" != "xyes" -a "x$found_introspection" != "xyes"; then : 15866 15867 as_fn_error $? "Vala bindings require GObject Introspection" "$LINENO" 5 15868 15869fi 15870 ;; #( 15871 auto) : 15872 15873 if test "x" != "xyes" -a "x$found_introspection" != "xyes"; then : 15874 15875 enable_vala=no 15876 15877fi 15878 ;; #( 15879 *) : 15880 15881 as_fn_error $? "Invalid argument passed to --enable-vala, should be one of [no/auto/yes]" "$LINENO" 5 15882 ;; 15883esac 15884 15885 if test "x" = "x"; then : 15886 15887 vapigen_pkg_name=vapigen 15888 15889else 15890 15891 vapigen_pkg_name=vapigen- 15892 15893fi 15894 if test "x" = "x"; then : 15895 15896 vapigen_pkg="$vapigen_pkg_name" 15897 15898else 15899 15900 vapigen_pkg="$vapigen_pkg_name >= " 15901 15902fi 15903 15904 15905 15906 15907 15908 15909 15910 15911if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15912 if test -n "$ac_tool_prefix"; then 15913 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15914set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15916$as_echo_n "checking for $ac_word... " >&6; } 15917if ${ac_cv_path_PKG_CONFIG+:} false; then : 15918 $as_echo_n "(cached) " >&6 15919else 15920 case $PKG_CONFIG in 15921 [\\/]* | ?:[\\/]*) 15922 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15923 ;; 15924 *) 15925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15926for as_dir in $PATH 15927do 15928 IFS=$as_save_IFS 15929 test -z "$as_dir" && as_dir=. 15930 for ac_exec_ext in '' $ac_executable_extensions; do 15931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15932 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15934 break 2 15935 fi 15936done 15937 done 15938IFS=$as_save_IFS 15939 15940 ;; 15941esac 15942fi 15943PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15944if test -n "$PKG_CONFIG"; then 15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15946$as_echo "$PKG_CONFIG" >&6; } 15947else 15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15949$as_echo "no" >&6; } 15950fi 15951 15952 15953fi 15954if test -z "$ac_cv_path_PKG_CONFIG"; then 15955 ac_pt_PKG_CONFIG=$PKG_CONFIG 15956 # Extract the first word of "pkg-config", so it can be a program name with args. 15957set dummy pkg-config; ac_word=$2 15958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15959$as_echo_n "checking for $ac_word... " >&6; } 15960if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 15961 $as_echo_n "(cached) " >&6 15962else 15963 case $ac_pt_PKG_CONFIG in 15964 [\\/]* | ?:[\\/]*) 15965 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15966 ;; 15967 *) 15968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15969for as_dir in $PATH 15970do 15971 IFS=$as_save_IFS 15972 test -z "$as_dir" && as_dir=. 15973 for ac_exec_ext in '' $ac_executable_extensions; do 15974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15975 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15977 break 2 15978 fi 15979done 15980 done 15981IFS=$as_save_IFS 15982 15983 ;; 15984esac 15985fi 15986ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15987if test -n "$ac_pt_PKG_CONFIG"; then 15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15989$as_echo "$ac_pt_PKG_CONFIG" >&6; } 15990else 15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15992$as_echo "no" >&6; } 15993fi 15994 15995 if test "x$ac_pt_PKG_CONFIG" = x; then 15996 PKG_CONFIG="" 15997 else 15998 case $cross_compiling:$ac_tool_warned in 15999yes:) 16000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16002ac_tool_warned=yes ;; 16003esac 16004 PKG_CONFIG=$ac_pt_PKG_CONFIG 16005 fi 16006else 16007 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 16008fi 16009 16010fi 16011if test -n "$PKG_CONFIG"; then 16012 _pkg_min_version=0.9.0 16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 16014$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 16015 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16017$as_echo "yes" >&6; } 16018 else 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16020$as_echo "no" >&6; } 16021 PKG_CONFIG="" 16022 fi 16023fi 16024 16025 if test -n "$PKG_CONFIG" && \ 16026 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$vapigen_pkg\""; } >&5 16027 ($PKG_CONFIG --exists --print-errors "$vapigen_pkg") 2>&5 16028 ac_status=$? 16029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16030 test $ac_status = 0; }; then 16031 16032 if test "$enable_vala" = "auto"; then : 16033 16034 enable_vala=yes 16035 16036fi 16037 16038else 16039 16040 case $enable_vala in #( 16041 yes) : 16042 16043 as_fn_error $? "$vapigen_pkg not found" "$LINENO" 5 16044 ;; #( 16045 auto) : 16046 16047 enable_vala=no 16048 ;; #( 16049 *) : 16050 ;; 16051esac 16052 16053fi 16054 16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vapigen" >&5 16056$as_echo_n "checking for vapigen... " >&6; } 16057 16058 case $enable_vala in #( 16059 yes) : 16060 16061 VAPIGEN=`$PKG_CONFIG --variable=vapigen $vapigen_pkg_name` 16062 VAPIGEN_MAKEFILE=`$PKG_CONFIG --variable=datadir $vapigen_pkg_name`/vala/Makefile.vapigen 16063 if test "x" = "x"; then : 16064 16065 VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir $vapigen_pkg_name` 16066 16067else 16068 16069 VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir_versioned $vapigen_pkg_name` 16070 16071fi 16072 ;; #( 16073 *) : 16074 ;; 16075esac 16076 16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vala" >&5 16078$as_echo "$enable_vala" >&6; } 16079 16080 16081 16082 16083 16084 if test "x$enable_vala" = "xyes"; then 16085 ENABLE_VAPIGEN_TRUE= 16086 ENABLE_VAPIGEN_FALSE='#' 16087else 16088 ENABLE_VAPIGEN_TRUE='#' 16089 ENABLE_VAPIGEN_FALSE= 16090fi 16091 16092 16093 16094# Check whether --enable-backend was given. 16095if test "${enable_backend+set}" = set; then : 16096 enableval=$enable_backend; 16097else 16098 enable_backend=yes 16099fi 16100 16101 if test x$enable_backend != xno; then 16102 BUILD_BACKEND_TRUE= 16103 BUILD_BACKEND_FALSE='#' 16104else 16105 BUILD_BACKEND_TRUE='#' 16106 BUILD_BACKEND_FALSE= 16107fi 16108 16109 16110if test "$enable_backend" != "no"; then 16111 16112$as_echo "#define GOA_BACKEND_ENABLED 1" >>confdefs.h 16113 16114 16115 16116pkg_failed=no 16117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 16118$as_echo_n "checking for GTK... " >&6; } 16119 16120if test -n "$GTK_CFLAGS"; then 16121 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" 16122 elif test -n "$PKG_CONFIG"; then 16123 if test -n "$PKG_CONFIG" && \ 16124 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.19.12\""; } >&5 16125 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.19.12") 2>&5 16126 ac_status=$? 16127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16128 test $ac_status = 0; }; then 16129 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.19.12" 2>/dev/null` 16130 test "x$?" != "x0" && pkg_failed=yes 16131else 16132 pkg_failed=yes 16133fi 16134 else 16135 pkg_failed=untried 16136fi 16137if test -n "$GTK_LIBS"; then 16138 pkg_cv_GTK_LIBS="$GTK_LIBS" 16139 elif test -n "$PKG_CONFIG"; then 16140 if test -n "$PKG_CONFIG" && \ 16141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.19.12\""; } >&5 16142 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.19.12") 2>&5 16143 ac_status=$? 16144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16145 test $ac_status = 0; }; then 16146 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.19.12" 2>/dev/null` 16147 test "x$?" != "x0" && pkg_failed=yes 16148else 16149 pkg_failed=yes 16150fi 16151 else 16152 pkg_failed=untried 16153fi 16154 16155 16156 16157if test $pkg_failed = yes; then 16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16159$as_echo "no" >&6; } 16160 16161if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16162 _pkg_short_errors_supported=yes 16163else 16164 _pkg_short_errors_supported=no 16165fi 16166 if test $_pkg_short_errors_supported = yes; then 16167 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.19.12" 2>&1` 16168 else 16169 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.19.12" 2>&1` 16170 fi 16171 # Put the nasty error message in config.log where it belongs 16172 echo "$GTK_PKG_ERRORS" >&5 16173 16174 as_fn_error $? "Package requirements (gtk+-3.0 >= 3.19.12) were not met: 16175 16176$GTK_PKG_ERRORS 16177 16178Consider adjusting the PKG_CONFIG_PATH environment variable if you 16179installed software in a non-standard prefix. 16180 16181Alternatively, you may set the environment variables GTK_CFLAGS 16182and GTK_LIBS to avoid the need to call pkg-config. 16183See the pkg-config man page for more details." "$LINENO" 5 16184elif test $pkg_failed = untried; then 16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16186$as_echo "no" >&6; } 16187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16189as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16190is in your PATH or set the PKG_CONFIG environment variable to the full 16191path to pkg-config. 16192 16193Alternatively, you may set the environment variables GTK_CFLAGS 16194and GTK_LIBS to avoid the need to call pkg-config. 16195See the pkg-config man page for more details. 16196 16197To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16198See \`config.log' for more details" "$LINENO" 5; } 16199else 16200 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS 16201 GTK_LIBS=$pkg_cv_GTK_LIBS 16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16203$as_echo "yes" >&6; } 16204 16205fi 16206 16207 16208 16209 16210pkg_failed=no 16211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVASCRIPT_CORE_GTK" >&5 16212$as_echo_n "checking for JAVASCRIPT_CORE_GTK... " >&6; } 16213 16214if test -n "$JAVASCRIPT_CORE_GTK_CFLAGS"; then 16215 pkg_cv_JAVASCRIPT_CORE_GTK_CFLAGS="$JAVASCRIPT_CORE_GTK_CFLAGS" 16216 elif test -n "$PKG_CONFIG"; then 16217 if test -n "$PKG_CONFIG" && \ 16218 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"javascriptcoregtk-4.0 >= 2.12.0\""; } >&5 16219 ($PKG_CONFIG --exists --print-errors "javascriptcoregtk-4.0 >= 2.12.0") 2>&5 16220 ac_status=$? 16221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16222 test $ac_status = 0; }; then 16223 pkg_cv_JAVASCRIPT_CORE_GTK_CFLAGS=`$PKG_CONFIG --cflags "javascriptcoregtk-4.0 >= 2.12.0" 2>/dev/null` 16224 test "x$?" != "x0" && pkg_failed=yes 16225else 16226 pkg_failed=yes 16227fi 16228 else 16229 pkg_failed=untried 16230fi 16231if test -n "$JAVASCRIPT_CORE_GTK_LIBS"; then 16232 pkg_cv_JAVASCRIPT_CORE_GTK_LIBS="$JAVASCRIPT_CORE_GTK_LIBS" 16233 elif test -n "$PKG_CONFIG"; then 16234 if test -n "$PKG_CONFIG" && \ 16235 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"javascriptcoregtk-4.0 >= 2.12.0\""; } >&5 16236 ($PKG_CONFIG --exists --print-errors "javascriptcoregtk-4.0 >= 2.12.0") 2>&5 16237 ac_status=$? 16238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16239 test $ac_status = 0; }; then 16240 pkg_cv_JAVASCRIPT_CORE_GTK_LIBS=`$PKG_CONFIG --libs "javascriptcoregtk-4.0 >= 2.12.0" 2>/dev/null` 16241 test "x$?" != "x0" && pkg_failed=yes 16242else 16243 pkg_failed=yes 16244fi 16245 else 16246 pkg_failed=untried 16247fi 16248 16249 16250 16251if test $pkg_failed = yes; then 16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16253$as_echo "no" >&6; } 16254 16255if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16256 _pkg_short_errors_supported=yes 16257else 16258 _pkg_short_errors_supported=no 16259fi 16260 if test $_pkg_short_errors_supported = yes; then 16261 JAVASCRIPT_CORE_GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "javascriptcoregtk-4.0 >= 2.12.0" 2>&1` 16262 else 16263 JAVASCRIPT_CORE_GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "javascriptcoregtk-4.0 >= 2.12.0" 2>&1` 16264 fi 16265 # Put the nasty error message in config.log where it belongs 16266 echo "$JAVASCRIPT_CORE_GTK_PKG_ERRORS" >&5 16267 16268 as_fn_error $? "Package requirements (javascriptcoregtk-4.0 >= 2.12.0) were not met: 16269 16270$JAVASCRIPT_CORE_GTK_PKG_ERRORS 16271 16272Consider adjusting the PKG_CONFIG_PATH environment variable if you 16273installed software in a non-standard prefix. 16274 16275Alternatively, you may set the environment variables JAVASCRIPT_CORE_GTK_CFLAGS 16276and JAVASCRIPT_CORE_GTK_LIBS to avoid the need to call pkg-config. 16277See the pkg-config man page for more details." "$LINENO" 5 16278elif test $pkg_failed = untried; then 16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16280$as_echo "no" >&6; } 16281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16283as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16284is in your PATH or set the PKG_CONFIG environment variable to the full 16285path to pkg-config. 16286 16287Alternatively, you may set the environment variables JAVASCRIPT_CORE_GTK_CFLAGS 16288and JAVASCRIPT_CORE_GTK_LIBS to avoid the need to call pkg-config. 16289See the pkg-config man page for more details. 16290 16291To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16292See \`config.log' for more details" "$LINENO" 5; } 16293else 16294 JAVASCRIPT_CORE_GTK_CFLAGS=$pkg_cv_JAVASCRIPT_CORE_GTK_CFLAGS 16295 JAVASCRIPT_CORE_GTK_LIBS=$pkg_cv_JAVASCRIPT_CORE_GTK_LIBS 16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16297$as_echo "yes" >&6; } 16298 16299fi 16300 16301 16302 16303 16304pkg_failed=no 16305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT_GTK" >&5 16306$as_echo_n "checking for WEBKIT_GTK... " >&6; } 16307 16308if test -n "$WEBKIT_GTK_CFLAGS"; then 16309 pkg_cv_WEBKIT_GTK_CFLAGS="$WEBKIT_GTK_CFLAGS" 16310 elif test -n "$PKG_CONFIG"; then 16311 if test -n "$PKG_CONFIG" && \ 16312 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit2gtk-4.0 >= 2.26.0\""; } >&5 16313 ($PKG_CONFIG --exists --print-errors "webkit2gtk-4.0 >= 2.26.0") 2>&5 16314 ac_status=$? 16315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16316 test $ac_status = 0; }; then 16317 pkg_cv_WEBKIT_GTK_CFLAGS=`$PKG_CONFIG --cflags "webkit2gtk-4.0 >= 2.26.0" 2>/dev/null` 16318 test "x$?" != "x0" && pkg_failed=yes 16319else 16320 pkg_failed=yes 16321fi 16322 else 16323 pkg_failed=untried 16324fi 16325if test -n "$WEBKIT_GTK_LIBS"; then 16326 pkg_cv_WEBKIT_GTK_LIBS="$WEBKIT_GTK_LIBS" 16327 elif test -n "$PKG_CONFIG"; then 16328 if test -n "$PKG_CONFIG" && \ 16329 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit2gtk-4.0 >= 2.26.0\""; } >&5 16330 ($PKG_CONFIG --exists --print-errors "webkit2gtk-4.0 >= 2.26.0") 2>&5 16331 ac_status=$? 16332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16333 test $ac_status = 0; }; then 16334 pkg_cv_WEBKIT_GTK_LIBS=`$PKG_CONFIG --libs "webkit2gtk-4.0 >= 2.26.0" 2>/dev/null` 16335 test "x$?" != "x0" && pkg_failed=yes 16336else 16337 pkg_failed=yes 16338fi 16339 else 16340 pkg_failed=untried 16341fi 16342 16343 16344 16345if test $pkg_failed = yes; then 16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16347$as_echo "no" >&6; } 16348 16349if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16350 _pkg_short_errors_supported=yes 16351else 16352 _pkg_short_errors_supported=no 16353fi 16354 if test $_pkg_short_errors_supported = yes; then 16355 WEBKIT_GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "webkit2gtk-4.0 >= 2.26.0" 2>&1` 16356 else 16357 WEBKIT_GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "webkit2gtk-4.0 >= 2.26.0" 2>&1` 16358 fi 16359 # Put the nasty error message in config.log where it belongs 16360 echo "$WEBKIT_GTK_PKG_ERRORS" >&5 16361 16362 as_fn_error $? "Package requirements (webkit2gtk-4.0 >= 2.26.0) were not met: 16363 16364$WEBKIT_GTK_PKG_ERRORS 16365 16366Consider adjusting the PKG_CONFIG_PATH environment variable if you 16367installed software in a non-standard prefix. 16368 16369Alternatively, you may set the environment variables WEBKIT_GTK_CFLAGS 16370and WEBKIT_GTK_LIBS to avoid the need to call pkg-config. 16371See the pkg-config man page for more details." "$LINENO" 5 16372elif test $pkg_failed = untried; then 16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16374$as_echo "no" >&6; } 16375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16377as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16378is in your PATH or set the PKG_CONFIG environment variable to the full 16379path to pkg-config. 16380 16381Alternatively, you may set the environment variables WEBKIT_GTK_CFLAGS 16382and WEBKIT_GTK_LIBS to avoid the need to call pkg-config. 16383See the pkg-config man page for more details. 16384 16385To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16386See \`config.log' for more details" "$LINENO" 5; } 16387else 16388 WEBKIT_GTK_CFLAGS=$pkg_cv_WEBKIT_GTK_CFLAGS 16389 WEBKIT_GTK_LIBS=$pkg_cv_WEBKIT_GTK_LIBS 16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16391$as_echo "yes" >&6; } 16392 16393fi 16394 16395 16396 16397 16398pkg_failed=no 16399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSOUP" >&5 16400$as_echo_n "checking for LIBSOUP... " >&6; } 16401 16402if test -n "$LIBSOUP_CFLAGS"; then 16403 pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS" 16404 elif test -n "$PKG_CONFIG"; then 16405 if test -n "$PKG_CONFIG" && \ 16406 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4 >= 2.42\""; } >&5 16407 ($PKG_CONFIG --exists --print-errors "libsoup-2.4 >= 2.42") 2>&5 16408 ac_status=$? 16409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16410 test $ac_status = 0; }; then 16411 pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4 >= 2.42" 2>/dev/null` 16412 test "x$?" != "x0" && pkg_failed=yes 16413else 16414 pkg_failed=yes 16415fi 16416 else 16417 pkg_failed=untried 16418fi 16419if test -n "$LIBSOUP_LIBS"; then 16420 pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS" 16421 elif test -n "$PKG_CONFIG"; then 16422 if test -n "$PKG_CONFIG" && \ 16423 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4 >= 2.42\""; } >&5 16424 ($PKG_CONFIG --exists --print-errors "libsoup-2.4 >= 2.42") 2>&5 16425 ac_status=$? 16426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16427 test $ac_status = 0; }; then 16428 pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4 >= 2.42" 2>/dev/null` 16429 test "x$?" != "x0" && pkg_failed=yes 16430else 16431 pkg_failed=yes 16432fi 16433 else 16434 pkg_failed=untried 16435fi 16436 16437 16438 16439if test $pkg_failed = yes; then 16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16441$as_echo "no" >&6; } 16442 16443if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16444 _pkg_short_errors_supported=yes 16445else 16446 _pkg_short_errors_supported=no 16447fi 16448 if test $_pkg_short_errors_supported = yes; then 16449 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsoup-2.4 >= 2.42" 2>&1` 16450 else 16451 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsoup-2.4 >= 2.42" 2>&1` 16452 fi 16453 # Put the nasty error message in config.log where it belongs 16454 echo "$LIBSOUP_PKG_ERRORS" >&5 16455 16456 as_fn_error $? "Package requirements (libsoup-2.4 >= 2.42) were not met: 16457 16458$LIBSOUP_PKG_ERRORS 16459 16460Consider adjusting the PKG_CONFIG_PATH environment variable if you 16461installed software in a non-standard prefix. 16462 16463Alternatively, you may set the environment variables LIBSOUP_CFLAGS 16464and LIBSOUP_LIBS to avoid the need to call pkg-config. 16465See the pkg-config man page for more details." "$LINENO" 5 16466elif test $pkg_failed = untried; then 16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16468$as_echo "no" >&6; } 16469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16471as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16472is in your PATH or set the PKG_CONFIG environment variable to the full 16473path to pkg-config. 16474 16475Alternatively, you may set the environment variables LIBSOUP_CFLAGS 16476and LIBSOUP_LIBS to avoid the need to call pkg-config. 16477See the pkg-config man page for more details. 16478 16479To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16480See \`config.log' for more details" "$LINENO" 5; } 16481else 16482 LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS 16483 LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS 16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16485$as_echo "yes" >&6; } 16486 16487fi 16488 16489 16490 16491 16492pkg_failed=no 16493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON_GLIB" >&5 16494$as_echo_n "checking for JSON_GLIB... " >&6; } 16495 16496if test -n "$JSON_GLIB_CFLAGS"; then 16497 pkg_cv_JSON_GLIB_CFLAGS="$JSON_GLIB_CFLAGS" 16498 elif test -n "$PKG_CONFIG"; then 16499 if test -n "$PKG_CONFIG" && \ 16500 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-glib-1.0\""; } >&5 16501 ($PKG_CONFIG --exists --print-errors "json-glib-1.0") 2>&5 16502 ac_status=$? 16503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16504 test $ac_status = 0; }; then 16505 pkg_cv_JSON_GLIB_CFLAGS=`$PKG_CONFIG --cflags "json-glib-1.0" 2>/dev/null` 16506 test "x$?" != "x0" && pkg_failed=yes 16507else 16508 pkg_failed=yes 16509fi 16510 else 16511 pkg_failed=untried 16512fi 16513if test -n "$JSON_GLIB_LIBS"; then 16514 pkg_cv_JSON_GLIB_LIBS="$JSON_GLIB_LIBS" 16515 elif test -n "$PKG_CONFIG"; then 16516 if test -n "$PKG_CONFIG" && \ 16517 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-glib-1.0\""; } >&5 16518 ($PKG_CONFIG --exists --print-errors "json-glib-1.0") 2>&5 16519 ac_status=$? 16520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16521 test $ac_status = 0; }; then 16522 pkg_cv_JSON_GLIB_LIBS=`$PKG_CONFIG --libs "json-glib-1.0" 2>/dev/null` 16523 test "x$?" != "x0" && pkg_failed=yes 16524else 16525 pkg_failed=yes 16526fi 16527 else 16528 pkg_failed=untried 16529fi 16530 16531 16532 16533if test $pkg_failed = yes; then 16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16535$as_echo "no" >&6; } 16536 16537if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16538 _pkg_short_errors_supported=yes 16539else 16540 _pkg_short_errors_supported=no 16541fi 16542 if test $_pkg_short_errors_supported = yes; then 16543 JSON_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-glib-1.0" 2>&1` 16544 else 16545 JSON_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-glib-1.0" 2>&1` 16546 fi 16547 # Put the nasty error message in config.log where it belongs 16548 echo "$JSON_GLIB_PKG_ERRORS" >&5 16549 16550 as_fn_error $? "Package requirements (json-glib-1.0) were not met: 16551 16552$JSON_GLIB_PKG_ERRORS 16553 16554Consider adjusting the PKG_CONFIG_PATH environment variable if you 16555installed software in a non-standard prefix. 16556 16557Alternatively, you may set the environment variables JSON_GLIB_CFLAGS 16558and JSON_GLIB_LIBS to avoid the need to call pkg-config. 16559See the pkg-config man page for more details." "$LINENO" 5 16560elif test $pkg_failed = untried; then 16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16562$as_echo "no" >&6; } 16563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16565as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16566is in your PATH or set the PKG_CONFIG environment variable to the full 16567path to pkg-config. 16568 16569Alternatively, you may set the environment variables JSON_GLIB_CFLAGS 16570and JSON_GLIB_LIBS to avoid the need to call pkg-config. 16571See the pkg-config man page for more details. 16572 16573To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16574See \`config.log' for more details" "$LINENO" 5; } 16575else 16576 JSON_GLIB_CFLAGS=$pkg_cv_JSON_GLIB_CFLAGS 16577 JSON_GLIB_LIBS=$pkg_cv_JSON_GLIB_LIBS 16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16579$as_echo "yes" >&6; } 16580 16581fi 16582 16583 16584 16585 16586pkg_failed=no 16587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for REST" >&5 16588$as_echo_n "checking for REST... " >&6; } 16589 16590if test -n "$REST_CFLAGS"; then 16591 pkg_cv_REST_CFLAGS="$REST_CFLAGS" 16592 elif test -n "$PKG_CONFIG"; then 16593 if test -n "$PKG_CONFIG" && \ 16594 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rest-0.7\""; } >&5 16595 ($PKG_CONFIG --exists --print-errors "rest-0.7") 2>&5 16596 ac_status=$? 16597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16598 test $ac_status = 0; }; then 16599 pkg_cv_REST_CFLAGS=`$PKG_CONFIG --cflags "rest-0.7" 2>/dev/null` 16600 test "x$?" != "x0" && pkg_failed=yes 16601else 16602 pkg_failed=yes 16603fi 16604 else 16605 pkg_failed=untried 16606fi 16607if test -n "$REST_LIBS"; then 16608 pkg_cv_REST_LIBS="$REST_LIBS" 16609 elif test -n "$PKG_CONFIG"; then 16610 if test -n "$PKG_CONFIG" && \ 16611 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rest-0.7\""; } >&5 16612 ($PKG_CONFIG --exists --print-errors "rest-0.7") 2>&5 16613 ac_status=$? 16614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16615 test $ac_status = 0; }; then 16616 pkg_cv_REST_LIBS=`$PKG_CONFIG --libs "rest-0.7" 2>/dev/null` 16617 test "x$?" != "x0" && pkg_failed=yes 16618else 16619 pkg_failed=yes 16620fi 16621 else 16622 pkg_failed=untried 16623fi 16624 16625 16626 16627if test $pkg_failed = yes; then 16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16629$as_echo "no" >&6; } 16630 16631if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16632 _pkg_short_errors_supported=yes 16633else 16634 _pkg_short_errors_supported=no 16635fi 16636 if test $_pkg_short_errors_supported = yes; then 16637 REST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "rest-0.7" 2>&1` 16638 else 16639 REST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "rest-0.7" 2>&1` 16640 fi 16641 # Put the nasty error message in config.log where it belongs 16642 echo "$REST_PKG_ERRORS" >&5 16643 16644 as_fn_error $? "Package requirements (rest-0.7) were not met: 16645 16646$REST_PKG_ERRORS 16647 16648Consider adjusting the PKG_CONFIG_PATH environment variable if you 16649installed software in a non-standard prefix. 16650 16651Alternatively, you may set the environment variables REST_CFLAGS 16652and REST_LIBS to avoid the need to call pkg-config. 16653See the pkg-config man page for more details." "$LINENO" 5 16654elif test $pkg_failed = untried; then 16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16656$as_echo "no" >&6; } 16657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16659as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16660is in your PATH or set the PKG_CONFIG environment variable to the full 16661path to pkg-config. 16662 16663Alternatively, you may set the environment variables REST_CFLAGS 16664and REST_LIBS to avoid the need to call pkg-config. 16665See the pkg-config man page for more details. 16666 16667To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16668See \`config.log' for more details" "$LINENO" 5; } 16669else 16670 REST_CFLAGS=$pkg_cv_REST_CFLAGS 16671 REST_LIBS=$pkg_cv_REST_LIBS 16672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16673$as_echo "yes" >&6; } 16674 16675fi 16676 16677 16678 16679 16680pkg_failed=no 16681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SECRET" >&5 16682$as_echo_n "checking for SECRET... " >&6; } 16683 16684if test -n "$SECRET_CFLAGS"; then 16685 pkg_cv_SECRET_CFLAGS="$SECRET_CFLAGS" 16686 elif test -n "$PKG_CONFIG"; then 16687 if test -n "$PKG_CONFIG" && \ 16688 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsecret-1\""; } >&5 16689 ($PKG_CONFIG --exists --print-errors "libsecret-1") 2>&5 16690 ac_status=$? 16691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16692 test $ac_status = 0; }; then 16693 pkg_cv_SECRET_CFLAGS=`$PKG_CONFIG --cflags "libsecret-1" 2>/dev/null` 16694 test "x$?" != "x0" && pkg_failed=yes 16695else 16696 pkg_failed=yes 16697fi 16698 else 16699 pkg_failed=untried 16700fi 16701if test -n "$SECRET_LIBS"; then 16702 pkg_cv_SECRET_LIBS="$SECRET_LIBS" 16703 elif test -n "$PKG_CONFIG"; then 16704 if test -n "$PKG_CONFIG" && \ 16705 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsecret-1\""; } >&5 16706 ($PKG_CONFIG --exists --print-errors "libsecret-1") 2>&5 16707 ac_status=$? 16708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16709 test $ac_status = 0; }; then 16710 pkg_cv_SECRET_LIBS=`$PKG_CONFIG --libs "libsecret-1" 2>/dev/null` 16711 test "x$?" != "x0" && pkg_failed=yes 16712else 16713 pkg_failed=yes 16714fi 16715 else 16716 pkg_failed=untried 16717fi 16718 16719 16720 16721if test $pkg_failed = yes; then 16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16723$as_echo "no" >&6; } 16724 16725if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16726 _pkg_short_errors_supported=yes 16727else 16728 _pkg_short_errors_supported=no 16729fi 16730 if test $_pkg_short_errors_supported = yes; then 16731 SECRET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsecret-1" 2>&1` 16732 else 16733 SECRET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsecret-1" 2>&1` 16734 fi 16735 # Put the nasty error message in config.log where it belongs 16736 echo "$SECRET_PKG_ERRORS" >&5 16737 16738 as_fn_error $? "Package requirements (libsecret-1) were not met: 16739 16740$SECRET_PKG_ERRORS 16741 16742Consider adjusting the PKG_CONFIG_PATH environment variable if you 16743installed software in a non-standard prefix. 16744 16745Alternatively, you may set the environment variables SECRET_CFLAGS 16746and SECRET_LIBS to avoid the need to call pkg-config. 16747See the pkg-config man page for more details." "$LINENO" 5 16748elif test $pkg_failed = untried; then 16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16750$as_echo "no" >&6; } 16751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16753as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16754is in your PATH or set the PKG_CONFIG environment variable to the full 16755path to pkg-config. 16756 16757Alternatively, you may set the environment variables SECRET_CFLAGS 16758and SECRET_LIBS to avoid the need to call pkg-config. 16759See the pkg-config man page for more details. 16760 16761To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16762See \`config.log' for more details" "$LINENO" 5; } 16763else 16764 SECRET_CFLAGS=$pkg_cv_SECRET_CFLAGS 16765 SECRET_LIBS=$pkg_cv_SECRET_LIBS 16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16767$as_echo "yes" >&6; } 16768 16769fi 16770 16771 16772 16773 16774pkg_failed=no 16775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML" >&5 16776$as_echo_n "checking for LIBXML... " >&6; } 16777 16778if test -n "$LIBXML_CFLAGS"; then 16779 pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" 16780 elif test -n "$PKG_CONFIG"; then 16781 if test -n "$PKG_CONFIG" && \ 16782 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 16783 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 16784 ac_status=$? 16785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16786 test $ac_status = 0; }; then 16787 pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` 16788 test "x$?" != "x0" && pkg_failed=yes 16789else 16790 pkg_failed=yes 16791fi 16792 else 16793 pkg_failed=untried 16794fi 16795if test -n "$LIBXML_LIBS"; then 16796 pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" 16797 elif test -n "$PKG_CONFIG"; then 16798 if test -n "$PKG_CONFIG" && \ 16799 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 16800 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 16801 ac_status=$? 16802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16803 test $ac_status = 0; }; then 16804 pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` 16805 test "x$?" != "x0" && pkg_failed=yes 16806else 16807 pkg_failed=yes 16808fi 16809 else 16810 pkg_failed=untried 16811fi 16812 16813 16814 16815if test $pkg_failed = yes; then 16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16817$as_echo "no" >&6; } 16818 16819if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16820 _pkg_short_errors_supported=yes 16821else 16822 _pkg_short_errors_supported=no 16823fi 16824 if test $_pkg_short_errors_supported = yes; then 16825 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1` 16826 else 16827 LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1` 16828 fi 16829 # Put the nasty error message in config.log where it belongs 16830 echo "$LIBXML_PKG_ERRORS" >&5 16831 16832 as_fn_error $? "Package requirements (libxml-2.0) were not met: 16833 16834$LIBXML_PKG_ERRORS 16835 16836Consider adjusting the PKG_CONFIG_PATH environment variable if you 16837installed software in a non-standard prefix. 16838 16839Alternatively, you may set the environment variables LIBXML_CFLAGS 16840and LIBXML_LIBS to avoid the need to call pkg-config. 16841See the pkg-config man page for more details." "$LINENO" 5 16842elif test $pkg_failed = untried; then 16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16844$as_echo "no" >&6; } 16845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16847as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16848is in your PATH or set the PKG_CONFIG environment variable to the full 16849path to pkg-config. 16850 16851Alternatively, you may set the environment variables LIBXML_CFLAGS 16852and LIBXML_LIBS to avoid the need to call pkg-config. 16853See the pkg-config man page for more details. 16854 16855To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16856See \`config.log' for more details" "$LINENO" 5; } 16857else 16858 LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS 16859 LIBXML_LIBS=$pkg_cv_LIBXML_LIBS 16860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16861$as_echo "yes" >&6; } 16862 16863fi 16864 16865 16866fi 16867 16868# Check whether --enable-inspector was given. 16869if test "${enable_inspector+set}" = set; then : 16870 enableval=$enable_inspector; 16871else 16872 enable_inspector=no 16873fi 16874 16875if test "$enable_inspector" != "no"; then 16876 16877$as_echo "#define GOA_INSPECTOR_ENABLED 1" >>confdefs.h 16878 16879fi 16880 16881 16882# Check whether --with-template-file was given. 16883if test "${with_template_file+set}" = set; then : 16884 withval=$with_template_file; 16885fi 16886 16887 16888cat >>confdefs.h <<_ACEOF 16889#define GOA_TEMPLATE_FILE "$with_template_file" 16890_ACEOF 16891 16892 16893# service providers 16894# 16895 16896# Microsoft Exchange 16897 16898$as_echo "#define GOA_EXCHANGE_NAME \"exchange\"" >>confdefs.h 16899 16900# Check whether --enable-exchange was given. 16901if test "${enable_exchange+set}" = set; then : 16902 enableval=$enable_exchange; 16903else 16904 enable_exchange=yes 16905fi 16906 16907if test "$enable_exchange" != "no"; then 16908 16909$as_echo "#define GOA_EXCHANGE_ENABLED 1" >>confdefs.h 16910 16911fi 16912 16913# Fedora 16914 16915$as_echo "#define GOA_FEDORA_NAME \"fedora\"" >>confdefs.h 16916 16917 16918$as_echo "#define GOA_FEDORA_REALM \"FEDORAPROJECT.ORG\"" >>confdefs.h 16919 16920# Check whether --enable-fedora was given. 16921if test "${enable_fedora+set}" = set; then : 16922 enableval=$enable_fedora; enable_fedora=$enableval 16923else 16924 enable_fedora=auto 16925fi 16926 16927# Extract the first word of "krb5-config", so it can be a program name with args. 16928set dummy krb5-config; ac_word=$2 16929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16930$as_echo_n "checking for $ac_word... " >&6; } 16931if ${ac_cv_path_KRB5_CONFIG+:} false; then : 16932 $as_echo_n "(cached) " >&6 16933else 16934 case $KRB5_CONFIG in 16935 [\\/]* | ?:[\\/]*) 16936 ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path. 16937 ;; 16938 *) 16939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16940as_dummy="$PATH:/usr/kerberos/bin" 16941for as_dir in $as_dummy 16942do 16943 IFS=$as_save_IFS 16944 test -z "$as_dir" && as_dir=. 16945 for ac_exec_ext in '' $ac_executable_extensions; do 16946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16947 ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16949 break 2 16950 fi 16951done 16952 done 16953IFS=$as_save_IFS 16954 16955 test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="none" 16956 ;; 16957esac 16958fi 16959KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG 16960if test -n "$KRB5_CONFIG"; then 16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5 16962$as_echo "$KRB5_CONFIG" >&6; } 16963else 16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16965$as_echo "no" >&6; } 16966fi 16967 16968 16969 16970if test "x$KRB5_CONFIG" != "xnone"; then 16971 KRB5_LIBS="`${KRB5_CONFIG} --libs krb5`" 16972 KRB5_CFLAGS="`${KRB5_CONFIG} --cflags krb5`" 16973 16974pkg_failed=no 16975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCR" >&5 16976$as_echo_n "checking for GCR... " >&6; } 16977 16978if test -n "$GCR_CFLAGS"; then 16979 pkg_cv_GCR_CFLAGS="$GCR_CFLAGS" 16980 elif test -n "$PKG_CONFIG"; then 16981 if test -n "$PKG_CONFIG" && \ 16982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gcr-3\""; } >&5 16983 ($PKG_CONFIG --exists --print-errors "gcr-3") 2>&5 16984 ac_status=$? 16985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16986 test $ac_status = 0; }; then 16987 pkg_cv_GCR_CFLAGS=`$PKG_CONFIG --cflags "gcr-3" 2>/dev/null` 16988 test "x$?" != "x0" && pkg_failed=yes 16989else 16990 pkg_failed=yes 16991fi 16992 else 16993 pkg_failed=untried 16994fi 16995if test -n "$GCR_LIBS"; then 16996 pkg_cv_GCR_LIBS="$GCR_LIBS" 16997 elif test -n "$PKG_CONFIG"; then 16998 if test -n "$PKG_CONFIG" && \ 16999 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gcr-3\""; } >&5 17000 ($PKG_CONFIG --exists --print-errors "gcr-3") 2>&5 17001 ac_status=$? 17002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17003 test $ac_status = 0; }; then 17004 pkg_cv_GCR_LIBS=`$PKG_CONFIG --libs "gcr-3" 2>/dev/null` 17005 test "x$?" != "x0" && pkg_failed=yes 17006else 17007 pkg_failed=yes 17008fi 17009 else 17010 pkg_failed=untried 17011fi 17012 17013 17014 17015if test $pkg_failed = yes; then 17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17017$as_echo "no" >&6; } 17018 17019if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17020 _pkg_short_errors_supported=yes 17021else 17022 _pkg_short_errors_supported=no 17023fi 17024 if test $_pkg_short_errors_supported = yes; then 17025 GCR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gcr-3" 2>&1` 17026 else 17027 GCR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gcr-3" 2>&1` 17028 fi 17029 # Put the nasty error message in config.log where it belongs 17030 echo "$GCR_PKG_ERRORS" >&5 17031 17032 have_fedora=no 17033elif test $pkg_failed = untried; then 17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17035$as_echo "no" >&6; } 17036 have_fedora=no 17037else 17038 GCR_CFLAGS=$pkg_cv_GCR_CFLAGS 17039 GCR_LIBS=$pkg_cv_GCR_LIBS 17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17041$as_echo "yes" >&6; } 17042 have_fedora=yes 17043fi 17044else 17045 KRB5_LIBS="" 17046 KRB5_CFLAGS="" 17047 have_fedora=no 17048fi 17049 17050 17051 17052if test "$enable_fedora" != "no"; then 17053 if test "$enable_fedora" == "yes" && 17054 test "$have_fedora" == "no" ; then 17055 as_fn_error $? "Fedora Account System support requested, but not available" "$LINENO" 5 17056 fi 17057 17058 enable_fedora=$have_fedora 17059 17060 if test "$enable_fedora" == "yes"; then 17061 17062$as_echo "#define GCR_API_SUBJECT_TO_CHANGE 1" >>confdefs.h 17063 17064 17065$as_echo "#define GOA_FEDORA_ENABLED 1" >>confdefs.h 17066 17067 fi 17068else 17069 enable_fedora=no 17070fi 17071 if test x$enable_fedora != xno; then 17072 BUILD_FEDORA_TRUE= 17073 BUILD_FEDORA_FALSE='#' 17074else 17075 BUILD_FEDORA_TRUE='#' 17076 BUILD_FEDORA_FALSE= 17077fi 17078 17079 17080# Flickr 17081 17082$as_echo "#define GOA_FLICKR_NAME \"flickr\"" >>confdefs.h 17083 17084# Check whether --enable-flickr was given. 17085if test "${enable_flickr+set}" = set; then : 17086 enableval=$enable_flickr; 17087else 17088 enable_flickr=yes 17089fi 17090 17091 17092# Check whether --with-flickr-consumer-key was given. 17093if test "${with_flickr_consumer_key+set}" = set; then : 17094 withval=$with_flickr_consumer_key; 17095fi 17096 17097 17098# Check whether --with-flickr-consumer-secret was given. 17099if test "${with_flickr_consumer_secret+set}" = set; then : 17100 withval=$with_flickr_consumer_secret; 17101fi 17102 17103if test "$with_flickr_consumer_key" = ""; then 17104 with_flickr_consumer_key=ed00ad7e0869897506e23c0d18e34d01 17105fi 17106if test "$with_flickr_consumer_secret" = ""; then 17107 with_flickr_consumer_secret=ebd556dd187188b1 17108fi 17109 17110cat >>confdefs.h <<_ACEOF 17111#define GOA_FLICKR_CONSUMER_KEY "$with_flickr_consumer_key" 17112_ACEOF 17113 17114 17115cat >>confdefs.h <<_ACEOF 17116#define GOA_FLICKR_CONSUMER_SECRET "$with_flickr_consumer_secret" 17117_ACEOF 17118 17119if test "$enable_flickr" != "no"; then 17120 17121$as_echo "#define GOA_FLICKR_ENABLED 1" >>confdefs.h 17122 17123fi 17124 17125# Foursquare 17126 17127$as_echo "#define GOA_FOURSQUARE_NAME \"foursquare\"" >>confdefs.h 17128 17129# Check whether --enable-foursquare was given. 17130if test "${enable_foursquare+set}" = set; then : 17131 enableval=$enable_foursquare; 17132else 17133 enable_foursquare=yes 17134fi 17135 17136 17137# Check whether --with-foursquare-client-id was given. 17138if test "${with_foursquare_client_id+set}" = set; then : 17139 withval=$with_foursquare_client_id; 17140fi 17141 17142if test "$with_foursquare_client_id" = ""; then 17143 with_foursquare_client_id="MBNU2NES5HASNDQJ25YPFGG2UGRZHPI3IYTNJGE0KIWT2HCF" 17144fi 17145 17146cat >>confdefs.h <<_ACEOF 17147#define GOA_FOURSQUARE_CLIENT_ID "$with_foursquare_client_id" 17148_ACEOF 17149 17150if test "$enable_foursquare" != "no"; then 17151 17152$as_echo "#define GOA_FOURSQUARE_ENABLED 1" >>confdefs.h 17153 17154fi 17155 17156# Google 17157 17158$as_echo "#define GOA_GOOGLE_NAME \"google\"" >>confdefs.h 17159 17160# Check whether --enable-google was given. 17161if test "${enable_google+set}" = set; then : 17162 enableval=$enable_google; 17163else 17164 enable_google=yes 17165fi 17166 17167 17168# Check whether --with-google-client-id was given. 17169if test "${with_google_client_id+set}" = set; then : 17170 withval=$with_google_client_id; 17171fi 17172 17173 17174# Check whether --with-google-client-secret was given. 17175if test "${with_google_client_secret+set}" = set; then : 17176 withval=$with_google_client_secret; 17177fi 17178 17179if test "$with_google_client_id" = ""; then 17180 with_google_client_id=44438659992-7kgjeitenc16ssihbtdjbgguch7ju55s.apps.googleusercontent.com 17181fi 17182if test "$with_google_client_secret" = ""; then 17183 with_google_client_secret=-gMLuQyDiI0XrQS_vx_mhuYF 17184fi 17185 17186cat >>confdefs.h <<_ACEOF 17187#define GOA_GOOGLE_CLIENT_ID "$with_google_client_id" 17188_ACEOF 17189 17190 17191cat >>confdefs.h <<_ACEOF 17192#define GOA_GOOGLE_CLIENT_SECRET "$with_google_client_secret" 17193_ACEOF 17194 17195if test "$enable_google" != "no"; then 17196 17197$as_echo "#define GOA_GOOGLE_ENABLED 1" >>confdefs.h 17198 17199fi 17200 17201# IMAP/SMTP 17202 17203$as_echo "#define GOA_IMAP_SMTP_NAME \"imap_smtp\"" >>confdefs.h 17204 17205# Check whether --enable-imap-smtp was given. 17206if test "${enable_imap_smtp+set}" = set; then : 17207 enableval=$enable_imap_smtp; 17208else 17209 enable_imap_smtp=yes 17210fi 17211 17212if test "$enable_imap_smtp" != "no"; then 17213 17214$as_echo "#define GOA_IMAP_SMTP_ENABLED 1" >>confdefs.h 17215 17216fi 17217 17218# Media Server 17219 17220$as_echo "#define GOA_MEDIA_SERVER_NAME \"media-server\"" >>confdefs.h 17221 17222# Check whether --enable-media-server was given. 17223if test "${enable_media_server+set}" = set; then : 17224 enableval=$enable_media_server; 17225else 17226 enable_media_server=no 17227fi 17228 17229if test "$enable_media_server" != "no"; then 17230 17231$as_echo "#define GOA_MEDIA_SERVER_ENABLED 1" >>confdefs.h 17232 17233fi 17234 17235# ownCloud 17236 17237$as_echo "#define GOA_OWNCLOUD_NAME \"owncloud\"" >>confdefs.h 17238 17239# Check whether --enable-owncloud was given. 17240if test "${enable_owncloud+set}" = set; then : 17241 enableval=$enable_owncloud; 17242else 17243 enable_owncloud=yes 17244fi 17245 17246if test "$enable_owncloud" != "no"; then 17247 17248$as_echo "#define GOA_OWNCLOUD_ENABLED 1" >>confdefs.h 17249 17250fi 17251 17252# Facebook 17253 17254$as_echo "#define GOA_FACEBOOK_NAME \"facebook\"" >>confdefs.h 17255 17256# Check whether --enable-facebook was given. 17257if test "${enable_facebook+set}" = set; then : 17258 enableval=$enable_facebook; 17259else 17260 enable_facebook=yes 17261fi 17262 17263 17264# Check whether --with-facebook-client-id was given. 17265if test "${with_facebook_client_id+set}" = set; then : 17266 withval=$with_facebook_client_id; 17267fi 17268 17269if test "$with_facebook_client_id" = ""; then 17270 with_facebook_client_id=297654143624603 17271fi 17272 17273cat >>confdefs.h <<_ACEOF 17274#define GOA_FACEBOOK_CLIENT_ID "$with_facebook_client_id" 17275_ACEOF 17276 17277if test "$enable_facebook" != "no"; then 17278 17279$as_echo "#define GOA_FACEBOOK_ENABLED 1" >>confdefs.h 17280 17281fi 17282 17283# Windows Live 17284 17285$as_echo "#define GOA_WINDOWS_LIVE_NAME \"windows_live\"" >>confdefs.h 17286 17287# Check whether --enable-windows-live was given. 17288if test "${enable_windows_live+set}" = set; then : 17289 enableval=$enable_windows_live; 17290else 17291 enable_windows_live=yes 17292fi 17293 17294 17295# Check whether --with-windows-live-client-id was given. 17296if test "${with_windows_live_client_id+set}" = set; then : 17297 withval=$with_windows_live_client_id; 17298fi 17299 17300if test "$with_windows_live_client_id" = ""; then 17301 with_windows_live_client_id=0000000044067703 17302fi 17303 17304cat >>confdefs.h <<_ACEOF 17305#define GOA_WINDOWS_LIVE_CLIENT_ID "$with_windows_live_client_id" 17306_ACEOF 17307 17308if test "$enable_windows_live" != "no"; then 17309 17310$as_echo "#define GOA_WINDOWS_LIVE_ENABLED 1" >>confdefs.h 17311 17312fi 17313 17314# Kerberos 17315 17316$as_echo "#define GOA_KERBEROS_NAME \"kerberos\"" >>confdefs.h 17317 17318# Check whether --enable-kerberos was given. 17319if test "${enable_kerberos+set}" = set; then : 17320 enableval=$enable_kerberos; enable_kerberos=$enableval 17321else 17322 enable_kerberos=auto 17323fi 17324 17325# Extract the first word of "krb5-config", so it can be a program name with args. 17326set dummy krb5-config; ac_word=$2 17327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17328$as_echo_n "checking for $ac_word... " >&6; } 17329if ${ac_cv_path_KRB5_CONFIG+:} false; then : 17330 $as_echo_n "(cached) " >&6 17331else 17332 case $KRB5_CONFIG in 17333 [\\/]* | ?:[\\/]*) 17334 ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path. 17335 ;; 17336 *) 17337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17338as_dummy="$PATH:/usr/kerberos/bin" 17339for as_dir in $as_dummy 17340do 17341 IFS=$as_save_IFS 17342 test -z "$as_dir" && as_dir=. 17343 for ac_exec_ext in '' $ac_executable_extensions; do 17344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17345 ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17347 break 2 17348 fi 17349done 17350 done 17351IFS=$as_save_IFS 17352 17353 test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="none" 17354 ;; 17355esac 17356fi 17357KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG 17358if test -n "$KRB5_CONFIG"; then 17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5 17360$as_echo "$KRB5_CONFIG" >&6; } 17361else 17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17363$as_echo "no" >&6; } 17364fi 17365 17366 17367 17368if test "x$KRB5_CONFIG" != "xnone"; then 17369 KRB5_LIBS="`${KRB5_CONFIG} --libs krb5`" 17370 KRB5_CFLAGS="`${KRB5_CONFIG} --cflags krb5`" 17371 17372pkg_failed=no 17373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCR" >&5 17374$as_echo_n "checking for GCR... " >&6; } 17375 17376if test -n "$GCR_CFLAGS"; then 17377 pkg_cv_GCR_CFLAGS="$GCR_CFLAGS" 17378 elif test -n "$PKG_CONFIG"; then 17379 if test -n "$PKG_CONFIG" && \ 17380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gcr-3\""; } >&5 17381 ($PKG_CONFIG --exists --print-errors "gcr-3") 2>&5 17382 ac_status=$? 17383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17384 test $ac_status = 0; }; then 17385 pkg_cv_GCR_CFLAGS=`$PKG_CONFIG --cflags "gcr-3" 2>/dev/null` 17386 test "x$?" != "x0" && pkg_failed=yes 17387else 17388 pkg_failed=yes 17389fi 17390 else 17391 pkg_failed=untried 17392fi 17393if test -n "$GCR_LIBS"; then 17394 pkg_cv_GCR_LIBS="$GCR_LIBS" 17395 elif test -n "$PKG_CONFIG"; then 17396 if test -n "$PKG_CONFIG" && \ 17397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gcr-3\""; } >&5 17398 ($PKG_CONFIG --exists --print-errors "gcr-3") 2>&5 17399 ac_status=$? 17400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17401 test $ac_status = 0; }; then 17402 pkg_cv_GCR_LIBS=`$PKG_CONFIG --libs "gcr-3" 2>/dev/null` 17403 test "x$?" != "x0" && pkg_failed=yes 17404else 17405 pkg_failed=yes 17406fi 17407 else 17408 pkg_failed=untried 17409fi 17410 17411 17412 17413if test $pkg_failed = yes; then 17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17415$as_echo "no" >&6; } 17416 17417if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17418 _pkg_short_errors_supported=yes 17419else 17420 _pkg_short_errors_supported=no 17421fi 17422 if test $_pkg_short_errors_supported = yes; then 17423 GCR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gcr-3" 2>&1` 17424 else 17425 GCR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gcr-3" 2>&1` 17426 fi 17427 # Put the nasty error message in config.log where it belongs 17428 echo "$GCR_PKG_ERRORS" >&5 17429 17430 have_kerberos=no 17431elif test $pkg_failed = untried; then 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17433$as_echo "no" >&6; } 17434 have_kerberos=no 17435else 17436 GCR_CFLAGS=$pkg_cv_GCR_CFLAGS 17437 GCR_LIBS=$pkg_cv_GCR_LIBS 17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17439$as_echo "yes" >&6; } 17440 have_kerberos=yes 17441fi 17442else 17443 KRB5_LIBS="" 17444 KRB5_CFLAGS="" 17445 have_kerberos=no 17446fi 17447 17448 17449 17450if test "$enable_kerberos" != "no"; then 17451 if test "$enable_kerberos" == "yes" && 17452 test "$have_kerberos" == "no" ; then 17453 as_fn_error $? "kerberos support requested, but not available" "$LINENO" 5 17454 fi 17455 17456 enable_kerberos=$have_kerberos 17457 17458 if test "$enable_kerberos" == "yes"; then 17459 17460$as_echo "#define GCR_API_SUBJECT_TO_CHANGE 1" >>confdefs.h 17461 17462 17463$as_echo "#define GOA_KERBEROS_ENABLED 1" >>confdefs.h 17464 17465 fi 17466else 17467 enable_kerberos=no 17468fi 17469 if test x$enable_kerberos != xno; then 17470 BUILD_KERBEROS_TRUE= 17471 BUILD_KERBEROS_FALSE='#' 17472else 17473 BUILD_KERBEROS_TRUE='#' 17474 BUILD_KERBEROS_FALSE= 17475fi 17476 17477 17478# Last.fm 17479 17480$as_echo "#define GOA_LASTFM_NAME \"lastfm\"" >>confdefs.h 17481 17482# Check whether --enable-lastfm was given. 17483if test "${enable_lastfm+set}" = set; then : 17484 enableval=$enable_lastfm; 17485else 17486 enable_lastfm=yes 17487fi 17488 17489 17490# Check whether --with-lastfm-client-id was given. 17491if test "${with_lastfm_client_id+set}" = set; then : 17492 withval=$with_lastfm_client_id; 17493fi 17494 17495 17496# Check whether --with-lastfm-client-secret was given. 17497if test "${with_lastfm_client_secret+set}" = set; then : 17498 withval=$with_lastfm_client_secret; 17499fi 17500 17501if test "$with_lastfm_client_id" = ""; then 17502 with_lastfm_client_id="7a2461fe34c9c8124fb28ac750ba12fa" 17503fi 17504if test "$with_lastfm_client_secret" = ""; then 17505 with_lastfm_client_secret="49ec391644459c417f3afe57ca246c5a" 17506fi 17507 17508cat >>confdefs.h <<_ACEOF 17509#define GOA_LASTFM_CLIENT_ID "$with_lastfm_client_id" 17510_ACEOF 17511 17512 17513cat >>confdefs.h <<_ACEOF 17514#define GOA_LASTFM_CLIENT_SECRET "$with_lastfm_client_secret" 17515_ACEOF 17516 17517if test "$enable_lastfm" != "no"; then 17518 17519$as_echo "#define GOA_LASTFM_ENABLED 1" >>confdefs.h 17520 17521fi 17522 17523# Identity service 17524# 17525 17526 if test x$enable_fedora != xno || test x$enable_kerberos != xno; then 17527 BUILD_IDENTITY_SERVICE_TRUE= 17528 BUILD_IDENTITY_SERVICE_FALSE='#' 17529else 17530 BUILD_IDENTITY_SERVICE_TRUE='#' 17531 BUILD_IDENTITY_SERVICE_FALSE= 17532fi 17533 17534 17535# Optional timerfd support 17536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd support" >&5 17537$as_echo_n "checking for timerfd support... " >&6; } 17538cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17539/* end confdefs.h. */ 17540 17541#include <sys/timerfd.h> 17542#include <unistd.h> 17543 17544int 17545main () 17546{ 17547 17548int 17549main (void) 17550{ 17551 struct itimerspec timer_spec = { 0 }; 17552 timerfd_settime (timerfd_create (CLOCK_MONOTONIC, TFD_CLOEXEC), 17553 TFD_TIMER_ABSTIME, 17554 &timer_spec, 17555 NULL); 17556 17557 return 0; 17558} 17559 17560 ; 17561 return 0; 17562} 17563_ACEOF 17564if ac_fn_c_try_compile "$LINENO"; then : 17565 have_timerfd=yes 17566else 17567 have_timerfd=no 17568fi 17569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_timerfd" >&5 17571$as_echo "$have_timerfd" >&6; } 17572if test x"$have_timerfd" = x"yes"; then 17573 17574$as_echo "#define HAVE_TIMERFD 1" >>confdefs.h 17575 17576 17577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd cancel-on-set support" >&5 17578$as_echo_n "checking for timerfd cancel-on-set support... " >&6; } 17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17580/* end confdefs.h. */ 17581 17582 #include <sys/timerfd.h> 17583 #include <unistd.h> 17584 17585int 17586main () 17587{ 17588 17589 int 17590 main (void) 17591 { 17592 struct itimerspec timer_spec = { 0 }; 17593 timerfd_settime (timerfd_create (CLOCK_MONOTONIC, TFD_CLOEXEC), 17594 TFD_TIMER_ABSTIME | TFD_TIMER_CANCEL_ON_SET, 17595 &timer_spec, 17596 NULL); 17597 17598 return 0; 17599 } 17600 17601 ; 17602 return 0; 17603} 17604_ACEOF 17605if ac_fn_c_try_compile "$LINENO"; then : 17606 have_tfd_timer_cancel_on_set=yes 17607else 17608 have_tfd_timer_cancel_on_set=no 17609fi 17610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tfd_timer_cancel_on_set" >&5 17612$as_echo "$have_tfd_timer_cancel_on_set" >&6; } 17613 if test x"$have_tfd_timer_cancel_on_set" = x"no"; then 17614 17615$as_echo "#define TFD_TIMER_CANCEL_ON_SET (1 << 1)" >>confdefs.h 17616 17617 fi 17618fi 17619 17620# Internationalization 17621# 17622 17623GETTEXT_PACKAGE=gnome-online-accounts 17624 17625 17626cat >>confdefs.h <<_ACEOF 17627#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" 17628_ACEOF 17629 17630 17631# FIXME: Remove AM_GNU_GETTEXT_VERSION once autoreconf supports REQUIRE_VERSION 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 17644$as_echo_n "checking whether NLS is requested... " >&6; } 17645 # Check whether --enable-nls was given. 17646if test "${enable_nls+set}" = set; then : 17647 enableval=$enable_nls; USE_NLS=$enableval 17648else 17649 USE_NLS=yes 17650fi 17651 17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 17653$as_echo "$USE_NLS" >&6; } 17654 17655 17656 17657 17658 GETTEXT_MACRO_VERSION=0.20 17659 17660 17661 17662 17663# Prepare PATH_SEPARATOR. 17664# The user is always right. 17665if test "${PATH_SEPARATOR+set}" != set; then 17666 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 17667 # contains only /bin. Note that ksh looks also at the FPATH variable, 17668 # so we have to set that as well for the test. 17669 PATH_SEPARATOR=: 17670 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 17671 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 17672 || PATH_SEPARATOR=';' 17673 } 17674fi 17675 17676# Find out how to test for executable files. Don't use a zero-byte file, 17677# as systems may use methods other than mode bits to determine executability. 17678cat >conf$$.file <<_ASEOF 17679#! /bin/sh 17680exit 0 17681_ASEOF 17682chmod +x conf$$.file 17683if test -x conf$$.file >/dev/null 2>&1; then 17684 ac_executable_p="test -x" 17685else 17686 ac_executable_p="test -f" 17687fi 17688rm -f conf$$.file 17689 17690# Extract the first word of "msgfmt", so it can be a program name with args. 17691set dummy msgfmt; ac_word=$2 17692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17693$as_echo_n "checking for $ac_word... " >&6; } 17694if ${ac_cv_path_MSGFMT+:} false; then : 17695 $as_echo_n "(cached) " >&6 17696else 17697 case "$MSGFMT" in 17698 [\\/]* | ?:[\\/]*) 17699 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 17700 ;; 17701 *) 17702 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 17703 for ac_dir in $PATH; do 17704 IFS="$ac_save_IFS" 17705 test -z "$ac_dir" && ac_dir=. 17706 for ac_exec_ext in '' $ac_executable_extensions; do 17707 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 17708 echo "$as_me: trying $ac_dir/$ac_word..." >&5 17709 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 17710 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 17711 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 17712 break 2 17713 fi 17714 fi 17715 done 17716 done 17717 IFS="$ac_save_IFS" 17718 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 17719 ;; 17720esac 17721fi 17722MSGFMT="$ac_cv_path_MSGFMT" 17723if test "$MSGFMT" != ":"; then 17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 17725$as_echo "$MSGFMT" >&6; } 17726else 17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17728$as_echo "no" >&6; } 17729fi 17730 17731 # Extract the first word of "gmsgfmt", so it can be a program name with args. 17732set dummy gmsgfmt; ac_word=$2 17733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17734$as_echo_n "checking for $ac_word... " >&6; } 17735if ${ac_cv_path_GMSGFMT+:} false; then : 17736 $as_echo_n "(cached) " >&6 17737else 17738 case $GMSGFMT in 17739 [\\/]* | ?:[\\/]*) 17740 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 17741 ;; 17742 *) 17743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17744for as_dir in $PATH 17745do 17746 IFS=$as_save_IFS 17747 test -z "$as_dir" && as_dir=. 17748 for ac_exec_ext in '' $ac_executable_extensions; do 17749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17750 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 17751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17752 break 2 17753 fi 17754done 17755 done 17756IFS=$as_save_IFS 17757 17758 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 17759 ;; 17760esac 17761fi 17762GMSGFMT=$ac_cv_path_GMSGFMT 17763if test -n "$GMSGFMT"; then 17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 17765$as_echo "$GMSGFMT" >&6; } 17766else 17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17768$as_echo "no" >&6; } 17769fi 17770 17771 17772 17773 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 17774 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 17775 *) GMSGFMT_015=$GMSGFMT ;; 17776 esac 17777 17778 17779 17780# Prepare PATH_SEPARATOR. 17781# The user is always right. 17782if test "${PATH_SEPARATOR+set}" != set; then 17783 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 17784 # contains only /bin. Note that ksh looks also at the FPATH variable, 17785 # so we have to set that as well for the test. 17786 PATH_SEPARATOR=: 17787 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 17788 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 17789 || PATH_SEPARATOR=';' 17790 } 17791fi 17792 17793# Find out how to test for executable files. Don't use a zero-byte file, 17794# as systems may use methods other than mode bits to determine executability. 17795cat >conf$$.file <<_ASEOF 17796#! /bin/sh 17797exit 0 17798_ASEOF 17799chmod +x conf$$.file 17800if test -x conf$$.file >/dev/null 2>&1; then 17801 ac_executable_p="test -x" 17802else 17803 ac_executable_p="test -f" 17804fi 17805rm -f conf$$.file 17806 17807# Extract the first word of "xgettext", so it can be a program name with args. 17808set dummy xgettext; ac_word=$2 17809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17810$as_echo_n "checking for $ac_word... " >&6; } 17811if ${ac_cv_path_XGETTEXT+:} false; then : 17812 $as_echo_n "(cached) " >&6 17813else 17814 case "$XGETTEXT" in 17815 [\\/]* | ?:[\\/]*) 17816 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 17817 ;; 17818 *) 17819 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 17820 for ac_dir in $PATH; do 17821 IFS="$ac_save_IFS" 17822 test -z "$ac_dir" && ac_dir=. 17823 for ac_exec_ext in '' $ac_executable_extensions; do 17824 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 17825 echo "$as_me: trying $ac_dir/$ac_word..." >&5 17826 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 17827 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 17828 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 17829 break 2 17830 fi 17831 fi 17832 done 17833 done 17834 IFS="$ac_save_IFS" 17835 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 17836 ;; 17837esac 17838fi 17839XGETTEXT="$ac_cv_path_XGETTEXT" 17840if test "$XGETTEXT" != ":"; then 17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 17842$as_echo "$XGETTEXT" >&6; } 17843else 17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17845$as_echo "no" >&6; } 17846fi 17847 17848 rm -f messages.po 17849 17850 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 17851 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 17852 *) XGETTEXT_015=$XGETTEXT ;; 17853 esac 17854 17855 17856 17857# Prepare PATH_SEPARATOR. 17858# The user is always right. 17859if test "${PATH_SEPARATOR+set}" != set; then 17860 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 17861 # contains only /bin. Note that ksh looks also at the FPATH variable, 17862 # so we have to set that as well for the test. 17863 PATH_SEPARATOR=: 17864 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 17865 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 17866 || PATH_SEPARATOR=';' 17867 } 17868fi 17869 17870# Find out how to test for executable files. Don't use a zero-byte file, 17871# as systems may use methods other than mode bits to determine executability. 17872cat >conf$$.file <<_ASEOF 17873#! /bin/sh 17874exit 0 17875_ASEOF 17876chmod +x conf$$.file 17877if test -x conf$$.file >/dev/null 2>&1; then 17878 ac_executable_p="test -x" 17879else 17880 ac_executable_p="test -f" 17881fi 17882rm -f conf$$.file 17883 17884# Extract the first word of "msgmerge", so it can be a program name with args. 17885set dummy msgmerge; ac_word=$2 17886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17887$as_echo_n "checking for $ac_word... " >&6; } 17888if ${ac_cv_path_MSGMERGE+:} false; then : 17889 $as_echo_n "(cached) " >&6 17890else 17891 case "$MSGMERGE" in 17892 [\\/]* | ?:[\\/]*) 17893 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 17894 ;; 17895 *) 17896 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 17897 for ac_dir in $PATH; do 17898 IFS="$ac_save_IFS" 17899 test -z "$ac_dir" && ac_dir=. 17900 for ac_exec_ext in '' $ac_executable_extensions; do 17901 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 17902 echo "$as_me: trying $ac_dir/$ac_word..." >&5 17903 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 17904 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 17905 break 2 17906 fi 17907 fi 17908 done 17909 done 17910 IFS="$ac_save_IFS" 17911 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 17912 ;; 17913esac 17914fi 17915MSGMERGE="$ac_cv_path_MSGMERGE" 17916if test "$MSGMERGE" != ":"; then 17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 17918$as_echo "$MSGMERGE" >&6; } 17919else 17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17921$as_echo "no" >&6; } 17922fi 17923 17924 17925 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then 17926 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt' 17927 else 17928 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then 17929 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet' 17930 else 17931 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet' 17932 fi 17933 fi 17934 17935 17936 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 17937 17938 17939 ac_config_commands="$ac_config_commands po-directories" 17940 17941 17942 17943 if test "X$prefix" = "XNONE"; then 17944 acl_final_prefix="$ac_default_prefix" 17945 else 17946 acl_final_prefix="$prefix" 17947 fi 17948 if test "X$exec_prefix" = "XNONE"; then 17949 acl_final_exec_prefix='${prefix}' 17950 else 17951 acl_final_exec_prefix="$exec_prefix" 17952 fi 17953 acl_save_prefix="$prefix" 17954 prefix="$acl_final_prefix" 17955 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 17956 prefix="$acl_save_prefix" 17957 17958 17959 17960# Check whether --with-gnu-ld was given. 17961if test "${with_gnu_ld+set}" = set; then : 17962 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 17963else 17964 with_gnu_ld=no 17965fi 17966 17967# Prepare PATH_SEPARATOR. 17968# The user is always right. 17969if test "${PATH_SEPARATOR+set}" != set; then 17970 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 17971 # contains only /bin. Note that ksh looks also at the FPATH variable, 17972 # so we have to set that as well for the test. 17973 PATH_SEPARATOR=: 17974 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 17975 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 17976 || PATH_SEPARATOR=';' 17977 } 17978fi 17979 17980if test -n "$LD"; then 17981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5 17982$as_echo_n "checking for ld... " >&6; } 17983elif test "$GCC" = yes; then 17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 17985$as_echo_n "checking for ld used by $CC... " >&6; } 17986elif test "$with_gnu_ld" = yes; then 17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 17988$as_echo_n "checking for GNU ld... " >&6; } 17989else 17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 17991$as_echo_n "checking for non-GNU ld... " >&6; } 17992fi 17993if test -n "$LD"; then 17994 # Let the user override the test with a path. 17995 : 17996else 17997 if ${acl_cv_path_LD+:} false; then : 17998 $as_echo_n "(cached) " >&6 17999else 18000 18001 acl_cv_path_LD= # Final result of this test 18002 ac_prog=ld # Program to search in $PATH 18003 if test "$GCC" = yes; then 18004 # Check if gcc -print-prog-name=ld gives a path. 18005 case $host in 18006 *-*-mingw*) 18007 # gcc leaves a trailing carriage return which upsets mingw 18008 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 18009 *) 18010 acl_output=`($CC -print-prog-name=ld) 2>&5` ;; 18011 esac 18012 case $acl_output in 18013 # Accept absolute paths. 18014 [\\/]* | ?:[\\/]*) 18015 re_direlt='/[^/][^/]*/\.\./' 18016 # Canonicalize the pathname of ld 18017 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` 18018 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do 18019 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` 18020 done 18021 # Got the pathname. No search in PATH is needed. 18022 acl_cv_path_LD="$acl_output" 18023 ac_prog= 18024 ;; 18025 "") 18026 # If it fails, then pretend we aren't using GCC. 18027 ;; 18028 *) 18029 # If it is relative, then search for the first ld in PATH. 18030 with_gnu_ld=unknown 18031 ;; 18032 esac 18033 fi 18034 if test -n "$ac_prog"; then 18035 # Search for $ac_prog in $PATH. 18036 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 18037 for ac_dir in $PATH; do 18038 IFS="$acl_save_ifs" 18039 test -z "$ac_dir" && ac_dir=. 18040 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 18041 acl_cv_path_LD="$ac_dir/$ac_prog" 18042 # Check to see if the program is GNU ld. I'd rather use --version, 18043 # but apparently some variants of GNU ld only accept -v. 18044 # Break only if it was the GNU/non-GNU ld that we prefer. 18045 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 18046 *GNU* | *'with BFD'*) 18047 test "$with_gnu_ld" != no && break 18048 ;; 18049 *) 18050 test "$with_gnu_ld" != yes && break 18051 ;; 18052 esac 18053 fi 18054 done 18055 IFS="$acl_save_ifs" 18056 fi 18057 case $host in 18058 *-*-aix*) 18059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18060/* end confdefs.h. */ 18061#if defined __powerpc64__ || defined _ARCH_PPC64 18062 int ok; 18063 #else 18064 error fail 18065 #endif 18066 18067_ACEOF 18068if ac_fn_c_try_compile "$LINENO"; then : 18069 # The compiler produces 64-bit code. Add option '-b64' so that the 18070 # linker groks 64-bit object files. 18071 case "$acl_cv_path_LD " in 18072 *" -b64 "*) ;; 18073 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;; 18074 esac 18075 18076fi 18077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18078 ;; 18079 sparc64-*-netbsd*) 18080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18081/* end confdefs.h. */ 18082#if defined __sparcv9 || defined __arch64__ 18083 int ok; 18084 #else 18085 error fail 18086 #endif 18087 18088_ACEOF 18089if ac_fn_c_try_compile "$LINENO"; then : 18090 18091else 18092 # The compiler produces 32-bit code. Add option '-m elf32_sparc' 18093 # so that the linker groks 32-bit object files. 18094 case "$acl_cv_path_LD " in 18095 *" -m elf32_sparc "*) ;; 18096 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;; 18097 esac 18098 18099fi 18100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18101 ;; 18102 esac 18103 18104fi 18105 18106 LD="$acl_cv_path_LD" 18107fi 18108if test -n "$LD"; then 18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 18110$as_echo "$LD" >&6; } 18111else 18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18113$as_echo "no" >&6; } 18114 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 18115fi 18116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 18117$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 18118if ${acl_cv_prog_gnu_ld+:} false; then : 18119 $as_echo_n "(cached) " >&6 18120else 18121 # I'd rather use --version here, but apparently some GNU lds only accept -v. 18122case `$LD -v 2>&1 </dev/null` in 18123*GNU* | *'with BFD'*) 18124 acl_cv_prog_gnu_ld=yes 18125 ;; 18126*) 18127 acl_cv_prog_gnu_ld=no 18128 ;; 18129esac 18130fi 18131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 18132$as_echo "$acl_cv_prog_gnu_ld" >&6; } 18133with_gnu_ld=$acl_cv_prog_gnu_ld 18134 18135 18136 18137 18138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 18139$as_echo_n "checking for shared library run path origin... " >&6; } 18140if ${acl_cv_rpath+:} false; then : 18141 $as_echo_n "(cached) " >&6 18142else 18143 18144 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 18145 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 18146 . ./conftest.sh 18147 rm -f ./conftest.sh 18148 acl_cv_rpath=done 18149 18150fi 18151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 18152$as_echo "$acl_cv_rpath" >&6; } 18153 wl="$acl_cv_wl" 18154 acl_libext="$acl_cv_libext" 18155 acl_shlibext="$acl_cv_shlibext" 18156 acl_libname_spec="$acl_cv_libname_spec" 18157 acl_library_names_spec="$acl_cv_library_names_spec" 18158 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 18159 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 18160 acl_hardcode_direct="$acl_cv_hardcode_direct" 18161 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 18162 # Check whether --enable-rpath was given. 18163if test "${enable_rpath+set}" = set; then : 18164 enableval=$enable_rpath; : 18165else 18166 enable_rpath=yes 18167fi 18168 18169 18170 18171 18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5 18173$as_echo_n "checking 32-bit host C ABI... " >&6; } 18174if ${gl_cv_host_cpu_c_abi_32bit+:} false; then : 18175 $as_echo_n "(cached) " >&6 18176else 18177 if test -n "$gl_cv_host_cpu_c_abi"; then 18178 case "$gl_cv_host_cpu_c_abi" in 18179 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) 18180 gl_cv_host_cpu_c_abi_32bit=yes ;; 18181 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) 18182 gl_cv_host_cpu_c_abi_32bit=no ;; 18183 *) 18184 gl_cv_host_cpu_c_abi_32bit=unknown ;; 18185 esac 18186 else 18187 case "$host_cpu" in 18188 18189 # CPUs that only support a 32-bit ABI. 18190 arc \ 18191 | bfin \ 18192 | cris* \ 18193 | csky \ 18194 | epiphany \ 18195 | ft32 \ 18196 | h8300 \ 18197 | m68k \ 18198 | microblaze | microblazeel \ 18199 | nds32 | nds32le | nds32be \ 18200 | nios2 | nios2eb | nios2el \ 18201 | or1k* \ 18202 | or32 \ 18203 | sh | sh1234 | sh1234elb \ 18204 | tic6x \ 18205 | xtensa* ) 18206 gl_cv_host_cpu_c_abi_32bit=yes 18207 ;; 18208 18209 # CPUs that only support a 64-bit ABI. 18210 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ 18211 | mmix ) 18212 gl_cv_host_cpu_c_abi_32bit=no 18213 ;; 18214 18215 i[34567]86 ) 18216 gl_cv_host_cpu_c_abi_32bit=yes 18217 ;; 18218 18219 x86_64 ) 18220 # On x86_64 systems, the C compiler may be generating code in one of 18221 # these ABIs: 18222 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. 18223 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 18224 # with native Windows (mingw, MSVC). 18225 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. 18226 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. 18227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18228/* end confdefs.h. */ 18229#if (defined __x86_64__ || defined __amd64__ \ 18230 || defined _M_X64 || defined _M_AMD64) \ 18231 && !(defined __ILP32__ || defined _ILP32) 18232 int ok; 18233 #else 18234 error fail 18235 #endif 18236 18237_ACEOF 18238if ac_fn_c_try_compile "$LINENO"; then : 18239 gl_cv_host_cpu_c_abi_32bit=no 18240else 18241 gl_cv_host_cpu_c_abi_32bit=yes 18242fi 18243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18244 ;; 18245 18246 arm* | aarch64 ) 18247 # Assume arm with EABI. 18248 # On arm64 systems, the C compiler may be generating code in one of 18249 # these ABIs: 18250 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. 18251 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. 18252 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. 18253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18254/* end confdefs.h. */ 18255#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32) 18256 int ok; 18257 #else 18258 error fail 18259 #endif 18260 18261_ACEOF 18262if ac_fn_c_try_compile "$LINENO"; then : 18263 gl_cv_host_cpu_c_abi_32bit=no 18264else 18265 gl_cv_host_cpu_c_abi_32bit=yes 18266fi 18267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18268 ;; 18269 18270 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) 18271 # On hppa, the C compiler may be generating 32-bit code or 64-bit 18272 # code. In the latter case, it defines _LP64 and __LP64__. 18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18274/* end confdefs.h. */ 18275#ifdef __LP64__ 18276 int ok; 18277 #else 18278 error fail 18279 #endif 18280 18281_ACEOF 18282if ac_fn_c_try_compile "$LINENO"; then : 18283 gl_cv_host_cpu_c_abi_32bit=no 18284else 18285 gl_cv_host_cpu_c_abi_32bit=yes 18286fi 18287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18288 ;; 18289 18290 ia64* ) 18291 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or 18292 # 32-bit code. In the latter case, it defines _ILP32. 18293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18294/* end confdefs.h. */ 18295#ifdef _ILP32 18296 int ok; 18297 #else 18298 error fail 18299 #endif 18300 18301_ACEOF 18302if ac_fn_c_try_compile "$LINENO"; then : 18303 gl_cv_host_cpu_c_abi_32bit=yes 18304else 18305 gl_cv_host_cpu_c_abi_32bit=no 18306fi 18307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18308 ;; 18309 18310 mips* ) 18311 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this 18312 # at 32. 18313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18314/* end confdefs.h. */ 18315#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) 18316 int ok; 18317 #else 18318 error fail 18319 #endif 18320 18321_ACEOF 18322if ac_fn_c_try_compile "$LINENO"; then : 18323 gl_cv_host_cpu_c_abi_32bit=no 18324else 18325 gl_cv_host_cpu_c_abi_32bit=yes 18326fi 18327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18328 ;; 18329 18330 powerpc* ) 18331 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. 18332 # No need to distinguish them here; the caller may distinguish 18333 # them based on the OS. 18334 # On powerpc64 systems, the C compiler may still be generating 18335 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may 18336 # be generating 64-bit code. 18337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18338/* end confdefs.h. */ 18339#if defined __powerpc64__ || defined _ARCH_PPC64 18340 int ok; 18341 #else 18342 error fail 18343 #endif 18344 18345_ACEOF 18346if ac_fn_c_try_compile "$LINENO"; then : 18347 gl_cv_host_cpu_c_abi_32bit=no 18348else 18349 gl_cv_host_cpu_c_abi_32bit=yes 18350fi 18351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18352 ;; 18353 18354 rs6000 ) 18355 gl_cv_host_cpu_c_abi_32bit=yes 18356 ;; 18357 18358 riscv32 | riscv64 ) 18359 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. 18360 # Size of 'long' and 'void *': 18361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18362/* end confdefs.h. */ 18363#if defined __LP64__ 18364 int ok; 18365 #else 18366 error fail 18367 #endif 18368 18369_ACEOF 18370if ac_fn_c_try_compile "$LINENO"; then : 18371 gl_cv_host_cpu_c_abi_32bit=no 18372else 18373 gl_cv_host_cpu_c_abi_32bit=yes 18374fi 18375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18376 ;; 18377 18378 s390* ) 18379 # On s390x, the C compiler may be generating 64-bit (= s390x) code 18380 # or 31-bit (= s390) code. 18381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18382/* end confdefs.h. */ 18383#if defined __LP64__ || defined __s390x__ 18384 int ok; 18385 #else 18386 error fail 18387 #endif 18388 18389_ACEOF 18390if ac_fn_c_try_compile "$LINENO"; then : 18391 gl_cv_host_cpu_c_abi_32bit=no 18392else 18393 gl_cv_host_cpu_c_abi_32bit=yes 18394fi 18395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18396 ;; 18397 18398 sparc | sparc64 ) 18399 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the 18400 # C compiler still generates 32-bit code. 18401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18402/* end confdefs.h. */ 18403#if defined __sparcv9 || defined __arch64__ 18404 int ok; 18405 #else 18406 error fail 18407 #endif 18408 18409_ACEOF 18410if ac_fn_c_try_compile "$LINENO"; then : 18411 gl_cv_host_cpu_c_abi_32bit=no 18412else 18413 gl_cv_host_cpu_c_abi_32bit=yes 18414fi 18415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18416 ;; 18417 18418 *) 18419 gl_cv_host_cpu_c_abi_32bit=unknown 18420 ;; 18421 esac 18422 fi 18423 18424fi 18425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5 18426$as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; } 18427 18428 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit" 18429 18430 18431 18432 18433 18434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5 18435$as_echo_n "checking for ELF binary format... " >&6; } 18436if ${gl_cv_elf+:} false; then : 18437 $as_echo_n "(cached) " >&6 18438else 18439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18440/* end confdefs.h. */ 18441#ifdef __ELF__ 18442 Extensible Linking Format 18443 #endif 18444 18445_ACEOF 18446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18447 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : 18448 gl_cv_elf=yes 18449else 18450 gl_cv_elf=no 18451fi 18452rm -f conftest* 18453 18454 18455fi 18456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5 18457$as_echo "$gl_cv_elf" >&6; } 18458 if test $gl_cv_elf; then 18459 # Extract the ELF class of a file (5th byte) in decimal. 18460 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header 18461 if od -A x < /dev/null >/dev/null 2>/dev/null; then 18462 # Use POSIX od. 18463 func_elfclass () 18464 { 18465 od -A n -t d1 -j 4 -N 1 18466 } 18467 else 18468 # Use BSD hexdump. 18469 func_elfclass () 18470 { 18471 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' 18472 echo 18473 } 18474 fi 18475 case $HOST_CPU_C_ABI_32BIT in 18476 yes) 18477 # 32-bit ABI. 18478 acl_is_expected_elfclass () 18479 { 18480 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1 18481 } 18482 ;; 18483 no) 18484 # 64-bit ABI. 18485 acl_is_expected_elfclass () 18486 { 18487 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2 18488 } 18489 ;; 18490 *) 18491 # Unknown. 18492 acl_is_expected_elfclass () 18493 { 18494 : 18495 } 18496 ;; 18497 esac 18498 else 18499 acl_is_expected_elfclass () 18500 { 18501 : 18502 } 18503 fi 18504 18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5 18506$as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; } 18507if ${acl_cv_libdirstems+:} false; then : 18508 $as_echo_n "(cached) " >&6 18509else 18510 acl_libdirstem=lib 18511 acl_libdirstem2= 18512 acl_libdirstem3= 18513 case "$host_os" in 18514 solaris*) 18515 if test $HOST_CPU_C_ABI_32BIT = no; then 18516 acl_libdirstem2=lib/64 18517 case "$host_cpu" in 18518 sparc*) acl_libdirstem3=lib/sparcv9 ;; 18519 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; 18520 esac 18521 fi 18522 ;; 18523 *) 18524 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ 18525 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 18526 if test $HOST_CPU_C_ABI_32BIT != no; then 18527 # 32-bit or unknown ABI. 18528 if test -d /usr/lib32; then 18529 acl_libdirstem2=lib32 18530 fi 18531 fi 18532 if test $HOST_CPU_C_ABI_32BIT != yes; then 18533 # 64-bit or unknown ABI. 18534 if test -d /usr/lib64; then 18535 acl_libdirstem3=lib64 18536 fi 18537 fi 18538 if test -n "$searchpath"; then 18539 acl_save_IFS="${IFS= }"; IFS=":" 18540 for searchdir in $searchpath; do 18541 if test -d "$searchdir"; then 18542 case "$searchdir" in 18543 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; 18544 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; 18545 */../ | */.. ) 18546 # Better ignore directories of this form. They are misleading. 18547 ;; 18548 *) searchdir=`cd "$searchdir" && pwd` 18549 case "$searchdir" in 18550 */lib32 ) acl_libdirstem2=lib32 ;; 18551 */lib64 ) acl_libdirstem3=lib64 ;; 18552 esac ;; 18553 esac 18554 fi 18555 done 18556 IFS="$acl_save_IFS" 18557 if test $HOST_CPU_C_ABI_32BIT = yes; then 18558 # 32-bit ABI. 18559 acl_libdirstem3= 18560 fi 18561 if test $HOST_CPU_C_ABI_32BIT = no; then 18562 # 64-bit ABI. 18563 acl_libdirstem2= 18564 fi 18565 fi 18566 ;; 18567 esac 18568 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 18569 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" 18570 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" 18571 18572fi 18573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5 18574$as_echo "$acl_cv_libdirstems" >&6; } 18575 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` 18576 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` 18577 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 use_additional=yes 18590 18591 acl_save_prefix="$prefix" 18592 prefix="$acl_final_prefix" 18593 acl_save_exec_prefix="$exec_prefix" 18594 exec_prefix="$acl_final_exec_prefix" 18595 18596 eval additional_includedir=\"$includedir\" 18597 eval additional_libdir=\"$libdir\" 18598 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 18599 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 18600 18601 exec_prefix="$acl_save_exec_prefix" 18602 prefix="$acl_save_prefix" 18603 18604 18605# Check whether --with-libiconv-prefix was given. 18606if test "${with_libiconv_prefix+set}" = set; then : 18607 withval=$with_libiconv_prefix; 18608 if test "X$withval" = "Xno"; then 18609 use_additional=no 18610 else 18611 if test "X$withval" = "X"; then 18612 18613 acl_save_prefix="$prefix" 18614 prefix="$acl_final_prefix" 18615 acl_save_exec_prefix="$exec_prefix" 18616 exec_prefix="$acl_final_exec_prefix" 18617 18618 eval additional_includedir=\"$includedir\" 18619 eval additional_libdir=\"$libdir\" 18620 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 18621 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 18622 18623 exec_prefix="$acl_save_exec_prefix" 18624 prefix="$acl_save_prefix" 18625 18626 else 18627 additional_includedir="$withval/include" 18628 additional_libdir="$withval/$acl_libdirstem" 18629 additional_libdir2="$withval/$acl_libdirstem2" 18630 additional_libdir3="$withval/$acl_libdirstem3" 18631 fi 18632 fi 18633 18634fi 18635 18636 if test "X$additional_libdir2" = "X$additional_libdir"; then 18637 additional_libdir2= 18638 fi 18639 if test "X$additional_libdir3" = "X$additional_libdir"; then 18640 additional_libdir3= 18641 fi 18642 LIBICONV= 18643 LTLIBICONV= 18644 INCICONV= 18645 LIBICONV_PREFIX= 18646 HAVE_LIBICONV= 18647 rpathdirs= 18648 ltrpathdirs= 18649 names_already_handled= 18650 names_next_round='iconv ' 18651 while test -n "$names_next_round"; do 18652 names_this_round="$names_next_round" 18653 names_next_round= 18654 for name in $names_this_round; do 18655 already_handled= 18656 for n in $names_already_handled; do 18657 if test "$n" = "$name"; then 18658 already_handled=yes 18659 break 18660 fi 18661 done 18662 if test -z "$already_handled"; then 18663 names_already_handled="$names_already_handled $name" 18664 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 18665 eval value=\"\$HAVE_LIB$uppername\" 18666 if test -n "$value"; then 18667 if test "$value" = yes; then 18668 eval value=\"\$LIB$uppername\" 18669 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 18670 eval value=\"\$LTLIB$uppername\" 18671 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 18672 else 18673 : 18674 fi 18675 else 18676 found_dir= 18677 found_la= 18678 found_so= 18679 found_a= 18680 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 18681 if test -n "$acl_shlibext"; then 18682 shrext=".$acl_shlibext" # typically: shrext=.so 18683 else 18684 shrext= 18685 fi 18686 if test $use_additional = yes; then 18687 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do 18688 if test "X$found_dir" = "X"; then 18689 eval dir=\$$additional_libdir_variable 18690 if test -n "$dir"; then 18691 if test -n "$acl_shlibext"; then 18692 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 18693 found_dir="$dir" 18694 found_so="$dir/$libname$shrext" 18695 else 18696 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 18697 ver=`(cd "$dir" && \ 18698 for f in "$libname$shrext".*; do echo "$f"; done \ 18699 | sed -e "s,^$libname$shrext\\\\.,," \ 18700 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 18701 | sed 1q ) 2>/dev/null` 18702 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 18703 found_dir="$dir" 18704 found_so="$dir/$libname$shrext.$ver" 18705 fi 18706 else 18707 eval library_names=\"$acl_library_names_spec\" 18708 for f in $library_names; do 18709 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 18710 found_dir="$dir" 18711 found_so="$dir/$f" 18712 break 18713 fi 18714 done 18715 fi 18716 fi 18717 fi 18718 if test "X$found_dir" = "X"; then 18719 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 18720 found_dir="$dir" 18721 found_a="$dir/$libname.$acl_libext" 18722 fi 18723 fi 18724 if test "X$found_dir" != "X"; then 18725 if test -f "$dir/$libname.la"; then 18726 found_la="$dir/$libname.la" 18727 fi 18728 fi 18729 fi 18730 fi 18731 done 18732 fi 18733 if test "X$found_dir" = "X"; then 18734 for x in $LDFLAGS $LTLIBICONV; do 18735 18736 acl_save_prefix="$prefix" 18737 prefix="$acl_final_prefix" 18738 acl_save_exec_prefix="$exec_prefix" 18739 exec_prefix="$acl_final_exec_prefix" 18740 eval x=\"$x\" 18741 exec_prefix="$acl_save_exec_prefix" 18742 prefix="$acl_save_prefix" 18743 18744 case "$x" in 18745 -L*) 18746 dir=`echo "X$x" | sed -e 's/^X-L//'` 18747 if test -n "$acl_shlibext"; then 18748 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 18749 found_dir="$dir" 18750 found_so="$dir/$libname$shrext" 18751 else 18752 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 18753 ver=`(cd "$dir" && \ 18754 for f in "$libname$shrext".*; do echo "$f"; done \ 18755 | sed -e "s,^$libname$shrext\\\\.,," \ 18756 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 18757 | sed 1q ) 2>/dev/null` 18758 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 18759 found_dir="$dir" 18760 found_so="$dir/$libname$shrext.$ver" 18761 fi 18762 else 18763 eval library_names=\"$acl_library_names_spec\" 18764 for f in $library_names; do 18765 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 18766 found_dir="$dir" 18767 found_so="$dir/$f" 18768 break 18769 fi 18770 done 18771 fi 18772 fi 18773 fi 18774 if test "X$found_dir" = "X"; then 18775 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 18776 found_dir="$dir" 18777 found_a="$dir/$libname.$acl_libext" 18778 fi 18779 fi 18780 if test "X$found_dir" != "X"; then 18781 if test -f "$dir/$libname.la"; then 18782 found_la="$dir/$libname.la" 18783 fi 18784 fi 18785 ;; 18786 esac 18787 if test "X$found_dir" != "X"; then 18788 break 18789 fi 18790 done 18791 fi 18792 if test "X$found_dir" != "X"; then 18793 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 18794 if test "X$found_so" != "X"; then 18795 if test "$enable_rpath" = no \ 18796 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 18797 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ 18798 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then 18799 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 18800 else 18801 haveit= 18802 for x in $ltrpathdirs; do 18803 if test "X$x" = "X$found_dir"; then 18804 haveit=yes 18805 break 18806 fi 18807 done 18808 if test -z "$haveit"; then 18809 ltrpathdirs="$ltrpathdirs $found_dir" 18810 fi 18811 if test "$acl_hardcode_direct" = yes; then 18812 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 18813 else 18814 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 18815 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 18816 haveit= 18817 for x in $rpathdirs; do 18818 if test "X$x" = "X$found_dir"; then 18819 haveit=yes 18820 break 18821 fi 18822 done 18823 if test -z "$haveit"; then 18824 rpathdirs="$rpathdirs $found_dir" 18825 fi 18826 else 18827 haveit= 18828 for x in $LDFLAGS $LIBICONV; do 18829 18830 acl_save_prefix="$prefix" 18831 prefix="$acl_final_prefix" 18832 acl_save_exec_prefix="$exec_prefix" 18833 exec_prefix="$acl_final_exec_prefix" 18834 eval x=\"$x\" 18835 exec_prefix="$acl_save_exec_prefix" 18836 prefix="$acl_save_prefix" 18837 18838 if test "X$x" = "X-L$found_dir"; then 18839 haveit=yes 18840 break 18841 fi 18842 done 18843 if test -z "$haveit"; then 18844 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 18845 fi 18846 if test "$acl_hardcode_minus_L" != no; then 18847 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 18848 else 18849 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 18850 fi 18851 fi 18852 fi 18853 fi 18854 else 18855 if test "X$found_a" != "X"; then 18856 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 18857 else 18858 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 18859 fi 18860 fi 18861 additional_includedir= 18862 case "$found_dir" in 18863 */$acl_libdirstem | */$acl_libdirstem/) 18864 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 18865 if test "$name" = 'iconv'; then 18866 LIBICONV_PREFIX="$basedir" 18867 fi 18868 additional_includedir="$basedir/include" 18869 ;; 18870 */$acl_libdirstem2 | */$acl_libdirstem2/) 18871 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 18872 if test "$name" = 'iconv'; then 18873 LIBICONV_PREFIX="$basedir" 18874 fi 18875 additional_includedir="$basedir/include" 18876 ;; 18877 */$acl_libdirstem3 | */$acl_libdirstem3/) 18878 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` 18879 if test "$name" = 'iconv'; then 18880 LIBICONV_PREFIX="$basedir" 18881 fi 18882 additional_includedir="$basedir/include" 18883 ;; 18884 esac 18885 if test "X$additional_includedir" != "X"; then 18886 if test "X$additional_includedir" != "X/usr/include"; then 18887 haveit= 18888 if test "X$additional_includedir" = "X/usr/local/include"; then 18889 if test -n "$GCC"; then 18890 case $host_os in 18891 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 18892 esac 18893 fi 18894 fi 18895 if test -z "$haveit"; then 18896 for x in $CPPFLAGS $INCICONV; do 18897 18898 acl_save_prefix="$prefix" 18899 prefix="$acl_final_prefix" 18900 acl_save_exec_prefix="$exec_prefix" 18901 exec_prefix="$acl_final_exec_prefix" 18902 eval x=\"$x\" 18903 exec_prefix="$acl_save_exec_prefix" 18904 prefix="$acl_save_prefix" 18905 18906 if test "X$x" = "X-I$additional_includedir"; then 18907 haveit=yes 18908 break 18909 fi 18910 done 18911 if test -z "$haveit"; then 18912 if test -d "$additional_includedir"; then 18913 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 18914 fi 18915 fi 18916 fi 18917 fi 18918 fi 18919 if test -n "$found_la"; then 18920 save_libdir="$libdir" 18921 case "$found_la" in 18922 */* | *\\*) . "$found_la" ;; 18923 *) . "./$found_la" ;; 18924 esac 18925 libdir="$save_libdir" 18926 for dep in $dependency_libs; do 18927 case "$dep" in 18928 -L*) 18929 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 18930 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ 18931 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ 18932 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then 18933 haveit= 18934 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ 18935 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ 18936 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then 18937 if test -n "$GCC"; then 18938 case $host_os in 18939 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 18940 esac 18941 fi 18942 fi 18943 if test -z "$haveit"; then 18944 haveit= 18945 for x in $LDFLAGS $LIBICONV; do 18946 18947 acl_save_prefix="$prefix" 18948 prefix="$acl_final_prefix" 18949 acl_save_exec_prefix="$exec_prefix" 18950 exec_prefix="$acl_final_exec_prefix" 18951 eval x=\"$x\" 18952 exec_prefix="$acl_save_exec_prefix" 18953 prefix="$acl_save_prefix" 18954 18955 if test "X$x" = "X-L$dependency_libdir"; then 18956 haveit=yes 18957 break 18958 fi 18959 done 18960 if test -z "$haveit"; then 18961 if test -d "$dependency_libdir"; then 18962 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir" 18963 fi 18964 fi 18965 haveit= 18966 for x in $LDFLAGS $LTLIBICONV; do 18967 18968 acl_save_prefix="$prefix" 18969 prefix="$acl_final_prefix" 18970 acl_save_exec_prefix="$exec_prefix" 18971 exec_prefix="$acl_final_exec_prefix" 18972 eval x=\"$x\" 18973 exec_prefix="$acl_save_exec_prefix" 18974 prefix="$acl_save_prefix" 18975 18976 if test "X$x" = "X-L$dependency_libdir"; then 18977 haveit=yes 18978 break 18979 fi 18980 done 18981 if test -z "$haveit"; then 18982 if test -d "$dependency_libdir"; then 18983 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir" 18984 fi 18985 fi 18986 fi 18987 fi 18988 ;; 18989 -R*) 18990 dir=`echo "X$dep" | sed -e 's/^X-R//'` 18991 if test "$enable_rpath" != no; then 18992 haveit= 18993 for x in $rpathdirs; do 18994 if test "X$x" = "X$dir"; then 18995 haveit=yes 18996 break 18997 fi 18998 done 18999 if test -z "$haveit"; then 19000 rpathdirs="$rpathdirs $dir" 19001 fi 19002 haveit= 19003 for x in $ltrpathdirs; do 19004 if test "X$x" = "X$dir"; then 19005 haveit=yes 19006 break 19007 fi 19008 done 19009 if test -z "$haveit"; then 19010 ltrpathdirs="$ltrpathdirs $dir" 19011 fi 19012 fi 19013 ;; 19014 -l*) 19015 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 19016 ;; 19017 *.la) 19018 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 19019 ;; 19020 *) 19021 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 19022 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 19023 ;; 19024 esac 19025 done 19026 fi 19027 else 19028 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 19029 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 19030 fi 19031 fi 19032 fi 19033 done 19034 done 19035 if test "X$rpathdirs" != "X"; then 19036 if test -n "$acl_hardcode_libdir_separator"; then 19037 alldirs= 19038 for found_dir in $rpathdirs; do 19039 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 19040 done 19041 acl_save_libdir="$libdir" 19042 libdir="$alldirs" 19043 eval flag=\"$acl_hardcode_libdir_flag_spec\" 19044 libdir="$acl_save_libdir" 19045 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 19046 else 19047 for found_dir in $rpathdirs; do 19048 acl_save_libdir="$libdir" 19049 libdir="$found_dir" 19050 eval flag=\"$acl_hardcode_libdir_flag_spec\" 19051 libdir="$acl_save_libdir" 19052 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 19053 done 19054 fi 19055 fi 19056 if test "X$ltrpathdirs" != "X"; then 19057 for found_dir in $ltrpathdirs; do 19058 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 19059 done 19060 fi 19061 19062 19063 19064 19065 19066 19067 19068 19069 19070 19071 19072 19073 19074 19075 19076 19077 19078 19079 19080 19081 19082 19083 19084 19085 19086 19087 19088 19089 19090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 19091$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 19092if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 19093 $as_echo_n "(cached) " >&6 19094else 19095 gt_save_LIBS="$LIBS" 19096 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 19097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19098/* end confdefs.h. */ 19099#include <CoreFoundation/CFPreferences.h> 19100int 19101main () 19102{ 19103CFPreferencesCopyAppValue(NULL, NULL) 19104 ; 19105 return 0; 19106} 19107_ACEOF 19108if ac_fn_c_try_link "$LINENO"; then : 19109 gt_cv_func_CFPreferencesCopyAppValue=yes 19110else 19111 gt_cv_func_CFPreferencesCopyAppValue=no 19112fi 19113rm -f core conftest.err conftest.$ac_objext \ 19114 conftest$ac_exeext conftest.$ac_ext 19115 LIBS="$gt_save_LIBS" 19116fi 19117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 19118$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 19119 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 19120 19121$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 19122 19123 fi 19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 19125$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; } 19126if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then : 19127 $as_echo_n "(cached) " >&6 19128else 19129 gt_save_LIBS="$LIBS" 19130 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 19131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19132/* end confdefs.h. */ 19133#include <CoreFoundation/CFLocale.h> 19134int 19135main () 19136{ 19137CFLocaleCopyPreferredLanguages(); 19138 ; 19139 return 0; 19140} 19141_ACEOF 19142if ac_fn_c_try_link "$LINENO"; then : 19143 gt_cv_func_CFLocaleCopyPreferredLanguages=yes 19144else 19145 gt_cv_func_CFLocaleCopyPreferredLanguages=no 19146fi 19147rm -f core conftest.err conftest.$ac_objext \ 19148 conftest$ac_exeext conftest.$ac_ext 19149 LIBS="$gt_save_LIBS" 19150fi 19151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 19152$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 19153 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 19154 19155$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 19156 19157 fi 19158 INTL_MACOSX_LIBS= 19159 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 19160 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 19161 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 19162 fi 19163 19164 19165 19166 19167 19168 19169 LIBINTL= 19170 LTLIBINTL= 19171 POSUB= 19172 19173 case " $gt_needs " in 19174 *" need-formatstring-macros "*) gt_api_version=3 ;; 19175 *" need-ngettext "*) gt_api_version=2 ;; 19176 *) gt_api_version=1 ;; 19177 esac 19178 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 19179 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 19180 19181 if test "$USE_NLS" = "yes"; then 19182 gt_use_preinstalled_gnugettext=no 19183 19184 19185 if test $gt_api_version -ge 3; then 19186 gt_revision_test_code=' 19187#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 19188#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 19189#endif 19190typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 19191' 19192 else 19193 gt_revision_test_code= 19194 fi 19195 if test $gt_api_version -ge 2; then 19196 gt_expression_test_code=' + * ngettext ("", "", 0)' 19197 else 19198 gt_expression_test_code= 19199 fi 19200 19201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 19202$as_echo_n "checking for GNU gettext in libc... " >&6; } 19203if eval \${$gt_func_gnugettext_libc+:} false; then : 19204 $as_echo_n "(cached) " >&6 19205else 19206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19207/* end confdefs.h. */ 19208 19209#include <libintl.h> 19210#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 19211extern int _nl_msg_cat_cntr; 19212extern int *_nl_domain_bindings; 19213#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) 19214#else 19215#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 19216#endif 19217$gt_revision_test_code 19218 19219int 19220main () 19221{ 19222 19223bindtextdomain ("", ""); 19224return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 19225 19226 ; 19227 return 0; 19228} 19229_ACEOF 19230if ac_fn_c_try_link "$LINENO"; then : 19231 eval "$gt_func_gnugettext_libc=yes" 19232else 19233 eval "$gt_func_gnugettext_libc=no" 19234fi 19235rm -f core conftest.err conftest.$ac_objext \ 19236 conftest$ac_exeext conftest.$ac_ext 19237fi 19238eval ac_res=\$$gt_func_gnugettext_libc 19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19240$as_echo "$ac_res" >&6; } 19241 19242 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 19243 19244 19245 19246 19247 19248 am_save_CPPFLAGS="$CPPFLAGS" 19249 19250 for element in $INCICONV; do 19251 haveit= 19252 for x in $CPPFLAGS; do 19253 19254 acl_save_prefix="$prefix" 19255 prefix="$acl_final_prefix" 19256 acl_save_exec_prefix="$exec_prefix" 19257 exec_prefix="$acl_final_exec_prefix" 19258 eval x=\"$x\" 19259 exec_prefix="$acl_save_exec_prefix" 19260 prefix="$acl_save_prefix" 19261 19262 if test "X$x" = "X$element"; then 19263 haveit=yes 19264 break 19265 fi 19266 done 19267 if test -z "$haveit"; then 19268 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 19269 fi 19270 done 19271 19272 19273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 19274$as_echo_n "checking for iconv... " >&6; } 19275if ${am_cv_func_iconv+:} false; then : 19276 $as_echo_n "(cached) " >&6 19277else 19278 19279 am_cv_func_iconv="no, consider installing GNU libiconv" 19280 am_cv_lib_iconv=no 19281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19282/* end confdefs.h. */ 19283 19284#include <stdlib.h> 19285#include <iconv.h> 19286 19287int 19288main () 19289{ 19290iconv_t cd = iconv_open("",""); 19291 iconv(cd,NULL,NULL,NULL,NULL); 19292 iconv_close(cd); 19293 ; 19294 return 0; 19295} 19296_ACEOF 19297if ac_fn_c_try_link "$LINENO"; then : 19298 am_cv_func_iconv=yes 19299fi 19300rm -f core conftest.err conftest.$ac_objext \ 19301 conftest$ac_exeext conftest.$ac_ext 19302 if test "$am_cv_func_iconv" != yes; then 19303 am_save_LIBS="$LIBS" 19304 LIBS="$LIBS $LIBICONV" 19305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19306/* end confdefs.h. */ 19307 19308#include <stdlib.h> 19309#include <iconv.h> 19310 19311int 19312main () 19313{ 19314iconv_t cd = iconv_open("",""); 19315 iconv(cd,NULL,NULL,NULL,NULL); 19316 iconv_close(cd); 19317 ; 19318 return 0; 19319} 19320_ACEOF 19321if ac_fn_c_try_link "$LINENO"; then : 19322 am_cv_lib_iconv=yes 19323 am_cv_func_iconv=yes 19324fi 19325rm -f core conftest.err conftest.$ac_objext \ 19326 conftest$ac_exeext conftest.$ac_ext 19327 LIBS="$am_save_LIBS" 19328 fi 19329 19330fi 19331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 19332$as_echo "$am_cv_func_iconv" >&6; } 19333 if test "$am_cv_func_iconv" = yes; then 19334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 19335$as_echo_n "checking for working iconv... " >&6; } 19336if ${am_cv_func_iconv_works+:} false; then : 19337 $as_echo_n "(cached) " >&6 19338else 19339 19340 am_save_LIBS="$LIBS" 19341 if test $am_cv_lib_iconv = yes; then 19342 LIBS="$LIBS $LIBICONV" 19343 fi 19344 am_cv_func_iconv_works=no 19345 for ac_iconv_const in '' 'const'; do 19346 if test "$cross_compiling" = yes; then : 19347 case "$host_os" in 19348 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 19349 *) am_cv_func_iconv_works="guessing yes" ;; 19350 esac 19351else 19352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19353/* end confdefs.h. */ 19354 19355#include <iconv.h> 19356#include <string.h> 19357 19358#ifndef ICONV_CONST 19359# define ICONV_CONST $ac_iconv_const 19360#endif 19361 19362int 19363main () 19364{ 19365int result = 0; 19366 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 19367 returns. */ 19368 { 19369 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 19370 if (cd_utf8_to_88591 != (iconv_t)(-1)) 19371 { 19372 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 19373 char buf[10]; 19374 ICONV_CONST char *inptr = input; 19375 size_t inbytesleft = strlen (input); 19376 char *outptr = buf; 19377 size_t outbytesleft = sizeof (buf); 19378 size_t res = iconv (cd_utf8_to_88591, 19379 &inptr, &inbytesleft, 19380 &outptr, &outbytesleft); 19381 if (res == 0) 19382 result |= 1; 19383 iconv_close (cd_utf8_to_88591); 19384 } 19385 } 19386 /* Test against Solaris 10 bug: Failures are not distinguishable from 19387 successful returns. */ 19388 { 19389 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 19390 if (cd_ascii_to_88591 != (iconv_t)(-1)) 19391 { 19392 static ICONV_CONST char input[] = "\263"; 19393 char buf[10]; 19394 ICONV_CONST char *inptr = input; 19395 size_t inbytesleft = strlen (input); 19396 char *outptr = buf; 19397 size_t outbytesleft = sizeof (buf); 19398 size_t res = iconv (cd_ascii_to_88591, 19399 &inptr, &inbytesleft, 19400 &outptr, &outbytesleft); 19401 if (res == 0) 19402 result |= 2; 19403 iconv_close (cd_ascii_to_88591); 19404 } 19405 } 19406 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 19407 { 19408 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 19409 if (cd_88591_to_utf8 != (iconv_t)(-1)) 19410 { 19411 static ICONV_CONST char input[] = "\304"; 19412 static char buf[2] = { (char)0xDE, (char)0xAD }; 19413 ICONV_CONST char *inptr = input; 19414 size_t inbytesleft = 1; 19415 char *outptr = buf; 19416 size_t outbytesleft = 1; 19417 size_t res = iconv (cd_88591_to_utf8, 19418 &inptr, &inbytesleft, 19419 &outptr, &outbytesleft); 19420 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 19421 result |= 4; 19422 iconv_close (cd_88591_to_utf8); 19423 } 19424 } 19425#if 0 /* This bug could be worked around by the caller. */ 19426 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 19427 { 19428 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 19429 if (cd_88591_to_utf8 != (iconv_t)(-1)) 19430 { 19431 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 19432 char buf[50]; 19433 ICONV_CONST char *inptr = input; 19434 size_t inbytesleft = strlen (input); 19435 char *outptr = buf; 19436 size_t outbytesleft = sizeof (buf); 19437 size_t res = iconv (cd_88591_to_utf8, 19438 &inptr, &inbytesleft, 19439 &outptr, &outbytesleft); 19440 if ((int)res > 0) 19441 result |= 8; 19442 iconv_close (cd_88591_to_utf8); 19443 } 19444 } 19445#endif 19446 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 19447 provided. */ 19448 { 19449 /* Try standardized names. */ 19450 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 19451 /* Try IRIX, OSF/1 names. */ 19452 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 19453 /* Try AIX names. */ 19454 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 19455 /* Try HP-UX names. */ 19456 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 19457 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 19458 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 19459 result |= 16; 19460 if (cd1 != (iconv_t)(-1)) 19461 iconv_close (cd1); 19462 if (cd2 != (iconv_t)(-1)) 19463 iconv_close (cd2); 19464 if (cd3 != (iconv_t)(-1)) 19465 iconv_close (cd3); 19466 if (cd4 != (iconv_t)(-1)) 19467 iconv_close (cd4); 19468 } 19469 return result; 19470 19471 ; 19472 return 0; 19473} 19474_ACEOF 19475if ac_fn_c_try_run "$LINENO"; then : 19476 am_cv_func_iconv_works=yes 19477fi 19478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19479 conftest.$ac_objext conftest.beam conftest.$ac_ext 19480fi 19481 19482 test "$am_cv_func_iconv_works" = no || break 19483 done 19484 LIBS="$am_save_LIBS" 19485 19486fi 19487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 19488$as_echo "$am_cv_func_iconv_works" >&6; } 19489 case "$am_cv_func_iconv_works" in 19490 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 19491 *) am_func_iconv=yes ;; 19492 esac 19493 else 19494 am_func_iconv=no am_cv_lib_iconv=no 19495 fi 19496 if test "$am_func_iconv" = yes; then 19497 19498$as_echo "#define HAVE_ICONV 1" >>confdefs.h 19499 19500 fi 19501 if test "$am_cv_lib_iconv" = yes; then 19502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 19503$as_echo_n "checking how to link with libiconv... " >&6; } 19504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 19505$as_echo "$LIBICONV" >&6; } 19506 else 19507 CPPFLAGS="$am_save_CPPFLAGS" 19508 LIBICONV= 19509 LTLIBICONV= 19510 fi 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 use_additional=yes 19522 19523 acl_save_prefix="$prefix" 19524 prefix="$acl_final_prefix" 19525 acl_save_exec_prefix="$exec_prefix" 19526 exec_prefix="$acl_final_exec_prefix" 19527 19528 eval additional_includedir=\"$includedir\" 19529 eval additional_libdir=\"$libdir\" 19530 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 19531 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 19532 19533 exec_prefix="$acl_save_exec_prefix" 19534 prefix="$acl_save_prefix" 19535 19536 19537# Check whether --with-libintl-prefix was given. 19538if test "${with_libintl_prefix+set}" = set; then : 19539 withval=$with_libintl_prefix; 19540 if test "X$withval" = "Xno"; then 19541 use_additional=no 19542 else 19543 if test "X$withval" = "X"; then 19544 19545 acl_save_prefix="$prefix" 19546 prefix="$acl_final_prefix" 19547 acl_save_exec_prefix="$exec_prefix" 19548 exec_prefix="$acl_final_exec_prefix" 19549 19550 eval additional_includedir=\"$includedir\" 19551 eval additional_libdir=\"$libdir\" 19552 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 19553 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 19554 19555 exec_prefix="$acl_save_exec_prefix" 19556 prefix="$acl_save_prefix" 19557 19558 else 19559 additional_includedir="$withval/include" 19560 additional_libdir="$withval/$acl_libdirstem" 19561 additional_libdir2="$withval/$acl_libdirstem2" 19562 additional_libdir3="$withval/$acl_libdirstem3" 19563 fi 19564 fi 19565 19566fi 19567 19568 if test "X$additional_libdir2" = "X$additional_libdir"; then 19569 additional_libdir2= 19570 fi 19571 if test "X$additional_libdir3" = "X$additional_libdir"; then 19572 additional_libdir3= 19573 fi 19574 LIBINTL= 19575 LTLIBINTL= 19576 INCINTL= 19577 LIBINTL_PREFIX= 19578 HAVE_LIBINTL= 19579 rpathdirs= 19580 ltrpathdirs= 19581 names_already_handled= 19582 names_next_round='intl ' 19583 while test -n "$names_next_round"; do 19584 names_this_round="$names_next_round" 19585 names_next_round= 19586 for name in $names_this_round; do 19587 already_handled= 19588 for n in $names_already_handled; do 19589 if test "$n" = "$name"; then 19590 already_handled=yes 19591 break 19592 fi 19593 done 19594 if test -z "$already_handled"; then 19595 names_already_handled="$names_already_handled $name" 19596 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 19597 eval value=\"\$HAVE_LIB$uppername\" 19598 if test -n "$value"; then 19599 if test "$value" = yes; then 19600 eval value=\"\$LIB$uppername\" 19601 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 19602 eval value=\"\$LTLIB$uppername\" 19603 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 19604 else 19605 : 19606 fi 19607 else 19608 found_dir= 19609 found_la= 19610 found_so= 19611 found_a= 19612 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 19613 if test -n "$acl_shlibext"; then 19614 shrext=".$acl_shlibext" # typically: shrext=.so 19615 else 19616 shrext= 19617 fi 19618 if test $use_additional = yes; then 19619 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do 19620 if test "X$found_dir" = "X"; then 19621 eval dir=\$$additional_libdir_variable 19622 if test -n "$dir"; then 19623 if test -n "$acl_shlibext"; then 19624 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 19625 found_dir="$dir" 19626 found_so="$dir/$libname$shrext" 19627 else 19628 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 19629 ver=`(cd "$dir" && \ 19630 for f in "$libname$shrext".*; do echo "$f"; done \ 19631 | sed -e "s,^$libname$shrext\\\\.,," \ 19632 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 19633 | sed 1q ) 2>/dev/null` 19634 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 19635 found_dir="$dir" 19636 found_so="$dir/$libname$shrext.$ver" 19637 fi 19638 else 19639 eval library_names=\"$acl_library_names_spec\" 19640 for f in $library_names; do 19641 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 19642 found_dir="$dir" 19643 found_so="$dir/$f" 19644 break 19645 fi 19646 done 19647 fi 19648 fi 19649 fi 19650 if test "X$found_dir" = "X"; then 19651 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 19652 found_dir="$dir" 19653 found_a="$dir/$libname.$acl_libext" 19654 fi 19655 fi 19656 if test "X$found_dir" != "X"; then 19657 if test -f "$dir/$libname.la"; then 19658 found_la="$dir/$libname.la" 19659 fi 19660 fi 19661 fi 19662 fi 19663 done 19664 fi 19665 if test "X$found_dir" = "X"; then 19666 for x in $LDFLAGS $LTLIBINTL; do 19667 19668 acl_save_prefix="$prefix" 19669 prefix="$acl_final_prefix" 19670 acl_save_exec_prefix="$exec_prefix" 19671 exec_prefix="$acl_final_exec_prefix" 19672 eval x=\"$x\" 19673 exec_prefix="$acl_save_exec_prefix" 19674 prefix="$acl_save_prefix" 19675 19676 case "$x" in 19677 -L*) 19678 dir=`echo "X$x" | sed -e 's/^X-L//'` 19679 if test -n "$acl_shlibext"; then 19680 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 19681 found_dir="$dir" 19682 found_so="$dir/$libname$shrext" 19683 else 19684 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 19685 ver=`(cd "$dir" && \ 19686 for f in "$libname$shrext".*; do echo "$f"; done \ 19687 | sed -e "s,^$libname$shrext\\\\.,," \ 19688 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 19689 | sed 1q ) 2>/dev/null` 19690 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 19691 found_dir="$dir" 19692 found_so="$dir/$libname$shrext.$ver" 19693 fi 19694 else 19695 eval library_names=\"$acl_library_names_spec\" 19696 for f in $library_names; do 19697 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 19698 found_dir="$dir" 19699 found_so="$dir/$f" 19700 break 19701 fi 19702 done 19703 fi 19704 fi 19705 fi 19706 if test "X$found_dir" = "X"; then 19707 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 19708 found_dir="$dir" 19709 found_a="$dir/$libname.$acl_libext" 19710 fi 19711 fi 19712 if test "X$found_dir" != "X"; then 19713 if test -f "$dir/$libname.la"; then 19714 found_la="$dir/$libname.la" 19715 fi 19716 fi 19717 ;; 19718 esac 19719 if test "X$found_dir" != "X"; then 19720 break 19721 fi 19722 done 19723 fi 19724 if test "X$found_dir" != "X"; then 19725 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 19726 if test "X$found_so" != "X"; then 19727 if test "$enable_rpath" = no \ 19728 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 19729 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ 19730 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then 19731 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 19732 else 19733 haveit= 19734 for x in $ltrpathdirs; do 19735 if test "X$x" = "X$found_dir"; then 19736 haveit=yes 19737 break 19738 fi 19739 done 19740 if test -z "$haveit"; then 19741 ltrpathdirs="$ltrpathdirs $found_dir" 19742 fi 19743 if test "$acl_hardcode_direct" = yes; then 19744 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 19745 else 19746 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 19747 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 19748 haveit= 19749 for x in $rpathdirs; do 19750 if test "X$x" = "X$found_dir"; then 19751 haveit=yes 19752 break 19753 fi 19754 done 19755 if test -z "$haveit"; then 19756 rpathdirs="$rpathdirs $found_dir" 19757 fi 19758 else 19759 haveit= 19760 for x in $LDFLAGS $LIBINTL; do 19761 19762 acl_save_prefix="$prefix" 19763 prefix="$acl_final_prefix" 19764 acl_save_exec_prefix="$exec_prefix" 19765 exec_prefix="$acl_final_exec_prefix" 19766 eval x=\"$x\" 19767 exec_prefix="$acl_save_exec_prefix" 19768 prefix="$acl_save_prefix" 19769 19770 if test "X$x" = "X-L$found_dir"; then 19771 haveit=yes 19772 break 19773 fi 19774 done 19775 if test -z "$haveit"; then 19776 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 19777 fi 19778 if test "$acl_hardcode_minus_L" != no; then 19779 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 19780 else 19781 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 19782 fi 19783 fi 19784 fi 19785 fi 19786 else 19787 if test "X$found_a" != "X"; then 19788 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 19789 else 19790 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 19791 fi 19792 fi 19793 additional_includedir= 19794 case "$found_dir" in 19795 */$acl_libdirstem | */$acl_libdirstem/) 19796 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 19797 if test "$name" = 'intl'; then 19798 LIBINTL_PREFIX="$basedir" 19799 fi 19800 additional_includedir="$basedir/include" 19801 ;; 19802 */$acl_libdirstem2 | */$acl_libdirstem2/) 19803 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 19804 if test "$name" = 'intl'; then 19805 LIBINTL_PREFIX="$basedir" 19806 fi 19807 additional_includedir="$basedir/include" 19808 ;; 19809 */$acl_libdirstem3 | */$acl_libdirstem3/) 19810 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` 19811 if test "$name" = 'intl'; then 19812 LIBINTL_PREFIX="$basedir" 19813 fi 19814 additional_includedir="$basedir/include" 19815 ;; 19816 esac 19817 if test "X$additional_includedir" != "X"; then 19818 if test "X$additional_includedir" != "X/usr/include"; then 19819 haveit= 19820 if test "X$additional_includedir" = "X/usr/local/include"; then 19821 if test -n "$GCC"; then 19822 case $host_os in 19823 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19824 esac 19825 fi 19826 fi 19827 if test -z "$haveit"; then 19828 for x in $CPPFLAGS $INCINTL; do 19829 19830 acl_save_prefix="$prefix" 19831 prefix="$acl_final_prefix" 19832 acl_save_exec_prefix="$exec_prefix" 19833 exec_prefix="$acl_final_exec_prefix" 19834 eval x=\"$x\" 19835 exec_prefix="$acl_save_exec_prefix" 19836 prefix="$acl_save_prefix" 19837 19838 if test "X$x" = "X-I$additional_includedir"; then 19839 haveit=yes 19840 break 19841 fi 19842 done 19843 if test -z "$haveit"; then 19844 if test -d "$additional_includedir"; then 19845 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 19846 fi 19847 fi 19848 fi 19849 fi 19850 fi 19851 if test -n "$found_la"; then 19852 save_libdir="$libdir" 19853 case "$found_la" in 19854 */* | *\\*) . "$found_la" ;; 19855 *) . "./$found_la" ;; 19856 esac 19857 libdir="$save_libdir" 19858 for dep in $dependency_libs; do 19859 case "$dep" in 19860 -L*) 19861 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 19862 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ 19863 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ 19864 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then 19865 haveit= 19866 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ 19867 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ 19868 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then 19869 if test -n "$GCC"; then 19870 case $host_os in 19871 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19872 esac 19873 fi 19874 fi 19875 if test -z "$haveit"; then 19876 haveit= 19877 for x in $LDFLAGS $LIBINTL; do 19878 19879 acl_save_prefix="$prefix" 19880 prefix="$acl_final_prefix" 19881 acl_save_exec_prefix="$exec_prefix" 19882 exec_prefix="$acl_final_exec_prefix" 19883 eval x=\"$x\" 19884 exec_prefix="$acl_save_exec_prefix" 19885 prefix="$acl_save_prefix" 19886 19887 if test "X$x" = "X-L$dependency_libdir"; then 19888 haveit=yes 19889 break 19890 fi 19891 done 19892 if test -z "$haveit"; then 19893 if test -d "$dependency_libdir"; then 19894 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir" 19895 fi 19896 fi 19897 haveit= 19898 for x in $LDFLAGS $LTLIBINTL; do 19899 19900 acl_save_prefix="$prefix" 19901 prefix="$acl_final_prefix" 19902 acl_save_exec_prefix="$exec_prefix" 19903 exec_prefix="$acl_final_exec_prefix" 19904 eval x=\"$x\" 19905 exec_prefix="$acl_save_exec_prefix" 19906 prefix="$acl_save_prefix" 19907 19908 if test "X$x" = "X-L$dependency_libdir"; then 19909 haveit=yes 19910 break 19911 fi 19912 done 19913 if test -z "$haveit"; then 19914 if test -d "$dependency_libdir"; then 19915 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir" 19916 fi 19917 fi 19918 fi 19919 fi 19920 ;; 19921 -R*) 19922 dir=`echo "X$dep" | sed -e 's/^X-R//'` 19923 if test "$enable_rpath" != no; then 19924 haveit= 19925 for x in $rpathdirs; do 19926 if test "X$x" = "X$dir"; then 19927 haveit=yes 19928 break 19929 fi 19930 done 19931 if test -z "$haveit"; then 19932 rpathdirs="$rpathdirs $dir" 19933 fi 19934 haveit= 19935 for x in $ltrpathdirs; do 19936 if test "X$x" = "X$dir"; then 19937 haveit=yes 19938 break 19939 fi 19940 done 19941 if test -z "$haveit"; then 19942 ltrpathdirs="$ltrpathdirs $dir" 19943 fi 19944 fi 19945 ;; 19946 -l*) 19947 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 19948 ;; 19949 *.la) 19950 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 19951 ;; 19952 *) 19953 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 19954 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 19955 ;; 19956 esac 19957 done 19958 fi 19959 else 19960 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 19961 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 19962 fi 19963 fi 19964 fi 19965 done 19966 done 19967 if test "X$rpathdirs" != "X"; then 19968 if test -n "$acl_hardcode_libdir_separator"; then 19969 alldirs= 19970 for found_dir in $rpathdirs; do 19971 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 19972 done 19973 acl_save_libdir="$libdir" 19974 libdir="$alldirs" 19975 eval flag=\"$acl_hardcode_libdir_flag_spec\" 19976 libdir="$acl_save_libdir" 19977 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 19978 else 19979 for found_dir in $rpathdirs; do 19980 acl_save_libdir="$libdir" 19981 libdir="$found_dir" 19982 eval flag=\"$acl_hardcode_libdir_flag_spec\" 19983 libdir="$acl_save_libdir" 19984 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 19985 done 19986 fi 19987 fi 19988 if test "X$ltrpathdirs" != "X"; then 19989 for found_dir in $ltrpathdirs; do 19990 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 19991 done 19992 fi 19993 19994 19995 19996 19997 19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 19999$as_echo_n "checking for GNU gettext in libintl... " >&6; } 20000if eval \${$gt_func_gnugettext_libintl+:} false; then : 20001 $as_echo_n "(cached) " >&6 20002else 20003 gt_save_CPPFLAGS="$CPPFLAGS" 20004 CPPFLAGS="$CPPFLAGS $INCINTL" 20005 gt_save_LIBS="$LIBS" 20006 LIBS="$LIBS $LIBINTL" 20007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20008/* end confdefs.h. */ 20009 20010#include <libintl.h> 20011#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 20012extern int _nl_msg_cat_cntr; 20013extern 20014#ifdef __cplusplus 20015"C" 20016#endif 20017const char *_nl_expand_alias (const char *); 20018#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 20019#else 20020#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 20021#endif 20022$gt_revision_test_code 20023 20024int 20025main () 20026{ 20027 20028bindtextdomain ("", ""); 20029return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 20030 20031 ; 20032 return 0; 20033} 20034_ACEOF 20035if ac_fn_c_try_link "$LINENO"; then : 20036 eval "$gt_func_gnugettext_libintl=yes" 20037else 20038 eval "$gt_func_gnugettext_libintl=no" 20039fi 20040rm -f core conftest.err conftest.$ac_objext \ 20041 conftest$ac_exeext conftest.$ac_ext 20042 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 20043 LIBS="$LIBS $LIBICONV" 20044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20045/* end confdefs.h. */ 20046 20047#include <libintl.h> 20048#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 20049extern int _nl_msg_cat_cntr; 20050extern 20051#ifdef __cplusplus 20052"C" 20053#endif 20054const char *_nl_expand_alias (const char *); 20055#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 20056#else 20057#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 20058#endif 20059$gt_revision_test_code 20060 20061int 20062main () 20063{ 20064 20065bindtextdomain ("", ""); 20066return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 20067 20068 ; 20069 return 0; 20070} 20071_ACEOF 20072if ac_fn_c_try_link "$LINENO"; then : 20073 LIBINTL="$LIBINTL $LIBICONV" 20074 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 20075 eval "$gt_func_gnugettext_libintl=yes" 20076 20077fi 20078rm -f core conftest.err conftest.$ac_objext \ 20079 conftest$ac_exeext conftest.$ac_ext 20080 fi 20081 CPPFLAGS="$gt_save_CPPFLAGS" 20082 LIBS="$gt_save_LIBS" 20083fi 20084eval ac_res=\$$gt_func_gnugettext_libintl 20085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20086$as_echo "$ac_res" >&6; } 20087 fi 20088 20089 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 20090 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 20091 && test "$PACKAGE" != gettext-runtime \ 20092 && test "$PACKAGE" != gettext-tools; }; then 20093 gt_use_preinstalled_gnugettext=yes 20094 else 20095 LIBINTL= 20096 LTLIBINTL= 20097 INCINTL= 20098 fi 20099 20100 20101 20102 if test -n "$INTL_MACOSX_LIBS"; then 20103 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 20104 || test "$nls_cv_use_gnu_gettext" = "yes"; then 20105 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 20106 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 20107 fi 20108 fi 20109 20110 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 20111 || test "$nls_cv_use_gnu_gettext" = "yes"; then 20112 20113$as_echo "#define ENABLE_NLS 1" >>confdefs.h 20114 20115 else 20116 USE_NLS=no 20117 fi 20118 fi 20119 20120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 20121$as_echo_n "checking whether to use NLS... " >&6; } 20122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 20123$as_echo "$USE_NLS" >&6; } 20124 if test "$USE_NLS" = "yes"; then 20125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 20126$as_echo_n "checking where the gettext function comes from... " >&6; } 20127 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 20128 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 20129 gt_source="external libintl" 20130 else 20131 gt_source="libc" 20132 fi 20133 else 20134 gt_source="included intl directory" 20135 fi 20136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 20137$as_echo "$gt_source" >&6; } 20138 fi 20139 20140 if test "$USE_NLS" = "yes"; then 20141 20142 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 20143 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 20144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 20145$as_echo_n "checking how to link with libintl... " >&6; } 20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 20147$as_echo "$LIBINTL" >&6; } 20148 20149 for element in $INCINTL; do 20150 haveit= 20151 for x in $CPPFLAGS; do 20152 20153 acl_save_prefix="$prefix" 20154 prefix="$acl_final_prefix" 20155 acl_save_exec_prefix="$exec_prefix" 20156 exec_prefix="$acl_final_exec_prefix" 20157 eval x=\"$x\" 20158 exec_prefix="$acl_save_exec_prefix" 20159 prefix="$acl_save_prefix" 20160 20161 if test "X$x" = "X$element"; then 20162 haveit=yes 20163 break 20164 fi 20165 done 20166 if test -z "$haveit"; then 20167 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 20168 fi 20169 done 20170 20171 fi 20172 20173 20174$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 20175 20176 20177$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 20178 20179 fi 20180 20181 POSUB=po 20182 fi 20183 20184 20185 20186 INTLLIBS="$LIBINTL" 20187 20188 20189 20190 20191 20192 20193 20194# goaconfig.h 20195# 20196 20197ac_config_commands="$ac_config_commands src/goa/goaconfig.h" 20198 20199 20200# Generate 20201# 20202 20203ac_config_files="$ac_config_files Makefile data/Makefile data/icons/Makefile data/icons/scalable/Makefile data/icons/symbolic/Makefile src/Makefile src/goa/Makefile src/goa/goa-1.0.pc src/goabackend/Makefile src/goabackend/goa-backend-1.0.pc src/goaidentity/Makefile src/daemon/Makefile src/examples/Makefile po/Makefile.in doc/Makefile doc/version.xml" 20204 20205cat >confcache <<\_ACEOF 20206# This file is a shell script that caches the results of configure 20207# tests run on this system so they can be shared between configure 20208# scripts and configure runs, see configure's option --config-cache. 20209# It is not useful on other systems. If it contains results you don't 20210# want to keep, you may remove or edit it. 20211# 20212# config.status only pays attention to the cache file if you give it 20213# the --recheck option to rerun configure. 20214# 20215# `ac_cv_env_foo' variables (set or unset) will be overridden when 20216# loading this file, other *unset* `ac_cv_foo' will be assigned the 20217# following values. 20218 20219_ACEOF 20220 20221# The following way of writing the cache mishandles newlines in values, 20222# but we know of no workaround that is simple, portable, and efficient. 20223# So, we kill variables containing newlines. 20224# Ultrix sh set writes to stderr and can't be redirected directly, 20225# and sets the high bit in the cache file unless we assign to the vars. 20226( 20227 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20228 eval ac_val=\$$ac_var 20229 case $ac_val in #( 20230 *${as_nl}*) 20231 case $ac_var in #( 20232 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20233$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20234 esac 20235 case $ac_var in #( 20236 _ | IFS | as_nl) ;; #( 20237 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20238 *) { eval $ac_var=; unset $ac_var;} ;; 20239 esac ;; 20240 esac 20241 done 20242 20243 (set) 2>&1 | 20244 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20245 *${as_nl}ac_space=\ *) 20246 # `set' does not quote correctly, so add quotes: double-quote 20247 # substitution turns \\\\ into \\, and sed turns \\ into \. 20248 sed -n \ 20249 "s/'/'\\\\''/g; 20250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20251 ;; #( 20252 *) 20253 # `set' quotes correctly as required by POSIX, so do not add quotes. 20254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20255 ;; 20256 esac | 20257 sort 20258) | 20259 sed ' 20260 /^ac_cv_env_/b end 20261 t clear 20262 :clear 20263 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20264 t end 20265 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20266 :end' >>confcache 20267if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20268 if test -w "$cache_file"; then 20269 if test "x$cache_file" != "x/dev/null"; then 20270 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20271$as_echo "$as_me: updating cache $cache_file" >&6;} 20272 if test ! -f "$cache_file" || test -h "$cache_file"; then 20273 cat confcache >"$cache_file" 20274 else 20275 case $cache_file in #( 20276 */* | ?:*) 20277 mv -f confcache "$cache_file"$$ && 20278 mv -f "$cache_file"$$ "$cache_file" ;; #( 20279 *) 20280 mv -f confcache "$cache_file" ;; 20281 esac 20282 fi 20283 fi 20284 else 20285 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20286$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20287 fi 20288fi 20289rm -f confcache 20290 20291test "x$prefix" = xNONE && prefix=$ac_default_prefix 20292# Let make expand exec_prefix. 20293test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20294 20295DEFS=-DHAVE_CONFIG_H 20296 20297ac_libobjs= 20298ac_ltlibobjs= 20299U= 20300for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20301 # 1. Remove the extension, and $U if already installed. 20302 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20303 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20304 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20305 # will be set to the directory where LIBOBJS objects are built. 20306 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20307 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20308done 20309LIBOBJS=$ac_libobjs 20310 20311LTLIBOBJS=$ac_ltlibobjs 20312 20313 20314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20315$as_echo_n "checking that generated files are newer than configure... " >&6; } 20316 if test -n "$am_sleep_pid"; then 20317 # Hide warnings about reused PIDs. 20318 wait $am_sleep_pid 2>/dev/null 20319 fi 20320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20321$as_echo "done" >&6; } 20322 if test -n "$EXEEXT"; then 20323 am__EXEEXT_TRUE= 20324 am__EXEEXT_FALSE='#' 20325else 20326 am__EXEEXT_TRUE='#' 20327 am__EXEEXT_FALSE= 20328fi 20329 20330if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20331 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 20332Usually this means the macro was only invoked conditionally." "$LINENO" 5 20333fi 20334if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20335 as_fn_error $? "conditional \"AMDEP\" was never defined. 20336Usually this means the macro was only invoked conditionally." "$LINENO" 5 20337fi 20338if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20339 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20340Usually this means the macro was only invoked conditionally." "$LINENO" 5 20341fi 20342if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20343 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20344Usually this means the macro was only invoked conditionally." "$LINENO" 5 20345fi 20346if test -z "${ENABLE_DOCUMENTATION_TRUE}" && test -z "${ENABLE_DOCUMENTATION_FALSE}"; then 20347 as_fn_error $? "conditional \"ENABLE_DOCUMENTATION\" was never defined. 20348Usually this means the macro was only invoked conditionally." "$LINENO" 5 20349fi 20350if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then 20351 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined. 20352Usually this means the macro was only invoked conditionally." "$LINENO" 5 20353fi 20354if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then 20355 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. 20356Usually this means the macro was only invoked conditionally." "$LINENO" 5 20357fi 20358if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then 20359 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined. 20360Usually this means the macro was only invoked conditionally." "$LINENO" 5 20361fi 20362if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then 20363 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined. 20364Usually this means the macro was only invoked conditionally." "$LINENO" 5 20365fi 20366if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then 20367 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. 20368Usually this means the macro was only invoked conditionally." "$LINENO" 5 20369fi 20370if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then 20371 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined. 20372Usually this means the macro was only invoked conditionally." "$LINENO" 5 20373fi 20374if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then 20375 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined. 20376Usually this means the macro was only invoked conditionally." "$LINENO" 5 20377fi 20378if test -z "${ENABLE_VAPIGEN_TRUE}" && test -z "${ENABLE_VAPIGEN_FALSE}"; then 20379 as_fn_error $? "conditional \"ENABLE_VAPIGEN\" was never defined. 20380Usually this means the macro was only invoked conditionally." "$LINENO" 5 20381fi 20382if test -z "${BUILD_BACKEND_TRUE}" && test -z "${BUILD_BACKEND_FALSE}"; then 20383 as_fn_error $? "conditional \"BUILD_BACKEND\" was never defined. 20384Usually this means the macro was only invoked conditionally." "$LINENO" 5 20385fi 20386if test -z "${BUILD_FEDORA_TRUE}" && test -z "${BUILD_FEDORA_FALSE}"; then 20387 as_fn_error $? "conditional \"BUILD_FEDORA\" was never defined. 20388Usually this means the macro was only invoked conditionally." "$LINENO" 5 20389fi 20390if test -z "${BUILD_KERBEROS_TRUE}" && test -z "${BUILD_KERBEROS_FALSE}"; then 20391 as_fn_error $? "conditional \"BUILD_KERBEROS\" was never defined. 20392Usually this means the macro was only invoked conditionally." "$LINENO" 5 20393fi 20394if test -z "${BUILD_IDENTITY_SERVICE_TRUE}" && test -z "${BUILD_IDENTITY_SERVICE_FALSE}"; then 20395 as_fn_error $? "conditional \"BUILD_IDENTITY_SERVICE\" was never defined. 20396Usually this means the macro was only invoked conditionally." "$LINENO" 5 20397fi 20398 20399: "${CONFIG_STATUS=./config.status}" 20400ac_write_fail=0 20401ac_clean_files_save=$ac_clean_files 20402ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20403{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20404$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20405as_write_fail=0 20406cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20407#! $SHELL 20408# Generated by $as_me. 20409# Run this file to recreate the current configuration. 20410# Compiler output produced by configure, useful for debugging 20411# configure, is in config.log if it exists. 20412 20413debug=false 20414ac_cs_recheck=false 20415ac_cs_silent=false 20416 20417SHELL=\${CONFIG_SHELL-$SHELL} 20418export SHELL 20419_ASEOF 20420cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20421## -------------------- ## 20422## M4sh Initialization. ## 20423## -------------------- ## 20424 20425# Be more Bourne compatible 20426DUALCASE=1; export DUALCASE # for MKS sh 20427if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20428 emulate sh 20429 NULLCMD=: 20430 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20431 # is contrary to our usage. Disable this feature. 20432 alias -g '${1+"$@"}'='"$@"' 20433 setopt NO_GLOB_SUBST 20434else 20435 case `(set -o) 2>/dev/null` in #( 20436 *posix*) : 20437 set -o posix ;; #( 20438 *) : 20439 ;; 20440esac 20441fi 20442 20443 20444as_nl=' 20445' 20446export as_nl 20447# Printing a long string crashes Solaris 7 /usr/bin/printf. 20448as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20449as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20450as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20451# Prefer a ksh shell builtin over an external printf program on Solaris, 20452# but without wasting forks for bash or zsh. 20453if test -z "$BASH_VERSION$ZSH_VERSION" \ 20454 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20455 as_echo='print -r --' 20456 as_echo_n='print -rn --' 20457elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20458 as_echo='printf %s\n' 20459 as_echo_n='printf %s' 20460else 20461 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20462 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20463 as_echo_n='/usr/ucb/echo -n' 20464 else 20465 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20466 as_echo_n_body='eval 20467 arg=$1; 20468 case $arg in #( 20469 *"$as_nl"*) 20470 expr "X$arg" : "X\\(.*\\)$as_nl"; 20471 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20472 esac; 20473 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20474 ' 20475 export as_echo_n_body 20476 as_echo_n='sh -c $as_echo_n_body as_echo' 20477 fi 20478 export as_echo_body 20479 as_echo='sh -c $as_echo_body as_echo' 20480fi 20481 20482# The user is always right. 20483if test "${PATH_SEPARATOR+set}" != set; then 20484 PATH_SEPARATOR=: 20485 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20486 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20487 PATH_SEPARATOR=';' 20488 } 20489fi 20490 20491 20492# IFS 20493# We need space, tab and new line, in precisely that order. Quoting is 20494# there to prevent editors from complaining about space-tab. 20495# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20496# splitting by setting IFS to empty value.) 20497IFS=" "" $as_nl" 20498 20499# Find who we are. Look in the path if we contain no directory separator. 20500as_myself= 20501case $0 in #(( 20502 *[\\/]* ) as_myself=$0 ;; 20503 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20504for as_dir in $PATH 20505do 20506 IFS=$as_save_IFS 20507 test -z "$as_dir" && as_dir=. 20508 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20509 done 20510IFS=$as_save_IFS 20511 20512 ;; 20513esac 20514# We did not find ourselves, most probably we were run as `sh COMMAND' 20515# in which case we are not to be found in the path. 20516if test "x$as_myself" = x; then 20517 as_myself=$0 20518fi 20519if test ! -f "$as_myself"; then 20520 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20521 exit 1 20522fi 20523 20524# Unset variables that we do not need and which cause bugs (e.g. in 20525# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20526# suppresses any "Segmentation fault" message there. '((' could 20527# trigger a bug in pdksh 5.2.14. 20528for as_var in BASH_ENV ENV MAIL MAILPATH 20529do eval test x\${$as_var+set} = xset \ 20530 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20531done 20532PS1='$ ' 20533PS2='> ' 20534PS4='+ ' 20535 20536# NLS nuisances. 20537LC_ALL=C 20538export LC_ALL 20539LANGUAGE=C 20540export LANGUAGE 20541 20542# CDPATH. 20543(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20544 20545 20546# as_fn_error STATUS ERROR [LINENO LOG_FD] 20547# ---------------------------------------- 20548# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20549# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20550# script with STATUS, using 1 if that was 0. 20551as_fn_error () 20552{ 20553 as_status=$1; test $as_status -eq 0 && as_status=1 20554 if test "$4"; then 20555 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20556 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20557 fi 20558 $as_echo "$as_me: error: $2" >&2 20559 as_fn_exit $as_status 20560} # as_fn_error 20561 20562 20563# as_fn_set_status STATUS 20564# ----------------------- 20565# Set $? to STATUS, without forking. 20566as_fn_set_status () 20567{ 20568 return $1 20569} # as_fn_set_status 20570 20571# as_fn_exit STATUS 20572# ----------------- 20573# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20574as_fn_exit () 20575{ 20576 set +e 20577 as_fn_set_status $1 20578 exit $1 20579} # as_fn_exit 20580 20581# as_fn_unset VAR 20582# --------------- 20583# Portably unset VAR. 20584as_fn_unset () 20585{ 20586 { eval $1=; unset $1;} 20587} 20588as_unset=as_fn_unset 20589# as_fn_append VAR VALUE 20590# ---------------------- 20591# Append the text in VALUE to the end of the definition contained in VAR. Take 20592# advantage of any shell optimizations that allow amortized linear growth over 20593# repeated appends, instead of the typical quadratic growth present in naive 20594# implementations. 20595if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20596 eval 'as_fn_append () 20597 { 20598 eval $1+=\$2 20599 }' 20600else 20601 as_fn_append () 20602 { 20603 eval $1=\$$1\$2 20604 } 20605fi # as_fn_append 20606 20607# as_fn_arith ARG... 20608# ------------------ 20609# Perform arithmetic evaluation on the ARGs, and store the result in the 20610# global $as_val. Take advantage of shells that can avoid forks. The arguments 20611# must be portable across $(()) and expr. 20612if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20613 eval 'as_fn_arith () 20614 { 20615 as_val=$(( $* )) 20616 }' 20617else 20618 as_fn_arith () 20619 { 20620 as_val=`expr "$@" || test $? -eq 1` 20621 } 20622fi # as_fn_arith 20623 20624 20625if expr a : '\(a\)' >/dev/null 2>&1 && 20626 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20627 as_expr=expr 20628else 20629 as_expr=false 20630fi 20631 20632if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20633 as_basename=basename 20634else 20635 as_basename=false 20636fi 20637 20638if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20639 as_dirname=dirname 20640else 20641 as_dirname=false 20642fi 20643 20644as_me=`$as_basename -- "$0" || 20645$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20646 X"$0" : 'X\(//\)$' \| \ 20647 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20648$as_echo X/"$0" | 20649 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20650 s//\1/ 20651 q 20652 } 20653 /^X\/\(\/\/\)$/{ 20654 s//\1/ 20655 q 20656 } 20657 /^X\/\(\/\).*/{ 20658 s//\1/ 20659 q 20660 } 20661 s/.*/./; q'` 20662 20663# Avoid depending upon Character Ranges. 20664as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20665as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20666as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20667as_cr_digits='0123456789' 20668as_cr_alnum=$as_cr_Letters$as_cr_digits 20669 20670ECHO_C= ECHO_N= ECHO_T= 20671case `echo -n x` in #((((( 20672-n*) 20673 case `echo 'xy\c'` in 20674 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20675 xy) ECHO_C='\c';; 20676 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20677 ECHO_T=' ';; 20678 esac;; 20679*) 20680 ECHO_N='-n';; 20681esac 20682 20683rm -f conf$$ conf$$.exe conf$$.file 20684if test -d conf$$.dir; then 20685 rm -f conf$$.dir/conf$$.file 20686else 20687 rm -f conf$$.dir 20688 mkdir conf$$.dir 2>/dev/null 20689fi 20690if (echo >conf$$.file) 2>/dev/null; then 20691 if ln -s conf$$.file conf$$ 2>/dev/null; then 20692 as_ln_s='ln -s' 20693 # ... but there are two gotchas: 20694 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20695 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20696 # In both cases, we have to default to `cp -pR'. 20697 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20698 as_ln_s='cp -pR' 20699 elif ln conf$$.file conf$$ 2>/dev/null; then 20700 as_ln_s=ln 20701 else 20702 as_ln_s='cp -pR' 20703 fi 20704else 20705 as_ln_s='cp -pR' 20706fi 20707rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20708rmdir conf$$.dir 2>/dev/null 20709 20710 20711# as_fn_mkdir_p 20712# ------------- 20713# Create "$as_dir" as a directory, including parents if necessary. 20714as_fn_mkdir_p () 20715{ 20716 20717 case $as_dir in #( 20718 -*) as_dir=./$as_dir;; 20719 esac 20720 test -d "$as_dir" || eval $as_mkdir_p || { 20721 as_dirs= 20722 while :; do 20723 case $as_dir in #( 20724 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20725 *) as_qdir=$as_dir;; 20726 esac 20727 as_dirs="'$as_qdir' $as_dirs" 20728 as_dir=`$as_dirname -- "$as_dir" || 20729$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20730 X"$as_dir" : 'X\(//\)[^/]' \| \ 20731 X"$as_dir" : 'X\(//\)$' \| \ 20732 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20733$as_echo X"$as_dir" | 20734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20735 s//\1/ 20736 q 20737 } 20738 /^X\(\/\/\)[^/].*/{ 20739 s//\1/ 20740 q 20741 } 20742 /^X\(\/\/\)$/{ 20743 s//\1/ 20744 q 20745 } 20746 /^X\(\/\).*/{ 20747 s//\1/ 20748 q 20749 } 20750 s/.*/./; q'` 20751 test -d "$as_dir" && break 20752 done 20753 test -z "$as_dirs" || eval "mkdir $as_dirs" 20754 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20755 20756 20757} # as_fn_mkdir_p 20758if mkdir -p . 2>/dev/null; then 20759 as_mkdir_p='mkdir -p "$as_dir"' 20760else 20761 test -d ./-p && rmdir ./-p 20762 as_mkdir_p=false 20763fi 20764 20765 20766# as_fn_executable_p FILE 20767# ----------------------- 20768# Test if FILE is an executable regular file. 20769as_fn_executable_p () 20770{ 20771 test -f "$1" && test -x "$1" 20772} # as_fn_executable_p 20773as_test_x='test -x' 20774as_executable_p=as_fn_executable_p 20775 20776# Sed expression to map a string onto a valid CPP name. 20777as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20778 20779# Sed expression to map a string onto a valid variable name. 20780as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20781 20782 20783exec 6>&1 20784## ----------------------------------- ## 20785## Main body of $CONFIG_STATUS script. ## 20786## ----------------------------------- ## 20787_ASEOF 20788test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20789 20790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20791# Save the log message, to keep $0 and so on meaningful, and to 20792# report actual input values of CONFIG_FILES etc. instead of their 20793# values after options handling. 20794ac_log=" 20795This file was extended by GNOME Online Accounts $as_me 3.40.1, which was 20796generated by GNU Autoconf 2.69. Invocation command line was 20797 20798 CONFIG_FILES = $CONFIG_FILES 20799 CONFIG_HEADERS = $CONFIG_HEADERS 20800 CONFIG_LINKS = $CONFIG_LINKS 20801 CONFIG_COMMANDS = $CONFIG_COMMANDS 20802 $ $0 $@ 20803 20804on `(hostname || uname -n) 2>/dev/null | sed 1q` 20805" 20806 20807_ACEOF 20808 20809case $ac_config_files in *" 20810"*) set x $ac_config_files; shift; ac_config_files=$*;; 20811esac 20812 20813case $ac_config_headers in *" 20814"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20815esac 20816 20817 20818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20819# Files that config.status was made for. 20820config_files="$ac_config_files" 20821config_headers="$ac_config_headers" 20822config_commands="$ac_config_commands" 20823 20824_ACEOF 20825 20826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20827ac_cs_usage="\ 20828\`$as_me' instantiates files and other configuration actions 20829from templates according to the current configuration. Unless the files 20830and actions are specified as TAGs, all are instantiated by default. 20831 20832Usage: $0 [OPTION]... [TAG]... 20833 20834 -h, --help print this help, then exit 20835 -V, --version print version number and configuration settings, then exit 20836 --config print configuration, then exit 20837 -q, --quiet, --silent 20838 do not print progress messages 20839 -d, --debug don't remove temporary files 20840 --recheck update $as_me by reconfiguring in the same conditions 20841 --file=FILE[:TEMPLATE] 20842 instantiate the configuration file FILE 20843 --header=FILE[:TEMPLATE] 20844 instantiate the configuration header FILE 20845 20846Configuration files: 20847$config_files 20848 20849Configuration headers: 20850$config_headers 20851 20852Configuration commands: 20853$config_commands 20854 20855Report bugs to <https://gitlab.gnome.org/GNOME/gnome-online-accounts/issues>. 20856GNOME Online Accounts home page: <https://wiki.gnome.org/Projects/GnomeOnlineAccounts>." 20857 20858_ACEOF 20859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20860ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20861ac_cs_version="\\ 20862GNOME Online Accounts config.status 3.40.1 20863configured by $0, generated by GNU Autoconf 2.69, 20864 with options \\"\$ac_cs_config\\" 20865 20866Copyright (C) 2012 Free Software Foundation, Inc. 20867This config.status script is free software; the Free Software Foundation 20868gives unlimited permission to copy, distribute and modify it." 20869 20870ac_pwd='$ac_pwd' 20871srcdir='$srcdir' 20872INSTALL='$INSTALL' 20873MKDIR_P='$MKDIR_P' 20874AWK='$AWK' 20875test -n "\$AWK" || AWK=awk 20876_ACEOF 20877 20878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20879# The default lists apply if the user does not specify any file. 20880ac_need_defaults=: 20881while test $# != 0 20882do 20883 case $1 in 20884 --*=?*) 20885 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20886 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20887 ac_shift=: 20888 ;; 20889 --*=) 20890 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20891 ac_optarg= 20892 ac_shift=: 20893 ;; 20894 *) 20895 ac_option=$1 20896 ac_optarg=$2 20897 ac_shift=shift 20898 ;; 20899 esac 20900 20901 case $ac_option in 20902 # Handling of the options. 20903 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20904 ac_cs_recheck=: ;; 20905 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20906 $as_echo "$ac_cs_version"; exit ;; 20907 --config | --confi | --conf | --con | --co | --c ) 20908 $as_echo "$ac_cs_config"; exit ;; 20909 --debug | --debu | --deb | --de | --d | -d ) 20910 debug=: ;; 20911 --file | --fil | --fi | --f ) 20912 $ac_shift 20913 case $ac_optarg in 20914 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20915 '') as_fn_error $? "missing file argument" ;; 20916 esac 20917 as_fn_append CONFIG_FILES " '$ac_optarg'" 20918 ac_need_defaults=false;; 20919 --header | --heade | --head | --hea ) 20920 $ac_shift 20921 case $ac_optarg in 20922 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20923 esac 20924 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20925 ac_need_defaults=false;; 20926 --he | --h) 20927 # Conflict between --help and --header 20928 as_fn_error $? "ambiguous option: \`$1' 20929Try \`$0 --help' for more information.";; 20930 --help | --hel | -h ) 20931 $as_echo "$ac_cs_usage"; exit ;; 20932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20933 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20934 ac_cs_silent=: ;; 20935 20936 # This is an error. 20937 -*) as_fn_error $? "unrecognized option: \`$1' 20938Try \`$0 --help' for more information." ;; 20939 20940 *) as_fn_append ac_config_targets " $1" 20941 ac_need_defaults=false ;; 20942 20943 esac 20944 shift 20945done 20946 20947ac_configure_extra_args= 20948 20949if $ac_cs_silent; then 20950 exec 6>/dev/null 20951 ac_configure_extra_args="$ac_configure_extra_args --silent" 20952fi 20953 20954_ACEOF 20955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20956if \$ac_cs_recheck; then 20957 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20958 shift 20959 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20960 CONFIG_SHELL='$SHELL' 20961 export CONFIG_SHELL 20962 exec "\$@" 20963fi 20964 20965_ACEOF 20966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20967exec 5>>config.log 20968{ 20969 echo 20970 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20971## Running $as_me. ## 20972_ASBOX 20973 $as_echo "$ac_log" 20974} >&5 20975 20976_ACEOF 20977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20978# 20979# INIT-COMMANDS 20980# 20981AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20982 20983 20984# The HP-UX ksh and POSIX shell print the target directory to stdout 20985# if CDPATH is set. 20986(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20987 20988sed_quote_subst='$sed_quote_subst' 20989double_quote_subst='$double_quote_subst' 20990delay_variable_subst='$delay_variable_subst' 20991macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20992macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20993enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20994enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20995pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20996enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20997shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20998SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20999ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21000PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21001host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21002host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21003host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21004build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21005build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21006build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21007SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21008Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21009GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21010EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21011FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21012LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21013NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21014LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21015max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21016ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21017exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21018lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21019lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21020lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21021lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21022lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21023reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21024reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21025OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21026deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21027file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21028file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21029want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21030DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21031sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21032AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21033AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21034archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21035STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21036RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21037old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21038old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21039old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21040lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21041CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21042CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21043compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21044GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21045lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21046lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21047lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21048lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21049lt_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"`' 21050lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21051nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21052lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21053lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21054objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21055MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21056lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21057lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21058lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21059lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21060lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21061need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21062MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21063DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21064NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21065LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21066OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21067OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21068libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21069shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21070extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21071archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21072enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21073export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21074whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21075compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21076old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21077old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21078archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21079archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21080module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21081module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21082with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21083allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21084no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21085hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21086hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21087hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21088hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21089hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21090hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21091hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21092inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21093link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21094always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21095export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21096exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21097include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21098prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21099postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21100file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21101variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21102need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21103need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21104version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21105runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21106shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21107shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21108libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21109library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21110soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21111install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21112postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21113postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21114finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21115finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21116hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21117sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21118configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21119configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21120hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21121enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21122enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21123enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21124old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21125striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21126 21127LTCC='$LTCC' 21128LTCFLAGS='$LTCFLAGS' 21129compiler='$compiler_DEFAULT' 21130 21131# A function that is used when there is no print builtin or printf. 21132func_fallback_echo () 21133{ 21134 eval 'cat <<_LTECHO_EOF 21135\$1 21136_LTECHO_EOF' 21137} 21138 21139# Quote evaled strings. 21140for var in SHELL \ 21141ECHO \ 21142PATH_SEPARATOR \ 21143SED \ 21144GREP \ 21145EGREP \ 21146FGREP \ 21147LD \ 21148NM \ 21149LN_S \ 21150lt_SP2NL \ 21151lt_NL2SP \ 21152reload_flag \ 21153OBJDUMP \ 21154deplibs_check_method \ 21155file_magic_cmd \ 21156file_magic_glob \ 21157want_nocaseglob \ 21158DLLTOOL \ 21159sharedlib_from_linklib_cmd \ 21160AR \ 21161AR_FLAGS \ 21162archiver_list_spec \ 21163STRIP \ 21164RANLIB \ 21165CC \ 21166CFLAGS \ 21167compiler \ 21168lt_cv_sys_global_symbol_pipe \ 21169lt_cv_sys_global_symbol_to_cdecl \ 21170lt_cv_sys_global_symbol_to_import \ 21171lt_cv_sys_global_symbol_to_c_name_address \ 21172lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21173lt_cv_nm_interface \ 21174nm_file_list_spec \ 21175lt_cv_truncate_bin \ 21176lt_prog_compiler_no_builtin_flag \ 21177lt_prog_compiler_pic \ 21178lt_prog_compiler_wl \ 21179lt_prog_compiler_static \ 21180lt_cv_prog_compiler_c_o \ 21181need_locks \ 21182MANIFEST_TOOL \ 21183DSYMUTIL \ 21184NMEDIT \ 21185LIPO \ 21186OTOOL \ 21187OTOOL64 \ 21188shrext_cmds \ 21189export_dynamic_flag_spec \ 21190whole_archive_flag_spec \ 21191compiler_needs_object \ 21192with_gnu_ld \ 21193allow_undefined_flag \ 21194no_undefined_flag \ 21195hardcode_libdir_flag_spec \ 21196hardcode_libdir_separator \ 21197exclude_expsyms \ 21198include_expsyms \ 21199file_list_spec \ 21200variables_saved_for_relink \ 21201libname_spec \ 21202library_names_spec \ 21203soname_spec \ 21204install_override_mode \ 21205finish_eval \ 21206old_striplib \ 21207striplib; do 21208 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21209 *[\\\\\\\`\\"\\\$]*) 21210 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21211 ;; 21212 *) 21213 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21214 ;; 21215 esac 21216done 21217 21218# Double-quote double-evaled strings. 21219for var in reload_cmds \ 21220old_postinstall_cmds \ 21221old_postuninstall_cmds \ 21222old_archive_cmds \ 21223extract_expsyms_cmds \ 21224old_archive_from_new_cmds \ 21225old_archive_from_expsyms_cmds \ 21226archive_cmds \ 21227archive_expsym_cmds \ 21228module_cmds \ 21229module_expsym_cmds \ 21230export_symbols_cmds \ 21231prelink_cmds \ 21232postlink_cmds \ 21233postinstall_cmds \ 21234postuninstall_cmds \ 21235finish_cmds \ 21236sys_lib_search_path_spec \ 21237configure_time_dlsearch_path \ 21238configure_time_lt_sys_library_path; do 21239 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21240 *[\\\\\\\`\\"\\\$]*) 21241 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21242 ;; 21243 *) 21244 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21245 ;; 21246 esac 21247done 21248 21249ac_aux_dir='$ac_aux_dir' 21250 21251# See if we are running on zsh, and set the options that allow our 21252# commands through without removal of \ escapes INIT. 21253if test -n "\${ZSH_VERSION+set}"; then 21254 setopt NO_GLOB_SUBST 21255fi 21256 21257 21258 PACKAGE='$PACKAGE' 21259 VERSION='$VERSION' 21260 RM='$RM' 21261 ofile='$ofile' 21262 21263 21264 21265# Capture the value of obsolete ALL_LINGUAS because we need it to compute 21266 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. 21267 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS" 21268 # Capture the value of LINGUAS because we need it to compute CATALOGS. 21269 LINGUAS="${LINGUAS-%UNSET%}" 21270 21271 21272 GOA_MAJOR_VERSION=$GOA_MAJOR_VERSION 21273 GOA_MINOR_VERSION=$GOA_MINOR_VERSION 21274 GOA_MICRO_VERSION=$GOA_MICRO_VERSION 21275 21276 21277_ACEOF 21278 21279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21280 21281# Handling of arguments. 21282for ac_config_target in $ac_config_targets 21283do 21284 case $ac_config_target in 21285 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21286 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21287 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21288 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 21289 "src/goa/goaconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/goa/goaconfig.h" ;; 21290 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21291 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; 21292 "data/icons/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/Makefile" ;; 21293 "data/icons/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/scalable/Makefile" ;; 21294 "data/icons/symbolic/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/symbolic/Makefile" ;; 21295 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21296 "src/goa/Makefile") CONFIG_FILES="$CONFIG_FILES src/goa/Makefile" ;; 21297 "src/goa/goa-1.0.pc") CONFIG_FILES="$CONFIG_FILES src/goa/goa-1.0.pc" ;; 21298 "src/goabackend/Makefile") CONFIG_FILES="$CONFIG_FILES src/goabackend/Makefile" ;; 21299 "src/goabackend/goa-backend-1.0.pc") CONFIG_FILES="$CONFIG_FILES src/goabackend/goa-backend-1.0.pc" ;; 21300 "src/goaidentity/Makefile") CONFIG_FILES="$CONFIG_FILES src/goaidentity/Makefile" ;; 21301 "src/daemon/Makefile") CONFIG_FILES="$CONFIG_FILES src/daemon/Makefile" ;; 21302 "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; 21303 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 21304 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 21305 "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;; 21306 21307 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21308 esac 21309done 21310 21311 21312# If the user did not use the arguments to specify the items to instantiate, 21313# then the envvar interface is used. Set only those that are not. 21314# We use the long form for the default assignment because of an extremely 21315# bizarre bug on SunOS 4.1.3. 21316if $ac_need_defaults; then 21317 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21318 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21319 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21320fi 21321 21322# Have a temporary directory for convenience. Make it in the build tree 21323# simply because there is no reason against having it here, and in addition, 21324# creating and moving files from /tmp can sometimes cause problems. 21325# Hook for its removal unless debugging. 21326# Note that there is a small window in which the directory will not be cleaned: 21327# after its creation but before its name has been assigned to `$tmp'. 21328$debug || 21329{ 21330 tmp= ac_tmp= 21331 trap 'exit_status=$? 21332 : "${ac_tmp:=$tmp}" 21333 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21334' 0 21335 trap 'as_fn_exit 1' 1 2 13 15 21336} 21337# Create a (secure) tmp directory for tmp files. 21338 21339{ 21340 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21341 test -d "$tmp" 21342} || 21343{ 21344 tmp=./conf$$-$RANDOM 21345 (umask 077 && mkdir "$tmp") 21346} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21347ac_tmp=$tmp 21348 21349# Set up the scripts for CONFIG_FILES section. 21350# No need to generate them if there are no CONFIG_FILES. 21351# This happens for instance with `./config.status config.h'. 21352if test -n "$CONFIG_FILES"; then 21353 21354 21355ac_cr=`echo X | tr X '\015'` 21356# On cygwin, bash can eat \r inside `` if the user requested igncr. 21357# But we know of no other shell where ac_cr would be empty at this 21358# point, so we can use a bashism as a fallback. 21359if test "x$ac_cr" = x; then 21360 eval ac_cr=\$\'\\r\' 21361fi 21362ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21363if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21364 ac_cs_awk_cr='\\r' 21365else 21366 ac_cs_awk_cr=$ac_cr 21367fi 21368 21369echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21370_ACEOF 21371 21372 21373{ 21374 echo "cat >conf$$subs.awk <<_ACEOF" && 21375 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21376 echo "_ACEOF" 21377} >conf$$subs.sh || 21378 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21379ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21380ac_delim='%!_!# ' 21381for ac_last_try in false false false false false :; do 21382 . ./conf$$subs.sh || 21383 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21384 21385 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21386 if test $ac_delim_n = $ac_delim_num; then 21387 break 21388 elif $ac_last_try; then 21389 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21390 else 21391 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21392 fi 21393done 21394rm -f conf$$subs.sh 21395 21396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21397cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21398_ACEOF 21399sed -n ' 21400h 21401s/^/S["/; s/!.*/"]=/ 21402p 21403g 21404s/^[^!]*!// 21405:repl 21406t repl 21407s/'"$ac_delim"'$// 21408t delim 21409:nl 21410h 21411s/\(.\{148\}\)..*/\1/ 21412t more1 21413s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21414p 21415n 21416b repl 21417:more1 21418s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21419p 21420g 21421s/.\{148\}// 21422t nl 21423:delim 21424h 21425s/\(.\{148\}\)..*/\1/ 21426t more2 21427s/["\\]/\\&/g; s/^/"/; s/$/"/ 21428p 21429b 21430:more2 21431s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21432p 21433g 21434s/.\{148\}// 21435t delim 21436' <conf$$subs.awk | sed ' 21437/^[^""]/{ 21438 N 21439 s/\n// 21440} 21441' >>$CONFIG_STATUS || ac_write_fail=1 21442rm -f conf$$subs.awk 21443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21444_ACAWK 21445cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21446 for (key in S) S_is_set[key] = 1 21447 FS = "" 21448 21449} 21450{ 21451 line = $ 0 21452 nfields = split(line, field, "@") 21453 substed = 0 21454 len = length(field[1]) 21455 for (i = 2; i < nfields; i++) { 21456 key = field[i] 21457 keylen = length(key) 21458 if (S_is_set[key]) { 21459 value = S[key] 21460 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21461 len += length(value) + length(field[++i]) 21462 substed = 1 21463 } else 21464 len += 1 + keylen 21465 } 21466 21467 print line 21468} 21469 21470_ACAWK 21471_ACEOF 21472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21473if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21474 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21475else 21476 cat 21477fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21478 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21479_ACEOF 21480 21481# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21482# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21483# trailing colons and then remove the whole line if VPATH becomes empty 21484# (actually we leave an empty line to preserve line numbers). 21485if test "x$srcdir" = x.; then 21486 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21487h 21488s/// 21489s/^/:/ 21490s/[ ]*$/:/ 21491s/:\$(srcdir):/:/g 21492s/:\${srcdir}:/:/g 21493s/:@srcdir@:/:/g 21494s/^:*// 21495s/:*$// 21496x 21497s/\(=[ ]*\).*/\1/ 21498G 21499s/\n// 21500s/^[^=]*=[ ]*$// 21501}' 21502fi 21503 21504cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21505fi # test -n "$CONFIG_FILES" 21506 21507# Set up the scripts for CONFIG_HEADERS section. 21508# No need to generate them if there are no CONFIG_HEADERS. 21509# This happens for instance with `./config.status Makefile'. 21510if test -n "$CONFIG_HEADERS"; then 21511cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21512BEGIN { 21513_ACEOF 21514 21515# Transform confdefs.h into an awk script `defines.awk', embedded as 21516# here-document in config.status, that substitutes the proper values into 21517# config.h.in to produce config.h. 21518 21519# Create a delimiter string that does not exist in confdefs.h, to ease 21520# handling of long lines. 21521ac_delim='%!_!# ' 21522for ac_last_try in false false :; do 21523 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21524 if test -z "$ac_tt"; then 21525 break 21526 elif $ac_last_try; then 21527 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21528 else 21529 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21530 fi 21531done 21532 21533# For the awk script, D is an array of macro values keyed by name, 21534# likewise P contains macro parameters if any. Preserve backslash 21535# newline sequences. 21536 21537ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21538sed -n ' 21539s/.\{148\}/&'"$ac_delim"'/g 21540t rset 21541:rset 21542s/^[ ]*#[ ]*define[ ][ ]*/ / 21543t def 21544d 21545:def 21546s/\\$// 21547t bsnl 21548s/["\\]/\\&/g 21549s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21550D["\1"]=" \3"/p 21551s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21552d 21553:bsnl 21554s/["\\]/\\&/g 21555s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21556D["\1"]=" \3\\\\\\n"\\/p 21557t cont 21558s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21559t cont 21560d 21561:cont 21562n 21563s/.\{148\}/&'"$ac_delim"'/g 21564t clear 21565:clear 21566s/\\$// 21567t bsnlc 21568s/["\\]/\\&/g; s/^/"/; s/$/"/p 21569d 21570:bsnlc 21571s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21572b cont 21573' <confdefs.h | sed ' 21574s/'"$ac_delim"'/"\\\ 21575"/g' >>$CONFIG_STATUS || ac_write_fail=1 21576 21577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21578 for (key in D) D_is_set[key] = 1 21579 FS = "" 21580} 21581/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21582 line = \$ 0 21583 split(line, arg, " ") 21584 if (arg[1] == "#") { 21585 defundef = arg[2] 21586 mac1 = arg[3] 21587 } else { 21588 defundef = substr(arg[1], 2) 21589 mac1 = arg[2] 21590 } 21591 split(mac1, mac2, "(") #) 21592 macro = mac2[1] 21593 prefix = substr(line, 1, index(line, defundef) - 1) 21594 if (D_is_set[macro]) { 21595 # Preserve the white space surrounding the "#". 21596 print prefix "define", macro P[macro] D[macro] 21597 next 21598 } else { 21599 # Replace #undef with comments. This is necessary, for example, 21600 # in the case of _POSIX_SOURCE, which is predefined and required 21601 # on some systems where configure will not decide to define it. 21602 if (defundef == "undef") { 21603 print "/*", prefix defundef, macro, "*/" 21604 next 21605 } 21606 } 21607} 21608{ print } 21609_ACAWK 21610_ACEOF 21611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21612 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21613fi # test -n "$CONFIG_HEADERS" 21614 21615 21616eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21617shift 21618for ac_tag 21619do 21620 case $ac_tag in 21621 :[FHLC]) ac_mode=$ac_tag; continue;; 21622 esac 21623 case $ac_mode$ac_tag in 21624 :[FHL]*:*);; 21625 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21626 :[FH]-) ac_tag=-:-;; 21627 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21628 esac 21629 ac_save_IFS=$IFS 21630 IFS=: 21631 set x $ac_tag 21632 IFS=$ac_save_IFS 21633 shift 21634 ac_file=$1 21635 shift 21636 21637 case $ac_mode in 21638 :L) ac_source=$1;; 21639 :[FH]) 21640 ac_file_inputs= 21641 for ac_f 21642 do 21643 case $ac_f in 21644 -) ac_f="$ac_tmp/stdin";; 21645 *) # Look for the file first in the build tree, then in the source tree 21646 # (if the path is not absolute). The absolute path cannot be DOS-style, 21647 # because $ac_f cannot contain `:'. 21648 test -f "$ac_f" || 21649 case $ac_f in 21650 [\\/$]*) false;; 21651 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21652 esac || 21653 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21654 esac 21655 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21656 as_fn_append ac_file_inputs " '$ac_f'" 21657 done 21658 21659 # Let's still pretend it is `configure' which instantiates (i.e., don't 21660 # use $as_me), people would be surprised to read: 21661 # /* config.h. Generated by config.status. */ 21662 configure_input='Generated from '` 21663 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21664 `' by configure.' 21665 if test x"$ac_file" != x-; then 21666 configure_input="$ac_file. $configure_input" 21667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21668$as_echo "$as_me: creating $ac_file" >&6;} 21669 fi 21670 # Neutralize special characters interpreted by sed in replacement strings. 21671 case $configure_input in #( 21672 *\&* | *\|* | *\\* ) 21673 ac_sed_conf_input=`$as_echo "$configure_input" | 21674 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21675 *) ac_sed_conf_input=$configure_input;; 21676 esac 21677 21678 case $ac_tag in 21679 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21680 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21681 esac 21682 ;; 21683 esac 21684 21685 ac_dir=`$as_dirname -- "$ac_file" || 21686$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21687 X"$ac_file" : 'X\(//\)[^/]' \| \ 21688 X"$ac_file" : 'X\(//\)$' \| \ 21689 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21690$as_echo X"$ac_file" | 21691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21692 s//\1/ 21693 q 21694 } 21695 /^X\(\/\/\)[^/].*/{ 21696 s//\1/ 21697 q 21698 } 21699 /^X\(\/\/\)$/{ 21700 s//\1/ 21701 q 21702 } 21703 /^X\(\/\).*/{ 21704 s//\1/ 21705 q 21706 } 21707 s/.*/./; q'` 21708 as_dir="$ac_dir"; as_fn_mkdir_p 21709 ac_builddir=. 21710 21711case "$ac_dir" in 21712.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21713*) 21714 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21715 # A ".." for each directory in $ac_dir_suffix. 21716 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21717 case $ac_top_builddir_sub in 21718 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21719 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21720 esac ;; 21721esac 21722ac_abs_top_builddir=$ac_pwd 21723ac_abs_builddir=$ac_pwd$ac_dir_suffix 21724# for backward compatibility: 21725ac_top_builddir=$ac_top_build_prefix 21726 21727case $srcdir in 21728 .) # We are building in place. 21729 ac_srcdir=. 21730 ac_top_srcdir=$ac_top_builddir_sub 21731 ac_abs_top_srcdir=$ac_pwd ;; 21732 [\\/]* | ?:[\\/]* ) # Absolute name. 21733 ac_srcdir=$srcdir$ac_dir_suffix; 21734 ac_top_srcdir=$srcdir 21735 ac_abs_top_srcdir=$srcdir ;; 21736 *) # Relative name. 21737 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21738 ac_top_srcdir=$ac_top_build_prefix$srcdir 21739 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21740esac 21741ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21742 21743 21744 case $ac_mode in 21745 :F) 21746 # 21747 # CONFIG_FILE 21748 # 21749 21750 case $INSTALL in 21751 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21752 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21753 esac 21754 ac_MKDIR_P=$MKDIR_P 21755 case $MKDIR_P in 21756 [\\/$]* | ?:[\\/]* ) ;; 21757 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21758 esac 21759_ACEOF 21760 21761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21762# If the template does not know about datarootdir, expand it. 21763# FIXME: This hack should be removed a few years after 2.60. 21764ac_datarootdir_hack=; ac_datarootdir_seen= 21765ac_sed_dataroot=' 21766/datarootdir/ { 21767 p 21768 q 21769} 21770/@datadir@/p 21771/@docdir@/p 21772/@infodir@/p 21773/@localedir@/p 21774/@mandir@/p' 21775case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21776*datarootdir*) ac_datarootdir_seen=yes;; 21777*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21779$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21780_ACEOF 21781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21782 ac_datarootdir_hack=' 21783 s&@datadir@&$datadir&g 21784 s&@docdir@&$docdir&g 21785 s&@infodir@&$infodir&g 21786 s&@localedir@&$localedir&g 21787 s&@mandir@&$mandir&g 21788 s&\\\${datarootdir}&$datarootdir&g' ;; 21789esac 21790_ACEOF 21791 21792# Neutralize VPATH when `$srcdir' = `.'. 21793# Shell code in configure.ac might set extrasub. 21794# FIXME: do we really want to maintain this feature? 21795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21796ac_sed_extra="$ac_vpsub 21797$extrasub 21798_ACEOF 21799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21800:t 21801/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21802s|@configure_input@|$ac_sed_conf_input|;t t 21803s&@top_builddir@&$ac_top_builddir_sub&;t t 21804s&@top_build_prefix@&$ac_top_build_prefix&;t t 21805s&@srcdir@&$ac_srcdir&;t t 21806s&@abs_srcdir@&$ac_abs_srcdir&;t t 21807s&@top_srcdir@&$ac_top_srcdir&;t t 21808s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21809s&@builddir@&$ac_builddir&;t t 21810s&@abs_builddir@&$ac_abs_builddir&;t t 21811s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21812s&@INSTALL@&$ac_INSTALL&;t t 21813s&@MKDIR_P@&$ac_MKDIR_P&;t t 21814$ac_datarootdir_hack 21815" 21816eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21817 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21818 21819test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21820 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21821 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21822 "$ac_tmp/out"`; test -z "$ac_out"; } && 21823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21824which seems to be undefined. Please make sure it is defined" >&5 21825$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21826which seems to be undefined. Please make sure it is defined" >&2;} 21827 21828 rm -f "$ac_tmp/stdin" 21829 case $ac_file in 21830 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21831 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21832 esac \ 21833 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21834 ;; 21835 :H) 21836 # 21837 # CONFIG_HEADER 21838 # 21839 if test x"$ac_file" != x-; then 21840 { 21841 $as_echo "/* $configure_input */" \ 21842 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21843 } >"$ac_tmp/config.h" \ 21844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21845 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21846 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21847$as_echo "$as_me: $ac_file is unchanged" >&6;} 21848 else 21849 rm -f "$ac_file" 21850 mv "$ac_tmp/config.h" "$ac_file" \ 21851 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21852 fi 21853 else 21854 $as_echo "/* $configure_input */" \ 21855 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21856 || as_fn_error $? "could not create -" "$LINENO" 5 21857 fi 21858# Compute "$ac_file"'s index in $config_headers. 21859_am_arg="$ac_file" 21860_am_stamp_count=1 21861for _am_header in $config_headers :; do 21862 case $_am_header in 21863 $_am_arg | $_am_arg:* ) 21864 break ;; 21865 * ) 21866 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21867 esac 21868done 21869echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21870$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21871 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21872 X"$_am_arg" : 'X\(//\)$' \| \ 21873 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21874$as_echo X"$_am_arg" | 21875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21876 s//\1/ 21877 q 21878 } 21879 /^X\(\/\/\)[^/].*/{ 21880 s//\1/ 21881 q 21882 } 21883 /^X\(\/\/\)$/{ 21884 s//\1/ 21885 q 21886 } 21887 /^X\(\/\).*/{ 21888 s//\1/ 21889 q 21890 } 21891 s/.*/./; q'`/stamp-h$_am_stamp_count 21892 ;; 21893 21894 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21895$as_echo "$as_me: executing $ac_file commands" >&6;} 21896 ;; 21897 esac 21898 21899 21900 case $ac_file$ac_mode in 21901 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21902 # Older Autoconf quotes --file arguments for eval, but not when files 21903 # are listed without --file. Let's play safe and only enable the eval 21904 # if we detect the quoting. 21905 # TODO: see whether this extra hack can be removed once we start 21906 # requiring Autoconf 2.70 or later. 21907 case $CONFIG_FILES in #( 21908 *\'*) : 21909 eval set x "$CONFIG_FILES" ;; #( 21910 *) : 21911 set x $CONFIG_FILES ;; #( 21912 *) : 21913 ;; 21914esac 21915 shift 21916 # Used to flag and report bootstrapping failures. 21917 am_rc=0 21918 for am_mf 21919 do 21920 # Strip MF so we end up with the name of the file. 21921 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 21922 # Check whether this is an Automake generated Makefile which includes 21923 # dependency-tracking related rules and includes. 21924 # Grep'ing the whole file directly is not great: AIX grep has a line 21925 # limit of 2048, but all sed's we know have understand at least 4000. 21926 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21927 || continue 21928 am_dirpart=`$as_dirname -- "$am_mf" || 21929$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21930 X"$am_mf" : 'X\(//\)[^/]' \| \ 21931 X"$am_mf" : 'X\(//\)$' \| \ 21932 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21933$as_echo X"$am_mf" | 21934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21935 s//\1/ 21936 q 21937 } 21938 /^X\(\/\/\)[^/].*/{ 21939 s//\1/ 21940 q 21941 } 21942 /^X\(\/\/\)$/{ 21943 s//\1/ 21944 q 21945 } 21946 /^X\(\/\).*/{ 21947 s//\1/ 21948 q 21949 } 21950 s/.*/./; q'` 21951 am_filepart=`$as_basename -- "$am_mf" || 21952$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21953 X"$am_mf" : 'X\(//\)$' \| \ 21954 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21955$as_echo X/"$am_mf" | 21956 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21957 s//\1/ 21958 q 21959 } 21960 /^X\/\(\/\/\)$/{ 21961 s//\1/ 21962 q 21963 } 21964 /^X\/\(\/\).*/{ 21965 s//\1/ 21966 q 21967 } 21968 s/.*/./; q'` 21969 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21970 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21971 | $MAKE -f - am--depfiles" >&5 21972 (cd "$am_dirpart" \ 21973 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21974 | $MAKE -f - am--depfiles) >&5 2>&5 21975 ac_status=$? 21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21977 (exit $ac_status); } || am_rc=$? 21978 done 21979 if test $am_rc -ne 0; then 21980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21982as_fn_error $? "Something went wrong bootstrapping makefile fragments 21983 for automatic dependency tracking. If GNU make was not used, consider 21984 re-running the configure script with MAKE=\"gmake\" (or whatever is 21985 necessary). You can also try re-running configure with the 21986 '--disable-dependency-tracking' option to at least be able to build 21987 the package (albeit without support for automatic dependency tracking). 21988See \`config.log' for more details" "$LINENO" 5; } 21989 fi 21990 { am_dirpart=; unset am_dirpart;} 21991 { am_filepart=; unset am_filepart;} 21992 { am_mf=; unset am_mf;} 21993 { am_rc=; unset am_rc;} 21994 rm -f conftest-deps.mk 21995} 21996 ;; 21997 "libtool":C) 21998 21999 # See if we are running on zsh, and set the options that allow our 22000 # commands through without removal of \ escapes. 22001 if test -n "${ZSH_VERSION+set}"; then 22002 setopt NO_GLOB_SUBST 22003 fi 22004 22005 cfgfile=${ofile}T 22006 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22007 $RM "$cfgfile" 22008 22009 cat <<_LT_EOF >> "$cfgfile" 22010#! $SHELL 22011# Generated automatically by $as_me ($PACKAGE) $VERSION 22012# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22013# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22014 22015# Provide generalized library-building support services. 22016# Written by Gordon Matzigkeit, 1996 22017 22018# Copyright (C) 2014 Free Software Foundation, Inc. 22019# This is free software; see the source for copying conditions. There is NO 22020# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22021 22022# GNU Libtool is free software; you can redistribute it and/or modify 22023# it under the terms of the GNU General Public License as published by 22024# the Free Software Foundation; either version 2 of of the License, or 22025# (at your option) any later version. 22026# 22027# As a special exception to the GNU General Public License, if you 22028# distribute this file as part of a program or library that is built 22029# using GNU Libtool, you may include this file under the same 22030# distribution terms that you use for the rest of that program. 22031# 22032# GNU Libtool is distributed in the hope that it will be useful, but 22033# WITHOUT ANY WARRANTY; without even the implied warranty of 22034# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22035# GNU General Public License for more details. 22036# 22037# You should have received a copy of the GNU General Public License 22038# along with this program. If not, see <http://www.gnu.org/licenses/>. 22039 22040 22041# The names of the tagged configurations supported by this script. 22042available_tags='' 22043 22044# Configured defaults for sys_lib_dlsearch_path munging. 22045: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22046 22047# ### BEGIN LIBTOOL CONFIG 22048 22049# Which release of libtool.m4 was used? 22050macro_version=$macro_version 22051macro_revision=$macro_revision 22052 22053# Whether or not to build shared libraries. 22054build_libtool_libs=$enable_shared 22055 22056# Whether or not to build static libraries. 22057build_old_libs=$enable_static 22058 22059# What type of objects to build. 22060pic_mode=$pic_mode 22061 22062# Whether or not to optimize for fast installation. 22063fast_install=$enable_fast_install 22064 22065# Shared archive member basename,for filename based shared library versioning on AIX. 22066shared_archive_member_spec=$shared_archive_member_spec 22067 22068# Shell to use when invoking shell scripts. 22069SHELL=$lt_SHELL 22070 22071# An echo program that protects backslashes. 22072ECHO=$lt_ECHO 22073 22074# The PATH separator for the build system. 22075PATH_SEPARATOR=$lt_PATH_SEPARATOR 22076 22077# The host system. 22078host_alias=$host_alias 22079host=$host 22080host_os=$host_os 22081 22082# The build system. 22083build_alias=$build_alias 22084build=$build 22085build_os=$build_os 22086 22087# A sed program that does not truncate output. 22088SED=$lt_SED 22089 22090# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22091Xsed="\$SED -e 1s/^X//" 22092 22093# A grep program that handles long lines. 22094GREP=$lt_GREP 22095 22096# An ERE matcher. 22097EGREP=$lt_EGREP 22098 22099# A literal string matcher. 22100FGREP=$lt_FGREP 22101 22102# A BSD- or MS-compatible name lister. 22103NM=$lt_NM 22104 22105# Whether we need soft or hard links. 22106LN_S=$lt_LN_S 22107 22108# What is the maximum length of a command? 22109max_cmd_len=$max_cmd_len 22110 22111# Object file suffix (normally "o"). 22112objext=$ac_objext 22113 22114# Executable file suffix (normally ""). 22115exeext=$exeext 22116 22117# whether the shell understands "unset". 22118lt_unset=$lt_unset 22119 22120# turn spaces into newlines. 22121SP2NL=$lt_lt_SP2NL 22122 22123# turn newlines into spaces. 22124NL2SP=$lt_lt_NL2SP 22125 22126# convert \$build file names to \$host format. 22127to_host_file_cmd=$lt_cv_to_host_file_cmd 22128 22129# convert \$build files to toolchain format. 22130to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22131 22132# An object symbol dumper. 22133OBJDUMP=$lt_OBJDUMP 22134 22135# Method to check whether dependent libraries are shared objects. 22136deplibs_check_method=$lt_deplibs_check_method 22137 22138# Command to use when deplibs_check_method = "file_magic". 22139file_magic_cmd=$lt_file_magic_cmd 22140 22141# How to find potential files when deplibs_check_method = "file_magic". 22142file_magic_glob=$lt_file_magic_glob 22143 22144# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22145want_nocaseglob=$lt_want_nocaseglob 22146 22147# DLL creation program. 22148DLLTOOL=$lt_DLLTOOL 22149 22150# Command to associate shared and link libraries. 22151sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22152 22153# The archiver. 22154AR=$lt_AR 22155 22156# Flags to create an archive. 22157AR_FLAGS=$lt_AR_FLAGS 22158 22159# How to feed a file listing to the archiver. 22160archiver_list_spec=$lt_archiver_list_spec 22161 22162# A symbol stripping program. 22163STRIP=$lt_STRIP 22164 22165# Commands used to install an old-style archive. 22166RANLIB=$lt_RANLIB 22167old_postinstall_cmds=$lt_old_postinstall_cmds 22168old_postuninstall_cmds=$lt_old_postuninstall_cmds 22169 22170# Whether to use a lock for old archive extraction. 22171lock_old_archive_extraction=$lock_old_archive_extraction 22172 22173# A C compiler. 22174LTCC=$lt_CC 22175 22176# LTCC compiler flags. 22177LTCFLAGS=$lt_CFLAGS 22178 22179# Take the output of nm and produce a listing of raw symbols and C names. 22180global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22181 22182# Transform the output of nm in a proper C declaration. 22183global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22184 22185# Transform the output of nm into a list of symbols to manually relocate. 22186global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22187 22188# Transform the output of nm in a C name address pair. 22189global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22190 22191# Transform the output of nm in a C name address pair when lib prefix is needed. 22192global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22193 22194# The name lister interface. 22195nm_interface=$lt_lt_cv_nm_interface 22196 22197# Specify filename containing input files for \$NM. 22198nm_file_list_spec=$lt_nm_file_list_spec 22199 22200# The root where to search for dependent libraries,and where our libraries should be installed. 22201lt_sysroot=$lt_sysroot 22202 22203# Command to truncate a binary pipe. 22204lt_truncate_bin=$lt_lt_cv_truncate_bin 22205 22206# The name of the directory that contains temporary libtool files. 22207objdir=$objdir 22208 22209# Used to examine libraries when file_magic_cmd begins with "file". 22210MAGIC_CMD=$MAGIC_CMD 22211 22212# Must we lock files when doing compilation? 22213need_locks=$lt_need_locks 22214 22215# Manifest tool. 22216MANIFEST_TOOL=$lt_MANIFEST_TOOL 22217 22218# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22219DSYMUTIL=$lt_DSYMUTIL 22220 22221# Tool to change global to local symbols on Mac OS X. 22222NMEDIT=$lt_NMEDIT 22223 22224# Tool to manipulate fat objects and archives on Mac OS X. 22225LIPO=$lt_LIPO 22226 22227# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22228OTOOL=$lt_OTOOL 22229 22230# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22231OTOOL64=$lt_OTOOL64 22232 22233# Old archive suffix (normally "a"). 22234libext=$libext 22235 22236# Shared library suffix (normally ".so"). 22237shrext_cmds=$lt_shrext_cmds 22238 22239# The commands to extract the exported symbol list from a shared archive. 22240extract_expsyms_cmds=$lt_extract_expsyms_cmds 22241 22242# Variables whose values should be saved in libtool wrapper scripts and 22243# restored at link time. 22244variables_saved_for_relink=$lt_variables_saved_for_relink 22245 22246# Do we need the "lib" prefix for modules? 22247need_lib_prefix=$need_lib_prefix 22248 22249# Do we need a version for libraries? 22250need_version=$need_version 22251 22252# Library versioning type. 22253version_type=$version_type 22254 22255# Shared library runtime path variable. 22256runpath_var=$runpath_var 22257 22258# Shared library path variable. 22259shlibpath_var=$shlibpath_var 22260 22261# Is shlibpath searched before the hard-coded library search path? 22262shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22263 22264# Format of library name prefix. 22265libname_spec=$lt_libname_spec 22266 22267# List of archive names. First name is the real one, the rest are links. 22268# The last name is the one that the linker finds with -lNAME 22269library_names_spec=$lt_library_names_spec 22270 22271# The coded name of the library, if different from the real name. 22272soname_spec=$lt_soname_spec 22273 22274# Permission mode override for installation of shared libraries. 22275install_override_mode=$lt_install_override_mode 22276 22277# Command to use after installation of a shared archive. 22278postinstall_cmds=$lt_postinstall_cmds 22279 22280# Command to use after uninstallation of a shared archive. 22281postuninstall_cmds=$lt_postuninstall_cmds 22282 22283# Commands used to finish a libtool library installation in a directory. 22284finish_cmds=$lt_finish_cmds 22285 22286# As "finish_cmds", except a single script fragment to be evaled but 22287# not shown. 22288finish_eval=$lt_finish_eval 22289 22290# Whether we should hardcode library paths into libraries. 22291hardcode_into_libs=$hardcode_into_libs 22292 22293# Compile-time system search path for libraries. 22294sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22295 22296# Detected run-time system search path for libraries. 22297sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22298 22299# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22300configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22301 22302# Whether dlopen is supported. 22303dlopen_support=$enable_dlopen 22304 22305# Whether dlopen of programs is supported. 22306dlopen_self=$enable_dlopen_self 22307 22308# Whether dlopen of statically linked programs is supported. 22309dlopen_self_static=$enable_dlopen_self_static 22310 22311# Commands to strip libraries. 22312old_striplib=$lt_old_striplib 22313striplib=$lt_striplib 22314 22315 22316# The linker used to build libraries. 22317LD=$lt_LD 22318 22319# How to create reloadable object files. 22320reload_flag=$lt_reload_flag 22321reload_cmds=$lt_reload_cmds 22322 22323# Commands used to build an old-style archive. 22324old_archive_cmds=$lt_old_archive_cmds 22325 22326# A language specific compiler. 22327CC=$lt_compiler 22328 22329# Is the compiler the GNU compiler? 22330with_gcc=$GCC 22331 22332# Compiler flag to turn off builtin functions. 22333no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22334 22335# Additional compiler flags for building library objects. 22336pic_flag=$lt_lt_prog_compiler_pic 22337 22338# How to pass a linker flag through the compiler. 22339wl=$lt_lt_prog_compiler_wl 22340 22341# Compiler flag to prevent dynamic linking. 22342link_static_flag=$lt_lt_prog_compiler_static 22343 22344# Does compiler simultaneously support -c and -o options? 22345compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22346 22347# Whether or not to add -lc for building shared libraries. 22348build_libtool_need_lc=$archive_cmds_need_lc 22349 22350# Whether or not to disallow shared libs when runtime libs are static. 22351allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22352 22353# Compiler flag to allow reflexive dlopens. 22354export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22355 22356# Compiler flag to generate shared objects directly from archives. 22357whole_archive_flag_spec=$lt_whole_archive_flag_spec 22358 22359# Whether the compiler copes with passing no objects directly. 22360compiler_needs_object=$lt_compiler_needs_object 22361 22362# Create an old-style archive from a shared archive. 22363old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22364 22365# Create a temporary old-style archive to link instead of a shared archive. 22366old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22367 22368# Commands used to build a shared archive. 22369archive_cmds=$lt_archive_cmds 22370archive_expsym_cmds=$lt_archive_expsym_cmds 22371 22372# Commands used to build a loadable module if different from building 22373# a shared archive. 22374module_cmds=$lt_module_cmds 22375module_expsym_cmds=$lt_module_expsym_cmds 22376 22377# Whether we are building with GNU ld or not. 22378with_gnu_ld=$lt_with_gnu_ld 22379 22380# Flag that allows shared libraries with undefined symbols to be built. 22381allow_undefined_flag=$lt_allow_undefined_flag 22382 22383# Flag that enforces no undefined symbols. 22384no_undefined_flag=$lt_no_undefined_flag 22385 22386# Flag to hardcode \$libdir into a binary during linking. 22387# This must work even if \$libdir does not exist 22388hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22389 22390# Whether we need a single "-rpath" flag with a separated argument. 22391hardcode_libdir_separator=$lt_hardcode_libdir_separator 22392 22393# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22394# DIR into the resulting binary. 22395hardcode_direct=$hardcode_direct 22396 22397# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22398# DIR into the resulting binary and the resulting library dependency is 22399# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22400# library is relocated. 22401hardcode_direct_absolute=$hardcode_direct_absolute 22402 22403# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22404# into the resulting binary. 22405hardcode_minus_L=$hardcode_minus_L 22406 22407# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22408# into the resulting binary. 22409hardcode_shlibpath_var=$hardcode_shlibpath_var 22410 22411# Set to "yes" if building a shared library automatically hardcodes DIR 22412# into the library and all subsequent libraries and executables linked 22413# against it. 22414hardcode_automatic=$hardcode_automatic 22415 22416# Set to yes if linker adds runtime paths of dependent libraries 22417# to runtime path list. 22418inherit_rpath=$inherit_rpath 22419 22420# Whether libtool must link a program against all its dependency libraries. 22421link_all_deplibs=$link_all_deplibs 22422 22423# Set to "yes" if exported symbols are required. 22424always_export_symbols=$always_export_symbols 22425 22426# The commands to list exported symbols. 22427export_symbols_cmds=$lt_export_symbols_cmds 22428 22429# Symbols that should not be listed in the preloaded symbols. 22430exclude_expsyms=$lt_exclude_expsyms 22431 22432# Symbols that must always be exported. 22433include_expsyms=$lt_include_expsyms 22434 22435# Commands necessary for linking programs (against libraries) with templates. 22436prelink_cmds=$lt_prelink_cmds 22437 22438# Commands necessary for finishing linking programs. 22439postlink_cmds=$lt_postlink_cmds 22440 22441# Specify filename containing input files. 22442file_list_spec=$lt_file_list_spec 22443 22444# How to hardcode a shared library path into an executable. 22445hardcode_action=$hardcode_action 22446 22447# ### END LIBTOOL CONFIG 22448 22449_LT_EOF 22450 22451 cat <<'_LT_EOF' >> "$cfgfile" 22452 22453# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22454 22455# func_munge_path_list VARIABLE PATH 22456# ----------------------------------- 22457# VARIABLE is name of variable containing _space_ separated list of 22458# directories to be munged by the contents of PATH, which is string 22459# having a format: 22460# "DIR[:DIR]:" 22461# string "DIR[ DIR]" will be prepended to VARIABLE 22462# ":DIR[:DIR]" 22463# string "DIR[ DIR]" will be appended to VARIABLE 22464# "DIRP[:DIRP]::[DIRA:]DIRA" 22465# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22466# "DIRA[ DIRA]" will be appended to VARIABLE 22467# "DIR[:DIR]" 22468# VARIABLE will be replaced by "DIR[ DIR]" 22469func_munge_path_list () 22470{ 22471 case x$2 in 22472 x) 22473 ;; 22474 *:) 22475 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22476 ;; 22477 x:*) 22478 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22479 ;; 22480 *::*) 22481 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22482 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22483 ;; 22484 *) 22485 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22486 ;; 22487 esac 22488} 22489 22490 22491# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22492func_cc_basename () 22493{ 22494 for cc_temp in $*""; do 22495 case $cc_temp in 22496 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22497 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22498 \-*) ;; 22499 *) break;; 22500 esac 22501 done 22502 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22503} 22504 22505 22506# ### END FUNCTIONS SHARED WITH CONFIGURE 22507 22508_LT_EOF 22509 22510 case $host_os in 22511 aix3*) 22512 cat <<\_LT_EOF >> "$cfgfile" 22513# AIX sometimes has problems with the GCC collect2 program. For some 22514# reason, if we set the COLLECT_NAMES environment variable, the problems 22515# vanish in a puff of smoke. 22516if test set != "${COLLECT_NAMES+set}"; then 22517 COLLECT_NAMES= 22518 export COLLECT_NAMES 22519fi 22520_LT_EOF 22521 ;; 22522 esac 22523 22524 22525ltmain=$ac_aux_dir/ltmain.sh 22526 22527 22528 # We use sed instead of cat because bash on DJGPP gets confused if 22529 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22530 # text mode, it properly converts lines to CR/LF. This bash problem 22531 # is reportedly fixed, but why not run on old versions too? 22532 sed '$q' "$ltmain" >> "$cfgfile" \ 22533 || (rm -f "$cfgfile"; exit 1) 22534 22535 mv -f "$cfgfile" "$ofile" || 22536 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22537 chmod +x "$ofile" 22538 22539 ;; 22540 "po-directories":C) 22541 for ac_file in $CONFIG_FILES; do 22542 # Support "outfile[:infile[:infile...]]" 22543 case "$ac_file" in 22544 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 22545 esac 22546 # PO directories have a Makefile.in generated from Makefile.in.in. 22547 case "$ac_file" in */Makefile.in) 22548 # Adjust a relative srcdir. 22549 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 22550 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 22551 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 22552 # In autoconf-2.13 it is called $ac_given_srcdir. 22553 # In autoconf-2.50 it is called $srcdir. 22554 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 22555 case "$ac_given_srcdir" in 22556 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 22557 /*) top_srcdir="$ac_given_srcdir" ;; 22558 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 22559 esac 22560 # Treat a directory as a PO directory if and only if it has a 22561 # POTFILES.in file. This allows packages to have multiple PO 22562 # directories under different names or in different locations. 22563 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 22564 rm -f "$ac_dir/POTFILES" 22565 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 22566 gt_tab=`printf '\t'` 22567 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 22568 POMAKEFILEDEPS="POTFILES.in" 22569 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 22570 # on $ac_dir but don't depend on user-specified configuration 22571 # parameters. 22572 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 22573 # The LINGUAS file contains the set of available languages. 22574 if test -n "$OBSOLETE_ALL_LINGUAS"; then 22575 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 22576 fi 22577 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 22578 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 22579 else 22580 # The set of available languages was given in configure.in. 22581 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS 22582 fi 22583 # Compute POFILES 22584 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 22585 # Compute UPDATEPOFILES 22586 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 22587 # Compute DUMMYPOFILES 22588 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 22589 # Compute GMOFILES 22590 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 22591 case "$ac_given_srcdir" in 22592 .) srcdirpre= ;; 22593 *) srcdirpre='$(srcdir)/' ;; 22594 esac 22595 POFILES= 22596 UPDATEPOFILES= 22597 DUMMYPOFILES= 22598 GMOFILES= 22599 for lang in $ALL_LINGUAS; do 22600 POFILES="$POFILES $srcdirpre$lang.po" 22601 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 22602 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 22603 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 22604 done 22605 # CATALOGS depends on both $ac_dir and the user's LINGUAS 22606 # environment variable. 22607 INST_LINGUAS= 22608 if test -n "$ALL_LINGUAS"; then 22609 for presentlang in $ALL_LINGUAS; do 22610 useit=no 22611 if test "%UNSET%" != "$LINGUAS"; then 22612 desiredlanguages="$LINGUAS" 22613 else 22614 desiredlanguages="$ALL_LINGUAS" 22615 fi 22616 for desiredlang in $desiredlanguages; do 22617 # Use the presentlang catalog if desiredlang is 22618 # a. equal to presentlang, or 22619 # b. a variant of presentlang (because in this case, 22620 # presentlang can be used as a fallback for messages 22621 # which are not translated in the desiredlang catalog). 22622 case "$desiredlang" in 22623 "$presentlang"*) useit=yes;; 22624 esac 22625 done 22626 if test $useit = yes; then 22627 INST_LINGUAS="$INST_LINGUAS $presentlang" 22628 fi 22629 done 22630 fi 22631 CATALOGS= 22632 if test -n "$INST_LINGUAS"; then 22633 for lang in $INST_LINGUAS; do 22634 CATALOGS="$CATALOGS $lang.gmo" 22635 done 22636 fi 22637 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 22638 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 22639 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 22640 if test -f "$f"; then 22641 case "$f" in 22642 *.orig | *.bak | *~) ;; 22643 *) cat "$f" >> "$ac_dir/Makefile" ;; 22644 esac 22645 fi 22646 done 22647 fi 22648 ;; 22649 esac 22650 done ;; 22651 "src/goa/goaconfig.h":C) 22652 outfile=src/goa/goaconfig.h-tmp 22653 cat > $outfile <<\_______EOF 22654/* goaconfig.h 22655 * 22656 * This is a generated file. Please modify 'configure.ac' 22657 */ 22658 22659#ifndef __GOA_CONFIG_H__ 22660#define __GOA_CONFIG_H__ 22661 22662G_BEGIN_DECLS 22663 22664_______EOF 22665 echo "#define GOA_MAJOR_VERSION $GOA_MAJOR_VERSION" >> $outfile 22666 echo "#define GOA_MINOR_VERSION $GOA_MINOR_VERSION" >> $outfile 22667 echo "#define GOA_MICRO_VERSION $GOA_MICRO_VERSION" >> $outfile 22668 cat >> $outfile <<\_______EOF 22669 22670G_END_DECLS 22671 22672#endif /* __GOA_CONFIG_H__ */ 22673_______EOF 22674 22675 22676 if cmp -s $outfile src/goa/goaconfig.h; then 22677 { $as_echo "$as_me:${as_lineno-$LINENO}: src/goa/goaconfig.h is unchanged" >&5 22678$as_echo "$as_me: src/goa/goaconfig.h is unchanged" >&6;} 22679 rm -f $outfile 22680 else 22681 mv $outfile src/goa/goaconfig.h 22682 fi 22683 ;; 22684 22685 esac 22686done # for ac_tag 22687 22688 22689as_fn_exit 0 22690_ACEOF 22691ac_clean_files=$ac_clean_files_save 22692 22693test $ac_write_fail = 0 || 22694 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22695 22696 22697# configure is writing to config.log, and then calls config.status. 22698# config.status does its own redirection, appending to config.log. 22699# Unfortunately, on DOS this fails, as config.log is still kept open 22700# by configure, so config.status won't be able to write to it; its 22701# output is simply discarded. So we exec the FD to /dev/null, 22702# effectively closing config.log, so it can be properly (re)opened and 22703# appended to by config.status. When coming back to configure, we 22704# need to make the FD available again. 22705if test "$no_create" != yes; then 22706 ac_cs_success=: 22707 ac_config_status_args= 22708 test "$silent" = yes && 22709 ac_config_status_args="$ac_config_status_args --quiet" 22710 exec 5>/dev/null 22711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22712 exec 5>>config.log 22713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22714 # would make configure fail if this is the last instruction. 22715 $ac_cs_success || as_fn_exit 1 22716fi 22717if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22719$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22720fi 22721 22722 22723echo " 22724 gnome-online-accounts $VERSION 22725 =============================== 22726 22727 prefix: ${prefix} 22728 libdir: ${libdir} 22729 libexecdir: ${libexecdir} 22730 bindir: ${bindir} 22731 sbindir: ${sbindir} 22732 datadir: ${datadir} 22733 sysconfdir: ${sysconfdir} 22734 localstatedir: ${localstatedir} 22735 22736 compiler: ${CC} 22737 cflags: ${CFLAGS} 22738 cppflags: ${CPPFLAGS} 22739 22740 backend: ${enable_backend} 22741 inspector: ${enable_inspector} 22742 introspection: ${found_introspection} 22743 template file: ${with_template_file} 22744 22745 Fedora Account System provider: ${enable_fedora} 22746 Flickr provider: ${enable_flickr} (OAuth 1.0, key:${with_flickr_consumer_key} secret:${with_flickr_consumer_secret}) 22747 Foursquare provider: ${enable_foursquare} (id:${with_foursquare_client_id}) 22748 Google provider: ${enable_google} (OAuth 2.0, id:${with_google_client_id} secret:${with_google_client_secret}) 22749 IMAP/SMTP provider: ${enable_imap_smtp} 22750 Media Server provider: ${enable_media_server} 22751 Microsoft Exchange provider: ${enable_exchange} 22752 ownCloud provider: ${enable_owncloud} 22753 Kerberos provider: ${enable_kerberos} 22754 Facebook provider: ${enable_facebook} (OAuth 2.0, id:${with_facebook_client_id}) 22755 Windows Live provider: ${enable_windows_live} (OAuth 2.0, id:${with_windows_live_client_id}) 22756 Last.fm provider: ${enable_lastfm} (id:${with_lastfm_client_id} secret:${with_lastfm_client_secret}) 22757 22758 Maintainer mode: ${USE_MAINTAINER_MODE} 22759 Building api docs: ${enable_gtk_doc} 22760" 22761