1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for aMule 2.3.3. 4# 5# Report bugs to <admin@amule.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and admin@amule.org 270$0: about your system, including any error possibly output 271$0: before this message. Then install a modern shell, or 272$0: manually run the script under such a shell if you do 273$0: have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297# as_fn_set_status STATUS 298# ----------------------- 299# Set $? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} # as_fn_set_status 304 305# as_fn_exit STATUS 306# ----------------- 307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} # as_fn_exit 314 315# as_fn_mkdir_p 316# ------------- 317# Create "$as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} # as_fn_mkdir_p 362 363# as_fn_executable_p FILE 364# ----------------------- 365# Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} # as_fn_executable_p 370# as_fn_append VAR VALUE 371# ---------------------- 372# Append the text in VALUE to the end of the definition contained in VAR. Take 373# advantage of any shell optimizations that allow amortized linear growth over 374# repeated appends, instead of the typical quadratic growth present in naive 375# implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388# as_fn_arith ARG... 389# ------------------ 390# Perform arithmetic evaluation on the ARGs, and store the result in the 391# global $as_val. Take advantage of shells that can avoid forks. The arguments 392# must be portable across $(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406# as_fn_error STATUS ERROR [LINENO LOG_FD] 407# ---------------------------------------- 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410# script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} # as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in #((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560test -n "$DJDIR" || exec 7<&0 </dev/null 561exec 6>&1 562 563# Name of the host. 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565# so uname gets run too. 566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568# 569# Initializations. 570# 571ac_default_prefix=/usr/local 572ac_clean_files= 573ac_config_libobj_dir=. 574LIBOBJS= 575cross_compiling=no 576subdirs= 577MFLAGS= 578MAKEFLAGS= 579 580# Identity of this package. 581PACKAGE_NAME='aMule' 582PACKAGE_TARNAME='amule' 583PACKAGE_VERSION='2.3.3' 584PACKAGE_STRING='aMule 2.3.3' 585PACKAGE_BUGREPORT='admin@amule.org' 586PACKAGE_URL='' 587 588ac_unique_file="src/amule.cpp" 589# Factoring default headers for most tests. 590ac_includes_default="\ 591#include <stdio.h> 592#ifdef HAVE_SYS_TYPES_H 593# include <sys/types.h> 594#endif 595#ifdef HAVE_SYS_STAT_H 596# include <sys/stat.h> 597#endif 598#ifdef STDC_HEADERS 599# include <stdlib.h> 600# include <stddef.h> 601#else 602# ifdef HAVE_STDLIB_H 603# include <stdlib.h> 604# endif 605#endif 606#ifdef HAVE_STRING_H 607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 608# include <memory.h> 609# endif 610# include <string.h> 611#endif 612#ifdef HAVE_STRINGS_H 613# include <strings.h> 614#endif 615#ifdef HAVE_INTTYPES_H 616# include <inttypes.h> 617#endif 618#ifdef HAVE_STDINT_H 619# include <stdint.h> 620#endif 621#ifdef HAVE_UNISTD_H 622# include <unistd.h> 623#endif" 624 625ac_header_list= 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629COMPILE_LIB_EC_FALSE 630COMPILE_LIB_EC_TRUE 631COMPILE_LIB_COMMON_FALSE 632COMPILE_LIB_COMMON_TRUE 633PLASMAMULE_FALSE 634PLASMAMULE_TRUE 635INSTALL_SKINS_FALSE 636INSTALL_SKINS_TRUE 637COMPILE_NLS_FALSE 638COMPILE_NLS_TRUE 639NEED_CORESERVICES_FALSE 640NEED_CORESERVICES_TRUE 641NEED_RC_FALSE 642NEED_RC_TRUE 643SYS_WIN32_FALSE 644SYS_WIN32_TRUE 645SVNDATE 646READLINE_LIBS 647DEBUGFLAG 648KDE_MIME_PATH 649KDE_ICON_PATH 650KDE_MODULE_PATH 651KDE_SERVICE_PATH 652KDE_APPLNK_PATH 653KDE_HEADER_DIR 654KDE4_CONFIG 655QT_GUI_LIBS 656QT_GUI_CXXFLAGS 657QT_CORE_LIBS 658QT_CORE_CXXFLAGS 659QT_DBUS_LDFLAGS 660QT_MOC 661BFD_LIBS 662BFD_CPPFLAGS 663INCINTL 664MONOLITHIC_MANPAGES 665ALCC_MANPAGES 666ALC_MANPAGES 667ED2K_MANPAGES 668WXCAS_MANPAGES 669CAS_MANPAGES 670AMULE_GUI_MANPAGES 671WEBSERVER_MANPAGES 672AMULECMD_MANPAGES 673AMULE_DAEMON_MANPAGES 674POSUB 675LTLIBINTL 676LIBINTL 677INTLLIBS 678INTL_LIBTOOL_SUFFIX_PREFIX 679GENCAT 680INSTOBJEXT 681DATADIRNAME 682INTLOBJS 683CATOBJEXT 684USE_INCLUDED_LIBINTL 685BUILD_INCLUDED_LIBINTL 686USE_NLS 687INTLBISON 688LTLIBICONV 689LIBICONV 690GLIBC21 691MSGMERGE 692XGETTEXT 693GMSGFMT 694MSGFMT 695MKINSTALLDIRS 696POW_LIB 697LIBOBJS 698ALLOCA 699BOOST_SYSTEM_LIBS 700BOOST_LDPATH 701BOOST_SYSTEM_LDPATH 702BOOST_SYSTEM_LDFLAGS 703BOOST_CPPFLAGS 704DISTCHECK_CONFIGURE_FLAGS 705BOOST_ROOT 706CRYPTOPP_LIBS 707CRYPTOPP_LDFLAGS 708CRYPTOPP_CPPFLAGS 709LIBUPNP_LIBS 710LIBUPNP_LDFLAGS 711LIBUPNP_CFLAGS 712LIBUPNP_CPPFLAGS 713RCFLAGS 714RC 715WXBASE_CPPFLAGS 716WXBASE_LIBS 717WX_PORT 718WX_SHARED 719WX_DEBUG 720WX_UNICODE 721WX_VERSION_MICRO 722WX_VERSION_MINOR 723WX_VERSION_MAJOR 724WX_RESCOMP 725WX_VERSION 726WX_LIBS_STATIC 727WX_LIBS 728WX_CXXFLAGS_ONLY 729WX_CFLAGS_ONLY 730WX_CXXFLAGS 731WX_CFLAGS 732WX_CPPFLAGS 733WX_CONFIG_PATH 734AMULEWEB_DEFS 735LIBPNG_LIBS 736LIBPNG_LDFLAGS 737LIBPNG_CFLAGS 738LIBPNG_CONFIG_PATH 739ZLIB_LIBS 740ZLIB_LDFLAGS 741ZLIB_CPPFLAGS 742CAS_DEFS 743GDLIB_LIBS 744GDLIB_LDFLAGS 745GDLIB_CFLAGS 746GDLIB_CONFIG_PATH 747PKG_CONFIG 748FILEVIEW_FALSE 749FILEVIEW_TRUE 750XAS_FALSE 751XAS_TRUE 752ALCC_FALSE 753ALCC_TRUE 754ALC_FALSE 755ALC_TRUE 756ED2K_FALSE 757ED2K_TRUE 758WXCAS_FALSE 759WXCAS_TRUE 760CAS_FALSE 761CAS_TRUE 762AMULE_GUI_FALSE 763AMULE_GUI_TRUE 764WEB_FALSE 765WEB_TRUE 766COMPILE_CMD_FALSE 767COMPILE_CMD_TRUE 768AMULE_DAEMON_FALSE 769AMULE_DAEMON_TRUE 770MONOLITHIC_FALSE 771MONOLITHIC_TRUE 772LD 773AR 774SED 775RANLIB 776EGREP 777GREP 778BUILD_LDFLAGS 779BUILD_CFLAGS 780BUILD_CPPFLAGS 781BUILD_EXEEXT 782ac_ct_BUILD_CC 783BUILD_CC 784CPP 785am__fastdepCC_FALSE 786am__fastdepCC_TRUE 787CCDEPMODE 788ac_ct_CC 789CFLAGS 790CC 791CXXCPP 792am__fastdepCXX_FALSE 793am__fastdepCXX_TRUE 794CXXDEPMODE 795am__nodep 796AMDEPBACKSLASH 797AMDEP_FALSE 798AMDEP_TRUE 799am__quote 800am__include 801DEPDIR 802OBJEXT 803EXEEXT 804ac_ct_CXX 805CPPFLAGS 806LDFLAGS 807CXXFLAGS 808CXX 809MULERCFLAGS 810MULELDFLAGS 811MULECXXFLAGS 812MULECFLAGS 813MULECPPFLAGS 814RESOLV_LIB 815host_os 816host_vendor 817host_cpu 818host 819build_os 820build_vendor 821build_cpu 822build 823MAINT 824MAINTAINER_MODE_FALSE 825MAINTAINER_MODE_TRUE 826AM_BACKSLASH 827AM_DEFAULT_VERBOSITY 828AM_DEFAULT_V 829AM_V 830am__untar 831am__tar 832AMTAR 833am__leading_dot 834SET_MAKE 835AWK 836mkdir_p 837MKDIR_P 838INSTALL_STRIP_PROGRAM 839STRIP 840install_sh 841MAKEINFO 842AUTOHEADER 843AUTOMAKE 844AUTOCONF 845ACLOCAL 846VERSION 847PACKAGE 848CYGPATH_W 849am__isrc 850INSTALL_DATA 851INSTALL_SCRIPT 852INSTALL_PROGRAM 853target_alias 854host_alias 855build_alias 856LIBS 857ECHO_T 858ECHO_N 859ECHO_C 860DEFS 861mandir 862localedir 863libdir 864psdir 865pdfdir 866dvidir 867htmldir 868infodir 869docdir 870oldincludedir 871includedir 872runstatedir 873localstatedir 874sharedstatedir 875sysconfdir 876datadir 877datarootdir 878libexecdir 879sbindir 880bindir 881program_transform_name 882prefix 883exec_prefix 884PACKAGE_URL 885PACKAGE_BUGREPORT 886PACKAGE_STRING 887PACKAGE_VERSION 888PACKAGE_TARNAME 889PACKAGE_NAME 890PATH_SEPARATOR 891SHELL 892GEOIP_LIBS 893GEOIP_LDFLAGS 894GEOIP_CPPFLAGS' 895ac_subst_files='' 896ac_user_opts=' 897enable_option_checking 898enable_silent_rules 899enable_maintainer_mode 900enable_dependency_tracking 901enable_monolithic 902enable_amule_daemon 903enable_amulecmd 904enable_webserver 905enable_amule_gui 906enable_cas 907enable_wxcas 908enable_ed2k 909enable_alc 910enable_alcc 911enable_xas 912enable_fileview 913enable_plasmamule 914enable_static 915with_kde4_config 916enable_kde_in_home 917with_moc 918with_gnu_malloc 919with_gdlib_prefix 920with_gdlib_config 921with_zlib 922with_libpng_prefix 923with_libpng_config 924enable_geoip 925with_geoip_headers 926with_geoip_lib 927with_geoip_static 928with_wxdir 929with_wx_config 930with_wx_prefix 931with_wx_exec_prefix 932with_toolkit 933with_wxshared 934with_wxdebug 935with_wxversion 936enable_upnp 937with_libupnp_prefix 938with_crypto_prefix 939enable_debug 940enable_profile 941enable_optimize 942with_boost 943enable_static_boost 944enable_mmap 945with_language 946with_gnu_ld 947enable_rpath 948with_libiconv_prefix 949enable_nls 950with_included_gettext 951with_libintl_prefix 952with_denoise_level 953enable_ccache 954with_ccache_prefix 955' 956 ac_precious_vars='build_alias 957host_alias 958target_alias 959CXX 960CXXFLAGS 961LDFLAGS 962LIBS 963CPPFLAGS 964CCC 965CXXCPP 966CC 967CFLAGS 968CPP 969PKG_CONFIG 970RC 971RCFLAGS 972BOOST_ROOT' 973 974 975# Initialize some variables set by options. 976ac_init_help= 977ac_init_version=false 978ac_unrecognized_opts= 979ac_unrecognized_sep= 980# The variables have the same names as the options, with 981# dashes changed to underlines. 982cache_file=/dev/null 983exec_prefix=NONE 984no_create= 985no_recursion= 986prefix=NONE 987program_prefix=NONE 988program_suffix=NONE 989program_transform_name=s,x,x, 990silent= 991site= 992srcdir= 993verbose= 994x_includes=NONE 995x_libraries=NONE 996 997# Installation directory options. 998# These are left unexpanded so users can "make install exec_prefix=/foo" 999# and all the variables that are supposed to be based on exec_prefix 1000# by default will actually change. 1001# Use braces instead of parens because sh, perl, etc. also accept them. 1002# (The list follows the same order as the GNU Coding Standards.) 1003bindir='${exec_prefix}/bin' 1004sbindir='${exec_prefix}/sbin' 1005libexecdir='${exec_prefix}/libexec' 1006datarootdir='${prefix}/share' 1007datadir='${datarootdir}' 1008sysconfdir='${prefix}/etc' 1009sharedstatedir='${prefix}/com' 1010localstatedir='${prefix}/var' 1011runstatedir='${localstatedir}/run' 1012includedir='${prefix}/include' 1013oldincludedir='/usr/include' 1014docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1015infodir='${datarootdir}/info' 1016htmldir='${docdir}' 1017dvidir='${docdir}' 1018pdfdir='${docdir}' 1019psdir='${docdir}' 1020libdir='${exec_prefix}/lib' 1021localedir='${datarootdir}/locale' 1022mandir='${datarootdir}/man' 1023 1024ac_prev= 1025ac_dashdash= 1026for ac_option 1027do 1028 # If the previous option needs an argument, assign it. 1029 if test -n "$ac_prev"; then 1030 eval $ac_prev=\$ac_option 1031 ac_prev= 1032 continue 1033 fi 1034 1035 case $ac_option in 1036 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1037 *=) ac_optarg= ;; 1038 *) ac_optarg=yes ;; 1039 esac 1040 1041 # Accept the important Cygnus configure options, so we can diagnose typos. 1042 1043 case $ac_dashdash$ac_option in 1044 --) 1045 ac_dashdash=yes ;; 1046 1047 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1048 ac_prev=bindir ;; 1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1050 bindir=$ac_optarg ;; 1051 1052 -build | --build | --buil | --bui | --bu) 1053 ac_prev=build_alias ;; 1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1055 build_alias=$ac_optarg ;; 1056 1057 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1059 ac_prev=cache_file ;; 1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1062 cache_file=$ac_optarg ;; 1063 1064 --config-cache | -C) 1065 cache_file=config.cache ;; 1066 1067 -datadir | --datadir | --datadi | --datad) 1068 ac_prev=datadir ;; 1069 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1070 datadir=$ac_optarg ;; 1071 1072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1073 | --dataroo | --dataro | --datar) 1074 ac_prev=datarootdir ;; 1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1077 datarootdir=$ac_optarg ;; 1078 1079 -disable-* | --disable-*) 1080 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1081 # Reject names that are not valid shell variable names. 1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1083 as_fn_error $? "invalid feature name: $ac_useropt" 1084 ac_useropt_orig=$ac_useropt 1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1086 case $ac_user_opts in 1087 *" 1088"enable_$ac_useropt" 1089"*) ;; 1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1091 ac_unrecognized_sep=', ';; 1092 esac 1093 eval enable_$ac_useropt=no ;; 1094 1095 -docdir | --docdir | --docdi | --doc | --do) 1096 ac_prev=docdir ;; 1097 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1098 docdir=$ac_optarg ;; 1099 1100 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1101 ac_prev=dvidir ;; 1102 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1103 dvidir=$ac_optarg ;; 1104 1105 -enable-* | --enable-*) 1106 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1107 # Reject names that are not valid shell variable names. 1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1109 as_fn_error $? "invalid feature name: $ac_useropt" 1110 ac_useropt_orig=$ac_useropt 1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1112 case $ac_user_opts in 1113 *" 1114"enable_$ac_useropt" 1115"*) ;; 1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1117 ac_unrecognized_sep=', ';; 1118 esac 1119 eval enable_$ac_useropt=\$ac_optarg ;; 1120 1121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1123 | --exec | --exe | --ex) 1124 ac_prev=exec_prefix ;; 1125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1127 | --exec=* | --exe=* | --ex=*) 1128 exec_prefix=$ac_optarg ;; 1129 1130 -gas | --gas | --ga | --g) 1131 # Obsolete; use --with-gas. 1132 with_gas=yes ;; 1133 1134 -help | --help | --hel | --he | -h) 1135 ac_init_help=long ;; 1136 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1137 ac_init_help=recursive ;; 1138 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1139 ac_init_help=short ;; 1140 1141 -host | --host | --hos | --ho) 1142 ac_prev=host_alias ;; 1143 -host=* | --host=* | --hos=* | --ho=*) 1144 host_alias=$ac_optarg ;; 1145 1146 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1147 ac_prev=htmldir ;; 1148 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1149 | --ht=*) 1150 htmldir=$ac_optarg ;; 1151 1152 -includedir | --includedir | --includedi | --included | --include \ 1153 | --includ | --inclu | --incl | --inc) 1154 ac_prev=includedir ;; 1155 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1156 | --includ=* | --inclu=* | --incl=* | --inc=*) 1157 includedir=$ac_optarg ;; 1158 1159 -infodir | --infodir | --infodi | --infod | --info | --inf) 1160 ac_prev=infodir ;; 1161 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1162 infodir=$ac_optarg ;; 1163 1164 -libdir | --libdir | --libdi | --libd) 1165 ac_prev=libdir ;; 1166 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1167 libdir=$ac_optarg ;; 1168 1169 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1170 | --libexe | --libex | --libe) 1171 ac_prev=libexecdir ;; 1172 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1173 | --libexe=* | --libex=* | --libe=*) 1174 libexecdir=$ac_optarg ;; 1175 1176 -localedir | --localedir | --localedi | --localed | --locale) 1177 ac_prev=localedir ;; 1178 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1179 localedir=$ac_optarg ;; 1180 1181 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1182 | --localstate | --localstat | --localsta | --localst | --locals) 1183 ac_prev=localstatedir ;; 1184 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1185 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1186 localstatedir=$ac_optarg ;; 1187 1188 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1189 ac_prev=mandir ;; 1190 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1191 mandir=$ac_optarg ;; 1192 1193 -nfp | --nfp | --nf) 1194 # Obsolete; use --without-fp. 1195 with_fp=no ;; 1196 1197 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1198 | --no-cr | --no-c | -n) 1199 no_create=yes ;; 1200 1201 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1202 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1203 no_recursion=yes ;; 1204 1205 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1206 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1207 | --oldin | --oldi | --old | --ol | --o) 1208 ac_prev=oldincludedir ;; 1209 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1210 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1211 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1212 oldincludedir=$ac_optarg ;; 1213 1214 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1215 ac_prev=prefix ;; 1216 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1217 prefix=$ac_optarg ;; 1218 1219 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1220 | --program-pre | --program-pr | --program-p) 1221 ac_prev=program_prefix ;; 1222 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1223 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1224 program_prefix=$ac_optarg ;; 1225 1226 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1227 | --program-suf | --program-su | --program-s) 1228 ac_prev=program_suffix ;; 1229 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1230 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1231 program_suffix=$ac_optarg ;; 1232 1233 -program-transform-name | --program-transform-name \ 1234 | --program-transform-nam | --program-transform-na \ 1235 | --program-transform-n | --program-transform- \ 1236 | --program-transform | --program-transfor \ 1237 | --program-transfo | --program-transf \ 1238 | --program-trans | --program-tran \ 1239 | --progr-tra | --program-tr | --program-t) 1240 ac_prev=program_transform_name ;; 1241 -program-transform-name=* | --program-transform-name=* \ 1242 | --program-transform-nam=* | --program-transform-na=* \ 1243 | --program-transform-n=* | --program-transform-=* \ 1244 | --program-transform=* | --program-transfor=* \ 1245 | --program-transfo=* | --program-transf=* \ 1246 | --program-trans=* | --program-tran=* \ 1247 | --progr-tra=* | --program-tr=* | --program-t=*) 1248 program_transform_name=$ac_optarg ;; 1249 1250 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1251 ac_prev=pdfdir ;; 1252 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1253 pdfdir=$ac_optarg ;; 1254 1255 -psdir | --psdir | --psdi | --psd | --ps) 1256 ac_prev=psdir ;; 1257 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1258 psdir=$ac_optarg ;; 1259 1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1261 | -silent | --silent | --silen | --sile | --sil) 1262 silent=yes ;; 1263 1264 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1265 | --runstate | --runstat | --runsta | --runst | --runs \ 1266 | --run | --ru | --r) 1267 ac_prev=runstatedir ;; 1268 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1269 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1270 | --run=* | --ru=* | --r=*) 1271 runstatedir=$ac_optarg ;; 1272 1273 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1274 ac_prev=sbindir ;; 1275 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1276 | --sbi=* | --sb=*) 1277 sbindir=$ac_optarg ;; 1278 1279 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1280 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1281 | --sharedst | --shareds | --shared | --share | --shar \ 1282 | --sha | --sh) 1283 ac_prev=sharedstatedir ;; 1284 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1285 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1286 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1287 | --sha=* | --sh=*) 1288 sharedstatedir=$ac_optarg ;; 1289 1290 -site | --site | --sit) 1291 ac_prev=site ;; 1292 -site=* | --site=* | --sit=*) 1293 site=$ac_optarg ;; 1294 1295 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1296 ac_prev=srcdir ;; 1297 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1298 srcdir=$ac_optarg ;; 1299 1300 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1301 | --syscon | --sysco | --sysc | --sys | --sy) 1302 ac_prev=sysconfdir ;; 1303 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1304 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1305 sysconfdir=$ac_optarg ;; 1306 1307 -target | --target | --targe | --targ | --tar | --ta | --t) 1308 ac_prev=target_alias ;; 1309 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1310 target_alias=$ac_optarg ;; 1311 1312 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1313 verbose=yes ;; 1314 1315 -version | --version | --versio | --versi | --vers | -V) 1316 ac_init_version=: ;; 1317 1318 -with-* | --with-*) 1319 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1320 # Reject names that are not valid shell variable names. 1321 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1322 as_fn_error $? "invalid package name: $ac_useropt" 1323 ac_useropt_orig=$ac_useropt 1324 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1325 case $ac_user_opts in 1326 *" 1327"with_$ac_useropt" 1328"*) ;; 1329 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1330 ac_unrecognized_sep=', ';; 1331 esac 1332 eval with_$ac_useropt=\$ac_optarg ;; 1333 1334 -without-* | --without-*) 1335 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1336 # Reject names that are not valid shell variable names. 1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1338 as_fn_error $? "invalid package name: $ac_useropt" 1339 ac_useropt_orig=$ac_useropt 1340 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1341 case $ac_user_opts in 1342 *" 1343"with_$ac_useropt" 1344"*) ;; 1345 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1346 ac_unrecognized_sep=', ';; 1347 esac 1348 eval with_$ac_useropt=no ;; 1349 1350 --x) 1351 # Obsolete; use --with-x. 1352 with_x=yes ;; 1353 1354 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1355 | --x-incl | --x-inc | --x-in | --x-i) 1356 ac_prev=x_includes ;; 1357 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1358 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1359 x_includes=$ac_optarg ;; 1360 1361 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1362 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1363 ac_prev=x_libraries ;; 1364 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1365 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1366 x_libraries=$ac_optarg ;; 1367 1368 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1369Try \`$0 --help' for more information" 1370 ;; 1371 1372 *=*) 1373 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1374 # Reject names that are not valid shell variable names. 1375 case $ac_envvar in #( 1376 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1377 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1378 esac 1379 eval $ac_envvar=\$ac_optarg 1380 export $ac_envvar ;; 1381 1382 *) 1383 # FIXME: should be removed in autoconf 3.0. 1384 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1385 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1386 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1387 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1388 ;; 1389 1390 esac 1391done 1392 1393if test -n "$ac_prev"; then 1394 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1395 as_fn_error $? "missing argument to $ac_option" 1396fi 1397 1398if test -n "$ac_unrecognized_opts"; then 1399 case $enable_option_checking in 1400 no) ;; 1401 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1402 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1403 esac 1404fi 1405 1406# Check all directory arguments for consistency. 1407for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1408 datadir sysconfdir sharedstatedir localstatedir includedir \ 1409 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1410 libdir localedir mandir runstatedir 1411do 1412 eval ac_val=\$$ac_var 1413 # Remove trailing slashes. 1414 case $ac_val in 1415 */ ) 1416 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1417 eval $ac_var=\$ac_val;; 1418 esac 1419 # Be sure to have absolute directory names. 1420 case $ac_val in 1421 [\\/$]* | ?:[\\/]* ) continue;; 1422 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1423 esac 1424 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1425done 1426 1427# There might be people who depend on the old broken behavior: `$host' 1428# used to hold the argument of --host etc. 1429# FIXME: To remove some day. 1430build=$build_alias 1431host=$host_alias 1432target=$target_alias 1433 1434# FIXME: To remove some day. 1435if test "x$host_alias" != x; then 1436 if test "x$build_alias" = x; then 1437 cross_compiling=maybe 1438 elif test "x$build_alias" != "x$host_alias"; then 1439 cross_compiling=yes 1440 fi 1441fi 1442 1443ac_tool_prefix= 1444test -n "$host_alias" && ac_tool_prefix=$host_alias- 1445 1446test "$silent" = yes && exec 6>/dev/null 1447 1448 1449ac_pwd=`pwd` && test -n "$ac_pwd" && 1450ac_ls_di=`ls -di .` && 1451ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1452 as_fn_error $? "working directory cannot be determined" 1453test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1454 as_fn_error $? "pwd does not report name of working directory" 1455 1456 1457# Find the source files, if location was not specified. 1458if test -z "$srcdir"; then 1459 ac_srcdir_defaulted=yes 1460 # Try the directory containing this script, then the parent directory. 1461 ac_confdir=`$as_dirname -- "$as_myself" || 1462$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1463 X"$as_myself" : 'X\(//\)[^/]' \| \ 1464 X"$as_myself" : 'X\(//\)$' \| \ 1465 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1466$as_echo X"$as_myself" | 1467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1468 s//\1/ 1469 q 1470 } 1471 /^X\(\/\/\)[^/].*/{ 1472 s//\1/ 1473 q 1474 } 1475 /^X\(\/\/\)$/{ 1476 s//\1/ 1477 q 1478 } 1479 /^X\(\/\).*/{ 1480 s//\1/ 1481 q 1482 } 1483 s/.*/./; q'` 1484 srcdir=$ac_confdir 1485 if test ! -r "$srcdir/$ac_unique_file"; then 1486 srcdir=.. 1487 fi 1488else 1489 ac_srcdir_defaulted=no 1490fi 1491if test ! -r "$srcdir/$ac_unique_file"; then 1492 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1493 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1494fi 1495ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1496ac_abs_confdir=`( 1497 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1498 pwd)` 1499# When building in place, set srcdir=. 1500if test "$ac_abs_confdir" = "$ac_pwd"; then 1501 srcdir=. 1502fi 1503# Remove unnecessary trailing slashes from srcdir. 1504# Double slashes in file names in object file debugging info 1505# mess up M-x gdb in Emacs. 1506case $srcdir in 1507*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1508esac 1509for ac_var in $ac_precious_vars; do 1510 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1511 eval ac_env_${ac_var}_value=\$${ac_var} 1512 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1513 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1514done 1515 1516# 1517# Report the --help message. 1518# 1519if test "$ac_init_help" = "long"; then 1520 # Omit some internal or obsolete options to make the list less imposing. 1521 # This message is too long to be a string in the A/UX 3.1 sh. 1522 cat <<_ACEOF 1523\`configure' configures aMule 2.3.3 to adapt to many kinds of systems. 1524 1525Usage: $0 [OPTION]... [VAR=VALUE]... 1526 1527To assign environment variables (e.g., CC, CFLAGS...), specify them as 1528VAR=VALUE. See below for descriptions of some of the useful variables. 1529 1530Defaults for the options are specified in brackets. 1531 1532Configuration: 1533 -h, --help display this help and exit 1534 --help=short display options specific to this package 1535 --help=recursive display the short help of all the included packages 1536 -V, --version display version information and exit 1537 -q, --quiet, --silent do not print \`checking ...' messages 1538 --cache-file=FILE cache test results in FILE [disabled] 1539 -C, --config-cache alias for \`--cache-file=config.cache' 1540 -n, --no-create do not create output files 1541 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1542 1543Installation directories: 1544 --prefix=PREFIX install architecture-independent files in PREFIX 1545 [$ac_default_prefix] 1546 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1547 [PREFIX] 1548 1549By default, \`make install' will install all the files in 1550\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1551an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1552for instance \`--prefix=\$HOME'. 1553 1554For better control, use the options below. 1555 1556Fine tuning of the installation directories: 1557 --bindir=DIR user executables [EPREFIX/bin] 1558 --sbindir=DIR system admin executables [EPREFIX/sbin] 1559 --libexecdir=DIR program executables [EPREFIX/libexec] 1560 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1561 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1562 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1563 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1564 --libdir=DIR object code libraries [EPREFIX/lib] 1565 --includedir=DIR C header files [PREFIX/include] 1566 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1567 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1568 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1569 --infodir=DIR info documentation [DATAROOTDIR/info] 1570 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1571 --mandir=DIR man documentation [DATAROOTDIR/man] 1572 --docdir=DIR documentation root [DATAROOTDIR/doc/amule] 1573 --htmldir=DIR html documentation [DOCDIR] 1574 --dvidir=DIR dvi documentation [DOCDIR] 1575 --pdfdir=DIR pdf documentation [DOCDIR] 1576 --psdir=DIR ps documentation [DOCDIR] 1577_ACEOF 1578 1579 cat <<\_ACEOF 1580 1581Program names: 1582 --program-prefix=PREFIX prepend PREFIX to installed program names 1583 --program-suffix=SUFFIX append SUFFIX to installed program names 1584 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1585 1586System types: 1587 --build=BUILD configure for building on BUILD [guessed] 1588 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1589_ACEOF 1590fi 1591 1592if test -n "$ac_init_help"; then 1593 case $ac_init_help in 1594 short | recursive ) echo "Configuration of aMule 2.3.3:";; 1595 esac 1596 cat <<\_ACEOF 1597 1598Optional Features: 1599 --disable-option-checking ignore unrecognized --enable/--with options 1600 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1601 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1602 --enable-silent-rules less verbose build output (undo: "make V=1") 1603 --disable-silent-rules verbose build output (undo: "make V=0") 1604 --enable-maintainer-mode 1605 enable make rules and dependencies not useful (and 1606 sometimes confusing) to the casual installer 1607 --enable-dependency-tracking 1608 do not reject slow dependency extractors 1609 --disable-dependency-tracking 1610 speeds up one-time build 1611 --disable-monolithic disable building of the monolithic aMule app 1612 --enable-amule-daemon compile aMule daemon version 1613 --enable-amulecmd compile aMule command line client 1614 --enable-webserver compile aMule WebServer 1615 --enable-amule-gui compile aMule remote GUI 1616 --enable-cas compile C aMule Statistics 1617 --enable-wxcas compile aMule GUI Statistics 1618 --disable-ed2k don't compile aMule ed2k links handler 1619 --enable-alc compile aMuleLinkCreator GUI version 1620 --enable-alcc compile aMuleLinkCreator for console 1621 --enable-xas install xas XChat2 plugin 1622 --enable-fileview compile aMule file viewer for console 1623 --enable-plasmamule compile aMule plasma applet and engine 1624 --enable-static produce a statically linked executable 1625 --enable-kde-in-home install KDE related stuff in your home dir 1626 --enable-geoip compile with GeoIP IP2Country library 1627 --disable-upnp do not compile UPnP code 1628 --disable-debug disable additional debugging output 1629 --enable-profile enable code profiling 1630 --enable-optimize enable code optimization 1631 --enable-static-boost Prefer the static boost libraries over the shared 1632 ones [no] 1633 --enable-mmap enable using mapped memory if supported 1634 --disable-rpath do not hardcode runtime library paths 1635 --disable-nls do not use Native Language Support 1636 --enable-ccache enable ccache support for fast recompilation 1637 1638Optional Packages: 1639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1641 --with-kde4-config=PATH kde4-config script to use 1642 --with-moc=PATH Search in PATH for Qt's meta object compiler 1643 --without-gnu-malloc Don't assume that we use GNU libc compatible 1644 malloc/realloc when cross-compiling 1645 --with-gdlib-prefix=PREFIX 1646 prefix where gdlib is installed (optional) 1647 --with-gdlib-config=CONFIG 1648 gdlib-config script to use (optional) 1649 --with-zlib=PREFIX use zlib in PREFIX 1650 --with-libpng-prefix=PREFIX 1651 prefix where libpng is installed (optional) 1652 --with-libpng-config=CONFIG 1653 libpng-config script to use (optional) 1654 --with-geoip-headers=DIR 1655 GeoIP include files location 1656 --with-geoip-lib=DIR GeoIP library location 1657 --with-geoip-static Explicitly link GeoIP statically (default=no) 1658 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH 1659 --with-wx-config=CONFIG wx-config script to use (optional) 1660 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional) 1661 --with-wx-exec-prefix=PREFIX 1662 Exec prefix where wxWidgets is installed (optional) 1663 --with-toolkit Build against a specific wxWidgets toolkit (default 1664 is auto) 1665 --with-wxshared Force building against a shared build of wxWidgets, 1666 even if --disable-shared is given (default is auto) 1667 --with-wxdebug Force building against a debug build of wxWidgets, 1668 even if --disable-debug is given (default is auto) 1669 --with-wxversion Build against a specific version of wxWidgets 1670 (default is auto) 1671 1672 --with-libupnp-prefix=PREFIX 1673 UPnP library location 1674 --with-crypto-prefix=PREFIX 1675 prefix where crypto++ is installed 1676 --with-boost[=DIR] use Boost.Asio for networking 1677 --with-language=<langs> Specify a comma-separated list of languages you want 1678 to have installed. See po/LINGUAS for available 1679 languages 1680 --with-gnu-ld assume the C compiler uses GNU ld default=no 1681 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib 1682 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1683 --with-included-gettext use the GNU gettext library included here 1684 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib 1685 --without-libintl-prefix don't search for libintl in includedir and libdir 1686 --with-denoise-level=<level> 1687 Specifies denoising level (0-4): 1688 0 - Do nothing 1689 4 - Suppress all normal output 1690 (for more information see 1691 src/utils/scripts/denoiser.rules) 1692 1693 --with-ccache-prefix=PREFIX 1694 prefix where ccache is installed 1695 1696Some influential environment variables: 1697 CXX C++ compiler command 1698 CXXFLAGS C++ compiler flags 1699 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1700 nonstandard directory <lib dir> 1701 LIBS libraries to pass to the linker, e.g. -l<library> 1702 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1703 you have headers in a nonstandard directory <include dir> 1704 CXXCPP C++ preprocessor 1705 CC C compiler command 1706 CFLAGS C compiler flags 1707 CPP C preprocessor 1708 PKG_CONFIG path to pkg-config utility 1709 RC Resource Compiler 1710 RCFLAGS Resource Compiler Flags 1711 BOOST_ROOT Location of Boost installation 1712 1713Use these variables to override the choices made by `configure' or to help 1714it to find libraries and programs with nonstandard names/locations. 1715 1716Report bugs to <admin@amule.org>. 1717_ACEOF 1718ac_status=$? 1719fi 1720 1721if test "$ac_init_help" = "recursive"; then 1722 # If there are subdirs, report their specific --help. 1723 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1724 test -d "$ac_dir" || 1725 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1726 continue 1727 ac_builddir=. 1728 1729case "$ac_dir" in 1730.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1731*) 1732 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1733 # A ".." for each directory in $ac_dir_suffix. 1734 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1735 case $ac_top_builddir_sub in 1736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1738 esac ;; 1739esac 1740ac_abs_top_builddir=$ac_pwd 1741ac_abs_builddir=$ac_pwd$ac_dir_suffix 1742# for backward compatibility: 1743ac_top_builddir=$ac_top_build_prefix 1744 1745case $srcdir in 1746 .) # We are building in place. 1747 ac_srcdir=. 1748 ac_top_srcdir=$ac_top_builddir_sub 1749 ac_abs_top_srcdir=$ac_pwd ;; 1750 [\\/]* | ?:[\\/]* ) # Absolute name. 1751 ac_srcdir=$srcdir$ac_dir_suffix; 1752 ac_top_srcdir=$srcdir 1753 ac_abs_top_srcdir=$srcdir ;; 1754 *) # Relative name. 1755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1756 ac_top_srcdir=$ac_top_build_prefix$srcdir 1757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1758esac 1759ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1760 1761 cd "$ac_dir" || { ac_status=$?; continue; } 1762 # Check for guested configure. 1763 if test -f "$ac_srcdir/configure.gnu"; then 1764 echo && 1765 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1766 elif test -f "$ac_srcdir/configure"; then 1767 echo && 1768 $SHELL "$ac_srcdir/configure" --help=recursive 1769 else 1770 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1771 fi || ac_status=$? 1772 cd "$ac_pwd" || { ac_status=$?; break; } 1773 done 1774fi 1775 1776test -n "$ac_init_help" && exit $ac_status 1777if $ac_init_version; then 1778 cat <<\_ACEOF 1779aMule configure 2.3.3 1780generated by GNU Autoconf 2.69 1781 1782Copyright (C) 2012 Free Software Foundation, Inc. 1783This configure script is free software; the Free Software Foundation 1784gives unlimited permission to copy, distribute and modify it. 1785_ACEOF 1786 exit 1787fi 1788 1789## ------------------------ ## 1790## Autoconf initialization. ## 1791## ------------------------ ## 1792 1793# ac_fn_cxx_try_compile LINENO 1794# ---------------------------- 1795# Try to compile conftest.$ac_ext, and return whether this succeeded. 1796ac_fn_cxx_try_compile () 1797{ 1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1799 rm -f conftest.$ac_objext 1800 if { { ac_try="$ac_compile" 1801case "(($ac_try" in 1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1803 *) ac_try_echo=$ac_try;; 1804esac 1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1806$as_echo "$ac_try_echo"; } >&5 1807 (eval "$ac_compile") 2>conftest.err 1808 ac_status=$? 1809 if test -s conftest.err; then 1810 grep -v '^ *+' conftest.err >conftest.er1 1811 cat conftest.er1 >&5 1812 mv -f conftest.er1 conftest.err 1813 fi 1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1815 test $ac_status = 0; } && { 1816 test -z "$ac_cxx_werror_flag" || 1817 test ! -s conftest.err 1818 } && test -s conftest.$ac_objext; then : 1819 ac_retval=0 1820else 1821 $as_echo "$as_me: failed program was:" >&5 1822sed 's/^/| /' conftest.$ac_ext >&5 1823 1824 ac_retval=1 1825fi 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 as_fn_set_status $ac_retval 1828 1829} # ac_fn_cxx_try_compile 1830 1831# ac_fn_cxx_try_cpp LINENO 1832# ------------------------ 1833# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1834ac_fn_cxx_try_cpp () 1835{ 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 if { { ac_try="$ac_cpp conftest.$ac_ext" 1838case "(($ac_try" in 1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1840 *) ac_try_echo=$ac_try;; 1841esac 1842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1843$as_echo "$ac_try_echo"; } >&5 1844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1845 ac_status=$? 1846 if test -s conftest.err; then 1847 grep -v '^ *+' conftest.err >conftest.er1 1848 cat conftest.er1 >&5 1849 mv -f conftest.er1 conftest.err 1850 fi 1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1852 test $ac_status = 0; } > conftest.i && { 1853 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1854 test ! -s conftest.err 1855 }; then : 1856 ac_retval=0 1857else 1858 $as_echo "$as_me: failed program was:" >&5 1859sed 's/^/| /' conftest.$ac_ext >&5 1860 1861 ac_retval=1 1862fi 1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1864 as_fn_set_status $ac_retval 1865 1866} # ac_fn_cxx_try_cpp 1867 1868# ac_fn_c_try_compile LINENO 1869# -------------------------- 1870# Try to compile conftest.$ac_ext, and return whether this succeeded. 1871ac_fn_c_try_compile () 1872{ 1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1874 rm -f conftest.$ac_objext 1875 if { { ac_try="$ac_compile" 1876case "(($ac_try" in 1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1878 *) ac_try_echo=$ac_try;; 1879esac 1880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1881$as_echo "$ac_try_echo"; } >&5 1882 (eval "$ac_compile") 2>conftest.err 1883 ac_status=$? 1884 if test -s conftest.err; then 1885 grep -v '^ *+' conftest.err >conftest.er1 1886 cat conftest.er1 >&5 1887 mv -f conftest.er1 conftest.err 1888 fi 1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1890 test $ac_status = 0; } && { 1891 test -z "$ac_c_werror_flag" || 1892 test ! -s conftest.err 1893 } && test -s conftest.$ac_objext; then : 1894 ac_retval=0 1895else 1896 $as_echo "$as_me: failed program was:" >&5 1897sed 's/^/| /' conftest.$ac_ext >&5 1898 1899 ac_retval=1 1900fi 1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1902 as_fn_set_status $ac_retval 1903 1904} # ac_fn_c_try_compile 1905 1906# ac_fn_c_try_cpp LINENO 1907# ---------------------- 1908# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1909ac_fn_c_try_cpp () 1910{ 1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1912 if { { ac_try="$ac_cpp conftest.$ac_ext" 1913case "(($ac_try" in 1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1915 *) ac_try_echo=$ac_try;; 1916esac 1917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1918$as_echo "$ac_try_echo"; } >&5 1919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1920 ac_status=$? 1921 if test -s conftest.err; then 1922 grep -v '^ *+' conftest.err >conftest.er1 1923 cat conftest.er1 >&5 1924 mv -f conftest.er1 conftest.err 1925 fi 1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1927 test $ac_status = 0; } > conftest.i && { 1928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1929 test ! -s conftest.err 1930 }; then : 1931 ac_retval=0 1932else 1933 $as_echo "$as_me: failed program was:" >&5 1934sed 's/^/| /' conftest.$ac_ext >&5 1935 1936 ac_retval=1 1937fi 1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1939 as_fn_set_status $ac_retval 1940 1941} # ac_fn_c_try_cpp 1942 1943# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1944# ------------------------------------------------------- 1945# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1946# the include files in INCLUDES and setting the cache variable VAR 1947# accordingly. 1948ac_fn_c_check_header_mongrel () 1949{ 1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1951 if eval \${$3+:} false; then : 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1953$as_echo_n "checking for $2... " >&6; } 1954if eval \${$3+:} false; then : 1955 $as_echo_n "(cached) " >&6 1956fi 1957eval ac_res=\$$3 1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1959$as_echo "$ac_res" >&6; } 1960else 1961 # Is the header compilable? 1962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1963$as_echo_n "checking $2 usability... " >&6; } 1964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1965/* end confdefs.h. */ 1966$4 1967#include <$2> 1968_ACEOF 1969if ac_fn_c_try_compile "$LINENO"; then : 1970 ac_header_compiler=yes 1971else 1972 ac_header_compiler=no 1973fi 1974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1976$as_echo "$ac_header_compiler" >&6; } 1977 1978# Is the header present? 1979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1980$as_echo_n "checking $2 presence... " >&6; } 1981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1982/* end confdefs.h. */ 1983#include <$2> 1984_ACEOF 1985if ac_fn_c_try_cpp "$LINENO"; then : 1986 ac_header_preproc=yes 1987else 1988 ac_header_preproc=no 1989fi 1990rm -f conftest.err conftest.i conftest.$ac_ext 1991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1992$as_echo "$ac_header_preproc" >&6; } 1993 1994# So? What about this header? 1995case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1996 yes:no: ) 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1998$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2000$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2001 ;; 2002 no:yes:* ) 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2004$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2006$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2008$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2010$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2012$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2013( $as_echo "## ------------------------------ ## 2014## Report this to admin@amule.org ## 2015## ------------------------------ ##" 2016 ) | sed "s/^/$as_me: WARNING: /" >&2 2017 ;; 2018esac 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2020$as_echo_n "checking for $2... " >&6; } 2021if eval \${$3+:} false; then : 2022 $as_echo_n "(cached) " >&6 2023else 2024 eval "$3=\$ac_header_compiler" 2025fi 2026eval ac_res=\$$3 2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2028$as_echo "$ac_res" >&6; } 2029fi 2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2031 2032} # ac_fn_c_check_header_mongrel 2033 2034# ac_fn_c_try_run LINENO 2035# ---------------------- 2036# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2037# that executables *can* be run. 2038ac_fn_c_try_run () 2039{ 2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2041 if { { ac_try="$ac_link" 2042case "(($ac_try" in 2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2044 *) ac_try_echo=$ac_try;; 2045esac 2046eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2047$as_echo "$ac_try_echo"; } >&5 2048 (eval "$ac_link") 2>&5 2049 ac_status=$? 2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2051 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2052 { { case "(($ac_try" in 2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2054 *) ac_try_echo=$ac_try;; 2055esac 2056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2057$as_echo "$ac_try_echo"; } >&5 2058 (eval "$ac_try") 2>&5 2059 ac_status=$? 2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2061 test $ac_status = 0; }; }; then : 2062 ac_retval=0 2063else 2064 $as_echo "$as_me: program exited with status $ac_status" >&5 2065 $as_echo "$as_me: failed program was:" >&5 2066sed 's/^/| /' conftest.$ac_ext >&5 2067 2068 ac_retval=$ac_status 2069fi 2070 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2072 as_fn_set_status $ac_retval 2073 2074} # ac_fn_c_try_run 2075 2076# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2077# ------------------------------------------------------- 2078# Tests whether HEADER exists and can be compiled using the include files in 2079# INCLUDES, setting the cache variable VAR accordingly. 2080ac_fn_c_check_header_compile () 2081{ 2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2084$as_echo_n "checking for $2... " >&6; } 2085if eval \${$3+:} false; then : 2086 $as_echo_n "(cached) " >&6 2087else 2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2089/* end confdefs.h. */ 2090$4 2091#include <$2> 2092_ACEOF 2093if ac_fn_c_try_compile "$LINENO"; then : 2094 eval "$3=yes" 2095else 2096 eval "$3=no" 2097fi 2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2099fi 2100eval ac_res=\$$3 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2102$as_echo "$ac_res" >&6; } 2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2104 2105} # ac_fn_c_check_header_compile 2106 2107# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2108# ------------------------------------------- 2109# Tests whether TYPE exists after having included INCLUDES, setting cache 2110# variable VAR accordingly. 2111ac_fn_c_check_type () 2112{ 2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2115$as_echo_n "checking for $2... " >&6; } 2116if eval \${$3+:} false; then : 2117 $as_echo_n "(cached) " >&6 2118else 2119 eval "$3=no" 2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2121/* end confdefs.h. */ 2122$4 2123int 2124main () 2125{ 2126if (sizeof ($2)) 2127 return 0; 2128 ; 2129 return 0; 2130} 2131_ACEOF 2132if ac_fn_c_try_compile "$LINENO"; then : 2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2134/* end confdefs.h. */ 2135$4 2136int 2137main () 2138{ 2139if (sizeof (($2))) 2140 return 0; 2141 ; 2142 return 0; 2143} 2144_ACEOF 2145if ac_fn_c_try_compile "$LINENO"; then : 2146 2147else 2148 eval "$3=yes" 2149fi 2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2151fi 2152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2153fi 2154eval ac_res=\$$3 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2156$as_echo "$ac_res" >&6; } 2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2158 2159} # ac_fn_c_check_type 2160 2161# ac_fn_cxx_try_link LINENO 2162# ------------------------- 2163# Try to link conftest.$ac_ext, and return whether this succeeded. 2164ac_fn_cxx_try_link () 2165{ 2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2167 rm -f conftest.$ac_objext conftest$ac_exeext 2168 if { { ac_try="$ac_link" 2169case "(($ac_try" in 2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2171 *) ac_try_echo=$ac_try;; 2172esac 2173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2174$as_echo "$ac_try_echo"; } >&5 2175 (eval "$ac_link") 2>conftest.err 2176 ac_status=$? 2177 if test -s conftest.err; then 2178 grep -v '^ *+' conftest.err >conftest.er1 2179 cat conftest.er1 >&5 2180 mv -f conftest.er1 conftest.err 2181 fi 2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2183 test $ac_status = 0; } && { 2184 test -z "$ac_cxx_werror_flag" || 2185 test ! -s conftest.err 2186 } && test -s conftest$ac_exeext && { 2187 test "$cross_compiling" = yes || 2188 test -x conftest$ac_exeext 2189 }; then : 2190 ac_retval=0 2191else 2192 $as_echo "$as_me: failed program was:" >&5 2193sed 's/^/| /' conftest.$ac_ext >&5 2194 2195 ac_retval=1 2196fi 2197 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2198 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2199 # interfere with the next link command; also delete a directory that is 2200 # left behind by Apple's compiler. We do this before executing the actions. 2201 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2203 as_fn_set_status $ac_retval 2204 2205} # ac_fn_cxx_try_link 2206 2207# ac_fn_cxx_try_run LINENO 2208# ------------------------ 2209# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2210# that executables *can* be run. 2211ac_fn_cxx_try_run () 2212{ 2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2214 if { { ac_try="$ac_link" 2215case "(($ac_try" in 2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2217 *) ac_try_echo=$ac_try;; 2218esac 2219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2220$as_echo "$ac_try_echo"; } >&5 2221 (eval "$ac_link") 2>&5 2222 ac_status=$? 2223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2224 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2225 { { case "(($ac_try" in 2226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2227 *) ac_try_echo=$ac_try;; 2228esac 2229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2230$as_echo "$ac_try_echo"; } >&5 2231 (eval "$ac_try") 2>&5 2232 ac_status=$? 2233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2234 test $ac_status = 0; }; }; then : 2235 ac_retval=0 2236else 2237 $as_echo "$as_me: program exited with status $ac_status" >&5 2238 $as_echo "$as_me: failed program was:" >&5 2239sed 's/^/| /' conftest.$ac_ext >&5 2240 2241 ac_retval=$ac_status 2242fi 2243 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2244 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2245 as_fn_set_status $ac_retval 2246 2247} # ac_fn_cxx_try_run 2248 2249# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2250# --------------------------------------------------------- 2251# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2252# the include files in INCLUDES and setting the cache variable VAR 2253# accordingly. 2254ac_fn_cxx_check_header_mongrel () 2255{ 2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2257 if eval \${$3+:} false; then : 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2259$as_echo_n "checking for $2... " >&6; } 2260if eval \${$3+:} false; then : 2261 $as_echo_n "(cached) " >&6 2262fi 2263eval ac_res=\$$3 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2265$as_echo "$ac_res" >&6; } 2266else 2267 # Is the header compilable? 2268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2269$as_echo_n "checking $2 usability... " >&6; } 2270cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2271/* end confdefs.h. */ 2272$4 2273#include <$2> 2274_ACEOF 2275if ac_fn_cxx_try_compile "$LINENO"; then : 2276 ac_header_compiler=yes 2277else 2278 ac_header_compiler=no 2279fi 2280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2282$as_echo "$ac_header_compiler" >&6; } 2283 2284# Is the header present? 2285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2286$as_echo_n "checking $2 presence... " >&6; } 2287cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2288/* end confdefs.h. */ 2289#include <$2> 2290_ACEOF 2291if ac_fn_cxx_try_cpp "$LINENO"; then : 2292 ac_header_preproc=yes 2293else 2294 ac_header_preproc=no 2295fi 2296rm -f conftest.err conftest.i conftest.$ac_ext 2297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2298$as_echo "$ac_header_preproc" >&6; } 2299 2300# So? What about this header? 2301case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2302 yes:no: ) 2303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2304$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2306$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2307 ;; 2308 no:yes:* ) 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2310$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2312$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2314$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2316$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2318$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2319( $as_echo "## ------------------------------ ## 2320## Report this to admin@amule.org ## 2321## ------------------------------ ##" 2322 ) | sed "s/^/$as_me: WARNING: /" >&2 2323 ;; 2324esac 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2326$as_echo_n "checking for $2... " >&6; } 2327if eval \${$3+:} false; then : 2328 $as_echo_n "(cached) " >&6 2329else 2330 eval "$3=\$ac_header_compiler" 2331fi 2332eval ac_res=\$$3 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2334$as_echo "$ac_res" >&6; } 2335fi 2336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2337 2338} # ac_fn_cxx_check_header_mongrel 2339 2340# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 2341# --------------------------------------------- 2342# Tests whether TYPE exists after having included INCLUDES, setting cache 2343# variable VAR accordingly. 2344ac_fn_cxx_check_type () 2345{ 2346 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2348$as_echo_n "checking for $2... " >&6; } 2349if eval \${$3+:} false; then : 2350 $as_echo_n "(cached) " >&6 2351else 2352 eval "$3=no" 2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2354/* end confdefs.h. */ 2355$4 2356int 2357main () 2358{ 2359if (sizeof ($2)) 2360 return 0; 2361 ; 2362 return 0; 2363} 2364_ACEOF 2365if ac_fn_cxx_try_compile "$LINENO"; then : 2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2367/* end confdefs.h. */ 2368$4 2369int 2370main () 2371{ 2372if (sizeof (($2))) 2373 return 0; 2374 ; 2375 return 0; 2376} 2377_ACEOF 2378if ac_fn_cxx_try_compile "$LINENO"; then : 2379 2380else 2381 eval "$3=yes" 2382fi 2383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2384fi 2385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2386fi 2387eval ac_res=\$$3 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2389$as_echo "$ac_res" >&6; } 2390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2391 2392} # ac_fn_cxx_check_type 2393 2394# ac_fn_cxx_check_func LINENO FUNC VAR 2395# ------------------------------------ 2396# Tests whether FUNC exists, setting the cache variable VAR accordingly 2397ac_fn_cxx_check_func () 2398{ 2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2401$as_echo_n "checking for $2... " >&6; } 2402if eval \${$3+:} false; then : 2403 $as_echo_n "(cached) " >&6 2404else 2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2406/* end confdefs.h. */ 2407/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2408 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2409#define $2 innocuous_$2 2410 2411/* System header to define __stub macros and hopefully few prototypes, 2412 which can conflict with char $2 (); below. 2413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2414 <limits.h> exists even on freestanding compilers. */ 2415 2416#ifdef __STDC__ 2417# include <limits.h> 2418#else 2419# include <assert.h> 2420#endif 2421 2422#undef $2 2423 2424/* Override any GCC internal prototype to avoid an error. 2425 Use char because int might match the return type of a GCC 2426 builtin and then its argument prototype would still apply. */ 2427#ifdef __cplusplus 2428extern "C" 2429#endif 2430char $2 (); 2431/* The GNU C library defines this for functions which it implements 2432 to always fail with ENOSYS. Some functions are actually named 2433 something starting with __ and the normal name is an alias. */ 2434#if defined __stub_$2 || defined __stub___$2 2435choke me 2436#endif 2437 2438int 2439main () 2440{ 2441return $2 (); 2442 ; 2443 return 0; 2444} 2445_ACEOF 2446if ac_fn_cxx_try_link "$LINENO"; then : 2447 eval "$3=yes" 2448else 2449 eval "$3=no" 2450fi 2451rm -f core conftest.err conftest.$ac_objext \ 2452 conftest$ac_exeext conftest.$ac_ext 2453fi 2454eval ac_res=\$$3 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2456$as_echo "$ac_res" >&6; } 2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2458 2459} # ac_fn_cxx_check_func 2460 2461# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2462# --------------------------------------------------------- 2463# Tests whether HEADER exists and can be compiled using the include files in 2464# INCLUDES, setting the cache variable VAR accordingly. 2465ac_fn_cxx_check_header_compile () 2466{ 2467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2469$as_echo_n "checking for $2... " >&6; } 2470if eval \${$3+:} false; then : 2471 $as_echo_n "(cached) " >&6 2472else 2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2474/* end confdefs.h. */ 2475$4 2476#include <$2> 2477_ACEOF 2478if ac_fn_cxx_try_compile "$LINENO"; then : 2479 eval "$3=yes" 2480else 2481 eval "$3=no" 2482fi 2483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2484fi 2485eval ac_res=\$$3 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2487$as_echo "$ac_res" >&6; } 2488 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2489 2490} # ac_fn_cxx_check_header_compile 2491 2492# ac_fn_c_try_link LINENO 2493# ----------------------- 2494# Try to link conftest.$ac_ext, and return whether this succeeded. 2495ac_fn_c_try_link () 2496{ 2497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2498 rm -f conftest.$ac_objext conftest$ac_exeext 2499 if { { ac_try="$ac_link" 2500case "(($ac_try" in 2501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2502 *) ac_try_echo=$ac_try;; 2503esac 2504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2505$as_echo "$ac_try_echo"; } >&5 2506 (eval "$ac_link") 2>conftest.err 2507 ac_status=$? 2508 if test -s conftest.err; then 2509 grep -v '^ *+' conftest.err >conftest.er1 2510 cat conftest.er1 >&5 2511 mv -f conftest.er1 conftest.err 2512 fi 2513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2514 test $ac_status = 0; } && { 2515 test -z "$ac_c_werror_flag" || 2516 test ! -s conftest.err 2517 } && test -s conftest$ac_exeext && { 2518 test "$cross_compiling" = yes || 2519 test -x conftest$ac_exeext 2520 }; then : 2521 ac_retval=0 2522else 2523 $as_echo "$as_me: failed program was:" >&5 2524sed 's/^/| /' conftest.$ac_ext >&5 2525 2526 ac_retval=1 2527fi 2528 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2529 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2530 # interfere with the next link command; also delete a directory that is 2531 # left behind by Apple's compiler. We do this before executing the actions. 2532 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2534 as_fn_set_status $ac_retval 2535 2536} # ac_fn_c_try_link 2537 2538# ac_fn_c_check_func LINENO FUNC VAR 2539# ---------------------------------- 2540# Tests whether FUNC exists, setting the cache variable VAR accordingly 2541ac_fn_c_check_func () 2542{ 2543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2545$as_echo_n "checking for $2... " >&6; } 2546if eval \${$3+:} false; then : 2547 $as_echo_n "(cached) " >&6 2548else 2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2550/* end confdefs.h. */ 2551/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2552 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2553#define $2 innocuous_$2 2554 2555/* System header to define __stub macros and hopefully few prototypes, 2556 which can conflict with char $2 (); below. 2557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2558 <limits.h> exists even on freestanding compilers. */ 2559 2560#ifdef __STDC__ 2561# include <limits.h> 2562#else 2563# include <assert.h> 2564#endif 2565 2566#undef $2 2567 2568/* Override any GCC internal prototype to avoid an error. 2569 Use char because int might match the return type of a GCC 2570 builtin and then its argument prototype would still apply. */ 2571#ifdef __cplusplus 2572extern "C" 2573#endif 2574char $2 (); 2575/* The GNU C library defines this for functions which it implements 2576 to always fail with ENOSYS. Some functions are actually named 2577 something starting with __ and the normal name is an alias. */ 2578#if defined __stub_$2 || defined __stub___$2 2579choke me 2580#endif 2581 2582int 2583main () 2584{ 2585return $2 (); 2586 ; 2587 return 0; 2588} 2589_ACEOF 2590if ac_fn_c_try_link "$LINENO"; then : 2591 eval "$3=yes" 2592else 2593 eval "$3=no" 2594fi 2595rm -f core conftest.err conftest.$ac_objext \ 2596 conftest$ac_exeext conftest.$ac_ext 2597fi 2598eval ac_res=\$$3 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2600$as_echo "$ac_res" >&6; } 2601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2602 2603} # ac_fn_c_check_func 2604 2605# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2606# --------------------------------------------- 2607# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2608# accordingly. 2609ac_fn_c_check_decl () 2610{ 2611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2612 as_decl_name=`echo $2|sed 's/ *(.*//'` 2613 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2615$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2616if eval \${$3+:} false; then : 2617 $as_echo_n "(cached) " >&6 2618else 2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2620/* end confdefs.h. */ 2621$4 2622int 2623main () 2624{ 2625#ifndef $as_decl_name 2626#ifdef __cplusplus 2627 (void) $as_decl_use; 2628#else 2629 (void) $as_decl_name; 2630#endif 2631#endif 2632 2633 ; 2634 return 0; 2635} 2636_ACEOF 2637if ac_fn_c_try_compile "$LINENO"; then : 2638 eval "$3=yes" 2639else 2640 eval "$3=no" 2641fi 2642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2643fi 2644eval ac_res=\$$3 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2646$as_echo "$ac_res" >&6; } 2647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2648 2649} # ac_fn_c_check_decl 2650cat >config.log <<_ACEOF 2651This file contains any messages produced by compilers while 2652running configure, to aid debugging if configure makes a mistake. 2653 2654It was created by aMule $as_me 2.3.3, which was 2655generated by GNU Autoconf 2.69. Invocation command line was 2656 2657 $ $0 $@ 2658 2659_ACEOF 2660exec 5>>config.log 2661{ 2662cat <<_ASUNAME 2663## --------- ## 2664## Platform. ## 2665## --------- ## 2666 2667hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2668uname -m = `(uname -m) 2>/dev/null || echo unknown` 2669uname -r = `(uname -r) 2>/dev/null || echo unknown` 2670uname -s = `(uname -s) 2>/dev/null || echo unknown` 2671uname -v = `(uname -v) 2>/dev/null || echo unknown` 2672 2673/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2674/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2675 2676/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2677/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2678/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2679/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2680/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2681/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2682/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2683 2684_ASUNAME 2685 2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2687for as_dir in $PATH 2688do 2689 IFS=$as_save_IFS 2690 test -z "$as_dir" && as_dir=. 2691 $as_echo "PATH: $as_dir" 2692 done 2693IFS=$as_save_IFS 2694 2695} >&5 2696 2697cat >&5 <<_ACEOF 2698 2699 2700## ----------- ## 2701## Core tests. ## 2702## ----------- ## 2703 2704_ACEOF 2705 2706 2707# Keep a trace of the command line. 2708# Strip out --no-create and --no-recursion so they do not pile up. 2709# Strip out --silent because we don't want to record it for future runs. 2710# Also quote any args containing shell meta-characters. 2711# Make two passes to allow for proper duplicate-argument suppression. 2712ac_configure_args= 2713ac_configure_args0= 2714ac_configure_args1= 2715ac_must_keep_next=false 2716for ac_pass in 1 2 2717do 2718 for ac_arg 2719 do 2720 case $ac_arg in 2721 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2723 | -silent | --silent | --silen | --sile | --sil) 2724 continue ;; 2725 *\'*) 2726 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2727 esac 2728 case $ac_pass in 2729 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2730 2) 2731 as_fn_append ac_configure_args1 " '$ac_arg'" 2732 if test $ac_must_keep_next = true; then 2733 ac_must_keep_next=false # Got value, back to normal. 2734 else 2735 case $ac_arg in 2736 *=* | --config-cache | -C | -disable-* | --disable-* \ 2737 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2738 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2739 | -with-* | --with-* | -without-* | --without-* | --x) 2740 case "$ac_configure_args0 " in 2741 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2742 esac 2743 ;; 2744 -* ) ac_must_keep_next=true ;; 2745 esac 2746 fi 2747 as_fn_append ac_configure_args " '$ac_arg'" 2748 ;; 2749 esac 2750 done 2751done 2752{ ac_configure_args0=; unset ac_configure_args0;} 2753{ ac_configure_args1=; unset ac_configure_args1;} 2754 2755# When interrupted or exit'd, cleanup temporary files, and complete 2756# config.log. We remove comments because anyway the quotes in there 2757# would cause problems or look ugly. 2758# WARNING: Use '\'' to represent an apostrophe within the trap. 2759# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2760trap 'exit_status=$? 2761 # Save into config.log some information that might help in debugging. 2762 { 2763 echo 2764 2765 $as_echo "## ---------------- ## 2766## Cache variables. ## 2767## ---------------- ##" 2768 echo 2769 # The following way of writing the cache mishandles newlines in values, 2770( 2771 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2772 eval ac_val=\$$ac_var 2773 case $ac_val in #( 2774 *${as_nl}*) 2775 case $ac_var in #( 2776 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2777$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2778 esac 2779 case $ac_var in #( 2780 _ | IFS | as_nl) ;; #( 2781 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2782 *) { eval $ac_var=; unset $ac_var;} ;; 2783 esac ;; 2784 esac 2785 done 2786 (set) 2>&1 | 2787 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2788 *${as_nl}ac_space=\ *) 2789 sed -n \ 2790 "s/'\''/'\''\\\\'\'''\''/g; 2791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2792 ;; #( 2793 *) 2794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2795 ;; 2796 esac | 2797 sort 2798) 2799 echo 2800 2801 $as_echo "## ----------------- ## 2802## Output variables. ## 2803## ----------------- ##" 2804 echo 2805 for ac_var in $ac_subst_vars 2806 do 2807 eval ac_val=\$$ac_var 2808 case $ac_val in 2809 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2810 esac 2811 $as_echo "$ac_var='\''$ac_val'\''" 2812 done | sort 2813 echo 2814 2815 if test -n "$ac_subst_files"; then 2816 $as_echo "## ------------------- ## 2817## File substitutions. ## 2818## ------------------- ##" 2819 echo 2820 for ac_var in $ac_subst_files 2821 do 2822 eval ac_val=\$$ac_var 2823 case $ac_val in 2824 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2825 esac 2826 $as_echo "$ac_var='\''$ac_val'\''" 2827 done | sort 2828 echo 2829 fi 2830 2831 if test -s confdefs.h; then 2832 $as_echo "## ----------- ## 2833## confdefs.h. ## 2834## ----------- ##" 2835 echo 2836 cat confdefs.h 2837 echo 2838 fi 2839 test "$ac_signal" != 0 && 2840 $as_echo "$as_me: caught signal $ac_signal" 2841 $as_echo "$as_me: exit $exit_status" 2842 } >&5 2843 rm -f core *.core core.conftest.* && 2844 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2845 exit $exit_status 2846' 0 2847for ac_signal in 1 2 13 15; do 2848 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2849done 2850ac_signal=0 2851 2852# confdefs.h avoids OS command line length limits that DEFS can exceed. 2853rm -f -r conftest* confdefs.h 2854 2855$as_echo "/* confdefs.h */" > confdefs.h 2856 2857# Predefined preprocessor variables. 2858 2859cat >>confdefs.h <<_ACEOF 2860#define PACKAGE_NAME "$PACKAGE_NAME" 2861_ACEOF 2862 2863cat >>confdefs.h <<_ACEOF 2864#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2865_ACEOF 2866 2867cat >>confdefs.h <<_ACEOF 2868#define PACKAGE_VERSION "$PACKAGE_VERSION" 2869_ACEOF 2870 2871cat >>confdefs.h <<_ACEOF 2872#define PACKAGE_STRING "$PACKAGE_STRING" 2873_ACEOF 2874 2875cat >>confdefs.h <<_ACEOF 2876#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2877_ACEOF 2878 2879cat >>confdefs.h <<_ACEOF 2880#define PACKAGE_URL "$PACKAGE_URL" 2881_ACEOF 2882 2883 2884# Let the site file select an alternate cache file if it wants to. 2885# Prefer an explicitly selected file to automatically selected ones. 2886ac_site_file1=NONE 2887ac_site_file2=NONE 2888if test -n "$CONFIG_SITE"; then 2889 # We do not want a PATH search for config.site. 2890 case $CONFIG_SITE in #(( 2891 -*) ac_site_file1=./$CONFIG_SITE;; 2892 */*) ac_site_file1=$CONFIG_SITE;; 2893 *) ac_site_file1=./$CONFIG_SITE;; 2894 esac 2895elif test "x$prefix" != xNONE; then 2896 ac_site_file1=$prefix/share/config.site 2897 ac_site_file2=$prefix/etc/config.site 2898else 2899 ac_site_file1=$ac_default_prefix/share/config.site 2900 ac_site_file2=$ac_default_prefix/etc/config.site 2901fi 2902for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2903do 2904 test "x$ac_site_file" = xNONE && continue 2905 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2907$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2908 sed 's/^/| /' "$ac_site_file" >&5 2909 . "$ac_site_file" \ 2910 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2912as_fn_error $? "failed to load site script $ac_site_file 2913See \`config.log' for more details" "$LINENO" 5; } 2914 fi 2915done 2916 2917if test -r "$cache_file"; then 2918 # Some versions of bash will fail to source /dev/null (special files 2919 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2920 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2922$as_echo "$as_me: loading cache $cache_file" >&6;} 2923 case $cache_file in 2924 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2925 *) . "./$cache_file";; 2926 esac 2927 fi 2928else 2929 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2930$as_echo "$as_me: creating cache $cache_file" >&6;} 2931 >$cache_file 2932fi 2933 2934as_fn_append ac_header_list " stdlib.h" 2935as_fn_append ac_header_list " unistd.h" 2936as_fn_append ac_header_list " sys/param.h" 2937# Check that the precious variables saved in the cache have kept the same 2938# value. 2939ac_cache_corrupted=false 2940for ac_var in $ac_precious_vars; do 2941 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2942 eval ac_new_set=\$ac_env_${ac_var}_set 2943 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2944 eval ac_new_val=\$ac_env_${ac_var}_value 2945 case $ac_old_set,$ac_new_set in 2946 set,) 2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2948$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2949 ac_cache_corrupted=: ;; 2950 ,set) 2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2952$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2953 ac_cache_corrupted=: ;; 2954 ,);; 2955 *) 2956 if test "x$ac_old_val" != "x$ac_new_val"; then 2957 # differences in whitespace do not lead to failure. 2958 ac_old_val_w=`echo x $ac_old_val` 2959 ac_new_val_w=`echo x $ac_new_val` 2960 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2962$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2963 ac_cache_corrupted=: 2964 else 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2966$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2967 eval $ac_var=\$ac_old_val 2968 fi 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2970$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2971 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2972$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2973 fi;; 2974 esac 2975 # Pass precious variables to config.status. 2976 if test "$ac_new_set" = set; then 2977 case $ac_new_val in 2978 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2979 *) ac_arg=$ac_var=$ac_new_val ;; 2980 esac 2981 case " $ac_configure_args " in 2982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2983 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2984 esac 2985 fi 2986done 2987if $ac_cache_corrupted; then 2988 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2991$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2992 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2993fi 2994## -------------------- ## 2995## Main body of script. ## 2996## -------------------- ## 2997 2998ac_ext=c 2999ac_cpp='$CPP $CPPFLAGS' 3000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3002ac_compiler_gnu=$ac_cv_c_compiler_gnu 3003 3004 3005am__api_version='1.15' 3006 3007ac_aux_dir= 3008for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3009 if test -f "$ac_dir/install-sh"; then 3010 ac_aux_dir=$ac_dir 3011 ac_install_sh="$ac_aux_dir/install-sh -c" 3012 break 3013 elif test -f "$ac_dir/install.sh"; then 3014 ac_aux_dir=$ac_dir 3015 ac_install_sh="$ac_aux_dir/install.sh -c" 3016 break 3017 elif test -f "$ac_dir/shtool"; then 3018 ac_aux_dir=$ac_dir 3019 ac_install_sh="$ac_aux_dir/shtool install -c" 3020 break 3021 fi 3022done 3023if test -z "$ac_aux_dir"; then 3024 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3025fi 3026 3027# These three variables are undocumented and unsupported, 3028# and are intended to be withdrawn in a future Autoconf release. 3029# They can cause serious problems if a builder's source tree is in a directory 3030# whose full name contains unusual characters. 3031ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3032ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3033ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3034 3035 3036# Find a good install program. We prefer a C program (faster), 3037# so one script is as good as another. But avoid the broken or 3038# incompatible versions: 3039# SysV /etc/install, /usr/sbin/install 3040# SunOS /usr/etc/install 3041# IRIX /sbin/install 3042# AIX /bin/install 3043# AmigaOS /C/install, which installs bootblocks on floppy discs 3044# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3045# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3046# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3047# OS/2's system install, which has a completely different semantic 3048# ./install, which can be erroneously created by make from ./install.sh. 3049# Reject install programs that cannot install multiple files. 3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3051$as_echo_n "checking for a BSD-compatible install... " >&6; } 3052if test -z "$INSTALL"; then 3053if ${ac_cv_path_install+:} false; then : 3054 $as_echo_n "(cached) " >&6 3055else 3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3057for as_dir in $PATH 3058do 3059 IFS=$as_save_IFS 3060 test -z "$as_dir" && as_dir=. 3061 # Account for people who put trailing slashes in PATH elements. 3062case $as_dir/ in #(( 3063 ./ | .// | /[cC]/* | \ 3064 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3065 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3066 /usr/ucb/* ) ;; 3067 *) 3068 # OSF1 and SCO ODT 3.0 have their own names for install. 3069 # Don't use installbsd from OSF since it installs stuff as root 3070 # by default. 3071 for ac_prog in ginstall scoinst install; do 3072 for ac_exec_ext in '' $ac_executable_extensions; do 3073 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3074 if test $ac_prog = install && 3075 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3076 # AIX install. It has an incompatible calling convention. 3077 : 3078 elif test $ac_prog = install && 3079 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3080 # program-specific install script used by HP pwplus--don't use. 3081 : 3082 else 3083 rm -rf conftest.one conftest.two conftest.dir 3084 echo one > conftest.one 3085 echo two > conftest.two 3086 mkdir conftest.dir 3087 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3088 test -s conftest.one && test -s conftest.two && 3089 test -s conftest.dir/conftest.one && 3090 test -s conftest.dir/conftest.two 3091 then 3092 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3093 break 3 3094 fi 3095 fi 3096 fi 3097 done 3098 done 3099 ;; 3100esac 3101 3102 done 3103IFS=$as_save_IFS 3104 3105rm -rf conftest.one conftest.two conftest.dir 3106 3107fi 3108 if test "${ac_cv_path_install+set}" = set; then 3109 INSTALL=$ac_cv_path_install 3110 else 3111 # As a last resort, use the slow shell script. Don't cache a 3112 # value for INSTALL within a source directory, because that will 3113 # break other packages using the cache if that directory is 3114 # removed, or if the value is a relative name. 3115 INSTALL=$ac_install_sh 3116 fi 3117fi 3118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3119$as_echo "$INSTALL" >&6; } 3120 3121# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3122# It thinks the first close brace ends the variable substitution. 3123test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3124 3125test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3126 3127test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3128 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3130$as_echo_n "checking whether build environment is sane... " >&6; } 3131# Reject unsafe characters in $srcdir or the absolute working directory 3132# name. Accept space and tab only in the latter. 3133am_lf=' 3134' 3135case `pwd` in 3136 *[\\\"\#\$\&\'\`$am_lf]*) 3137 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3138esac 3139case $srcdir in 3140 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3141 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3142esac 3143 3144# Do 'set' in a subshell so we don't clobber the current shell's 3145# arguments. Must try -L first in case configure is actually a 3146# symlink; some systems play weird games with the mod time of symlinks 3147# (eg FreeBSD returns the mod time of the symlink's containing 3148# directory). 3149if ( 3150 am_has_slept=no 3151 for am_try in 1 2; do 3152 echo "timestamp, slept: $am_has_slept" > conftest.file 3153 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3154 if test "$*" = "X"; then 3155 # -L didn't work. 3156 set X `ls -t "$srcdir/configure" conftest.file` 3157 fi 3158 if test "$*" != "X $srcdir/configure conftest.file" \ 3159 && test "$*" != "X conftest.file $srcdir/configure"; then 3160 3161 # If neither matched, then we have a broken ls. This can happen 3162 # if, for instance, CONFIG_SHELL is bash and it inherits a 3163 # broken ls alias from the environment. This has actually 3164 # happened. Such a system could not be considered "sane". 3165 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3166 alias in your environment" "$LINENO" 5 3167 fi 3168 if test "$2" = conftest.file || test $am_try -eq 2; then 3169 break 3170 fi 3171 # Just in case. 3172 sleep 1 3173 am_has_slept=yes 3174 done 3175 test "$2" = conftest.file 3176 ) 3177then 3178 # Ok. 3179 : 3180else 3181 as_fn_error $? "newly created file is older than distributed files! 3182Check your system clock" "$LINENO" 5 3183fi 3184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3185$as_echo "yes" >&6; } 3186# If we didn't sleep, we still need to ensure time stamps of config.status and 3187# generated files are strictly newer. 3188am_sleep_pid= 3189if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3190 ( sleep 1 ) & 3191 am_sleep_pid=$! 3192fi 3193 3194rm -f conftest.file 3195 3196test "$program_prefix" != NONE && 3197 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3198# Use a double $ so make ignores it. 3199test "$program_suffix" != NONE && 3200 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3201# Double any \ or $. 3202# By default was `s,x,x', remove it if useless. 3203ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3204program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3205 3206# Expand $ac_aux_dir to an absolute path. 3207am_aux_dir=`cd "$ac_aux_dir" && pwd` 3208 3209if test x"${MISSING+set}" != xset; then 3210 case $am_aux_dir in 3211 *\ * | *\ *) 3212 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3213 *) 3214 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3215 esac 3216fi 3217# Use eval to expand $SHELL 3218if eval "$MISSING --is-lightweight"; then 3219 am_missing_run="$MISSING " 3220else 3221 am_missing_run= 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3223$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3224fi 3225 3226if test x"${install_sh+set}" != xset; then 3227 case $am_aux_dir in 3228 *\ * | *\ *) 3229 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3230 *) 3231 install_sh="\${SHELL} $am_aux_dir/install-sh" 3232 esac 3233fi 3234 3235# Installed binaries are usually stripped using 'strip' when the user 3236# run "make install-strip". However 'strip' might not be the right 3237# tool to use in cross-compilation environments, therefore Automake 3238# will honor the 'STRIP' environment variable to overrule this program. 3239if test "$cross_compiling" != no; then 3240 if test -n "$ac_tool_prefix"; then 3241 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3242set dummy ${ac_tool_prefix}strip; ac_word=$2 3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3244$as_echo_n "checking for $ac_word... " >&6; } 3245if ${ac_cv_prog_STRIP+:} false; then : 3246 $as_echo_n "(cached) " >&6 3247else 3248 if test -n "$STRIP"; then 3249 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3250else 3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3252for as_dir in $PATH 3253do 3254 IFS=$as_save_IFS 3255 test -z "$as_dir" && as_dir=. 3256 for ac_exec_ext in '' $ac_executable_extensions; do 3257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3258 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3260 break 2 3261 fi 3262done 3263 done 3264IFS=$as_save_IFS 3265 3266fi 3267fi 3268STRIP=$ac_cv_prog_STRIP 3269if test -n "$STRIP"; then 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3271$as_echo "$STRIP" >&6; } 3272else 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3274$as_echo "no" >&6; } 3275fi 3276 3277 3278fi 3279if test -z "$ac_cv_prog_STRIP"; then 3280 ac_ct_STRIP=$STRIP 3281 # Extract the first word of "strip", so it can be a program name with args. 3282set dummy strip; ac_word=$2 3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3284$as_echo_n "checking for $ac_word... " >&6; } 3285if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3286 $as_echo_n "(cached) " >&6 3287else 3288 if test -n "$ac_ct_STRIP"; then 3289 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3290else 3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3292for as_dir in $PATH 3293do 3294 IFS=$as_save_IFS 3295 test -z "$as_dir" && as_dir=. 3296 for ac_exec_ext in '' $ac_executable_extensions; do 3297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3298 ac_cv_prog_ac_ct_STRIP="strip" 3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3300 break 2 3301 fi 3302done 3303 done 3304IFS=$as_save_IFS 3305 3306fi 3307fi 3308ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3309if test -n "$ac_ct_STRIP"; then 3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3311$as_echo "$ac_ct_STRIP" >&6; } 3312else 3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3314$as_echo "no" >&6; } 3315fi 3316 3317 if test "x$ac_ct_STRIP" = x; then 3318 STRIP=":" 3319 else 3320 case $cross_compiling:$ac_tool_warned in 3321yes:) 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3324ac_tool_warned=yes ;; 3325esac 3326 STRIP=$ac_ct_STRIP 3327 fi 3328else 3329 STRIP="$ac_cv_prog_STRIP" 3330fi 3331 3332fi 3333INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3334 3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3336$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3337if test -z "$MKDIR_P"; then 3338 if ${ac_cv_path_mkdir+:} false; then : 3339 $as_echo_n "(cached) " >&6 3340else 3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3342for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3343do 3344 IFS=$as_save_IFS 3345 test -z "$as_dir" && as_dir=. 3346 for ac_prog in mkdir gmkdir; do 3347 for ac_exec_ext in '' $ac_executable_extensions; do 3348 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3349 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3350 'mkdir (GNU coreutils) '* | \ 3351 'mkdir (coreutils) '* | \ 3352 'mkdir (fileutils) '4.1*) 3353 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3354 break 3;; 3355 esac 3356 done 3357 done 3358 done 3359IFS=$as_save_IFS 3360 3361fi 3362 3363 test -d ./--version && rmdir ./--version 3364 if test "${ac_cv_path_mkdir+set}" = set; then 3365 MKDIR_P="$ac_cv_path_mkdir -p" 3366 else 3367 # As a last resort, use the slow shell script. Don't cache a 3368 # value for MKDIR_P within a source directory, because that will 3369 # break other packages using the cache if that directory is 3370 # removed, or if the value is a relative name. 3371 MKDIR_P="$ac_install_sh -d" 3372 fi 3373fi 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3375$as_echo "$MKDIR_P" >&6; } 3376 3377for ac_prog in gawk mawk nawk awk 3378do 3379 # Extract the first word of "$ac_prog", so it can be a program name with args. 3380set dummy $ac_prog; ac_word=$2 3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3382$as_echo_n "checking for $ac_word... " >&6; } 3383if ${ac_cv_prog_AWK+:} false; then : 3384 $as_echo_n "(cached) " >&6 3385else 3386 if test -n "$AWK"; then 3387 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3388else 3389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3390for as_dir in $PATH 3391do 3392 IFS=$as_save_IFS 3393 test -z "$as_dir" && as_dir=. 3394 for ac_exec_ext in '' $ac_executable_extensions; do 3395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3396 ac_cv_prog_AWK="$ac_prog" 3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3398 break 2 3399 fi 3400done 3401 done 3402IFS=$as_save_IFS 3403 3404fi 3405fi 3406AWK=$ac_cv_prog_AWK 3407if test -n "$AWK"; then 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3409$as_echo "$AWK" >&6; } 3410else 3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3412$as_echo "no" >&6; } 3413fi 3414 3415 3416 test -n "$AWK" && break 3417done 3418 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3420$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3421set x ${MAKE-make} 3422ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3423if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3424 $as_echo_n "(cached) " >&6 3425else 3426 cat >conftest.make <<\_ACEOF 3427SHELL = /bin/sh 3428all: 3429 @echo '@@@%%%=$(MAKE)=@@@%%%' 3430_ACEOF 3431# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3432case `${MAKE-make} -f conftest.make 2>/dev/null` in 3433 *@@@%%%=?*=@@@%%%*) 3434 eval ac_cv_prog_make_${ac_make}_set=yes;; 3435 *) 3436 eval ac_cv_prog_make_${ac_make}_set=no;; 3437esac 3438rm -f conftest.make 3439fi 3440if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3442$as_echo "yes" >&6; } 3443 SET_MAKE= 3444else 3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3446$as_echo "no" >&6; } 3447 SET_MAKE="MAKE=${MAKE-make}" 3448fi 3449 3450rm -rf .tst 2>/dev/null 3451mkdir .tst 2>/dev/null 3452if test -d .tst; then 3453 am__leading_dot=. 3454else 3455 am__leading_dot=_ 3456fi 3457rmdir .tst 2>/dev/null 3458 3459# Check whether --enable-silent-rules was given. 3460if test "${enable_silent_rules+set}" = set; then : 3461 enableval=$enable_silent_rules; 3462fi 3463 3464case $enable_silent_rules in # ((( 3465 yes) AM_DEFAULT_VERBOSITY=0;; 3466 no) AM_DEFAULT_VERBOSITY=1;; 3467 *) AM_DEFAULT_VERBOSITY=1;; 3468esac 3469am_make=${MAKE-make} 3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3471$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3472if ${am_cv_make_support_nested_variables+:} false; then : 3473 $as_echo_n "(cached) " >&6 3474else 3475 if $as_echo 'TRUE=$(BAR$(V)) 3476BAR0=false 3477BAR1=true 3478V=1 3479am__doit: 3480 @$(TRUE) 3481.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3482 am_cv_make_support_nested_variables=yes 3483else 3484 am_cv_make_support_nested_variables=no 3485fi 3486fi 3487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3488$as_echo "$am_cv_make_support_nested_variables" >&6; } 3489if test $am_cv_make_support_nested_variables = yes; then 3490 AM_V='$(V)' 3491 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3492else 3493 AM_V=$AM_DEFAULT_VERBOSITY 3494 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3495fi 3496AM_BACKSLASH='\' 3497 3498if test "`cd $srcdir && pwd`" != "`pwd`"; then 3499 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3500 # is not polluted with repeated "-I." 3501 am__isrc=' -I$(srcdir)' 3502 # test to see if srcdir already configured 3503 if test -f $srcdir/config.status; then 3504 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3505 fi 3506fi 3507 3508# test whether we have cygpath 3509if test -z "$CYGPATH_W"; then 3510 if (cygpath --version) >/dev/null 2>/dev/null; then 3511 CYGPATH_W='cygpath -w' 3512 else 3513 CYGPATH_W=echo 3514 fi 3515fi 3516 3517 3518# Define the identity of the package. 3519 PACKAGE='amule' 3520 VERSION='2.3.3' 3521 3522 3523cat >>confdefs.h <<_ACEOF 3524#define PACKAGE "$PACKAGE" 3525_ACEOF 3526 3527 3528cat >>confdefs.h <<_ACEOF 3529#define VERSION "$VERSION" 3530_ACEOF 3531 3532# Some tools Automake needs. 3533 3534ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3535 3536 3537AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3538 3539 3540AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3541 3542 3543AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3544 3545 3546MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3547 3548# For better backward compatibility. To be removed once Automake 1.9.x 3549# dies out for good. For more background, see: 3550# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3551# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3552mkdir_p='$(MKDIR_P)' 3553 3554# We need awk for the "check" target (and possibly the TAP driver). The 3555# system "awk" is bad on some platforms. 3556# Always define AMTAR for backward compatibility. Yes, it's still used 3557# in the wild :-( We should find a proper way to deprecate it ... 3558AMTAR='$${TAR-tar}' 3559 3560 3561# We'll loop over all known methods to create a tar archive until one works. 3562_am_tools='gnutar pax cpio none' 3563 3564am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3565 3566 3567 3568 3569 3570 3571# POSIX will say in a future version that running "rm -f" with no argument 3572# is OK; and we want to be able to make that assumption in our Makefile 3573# recipes. So use an aggressive probe to check that the usage we want is 3574# actually supported "in the wild" to an acceptable degree. 3575# See automake bug#10828. 3576# To make any issue more visible, cause the running configure to be aborted 3577# by default if the 'rm' program in use doesn't match our expectations; the 3578# user can still override this though. 3579if rm -f && rm -fr && rm -rf; then : OK; else 3580 cat >&2 <<'END' 3581Oops! 3582 3583Your 'rm' program seems unable to run without file operands specified 3584on the command line, even when the '-f' option is present. This is contrary 3585to the behaviour of most rm programs out there, and not conforming with 3586the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3587 3588Please tell bug-automake@gnu.org about your system, including the value 3589of your $PATH and any error possibly output before this message. This 3590can help us improve future automake versions. 3591 3592END 3593 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3594 echo 'Configuration will proceed anyway, since you have set the' >&2 3595 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3596 echo >&2 3597 else 3598 cat >&2 <<'END' 3599Aborting the configuration process, to ensure you take notice of the issue. 3600 3601You can download and install GNU coreutils to get an 'rm' implementation 3602that behaves properly: <http://www.gnu.org/software/coreutils/>. 3603 3604If you want to complete the configuration process using your problematic 3605'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3606to "yes", and re-run configure. 3607 3608END 3609 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3610 fi 3611fi 3612 3613# Check whether --enable-silent-rules was given. 3614if test "${enable_silent_rules+set}" = set; then : 3615 enableval=$enable_silent_rules; 3616fi 3617 3618case $enable_silent_rules in # ((( 3619 yes) AM_DEFAULT_VERBOSITY=0;; 3620 no) AM_DEFAULT_VERBOSITY=1;; 3621 *) AM_DEFAULT_VERBOSITY=1;; 3622esac 3623am_make=${MAKE-make} 3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3625$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3626if ${am_cv_make_support_nested_variables+:} false; then : 3627 $as_echo_n "(cached) " >&6 3628else 3629 if $as_echo 'TRUE=$(BAR$(V)) 3630BAR0=false 3631BAR1=true 3632V=1 3633am__doit: 3634 @$(TRUE) 3635.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3636 am_cv_make_support_nested_variables=yes 3637else 3638 am_cv_make_support_nested_variables=no 3639fi 3640fi 3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3642$as_echo "$am_cv_make_support_nested_variables" >&6; } 3643if test $am_cv_make_support_nested_variables = yes; then 3644 AM_V='$(V)' 3645 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3646else 3647 AM_V=$AM_DEFAULT_VERBOSITY 3648 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3649fi 3650AM_BACKSLASH='\' 3651 3652 3653 3654 3655# autoconf 2.70 introduced some incompatibilities that will make the build fail 3656# As a "workaround" reject 2.70 and above for now. 3657 3658 3659 3660ac_config_headers="$ac_config_headers config.h" 3661 3662 3663 3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3665$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3666 # Check whether --enable-maintainer-mode was given. 3667if test "${enable_maintainer_mode+set}" = set; then : 3668 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3669else 3670 USE_MAINTAINER_MODE=no 3671fi 3672 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3674$as_echo "$USE_MAINTAINER_MODE" >&6; } 3675 if test $USE_MAINTAINER_MODE = yes; then 3676 MAINTAINER_MODE_TRUE= 3677 MAINTAINER_MODE_FALSE='#' 3678else 3679 MAINTAINER_MODE_TRUE='#' 3680 MAINTAINER_MODE_FALSE= 3681fi 3682 3683 MAINT=$MAINTAINER_MODE_TRUE 3684 3685 3686 3687# Make sure we can run config.sub. 3688$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3689 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3690 3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3692$as_echo_n "checking build system type... " >&6; } 3693if ${ac_cv_build+:} false; then : 3694 $as_echo_n "(cached) " >&6 3695else 3696 ac_build_alias=$build_alias 3697test "x$ac_build_alias" = x && 3698 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3699test "x$ac_build_alias" = x && 3700 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3701ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3702 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3703 3704fi 3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3706$as_echo "$ac_cv_build" >&6; } 3707case $ac_cv_build in 3708*-*-*) ;; 3709*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3710esac 3711build=$ac_cv_build 3712ac_save_IFS=$IFS; IFS='-' 3713set x $ac_cv_build 3714shift 3715build_cpu=$1 3716build_vendor=$2 3717shift; shift 3718# Remember, the first character of IFS is used to create $*, 3719# except with old shells: 3720build_os=$* 3721IFS=$ac_save_IFS 3722case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3723 3724 3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3726$as_echo_n "checking host system type... " >&6; } 3727if ${ac_cv_host+:} false; then : 3728 $as_echo_n "(cached) " >&6 3729else 3730 if test "x$host_alias" = x; then 3731 ac_cv_host=$ac_cv_build 3732else 3733 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3734 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3735fi 3736 3737fi 3738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3739$as_echo "$ac_cv_host" >&6; } 3740case $ac_cv_host in 3741*-*-*) ;; 3742*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3743esac 3744host=$ac_cv_host 3745ac_save_IFS=$IFS; IFS='-' 3746set x $ac_cv_host 3747shift 3748host_cpu=$1 3749host_vendor=$2 3750shift; shift 3751# Remember, the first character of IFS is used to create $*, 3752# except with old shells: 3753host_os=$* 3754IFS=$ac_save_IFS 3755case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3756 3757 3758 3759 case "${host_os}" in 3760 darwin*) 3761 SYS=darwin 3762 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH"; 3763 MULELDFLAGS="-bind_at_load" 3764 touch src/Scanner.cpp 3765 ;; 3766 openbsd*) 3767 SYS=openbsd 3768 LIBS="$LIBS -L/usr/local/lib" 3769 MULECPPFLAGS="-D__OPENBSD__" 3770 ;; 3771 *cygwin* | *mingw32*) 3772 SYS=win32 3773 MULECPPFLAGS="-DNOMINMAX" 3774 ;; 3775 solaris*) 3776 SYS=solaris 3777 RESOLV_LIB="-lresolv -lnsl" 3778 LIBS="$LIBS -lrt" 3779 ;; 3780 *netbsd*) 3781 SYS=netbsd 3782 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS 3783 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it. 3784 # Still, we prepend them, instead of adding, so the user may override them. 3785 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS" 3786 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS" 3787 ;; 3788 *irix*) 3789 SYS=irix 3790 MULECPPFLAGS="-D__IRIX__" 3791 ;; 3792 *) 3793 SYS=unknown 3794 ;; 3795 esac 3796 3797 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it 3798 if test ${SYS:-unknown} != win32; then : 3799 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5 3801$as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; } 3802 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then : 3803 3804 MULELDFLAGS="$MULELDFLAGS -pthread" 3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3806$as_echo "yes" >&6; } 3807 3808else 3809 3810 MULELDFLAGS="$MULELDFLAGS -lpthread" 3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3812$as_echo "no" >&6; } 3813 3814fi 3815 3816fi 3817 3818 3819 3820mule_backup_CFLAGS="$CFLAGS" 3821mule_backup_CXXFLAGS="$CXXFLAGS" 3822mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS" 3823ac_ext=cpp 3824ac_cpp='$CXXCPP $CPPFLAGS' 3825ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3826ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3827ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3828if test -z "$CXX"; then 3829 if test -n "$CCC"; then 3830 CXX=$CCC 3831 else 3832 if test -n "$ac_tool_prefix"; then 3833 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3834 do 3835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3836set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3838$as_echo_n "checking for $ac_word... " >&6; } 3839if ${ac_cv_prog_CXX+:} false; then : 3840 $as_echo_n "(cached) " >&6 3841else 3842 if test -n "$CXX"; then 3843 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3844else 3845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3846for as_dir in $PATH 3847do 3848 IFS=$as_save_IFS 3849 test -z "$as_dir" && as_dir=. 3850 for ac_exec_ext in '' $ac_executable_extensions; do 3851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3852 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3854 break 2 3855 fi 3856done 3857 done 3858IFS=$as_save_IFS 3859 3860fi 3861fi 3862CXX=$ac_cv_prog_CXX 3863if test -n "$CXX"; then 3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3865$as_echo "$CXX" >&6; } 3866else 3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3868$as_echo "no" >&6; } 3869fi 3870 3871 3872 test -n "$CXX" && break 3873 done 3874fi 3875if test -z "$CXX"; then 3876 ac_ct_CXX=$CXX 3877 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3878do 3879 # Extract the first word of "$ac_prog", so it can be a program name with args. 3880set dummy $ac_prog; ac_word=$2 3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3882$as_echo_n "checking for $ac_word... " >&6; } 3883if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3884 $as_echo_n "(cached) " >&6 3885else 3886 if test -n "$ac_ct_CXX"; then 3887 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3888else 3889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3890for as_dir in $PATH 3891do 3892 IFS=$as_save_IFS 3893 test -z "$as_dir" && as_dir=. 3894 for ac_exec_ext in '' $ac_executable_extensions; do 3895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3896 ac_cv_prog_ac_ct_CXX="$ac_prog" 3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3898 break 2 3899 fi 3900done 3901 done 3902IFS=$as_save_IFS 3903 3904fi 3905fi 3906ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3907if test -n "$ac_ct_CXX"; then 3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3909$as_echo "$ac_ct_CXX" >&6; } 3910else 3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3912$as_echo "no" >&6; } 3913fi 3914 3915 3916 test -n "$ac_ct_CXX" && break 3917done 3918 3919 if test "x$ac_ct_CXX" = x; then 3920 CXX="g++" 3921 else 3922 case $cross_compiling:$ac_tool_warned in 3923yes:) 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3926ac_tool_warned=yes ;; 3927esac 3928 CXX=$ac_ct_CXX 3929 fi 3930fi 3931 3932 fi 3933fi 3934# Provide some information about the compiler. 3935$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3936set X $ac_compile 3937ac_compiler=$2 3938for ac_option in --version -v -V -qversion; do 3939 { { ac_try="$ac_compiler $ac_option >&5" 3940case "(($ac_try" in 3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3942 *) ac_try_echo=$ac_try;; 3943esac 3944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3945$as_echo "$ac_try_echo"; } >&5 3946 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3947 ac_status=$? 3948 if test -s conftest.err; then 3949 sed '10a\ 3950... rest of stderr output deleted ... 3951 10q' conftest.err >conftest.er1 3952 cat conftest.er1 >&5 3953 fi 3954 rm -f conftest.er1 conftest.err 3955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3956 test $ac_status = 0; } 3957done 3958 3959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3960/* end confdefs.h. */ 3961 3962int 3963main () 3964{ 3965 3966 ; 3967 return 0; 3968} 3969_ACEOF 3970ac_clean_files_save=$ac_clean_files 3971ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3972# Try to create an executable without -o first, disregard a.out. 3973# It will help us diagnose broken compilers, and finding out an intuition 3974# of exeext. 3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 3976$as_echo_n "checking whether the C++ compiler works... " >&6; } 3977ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3978 3979# The possible output files: 3980ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3981 3982ac_rmfiles= 3983for ac_file in $ac_files 3984do 3985 case $ac_file in 3986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3987 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3988 esac 3989done 3990rm -f $ac_rmfiles 3991 3992if { { ac_try="$ac_link_default" 3993case "(($ac_try" in 3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3995 *) ac_try_echo=$ac_try;; 3996esac 3997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3998$as_echo "$ac_try_echo"; } >&5 3999 (eval "$ac_link_default") 2>&5 4000 ac_status=$? 4001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4002 test $ac_status = 0; }; then : 4003 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4004# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4005# in a Makefile. We should not override ac_cv_exeext if it was cached, 4006# so that the user can short-circuit this test for compilers unknown to 4007# Autoconf. 4008for ac_file in $ac_files '' 4009do 4010 test -f "$ac_file" || continue 4011 case $ac_file in 4012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4013 ;; 4014 [ab].out ) 4015 # We found the default executable, but exeext='' is most 4016 # certainly right. 4017 break;; 4018 *.* ) 4019 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4020 then :; else 4021 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4022 fi 4023 # We set ac_cv_exeext here because the later test for it is not 4024 # safe: cross compilers may not add the suffix if given an `-o' 4025 # argument, so we may need to know it at that point already. 4026 # Even if this section looks crufty: it has the advantage of 4027 # actually working. 4028 break;; 4029 * ) 4030 break;; 4031 esac 4032done 4033test "$ac_cv_exeext" = no && ac_cv_exeext= 4034 4035else 4036 ac_file='' 4037fi 4038if test -z "$ac_file"; then : 4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4040$as_echo "no" >&6; } 4041$as_echo "$as_me: failed program was:" >&5 4042sed 's/^/| /' conftest.$ac_ext >&5 4043 4044{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4046as_fn_error 77 "C++ compiler cannot create executables 4047See \`config.log' for more details" "$LINENO" 5; } 4048else 4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4050$as_echo "yes" >&6; } 4051fi 4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 4053$as_echo_n "checking for C++ compiler default output file name... " >&6; } 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4055$as_echo "$ac_file" >&6; } 4056ac_exeext=$ac_cv_exeext 4057 4058rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4059ac_clean_files=$ac_clean_files_save 4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4061$as_echo_n "checking for suffix of executables... " >&6; } 4062if { { ac_try="$ac_link" 4063case "(($ac_try" in 4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4065 *) ac_try_echo=$ac_try;; 4066esac 4067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4068$as_echo "$ac_try_echo"; } >&5 4069 (eval "$ac_link") 2>&5 4070 ac_status=$? 4071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4072 test $ac_status = 0; }; then : 4073 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4074# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4075# work properly (i.e., refer to `conftest.exe'), while it won't with 4076# `rm'. 4077for ac_file in conftest.exe conftest conftest.*; do 4078 test -f "$ac_file" || continue 4079 case $ac_file in 4080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4081 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4082 break;; 4083 * ) break;; 4084 esac 4085done 4086else 4087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4089as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4090See \`config.log' for more details" "$LINENO" 5; } 4091fi 4092rm -f conftest conftest$ac_cv_exeext 4093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4094$as_echo "$ac_cv_exeext" >&6; } 4095 4096rm -f conftest.$ac_ext 4097EXEEXT=$ac_cv_exeext 4098ac_exeext=$EXEEXT 4099cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4100/* end confdefs.h. */ 4101#include <stdio.h> 4102int 4103main () 4104{ 4105FILE *f = fopen ("conftest.out", "w"); 4106 return ferror (f) || fclose (f) != 0; 4107 4108 ; 4109 return 0; 4110} 4111_ACEOF 4112ac_clean_files="$ac_clean_files conftest.out" 4113# Check that the compiler produces executables we can run. If not, either 4114# the compiler is broken, or we cross compile. 4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4116$as_echo_n "checking whether we are cross compiling... " >&6; } 4117if test "$cross_compiling" != yes; then 4118 { { ac_try="$ac_link" 4119case "(($ac_try" in 4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4121 *) ac_try_echo=$ac_try;; 4122esac 4123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4124$as_echo "$ac_try_echo"; } >&5 4125 (eval "$ac_link") 2>&5 4126 ac_status=$? 4127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4128 test $ac_status = 0; } 4129 if { ac_try='./conftest$ac_cv_exeext' 4130 { { case "(($ac_try" in 4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4132 *) ac_try_echo=$ac_try;; 4133esac 4134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4135$as_echo "$ac_try_echo"; } >&5 4136 (eval "$ac_try") 2>&5 4137 ac_status=$? 4138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4139 test $ac_status = 0; }; }; then 4140 cross_compiling=no 4141 else 4142 if test "$cross_compiling" = maybe; then 4143 cross_compiling=yes 4144 else 4145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4147as_fn_error $? "cannot run C++ compiled programs. 4148If you meant to cross compile, use \`--host'. 4149See \`config.log' for more details" "$LINENO" 5; } 4150 fi 4151 fi 4152fi 4153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4154$as_echo "$cross_compiling" >&6; } 4155 4156rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4157ac_clean_files=$ac_clean_files_save 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4159$as_echo_n "checking for suffix of object files... " >&6; } 4160if ${ac_cv_objext+:} false; then : 4161 $as_echo_n "(cached) " >&6 4162else 4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4164/* end confdefs.h. */ 4165 4166int 4167main () 4168{ 4169 4170 ; 4171 return 0; 4172} 4173_ACEOF 4174rm -f conftest.o conftest.obj 4175if { { ac_try="$ac_compile" 4176case "(($ac_try" in 4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4178 *) ac_try_echo=$ac_try;; 4179esac 4180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4181$as_echo "$ac_try_echo"; } >&5 4182 (eval "$ac_compile") 2>&5 4183 ac_status=$? 4184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4185 test $ac_status = 0; }; then : 4186 for ac_file in conftest.o conftest.obj conftest.*; do 4187 test -f "$ac_file" || continue; 4188 case $ac_file in 4189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4191 break;; 4192 esac 4193done 4194else 4195 $as_echo "$as_me: failed program was:" >&5 4196sed 's/^/| /' conftest.$ac_ext >&5 4197 4198{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4200as_fn_error $? "cannot compute suffix of object files: cannot compile 4201See \`config.log' for more details" "$LINENO" 5; } 4202fi 4203rm -f conftest.$ac_cv_objext conftest.$ac_ext 4204fi 4205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4206$as_echo "$ac_cv_objext" >&6; } 4207OBJEXT=$ac_cv_objext 4208ac_objext=$OBJEXT 4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4210$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4211if ${ac_cv_cxx_compiler_gnu+:} false; then : 4212 $as_echo_n "(cached) " >&6 4213else 4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4215/* end confdefs.h. */ 4216 4217int 4218main () 4219{ 4220#ifndef __GNUC__ 4221 choke me 4222#endif 4223 4224 ; 4225 return 0; 4226} 4227_ACEOF 4228if ac_fn_cxx_try_compile "$LINENO"; then : 4229 ac_compiler_gnu=yes 4230else 4231 ac_compiler_gnu=no 4232fi 4233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4234ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4235 4236fi 4237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4238$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4239if test $ac_compiler_gnu = yes; then 4240 GXX=yes 4241else 4242 GXX= 4243fi 4244ac_test_CXXFLAGS=${CXXFLAGS+set} 4245ac_save_CXXFLAGS=$CXXFLAGS 4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4247$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4248if ${ac_cv_prog_cxx_g+:} false; then : 4249 $as_echo_n "(cached) " >&6 4250else 4251 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4252 ac_cxx_werror_flag=yes 4253 ac_cv_prog_cxx_g=no 4254 CXXFLAGS="-g" 4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4256/* end confdefs.h. */ 4257 4258int 4259main () 4260{ 4261 4262 ; 4263 return 0; 4264} 4265_ACEOF 4266if ac_fn_cxx_try_compile "$LINENO"; then : 4267 ac_cv_prog_cxx_g=yes 4268else 4269 CXXFLAGS="" 4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4271/* end confdefs.h. */ 4272 4273int 4274main () 4275{ 4276 4277 ; 4278 return 0; 4279} 4280_ACEOF 4281if ac_fn_cxx_try_compile "$LINENO"; then : 4282 4283else 4284 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4285 CXXFLAGS="-g" 4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4287/* end confdefs.h. */ 4288 4289int 4290main () 4291{ 4292 4293 ; 4294 return 0; 4295} 4296_ACEOF 4297if ac_fn_cxx_try_compile "$LINENO"; then : 4298 ac_cv_prog_cxx_g=yes 4299fi 4300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4301fi 4302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4303fi 4304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4305 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4306fi 4307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4308$as_echo "$ac_cv_prog_cxx_g" >&6; } 4309if test "$ac_test_CXXFLAGS" = set; then 4310 CXXFLAGS=$ac_save_CXXFLAGS 4311elif test $ac_cv_prog_cxx_g = yes; then 4312 if test "$GXX" = yes; then 4313 CXXFLAGS="-g -O2" 4314 else 4315 CXXFLAGS="-g" 4316 fi 4317else 4318 if test "$GXX" = yes; then 4319 CXXFLAGS="-O2" 4320 else 4321 CXXFLAGS= 4322 fi 4323fi 4324ac_ext=c 4325ac_cpp='$CPP $CPPFLAGS' 4326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4328ac_compiler_gnu=$ac_cv_c_compiler_gnu 4329DEPDIR="${am__leading_dot}deps" 4330 4331ac_config_commands="$ac_config_commands depfiles" 4332 4333 4334am_make=${MAKE-make} 4335cat > confinc << 'END' 4336am__doit: 4337 @echo this is the am__doit target 4338.PHONY: am__doit 4339END 4340# If we don't find an include directive, just comment out the code. 4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4342$as_echo_n "checking for style of include used by $am_make... " >&6; } 4343am__include="#" 4344am__quote= 4345_am_result=none 4346# First try GNU make style include. 4347echo "include confinc" > confmf 4348# Ignore all kinds of additional output from 'make'. 4349case `$am_make -s -f confmf 2> /dev/null` in #( 4350*the\ am__doit\ target*) 4351 am__include=include 4352 am__quote= 4353 _am_result=GNU 4354 ;; 4355esac 4356# Now try BSD make style include. 4357if test "$am__include" = "#"; then 4358 echo '.include "confinc"' > confmf 4359 case `$am_make -s -f confmf 2> /dev/null` in #( 4360 *the\ am__doit\ target*) 4361 am__include=.include 4362 am__quote="\"" 4363 _am_result=BSD 4364 ;; 4365 esac 4366fi 4367 4368 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4370$as_echo "$_am_result" >&6; } 4371rm -f confinc confmf 4372 4373# Check whether --enable-dependency-tracking was given. 4374if test "${enable_dependency_tracking+set}" = set; then : 4375 enableval=$enable_dependency_tracking; 4376fi 4377 4378if test "x$enable_dependency_tracking" != xno; then 4379 am_depcomp="$ac_aux_dir/depcomp" 4380 AMDEPBACKSLASH='\' 4381 am__nodep='_no' 4382fi 4383 if test "x$enable_dependency_tracking" != xno; then 4384 AMDEP_TRUE= 4385 AMDEP_FALSE='#' 4386else 4387 AMDEP_TRUE='#' 4388 AMDEP_FALSE= 4389fi 4390 4391 4392 4393depcc="$CXX" am_compiler_list= 4394 4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4396$as_echo_n "checking dependency style of $depcc... " >&6; } 4397if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4398 $as_echo_n "(cached) " >&6 4399else 4400 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4401 # We make a subdir and do the tests there. Otherwise we can end up 4402 # making bogus files that we don't know about and never remove. For 4403 # instance it was reported that on HP-UX the gcc test will end up 4404 # making a dummy file named 'D' -- because '-MD' means "put the output 4405 # in D". 4406 rm -rf conftest.dir 4407 mkdir conftest.dir 4408 # Copy depcomp to subdir because otherwise we won't find it if we're 4409 # using a relative directory. 4410 cp "$am_depcomp" conftest.dir 4411 cd conftest.dir 4412 # We will build objects and dependencies in a subdirectory because 4413 # it helps to detect inapplicable dependency modes. For instance 4414 # both Tru64's cc and ICC support -MD to output dependencies as a 4415 # side effect of compilation, but ICC will put the dependencies in 4416 # the current directory while Tru64 will put them in the object 4417 # directory. 4418 mkdir sub 4419 4420 am_cv_CXX_dependencies_compiler_type=none 4421 if test "$am_compiler_list" = ""; then 4422 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4423 fi 4424 am__universal=false 4425 case " $depcc " in #( 4426 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4427 esac 4428 4429 for depmode in $am_compiler_list; do 4430 # Setup a source with many dependencies, because some compilers 4431 # like to wrap large dependency lists on column 80 (with \), and 4432 # we should not choose a depcomp mode which is confused by this. 4433 # 4434 # We need to recreate these files for each test, as the compiler may 4435 # overwrite some of them when testing with obscure command lines. 4436 # This happens at least with the AIX C compiler. 4437 : > sub/conftest.c 4438 for i in 1 2 3 4 5 6; do 4439 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4440 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4441 # Solaris 10 /bin/sh. 4442 echo '/* dummy */' > sub/conftst$i.h 4443 done 4444 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4445 4446 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4447 # mode. It turns out that the SunPro C++ compiler does not properly 4448 # handle '-M -o', and we need to detect this. Also, some Intel 4449 # versions had trouble with output in subdirs. 4450 am__obj=sub/conftest.${OBJEXT-o} 4451 am__minus_obj="-o $am__obj" 4452 case $depmode in 4453 gcc) 4454 # This depmode causes a compiler race in universal mode. 4455 test "$am__universal" = false || continue 4456 ;; 4457 nosideeffect) 4458 # After this tag, mechanisms are not by side-effect, so they'll 4459 # only be used when explicitly requested. 4460 if test "x$enable_dependency_tracking" = xyes; then 4461 continue 4462 else 4463 break 4464 fi 4465 ;; 4466 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4467 # This compiler won't grok '-c -o', but also, the minuso test has 4468 # not run yet. These depmodes are late enough in the game, and 4469 # so weak that their functioning should not be impacted. 4470 am__obj=conftest.${OBJEXT-o} 4471 am__minus_obj= 4472 ;; 4473 none) break ;; 4474 esac 4475 if depmode=$depmode \ 4476 source=sub/conftest.c object=$am__obj \ 4477 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4478 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4479 >/dev/null 2>conftest.err && 4480 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4481 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4482 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4483 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4484 # icc doesn't choke on unknown options, it will just issue warnings 4485 # or remarks (even with -Werror). So we grep stderr for any message 4486 # that says an option was ignored or not supported. 4487 # When given -MP, icc 7.0 and 7.1 complain thusly: 4488 # icc: Command line warning: ignoring option '-M'; no argument required 4489 # The diagnosis changed in icc 8.0: 4490 # icc: Command line remark: option '-MP' not supported 4491 if (grep 'ignoring option' conftest.err || 4492 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4493 am_cv_CXX_dependencies_compiler_type=$depmode 4494 break 4495 fi 4496 fi 4497 done 4498 4499 cd .. 4500 rm -rf conftest.dir 4501else 4502 am_cv_CXX_dependencies_compiler_type=none 4503fi 4504 4505fi 4506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4507$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4508CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4509 4510 if 4511 test "x$enable_dependency_tracking" != xno \ 4512 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4513 am__fastdepCXX_TRUE= 4514 am__fastdepCXX_FALSE='#' 4515else 4516 am__fastdepCXX_TRUE='#' 4517 am__fastdepCXX_FALSE= 4518fi 4519 4520 4521ac_ext=cpp 4522ac_cpp='$CXXCPP $CPPFLAGS' 4523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 4527$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 4528if test -z "$CXXCPP"; then 4529 if ${ac_cv_prog_CXXCPP+:} false; then : 4530 $as_echo_n "(cached) " >&6 4531else 4532 # Double quotes because CXXCPP needs to be expanded 4533 for CXXCPP in "$CXX -E" "/lib/cpp" 4534 do 4535 ac_preproc_ok=false 4536for ac_cxx_preproc_warn_flag in '' yes 4537do 4538 # Use a header file that comes with gcc, so configuring glibc 4539 # with a fresh cross-compiler works. 4540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4541 # <limits.h> exists even on freestanding compilers. 4542 # On the NeXT, cc -E runs the code through the compiler's parser, 4543 # not just through cpp. "Syntax error" is here to catch this case. 4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4545/* end confdefs.h. */ 4546#ifdef __STDC__ 4547# include <limits.h> 4548#else 4549# include <assert.h> 4550#endif 4551 Syntax error 4552_ACEOF 4553if ac_fn_cxx_try_cpp "$LINENO"; then : 4554 4555else 4556 # Broken: fails on valid input. 4557continue 4558fi 4559rm -f conftest.err conftest.i conftest.$ac_ext 4560 4561 # OK, works on sane cases. Now check whether nonexistent headers 4562 # can be detected and how. 4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4564/* end confdefs.h. */ 4565#include <ac_nonexistent.h> 4566_ACEOF 4567if ac_fn_cxx_try_cpp "$LINENO"; then : 4568 # Broken: success on invalid input. 4569continue 4570else 4571 # Passes both tests. 4572ac_preproc_ok=: 4573break 4574fi 4575rm -f conftest.err conftest.i conftest.$ac_ext 4576 4577done 4578# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4579rm -f conftest.i conftest.err conftest.$ac_ext 4580if $ac_preproc_ok; then : 4581 break 4582fi 4583 4584 done 4585 ac_cv_prog_CXXCPP=$CXXCPP 4586 4587fi 4588 CXXCPP=$ac_cv_prog_CXXCPP 4589else 4590 ac_cv_prog_CXXCPP=$CXXCPP 4591fi 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 4593$as_echo "$CXXCPP" >&6; } 4594ac_preproc_ok=false 4595for ac_cxx_preproc_warn_flag in '' yes 4596do 4597 # Use a header file that comes with gcc, so configuring glibc 4598 # with a fresh cross-compiler works. 4599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4600 # <limits.h> exists even on freestanding compilers. 4601 # On the NeXT, cc -E runs the code through the compiler's parser, 4602 # not just through cpp. "Syntax error" is here to catch this case. 4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4604/* end confdefs.h. */ 4605#ifdef __STDC__ 4606# include <limits.h> 4607#else 4608# include <assert.h> 4609#endif 4610 Syntax error 4611_ACEOF 4612if ac_fn_cxx_try_cpp "$LINENO"; then : 4613 4614else 4615 # Broken: fails on valid input. 4616continue 4617fi 4618rm -f conftest.err conftest.i conftest.$ac_ext 4619 4620 # OK, works on sane cases. Now check whether nonexistent headers 4621 # can be detected and how. 4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4623/* end confdefs.h. */ 4624#include <ac_nonexistent.h> 4625_ACEOF 4626if ac_fn_cxx_try_cpp "$LINENO"; then : 4627 # Broken: success on invalid input. 4628continue 4629else 4630 # Passes both tests. 4631ac_preproc_ok=: 4632break 4633fi 4634rm -f conftest.err conftest.i conftest.$ac_ext 4635 4636done 4637# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4638rm -f conftest.i conftest.err conftest.$ac_ext 4639if $ac_preproc_ok; then : 4640 4641else 4642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4644as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 4645See \`config.log' for more details" "$LINENO" 5; } 4646fi 4647 4648ac_ext=c 4649ac_cpp='$CPP $CPPFLAGS' 4650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4652ac_compiler_gnu=$ac_cv_c_compiler_gnu 4653 4654ac_ext=c 4655ac_cpp='$CPP $CPPFLAGS' 4656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4658ac_compiler_gnu=$ac_cv_c_compiler_gnu 4659if test -n "$ac_tool_prefix"; then 4660 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4661set dummy ${ac_tool_prefix}gcc; ac_word=$2 4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4663$as_echo_n "checking for $ac_word... " >&6; } 4664if ${ac_cv_prog_CC+:} false; then : 4665 $as_echo_n "(cached) " >&6 4666else 4667 if test -n "$CC"; then 4668 ac_cv_prog_CC="$CC" # Let the user override the test. 4669else 4670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4671for as_dir in $PATH 4672do 4673 IFS=$as_save_IFS 4674 test -z "$as_dir" && as_dir=. 4675 for ac_exec_ext in '' $ac_executable_extensions; do 4676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4677 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4679 break 2 4680 fi 4681done 4682 done 4683IFS=$as_save_IFS 4684 4685fi 4686fi 4687CC=$ac_cv_prog_CC 4688if test -n "$CC"; then 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4690$as_echo "$CC" >&6; } 4691else 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4693$as_echo "no" >&6; } 4694fi 4695 4696 4697fi 4698if test -z "$ac_cv_prog_CC"; then 4699 ac_ct_CC=$CC 4700 # Extract the first word of "gcc", so it can be a program name with args. 4701set dummy gcc; ac_word=$2 4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4703$as_echo_n "checking for $ac_word... " >&6; } 4704if ${ac_cv_prog_ac_ct_CC+:} false; then : 4705 $as_echo_n "(cached) " >&6 4706else 4707 if test -n "$ac_ct_CC"; then 4708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4709else 4710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4711for as_dir in $PATH 4712do 4713 IFS=$as_save_IFS 4714 test -z "$as_dir" && as_dir=. 4715 for ac_exec_ext in '' $ac_executable_extensions; do 4716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4717 ac_cv_prog_ac_ct_CC="gcc" 4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4719 break 2 4720 fi 4721done 4722 done 4723IFS=$as_save_IFS 4724 4725fi 4726fi 4727ac_ct_CC=$ac_cv_prog_ac_ct_CC 4728if test -n "$ac_ct_CC"; then 4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4730$as_echo "$ac_ct_CC" >&6; } 4731else 4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4733$as_echo "no" >&6; } 4734fi 4735 4736 if test "x$ac_ct_CC" = x; then 4737 CC="" 4738 else 4739 case $cross_compiling:$ac_tool_warned in 4740yes:) 4741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4743ac_tool_warned=yes ;; 4744esac 4745 CC=$ac_ct_CC 4746 fi 4747else 4748 CC="$ac_cv_prog_CC" 4749fi 4750 4751if test -z "$CC"; then 4752 if test -n "$ac_tool_prefix"; then 4753 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4754set dummy ${ac_tool_prefix}cc; ac_word=$2 4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4756$as_echo_n "checking for $ac_word... " >&6; } 4757if ${ac_cv_prog_CC+:} false; then : 4758 $as_echo_n "(cached) " >&6 4759else 4760 if test -n "$CC"; then 4761 ac_cv_prog_CC="$CC" # Let the user override the test. 4762else 4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4764for as_dir in $PATH 4765do 4766 IFS=$as_save_IFS 4767 test -z "$as_dir" && as_dir=. 4768 for ac_exec_ext in '' $ac_executable_extensions; do 4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4770 ac_cv_prog_CC="${ac_tool_prefix}cc" 4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4772 break 2 4773 fi 4774done 4775 done 4776IFS=$as_save_IFS 4777 4778fi 4779fi 4780CC=$ac_cv_prog_CC 4781if test -n "$CC"; then 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4783$as_echo "$CC" >&6; } 4784else 4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4786$as_echo "no" >&6; } 4787fi 4788 4789 4790 fi 4791fi 4792if test -z "$CC"; then 4793 # Extract the first word of "cc", so it can be a program name with args. 4794set dummy cc; ac_word=$2 4795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4796$as_echo_n "checking for $ac_word... " >&6; } 4797if ${ac_cv_prog_CC+:} false; then : 4798 $as_echo_n "(cached) " >&6 4799else 4800 if test -n "$CC"; then 4801 ac_cv_prog_CC="$CC" # Let the user override the test. 4802else 4803 ac_prog_rejected=no 4804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4805for as_dir in $PATH 4806do 4807 IFS=$as_save_IFS 4808 test -z "$as_dir" && as_dir=. 4809 for ac_exec_ext in '' $ac_executable_extensions; do 4810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4812 ac_prog_rejected=yes 4813 continue 4814 fi 4815 ac_cv_prog_CC="cc" 4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4817 break 2 4818 fi 4819done 4820 done 4821IFS=$as_save_IFS 4822 4823if test $ac_prog_rejected = yes; then 4824 # We found a bogon in the path, so make sure we never use it. 4825 set dummy $ac_cv_prog_CC 4826 shift 4827 if test $# != 0; then 4828 # We chose a different compiler from the bogus one. 4829 # However, it has the same basename, so the bogon will be chosen 4830 # first if we set CC to just the basename; use the full file name. 4831 shift 4832 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4833 fi 4834fi 4835fi 4836fi 4837CC=$ac_cv_prog_CC 4838if test -n "$CC"; then 4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4840$as_echo "$CC" >&6; } 4841else 4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4843$as_echo "no" >&6; } 4844fi 4845 4846 4847fi 4848if test -z "$CC"; then 4849 if test -n "$ac_tool_prefix"; then 4850 for ac_prog in cl.exe 4851 do 4852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4853set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4855$as_echo_n "checking for $ac_word... " >&6; } 4856if ${ac_cv_prog_CC+:} false; then : 4857 $as_echo_n "(cached) " >&6 4858else 4859 if test -n "$CC"; then 4860 ac_cv_prog_CC="$CC" # Let the user override the test. 4861else 4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4863for as_dir in $PATH 4864do 4865 IFS=$as_save_IFS 4866 test -z "$as_dir" && as_dir=. 4867 for ac_exec_ext in '' $ac_executable_extensions; do 4868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4871 break 2 4872 fi 4873done 4874 done 4875IFS=$as_save_IFS 4876 4877fi 4878fi 4879CC=$ac_cv_prog_CC 4880if test -n "$CC"; then 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4882$as_echo "$CC" >&6; } 4883else 4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4885$as_echo "no" >&6; } 4886fi 4887 4888 4889 test -n "$CC" && break 4890 done 4891fi 4892if test -z "$CC"; then 4893 ac_ct_CC=$CC 4894 for ac_prog in cl.exe 4895do 4896 # Extract the first word of "$ac_prog", so it can be a program name with args. 4897set dummy $ac_prog; ac_word=$2 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4899$as_echo_n "checking for $ac_word... " >&6; } 4900if ${ac_cv_prog_ac_ct_CC+:} false; then : 4901 $as_echo_n "(cached) " >&6 4902else 4903 if test -n "$ac_ct_CC"; then 4904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4905else 4906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4907for as_dir in $PATH 4908do 4909 IFS=$as_save_IFS 4910 test -z "$as_dir" && as_dir=. 4911 for ac_exec_ext in '' $ac_executable_extensions; do 4912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4913 ac_cv_prog_ac_ct_CC="$ac_prog" 4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4915 break 2 4916 fi 4917done 4918 done 4919IFS=$as_save_IFS 4920 4921fi 4922fi 4923ac_ct_CC=$ac_cv_prog_ac_ct_CC 4924if test -n "$ac_ct_CC"; then 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4926$as_echo "$ac_ct_CC" >&6; } 4927else 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4929$as_echo "no" >&6; } 4930fi 4931 4932 4933 test -n "$ac_ct_CC" && break 4934done 4935 4936 if test "x$ac_ct_CC" = x; then 4937 CC="" 4938 else 4939 case $cross_compiling:$ac_tool_warned in 4940yes:) 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4943ac_tool_warned=yes ;; 4944esac 4945 CC=$ac_ct_CC 4946 fi 4947fi 4948 4949fi 4950 4951 4952test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4954as_fn_error $? "no acceptable C compiler found in \$PATH 4955See \`config.log' for more details" "$LINENO" 5; } 4956 4957# Provide some information about the compiler. 4958$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4959set X $ac_compile 4960ac_compiler=$2 4961for ac_option in --version -v -V -qversion; do 4962 { { ac_try="$ac_compiler $ac_option >&5" 4963case "(($ac_try" in 4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4965 *) ac_try_echo=$ac_try;; 4966esac 4967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4968$as_echo "$ac_try_echo"; } >&5 4969 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4970 ac_status=$? 4971 if test -s conftest.err; then 4972 sed '10a\ 4973... rest of stderr output deleted ... 4974 10q' conftest.err >conftest.er1 4975 cat conftest.er1 >&5 4976 fi 4977 rm -f conftest.er1 conftest.err 4978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4979 test $ac_status = 0; } 4980done 4981 4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4983$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4984if ${ac_cv_c_compiler_gnu+:} false; then : 4985 $as_echo_n "(cached) " >&6 4986else 4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4988/* end confdefs.h. */ 4989 4990int 4991main () 4992{ 4993#ifndef __GNUC__ 4994 choke me 4995#endif 4996 4997 ; 4998 return 0; 4999} 5000_ACEOF 5001if ac_fn_c_try_compile "$LINENO"; then : 5002 ac_compiler_gnu=yes 5003else 5004 ac_compiler_gnu=no 5005fi 5006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5007ac_cv_c_compiler_gnu=$ac_compiler_gnu 5008 5009fi 5010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5011$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5012if test $ac_compiler_gnu = yes; then 5013 GCC=yes 5014else 5015 GCC= 5016fi 5017ac_test_CFLAGS=${CFLAGS+set} 5018ac_save_CFLAGS=$CFLAGS 5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5020$as_echo_n "checking whether $CC accepts -g... " >&6; } 5021if ${ac_cv_prog_cc_g+:} false; then : 5022 $as_echo_n "(cached) " >&6 5023else 5024 ac_save_c_werror_flag=$ac_c_werror_flag 5025 ac_c_werror_flag=yes 5026 ac_cv_prog_cc_g=no 5027 CFLAGS="-g" 5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5029/* end confdefs.h. */ 5030 5031int 5032main () 5033{ 5034 5035 ; 5036 return 0; 5037} 5038_ACEOF 5039if ac_fn_c_try_compile "$LINENO"; then : 5040 ac_cv_prog_cc_g=yes 5041else 5042 CFLAGS="" 5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5044/* end confdefs.h. */ 5045 5046int 5047main () 5048{ 5049 5050 ; 5051 return 0; 5052} 5053_ACEOF 5054if ac_fn_c_try_compile "$LINENO"; then : 5055 5056else 5057 ac_c_werror_flag=$ac_save_c_werror_flag 5058 CFLAGS="-g" 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5060/* end confdefs.h. */ 5061 5062int 5063main () 5064{ 5065 5066 ; 5067 return 0; 5068} 5069_ACEOF 5070if ac_fn_c_try_compile "$LINENO"; then : 5071 ac_cv_prog_cc_g=yes 5072fi 5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5074fi 5075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5076fi 5077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5078 ac_c_werror_flag=$ac_save_c_werror_flag 5079fi 5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5081$as_echo "$ac_cv_prog_cc_g" >&6; } 5082if test "$ac_test_CFLAGS" = set; then 5083 CFLAGS=$ac_save_CFLAGS 5084elif test $ac_cv_prog_cc_g = yes; then 5085 if test "$GCC" = yes; then 5086 CFLAGS="-g -O2" 5087 else 5088 CFLAGS="-g" 5089 fi 5090else 5091 if test "$GCC" = yes; then 5092 CFLAGS="-O2" 5093 else 5094 CFLAGS= 5095 fi 5096fi 5097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5098$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5099if ${ac_cv_prog_cc_c89+:} false; then : 5100 $as_echo_n "(cached) " >&6 5101else 5102 ac_cv_prog_cc_c89=no 5103ac_save_CC=$CC 5104cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5105/* end confdefs.h. */ 5106#include <stdarg.h> 5107#include <stdio.h> 5108struct stat; 5109/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5110struct buf { int x; }; 5111FILE * (*rcsopen) (struct buf *, struct stat *, int); 5112static char *e (p, i) 5113 char **p; 5114 int i; 5115{ 5116 return p[i]; 5117} 5118static char *f (char * (*g) (char **, int), char **p, ...) 5119{ 5120 char *s; 5121 va_list v; 5122 va_start (v,p); 5123 s = g (p, va_arg (v,int)); 5124 va_end (v); 5125 return s; 5126} 5127 5128/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5129 function prototypes and stuff, but not '\xHH' hex character constants. 5130 These don't provoke an error unfortunately, instead are silently treated 5131 as 'x'. The following induces an error, until -std is added to get 5132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5133 array size at least. It's necessary to write '\x00'==0 to get something 5134 that's true only with -std. */ 5135int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5136 5137/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5138 inside strings and character constants. */ 5139#define FOO(x) 'x' 5140int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5141 5142int test (int i, double x); 5143struct s1 {int (*f) (int a);}; 5144struct s2 {int (*f) (double a);}; 5145int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5146int argc; 5147char **argv; 5148int 5149main () 5150{ 5151return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5152 ; 5153 return 0; 5154} 5155_ACEOF 5156for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5157 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5158do 5159 CC="$ac_save_CC $ac_arg" 5160 if ac_fn_c_try_compile "$LINENO"; then : 5161 ac_cv_prog_cc_c89=$ac_arg 5162fi 5163rm -f core conftest.err conftest.$ac_objext 5164 test "x$ac_cv_prog_cc_c89" != "xno" && break 5165done 5166rm -f conftest.$ac_ext 5167CC=$ac_save_CC 5168 5169fi 5170# AC_CACHE_VAL 5171case "x$ac_cv_prog_cc_c89" in 5172 x) 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5174$as_echo "none needed" >&6; } ;; 5175 xno) 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5177$as_echo "unsupported" >&6; } ;; 5178 *) 5179 CC="$CC $ac_cv_prog_cc_c89" 5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5181$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5182esac 5183if test "x$ac_cv_prog_cc_c89" != xno; then : 5184 5185fi 5186 5187ac_ext=c 5188ac_cpp='$CPP $CPPFLAGS' 5189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5191ac_compiler_gnu=$ac_cv_c_compiler_gnu 5192 5193ac_ext=c 5194ac_cpp='$CPP $CPPFLAGS' 5195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5197ac_compiler_gnu=$ac_cv_c_compiler_gnu 5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5199$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5200if ${am_cv_prog_cc_c_o+:} false; then : 5201 $as_echo_n "(cached) " >&6 5202else 5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5204/* end confdefs.h. */ 5205 5206int 5207main () 5208{ 5209 5210 ; 5211 return 0; 5212} 5213_ACEOF 5214 # Make sure it works both with $CC and with simple cc. 5215 # Following AC_PROG_CC_C_O, we do the test twice because some 5216 # compilers refuse to overwrite an existing .o file with -o, 5217 # though they will create one. 5218 am_cv_prog_cc_c_o=yes 5219 for am_i in 1 2; do 5220 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5221 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5222 ac_status=$? 5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5224 (exit $ac_status); } \ 5225 && test -f conftest2.$ac_objext; then 5226 : OK 5227 else 5228 am_cv_prog_cc_c_o=no 5229 break 5230 fi 5231 done 5232 rm -f core conftest* 5233 unset am_i 5234fi 5235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5236$as_echo "$am_cv_prog_cc_c_o" >&6; } 5237if test "$am_cv_prog_cc_c_o" != yes; then 5238 # Losing compiler, so override with the script. 5239 # FIXME: It is wrong to rewrite CC. 5240 # But if we don't then we get into trouble of one sort or another. 5241 # A longer-term fix would be to have automake use am__CC in this case, 5242 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5243 CC="$am_aux_dir/compile $CC" 5244fi 5245ac_ext=c 5246ac_cpp='$CPP $CPPFLAGS' 5247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5249ac_compiler_gnu=$ac_cv_c_compiler_gnu 5250 5251 5252depcc="$CC" am_compiler_list= 5253 5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5255$as_echo_n "checking dependency style of $depcc... " >&6; } 5256if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5257 $as_echo_n "(cached) " >&6 5258else 5259 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5260 # We make a subdir and do the tests there. Otherwise we can end up 5261 # making bogus files that we don't know about and never remove. For 5262 # instance it was reported that on HP-UX the gcc test will end up 5263 # making a dummy file named 'D' -- because '-MD' means "put the output 5264 # in D". 5265 rm -rf conftest.dir 5266 mkdir conftest.dir 5267 # Copy depcomp to subdir because otherwise we won't find it if we're 5268 # using a relative directory. 5269 cp "$am_depcomp" conftest.dir 5270 cd conftest.dir 5271 # We will build objects and dependencies in a subdirectory because 5272 # it helps to detect inapplicable dependency modes. For instance 5273 # both Tru64's cc and ICC support -MD to output dependencies as a 5274 # side effect of compilation, but ICC will put the dependencies in 5275 # the current directory while Tru64 will put them in the object 5276 # directory. 5277 mkdir sub 5278 5279 am_cv_CC_dependencies_compiler_type=none 5280 if test "$am_compiler_list" = ""; then 5281 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5282 fi 5283 am__universal=false 5284 case " $depcc " in #( 5285 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5286 esac 5287 5288 for depmode in $am_compiler_list; do 5289 # Setup a source with many dependencies, because some compilers 5290 # like to wrap large dependency lists on column 80 (with \), and 5291 # we should not choose a depcomp mode which is confused by this. 5292 # 5293 # We need to recreate these files for each test, as the compiler may 5294 # overwrite some of them when testing with obscure command lines. 5295 # This happens at least with the AIX C compiler. 5296 : > sub/conftest.c 5297 for i in 1 2 3 4 5 6; do 5298 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5299 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5300 # Solaris 10 /bin/sh. 5301 echo '/* dummy */' > sub/conftst$i.h 5302 done 5303 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5304 5305 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5306 # mode. It turns out that the SunPro C++ compiler does not properly 5307 # handle '-M -o', and we need to detect this. Also, some Intel 5308 # versions had trouble with output in subdirs. 5309 am__obj=sub/conftest.${OBJEXT-o} 5310 am__minus_obj="-o $am__obj" 5311 case $depmode in 5312 gcc) 5313 # This depmode causes a compiler race in universal mode. 5314 test "$am__universal" = false || continue 5315 ;; 5316 nosideeffect) 5317 # After this tag, mechanisms are not by side-effect, so they'll 5318 # only be used when explicitly requested. 5319 if test "x$enable_dependency_tracking" = xyes; then 5320 continue 5321 else 5322 break 5323 fi 5324 ;; 5325 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5326 # This compiler won't grok '-c -o', but also, the minuso test has 5327 # not run yet. These depmodes are late enough in the game, and 5328 # so weak that their functioning should not be impacted. 5329 am__obj=conftest.${OBJEXT-o} 5330 am__minus_obj= 5331 ;; 5332 none) break ;; 5333 esac 5334 if depmode=$depmode \ 5335 source=sub/conftest.c object=$am__obj \ 5336 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5337 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5338 >/dev/null 2>conftest.err && 5339 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5340 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5341 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5342 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5343 # icc doesn't choke on unknown options, it will just issue warnings 5344 # or remarks (even with -Werror). So we grep stderr for any message 5345 # that says an option was ignored or not supported. 5346 # When given -MP, icc 7.0 and 7.1 complain thusly: 5347 # icc: Command line warning: ignoring option '-M'; no argument required 5348 # The diagnosis changed in icc 8.0: 5349 # icc: Command line remark: option '-MP' not supported 5350 if (grep 'ignoring option' conftest.err || 5351 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5352 am_cv_CC_dependencies_compiler_type=$depmode 5353 break 5354 fi 5355 fi 5356 done 5357 5358 cd .. 5359 rm -rf conftest.dir 5360else 5361 am_cv_CC_dependencies_compiler_type=none 5362fi 5363 5364fi 5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5366$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5367CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5368 5369 if 5370 test "x$enable_dependency_tracking" != xno \ 5371 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5372 am__fastdepCC_TRUE= 5373 am__fastdepCC_FALSE='#' 5374else 5375 am__fastdepCC_TRUE='#' 5376 am__fastdepCC_FALSE= 5377fi 5378 5379 5380ac_ext=c 5381ac_cpp='$CPP $CPPFLAGS' 5382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5384ac_compiler_gnu=$ac_cv_c_compiler_gnu 5385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5386$as_echo_n "checking how to run the C preprocessor... " >&6; } 5387# On Suns, sometimes $CPP names a directory. 5388if test -n "$CPP" && test -d "$CPP"; then 5389 CPP= 5390fi 5391if test -z "$CPP"; then 5392 if ${ac_cv_prog_CPP+:} false; then : 5393 $as_echo_n "(cached) " >&6 5394else 5395 # Double quotes because CPP needs to be expanded 5396 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5397 do 5398 ac_preproc_ok=false 5399for ac_c_preproc_warn_flag in '' yes 5400do 5401 # Use a header file that comes with gcc, so configuring glibc 5402 # with a fresh cross-compiler works. 5403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5404 # <limits.h> exists even on freestanding compilers. 5405 # On the NeXT, cc -E runs the code through the compiler's parser, 5406 # not just through cpp. "Syntax error" is here to catch this case. 5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5408/* end confdefs.h. */ 5409#ifdef __STDC__ 5410# include <limits.h> 5411#else 5412# include <assert.h> 5413#endif 5414 Syntax error 5415_ACEOF 5416if ac_fn_c_try_cpp "$LINENO"; then : 5417 5418else 5419 # Broken: fails on valid input. 5420continue 5421fi 5422rm -f conftest.err conftest.i conftest.$ac_ext 5423 5424 # OK, works on sane cases. Now check whether nonexistent headers 5425 # can be detected and how. 5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5427/* end confdefs.h. */ 5428#include <ac_nonexistent.h> 5429_ACEOF 5430if ac_fn_c_try_cpp "$LINENO"; then : 5431 # Broken: success on invalid input. 5432continue 5433else 5434 # Passes both tests. 5435ac_preproc_ok=: 5436break 5437fi 5438rm -f conftest.err conftest.i conftest.$ac_ext 5439 5440done 5441# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5442rm -f conftest.i conftest.err conftest.$ac_ext 5443if $ac_preproc_ok; then : 5444 break 5445fi 5446 5447 done 5448 ac_cv_prog_CPP=$CPP 5449 5450fi 5451 CPP=$ac_cv_prog_CPP 5452else 5453 ac_cv_prog_CPP=$CPP 5454fi 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5456$as_echo "$CPP" >&6; } 5457ac_preproc_ok=false 5458for ac_c_preproc_warn_flag in '' yes 5459do 5460 # Use a header file that comes with gcc, so configuring glibc 5461 # with a fresh cross-compiler works. 5462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5463 # <limits.h> exists even on freestanding compilers. 5464 # On the NeXT, cc -E runs the code through the compiler's parser, 5465 # not just through cpp. "Syntax error" is here to catch this case. 5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5467/* end confdefs.h. */ 5468#ifdef __STDC__ 5469# include <limits.h> 5470#else 5471# include <assert.h> 5472#endif 5473 Syntax error 5474_ACEOF 5475if ac_fn_c_try_cpp "$LINENO"; then : 5476 5477else 5478 # Broken: fails on valid input. 5479continue 5480fi 5481rm -f conftest.err conftest.i conftest.$ac_ext 5482 5483 # OK, works on sane cases. Now check whether nonexistent headers 5484 # can be detected and how. 5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5486/* end confdefs.h. */ 5487#include <ac_nonexistent.h> 5488_ACEOF 5489if ac_fn_c_try_cpp "$LINENO"; then : 5490 # Broken: success on invalid input. 5491continue 5492else 5493 # Passes both tests. 5494ac_preproc_ok=: 5495break 5496fi 5497rm -f conftest.err conftest.i conftest.$ac_ext 5498 5499done 5500# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5501rm -f conftest.i conftest.err conftest.$ac_ext 5502if $ac_preproc_ok; then : 5503 5504else 5505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5507as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5508See \`config.log' for more details" "$LINENO" 5; } 5509fi 5510 5511ac_ext=c 5512ac_cpp='$CPP $CPPFLAGS' 5513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5515ac_compiler_gnu=$ac_cv_c_compiler_gnu 5516 5517ac_build_prefix= 5518test -n "$build_alias" && ac_build_prefix=$build_alias- 5519 5520if test "$cross_compiling" = yes; then : 5521 5522# Even if we're cross-compiling, we want a compiler here 5523# that is not a cross-compiler. 5524saved_cross=$cross_compiling 5525cross_compiling=no 5526 5527ac_ext=c 5528ac_cpp='$CPP $BUILD_CPPFLAGS' 5529ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5' 5530ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5' 5531ac_compiler_gnu=$ac_cv_c_compiler_gnu 5532if test -n "$ac_build_prefix"; then 5533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5534set dummy ${ac_build_prefix}gcc; ac_word=$2 5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5536$as_echo_n "checking for $ac_word... " >&6; } 5537if ${ac_cv_prog_BUILD_CC+:} false; then : 5538 $as_echo_n "(cached) " >&6 5539else 5540 if test -n "$BUILD_CC"; then 5541 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 5542else 5543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5544for as_dir in $PATH 5545do 5546 IFS=$as_save_IFS 5547 test -z "$as_dir" && as_dir=. 5548 for ac_exec_ext in '' $ac_executable_extensions; do 5549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5550 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5552 break 2 5553 fi 5554done 5555 done 5556IFS=$as_save_IFS 5557 5558fi 5559fi 5560BUILD_CC=$ac_cv_prog_BUILD_CC 5561if test -n "$BUILD_CC"; then 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 5563$as_echo "$BUILD_CC" >&6; } 5564else 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5566$as_echo "no" >&6; } 5567fi 5568 5569 5570fi 5571if test -z "$ac_cv_prog_BUILD_CC"; then 5572 ac_ct_BUILD_CC=$BUILD_CC 5573 # Extract the first word of "gcc", so it can be a program name with args. 5574set dummy gcc; ac_word=$2 5575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5576$as_echo_n "checking for $ac_word... " >&6; } 5577if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then : 5578 $as_echo_n "(cached) " >&6 5579else 5580 if test -n "$ac_ct_BUILD_CC"; then 5581 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test. 5582else 5583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5584for as_dir in $PATH 5585do 5586 IFS=$as_save_IFS 5587 test -z "$as_dir" && as_dir=. 5588 for ac_exec_ext in '' $ac_executable_extensions; do 5589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5590 ac_cv_prog_ac_ct_BUILD_CC="gcc" 5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5592 break 2 5593 fi 5594done 5595 done 5596IFS=$as_save_IFS 5597 5598fi 5599fi 5600ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC 5601if test -n "$ac_ct_BUILD_CC"; then 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5 5603$as_echo "$ac_ct_BUILD_CC" >&6; } 5604else 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5606$as_echo "no" >&6; } 5607fi 5608 5609 if test "x$ac_ct_BUILD_CC" = x; then 5610 BUILD_CC="" 5611 else 5612 case $cross_compiling:$ac_tool_warned in 5613yes:) 5614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5616ac_tool_warned=yes ;; 5617esac 5618 BUILD_CC=$ac_ct_BUILD_CC 5619 fi 5620else 5621 BUILD_CC="$ac_cv_prog_BUILD_CC" 5622fi 5623 5624if test -z "$BUILD_CC"; then 5625 if test -n "$ac_build_prefix"; then 5626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5627set dummy ${ac_build_prefix}cc; ac_word=$2 5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5629$as_echo_n "checking for $ac_word... " >&6; } 5630if ${ac_cv_prog_BUILD_CC+:} false; then : 5631 $as_echo_n "(cached) " >&6 5632else 5633 if test -n "$BUILD_CC"; then 5634 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 5635else 5636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5637for as_dir in $PATH 5638do 5639 IFS=$as_save_IFS 5640 test -z "$as_dir" && as_dir=. 5641 for ac_exec_ext in '' $ac_executable_extensions; do 5642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5643 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc" 5644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5645 break 2 5646 fi 5647done 5648 done 5649IFS=$as_save_IFS 5650 5651fi 5652fi 5653BUILD_CC=$ac_cv_prog_BUILD_CC 5654if test -n "$BUILD_CC"; then 5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 5656$as_echo "$BUILD_CC" >&6; } 5657else 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5659$as_echo "no" >&6; } 5660fi 5661 5662 5663fi 5664if test -z "$ac_cv_prog_BUILD_CC"; then 5665 ac_ct_BUILD_CC=$BUILD_CC 5666 # Extract the first word of "cc", so it can be a program name with args. 5667set dummy cc; ac_word=$2 5668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5669$as_echo_n "checking for $ac_word... " >&6; } 5670if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then : 5671 $as_echo_n "(cached) " >&6 5672else 5673 if test -n "$ac_ct_BUILD_CC"; then 5674 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test. 5675else 5676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5677for as_dir in $PATH 5678do 5679 IFS=$as_save_IFS 5680 test -z "$as_dir" && as_dir=. 5681 for ac_exec_ext in '' $ac_executable_extensions; do 5682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5683 ac_cv_prog_ac_ct_BUILD_CC="cc" 5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5685 break 2 5686 fi 5687done 5688 done 5689IFS=$as_save_IFS 5690 5691fi 5692fi 5693ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC 5694if test -n "$ac_ct_BUILD_CC"; then 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5 5696$as_echo "$ac_ct_BUILD_CC" >&6; } 5697else 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5699$as_echo "no" >&6; } 5700fi 5701 5702 if test "x$ac_ct_BUILD_CC" = x; then 5703 BUILD_CC="" 5704 else 5705 case $cross_compiling:$ac_tool_warned in 5706yes:) 5707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5709ac_tool_warned=yes ;; 5710esac 5711 BUILD_CC=$ac_ct_BUILD_CC 5712 fi 5713else 5714 BUILD_CC="$ac_cv_prog_BUILD_CC" 5715fi 5716 5717fi 5718if test -z "$BUILD_CC"; then 5719 # Extract the first word of "cc", so it can be a program name with args. 5720set dummy cc; ac_word=$2 5721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5722$as_echo_n "checking for $ac_word... " >&6; } 5723if ${ac_cv_prog_BUILD_CC+:} false; then : 5724 $as_echo_n "(cached) " >&6 5725else 5726 if test -n "$BUILD_CC"; then 5727 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 5728else 5729 ac_prog_rejected=no 5730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5731for as_dir in $PATH 5732do 5733 IFS=$as_save_IFS 5734 test -z "$as_dir" && as_dir=. 5735 for ac_exec_ext in '' $ac_executable_extensions; do 5736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5737 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5738 ac_prog_rejected=yes 5739 continue 5740 fi 5741 ac_cv_prog_BUILD_CC="cc" 5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5743 break 2 5744 fi 5745done 5746 done 5747IFS=$as_save_IFS 5748 5749if test $ac_prog_rejected = yes; then 5750 # We found a bogon in the path, so make sure we never use it. 5751 set dummy $ac_cv_prog_BUILD_CC 5752 shift 5753 if test $# != 0; then 5754 # We chose a different compiler from the bogus one. 5755 # However, it has the same basename, so the bogon will be chosen 5756 # first if we set BUILD_CC to just the basename; use the full file name. 5757 shift 5758 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 5759 fi 5760fi 5761fi 5762fi 5763BUILD_CC=$ac_cv_prog_BUILD_CC 5764if test -n "$BUILD_CC"; then 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 5766$as_echo "$BUILD_CC" >&6; } 5767else 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5769$as_echo "no" >&6; } 5770fi 5771 5772 5773fi 5774if test -z "$BUILD_CC"; then 5775 if test -n "$ac_build_prefix"; then 5776 for ac_prog in cl 5777 do 5778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5779set dummy $ac_build_prefix$ac_prog; ac_word=$2 5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5781$as_echo_n "checking for $ac_word... " >&6; } 5782if ${ac_cv_prog_BUILD_CC+:} false; then : 5783 $as_echo_n "(cached) " >&6 5784else 5785 if test -n "$BUILD_CC"; then 5786 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 5787else 5788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5789for as_dir in $PATH 5790do 5791 IFS=$as_save_IFS 5792 test -z "$as_dir" && as_dir=. 5793 for ac_exec_ext in '' $ac_executable_extensions; do 5794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5795 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog" 5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5797 break 2 5798 fi 5799done 5800 done 5801IFS=$as_save_IFS 5802 5803fi 5804fi 5805BUILD_CC=$ac_cv_prog_BUILD_CC 5806if test -n "$BUILD_CC"; then 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 5808$as_echo "$BUILD_CC" >&6; } 5809else 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5811$as_echo "no" >&6; } 5812fi 5813 5814 5815 test -n "$BUILD_CC" && break 5816 done 5817fi 5818if test -z "$BUILD_CC"; then 5819 ac_ct_BUILD_CC=$BUILD_CC 5820 for ac_prog in cl 5821do 5822 # Extract the first word of "$ac_prog", so it can be a program name with args. 5823set dummy $ac_prog; ac_word=$2 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5825$as_echo_n "checking for $ac_word... " >&6; } 5826if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then : 5827 $as_echo_n "(cached) " >&6 5828else 5829 if test -n "$ac_ct_BUILD_CC"; then 5830 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test. 5831else 5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5833for as_dir in $PATH 5834do 5835 IFS=$as_save_IFS 5836 test -z "$as_dir" && as_dir=. 5837 for ac_exec_ext in '' $ac_executable_extensions; do 5838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5839 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog" 5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5841 break 2 5842 fi 5843done 5844 done 5845IFS=$as_save_IFS 5846 5847fi 5848fi 5849ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC 5850if test -n "$ac_ct_BUILD_CC"; then 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5 5852$as_echo "$ac_ct_BUILD_CC" >&6; } 5853else 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5855$as_echo "no" >&6; } 5856fi 5857 5858 5859 test -n "$ac_ct_BUILD_CC" && break 5860done 5861 5862 if test "x$ac_ct_BUILD_CC" = x; then 5863 BUILD_CC="" 5864 else 5865 case $cross_compiling:$ac_tool_warned in 5866yes:) 5867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5869ac_tool_warned=yes ;; 5870esac 5871 BUILD_CC=$ac_ct_BUILD_CC 5872 fi 5873fi 5874 5875fi 5876 5877 5878test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5879$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5880as_fn_error $? "no acceptable C compiler found in \$PATH 5881See \`config.log' for more details" "$LINENO" 5; } 5882 5883# Provide some information about the compiler. 5884echo "$as_me:$LINENO:" \ 5885 "checking for C compiler version" >&5 5886ac_compiler=`set X $ac_compile; echo $2` 5887{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5 5888 (eval $ac_compiler --version </dev/null >&5) 2>&5 5889 ac_status=$? 5890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5891 test $ac_status = 0; } 5892{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5 5893 (eval $ac_compiler -v </dev/null >&5) 2>&5 5894 ac_status=$? 5895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5896 test $ac_status = 0; } 5897{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5 5898 (eval $ac_compiler -V </dev/null >&5) 2>&5 5899 ac_status=$? 5900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5901 test $ac_status = 0; } 5902 5903cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5904/* end confdefs.h. */ 5905 5906int 5907main () 5908{ 5909 5910 ; 5911 return 0; 5912} 5913_ACEOF 5914ac_clean_files_save=$ac_clean_files 5915ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5916# Try to create an executable without -o first, disregard a.out. 5917# It will help us diagnose broken compilers, and finding out an intuition 5918# of exeext. 5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5920$as_echo_n "checking whether the C compiler works... " >&6; } 5921ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5922 5923# The possible output files: 5924ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5925 5926ac_rmfiles= 5927for ac_file in $ac_files 5928do 5929 case $ac_file in 5930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5931 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5932 esac 5933done 5934rm -f $ac_rmfiles 5935 5936if { { ac_try="$ac_link_default" 5937case "(($ac_try" in 5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5939 *) ac_try_echo=$ac_try;; 5940esac 5941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5942$as_echo "$ac_try_echo"; } >&5 5943 (eval "$ac_link_default") 2>&5 5944 ac_status=$? 5945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5946 test $ac_status = 0; }; then : 5947 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 5948# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 5949# in a Makefile. We should not override ac_cv_exeext if it was cached, 5950# so that the user can short-circuit this test for compilers unknown to 5951# Autoconf. 5952for ac_file in $ac_files '' 5953do 5954 test -f "$ac_file" || continue 5955 case $ac_file in 5956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5957 ;; 5958 [ab].out ) 5959 # We found the default executable, but exeext='' is most 5960 # certainly right. 5961 break;; 5962 *.* ) 5963 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no; 5964 then :; else 5965 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5966 fi 5967 # We set ac_cv_exeext here because the later test for it is not 5968 # safe: cross compilers may not add the suffix if given an `-o' 5969 # argument, so we may need to know it at that point already. 5970 # Even if this section looks crufty: it has the advantage of 5971 # actually working. 5972 break;; 5973 * ) 5974 break;; 5975 esac 5976done 5977test "$ac_cv_build_exeext" = no && ac_cv_build_exeext= 5978 5979else 5980 ac_file='' 5981fi 5982if test -z "$ac_file"; then : 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5984$as_echo "no" >&6; } 5985$as_echo "$as_me: failed program was:" >&5 5986sed 's/^/| /' conftest.$ac_ext >&5 5987 5988{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5990as_fn_error 77 "C compiler cannot create executables 5991See \`config.log' for more details" "$LINENO" 5; } 5992else 5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5994$as_echo "yes" >&6; } 5995fi 5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5997$as_echo_n "checking for C compiler default output file name... " >&6; } 5998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5999$as_echo "$ac_file" >&6; } 6000ac_build_exeext=$ac_cv_build_exeext 6001 6002rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out 6003ac_clean_files=$ac_clean_files_save 6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 6005$as_echo_n "checking for suffix of executables... " >&6; } 6006if { { ac_try="$ac_link" 6007case "(($ac_try" in 6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6009 *) ac_try_echo=$ac_try;; 6010esac 6011eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6012$as_echo "$ac_try_echo"; } >&5 6013 (eval "$ac_link") 2>&5 6014 ac_status=$? 6015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6016 test $ac_status = 0; }; then : 6017 # If both `conftest.exe' and `conftest' are `present' (well, observable) 6018# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 6019# work properly (i.e., refer to `conftest.exe'), while it won't with 6020# `rm'. 6021for ac_file in conftest.exe conftest conftest.*; do 6022 test -f "$ac_file" || continue 6023 case $ac_file in 6024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 6025 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 6026 break;; 6027 * ) break;; 6028 esac 6029done 6030else 6031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6033as_fn_error $? "cannot compute suffix of executables: cannot compile and link 6034See \`config.log' for more details" "$LINENO" 5; } 6035fi 6036rm -f conftest conftest$ac_cv_build_exeext 6037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5 6038$as_echo "$ac_cv_build_exeext" >&6; } 6039 6040rm -f conftest.$ac_ext 6041BUILD_EXEEXT=$ac_cv_build_exeext 6042ac_build_exeext=$BUILD_EXEEXT 6043cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6044/* end confdefs.h. */ 6045#include <stdio.h> 6046int 6047main () 6048{ 6049FILE *f = fopen ("conftest.out", "w"); 6050 return ferror (f) || fclose (f) != 0; 6051 6052 ; 6053 return 0; 6054} 6055_ACEOF 6056ac_clean_files="$ac_clean_files conftest.out" 6057# Check that the compiler produces executables we can run. If not, either 6058# the compiler is broken, or we cross compile. 6059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 6060$as_echo_n "checking whether we are cross compiling... " >&6; } 6061if test "$cross_compiling" != yes; then 6062 { { ac_try="$ac_link" 6063case "(($ac_try" in 6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6065 *) ac_try_echo=$ac_try;; 6066esac 6067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6068$as_echo "$ac_try_echo"; } >&5 6069 (eval "$ac_link") 2>&5 6070 ac_status=$? 6071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6072 test $ac_status = 0; } 6073 if { ac_try='./conftest$ac_cv_build_exeext' 6074 { { case "(($ac_try" in 6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6076 *) ac_try_echo=$ac_try;; 6077esac 6078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6079$as_echo "$ac_try_echo"; } >&5 6080 (eval "$ac_try") 2>&5 6081 ac_status=$? 6082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6083 test $ac_status = 0; }; }; then 6084 cross_compiling=no 6085 else 6086 if test "$cross_compiling" = maybe; then 6087 cross_compiling=yes 6088 else 6089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6091as_fn_error $? "cannot run C compiled programs. 6092If you meant to cross compile, use \`--host'. 6093See \`config.log' for more details" "$LINENO" 5; } 6094 fi 6095 fi 6096fi 6097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 6098$as_echo "$cross_compiling" >&6; } 6099 6100rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out 6101ac_clean_files=$ac_clean_files_save 6102 6103 6104# Restore configuration environment 6105cross_compiling=$saved_cross 6106 6107ac_ext=c 6108ac_cpp='$CPP $CPPFLAGS' 6109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6111ac_compiler_gnu=$ac_cv_c_compiler_gnu 6112 6113else 6114 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT 6115fi 6116CFLAGS="$mule_backup_CFLAGS" 6117CXXFLAGS="$mule_backup_CXXFLAGS" 6118BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS" 6119for ac_prog in gawk mawk nawk awk 6120do 6121 # Extract the first word of "$ac_prog", so it can be a program name with args. 6122set dummy $ac_prog; ac_word=$2 6123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6124$as_echo_n "checking for $ac_word... " >&6; } 6125if ${ac_cv_prog_AWK+:} false; then : 6126 $as_echo_n "(cached) " >&6 6127else 6128 if test -n "$AWK"; then 6129 ac_cv_prog_AWK="$AWK" # Let the user override the test. 6130else 6131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6132for as_dir in $PATH 6133do 6134 IFS=$as_save_IFS 6135 test -z "$as_dir" && as_dir=. 6136 for ac_exec_ext in '' $ac_executable_extensions; do 6137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6138 ac_cv_prog_AWK="$ac_prog" 6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6140 break 2 6141 fi 6142done 6143 done 6144IFS=$as_save_IFS 6145 6146fi 6147fi 6148AWK=$ac_cv_prog_AWK 6149if test -n "$AWK"; then 6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 6151$as_echo "$AWK" >&6; } 6152else 6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6154$as_echo "no" >&6; } 6155fi 6156 6157 6158 test -n "$AWK" && break 6159done 6160 6161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6162$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6163if ${ac_cv_path_GREP+:} false; then : 6164 $as_echo_n "(cached) " >&6 6165else 6166 if test -z "$GREP"; then 6167 ac_path_GREP_found=false 6168 # Loop through the user's path and test for each of PROGNAME-LIST 6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6170for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6171do 6172 IFS=$as_save_IFS 6173 test -z "$as_dir" && as_dir=. 6174 for ac_prog in grep ggrep; do 6175 for ac_exec_ext in '' $ac_executable_extensions; do 6176 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6177 as_fn_executable_p "$ac_path_GREP" || continue 6178# Check for GNU ac_path_GREP and select it if it is found. 6179 # Check for GNU $ac_path_GREP 6180case `"$ac_path_GREP" --version 2>&1` in 6181*GNU*) 6182 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6183*) 6184 ac_count=0 6185 $as_echo_n 0123456789 >"conftest.in" 6186 while : 6187 do 6188 cat "conftest.in" "conftest.in" >"conftest.tmp" 6189 mv "conftest.tmp" "conftest.in" 6190 cp "conftest.in" "conftest.nl" 6191 $as_echo 'GREP' >> "conftest.nl" 6192 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6194 as_fn_arith $ac_count + 1 && ac_count=$as_val 6195 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6196 # Best one so far, save it but keep looking for a better one 6197 ac_cv_path_GREP="$ac_path_GREP" 6198 ac_path_GREP_max=$ac_count 6199 fi 6200 # 10*(2^10) chars as input seems more than enough 6201 test $ac_count -gt 10 && break 6202 done 6203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6204esac 6205 6206 $ac_path_GREP_found && break 3 6207 done 6208 done 6209 done 6210IFS=$as_save_IFS 6211 if test -z "$ac_cv_path_GREP"; then 6212 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6213 fi 6214else 6215 ac_cv_path_GREP=$GREP 6216fi 6217 6218fi 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6220$as_echo "$ac_cv_path_GREP" >&6; } 6221 GREP="$ac_cv_path_GREP" 6222 6223 6224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6225$as_echo_n "checking for egrep... " >&6; } 6226if ${ac_cv_path_EGREP+:} false; then : 6227 $as_echo_n "(cached) " >&6 6228else 6229 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6230 then ac_cv_path_EGREP="$GREP -E" 6231 else 6232 if test -z "$EGREP"; then 6233 ac_path_EGREP_found=false 6234 # Loop through the user's path and test for each of PROGNAME-LIST 6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6236for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6237do 6238 IFS=$as_save_IFS 6239 test -z "$as_dir" && as_dir=. 6240 for ac_prog in egrep; do 6241 for ac_exec_ext in '' $ac_executable_extensions; do 6242 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6243 as_fn_executable_p "$ac_path_EGREP" || continue 6244# Check for GNU ac_path_EGREP and select it if it is found. 6245 # Check for GNU $ac_path_EGREP 6246case `"$ac_path_EGREP" --version 2>&1` in 6247*GNU*) 6248 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6249*) 6250 ac_count=0 6251 $as_echo_n 0123456789 >"conftest.in" 6252 while : 6253 do 6254 cat "conftest.in" "conftest.in" >"conftest.tmp" 6255 mv "conftest.tmp" "conftest.in" 6256 cp "conftest.in" "conftest.nl" 6257 $as_echo 'EGREP' >> "conftest.nl" 6258 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6260 as_fn_arith $ac_count + 1 && ac_count=$as_val 6261 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6262 # Best one so far, save it but keep looking for a better one 6263 ac_cv_path_EGREP="$ac_path_EGREP" 6264 ac_path_EGREP_max=$ac_count 6265 fi 6266 # 10*(2^10) chars as input seems more than enough 6267 test $ac_count -gt 10 && break 6268 done 6269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6270esac 6271 6272 $ac_path_EGREP_found && break 3 6273 done 6274 done 6275 done 6276IFS=$as_save_IFS 6277 if test -z "$ac_cv_path_EGREP"; then 6278 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6279 fi 6280else 6281 ac_cv_path_EGREP=$EGREP 6282fi 6283 6284 fi 6285fi 6286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6287$as_echo "$ac_cv_path_EGREP" >&6; } 6288 EGREP="$ac_cv_path_EGREP" 6289 6290 6291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 6292$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 6293set x ${MAKE-make} 6294ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6295if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 6296 $as_echo_n "(cached) " >&6 6297else 6298 cat >conftest.make <<\_ACEOF 6299SHELL = /bin/sh 6300all: 6301 @echo '@@@%%%=$(MAKE)=@@@%%%' 6302_ACEOF 6303# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 6304case `${MAKE-make} -f conftest.make 2>/dev/null` in 6305 *@@@%%%=?*=@@@%%%*) 6306 eval ac_cv_prog_make_${ac_make}_set=yes;; 6307 *) 6308 eval ac_cv_prog_make_${ac_make}_set=no;; 6309esac 6310rm -f conftest.make 6311fi 6312if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6314$as_echo "yes" >&6; } 6315 SET_MAKE= 6316else 6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6318$as_echo "no" >&6; } 6319 SET_MAKE="MAKE=${MAKE-make}" 6320fi 6321 6322 6323if test -n "$ac_tool_prefix"; then 6324 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6325set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6327$as_echo_n "checking for $ac_word... " >&6; } 6328if ${ac_cv_prog_RANLIB+:} false; then : 6329 $as_echo_n "(cached) " >&6 6330else 6331 if test -n "$RANLIB"; then 6332 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6333else 6334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6335for as_dir in $PATH 6336do 6337 IFS=$as_save_IFS 6338 test -z "$as_dir" && as_dir=. 6339 for ac_exec_ext in '' $ac_executable_extensions; do 6340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6341 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6343 break 2 6344 fi 6345done 6346 done 6347IFS=$as_save_IFS 6348 6349fi 6350fi 6351RANLIB=$ac_cv_prog_RANLIB 6352if test -n "$RANLIB"; then 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6354$as_echo "$RANLIB" >&6; } 6355else 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6357$as_echo "no" >&6; } 6358fi 6359 6360 6361fi 6362if test -z "$ac_cv_prog_RANLIB"; then 6363 ac_ct_RANLIB=$RANLIB 6364 # Extract the first word of "ranlib", so it can be a program name with args. 6365set dummy ranlib; ac_word=$2 6366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6367$as_echo_n "checking for $ac_word... " >&6; } 6368if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6369 $as_echo_n "(cached) " >&6 6370else 6371 if test -n "$ac_ct_RANLIB"; then 6372 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6373else 6374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6375for as_dir in $PATH 6376do 6377 IFS=$as_save_IFS 6378 test -z "$as_dir" && as_dir=. 6379 for ac_exec_ext in '' $ac_executable_extensions; do 6380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6381 ac_cv_prog_ac_ct_RANLIB="ranlib" 6382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6383 break 2 6384 fi 6385done 6386 done 6387IFS=$as_save_IFS 6388 6389fi 6390fi 6391ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6392if test -n "$ac_ct_RANLIB"; then 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6394$as_echo "$ac_ct_RANLIB" >&6; } 6395else 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6397$as_echo "no" >&6; } 6398fi 6399 6400 if test "x$ac_ct_RANLIB" = x; then 6401 RANLIB=":" 6402 else 6403 case $cross_compiling:$ac_tool_warned in 6404yes:) 6405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6407ac_tool_warned=yes ;; 6408esac 6409 RANLIB=$ac_ct_RANLIB 6410 fi 6411else 6412 RANLIB="$ac_cv_prog_RANLIB" 6413fi 6414 6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6416$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6417if ${ac_cv_path_SED+:} false; then : 6418 $as_echo_n "(cached) " >&6 6419else 6420 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6421 for ac_i in 1 2 3 4 5 6 7; do 6422 ac_script="$ac_script$as_nl$ac_script" 6423 done 6424 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6425 { ac_script=; unset ac_script;} 6426 if test -z "$SED"; then 6427 ac_path_SED_found=false 6428 # Loop through the user's path and test for each of PROGNAME-LIST 6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6430for as_dir in $PATH 6431do 6432 IFS=$as_save_IFS 6433 test -z "$as_dir" && as_dir=. 6434 for ac_prog in sed gsed; do 6435 for ac_exec_ext in '' $ac_executable_extensions; do 6436 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6437 as_fn_executable_p "$ac_path_SED" || continue 6438# Check for GNU ac_path_SED and select it if it is found. 6439 # Check for GNU $ac_path_SED 6440case `"$ac_path_SED" --version 2>&1` in 6441*GNU*) 6442 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6443*) 6444 ac_count=0 6445 $as_echo_n 0123456789 >"conftest.in" 6446 while : 6447 do 6448 cat "conftest.in" "conftest.in" >"conftest.tmp" 6449 mv "conftest.tmp" "conftest.in" 6450 cp "conftest.in" "conftest.nl" 6451 $as_echo '' >> "conftest.nl" 6452 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6453 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6454 as_fn_arith $ac_count + 1 && ac_count=$as_val 6455 if test $ac_count -gt ${ac_path_SED_max-0}; then 6456 # Best one so far, save it but keep looking for a better one 6457 ac_cv_path_SED="$ac_path_SED" 6458 ac_path_SED_max=$ac_count 6459 fi 6460 # 10*(2^10) chars as input seems more than enough 6461 test $ac_count -gt 10 && break 6462 done 6463 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6464esac 6465 6466 $ac_path_SED_found && break 3 6467 done 6468 done 6469 done 6470IFS=$as_save_IFS 6471 if test -z "$ac_cv_path_SED"; then 6472 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6473 fi 6474else 6475 ac_cv_path_SED=$SED 6476fi 6477 6478fi 6479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6480$as_echo "$ac_cv_path_SED" >&6; } 6481 SED="$ac_cv_path_SED" 6482 rm -f conftest.sed 6483 6484 6485if test -n "$ac_tool_prefix"; then 6486 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6487set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6489$as_echo_n "checking for $ac_word... " >&6; } 6490if ${ac_cv_prog_RANLIB+:} false; then : 6491 $as_echo_n "(cached) " >&6 6492else 6493 if test -n "$RANLIB"; then 6494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6495else 6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6497for as_dir in $PATH 6498do 6499 IFS=$as_save_IFS 6500 test -z "$as_dir" && as_dir=. 6501 for ac_exec_ext in '' $ac_executable_extensions; do 6502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6503 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6505 break 2 6506 fi 6507done 6508 done 6509IFS=$as_save_IFS 6510 6511fi 6512fi 6513RANLIB=$ac_cv_prog_RANLIB 6514if test -n "$RANLIB"; then 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6516$as_echo "$RANLIB" >&6; } 6517else 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6519$as_echo "no" >&6; } 6520fi 6521 6522 6523fi 6524if test -z "$ac_cv_prog_RANLIB"; then 6525 ac_ct_RANLIB=$RANLIB 6526 # Extract the first word of "ranlib", so it can be a program name with args. 6527set dummy ranlib; ac_word=$2 6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6529$as_echo_n "checking for $ac_word... " >&6; } 6530if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6531 $as_echo_n "(cached) " >&6 6532else 6533 if test -n "$ac_ct_RANLIB"; then 6534 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6535else 6536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6537for as_dir in $PATH 6538do 6539 IFS=$as_save_IFS 6540 test -z "$as_dir" && as_dir=. 6541 for ac_exec_ext in '' $ac_executable_extensions; do 6542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6543 ac_cv_prog_ac_ct_RANLIB="ranlib" 6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6545 break 2 6546 fi 6547done 6548 done 6549IFS=$as_save_IFS 6550 6551fi 6552fi 6553ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6554if test -n "$ac_ct_RANLIB"; then 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6556$as_echo "$ac_ct_RANLIB" >&6; } 6557else 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6559$as_echo "no" >&6; } 6560fi 6561 6562 if test "x$ac_ct_RANLIB" = x; then 6563 RANLIB="" 6564 else 6565 case $cross_compiling:$ac_tool_warned in 6566yes:) 6567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6569ac_tool_warned=yes ;; 6570esac 6571 RANLIB=$ac_ct_RANLIB 6572 fi 6573else 6574 RANLIB="$ac_cv_prog_RANLIB" 6575fi 6576 6577if test -n "$ac_tool_prefix"; then 6578 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6579set dummy ${ac_tool_prefix}strip; ac_word=$2 6580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6581$as_echo_n "checking for $ac_word... " >&6; } 6582if ${ac_cv_prog_STRIP+:} false; then : 6583 $as_echo_n "(cached) " >&6 6584else 6585 if test -n "$STRIP"; then 6586 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6587else 6588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6589for as_dir in $PATH 6590do 6591 IFS=$as_save_IFS 6592 test -z "$as_dir" && as_dir=. 6593 for ac_exec_ext in '' $ac_executable_extensions; do 6594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6595 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6597 break 2 6598 fi 6599done 6600 done 6601IFS=$as_save_IFS 6602 6603fi 6604fi 6605STRIP=$ac_cv_prog_STRIP 6606if test -n "$STRIP"; then 6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6608$as_echo "$STRIP" >&6; } 6609else 6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6611$as_echo "no" >&6; } 6612fi 6613 6614 6615fi 6616if test -z "$ac_cv_prog_STRIP"; then 6617 ac_ct_STRIP=$STRIP 6618 # Extract the first word of "strip", so it can be a program name with args. 6619set dummy strip; ac_word=$2 6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6621$as_echo_n "checking for $ac_word... " >&6; } 6622if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6623 $as_echo_n "(cached) " >&6 6624else 6625 if test -n "$ac_ct_STRIP"; then 6626 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6627else 6628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6629for as_dir in $PATH 6630do 6631 IFS=$as_save_IFS 6632 test -z "$as_dir" && as_dir=. 6633 for ac_exec_ext in '' $ac_executable_extensions; do 6634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6635 ac_cv_prog_ac_ct_STRIP="strip" 6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6637 break 2 6638 fi 6639done 6640 done 6641IFS=$as_save_IFS 6642 6643fi 6644fi 6645ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6646if test -n "$ac_ct_STRIP"; then 6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6648$as_echo "$ac_ct_STRIP" >&6; } 6649else 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6651$as_echo "no" >&6; } 6652fi 6653 6654 if test "x$ac_ct_STRIP" = x; then 6655 STRIP="" 6656 else 6657 case $cross_compiling:$ac_tool_warned in 6658yes:) 6659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6661ac_tool_warned=yes ;; 6662esac 6663 STRIP=$ac_ct_STRIP 6664 fi 6665else 6666 STRIP="$ac_cv_prog_STRIP" 6667fi 6668 6669if test -n "$ac_tool_prefix"; then 6670 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6671set dummy ${ac_tool_prefix}ar; ac_word=$2 6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6673$as_echo_n "checking for $ac_word... " >&6; } 6674if ${ac_cv_prog_AR+:} false; then : 6675 $as_echo_n "(cached) " >&6 6676else 6677 if test -n "$AR"; then 6678 ac_cv_prog_AR="$AR" # Let the user override the test. 6679else 6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6681for as_dir in $PATH 6682do 6683 IFS=$as_save_IFS 6684 test -z "$as_dir" && as_dir=. 6685 for ac_exec_ext in '' $ac_executable_extensions; do 6686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6687 ac_cv_prog_AR="${ac_tool_prefix}ar" 6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6689 break 2 6690 fi 6691done 6692 done 6693IFS=$as_save_IFS 6694 6695fi 6696fi 6697AR=$ac_cv_prog_AR 6698if test -n "$AR"; then 6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6700$as_echo "$AR" >&6; } 6701else 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6703$as_echo "no" >&6; } 6704fi 6705 6706 6707fi 6708if test -z "$ac_cv_prog_AR"; then 6709 ac_ct_AR=$AR 6710 # Extract the first word of "ar", so it can be a program name with args. 6711set dummy ar; ac_word=$2 6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6713$as_echo_n "checking for $ac_word... " >&6; } 6714if ${ac_cv_prog_ac_ct_AR+:} false; then : 6715 $as_echo_n "(cached) " >&6 6716else 6717 if test -n "$ac_ct_AR"; then 6718 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6719else 6720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6721for as_dir in $PATH 6722do 6723 IFS=$as_save_IFS 6724 test -z "$as_dir" && as_dir=. 6725 for ac_exec_ext in '' $ac_executable_extensions; do 6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6727 ac_cv_prog_ac_ct_AR="ar" 6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6729 break 2 6730 fi 6731done 6732 done 6733IFS=$as_save_IFS 6734 6735fi 6736fi 6737ac_ct_AR=$ac_cv_prog_ac_ct_AR 6738if test -n "$ac_ct_AR"; then 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6740$as_echo "$ac_ct_AR" >&6; } 6741else 6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6743$as_echo "no" >&6; } 6744fi 6745 6746 if test "x$ac_ct_AR" = x; then 6747 AR="" 6748 else 6749 case $cross_compiling:$ac_tool_warned in 6750yes:) 6751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6753ac_tool_warned=yes ;; 6754esac 6755 AR=$ac_ct_AR 6756 fi 6757else 6758 AR="$ac_cv_prog_AR" 6759fi 6760 6761if test -n "$ac_tool_prefix"; then 6762 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. 6763set dummy ${ac_tool_prefix}ld; ac_word=$2 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6765$as_echo_n "checking for $ac_word... " >&6; } 6766if ${ac_cv_prog_LD+:} false; then : 6767 $as_echo_n "(cached) " >&6 6768else 6769 if test -n "$LD"; then 6770 ac_cv_prog_LD="$LD" # Let the user override the test. 6771else 6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6773for as_dir in $PATH 6774do 6775 IFS=$as_save_IFS 6776 test -z "$as_dir" && as_dir=. 6777 for ac_exec_ext in '' $ac_executable_extensions; do 6778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6779 ac_cv_prog_LD="${ac_tool_prefix}ld" 6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6781 break 2 6782 fi 6783done 6784 done 6785IFS=$as_save_IFS 6786 6787fi 6788fi 6789LD=$ac_cv_prog_LD 6790if test -n "$LD"; then 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6792$as_echo "$LD" >&6; } 6793else 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6795$as_echo "no" >&6; } 6796fi 6797 6798 6799fi 6800if test -z "$ac_cv_prog_LD"; then 6801 ac_ct_LD=$LD 6802 # Extract the first word of "ld", so it can be a program name with args. 6803set dummy ld; ac_word=$2 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6805$as_echo_n "checking for $ac_word... " >&6; } 6806if ${ac_cv_prog_ac_ct_LD+:} false; then : 6807 $as_echo_n "(cached) " >&6 6808else 6809 if test -n "$ac_ct_LD"; then 6810 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. 6811else 6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6813for as_dir in $PATH 6814do 6815 IFS=$as_save_IFS 6816 test -z "$as_dir" && as_dir=. 6817 for ac_exec_ext in '' $ac_executable_extensions; do 6818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6819 ac_cv_prog_ac_ct_LD="ld" 6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6821 break 2 6822 fi 6823done 6824 done 6825IFS=$as_save_IFS 6826 6827fi 6828fi 6829ac_ct_LD=$ac_cv_prog_ac_ct_LD 6830if test -n "$ac_ct_LD"; then 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5 6832$as_echo "$ac_ct_LD" >&6; } 6833else 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6835$as_echo "no" >&6; } 6836fi 6837 6838 if test "x$ac_ct_LD" = x; then 6839 LD="" 6840 else 6841 case $cross_compiling:$ac_tool_warned in 6842yes:) 6843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6845ac_tool_warned=yes ;; 6846esac 6847 LD=$ac_ct_LD 6848 fi 6849else 6850 LD="$ac_cv_prog_LD" 6851fi 6852 6853 6854# Check whether --enable-monolithic was given. 6855if test "${enable_monolithic+set}" = set; then : 6856 enableval=$enable_monolithic; 6857fi 6858 6859 if test ${enable_monolithic:-yes} = yes; then 6860 MONOLITHIC_TRUE= 6861 MONOLITHIC_FALSE='#' 6862else 6863 MONOLITHIC_TRUE='#' 6864 MONOLITHIC_FALSE= 6865fi 6866 6867 6868# Check whether --enable-amule-daemon was given. 6869if test "${enable_amule_daemon+set}" = set; then : 6870 enableval=$enable_amule_daemon; 6871fi 6872 6873 if test ${enable_amule_daemon:-no} = yes; then 6874 AMULE_DAEMON_TRUE= 6875 AMULE_DAEMON_FALSE='#' 6876else 6877 AMULE_DAEMON_TRUE='#' 6878 AMULE_DAEMON_FALSE= 6879fi 6880 6881 6882# Check whether --enable-amulecmd was given. 6883if test "${enable_amulecmd+set}" = set; then : 6884 enableval=$enable_amulecmd; 6885fi 6886 6887 if test ${enable_amulecmd:-no} = yes; then 6888 COMPILE_CMD_TRUE= 6889 COMPILE_CMD_FALSE='#' 6890else 6891 COMPILE_CMD_TRUE='#' 6892 COMPILE_CMD_FALSE= 6893fi 6894 6895 6896# Check whether --enable-webserver was given. 6897if test "${enable_webserver+set}" = set; then : 6898 enableval=$enable_webserver; 6899fi 6900 6901 if test ${enable_webserver:-no} = yes; then 6902 WEB_TRUE= 6903 WEB_FALSE='#' 6904else 6905 WEB_TRUE='#' 6906 WEB_FALSE= 6907fi 6908 6909 6910# Check whether --enable-amule-gui was given. 6911if test "${enable_amule_gui+set}" = set; then : 6912 enableval=$enable_amule_gui; 6913fi 6914 6915 if test ${enable_amule_gui:-no} = yes; then 6916 AMULE_GUI_TRUE= 6917 AMULE_GUI_FALSE='#' 6918else 6919 AMULE_GUI_TRUE='#' 6920 AMULE_GUI_FALSE= 6921fi 6922 6923 6924# Check whether --enable-cas was given. 6925if test "${enable_cas+set}" = set; then : 6926 enableval=$enable_cas; 6927fi 6928 6929 if test ${enable_cas:-no} = yes; then 6930 CAS_TRUE= 6931 CAS_FALSE='#' 6932else 6933 CAS_TRUE='#' 6934 CAS_FALSE= 6935fi 6936 6937 6938# Check whether --enable-wxcas was given. 6939if test "${enable_wxcas+set}" = set; then : 6940 enableval=$enable_wxcas; 6941fi 6942 6943 if test ${enable_wxcas:-no} = yes; then 6944 WXCAS_TRUE= 6945 WXCAS_FALSE='#' 6946else 6947 WXCAS_TRUE='#' 6948 WXCAS_FALSE= 6949fi 6950 6951 6952# Check whether --enable-ed2k was given. 6953if test "${enable_ed2k+set}" = set; then : 6954 enableval=$enable_ed2k; 6955fi 6956 6957 if test ${enable_ed2k:-yes} = yes; then 6958 ED2K_TRUE= 6959 ED2K_FALSE='#' 6960else 6961 ED2K_TRUE='#' 6962 ED2K_FALSE= 6963fi 6964 6965 6966# Check whether --enable-alc was given. 6967if test "${enable_alc+set}" = set; then : 6968 enableval=$enable_alc; 6969fi 6970 6971 if test ${enable_alc:-no} = yes; then 6972 ALC_TRUE= 6973 ALC_FALSE='#' 6974else 6975 ALC_TRUE='#' 6976 ALC_FALSE= 6977fi 6978 6979 6980# Check whether --enable-alcc was given. 6981if test "${enable_alcc+set}" = set; then : 6982 enableval=$enable_alcc; 6983fi 6984 6985 if test ${enable_alcc:-no} = yes; then 6986 ALCC_TRUE= 6987 ALCC_FALSE='#' 6988else 6989 ALCC_TRUE='#' 6990 ALCC_FALSE= 6991fi 6992 6993 6994# Check whether --enable-xas was given. 6995if test "${enable_xas+set}" = set; then : 6996 enableval=$enable_xas; 6997fi 6998 6999 if test ${enable_xas:-no} = yes; then 7000 XAS_TRUE= 7001 XAS_FALSE='#' 7002else 7003 XAS_TRUE='#' 7004 XAS_FALSE= 7005fi 7006 7007 7008# Check whether --enable-fileview was given. 7009if test "${enable_fileview+set}" = set; then : 7010 enableval=$enable_fileview; 7011fi 7012 7013 if test ${enable_fileview:-no} = yes; then 7014 FILEVIEW_TRUE= 7015 FILEVIEW_FALSE='#' 7016else 7017 FILEVIEW_TRUE='#' 7018 FILEVIEW_FALSE= 7019fi 7020 7021 7022# Check whether --enable-plasmamule was given. 7023if test "${enable_plasmamule+set}" = set; then : 7024 enableval=$enable_plasmamule; 7025fi 7026 7027 7028 7029# Run all the tests with static linkage if we want a statically linked binary 7030# Check whether --enable-static was given. 7031if test "${enable_static+set}" = set; then : 7032 enableval=$enable_static; 7033fi 7034 7035 7036if test ${enable_static:-no} = yes; then : 7037 LDFLAGS="$LDFLAGS -static" 7038fi 7039 7040 7041 7042# Check whether --with-kde4-config was given. 7043if test "${with_kde4_config+set}" = set; then : 7044 withval=$with_kde4_config; KDE4_CONFIG=$withval 7045else 7046 KDE4_CONFIG="" 7047fi 7048 7049 # Check whether --enable-kde-in-home was given. 7050if test "${enable_kde_in_home+set}" = set; then : 7051 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval 7052else 7053 KDE_IN_HOME=no 7054fi 7055 7056 7057 7058 7059# Check whether --with-moc was given. 7060if test "${with_moc+set}" = set; then : 7061 withval=$with_moc; QT_MOC=$withval 7062else 7063 QT_MOC="" 7064fi 7065 7066 7067 7068# Default is yes, because they're most likely compatible. 7069# However, this is only used when cross-compiling. 7070 7071# Check whether --with-gnu-malloc was given. 7072if test "${with_gnu_malloc+set}" = set; then : 7073 withval=$with_gnu_malloc; gnumalloc=$withval 7074else 7075 gnumalloc=yes 7076fi 7077 7078 7079 7080# Checking for libs before all other stuff to break 7081# configure as soon as possible in case of a missing one 7082# to avoid losing too much time 7083 7084# Check for gd 7085 7086 7087if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 7088 if test -n "$ac_tool_prefix"; then 7089 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 7090set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7092$as_echo_n "checking for $ac_word... " >&6; } 7093if ${ac_cv_path_PKG_CONFIG+:} false; then : 7094 $as_echo_n "(cached) " >&6 7095else 7096 case $PKG_CONFIG in 7097 [\\/]* | ?:[\\/]*) 7098 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7099 ;; 7100 *) 7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7102for as_dir in $PATH 7103do 7104 IFS=$as_save_IFS 7105 test -z "$as_dir" && as_dir=. 7106 for ac_exec_ext in '' $ac_executable_extensions; do 7107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7108 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7110 break 2 7111 fi 7112done 7113 done 7114IFS=$as_save_IFS 7115 7116 ;; 7117esac 7118fi 7119PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7120if test -n "$PKG_CONFIG"; then 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 7122$as_echo "$PKG_CONFIG" >&6; } 7123else 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7125$as_echo "no" >&6; } 7126fi 7127 7128 7129fi 7130if test -z "$ac_cv_path_PKG_CONFIG"; then 7131 ac_pt_PKG_CONFIG=$PKG_CONFIG 7132 # Extract the first word of "pkg-config", so it can be a program name with args. 7133set dummy pkg-config; ac_word=$2 7134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7135$as_echo_n "checking for $ac_word... " >&6; } 7136if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 7137 $as_echo_n "(cached) " >&6 7138else 7139 case $ac_pt_PKG_CONFIG in 7140 [\\/]* | ?:[\\/]*) 7141 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 7142 ;; 7143 *) 7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7145for as_dir in $PATH 7146do 7147 IFS=$as_save_IFS 7148 test -z "$as_dir" && as_dir=. 7149 for ac_exec_ext in '' $ac_executable_extensions; do 7150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7151 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7153 break 2 7154 fi 7155done 7156 done 7157IFS=$as_save_IFS 7158 7159 ;; 7160esac 7161fi 7162ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 7163if test -n "$ac_pt_PKG_CONFIG"; then 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 7165$as_echo "$ac_pt_PKG_CONFIG" >&6; } 7166else 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7168$as_echo "no" >&6; } 7169fi 7170 7171 if test "x$ac_pt_PKG_CONFIG" = x; then 7172 PKG_CONFIG="" 7173 else 7174 case $cross_compiling:$ac_tool_warned in 7175yes:) 7176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7178ac_tool_warned=yes ;; 7179esac 7180 PKG_CONFIG=$ac_pt_PKG_CONFIG 7181 fi 7182else 7183 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 7184fi 7185 7186fi 7187if test -n "$PKG_CONFIG"; then 7188 _pkg_min_version=0.9.0 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 7190$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 7191 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7193$as_echo "yes" >&6; } 7194 else 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7196$as_echo "no" >&6; } 7197 PKG_CONFIG="" 7198 fi 7199 7200fi 7201 7202 7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7204$as_echo_n "checking for ANSI C header files... " >&6; } 7205if ${ac_cv_header_stdc+:} false; then : 7206 $as_echo_n "(cached) " >&6 7207else 7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7209/* end confdefs.h. */ 7210#include <stdlib.h> 7211#include <stdarg.h> 7212#include <string.h> 7213#include <float.h> 7214 7215int 7216main () 7217{ 7218 7219 ; 7220 return 0; 7221} 7222_ACEOF 7223if ac_fn_c_try_compile "$LINENO"; then : 7224 ac_cv_header_stdc=yes 7225else 7226 ac_cv_header_stdc=no 7227fi 7228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7229 7230if test $ac_cv_header_stdc = yes; then 7231 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7233/* end confdefs.h. */ 7234#include <string.h> 7235 7236_ACEOF 7237if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7238 $EGREP "memchr" >/dev/null 2>&1; then : 7239 7240else 7241 ac_cv_header_stdc=no 7242fi 7243rm -f conftest* 7244 7245fi 7246 7247if test $ac_cv_header_stdc = yes; then 7248 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7250/* end confdefs.h. */ 7251#include <stdlib.h> 7252 7253_ACEOF 7254if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7255 $EGREP "free" >/dev/null 2>&1; then : 7256 7257else 7258 ac_cv_header_stdc=no 7259fi 7260rm -f conftest* 7261 7262fi 7263 7264if test $ac_cv_header_stdc = yes; then 7265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7266 if test "$cross_compiling" = yes; then : 7267 : 7268else 7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7270/* end confdefs.h. */ 7271#include <ctype.h> 7272#include <stdlib.h> 7273#if ((' ' & 0x0FF) == 0x020) 7274# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7275# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7276#else 7277# define ISLOWER(c) \ 7278 (('a' <= (c) && (c) <= 'i') \ 7279 || ('j' <= (c) && (c) <= 'r') \ 7280 || ('s' <= (c) && (c) <= 'z')) 7281# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7282#endif 7283 7284#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7285int 7286main () 7287{ 7288 int i; 7289 for (i = 0; i < 256; i++) 7290 if (XOR (islower (i), ISLOWER (i)) 7291 || toupper (i) != TOUPPER (i)) 7292 return 2; 7293 return 0; 7294} 7295_ACEOF 7296if ac_fn_c_try_run "$LINENO"; then : 7297 7298else 7299 ac_cv_header_stdc=no 7300fi 7301rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7302 conftest.$ac_objext conftest.beam conftest.$ac_ext 7303fi 7304 7305fi 7306fi 7307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7308$as_echo "$ac_cv_header_stdc" >&6; } 7309if test $ac_cv_header_stdc = yes; then 7310 7311$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7312 7313fi 7314 7315# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7316for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7317 inttypes.h stdint.h unistd.h 7318do : 7319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7320ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7321" 7322if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7323 cat >>confdefs.h <<_ACEOF 7324#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7325_ACEOF 7326 7327fi 7328 7329done 7330 7331 7332if test ${enable_cas:-no} = yes; then : 7333 7334 7335 7336 7337# Check whether --with-gdlib-prefix was given. 7338if test "${with_gdlib_prefix+set}" = set; then : 7339 withval=$with_gdlib_prefix; 7340fi 7341 7342 7343# Check whether --with-gdlib-config was given. 7344if test "${with_gdlib_config+set}" = set; then : 7345 withval=$with_gdlib_config; 7346fi 7347 7348 7349 GDLIB_VERSION= 7350 7351 # Check gdlib in pkg-config first to avoid deprecation warnings 7352 # If --with-gdlib-config or --with-gdlib-prefix was given, then 7353 # skip the pkg-config check, the user probably wants to use 7354 # another gdlib instance. 7355 if test -z "${with_gdlib_config:-}${with_gdlib_prefix:-}"; then : 7356 7357 if test -n "$PKG_CONFIG"; then : 7358 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib" >&5 7360$as_echo_n "checking for gdlib... " >&6; } 7361 7362 if $PKG_CONFIG gdlib --exists; then : 7363 7364 GDLIB_VERSION=`$PKG_CONFIG gdlib --modversion` 7365 7366 if $PKG_CONFIG gdlib --atleast-version=2.0.0; then : 7367 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5 7369$as_echo "yes (version $GDLIB_VERSION)" >&6; } 7370 GDLIB_CFLAGS=`$PKG_CONFIG gdlib --cflags` 7371 GDLIB_LDFLAGS=`$PKG_CONFIG gdlib --libs-only-L` 7372 GDLIB_LIBS=`$PKG_CONFIG gdlib --libs-only-other` 7373 GDLIB_LIBS="$GDLIB_LIBS `$PKG_CONFIG gdlib --libs-only-l`" 7374 7375else 7376 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5 7378$as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; } 7379 GDLIB_VERSION= 7380 7381fi 7382 7383else 7384 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7386$as_echo "no" >&6; } 7387 7388fi 7389 7390fi 7391 7392fi 7393 7394 # Try gdlib-config if we did not find a sufficient gdlib version in pkg-config 7395 if test -z "$GDLIB_VERSION"; then : 7396 7397 # do we have gdlib-config name: it can be gdlib-config or gd-config or ... 7398 if test x${GDLIB_CONFIG_NAME+set} != xset; then : 7399 GDLIB_CONFIG_NAME=gdlib-config 7400fi 7401 if test -n "$with_gdlib_config"; then : 7402 GDLIB_CONFIG_NAME="$with_gdlib_config" 7403fi 7404 7405 # deal with optional prefix 7406 if test -n "$with_gdlib_prefix"; then : 7407 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin" 7408fi 7409 7410 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename 7411 if test -x "$GDLIB_CONFIG_NAME"; then : 7412 7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5 7414$as_echo_n "checking for gdlib-config... " >&6; } 7415 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME" 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5 7417$as_echo "$GDLIB_CONFIG_PATH" >&6; } 7418 7419else 7420 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args. 7421set dummy $GDLIB_CONFIG_NAME; ac_word=$2 7422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7423$as_echo_n "checking for $ac_word... " >&6; } 7424if ${ac_cv_path_GDLIB_CONFIG_PATH+:} false; then : 7425 $as_echo_n "(cached) " >&6 7426else 7427 case $GDLIB_CONFIG_PATH in 7428 [\\/]* | ?:[\\/]*) 7429 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path. 7430 ;; 7431 *) 7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7433as_dummy="$GDLIB_LOOKUP_PATH:$PATH" 7434for as_dir in $as_dummy 7435do 7436 IFS=$as_save_IFS 7437 test -z "$as_dir" && as_dir=. 7438 for ac_exec_ext in '' $ac_executable_extensions; do 7439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7440 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext" 7441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7442 break 2 7443 fi 7444done 7445 done 7446IFS=$as_save_IFS 7447 7448 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no" 7449 ;; 7450esac 7451fi 7452GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH 7453if test -n "$GDLIB_CONFIG_PATH"; then 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5 7455$as_echo "$GDLIB_CONFIG_PATH" >&6; } 7456else 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7458$as_echo "no" >&6; } 7459fi 7460 7461 7462fi 7463 7464 if test ${GDLIB_CONFIG_PATH:-no} != no; then : 7465 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5 7467$as_echo_n "checking for gdlib version >= 2.0.0... " >&6; } 7468 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args" 7469 7470 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version` 7471 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'` 7472 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'` 7473 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` 7474 7475 if test $gdlib_config_major_version -gt 2; then 7476 gdlib_ver_ok=yes 7477elif test $gdlib_config_major_version -eq 2; then 7478 7479 if test $gdlib_config_minor_version -gt 0; then 7480 gdlib_ver_ok=yes 7481elif test $gdlib_config_minor_version -eq 0; then 7482 if test $gdlib_config_micro_version -ge 0; then 7483 gdlib_ver_ok=yes 7484fi 7485 7486fi 7487 7488 7489fi 7490 7491 7492fi 7493 7494 if test -z "${gdlib_ver_ok:-}"; then : 7495 7496 if test -z "$GDLIB_VERSION"; then : 7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7498$as_echo "no" >&6; } 7499else 7500 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5 7502$as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; } 7503 GDLIB_VERSION= 7504 7505fi 7506 7507else 7508 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5 7510$as_echo "yes (version $GDLIB_VERSION)" >&6; } 7511 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`" 7512 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`" 7513 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`" 7514 7515fi 7516 7517fi 7518 7519 if test -n "$GDLIB_VERSION"; then : 7520 7521 mule_backup_CFLAGS="$CFLAGS" 7522 CFLAGS="$CFLAGS $GDLIB_CFLAGS" 7523 7524 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default" 7525if test "x$ac_cv_header_gd_h" = xyes; then : 7526 7527else 7528 7529 GDLIB_CFLAGS= 7530 GDLIB_LDFLAGS= 7531 GDLIB_LIBS= 7532 GDLIB_VERSION= 7533 7534fi 7535 7536 7537 7538 CFLAGS="$mule_backup_CFLAGS" 7539 7540fi 7541 7542 if test -n "$GDLIB_VERSION"; then : 7543 7544 CAS_DEFS="-D__GD__" 7545 GDLIB_LIBS="-lgd" 7546 7547else 7548 CAS_DEFS= 7549fi 7550 7551 7552 7553 if test -z "$CAS_DEFS"; then : 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 7555 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found. 7556 Please check that gdlib-config is in your default path, check out 7557 LD_LIBRARY_PATH or equivalent variable. 7558 Or this might also be that your gdlib-config has other name. 7559 Please try again with --with-gdlib-config=/usr/bin/gdlib-config 7560 (replace /usr/bin/gdlib-config with a valid path to your 7561 gdlib-config). 7562 If you use compiled packages check if you have devel pack installed. 7563 To download the latest version check http://www.boutell.com/gd for 7564 sources." >&5 7565$as_echo "$as_me: WARNING: 7566 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found. 7567 Please check that gdlib-config is in your default path, check out 7568 LD_LIBRARY_PATH or equivalent variable. 7569 Or this might also be that your gdlib-config has other name. 7570 Please try again with --with-gdlib-config=/usr/bin/gdlib-config 7571 (replace /usr/bin/gdlib-config with a valid path to your 7572 gdlib-config). 7573 If you use compiled packages check if you have devel pack installed. 7574 To download the latest version check http://www.boutell.com/gd for 7575 sources." >&2;} 7576_mule_warning_0=yes 7577_mule_has_warnings=yes 7578 7579fi 7580 7581fi 7582 7583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 7584$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 7585if ${ac_cv_header_stdbool_h+:} false; then : 7586 $as_echo_n "(cached) " >&6 7587else 7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7589/* end confdefs.h. */ 7590 7591 #include <stdbool.h> 7592 #ifndef bool 7593 "error: bool is not defined" 7594 #endif 7595 #ifndef false 7596 "error: false is not defined" 7597 #endif 7598 #if false 7599 "error: false is not 0" 7600 #endif 7601 #ifndef true 7602 "error: true is not defined" 7603 #endif 7604 #if true != 1 7605 "error: true is not 1" 7606 #endif 7607 #ifndef __bool_true_false_are_defined 7608 "error: __bool_true_false_are_defined is not defined" 7609 #endif 7610 7611 struct s { _Bool s: 1; _Bool t; } s; 7612 7613 char a[true == 1 ? 1 : -1]; 7614 char b[false == 0 ? 1 : -1]; 7615 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 7616 char d[(bool) 0.5 == true ? 1 : -1]; 7617 /* See body of main program for 'e'. */ 7618 char f[(_Bool) 0.0 == false ? 1 : -1]; 7619 char g[true]; 7620 char h[sizeof (_Bool)]; 7621 char i[sizeof s.t]; 7622 enum { j = false, k = true, l = false * true, m = true * 256 }; 7623 /* The following fails for 7624 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 7625 _Bool n[m]; 7626 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 7627 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 7628 /* Catch a bug in an HP-UX C compiler. See 7629 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 7630 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 7631 */ 7632 _Bool q = true; 7633 _Bool *pq = &q; 7634 7635int 7636main () 7637{ 7638 7639 bool e = &s; 7640 *pq |= q; 7641 *pq |= ! q; 7642 /* Refer to every declared value, to avoid compiler optimizations. */ 7643 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 7644 + !m + !n + !o + !p + !q + !pq); 7645 7646 ; 7647 return 0; 7648} 7649_ACEOF 7650if ac_fn_c_try_compile "$LINENO"; then : 7651 ac_cv_header_stdbool_h=yes 7652else 7653 ac_cv_header_stdbool_h=no 7654fi 7655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7656fi 7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 7658$as_echo "$ac_cv_header_stdbool_h" >&6; } 7659 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 7660if test "x$ac_cv_type__Bool" = xyes; then : 7661 7662cat >>confdefs.h <<_ACEOF 7663#define HAVE__BOOL 1 7664_ACEOF 7665 7666 7667fi 7668 7669 7670if test $ac_cv_header_stdbool_h = yes; then 7671 7672$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 7673 7674fi 7675 7676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 7677$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 7678if ${ac_cv_c_const+:} false; then : 7679 $as_echo_n "(cached) " >&6 7680else 7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7682/* end confdefs.h. */ 7683 7684int 7685main () 7686{ 7687 7688#ifndef __cplusplus 7689 /* Ultrix mips cc rejects this sort of thing. */ 7690 typedef int charset[2]; 7691 const charset cs = { 0, 0 }; 7692 /* SunOS 4.1.1 cc rejects this. */ 7693 char const *const *pcpcc; 7694 char **ppc; 7695 /* NEC SVR4.0.2 mips cc rejects this. */ 7696 struct point {int x, y;}; 7697 static struct point const zero = {0,0}; 7698 /* AIX XL C 1.02.0.0 rejects this. 7699 It does not let you subtract one const X* pointer from another in 7700 an arm of an if-expression whose if-part is not a constant 7701 expression */ 7702 const char *g = "string"; 7703 pcpcc = &g + (g ? g-g : 0); 7704 /* HPUX 7.0 cc rejects these. */ 7705 ++pcpcc; 7706 ppc = (char**) pcpcc; 7707 pcpcc = (char const *const *) ppc; 7708 { /* SCO 3.2v4 cc rejects this sort of thing. */ 7709 char tx; 7710 char *t = &tx; 7711 char const *s = 0 ? (char *) 0 : (char const *) 0; 7712 7713 *t++ = 0; 7714 if (s) return 0; 7715 } 7716 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7717 int x[] = {25, 17}; 7718 const int *foo = &x[0]; 7719 ++foo; 7720 } 7721 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7722 typedef const int *iptr; 7723 iptr p = 0; 7724 ++p; 7725 } 7726 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 7727 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7728 struct s { int j; const int *ap[3]; } bx; 7729 struct s *b = &bx; b->j = 5; 7730 } 7731 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7732 const int foo = 10; 7733 if (!foo) return 0; 7734 } 7735 return !cs[0] && !zero.x; 7736#endif 7737 7738 ; 7739 return 0; 7740} 7741_ACEOF 7742if ac_fn_c_try_compile "$LINENO"; then : 7743 ac_cv_c_const=yes 7744else 7745 ac_cv_c_const=no 7746fi 7747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7748fi 7749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 7750$as_echo "$ac_cv_c_const" >&6; } 7751if test $ac_cv_c_const = no; then 7752 7753$as_echo "#define const /**/" >>confdefs.h 7754 7755fi 7756 7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 7758$as_echo_n "checking for inline... " >&6; } 7759if ${ac_cv_c_inline+:} false; then : 7760 $as_echo_n "(cached) " >&6 7761else 7762 ac_cv_c_inline=no 7763for ac_kw in inline __inline__ __inline; do 7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7765/* end confdefs.h. */ 7766#ifndef __cplusplus 7767typedef int foo_t; 7768static $ac_kw foo_t static_foo () {return 0; } 7769$ac_kw foo_t foo () {return 0; } 7770#endif 7771 7772_ACEOF 7773if ac_fn_c_try_compile "$LINENO"; then : 7774 ac_cv_c_inline=$ac_kw 7775fi 7776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7777 test "$ac_cv_c_inline" != no && break 7778done 7779 7780fi 7781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 7782$as_echo "$ac_cv_c_inline" >&6; } 7783 7784case $ac_cv_c_inline in 7785 inline | yes) ;; 7786 *) 7787 case $ac_cv_c_inline in 7788 no) ac_val=;; 7789 *) ac_val=$ac_cv_c_inline;; 7790 esac 7791 cat >>confdefs.h <<_ACEOF 7792#ifndef __cplusplus 7793#define inline $ac_val 7794#endif 7795_ACEOF 7796 ;; 7797esac 7798 7799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 7800$as_echo_n "checking for working volatile... " >&6; } 7801if ${ac_cv_c_volatile+:} false; then : 7802 $as_echo_n "(cached) " >&6 7803else 7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7805/* end confdefs.h. */ 7806 7807int 7808main () 7809{ 7810 7811volatile int x; 7812int * volatile y = (int *) 0; 7813return !x && !y; 7814 ; 7815 return 0; 7816} 7817_ACEOF 7818if ac_fn_c_try_compile "$LINENO"; then : 7819 ac_cv_c_volatile=yes 7820else 7821 ac_cv_c_volatile=no 7822fi 7823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7824fi 7825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 7826$as_echo "$ac_cv_c_volatile" >&6; } 7827if test $ac_cv_c_volatile = no; then 7828 7829$as_echo "#define volatile /**/" >>confdefs.h 7830 7831fi 7832 7833 7834ac_ext=cpp 7835ac_cpp='$CXXCPP $CPPFLAGS' 7836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7839 7840 7841 7842# Check for zlib 7843 7844if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then : 7845 7846 7847# Check whether --with-zlib was given. 7848if test "${with_zlib+set}" = set; then : 7849 withval=$with_zlib; 7850fi 7851 7852 7853 case "${with_zlib:-yes}" in 7854 no) 7855 as_fn_error $? "zlib >= 1.1.4 is required for aMule" "$LINENO" 5 7856 ;; 7857 yes | sys) 7858 ;; 7859 *) 7860 zlib_prefix="$with_zlib" 7861 esac 7862 7863 mule_backup_CPPFLAGS="$CPPFLAGS" 7864 mule_backup_LDFLAGS="$LDFLAGS" 7865 mule_backup_LIBS="$LIBS" 7866 if test -n "$zlib_prefix"; then : 7867 7868 ZLIB_CPPFLAGS="-I$zlib_prefix/include" 7869 ZLIB_LDFLAGS="-L$zlib_prefix/lib" 7870 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS" 7871 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS" 7872 7873else 7874 7875 ZLIB_CPPFLAGS= 7876 ZLIB_LDFLAGS= 7877 7878fi 7879 ZLIB_LIBS="-lz" 7880 LIBS="$ZLIB_LIBS $LIBS" 7881 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5 7883$as_echo_n "checking for zlib >= 1.1.4... " >&6; } 7884 if test "$cross_compiling" = yes; then : 7885 7886 result=no 7887 z_version= 7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7889/* end confdefs.h. */ 7890 7891 7892 #include <zlib.h> 7893 #include <stdio.h> 7894 7895int 7896main () 7897{ 7898 7899 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n"); 7900 zlibVersion(); 7901 7902 ; 7903 return 0; 7904} 7905 7906_ACEOF 7907if ac_fn_cxx_try_link "$LINENO"; then : 7908 7909 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'` 7910 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`" 7911 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`" 7912 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`" 7913 if test "$cross_zver_max" -gt "1"; then 7914 result=yes 7915elif test "$cross_zver_max" -eq "1"; then 7916 7917 if test "$cross_zver_mid" -gt "1"; then 7918 result=yes 7919elif test "$cross_zver_mid" -eq "1"; then 7920 if test "$cross_zver_min" -ge "4"; then 7921 result=yes 7922fi 7923 7924fi 7925 7926 7927fi 7928 7929 if test ${result:-no} = yes; then : 7930 z_version=" (version $ZLIB_VERSION)" 7931fi 7932 7933fi 7934rm -f core conftest.err conftest.$ac_objext \ 7935 conftest$ac_exeext conftest.$ac_ext 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5 7937$as_echo "$result$z_version" >&6; } 7938 7939else 7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7941/* end confdefs.h. */ 7942 7943 7944 #include <zlib.h> 7945 #include <stdio.h> 7946 7947int 7948main () 7949{ 7950 const char *zver = zlibVersion(); 7951 FILE *f=fopen("conftestval", "w"); 7952 if (!f) return 1; 7953 fprintf(f, "%s", 7954 zver[0] > '1' || 7955 (zver[0] == '1' && 7956 (zver[2] > '1' || 7957 (zver[2] == '1' && 7958 zver[4] >= '4'))) ? "yes" : "no"); 7959 fclose(f); 7960 f=fopen("conftestver", "w"); 7961 if (f) { 7962 fprintf(f, "%s", ZLIB_VERSION); 7963 fclose(f); 7964 } 7965 7966 ; 7967 return 0; 7968} 7969 7970_ACEOF 7971if ac_fn_cxx_try_run "$LINENO"; then : 7972 7973 if test -f conftestval; then : 7974 result=`cat conftestval` 7975else 7976 result=no 7977fi 7978 if test ${result:-no} = yes; then : 7979 7980 if test -f conftestver; then : 7981 7982 ZLIB_VERSION=`cat conftestver` 7983 z_version=" (version $ZLIB_VERSION)" 7984 7985else 7986 z_version= 7987fi 7988 7989fi 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5 7991$as_echo "$result$z_version" >&6; } 7992 7993else 7994 7995 result=no 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 7997$as_echo "$result" >&6; } 7998 7999fi 8000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8001 conftest.$ac_objext conftest.beam conftest.$ac_ext 8002fi 8003 8004 8005 CPPFLAGS="$mule_backup_CPPFLAGS" 8006 LDFLAGS="$mule_backup_LDFLAGS" 8007 LIBS="$mule_backup_LIBS" 8008 8009 if test ${result:-no} = no; then : 8010 8011 ZLIB_CPPFLAGS= 8012 ZLIB_LDFLAGS= 8013 ZLIB_LIBS= 8014 as_fn_error $? "zlib >= 1.1.4 is required for aMule" "$LINENO" 5 8015 8016fi 8017 8018 8019fi 8020 8021 8022# Check for libpng 8023if test ${enable_webserver:-no} = yes; then : 8024 8025 8026# Check whether --with-libpng-prefix was given. 8027if test "${with_libpng_prefix+set}" = set; then : 8028 withval=$with_libpng_prefix; 8029fi 8030 8031 8032# Check whether --with-libpng-config was given. 8033if test "${with_libpng_config+set}" = set; then : 8034 withval=$with_libpng_config; 8035fi 8036 8037 8038 LIBPNG_VERSION= 8039 8040 # do we have libpng-config name: it can be libpng-config or libpng12-config or ... 8041 if test x${LIBPNG_CONFIG_NAME+set} != xset; then : 8042 LIBPNG_CONFIG_NAME=libpng-config 8043fi 8044 if test -n "$with_libpng_config"; then : 8045 LIBPNG_CONFIG_NAME="$with_libpng_config" 8046fi 8047 8048 # deal with optional prefix 8049 if test -n "$with_libpng_prefix"; then : 8050 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin" 8051fi 8052 8053 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename 8054 if test -x "$LIBPNG_CONFIG_NAME"; then : 8055 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5 8057$as_echo_n "checking for libpng-config... " >&6; } 8058 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME" 8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5 8060$as_echo "$LIBPNG_CONFIG_PATH" >&6; } 8061 8062else 8063 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args. 8064set dummy $LIBPNG_CONFIG_NAME; ac_word=$2 8065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8066$as_echo_n "checking for $ac_word... " >&6; } 8067if ${ac_cv_path_LIBPNG_CONFIG_PATH+:} false; then : 8068 $as_echo_n "(cached) " >&6 8069else 8070 case $LIBPNG_CONFIG_PATH in 8071 [\\/]* | ?:[\\/]*) 8072 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path. 8073 ;; 8074 *) 8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8076as_dummy="$LIBPNG_LOOKUP_PATH:$PATH" 8077for as_dir in $as_dummy 8078do 8079 IFS=$as_save_IFS 8080 test -z "$as_dir" && as_dir=. 8081 for ac_exec_ext in '' $ac_executable_extensions; do 8082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8083 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext" 8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8085 break 2 8086 fi 8087done 8088 done 8089IFS=$as_save_IFS 8090 8091 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no" 8092 ;; 8093esac 8094fi 8095LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH 8096if test -n "$LIBPNG_CONFIG_PATH"; then 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5 8098$as_echo "$LIBPNG_CONFIG_PATH" >&6; } 8099else 8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8101$as_echo "no" >&6; } 8102fi 8103 8104 8105fi 8106 8107 if test ${LIBPNG_CONFIG_PATH:-no} != no; then : 8108 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5 8110$as_echo_n "checking for libpng version >= 1.2.0... " >&6; } 8111 8112 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args" 8113 8114 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version` 8115 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'` 8116 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'` 8117 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` 8118 8119 libpng_ver_ok= 8120 if test $libpng_config_major_version -gt 1; then 8121 libpng_ver_ok=yes 8122elif test $libpng_config_major_version -eq 1; then 8123 8124 if test $libpng_config_minor_version -gt 2; then 8125 libpng_ver_ok=yes 8126elif test $libpng_config_minor_version -eq 2; then 8127 if test $libpng_config_micro_version -ge 0; then 8128 libpng_ver_ok=yes 8129fi 8130 8131fi 8132 8133 8134fi 8135 8136 8137 if test -z "$libpng_ver_ok"; then : 8138 8139 if test -z "$LIBPNG_VERSION"; then : 8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8141$as_echo "no" >&6; } 8142else 8143 8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5 8145$as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; } 8146 LIBPNG_VERSION= 8147 8148fi 8149 8150else 8151 8152 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs` 8153 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"` 8154 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags` 8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5 8156$as_echo "yes (version $LIBPNG_VERSION)" >&6; } 8157 8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5 8159$as_echo_n "checking if libpng is usable... " >&6; } 8160 8161 SAVED_CFLAGS=$CFLAGS 8162 SAVED_LDFLAGS=$LDFLAGS 8163 SAVED_LIBS=$LIBS 8164 8165 CFLAGS="$CFLAGS $LIBPNG_CFLAGS" 8166 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS" 8167 LIBS="$LIBS $LIBPNG_LIBS" 8168 8169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8170/* end confdefs.h. */ 8171 8172 8173 #include <png.h> 8174 #include <stdio.h> 8175 8176int 8177main () 8178{ 8179 8180 png_uint_32 libpng_vn = png_access_version_number(); 8181 printf("\nlibpng version %i\n\n", libpng_vn); 8182 8183 ; 8184 return 0; 8185} 8186 8187_ACEOF 8188if ac_fn_cxx_try_link "$LINENO"; then : 8189 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8191$as_echo "yes" >&6; } 8192 8193else 8194 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5 8196$as_echo "no (failed to compile and link test program)" >&6; } 8197 LIBPNG_LIBS= 8198 LIBPNG_LDFLAGS= 8199 LIBPNG_CFLAGS= 8200 LIBPNG_VERSION= 8201 8202fi 8203rm -f core conftest.err conftest.$ac_objext \ 8204 conftest$ac_exeext conftest.$ac_ext 8205 8206 CFLAGS="$SAVED_CFLAGS" 8207 LDFLAGS="$SAVED_LDFLAGS" 8208 LIBS="$SAVED_LIBS" 8209 8210fi 8211 8212fi 8213 8214 if test -n "$LIBPNG_VERSION"; then : 8215 AMULEWEB_DEFS="-DWITH_LIBPNG" 8216else 8217 8218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 8219 libpng >= 1.2.0 not found. 8220 amuleweb will be compiled but file download progress bar images will 8221 NOT be generated." >&5 8222$as_echo "$as_me: WARNING: 8223 libpng >= 1.2.0 not found. 8224 amuleweb will be compiled but file download progress bar images will 8225 NOT be generated." >&2;} 8226_mule_warning_1=yes 8227_mule_has_warnings=yes 8228 8229 8230fi 8231 8232 8233 8234 8235fi 8236 8237 8238# Check for GeoIP (required for IP2Country capability) 8239 8240if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then : 8241 8242 # Check whether --enable-geoip was given. 8243if test "${enable_geoip+set}" = set; then : 8244 enableval=$enable_geoip; 8245fi 8246 8247 8248 8249 if test ${enable_geoip:-no} = yes; then : 8250 8251 8252# Check whether --with-geoip-headers was given. 8253if test "${with_geoip_headers+set}" = set; then : 8254 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval" 8255fi 8256 8257 8258# Check whether --with-geoip-lib was given. 8259if test "${with_geoip_lib+set}" = set; then : 8260 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval" 8261fi 8262 8263 8264 mule_backup_CPPFLAGS="$CPPFLAGS" 8265 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS" 8266 mule_backup_LDFLAGS="$LDFLAGS" 8267 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS" 8268 8269 ac_fn_cxx_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default" 8270if test "x$ac_cv_header_GeoIP_h" = xyes; then : 8271 8272 if test x$SYS = xwin32; then : 8273 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5 8275$as_echo_n "checking for WinSock library needed by GeoIP... " >&6; } 8276 # Actually, we might not need any if GeoIP is linked as a .dll 8277 # - but that's even harder to check for 8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8279/* end confdefs.h. */ 8280 8281 8282 #include <GeoIP.h> 8283 #if (defined _WINSOCK2API_ || defined _WINSOCK2_H) 8284 I do know it's not the best approach, but at least works with MinGW stock headers. 8285 (tested with w32api-3.12) 8286 #endif 8287 8288int 8289main () 8290{ 8291 8292 ; 8293 return 0; 8294} 8295 8296_ACEOF 8297if ac_fn_cxx_try_compile "$LINENO"; then : 8298 8299 GEOIP_WINSOCK_LIB="-lwsock32" 8300 8301else 8302 8303 GEOIP_WINSOCK_LIB="-lws2_32" 8304 8305fi 8306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5 8308$as_echo "$GEOIP_WINSOCK_LIB" >&6; } 8309 8310fi 8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5 8312$as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; } 8313if ${ac_cv_lib_GeoIP_GeoIP_open+:} false; then : 8314 $as_echo_n "(cached) " >&6 8315else 8316 ac_check_lib_save_LIBS=$LIBS 8317LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS" 8318cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8319/* end confdefs.h. */ 8320 8321/* Override any GCC internal prototype to avoid an error. 8322 Use char because int might match the return type of a GCC 8323 builtin and then its argument prototype would still apply. */ 8324#ifdef __cplusplus 8325extern "C" 8326#endif 8327char GeoIP_open (); 8328int 8329main () 8330{ 8331return GeoIP_open (); 8332 ; 8333 return 0; 8334} 8335_ACEOF 8336if ac_fn_cxx_try_link "$LINENO"; then : 8337 ac_cv_lib_GeoIP_GeoIP_open=yes 8338else 8339 ac_cv_lib_GeoIP_GeoIP_open=no 8340fi 8341rm -f core conftest.err conftest.$ac_objext \ 8342 conftest$ac_exeext conftest.$ac_ext 8343LIBS=$ac_check_lib_save_LIBS 8344fi 8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5 8346$as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; } 8347if test "x$ac_cv_lib_GeoIP_GeoIP_open" = xyes; then : 8348 8349 8350$as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h 8351 8352 GEOIP_LIBS="-lGeoIP" 8353 if test x$SYS = xwin32; then : 8354 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB" 8355fi 8356 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1" 8357 8358# Check whether --with-geoip-static was given. 8359if test "${with_geoip_static+set}" = set; then : 8360 withval=$with_geoip_static; 8361 if test "$withval" != "no" -a ${enable_static:-no} = no; then : 8362 8363 mule_backup_LIBS="$LIBS" 8364 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS" 8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8366/* end confdefs.h. */ 8367 8368 8369 #include <GeoIP.h> 8370 8371int 8372main () 8373{ 8374 8375 GeoIP *g = GeoIP_new(GEOIP_STANDARD); 8376 8377 ; 8378 return 0; 8379} 8380 8381_ACEOF 8382if ac_fn_cxx_try_link "$LINENO"; then : 8383 8384 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic" 8385 8386else 8387 8388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 8389 Cannot link GeoIP statically, because your linker ($LD) does not 8390 support it." >&5 8391$as_echo "$as_me: WARNING: 8392 Cannot link GeoIP statically, because your linker ($LD) does not 8393 support it." >&2;} 8394_mule_warning_2=yes 8395_mule_has_warnings=yes 8396 8397 8398fi 8399rm -f core conftest.err conftest.$ac_objext \ 8400 conftest$ac_exeext conftest.$ac_ext 8401 LIBS="$mule_backup_LIBS" 8402 8403fi 8404 8405fi 8406 8407 8408else 8409 8410 enable_geoip=disabled 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 8412 GeoIP support has been disabled because the GeoIP libraries were not 8413 found" >&5 8414$as_echo "$as_me: WARNING: 8415 GeoIP support has been disabled because the GeoIP libraries were not 8416 found" >&2;} 8417_mule_warning_3=yes 8418_mule_has_warnings=yes 8419 8420 8421fi 8422 8423 8424else 8425 8426 enable_geoip=disabled 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 8428 GeoIP support has been disabled because the GeoIP header files were 8429 not found" >&5 8430$as_echo "$as_me: WARNING: 8431 GeoIP support has been disabled because the GeoIP header files were 8432 not found" >&2;} 8433_mule_warning_4=yes 8434_mule_has_warnings=yes 8435 8436 8437fi 8438 8439 8440 8441 CPPFLAGS="$mule_backup_CPPFLAGS" 8442 LDFLAGS="$mule_backup_LDFLAGS" 8443 8444fi 8445 8446fi 8447 8448 8449# Check for wx 8450if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then : 8451 8452 8453# Check whether --with-wxdir was given. 8454if test "${with_wxdir+set}" = set; then : 8455 withval=$with_wxdir; wx_config_name="$withval/wx-config" 8456 wx_config_args="--inplace" 8457fi 8458 8459 8460# Check whether --with-wx-config was given. 8461if test "${with_wx_config+set}" = set; then : 8462 withval=$with_wx_config; wx_config_name="$withval" 8463fi 8464 8465 8466# Check whether --with-wx-prefix was given. 8467if test "${with_wx_prefix+set}" = set; then : 8468 withval=$with_wx_prefix; wx_config_prefix="$withval" 8469else 8470 wx_config_prefix="" 8471fi 8472 8473 8474# Check whether --with-wx-exec-prefix was given. 8475if test "${with_wx_exec_prefix+set}" = set; then : 8476 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval" 8477else 8478 wx_config_exec_prefix="" 8479fi 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493# Check whether --with-toolkit was given. 8494if test "${with_toolkit+set}" = set; then : 8495 withval=$with_toolkit; 8496else 8497 withval="auto" 8498fi 8499 8500 8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5 8502$as_echo_n "checking for the --with-toolkit option... " >&6; } 8503 if test "$withval" = "auto" ; then 8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5 8505$as_echo "will be automatically detected" >&6; } 8506 TOOLKIT="" 8507 else 8508 TOOLKIT="$withval" 8509 8510 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a "$TOOLKIT" != "gtk3" -a \ 8511 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \ 8512 "$TOOLKIT" != "osx_carbon" -a "$TOOLKIT" != "osx_cocoa" -a \ 8513 "$TOOLKIT" != "dfb" -a "$TOOLKIT" != "x11" -a "$TOOLKIT" != "base"; then 8514 as_fn_error $? " 8515 Unrecognized option value (allowed values: auto, gtk1, gtk2, gtk3, msw, motif, osx_carbon, osx_cocoa, dfb, x11, base) 8516 " "$LINENO" 5 8517 fi 8518 8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5 8520$as_echo "$TOOLKIT" >&6; } 8521 fi 8522 8523 8524 8525 8526 8527# Check whether --with-wxshared was given. 8528if test "${with_wxshared+set}" = set; then : 8529 withval=$with_wxshared; 8530else 8531 withval="auto" 8532fi 8533 8534 8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5 8536$as_echo_n "checking for the --with-wxshared option... " >&6; } 8537 if test "$withval" = "yes" ; then 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8539$as_echo "yes" >&6; } 8540 WX_SHARED=1 8541 8542 elif test "1" = "1" -a "$withval" = "no" ; then 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8544$as_echo "no" >&6; } 8545 WX_SHARED=0 8546 elif test "$withval" = "auto" ; then 8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5 8548$as_echo "will be automatically detected" >&6; } 8549 WX_SHARED="" 8550 else 8551 as_fn_error $? " 8552 Unrecognized option value (allowed values: yes, auto) 8553 " "$LINENO" 5 8554 fi 8555 8556 8557 8558 8559 8560# Check whether --with-wxdebug was given. 8561if test "${with_wxdebug+set}" = set; then : 8562 withval=$with_wxdebug; 8563else 8564 withval="auto" 8565fi 8566 8567 8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5 8569$as_echo_n "checking for the --with-wxdebug option... " >&6; } 8570 if test "$withval" = "yes" ; then 8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8572$as_echo "yes" >&6; } 8573 WX_DEBUG=1 8574 8575 elif test "1" = "1" -a "$withval" = "no" ; then 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8577$as_echo "no" >&6; } 8578 WX_DEBUG=0 8579 elif test "$withval" = "auto" ; then 8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5 8581$as_echo "will be automatically detected" >&6; } 8582 WX_DEBUG="" 8583 else 8584 as_fn_error $? " 8585 Unrecognized option value (allowed values: yes, auto) 8586 " "$LINENO" 5 8587 fi 8588 8589 8590 8591 8592 8593# Check whether --with-wxversion was given. 8594if test "${with_wxversion+set}" = set; then : 8595 withval=$with_wxversion; 8596else 8597 withval="auto" 8598fi 8599 8600 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5 8602$as_echo_n "checking for the --with-wxversion option... " >&6; } 8603 if test "$withval" = "auto" ; then 8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5 8605$as_echo "will be automatically detected" >&6; } 8606 WX_RELEASE="" 8607 else 8608 8609 wx_requested_major_version=`echo $withval | \ 8610 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'` 8611 wx_requested_minor_version=`echo $withval | \ 8612 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'` 8613 8614 if test "${#wx_requested_major_version}" != "1" -o \ 8615 "${#wx_requested_minor_version}" != "1" ; then 8616 as_fn_error $? " 8617 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9, 3.0) 8618 " "$LINENO" 5 8619 fi 8620 8621 WX_RELEASE="$wx_requested_major_version"".""$wx_requested_minor_version" 8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_RELEASE" >&5 8623$as_echo "$WX_RELEASE" >&6; } 8624 fi 8625 8626 8627 if test "$WX_DEBUG_CONFIGURE" = "1"; then 8628 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG" 8629 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE" 8630 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED" 8631 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT" 8632 echo "[dbg] VERSION: $VERSION, WX_RELEASE: $WX_RELEASE" 8633 fi 8634 8635 # Force using a static wxWidgets library if the executable is to be linked statically. 8636 if test ${enable_static:-no} = yes; then : 8637 WX_SHARED=0 8638fi 8639 # Force using a unicode build of the library 8640 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_fileview:-no} = yes ; then : 8641 WX_UNICODE=1 8642fi 8643 DEBUG=$WX_DEBUG 8644 8645 if test "$WX_SHARED" = "1" ; then 8646 WXCONFIG_FLAGS="--static=no " 8647 elif test "$WX_SHARED" = "0" ; then 8648 WXCONFIG_FLAGS="--static=yes " 8649 fi 8650 8651 if test "$WX_DEBUG" = "1" ; then 8652 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes " 8653 elif test "$WX_DEBUG" = "0" ; then 8654 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no " 8655 fi 8656 8657 if test "$WX_UNICODE" = "1" ; then 8658 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes " 8659 elif test "$WX_UNICODE" = "0" ; then 8660 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no " 8661 fi 8662 8663 if test -n "$TOOLKIT" ; then 8664 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT " 8665 fi 8666 8667 if test -n "$WX_RELEASE" ; then 8668 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_RELEASE " 8669 fi 8670 8671 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% } 8672 8673 if test "$WX_DEBUG_CONFIGURE" = "1"; then 8674 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS" 8675 fi 8676 8677 8678 if test x${WX_CONFIG_NAME+set} != xset ; then 8679 WX_CONFIG_NAME=wx-config 8680 fi 8681 8682 if test "x$wx_config_name" != x ; then 8683 WX_CONFIG_NAME="$wx_config_name" 8684 fi 8685 8686 if test x$wx_config_exec_prefix != x ; then 8687 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix" 8688 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin" 8689 fi 8690 if test x$wx_config_prefix != x ; then 8691 wx_config_args="$wx_config_args --prefix=$wx_config_prefix" 8692 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin" 8693 fi 8694 if test "$cross_compiling" = "yes"; then 8695 wx_config_args="$wx_config_args --host=$host_alias" 8696 fi 8697 8698 if test -x "$WX_CONFIG_NAME" ; then 8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5 8700$as_echo_n "checking for wx-config... " >&6; } 8701 WX_CONFIG_PATH="$WX_CONFIG_NAME" 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5 8703$as_echo "$WX_CONFIG_PATH" >&6; } 8704 else 8705 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args. 8706set dummy $WX_CONFIG_NAME; ac_word=$2 8707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8708$as_echo_n "checking for $ac_word... " >&6; } 8709if ${ac_cv_path_WX_CONFIG_PATH+:} false; then : 8710 $as_echo_n "(cached) " >&6 8711else 8712 case $WX_CONFIG_PATH in 8713 [\\/]* | ?:[\\/]*) 8714 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path. 8715 ;; 8716 *) 8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8718as_dummy=""$WX_LOOKUP_PATH:$PATH"" 8719for as_dir in $as_dummy 8720do 8721 IFS=$as_save_IFS 8722 test -z "$as_dir" && as_dir=. 8723 for ac_exec_ext in '' $ac_executable_extensions; do 8724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8725 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext" 8726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8727 break 2 8728 fi 8729done 8730 done 8731IFS=$as_save_IFS 8732 8733 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no" 8734 ;; 8735esac 8736fi 8737WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH 8738if test -n "$WX_CONFIG_PATH"; then 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5 8740$as_echo "$WX_CONFIG_PATH" >&6; } 8741else 8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8743$as_echo "no" >&6; } 8744fi 8745 8746 8747 fi 8748 8749 if test "$WX_CONFIG_PATH" != "no" ; then 8750 WX_VERSION="" 8751 8752 min_wx_version=2.8.12 8753 if test -z "$WXCONFIG_FLAGS" ; then 8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5 8755$as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; } 8756 else 8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5 8758$as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; } 8759 fi 8760 8761 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS" 8762 8763 WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null` 8764 wx_config_major_version=`echo $WX_VERSION | \ 8765 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 8766 wx_config_minor_version=`echo $WX_VERSION | \ 8767 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 8768 wx_config_micro_version=`echo $WX_VERSION | \ 8769 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 8770 8771 wx_requested_major_version=`echo $min_wx_version | \ 8772 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 8773 wx_requested_minor_version=`echo $min_wx_version | \ 8774 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 8775 wx_requested_micro_version=`echo $min_wx_version | \ 8776 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 8777 8778 8779 wx_ver_ok="" 8780 if test "x$WX_VERSION" != x ; then 8781 if test $wx_config_major_version -gt $wx_requested_major_version; then 8782 wx_ver_ok=yes 8783 else 8784 if test $wx_config_major_version -eq $wx_requested_major_version; then 8785 if test $wx_config_minor_version -gt $wx_requested_minor_version; then 8786 wx_ver_ok=yes 8787 else 8788 if test $wx_config_minor_version -eq $wx_requested_minor_version; then 8789 if test $wx_config_micro_version -ge $wx_requested_micro_version; then 8790 wx_ver_ok=yes 8791 fi 8792 fi 8793 fi 8794 fi 8795 fi 8796 fi 8797 8798 8799 if test -n "$wx_ver_ok"; then 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION)" >&5 8801$as_echo "yes (version $WX_VERSION)" >&6; } 8802 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs ` 8803 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets static library" >&5 8805$as_echo_n "checking for wxWidgets static library... " >&6; } 8806 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null` 8807 if test "x$WX_LIBS_STATIC" = "x"; then 8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8809$as_echo "no" >&6; } 8810 else 8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8812$as_echo "yes" >&6; } 8813 fi 8814 8815 wx_has_cppflags="" 8816 if test $wx_config_major_version -gt 2; then 8817 wx_has_cppflags=yes 8818 else 8819 if test $wx_config_major_version -eq 2; then 8820 if test $wx_config_minor_version -gt 2; then 8821 wx_has_cppflags=yes 8822 else 8823 if test $wx_config_minor_version -eq 2; then 8824 if test $wx_config_micro_version -ge 6; then 8825 wx_has_cppflags=yes 8826 fi 8827 fi 8828 fi 8829 fi 8830 fi 8831 8832 wx_has_rescomp="" 8833 if test $wx_config_major_version -gt 2; then 8834 wx_has_rescomp=yes 8835 else 8836 if test $wx_config_major_version -eq 2; then 8837 if test $wx_config_minor_version -ge 7; then 8838 wx_has_rescomp=yes 8839 fi 8840 fi 8841 fi 8842 if test "x$wx_has_rescomp" = x ; then 8843 WX_RESCOMP= 8844 else 8845 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp` 8846 fi 8847 8848 if test "x$wx_has_cppflags" = x ; then 8849 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags ` 8850 WX_CPPFLAGS=$WX_CFLAGS 8851 WX_CXXFLAGS=$WX_CFLAGS 8852 8853 WX_CFLAGS_ONLY=$WX_CFLAGS 8854 WX_CXXFLAGS_ONLY=$WX_CFLAGS 8855 else 8856 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags ` 8857 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags ` 8858 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags ` 8859 8860 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"` 8861 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"` 8862 fi 8863 8864 wxWin=1 8865 8866 else 8867 8868 if test "x$WX_VERSION" = x; then 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8870$as_echo "no" >&6; } 8871 else 8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION is not new enough)" >&5 8873$as_echo "no (version $WX_VERSION is not new enough)" >&6; } 8874 fi 8875 8876 WX_CFLAGS="" 8877 WX_CPPFLAGS="" 8878 WX_CXXFLAGS="" 8879 WX_LIBS="" 8880 WX_LIBS_STATIC="" 8881 WX_RESCOMP="" 8882 8883 if test ! -z "$WXCONFIG_FLAGS"; then 8884 8885 wx_error_message=" 8886 The configuration you asked for $PACKAGE_NAME requires a wxWidgets 8887 build with the following settings: 8888 $WXCONFIG_FLAGS 8889 but such build is not available. 8890 8891 To see the wxWidgets builds available on this system, please use 8892 'wx-config --list' command. To use the default build, returned by 8893 'wx-config --selected-config', use the options with their 'auto' 8894 default values." 8895 8896 fi 8897 8898 wx_error_message=" 8899 The requested wxWidgets build couldn't be found. 8900 $wx_error_message 8901 8902 If you still get this error, then check that 'wx-config' is 8903 in path, the directory where wxWidgets libraries are installed 8904 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH 8905 or equivalent variable and wxWidgets version is 2.8.12 or above." 8906 8907 as_fn_error $? "$wx_error_message" "$LINENO" 5 8908 8909 fi 8910 else 8911 8912 WX_CFLAGS="" 8913 WX_CPPFLAGS="" 8914 WX_CXXFLAGS="" 8915 WX_LIBS="" 8916 WX_LIBS_STATIC="" 8917 WX_RESCOMP="" 8918 8919 : 8920 8921 fi 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 WX_VERSION_MAJOR="$wx_config_major_version" 8934 WX_VERSION_MINOR="$wx_config_minor_version" 8935 WX_VERSION_MICRO="$wx_config_micro_version" 8936 8937 8938 8939 8940 if test "$wxWin" != 1; then : 8941 as_fn_error $? " 8942 wxWidgets must be installed on your system but wx-config 8943 script couldn't be found. Please check that wx-config is 8944 in path or specified by --with-wx-config=path flag, the 8945 directory where wxWidgets libraries are installed (returned 8946 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or 8947 equivalent variable and wxWidgets version is 2.8.12 or above. 8948 " "$LINENO" 5 8949 8950fi 8951 if test "${WX_VERSION_FULL}" = "2.9.0"; then : 8952 as_fn_error $? " 8953 This version of wxWidgets is known to not work with aMule. 8954 Please upgrade to a newer version. 8955 " "$LINENO" 5 8956 8957fi 8958 8959 WX_RELEASE="$WX_VERSION_MAJOR""$WX_VERSION_MINOR" 8960 if test $WX_RELEASE -lt 26 ; then 8961 8962 as_fn_error $? " 8963 Cannot detect the wxWidgets configuration for the selected wxWidgets build 8964 since its version is $WX_VERSION < 2.6.0; please install a newer 8965 version of wxWidgets. 8966 " "$LINENO" 5 8967 fi 8968 8969 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config) 8970 8971 if test "$WX_DEBUG_CONFIGURE" = "1"; then 8972 echo "[dbg] Using wx-config --selected-config" 8973 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG" 8974 fi 8975 8976 if test "$WX_SHARED" = "1"; then 8977 STATIC=0 8978 elif test "$WX_SHARED" = "0"; then 8979 STATIC=1 8980 fi 8981 8982 8983 if test -z "$UNICODE" ; then 8984 8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5 8986$as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; } 8987 8988 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*") 8989 8990 if test "$WX_UNICODE" != "0"; then 8991 WX_UNICODE=1 8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8993$as_echo "yes" >&6; } 8994 else 8995 WX_UNICODE=0 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8997$as_echo "no" >&6; } 8998 fi 8999 else 9000 9001 WX_UNICODE=$UNICODE 9002 fi 9003 9004 9005 if test -z "$DEBUG" ; then 9006 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5 9008$as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; } 9009 9010 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*") 9011 9012 if test "$WX_DEBUG" != "0"; then 9013 WX_DEBUG=1 9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9015$as_echo "yes" >&6; } 9016 else 9017 WX_DEBUG=0 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9019$as_echo "no" >&6; } 9020 fi 9021 else 9022 9023 WX_DEBUG=$DEBUG 9024 fi 9025 9026 9027 if test -z "$STATIC" ; then 9028 9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5 9030$as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; } 9031 9032 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*") 9033 9034 if test "$WX_STATIC" != "0"; then 9035 WX_STATIC=1 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9037$as_echo "yes" >&6; } 9038 else 9039 WX_STATIC=0 9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9041$as_echo "no" >&6; } 9042 fi 9043 else 9044 9045 WX_STATIC=$STATIC 9046 fi 9047 9048 9049 if test "$WX_STATIC" != "0"; then 9050 WX_SHARED=0 9051 else 9052 WX_SHARED=1 9053 fi 9054 9055 9056 9057 9058 9059 if test -z "$TOOLKIT" ; then 9060 9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5 9062$as_echo_n "checking which wxWidgets toolkit was selected... " >&6; } 9063 9064 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*") 9065 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*") 9066 WX_GTKPORT3=$(expr "$WX_SELECTEDCONFIG" : ".*gtk3.*") 9067 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*") 9068 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*") 9069 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*") 9070 WX_OSXCARBONPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_carbon.*") 9071 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*") 9072 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*") 9073 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*") 9074 9075 WX_PORT="unknown" 9076 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi 9077 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi 9078 if test "$WX_GTKPORT3" != "0"; then WX_PORT="gtk3"; fi 9079 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi 9080 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi 9081 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi 9082 if test "$WX_OSXCARBONPORT" != "0"; then WX_PORT="osx_carbon"; fi 9083 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi 9084 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi 9085 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi 9086 9087 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*") 9088 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi 9089 9090 9091 if test "$WX_PORT" = "unknown" ; then 9092 as_fn_error $? " 9093 Cannot detect the currently installed wxWidgets port ! 9094 Please check your 'wx-config --cxxflags'... 9095 " "$LINENO" 5 9096 fi 9097 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5 9099$as_echo "$WX_PORT" >&6; } 9100 else 9101 WX_PORT=$TOOLKIT 9102 fi 9103 9104 9105 9106 if test "$WX_DEBUG_CONFIGURE" = "1"; then 9107 echo "[dbg] Values of all WX_* options after final detection:" 9108 echo "[dbg] WX_DEBUG: $WX_DEBUG" 9109 echo "[dbg] WX_UNICODE: $WX_UNICODE" 9110 echo "[dbg] WX_SHARED: $WX_SHARED" 9111 echo "[dbg] WX_RELEASE: $WX_RELEASE" 9112 echo "[dbg] WX_PORT: $WX_PORT" 9113 fi 9114 9115 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then 9116 as_fn_error $? " 9117 Cannot build shared library against a static build of wxWidgets ! 9118 This error happens because the wxWidgets build which was selected 9119 has been detected as static while you asked to build $PACKAGE_NAME 9120 as shared library and this is not possible. 9121 Use the '--disable-shared' option to build $PACKAGE_NAME 9122 as static library or '--with-wxshared' to use wxWidgets as shared library. 9123 " "$LINENO" 5 9124 fi 9125 9126 if test -z "$UNICODE" ; then 9127 UNICODE=$WX_UNICODE 9128 fi 9129 if test -z "$SHARED" ; then 9130 SHARED=$WX_SHARED 9131 fi 9132 if test -z "$TOOLKIT" ; then 9133 TOOLKIT=$WX_PORT 9134 fi 9135 9136 if test "$DEBUG" = "1"; then 9137 BUILD="debug" 9138 CXXFLAGS="$CXXFLAGS -g -O0" 9139 CFLAGS="$CFLAGS -g -O0" 9140 elif test "$DEBUG" = "0"; then 9141 BUILD="release" 9142 CXXFLAGS="$CXXFLAGS -O2" 9143 CFLAGS="$CFLAGS -O2" 9144 fi 9145 9146 9147 # We also need wxBase 9148 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net` 9149 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net` 9150 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0" 9151 9152 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'` 9153 9154fi 9155 9156if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then : 9157 if test "${WX_PORT}" = base; then : 9158 as_fn_error $? " 9159 The selected components need a wxWidgets library with GUI, 9160 but your installation is base-only. Please install a GUI 9161 enabled version of wxWidgets and then retry. 9162 " "$LINENO" 5 9163 9164fi 9165fi 9166 9167 9168if test ${SYS:-unknown} = win32; then : 9169 if test -n "$ac_tool_prefix"; then 9170 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 9171set dummy ${ac_tool_prefix}windres; ac_word=$2 9172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9173$as_echo_n "checking for $ac_word... " >&6; } 9174if ${ac_cv_prog_RC+:} false; then : 9175 $as_echo_n "(cached) " >&6 9176else 9177 if test -n "$RC"; then 9178 ac_cv_prog_RC="$RC" # Let the user override the test. 9179else 9180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9181for as_dir in $PATH 9182do 9183 IFS=$as_save_IFS 9184 test -z "$as_dir" && as_dir=. 9185 for ac_exec_ext in '' $ac_executable_extensions; do 9186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9187 ac_cv_prog_RC="${ac_tool_prefix}windres" 9188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9189 break 2 9190 fi 9191done 9192 done 9193IFS=$as_save_IFS 9194 9195fi 9196fi 9197RC=$ac_cv_prog_RC 9198if test -n "$RC"; then 9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 9200$as_echo "$RC" >&6; } 9201else 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9203$as_echo "no" >&6; } 9204fi 9205 9206 9207fi 9208if test -z "$ac_cv_prog_RC"; then 9209 ac_ct_RC=$RC 9210 # Extract the first word of "windres", so it can be a program name with args. 9211set dummy windres; ac_word=$2 9212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9213$as_echo_n "checking for $ac_word... " >&6; } 9214if ${ac_cv_prog_ac_ct_RC+:} false; then : 9215 $as_echo_n "(cached) " >&6 9216else 9217 if test -n "$ac_ct_RC"; then 9218 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. 9219else 9220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9221for as_dir in $PATH 9222do 9223 IFS=$as_save_IFS 9224 test -z "$as_dir" && as_dir=. 9225 for ac_exec_ext in '' $ac_executable_extensions; do 9226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9227 ac_cv_prog_ac_ct_RC="windres" 9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9229 break 2 9230 fi 9231done 9232 done 9233IFS=$as_save_IFS 9234 9235fi 9236fi 9237ac_ct_RC=$ac_cv_prog_ac_ct_RC 9238if test -n "$ac_ct_RC"; then 9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 9240$as_echo "$ac_ct_RC" >&6; } 9241else 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9243$as_echo "no" >&6; } 9244fi 9245 9246 if test "x$ac_ct_RC" = x; then 9247 RC=":" 9248 else 9249 case $cross_compiling:$ac_tool_warned in 9250yes:) 9251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9253ac_tool_warned=yes ;; 9254esac 9255 RC=$ac_ct_RC 9256 fi 9257else 9258 RC="$ac_cv_prog_RC" 9259fi 9260 9261fi 9262 9263 9264# Check for libupnp 9265# Check whether --enable-upnp was given. 9266if test "${enable_upnp+set}" = set; then : 9267 enableval=$enable_upnp; 9268fi 9269 9270 9271if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then : 9272 9273else 9274 enable_upnp=no 9275fi 9276if test ${enable_upnp:-yes} = yes; then : 9277 9278 9279 9280# Check whether --with-libupnp-prefix was given. 9281if test "${with_libupnp_prefix+set}" = set; then : 9282 withval=$with_libupnp_prefix; 9283 if test -d "$withval/lib64/pkgconfig"; then : 9284 9285 export PKG_CONFIG_PATH=$withval/lib64/pkgconfig 9286 9287else 9288 9289 export PKG_CONFIG_PATH=$withval/lib/pkgconfig 9290 9291fi 9292 9293fi 9294 9295 9296 if test $cross_compiling = no; then : 9297 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5 9299$as_echo_n "checking for libupnp version >= 1.6.6... " >&6; } 9300 if test -n "$PKG_CONFIG"; then : 9301 9302 if $PKG_CONFIG libupnp --exists; then : 9303 9304 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion` 9305 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then : 9306 9307 result=yes 9308 resultstr=" (version $LIBUPNP_VERSION)" 9309 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I` 9310 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other` 9311 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L` 9312 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other` 9313 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`" 9314 9315else 9316 9317 result=no 9318 resultstr=" (version $LIBUPNP_VERSION is not new enough)" 9319 9320fi 9321 9322else 9323 9324 result=no 9325 resultstr=" (try to use --with-libupnp-prefix=PREFIX)" 9326 9327fi 9328 9329else 9330 9331 result=no 9332 resultstr=" (pkg-config not found)" 9333 9334fi 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5 9336$as_echo "$result$resultstr" >&6; } 9337 libupnp_error="libupnp >= 1.6.6 not found$resultstr" 9338 9339else 9340 9341 result=no 9342 libupnp_error="cross compiling" 9343 9344fi 9345 9346 if test ${result:-no} = yes; then : 9347 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1" 9348else 9349 enable_upnp=disabled 9350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 9351 UPnP code has been disabled because ${libupnp_error}." >&5 9352$as_echo "$as_me: WARNING: 9353 UPnP code has been disabled because ${libupnp_error}." >&2;} 9354_mule_warning_5=yes 9355_mule_has_warnings=yes 9356 9357 9358fi 9359 9360 9361 9362fi 9363 9364# Check for Crypto++ (requires C++) >= 5.5 9365if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then : 9366 9367 9368# Check whether --with-crypto-prefix was given. 9369if test "${with_crypto_prefix+set}" = set; then : 9370 withval=$with_crypto_prefix; 9371fi 9372 9373 9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.5" >&5 9375$as_echo_n "checking for crypto++ version >= 5.5... " >&6; } 9376 9377 cryptopp_found=false 9378 9379 if test -n "$with_crypto_prefix"; then : 9380 9381 CRYPTOPP_PREFIX="$with_crypto_prefix" 9382 # Find the Cryptopp header in the user-provided location 9383 if test -f $CRYPTOPP_PREFIX/cryptlib.h; then 9384 9385 cryptopp_found=true 9386 CRYPTOPP_LIB_NAME="cryptopp" 9387 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX" 9388 CRYPTOPP_CPPFLAGS= 9389 CRYPTOPP_LDFLAGS= 9390 CRYPTOPP_LIBS="${CRYPTOPP_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a" 9391 9392else 9393 9394 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do 9395 if test -f $CRYPTOPP_PREFIX/include/$CRYPTOPP_LIB_NAME/cryptlib.h; then : 9396 9397 cryptopp_found=true 9398 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME" 9399 CRYPTOPP_CPPFLAGS="-I$CRYPTOPP_PREFIX/include" 9400 CRYPTOPP_LDFLAGS="-L$CRYPTOPP_PREFIX/lib" 9401 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME" 9402 break 9403 9404fi 9405 done 9406 9407fi 9408 9409 9410else 9411 9412 # Check whether the compiler can find it 9413 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do 9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9415/* end confdefs.h. */ 9416 9417 #include <$CRYPTOPP_LIB_NAME/cryptlib.h> 9418 9419int 9420main () 9421{ 9422 9423 ; 9424 return 0; 9425} 9426 9427_ACEOF 9428if ac_fn_cxx_try_compile "$LINENO"; then : 9429 9430 cryptopp_found=true 9431 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME" 9432 CRYPTOPP_CPPFLAGS= 9433 CRYPTOPP_LDFLAGS= 9434 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME" 9435 break 9436 9437fi 9438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9439 done 9440 9441fi 9442 9443 if $cryptopp_found; then : 9444 9445 # Find out the crypto++ version and check against the minimum required 9446 # Ask the compiler where are the crypto++ files 9447 mule_backup_CPPFLAGS="$CPPFLAGS" 9448 CPPFLAGS="$CPPFLAGS $CRYPTOPP_CPPFLAGS" 9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9450/* end confdefs.h. */ 9451 9452 #include <$CRYPTOPP_INCLUDE_PREFIX/cryptlib.h> 9453 9454_ACEOF 9455 cryptopp_header_path=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -e '/^#.*cryptlib.h/{s/.*"\(.*\)".*/\1/;q;};d'` 9456 rm -f conftest* 9457 CPPFLAGS="$mule_backup_CPPFLAGS" 9458 # Set a prefix suitable for --with-crypto-prefix 9459 CRYPTOPP_PREFIX="${cryptopp_header_path%/*}" 9460 CRYPTOPP_PREFIX="${CRYPTOPP_PREFIX%/include/${CRYPTOPP_LIB_NAME}}" 9461 # Now check the version 9462 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'` 9463 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` 9464 minvers=`echo 5.5 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` 9465 9466 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then : 9467 9468 result=yes 9469 resultstr=" (version $CRYPTOPP_VERSION_STRING)" 9470 9471 cat >>confdefs.h <<_ACEOF 9472#define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX 9473_ACEOF 9474 9475 9476else 9477 9478 result=no 9479 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)" 9480 CRYPTOPP_CPPFLAGS= 9481 CRYPTOPP_LDFLAGS= 9482 CRYPTOPP_LIBS= 9483 9484fi 9485 9486else 9487 result="no"; resultstr= 9488fi 9489 9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5 9491$as_echo "$result$resultstr" >&6; } 9492 9493 if test ${result:-no} = yes; then : 9494 9495else 9496 9497 as_fn_error $? " 9498 Could not find crypto++ installation or sources. 9499 Please try again with --with-crypto-prefix=/my_crypto_prefix 9500 (replace /my_crypto_prefix with a valid path to your crypto++ 9501 installation or source directory)." "$LINENO" 5 9502 9503fi 9504 9505 9506fi 9507 9508 9509 9510 # Check whether --enable-debug was given. 9511if test "${enable_debug+set}" = set; then : 9512 enableval=$enable_debug; 9513fi 9514 9515 9516 # Check whether --enable-profile was given. 9517if test "${enable_profile+set}" = set; then : 9518 enableval=$enable_profile; 9519fi 9520 9521 9522 # Check whether --enable-optimize was given. 9523if test "${enable_optimize+set}" = set; then : 9524 enableval=$enable_optimize; 9525fi 9526 9527 9528 9529 if test ${enable_debug:-yes} = yes; then : 9530 9531 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__" 9532 9533 MULECFLAGS="$MULECFLAGS -g" 9534 MULECXXFLAGS="$MULECXXFLAGS -g" 9535 9536 if test ${GCC:-no} = yes; then : 9537 9538 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0" 9539 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0" 9540 9541fi 9542 if test ${SYS:-unknown} = win32; then : 9543 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__" 9544fi 9545 9546else 9547 9548 if test ${GCC:-no} = yes; then : 9549 9550 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef" 9551 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef" 9552 9553fi 9554 9555fi 9556 9557 if test ${enable_profile:-no} = yes; then : 9558 9559 9560 MULECFLAGS="$MULECFLAGS -pg" 9561 MULECXXFLAGS="$MULECXXFLAGS -pg" 9562 9563 MULELDFLAGS="$MULELDFLAGS -pg" 9564 9565fi 9566 9567 if test ${enable_optimize:-no} = yes; then : 9568 9569 MULECFLAGS="$MULECFLAGS -O2" 9570 MULECXXFLAGS="$MULECXXFLAGS -O2" 9571 9572fi 9573 9574 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS" 9575 9576 9577 9578if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_ed2k:-yes} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then : 9579 9580 9581 9582 9583 if test ${GCC:-no} = yes; then : 9584 9585 mule_backup_CXXFLAGS="$CXXFLAGS" 9586 CXXFLAGS="$CXXFLAGS $MULECPPFLAGS $MULECFLAGS $MULECXXFLAGS -Werror" 9587 9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) uses strict aliasing" >&5 9589$as_echo_n "checking whether the C++ compiler ($CXX) uses strict aliasing... " >&6; } 9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9591/* end confdefs.h. */ 9592 9593 9594int 9595main () 9596{ 9597 9598 int a; 9599 short *b = (short*)&a; 9600 short c = *b; 9601 9602 return c; 9603 9604 ; 9605 return 0; 9606} 9607 9608_ACEOF 9609if ac_fn_cxx_try_compile "$LINENO"; then : 9610 9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9612$as_echo "no" >&6; } 9613 9614else 9615 9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9617$as_echo "yes" >&6; } 9618 $as_echo "#define GCC_USES_STRICT_ALIASING 1" >>confdefs.h 9619 9620 9621fi 9622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9623 9624 CXXFLAGS="$mule_backup_CXXFLAGS" 9625 9626fi 9627 9628if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then : 9629 9630 mule_backup_CPPFLAGS="$CPPFLAGS" 9631 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS" 9632 9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5 9634$as_echo_n "checking that wxWidgets has support for large files... " >&6; } 9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9636/* end confdefs.h. */ 9637 9638 9639 #include <wx/wx.h> 9640 #include <wx/filefn.h> 9641 #ifndef wxHAS_LARGE_FILES 9642 #error No LargeFile support! 9643 #endif 9644 9645 9646_ACEOF 9647if ac_fn_cxx_try_cpp "$LINENO"; then : 9648 9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9650$as_echo "yes" >&6; } 9651 9652else 9653 9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9655$as_echo "no" >&6; } 9656 as_fn_error $? " 9657 Support for large files in wxWidgets is required by aMule. 9658 To continue you must recompile wxWidgets with support for 9659 large files enabled." "$LINENO" 5 9660 9661fi 9662rm -f conftest.err conftest.i conftest.$ac_ext 9663 9664 CPPFLAGS="$mule_backup_CPPFLAGS" 9665 9666fi 9667 9668# Check if the compiler is broken, wrt. exceptions. 9669 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5 9671$as_echo_n "checking for exception-handling... " >&6; } 9672 if test "$cross_compiling" = yes; then : 9673 9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5 9675$as_echo "undeterminable" >&6; } 9676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 9677 Cross-compilation detected, so exception handling cannot be tested. 9678 Note that broken exception handling in your compiler may lead to 9679 unexpected crashes." >&5 9680$as_echo "$as_me: WARNING: 9681 Cross-compilation detected, so exception handling cannot be tested. 9682 Note that broken exception handling in your compiler may lead to 9683 unexpected crashes." >&2;} 9684_mule_warning_6=yes 9685_mule_has_warnings=yes 9686 9687 9688else 9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9690/* end confdefs.h. */ 9691 9692 9693int 9694main () 9695{ 9696 9697 try { 9698 throw 1; 9699 } catch (int) { 9700 return 0; 9701 } 9702 return 1; 9703 9704 ; 9705 return 0; 9706} 9707 9708_ACEOF 9709if ac_fn_cxx_try_run "$LINENO"; then : 9710 9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9712$as_echo "yes" >&6; } 9713 9714else 9715 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9717$as_echo "no" >&6; } 9718 as_fn_error $? "Exception handling does not work. Broken compiler?" "$LINENO" 5 9719 9720fi 9721rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9722 conftest.$ac_objext conftest.beam conftest.$ac_ext 9723fi 9724 9725 9726 9727 9728 for ac_header in typeinfo 9729do : 9730 ac_fn_cxx_check_header_mongrel "$LINENO" "typeinfo" "ac_cv_header_typeinfo" "$ac_includes_default" 9731if test "x$ac_cv_header_typeinfo" = xyes; then : 9732 cat >>confdefs.h <<_ACEOF 9733#define HAVE_TYPEINFO 1 9734_ACEOF 9735 9736fi 9737 9738done 9739 9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5 9741$as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; } 9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9743/* end confdefs.h. */ 9744 9745 9746 #ifdef HAVE_TYPEINFO 9747 # include <typeinfo> 9748 #endif 9749 #include <cxxabi.h> 9750 9751int 9752main () 9753{ 9754 9755 int status; 9756 char * demangled = abi::__cxa_demangle("", 0, 0, &status); 9757 std::type_info *ti = abi::__cxa_current_exception_type(); 9758 9759 ; 9760 return 0; 9761} 9762 9763_ACEOF 9764if ac_fn_cxx_try_link "$LINENO"; then : 9765 9766 9767 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h 9768 9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9770$as_echo "yes" >&6; } 9771 9772else 9773 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9775$as_echo "no" >&6; } 9776 9777fi 9778rm -f core conftest.err conftest.$ac_objext \ 9779 conftest$ac_exeext conftest.$ac_ext 9780 9781 9782if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then : 9783 9784 9785# Check whether --with-boost was given. 9786if test "${with_boost+set}" = set; then : 9787 withval=$with_boost; 9788else 9789 with_boost=no 9790 9791fi 9792 9793 if test ${with_boost:-no} != no; then : 9794 9795 echo "$as_me: this is boost.m4 serial 25" >&5 9796boost_save_IFS=$IFS 9797boost_version_req=1.47 9798IFS=. 9799set x $boost_version_req 0 0 0 9800IFS=$boost_save_IFS 9801shift 9802boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"` 9803boost_version_req_string=$1.$2.$3 9804# If BOOST_ROOT is set and the user has not provided a value to 9805# --with-boost, then treat BOOST_ROOT as if it the user supplied it. 9806if test x"$BOOST_ROOT" != x; then 9807 if test x"$with_boost" = x; then 9808 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5 9809$as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;} 9810 with_boost=$BOOST_ROOT 9811 else 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5 9813$as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;} 9814 fi 9815fi 9816DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'" 9817boost_save_CPPFLAGS=$CPPFLAGS 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5 9819$as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; } 9820if ${boost_cv_inc_path+:} false; then : 9821 $as_echo_n "(cached) " >&6 9822else 9823 boost_cv_inc_path=no 9824ac_ext=cpp 9825ac_cpp='$CXXCPP $CPPFLAGS' 9826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9830/* end confdefs.h. */ 9831#include <boost/version.hpp> 9832#if !defined BOOST_VERSION 9833# error BOOST_VERSION is not defined 9834#elif BOOST_VERSION < $boost_version_req 9835# error Boost headers version < $boost_version_req 9836#endif 9837 9838int 9839main () 9840{ 9841 9842 ; 9843 return 0; 9844} 9845_ACEOF 9846 # If the user provided a value to --with-boost, use it and only it. 9847 case $with_boost in #( 9848 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \ 9849 /usr/include C:/Boost/include;; #( 9850 *) set x "$with_boost/include" "$with_boost";; 9851 esac 9852 shift 9853 for boost_dir 9854 do 9855 # Without --layout=system, Boost (or at least some versions) installs 9856 # itself in <prefix>/include/boost-<version>. This inner loop helps to 9857 # find headers in such directories. 9858 # 9859 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version 9860 # order followed by ${boost_dir}. The final '.' is a sentinel for 9861 # searching $boost_dir" itself. Entries are whitespace separated. 9862 # 9863 # I didn't indent this loop on purpose (to avoid over-indented code) 9864 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \ 9865 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \ 9866 && echo .` 9867 for boost_inc in $boost_layout_system_search_list 9868 do 9869 if test x"$boost_inc" != x.; then 9870 boost_inc="$boost_dir/$boost_inc" 9871 else 9872 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list 9873 fi 9874 if test x"$boost_inc" != x; then 9875 # We are going to check whether the version of Boost installed 9876 # in $boost_inc is usable by running a compilation that 9877 # #includes it. But if we pass a -I/some/path in which Boost 9878 # is not installed, the compiler will just skip this -I and 9879 # use other locations (either from CPPFLAGS, or from its list 9880 # of system include directories). As a result we would use 9881 # header installed on the machine instead of the /some/path 9882 # specified by the user. So in that precise case (trying 9883 # $boost_inc), make sure the version.hpp exists. 9884 # 9885 # Use test -e as there can be symlinks. 9886 test -e "$boost_inc/boost/version.hpp" || continue 9887 CPPFLAGS="$CPPFLAGS -I$boost_inc" 9888 fi 9889 if ac_fn_cxx_try_compile "$LINENO"; then : 9890 boost_cv_inc_path=yes 9891else 9892 boost_cv_version=no 9893fi 9894rm -f core conftest.err conftest.$ac_objext 9895 if test x"$boost_cv_inc_path" = xyes; then 9896 if test x"$boost_inc" != x; then 9897 boost_cv_inc_path=$boost_inc 9898 fi 9899 break 2 9900 fi 9901 done 9902 done 9903ac_ext=cpp 9904ac_cpp='$CXXCPP $CPPFLAGS' 9905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9908 9909fi 9910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5 9911$as_echo "$boost_cv_inc_path" >&6; } 9912 case $boost_cv_inc_path in #( 9913 no) 9914 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string" 9915 { $as_echo "$as_me:${as_lineno-$LINENO}: $boost_errmsg" >&5 9916$as_echo "$as_me: $boost_errmsg" >&6;} 9917 with_boost=disabled 9918 ;;#( 9919 yes) 9920 BOOST_CPPFLAGS= 9921 ;;#( 9922 *) 9923 BOOST_CPPFLAGS="-I$boost_cv_inc_path" 9924 ;; 9925 esac 9926 if test x"$boost_cv_inc_path" != xno; then 9927 9928$as_echo "#define HAVE_BOOST 1" >>confdefs.h 9929 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5 9931$as_echo_n "checking for Boost's header version... " >&6; } 9932if ${boost_cv_lib_version+:} false; then : 9933 $as_echo_n "(cached) " >&6 9934else 9935 ac_ext=cpp 9936ac_cpp='$CXXCPP $CPPFLAGS' 9937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9941/* end confdefs.h. */ 9942#include <boost/version.hpp> 9943boost-lib-version = BOOST_LIB_VERSION 9944_ACEOF 9945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9946 grep -v '#' | 9947 tr -d '\r' | 9948 tr -s '\n' ' ' | 9949 $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1; then : 9950 boost_cv_lib_version=`cat conftest.i` 9951fi 9952rm -rf conftest* 9953ac_ext=cpp 9954ac_cpp='$CXXCPP $CPPFLAGS' 9955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9958 9959fi 9960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5 9961$as_echo "$boost_cv_lib_version" >&6; } 9962 # e.g. "134" for 1_34_1 or "135" for 1_35 9963 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'` 9964 case $boost_major_version in #( 9965 '' | *[!0-9]*) 9966 as_fn_error $? "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5 9967 ;; 9968 esac 9969fi 9970CPPFLAGS=$boost_save_CPPFLAGS 9971 9972 if test ${with_boost:-no} != disabled; then : 9973 9974 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9975for cc_temp in $compiler""; do 9976 case $cc_temp in 9977 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9978 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9979 \-*) ;; 9980 *) break;; 9981 esac 9982done 9983cc_basename=`echo "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9984# All known linkers require a `.a' archive for static linking (except MSVC, 9985# which needs '.lib'). 9986libext=a 9987case $cc_basename in 9988 cl*) libext=lib ;; 9989esac 9990 9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5 9992$as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; } 9993if ${boost_cv_lib_tag+:} false; then : 9994 $as_echo_n "(cached) " >&6 9995else 9996 boost_cv_lib_tag=unknown 9997if test x$boost_cv_inc_path != xno; then 9998 ac_ext=cpp 9999ac_cpp='$CXXCPP $CPPFLAGS' 10000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10003 # The following tests are mostly inspired by boost/config/auto_link.hpp 10004 # The list is sorted to most recent/common to oldest compiler (in order 10005 # to increase the likelihood of finding the right compiler with the 10006 # least number of compilation attempt). 10007 # Beware that some tests are sensible to the order (for instance, we must 10008 # look for MinGW before looking for GCC3). 10009 # I used one compilation test per compiler with a #error to recognize 10010 # each compiler so that it works even when cross-compiling (let me know 10011 # if you know a better approach). 10012 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam): 10013 # como, edg, kcc, bck, mp, sw, tru, xlc 10014 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines 10015 # the same defines as GCC's). 10016 for i in \ 10017 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC && \ 10018 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10019 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw53" \ 10020 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc53" \ 10021 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \ 10022 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10023 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \ 10024 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \ 10025 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \ 10026 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10027 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \ 10028 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \ 10029 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \ 10030 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10031 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \ 10032 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \ 10033 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \ 10034 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10035 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \ 10036 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \ 10037 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \ 10038 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10039 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \ 10040 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \ 10041 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \ 10042 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10043 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \ 10044 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \ 10045 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \ 10046 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10047 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \ 10048 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \ 10049 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \ 10050 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10051 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \ 10052 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \ 10053 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \ 10054 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10055 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \ 10056 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \ 10057 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \ 10058 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10059 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \ 10060 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \ 10061 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \ 10062 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10063 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \ 10064 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \ 10065 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \ 10066 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10067 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \ 10068 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \ 10069 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \ 10070 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10071 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \ 10072 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \ 10073 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \ 10074 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10075 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \ 10076 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \ 10077 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \ 10078 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10079 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \ 10080 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \ 10081 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \ 10082 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \ 10083 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \ 10084 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \ 10085 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \ 10086 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \ 10087 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \ 10088 "defined __BORLANDC__ @ bcb" \ 10089 "defined __ICC && (defined __unix || defined ) @ il" \ 10090 "defined __ICL @ iw" \ 10091 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \ 10092 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \ 10093 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \ 10094 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \ 10095 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \ 10096 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8" 10097 do 10098 boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '` 10099 boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'` 10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10101/* end confdefs.h. */ 10102 10103#if $boost_tag_test 10104/* OK */ 10105#else 10106# error $boost_tag_test 10107#endif 10108 10109int 10110main () 10111{ 10112 10113 ; 10114 return 0; 10115} 10116_ACEOF 10117if ac_fn_cxx_try_compile "$LINENO"; then : 10118 boost_cv_lib_tag=$boost_tag; break 10119fi 10120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10121 done 10122ac_ext=cpp 10123ac_cpp='$CXXCPP $CPPFLAGS' 10124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10127 case $boost_cv_lib_tag in #( 10128 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed 10129 # to "gcc41" for instance. 10130 *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there. 10131 gcc*) 10132 boost_tag_x= 10133 case $host_os in #( 10134 darwin*) 10135 if test $boost_major_version -ge 136; then 10136 # The `x' added in r46793 of Boost. 10137 boost_tag_x=x 10138 fi;; 10139 esac 10140 # We can specify multiple tags in this variable because it's used by 10141 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ... 10142 boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc" 10143 ;; #( 10144 unknown) 10145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5 10146$as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;} 10147 boost_cv_lib_tag= 10148 ;; 10149 esac 10150fi 10151fi 10152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5 10153$as_echo "$boost_cv_lib_tag" >&6; } 10154 # Check whether --enable-static-boost was given. 10155if test "${enable_static_boost+set}" = set; then : 10156 enableval=$enable_static_boost; enable_static_boost=yes 10157else 10158 enable_static_boost=no 10159fi 10160 10161 # Check whether we do better use `mt' even though we weren't ask to. 10162ac_ext=cpp 10163ac_cpp='$CXXCPP $CPPFLAGS' 10164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10167cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10168/* end confdefs.h. */ 10169 10170#if defined _REENTRANT || defined _MT || defined __MT__ 10171/* use -mt */ 10172#else 10173# error MT not needed 10174#endif 10175 10176int 10177main () 10178{ 10179 10180 ; 10181 return 0; 10182} 10183_ACEOF 10184if ac_fn_cxx_try_compile "$LINENO"; then : 10185 boost_guess_use_mt=: 10186else 10187 boost_guess_use_mt=false 10188fi 10189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10190ac_ext=cpp 10191ac_cpp='$CXXCPP $CPPFLAGS' 10192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10195 10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost sources" >&5 10197$as_echo_n "checking for Boost sources... " >&6; } 10198 mule_backup_CPPFLAGS="$CPPFLAGS" 10199 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 10200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10201/* end confdefs.h. */ 10202 10203 #include <boost/../libs/system/src/error_code.cpp> 10204int 10205main () 10206{ 10207 10208 ; 10209 return 0; 10210} 10211 10212_ACEOF 10213if ac_fn_cxx_try_compile "$LINENO"; then : 10214 10215 10216$as_echo "#define HAVE_BOOST_SOURCES 1" >>confdefs.h 10217 10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10219$as_echo "yes" >&6; } 10220 10221else 10222 10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10224$as_echo "no" >&6; } 10225 if test x"$boost_cv_inc_path" = xno; then 10226 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5 10227$as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;} 10228else 10229ac_ext=cpp 10230ac_cpp='$CXXCPP $CPPFLAGS' 10231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10234if test x"$boost_cv_inc_path" = xno; then 10235 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5 10236$as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;} 10237else 10238ac_ext=cpp 10239ac_cpp='$CXXCPP $CPPFLAGS' 10240ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10241ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10242ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10243boost_save_CPPFLAGS=$CPPFLAGS 10244CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 10245ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default" 10246if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes; then : 10247 10248$as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h 10249 10250else 10251 as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5 10252fi 10253 10254 10255CPPFLAGS=$boost_save_CPPFLAGS 10256ac_ext=cpp 10257ac_cpp='$CXXCPP $CPPFLAGS' 10258ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10259ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10260ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10261fi 10262 10263boost_save_CPPFLAGS=$CPPFLAGS 10264CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 10265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5 10266$as_echo_n "checking for the Boost system library... " >&6; } 10267if ${boost_cv_lib_system+:} false; then : 10268 $as_echo_n "(cached) " >&6 10269else 10270 boost_cv_lib_system=no 10271 case "mt" in #( 10272 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #( 10273 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "Xmt" : 'Xmt-*\(.*\)'`;; #( 10274 (*) boost_mt=; boost_rtopt=mt;; 10275 esac 10276 if test $enable_static_boost = yes; then 10277 boost_rtopt="s$boost_rtopt" 10278 fi 10279 # Find the proper debug variant depending on what we've been asked to find. 10280 case $boost_rtopt in #( 10281 (*d*) boost_rt_d=$boost_rtopt;; #( 10282 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn') 10283 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #( 10284 (*) boost_rt_d='-d';; 10285 esac 10286 # If the PREFERRED-RT-OPT are not empty, prepend a `-'. 10287 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt" 10288 $boost_guess_use_mt && boost_mt=-mt 10289 # Look for the abs path the static archive. 10290 # $libext is computed by Libtool but let's make sure it's non empty. 10291 test -z "$libext" && 10292 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5 10293 boost_save_ac_objext=$ac_objext 10294 # Generate the test file. 10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10296/* end confdefs.h. */ 10297#include <boost/system/error_code.hpp> 10298 10299int 10300main () 10301{ 10302boost::system::error_code e; e.clear(); 10303 ; 10304 return 0; 10305} 10306_ACEOF 10307 if ac_fn_cxx_try_compile "$LINENO"; then : 10308 ac_objext=do_not_rm_me_plz 10309else 10310 as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5 10311fi 10312rm -f core conftest.err conftest.$ac_objext 10313 ac_objext=$boost_save_ac_objext 10314 boost_failed_libs= 10315# Don't bother to ident the following nested for loops, only the 2 10316# innermost ones matter. 10317for boost_lib_ in system; do 10318for boost_tag_ in -$boost_cv_lib_tag ''; do 10319for boost_ver_ in -$boost_cv_lib_version ''; do 10320for boost_mt_ in $boost_mt -mt ''; do 10321for boost_rtopt_ in $boost_rtopt '' -d; do 10322 for boost_lib in \ 10323 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \ 10324 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \ 10325 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \ 10326 boost_$boost_lib_$boost_tag_$boost_ver_ 10327 do 10328 # Avoid testing twice the same lib 10329 case $boost_failed_libs in #( 10330 (*@$boost_lib@*) continue;; 10331 esac 10332 # If with_boost is empty, we'll search in /lib first, which is not quite 10333 # right so instead we'll try to a location based on where the headers are. 10334 boost_tmp_lib=$with_boost 10335 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} 10336 for boost_ldpath in "$boost_tmp_lib/lib" '' \ 10337 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ 10338 "$with_boost" C:/Boost/lib /lib* 10339 do 10340 # Don't waste time with directories that don't exist. 10341 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then 10342 continue 10343 fi 10344 boost_save_LDFLAGS=$LDFLAGS 10345 # Are we looking for a static library? 10346 case $boost_ldpath:$boost_rtopt_ in #( 10347 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) 10348 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext" 10349 test -e "$boost_cv_lib_system_LIBS" || continue;; #( 10350 (*) # No: use -lboost_foo to find the shared library. 10351 boost_cv_lib_system_LIBS="-l$boost_lib";; 10352 esac 10353 boost_save_LIBS=$LIBS 10354 LIBS="$boost_cv_lib_system_LIBS $LIBS" 10355 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath" 10356 rm -f conftest$ac_exeext 10357boost_save_ac_ext=$ac_ext 10358boost_use_source=: 10359# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 10360# tries to link the existing object file instead of compiling from source. 10361test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 10362 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 10363if { { ac_try="$ac_link" 10364case "(($ac_try" in 10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10366 *) ac_try_echo=$ac_try;; 10367esac 10368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 10369$as_echo "$ac_try_echo"; } >&5 10370 (eval "$ac_link") 2>conftest.err 10371 ac_status=$? 10372 if test -s conftest.err; then 10373 grep -v '^ *+' conftest.err >conftest.er1 10374 cat conftest.er1 >&5 10375 mv -f conftest.er1 conftest.err 10376 fi 10377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10378 test $ac_status = 0; } && { 10379 test -z "$ac_cxx_werror_flag" || 10380 test ! -s conftest.err 10381 } && test -s conftest$ac_exeext && { 10382 test "$cross_compiling" = yes || 10383 $as_executable_p conftest$ac_exeext 10384 }; then : 10385 boost_cv_lib_system=yes 10386else 10387 if $boost_use_source; then 10388 $as_echo "$as_me: failed program was:" >&5 10389sed 's/^/| /' conftest.$ac_ext >&5 10390 10391 fi 10392 boost_cv_lib_system=no 10393fi 10394ac_objext=$boost_save_ac_objext 10395ac_ext=$boost_save_ac_ext 10396rm -f core conftest.err conftest_ipa8_conftest.oo \ 10397 conftest$ac_exeext 10398 ac_objext=$boost_save_ac_objext 10399 LDFLAGS=$boost_save_LDFLAGS 10400 LIBS=$boost_save_LIBS 10401 if test x"$boost_cv_lib_system" = xyes; then 10402 # Check or used cached result of whether or not using -R or 10403 # -rpath makes sense. Some implementations of ld, such as for 10404 # Mac OSX, require -rpath but -R is the flag known to work on 10405 # other systems. https://github.com/tsuna/boost.m4/issues/19 10406 if ${boost_cv_rpath_link_ldflag+:} false; then : 10407 $as_echo_n "(cached) " >&6 10408else 10409 case $boost_ldpath in 10410 '') # Nothing to do. 10411 boost_cv_rpath_link_ldflag= 10412 boost_rpath_link_ldflag_found=yes;; 10413 *) 10414 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do 10415 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 10416 LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS" 10417 rm -f conftest$ac_exeext 10418boost_save_ac_ext=$ac_ext 10419boost_use_source=: 10420# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 10421# tries to link the existing object file instead of compiling from source. 10422test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 10423 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 10424if { { ac_try="$ac_link" 10425case "(($ac_try" in 10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10427 *) ac_try_echo=$ac_try;; 10428esac 10429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 10430$as_echo "$ac_try_echo"; } >&5 10431 (eval "$ac_link") 2>conftest.err 10432 ac_status=$? 10433 if test -s conftest.err; then 10434 grep -v '^ *+' conftest.err >conftest.er1 10435 cat conftest.er1 >&5 10436 mv -f conftest.er1 conftest.err 10437 fi 10438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10439 test $ac_status = 0; } && { 10440 test -z "$ac_cxx_werror_flag" || 10441 test ! -s conftest.err 10442 } && test -s conftest$ac_exeext && { 10443 test "$cross_compiling" = yes || 10444 $as_executable_p conftest$ac_exeext 10445 }; then : 10446 boost_rpath_link_ldflag_found=yes 10447 break 10448else 10449 if $boost_use_source; then 10450 $as_echo "$as_me: failed program was:" >&5 10451sed 's/^/| /' conftest.$ac_ext >&5 10452 10453 fi 10454 boost_rpath_link_ldflag_found=no 10455fi 10456ac_objext=$boost_save_ac_objext 10457ac_ext=$boost_save_ac_ext 10458rm -f core conftest.err conftest_ipa8_conftest.oo \ 10459 conftest$ac_exeext 10460 done 10461 ;; 10462 esac 10463 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then : 10464 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5 10465fi 10466 LDFLAGS=$boost_save_LDFLAGS 10467 LIBS=$boost_save_LIBS 10468 10469fi 10470 10471 test x"$boost_ldpath" != x && 10472 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 10473 boost_cv_lib_system_LDPATH="$boost_ldpath" 10474 break 7 10475 else 10476 boost_failed_libs="$boost_failed_libs@$boost_lib@" 10477 fi 10478 done 10479 done 10480done 10481done 10482done 10483done 10484done # boost_lib_ 10485rm -f conftest.$ac_objext 10486 10487fi 10488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5 10489$as_echo "$boost_cv_lib_system" >&6; } 10490case $boost_cv_lib_system in #( 10491 (no) $as_echo "$as_me: failed program was:" >&5 10492sed 's/^/| /' conftest.$ac_ext >&5 10493 10494 as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5 10495 ;; 10496esac 10497BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS 10498BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH 10499BOOST_LDPATH=$boost_cv_lib_system_LDPATH 10500BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS 10501CPPFLAGS=$boost_save_CPPFLAGS 10502ac_ext=cpp 10503ac_cpp='$CXXCPP $CPPFLAGS' 10504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10507fi 10508 10509 10510 10511 if test ${boost_cv_lib_system:-no} != yes; then : 10512 10513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 10514 Boost support has been disabled because Boost.System not found" >&5 10515$as_echo "$as_me: WARNING: 10516 Boost support has been disabled because Boost.System not found" >&2;} 10517_mule_warning_7=yes 10518_mule_has_warnings=yes 10519 10520 with_boost=disabled 10521 10522fi 10523 10524fi 10525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10526 CPPFLAGS="$mule_backup_CPPFLAGS" 10527 if test x"$boost_cv_inc_path" = xno; then 10528 10529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 10530 Boost support has been disabled because Boost.Asio not found" >&5 10531$as_echo "$as_me: WARNING: 10532 Boost support has been disabled because Boost.Asio not found" >&2;} 10533_mule_warning_8=yes 10534_mule_has_warnings=yes 10535 10536 with_boost=disabled 10537 10538else 10539ac_ext=cpp 10540ac_cpp='$CXXCPP $CPPFLAGS' 10541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10544boost_save_CPPFLAGS=$CPPFLAGS 10545CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 10546ac_fn_cxx_check_header_mongrel "$LINENO" "boost/asio.hpp" "ac_cv_header_boost_asio_hpp" "$ac_includes_default" 10547if test "x$ac_cv_header_boost_asio_hpp" = xyes; then : 10548 10549$as_echo "#define ASIO_SOCKETS 1" >>confdefs.h 10550 10551else 10552 10553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 10554 Boost support has been disabled because Boost.Asio not found" >&5 10555$as_echo "$as_me: WARNING: 10556 Boost support has been disabled because Boost.Asio not found" >&2;} 10557_mule_warning_9=yes 10558_mule_has_warnings=yes 10559 10560 with_boost=disabled 10561 10562fi 10563 10564 10565CPPFLAGS=$boost_save_CPPFLAGS 10566ac_ext=cpp 10567ac_cpp='$CXXCPP $CPPFLAGS' 10568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10571fi 10572 10573 10574else 10575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 10576 Boost support has been disabled because of insufficient Boost version." >&5 10577$as_echo "$as_me: WARNING: 10578 Boost support has been disabled because of insufficient Boost version." >&2;} 10579_mule_warning_10=yes 10580_mule_has_warnings=yes 10581 10582fi 10583 10584fi 10585 10586fi 10587 10588fi 10589 10590# Ok, we have all needed libs, now checking for other stuff 10591 10592 10593# Checks for header files. 10594ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 10595if test "x$ac_cv_type_size_t" = xyes; then : 10596 10597else 10598 10599cat >>confdefs.h <<_ACEOF 10600#define size_t unsigned int 10601_ACEOF 10602 10603fi 10604 10605# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 10606# for constant arguments. Useless! 10607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 10608$as_echo_n "checking for working alloca.h... " >&6; } 10609if ${ac_cv_working_alloca_h+:} false; then : 10610 $as_echo_n "(cached) " >&6 10611else 10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10613/* end confdefs.h. */ 10614#include <alloca.h> 10615int 10616main () 10617{ 10618char *p = (char *) alloca (2 * sizeof (int)); 10619 if (p) return 0; 10620 ; 10621 return 0; 10622} 10623_ACEOF 10624if ac_fn_cxx_try_link "$LINENO"; then : 10625 ac_cv_working_alloca_h=yes 10626else 10627 ac_cv_working_alloca_h=no 10628fi 10629rm -f core conftest.err conftest.$ac_objext \ 10630 conftest$ac_exeext conftest.$ac_ext 10631fi 10632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 10633$as_echo "$ac_cv_working_alloca_h" >&6; } 10634if test $ac_cv_working_alloca_h = yes; then 10635 10636$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 10637 10638fi 10639 10640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 10641$as_echo_n "checking for alloca... " >&6; } 10642if ${ac_cv_func_alloca_works+:} false; then : 10643 $as_echo_n "(cached) " >&6 10644else 10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10646/* end confdefs.h. */ 10647#ifdef __GNUC__ 10648# define alloca __builtin_alloca 10649#else 10650# ifdef _MSC_VER 10651# include <malloc.h> 10652# define alloca _alloca 10653# else 10654# ifdef HAVE_ALLOCA_H 10655# include <alloca.h> 10656# else 10657# ifdef _AIX 10658 #pragma alloca 10659# else 10660# ifndef alloca /* predefined by HP cc +Olibcalls */ 10661void *alloca (size_t); 10662# endif 10663# endif 10664# endif 10665# endif 10666#endif 10667 10668int 10669main () 10670{ 10671char *p = (char *) alloca (1); 10672 if (p) return 0; 10673 ; 10674 return 0; 10675} 10676_ACEOF 10677if ac_fn_cxx_try_link "$LINENO"; then : 10678 ac_cv_func_alloca_works=yes 10679else 10680 ac_cv_func_alloca_works=no 10681fi 10682rm -f core conftest.err conftest.$ac_objext \ 10683 conftest$ac_exeext conftest.$ac_ext 10684fi 10685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 10686$as_echo "$ac_cv_func_alloca_works" >&6; } 10687 10688if test $ac_cv_func_alloca_works = yes; then 10689 10690$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 10691 10692else 10693 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 10694# that cause trouble. Some versions do not even contain alloca or 10695# contain a buggy version. If you still want to use their alloca, 10696# use ar to extract alloca.o from them instead of compiling alloca.c. 10697 10698ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 10699 10700$as_echo "#define C_ALLOCA 1" >>confdefs.h 10701 10702 10703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 10704$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 10705if ${ac_cv_os_cray+:} false; then : 10706 $as_echo_n "(cached) " >&6 10707else 10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10709/* end confdefs.h. */ 10710#if defined CRAY && ! defined CRAY2 10711webecray 10712#else 10713wenotbecray 10714#endif 10715 10716_ACEOF 10717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10718 $EGREP "webecray" >/dev/null 2>&1; then : 10719 ac_cv_os_cray=yes 10720else 10721 ac_cv_os_cray=no 10722fi 10723rm -f conftest* 10724 10725fi 10726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 10727$as_echo "$ac_cv_os_cray" >&6; } 10728if test $ac_cv_os_cray = yes; then 10729 for ac_func in _getb67 GETB67 getb67; do 10730 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10731ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 10732if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10733 10734cat >>confdefs.h <<_ACEOF 10735#define CRAY_STACKSEG_END $ac_func 10736_ACEOF 10737 10738 break 10739fi 10740 10741 done 10742fi 10743 10744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 10745$as_echo_n "checking stack direction for C alloca... " >&6; } 10746if ${ac_cv_c_stack_direction+:} false; then : 10747 $as_echo_n "(cached) " >&6 10748else 10749 if test "$cross_compiling" = yes; then : 10750 ac_cv_c_stack_direction=0 10751else 10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10753/* end confdefs.h. */ 10754$ac_includes_default 10755int 10756find_stack_direction (int *addr, int depth) 10757{ 10758 int dir, dummy = 0; 10759 if (! addr) 10760 addr = &dummy; 10761 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 10762 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 10763 return dir + dummy; 10764} 10765 10766int 10767main (int argc, char **argv) 10768{ 10769 return find_stack_direction (0, argc + !argv + 20) < 0; 10770} 10771_ACEOF 10772if ac_fn_cxx_try_run "$LINENO"; then : 10773 ac_cv_c_stack_direction=1 10774else 10775 ac_cv_c_stack_direction=-1 10776fi 10777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10778 conftest.$ac_objext conftest.beam conftest.$ac_ext 10779fi 10780 10781fi 10782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 10783$as_echo "$ac_cv_c_stack_direction" >&6; } 10784cat >>confdefs.h <<_ACEOF 10785#define STACK_DIRECTION $ac_cv_c_stack_direction 10786_ACEOF 10787 10788 10789fi 10790 10791ac_header_dirent=no 10792for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10793 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 10795$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 10796if eval \${$as_ac_Header+:} false; then : 10797 $as_echo_n "(cached) " >&6 10798else 10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10800/* end confdefs.h. */ 10801#include <sys/types.h> 10802#include <$ac_hdr> 10803 10804int 10805main () 10806{ 10807if ((DIR *) 0) 10808return 0; 10809 ; 10810 return 0; 10811} 10812_ACEOF 10813if ac_fn_cxx_try_compile "$LINENO"; then : 10814 eval "$as_ac_Header=yes" 10815else 10816 eval "$as_ac_Header=no" 10817fi 10818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10819fi 10820eval ac_res=\$$as_ac_Header 10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10822$as_echo "$ac_res" >&6; } 10823if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10824 cat >>confdefs.h <<_ACEOF 10825#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10826_ACEOF 10827 10828ac_header_dirent=$ac_hdr; break 10829fi 10830 10831done 10832# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10833if test $ac_header_dirent = dirent.h; then 10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10835$as_echo_n "checking for library containing opendir... " >&6; } 10836if ${ac_cv_search_opendir+:} false; then : 10837 $as_echo_n "(cached) " >&6 10838else 10839 ac_func_search_save_LIBS=$LIBS 10840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10841/* end confdefs.h. */ 10842 10843/* Override any GCC internal prototype to avoid an error. 10844 Use char because int might match the return type of a GCC 10845 builtin and then its argument prototype would still apply. */ 10846#ifdef __cplusplus 10847extern "C" 10848#endif 10849char opendir (); 10850int 10851main () 10852{ 10853return opendir (); 10854 ; 10855 return 0; 10856} 10857_ACEOF 10858for ac_lib in '' dir; do 10859 if test -z "$ac_lib"; then 10860 ac_res="none required" 10861 else 10862 ac_res=-l$ac_lib 10863 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10864 fi 10865 if ac_fn_cxx_try_link "$LINENO"; then : 10866 ac_cv_search_opendir=$ac_res 10867fi 10868rm -f core conftest.err conftest.$ac_objext \ 10869 conftest$ac_exeext 10870 if ${ac_cv_search_opendir+:} false; then : 10871 break 10872fi 10873done 10874if ${ac_cv_search_opendir+:} false; then : 10875 10876else 10877 ac_cv_search_opendir=no 10878fi 10879rm conftest.$ac_ext 10880LIBS=$ac_func_search_save_LIBS 10881fi 10882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10883$as_echo "$ac_cv_search_opendir" >&6; } 10884ac_res=$ac_cv_search_opendir 10885if test "$ac_res" != no; then : 10886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10887 10888fi 10889 10890else 10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10892$as_echo_n "checking for library containing opendir... " >&6; } 10893if ${ac_cv_search_opendir+:} false; then : 10894 $as_echo_n "(cached) " >&6 10895else 10896 ac_func_search_save_LIBS=$LIBS 10897cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10898/* end confdefs.h. */ 10899 10900/* Override any GCC internal prototype to avoid an error. 10901 Use char because int might match the return type of a GCC 10902 builtin and then its argument prototype would still apply. */ 10903#ifdef __cplusplus 10904extern "C" 10905#endif 10906char opendir (); 10907int 10908main () 10909{ 10910return opendir (); 10911 ; 10912 return 0; 10913} 10914_ACEOF 10915for ac_lib in '' x; do 10916 if test -z "$ac_lib"; then 10917 ac_res="none required" 10918 else 10919 ac_res=-l$ac_lib 10920 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10921 fi 10922 if ac_fn_cxx_try_link "$LINENO"; then : 10923 ac_cv_search_opendir=$ac_res 10924fi 10925rm -f core conftest.err conftest.$ac_objext \ 10926 conftest$ac_exeext 10927 if ${ac_cv_search_opendir+:} false; then : 10928 break 10929fi 10930done 10931if ${ac_cv_search_opendir+:} false; then : 10932 10933else 10934 ac_cv_search_opendir=no 10935fi 10936rm conftest.$ac_ext 10937LIBS=$ac_func_search_save_LIBS 10938fi 10939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10940$as_echo "$ac_cv_search_opendir" >&6; } 10941ac_res=$ac_cv_search_opendir 10942if test "$ac_res" != no; then : 10943 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10944 10945fi 10946 10947fi 10948 10949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 10950$as_echo_n "checking for ANSI C header files... " >&6; } 10951if ${ac_cv_header_stdc+:} false; then : 10952 $as_echo_n "(cached) " >&6 10953else 10954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10955/* end confdefs.h. */ 10956#include <stdlib.h> 10957#include <stdarg.h> 10958#include <string.h> 10959#include <float.h> 10960 10961int 10962main () 10963{ 10964 10965 ; 10966 return 0; 10967} 10968_ACEOF 10969if ac_fn_cxx_try_compile "$LINENO"; then : 10970 ac_cv_header_stdc=yes 10971else 10972 ac_cv_header_stdc=no 10973fi 10974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10975 10976if test $ac_cv_header_stdc = yes; then 10977 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10979/* end confdefs.h. */ 10980#include <string.h> 10981 10982_ACEOF 10983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10984 $EGREP "memchr" >/dev/null 2>&1; then : 10985 10986else 10987 ac_cv_header_stdc=no 10988fi 10989rm -f conftest* 10990 10991fi 10992 10993if test $ac_cv_header_stdc = yes; then 10994 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10996/* end confdefs.h. */ 10997#include <stdlib.h> 10998 10999_ACEOF 11000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11001 $EGREP "free" >/dev/null 2>&1; then : 11002 11003else 11004 ac_cv_header_stdc=no 11005fi 11006rm -f conftest* 11007 11008fi 11009 11010if test $ac_cv_header_stdc = yes; then 11011 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11012 if test "$cross_compiling" = yes; then : 11013 : 11014else 11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11016/* end confdefs.h. */ 11017#include <ctype.h> 11018#include <stdlib.h> 11019#if ((' ' & 0x0FF) == 0x020) 11020# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11021# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11022#else 11023# define ISLOWER(c) \ 11024 (('a' <= (c) && (c) <= 'i') \ 11025 || ('j' <= (c) && (c) <= 'r') \ 11026 || ('s' <= (c) && (c) <= 'z')) 11027# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11028#endif 11029 11030#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11031int 11032main () 11033{ 11034 int i; 11035 for (i = 0; i < 256; i++) 11036 if (XOR (islower (i), ISLOWER (i)) 11037 || toupper (i) != TOUPPER (i)) 11038 return 2; 11039 return 0; 11040} 11041_ACEOF 11042if ac_fn_cxx_try_run "$LINENO"; then : 11043 11044else 11045 ac_cv_header_stdc=no 11046fi 11047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11048 conftest.$ac_objext conftest.beam conftest.$ac_ext 11049fi 11050 11051fi 11052fi 11053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 11054$as_echo "$ac_cv_header_stdc" >&6; } 11055if test $ac_cv_header_stdc = yes; then 11056 11057$as_echo "#define STDC_HEADERS 1" >>confdefs.h 11058 11059fi 11060 11061for ac_header in argz.h arpa/inet.h errno.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet/in.h stddef.h nl_types.h signal.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/mntent.h sys/mnttab.h sys/mount.h sys/param.h sys/resource.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h sys/types.h unistd.h 11062do : 11063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11064ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11065if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11066 cat >>confdefs.h <<_ACEOF 11067#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11068_ACEOF 11069 11070fi 11071 11072done 11073 11074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 11075$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 11076if ${ac_cv_header_sys_wait_h+:} false; then : 11077 $as_echo_n "(cached) " >&6 11078else 11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11080/* end confdefs.h. */ 11081#include <sys/types.h> 11082#include <sys/wait.h> 11083#ifndef WEXITSTATUS 11084# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 11085#endif 11086#ifndef WIFEXITED 11087# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 11088#endif 11089 11090int 11091main () 11092{ 11093 int s; 11094 wait (&s); 11095 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 11096 ; 11097 return 0; 11098} 11099_ACEOF 11100if ac_fn_cxx_try_compile "$LINENO"; then : 11101 ac_cv_header_sys_wait_h=yes 11102else 11103 ac_cv_header_sys_wait_h=no 11104fi 11105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11106fi 11107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 11108$as_echo "$ac_cv_header_sys_wait_h" >&6; } 11109if test $ac_cv_header_sys_wait_h = yes; then 11110 11111$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 11112 11113fi 11114 11115 11116 11117# Checks for typedefs, structures, and compiler characteristics. 11118ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 11119if test "x$ac_cv_type_mode_t" = xyes; then : 11120 11121else 11122 11123cat >>confdefs.h <<_ACEOF 11124#define mode_t int 11125_ACEOF 11126 11127fi 11128 11129ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 11130if test "x$ac_cv_type_off_t" = xyes; then : 11131 11132else 11133 11134cat >>confdefs.h <<_ACEOF 11135#define off_t long int 11136_ACEOF 11137 11138fi 11139 11140ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 11141if test "x$ac_cv_type_size_t" = xyes; then : 11142 11143else 11144 11145cat >>confdefs.h <<_ACEOF 11146#define size_t unsigned int 11147_ACEOF 11148 11149fi 11150 11151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 11152$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 11153if ${ac_cv_header_time+:} false; then : 11154 $as_echo_n "(cached) " >&6 11155else 11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11157/* end confdefs.h. */ 11158#include <sys/types.h> 11159#include <sys/time.h> 11160#include <time.h> 11161 11162int 11163main () 11164{ 11165if ((struct tm *) 0) 11166return 0; 11167 ; 11168 return 0; 11169} 11170_ACEOF 11171if ac_fn_cxx_try_compile "$LINENO"; then : 11172 ac_cv_header_time=yes 11173else 11174 ac_cv_header_time=no 11175fi 11176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11177fi 11178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 11179$as_echo "$ac_cv_header_time" >&6; } 11180if test $ac_cv_header_time = yes; then 11181 11182$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 11183 11184fi 11185 11186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 11187$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 11188if ${ac_cv_struct_tm+:} false; then : 11189 $as_echo_n "(cached) " >&6 11190else 11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11192/* end confdefs.h. */ 11193#include <sys/types.h> 11194#include <time.h> 11195 11196int 11197main () 11198{ 11199struct tm tm; 11200 int *p = &tm.tm_sec; 11201 return !p; 11202 ; 11203 return 0; 11204} 11205_ACEOF 11206if ac_fn_cxx_try_compile "$LINENO"; then : 11207 ac_cv_struct_tm=time.h 11208else 11209 ac_cv_struct_tm=sys/time.h 11210fi 11211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11212fi 11213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 11214$as_echo "$ac_cv_struct_tm" >&6; } 11215if test $ac_cv_struct_tm = sys/time.h; then 11216 11217$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 11218 11219fi 11220 11221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 11222$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 11223if ${ac_cv_type_uid_t+:} false; then : 11224 $as_echo_n "(cached) " >&6 11225else 11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11227/* end confdefs.h. */ 11228#include <sys/types.h> 11229 11230_ACEOF 11231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11232 $EGREP "uid_t" >/dev/null 2>&1; then : 11233 ac_cv_type_uid_t=yes 11234else 11235 ac_cv_type_uid_t=no 11236fi 11237rm -f conftest* 11238 11239fi 11240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 11241$as_echo "$ac_cv_type_uid_t" >&6; } 11242if test $ac_cv_type_uid_t = no; then 11243 11244$as_echo "#define uid_t int" >>confdefs.h 11245 11246 11247$as_echo "#define gid_t int" >>confdefs.h 11248 11249fi 11250 11251ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 11252if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 11253 11254cat >>confdefs.h <<_ACEOF 11255#define HAVE_PTRDIFF_T 1 11256_ACEOF 11257 11258 11259fi 11260 11261 11262 11263# Checks for library functions. 11264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 11265$as_echo_n "checking whether closedir returns void... " >&6; } 11266if ${ac_cv_func_closedir_void+:} false; then : 11267 $as_echo_n "(cached) " >&6 11268else 11269 if test "$cross_compiling" = yes; then : 11270 ac_cv_func_closedir_void=yes 11271else 11272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11273/* end confdefs.h. */ 11274$ac_includes_default 11275#include <$ac_header_dirent> 11276#ifndef __cplusplus 11277int closedir (); 11278#endif 11279 11280int 11281main () 11282{ 11283return closedir (opendir (".")) != 0; 11284 ; 11285 return 0; 11286} 11287_ACEOF 11288if ac_fn_cxx_try_run "$LINENO"; then : 11289 ac_cv_func_closedir_void=no 11290else 11291 ac_cv_func_closedir_void=yes 11292fi 11293rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11294 conftest.$ac_objext conftest.beam conftest.$ac_ext 11295fi 11296 11297fi 11298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 11299$as_echo "$ac_cv_func_closedir_void" >&6; } 11300if test $ac_cv_func_closedir_void = yes; then 11301 11302$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h 11303 11304fi 11305 11306if test $ac_cv_c_compiler_gnu = yes; then 11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 11308$as_echo_n "checking whether $CC needs -traditional... " >&6; } 11309if ${ac_cv_prog_gcc_traditional+:} false; then : 11310 $as_echo_n "(cached) " >&6 11311else 11312 ac_pattern="Autoconf.*'x'" 11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11314/* end confdefs.h. */ 11315#include <sgtty.h> 11316Autoconf TIOCGETP 11317_ACEOF 11318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11319 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 11320 ac_cv_prog_gcc_traditional=yes 11321else 11322 ac_cv_prog_gcc_traditional=no 11323fi 11324rm -f conftest* 11325 11326 11327 if test $ac_cv_prog_gcc_traditional = no; then 11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11329/* end confdefs.h. */ 11330#include <termio.h> 11331Autoconf TCGETA 11332_ACEOF 11333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11334 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 11335 ac_cv_prog_gcc_traditional=yes 11336fi 11337rm -f conftest* 11338 11339 fi 11340fi 11341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 11342$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 11343 if test $ac_cv_prog_gcc_traditional = yes; then 11344 CC="$CC -traditional" 11345 fi 11346fi 11347 11348ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 11349if test "x$ac_cv_type_pid_t" = xyes; then : 11350 11351else 11352 11353cat >>confdefs.h <<_ACEOF 11354#define pid_t int 11355_ACEOF 11356 11357fi 11358 11359for ac_header in vfork.h 11360do : 11361 ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 11362if test "x$ac_cv_header_vfork_h" = xyes; then : 11363 cat >>confdefs.h <<_ACEOF 11364#define HAVE_VFORK_H 1 11365_ACEOF 11366 11367fi 11368 11369done 11370 11371for ac_func in fork vfork 11372do : 11373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11374ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 11375if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11376 cat >>confdefs.h <<_ACEOF 11377#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11378_ACEOF 11379 11380fi 11381done 11382 11383if test "x$ac_cv_func_fork" = xyes; then 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 11385$as_echo_n "checking for working fork... " >&6; } 11386if ${ac_cv_func_fork_works+:} false; then : 11387 $as_echo_n "(cached) " >&6 11388else 11389 if test "$cross_compiling" = yes; then : 11390 ac_cv_func_fork_works=cross 11391else 11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11393/* end confdefs.h. */ 11394$ac_includes_default 11395int 11396main () 11397{ 11398 11399 /* By Ruediger Kuhlmann. */ 11400 return fork () < 0; 11401 11402 ; 11403 return 0; 11404} 11405_ACEOF 11406if ac_fn_cxx_try_run "$LINENO"; then : 11407 ac_cv_func_fork_works=yes 11408else 11409 ac_cv_func_fork_works=no 11410fi 11411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11412 conftest.$ac_objext conftest.beam conftest.$ac_ext 11413fi 11414 11415fi 11416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 11417$as_echo "$ac_cv_func_fork_works" >&6; } 11418 11419else 11420 ac_cv_func_fork_works=$ac_cv_func_fork 11421fi 11422if test "x$ac_cv_func_fork_works" = xcross; then 11423 case $host in 11424 *-*-amigaos* | *-*-msdosdjgpp*) 11425 # Override, as these systems have only a dummy fork() stub 11426 ac_cv_func_fork_works=no 11427 ;; 11428 *) 11429 ac_cv_func_fork_works=yes 11430 ;; 11431 esac 11432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 11433$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 11434fi 11435ac_cv_func_vfork_works=$ac_cv_func_vfork 11436if test "x$ac_cv_func_vfork" = xyes; then 11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 11438$as_echo_n "checking for working vfork... " >&6; } 11439if ${ac_cv_func_vfork_works+:} false; then : 11440 $as_echo_n "(cached) " >&6 11441else 11442 if test "$cross_compiling" = yes; then : 11443 ac_cv_func_vfork_works=cross 11444else 11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11446/* end confdefs.h. */ 11447/* Thanks to Paul Eggert for this test. */ 11448$ac_includes_default 11449#include <sys/wait.h> 11450#ifdef HAVE_VFORK_H 11451# include <vfork.h> 11452#endif 11453/* On some sparc systems, changes by the child to local and incoming 11454 argument registers are propagated back to the parent. The compiler 11455 is told about this with #include <vfork.h>, but some compilers 11456 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 11457 static variable whose address is put into a register that is 11458 clobbered by the vfork. */ 11459static void 11460#ifdef __cplusplus 11461sparc_address_test (int arg) 11462# else 11463sparc_address_test (arg) int arg; 11464#endif 11465{ 11466 static pid_t child; 11467 if (!child) { 11468 child = vfork (); 11469 if (child < 0) { 11470 perror ("vfork"); 11471 _exit(2); 11472 } 11473 if (!child) { 11474 arg = getpid(); 11475 write(-1, "", 0); 11476 _exit (arg); 11477 } 11478 } 11479} 11480 11481int 11482main () 11483{ 11484 pid_t parent = getpid (); 11485 pid_t child; 11486 11487 sparc_address_test (0); 11488 11489 child = vfork (); 11490 11491 if (child == 0) { 11492 /* Here is another test for sparc vfork register problems. This 11493 test uses lots of local variables, at least as many local 11494 variables as main has allocated so far including compiler 11495 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 11496 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 11497 reuse the register of parent for one of the local variables, 11498 since it will think that parent can't possibly be used any more 11499 in this routine. Assigning to the local variable will thus 11500 munge parent in the parent process. */ 11501 pid_t 11502 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 11503 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 11504 /* Convince the compiler that p..p7 are live; otherwise, it might 11505 use the same hardware register for all 8 local variables. */ 11506 if (p != p1 || p != p2 || p != p3 || p != p4 11507 || p != p5 || p != p6 || p != p7) 11508 _exit(1); 11509 11510 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 11511 from child file descriptors. If the child closes a descriptor 11512 before it execs or exits, this munges the parent's descriptor 11513 as well. Test for this by closing stdout in the child. */ 11514 _exit(close(fileno(stdout)) != 0); 11515 } else { 11516 int status; 11517 struct stat st; 11518 11519 while (wait(&status) != child) 11520 ; 11521 return ( 11522 /* Was there some problem with vforking? */ 11523 child < 0 11524 11525 /* Did the child fail? (This shouldn't happen.) */ 11526 || status 11527 11528 /* Did the vfork/compiler bug occur? */ 11529 || parent != getpid() 11530 11531 /* Did the file descriptor bug occur? */ 11532 || fstat(fileno(stdout), &st) != 0 11533 ); 11534 } 11535} 11536_ACEOF 11537if ac_fn_cxx_try_run "$LINENO"; then : 11538 ac_cv_func_vfork_works=yes 11539else 11540 ac_cv_func_vfork_works=no 11541fi 11542rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11543 conftest.$ac_objext conftest.beam conftest.$ac_ext 11544fi 11545 11546fi 11547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 11548$as_echo "$ac_cv_func_vfork_works" >&6; } 11549 11550fi; 11551if test "x$ac_cv_func_fork_works" = xcross; then 11552 ac_cv_func_vfork_works=$ac_cv_func_vfork 11553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 11554$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 11555fi 11556 11557if test "x$ac_cv_func_vfork_works" = xyes; then 11558 11559$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 11560 11561else 11562 11563$as_echo "#define vfork fork" >>confdefs.h 11564 11565fi 11566if test "x$ac_cv_func_fork_works" = xyes; then 11567 11568$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 11569 11570fi 11571 11572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 11573$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 11574if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 11575 $as_echo_n "(cached) " >&6 11576else 11577 rm -f conftest.sym conftest.file 11578echo >conftest.file 11579if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 11580 if test "$cross_compiling" = yes; then : 11581 ac_cv_func_lstat_dereferences_slashed_symlink=no 11582else 11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11584/* end confdefs.h. */ 11585$ac_includes_default 11586int 11587main () 11588{ 11589struct stat sbuf; 11590 /* Linux will dereference the symlink and fail, as required by POSIX. 11591 That is better in the sense that it means we will not 11592 have to compile and use the lstat wrapper. */ 11593 return lstat ("conftest.sym/", &sbuf) == 0; 11594 ; 11595 return 0; 11596} 11597_ACEOF 11598if ac_fn_cxx_try_run "$LINENO"; then : 11599 ac_cv_func_lstat_dereferences_slashed_symlink=yes 11600else 11601 ac_cv_func_lstat_dereferences_slashed_symlink=no 11602fi 11603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11604 conftest.$ac_objext conftest.beam conftest.$ac_ext 11605fi 11606 11607else 11608 # If the `ln -s' command failed, then we probably don't even 11609 # have an lstat function. 11610 ac_cv_func_lstat_dereferences_slashed_symlink=no 11611fi 11612rm -f conftest.sym conftest.file 11613 11614fi 11615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 11616$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 11617 11618test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 11619 11620cat >>confdefs.h <<_ACEOF 11621#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 11622_ACEOF 11623 11624 11625if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 11626 case " $LIBOBJS " in 11627 *" lstat.$ac_objext "* ) ;; 11628 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 11629 ;; 11630esac 11631 11632fi 11633 11634if test x$SYS != xwin32; then : 11635 11636 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, 11637# -lseq on Dynix/PTX, -lgen on Unixware. 11638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 11639$as_echo_n "checking for library containing getmntent... " >&6; } 11640if ${ac_cv_search_getmntent+:} false; then : 11641 $as_echo_n "(cached) " >&6 11642else 11643 ac_func_search_save_LIBS=$LIBS 11644cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11645/* end confdefs.h. */ 11646 11647/* Override any GCC internal prototype to avoid an error. 11648 Use char because int might match the return type of a GCC 11649 builtin and then its argument prototype would still apply. */ 11650#ifdef __cplusplus 11651extern "C" 11652#endif 11653char getmntent (); 11654int 11655main () 11656{ 11657return getmntent (); 11658 ; 11659 return 0; 11660} 11661_ACEOF 11662for ac_lib in '' sun seq gen; do 11663 if test -z "$ac_lib"; then 11664 ac_res="none required" 11665 else 11666 ac_res=-l$ac_lib 11667 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11668 fi 11669 if ac_fn_cxx_try_link "$LINENO"; then : 11670 ac_cv_search_getmntent=$ac_res 11671fi 11672rm -f core conftest.err conftest.$ac_objext \ 11673 conftest$ac_exeext 11674 if ${ac_cv_search_getmntent+:} false; then : 11675 break 11676fi 11677done 11678if ${ac_cv_search_getmntent+:} false; then : 11679 11680else 11681 ac_cv_search_getmntent=no 11682fi 11683rm conftest.$ac_ext 11684LIBS=$ac_func_search_save_LIBS 11685fi 11686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 11687$as_echo "$ac_cv_search_getmntent" >&6; } 11688ac_res=$ac_cv_search_getmntent 11689if test "$ac_res" != no; then : 11690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11691 ac_cv_func_getmntent=yes 11692 11693$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h 11694 11695else 11696 ac_cv_func_getmntent=no 11697fi 11698 11699 11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 11701$as_echo_n "checking whether lstat accepts an empty string... " >&6; } 11702if ${ac_cv_func_lstat_empty_string_bug+:} false; then : 11703 $as_echo_n "(cached) " >&6 11704else 11705 if test "$cross_compiling" = yes; then : 11706 ac_cv_func_lstat_empty_string_bug=yes 11707else 11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11709/* end confdefs.h. */ 11710$ac_includes_default 11711int 11712main () 11713{ 11714struct stat sbuf; 11715 return lstat ("", &sbuf) == 0; 11716 ; 11717 return 0; 11718} 11719_ACEOF 11720if ac_fn_cxx_try_run "$LINENO"; then : 11721 ac_cv_func_lstat_empty_string_bug=no 11722else 11723 ac_cv_func_lstat_empty_string_bug=yes 11724fi 11725rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11726 conftest.$ac_objext conftest.beam conftest.$ac_ext 11727fi 11728 11729fi 11730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 11731$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } 11732if test $ac_cv_func_lstat_empty_string_bug = yes; then 11733 case " $LIBOBJS " in 11734 *" lstat.$ac_objext "* ) ;; 11735 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 11736 ;; 11737esac 11738 11739 11740cat >>confdefs.h <<_ACEOF 11741#define HAVE_LSTAT_EMPTY_STRING_BUG 1 11742_ACEOF 11743 11744fi 11745 11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 11747$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 11748if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 11749 $as_echo_n "(cached) " >&6 11750else 11751 rm -f conftest.sym conftest.file 11752echo >conftest.file 11753if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 11754 if test "$cross_compiling" = yes; then : 11755 ac_cv_func_lstat_dereferences_slashed_symlink=no 11756else 11757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11758/* end confdefs.h. */ 11759$ac_includes_default 11760int 11761main () 11762{ 11763struct stat sbuf; 11764 /* Linux will dereference the symlink and fail, as required by POSIX. 11765 That is better in the sense that it means we will not 11766 have to compile and use the lstat wrapper. */ 11767 return lstat ("conftest.sym/", &sbuf) == 0; 11768 ; 11769 return 0; 11770} 11771_ACEOF 11772if ac_fn_cxx_try_run "$LINENO"; then : 11773 ac_cv_func_lstat_dereferences_slashed_symlink=yes 11774else 11775 ac_cv_func_lstat_dereferences_slashed_symlink=no 11776fi 11777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11778 conftest.$ac_objext conftest.beam conftest.$ac_ext 11779fi 11780 11781else 11782 # If the `ln -s' command failed, then we probably don't even 11783 # have an lstat function. 11784 ac_cv_func_lstat_dereferences_slashed_symlink=no 11785fi 11786rm -f conftest.sym conftest.file 11787 11788fi 11789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 11790$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 11791 11792test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 11793 11794cat >>confdefs.h <<_ACEOF 11795#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 11796_ACEOF 11797 11798 11799if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 11800 case " $LIBOBJS " in 11801 *" lstat.$ac_objext "* ) ;; 11802 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 11803 ;; 11804esac 11805 11806fi 11807 11808 11809fi 11810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 11811$as_echo_n "checking for working memcmp... " >&6; } 11812if ${ac_cv_func_memcmp_working+:} false; then : 11813 $as_echo_n "(cached) " >&6 11814else 11815 if test "$cross_compiling" = yes; then : 11816 ac_cv_func_memcmp_working=no 11817else 11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11819/* end confdefs.h. */ 11820$ac_includes_default 11821int 11822main () 11823{ 11824 11825 /* Some versions of memcmp are not 8-bit clean. */ 11826 char c0 = '\100', c1 = '\200', c2 = '\201'; 11827 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 11828 return 1; 11829 11830 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 11831 or more and with at least one buffer not starting on a 4-byte boundary. 11832 William Lewis provided this test program. */ 11833 { 11834 char foo[21]; 11835 char bar[21]; 11836 int i; 11837 for (i = 0; i < 4; i++) 11838 { 11839 char *a = foo + i; 11840 char *b = bar + i; 11841 strcpy (a, "--------01111111"); 11842 strcpy (b, "--------10000000"); 11843 if (memcmp (a, b, 16) >= 0) 11844 return 1; 11845 } 11846 return 0; 11847 } 11848 11849 ; 11850 return 0; 11851} 11852_ACEOF 11853if ac_fn_cxx_try_run "$LINENO"; then : 11854 ac_cv_func_memcmp_working=yes 11855else 11856 ac_cv_func_memcmp_working=no 11857fi 11858rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11859 conftest.$ac_objext conftest.beam conftest.$ac_ext 11860fi 11861 11862fi 11863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 11864$as_echo "$ac_cv_func_memcmp_working" >&6; } 11865test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 11866 *" memcmp.$ac_objext "* ) ;; 11867 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 11868 ;; 11869esac 11870 11871 11872for ac_header in sys/select.h sys/socket.h 11873do : 11874 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11875ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11876if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11877 cat >>confdefs.h <<_ACEOF 11878#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11879_ACEOF 11880 11881fi 11882 11883done 11884 11885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 11886$as_echo_n "checking types of arguments for select... " >&6; } 11887if ${ac_cv_func_select_args+:} false; then : 11888 $as_echo_n "(cached) " >&6 11889else 11890 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 11891 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 11892 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11894/* end confdefs.h. */ 11895$ac_includes_default 11896#ifdef HAVE_SYS_SELECT_H 11897# include <sys/select.h> 11898#endif 11899#ifdef HAVE_SYS_SOCKET_H 11900# include <sys/socket.h> 11901#endif 11902 11903int 11904main () 11905{ 11906extern int select ($ac_arg1, 11907 $ac_arg234, $ac_arg234, $ac_arg234, 11908 $ac_arg5); 11909 ; 11910 return 0; 11911} 11912_ACEOF 11913if ac_fn_cxx_try_compile "$LINENO"; then : 11914 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 11915fi 11916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11917 done 11918 done 11919done 11920# Provide a safe default value. 11921: "${ac_cv_func_select_args=int,int *,struct timeval *}" 11922 11923fi 11924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 11925$as_echo "$ac_cv_func_select_args" >&6; } 11926ac_save_IFS=$IFS; IFS=',' 11927set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 11928IFS=$ac_save_IFS 11929shift 11930 11931cat >>confdefs.h <<_ACEOF 11932#define SELECT_TYPE_ARG1 $1 11933_ACEOF 11934 11935 11936cat >>confdefs.h <<_ACEOF 11937#define SELECT_TYPE_ARG234 ($2) 11938_ACEOF 11939 11940 11941cat >>confdefs.h <<_ACEOF 11942#define SELECT_TYPE_ARG5 ($3) 11943_ACEOF 11944 11945rm -f conftest* 11946 11947if ${ac_cv_func_setvbuf_reversed+:} false; then : 11948 $as_echo_n "(cached) " >&6 11949else 11950 ac_cv_func_setvbuf_reversed=no 11951fi 11952 11953 11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 11955$as_echo_n "checking return type of signal handlers... " >&6; } 11956if ${ac_cv_type_signal+:} false; then : 11957 $as_echo_n "(cached) " >&6 11958else 11959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11960/* end confdefs.h. */ 11961#include <sys/types.h> 11962#include <signal.h> 11963 11964int 11965main () 11966{ 11967return *(signal (0, 0)) (0) == 1; 11968 ; 11969 return 0; 11970} 11971_ACEOF 11972if ac_fn_cxx_try_compile "$LINENO"; then : 11973 ac_cv_type_signal=int 11974else 11975 ac_cv_type_signal=void 11976fi 11977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11978fi 11979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 11980$as_echo "$ac_cv_type_signal" >&6; } 11981 11982cat >>confdefs.h <<_ACEOF 11983#define RETSIGTYPE $ac_cv_type_signal 11984_ACEOF 11985 11986 11987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 11988$as_echo_n "checking whether stat accepts an empty string... " >&6; } 11989if ${ac_cv_func_stat_empty_string_bug+:} false; then : 11990 $as_echo_n "(cached) " >&6 11991else 11992 if test "$cross_compiling" = yes; then : 11993 ac_cv_func_stat_empty_string_bug=yes 11994else 11995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11996/* end confdefs.h. */ 11997$ac_includes_default 11998int 11999main () 12000{ 12001struct stat sbuf; 12002 return stat ("", &sbuf) == 0; 12003 ; 12004 return 0; 12005} 12006_ACEOF 12007if ac_fn_cxx_try_run "$LINENO"; then : 12008 ac_cv_func_stat_empty_string_bug=no 12009else 12010 ac_cv_func_stat_empty_string_bug=yes 12011fi 12012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12013 conftest.$ac_objext conftest.beam conftest.$ac_ext 12014fi 12015 12016fi 12017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 12018$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } 12019if test $ac_cv_func_stat_empty_string_bug = yes; then 12020 case " $LIBOBJS " in 12021 *" stat.$ac_objext "* ) ;; 12022 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 12023 ;; 12024esac 12025 12026 12027cat >>confdefs.h <<_ACEOF 12028#define HAVE_STAT_EMPTY_STRING_BUG 1 12029_ACEOF 12030 12031fi 12032 12033for ac_func in strftime 12034do : 12035 ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 12036if test "x$ac_cv_func_strftime" = xyes; then : 12037 cat >>confdefs.h <<_ACEOF 12038#define HAVE_STRFTIME 1 12039_ACEOF 12040 12041else 12042 # strftime is in -lintl on SCO UNIX. 12043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 12044$as_echo_n "checking for strftime in -lintl... " >&6; } 12045if ${ac_cv_lib_intl_strftime+:} false; then : 12046 $as_echo_n "(cached) " >&6 12047else 12048 ac_check_lib_save_LIBS=$LIBS 12049LIBS="-lintl $LIBS" 12050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12051/* end confdefs.h. */ 12052 12053/* Override any GCC internal prototype to avoid an error. 12054 Use char because int might match the return type of a GCC 12055 builtin and then its argument prototype would still apply. */ 12056#ifdef __cplusplus 12057extern "C" 12058#endif 12059char strftime (); 12060int 12061main () 12062{ 12063return strftime (); 12064 ; 12065 return 0; 12066} 12067_ACEOF 12068if ac_fn_cxx_try_link "$LINENO"; then : 12069 ac_cv_lib_intl_strftime=yes 12070else 12071 ac_cv_lib_intl_strftime=no 12072fi 12073rm -f core conftest.err conftest.$ac_objext \ 12074 conftest$ac_exeext conftest.$ac_ext 12075LIBS=$ac_check_lib_save_LIBS 12076fi 12077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 12078$as_echo "$ac_cv_lib_intl_strftime" >&6; } 12079if test "x$ac_cv_lib_intl_strftime" = xyes; then : 12080 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 12081 12082LIBS="-lintl $LIBS" 12083fi 12084 12085fi 12086done 12087 12088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 12089$as_echo_n "checking for working strtod... " >&6; } 12090if ${ac_cv_func_strtod+:} false; then : 12091 $as_echo_n "(cached) " >&6 12092else 12093 if test "$cross_compiling" = yes; then : 12094 ac_cv_func_strtod=no 12095else 12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12097/* end confdefs.h. */ 12098 12099$ac_includes_default 12100#ifndef strtod 12101double strtod (); 12102#endif 12103int 12104main() 12105{ 12106 { 12107 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 12108 char *string = " +69"; 12109 char *term; 12110 double value; 12111 value = strtod (string, &term); 12112 if (value != 69 || term != (string + 4)) 12113 return 1; 12114 } 12115 12116 { 12117 /* Under Solaris 2.4, strtod returns the wrong value for the 12118 terminating character under some conditions. */ 12119 char *string = "NaN"; 12120 char *term; 12121 strtod (string, &term); 12122 if (term != string && *(term - 1) == 0) 12123 return 1; 12124 } 12125 return 0; 12126} 12127 12128_ACEOF 12129if ac_fn_cxx_try_run "$LINENO"; then : 12130 ac_cv_func_strtod=yes 12131else 12132 ac_cv_func_strtod=no 12133fi 12134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12135 conftest.$ac_objext conftest.beam conftest.$ac_ext 12136fi 12137 12138fi 12139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 12140$as_echo "$ac_cv_func_strtod" >&6; } 12141if test $ac_cv_func_strtod = no; then 12142 case " $LIBOBJS " in 12143 *" strtod.$ac_objext "* ) ;; 12144 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 12145 ;; 12146esac 12147 12148ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow" 12149if test "x$ac_cv_func_pow" = xyes; then : 12150 12151fi 12152 12153if test $ac_cv_func_pow = no; then 12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 12155$as_echo_n "checking for pow in -lm... " >&6; } 12156if ${ac_cv_lib_m_pow+:} false; then : 12157 $as_echo_n "(cached) " >&6 12158else 12159 ac_check_lib_save_LIBS=$LIBS 12160LIBS="-lm $LIBS" 12161cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12162/* end confdefs.h. */ 12163 12164/* Override any GCC internal prototype to avoid an error. 12165 Use char because int might match the return type of a GCC 12166 builtin and then its argument prototype would still apply. */ 12167#ifdef __cplusplus 12168extern "C" 12169#endif 12170char pow (); 12171int 12172main () 12173{ 12174return pow (); 12175 ; 12176 return 0; 12177} 12178_ACEOF 12179if ac_fn_cxx_try_link "$LINENO"; then : 12180 ac_cv_lib_m_pow=yes 12181else 12182 ac_cv_lib_m_pow=no 12183fi 12184rm -f core conftest.err conftest.$ac_objext \ 12185 conftest$ac_exeext conftest.$ac_ext 12186LIBS=$ac_check_lib_save_LIBS 12187fi 12188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 12189$as_echo "$ac_cv_lib_m_pow" >&6; } 12190if test "x$ac_cv_lib_m_pow" = xyes; then : 12191 POW_LIB=-lm 12192else 12193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 12194$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 12195fi 12196 12197fi 12198 12199fi 12200 12201for ac_func in vprintf 12202do : 12203 ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 12204if test "x$ac_cv_func_vprintf" = xyes; then : 12205 cat >>confdefs.h <<_ACEOF 12206#define HAVE_VPRINTF 1 12207_ACEOF 12208 12209ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 12210if test "x$ac_cv_func__doprnt" = xyes; then : 12211 12212$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 12213 12214fi 12215 12216fi 12217done 12218 12219 12220if test $cross_compiling = yes -a $gnumalloc = yes; then : 12221 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 12223 configure cannot check whether malloc() and realloc() are GNU libc 12224 compatible. You have to be ABSOLUTELY sure that they are, otherwise 12225 run configure with the --without-gnu-malloc switch." >&5 12226$as_echo "$as_me: WARNING: 12227 configure cannot check whether malloc() and realloc() are GNU libc 12228 compatible. You have to be ABSOLUTELY sure that they are, otherwise 12229 run configure with the --without-gnu-malloc switch." >&2;} 12230_mule_warning_11=yes 12231_mule_has_warnings=yes 12232 12233 ac_cv_func_malloc_0_nonnull=yes 12234 ac_cv_func_realloc_0_nonnull=yes 12235 12236fi 12237for ac_header in stdlib.h 12238do : 12239 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 12240if test "x$ac_cv_header_stdlib_h" = xyes; then : 12241 cat >>confdefs.h <<_ACEOF 12242#define HAVE_STDLIB_H 1 12243_ACEOF 12244 12245fi 12246 12247done 12248 12249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 12250$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 12251if ${ac_cv_func_malloc_0_nonnull+:} false; then : 12252 $as_echo_n "(cached) " >&6 12253else 12254 if test "$cross_compiling" = yes; then : 12255 ac_cv_func_malloc_0_nonnull=no 12256else 12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12258/* end confdefs.h. */ 12259#if defined STDC_HEADERS || defined HAVE_STDLIB_H 12260# include <stdlib.h> 12261#else 12262char *malloc (); 12263#endif 12264 12265int 12266main () 12267{ 12268return ! malloc (0); 12269 ; 12270 return 0; 12271} 12272_ACEOF 12273if ac_fn_cxx_try_run "$LINENO"; then : 12274 ac_cv_func_malloc_0_nonnull=yes 12275else 12276 ac_cv_func_malloc_0_nonnull=no 12277fi 12278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12279 conftest.$ac_objext conftest.beam conftest.$ac_ext 12280fi 12281 12282fi 12283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 12284$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 12285if test $ac_cv_func_malloc_0_nonnull = yes; then : 12286 12287$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 12288 12289else 12290 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 12291 12292 case " $LIBOBJS " in 12293 *" malloc.$ac_objext "* ) ;; 12294 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 12295 ;; 12296esac 12297 12298 12299$as_echo "#define malloc rpl_malloc" >>confdefs.h 12300 12301fi 12302 12303 12304for ac_header in stdlib.h 12305do : 12306 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 12307if test "x$ac_cv_header_stdlib_h" = xyes; then : 12308 cat >>confdefs.h <<_ACEOF 12309#define HAVE_STDLIB_H 1 12310_ACEOF 12311 12312fi 12313 12314done 12315 12316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 12317$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 12318if ${ac_cv_func_realloc_0_nonnull+:} false; then : 12319 $as_echo_n "(cached) " >&6 12320else 12321 if test "$cross_compiling" = yes; then : 12322 ac_cv_func_realloc_0_nonnull=no 12323else 12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12325/* end confdefs.h. */ 12326#if defined STDC_HEADERS || defined HAVE_STDLIB_H 12327# include <stdlib.h> 12328#else 12329char *realloc (); 12330#endif 12331 12332int 12333main () 12334{ 12335return ! realloc (0, 0); 12336 ; 12337 return 0; 12338} 12339_ACEOF 12340if ac_fn_cxx_try_run "$LINENO"; then : 12341 ac_cv_func_realloc_0_nonnull=yes 12342else 12343 ac_cv_func_realloc_0_nonnull=no 12344fi 12345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12346 conftest.$ac_objext conftest.beam conftest.$ac_ext 12347fi 12348 12349fi 12350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 12351$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 12352if test $ac_cv_func_realloc_0_nonnull = yes; then : 12353 12354$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 12355 12356else 12357 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 12358 12359 case " $LIBOBJS " in 12360 *" realloc.$ac_objext "* ) ;; 12361 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 12362 ;; 12363esac 12364 12365 12366$as_echo "#define realloc rpl_realloc" >>confdefs.h 12367 12368fi 12369 12370 12371for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getopt_long getpass getrlimit gettimeofday inet_ntoa localeconv memmove mempcpy memset mkdir nl_langinfo pow select setlocale setrlimit sigaction socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul 12372do : 12373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12374ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 12375if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12376 cat >>confdefs.h <<_ACEOF 12377#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12378_ACEOF 12379 12380fi 12381done 12382 12383 12384 12385 12386 12387 12388 for ac_header in $ac_header_list 12389do : 12390 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12391ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 12392" 12393if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12394 cat >>confdefs.h <<_ACEOF 12395#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12396_ACEOF 12397 12398fi 12399 12400done 12401 12402 12403 12404 12405 12406 12407 12408if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then : 12409 12410 # Check whether --enable-mmap was given. 12411if test "${enable_mmap+set}" = set; then : 12412 enableval=$enable_mmap; 12413fi 12414 12415 12416 12417 12418 12419 if test ${enable_mmap:-no} = yes; then : 12420 12421 $as_echo "#define ENABLE_MMAP 1" >>confdefs.h 12422 12423 12424for ac_func in getpagesize 12425do : 12426 ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 12427if test "x$ac_cv_func_getpagesize" = xyes; then : 12428 cat >>confdefs.h <<_ACEOF 12429#define HAVE_GETPAGESIZE 1 12430_ACEOF 12431 12432fi 12433done 12434 12435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 12436$as_echo_n "checking for working mmap... " >&6; } 12437if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 12438 $as_echo_n "(cached) " >&6 12439else 12440 if test "$cross_compiling" = yes; then : 12441 ac_cv_func_mmap_fixed_mapped=no 12442else 12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12444/* end confdefs.h. */ 12445$ac_includes_default 12446/* malloc might have been renamed as rpl_malloc. */ 12447#undef malloc 12448 12449/* Thanks to Mike Haertel and Jim Avera for this test. 12450 Here is a matrix of mmap possibilities: 12451 mmap private not fixed 12452 mmap private fixed at somewhere currently unmapped 12453 mmap private fixed at somewhere already mapped 12454 mmap shared not fixed 12455 mmap shared fixed at somewhere currently unmapped 12456 mmap shared fixed at somewhere already mapped 12457 For private mappings, we should verify that changes cannot be read() 12458 back from the file, nor mmap's back from the file at a different 12459 address. (There have been systems where private was not correctly 12460 implemented like the infamous i386 svr4.0, and systems where the 12461 VM page cache was not coherent with the file system buffer cache 12462 like early versions of FreeBSD and possibly contemporary NetBSD.) 12463 For shared mappings, we should conversely verify that changes get 12464 propagated back to all the places they're supposed to be. 12465 12466 Grep wants private fixed already mapped. 12467 The main things grep needs to know about mmap are: 12468 * does it exist and is it safe to write into the mmap'd area 12469 * how to use it (BSD variants) */ 12470 12471#include <fcntl.h> 12472#include <sys/mman.h> 12473 12474#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 12475char *malloc (); 12476#endif 12477 12478/* This mess was copied from the GNU getpagesize.h. */ 12479#ifndef HAVE_GETPAGESIZE 12480# ifdef _SC_PAGESIZE 12481# define getpagesize() sysconf(_SC_PAGESIZE) 12482# else /* no _SC_PAGESIZE */ 12483# ifdef HAVE_SYS_PARAM_H 12484# include <sys/param.h> 12485# ifdef EXEC_PAGESIZE 12486# define getpagesize() EXEC_PAGESIZE 12487# else /* no EXEC_PAGESIZE */ 12488# ifdef NBPG 12489# define getpagesize() NBPG * CLSIZE 12490# ifndef CLSIZE 12491# define CLSIZE 1 12492# endif /* no CLSIZE */ 12493# else /* no NBPG */ 12494# ifdef NBPC 12495# define getpagesize() NBPC 12496# else /* no NBPC */ 12497# ifdef PAGESIZE 12498# define getpagesize() PAGESIZE 12499# endif /* PAGESIZE */ 12500# endif /* no NBPC */ 12501# endif /* no NBPG */ 12502# endif /* no EXEC_PAGESIZE */ 12503# else /* no HAVE_SYS_PARAM_H */ 12504# define getpagesize() 8192 /* punt totally */ 12505# endif /* no HAVE_SYS_PARAM_H */ 12506# endif /* no _SC_PAGESIZE */ 12507 12508#endif /* no HAVE_GETPAGESIZE */ 12509 12510int 12511main () 12512{ 12513 char *data, *data2, *data3; 12514 int i, pagesize; 12515 int fd, fd2; 12516 12517 pagesize = getpagesize (); 12518 12519 /* First, make a file with some known garbage in it. */ 12520 data = (char *) malloc (pagesize); 12521 if (!data) 12522 return 1; 12523 for (i = 0; i < pagesize; ++i) 12524 *(data + i) = rand (); 12525 umask (0); 12526 fd = creat ("conftest.mmap", 0600); 12527 if (fd < 0) 12528 return 2; 12529 if (write (fd, data, pagesize) != pagesize) 12530 return 3; 12531 close (fd); 12532 12533 /* Next, check that the tail of a page is zero-filled. File must have 12534 non-zero length, otherwise we risk SIGBUS for entire page. */ 12535 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 12536 if (fd2 < 0) 12537 return 4; 12538 data2 = (char *) ""; 12539 if (write (fd2, data2, 1) != 1) 12540 return 5; 12541 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 12542 if (data2 == MAP_FAILED) 12543 return 6; 12544 for (i = 0; i < pagesize; ++i) 12545 if (*(data2 + i)) 12546 return 7; 12547 close (fd2); 12548 if (munmap (data2, pagesize)) 12549 return 8; 12550 12551 /* Next, try to mmap the file at a fixed address which already has 12552 something else allocated at it. If we can, also make sure that 12553 we see the same garbage. */ 12554 fd = open ("conftest.mmap", O_RDWR); 12555 if (fd < 0) 12556 return 9; 12557 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 12558 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 12559 return 10; 12560 for (i = 0; i < pagesize; ++i) 12561 if (*(data + i) != *(data2 + i)) 12562 return 11; 12563 12564 /* Finally, make sure that changes to the mapped area do not 12565 percolate back to the file as seen by read(). (This is a bug on 12566 some variants of i386 svr4.0.) */ 12567 for (i = 0; i < pagesize; ++i) 12568 *(data2 + i) = *(data2 + i) + 1; 12569 data3 = (char *) malloc (pagesize); 12570 if (!data3) 12571 return 12; 12572 if (read (fd, data3, pagesize) != pagesize) 12573 return 13; 12574 for (i = 0; i < pagesize; ++i) 12575 if (*(data + i) != *(data3 + i)) 12576 return 14; 12577 close (fd); 12578 return 0; 12579} 12580_ACEOF 12581if ac_fn_cxx_try_run "$LINENO"; then : 12582 ac_cv_func_mmap_fixed_mapped=yes 12583else 12584 ac_cv_func_mmap_fixed_mapped=no 12585fi 12586rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12587 conftest.$ac_objext conftest.beam conftest.$ac_ext 12588fi 12589 12590fi 12591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 12592$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 12593if test $ac_cv_func_mmap_fixed_mapped = yes; then 12594 12595$as_echo "#define HAVE_MMAP 1" >>confdefs.h 12596 12597fi 12598rm -f conftest.mmap conftest.txt 12599 12600 for ac_func in munmap sysconf 12601do : 12602 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12603ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 12604if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12605 cat >>confdefs.h <<_ACEOF 12606#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12607_ACEOF 12608 12609fi 12610done 12611 12612 if test $ac_cv_func_sysconf = yes; then : 12613 12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5 12615$as_echo_n "checking for pagesize constant for sysconf... " >&6; } 12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12617/* end confdefs.h. */ 12618 12619 12620 #include <unistd.h> 12621 12622int 12623main () 12624{ 12625 12626 return sysconf(_SC_PAGESIZE); 12627 12628 ; 12629 return 0; 12630} 12631 12632_ACEOF 12633if ac_fn_cxx_try_link "$LINENO"; then : 12634 12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5 12636$as_echo "_SC_PAGESIZE" >&6; } 12637 12638$as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h 12639 12640 12641else 12642 12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12644/* end confdefs.h. */ 12645 12646 12647 #include <unistd.h> 12648 12649int 12650main () 12651{ 12652 12653 return sysconf(_SC_PAGE_SIZE); 12654 12655 ; 12656 return 0; 12657} 12658 12659_ACEOF 12660if ac_fn_cxx_try_link "$LINENO"; then : 12661 12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5 12663$as_echo "_SC_PAGE_SIZE" >&6; } 12664 12665$as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h 12666 12667 12668else 12669 12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 12671$as_echo "none" >&6; } 12672 12673fi 12674rm -f core conftest.err conftest.$ac_objext \ 12675 conftest$ac_exeext conftest.$ac_ext 12676 12677fi 12678rm -f core conftest.err conftest.$ac_objext \ 12679 conftest$ac_exeext conftest.$ac_ext 12680 12681fi 12682 12683fi 12684 12685fi 12686 12687 12688# Look for a way to preallocate disk space for files. 12689if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then : 12690 12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5 12692$as_echo_n "checking for fallocate... " >&6; } 12693 mule_backup_CPPFLAGS="$CPPFLAGS" 12694 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS" 12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12696/* end confdefs.h. */ 12697 12698 12699 #ifndef _GNU_SOURCE 12700 # define _GNU_SOURCE 12701 #endif 12702 #ifdef HAVE_FCNTL_H 12703 # include <fcntl.h> 12704 #endif 12705 #include <linux/falloc.h> 12706 12707int 12708main () 12709{ 12710 12711 fallocate(0, 0, 0, 0); 12712 12713 ; 12714 return 0; 12715} 12716 12717_ACEOF 12718if ac_fn_cxx_try_link "$LINENO"; then : 12719 12720 12721 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h 12722 12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12724$as_echo "yes" >&6; } 12725 12726else 12727 12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12729$as_echo "no" >&6; } 12730 12731fi 12732rm -f core conftest.err conftest.$ac_objext \ 12733 conftest$ac_exeext conftest.$ac_ext 12734 CPPFLAGS="$mule_backup_CPPFLAGS" 12735 12736 12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5 12738$as_echo_n "checking for SYS_fallocate... " >&6; } 12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12740/* end confdefs.h. */ 12741 12742 12743 #include <sys/syscall.h> 12744 #include <sys/types.h> 12745 #include <unistd.h> 12746 12747int 12748main () 12749{ 12750 12751 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0); 12752 12753 ; 12754 return 0; 12755} 12756 12757_ACEOF 12758if ac_fn_cxx_try_link "$LINENO"; then : 12759 12760 12761 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h 12762 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12764$as_echo "yes" >&6; } 12765 12766else 12767 12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12769$as_echo "no" >&6; } 12770 12771fi 12772rm -f core conftest.err conftest.$ac_objext \ 12773 conftest$ac_exeext conftest.$ac_ext 12774 12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5 12776$as_echo_n "checking for posix_fallocate... " >&6; } 12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12778/* end confdefs.h. */ 12779 12780 12781 #define _XOPEN_SOURCE 600 12782 #include <stdlib.h> 12783 #ifdef HAVE_FCNTL_H 12784 # include <fcntl.h> 12785 #endif 12786 12787int 12788main () 12789{ 12790 12791 posix_fallocate(0, 0, 0); 12792 12793 ; 12794 return 0; 12795} 12796 12797_ACEOF 12798if ac_fn_cxx_try_link "$LINENO"; then : 12799 12800 12801 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h 12802 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12804$as_echo "yes" >&6; } 12805 12806else 12807 12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12809$as_echo "no" >&6; } 12810 12811fi 12812rm -f core conftest.err conftest.$ac_objext \ 12813 conftest$ac_exeext conftest.$ac_ext 12814 12815fi 12816 12817 12818ac_ext=c 12819ac_cpp='$CPP $CPPFLAGS' 12820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12822ac_compiler_gnu=$ac_cv_c_compiler_gnu 12823 12824# Checking Native Language Support 12825 12826 12827 MKINSTALLDIRS= 12828 if test -n "$ac_aux_dir"; then 12829 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 12830 fi 12831 if test -z "$MKINSTALLDIRS"; then 12832 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 12833 fi 12834 12835 12836 12837 12838 12839 # Extract the first word of "msgfmt", so it can be a program name with args. 12840set dummy msgfmt; ac_word=$2 12841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12842$as_echo_n "checking for $ac_word... " >&6; } 12843if ${ac_cv_path_MSGFMT+:} false; then : 12844 $as_echo_n "(cached) " >&6 12845else 12846 case "$MSGFMT" in 12847 /*) 12848 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 12849 ;; 12850 *) 12851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 12852 for ac_dir in $PATH; do 12853 test -z "$ac_dir" && ac_dir=. 12854 if test -f $ac_dir/$ac_word; then 12855 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 12856 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12857 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 12858 break 12859 fi 12860 fi 12861 done 12862 IFS="$ac_save_ifs" 12863 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 12864 ;; 12865esac 12866fi 12867MSGFMT="$ac_cv_path_MSGFMT" 12868if test "$MSGFMT" != ":"; then 12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 12870$as_echo "$MSGFMT" >&6; } 12871else 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12873$as_echo "no" >&6; } 12874fi 12875 12876 # Extract the first word of "gmsgfmt", so it can be a program name with args. 12877set dummy gmsgfmt; ac_word=$2 12878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12879$as_echo_n "checking for $ac_word... " >&6; } 12880if ${ac_cv_path_GMSGFMT+:} false; then : 12881 $as_echo_n "(cached) " >&6 12882else 12883 case $GMSGFMT in 12884 [\\/]* | ?:[\\/]*) 12885 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 12886 ;; 12887 *) 12888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12889for as_dir in $PATH 12890do 12891 IFS=$as_save_IFS 12892 test -z "$as_dir" && as_dir=. 12893 for ac_exec_ext in '' $ac_executable_extensions; do 12894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12895 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 12896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12897 break 2 12898 fi 12899done 12900 done 12901IFS=$as_save_IFS 12902 12903 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 12904 ;; 12905esac 12906fi 12907GMSGFMT=$ac_cv_path_GMSGFMT 12908if test -n "$GMSGFMT"; then 12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 12910$as_echo "$GMSGFMT" >&6; } 12911else 12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12913$as_echo "no" >&6; } 12914fi 12915 12916 12917 12918 # Extract the first word of "xgettext", so it can be a program name with args. 12919set dummy xgettext; ac_word=$2 12920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12921$as_echo_n "checking for $ac_word... " >&6; } 12922if ${ac_cv_path_XGETTEXT+:} false; then : 12923 $as_echo_n "(cached) " >&6 12924else 12925 case "$XGETTEXT" in 12926 /*) 12927 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 12928 ;; 12929 *) 12930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 12931 for ac_dir in $PATH; do 12932 test -z "$ac_dir" && ac_dir=. 12933 if test -f $ac_dir/$ac_word; then 12934 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && 12935 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12936 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 12937 break 12938 fi 12939 fi 12940 done 12941 IFS="$ac_save_ifs" 12942 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 12943 ;; 12944esac 12945fi 12946XGETTEXT="$ac_cv_path_XGETTEXT" 12947if test "$XGETTEXT" != ":"; then 12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 12949$as_echo "$XGETTEXT" >&6; } 12950else 12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12952$as_echo "no" >&6; } 12953fi 12954 12955 rm -f messages.po 12956 12957 # Extract the first word of "msgmerge", so it can be a program name with args. 12958set dummy msgmerge; ac_word=$2 12959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12960$as_echo_n "checking for $ac_word... " >&6; } 12961if ${ac_cv_path_MSGMERGE+:} false; then : 12962 $as_echo_n "(cached) " >&6 12963else 12964 case "$MSGMERGE" in 12965 /*) 12966 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 12967 ;; 12968 *) 12969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 12970 for ac_dir in $PATH; do 12971 test -z "$ac_dir" && ac_dir=. 12972 if test -f $ac_dir/$ac_word; then 12973 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 12974 ac_cv_path_MSGMERGE="$ac_dir/$ac_word" 12975 break 12976 fi 12977 fi 12978 done 12979 IFS="$ac_save_ifs" 12980 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 12981 ;; 12982esac 12983fi 12984MSGMERGE="$ac_cv_path_MSGMERGE" 12985if test "$MSGMERGE" != ":"; then 12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 12987$as_echo "$MSGMERGE" >&6; } 12988else 12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12990$as_echo "no" >&6; } 12991fi 12992 12993 12994 if test "$GMSGFMT" != ":"; then 12995 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 12996 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12997 : ; 12998 else 12999 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 13001$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 13002 GMSGFMT=":" 13003 fi 13004 fi 13005 13006 if test "$XGETTEXT" != ":"; then 13007 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && 13008 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 13009 : ; 13010 else 13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 13012$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 13013 XGETTEXT=":" 13014 fi 13015 rm -f messages.po 13016 fi 13017 13018 ac_config_commands="$ac_config_commands default-1" 13019 13020 13021 13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 13023$as_echo_n "checking for strerror in -lcposix... " >&6; } 13024if ${ac_cv_lib_cposix_strerror+:} false; then : 13025 $as_echo_n "(cached) " >&6 13026else 13027 ac_check_lib_save_LIBS=$LIBS 13028LIBS="-lcposix $LIBS" 13029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13030/* end confdefs.h. */ 13031 13032/* Override any GCC internal prototype to avoid an error. 13033 Use char because int might match the return type of a GCC 13034 builtin and then its argument prototype would still apply. */ 13035#ifdef __cplusplus 13036extern "C" 13037#endif 13038char strerror (); 13039int 13040main () 13041{ 13042return strerror (); 13043 ; 13044 return 0; 13045} 13046_ACEOF 13047if ac_fn_c_try_link "$LINENO"; then : 13048 ac_cv_lib_cposix_strerror=yes 13049else 13050 ac_cv_lib_cposix_strerror=no 13051fi 13052rm -f core conftest.err conftest.$ac_objext \ 13053 conftest$ac_exeext conftest.$ac_ext 13054LIBS=$ac_check_lib_save_LIBS 13055fi 13056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 13057$as_echo "$ac_cv_lib_cposix_strerror" >&6; } 13058if test "x$ac_cv_lib_cposix_strerror" = xyes; then : 13059 LIBS="$LIBS -lcposix" 13060fi 13061 13062 13063 13064 13065for ac_func in getpagesize 13066do : 13067 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 13068if test "x$ac_cv_func_getpagesize" = xyes; then : 13069 cat >>confdefs.h <<_ACEOF 13070#define HAVE_GETPAGESIZE 1 13071_ACEOF 13072 13073fi 13074done 13075 13076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 13077$as_echo_n "checking for working mmap... " >&6; } 13078if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 13079 $as_echo_n "(cached) " >&6 13080else 13081 if test "$cross_compiling" = yes; then : 13082 ac_cv_func_mmap_fixed_mapped=no 13083else 13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13085/* end confdefs.h. */ 13086$ac_includes_default 13087/* malloc might have been renamed as rpl_malloc. */ 13088#undef malloc 13089 13090/* Thanks to Mike Haertel and Jim Avera for this test. 13091 Here is a matrix of mmap possibilities: 13092 mmap private not fixed 13093 mmap private fixed at somewhere currently unmapped 13094 mmap private fixed at somewhere already mapped 13095 mmap shared not fixed 13096 mmap shared fixed at somewhere currently unmapped 13097 mmap shared fixed at somewhere already mapped 13098 For private mappings, we should verify that changes cannot be read() 13099 back from the file, nor mmap's back from the file at a different 13100 address. (There have been systems where private was not correctly 13101 implemented like the infamous i386 svr4.0, and systems where the 13102 VM page cache was not coherent with the file system buffer cache 13103 like early versions of FreeBSD and possibly contemporary NetBSD.) 13104 For shared mappings, we should conversely verify that changes get 13105 propagated back to all the places they're supposed to be. 13106 13107 Grep wants private fixed already mapped. 13108 The main things grep needs to know about mmap are: 13109 * does it exist and is it safe to write into the mmap'd area 13110 * how to use it (BSD variants) */ 13111 13112#include <fcntl.h> 13113#include <sys/mman.h> 13114 13115#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 13116char *malloc (); 13117#endif 13118 13119/* This mess was copied from the GNU getpagesize.h. */ 13120#ifndef HAVE_GETPAGESIZE 13121# ifdef _SC_PAGESIZE 13122# define getpagesize() sysconf(_SC_PAGESIZE) 13123# else /* no _SC_PAGESIZE */ 13124# ifdef HAVE_SYS_PARAM_H 13125# include <sys/param.h> 13126# ifdef EXEC_PAGESIZE 13127# define getpagesize() EXEC_PAGESIZE 13128# else /* no EXEC_PAGESIZE */ 13129# ifdef NBPG 13130# define getpagesize() NBPG * CLSIZE 13131# ifndef CLSIZE 13132# define CLSIZE 1 13133# endif /* no CLSIZE */ 13134# else /* no NBPG */ 13135# ifdef NBPC 13136# define getpagesize() NBPC 13137# else /* no NBPC */ 13138# ifdef PAGESIZE 13139# define getpagesize() PAGESIZE 13140# endif /* PAGESIZE */ 13141# endif /* no NBPC */ 13142# endif /* no NBPG */ 13143# endif /* no EXEC_PAGESIZE */ 13144# else /* no HAVE_SYS_PARAM_H */ 13145# define getpagesize() 8192 /* punt totally */ 13146# endif /* no HAVE_SYS_PARAM_H */ 13147# endif /* no _SC_PAGESIZE */ 13148 13149#endif /* no HAVE_GETPAGESIZE */ 13150 13151int 13152main () 13153{ 13154 char *data, *data2, *data3; 13155 const char *cdata2; 13156 int i, pagesize; 13157 int fd, fd2; 13158 13159 pagesize = getpagesize (); 13160 13161 /* First, make a file with some known garbage in it. */ 13162 data = (char *) malloc (pagesize); 13163 if (!data) 13164 return 1; 13165 for (i = 0; i < pagesize; ++i) 13166 *(data + i) = rand (); 13167 umask (0); 13168 fd = creat ("conftest.mmap", 0600); 13169 if (fd < 0) 13170 return 2; 13171 if (write (fd, data, pagesize) != pagesize) 13172 return 3; 13173 close (fd); 13174 13175 /* Next, check that the tail of a page is zero-filled. File must have 13176 non-zero length, otherwise we risk SIGBUS for entire page. */ 13177 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 13178 if (fd2 < 0) 13179 return 4; 13180 cdata2 = ""; 13181 if (write (fd2, cdata2, 1) != 1) 13182 return 5; 13183 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 13184 if (data2 == MAP_FAILED) 13185 return 6; 13186 for (i = 0; i < pagesize; ++i) 13187 if (*(data2 + i)) 13188 return 7; 13189 close (fd2); 13190 if (munmap (data2, pagesize)) 13191 return 8; 13192 13193 /* Next, try to mmap the file at a fixed address which already has 13194 something else allocated at it. If we can, also make sure that 13195 we see the same garbage. */ 13196 fd = open ("conftest.mmap", O_RDWR); 13197 if (fd < 0) 13198 return 9; 13199 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 13200 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 13201 return 10; 13202 for (i = 0; i < pagesize; ++i) 13203 if (*(data + i) != *(data2 + i)) 13204 return 11; 13205 13206 /* Finally, make sure that changes to the mapped area do not 13207 percolate back to the file as seen by read(). (This is a bug on 13208 some variants of i386 svr4.0.) */ 13209 for (i = 0; i < pagesize; ++i) 13210 *(data2 + i) = *(data2 + i) + 1; 13211 data3 = (char *) malloc (pagesize); 13212 if (!data3) 13213 return 12; 13214 if (read (fd, data3, pagesize) != pagesize) 13215 return 13; 13216 for (i = 0; i < pagesize; ++i) 13217 if (*(data + i) != *(data3 + i)) 13218 return 14; 13219 close (fd); 13220 free (data); 13221 free (data3); 13222 return 0; 13223} 13224_ACEOF 13225if ac_fn_c_try_run "$LINENO"; then : 13226 ac_cv_func_mmap_fixed_mapped=yes 13227else 13228 ac_cv_func_mmap_fixed_mapped=no 13229fi 13230rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13231 conftest.$ac_objext conftest.beam conftest.$ac_ext 13232fi 13233 13234fi 13235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 13236$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 13237if test $ac_cv_func_mmap_fixed_mapped = yes; then 13238 13239$as_echo "#define HAVE_MMAP 1" >>confdefs.h 13240 13241fi 13242rm -f conftest.mmap conftest.txt 13243 13244 13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 13246$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } 13247if ${ac_cv_gnu_library_2_1+:} false; then : 13248 $as_echo_n "(cached) " >&6 13249else 13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13251/* end confdefs.h. */ 13252 13253#include <features.h> 13254#ifdef __GNU_LIBRARY__ 13255 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 13256 Lucky GNU user 13257 #endif 13258#endif 13259 13260_ACEOF 13261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13262 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 13263 ac_cv_gnu_library_2_1=yes 13264else 13265 ac_cv_gnu_library_2_1=no 13266fi 13267rm -f conftest* 13268 13269 13270 13271fi 13272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 13273$as_echo "$ac_cv_gnu_library_2_1" >&6; } 13274 13275 GLIBC21="$ac_cv_gnu_library_2_1" 13276 13277 13278 13279 13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 13281$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } 13282if ${gt_cv_int_divbyzero_sigfpe+:} false; then : 13283 $as_echo_n "(cached) " >&6 13284else 13285 13286 if test "$cross_compiling" = yes; then : 13287 13288 # Guess based on the CPU. 13289 case "$host_cpu" in 13290 alpha* | i3456786 | m68k | s390*) 13291 gt_cv_int_divbyzero_sigfpe="guessing yes";; 13292 *) 13293 gt_cv_int_divbyzero_sigfpe="guessing no";; 13294 esac 13295 13296else 13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13298/* end confdefs.h. */ 13299 13300#include <stdlib.h> 13301#include <signal.h> 13302 13303static void 13304#ifdef __cplusplus 13305sigfpe_handler (int sig) 13306#else 13307sigfpe_handler (sig) int sig; 13308#endif 13309{ 13310 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 13311 exit (sig != SIGFPE); 13312} 13313 13314int x = 1; 13315int y = 0; 13316int z; 13317int nan; 13318 13319int main () 13320{ 13321 signal (SIGFPE, sigfpe_handler); 13322/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 13323#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 13324 signal (SIGTRAP, sigfpe_handler); 13325#endif 13326/* Linux/SPARC yields signal SIGILL. */ 13327#if defined (__sparc__) && defined (__linux__) 13328 signal (SIGILL, sigfpe_handler); 13329#endif 13330 13331 z = x / y; 13332 nan = y / y; 13333 exit (1); 13334} 13335 13336_ACEOF 13337if ac_fn_c_try_run "$LINENO"; then : 13338 gt_cv_int_divbyzero_sigfpe=yes 13339else 13340 gt_cv_int_divbyzero_sigfpe=no 13341fi 13342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13343 conftest.$ac_objext conftest.beam conftest.$ac_ext 13344fi 13345 13346 13347fi 13348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 13349$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } 13350 case "$gt_cv_int_divbyzero_sigfpe" in 13351 *yes) value=1;; 13352 *) value=0;; 13353 esac 13354 13355cat >>confdefs.h <<_ACEOF 13356#define INTDIV0_RAISES_SIGFPE $value 13357_ACEOF 13358 13359 13360 13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 13362$as_echo_n "checking for inttypes.h... " >&6; } 13363if ${jm_ac_cv_header_inttypes_h+:} false; then : 13364 $as_echo_n "(cached) " >&6 13365else 13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13367/* end confdefs.h. */ 13368#include <sys/types.h> 13369#include <inttypes.h> 13370int 13371main () 13372{ 13373uintmax_t i = (uintmax_t) -1; 13374 ; 13375 return 0; 13376} 13377_ACEOF 13378if ac_fn_c_try_compile "$LINENO"; then : 13379 jm_ac_cv_header_inttypes_h=yes 13380else 13381 jm_ac_cv_header_inttypes_h=no 13382fi 13383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13384fi 13385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 13386$as_echo "$jm_ac_cv_header_inttypes_h" >&6; } 13387 if test $jm_ac_cv_header_inttypes_h = yes; then 13388 13389cat >>confdefs.h <<_ACEOF 13390#define HAVE_INTTYPES_H_WITH_UINTMAX 1 13391_ACEOF 13392 13393 fi 13394 13395 13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 13397$as_echo_n "checking for stdint.h... " >&6; } 13398if ${jm_ac_cv_header_stdint_h+:} false; then : 13399 $as_echo_n "(cached) " >&6 13400else 13401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13402/* end confdefs.h. */ 13403#include <sys/types.h> 13404#include <stdint.h> 13405int 13406main () 13407{ 13408uintmax_t i = (uintmax_t) -1; 13409 ; 13410 return 0; 13411} 13412_ACEOF 13413if ac_fn_c_try_compile "$LINENO"; then : 13414 jm_ac_cv_header_stdint_h=yes 13415else 13416 jm_ac_cv_header_stdint_h=no 13417fi 13418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13419fi 13420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 13421$as_echo "$jm_ac_cv_header_stdint_h" >&6; } 13422 if test $jm_ac_cv_header_stdint_h = yes; then 13423 13424cat >>confdefs.h <<_ACEOF 13425#define HAVE_STDINT_H_WITH_UINTMAX 1 13426_ACEOF 13427 13428 fi 13429 13430 13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 13432$as_echo_n "checking for unsigned long long... " >&6; } 13433if ${ac_cv_type_unsigned_long_long+:} false; then : 13434 $as_echo_n "(cached) " >&6 13435else 13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13437/* end confdefs.h. */ 13438unsigned long long ull = 1; int i = 63; 13439int 13440main () 13441{ 13442unsigned long long ullmax = (unsigned long long) -1; 13443 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 13444 ; 13445 return 0; 13446} 13447_ACEOF 13448if ac_fn_c_try_link "$LINENO"; then : 13449 ac_cv_type_unsigned_long_long=yes 13450else 13451 ac_cv_type_unsigned_long_long=no 13452fi 13453rm -f core conftest.err conftest.$ac_objext \ 13454 conftest$ac_exeext conftest.$ac_ext 13455fi 13456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 13457$as_echo "$ac_cv_type_unsigned_long_long" >&6; } 13458 if test $ac_cv_type_unsigned_long_long = yes; then 13459 13460$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h 13461 13462 fi 13463 13464 13465 13466 13467 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then 13468 13469 test $ac_cv_type_unsigned_long_long = yes \ 13470 && ac_type='unsigned long long' \ 13471 || ac_type='unsigned long' 13472 13473cat >>confdefs.h <<_ACEOF 13474#define uintmax_t $ac_type 13475_ACEOF 13476 13477 fi 13478 13479 13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 13481$as_echo_n "checking for inttypes.h... " >&6; } 13482if ${gt_cv_header_inttypes_h+:} false; then : 13483 $as_echo_n "(cached) " >&6 13484else 13485 13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13487/* end confdefs.h. */ 13488#include <sys/types.h> 13489#include <inttypes.h> 13490int 13491main () 13492{ 13493 13494 ; 13495 return 0; 13496} 13497_ACEOF 13498if ac_fn_c_try_compile "$LINENO"; then : 13499 gt_cv_header_inttypes_h=yes 13500else 13501 gt_cv_header_inttypes_h=no 13502fi 13503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13504 13505fi 13506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 13507$as_echo "$gt_cv_header_inttypes_h" >&6; } 13508 if test $gt_cv_header_inttypes_h = yes; then 13509 13510cat >>confdefs.h <<_ACEOF 13511#define HAVE_INTTYPES_H 1 13512_ACEOF 13513 13514 fi 13515 13516 13517 13518 if test $gt_cv_header_inttypes_h = yes; then 13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 13520$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } 13521if ${gt_cv_inttypes_pri_broken+:} false; then : 13522 $as_echo_n "(cached) " >&6 13523else 13524 13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13526/* end confdefs.h. */ 13527#include <inttypes.h> 13528#ifdef PRId32 13529char *p = PRId32; 13530#endif 13531 13532int 13533main () 13534{ 13535 13536 ; 13537 return 0; 13538} 13539_ACEOF 13540if ac_fn_c_try_compile "$LINENO"; then : 13541 gt_cv_inttypes_pri_broken=no 13542else 13543 gt_cv_inttypes_pri_broken=yes 13544fi 13545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13546 13547fi 13548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 13549$as_echo "$gt_cv_inttypes_pri_broken" >&6; } 13550 fi 13551 if test "$gt_cv_inttypes_pri_broken" = yes; then 13552 13553cat >>confdefs.h <<_ACEOF 13554#define PRI_MACROS_BROKEN 1 13555_ACEOF 13556 13557 fi 13558 13559 13560 if test "X$prefix" = "XNONE"; then 13561 acl_final_prefix="$ac_default_prefix" 13562 else 13563 acl_final_prefix="$prefix" 13564 fi 13565 if test "X$exec_prefix" = "XNONE"; then 13566 acl_final_exec_prefix='${prefix}' 13567 else 13568 acl_final_exec_prefix="$exec_prefix" 13569 fi 13570 acl_save_prefix="$prefix" 13571 prefix="$acl_final_prefix" 13572 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 13573 prefix="$acl_save_prefix" 13574 13575 13576# Check whether --with-gnu-ld was given. 13577if test "${with_gnu_ld+set}" = set; then : 13578 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13579else 13580 with_gnu_ld=no 13581fi 13582 13583ac_prog=ld 13584if test "$GCC" = yes; then 13585 # Check if gcc -print-prog-name=ld gives a path. 13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 13587$as_echo_n "checking for ld used by GCC... " >&6; } 13588 case $host in 13589 *-*-mingw*) 13590 # gcc leaves a trailing carriage return which upsets mingw 13591 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13592 *) 13593 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13594 esac 13595 case $ac_prog in 13596 # Accept absolute paths. 13597 [\\/]* | [A-Za-z]:[\\/]*) 13598 re_direlt='/[^/][^/]*/\.\./' 13599 # Canonicalize the path of ld 13600 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 13601 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 13602 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 13603 done 13604 test -z "$LD" && LD="$ac_prog" 13605 ;; 13606 "") 13607 # If it fails, then pretend we aren't using GCC. 13608 ac_prog=ld 13609 ;; 13610 *) 13611 # If it is relative, then search for the first ld in PATH. 13612 with_gnu_ld=unknown 13613 ;; 13614 esac 13615elif test "$with_gnu_ld" = yes; then 13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13617$as_echo_n "checking for GNU ld... " >&6; } 13618else 13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13620$as_echo_n "checking for non-GNU ld... " >&6; } 13621fi 13622if ${acl_cv_path_LD+:} false; then : 13623 $as_echo_n "(cached) " >&6 13624else 13625 if test -z "$LD"; then 13626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 13627 for ac_dir in $PATH; do 13628 test -z "$ac_dir" && ac_dir=. 13629 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13630 acl_cv_path_LD="$ac_dir/$ac_prog" 13631 # Check to see if the program is GNU ld. I'd rather use --version, 13632 # but apparently some GNU ld's only accept -v. 13633 # Break only if it was the GNU/non-GNU ld that we prefer. 13634 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 13635 test "$with_gnu_ld" != no && break 13636 else 13637 test "$with_gnu_ld" != yes && break 13638 fi 13639 fi 13640 done 13641 IFS="$ac_save_ifs" 13642else 13643 acl_cv_path_LD="$LD" # Let the user override the test with a path. 13644fi 13645fi 13646 13647LD="$acl_cv_path_LD" 13648if test -n "$LD"; then 13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13650$as_echo "$LD" >&6; } 13651else 13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13653$as_echo "no" >&6; } 13654fi 13655test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13657$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13658if ${acl_cv_prog_gnu_ld+:} false; then : 13659 $as_echo_n "(cached) " >&6 13660else 13661 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 13662if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 13663 acl_cv_prog_gnu_ld=yes 13664else 13665 acl_cv_prog_gnu_ld=no 13666fi 13667fi 13668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 13669$as_echo "$acl_cv_prog_gnu_ld" >&6; } 13670with_gnu_ld=$acl_cv_prog_gnu_ld 13671 13672 13673 13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 13675$as_echo_n "checking for shared library run path origin... " >&6; } 13676if ${acl_cv_rpath+:} false; then : 13677 $as_echo_n "(cached) " >&6 13678else 13679 13680 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 13681 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 13682 . ./conftest.sh 13683 rm -f ./conftest.sh 13684 acl_cv_rpath=done 13685 13686fi 13687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 13688$as_echo "$acl_cv_rpath" >&6; } 13689 wl="$acl_cv_wl" 13690 libext="$acl_cv_libext" 13691 shlibext="$acl_cv_shlibext" 13692 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 13693 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 13694 hardcode_direct="$acl_cv_hardcode_direct" 13695 hardcode_minus_L="$acl_cv_hardcode_minus_L" 13696 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" 13697 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" 13698 # Check whether --enable-rpath was given. 13699if test "${enable_rpath+set}" = set; then : 13700 enableval=$enable_rpath; : 13701else 13702 enable_rpath=yes 13703fi 13704 13705 13706 13707 13708 13709 13710 13711 13712 use_additional=yes 13713 13714 acl_save_prefix="$prefix" 13715 prefix="$acl_final_prefix" 13716 acl_save_exec_prefix="$exec_prefix" 13717 exec_prefix="$acl_final_exec_prefix" 13718 13719 eval additional_includedir=\"$includedir\" 13720 eval additional_libdir=\"$libdir\" 13721 13722 exec_prefix="$acl_save_exec_prefix" 13723 prefix="$acl_save_prefix" 13724 13725 13726# Check whether --with-libiconv-prefix was given. 13727if test "${with_libiconv_prefix+set}" = set; then : 13728 withval=$with_libiconv_prefix; 13729 if test "X$withval" = "Xno"; then 13730 use_additional=no 13731 else 13732 if test "X$withval" = "X"; then 13733 13734 acl_save_prefix="$prefix" 13735 prefix="$acl_final_prefix" 13736 acl_save_exec_prefix="$exec_prefix" 13737 exec_prefix="$acl_final_exec_prefix" 13738 13739 eval additional_includedir=\"$includedir\" 13740 eval additional_libdir=\"$libdir\" 13741 13742 exec_prefix="$acl_save_exec_prefix" 13743 prefix="$acl_save_prefix" 13744 13745 else 13746 additional_includedir="$withval/include" 13747 additional_libdir="$withval/lib" 13748 fi 13749 fi 13750 13751fi 13752 13753 LIBICONV= 13754 LTLIBICONV= 13755 INCICONV= 13756 rpathdirs= 13757 ltrpathdirs= 13758 names_already_handled= 13759 names_next_round='iconv ' 13760 while test -n "$names_next_round"; do 13761 names_this_round="$names_next_round" 13762 names_next_round= 13763 for name in $names_this_round; do 13764 already_handled= 13765 for n in $names_already_handled; do 13766 if test "$n" = "$name"; then 13767 already_handled=yes 13768 break 13769 fi 13770 done 13771 if test -z "$already_handled"; then 13772 names_already_handled="$names_already_handled $name" 13773 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 13774 eval value=\"\$HAVE_LIB$uppername\" 13775 if test -n "$value"; then 13776 if test "$value" = yes; then 13777 eval value=\"\$LIB$uppername\" 13778 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 13779 eval value=\"\$LTLIB$uppername\" 13780 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 13781 else 13782 : 13783 fi 13784 else 13785 found_dir= 13786 found_la= 13787 found_so= 13788 found_a= 13789 if test $use_additional = yes; then 13790 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 13791 found_dir="$additional_libdir" 13792 found_so="$additional_libdir/lib$name.$shlibext" 13793 if test -f "$additional_libdir/lib$name.la"; then 13794 found_la="$additional_libdir/lib$name.la" 13795 fi 13796 else 13797 if test -f "$additional_libdir/lib$name.$libext"; then 13798 found_dir="$additional_libdir" 13799 found_a="$additional_libdir/lib$name.$libext" 13800 if test -f "$additional_libdir/lib$name.la"; then 13801 found_la="$additional_libdir/lib$name.la" 13802 fi 13803 fi 13804 fi 13805 fi 13806 if test "X$found_dir" = "X"; then 13807 for x in $LDFLAGS $LTLIBICONV; do 13808 13809 acl_save_prefix="$prefix" 13810 prefix="$acl_final_prefix" 13811 acl_save_exec_prefix="$exec_prefix" 13812 exec_prefix="$acl_final_exec_prefix" 13813 eval x=\"$x\" 13814 exec_prefix="$acl_save_exec_prefix" 13815 prefix="$acl_save_prefix" 13816 13817 case "$x" in 13818 -L*) 13819 dir=`echo "X$x" | sed -e 's/^X-L//'` 13820 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 13821 found_dir="$dir" 13822 found_so="$dir/lib$name.$shlibext" 13823 if test -f "$dir/lib$name.la"; then 13824 found_la="$dir/lib$name.la" 13825 fi 13826 else 13827 if test -f "$dir/lib$name.$libext"; then 13828 found_dir="$dir" 13829 found_a="$dir/lib$name.$libext" 13830 if test -f "$dir/lib$name.la"; then 13831 found_la="$dir/lib$name.la" 13832 fi 13833 fi 13834 fi 13835 ;; 13836 esac 13837 if test "X$found_dir" != "X"; then 13838 break 13839 fi 13840 done 13841 fi 13842 if test "X$found_dir" != "X"; then 13843 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 13844 if test "X$found_so" != "X"; then 13845 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 13846 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13847 else 13848 haveit= 13849 for x in $ltrpathdirs; do 13850 if test "X$x" = "X$found_dir"; then 13851 haveit=yes 13852 break 13853 fi 13854 done 13855 if test -z "$haveit"; then 13856 ltrpathdirs="$ltrpathdirs $found_dir" 13857 fi 13858 if test "$hardcode_direct" = yes; then 13859 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13860 else 13861 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 13862 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13863 haveit= 13864 for x in $rpathdirs; do 13865 if test "X$x" = "X$found_dir"; then 13866 haveit=yes 13867 break 13868 fi 13869 done 13870 if test -z "$haveit"; then 13871 rpathdirs="$rpathdirs $found_dir" 13872 fi 13873 else 13874 haveit= 13875 for x in $LDFLAGS $LIBICONV; do 13876 13877 acl_save_prefix="$prefix" 13878 prefix="$acl_final_prefix" 13879 acl_save_exec_prefix="$exec_prefix" 13880 exec_prefix="$acl_final_exec_prefix" 13881 eval x=\"$x\" 13882 exec_prefix="$acl_save_exec_prefix" 13883 prefix="$acl_save_prefix" 13884 13885 if test "X$x" = "X-L$found_dir"; then 13886 haveit=yes 13887 break 13888 fi 13889 done 13890 if test -z "$haveit"; then 13891 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 13892 fi 13893 if test "$hardcode_minus_L" != no; then 13894 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13895 else 13896 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 13897 fi 13898 fi 13899 fi 13900 fi 13901 else 13902 if test "X$found_a" != "X"; then 13903 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 13904 else 13905 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 13906 fi 13907 fi 13908 additional_includedir= 13909 case "$found_dir" in 13910 */lib | */lib/) 13911 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 13912 additional_includedir="$basedir/include" 13913 ;; 13914 esac 13915 if test "X$additional_includedir" != "X"; then 13916 if test "X$additional_includedir" != "X/usr/include"; then 13917 haveit= 13918 if test "X$additional_includedir" = "X/usr/local/include"; then 13919 if test -n "$GCC"; then 13920 case $host_os in 13921 linux*) haveit=yes;; 13922 esac 13923 fi 13924 fi 13925 if test -z "$haveit"; then 13926 for x in $CPPFLAGS $INCICONV; do 13927 13928 acl_save_prefix="$prefix" 13929 prefix="$acl_final_prefix" 13930 acl_save_exec_prefix="$exec_prefix" 13931 exec_prefix="$acl_final_exec_prefix" 13932 eval x=\"$x\" 13933 exec_prefix="$acl_save_exec_prefix" 13934 prefix="$acl_save_prefix" 13935 13936 if test "X$x" = "X-I$additional_includedir"; then 13937 haveit=yes 13938 break 13939 fi 13940 done 13941 if test -z "$haveit"; then 13942 if test -d "$additional_includedir"; then 13943 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 13944 fi 13945 fi 13946 fi 13947 fi 13948 fi 13949 if test -n "$found_la"; then 13950 save_libdir="$libdir" 13951 case "$found_la" in 13952 */* | *\\*) . "$found_la" ;; 13953 *) . "./$found_la" ;; 13954 esac 13955 libdir="$save_libdir" 13956 for dep in $dependency_libs; do 13957 case "$dep" in 13958 -L*) 13959 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 13960 if test "X$additional_libdir" != "X/usr/lib"; then 13961 haveit= 13962 if test "X$additional_libdir" = "X/usr/local/lib"; then 13963 if test -n "$GCC"; then 13964 case $host_os in 13965 linux*) haveit=yes;; 13966 esac 13967 fi 13968 fi 13969 if test -z "$haveit"; then 13970 haveit= 13971 for x in $LDFLAGS $LIBICONV; do 13972 13973 acl_save_prefix="$prefix" 13974 prefix="$acl_final_prefix" 13975 acl_save_exec_prefix="$exec_prefix" 13976 exec_prefix="$acl_final_exec_prefix" 13977 eval x=\"$x\" 13978 exec_prefix="$acl_save_exec_prefix" 13979 prefix="$acl_save_prefix" 13980 13981 if test "X$x" = "X-L$additional_libdir"; then 13982 haveit=yes 13983 break 13984 fi 13985 done 13986 if test -z "$haveit"; then 13987 if test -d "$additional_libdir"; then 13988 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 13989 fi 13990 fi 13991 haveit= 13992 for x in $LDFLAGS $LTLIBICONV; do 13993 13994 acl_save_prefix="$prefix" 13995 prefix="$acl_final_prefix" 13996 acl_save_exec_prefix="$exec_prefix" 13997 exec_prefix="$acl_final_exec_prefix" 13998 eval x=\"$x\" 13999 exec_prefix="$acl_save_exec_prefix" 14000 prefix="$acl_save_prefix" 14001 14002 if test "X$x" = "X-L$additional_libdir"; then 14003 haveit=yes 14004 break 14005 fi 14006 done 14007 if test -z "$haveit"; then 14008 if test -d "$additional_libdir"; then 14009 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 14010 fi 14011 fi 14012 fi 14013 fi 14014 ;; 14015 -R*) 14016 dir=`echo "X$dep" | sed -e 's/^X-R//'` 14017 if test "$enable_rpath" != no; then 14018 haveit= 14019 for x in $rpathdirs; do 14020 if test "X$x" = "X$dir"; then 14021 haveit=yes 14022 break 14023 fi 14024 done 14025 if test -z "$haveit"; then 14026 rpathdirs="$rpathdirs $dir" 14027 fi 14028 haveit= 14029 for x in $ltrpathdirs; do 14030 if test "X$x" = "X$dir"; then 14031 haveit=yes 14032 break 14033 fi 14034 done 14035 if test -z "$haveit"; then 14036 ltrpathdirs="$ltrpathdirs $dir" 14037 fi 14038 fi 14039 ;; 14040 -l*) 14041 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 14042 ;; 14043 *.la) 14044 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 14045 ;; 14046 *) 14047 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 14048 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 14049 ;; 14050 esac 14051 done 14052 fi 14053 else 14054 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 14055 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 14056 fi 14057 fi 14058 fi 14059 done 14060 done 14061 if test "X$rpathdirs" != "X"; then 14062 if test -n "$hardcode_libdir_separator"; then 14063 alldirs= 14064 for found_dir in $rpathdirs; do 14065 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 14066 done 14067 acl_save_libdir="$libdir" 14068 libdir="$alldirs" 14069 eval flag=\"$hardcode_libdir_flag_spec\" 14070 libdir="$acl_save_libdir" 14071 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 14072 else 14073 for found_dir in $rpathdirs; do 14074 acl_save_libdir="$libdir" 14075 libdir="$found_dir" 14076 eval flag=\"$hardcode_libdir_flag_spec\" 14077 libdir="$acl_save_libdir" 14078 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 14079 done 14080 fi 14081 fi 14082 if test "X$ltrpathdirs" != "X"; then 14083 for found_dir in $ltrpathdirs; do 14084 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 14085 done 14086 fi 14087 14088 14089 14090 14091 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 14092stdlib.h string.h unistd.h sys/param.h 14093do : 14094 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14095ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14096if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14097 cat >>confdefs.h <<_ACEOF 14098#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14099_ACEOF 14100 14101fi 14102 14103done 14104 14105 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ 14106geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ 14107strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next 14108do : 14109 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14110ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14111if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14112 cat >>confdefs.h <<_ACEOF 14113#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14114_ACEOF 14115 14116fi 14117done 14118 14119 14120 14121 14122 14123 14124 14125 am_save_CPPFLAGS="$CPPFLAGS" 14126 14127 for element in $INCICONV; do 14128 haveit= 14129 for x in $CPPFLAGS; do 14130 14131 acl_save_prefix="$prefix" 14132 prefix="$acl_final_prefix" 14133 acl_save_exec_prefix="$exec_prefix" 14134 exec_prefix="$acl_final_exec_prefix" 14135 eval x=\"$x\" 14136 exec_prefix="$acl_save_exec_prefix" 14137 prefix="$acl_save_prefix" 14138 14139 if test "X$x" = "X$element"; then 14140 haveit=yes 14141 break 14142 fi 14143 done 14144 if test -z "$haveit"; then 14145 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 14146 fi 14147 done 14148 14149 14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 14151$as_echo_n "checking for iconv... " >&6; } 14152if ${am_cv_func_iconv+:} false; then : 14153 $as_echo_n "(cached) " >&6 14154else 14155 14156 am_cv_func_iconv="no, consider installing GNU libiconv" 14157 am_cv_lib_iconv=no 14158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14159/* end confdefs.h. */ 14160#include <stdlib.h> 14161#include <iconv.h> 14162int 14163main () 14164{ 14165iconv_t cd = iconv_open("",""); 14166 iconv(cd,NULL,NULL,NULL,NULL); 14167 iconv_close(cd); 14168 ; 14169 return 0; 14170} 14171_ACEOF 14172if ac_fn_c_try_link "$LINENO"; then : 14173 am_cv_func_iconv=yes 14174fi 14175rm -f core conftest.err conftest.$ac_objext \ 14176 conftest$ac_exeext conftest.$ac_ext 14177 if test "$am_cv_func_iconv" != yes; then 14178 am_save_LIBS="$LIBS" 14179 LIBS="$LIBS $LIBICONV" 14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14181/* end confdefs.h. */ 14182#include <stdlib.h> 14183#include <iconv.h> 14184int 14185main () 14186{ 14187iconv_t cd = iconv_open("",""); 14188 iconv(cd,NULL,NULL,NULL,NULL); 14189 iconv_close(cd); 14190 ; 14191 return 0; 14192} 14193_ACEOF 14194if ac_fn_c_try_link "$LINENO"; then : 14195 am_cv_lib_iconv=yes 14196 am_cv_func_iconv=yes 14197fi 14198rm -f core conftest.err conftest.$ac_objext \ 14199 conftest$ac_exeext conftest.$ac_ext 14200 LIBS="$am_save_LIBS" 14201 fi 14202 14203fi 14204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 14205$as_echo "$am_cv_func_iconv" >&6; } 14206 if test "$am_cv_func_iconv" = yes; then 14207 14208$as_echo "#define HAVE_ICONV 1" >>confdefs.h 14209 14210 fi 14211 if test "$am_cv_lib_iconv" = yes; then 14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 14213$as_echo_n "checking how to link with libiconv... " >&6; } 14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 14215$as_echo "$LIBICONV" >&6; } 14216 else 14217 CPPFLAGS="$am_save_CPPFLAGS" 14218 LIBICONV= 14219 LTLIBICONV= 14220 fi 14221 14222 14223 14224 if test "$am_cv_func_iconv" = yes; then 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 14226$as_echo_n "checking for iconv declaration... " >&6; } 14227 if ${am_cv_proto_iconv+:} false; then : 14228 $as_echo_n "(cached) " >&6 14229else 14230 14231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14232/* end confdefs.h. */ 14233 14234#include <stdlib.h> 14235#include <iconv.h> 14236extern 14237#ifdef __cplusplus 14238"C" 14239#endif 14240#if defined(__STDC__) || defined(__cplusplus) 14241size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 14242#else 14243size_t iconv(); 14244#endif 14245 14246int 14247main () 14248{ 14249 14250 ; 14251 return 0; 14252} 14253_ACEOF 14254if ac_fn_c_try_compile "$LINENO"; then : 14255 am_cv_proto_iconv_arg1="" 14256else 14257 am_cv_proto_iconv_arg1="const" 14258fi 14259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14260 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 14261fi 14262 14263 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- 14265 }$am_cv_proto_iconv" >&5 14266$as_echo "${ac_t:- 14267 }$am_cv_proto_iconv" >&6; } 14268 14269cat >>confdefs.h <<_ACEOF 14270#define ICONV_CONST $am_cv_proto_iconv_arg1 14271_ACEOF 14272 14273 fi 14274 14275 14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 14277$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 14278if ${am_cv_langinfo_codeset+:} false; then : 14279 $as_echo_n "(cached) " >&6 14280else 14281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14282/* end confdefs.h. */ 14283#include <langinfo.h> 14284int 14285main () 14286{ 14287char* cs = nl_langinfo(CODESET); 14288 ; 14289 return 0; 14290} 14291_ACEOF 14292if ac_fn_c_try_link "$LINENO"; then : 14293 am_cv_langinfo_codeset=yes 14294else 14295 am_cv_langinfo_codeset=no 14296fi 14297rm -f core conftest.err conftest.$ac_objext \ 14298 conftest$ac_exeext conftest.$ac_ext 14299 14300fi 14301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 14302$as_echo "$am_cv_langinfo_codeset" >&6; } 14303 if test $am_cv_langinfo_codeset = yes; then 14304 14305$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 14306 14307 fi 14308 14309 if test $ac_cv_header_locale_h = yes; then 14310 14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 14312$as_echo_n "checking for LC_MESSAGES... " >&6; } 14313if ${am_cv_val_LC_MESSAGES+:} false; then : 14314 $as_echo_n "(cached) " >&6 14315else 14316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14317/* end confdefs.h. */ 14318#include <locale.h> 14319int 14320main () 14321{ 14322return LC_MESSAGES 14323 ; 14324 return 0; 14325} 14326_ACEOF 14327if ac_fn_c_try_link "$LINENO"; then : 14328 am_cv_val_LC_MESSAGES=yes 14329else 14330 am_cv_val_LC_MESSAGES=no 14331fi 14332rm -f core conftest.err conftest.$ac_objext \ 14333 conftest$ac_exeext conftest.$ac_ext 14334fi 14335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 14336$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 14337 if test $am_cv_val_LC_MESSAGES = yes; then 14338 14339$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 14340 14341 fi 14342 14343 fi 14344 14345 for ac_prog in bison 14346do 14347 # Extract the first word of "$ac_prog", so it can be a program name with args. 14348set dummy $ac_prog; ac_word=$2 14349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14350$as_echo_n "checking for $ac_word... " >&6; } 14351if ${ac_cv_prog_INTLBISON+:} false; then : 14352 $as_echo_n "(cached) " >&6 14353else 14354 if test -n "$INTLBISON"; then 14355 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 14356else 14357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14358for as_dir in $PATH 14359do 14360 IFS=$as_save_IFS 14361 test -z "$as_dir" && as_dir=. 14362 for ac_exec_ext in '' $ac_executable_extensions; do 14363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14364 ac_cv_prog_INTLBISON="$ac_prog" 14365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14366 break 2 14367 fi 14368done 14369 done 14370IFS=$as_save_IFS 14371 14372fi 14373fi 14374INTLBISON=$ac_cv_prog_INTLBISON 14375if test -n "$INTLBISON"; then 14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 14377$as_echo "$INTLBISON" >&6; } 14378else 14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14380$as_echo "no" >&6; } 14381fi 14382 14383 14384 test -n "$INTLBISON" && break 14385done 14386 14387 if test -z "$INTLBISON"; then 14388 ac_verc_fail=yes 14389 else 14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 14391$as_echo_n "checking version of bison... " >&6; } 14392 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 14393 case $ac_prog_version in 14394 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 14395 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 14396 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 14397 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 14398 esac 14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 14400$as_echo "$ac_prog_version" >&6; } 14401 fi 14402 if test $ac_verc_fail = yes; then 14403 INTLBISON=: 14404 fi 14405 14406 14407 14408# Check whether --with-language was given. 14409if test "${with_language+set}" = set; then : 14410 withval=$with_language; if test "$withval" != "all"; then : 14411 LINGUAS="`echo $withval | sed -e 's/,/ /g'`" 14412fi 14413fi 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 14431$as_echo_n "checking whether NLS is requested... " >&6; } 14432 # Check whether --enable-nls was given. 14433if test "${enable_nls+set}" = set; then : 14434 enableval=$enable_nls; USE_NLS=$enableval 14435else 14436 USE_NLS=yes 14437fi 14438 14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 14440$as_echo "$USE_NLS" >&6; } 14441 14442 14443 14444 BUILD_INCLUDED_LIBINTL=no 14445 USE_INCLUDED_LIBINTL=no 14446 14447 LIBINTL= 14448 LTLIBINTL= 14449 POSUB= 14450 14451 if test "$USE_NLS" = "yes"; then 14452 gt_use_preinstalled_gnugettext=no 14453 14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 14455$as_echo_n "checking whether included gettext is requested... " >&6; } 14456 14457# Check whether --with-included-gettext was given. 14458if test "${with_included_gettext+set}" = set; then : 14459 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 14460else 14461 nls_cv_force_use_gnu_gettext=no 14462fi 14463 14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 14465$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } 14466 14467 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 14468 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 14469 14470 14471 14472 14473 14474 14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 14476$as_echo_n "checking for GNU gettext in libc... " >&6; } 14477if ${gt_cv_func_gnugettext2_libc+:} false; then : 14478 $as_echo_n "(cached) " >&6 14479else 14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14481/* end confdefs.h. */ 14482#include <libintl.h> 14483extern int _nl_msg_cat_cntr; 14484extern int *_nl_domain_bindings; 14485int 14486main () 14487{ 14488bindtextdomain ("", ""); 14489return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings 14490 ; 14491 return 0; 14492} 14493_ACEOF 14494if ac_fn_c_try_link "$LINENO"; then : 14495 gt_cv_func_gnugettext2_libc=yes 14496else 14497 gt_cv_func_gnugettext2_libc=no 14498fi 14499rm -f core conftest.err conftest.$ac_objext \ 14500 conftest$ac_exeext conftest.$ac_ext 14501fi 14502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5 14503$as_echo "$gt_cv_func_gnugettext2_libc" >&6; } 14504 14505 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then 14506 14507 14508 14509 use_additional=yes 14510 14511 acl_save_prefix="$prefix" 14512 prefix="$acl_final_prefix" 14513 acl_save_exec_prefix="$exec_prefix" 14514 exec_prefix="$acl_final_exec_prefix" 14515 14516 eval additional_includedir=\"$includedir\" 14517 eval additional_libdir=\"$libdir\" 14518 14519 exec_prefix="$acl_save_exec_prefix" 14520 prefix="$acl_save_prefix" 14521 14522 14523# Check whether --with-libintl-prefix was given. 14524if test "${with_libintl_prefix+set}" = set; then : 14525 withval=$with_libintl_prefix; 14526 if test "X$withval" = "Xno"; then 14527 use_additional=no 14528 else 14529 if test "X$withval" = "X"; then 14530 14531 acl_save_prefix="$prefix" 14532 prefix="$acl_final_prefix" 14533 acl_save_exec_prefix="$exec_prefix" 14534 exec_prefix="$acl_final_exec_prefix" 14535 14536 eval additional_includedir=\"$includedir\" 14537 eval additional_libdir=\"$libdir\" 14538 14539 exec_prefix="$acl_save_exec_prefix" 14540 prefix="$acl_save_prefix" 14541 14542 else 14543 additional_includedir="$withval/include" 14544 additional_libdir="$withval/lib" 14545 fi 14546 fi 14547 14548fi 14549 14550 LIBINTL= 14551 LTLIBINTL= 14552 INCINTL= 14553 rpathdirs= 14554 ltrpathdirs= 14555 names_already_handled= 14556 names_next_round='intl ' 14557 while test -n "$names_next_round"; do 14558 names_this_round="$names_next_round" 14559 names_next_round= 14560 for name in $names_this_round; do 14561 already_handled= 14562 for n in $names_already_handled; do 14563 if test "$n" = "$name"; then 14564 already_handled=yes 14565 break 14566 fi 14567 done 14568 if test -z "$already_handled"; then 14569 names_already_handled="$names_already_handled $name" 14570 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 14571 eval value=\"\$HAVE_LIB$uppername\" 14572 if test -n "$value"; then 14573 if test "$value" = yes; then 14574 eval value=\"\$LIB$uppername\" 14575 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 14576 eval value=\"\$LTLIB$uppername\" 14577 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 14578 else 14579 : 14580 fi 14581 else 14582 found_dir= 14583 found_la= 14584 found_so= 14585 found_a= 14586 if test $use_additional = yes; then 14587 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 14588 found_dir="$additional_libdir" 14589 found_so="$additional_libdir/lib$name.$shlibext" 14590 if test -f "$additional_libdir/lib$name.la"; then 14591 found_la="$additional_libdir/lib$name.la" 14592 fi 14593 else 14594 if test -f "$additional_libdir/lib$name.$libext"; then 14595 found_dir="$additional_libdir" 14596 found_a="$additional_libdir/lib$name.$libext" 14597 if test -f "$additional_libdir/lib$name.la"; then 14598 found_la="$additional_libdir/lib$name.la" 14599 fi 14600 fi 14601 fi 14602 fi 14603 if test "X$found_dir" = "X"; then 14604 for x in $LDFLAGS $LTLIBINTL; do 14605 14606 acl_save_prefix="$prefix" 14607 prefix="$acl_final_prefix" 14608 acl_save_exec_prefix="$exec_prefix" 14609 exec_prefix="$acl_final_exec_prefix" 14610 eval x=\"$x\" 14611 exec_prefix="$acl_save_exec_prefix" 14612 prefix="$acl_save_prefix" 14613 14614 case "$x" in 14615 -L*) 14616 dir=`echo "X$x" | sed -e 's/^X-L//'` 14617 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 14618 found_dir="$dir" 14619 found_so="$dir/lib$name.$shlibext" 14620 if test -f "$dir/lib$name.la"; then 14621 found_la="$dir/lib$name.la" 14622 fi 14623 else 14624 if test -f "$dir/lib$name.$libext"; then 14625 found_dir="$dir" 14626 found_a="$dir/lib$name.$libext" 14627 if test -f "$dir/lib$name.la"; then 14628 found_la="$dir/lib$name.la" 14629 fi 14630 fi 14631 fi 14632 ;; 14633 esac 14634 if test "X$found_dir" != "X"; then 14635 break 14636 fi 14637 done 14638 fi 14639 if test "X$found_dir" != "X"; then 14640 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 14641 if test "X$found_so" != "X"; then 14642 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 14643 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14644 else 14645 haveit= 14646 for x in $ltrpathdirs; do 14647 if test "X$x" = "X$found_dir"; then 14648 haveit=yes 14649 break 14650 fi 14651 done 14652 if test -z "$haveit"; then 14653 ltrpathdirs="$ltrpathdirs $found_dir" 14654 fi 14655 if test "$hardcode_direct" = yes; then 14656 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14657 else 14658 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 14659 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14660 haveit= 14661 for x in $rpathdirs; do 14662 if test "X$x" = "X$found_dir"; then 14663 haveit=yes 14664 break 14665 fi 14666 done 14667 if test -z "$haveit"; then 14668 rpathdirs="$rpathdirs $found_dir" 14669 fi 14670 else 14671 haveit= 14672 for x in $LDFLAGS $LIBINTL; do 14673 14674 acl_save_prefix="$prefix" 14675 prefix="$acl_final_prefix" 14676 acl_save_exec_prefix="$exec_prefix" 14677 exec_prefix="$acl_final_exec_prefix" 14678 eval x=\"$x\" 14679 exec_prefix="$acl_save_exec_prefix" 14680 prefix="$acl_save_prefix" 14681 14682 if test "X$x" = "X-L$found_dir"; then 14683 haveit=yes 14684 break 14685 fi 14686 done 14687 if test -z "$haveit"; then 14688 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 14689 fi 14690 if test "$hardcode_minus_L" != no; then 14691 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14692 else 14693 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 14694 fi 14695 fi 14696 fi 14697 fi 14698 else 14699 if test "X$found_a" != "X"; then 14700 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 14701 else 14702 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 14703 fi 14704 fi 14705 additional_includedir= 14706 case "$found_dir" in 14707 */lib | */lib/) 14708 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 14709 additional_includedir="$basedir/include" 14710 ;; 14711 esac 14712 if test "X$additional_includedir" != "X"; then 14713 if test "X$additional_includedir" != "X/usr/include"; then 14714 haveit= 14715 if test "X$additional_includedir" = "X/usr/local/include"; then 14716 if test -n "$GCC"; then 14717 case $host_os in 14718 linux*) haveit=yes;; 14719 esac 14720 fi 14721 fi 14722 if test -z "$haveit"; then 14723 for x in $CPPFLAGS $INCINTL; do 14724 14725 acl_save_prefix="$prefix" 14726 prefix="$acl_final_prefix" 14727 acl_save_exec_prefix="$exec_prefix" 14728 exec_prefix="$acl_final_exec_prefix" 14729 eval x=\"$x\" 14730 exec_prefix="$acl_save_exec_prefix" 14731 prefix="$acl_save_prefix" 14732 14733 if test "X$x" = "X-I$additional_includedir"; then 14734 haveit=yes 14735 break 14736 fi 14737 done 14738 if test -z "$haveit"; then 14739 if test -d "$additional_includedir"; then 14740 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 14741 fi 14742 fi 14743 fi 14744 fi 14745 fi 14746 if test -n "$found_la"; then 14747 save_libdir="$libdir" 14748 case "$found_la" in 14749 */* | *\\*) . "$found_la" ;; 14750 *) . "./$found_la" ;; 14751 esac 14752 libdir="$save_libdir" 14753 for dep in $dependency_libs; do 14754 case "$dep" in 14755 -L*) 14756 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 14757 if test "X$additional_libdir" != "X/usr/lib"; then 14758 haveit= 14759 if test "X$additional_libdir" = "X/usr/local/lib"; then 14760 if test -n "$GCC"; then 14761 case $host_os in 14762 linux*) haveit=yes;; 14763 esac 14764 fi 14765 fi 14766 if test -z "$haveit"; then 14767 haveit= 14768 for x in $LDFLAGS $LIBINTL; do 14769 14770 acl_save_prefix="$prefix" 14771 prefix="$acl_final_prefix" 14772 acl_save_exec_prefix="$exec_prefix" 14773 exec_prefix="$acl_final_exec_prefix" 14774 eval x=\"$x\" 14775 exec_prefix="$acl_save_exec_prefix" 14776 prefix="$acl_save_prefix" 14777 14778 if test "X$x" = "X-L$additional_libdir"; then 14779 haveit=yes 14780 break 14781 fi 14782 done 14783 if test -z "$haveit"; then 14784 if test -d "$additional_libdir"; then 14785 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 14786 fi 14787 fi 14788 haveit= 14789 for x in $LDFLAGS $LTLIBINTL; do 14790 14791 acl_save_prefix="$prefix" 14792 prefix="$acl_final_prefix" 14793 acl_save_exec_prefix="$exec_prefix" 14794 exec_prefix="$acl_final_exec_prefix" 14795 eval x=\"$x\" 14796 exec_prefix="$acl_save_exec_prefix" 14797 prefix="$acl_save_prefix" 14798 14799 if test "X$x" = "X-L$additional_libdir"; then 14800 haveit=yes 14801 break 14802 fi 14803 done 14804 if test -z "$haveit"; then 14805 if test -d "$additional_libdir"; then 14806 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 14807 fi 14808 fi 14809 fi 14810 fi 14811 ;; 14812 -R*) 14813 dir=`echo "X$dep" | sed -e 's/^X-R//'` 14814 if test "$enable_rpath" != no; then 14815 haveit= 14816 for x in $rpathdirs; do 14817 if test "X$x" = "X$dir"; then 14818 haveit=yes 14819 break 14820 fi 14821 done 14822 if test -z "$haveit"; then 14823 rpathdirs="$rpathdirs $dir" 14824 fi 14825 haveit= 14826 for x in $ltrpathdirs; do 14827 if test "X$x" = "X$dir"; then 14828 haveit=yes 14829 break 14830 fi 14831 done 14832 if test -z "$haveit"; then 14833 ltrpathdirs="$ltrpathdirs $dir" 14834 fi 14835 fi 14836 ;; 14837 -l*) 14838 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 14839 ;; 14840 *.la) 14841 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 14842 ;; 14843 *) 14844 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 14845 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 14846 ;; 14847 esac 14848 done 14849 fi 14850 else 14851 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 14852 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 14853 fi 14854 fi 14855 fi 14856 done 14857 done 14858 if test "X$rpathdirs" != "X"; then 14859 if test -n "$hardcode_libdir_separator"; then 14860 alldirs= 14861 for found_dir in $rpathdirs; do 14862 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 14863 done 14864 acl_save_libdir="$libdir" 14865 libdir="$alldirs" 14866 eval flag=\"$hardcode_libdir_flag_spec\" 14867 libdir="$acl_save_libdir" 14868 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 14869 else 14870 for found_dir in $rpathdirs; do 14871 acl_save_libdir="$libdir" 14872 libdir="$found_dir" 14873 eval flag=\"$hardcode_libdir_flag_spec\" 14874 libdir="$acl_save_libdir" 14875 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 14876 done 14877 fi 14878 fi 14879 if test "X$ltrpathdirs" != "X"; then 14880 for found_dir in $ltrpathdirs; do 14881 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 14882 done 14883 fi 14884 14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 14886$as_echo_n "checking for GNU gettext in libintl... " >&6; } 14887if ${gt_cv_func_gnugettext2_libintl+:} false; then : 14888 $as_echo_n "(cached) " >&6 14889else 14890 gt_save_CPPFLAGS="$CPPFLAGS" 14891 CPPFLAGS="$CPPFLAGS $INCINTL" 14892 gt_save_LIBS="$LIBS" 14893 LIBS="$LIBS $LIBINTL" 14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14895/* end confdefs.h. */ 14896#include <libintl.h> 14897extern int _nl_msg_cat_cntr; 14898extern 14899#ifdef __cplusplus 14900"C" 14901#endif 14902const char *_nl_expand_alias (); 14903int 14904main () 14905{ 14906bindtextdomain ("", ""); 14907return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) 14908 ; 14909 return 0; 14910} 14911_ACEOF 14912if ac_fn_c_try_link "$LINENO"; then : 14913 gt_cv_func_gnugettext2_libintl=yes 14914else 14915 gt_cv_func_gnugettext2_libintl=no 14916fi 14917rm -f core conftest.err conftest.$ac_objext \ 14918 conftest$ac_exeext conftest.$ac_ext 14919 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then 14920 LIBS="$LIBS $LIBICONV" 14921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14922/* end confdefs.h. */ 14923#include <libintl.h> 14924extern int _nl_msg_cat_cntr; 14925extern 14926#ifdef __cplusplus 14927"C" 14928#endif 14929const char *_nl_expand_alias (); 14930int 14931main () 14932{ 14933bindtextdomain ("", ""); 14934return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) 14935 ; 14936 return 0; 14937} 14938_ACEOF 14939if ac_fn_c_try_link "$LINENO"; then : 14940 LIBINTL="$LIBINTL $LIBICONV" 14941 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 14942 gt_cv_func_gnugettext2_libintl=yes 14943 14944fi 14945rm -f core conftest.err conftest.$ac_objext \ 14946 conftest$ac_exeext conftest.$ac_ext 14947 fi 14948 CPPFLAGS="$gt_save_CPPFLAGS" 14949 LIBS="$gt_save_LIBS" 14950fi 14951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5 14952$as_echo "$gt_cv_func_gnugettext2_libintl" >&6; } 14953 fi 14954 14955 if test "$gt_cv_func_gnugettext2_libc" = "yes" \ 14956 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \ 14957 && test "$PACKAGE" != gettext; }; then 14958 gt_use_preinstalled_gnugettext=yes 14959 else 14960 LIBINTL= 14961 LTLIBINTL= 14962 INCINTL= 14963 fi 14964 14965 14966 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 14967 nls_cv_use_gnu_gettext=yes 14968 fi 14969 fi 14970 14971 if test "$nls_cv_use_gnu_gettext" = "yes"; then 14972 INTLOBJS="\$(GETTOBJS)" 14973 BUILD_INCLUDED_LIBINTL=yes 14974 USE_INCLUDED_LIBINTL=yes 14975 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 14976 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 14977 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 14978 fi 14979 14980 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 14981 || test "$nls_cv_use_gnu_gettext" = "yes"; then 14982 CATOBJEXT=.gmo 14983 fi 14984 14985 14986 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 14987 || test "$nls_cv_use_gnu_gettext" = "yes"; then 14988 14989$as_echo "#define ENABLE_NLS 1" >>confdefs.h 14990 14991 else 14992 USE_NLS=no 14993 fi 14994 fi 14995 14996 if test "$USE_NLS" = "yes"; then 14997 14998 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 14999 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then 15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 15001$as_echo_n "checking how to link with libintl... " >&6; } 15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 15003$as_echo "$LIBINTL" >&6; } 15004 15005 for element in $INCINTL; do 15006 haveit= 15007 for x in $CPPFLAGS; do 15008 15009 acl_save_prefix="$prefix" 15010 prefix="$acl_final_prefix" 15011 acl_save_exec_prefix="$exec_prefix" 15012 exec_prefix="$acl_final_exec_prefix" 15013 eval x=\"$x\" 15014 exec_prefix="$acl_save_exec_prefix" 15015 prefix="$acl_save_prefix" 15016 15017 if test "X$x" = "X$element"; then 15018 haveit=yes 15019 break 15020 fi 15021 done 15022 if test -z "$haveit"; then 15023 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 15024 fi 15025 done 15026 15027 fi 15028 15029 15030$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 15031 15032 15033$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 15034 15035 fi 15036 15037 POSUB=po 15038 fi 15039 15040 15041 if test "$PACKAGE" = gettext; then 15042 BUILD_INCLUDED_LIBINTL=yes 15043 fi 15044 15045 15046 15047 15048 15049 15050 nls_cv_header_intl= 15051 nls_cv_header_libgt= 15052 15053 DATADIRNAME=share 15054 15055 15056 INSTOBJEXT=.mo 15057 15058 15059 GENCAT=gencat 15060 15061 15062 INTL_LIBTOOL_SUFFIX_PREFIX= 15063 15064 15065 15066 INTLLIBS="$LIBINTL" 15067 15068 15069 15070 15071 15072 15073 if test $USE_INCLUDED_LIBINTL = yes; then : 15074 INCINTL=-I\${top_builddir}/intl 15075fi 15076 15077 if test x$USE_NLS = xyes; then : 15078 15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5 15080$as_echo_n "checking for autopoint... " >&6; } 15081 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'` 15082 if test -n "$autopoint_version"; then : 15083 15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5 15085$as_echo "yes ($autopoint_version)" >&6; } 15086 15087 15088else 15089 15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15091$as_echo "no" >&6; } 15092 USE_NLS=no 15093 15094fi 15095 15096fi 15097 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then : 15098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 15099 You need to install GNU gettext/gettext-tools to compile aMule with 15100 i18n support." >&5 15101$as_echo "$as_me: WARNING: 15102 You need to install GNU gettext/gettext-tools to compile aMule with 15103 i18n support." >&2;} 15104_mule_warning_12=yes 15105_mule_has_warnings=yes 15106 15107fi 15108 15109 if test ${USE_NLS:-no} = yes; then : 15110 15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5 15112$as_echo_n "checking for requested languages... " >&6; } 15113 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'` 15114 15115 if test ${enable_amule_daemon:-no} = yes; then : 15116 15117 if test -z "$LINGUAS"; then : 15118 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'` 15119else 15120 15121 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15122 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES" 15123 15124fi 15125 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'` 15126 15127else 15128 AMULE_DAEMON_MANPAGES= 15129fi 15130 15131 15132 15133 if test ${enable_amulecmd:-no} = yes; then : 15134 15135 if test -z "$LINGUAS"; then : 15136 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'` 15137else 15138 15139 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15140 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES" 15141 15142fi 15143 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'` 15144 15145else 15146 AMULECMD_MANPAGES= 15147fi 15148 15149 15150 15151 if test ${enable_webserver:-no} = yes; then : 15152 15153 if test -z "$LINGUAS"; then : 15154 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'` 15155else 15156 15157 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15158 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES" 15159 15160fi 15161 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'` 15162 15163else 15164 WEBSERVER_MANPAGES= 15165fi 15166 15167 15168 15169 if test ${enable_amule_gui:-no} = yes; then : 15170 15171 if test -z "$LINGUAS"; then : 15172 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'` 15173else 15174 15175 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15176 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES" 15177 15178fi 15179 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'` 15180 15181else 15182 AMULE_GUI_MANPAGES= 15183fi 15184 15185 15186 15187 if test ${enable_cas:-no} = yes; then : 15188 15189 if test -z "$LINGUAS"; then : 15190 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'` 15191else 15192 15193 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15194 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES" 15195 15196fi 15197 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'` 15198 15199else 15200 CAS_MANPAGES= 15201fi 15202 15203 15204 15205 if test ${enable_wxcas:-no} = yes; then : 15206 15207 if test -z "$LINGUAS"; then : 15208 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'` 15209else 15210 15211 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15212 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES" 15213 15214fi 15215 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'` 15216 15217else 15218 WXCAS_MANPAGES= 15219fi 15220 15221 15222 15223 if test ${enable_ed2k:-yes} = yes; then : 15224 15225 if test -z "$LINGUAS"; then : 15226 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'` 15227else 15228 15229 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15230 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES" 15231 15232fi 15233 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'` 15234 15235else 15236 ED2K_MANPAGES= 15237fi 15238 15239 15240 15241 if test ${enable_alc:-no} = yes; then : 15242 15243 if test -z "$LINGUAS"; then : 15244 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'` 15245else 15246 15247 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15248 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES" 15249 15250fi 15251 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'` 15252 15253else 15254 ALC_MANPAGES= 15255fi 15256 15257 15258 15259 if test ${enable_alcc:-no} = yes; then : 15260 15261 if test -z "$LINGUAS"; then : 15262 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'` 15263else 15264 15265 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15266 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES" 15267 15268fi 15269 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'` 15270 15271else 15272 ALCC_MANPAGES= 15273fi 15274 15275 15276 15277 if test ${enable_monolithic:-yes} = yes; then : 15278 15279 if test -z "$LINGUAS"; then : 15280 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'` 15281else 15282 15283 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15284 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES" 15285 15286fi 15287 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'` 15288 15289else 15290 MONOLITHIC_MANPAGES= 15291fi 15292 15293 15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5 15295$as_echo "${LINGUAS:-all}" >&6; } 15296 15297fi 15298 15299 15300if test x$USE_INCLUDED_LIBINTL = xyes; then : 15301 ac_config_commands="$ac_config_commands intl" 15302 15303fi 15304ac_ext=cpp 15305ac_cpp='$CXXCPP $CPPFLAGS' 15306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15309 15310 15311 15312# Check for bfd.h (to have proper backtraces without using wxExecute) 15313 15314 for ac_header in ansidecl.h bfd.h 15315do : 15316 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15317ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15318if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15319 cat >>confdefs.h <<_ACEOF 15320#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15321_ACEOF 15322 15323fi 15324 15325done 15326 15327 if test $ac_cv_header_ansidecl_h = yes -a $ac_cv_header_bfd_h = yes; then : 15328 15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link with bfd" >&5 15330$as_echo_n "checking for libraries required to link with bfd... " >&6; } 15331 if ${mule_cv_lib_bfd+:} false; then : 15332 $as_echo_n "(cached) " >&6 15333else 15334 15335 for bfd_ldadd in "" "-lbfd" "-liberty" "-ldl" "${LIBINTL}" "${ZLIB_LIBS}" "-lbfd -liberty" "-lbfd -ldl" "-lbfd ${LIBINTL}" "-lbfd ${ZLIB_LIBS}" "-liberty -ldl" "-liberty ${LIBINTL}" "-liberty ${ZLIB_LIBS}" "-ldl ${LIBINTL}" "-ldl ${ZLIB_LIBS}" "${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl" "-lbfd -liberty ${LIBINTL}" "-lbfd -liberty ${ZLIB_LIBS}" "-lbfd -ldl ${LIBINTL}" "-lbfd -ldl ${ZLIB_LIBS}" "-lbfd ${LIBINTL} ${ZLIB_LIBS}" "-liberty -ldl ${LIBINTL}" "-liberty -ldl ${ZLIB_LIBS}" "-liberty ${LIBINTL} ${ZLIB_LIBS}" "-ldl ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl ${LIBINTL}" "-lbfd -liberty -ldl ${ZLIB_LIBS}" "-lbfd -liberty ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -ldl ${LIBINTL} ${ZLIB_LIBS}" "-liberty -ldl ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl ${LIBINTL} ${ZLIB_LIBS}" ; do 15336 # Doing some black magic to prevent multiple tests for the same set of 15337 # libraries when any of the shell variables above expand to nothing. 15338 echo $bfd_ldadd 15339 done | sed -e 's/^ *//;s/ *$//;s/ */ /g' | ${AWK} '!x[$0]++' >conftest.bfd_ldadd 15340 while read bfd_ldadd; do 15341 mule_backup_LIBS="$LIBS" 15342 mule_backup_LDFLAGS="$LDFLAGS" 15343 LIBS="${bfd_ldadd} $LIBS" 15344 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}" 15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15346/* end confdefs.h. */ 15347 15348 15349 #include <ansidecl.h> 15350 #include <bfd.h> 15351 15352int 15353main () 15354{ 15355const char *dummy = bfd_errmsg(bfd_get_error()); 15356 ; 15357 return 0; 15358} 15359 15360_ACEOF 15361if ac_fn_cxx_try_link "$LINENO"; then : 15362 15363 LIBS="$mule_backup_LIBS" 15364 LDFLAGS="$mule_backup_LDFLAGS" 15365 mule_cv_lib_bfd="${bfd_ldadd}" 15366 15367fi 15368rm -f core conftest.err conftest.$ac_objext \ 15369 conftest$ac_exeext conftest.$ac_ext 15370 LIBS="$mule_backup_LIBS" 15371 LDFLAGS="$mule_backup_LDFLAGS" 15372 if ${mule_cv_lib_bfd+:} false; then : 15373 break 15374fi 15375 done <conftest.bfd_ldadd 15376 rm -f conftest.bfd_ldadd 15377 15378fi 15379 15380 15381 if ${mule_cv_lib_bfd+:} false; then : 15382 15383 BFD_CPPFLAGS="-DHAVE_BFD" 15384 BFD_LIBS="${mule_cv_lib_bfd}" 15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BFD_LIBS:-none required}" >&5 15386$as_echo "${BFD_LIBS:-none required}" >&6; } 15387 15388else 15389 15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15391$as_echo "not found" >&6; } 15392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 15393 Cannot link to the library containing the bfd functions." >&5 15394$as_echo "$as_me: WARNING: 15395 Cannot link to the library containing the bfd functions." >&2;} 15396_mule_warning_13=yes 15397_mule_has_warnings=yes 15398 15399 15400fi 15401 15402else 15403 15404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 15405 bfd.h not found or unusable, please install binutils development 15406 package if you are a developer or want to help testing aMule" >&5 15407$as_echo "$as_me: WARNING: 15408 bfd.h not found or unusable, please install binutils development 15409 package if you are a developer or want to help testing aMule" >&2;} 15410_mule_warning_14=yes 15411_mule_has_warnings=yes 15412 15413 15414fi 15415 15416 15417 15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5 15419$as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; } 15420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15421/* end confdefs.h. */ 15422 15423 15424 #include <execinfo.h> 15425 15426int 15427main () 15428{ 15429 15430 void *bt[1]; 15431 int n = backtrace((void **)&bt, 1); 15432 char **bt_syms = backtrace_symbols(bt, n); 15433 15434 ; 15435 return 0; 15436} 15437 15438_ACEOF 15439if ac_fn_cxx_try_link "$LINENO"; then : 15440 15441 15442 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h 15443 15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15445$as_echo "yes" >&6; } 15446 15447else 15448 15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15450$as_echo "no" >&6; } 15451 15452fi 15453rm -f core conftest.err conftest.$ac_objext \ 15454 conftest$ac_exeext conftest.$ac_ext 15455 15456 15457 15458# aMule plasma widget 15459if test ${enable_plasmamule:-no} = yes; then : 15460 15461 15462 if test -z ${QT_MOC}; then : 15463 15464 for ac_prog in moc-qt4 moc 15465do 15466 # Extract the first word of "$ac_prog", so it can be a program name with args. 15467set dummy $ac_prog; ac_word=$2 15468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15469$as_echo_n "checking for $ac_word... " >&6; } 15470if ${ac_cv_path_QT_MOC+:} false; then : 15471 $as_echo_n "(cached) " >&6 15472else 15473 case $QT_MOC in 15474 [\\/]* | ?:[\\/]*) 15475 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path. 15476 ;; 15477 *) 15478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15479for as_dir in $PATH 15480do 15481 IFS=$as_save_IFS 15482 test -z "$as_dir" && as_dir=. 15483 for ac_exec_ext in '' $ac_executable_extensions; do 15484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15485 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext" 15486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15487 break 2 15488 fi 15489done 15490 done 15491IFS=$as_save_IFS 15492 15493 ;; 15494esac 15495fi 15496QT_MOC=$ac_cv_path_QT_MOC 15497if test -n "$QT_MOC"; then 15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5 15499$as_echo "$QT_MOC" >&6; } 15500else 15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15502$as_echo "no" >&6; } 15503fi 15504 15505 15506 test -n "$QT_MOC" && break 15507done 15508 15509 if test -z ${QT_MOC}; then : 15510 15511 echo moc not found 15512 exit 1 15513 15514fi 15515 15516else 15517 15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5 15519$as_echo_n "checking for moc... " >&6; } 15520 if test -x ${QT_MOC}; then : 15521 15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5 15523$as_echo "${QT_MOC}" >&6; } 15524 15525 15526else 15527 15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 15529$as_echo "\"not found\"" >&6; } 15530 QT_MOC="not found" 15531 exit 1 15532 15533fi 15534 15535fi 15536 15537 15538 if test "${QT_MOC}" != "not found"; then : 15539 15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5 15541$as_echo_n "checking for moc version >= 4... " >&6; } 15542 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'` 15543 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then : 15544 15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5 15546$as_echo "found ${QT_MOC_VERSION}" >&6; } 15547 15548else 15549 15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5 15551$as_echo "not found ${QT_MOC_VERSION} is too old" >&6; } 15552 QT_MOC="not found" 15553 exit 1 15554 15555fi 15556 15557fi 15558 15559 if test "${QT_MOC}" = "not found"; then : 15560 enable_plasmamule=disabled 15561fi 15562 15563 if test ${enable_plasmamule:-no} = yes; then : 15564 15565 15566 15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5 15568$as_echo_n "checking for qt... " >&6; } 15569 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then : 15570 15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 15572$as_echo "found" >&6; } 15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5 15574$as_echo_n "checking for qt core cflags... " >&6; } 15575 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore` 15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5 15577$as_echo "$QT_CORE_CFLAGS" >&6; } 15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5 15579$as_echo_n "checking for qt core libs... " >&6; } 15580 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore` 15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5 15582$as_echo "$QT_CORE_LIBS" >&6; } 15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5 15584$as_echo_n "checking for qt gui cflags... " >&6; } 15585 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui` 15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5 15587$as_echo "$QT_GUI_CFLAGS" >&6; } 15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5 15589$as_echo_n "checking for qt gui libs... " >&6; } 15590 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui` 15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5 15592$as_echo "$QT_GUI_LIBS" >&6; } 15593 15594else 15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15596$as_echo "not found" >&6; } 15597 exit 1 15598 15599fi 15600 15601 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then : 15602 15603 QT_DBUS_LDFLAGS="-lQtDBus" 15604 15605 15606fi 15607 15608 15609 15610 15611 15612 15613 if test -z "${QT_CORE_CXXFLAGS}"; then : 15614 enable_plasmamule=disabled 15615fi 15616 15617fi 15618 15619 if test ${enable_plasmamule:-no} = yes; then : 15620 15621 15622 if test -z ${KDE4_CONFIG}; then : 15623 15624 # Extract the first word of "kde4-config", so it can be a program name with args. 15625set dummy kde4-config; ac_word=$2 15626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15627$as_echo_n "checking for $ac_word... " >&6; } 15628if ${ac_cv_path_KDE4_CONFIG+:} false; then : 15629 $as_echo_n "(cached) " >&6 15630else 15631 case $KDE4_CONFIG in 15632 [\\/]* | ?:[\\/]*) 15633 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path. 15634 ;; 15635 *) 15636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15637for as_dir in $PATH 15638do 15639 IFS=$as_save_IFS 15640 test -z "$as_dir" && as_dir=. 15641 for ac_exec_ext in '' $ac_executable_extensions; do 15642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15643 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15645 break 2 15646 fi 15647done 15648 done 15649IFS=$as_save_IFS 15650 15651 ;; 15652esac 15653fi 15654KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG 15655if test -n "$KDE4_CONFIG"; then 15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5 15657$as_echo "$KDE4_CONFIG" >&6; } 15658else 15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15660$as_echo "no" >&6; } 15661fi 15662 15663 15664 15665else 15666 15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5 15668$as_echo_n "checking for kde4-config... " >&6; } 15669 if test ! -x KDE4_CONFIG; then : 15670 15671 KDE4_CONFIG="not found" 15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15673$as_echo "not found" >&6; } 15674 exit 1 15675 15676fi 15677 15678fi 15679 15680 if test "${KDE4_CONFIG}" != "not found"; then : 15681 15682 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'` 15683 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then : 15684 15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5 15686$as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; } 15687 15688else 15689 15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5 15691$as_echo "at least version 4 required" >&6; } 15692 exit 1 15693 15694fi 15695 15696else 15697 15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15699$as_echo "not found" >&6; } 15700 exit 1 15701 15702fi 15703 15704 15705 if test "${KDE4_CONFIG}" = "not found"; then : 15706 enable_plasmamule=disabled 15707fi 15708 15709fi 15710 15711 if test ${enable_plasmamule:-no} = yes; then : 15712 15713 15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5 15715$as_echo_n "checking for kde4 headers... " >&6; } 15716 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include` 15717 15718 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then : 15719 15720 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then : 15721 15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5 15723$as_echo "${KDE_HEADER_DIR}" >&6; } 15724 15725else 15726 15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5 15728$as_echo "dataengine.h not found" >&6; } 15729 exit 1 15730 15731fi 15732 15733else 15734 15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5 15736$as_echo "kdirwatch.h not found" >&6; } 15737 exit 1 15738 15739fi 15740 15741 15742 if test -z ${KDE_HEADER_DIR}; then : 15743 enable_plasmamule=disabled 15744fi 15745 15746fi 15747 15748 if test ${enable_plasmamule:-no} = yes; then : 15749 15750 if true && 15751 true; then : 15752 15753 15754 15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5 15756$as_echo_n "checking for kde4 applinks Path... " >&6; } 15757 if test `echo ${prefix} | grep home | wc -l` = 1; then : 15758 15759 KDE_IN_HOME="yes" 15760 15761fi 15762 if test ${KDE_IN_HOME} = "yes"; then : 15763 15764 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1` 15765 15766else 15767 15768 if test -n ${prefix}; then : 15769 15770 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1` 15771 if test -n ${KDE_APPLNK_PATH}; then : 15772 15773 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1` 15774 15775fi 15776 15777else 15778 15779 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1` 15780 15781fi 15782 15783fi 15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5 15785$as_echo "${KDE_APPLNK_PATH}" >&6; } 15786 15787 15788 15789 15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5 15791$as_echo_n "checking for kde4 services Path... " >&6; } 15792 if test `echo ${prefix} | grep home | wc -l` = 1; then : 15793 15794 KDE_IN_HOME="yes" 15795 15796fi 15797 if test ${KDE_IN_HOME} = "yes"; then : 15798 15799 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1` 15800 15801else 15802 15803 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1` 15804 15805fi 15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5 15807$as_echo "${KDE_SERVICE_PATH}" >&6; } 15808 15809 15810 15811 15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5 15813$as_echo_n "checking for kde4 plugins Path... " >&6; } 15814 if test `echo ${prefix} | grep home | wc -l` = 1; then : 15815 15816 KDE_IN_HOME="yes" 15817 15818fi 15819 if test ${KDE_IN_HOME} = "yes"; then : 15820 15821 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1` 15822 15823else 15824 15825 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1` 15826 15827fi 15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5 15829$as_echo "${KDE_MODULE_PATH}" >&6; } 15830 15831 15832 15833 15834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5 15835$as_echo_n "checking for kde4 icons Path... " >&6; } 15836 if test `echo ${prefix} | grep home | wc -l` = 1; then : 15837 15838 KDE_IN_HOME="yes" 15839 15840fi 15841 if test ${KDE_IN_HOME} = "yes"; then : 15842 15843 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1` 15844 15845else 15846 15847 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1` 15848 15849fi 15850 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/ 15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5 15852$as_echo "${KDE_ICON_PATH}" >&6; } 15853 15854 15855 15856 15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5 15858$as_echo_n "checking for location for mime-type installation... " >&6; } 15859 if test `echo ${prefix} | grep home | wc -l` = 1; then : 15860 15861 KDE_IN_HOME="yes" 15862 15863fi 15864 if test ${KDE_IN_HOME} = "yes"; then : 15865 15866 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1` 15867 15868else 15869 15870 if test -n ${prefix}; then : 15871 15872 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1` 15873 if test -n ${KDE_MIME_PATH}; then : 15874 15875 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1` 15876 15877fi 15878 15879else 15880 15881 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1` 15882 15883fi 15884 15885fi 15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5 15887$as_echo "${KDE_MIME_PATH}" >&6; } 15888 15889 15890 15891else 15892 enable_plasmamule=disabled 15893fi 15894 15895fi 15896 15897 if test ${enable_debug:-yes} = yes; then : 15898 15899 DEBUGFLAG="-D__DEBUG__" 15900 15901 15902fi 15903 15904fi 15905 15906 15907# Check for readline library 15908if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then : 15909 15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 15911$as_echo_n "checking for a readline compatible library... " >&6; } 15912if ${vl_cv_lib_readline+:} false; then : 15913 $as_echo_n "(cached) " >&6 15914else 15915 15916 ORIG_LIBS="$LIBS" 15917 for readline_lib in readline edit editline; do 15918 for termcap_lib in "" termcap curses ncurses; do 15919 if test -z "$termcap_lib"; then 15920 TRY_LIB="-l$readline_lib" 15921 else 15922 TRY_LIB="-l$readline_lib -l$termcap_lib" 15923 fi 15924 LIBS="$ORIG_LIBS $TRY_LIB" 15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15926/* end confdefs.h. */ 15927 15928/* Override any GCC internal prototype to avoid an error. 15929 Use char because int might match the return type of a GCC 15930 builtin and then its argument prototype would still apply. */ 15931#ifdef __cplusplus 15932extern "C" 15933#endif 15934char readline (); 15935int 15936main () 15937{ 15938return readline (); 15939 ; 15940 return 0; 15941} 15942_ACEOF 15943if ac_fn_cxx_try_link "$LINENO"; then : 15944 vl_cv_lib_readline="$TRY_LIB" 15945fi 15946rm -f core conftest.err conftest.$ac_objext \ 15947 conftest$ac_exeext conftest.$ac_ext 15948 if test -n "$vl_cv_lib_readline"; then 15949 break 15950 fi 15951 done 15952 if test -n "$vl_cv_lib_readline"; then 15953 break 15954 fi 15955 done 15956 if test -z "$vl_cv_lib_readline"; then 15957 vl_cv_lib_readline="no" 15958 LIBS="$ORIG_LIBS" 15959 fi 15960 15961fi 15962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5 15963$as_echo "$vl_cv_lib_readline" >&6; } 15964 15965 if test "$vl_cv_lib_readline" != "no"; then 15966 have_readline_headers=no 15967 for ac_header in readline/readline.h readline.h 15968do : 15969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15970ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15971if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15972 cat >>confdefs.h <<_ACEOF 15973#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15974_ACEOF 15975 have_readline_headers=yes ; break 15976fi 15977 15978done 15979 15980 if test "$have_readline_headers" = "yes"; then 15981 READLINE_LIBS="$vl_cv_lib_readline" 15982 15983$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 15984 15985 else 15986 READLINE_LIBS= 15987 vl_cv_lib_readline=no 15988 fi 15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 15990$as_echo_n "checking whether readline supports history... " >&6; } 15991if ${vl_cv_lib_readline_history+:} false; then : 15992 $as_echo_n "(cached) " >&6 15993else 15994 15995 vl_cv_lib_readline_history="no" 15996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15997/* end confdefs.h. */ 15998 15999/* Override any GCC internal prototype to avoid an error. 16000 Use char because int might match the return type of a GCC 16001 builtin and then its argument prototype would still apply. */ 16002#ifdef __cplusplus 16003extern "C" 16004#endif 16005char add_history (); 16006int 16007main () 16008{ 16009return add_history (); 16010 ; 16011 return 0; 16012} 16013_ACEOF 16014if ac_fn_cxx_try_link "$LINENO"; then : 16015 vl_cv_lib_readline_history="yes" 16016fi 16017rm -f core conftest.err conftest.$ac_objext \ 16018 conftest$ac_exeext conftest.$ac_ext 16019 16020fi 16021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5 16022$as_echo "$vl_cv_lib_readline_history" >&6; } 16023 if test "$vl_cv_lib_readline_history" = "yes"; then 16024 have_readline_history_headers=no 16025 for ac_header in readline/history.h history.h 16026do : 16027 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16028ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16029if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16030 cat >>confdefs.h <<_ACEOF 16031#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16032_ACEOF 16033 have_readline_history_headers=yes ; break 16034fi 16035 16036done 16037 16038 if test "$have_readline_history_headers" = "yes"; then 16039 16040$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h 16041 16042 else 16043 vl_cv_lib_readline_history=no 16044 fi 16045 fi 16046 else 16047 READLINE_LIBS="" 16048 fi 16049 16050 16051fi 16052 16053 16054ac_ext=c 16055ac_cpp='$CPP $CPPFLAGS' 16056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16058ac_compiler_gnu=$ac_cv_c_compiler_gnu 16059 16060 16061# Check for strerror_r 16062mule_backup_CPPFLAGS="$CPPFLAGS" 16063CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600" 16064ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 16065if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 16066 ac_have_decl=1 16067else 16068 ac_have_decl=0 16069fi 16070 16071cat >>confdefs.h <<_ACEOF 16072#define HAVE_DECL_STRERROR_R $ac_have_decl 16073_ACEOF 16074 16075for ac_func in strerror_r 16076do : 16077 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 16078if test "x$ac_cv_func_strerror_r" = xyes; then : 16079 cat >>confdefs.h <<_ACEOF 16080#define HAVE_STRERROR_R 1 16081_ACEOF 16082 16083fi 16084done 16085 16086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 16087$as_echo_n "checking whether strerror_r returns char *... " >&6; } 16088if ${ac_cv_func_strerror_r_char_p+:} false; then : 16089 $as_echo_n "(cached) " >&6 16090else 16091 16092 ac_cv_func_strerror_r_char_p=no 16093 if test $ac_cv_have_decl_strerror_r = yes; then 16094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16095/* end confdefs.h. */ 16096$ac_includes_default 16097int 16098main () 16099{ 16100 16101 char buf[100]; 16102 char x = *strerror_r (0, buf, sizeof buf); 16103 char *p = strerror_r (0, buf, sizeof buf); 16104 return !p || x; 16105 16106 ; 16107 return 0; 16108} 16109_ACEOF 16110if ac_fn_c_try_compile "$LINENO"; then : 16111 ac_cv_func_strerror_r_char_p=yes 16112fi 16113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16114 else 16115 # strerror_r is not declared. Choose between 16116 # systems that have relatively inaccessible declarations for the 16117 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 16118 # former has a strerror_r that returns char*, while the latter 16119 # has a strerror_r that returns `int'. 16120 # This test should segfault on the DEC system. 16121 if test "$cross_compiling" = yes; then : 16122 : 16123else 16124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16125/* end confdefs.h. */ 16126$ac_includes_default 16127 extern char *strerror_r (); 16128int 16129main () 16130{ 16131char buf[100]; 16132 char x = *strerror_r (0, buf, sizeof buf); 16133 return ! isalpha (x); 16134 ; 16135 return 0; 16136} 16137_ACEOF 16138if ac_fn_c_try_run "$LINENO"; then : 16139 ac_cv_func_strerror_r_char_p=yes 16140fi 16141rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16142 conftest.$ac_objext conftest.beam conftest.$ac_ext 16143fi 16144 16145 fi 16146 16147fi 16148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 16149$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 16150if test $ac_cv_func_strerror_r_char_p = yes; then 16151 16152$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 16153 16154fi 16155 16156CPPFLAGS="$mule_backup_CPPFLAGS" 16157 16158 16159# Other tests 16160 16161# autoconf >= 2.60 already defines ${docdir}, but we always need it. 16162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5 16163$as_echo_n "checking for docdir... " >&6; } 16164if test -z "$docdir"; then : 16165 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}" 16166fi 16167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5 16168$as_echo "$docdir" >&6; } 16169 16170 16171# Try to set the SVN checkout-date 16172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5 16173$as_echo_n "checking for SVNDATE... " >&6; } 16174modified= 16175if test -f "$srcdir/.svn-revision"; then 16176 svndate="rev. `cat $srcdir/.svn-revision`" 16177elif test -d "$srcdir"/.svn; then 16178 svndate="rev. `svnversion "$srcdir" | ${SED} -e 'h;s/[0-9][0-9]*:\(.*\)/\1/;s/\([0-9][0-9]*\).*/\1/;x;/.*M.*/{x;s/$/+/;b;};x'`" 16179elif test -d "$srcdir"/.git; then 16180 16181 git_revision=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%h'` 16182 if test -n "`git --git-dir="$srcdir"/.git --work-tree="$srcdir" status --porcelain --untracked-files=no`" ; then 16183 modified="+" 16184 fi 16185 if test -f $srcdir/.git/svn/.metadata ; then 16186 git_sha=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%H'` 16187 svndate=`git --git-dir="$srcdir"/.git rev-list ${git_sha} | while read sha; do 16188 svn_revision=\`git --git-dir="$srcdir"/.git svn find-rev \${sha}\` 16189 if test -n "\${svn_revision}" ; then 16190 if test \${sha} = ${git_sha} ; then 16191 echo "rev. \${svn_revision}${modified}" 16192 else 16193 echo "rev. \${svn_revision}+g${git_revision}${modified}" 16194 fi 16195 break 16196 fi 16197 done` 16198 else 16199 svndate="rev. g${git_revision}${modified}" 16200 fi 16201 16202elif test -d "$srcdir"/.hg; then 16203 16204 hg_revision=`hg --cwd "$srcdir" identify --id` 16205 hg_revid=${hg_revision%+} 16206 if test ${hg_revision} != ${hg_revid} ; then 16207 modified="+" 16208 fi 16209 if test -f "$srcdir"/.hg/svn/uuid ; then 16210 svndate=`hg --cwd "$srcdir" log --follow --template='r{svnrev} {node|short}\n' | while read svn_revision hg_sha; do 16211 if test \${svn_revision} != r ; then 16212 if test \${hg_sha} = ${hg_revid} ; then 16213 echo "rev. \${svn_revision#r}${modified}" 16214 else 16215 echo "rev. \${svn_revision#r}+h${hg_revision}" 16216 fi 16217 break 16218 fi 16219 done` 16220 else 16221 svndate="rev. h${hg_revision}" 16222 fi 16223 16224fi 16225 16226 16227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5 16228$as_echo "${svndate:-None required}" >&6; } 16229if test -n "$svndate"; then : 16230 16231 16232cat >>confdefs.h <<_ACEOF 16233#define SVNDATE "$svndate" 16234_ACEOF 16235 16236 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__" 16237 16238fi 16239SVNDATE=$svndate 16240 16241 16242 16243 16244# Check whether --with-denoise-level was given. 16245if test "${with_denoise_level+set}" = set; then : 16246 withval=$with_denoise_level; 16247fi 16248 16249 16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5 16251$as_echo_n "checking denoising level... " >&6; } 16252 if test ${with_denoise_level:-5} = yes; then : 16253 with_denoise_level=5 16254fi 16255 if test ${with_denoise_level:-5} = no; then : 16256 with_denoise_level=0 16257fi 16258 if test ${with_denoise_level:-5} -gt 4; then : 16259 if test "${svndate:+set}" = "set"; then : 16260 with_denoise_level=1 16261else 16262 with_denoise_level=4 16263fi 16264fi 16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5 16266$as_echo "$with_denoise_level" >&6; } 16267 16268 ac_config_commands="$ac_config_commands denoiser" 16269 16270 16271 16272 16273# DO NOT MOVE UP... THERE'S A REASON TO BE HERE!! 16274 16275 # Check whether --enable-ccache was given. 16276if test "${enable_ccache+set}" = set; then : 16277 enableval=$enable_ccache; 16278fi 16279 16280 16281 16282 16283# Check whether --with-ccache-prefix was given. 16284if test "${with_ccache_prefix+set}" = set; then : 16285 withval=$with_ccache_prefix; 16286fi 16287 16288 16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5 16290$as_echo_n "checking whether ccache support should be added... " >&6; } 16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5 16292$as_echo "${enable_ccache:-no}" >&6; } 16293 16294 if test ${enable_ccache:-no} = yes; then : 16295 16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5 16297$as_echo_n "checking for ccache presence... " >&6; } 16298 if test -z "$with_ccache_prefix"; then : 16299 16300 ccache_full=`which ccache` 16301 with_ccache_prefix=`dirname ${ccache_full}` 16302 16303fi 16304 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then : 16305 16306 CC="$with_ccache_prefix/ccache $CC" 16307 CXX="$with_ccache_prefix/ccache $CXX" 16308 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC" 16309 16310else 16311 enable_ccache=no 16312fi 16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5 16314$as_echo "${enable_ccache:-no}" >&6; } 16315 16316fi 16317 16318 16319 16320 16321 if test x$SYS = xwin32; then 16322 SYS_WIN32_TRUE= 16323 SYS_WIN32_FALSE='#' 16324else 16325 SYS_WIN32_TRUE='#' 16326 SYS_WIN32_FALSE= 16327fi 16328 16329 if test x$SYS = xwin32 -a "$RC" != ":" -a x$WX_PORT = xmsw; then 16330 NEED_RC_TRUE= 16331 NEED_RC_FALSE='#' 16332else 16333 NEED_RC_TRUE='#' 16334 NEED_RC_FALSE= 16335fi 16336 16337 if test x$SYS = xdarwin; then 16338 NEED_CORESERVICES_TRUE= 16339 NEED_CORESERVICES_FALSE='#' 16340else 16341 NEED_CORESERVICES_TRUE='#' 16342 NEED_CORESERVICES_FALSE= 16343fi 16344 16345 if test x$USE_NLS = xyes; then 16346 COMPILE_NLS_TRUE= 16347 COMPILE_NLS_FALSE='#' 16348else 16349 COMPILE_NLS_TRUE='#' 16350 COMPILE_NLS_FALSE= 16351fi 16352 16353 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then 16354 INSTALL_SKINS_TRUE= 16355 INSTALL_SKINS_FALSE='#' 16356else 16357 INSTALL_SKINS_TRUE='#' 16358 INSTALL_SKINS_FALSE= 16359fi 16360 16361 if test ${enable_plasmamule:-no} = yes; then 16362 PLASMAMULE_TRUE= 16363 PLASMAMULE_FALSE='#' 16364else 16365 PLASMAMULE_TRUE='#' 16366 PLASMAMULE_FALSE= 16367fi 16368 16369 16370 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then 16371 COMPILE_LIB_COMMON_TRUE= 16372 COMPILE_LIB_COMMON_FALSE='#' 16373else 16374 COMPILE_LIB_COMMON_TRUE='#' 16375 COMPILE_LIB_COMMON_FALSE= 16376fi 16377 16378 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then 16379 COMPILE_LIB_EC_TRUE= 16380 COMPILE_LIB_EC_FALSE='#' 16381else 16382 COMPILE_LIB_EC_TRUE='#' 16383 COMPILE_LIB_EC_FALSE= 16384fi 16385 16386 16387ac_config_files="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile po/Makefile.in src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/plasmamule/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile" 16388 16389 16390if test x$SYS = xwin32; then : 16391 ac_config_files="$ac_config_files version.rc" 16392 16393fi 16394cat >confcache <<\_ACEOF 16395# This file is a shell script that caches the results of configure 16396# tests run on this system so they can be shared between configure 16397# scripts and configure runs, see configure's option --config-cache. 16398# It is not useful on other systems. If it contains results you don't 16399# want to keep, you may remove or edit it. 16400# 16401# config.status only pays attention to the cache file if you give it 16402# the --recheck option to rerun configure. 16403# 16404# `ac_cv_env_foo' variables (set or unset) will be overridden when 16405# loading this file, other *unset* `ac_cv_foo' will be assigned the 16406# following values. 16407 16408_ACEOF 16409 16410# The following way of writing the cache mishandles newlines in values, 16411# but we know of no workaround that is simple, portable, and efficient. 16412# So, we kill variables containing newlines. 16413# Ultrix sh set writes to stderr and can't be redirected directly, 16414# and sets the high bit in the cache file unless we assign to the vars. 16415( 16416 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16417 eval ac_val=\$$ac_var 16418 case $ac_val in #( 16419 *${as_nl}*) 16420 case $ac_var in #( 16421 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16422$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16423 esac 16424 case $ac_var in #( 16425 _ | IFS | as_nl) ;; #( 16426 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16427 *) { eval $ac_var=; unset $ac_var;} ;; 16428 esac ;; 16429 esac 16430 done 16431 16432 (set) 2>&1 | 16433 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16434 *${as_nl}ac_space=\ *) 16435 # `set' does not quote correctly, so add quotes: double-quote 16436 # substitution turns \\\\ into \\, and sed turns \\ into \. 16437 sed -n \ 16438 "s/'/'\\\\''/g; 16439 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16440 ;; #( 16441 *) 16442 # `set' quotes correctly as required by POSIX, so do not add quotes. 16443 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16444 ;; 16445 esac | 16446 sort 16447) | 16448 sed ' 16449 /^ac_cv_env_/b end 16450 t clear 16451 :clear 16452 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16453 t end 16454 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16455 :end' >>confcache 16456if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16457 if test -w "$cache_file"; then 16458 if test "x$cache_file" != "x/dev/null"; then 16459 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16460$as_echo "$as_me: updating cache $cache_file" >&6;} 16461 if test ! -f "$cache_file" || test -h "$cache_file"; then 16462 cat confcache >"$cache_file" 16463 else 16464 case $cache_file in #( 16465 */* | ?:*) 16466 mv -f confcache "$cache_file"$$ && 16467 mv -f "$cache_file"$$ "$cache_file" ;; #( 16468 *) 16469 mv -f confcache "$cache_file" ;; 16470 esac 16471 fi 16472 fi 16473 else 16474 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16475$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16476 fi 16477fi 16478rm -f confcache 16479 16480test "x$prefix" = xNONE && prefix=$ac_default_prefix 16481# Let make expand exec_prefix. 16482test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16483 16484DEFS=-DHAVE_CONFIG_H 16485 16486ac_libobjs= 16487ac_ltlibobjs= 16488U= 16489for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16490 # 1. Remove the extension, and $U if already installed. 16491 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16492 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16493 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16494 # will be set to the directory where LIBOBJS objects are built. 16495 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16496 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16497done 16498LIBOBJS=$ac_libobjs 16499 16500LTLIBOBJS=$ac_ltlibobjs 16501 16502 16503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16504$as_echo_n "checking that generated files are newer than configure... " >&6; } 16505 if test -n "$am_sleep_pid"; then 16506 # Hide warnings about reused PIDs. 16507 wait $am_sleep_pid 2>/dev/null 16508 fi 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16510$as_echo "done" >&6; } 16511 if test -n "$EXEEXT"; then 16512 am__EXEEXT_TRUE= 16513 am__EXEEXT_FALSE='#' 16514else 16515 am__EXEEXT_TRUE='#' 16516 am__EXEEXT_FALSE= 16517fi 16518 16519if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 16520 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 16521Usually this means the macro was only invoked conditionally." "$LINENO" 5 16522fi 16523if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16524 as_fn_error $? "conditional \"AMDEP\" was never defined. 16525Usually this means the macro was only invoked conditionally." "$LINENO" 5 16526fi 16527if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16528 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 16529Usually this means the macro was only invoked conditionally." "$LINENO" 5 16530fi 16531if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16532 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16533Usually this means the macro was only invoked conditionally." "$LINENO" 5 16534fi 16535if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then 16536 as_fn_error $? "conditional \"MONOLITHIC\" was never defined. 16537Usually this means the macro was only invoked conditionally." "$LINENO" 5 16538fi 16539if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then 16540 as_fn_error $? "conditional \"AMULE_DAEMON\" was never defined. 16541Usually this means the macro was only invoked conditionally." "$LINENO" 5 16542fi 16543if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then 16544 as_fn_error $? "conditional \"COMPILE_CMD\" was never defined. 16545Usually this means the macro was only invoked conditionally." "$LINENO" 5 16546fi 16547if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then 16548 as_fn_error $? "conditional \"WEB\" was never defined. 16549Usually this means the macro was only invoked conditionally." "$LINENO" 5 16550fi 16551if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then 16552 as_fn_error $? "conditional \"AMULE_GUI\" was never defined. 16553Usually this means the macro was only invoked conditionally." "$LINENO" 5 16554fi 16555if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then 16556 as_fn_error $? "conditional \"CAS\" was never defined. 16557Usually this means the macro was only invoked conditionally." "$LINENO" 5 16558fi 16559if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then 16560 as_fn_error $? "conditional \"WXCAS\" was never defined. 16561Usually this means the macro was only invoked conditionally." "$LINENO" 5 16562fi 16563if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then 16564 as_fn_error $? "conditional \"ED2K\" was never defined. 16565Usually this means the macro was only invoked conditionally." "$LINENO" 5 16566fi 16567if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then 16568 as_fn_error $? "conditional \"ALC\" was never defined. 16569Usually this means the macro was only invoked conditionally." "$LINENO" 5 16570fi 16571if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then 16572 as_fn_error $? "conditional \"ALCC\" was never defined. 16573Usually this means the macro was only invoked conditionally." "$LINENO" 5 16574fi 16575if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then 16576 as_fn_error $? "conditional \"XAS\" was never defined. 16577Usually this means the macro was only invoked conditionally." "$LINENO" 5 16578fi 16579if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then 16580 as_fn_error $? "conditional \"FILEVIEW\" was never defined. 16581Usually this means the macro was only invoked conditionally." "$LINENO" 5 16582fi 16583if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then 16584 as_fn_error $? "conditional \"SYS_WIN32\" was never defined. 16585Usually this means the macro was only invoked conditionally." "$LINENO" 5 16586fi 16587if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then 16588 as_fn_error $? "conditional \"NEED_RC\" was never defined. 16589Usually this means the macro was only invoked conditionally." "$LINENO" 5 16590fi 16591if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then 16592 as_fn_error $? "conditional \"NEED_CORESERVICES\" was never defined. 16593Usually this means the macro was only invoked conditionally." "$LINENO" 5 16594fi 16595if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then 16596 as_fn_error $? "conditional \"COMPILE_NLS\" was never defined. 16597Usually this means the macro was only invoked conditionally." "$LINENO" 5 16598fi 16599if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then 16600 as_fn_error $? "conditional \"INSTALL_SKINS\" was never defined. 16601Usually this means the macro was only invoked conditionally." "$LINENO" 5 16602fi 16603if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then 16604 as_fn_error $? "conditional \"PLASMAMULE\" was never defined. 16605Usually this means the macro was only invoked conditionally." "$LINENO" 5 16606fi 16607if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then 16608 as_fn_error $? "conditional \"COMPILE_LIB_COMMON\" was never defined. 16609Usually this means the macro was only invoked conditionally." "$LINENO" 5 16610fi 16611if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then 16612 as_fn_error $? "conditional \"COMPILE_LIB_EC\" was never defined. 16613Usually this means the macro was only invoked conditionally." "$LINENO" 5 16614fi 16615 16616: "${CONFIG_STATUS=./config.status}" 16617ac_write_fail=0 16618ac_clean_files_save=$ac_clean_files 16619ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16620{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16621$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16622as_write_fail=0 16623cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16624#! $SHELL 16625# Generated by $as_me. 16626# Run this file to recreate the current configuration. 16627# Compiler output produced by configure, useful for debugging 16628# configure, is in config.log if it exists. 16629 16630debug=false 16631ac_cs_recheck=false 16632ac_cs_silent=false 16633 16634SHELL=\${CONFIG_SHELL-$SHELL} 16635export SHELL 16636_ASEOF 16637cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16638## -------------------- ## 16639## M4sh Initialization. ## 16640## -------------------- ## 16641 16642# Be more Bourne compatible 16643DUALCASE=1; export DUALCASE # for MKS sh 16644if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16645 emulate sh 16646 NULLCMD=: 16647 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16648 # is contrary to our usage. Disable this feature. 16649 alias -g '${1+"$@"}'='"$@"' 16650 setopt NO_GLOB_SUBST 16651else 16652 case `(set -o) 2>/dev/null` in #( 16653 *posix*) : 16654 set -o posix ;; #( 16655 *) : 16656 ;; 16657esac 16658fi 16659 16660 16661as_nl=' 16662' 16663export as_nl 16664# Printing a long string crashes Solaris 7 /usr/bin/printf. 16665as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16666as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16667as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16668# Prefer a ksh shell builtin over an external printf program on Solaris, 16669# but without wasting forks for bash or zsh. 16670if test -z "$BASH_VERSION$ZSH_VERSION" \ 16671 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16672 as_echo='print -r --' 16673 as_echo_n='print -rn --' 16674elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16675 as_echo='printf %s\n' 16676 as_echo_n='printf %s' 16677else 16678 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16679 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16680 as_echo_n='/usr/ucb/echo -n' 16681 else 16682 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16683 as_echo_n_body='eval 16684 arg=$1; 16685 case $arg in #( 16686 *"$as_nl"*) 16687 expr "X$arg" : "X\\(.*\\)$as_nl"; 16688 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16689 esac; 16690 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16691 ' 16692 export as_echo_n_body 16693 as_echo_n='sh -c $as_echo_n_body as_echo' 16694 fi 16695 export as_echo_body 16696 as_echo='sh -c $as_echo_body as_echo' 16697fi 16698 16699# The user is always right. 16700if test "${PATH_SEPARATOR+set}" != set; then 16701 PATH_SEPARATOR=: 16702 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16703 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16704 PATH_SEPARATOR=';' 16705 } 16706fi 16707 16708 16709# IFS 16710# We need space, tab and new line, in precisely that order. Quoting is 16711# there to prevent editors from complaining about space-tab. 16712# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16713# splitting by setting IFS to empty value.) 16714IFS=" "" $as_nl" 16715 16716# Find who we are. Look in the path if we contain no directory separator. 16717as_myself= 16718case $0 in #(( 16719 *[\\/]* ) as_myself=$0 ;; 16720 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16721for as_dir in $PATH 16722do 16723 IFS=$as_save_IFS 16724 test -z "$as_dir" && as_dir=. 16725 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16726 done 16727IFS=$as_save_IFS 16728 16729 ;; 16730esac 16731# We did not find ourselves, most probably we were run as `sh COMMAND' 16732# in which case we are not to be found in the path. 16733if test "x$as_myself" = x; then 16734 as_myself=$0 16735fi 16736if test ! -f "$as_myself"; then 16737 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16738 exit 1 16739fi 16740 16741# Unset variables that we do not need and which cause bugs (e.g. in 16742# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16743# suppresses any "Segmentation fault" message there. '((' could 16744# trigger a bug in pdksh 5.2.14. 16745for as_var in BASH_ENV ENV MAIL MAILPATH 16746do eval test x\${$as_var+set} = xset \ 16747 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16748done 16749PS1='$ ' 16750PS2='> ' 16751PS4='+ ' 16752 16753# NLS nuisances. 16754LC_ALL=C 16755export LC_ALL 16756LANGUAGE=C 16757export LANGUAGE 16758 16759# CDPATH. 16760(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16761 16762 16763# as_fn_error STATUS ERROR [LINENO LOG_FD] 16764# ---------------------------------------- 16765# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16766# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16767# script with STATUS, using 1 if that was 0. 16768as_fn_error () 16769{ 16770 as_status=$1; test $as_status -eq 0 && as_status=1 16771 if test "$4"; then 16772 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16773 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16774 fi 16775 $as_echo "$as_me: error: $2" >&2 16776 as_fn_exit $as_status 16777} # as_fn_error 16778 16779 16780# as_fn_set_status STATUS 16781# ----------------------- 16782# Set $? to STATUS, without forking. 16783as_fn_set_status () 16784{ 16785 return $1 16786} # as_fn_set_status 16787 16788# as_fn_exit STATUS 16789# ----------------- 16790# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16791as_fn_exit () 16792{ 16793 set +e 16794 as_fn_set_status $1 16795 exit $1 16796} # as_fn_exit 16797 16798# as_fn_unset VAR 16799# --------------- 16800# Portably unset VAR. 16801as_fn_unset () 16802{ 16803 { eval $1=; unset $1;} 16804} 16805as_unset=as_fn_unset 16806# as_fn_append VAR VALUE 16807# ---------------------- 16808# Append the text in VALUE to the end of the definition contained in VAR. Take 16809# advantage of any shell optimizations that allow amortized linear growth over 16810# repeated appends, instead of the typical quadratic growth present in naive 16811# implementations. 16812if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16813 eval 'as_fn_append () 16814 { 16815 eval $1+=\$2 16816 }' 16817else 16818 as_fn_append () 16819 { 16820 eval $1=\$$1\$2 16821 } 16822fi # as_fn_append 16823 16824# as_fn_arith ARG... 16825# ------------------ 16826# Perform arithmetic evaluation on the ARGs, and store the result in the 16827# global $as_val. Take advantage of shells that can avoid forks. The arguments 16828# must be portable across $(()) and expr. 16829if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16830 eval 'as_fn_arith () 16831 { 16832 as_val=$(( $* )) 16833 }' 16834else 16835 as_fn_arith () 16836 { 16837 as_val=`expr "$@" || test $? -eq 1` 16838 } 16839fi # as_fn_arith 16840 16841 16842if expr a : '\(a\)' >/dev/null 2>&1 && 16843 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16844 as_expr=expr 16845else 16846 as_expr=false 16847fi 16848 16849if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16850 as_basename=basename 16851else 16852 as_basename=false 16853fi 16854 16855if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16856 as_dirname=dirname 16857else 16858 as_dirname=false 16859fi 16860 16861as_me=`$as_basename -- "$0" || 16862$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16863 X"$0" : 'X\(//\)$' \| \ 16864 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16865$as_echo X/"$0" | 16866 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16867 s//\1/ 16868 q 16869 } 16870 /^X\/\(\/\/\)$/{ 16871 s//\1/ 16872 q 16873 } 16874 /^X\/\(\/\).*/{ 16875 s//\1/ 16876 q 16877 } 16878 s/.*/./; q'` 16879 16880# Avoid depending upon Character Ranges. 16881as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16882as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16883as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16884as_cr_digits='0123456789' 16885as_cr_alnum=$as_cr_Letters$as_cr_digits 16886 16887ECHO_C= ECHO_N= ECHO_T= 16888case `echo -n x` in #((((( 16889-n*) 16890 case `echo 'xy\c'` in 16891 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16892 xy) ECHO_C='\c';; 16893 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16894 ECHO_T=' ';; 16895 esac;; 16896*) 16897 ECHO_N='-n';; 16898esac 16899 16900rm -f conf$$ conf$$.exe conf$$.file 16901if test -d conf$$.dir; then 16902 rm -f conf$$.dir/conf$$.file 16903else 16904 rm -f conf$$.dir 16905 mkdir conf$$.dir 2>/dev/null 16906fi 16907if (echo >conf$$.file) 2>/dev/null; then 16908 if ln -s conf$$.file conf$$ 2>/dev/null; then 16909 as_ln_s='ln -s' 16910 # ... but there are two gotchas: 16911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16913 # In both cases, we have to default to `cp -pR'. 16914 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16915 as_ln_s='cp -pR' 16916 elif ln conf$$.file conf$$ 2>/dev/null; then 16917 as_ln_s=ln 16918 else 16919 as_ln_s='cp -pR' 16920 fi 16921else 16922 as_ln_s='cp -pR' 16923fi 16924rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16925rmdir conf$$.dir 2>/dev/null 16926 16927 16928# as_fn_mkdir_p 16929# ------------- 16930# Create "$as_dir" as a directory, including parents if necessary. 16931as_fn_mkdir_p () 16932{ 16933 16934 case $as_dir in #( 16935 -*) as_dir=./$as_dir;; 16936 esac 16937 test -d "$as_dir" || eval $as_mkdir_p || { 16938 as_dirs= 16939 while :; do 16940 case $as_dir in #( 16941 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16942 *) as_qdir=$as_dir;; 16943 esac 16944 as_dirs="'$as_qdir' $as_dirs" 16945 as_dir=`$as_dirname -- "$as_dir" || 16946$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16947 X"$as_dir" : 'X\(//\)[^/]' \| \ 16948 X"$as_dir" : 'X\(//\)$' \| \ 16949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16950$as_echo X"$as_dir" | 16951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16952 s//\1/ 16953 q 16954 } 16955 /^X\(\/\/\)[^/].*/{ 16956 s//\1/ 16957 q 16958 } 16959 /^X\(\/\/\)$/{ 16960 s//\1/ 16961 q 16962 } 16963 /^X\(\/\).*/{ 16964 s//\1/ 16965 q 16966 } 16967 s/.*/./; q'` 16968 test -d "$as_dir" && break 16969 done 16970 test -z "$as_dirs" || eval "mkdir $as_dirs" 16971 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16972 16973 16974} # as_fn_mkdir_p 16975if mkdir -p . 2>/dev/null; then 16976 as_mkdir_p='mkdir -p "$as_dir"' 16977else 16978 test -d ./-p && rmdir ./-p 16979 as_mkdir_p=false 16980fi 16981 16982 16983# as_fn_executable_p FILE 16984# ----------------------- 16985# Test if FILE is an executable regular file. 16986as_fn_executable_p () 16987{ 16988 test -f "$1" && test -x "$1" 16989} # as_fn_executable_p 16990as_test_x='test -x' 16991as_executable_p=as_fn_executable_p 16992 16993# Sed expression to map a string onto a valid CPP name. 16994as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16995 16996# Sed expression to map a string onto a valid variable name. 16997as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16998 16999 17000exec 6>&1 17001## ----------------------------------- ## 17002## Main body of $CONFIG_STATUS script. ## 17003## ----------------------------------- ## 17004_ASEOF 17005test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17006 17007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17008# Save the log message, to keep $0 and so on meaningful, and to 17009# report actual input values of CONFIG_FILES etc. instead of their 17010# values after options handling. 17011ac_log=" 17012This file was extended by aMule $as_me 2.3.3, which was 17013generated by GNU Autoconf 2.69. Invocation command line was 17014 17015 CONFIG_FILES = $CONFIG_FILES 17016 CONFIG_HEADERS = $CONFIG_HEADERS 17017 CONFIG_LINKS = $CONFIG_LINKS 17018 CONFIG_COMMANDS = $CONFIG_COMMANDS 17019 $ $0 $@ 17020 17021on `(hostname || uname -n) 2>/dev/null | sed 1q` 17022" 17023 17024_ACEOF 17025 17026case $ac_config_files in *" 17027"*) set x $ac_config_files; shift; ac_config_files=$*;; 17028esac 17029 17030case $ac_config_headers in *" 17031"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17032esac 17033 17034 17035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17036# Files that config.status was made for. 17037config_files="$ac_config_files" 17038config_headers="$ac_config_headers" 17039config_commands="$ac_config_commands" 17040 17041_ACEOF 17042 17043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17044ac_cs_usage="\ 17045\`$as_me' instantiates files and other configuration actions 17046from templates according to the current configuration. Unless the files 17047and actions are specified as TAGs, all are instantiated by default. 17048 17049Usage: $0 [OPTION]... [TAG]... 17050 17051 -h, --help print this help, then exit 17052 -V, --version print version number and configuration settings, then exit 17053 --config print configuration, then exit 17054 -q, --quiet, --silent 17055 do not print progress messages 17056 -d, --debug don't remove temporary files 17057 --recheck update $as_me by reconfiguring in the same conditions 17058 --file=FILE[:TEMPLATE] 17059 instantiate the configuration file FILE 17060 --header=FILE[:TEMPLATE] 17061 instantiate the configuration header FILE 17062 17063Configuration files: 17064$config_files 17065 17066Configuration headers: 17067$config_headers 17068 17069Configuration commands: 17070$config_commands 17071 17072Report bugs to <admin@amule.org>." 17073 17074_ACEOF 17075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17076ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17077ac_cs_version="\\ 17078aMule config.status 2.3.3 17079configured by $0, generated by GNU Autoconf 2.69, 17080 with options \\"\$ac_cs_config\\" 17081 17082Copyright (C) 2012 Free Software Foundation, Inc. 17083This config.status script is free software; the Free Software Foundation 17084gives unlimited permission to copy, distribute and modify it." 17085 17086ac_pwd='$ac_pwd' 17087srcdir='$srcdir' 17088INSTALL='$INSTALL' 17089MKDIR_P='$MKDIR_P' 17090AWK='$AWK' 17091test -n "\$AWK" || AWK=awk 17092_ACEOF 17093 17094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17095# The default lists apply if the user does not specify any file. 17096ac_need_defaults=: 17097while test $# != 0 17098do 17099 case $1 in 17100 --*=?*) 17101 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17102 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17103 ac_shift=: 17104 ;; 17105 --*=) 17106 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17107 ac_optarg= 17108 ac_shift=: 17109 ;; 17110 *) 17111 ac_option=$1 17112 ac_optarg=$2 17113 ac_shift=shift 17114 ;; 17115 esac 17116 17117 case $ac_option in 17118 # Handling of the options. 17119 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17120 ac_cs_recheck=: ;; 17121 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17122 $as_echo "$ac_cs_version"; exit ;; 17123 --config | --confi | --conf | --con | --co | --c ) 17124 $as_echo "$ac_cs_config"; exit ;; 17125 --debug | --debu | --deb | --de | --d | -d ) 17126 debug=: ;; 17127 --file | --fil | --fi | --f ) 17128 $ac_shift 17129 case $ac_optarg in 17130 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17131 '') as_fn_error $? "missing file argument" ;; 17132 esac 17133 as_fn_append CONFIG_FILES " '$ac_optarg'" 17134 ac_need_defaults=false;; 17135 --header | --heade | --head | --hea ) 17136 $ac_shift 17137 case $ac_optarg in 17138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17139 esac 17140 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17141 ac_need_defaults=false;; 17142 --he | --h) 17143 # Conflict between --help and --header 17144 as_fn_error $? "ambiguous option: \`$1' 17145Try \`$0 --help' for more information.";; 17146 --help | --hel | -h ) 17147 $as_echo "$ac_cs_usage"; exit ;; 17148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17149 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17150 ac_cs_silent=: ;; 17151 17152 # This is an error. 17153 -*) as_fn_error $? "unrecognized option: \`$1' 17154Try \`$0 --help' for more information." ;; 17155 17156 *) as_fn_append ac_config_targets " $1" 17157 ac_need_defaults=false ;; 17158 17159 esac 17160 shift 17161done 17162 17163ac_configure_extra_args= 17164 17165if $ac_cs_silent; then 17166 exec 6>/dev/null 17167 ac_configure_extra_args="$ac_configure_extra_args --silent" 17168fi 17169 17170_ACEOF 17171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17172if \$ac_cs_recheck; then 17173 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17174 shift 17175 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17176 CONFIG_SHELL='$SHELL' 17177 export CONFIG_SHELL 17178 exec "\$@" 17179fi 17180 17181_ACEOF 17182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17183exec 5>>config.log 17184{ 17185 echo 17186 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17187## Running $as_me. ## 17188_ASBOX 17189 $as_echo "$ac_log" 17190} >&5 17191 17192_ACEOF 17193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17194# 17195# INIT-COMMANDS 17196# 17197AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17198# Capture the value of obsolete ALL_LINGUAS because we need it to compute 17199 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 17200 # from automake. 17201 eval 'ALL_LINGUAS''="$ALL_LINGUAS"' 17202 # Capture the value of LINGUAS because we need it to compute CATALOGS. 17203 LINGUAS="${LINGUAS-%UNSET%}" 17204 17205denoiserlevel=$with_denoise_level 17206 17207_ACEOF 17208 17209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17210 17211# Handling of arguments. 17212for ac_config_target in $ac_config_targets 17213do 17214 case $ac_config_target in 17215 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17216 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17217 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 17218 "intl") CONFIG_COMMANDS="$CONFIG_COMMANDS intl" ;; 17219 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;; 17220 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17221 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 17222 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;; 17223 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 17224 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 17225 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 17226 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;; 17227 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;; 17228 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;; 17229 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;; 17230 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;; 17231 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;; 17232 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;; 17233 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;; 17234 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;; 17235 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;; 17236 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;; 17237 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;; 17238 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;; 17239 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;; 17240 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;; 17241 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;; 17242 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;; 17243 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;; 17244 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;; 17245 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;; 17246 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;; 17247 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;; 17248 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;; 17249 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;; 17250 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;; 17251 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;; 17252 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;; 17253 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;; 17254 17255 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17256 esac 17257done 17258 17259 17260# If the user did not use the arguments to specify the items to instantiate, 17261# then the envvar interface is used. Set only those that are not. 17262# We use the long form for the default assignment because of an extremely 17263# bizarre bug on SunOS 4.1.3. 17264if $ac_need_defaults; then 17265 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17266 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17267 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17268fi 17269 17270# Have a temporary directory for convenience. Make it in the build tree 17271# simply because there is no reason against having it here, and in addition, 17272# creating and moving files from /tmp can sometimes cause problems. 17273# Hook for its removal unless debugging. 17274# Note that there is a small window in which the directory will not be cleaned: 17275# after its creation but before its name has been assigned to `$tmp'. 17276$debug || 17277{ 17278 tmp= ac_tmp= 17279 trap 'exit_status=$? 17280 : "${ac_tmp:=$tmp}" 17281 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17282' 0 17283 trap 'as_fn_exit 1' 1 2 13 15 17284} 17285# Create a (secure) tmp directory for tmp files. 17286 17287{ 17288 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17289 test -d "$tmp" 17290} || 17291{ 17292 tmp=./conf$$-$RANDOM 17293 (umask 077 && mkdir "$tmp") 17294} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17295ac_tmp=$tmp 17296 17297# Set up the scripts for CONFIG_FILES section. 17298# No need to generate them if there are no CONFIG_FILES. 17299# This happens for instance with `./config.status config.h'. 17300if test -n "$CONFIG_FILES"; then 17301 17302 17303ac_cr=`echo X | tr X '\015'` 17304# On cygwin, bash can eat \r inside `` if the user requested igncr. 17305# But we know of no other shell where ac_cr would be empty at this 17306# point, so we can use a bashism as a fallback. 17307if test "x$ac_cr" = x; then 17308 eval ac_cr=\$\'\\r\' 17309fi 17310ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17311if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17312 ac_cs_awk_cr='\\r' 17313else 17314 ac_cs_awk_cr=$ac_cr 17315fi 17316 17317echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17318_ACEOF 17319 17320 17321{ 17322 echo "cat >conf$$subs.awk <<_ACEOF" && 17323 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17324 echo "_ACEOF" 17325} >conf$$subs.sh || 17326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17327ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17328ac_delim='%!_!# ' 17329for ac_last_try in false false false false false :; do 17330 . ./conf$$subs.sh || 17331 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17332 17333 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17334 if test $ac_delim_n = $ac_delim_num; then 17335 break 17336 elif $ac_last_try; then 17337 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17338 else 17339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17340 fi 17341done 17342rm -f conf$$subs.sh 17343 17344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17345cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17346_ACEOF 17347sed -n ' 17348h 17349s/^/S["/; s/!.*/"]=/ 17350p 17351g 17352s/^[^!]*!// 17353:repl 17354t repl 17355s/'"$ac_delim"'$// 17356t delim 17357:nl 17358h 17359s/\(.\{148\}\)..*/\1/ 17360t more1 17361s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17362p 17363n 17364b repl 17365:more1 17366s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17367p 17368g 17369s/.\{148\}// 17370t nl 17371:delim 17372h 17373s/\(.\{148\}\)..*/\1/ 17374t more2 17375s/["\\]/\\&/g; s/^/"/; s/$/"/ 17376p 17377b 17378:more2 17379s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17380p 17381g 17382s/.\{148\}// 17383t delim 17384' <conf$$subs.awk | sed ' 17385/^[^""]/{ 17386 N 17387 s/\n// 17388} 17389' >>$CONFIG_STATUS || ac_write_fail=1 17390rm -f conf$$subs.awk 17391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17392_ACAWK 17393cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17394 for (key in S) S_is_set[key] = 1 17395 FS = "" 17396 17397} 17398{ 17399 line = $ 0 17400 nfields = split(line, field, "@") 17401 substed = 0 17402 len = length(field[1]) 17403 for (i = 2; i < nfields; i++) { 17404 key = field[i] 17405 keylen = length(key) 17406 if (S_is_set[key]) { 17407 value = S[key] 17408 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17409 len += length(value) + length(field[++i]) 17410 substed = 1 17411 } else 17412 len += 1 + keylen 17413 } 17414 17415 print line 17416} 17417 17418_ACAWK 17419_ACEOF 17420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17421if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17422 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17423else 17424 cat 17425fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17426 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17427_ACEOF 17428 17429# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17430# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17431# trailing colons and then remove the whole line if VPATH becomes empty 17432# (actually we leave an empty line to preserve line numbers). 17433if test "x$srcdir" = x.; then 17434 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17435h 17436s/// 17437s/^/:/ 17438s/[ ]*$/:/ 17439s/:\$(srcdir):/:/g 17440s/:\${srcdir}:/:/g 17441s/:@srcdir@:/:/g 17442s/^:*// 17443s/:*$// 17444x 17445s/\(=[ ]*\).*/\1/ 17446G 17447s/\n// 17448s/^[^=]*=[ ]*$// 17449}' 17450fi 17451 17452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17453fi # test -n "$CONFIG_FILES" 17454 17455# Set up the scripts for CONFIG_HEADERS section. 17456# No need to generate them if there are no CONFIG_HEADERS. 17457# This happens for instance with `./config.status Makefile'. 17458if test -n "$CONFIG_HEADERS"; then 17459cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17460BEGIN { 17461_ACEOF 17462 17463# Transform confdefs.h into an awk script `defines.awk', embedded as 17464# here-document in config.status, that substitutes the proper values into 17465# config.h.in to produce config.h. 17466 17467# Create a delimiter string that does not exist in confdefs.h, to ease 17468# handling of long lines. 17469ac_delim='%!_!# ' 17470for ac_last_try in false false :; do 17471 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17472 if test -z "$ac_tt"; then 17473 break 17474 elif $ac_last_try; then 17475 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17476 else 17477 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17478 fi 17479done 17480 17481# For the awk script, D is an array of macro values keyed by name, 17482# likewise P contains macro parameters if any. Preserve backslash 17483# newline sequences. 17484 17485ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17486sed -n ' 17487s/.\{148\}/&'"$ac_delim"'/g 17488t rset 17489:rset 17490s/^[ ]*#[ ]*define[ ][ ]*/ / 17491t def 17492d 17493:def 17494s/\\$// 17495t bsnl 17496s/["\\]/\\&/g 17497s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17498D["\1"]=" \3"/p 17499s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17500d 17501:bsnl 17502s/["\\]/\\&/g 17503s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17504D["\1"]=" \3\\\\\\n"\\/p 17505t cont 17506s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17507t cont 17508d 17509:cont 17510n 17511s/.\{148\}/&'"$ac_delim"'/g 17512t clear 17513:clear 17514s/\\$// 17515t bsnlc 17516s/["\\]/\\&/g; s/^/"/; s/$/"/p 17517d 17518:bsnlc 17519s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17520b cont 17521' <confdefs.h | sed ' 17522s/'"$ac_delim"'/"\\\ 17523"/g' >>$CONFIG_STATUS || ac_write_fail=1 17524 17525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17526 for (key in D) D_is_set[key] = 1 17527 FS = "" 17528} 17529/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17530 line = \$ 0 17531 split(line, arg, " ") 17532 if (arg[1] == "#") { 17533 defundef = arg[2] 17534 mac1 = arg[3] 17535 } else { 17536 defundef = substr(arg[1], 2) 17537 mac1 = arg[2] 17538 } 17539 split(mac1, mac2, "(") #) 17540 macro = mac2[1] 17541 prefix = substr(line, 1, index(line, defundef) - 1) 17542 if (D_is_set[macro]) { 17543 # Preserve the white space surrounding the "#". 17544 print prefix "define", macro P[macro] D[macro] 17545 next 17546 } else { 17547 # Replace #undef with comments. This is necessary, for example, 17548 # in the case of _POSIX_SOURCE, which is predefined and required 17549 # on some systems where configure will not decide to define it. 17550 if (defundef == "undef") { 17551 print "/*", prefix defundef, macro, "*/" 17552 next 17553 } 17554 } 17555} 17556{ print } 17557_ACAWK 17558_ACEOF 17559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17560 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17561fi # test -n "$CONFIG_HEADERS" 17562 17563 17564eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17565shift 17566for ac_tag 17567do 17568 case $ac_tag in 17569 :[FHLC]) ac_mode=$ac_tag; continue;; 17570 esac 17571 case $ac_mode$ac_tag in 17572 :[FHL]*:*);; 17573 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17574 :[FH]-) ac_tag=-:-;; 17575 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17576 esac 17577 ac_save_IFS=$IFS 17578 IFS=: 17579 set x $ac_tag 17580 IFS=$ac_save_IFS 17581 shift 17582 ac_file=$1 17583 shift 17584 17585 case $ac_mode in 17586 :L) ac_source=$1;; 17587 :[FH]) 17588 ac_file_inputs= 17589 for ac_f 17590 do 17591 case $ac_f in 17592 -) ac_f="$ac_tmp/stdin";; 17593 *) # Look for the file first in the build tree, then in the source tree 17594 # (if the path is not absolute). The absolute path cannot be DOS-style, 17595 # because $ac_f cannot contain `:'. 17596 test -f "$ac_f" || 17597 case $ac_f in 17598 [\\/$]*) false;; 17599 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17600 esac || 17601 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17602 esac 17603 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17604 as_fn_append ac_file_inputs " '$ac_f'" 17605 done 17606 17607 # Let's still pretend it is `configure' which instantiates (i.e., don't 17608 # use $as_me), people would be surprised to read: 17609 # /* config.h. Generated by config.status. */ 17610 configure_input='Generated from '` 17611 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17612 `' by configure.' 17613 if test x"$ac_file" != x-; then 17614 configure_input="$ac_file. $configure_input" 17615 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17616$as_echo "$as_me: creating $ac_file" >&6;} 17617 fi 17618 # Neutralize special characters interpreted by sed in replacement strings. 17619 case $configure_input in #( 17620 *\&* | *\|* | *\\* ) 17621 ac_sed_conf_input=`$as_echo "$configure_input" | 17622 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17623 *) ac_sed_conf_input=$configure_input;; 17624 esac 17625 17626 case $ac_tag in 17627 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17629 esac 17630 ;; 17631 esac 17632 17633 ac_dir=`$as_dirname -- "$ac_file" || 17634$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17635 X"$ac_file" : 'X\(//\)[^/]' \| \ 17636 X"$ac_file" : 'X\(//\)$' \| \ 17637 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17638$as_echo X"$ac_file" | 17639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17640 s//\1/ 17641 q 17642 } 17643 /^X\(\/\/\)[^/].*/{ 17644 s//\1/ 17645 q 17646 } 17647 /^X\(\/\/\)$/{ 17648 s//\1/ 17649 q 17650 } 17651 /^X\(\/\).*/{ 17652 s//\1/ 17653 q 17654 } 17655 s/.*/./; q'` 17656 as_dir="$ac_dir"; as_fn_mkdir_p 17657 ac_builddir=. 17658 17659case "$ac_dir" in 17660.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17661*) 17662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17663 # A ".." for each directory in $ac_dir_suffix. 17664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17665 case $ac_top_builddir_sub in 17666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17668 esac ;; 17669esac 17670ac_abs_top_builddir=$ac_pwd 17671ac_abs_builddir=$ac_pwd$ac_dir_suffix 17672# for backward compatibility: 17673ac_top_builddir=$ac_top_build_prefix 17674 17675case $srcdir in 17676 .) # We are building in place. 17677 ac_srcdir=. 17678 ac_top_srcdir=$ac_top_builddir_sub 17679 ac_abs_top_srcdir=$ac_pwd ;; 17680 [\\/]* | ?:[\\/]* ) # Absolute name. 17681 ac_srcdir=$srcdir$ac_dir_suffix; 17682 ac_top_srcdir=$srcdir 17683 ac_abs_top_srcdir=$srcdir ;; 17684 *) # Relative name. 17685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17686 ac_top_srcdir=$ac_top_build_prefix$srcdir 17687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17688esac 17689ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17690 17691 17692 case $ac_mode in 17693 :F) 17694 # 17695 # CONFIG_FILE 17696 # 17697 17698 case $INSTALL in 17699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17700 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17701 esac 17702 ac_MKDIR_P=$MKDIR_P 17703 case $MKDIR_P in 17704 [\\/$]* | ?:[\\/]* ) ;; 17705 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17706 esac 17707_ACEOF 17708 17709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17710# If the template does not know about datarootdir, expand it. 17711# FIXME: This hack should be removed a few years after 2.60. 17712ac_datarootdir_hack=; ac_datarootdir_seen= 17713ac_sed_dataroot=' 17714/datarootdir/ { 17715 p 17716 q 17717} 17718/@datadir@/p 17719/@docdir@/p 17720/@infodir@/p 17721/@localedir@/p 17722/@mandir@/p' 17723case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17724*datarootdir*) ac_datarootdir_seen=yes;; 17725*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17727$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17728_ACEOF 17729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17730 ac_datarootdir_hack=' 17731 s&@datadir@&$datadir&g 17732 s&@docdir@&$docdir&g 17733 s&@infodir@&$infodir&g 17734 s&@localedir@&$localedir&g 17735 s&@mandir@&$mandir&g 17736 s&\\\${datarootdir}&$datarootdir&g' ;; 17737esac 17738_ACEOF 17739 17740# Neutralize VPATH when `$srcdir' = `.'. 17741# Shell code in configure.ac might set extrasub. 17742# FIXME: do we really want to maintain this feature? 17743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17744ac_sed_extra="$ac_vpsub 17745$extrasub 17746_ACEOF 17747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17748:t 17749/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17750s|@configure_input@|$ac_sed_conf_input|;t t 17751s&@top_builddir@&$ac_top_builddir_sub&;t t 17752s&@top_build_prefix@&$ac_top_build_prefix&;t t 17753s&@srcdir@&$ac_srcdir&;t t 17754s&@abs_srcdir@&$ac_abs_srcdir&;t t 17755s&@top_srcdir@&$ac_top_srcdir&;t t 17756s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17757s&@builddir@&$ac_builddir&;t t 17758s&@abs_builddir@&$ac_abs_builddir&;t t 17759s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17760s&@INSTALL@&$ac_INSTALL&;t t 17761s&@MKDIR_P@&$ac_MKDIR_P&;t t 17762$ac_datarootdir_hack 17763" 17764eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17765 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17766 17767test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17768 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17769 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17770 "$ac_tmp/out"`; test -z "$ac_out"; } && 17771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17772which seems to be undefined. Please make sure it is defined" >&5 17773$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17774which seems to be undefined. Please make sure it is defined" >&2;} 17775 17776 rm -f "$ac_tmp/stdin" 17777 case $ac_file in 17778 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17779 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17780 esac \ 17781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17782 ;; 17783 :H) 17784 # 17785 # CONFIG_HEADER 17786 # 17787 if test x"$ac_file" != x-; then 17788 { 17789 $as_echo "/* $configure_input */" \ 17790 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17791 } >"$ac_tmp/config.h" \ 17792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17793 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17794 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17795$as_echo "$as_me: $ac_file is unchanged" >&6;} 17796 else 17797 rm -f "$ac_file" 17798 mv "$ac_tmp/config.h" "$ac_file" \ 17799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17800 fi 17801 else 17802 $as_echo "/* $configure_input */" \ 17803 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17804 || as_fn_error $? "could not create -" "$LINENO" 5 17805 fi 17806# Compute "$ac_file"'s index in $config_headers. 17807_am_arg="$ac_file" 17808_am_stamp_count=1 17809for _am_header in $config_headers :; do 17810 case $_am_header in 17811 $_am_arg | $_am_arg:* ) 17812 break ;; 17813 * ) 17814 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17815 esac 17816done 17817echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17818$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17819 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17820 X"$_am_arg" : 'X\(//\)$' \| \ 17821 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17822$as_echo X"$_am_arg" | 17823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17824 s//\1/ 17825 q 17826 } 17827 /^X\(\/\/\)[^/].*/{ 17828 s//\1/ 17829 q 17830 } 17831 /^X\(\/\/\)$/{ 17832 s//\1/ 17833 q 17834 } 17835 /^X\(\/\).*/{ 17836 s//\1/ 17837 q 17838 } 17839 s/.*/./; q'`/stamp-h$_am_stamp_count 17840 ;; 17841 17842 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17843$as_echo "$as_me: executing $ac_file commands" >&6;} 17844 ;; 17845 esac 17846 17847 17848 case $ac_file$ac_mode in 17849 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17850 # Older Autoconf quotes --file arguments for eval, but not when files 17851 # are listed without --file. Let's play safe and only enable the eval 17852 # if we detect the quoting. 17853 case $CONFIG_FILES in 17854 *\'*) eval set x "$CONFIG_FILES" ;; 17855 *) set x $CONFIG_FILES ;; 17856 esac 17857 shift 17858 for mf 17859 do 17860 # Strip MF so we end up with the name of the file. 17861 mf=`echo "$mf" | sed -e 's/:.*$//'` 17862 # Check whether this is an Automake generated Makefile or not. 17863 # We used to match only the files named 'Makefile.in', but 17864 # some people rename them; so instead we look at the file content. 17865 # Grep'ing the first line is not enough: some people post-process 17866 # each Makefile.in and add a new line on top of each file to say so. 17867 # Grep'ing the whole file is not good either: AIX grep has a line 17868 # limit of 2048, but all sed's we know have understand at least 4000. 17869 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17870 dirpart=`$as_dirname -- "$mf" || 17871$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17872 X"$mf" : 'X\(//\)[^/]' \| \ 17873 X"$mf" : 'X\(//\)$' \| \ 17874 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17875$as_echo X"$mf" | 17876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17877 s//\1/ 17878 q 17879 } 17880 /^X\(\/\/\)[^/].*/{ 17881 s//\1/ 17882 q 17883 } 17884 /^X\(\/\/\)$/{ 17885 s//\1/ 17886 q 17887 } 17888 /^X\(\/\).*/{ 17889 s//\1/ 17890 q 17891 } 17892 s/.*/./; q'` 17893 else 17894 continue 17895 fi 17896 # Extract the definition of DEPDIR, am__include, and am__quote 17897 # from the Makefile without running 'make'. 17898 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17899 test -z "$DEPDIR" && continue 17900 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17901 test -z "$am__include" && continue 17902 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17903 # Find all dependency output files, they are included files with 17904 # $(DEPDIR) in their names. We invoke sed twice because it is the 17905 # simplest approach to changing $(DEPDIR) to its actual value in the 17906 # expansion. 17907 for file in `sed -n " 17908 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17909 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 17910 # Make sure the directory exists. 17911 test -f "$dirpart/$file" && continue 17912 fdir=`$as_dirname -- "$file" || 17913$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17914 X"$file" : 'X\(//\)[^/]' \| \ 17915 X"$file" : 'X\(//\)$' \| \ 17916 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17917$as_echo X"$file" | 17918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17919 s//\1/ 17920 q 17921 } 17922 /^X\(\/\/\)[^/].*/{ 17923 s//\1/ 17924 q 17925 } 17926 /^X\(\/\/\)$/{ 17927 s//\1/ 17928 q 17929 } 17930 /^X\(\/\).*/{ 17931 s//\1/ 17932 q 17933 } 17934 s/.*/./; q'` 17935 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17936 # echo "creating $dirpart/$file" 17937 echo '# dummy' > "$dirpart/$file" 17938 done 17939 done 17940} 17941 ;; 17942 "default-1":C) 17943 for ac_file in $CONFIG_FILES; do 17944 # Support "outfile[:infile[:infile...]]" 17945 case "$ac_file" in 17946 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 17947 esac 17948 # PO directories have a Makefile.in generated from Makefile.in.in. 17949 case "$ac_file" in */Makefile.in) 17950 # Adjust a relative srcdir. 17951 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 17952 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 17953 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 17954 # In autoconf-2.13 it is called $ac_given_srcdir. 17955 # In autoconf-2.50 it is called $srcdir. 17956 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 17957 case "$ac_given_srcdir" in 17958 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 17959 /*) top_srcdir="$ac_given_srcdir" ;; 17960 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 17961 esac 17962 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 17963 rm -f "$ac_dir/POTFILES" 17964 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 17965 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 17966 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 17967 # on $ac_dir but don't depend on user-specified configuration 17968 # parameters. 17969 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 17970 # The LINGUAS file contains the set of available languages. 17971 if test -n "$ALL_LINGUAS"; then 17972 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 17973 fi 17974 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 17975 # Hide the ALL_LINGUAS assigment from automake. 17976 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 17977 fi 17978 case "$ac_given_srcdir" in 17979 .) srcdirpre= ;; 17980 *) srcdirpre='$(srcdir)/' ;; 17981 esac 17982 POFILES= 17983 GMOFILES= 17984 UPDATEPOFILES= 17985 DUMMYPOFILES= 17986 for lang in $ALL_LINGUAS; do 17987 POFILES="$POFILES $srcdirpre$lang.po" 17988 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 17989 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 17990 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 17991 done 17992 # CATALOGS depends on both $ac_dir and the user's LINGUAS 17993 # environment variable. 17994 INST_LINGUAS= 17995 if test -n "$ALL_LINGUAS"; then 17996 for presentlang in $ALL_LINGUAS; do 17997 useit=no 17998 if test "%UNSET%" != "$LINGUAS"; then 17999 desiredlanguages="$LINGUAS" 18000 else 18001 desiredlanguages="$ALL_LINGUAS" 18002 fi 18003 for desiredlang in $desiredlanguages; do 18004 # Use the presentlang catalog if desiredlang is 18005 # a. equal to presentlang, or 18006 # b. a variant of presentlang (because in this case, 18007 # presentlang can be used as a fallback for messages 18008 # which are not translated in the desiredlang catalog). 18009 case "$desiredlang" in 18010 "$presentlang"*) useit=yes;; 18011 esac 18012 done 18013 if test $useit = yes; then 18014 INST_LINGUAS="$INST_LINGUAS $presentlang" 18015 fi 18016 done 18017 fi 18018 CATALOGS= 18019 if test -n "$INST_LINGUAS"; then 18020 for lang in $INST_LINGUAS; do 18021 CATALOGS="$CATALOGS $lang.gmo" 18022 done 18023 fi 18024 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 18025 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 18026 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 18027 if test -f "$f"; then 18028 case "$f" in 18029 *.orig | *.bak | *~) ;; 18030 *) cat "$f" >> "$ac_dir/Makefile" ;; 18031 esac 18032 fi 18033 done 18034 fi 18035 ;; 18036 esac 18037 done ;; 18038 "intl":C) 18039 test -d intl || mkdir intl 18040 test -f intl/plural.c || cp "$srcdir"/intl/plural.c intl/ 18041 touch intl/plural.c 18042 ;; 18043 "denoiser":C) if test $denoiserlevel -gt 0; then 18044 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi 18045 sed -e "1{x;s/.*/1/;x;};/^[ ]*\$/d;/^#if /{/level.*$denoiserlevel/{x;s/^/1/;x;b0;};x;s/^/0/;x;:0;d;};/^#else/{x;/^1/{s/1/0/;b1;};s/0/1/;:1;x;d;};/^#endif/{x;s/.//;x;d;};/^[ ]*#/d;x;/^1/{x;b;};x;d" \ 18046 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed 18047 for i in `find . -name 'Makefile' -print`; do 18048 if test -n "`head -n 1 $i | grep '^#'`"; then 18049 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i 18050 fi 18051 done 18052 fi ;; 18053 18054 esac 18055done # for ac_tag 18056 18057 18058as_fn_exit 0 18059_ACEOF 18060ac_clean_files=$ac_clean_files_save 18061 18062test $ac_write_fail = 0 || 18063 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18064 18065 18066# configure is writing to config.log, and then calls config.status. 18067# config.status does its own redirection, appending to config.log. 18068# Unfortunately, on DOS this fails, as config.log is still kept open 18069# by configure, so config.status won't be able to write to it; its 18070# output is simply discarded. So we exec the FD to /dev/null, 18071# effectively closing config.log, so it can be properly (re)opened and 18072# appended to by config.status. When coming back to configure, we 18073# need to make the FD available again. 18074if test "$no_create" != yes; then 18075 ac_cs_success=: 18076 ac_config_status_args= 18077 test "$silent" = yes && 18078 ac_config_status_args="$ac_config_status_args --quiet" 18079 exec 5>/dev/null 18080 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18081 exec 5>>config.log 18082 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18083 # would make configure fail if this is the last instruction. 18084 $ac_cs_success || as_fn_exit 1 18085fi 18086if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18088$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18089fi 18090 18091 18092if test -n "$svndate"; then : 18093 SVN_REVISION=" ($svndate)" 18094else 18095 SVN_REVISION= 18096fi 18097 18098echo 18099echo 18100echo " Configure script has finished system check." 18101echo 18102echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'." 18103echo 18104echo " aMule enabled options:" 18105echo 18106echo " **** aMule Core ****" 18107echo " Prefix where aMule should be installed? ${prefix:-none}" 18108echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}" 18109echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}" 18110echo " Should aMule be compiled with profiling? ${enable_profile:-no}" 18111echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}" 18112echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}" 18113echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}" 18114echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}" 18115echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}" 18116echo " Should aMule remote gui be built? ${enable_amule_gui:-no}" 18117 18118echo 18119echo " **** aMule TextClient ****" 18120echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}" 18121echo 18122echo " **** aMule WebServer ****" 18123echo " Should aMule WebServer be built? ${enable_webserver:-no}" 18124echo 18125echo " **** aMule ED2K Links Handler ****" 18126echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}" 18127echo 18128echo " **** aMuleLinkCreator ****" 18129echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}" 18130echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}" 18131echo 18132echo " **** aMule Statistics ****" 18133echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}" 18134echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}" 18135echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}" 18136echo " Should plasmaMule plasma-applet be built? ${enable_plasmamule:-no}" 18137 18138echo 18139echo " **** General Libraries and Tools ****" 18140echo " Should ccache support be enabled? ${enable_ccache:-no}" 18141echo " Should aMule file viewer for console be built? ${enable_fileview:-no}" 18142echo " Libraries aMule will use to build:" 18143if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then : 18144 18145 wxinfo="$WX_PORT" 18146 if test $WX_DEBUG -eq 1; then : 18147 wxinfo="$wxinfo,debug" 18148fi 18149 if test $WX_SHARED -eq 1; then : 18150 wxinfo="$wxinfo,shared" 18151else 18152 wxinfo="$wxinfo,static" 18153fi 18154 echo " wxWidgets ${WX_VERSION} ($wxinfo)" 18155 18156fi 18157if test ${with_boost:-no} != no; then : 18158 if test ${with_boost:-no} = disabled; then 18159 echo " boost Not detected" 18160elif test ${boost_cv_inc_path:-yes} != yes; then 18161 echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'` (in ${boost_cv_inc_path})" 18162elif echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'`"; then 18163 : 18164fi 18165 18166fi 18167if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then : 18168 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (in ${CRYPTOPP_PREFIX})" 18169fi 18170if test ${enable_upnp:-yes} = yes; then : 18171 18172 if test -n "$with_libupnp_prefix"; then : 18173 libupnp_place=" (in $with_libupnp_prefix)" 18174fi 18175 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}" 18176 18177fi 18178if test ${enable_nls:-yes} = yes; then 18179if test x$USE_NLS = xno; then : 18180 libintl_found="Not detected" 18181else 18182 if test x$USE_INCLUDED_LIBINTL = xyes; then : 18183 libintl_found="included" 18184else 18185 libintl_found="system" 18186fi 18187fi 18188echo " libintl $libintl_found" 18189fi 18190if test ${enable_geoip:-no} = yes; then : 18191 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then : 18192 geoip_style=system 18193else 18194 geoip_style=user 18195fi 18196 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then : 18197 echo " libGeoIP ${geoip_style}" 18198fi 18199fi 18200if test ${enable_webserver:-no} = yes; then : 18201 echo " libpng ${LIBPNG_VERSION:-Not detected}" 18202fi 18203if test ${enable_cas:-no} = yes; then : 18204 echo " libgd ${GDLIB_VERSION:-Not detected}" 18205fi 18206if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then : 18207 echo " zlib ${ZLIB_VERSION:-Not detected}" 18208fi 18209if test ${enable_plasmamule:-no} = yes; then : 18210 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}" 18211echo " qt-core-libs ${QT_CORE_LIBS}" 18212echo " qt-gui-libs ${QT_GUI_LIBS}" 18213echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})" 18214echo " kde-headers ${KDE_HEADER_DIR}" 18215echo " kde-services-path ${KDE_SERVICE_PATH}" 18216echo " kde-module-path ${KDE_MODULE_PATH}" 18217echo " kde-icon-path ${KDE_ICON_PATH}" 18218echo " kde-mime-path ${KDE_MIME_PATH}" 18219echo " kde-applinks-path ${KDE_APPLNK_PATH}" 18220 18221fi 18222if test ${_mule_has_warnings:-no} = yes; then 18223echo "" 18224echo "" 18225echo " *** Warnings during configuration ***" 18226fi 18227if test ${_mule_warning_0:-no} = yes; then 18228cat <<_MULEEOT 18229 18230* gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found. 18231 Please check that gdlib-config is in your default path, check out 18232 LD_LIBRARY_PATH or equivalent variable. 18233 Or this might also be that your gdlib-config has other name. 18234 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace 18235 /usr/bin/gdlib-config with a valid path to your gdlib-config). 18236 If you use compiled packages check if you have devel pack installed. 18237 To download the latest version check http://www.boutell.com/gd for sources. 18238_MULEEOT 18239fi 18240if test ${_mule_warning_1:-no} = yes; then 18241cat <<_MULEEOT 18242 18243* libpng >= 1.2.0 not found. 18244 amuleweb will be compiled but file download progress bar images will NOT be 18245 generated. 18246_MULEEOT 18247fi 18248if test ${_mule_warning_2:-no} = yes; then 18249cat <<_MULEEOT 18250 18251* Cannot link GeoIP statically, because your linker ($LD) does not support it. 18252_MULEEOT 18253fi 18254if test ${_mule_warning_3:-no} = yes; then 18255cat <<_MULEEOT 18256 18257* GeoIP support has been disabled because the GeoIP libraries were not found 18258_MULEEOT 18259fi 18260if test ${_mule_warning_4:-no} = yes; then 18261cat <<_MULEEOT 18262 18263* GeoIP support has been disabled because the GeoIP header files were not 18264 found 18265_MULEEOT 18266fi 18267if test ${_mule_warning_5:-no} = yes; then 18268cat <<_MULEEOT 18269 18270* UPnP code has been disabled because ${libupnp_error}. 18271_MULEEOT 18272fi 18273if test ${_mule_warning_6:-no} = yes; then 18274cat <<_MULEEOT 18275 18276* Cross-compilation detected, so exception handling cannot be tested. 18277 Note that broken exception handling in your compiler may lead to unexpected 18278 crashes. 18279_MULEEOT 18280fi 18281if test ${_mule_warning_7:-no} = yes; then 18282cat <<_MULEEOT 18283 18284* Boost support has been disabled because Boost.System not found 18285_MULEEOT 18286fi 18287if test ${_mule_warning_8:-no} = yes; then 18288cat <<_MULEEOT 18289 18290* Boost support has been disabled because Boost.Asio not found 18291_MULEEOT 18292fi 18293if test ${_mule_warning_9:-no} = yes; then 18294cat <<_MULEEOT 18295 18296* Boost support has been disabled because Boost.Asio not found 18297_MULEEOT 18298fi 18299if test ${_mule_warning_10:-no} = yes; then 18300cat <<_MULEEOT 18301 18302* Boost support has been disabled because of insufficient Boost version. 18303_MULEEOT 18304fi 18305if test ${_mule_warning_11:-no} = yes; then 18306cat <<_MULEEOT 18307 18308* configure cannot check whether malloc() and realloc() are GNU libc 18309 compatible. You have to be ABSOLUTELY sure that they are, otherwise run 18310 configure with the --without-gnu-malloc switch. 18311_MULEEOT 18312fi 18313if test ${_mule_warning_12:-no} = yes; then 18314cat <<_MULEEOT 18315 18316* You need to install GNU gettext/gettext-tools to compile aMule with i18n 18317 support. 18318_MULEEOT 18319fi 18320if test ${_mule_warning_13:-no} = yes; then 18321cat <<_MULEEOT 18322 18323* Cannot link to the library containing the bfd functions. 18324_MULEEOT 18325fi 18326if test ${_mule_warning_14:-no} = yes; then 18327cat <<_MULEEOT 18328 18329* bfd.h not found or unusable, please install binutils development package if 18330 you are a developer or want to help testing aMule 18331_MULEEOT 18332fi 18333