1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for aMule SVN. 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='SVN' 584PACKAGE_STRING='aMule SVN' 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 SVN 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 SVN:";; 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 SVN 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 SVN, 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='SVN' 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 3656ac_config_headers="$ac_config_headers config.h" 3657 3658 3659 3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3661$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3662 # Check whether --enable-maintainer-mode was given. 3663if test "${enable_maintainer_mode+set}" = set; then : 3664 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3665else 3666 USE_MAINTAINER_MODE=no 3667fi 3668 3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3670$as_echo "$USE_MAINTAINER_MODE" >&6; } 3671 if test $USE_MAINTAINER_MODE = yes; then 3672 MAINTAINER_MODE_TRUE= 3673 MAINTAINER_MODE_FALSE='#' 3674else 3675 MAINTAINER_MODE_TRUE='#' 3676 MAINTAINER_MODE_FALSE= 3677fi 3678 3679 MAINT=$MAINTAINER_MODE_TRUE 3680 3681 3682 3683# Make sure we can run config.sub. 3684$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3685 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3686 3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3688$as_echo_n "checking build system type... " >&6; } 3689if ${ac_cv_build+:} false; then : 3690 $as_echo_n "(cached) " >&6 3691else 3692 ac_build_alias=$build_alias 3693test "x$ac_build_alias" = x && 3694 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3695test "x$ac_build_alias" = x && 3696 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3697ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3698 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3699 3700fi 3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3702$as_echo "$ac_cv_build" >&6; } 3703case $ac_cv_build in 3704*-*-*) ;; 3705*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3706esac 3707build=$ac_cv_build 3708ac_save_IFS=$IFS; IFS='-' 3709set x $ac_cv_build 3710shift 3711build_cpu=$1 3712build_vendor=$2 3713shift; shift 3714# Remember, the first character of IFS is used to create $*, 3715# except with old shells: 3716build_os=$* 3717IFS=$ac_save_IFS 3718case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3719 3720 3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3722$as_echo_n "checking host system type... " >&6; } 3723if ${ac_cv_host+:} false; then : 3724 $as_echo_n "(cached) " >&6 3725else 3726 if test "x$host_alias" = x; then 3727 ac_cv_host=$ac_cv_build 3728else 3729 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3730 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3731fi 3732 3733fi 3734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3735$as_echo "$ac_cv_host" >&6; } 3736case $ac_cv_host in 3737*-*-*) ;; 3738*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3739esac 3740host=$ac_cv_host 3741ac_save_IFS=$IFS; IFS='-' 3742set x $ac_cv_host 3743shift 3744host_cpu=$1 3745host_vendor=$2 3746shift; shift 3747# Remember, the first character of IFS is used to create $*, 3748# except with old shells: 3749host_os=$* 3750IFS=$ac_save_IFS 3751case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3752 3753 3754 3755 case "${host_os}" in 3756 darwin*) 3757 SYS=darwin 3758 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH"; 3759 MULELDFLAGS="-bind_at_load" 3760 touch src/Scanner.cpp 3761 ;; 3762 openbsd*) 3763 SYS=openbsd 3764 LIBS="$LIBS -L/usr/local/lib" 3765 MULECPPFLAGS="-D__OPENBSD__" 3766 ;; 3767 *cygwin* | *mingw32*) 3768 SYS=win32 3769 MULECPPFLAGS="-DNOMINMAX" 3770 ;; 3771 solaris*) 3772 SYS=solaris 3773 RESOLV_LIB="-lresolv -lnsl" 3774 LIBS="$LIBS -lrt" 3775 ;; 3776 *netbsd*) 3777 SYS=netbsd 3778 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS 3779 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it. 3780 # Still, we prepend them, instead of adding, so the user may override them. 3781 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS" 3782 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS" 3783 ;; 3784 *irix*) 3785 SYS=irix 3786 MULECPPFLAGS="-D__IRIX__" 3787 ;; 3788 *) 3789 SYS=unknown 3790 ;; 3791 esac 3792 3793 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it 3794 if test ${SYS:-unknown} != win32; then : 3795 3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5 3797$as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; } 3798 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then : 3799 3800 MULELDFLAGS="$MULELDFLAGS -pthread" 3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3802$as_echo "yes" >&6; } 3803 3804else 3805 3806 MULELDFLAGS="$MULELDFLAGS -lpthread" 3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3808$as_echo "no" >&6; } 3809 3810fi 3811 3812fi 3813 3814 3815 3816mule_backup_CFLAGS="$CFLAGS" 3817mule_backup_CXXFLAGS="$CXXFLAGS" 3818mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS" 3819ac_ext=cpp 3820ac_cpp='$CXXCPP $CPPFLAGS' 3821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3824if test -z "$CXX"; then 3825 if test -n "$CCC"; then 3826 CXX=$CCC 3827 else 3828 if test -n "$ac_tool_prefix"; then 3829 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3830 do 3831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3832set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3834$as_echo_n "checking for $ac_word... " >&6; } 3835if ${ac_cv_prog_CXX+:} false; then : 3836 $as_echo_n "(cached) " >&6 3837else 3838 if test -n "$CXX"; then 3839 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3840else 3841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3842for as_dir in $PATH 3843do 3844 IFS=$as_save_IFS 3845 test -z "$as_dir" && as_dir=. 3846 for ac_exec_ext in '' $ac_executable_extensions; do 3847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3848 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3850 break 2 3851 fi 3852done 3853 done 3854IFS=$as_save_IFS 3855 3856fi 3857fi 3858CXX=$ac_cv_prog_CXX 3859if test -n "$CXX"; then 3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3861$as_echo "$CXX" >&6; } 3862else 3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3864$as_echo "no" >&6; } 3865fi 3866 3867 3868 test -n "$CXX" && break 3869 done 3870fi 3871if test -z "$CXX"; then 3872 ac_ct_CXX=$CXX 3873 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3874do 3875 # Extract the first word of "$ac_prog", so it can be a program name with args. 3876set dummy $ac_prog; ac_word=$2 3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3878$as_echo_n "checking for $ac_word... " >&6; } 3879if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3880 $as_echo_n "(cached) " >&6 3881else 3882 if test -n "$ac_ct_CXX"; then 3883 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3884else 3885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3886for as_dir in $PATH 3887do 3888 IFS=$as_save_IFS 3889 test -z "$as_dir" && as_dir=. 3890 for ac_exec_ext in '' $ac_executable_extensions; do 3891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3892 ac_cv_prog_ac_ct_CXX="$ac_prog" 3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3894 break 2 3895 fi 3896done 3897 done 3898IFS=$as_save_IFS 3899 3900fi 3901fi 3902ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3903if test -n "$ac_ct_CXX"; then 3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3905$as_echo "$ac_ct_CXX" >&6; } 3906else 3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3908$as_echo "no" >&6; } 3909fi 3910 3911 3912 test -n "$ac_ct_CXX" && break 3913done 3914 3915 if test "x$ac_ct_CXX" = x; then 3916 CXX="g++" 3917 else 3918 case $cross_compiling:$ac_tool_warned in 3919yes:) 3920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3922ac_tool_warned=yes ;; 3923esac 3924 CXX=$ac_ct_CXX 3925 fi 3926fi 3927 3928 fi 3929fi 3930# Provide some information about the compiler. 3931$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3932set X $ac_compile 3933ac_compiler=$2 3934for ac_option in --version -v -V -qversion; do 3935 { { ac_try="$ac_compiler $ac_option >&5" 3936case "(($ac_try" in 3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3938 *) ac_try_echo=$ac_try;; 3939esac 3940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3941$as_echo "$ac_try_echo"; } >&5 3942 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3943 ac_status=$? 3944 if test -s conftest.err; then 3945 sed '10a\ 3946... rest of stderr output deleted ... 3947 10q' conftest.err >conftest.er1 3948 cat conftest.er1 >&5 3949 fi 3950 rm -f conftest.er1 conftest.err 3951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3952 test $ac_status = 0; } 3953done 3954 3955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3956/* end confdefs.h. */ 3957 3958int 3959main () 3960{ 3961 3962 ; 3963 return 0; 3964} 3965_ACEOF 3966ac_clean_files_save=$ac_clean_files 3967ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3968# Try to create an executable without -o first, disregard a.out. 3969# It will help us diagnose broken compilers, and finding out an intuition 3970# of exeext. 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 3972$as_echo_n "checking whether the C++ compiler works... " >&6; } 3973ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3974 3975# The possible output files: 3976ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3977 3978ac_rmfiles= 3979for ac_file in $ac_files 3980do 3981 case $ac_file in 3982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3983 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3984 esac 3985done 3986rm -f $ac_rmfiles 3987 3988if { { ac_try="$ac_link_default" 3989case "(($ac_try" in 3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3991 *) ac_try_echo=$ac_try;; 3992esac 3993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3994$as_echo "$ac_try_echo"; } >&5 3995 (eval "$ac_link_default") 2>&5 3996 ac_status=$? 3997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3998 test $ac_status = 0; }; then : 3999 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4000# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4001# in a Makefile. We should not override ac_cv_exeext if it was cached, 4002# so that the user can short-circuit this test for compilers unknown to 4003# Autoconf. 4004for ac_file in $ac_files '' 4005do 4006 test -f "$ac_file" || continue 4007 case $ac_file in 4008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4009 ;; 4010 [ab].out ) 4011 # We found the default executable, but exeext='' is most 4012 # certainly right. 4013 break;; 4014 *.* ) 4015 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4016 then :; else 4017 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4018 fi 4019 # We set ac_cv_exeext here because the later test for it is not 4020 # safe: cross compilers may not add the suffix if given an `-o' 4021 # argument, so we may need to know it at that point already. 4022 # Even if this section looks crufty: it has the advantage of 4023 # actually working. 4024 break;; 4025 * ) 4026 break;; 4027 esac 4028done 4029test "$ac_cv_exeext" = no && ac_cv_exeext= 4030 4031else 4032 ac_file='' 4033fi 4034if test -z "$ac_file"; then : 4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4036$as_echo "no" >&6; } 4037$as_echo "$as_me: failed program was:" >&5 4038sed 's/^/| /' conftest.$ac_ext >&5 4039 4040{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4042as_fn_error 77 "C++ compiler cannot create executables 4043See \`config.log' for more details" "$LINENO" 5; } 4044else 4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4046$as_echo "yes" >&6; } 4047fi 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 4049$as_echo_n "checking for C++ compiler default output file name... " >&6; } 4050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4051$as_echo "$ac_file" >&6; } 4052ac_exeext=$ac_cv_exeext 4053 4054rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4055ac_clean_files=$ac_clean_files_save 4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4057$as_echo_n "checking for suffix of executables... " >&6; } 4058if { { ac_try="$ac_link" 4059case "(($ac_try" in 4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4061 *) ac_try_echo=$ac_try;; 4062esac 4063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4064$as_echo "$ac_try_echo"; } >&5 4065 (eval "$ac_link") 2>&5 4066 ac_status=$? 4067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4068 test $ac_status = 0; }; then : 4069 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4070# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4071# work properly (i.e., refer to `conftest.exe'), while it won't with 4072# `rm'. 4073for ac_file in conftest.exe conftest conftest.*; do 4074 test -f "$ac_file" || continue 4075 case $ac_file in 4076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4077 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4078 break;; 4079 * ) break;; 4080 esac 4081done 4082else 4083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4085as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4086See \`config.log' for more details" "$LINENO" 5; } 4087fi 4088rm -f conftest conftest$ac_cv_exeext 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4090$as_echo "$ac_cv_exeext" >&6; } 4091 4092rm -f conftest.$ac_ext 4093EXEEXT=$ac_cv_exeext 4094ac_exeext=$EXEEXT 4095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4096/* end confdefs.h. */ 4097#include <stdio.h> 4098int 4099main () 4100{ 4101FILE *f = fopen ("conftest.out", "w"); 4102 return ferror (f) || fclose (f) != 0; 4103 4104 ; 4105 return 0; 4106} 4107_ACEOF 4108ac_clean_files="$ac_clean_files conftest.out" 4109# Check that the compiler produces executables we can run. If not, either 4110# the compiler is broken, or we cross compile. 4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4112$as_echo_n "checking whether we are cross compiling... " >&6; } 4113if test "$cross_compiling" != yes; then 4114 { { ac_try="$ac_link" 4115case "(($ac_try" in 4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4117 *) ac_try_echo=$ac_try;; 4118esac 4119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4120$as_echo "$ac_try_echo"; } >&5 4121 (eval "$ac_link") 2>&5 4122 ac_status=$? 4123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4124 test $ac_status = 0; } 4125 if { ac_try='./conftest$ac_cv_exeext' 4126 { { case "(($ac_try" in 4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4128 *) ac_try_echo=$ac_try;; 4129esac 4130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4131$as_echo "$ac_try_echo"; } >&5 4132 (eval "$ac_try") 2>&5 4133 ac_status=$? 4134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4135 test $ac_status = 0; }; }; then 4136 cross_compiling=no 4137 else 4138 if test "$cross_compiling" = maybe; then 4139 cross_compiling=yes 4140 else 4141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4143as_fn_error $? "cannot run C++ compiled programs. 4144If you meant to cross compile, use \`--host'. 4145See \`config.log' for more details" "$LINENO" 5; } 4146 fi 4147 fi 4148fi 4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4150$as_echo "$cross_compiling" >&6; } 4151 4152rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4153ac_clean_files=$ac_clean_files_save 4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4155$as_echo_n "checking for suffix of object files... " >&6; } 4156if ${ac_cv_objext+:} false; then : 4157 $as_echo_n "(cached) " >&6 4158else 4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4160/* end confdefs.h. */ 4161 4162int 4163main () 4164{ 4165 4166 ; 4167 return 0; 4168} 4169_ACEOF 4170rm -f conftest.o conftest.obj 4171if { { ac_try="$ac_compile" 4172case "(($ac_try" in 4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4174 *) ac_try_echo=$ac_try;; 4175esac 4176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4177$as_echo "$ac_try_echo"; } >&5 4178 (eval "$ac_compile") 2>&5 4179 ac_status=$? 4180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4181 test $ac_status = 0; }; then : 4182 for ac_file in conftest.o conftest.obj conftest.*; do 4183 test -f "$ac_file" || continue; 4184 case $ac_file in 4185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4186 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4187 break;; 4188 esac 4189done 4190else 4191 $as_echo "$as_me: failed program was:" >&5 4192sed 's/^/| /' conftest.$ac_ext >&5 4193 4194{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4196as_fn_error $? "cannot compute suffix of object files: cannot compile 4197See \`config.log' for more details" "$LINENO" 5; } 4198fi 4199rm -f conftest.$ac_cv_objext conftest.$ac_ext 4200fi 4201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4202$as_echo "$ac_cv_objext" >&6; } 4203OBJEXT=$ac_cv_objext 4204ac_objext=$OBJEXT 4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4206$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4207if ${ac_cv_cxx_compiler_gnu+:} false; then : 4208 $as_echo_n "(cached) " >&6 4209else 4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4211/* end confdefs.h. */ 4212 4213int 4214main () 4215{ 4216#ifndef __GNUC__ 4217 choke me 4218#endif 4219 4220 ; 4221 return 0; 4222} 4223_ACEOF 4224if ac_fn_cxx_try_compile "$LINENO"; then : 4225 ac_compiler_gnu=yes 4226else 4227 ac_compiler_gnu=no 4228fi 4229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4230ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4231 4232fi 4233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4234$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4235if test $ac_compiler_gnu = yes; then 4236 GXX=yes 4237else 4238 GXX= 4239fi 4240ac_test_CXXFLAGS=${CXXFLAGS+set} 4241ac_save_CXXFLAGS=$CXXFLAGS 4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4243$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4244if ${ac_cv_prog_cxx_g+:} false; then : 4245 $as_echo_n "(cached) " >&6 4246else 4247 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4248 ac_cxx_werror_flag=yes 4249 ac_cv_prog_cxx_g=no 4250 CXXFLAGS="-g" 4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4252/* end confdefs.h. */ 4253 4254int 4255main () 4256{ 4257 4258 ; 4259 return 0; 4260} 4261_ACEOF 4262if ac_fn_cxx_try_compile "$LINENO"; then : 4263 ac_cv_prog_cxx_g=yes 4264else 4265 CXXFLAGS="" 4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4267/* end confdefs.h. */ 4268 4269int 4270main () 4271{ 4272 4273 ; 4274 return 0; 4275} 4276_ACEOF 4277if ac_fn_cxx_try_compile "$LINENO"; then : 4278 4279else 4280 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4281 CXXFLAGS="-g" 4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4283/* end confdefs.h. */ 4284 4285int 4286main () 4287{ 4288 4289 ; 4290 return 0; 4291} 4292_ACEOF 4293if ac_fn_cxx_try_compile "$LINENO"; then : 4294 ac_cv_prog_cxx_g=yes 4295fi 4296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4297fi 4298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4299fi 4300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4301 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4302fi 4303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4304$as_echo "$ac_cv_prog_cxx_g" >&6; } 4305if test "$ac_test_CXXFLAGS" = set; then 4306 CXXFLAGS=$ac_save_CXXFLAGS 4307elif test $ac_cv_prog_cxx_g = yes; then 4308 if test "$GXX" = yes; then 4309 CXXFLAGS="-g -O2" 4310 else 4311 CXXFLAGS="-g" 4312 fi 4313else 4314 if test "$GXX" = yes; then 4315 CXXFLAGS="-O2" 4316 else 4317 CXXFLAGS= 4318 fi 4319fi 4320ac_ext=c 4321ac_cpp='$CPP $CPPFLAGS' 4322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4324ac_compiler_gnu=$ac_cv_c_compiler_gnu 4325DEPDIR="${am__leading_dot}deps" 4326 4327ac_config_commands="$ac_config_commands depfiles" 4328 4329 4330am_make=${MAKE-make} 4331cat > confinc << 'END' 4332am__doit: 4333 @echo this is the am__doit target 4334.PHONY: am__doit 4335END 4336# If we don't find an include directive, just comment out the code. 4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4338$as_echo_n "checking for style of include used by $am_make... " >&6; } 4339am__include="#" 4340am__quote= 4341_am_result=none 4342# First try GNU make style include. 4343echo "include confinc" > confmf 4344# Ignore all kinds of additional output from 'make'. 4345case `$am_make -s -f confmf 2> /dev/null` in #( 4346*the\ am__doit\ target*) 4347 am__include=include 4348 am__quote= 4349 _am_result=GNU 4350 ;; 4351esac 4352# Now try BSD make style include. 4353if test "$am__include" = "#"; then 4354 echo '.include "confinc"' > confmf 4355 case `$am_make -s -f confmf 2> /dev/null` in #( 4356 *the\ am__doit\ target*) 4357 am__include=.include 4358 am__quote="\"" 4359 _am_result=BSD 4360 ;; 4361 esac 4362fi 4363 4364 4365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4366$as_echo "$_am_result" >&6; } 4367rm -f confinc confmf 4368 4369# Check whether --enable-dependency-tracking was given. 4370if test "${enable_dependency_tracking+set}" = set; then : 4371 enableval=$enable_dependency_tracking; 4372fi 4373 4374if test "x$enable_dependency_tracking" != xno; then 4375 am_depcomp="$ac_aux_dir/depcomp" 4376 AMDEPBACKSLASH='\' 4377 am__nodep='_no' 4378fi 4379 if test "x$enable_dependency_tracking" != xno; then 4380 AMDEP_TRUE= 4381 AMDEP_FALSE='#' 4382else 4383 AMDEP_TRUE='#' 4384 AMDEP_FALSE= 4385fi 4386 4387 4388 4389depcc="$CXX" am_compiler_list= 4390 4391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4392$as_echo_n "checking dependency style of $depcc... " >&6; } 4393if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4394 $as_echo_n "(cached) " >&6 4395else 4396 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4397 # We make a subdir and do the tests there. Otherwise we can end up 4398 # making bogus files that we don't know about and never remove. For 4399 # instance it was reported that on HP-UX the gcc test will end up 4400 # making a dummy file named 'D' -- because '-MD' means "put the output 4401 # in D". 4402 rm -rf conftest.dir 4403 mkdir conftest.dir 4404 # Copy depcomp to subdir because otherwise we won't find it if we're 4405 # using a relative directory. 4406 cp "$am_depcomp" conftest.dir 4407 cd conftest.dir 4408 # We will build objects and dependencies in a subdirectory because 4409 # it helps to detect inapplicable dependency modes. For instance 4410 # both Tru64's cc and ICC support -MD to output dependencies as a 4411 # side effect of compilation, but ICC will put the dependencies in 4412 # the current directory while Tru64 will put them in the object 4413 # directory. 4414 mkdir sub 4415 4416 am_cv_CXX_dependencies_compiler_type=none 4417 if test "$am_compiler_list" = ""; then 4418 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4419 fi 4420 am__universal=false 4421 case " $depcc " in #( 4422 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4423 esac 4424 4425 for depmode in $am_compiler_list; do 4426 # Setup a source with many dependencies, because some compilers 4427 # like to wrap large dependency lists on column 80 (with \), and 4428 # we should not choose a depcomp mode which is confused by this. 4429 # 4430 # We need to recreate these files for each test, as the compiler may 4431 # overwrite some of them when testing with obscure command lines. 4432 # This happens at least with the AIX C compiler. 4433 : > sub/conftest.c 4434 for i in 1 2 3 4 5 6; do 4435 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4436 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4437 # Solaris 10 /bin/sh. 4438 echo '/* dummy */' > sub/conftst$i.h 4439 done 4440 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4441 4442 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4443 # mode. It turns out that the SunPro C++ compiler does not properly 4444 # handle '-M -o', and we need to detect this. Also, some Intel 4445 # versions had trouble with output in subdirs. 4446 am__obj=sub/conftest.${OBJEXT-o} 4447 am__minus_obj="-o $am__obj" 4448 case $depmode in 4449 gcc) 4450 # This depmode causes a compiler race in universal mode. 4451 test "$am__universal" = false || continue 4452 ;; 4453 nosideeffect) 4454 # After this tag, mechanisms are not by side-effect, so they'll 4455 # only be used when explicitly requested. 4456 if test "x$enable_dependency_tracking" = xyes; then 4457 continue 4458 else 4459 break 4460 fi 4461 ;; 4462 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4463 # This compiler won't grok '-c -o', but also, the minuso test has 4464 # not run yet. These depmodes are late enough in the game, and 4465 # so weak that their functioning should not be impacted. 4466 am__obj=conftest.${OBJEXT-o} 4467 am__minus_obj= 4468 ;; 4469 none) break ;; 4470 esac 4471 if depmode=$depmode \ 4472 source=sub/conftest.c object=$am__obj \ 4473 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4474 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4475 >/dev/null 2>conftest.err && 4476 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4477 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4478 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4479 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4480 # icc doesn't choke on unknown options, it will just issue warnings 4481 # or remarks (even with -Werror). So we grep stderr for any message 4482 # that says an option was ignored or not supported. 4483 # When given -MP, icc 7.0 and 7.1 complain thusly: 4484 # icc: Command line warning: ignoring option '-M'; no argument required 4485 # The diagnosis changed in icc 8.0: 4486 # icc: Command line remark: option '-MP' not supported 4487 if (grep 'ignoring option' conftest.err || 4488 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4489 am_cv_CXX_dependencies_compiler_type=$depmode 4490 break 4491 fi 4492 fi 4493 done 4494 4495 cd .. 4496 rm -rf conftest.dir 4497else 4498 am_cv_CXX_dependencies_compiler_type=none 4499fi 4500 4501fi 4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4503$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4504CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4505 4506 if 4507 test "x$enable_dependency_tracking" != xno \ 4508 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4509 am__fastdepCXX_TRUE= 4510 am__fastdepCXX_FALSE='#' 4511else 4512 am__fastdepCXX_TRUE='#' 4513 am__fastdepCXX_FALSE= 4514fi 4515 4516 4517ac_ext=cpp 4518ac_cpp='$CXXCPP $CPPFLAGS' 4519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 4523$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 4524if test -z "$CXXCPP"; then 4525 if ${ac_cv_prog_CXXCPP+:} false; then : 4526 $as_echo_n "(cached) " >&6 4527else 4528 # Double quotes because CXXCPP needs to be expanded 4529 for CXXCPP in "$CXX -E" "/lib/cpp" 4530 do 4531 ac_preproc_ok=false 4532for ac_cxx_preproc_warn_flag in '' yes 4533do 4534 # Use a header file that comes with gcc, so configuring glibc 4535 # with a fresh cross-compiler works. 4536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4537 # <limits.h> exists even on freestanding compilers. 4538 # On the NeXT, cc -E runs the code through the compiler's parser, 4539 # not just through cpp. "Syntax error" is here to catch this case. 4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4541/* end confdefs.h. */ 4542#ifdef __STDC__ 4543# include <limits.h> 4544#else 4545# include <assert.h> 4546#endif 4547 Syntax error 4548_ACEOF 4549if ac_fn_cxx_try_cpp "$LINENO"; then : 4550 4551else 4552 # Broken: fails on valid input. 4553continue 4554fi 4555rm -f conftest.err conftest.i conftest.$ac_ext 4556 4557 # OK, works on sane cases. Now check whether nonexistent headers 4558 # can be detected and how. 4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4560/* end confdefs.h. */ 4561#include <ac_nonexistent.h> 4562_ACEOF 4563if ac_fn_cxx_try_cpp "$LINENO"; then : 4564 # Broken: success on invalid input. 4565continue 4566else 4567 # Passes both tests. 4568ac_preproc_ok=: 4569break 4570fi 4571rm -f conftest.err conftest.i conftest.$ac_ext 4572 4573done 4574# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4575rm -f conftest.i conftest.err conftest.$ac_ext 4576if $ac_preproc_ok; then : 4577 break 4578fi 4579 4580 done 4581 ac_cv_prog_CXXCPP=$CXXCPP 4582 4583fi 4584 CXXCPP=$ac_cv_prog_CXXCPP 4585else 4586 ac_cv_prog_CXXCPP=$CXXCPP 4587fi 4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 4589$as_echo "$CXXCPP" >&6; } 4590ac_preproc_ok=false 4591for ac_cxx_preproc_warn_flag in '' yes 4592do 4593 # Use a header file that comes with gcc, so configuring glibc 4594 # with a fresh cross-compiler works. 4595 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4596 # <limits.h> exists even on freestanding compilers. 4597 # On the NeXT, cc -E runs the code through the compiler's parser, 4598 # not just through cpp. "Syntax error" is here to catch this case. 4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4600/* end confdefs.h. */ 4601#ifdef __STDC__ 4602# include <limits.h> 4603#else 4604# include <assert.h> 4605#endif 4606 Syntax error 4607_ACEOF 4608if ac_fn_cxx_try_cpp "$LINENO"; then : 4609 4610else 4611 # Broken: fails on valid input. 4612continue 4613fi 4614rm -f conftest.err conftest.i conftest.$ac_ext 4615 4616 # OK, works on sane cases. Now check whether nonexistent headers 4617 # can be detected and how. 4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4619/* end confdefs.h. */ 4620#include <ac_nonexistent.h> 4621_ACEOF 4622if ac_fn_cxx_try_cpp "$LINENO"; then : 4623 # Broken: success on invalid input. 4624continue 4625else 4626 # Passes both tests. 4627ac_preproc_ok=: 4628break 4629fi 4630rm -f conftest.err conftest.i conftest.$ac_ext 4631 4632done 4633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4634rm -f conftest.i conftest.err conftest.$ac_ext 4635if $ac_preproc_ok; then : 4636 4637else 4638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4640as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 4641See \`config.log' for more details" "$LINENO" 5; } 4642fi 4643 4644ac_ext=c 4645ac_cpp='$CPP $CPPFLAGS' 4646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4648ac_compiler_gnu=$ac_cv_c_compiler_gnu 4649 4650ac_ext=c 4651ac_cpp='$CPP $CPPFLAGS' 4652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4654ac_compiler_gnu=$ac_cv_c_compiler_gnu 4655if test -n "$ac_tool_prefix"; then 4656 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4657set dummy ${ac_tool_prefix}gcc; ac_word=$2 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4659$as_echo_n "checking for $ac_word... " >&6; } 4660if ${ac_cv_prog_CC+:} false; then : 4661 $as_echo_n "(cached) " >&6 4662else 4663 if test -n "$CC"; then 4664 ac_cv_prog_CC="$CC" # Let the user override the test. 4665else 4666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4667for as_dir in $PATH 4668do 4669 IFS=$as_save_IFS 4670 test -z "$as_dir" && as_dir=. 4671 for ac_exec_ext in '' $ac_executable_extensions; do 4672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4673 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4675 break 2 4676 fi 4677done 4678 done 4679IFS=$as_save_IFS 4680 4681fi 4682fi 4683CC=$ac_cv_prog_CC 4684if test -n "$CC"; then 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4686$as_echo "$CC" >&6; } 4687else 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4689$as_echo "no" >&6; } 4690fi 4691 4692 4693fi 4694if test -z "$ac_cv_prog_CC"; then 4695 ac_ct_CC=$CC 4696 # Extract the first word of "gcc", so it can be a program name with args. 4697set dummy gcc; ac_word=$2 4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4699$as_echo_n "checking for $ac_word... " >&6; } 4700if ${ac_cv_prog_ac_ct_CC+:} false; then : 4701 $as_echo_n "(cached) " >&6 4702else 4703 if test -n "$ac_ct_CC"; then 4704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4705else 4706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4707for as_dir in $PATH 4708do 4709 IFS=$as_save_IFS 4710 test -z "$as_dir" && as_dir=. 4711 for ac_exec_ext in '' $ac_executable_extensions; do 4712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4713 ac_cv_prog_ac_ct_CC="gcc" 4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4715 break 2 4716 fi 4717done 4718 done 4719IFS=$as_save_IFS 4720 4721fi 4722fi 4723ac_ct_CC=$ac_cv_prog_ac_ct_CC 4724if test -n "$ac_ct_CC"; then 4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4726$as_echo "$ac_ct_CC" >&6; } 4727else 4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4729$as_echo "no" >&6; } 4730fi 4731 4732 if test "x$ac_ct_CC" = x; then 4733 CC="" 4734 else 4735 case $cross_compiling:$ac_tool_warned in 4736yes:) 4737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4739ac_tool_warned=yes ;; 4740esac 4741 CC=$ac_ct_CC 4742 fi 4743else 4744 CC="$ac_cv_prog_CC" 4745fi 4746 4747if test -z "$CC"; then 4748 if test -n "$ac_tool_prefix"; then 4749 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4750set dummy ${ac_tool_prefix}cc; ac_word=$2 4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4752$as_echo_n "checking for $ac_word... " >&6; } 4753if ${ac_cv_prog_CC+:} false; then : 4754 $as_echo_n "(cached) " >&6 4755else 4756 if test -n "$CC"; then 4757 ac_cv_prog_CC="$CC" # Let the user override the test. 4758else 4759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4760for as_dir in $PATH 4761do 4762 IFS=$as_save_IFS 4763 test -z "$as_dir" && as_dir=. 4764 for ac_exec_ext in '' $ac_executable_extensions; do 4765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4766 ac_cv_prog_CC="${ac_tool_prefix}cc" 4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4768 break 2 4769 fi 4770done 4771 done 4772IFS=$as_save_IFS 4773 4774fi 4775fi 4776CC=$ac_cv_prog_CC 4777if test -n "$CC"; then 4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4779$as_echo "$CC" >&6; } 4780else 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4782$as_echo "no" >&6; } 4783fi 4784 4785 4786 fi 4787fi 4788if test -z "$CC"; then 4789 # Extract the first word of "cc", so it can be a program name with args. 4790set dummy cc; ac_word=$2 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4792$as_echo_n "checking for $ac_word... " >&6; } 4793if ${ac_cv_prog_CC+:} false; then : 4794 $as_echo_n "(cached) " >&6 4795else 4796 if test -n "$CC"; then 4797 ac_cv_prog_CC="$CC" # Let the user override the test. 4798else 4799 ac_prog_rejected=no 4800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4801for as_dir in $PATH 4802do 4803 IFS=$as_save_IFS 4804 test -z "$as_dir" && as_dir=. 4805 for ac_exec_ext in '' $ac_executable_extensions; do 4806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4808 ac_prog_rejected=yes 4809 continue 4810 fi 4811 ac_cv_prog_CC="cc" 4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4813 break 2 4814 fi 4815done 4816 done 4817IFS=$as_save_IFS 4818 4819if test $ac_prog_rejected = yes; then 4820 # We found a bogon in the path, so make sure we never use it. 4821 set dummy $ac_cv_prog_CC 4822 shift 4823 if test $# != 0; then 4824 # We chose a different compiler from the bogus one. 4825 # However, it has the same basename, so the bogon will be chosen 4826 # first if we set CC to just the basename; use the full file name. 4827 shift 4828 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4829 fi 4830fi 4831fi 4832fi 4833CC=$ac_cv_prog_CC 4834if test -n "$CC"; then 4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4836$as_echo "$CC" >&6; } 4837else 4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4839$as_echo "no" >&6; } 4840fi 4841 4842 4843fi 4844if test -z "$CC"; then 4845 if test -n "$ac_tool_prefix"; then 4846 for ac_prog in cl.exe 4847 do 4848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4849set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4851$as_echo_n "checking for $ac_word... " >&6; } 4852if ${ac_cv_prog_CC+:} false; then : 4853 $as_echo_n "(cached) " >&6 4854else 4855 if test -n "$CC"; then 4856 ac_cv_prog_CC="$CC" # Let the user override the test. 4857else 4858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4859for as_dir in $PATH 4860do 4861 IFS=$as_save_IFS 4862 test -z "$as_dir" && as_dir=. 4863 for ac_exec_ext in '' $ac_executable_extensions; do 4864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4865 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4867 break 2 4868 fi 4869done 4870 done 4871IFS=$as_save_IFS 4872 4873fi 4874fi 4875CC=$ac_cv_prog_CC 4876if test -n "$CC"; then 4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4878$as_echo "$CC" >&6; } 4879else 4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4881$as_echo "no" >&6; } 4882fi 4883 4884 4885 test -n "$CC" && break 4886 done 4887fi 4888if test -z "$CC"; then 4889 ac_ct_CC=$CC 4890 for ac_prog in cl.exe 4891do 4892 # Extract the first word of "$ac_prog", so it can be a program name with args. 4893set dummy $ac_prog; ac_word=$2 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4895$as_echo_n "checking for $ac_word... " >&6; } 4896if ${ac_cv_prog_ac_ct_CC+:} false; then : 4897 $as_echo_n "(cached) " >&6 4898else 4899 if test -n "$ac_ct_CC"; then 4900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4901else 4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4903for as_dir in $PATH 4904do 4905 IFS=$as_save_IFS 4906 test -z "$as_dir" && as_dir=. 4907 for ac_exec_ext in '' $ac_executable_extensions; do 4908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4909 ac_cv_prog_ac_ct_CC="$ac_prog" 4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4911 break 2 4912 fi 4913done 4914 done 4915IFS=$as_save_IFS 4916 4917fi 4918fi 4919ac_ct_CC=$ac_cv_prog_ac_ct_CC 4920if test -n "$ac_ct_CC"; then 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4922$as_echo "$ac_ct_CC" >&6; } 4923else 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4925$as_echo "no" >&6; } 4926fi 4927 4928 4929 test -n "$ac_ct_CC" && break 4930done 4931 4932 if test "x$ac_ct_CC" = x; then 4933 CC="" 4934 else 4935 case $cross_compiling:$ac_tool_warned in 4936yes:) 4937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4939ac_tool_warned=yes ;; 4940esac 4941 CC=$ac_ct_CC 4942 fi 4943fi 4944 4945fi 4946 4947 4948test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4950as_fn_error $? "no acceptable C compiler found in \$PATH 4951See \`config.log' for more details" "$LINENO" 5; } 4952 4953# Provide some information about the compiler. 4954$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4955set X $ac_compile 4956ac_compiler=$2 4957for ac_option in --version -v -V -qversion; do 4958 { { ac_try="$ac_compiler $ac_option >&5" 4959case "(($ac_try" in 4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4961 *) ac_try_echo=$ac_try;; 4962esac 4963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4964$as_echo "$ac_try_echo"; } >&5 4965 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4966 ac_status=$? 4967 if test -s conftest.err; then 4968 sed '10a\ 4969... rest of stderr output deleted ... 4970 10q' conftest.err >conftest.er1 4971 cat conftest.er1 >&5 4972 fi 4973 rm -f conftest.er1 conftest.err 4974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4975 test $ac_status = 0; } 4976done 4977 4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4979$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4980if ${ac_cv_c_compiler_gnu+:} false; then : 4981 $as_echo_n "(cached) " >&6 4982else 4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4984/* end confdefs.h. */ 4985 4986int 4987main () 4988{ 4989#ifndef __GNUC__ 4990 choke me 4991#endif 4992 4993 ; 4994 return 0; 4995} 4996_ACEOF 4997if ac_fn_c_try_compile "$LINENO"; then : 4998 ac_compiler_gnu=yes 4999else 5000 ac_compiler_gnu=no 5001fi 5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5003ac_cv_c_compiler_gnu=$ac_compiler_gnu 5004 5005fi 5006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5007$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5008if test $ac_compiler_gnu = yes; then 5009 GCC=yes 5010else 5011 GCC= 5012fi 5013ac_test_CFLAGS=${CFLAGS+set} 5014ac_save_CFLAGS=$CFLAGS 5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5016$as_echo_n "checking whether $CC accepts -g... " >&6; } 5017if ${ac_cv_prog_cc_g+:} false; then : 5018 $as_echo_n "(cached) " >&6 5019else 5020 ac_save_c_werror_flag=$ac_c_werror_flag 5021 ac_c_werror_flag=yes 5022 ac_cv_prog_cc_g=no 5023 CFLAGS="-g" 5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5025/* end confdefs.h. */ 5026 5027int 5028main () 5029{ 5030 5031 ; 5032 return 0; 5033} 5034_ACEOF 5035if ac_fn_c_try_compile "$LINENO"; then : 5036 ac_cv_prog_cc_g=yes 5037else 5038 CFLAGS="" 5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5040/* end confdefs.h. */ 5041 5042int 5043main () 5044{ 5045 5046 ; 5047 return 0; 5048} 5049_ACEOF 5050if ac_fn_c_try_compile "$LINENO"; then : 5051 5052else 5053 ac_c_werror_flag=$ac_save_c_werror_flag 5054 CFLAGS="-g" 5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5056/* end confdefs.h. */ 5057 5058int 5059main () 5060{ 5061 5062 ; 5063 return 0; 5064} 5065_ACEOF 5066if ac_fn_c_try_compile "$LINENO"; then : 5067 ac_cv_prog_cc_g=yes 5068fi 5069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5070fi 5071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5072fi 5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5074 ac_c_werror_flag=$ac_save_c_werror_flag 5075fi 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5077$as_echo "$ac_cv_prog_cc_g" >&6; } 5078if test "$ac_test_CFLAGS" = set; then 5079 CFLAGS=$ac_save_CFLAGS 5080elif test $ac_cv_prog_cc_g = yes; then 5081 if test "$GCC" = yes; then 5082 CFLAGS="-g -O2" 5083 else 5084 CFLAGS="-g" 5085 fi 5086else 5087 if test "$GCC" = yes; then 5088 CFLAGS="-O2" 5089 else 5090 CFLAGS= 5091 fi 5092fi 5093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5094$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5095if ${ac_cv_prog_cc_c89+:} false; then : 5096 $as_echo_n "(cached) " >&6 5097else 5098 ac_cv_prog_cc_c89=no 5099ac_save_CC=$CC 5100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5101/* end confdefs.h. */ 5102#include <stdarg.h> 5103#include <stdio.h> 5104struct stat; 5105/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5106struct buf { int x; }; 5107FILE * (*rcsopen) (struct buf *, struct stat *, int); 5108static char *e (p, i) 5109 char **p; 5110 int i; 5111{ 5112 return p[i]; 5113} 5114static char *f (char * (*g) (char **, int), char **p, ...) 5115{ 5116 char *s; 5117 va_list v; 5118 va_start (v,p); 5119 s = g (p, va_arg (v,int)); 5120 va_end (v); 5121 return s; 5122} 5123 5124/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5125 function prototypes and stuff, but not '\xHH' hex character constants. 5126 These don't provoke an error unfortunately, instead are silently treated 5127 as 'x'. The following induces an error, until -std is added to get 5128 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5129 array size at least. It's necessary to write '\x00'==0 to get something 5130 that's true only with -std. */ 5131int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5132 5133/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5134 inside strings and character constants. */ 5135#define FOO(x) 'x' 5136int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5137 5138int test (int i, double x); 5139struct s1 {int (*f) (int a);}; 5140struct s2 {int (*f) (double a);}; 5141int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5142int argc; 5143char **argv; 5144int 5145main () 5146{ 5147return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5148 ; 5149 return 0; 5150} 5151_ACEOF 5152for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5153 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5154do 5155 CC="$ac_save_CC $ac_arg" 5156 if ac_fn_c_try_compile "$LINENO"; then : 5157 ac_cv_prog_cc_c89=$ac_arg 5158fi 5159rm -f core conftest.err conftest.$ac_objext 5160 test "x$ac_cv_prog_cc_c89" != "xno" && break 5161done 5162rm -f conftest.$ac_ext 5163CC=$ac_save_CC 5164 5165fi 5166# AC_CACHE_VAL 5167case "x$ac_cv_prog_cc_c89" in 5168 x) 5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5170$as_echo "none needed" >&6; } ;; 5171 xno) 5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5173$as_echo "unsupported" >&6; } ;; 5174 *) 5175 CC="$CC $ac_cv_prog_cc_c89" 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5177$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5178esac 5179if test "x$ac_cv_prog_cc_c89" != xno; then : 5180 5181fi 5182 5183ac_ext=c 5184ac_cpp='$CPP $CPPFLAGS' 5185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5187ac_compiler_gnu=$ac_cv_c_compiler_gnu 5188 5189ac_ext=c 5190ac_cpp='$CPP $CPPFLAGS' 5191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5193ac_compiler_gnu=$ac_cv_c_compiler_gnu 5194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5195$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5196if ${am_cv_prog_cc_c_o+:} false; then : 5197 $as_echo_n "(cached) " >&6 5198else 5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5200/* end confdefs.h. */ 5201 5202int 5203main () 5204{ 5205 5206 ; 5207 return 0; 5208} 5209_ACEOF 5210 # Make sure it works both with $CC and with simple cc. 5211 # Following AC_PROG_CC_C_O, we do the test twice because some 5212 # compilers refuse to overwrite an existing .o file with -o, 5213 # though they will create one. 5214 am_cv_prog_cc_c_o=yes 5215 for am_i in 1 2; do 5216 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5217 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5218 ac_status=$? 5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5220 (exit $ac_status); } \ 5221 && test -f conftest2.$ac_objext; then 5222 : OK 5223 else 5224 am_cv_prog_cc_c_o=no 5225 break 5226 fi 5227 done 5228 rm -f core conftest* 5229 unset am_i 5230fi 5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5232$as_echo "$am_cv_prog_cc_c_o" >&6; } 5233if test "$am_cv_prog_cc_c_o" != yes; then 5234 # Losing compiler, so override with the script. 5235 # FIXME: It is wrong to rewrite CC. 5236 # But if we don't then we get into trouble of one sort or another. 5237 # A longer-term fix would be to have automake use am__CC in this case, 5238 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5239 CC="$am_aux_dir/compile $CC" 5240fi 5241ac_ext=c 5242ac_cpp='$CPP $CPPFLAGS' 5243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5245ac_compiler_gnu=$ac_cv_c_compiler_gnu 5246 5247 5248depcc="$CC" am_compiler_list= 5249 5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5251$as_echo_n "checking dependency style of $depcc... " >&6; } 5252if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5253 $as_echo_n "(cached) " >&6 5254else 5255 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5256 # We make a subdir and do the tests there. Otherwise we can end up 5257 # making bogus files that we don't know about and never remove. For 5258 # instance it was reported that on HP-UX the gcc test will end up 5259 # making a dummy file named 'D' -- because '-MD' means "put the output 5260 # in D". 5261 rm -rf conftest.dir 5262 mkdir conftest.dir 5263 # Copy depcomp to subdir because otherwise we won't find it if we're 5264 # using a relative directory. 5265 cp "$am_depcomp" conftest.dir 5266 cd conftest.dir 5267 # We will build objects and dependencies in a subdirectory because 5268 # it helps to detect inapplicable dependency modes. For instance 5269 # both Tru64's cc and ICC support -MD to output dependencies as a 5270 # side effect of compilation, but ICC will put the dependencies in 5271 # the current directory while Tru64 will put them in the object 5272 # directory. 5273 mkdir sub 5274 5275 am_cv_CC_dependencies_compiler_type=none 5276 if test "$am_compiler_list" = ""; then 5277 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5278 fi 5279 am__universal=false 5280 case " $depcc " in #( 5281 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5282 esac 5283 5284 for depmode in $am_compiler_list; do 5285 # Setup a source with many dependencies, because some compilers 5286 # like to wrap large dependency lists on column 80 (with \), and 5287 # we should not choose a depcomp mode which is confused by this. 5288 # 5289 # We need to recreate these files for each test, as the compiler may 5290 # overwrite some of them when testing with obscure command lines. 5291 # This happens at least with the AIX C compiler. 5292 : > sub/conftest.c 5293 for i in 1 2 3 4 5 6; do 5294 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5295 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5296 # Solaris 10 /bin/sh. 5297 echo '/* dummy */' > sub/conftst$i.h 5298 done 5299 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5300 5301 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5302 # mode. It turns out that the SunPro C++ compiler does not properly 5303 # handle '-M -o', and we need to detect this. Also, some Intel 5304 # versions had trouble with output in subdirs. 5305 am__obj=sub/conftest.${OBJEXT-o} 5306 am__minus_obj="-o $am__obj" 5307 case $depmode in 5308 gcc) 5309 # This depmode causes a compiler race in universal mode. 5310 test "$am__universal" = false || continue 5311 ;; 5312 nosideeffect) 5313 # After this tag, mechanisms are not by side-effect, so they'll 5314 # only be used when explicitly requested. 5315 if test "x$enable_dependency_tracking" = xyes; then 5316 continue 5317 else 5318 break 5319 fi 5320 ;; 5321 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5322 # This compiler won't grok '-c -o', but also, the minuso test has 5323 # not run yet. These depmodes are late enough in the game, and 5324 # so weak that their functioning should not be impacted. 5325 am__obj=conftest.${OBJEXT-o} 5326 am__minus_obj= 5327 ;; 5328 none) break ;; 5329 esac 5330 if depmode=$depmode \ 5331 source=sub/conftest.c object=$am__obj \ 5332 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5333 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5334 >/dev/null 2>conftest.err && 5335 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5336 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5337 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5338 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5339 # icc doesn't choke on unknown options, it will just issue warnings 5340 # or remarks (even with -Werror). So we grep stderr for any message 5341 # that says an option was ignored or not supported. 5342 # When given -MP, icc 7.0 and 7.1 complain thusly: 5343 # icc: Command line warning: ignoring option '-M'; no argument required 5344 # The diagnosis changed in icc 8.0: 5345 # icc: Command line remark: option '-MP' not supported 5346 if (grep 'ignoring option' conftest.err || 5347 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5348 am_cv_CC_dependencies_compiler_type=$depmode 5349 break 5350 fi 5351 fi 5352 done 5353 5354 cd .. 5355 rm -rf conftest.dir 5356else 5357 am_cv_CC_dependencies_compiler_type=none 5358fi 5359 5360fi 5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5362$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5363CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5364 5365 if 5366 test "x$enable_dependency_tracking" != xno \ 5367 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5368 am__fastdepCC_TRUE= 5369 am__fastdepCC_FALSE='#' 5370else 5371 am__fastdepCC_TRUE='#' 5372 am__fastdepCC_FALSE= 5373fi 5374 5375 5376ac_ext=c 5377ac_cpp='$CPP $CPPFLAGS' 5378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5380ac_compiler_gnu=$ac_cv_c_compiler_gnu 5381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5382$as_echo_n "checking how to run the C preprocessor... " >&6; } 5383# On Suns, sometimes $CPP names a directory. 5384if test -n "$CPP" && test -d "$CPP"; then 5385 CPP= 5386fi 5387if test -z "$CPP"; then 5388 if ${ac_cv_prog_CPP+:} false; then : 5389 $as_echo_n "(cached) " >&6 5390else 5391 # Double quotes because CPP needs to be expanded 5392 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5393 do 5394 ac_preproc_ok=false 5395for ac_c_preproc_warn_flag in '' yes 5396do 5397 # Use a header file that comes with gcc, so configuring glibc 5398 # with a fresh cross-compiler works. 5399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5400 # <limits.h> exists even on freestanding compilers. 5401 # On the NeXT, cc -E runs the code through the compiler's parser, 5402 # not just through cpp. "Syntax error" is here to catch this case. 5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5404/* end confdefs.h. */ 5405#ifdef __STDC__ 5406# include <limits.h> 5407#else 5408# include <assert.h> 5409#endif 5410 Syntax error 5411_ACEOF 5412if ac_fn_c_try_cpp "$LINENO"; then : 5413 5414else 5415 # Broken: fails on valid input. 5416continue 5417fi 5418rm -f conftest.err conftest.i conftest.$ac_ext 5419 5420 # OK, works on sane cases. Now check whether nonexistent headers 5421 # can be detected and how. 5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5423/* end confdefs.h. */ 5424#include <ac_nonexistent.h> 5425_ACEOF 5426if ac_fn_c_try_cpp "$LINENO"; then : 5427 # Broken: success on invalid input. 5428continue 5429else 5430 # Passes both tests. 5431ac_preproc_ok=: 5432break 5433fi 5434rm -f conftest.err conftest.i conftest.$ac_ext 5435 5436done 5437# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5438rm -f conftest.i conftest.err conftest.$ac_ext 5439if $ac_preproc_ok; then : 5440 break 5441fi 5442 5443 done 5444 ac_cv_prog_CPP=$CPP 5445 5446fi 5447 CPP=$ac_cv_prog_CPP 5448else 5449 ac_cv_prog_CPP=$CPP 5450fi 5451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5452$as_echo "$CPP" >&6; } 5453ac_preproc_ok=false 5454for ac_c_preproc_warn_flag in '' yes 5455do 5456 # Use a header file that comes with gcc, so configuring glibc 5457 # with a fresh cross-compiler works. 5458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5459 # <limits.h> exists even on freestanding compilers. 5460 # On the NeXT, cc -E runs the code through the compiler's parser, 5461 # not just through cpp. "Syntax error" is here to catch this case. 5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5463/* end confdefs.h. */ 5464#ifdef __STDC__ 5465# include <limits.h> 5466#else 5467# include <assert.h> 5468#endif 5469 Syntax error 5470_ACEOF 5471if ac_fn_c_try_cpp "$LINENO"; then : 5472 5473else 5474 # Broken: fails on valid input. 5475continue 5476fi 5477rm -f conftest.err conftest.i conftest.$ac_ext 5478 5479 # OK, works on sane cases. Now check whether nonexistent headers 5480 # can be detected and how. 5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5482/* end confdefs.h. */ 5483#include <ac_nonexistent.h> 5484_ACEOF 5485if ac_fn_c_try_cpp "$LINENO"; then : 5486 # Broken: success on invalid input. 5487continue 5488else 5489 # Passes both tests. 5490ac_preproc_ok=: 5491break 5492fi 5493rm -f conftest.err conftest.i conftest.$ac_ext 5494 5495done 5496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5497rm -f conftest.i conftest.err conftest.$ac_ext 5498if $ac_preproc_ok; then : 5499 5500else 5501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5503as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5504See \`config.log' for more details" "$LINENO" 5; } 5505fi 5506 5507ac_ext=c 5508ac_cpp='$CPP $CPPFLAGS' 5509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5511ac_compiler_gnu=$ac_cv_c_compiler_gnu 5512 5513ac_build_prefix= 5514test -n "$build_alias" && ac_build_prefix=$build_alias- 5515 5516if test "$cross_compiling" = yes; then : 5517 5518# Even if we're cross-compiling, we want a compiler here 5519# that is not a cross-compiler. 5520saved_cross=$cross_compiling 5521cross_compiling=no 5522 5523ac_ext=c 5524ac_cpp='$CPP $BUILD_CPPFLAGS' 5525ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5' 5526ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5' 5527ac_compiler_gnu=$ac_cv_c_compiler_gnu 5528if test -n "$ac_build_prefix"; then 5529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5530set dummy ${ac_build_prefix}gcc; ac_word=$2 5531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5532$as_echo_n "checking for $ac_word... " >&6; } 5533if ${ac_cv_prog_BUILD_CC+:} false; then : 5534 $as_echo_n "(cached) " >&6 5535else 5536 if test -n "$BUILD_CC"; then 5537 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 5538else 5539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5540for as_dir in $PATH 5541do 5542 IFS=$as_save_IFS 5543 test -z "$as_dir" && as_dir=. 5544 for ac_exec_ext in '' $ac_executable_extensions; do 5545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5546 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 5547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5548 break 2 5549 fi 5550done 5551 done 5552IFS=$as_save_IFS 5553 5554fi 5555fi 5556BUILD_CC=$ac_cv_prog_BUILD_CC 5557if test -n "$BUILD_CC"; then 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 5559$as_echo "$BUILD_CC" >&6; } 5560else 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5562$as_echo "no" >&6; } 5563fi 5564 5565 5566fi 5567if test -z "$ac_cv_prog_BUILD_CC"; then 5568 ac_ct_BUILD_CC=$BUILD_CC 5569 # Extract the first word of "gcc", so it can be a program name with args. 5570set dummy gcc; ac_word=$2 5571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5572$as_echo_n "checking for $ac_word... " >&6; } 5573if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then : 5574 $as_echo_n "(cached) " >&6 5575else 5576 if test -n "$ac_ct_BUILD_CC"; then 5577 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test. 5578else 5579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5580for as_dir in $PATH 5581do 5582 IFS=$as_save_IFS 5583 test -z "$as_dir" && as_dir=. 5584 for ac_exec_ext in '' $ac_executable_extensions; do 5585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5586 ac_cv_prog_ac_ct_BUILD_CC="gcc" 5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5588 break 2 5589 fi 5590done 5591 done 5592IFS=$as_save_IFS 5593 5594fi 5595fi 5596ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC 5597if test -n "$ac_ct_BUILD_CC"; then 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5 5599$as_echo "$ac_ct_BUILD_CC" >&6; } 5600else 5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5602$as_echo "no" >&6; } 5603fi 5604 5605 if test "x$ac_ct_BUILD_CC" = x; then 5606 BUILD_CC="" 5607 else 5608 case $cross_compiling:$ac_tool_warned in 5609yes:) 5610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5612ac_tool_warned=yes ;; 5613esac 5614 BUILD_CC=$ac_ct_BUILD_CC 5615 fi 5616else 5617 BUILD_CC="$ac_cv_prog_BUILD_CC" 5618fi 5619 5620if test -z "$BUILD_CC"; then 5621 if test -n "$ac_build_prefix"; then 5622 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5623set dummy ${ac_build_prefix}cc; ac_word=$2 5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5625$as_echo_n "checking for $ac_word... " >&6; } 5626if ${ac_cv_prog_BUILD_CC+:} false; then : 5627 $as_echo_n "(cached) " >&6 5628else 5629 if test -n "$BUILD_CC"; then 5630 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 5631else 5632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5633for as_dir in $PATH 5634do 5635 IFS=$as_save_IFS 5636 test -z "$as_dir" && as_dir=. 5637 for ac_exec_ext in '' $ac_executable_extensions; do 5638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5639 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc" 5640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5641 break 2 5642 fi 5643done 5644 done 5645IFS=$as_save_IFS 5646 5647fi 5648fi 5649BUILD_CC=$ac_cv_prog_BUILD_CC 5650if test -n "$BUILD_CC"; then 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 5652$as_echo "$BUILD_CC" >&6; } 5653else 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5655$as_echo "no" >&6; } 5656fi 5657 5658 5659fi 5660if test -z "$ac_cv_prog_BUILD_CC"; then 5661 ac_ct_BUILD_CC=$BUILD_CC 5662 # Extract the first word of "cc", so it can be a program name with args. 5663set dummy cc; ac_word=$2 5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5665$as_echo_n "checking for $ac_word... " >&6; } 5666if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then : 5667 $as_echo_n "(cached) " >&6 5668else 5669 if test -n "$ac_ct_BUILD_CC"; then 5670 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test. 5671else 5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5673for as_dir in $PATH 5674do 5675 IFS=$as_save_IFS 5676 test -z "$as_dir" && as_dir=. 5677 for ac_exec_ext in '' $ac_executable_extensions; do 5678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5679 ac_cv_prog_ac_ct_BUILD_CC="cc" 5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5681 break 2 5682 fi 5683done 5684 done 5685IFS=$as_save_IFS 5686 5687fi 5688fi 5689ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC 5690if test -n "$ac_ct_BUILD_CC"; then 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5 5692$as_echo "$ac_ct_BUILD_CC" >&6; } 5693else 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5695$as_echo "no" >&6; } 5696fi 5697 5698 if test "x$ac_ct_BUILD_CC" = x; then 5699 BUILD_CC="" 5700 else 5701 case $cross_compiling:$ac_tool_warned in 5702yes:) 5703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5705ac_tool_warned=yes ;; 5706esac 5707 BUILD_CC=$ac_ct_BUILD_CC 5708 fi 5709else 5710 BUILD_CC="$ac_cv_prog_BUILD_CC" 5711fi 5712 5713fi 5714if test -z "$BUILD_CC"; then 5715 # Extract the first word of "cc", so it can be a program name with args. 5716set dummy cc; ac_word=$2 5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5718$as_echo_n "checking for $ac_word... " >&6; } 5719if ${ac_cv_prog_BUILD_CC+:} false; then : 5720 $as_echo_n "(cached) " >&6 5721else 5722 if test -n "$BUILD_CC"; then 5723 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 5724else 5725 ac_prog_rejected=no 5726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5727for as_dir in $PATH 5728do 5729 IFS=$as_save_IFS 5730 test -z "$as_dir" && as_dir=. 5731 for ac_exec_ext in '' $ac_executable_extensions; do 5732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5733 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5734 ac_prog_rejected=yes 5735 continue 5736 fi 5737 ac_cv_prog_BUILD_CC="cc" 5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5739 break 2 5740 fi 5741done 5742 done 5743IFS=$as_save_IFS 5744 5745if test $ac_prog_rejected = yes; then 5746 # We found a bogon in the path, so make sure we never use it. 5747 set dummy $ac_cv_prog_BUILD_CC 5748 shift 5749 if test $# != 0; then 5750 # We chose a different compiler from the bogus one. 5751 # However, it has the same basename, so the bogon will be chosen 5752 # first if we set BUILD_CC to just the basename; use the full file name. 5753 shift 5754 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 5755 fi 5756fi 5757fi 5758fi 5759BUILD_CC=$ac_cv_prog_BUILD_CC 5760if test -n "$BUILD_CC"; then 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 5762$as_echo "$BUILD_CC" >&6; } 5763else 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5765$as_echo "no" >&6; } 5766fi 5767 5768 5769fi 5770if test -z "$BUILD_CC"; then 5771 if test -n "$ac_build_prefix"; then 5772 for ac_prog in cl 5773 do 5774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5775set dummy $ac_build_prefix$ac_prog; ac_word=$2 5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5777$as_echo_n "checking for $ac_word... " >&6; } 5778if ${ac_cv_prog_BUILD_CC+:} false; then : 5779 $as_echo_n "(cached) " >&6 5780else 5781 if test -n "$BUILD_CC"; then 5782 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 5783else 5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5785for as_dir in $PATH 5786do 5787 IFS=$as_save_IFS 5788 test -z "$as_dir" && as_dir=. 5789 for ac_exec_ext in '' $ac_executable_extensions; do 5790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5791 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog" 5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5793 break 2 5794 fi 5795done 5796 done 5797IFS=$as_save_IFS 5798 5799fi 5800fi 5801BUILD_CC=$ac_cv_prog_BUILD_CC 5802if test -n "$BUILD_CC"; then 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 5804$as_echo "$BUILD_CC" >&6; } 5805else 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5807$as_echo "no" >&6; } 5808fi 5809 5810 5811 test -n "$BUILD_CC" && break 5812 done 5813fi 5814if test -z "$BUILD_CC"; then 5815 ac_ct_BUILD_CC=$BUILD_CC 5816 for ac_prog in cl 5817do 5818 # Extract the first word of "$ac_prog", so it can be a program name with args. 5819set dummy $ac_prog; ac_word=$2 5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5821$as_echo_n "checking for $ac_word... " >&6; } 5822if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then : 5823 $as_echo_n "(cached) " >&6 5824else 5825 if test -n "$ac_ct_BUILD_CC"; then 5826 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test. 5827else 5828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5829for as_dir in $PATH 5830do 5831 IFS=$as_save_IFS 5832 test -z "$as_dir" && as_dir=. 5833 for ac_exec_ext in '' $ac_executable_extensions; do 5834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5835 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog" 5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5837 break 2 5838 fi 5839done 5840 done 5841IFS=$as_save_IFS 5842 5843fi 5844fi 5845ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC 5846if test -n "$ac_ct_BUILD_CC"; then 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5 5848$as_echo "$ac_ct_BUILD_CC" >&6; } 5849else 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5851$as_echo "no" >&6; } 5852fi 5853 5854 5855 test -n "$ac_ct_BUILD_CC" && break 5856done 5857 5858 if test "x$ac_ct_BUILD_CC" = x; then 5859 BUILD_CC="" 5860 else 5861 case $cross_compiling:$ac_tool_warned in 5862yes:) 5863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5865ac_tool_warned=yes ;; 5866esac 5867 BUILD_CC=$ac_ct_BUILD_CC 5868 fi 5869fi 5870 5871fi 5872 5873 5874test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5876as_fn_error $? "no acceptable C compiler found in \$PATH 5877See \`config.log' for more details" "$LINENO" 5; } 5878 5879# Provide some information about the compiler. 5880echo "$as_me:$LINENO:" \ 5881 "checking for C compiler version" >&5 5882ac_compiler=`set X $ac_compile; echo $2` 5883{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5 5884 (eval $ac_compiler --version </dev/null >&5) 2>&5 5885 ac_status=$? 5886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5887 test $ac_status = 0; } 5888{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5 5889 (eval $ac_compiler -v </dev/null >&5) 2>&5 5890 ac_status=$? 5891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5892 test $ac_status = 0; } 5893{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5 5894 (eval $ac_compiler -V </dev/null >&5) 2>&5 5895 ac_status=$? 5896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5897 test $ac_status = 0; } 5898 5899cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5900/* end confdefs.h. */ 5901 5902int 5903main () 5904{ 5905 5906 ; 5907 return 0; 5908} 5909_ACEOF 5910ac_clean_files_save=$ac_clean_files 5911ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5912# Try to create an executable without -o first, disregard a.out. 5913# It will help us diagnose broken compilers, and finding out an intuition 5914# of exeext. 5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5916$as_echo_n "checking whether the C compiler works... " >&6; } 5917ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5918 5919# The possible output files: 5920ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5921 5922ac_rmfiles= 5923for ac_file in $ac_files 5924do 5925 case $ac_file in 5926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5927 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5928 esac 5929done 5930rm -f $ac_rmfiles 5931 5932if { { ac_try="$ac_link_default" 5933case "(($ac_try" in 5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5935 *) ac_try_echo=$ac_try;; 5936esac 5937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5938$as_echo "$ac_try_echo"; } >&5 5939 (eval "$ac_link_default") 2>&5 5940 ac_status=$? 5941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5942 test $ac_status = 0; }; then : 5943 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 5944# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 5945# in a Makefile. We should not override ac_cv_exeext if it was cached, 5946# so that the user can short-circuit this test for compilers unknown to 5947# Autoconf. 5948for ac_file in $ac_files '' 5949do 5950 test -f "$ac_file" || continue 5951 case $ac_file in 5952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5953 ;; 5954 [ab].out ) 5955 # We found the default executable, but exeext='' is most 5956 # certainly right. 5957 break;; 5958 *.* ) 5959 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no; 5960 then :; else 5961 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5962 fi 5963 # We set ac_cv_exeext here because the later test for it is not 5964 # safe: cross compilers may not add the suffix if given an `-o' 5965 # argument, so we may need to know it at that point already. 5966 # Even if this section looks crufty: it has the advantage of 5967 # actually working. 5968 break;; 5969 * ) 5970 break;; 5971 esac 5972done 5973test "$ac_cv_build_exeext" = no && ac_cv_build_exeext= 5974 5975else 5976 ac_file='' 5977fi 5978if test -z "$ac_file"; then : 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5980$as_echo "no" >&6; } 5981$as_echo "$as_me: failed program was:" >&5 5982sed 's/^/| /' conftest.$ac_ext >&5 5983 5984{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5986as_fn_error 77 "C compiler cannot create executables 5987See \`config.log' for more details" "$LINENO" 5; } 5988else 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5990$as_echo "yes" >&6; } 5991fi 5992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5993$as_echo_n "checking for C compiler default output file name... " >&6; } 5994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5995$as_echo "$ac_file" >&6; } 5996ac_build_exeext=$ac_cv_build_exeext 5997 5998rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out 5999ac_clean_files=$ac_clean_files_save 6000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 6001$as_echo_n "checking for suffix of executables... " >&6; } 6002if { { ac_try="$ac_link" 6003case "(($ac_try" in 6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6005 *) ac_try_echo=$ac_try;; 6006esac 6007eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6008$as_echo "$ac_try_echo"; } >&5 6009 (eval "$ac_link") 2>&5 6010 ac_status=$? 6011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6012 test $ac_status = 0; }; then : 6013 # If both `conftest.exe' and `conftest' are `present' (well, observable) 6014# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 6015# work properly (i.e., refer to `conftest.exe'), while it won't with 6016# `rm'. 6017for ac_file in conftest.exe conftest conftest.*; do 6018 test -f "$ac_file" || continue 6019 case $ac_file in 6020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 6021 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 6022 break;; 6023 * ) break;; 6024 esac 6025done 6026else 6027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6029as_fn_error $? "cannot compute suffix of executables: cannot compile and link 6030See \`config.log' for more details" "$LINENO" 5; } 6031fi 6032rm -f conftest conftest$ac_cv_build_exeext 6033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5 6034$as_echo "$ac_cv_build_exeext" >&6; } 6035 6036rm -f conftest.$ac_ext 6037BUILD_EXEEXT=$ac_cv_build_exeext 6038ac_build_exeext=$BUILD_EXEEXT 6039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6040/* end confdefs.h. */ 6041#include <stdio.h> 6042int 6043main () 6044{ 6045FILE *f = fopen ("conftest.out", "w"); 6046 return ferror (f) || fclose (f) != 0; 6047 6048 ; 6049 return 0; 6050} 6051_ACEOF 6052ac_clean_files="$ac_clean_files conftest.out" 6053# Check that the compiler produces executables we can run. If not, either 6054# the compiler is broken, or we cross compile. 6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 6056$as_echo_n "checking whether we are cross compiling... " >&6; } 6057if test "$cross_compiling" != yes; then 6058 { { ac_try="$ac_link" 6059case "(($ac_try" in 6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6061 *) ac_try_echo=$ac_try;; 6062esac 6063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6064$as_echo "$ac_try_echo"; } >&5 6065 (eval "$ac_link") 2>&5 6066 ac_status=$? 6067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6068 test $ac_status = 0; } 6069 if { ac_try='./conftest$ac_cv_build_exeext' 6070 { { case "(($ac_try" in 6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6072 *) ac_try_echo=$ac_try;; 6073esac 6074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6075$as_echo "$ac_try_echo"; } >&5 6076 (eval "$ac_try") 2>&5 6077 ac_status=$? 6078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6079 test $ac_status = 0; }; }; then 6080 cross_compiling=no 6081 else 6082 if test "$cross_compiling" = maybe; then 6083 cross_compiling=yes 6084 else 6085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6087as_fn_error $? "cannot run C compiled programs. 6088If you meant to cross compile, use \`--host'. 6089See \`config.log' for more details" "$LINENO" 5; } 6090 fi 6091 fi 6092fi 6093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 6094$as_echo "$cross_compiling" >&6; } 6095 6096rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out 6097ac_clean_files=$ac_clean_files_save 6098 6099 6100# Restore configuration environment 6101cross_compiling=$saved_cross 6102 6103ac_ext=c 6104ac_cpp='$CPP $CPPFLAGS' 6105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6107ac_compiler_gnu=$ac_cv_c_compiler_gnu 6108 6109else 6110 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT 6111fi 6112CFLAGS="$mule_backup_CFLAGS" 6113CXXFLAGS="$mule_backup_CXXFLAGS" 6114BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS" 6115for ac_prog in gawk mawk nawk awk 6116do 6117 # Extract the first word of "$ac_prog", so it can be a program name with args. 6118set dummy $ac_prog; ac_word=$2 6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6120$as_echo_n "checking for $ac_word... " >&6; } 6121if ${ac_cv_prog_AWK+:} false; then : 6122 $as_echo_n "(cached) " >&6 6123else 6124 if test -n "$AWK"; then 6125 ac_cv_prog_AWK="$AWK" # Let the user override the test. 6126else 6127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6128for as_dir in $PATH 6129do 6130 IFS=$as_save_IFS 6131 test -z "$as_dir" && as_dir=. 6132 for ac_exec_ext in '' $ac_executable_extensions; do 6133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6134 ac_cv_prog_AWK="$ac_prog" 6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6136 break 2 6137 fi 6138done 6139 done 6140IFS=$as_save_IFS 6141 6142fi 6143fi 6144AWK=$ac_cv_prog_AWK 6145if test -n "$AWK"; then 6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 6147$as_echo "$AWK" >&6; } 6148else 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6150$as_echo "no" >&6; } 6151fi 6152 6153 6154 test -n "$AWK" && break 6155done 6156 6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6158$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6159if ${ac_cv_path_GREP+:} false; then : 6160 $as_echo_n "(cached) " >&6 6161else 6162 if test -z "$GREP"; then 6163 ac_path_GREP_found=false 6164 # Loop through the user's path and test for each of PROGNAME-LIST 6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6166for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6167do 6168 IFS=$as_save_IFS 6169 test -z "$as_dir" && as_dir=. 6170 for ac_prog in grep ggrep; do 6171 for ac_exec_ext in '' $ac_executable_extensions; do 6172 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6173 as_fn_executable_p "$ac_path_GREP" || continue 6174# Check for GNU ac_path_GREP and select it if it is found. 6175 # Check for GNU $ac_path_GREP 6176case `"$ac_path_GREP" --version 2>&1` in 6177*GNU*) 6178 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6179*) 6180 ac_count=0 6181 $as_echo_n 0123456789 >"conftest.in" 6182 while : 6183 do 6184 cat "conftest.in" "conftest.in" >"conftest.tmp" 6185 mv "conftest.tmp" "conftest.in" 6186 cp "conftest.in" "conftest.nl" 6187 $as_echo 'GREP' >> "conftest.nl" 6188 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6190 as_fn_arith $ac_count + 1 && ac_count=$as_val 6191 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6192 # Best one so far, save it but keep looking for a better one 6193 ac_cv_path_GREP="$ac_path_GREP" 6194 ac_path_GREP_max=$ac_count 6195 fi 6196 # 10*(2^10) chars as input seems more than enough 6197 test $ac_count -gt 10 && break 6198 done 6199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6200esac 6201 6202 $ac_path_GREP_found && break 3 6203 done 6204 done 6205 done 6206IFS=$as_save_IFS 6207 if test -z "$ac_cv_path_GREP"; then 6208 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6209 fi 6210else 6211 ac_cv_path_GREP=$GREP 6212fi 6213 6214fi 6215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6216$as_echo "$ac_cv_path_GREP" >&6; } 6217 GREP="$ac_cv_path_GREP" 6218 6219 6220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6221$as_echo_n "checking for egrep... " >&6; } 6222if ${ac_cv_path_EGREP+:} false; then : 6223 $as_echo_n "(cached) " >&6 6224else 6225 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6226 then ac_cv_path_EGREP="$GREP -E" 6227 else 6228 if test -z "$EGREP"; then 6229 ac_path_EGREP_found=false 6230 # Loop through the user's path and test for each of PROGNAME-LIST 6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6232for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6233do 6234 IFS=$as_save_IFS 6235 test -z "$as_dir" && as_dir=. 6236 for ac_prog in egrep; do 6237 for ac_exec_ext in '' $ac_executable_extensions; do 6238 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6239 as_fn_executable_p "$ac_path_EGREP" || continue 6240# Check for GNU ac_path_EGREP and select it if it is found. 6241 # Check for GNU $ac_path_EGREP 6242case `"$ac_path_EGREP" --version 2>&1` in 6243*GNU*) 6244 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6245*) 6246 ac_count=0 6247 $as_echo_n 0123456789 >"conftest.in" 6248 while : 6249 do 6250 cat "conftest.in" "conftest.in" >"conftest.tmp" 6251 mv "conftest.tmp" "conftest.in" 6252 cp "conftest.in" "conftest.nl" 6253 $as_echo 'EGREP' >> "conftest.nl" 6254 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6256 as_fn_arith $ac_count + 1 && ac_count=$as_val 6257 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6258 # Best one so far, save it but keep looking for a better one 6259 ac_cv_path_EGREP="$ac_path_EGREP" 6260 ac_path_EGREP_max=$ac_count 6261 fi 6262 # 10*(2^10) chars as input seems more than enough 6263 test $ac_count -gt 10 && break 6264 done 6265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6266esac 6267 6268 $ac_path_EGREP_found && break 3 6269 done 6270 done 6271 done 6272IFS=$as_save_IFS 6273 if test -z "$ac_cv_path_EGREP"; then 6274 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6275 fi 6276else 6277 ac_cv_path_EGREP=$EGREP 6278fi 6279 6280 fi 6281fi 6282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6283$as_echo "$ac_cv_path_EGREP" >&6; } 6284 EGREP="$ac_cv_path_EGREP" 6285 6286 6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 6288$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 6289set x ${MAKE-make} 6290ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6291if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 6292 $as_echo_n "(cached) " >&6 6293else 6294 cat >conftest.make <<\_ACEOF 6295SHELL = /bin/sh 6296all: 6297 @echo '@@@%%%=$(MAKE)=@@@%%%' 6298_ACEOF 6299# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 6300case `${MAKE-make} -f conftest.make 2>/dev/null` in 6301 *@@@%%%=?*=@@@%%%*) 6302 eval ac_cv_prog_make_${ac_make}_set=yes;; 6303 *) 6304 eval ac_cv_prog_make_${ac_make}_set=no;; 6305esac 6306rm -f conftest.make 6307fi 6308if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6310$as_echo "yes" >&6; } 6311 SET_MAKE= 6312else 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6314$as_echo "no" >&6; } 6315 SET_MAKE="MAKE=${MAKE-make}" 6316fi 6317 6318 6319if test -n "$ac_tool_prefix"; then 6320 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6321set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6323$as_echo_n "checking for $ac_word... " >&6; } 6324if ${ac_cv_prog_RANLIB+:} false; then : 6325 $as_echo_n "(cached) " >&6 6326else 6327 if test -n "$RANLIB"; then 6328 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6329else 6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6331for as_dir in $PATH 6332do 6333 IFS=$as_save_IFS 6334 test -z "$as_dir" && as_dir=. 6335 for ac_exec_ext in '' $ac_executable_extensions; do 6336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6337 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6339 break 2 6340 fi 6341done 6342 done 6343IFS=$as_save_IFS 6344 6345fi 6346fi 6347RANLIB=$ac_cv_prog_RANLIB 6348if test -n "$RANLIB"; then 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6350$as_echo "$RANLIB" >&6; } 6351else 6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6353$as_echo "no" >&6; } 6354fi 6355 6356 6357fi 6358if test -z "$ac_cv_prog_RANLIB"; then 6359 ac_ct_RANLIB=$RANLIB 6360 # Extract the first word of "ranlib", so it can be a program name with args. 6361set dummy ranlib; ac_word=$2 6362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6363$as_echo_n "checking for $ac_word... " >&6; } 6364if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6365 $as_echo_n "(cached) " >&6 6366else 6367 if test -n "$ac_ct_RANLIB"; then 6368 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6369else 6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6371for as_dir in $PATH 6372do 6373 IFS=$as_save_IFS 6374 test -z "$as_dir" && as_dir=. 6375 for ac_exec_ext in '' $ac_executable_extensions; do 6376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6377 ac_cv_prog_ac_ct_RANLIB="ranlib" 6378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6379 break 2 6380 fi 6381done 6382 done 6383IFS=$as_save_IFS 6384 6385fi 6386fi 6387ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6388if test -n "$ac_ct_RANLIB"; then 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6390$as_echo "$ac_ct_RANLIB" >&6; } 6391else 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6393$as_echo "no" >&6; } 6394fi 6395 6396 if test "x$ac_ct_RANLIB" = x; then 6397 RANLIB=":" 6398 else 6399 case $cross_compiling:$ac_tool_warned in 6400yes:) 6401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6403ac_tool_warned=yes ;; 6404esac 6405 RANLIB=$ac_ct_RANLIB 6406 fi 6407else 6408 RANLIB="$ac_cv_prog_RANLIB" 6409fi 6410 6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6412$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6413if ${ac_cv_path_SED+:} false; then : 6414 $as_echo_n "(cached) " >&6 6415else 6416 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6417 for ac_i in 1 2 3 4 5 6 7; do 6418 ac_script="$ac_script$as_nl$ac_script" 6419 done 6420 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6421 { ac_script=; unset ac_script;} 6422 if test -z "$SED"; then 6423 ac_path_SED_found=false 6424 # Loop through the user's path and test for each of PROGNAME-LIST 6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6426for as_dir in $PATH 6427do 6428 IFS=$as_save_IFS 6429 test -z "$as_dir" && as_dir=. 6430 for ac_prog in sed gsed; do 6431 for ac_exec_ext in '' $ac_executable_extensions; do 6432 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6433 as_fn_executable_p "$ac_path_SED" || continue 6434# Check for GNU ac_path_SED and select it if it is found. 6435 # Check for GNU $ac_path_SED 6436case `"$ac_path_SED" --version 2>&1` in 6437*GNU*) 6438 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6439*) 6440 ac_count=0 6441 $as_echo_n 0123456789 >"conftest.in" 6442 while : 6443 do 6444 cat "conftest.in" "conftest.in" >"conftest.tmp" 6445 mv "conftest.tmp" "conftest.in" 6446 cp "conftest.in" "conftest.nl" 6447 $as_echo '' >> "conftest.nl" 6448 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6449 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6450 as_fn_arith $ac_count + 1 && ac_count=$as_val 6451 if test $ac_count -gt ${ac_path_SED_max-0}; then 6452 # Best one so far, save it but keep looking for a better one 6453 ac_cv_path_SED="$ac_path_SED" 6454 ac_path_SED_max=$ac_count 6455 fi 6456 # 10*(2^10) chars as input seems more than enough 6457 test $ac_count -gt 10 && break 6458 done 6459 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6460esac 6461 6462 $ac_path_SED_found && break 3 6463 done 6464 done 6465 done 6466IFS=$as_save_IFS 6467 if test -z "$ac_cv_path_SED"; then 6468 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6469 fi 6470else 6471 ac_cv_path_SED=$SED 6472fi 6473 6474fi 6475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6476$as_echo "$ac_cv_path_SED" >&6; } 6477 SED="$ac_cv_path_SED" 6478 rm -f conftest.sed 6479 6480 6481if test -n "$ac_tool_prefix"; then 6482 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6483set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6485$as_echo_n "checking for $ac_word... " >&6; } 6486if ${ac_cv_prog_RANLIB+:} false; then : 6487 $as_echo_n "(cached) " >&6 6488else 6489 if test -n "$RANLIB"; then 6490 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6491else 6492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6493for as_dir in $PATH 6494do 6495 IFS=$as_save_IFS 6496 test -z "$as_dir" && as_dir=. 6497 for ac_exec_ext in '' $ac_executable_extensions; do 6498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6499 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6501 break 2 6502 fi 6503done 6504 done 6505IFS=$as_save_IFS 6506 6507fi 6508fi 6509RANLIB=$ac_cv_prog_RANLIB 6510if test -n "$RANLIB"; then 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6512$as_echo "$RANLIB" >&6; } 6513else 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6515$as_echo "no" >&6; } 6516fi 6517 6518 6519fi 6520if test -z "$ac_cv_prog_RANLIB"; then 6521 ac_ct_RANLIB=$RANLIB 6522 # Extract the first word of "ranlib", so it can be a program name with args. 6523set dummy ranlib; ac_word=$2 6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6525$as_echo_n "checking for $ac_word... " >&6; } 6526if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6527 $as_echo_n "(cached) " >&6 6528else 6529 if test -n "$ac_ct_RANLIB"; then 6530 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6531else 6532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6533for as_dir in $PATH 6534do 6535 IFS=$as_save_IFS 6536 test -z "$as_dir" && as_dir=. 6537 for ac_exec_ext in '' $ac_executable_extensions; do 6538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6539 ac_cv_prog_ac_ct_RANLIB="ranlib" 6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6541 break 2 6542 fi 6543done 6544 done 6545IFS=$as_save_IFS 6546 6547fi 6548fi 6549ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6550if test -n "$ac_ct_RANLIB"; then 6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6552$as_echo "$ac_ct_RANLIB" >&6; } 6553else 6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6555$as_echo "no" >&6; } 6556fi 6557 6558 if test "x$ac_ct_RANLIB" = x; then 6559 RANLIB="" 6560 else 6561 case $cross_compiling:$ac_tool_warned in 6562yes:) 6563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6565ac_tool_warned=yes ;; 6566esac 6567 RANLIB=$ac_ct_RANLIB 6568 fi 6569else 6570 RANLIB="$ac_cv_prog_RANLIB" 6571fi 6572 6573if test -n "$ac_tool_prefix"; then 6574 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6575set dummy ${ac_tool_prefix}strip; ac_word=$2 6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6577$as_echo_n "checking for $ac_word... " >&6; } 6578if ${ac_cv_prog_STRIP+:} false; then : 6579 $as_echo_n "(cached) " >&6 6580else 6581 if test -n "$STRIP"; then 6582 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6583else 6584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6585for as_dir in $PATH 6586do 6587 IFS=$as_save_IFS 6588 test -z "$as_dir" && as_dir=. 6589 for ac_exec_ext in '' $ac_executable_extensions; do 6590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6591 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6593 break 2 6594 fi 6595done 6596 done 6597IFS=$as_save_IFS 6598 6599fi 6600fi 6601STRIP=$ac_cv_prog_STRIP 6602if test -n "$STRIP"; then 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6604$as_echo "$STRIP" >&6; } 6605else 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6607$as_echo "no" >&6; } 6608fi 6609 6610 6611fi 6612if test -z "$ac_cv_prog_STRIP"; then 6613 ac_ct_STRIP=$STRIP 6614 # Extract the first word of "strip", so it can be a program name with args. 6615set dummy strip; ac_word=$2 6616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6617$as_echo_n "checking for $ac_word... " >&6; } 6618if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6619 $as_echo_n "(cached) " >&6 6620else 6621 if test -n "$ac_ct_STRIP"; then 6622 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6623else 6624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6625for as_dir in $PATH 6626do 6627 IFS=$as_save_IFS 6628 test -z "$as_dir" && as_dir=. 6629 for ac_exec_ext in '' $ac_executable_extensions; do 6630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6631 ac_cv_prog_ac_ct_STRIP="strip" 6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6633 break 2 6634 fi 6635done 6636 done 6637IFS=$as_save_IFS 6638 6639fi 6640fi 6641ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6642if test -n "$ac_ct_STRIP"; then 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6644$as_echo "$ac_ct_STRIP" >&6; } 6645else 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6647$as_echo "no" >&6; } 6648fi 6649 6650 if test "x$ac_ct_STRIP" = x; then 6651 STRIP="" 6652 else 6653 case $cross_compiling:$ac_tool_warned in 6654yes:) 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6657ac_tool_warned=yes ;; 6658esac 6659 STRIP=$ac_ct_STRIP 6660 fi 6661else 6662 STRIP="$ac_cv_prog_STRIP" 6663fi 6664 6665if test -n "$ac_tool_prefix"; then 6666 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6667set dummy ${ac_tool_prefix}ar; ac_word=$2 6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6669$as_echo_n "checking for $ac_word... " >&6; } 6670if ${ac_cv_prog_AR+:} false; then : 6671 $as_echo_n "(cached) " >&6 6672else 6673 if test -n "$AR"; then 6674 ac_cv_prog_AR="$AR" # Let the user override the test. 6675else 6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6677for as_dir in $PATH 6678do 6679 IFS=$as_save_IFS 6680 test -z "$as_dir" && as_dir=. 6681 for ac_exec_ext in '' $ac_executable_extensions; do 6682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6683 ac_cv_prog_AR="${ac_tool_prefix}ar" 6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6685 break 2 6686 fi 6687done 6688 done 6689IFS=$as_save_IFS 6690 6691fi 6692fi 6693AR=$ac_cv_prog_AR 6694if test -n "$AR"; then 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6696$as_echo "$AR" >&6; } 6697else 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6699$as_echo "no" >&6; } 6700fi 6701 6702 6703fi 6704if test -z "$ac_cv_prog_AR"; then 6705 ac_ct_AR=$AR 6706 # Extract the first word of "ar", so it can be a program name with args. 6707set dummy ar; ac_word=$2 6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6709$as_echo_n "checking for $ac_word... " >&6; } 6710if ${ac_cv_prog_ac_ct_AR+:} false; then : 6711 $as_echo_n "(cached) " >&6 6712else 6713 if test -n "$ac_ct_AR"; then 6714 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6715else 6716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6717for as_dir in $PATH 6718do 6719 IFS=$as_save_IFS 6720 test -z "$as_dir" && as_dir=. 6721 for ac_exec_ext in '' $ac_executable_extensions; do 6722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6723 ac_cv_prog_ac_ct_AR="ar" 6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6725 break 2 6726 fi 6727done 6728 done 6729IFS=$as_save_IFS 6730 6731fi 6732fi 6733ac_ct_AR=$ac_cv_prog_ac_ct_AR 6734if test -n "$ac_ct_AR"; then 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6736$as_echo "$ac_ct_AR" >&6; } 6737else 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6739$as_echo "no" >&6; } 6740fi 6741 6742 if test "x$ac_ct_AR" = x; then 6743 AR="" 6744 else 6745 case $cross_compiling:$ac_tool_warned in 6746yes:) 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6749ac_tool_warned=yes ;; 6750esac 6751 AR=$ac_ct_AR 6752 fi 6753else 6754 AR="$ac_cv_prog_AR" 6755fi 6756 6757if test -n "$ac_tool_prefix"; then 6758 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. 6759set dummy ${ac_tool_prefix}ld; ac_word=$2 6760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6761$as_echo_n "checking for $ac_word... " >&6; } 6762if ${ac_cv_prog_LD+:} false; then : 6763 $as_echo_n "(cached) " >&6 6764else 6765 if test -n "$LD"; then 6766 ac_cv_prog_LD="$LD" # Let the user override the test. 6767else 6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6769for as_dir in $PATH 6770do 6771 IFS=$as_save_IFS 6772 test -z "$as_dir" && as_dir=. 6773 for ac_exec_ext in '' $ac_executable_extensions; do 6774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6775 ac_cv_prog_LD="${ac_tool_prefix}ld" 6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6777 break 2 6778 fi 6779done 6780 done 6781IFS=$as_save_IFS 6782 6783fi 6784fi 6785LD=$ac_cv_prog_LD 6786if test -n "$LD"; then 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6788$as_echo "$LD" >&6; } 6789else 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6791$as_echo "no" >&6; } 6792fi 6793 6794 6795fi 6796if test -z "$ac_cv_prog_LD"; then 6797 ac_ct_LD=$LD 6798 # Extract the first word of "ld", so it can be a program name with args. 6799set dummy ld; ac_word=$2 6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6801$as_echo_n "checking for $ac_word... " >&6; } 6802if ${ac_cv_prog_ac_ct_LD+:} false; then : 6803 $as_echo_n "(cached) " >&6 6804else 6805 if test -n "$ac_ct_LD"; then 6806 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. 6807else 6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6809for as_dir in $PATH 6810do 6811 IFS=$as_save_IFS 6812 test -z "$as_dir" && as_dir=. 6813 for ac_exec_ext in '' $ac_executable_extensions; do 6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6815 ac_cv_prog_ac_ct_LD="ld" 6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6817 break 2 6818 fi 6819done 6820 done 6821IFS=$as_save_IFS 6822 6823fi 6824fi 6825ac_ct_LD=$ac_cv_prog_ac_ct_LD 6826if test -n "$ac_ct_LD"; then 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5 6828$as_echo "$ac_ct_LD" >&6; } 6829else 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6831$as_echo "no" >&6; } 6832fi 6833 6834 if test "x$ac_ct_LD" = x; then 6835 LD="" 6836 else 6837 case $cross_compiling:$ac_tool_warned in 6838yes:) 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6841ac_tool_warned=yes ;; 6842esac 6843 LD=$ac_ct_LD 6844 fi 6845else 6846 LD="$ac_cv_prog_LD" 6847fi 6848 6849 6850# Check whether --enable-monolithic was given. 6851if test "${enable_monolithic+set}" = set; then : 6852 enableval=$enable_monolithic; 6853fi 6854 6855 if test ${enable_monolithic:-yes} = yes; then 6856 MONOLITHIC_TRUE= 6857 MONOLITHIC_FALSE='#' 6858else 6859 MONOLITHIC_TRUE='#' 6860 MONOLITHIC_FALSE= 6861fi 6862 6863 6864# Check whether --enable-amule-daemon was given. 6865if test "${enable_amule_daemon+set}" = set; then : 6866 enableval=$enable_amule_daemon; 6867fi 6868 6869 if test ${enable_amule_daemon:-no} = yes; then 6870 AMULE_DAEMON_TRUE= 6871 AMULE_DAEMON_FALSE='#' 6872else 6873 AMULE_DAEMON_TRUE='#' 6874 AMULE_DAEMON_FALSE= 6875fi 6876 6877 6878# Check whether --enable-amulecmd was given. 6879if test "${enable_amulecmd+set}" = set; then : 6880 enableval=$enable_amulecmd; 6881fi 6882 6883 if test ${enable_amulecmd:-no} = yes; then 6884 COMPILE_CMD_TRUE= 6885 COMPILE_CMD_FALSE='#' 6886else 6887 COMPILE_CMD_TRUE='#' 6888 COMPILE_CMD_FALSE= 6889fi 6890 6891 6892# Check whether --enable-webserver was given. 6893if test "${enable_webserver+set}" = set; then : 6894 enableval=$enable_webserver; 6895fi 6896 6897 if test ${enable_webserver:-no} = yes; then 6898 WEB_TRUE= 6899 WEB_FALSE='#' 6900else 6901 WEB_TRUE='#' 6902 WEB_FALSE= 6903fi 6904 6905 6906# Check whether --enable-amule-gui was given. 6907if test "${enable_amule_gui+set}" = set; then : 6908 enableval=$enable_amule_gui; 6909fi 6910 6911 if test ${enable_amule_gui:-no} = yes; then 6912 AMULE_GUI_TRUE= 6913 AMULE_GUI_FALSE='#' 6914else 6915 AMULE_GUI_TRUE='#' 6916 AMULE_GUI_FALSE= 6917fi 6918 6919 6920# Check whether --enable-cas was given. 6921if test "${enable_cas+set}" = set; then : 6922 enableval=$enable_cas; 6923fi 6924 6925 if test ${enable_cas:-no} = yes; then 6926 CAS_TRUE= 6927 CAS_FALSE='#' 6928else 6929 CAS_TRUE='#' 6930 CAS_FALSE= 6931fi 6932 6933 6934# Check whether --enable-wxcas was given. 6935if test "${enable_wxcas+set}" = set; then : 6936 enableval=$enable_wxcas; 6937fi 6938 6939 if test ${enable_wxcas:-no} = yes; then 6940 WXCAS_TRUE= 6941 WXCAS_FALSE='#' 6942else 6943 WXCAS_TRUE='#' 6944 WXCAS_FALSE= 6945fi 6946 6947 6948# Check whether --enable-ed2k was given. 6949if test "${enable_ed2k+set}" = set; then : 6950 enableval=$enable_ed2k; 6951fi 6952 6953 if test ${enable_ed2k:-yes} = yes; then 6954 ED2K_TRUE= 6955 ED2K_FALSE='#' 6956else 6957 ED2K_TRUE='#' 6958 ED2K_FALSE= 6959fi 6960 6961 6962# Check whether --enable-alc was given. 6963if test "${enable_alc+set}" = set; then : 6964 enableval=$enable_alc; 6965fi 6966 6967 if test ${enable_alc:-no} = yes; then 6968 ALC_TRUE= 6969 ALC_FALSE='#' 6970else 6971 ALC_TRUE='#' 6972 ALC_FALSE= 6973fi 6974 6975 6976# Check whether --enable-alcc was given. 6977if test "${enable_alcc+set}" = set; then : 6978 enableval=$enable_alcc; 6979fi 6980 6981 if test ${enable_alcc:-no} = yes; then 6982 ALCC_TRUE= 6983 ALCC_FALSE='#' 6984else 6985 ALCC_TRUE='#' 6986 ALCC_FALSE= 6987fi 6988 6989 6990# Check whether --enable-xas was given. 6991if test "${enable_xas+set}" = set; then : 6992 enableval=$enable_xas; 6993fi 6994 6995 if test ${enable_xas:-no} = yes; then 6996 XAS_TRUE= 6997 XAS_FALSE='#' 6998else 6999 XAS_TRUE='#' 7000 XAS_FALSE= 7001fi 7002 7003 7004# Check whether --enable-fileview was given. 7005if test "${enable_fileview+set}" = set; then : 7006 enableval=$enable_fileview; 7007fi 7008 7009 if test ${enable_fileview:-no} = yes; then 7010 FILEVIEW_TRUE= 7011 FILEVIEW_FALSE='#' 7012else 7013 FILEVIEW_TRUE='#' 7014 FILEVIEW_FALSE= 7015fi 7016 7017 7018# Check whether --enable-plasmamule was given. 7019if test "${enable_plasmamule+set}" = set; then : 7020 enableval=$enable_plasmamule; 7021fi 7022 7023 7024 7025# Run all the tests with static linkage if we want a statically linked binary 7026# Check whether --enable-static was given. 7027if test "${enable_static+set}" = set; then : 7028 enableval=$enable_static; 7029fi 7030 7031 7032if test ${enable_static:-no} = yes; then : 7033 LDFLAGS="$LDFLAGS -static" 7034fi 7035 7036 7037 7038# Check whether --with-kde4-config was given. 7039if test "${with_kde4_config+set}" = set; then : 7040 withval=$with_kde4_config; KDE4_CONFIG=$withval 7041else 7042 KDE4_CONFIG="" 7043fi 7044 7045 # Check whether --enable-kde-in-home was given. 7046if test "${enable_kde_in_home+set}" = set; then : 7047 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval 7048else 7049 KDE_IN_HOME=no 7050fi 7051 7052 7053 7054 7055# Check whether --with-moc was given. 7056if test "${with_moc+set}" = set; then : 7057 withval=$with_moc; QT_MOC=$withval 7058else 7059 QT_MOC="" 7060fi 7061 7062 7063 7064# Default is yes, because they're most likely compatible. 7065# However, this is only used when cross-compiling. 7066 7067# Check whether --with-gnu-malloc was given. 7068if test "${with_gnu_malloc+set}" = set; then : 7069 withval=$with_gnu_malloc; gnumalloc=$withval 7070else 7071 gnumalloc=yes 7072fi 7073 7074 7075 7076# Checking for libs before all other stuff to break 7077# configure as soon as possible in case of a missing one 7078# to avoid losing too much time 7079 7080# Check for gd 7081 7082 7083if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 7084 if test -n "$ac_tool_prefix"; then 7085 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 7086set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 7087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7088$as_echo_n "checking for $ac_word... " >&6; } 7089if ${ac_cv_path_PKG_CONFIG+:} false; then : 7090 $as_echo_n "(cached) " >&6 7091else 7092 case $PKG_CONFIG in 7093 [\\/]* | ?:[\\/]*) 7094 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7095 ;; 7096 *) 7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7098for as_dir in $PATH 7099do 7100 IFS=$as_save_IFS 7101 test -z "$as_dir" && as_dir=. 7102 for ac_exec_ext in '' $ac_executable_extensions; do 7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7104 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7106 break 2 7107 fi 7108done 7109 done 7110IFS=$as_save_IFS 7111 7112 ;; 7113esac 7114fi 7115PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7116if test -n "$PKG_CONFIG"; then 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 7118$as_echo "$PKG_CONFIG" >&6; } 7119else 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7121$as_echo "no" >&6; } 7122fi 7123 7124 7125fi 7126if test -z "$ac_cv_path_PKG_CONFIG"; then 7127 ac_pt_PKG_CONFIG=$PKG_CONFIG 7128 # Extract the first word of "pkg-config", so it can be a program name with args. 7129set dummy pkg-config; ac_word=$2 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7131$as_echo_n "checking for $ac_word... " >&6; } 7132if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 7133 $as_echo_n "(cached) " >&6 7134else 7135 case $ac_pt_PKG_CONFIG in 7136 [\\/]* | ?:[\\/]*) 7137 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 7138 ;; 7139 *) 7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7141for as_dir in $PATH 7142do 7143 IFS=$as_save_IFS 7144 test -z "$as_dir" && as_dir=. 7145 for ac_exec_ext in '' $ac_executable_extensions; do 7146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7147 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7149 break 2 7150 fi 7151done 7152 done 7153IFS=$as_save_IFS 7154 7155 ;; 7156esac 7157fi 7158ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 7159if test -n "$ac_pt_PKG_CONFIG"; then 7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 7161$as_echo "$ac_pt_PKG_CONFIG" >&6; } 7162else 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7164$as_echo "no" >&6; } 7165fi 7166 7167 if test "x$ac_pt_PKG_CONFIG" = x; then 7168 PKG_CONFIG="" 7169 else 7170 case $cross_compiling:$ac_tool_warned in 7171yes:) 7172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7174ac_tool_warned=yes ;; 7175esac 7176 PKG_CONFIG=$ac_pt_PKG_CONFIG 7177 fi 7178else 7179 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 7180fi 7181 7182fi 7183if test -n "$PKG_CONFIG"; then 7184 _pkg_min_version=0.9.0 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 7186$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 7187 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7189$as_echo "yes" >&6; } 7190 else 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7192$as_echo "no" >&6; } 7193 PKG_CONFIG="" 7194 fi 7195 7196fi 7197 7198 7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7200$as_echo_n "checking for ANSI C header files... " >&6; } 7201if ${ac_cv_header_stdc+:} false; then : 7202 $as_echo_n "(cached) " >&6 7203else 7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7205/* end confdefs.h. */ 7206#include <stdlib.h> 7207#include <stdarg.h> 7208#include <string.h> 7209#include <float.h> 7210 7211int 7212main () 7213{ 7214 7215 ; 7216 return 0; 7217} 7218_ACEOF 7219if ac_fn_c_try_compile "$LINENO"; then : 7220 ac_cv_header_stdc=yes 7221else 7222 ac_cv_header_stdc=no 7223fi 7224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7225 7226if test $ac_cv_header_stdc = yes; then 7227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7229/* end confdefs.h. */ 7230#include <string.h> 7231 7232_ACEOF 7233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7234 $EGREP "memchr" >/dev/null 2>&1; then : 7235 7236else 7237 ac_cv_header_stdc=no 7238fi 7239rm -f conftest* 7240 7241fi 7242 7243if test $ac_cv_header_stdc = yes; then 7244 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7246/* end confdefs.h. */ 7247#include <stdlib.h> 7248 7249_ACEOF 7250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7251 $EGREP "free" >/dev/null 2>&1; then : 7252 7253else 7254 ac_cv_header_stdc=no 7255fi 7256rm -f conftest* 7257 7258fi 7259 7260if test $ac_cv_header_stdc = yes; then 7261 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7262 if test "$cross_compiling" = yes; then : 7263 : 7264else 7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7266/* end confdefs.h. */ 7267#include <ctype.h> 7268#include <stdlib.h> 7269#if ((' ' & 0x0FF) == 0x020) 7270# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7271# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7272#else 7273# define ISLOWER(c) \ 7274 (('a' <= (c) && (c) <= 'i') \ 7275 || ('j' <= (c) && (c) <= 'r') \ 7276 || ('s' <= (c) && (c) <= 'z')) 7277# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7278#endif 7279 7280#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7281int 7282main () 7283{ 7284 int i; 7285 for (i = 0; i < 256; i++) 7286 if (XOR (islower (i), ISLOWER (i)) 7287 || toupper (i) != TOUPPER (i)) 7288 return 2; 7289 return 0; 7290} 7291_ACEOF 7292if ac_fn_c_try_run "$LINENO"; then : 7293 7294else 7295 ac_cv_header_stdc=no 7296fi 7297rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7298 conftest.$ac_objext conftest.beam conftest.$ac_ext 7299fi 7300 7301fi 7302fi 7303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7304$as_echo "$ac_cv_header_stdc" >&6; } 7305if test $ac_cv_header_stdc = yes; then 7306 7307$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7308 7309fi 7310 7311# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7312for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7313 inttypes.h stdint.h unistd.h 7314do : 7315 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7316ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7317" 7318if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7319 cat >>confdefs.h <<_ACEOF 7320#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7321_ACEOF 7322 7323fi 7324 7325done 7326 7327 7328if test ${enable_cas:-no} = yes; then : 7329 7330 7331 7332 7333# Check whether --with-gdlib-prefix was given. 7334if test "${with_gdlib_prefix+set}" = set; then : 7335 withval=$with_gdlib_prefix; 7336fi 7337 7338 7339# Check whether --with-gdlib-config was given. 7340if test "${with_gdlib_config+set}" = set; then : 7341 withval=$with_gdlib_config; 7342fi 7343 7344 7345 GDLIB_VERSION= 7346 7347 # Check gdlib in pkg-config first to avoid deprecation warnings 7348 # If --with-gdlib-config or --with-gdlib-prefix was given, then 7349 # skip the pkg-config check, the user probably wants to use 7350 # another gdlib instance. 7351 if test -z "${with_gdlib_config:-}${with_gdlib_prefix:-}"; then : 7352 7353 if test -n "$PKG_CONFIG"; then : 7354 7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib" >&5 7356$as_echo_n "checking for gdlib... " >&6; } 7357 7358 if $PKG_CONFIG gdlib --exists; then : 7359 7360 GDLIB_VERSION=`$PKG_CONFIG gdlib --modversion` 7361 7362 if $PKG_CONFIG gdlib --atleast-version=2.0.0; then : 7363 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5 7365$as_echo "yes (version $GDLIB_VERSION)" >&6; } 7366 GDLIB_CFLAGS=`$PKG_CONFIG gdlib --cflags` 7367 GDLIB_LDFLAGS=`$PKG_CONFIG gdlib --libs-only-L` 7368 GDLIB_LIBS=`$PKG_CONFIG gdlib --libs-only-other` 7369 GDLIB_LIBS="$GDLIB_LIBS `$PKG_CONFIG gdlib --libs-only-l`" 7370 7371else 7372 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5 7374$as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; } 7375 GDLIB_VERSION= 7376 7377fi 7378 7379else 7380 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7382$as_echo "no" >&6; } 7383 7384fi 7385 7386fi 7387 7388fi 7389 7390 # Try gdlib-config if we did not find a sufficient gdlib version in pkg-config 7391 if test -z "$GDLIB_VERSION"; then : 7392 7393 # do we have gdlib-config name: it can be gdlib-config or gd-config or ... 7394 if test x${GDLIB_CONFIG_NAME+set} != xset; then : 7395 GDLIB_CONFIG_NAME=gdlib-config 7396fi 7397 if test -n "$with_gdlib_config"; then : 7398 GDLIB_CONFIG_NAME="$with_gdlib_config" 7399fi 7400 7401 # deal with optional prefix 7402 if test -n "$with_gdlib_prefix"; then : 7403 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin" 7404fi 7405 7406 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename 7407 if test -x "$GDLIB_CONFIG_NAME"; then : 7408 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5 7410$as_echo_n "checking for gdlib-config... " >&6; } 7411 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME" 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5 7413$as_echo "$GDLIB_CONFIG_PATH" >&6; } 7414 7415else 7416 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args. 7417set dummy $GDLIB_CONFIG_NAME; ac_word=$2 7418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7419$as_echo_n "checking for $ac_word... " >&6; } 7420if ${ac_cv_path_GDLIB_CONFIG_PATH+:} false; then : 7421 $as_echo_n "(cached) " >&6 7422else 7423 case $GDLIB_CONFIG_PATH in 7424 [\\/]* | ?:[\\/]*) 7425 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path. 7426 ;; 7427 *) 7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7429as_dummy="$GDLIB_LOOKUP_PATH:$PATH" 7430for as_dir in $as_dummy 7431do 7432 IFS=$as_save_IFS 7433 test -z "$as_dir" && as_dir=. 7434 for ac_exec_ext in '' $ac_executable_extensions; do 7435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7436 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext" 7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7438 break 2 7439 fi 7440done 7441 done 7442IFS=$as_save_IFS 7443 7444 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no" 7445 ;; 7446esac 7447fi 7448GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH 7449if test -n "$GDLIB_CONFIG_PATH"; then 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5 7451$as_echo "$GDLIB_CONFIG_PATH" >&6; } 7452else 7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7454$as_echo "no" >&6; } 7455fi 7456 7457 7458fi 7459 7460 if test ${GDLIB_CONFIG_PATH:-no} != no; then : 7461 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5 7463$as_echo_n "checking for gdlib version >= 2.0.0... " >&6; } 7464 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args" 7465 7466 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version` 7467 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'` 7468 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'` 7469 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` 7470 7471 if test $gdlib_config_major_version -gt 2; then 7472 gdlib_ver_ok=yes 7473elif test $gdlib_config_major_version -eq 2; then 7474 7475 if test $gdlib_config_minor_version -gt 0; then 7476 gdlib_ver_ok=yes 7477elif test $gdlib_config_minor_version -eq 0; then 7478 if test $gdlib_config_micro_version -ge 0; then 7479 gdlib_ver_ok=yes 7480fi 7481 7482fi 7483 7484 7485fi 7486 7487 7488fi 7489 7490 if test -z "${gdlib_ver_ok:-}"; then : 7491 7492 if test -z "$GDLIB_VERSION"; then : 7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7494$as_echo "no" >&6; } 7495else 7496 7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5 7498$as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; } 7499 GDLIB_VERSION= 7500 7501fi 7502 7503else 7504 7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5 7506$as_echo "yes (version $GDLIB_VERSION)" >&6; } 7507 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`" 7508 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`" 7509 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`" 7510 7511fi 7512 7513fi 7514 7515 if test -n "$GDLIB_VERSION"; then : 7516 7517 mule_backup_CFLAGS="$CFLAGS" 7518 CFLAGS="$CFLAGS $GDLIB_CFLAGS" 7519 7520 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default" 7521if test "x$ac_cv_header_gd_h" = xyes; then : 7522 7523else 7524 7525 GDLIB_CFLAGS= 7526 GDLIB_LDFLAGS= 7527 GDLIB_LIBS= 7528 GDLIB_VERSION= 7529 7530fi 7531 7532 7533 7534 CFLAGS="$mule_backup_CFLAGS" 7535 7536fi 7537 7538 if test -n "$GDLIB_VERSION"; then : 7539 7540 CAS_DEFS="-D__GD__" 7541 GDLIB_LIBS="-lgd" 7542 7543else 7544 CAS_DEFS= 7545fi 7546 7547 7548 7549 if test -z "$CAS_DEFS"; then : 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 7551 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found. 7552 Please check that gdlib-config is in your default path, check out 7553 LD_LIBRARY_PATH or equivalent variable. 7554 Or this might also be that your gdlib-config has other name. 7555 Please try again with --with-gdlib-config=/usr/bin/gdlib-config 7556 (replace /usr/bin/gdlib-config with a valid path to your 7557 gdlib-config). 7558 If you use compiled packages check if you have devel pack installed. 7559 To download the latest version check http://www.boutell.com/gd for 7560 sources." >&5 7561$as_echo "$as_me: WARNING: 7562 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found. 7563 Please check that gdlib-config is in your default path, check out 7564 LD_LIBRARY_PATH or equivalent variable. 7565 Or this might also be that your gdlib-config has other name. 7566 Please try again with --with-gdlib-config=/usr/bin/gdlib-config 7567 (replace /usr/bin/gdlib-config with a valid path to your 7568 gdlib-config). 7569 If you use compiled packages check if you have devel pack installed. 7570 To download the latest version check http://www.boutell.com/gd for 7571 sources." >&2;} 7572_mule_warning_0=yes 7573_mule_has_warnings=yes 7574 7575fi 7576 7577fi 7578 7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 7580$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 7581if ${ac_cv_header_stdbool_h+:} false; then : 7582 $as_echo_n "(cached) " >&6 7583else 7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7585/* end confdefs.h. */ 7586 7587 #include <stdbool.h> 7588 #ifndef bool 7589 "error: bool is not defined" 7590 #endif 7591 #ifndef false 7592 "error: false is not defined" 7593 #endif 7594 #if false 7595 "error: false is not 0" 7596 #endif 7597 #ifndef true 7598 "error: true is not defined" 7599 #endif 7600 #if true != 1 7601 "error: true is not 1" 7602 #endif 7603 #ifndef __bool_true_false_are_defined 7604 "error: __bool_true_false_are_defined is not defined" 7605 #endif 7606 7607 struct s { _Bool s: 1; _Bool t; } s; 7608 7609 char a[true == 1 ? 1 : -1]; 7610 char b[false == 0 ? 1 : -1]; 7611 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 7612 char d[(bool) 0.5 == true ? 1 : -1]; 7613 /* See body of main program for 'e'. */ 7614 char f[(_Bool) 0.0 == false ? 1 : -1]; 7615 char g[true]; 7616 char h[sizeof (_Bool)]; 7617 char i[sizeof s.t]; 7618 enum { j = false, k = true, l = false * true, m = true * 256 }; 7619 /* The following fails for 7620 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 7621 _Bool n[m]; 7622 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 7623 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 7624 /* Catch a bug in an HP-UX C compiler. See 7625 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 7626 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 7627 */ 7628 _Bool q = true; 7629 _Bool *pq = &q; 7630 7631int 7632main () 7633{ 7634 7635 bool e = &s; 7636 *pq |= q; 7637 *pq |= ! q; 7638 /* Refer to every declared value, to avoid compiler optimizations. */ 7639 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 7640 + !m + !n + !o + !p + !q + !pq); 7641 7642 ; 7643 return 0; 7644} 7645_ACEOF 7646if ac_fn_c_try_compile "$LINENO"; then : 7647 ac_cv_header_stdbool_h=yes 7648else 7649 ac_cv_header_stdbool_h=no 7650fi 7651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7652fi 7653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 7654$as_echo "$ac_cv_header_stdbool_h" >&6; } 7655 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 7656if test "x$ac_cv_type__Bool" = xyes; then : 7657 7658cat >>confdefs.h <<_ACEOF 7659#define HAVE__BOOL 1 7660_ACEOF 7661 7662 7663fi 7664 7665 7666if test $ac_cv_header_stdbool_h = yes; then 7667 7668$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 7669 7670fi 7671 7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 7673$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 7674if ${ac_cv_c_const+:} false; then : 7675 $as_echo_n "(cached) " >&6 7676else 7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7678/* end confdefs.h. */ 7679 7680int 7681main () 7682{ 7683 7684#ifndef __cplusplus 7685 /* Ultrix mips cc rejects this sort of thing. */ 7686 typedef int charset[2]; 7687 const charset cs = { 0, 0 }; 7688 /* SunOS 4.1.1 cc rejects this. */ 7689 char const *const *pcpcc; 7690 char **ppc; 7691 /* NEC SVR4.0.2 mips cc rejects this. */ 7692 struct point {int x, y;}; 7693 static struct point const zero = {0,0}; 7694 /* AIX XL C 1.02.0.0 rejects this. 7695 It does not let you subtract one const X* pointer from another in 7696 an arm of an if-expression whose if-part is not a constant 7697 expression */ 7698 const char *g = "string"; 7699 pcpcc = &g + (g ? g-g : 0); 7700 /* HPUX 7.0 cc rejects these. */ 7701 ++pcpcc; 7702 ppc = (char**) pcpcc; 7703 pcpcc = (char const *const *) ppc; 7704 { /* SCO 3.2v4 cc rejects this sort of thing. */ 7705 char tx; 7706 char *t = &tx; 7707 char const *s = 0 ? (char *) 0 : (char const *) 0; 7708 7709 *t++ = 0; 7710 if (s) return 0; 7711 } 7712 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7713 int x[] = {25, 17}; 7714 const int *foo = &x[0]; 7715 ++foo; 7716 } 7717 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7718 typedef const int *iptr; 7719 iptr p = 0; 7720 ++p; 7721 } 7722 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 7723 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7724 struct s { int j; const int *ap[3]; } bx; 7725 struct s *b = &bx; b->j = 5; 7726 } 7727 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7728 const int foo = 10; 7729 if (!foo) return 0; 7730 } 7731 return !cs[0] && !zero.x; 7732#endif 7733 7734 ; 7735 return 0; 7736} 7737_ACEOF 7738if ac_fn_c_try_compile "$LINENO"; then : 7739 ac_cv_c_const=yes 7740else 7741 ac_cv_c_const=no 7742fi 7743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7744fi 7745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 7746$as_echo "$ac_cv_c_const" >&6; } 7747if test $ac_cv_c_const = no; then 7748 7749$as_echo "#define const /**/" >>confdefs.h 7750 7751fi 7752 7753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 7754$as_echo_n "checking for inline... " >&6; } 7755if ${ac_cv_c_inline+:} false; then : 7756 $as_echo_n "(cached) " >&6 7757else 7758 ac_cv_c_inline=no 7759for ac_kw in inline __inline__ __inline; do 7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7761/* end confdefs.h. */ 7762#ifndef __cplusplus 7763typedef int foo_t; 7764static $ac_kw foo_t static_foo () {return 0; } 7765$ac_kw foo_t foo () {return 0; } 7766#endif 7767 7768_ACEOF 7769if ac_fn_c_try_compile "$LINENO"; then : 7770 ac_cv_c_inline=$ac_kw 7771fi 7772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7773 test "$ac_cv_c_inline" != no && break 7774done 7775 7776fi 7777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 7778$as_echo "$ac_cv_c_inline" >&6; } 7779 7780case $ac_cv_c_inline in 7781 inline | yes) ;; 7782 *) 7783 case $ac_cv_c_inline in 7784 no) ac_val=;; 7785 *) ac_val=$ac_cv_c_inline;; 7786 esac 7787 cat >>confdefs.h <<_ACEOF 7788#ifndef __cplusplus 7789#define inline $ac_val 7790#endif 7791_ACEOF 7792 ;; 7793esac 7794 7795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 7796$as_echo_n "checking for working volatile... " >&6; } 7797if ${ac_cv_c_volatile+:} false; then : 7798 $as_echo_n "(cached) " >&6 7799else 7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7801/* end confdefs.h. */ 7802 7803int 7804main () 7805{ 7806 7807volatile int x; 7808int * volatile y = (int *) 0; 7809return !x && !y; 7810 ; 7811 return 0; 7812} 7813_ACEOF 7814if ac_fn_c_try_compile "$LINENO"; then : 7815 ac_cv_c_volatile=yes 7816else 7817 ac_cv_c_volatile=no 7818fi 7819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7820fi 7821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 7822$as_echo "$ac_cv_c_volatile" >&6; } 7823if test $ac_cv_c_volatile = no; then 7824 7825$as_echo "#define volatile /**/" >>confdefs.h 7826 7827fi 7828 7829 7830ac_ext=cpp 7831ac_cpp='$CXXCPP $CPPFLAGS' 7832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7835 7836 7837 7838# Check for zlib 7839 7840if 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 : 7841 7842 7843# Check whether --with-zlib was given. 7844if test "${with_zlib+set}" = set; then : 7845 withval=$with_zlib; 7846fi 7847 7848 7849 case "${with_zlib:-yes}" in 7850 no) 7851 as_fn_error $? "zlib >= 1.1.4 is required for aMule" "$LINENO" 5 7852 ;; 7853 yes | sys) 7854 ;; 7855 *) 7856 zlib_prefix="$with_zlib" 7857 esac 7858 7859 mule_backup_CPPFLAGS="$CPPFLAGS" 7860 mule_backup_LDFLAGS="$LDFLAGS" 7861 mule_backup_LIBS="$LIBS" 7862 if test -n "$zlib_prefix"; then : 7863 7864 ZLIB_CPPFLAGS="-I$zlib_prefix/include" 7865 ZLIB_LDFLAGS="-L$zlib_prefix/lib" 7866 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS" 7867 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS" 7868 7869else 7870 7871 ZLIB_CPPFLAGS= 7872 ZLIB_LDFLAGS= 7873 7874fi 7875 ZLIB_LIBS="-lz" 7876 LIBS="$ZLIB_LIBS $LIBS" 7877 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5 7879$as_echo_n "checking for zlib >= 1.1.4... " >&6; } 7880 if test "$cross_compiling" = yes; then : 7881 7882 result=no 7883 z_version= 7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7885/* end confdefs.h. */ 7886 7887 7888 #include <zlib.h> 7889 #include <stdio.h> 7890 7891int 7892main () 7893{ 7894 7895 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n"); 7896 zlibVersion(); 7897 7898 ; 7899 return 0; 7900} 7901 7902_ACEOF 7903if ac_fn_cxx_try_link "$LINENO"; then : 7904 7905 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'` 7906 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`" 7907 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`" 7908 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`" 7909 if test "$cross_zver_max" -gt "1"; then 7910 result=yes 7911elif test "$cross_zver_max" -eq "1"; then 7912 7913 if test "$cross_zver_mid" -gt "1"; then 7914 result=yes 7915elif test "$cross_zver_mid" -eq "1"; then 7916 if test "$cross_zver_min" -ge "4"; then 7917 result=yes 7918fi 7919 7920fi 7921 7922 7923fi 7924 7925 if test ${result:-no} = yes; then : 7926 z_version=" (version $ZLIB_VERSION)" 7927fi 7928 7929fi 7930rm -f core conftest.err conftest.$ac_objext \ 7931 conftest$ac_exeext conftest.$ac_ext 7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5 7933$as_echo "$result$z_version" >&6; } 7934 7935else 7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7937/* end confdefs.h. */ 7938 7939 7940 #include <zlib.h> 7941 #include <stdio.h> 7942 7943int 7944main () 7945{ 7946 const char *zver = zlibVersion(); 7947 FILE *f=fopen("conftestval", "w"); 7948 if (!f) return 1; 7949 fprintf(f, "%s", 7950 zver[0] > '1' || 7951 (zver[0] == '1' && 7952 (zver[2] > '1' || 7953 (zver[2] == '1' && 7954 zver[4] >= '4'))) ? "yes" : "no"); 7955 fclose(f); 7956 f=fopen("conftestver", "w"); 7957 if (f) { 7958 fprintf(f, "%s", ZLIB_VERSION); 7959 fclose(f); 7960 } 7961 7962 ; 7963 return 0; 7964} 7965 7966_ACEOF 7967if ac_fn_cxx_try_run "$LINENO"; then : 7968 7969 if test -f conftestval; then : 7970 result=`cat conftestval` 7971else 7972 result=no 7973fi 7974 if test ${result:-no} = yes; then : 7975 7976 if test -f conftestver; then : 7977 7978 ZLIB_VERSION=`cat conftestver` 7979 z_version=" (version $ZLIB_VERSION)" 7980 7981else 7982 z_version= 7983fi 7984 7985fi 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5 7987$as_echo "$result$z_version" >&6; } 7988 7989else 7990 7991 result=no 7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 7993$as_echo "$result" >&6; } 7994 7995fi 7996rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7997 conftest.$ac_objext conftest.beam conftest.$ac_ext 7998fi 7999 8000 8001 CPPFLAGS="$mule_backup_CPPFLAGS" 8002 LDFLAGS="$mule_backup_LDFLAGS" 8003 LIBS="$mule_backup_LIBS" 8004 8005 if test ${result:-no} = no; then : 8006 8007 ZLIB_CPPFLAGS= 8008 ZLIB_LDFLAGS= 8009 ZLIB_LIBS= 8010 as_fn_error $? "zlib >= 1.1.4 is required for aMule" "$LINENO" 5 8011 8012fi 8013 8014 8015fi 8016 8017 8018# Check for libpng 8019if test ${enable_webserver:-no} = yes; then : 8020 8021 8022# Check whether --with-libpng-prefix was given. 8023if test "${with_libpng_prefix+set}" = set; then : 8024 withval=$with_libpng_prefix; 8025fi 8026 8027 8028# Check whether --with-libpng-config was given. 8029if test "${with_libpng_config+set}" = set; then : 8030 withval=$with_libpng_config; 8031fi 8032 8033 8034 LIBPNG_VERSION= 8035 8036 # do we have libpng-config name: it can be libpng-config or libpng12-config or ... 8037 if test x${LIBPNG_CONFIG_NAME+set} != xset; then : 8038 LIBPNG_CONFIG_NAME=libpng-config 8039fi 8040 if test -n "$with_libpng_config"; then : 8041 LIBPNG_CONFIG_NAME="$with_libpng_config" 8042fi 8043 8044 # deal with optional prefix 8045 if test -n "$with_libpng_prefix"; then : 8046 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin" 8047fi 8048 8049 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename 8050 if test -x "$LIBPNG_CONFIG_NAME"; then : 8051 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5 8053$as_echo_n "checking for libpng-config... " >&6; } 8054 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME" 8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5 8056$as_echo "$LIBPNG_CONFIG_PATH" >&6; } 8057 8058else 8059 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args. 8060set dummy $LIBPNG_CONFIG_NAME; ac_word=$2 8061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8062$as_echo_n "checking for $ac_word... " >&6; } 8063if ${ac_cv_path_LIBPNG_CONFIG_PATH+:} false; then : 8064 $as_echo_n "(cached) " >&6 8065else 8066 case $LIBPNG_CONFIG_PATH in 8067 [\\/]* | ?:[\\/]*) 8068 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path. 8069 ;; 8070 *) 8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8072as_dummy="$LIBPNG_LOOKUP_PATH:$PATH" 8073for as_dir in $as_dummy 8074do 8075 IFS=$as_save_IFS 8076 test -z "$as_dir" && as_dir=. 8077 for ac_exec_ext in '' $ac_executable_extensions; do 8078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8079 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext" 8080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8081 break 2 8082 fi 8083done 8084 done 8085IFS=$as_save_IFS 8086 8087 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no" 8088 ;; 8089esac 8090fi 8091LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH 8092if test -n "$LIBPNG_CONFIG_PATH"; then 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5 8094$as_echo "$LIBPNG_CONFIG_PATH" >&6; } 8095else 8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8097$as_echo "no" >&6; } 8098fi 8099 8100 8101fi 8102 8103 if test ${LIBPNG_CONFIG_PATH:-no} != no; then : 8104 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5 8106$as_echo_n "checking for libpng version >= 1.2.0... " >&6; } 8107 8108 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args" 8109 8110 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version` 8111 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'` 8112 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'` 8113 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` 8114 8115 libpng_ver_ok= 8116 if test $libpng_config_major_version -gt 1; then 8117 libpng_ver_ok=yes 8118elif test $libpng_config_major_version -eq 1; then 8119 8120 if test $libpng_config_minor_version -gt 2; then 8121 libpng_ver_ok=yes 8122elif test $libpng_config_minor_version -eq 2; then 8123 if test $libpng_config_micro_version -ge 0; then 8124 libpng_ver_ok=yes 8125fi 8126 8127fi 8128 8129 8130fi 8131 8132 8133 if test -z "$libpng_ver_ok"; then : 8134 8135 if test -z "$LIBPNG_VERSION"; then : 8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8137$as_echo "no" >&6; } 8138else 8139 8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5 8141$as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; } 8142 LIBPNG_VERSION= 8143 8144fi 8145 8146else 8147 8148 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs` 8149 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"` 8150 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags` 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5 8152$as_echo "yes (version $LIBPNG_VERSION)" >&6; } 8153 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5 8155$as_echo_n "checking if libpng is usable... " >&6; } 8156 8157 SAVED_CFLAGS=$CFLAGS 8158 SAVED_LDFLAGS=$LDFLAGS 8159 SAVED_LIBS=$LIBS 8160 8161 CFLAGS="$CFLAGS $LIBPNG_CFLAGS" 8162 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS" 8163 LIBS="$LIBS $LIBPNG_LIBS" 8164 8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8166/* end confdefs.h. */ 8167 8168 8169 #include <png.h> 8170 #include <stdio.h> 8171 8172int 8173main () 8174{ 8175 8176 png_uint_32 libpng_vn = png_access_version_number(); 8177 printf("\nlibpng version %i\n\n", libpng_vn); 8178 8179 ; 8180 return 0; 8181} 8182 8183_ACEOF 8184if ac_fn_cxx_try_link "$LINENO"; then : 8185 8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8187$as_echo "yes" >&6; } 8188 8189else 8190 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5 8192$as_echo "no (failed to compile and link test program)" >&6; } 8193 LIBPNG_LIBS= 8194 LIBPNG_LDFLAGS= 8195 LIBPNG_CFLAGS= 8196 LIBPNG_VERSION= 8197 8198fi 8199rm -f core conftest.err conftest.$ac_objext \ 8200 conftest$ac_exeext conftest.$ac_ext 8201 8202 CFLAGS="$SAVED_CFLAGS" 8203 LDFLAGS="$SAVED_LDFLAGS" 8204 LIBS="$SAVED_LIBS" 8205 8206fi 8207 8208fi 8209 8210 if test -n "$LIBPNG_VERSION"; then : 8211 AMULEWEB_DEFS="-DWITH_LIBPNG" 8212else 8213 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 8215 libpng >= 1.2.0 not found. 8216 amuleweb will be compiled but file download progress bar images will 8217 NOT be generated." >&5 8218$as_echo "$as_me: WARNING: 8219 libpng >= 1.2.0 not found. 8220 amuleweb will be compiled but file download progress bar images will 8221 NOT be generated." >&2;} 8222_mule_warning_1=yes 8223_mule_has_warnings=yes 8224 8225 8226fi 8227 8228 8229 8230 8231fi 8232 8233 8234# Check for GeoIP (required for IP2Country capability) 8235 8236if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then : 8237 8238 # Check whether --enable-geoip was given. 8239if test "${enable_geoip+set}" = set; then : 8240 enableval=$enable_geoip; 8241fi 8242 8243 8244 8245 if test ${enable_geoip:-no} = yes; then : 8246 8247 8248# Check whether --with-geoip-headers was given. 8249if test "${with_geoip_headers+set}" = set; then : 8250 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval" 8251fi 8252 8253 8254# Check whether --with-geoip-lib was given. 8255if test "${with_geoip_lib+set}" = set; then : 8256 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval" 8257fi 8258 8259 8260 mule_backup_CPPFLAGS="$CPPFLAGS" 8261 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS" 8262 mule_backup_LDFLAGS="$LDFLAGS" 8263 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS" 8264 8265 ac_fn_cxx_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default" 8266if test "x$ac_cv_header_GeoIP_h" = xyes; then : 8267 8268 if test x$SYS = xwin32; then : 8269 8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5 8271$as_echo_n "checking for WinSock library needed by GeoIP... " >&6; } 8272 # Actually, we might not need any if GeoIP is linked as a .dll 8273 # - but that's even harder to check for 8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8275/* end confdefs.h. */ 8276 8277 8278 #include <GeoIP.h> 8279 #if (defined _WINSOCK2API_ || defined _WINSOCK2_H) 8280 I do know it's not the best approach, but at least works with MinGW stock headers. 8281 (tested with w32api-3.12) 8282 #endif 8283 8284int 8285main () 8286{ 8287 8288 ; 8289 return 0; 8290} 8291 8292_ACEOF 8293if ac_fn_cxx_try_compile "$LINENO"; then : 8294 8295 GEOIP_WINSOCK_LIB="-lwsock32" 8296 8297else 8298 8299 GEOIP_WINSOCK_LIB="-lws2_32" 8300 8301fi 8302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5 8304$as_echo "$GEOIP_WINSOCK_LIB" >&6; } 8305 8306fi 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5 8308$as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; } 8309if ${ac_cv_lib_GeoIP_GeoIP_open+:} false; then : 8310 $as_echo_n "(cached) " >&6 8311else 8312 ac_check_lib_save_LIBS=$LIBS 8313LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS" 8314cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8315/* end confdefs.h. */ 8316 8317/* Override any GCC internal prototype to avoid an error. 8318 Use char because int might match the return type of a GCC 8319 builtin and then its argument prototype would still apply. */ 8320#ifdef __cplusplus 8321extern "C" 8322#endif 8323char GeoIP_open (); 8324int 8325main () 8326{ 8327return GeoIP_open (); 8328 ; 8329 return 0; 8330} 8331_ACEOF 8332if ac_fn_cxx_try_link "$LINENO"; then : 8333 ac_cv_lib_GeoIP_GeoIP_open=yes 8334else 8335 ac_cv_lib_GeoIP_GeoIP_open=no 8336fi 8337rm -f core conftest.err conftest.$ac_objext \ 8338 conftest$ac_exeext conftest.$ac_ext 8339LIBS=$ac_check_lib_save_LIBS 8340fi 8341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5 8342$as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; } 8343if test "x$ac_cv_lib_GeoIP_GeoIP_open" = xyes; then : 8344 8345 8346$as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h 8347 8348 GEOIP_LIBS="-lGeoIP" 8349 if test x$SYS = xwin32; then : 8350 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB" 8351fi 8352 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1" 8353 8354# Check whether --with-geoip-static was given. 8355if test "${with_geoip_static+set}" = set; then : 8356 withval=$with_geoip_static; 8357 if test "$withval" != "no" -a ${enable_static:-no} = no; then : 8358 8359 mule_backup_LIBS="$LIBS" 8360 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS" 8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8362/* end confdefs.h. */ 8363 8364 8365 #include <GeoIP.h> 8366 8367int 8368main () 8369{ 8370 8371 GeoIP *g = GeoIP_new(GEOIP_STANDARD); 8372 8373 ; 8374 return 0; 8375} 8376 8377_ACEOF 8378if ac_fn_cxx_try_link "$LINENO"; then : 8379 8380 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic" 8381 8382else 8383 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 8385 Cannot link GeoIP statically, because your linker ($LD) does not 8386 support it." >&5 8387$as_echo "$as_me: WARNING: 8388 Cannot link GeoIP statically, because your linker ($LD) does not 8389 support it." >&2;} 8390_mule_warning_2=yes 8391_mule_has_warnings=yes 8392 8393 8394fi 8395rm -f core conftest.err conftest.$ac_objext \ 8396 conftest$ac_exeext conftest.$ac_ext 8397 LIBS="$mule_backup_LIBS" 8398 8399fi 8400 8401fi 8402 8403 8404else 8405 8406 enable_geoip=disabled 8407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 8408 GeoIP support has been disabled because the GeoIP libraries were not 8409 found" >&5 8410$as_echo "$as_me: WARNING: 8411 GeoIP support has been disabled because the GeoIP libraries were not 8412 found" >&2;} 8413_mule_warning_3=yes 8414_mule_has_warnings=yes 8415 8416 8417fi 8418 8419 8420else 8421 8422 enable_geoip=disabled 8423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 8424 GeoIP support has been disabled because the GeoIP header files were 8425 not found" >&5 8426$as_echo "$as_me: WARNING: 8427 GeoIP support has been disabled because the GeoIP header files were 8428 not found" >&2;} 8429_mule_warning_4=yes 8430_mule_has_warnings=yes 8431 8432 8433fi 8434 8435 8436 8437 CPPFLAGS="$mule_backup_CPPFLAGS" 8438 LDFLAGS="$mule_backup_LDFLAGS" 8439 8440fi 8441 8442fi 8443 8444 8445# Check for wx 8446if 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 : 8447 8448 8449# Check whether --with-wxdir was given. 8450if test "${with_wxdir+set}" = set; then : 8451 withval=$with_wxdir; wx_config_name="$withval/wx-config" 8452 wx_config_args="--inplace" 8453fi 8454 8455 8456# Check whether --with-wx-config was given. 8457if test "${with_wx_config+set}" = set; then : 8458 withval=$with_wx_config; wx_config_name="$withval" 8459fi 8460 8461 8462# Check whether --with-wx-prefix was given. 8463if test "${with_wx_prefix+set}" = set; then : 8464 withval=$with_wx_prefix; wx_config_prefix="$withval" 8465else 8466 wx_config_prefix="" 8467fi 8468 8469 8470# Check whether --with-wx-exec-prefix was given. 8471if test "${with_wx_exec_prefix+set}" = set; then : 8472 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval" 8473else 8474 wx_config_exec_prefix="" 8475fi 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489# Check whether --with-toolkit was given. 8490if test "${with_toolkit+set}" = set; then : 8491 withval=$with_toolkit; 8492else 8493 withval="auto" 8494fi 8495 8496 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5 8498$as_echo_n "checking for the --with-toolkit option... " >&6; } 8499 if test "$withval" = "auto" ; then 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5 8501$as_echo "will be automatically detected" >&6; } 8502 TOOLKIT="" 8503 else 8504 TOOLKIT="$withval" 8505 8506 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a "$TOOLKIT" != "gtk3" -a \ 8507 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \ 8508 "$TOOLKIT" != "osx_carbon" -a "$TOOLKIT" != "osx_cocoa" -a \ 8509 "$TOOLKIT" != "dfb" -a "$TOOLKIT" != "x11" -a "$TOOLKIT" != "base"; then 8510 as_fn_error $? " 8511 Unrecognized option value (allowed values: auto, gtk1, gtk2, gtk3, msw, motif, osx_carbon, osx_cocoa, dfb, x11, base) 8512 " "$LINENO" 5 8513 fi 8514 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5 8516$as_echo "$TOOLKIT" >&6; } 8517 fi 8518 8519 8520 8521 8522 8523# Check whether --with-wxshared was given. 8524if test "${with_wxshared+set}" = set; then : 8525 withval=$with_wxshared; 8526else 8527 withval="auto" 8528fi 8529 8530 8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5 8532$as_echo_n "checking for the --with-wxshared option... " >&6; } 8533 if test "$withval" = "yes" ; then 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8535$as_echo "yes" >&6; } 8536 WX_SHARED=1 8537 8538 elif test "1" = "1" -a "$withval" = "no" ; then 8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8540$as_echo "no" >&6; } 8541 WX_SHARED=0 8542 elif test "$withval" = "auto" ; then 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5 8544$as_echo "will be automatically detected" >&6; } 8545 WX_SHARED="" 8546 else 8547 as_fn_error $? " 8548 Unrecognized option value (allowed values: yes, auto) 8549 " "$LINENO" 5 8550 fi 8551 8552 8553 8554 8555 8556# Check whether --with-wxdebug was given. 8557if test "${with_wxdebug+set}" = set; then : 8558 withval=$with_wxdebug; 8559else 8560 withval="auto" 8561fi 8562 8563 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5 8565$as_echo_n "checking for the --with-wxdebug option... " >&6; } 8566 if test "$withval" = "yes" ; then 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8568$as_echo "yes" >&6; } 8569 WX_DEBUG=1 8570 8571 elif test "1" = "1" -a "$withval" = "no" ; then 8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8573$as_echo "no" >&6; } 8574 WX_DEBUG=0 8575 elif test "$withval" = "auto" ; then 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5 8577$as_echo "will be automatically detected" >&6; } 8578 WX_DEBUG="" 8579 else 8580 as_fn_error $? " 8581 Unrecognized option value (allowed values: yes, auto) 8582 " "$LINENO" 5 8583 fi 8584 8585 8586 8587 8588 8589# Check whether --with-wxversion was given. 8590if test "${with_wxversion+set}" = set; then : 8591 withval=$with_wxversion; 8592else 8593 withval="auto" 8594fi 8595 8596 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5 8598$as_echo_n "checking for the --with-wxversion option... " >&6; } 8599 if test "$withval" = "auto" ; then 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5 8601$as_echo "will be automatically detected" >&6; } 8602 WX_RELEASE="" 8603 else 8604 8605 wx_requested_major_version=`echo $withval | \ 8606 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'` 8607 wx_requested_minor_version=`echo $withval | \ 8608 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'` 8609 8610 if test "${#wx_requested_major_version}" != "1" -o \ 8611 "${#wx_requested_minor_version}" != "1" ; then 8612 as_fn_error $? " 8613 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9, 3.0) 8614 " "$LINENO" 5 8615 fi 8616 8617 WX_RELEASE="$wx_requested_major_version"".""$wx_requested_minor_version" 8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_RELEASE" >&5 8619$as_echo "$WX_RELEASE" >&6; } 8620 fi 8621 8622 8623 if test "$WX_DEBUG_CONFIGURE" = "1"; then 8624 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG" 8625 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE" 8626 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED" 8627 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT" 8628 echo "[dbg] VERSION: $VERSION, WX_RELEASE: $WX_RELEASE" 8629 fi 8630 8631 # Force using a static wxWidgets library if the executable is to be linked statically. 8632 if test ${enable_static:-no} = yes; then : 8633 WX_SHARED=0 8634fi 8635 # Force using a unicode build of the library 8636 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 : 8637 WX_UNICODE=1 8638fi 8639 DEBUG=$WX_DEBUG 8640 8641 if test "$WX_SHARED" = "1" ; then 8642 WXCONFIG_FLAGS="--static=no " 8643 elif test "$WX_SHARED" = "0" ; then 8644 WXCONFIG_FLAGS="--static=yes " 8645 fi 8646 8647 if test "$WX_DEBUG" = "1" ; then 8648 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes " 8649 elif test "$WX_DEBUG" = "0" ; then 8650 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no " 8651 fi 8652 8653 if test "$WX_UNICODE" = "1" ; then 8654 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes " 8655 elif test "$WX_UNICODE" = "0" ; then 8656 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no " 8657 fi 8658 8659 if test -n "$TOOLKIT" ; then 8660 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT " 8661 fi 8662 8663 if test -n "$WX_RELEASE" ; then 8664 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_RELEASE " 8665 fi 8666 8667 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% } 8668 8669 if test "$WX_DEBUG_CONFIGURE" = "1"; then 8670 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS" 8671 fi 8672 8673 8674 if test x${WX_CONFIG_NAME+set} != xset ; then 8675 WX_CONFIG_NAME=wx-config 8676 fi 8677 8678 if test "x$wx_config_name" != x ; then 8679 WX_CONFIG_NAME="$wx_config_name" 8680 fi 8681 8682 if test x$wx_config_exec_prefix != x ; then 8683 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix" 8684 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin" 8685 fi 8686 if test x$wx_config_prefix != x ; then 8687 wx_config_args="$wx_config_args --prefix=$wx_config_prefix" 8688 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin" 8689 fi 8690 if test "$cross_compiling" = "yes"; then 8691 wx_config_args="$wx_config_args --host=$host_alias" 8692 fi 8693 8694 if test -x "$WX_CONFIG_NAME" ; then 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5 8696$as_echo_n "checking for wx-config... " >&6; } 8697 WX_CONFIG_PATH="$WX_CONFIG_NAME" 8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5 8699$as_echo "$WX_CONFIG_PATH" >&6; } 8700 else 8701 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args. 8702set dummy $WX_CONFIG_NAME; ac_word=$2 8703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8704$as_echo_n "checking for $ac_word... " >&6; } 8705if ${ac_cv_path_WX_CONFIG_PATH+:} false; then : 8706 $as_echo_n "(cached) " >&6 8707else 8708 case $WX_CONFIG_PATH in 8709 [\\/]* | ?:[\\/]*) 8710 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path. 8711 ;; 8712 *) 8713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8714as_dummy=""$WX_LOOKUP_PATH:$PATH"" 8715for as_dir in $as_dummy 8716do 8717 IFS=$as_save_IFS 8718 test -z "$as_dir" && as_dir=. 8719 for ac_exec_ext in '' $ac_executable_extensions; do 8720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8721 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext" 8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8723 break 2 8724 fi 8725done 8726 done 8727IFS=$as_save_IFS 8728 8729 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no" 8730 ;; 8731esac 8732fi 8733WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH 8734if test -n "$WX_CONFIG_PATH"; then 8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5 8736$as_echo "$WX_CONFIG_PATH" >&6; } 8737else 8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8739$as_echo "no" >&6; } 8740fi 8741 8742 8743 fi 8744 8745 if test "$WX_CONFIG_PATH" != "no" ; then 8746 WX_VERSION="" 8747 8748 min_wx_version=2.8.12 8749 if test -z "$WXCONFIG_FLAGS" ; then 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5 8751$as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; } 8752 else 8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5 8754$as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; } 8755 fi 8756 8757 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS" 8758 8759 WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null` 8760 wx_config_major_version=`echo $WX_VERSION | \ 8761 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 8762 wx_config_minor_version=`echo $WX_VERSION | \ 8763 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 8764 wx_config_micro_version=`echo $WX_VERSION | \ 8765 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 8766 8767 wx_requested_major_version=`echo $min_wx_version | \ 8768 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 8769 wx_requested_minor_version=`echo $min_wx_version | \ 8770 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 8771 wx_requested_micro_version=`echo $min_wx_version | \ 8772 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 8773 8774 8775 wx_ver_ok="" 8776 if test "x$WX_VERSION" != x ; then 8777 if test $wx_config_major_version -gt $wx_requested_major_version; then 8778 wx_ver_ok=yes 8779 else 8780 if test $wx_config_major_version -eq $wx_requested_major_version; then 8781 if test $wx_config_minor_version -gt $wx_requested_minor_version; then 8782 wx_ver_ok=yes 8783 else 8784 if test $wx_config_minor_version -eq $wx_requested_minor_version; then 8785 if test $wx_config_micro_version -ge $wx_requested_micro_version; then 8786 wx_ver_ok=yes 8787 fi 8788 fi 8789 fi 8790 fi 8791 fi 8792 fi 8793 8794 8795 if test -n "$wx_ver_ok"; then 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION)" >&5 8797$as_echo "yes (version $WX_VERSION)" >&6; } 8798 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs ` 8799 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets static library" >&5 8801$as_echo_n "checking for wxWidgets static library... " >&6; } 8802 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null` 8803 if test "x$WX_LIBS_STATIC" = "x"; then 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8805$as_echo "no" >&6; } 8806 else 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8808$as_echo "yes" >&6; } 8809 fi 8810 8811 wx_has_cppflags="" 8812 if test $wx_config_major_version -gt 2; then 8813 wx_has_cppflags=yes 8814 else 8815 if test $wx_config_major_version -eq 2; then 8816 if test $wx_config_minor_version -gt 2; then 8817 wx_has_cppflags=yes 8818 else 8819 if test $wx_config_minor_version -eq 2; then 8820 if test $wx_config_micro_version -ge 6; then 8821 wx_has_cppflags=yes 8822 fi 8823 fi 8824 fi 8825 fi 8826 fi 8827 8828 wx_has_rescomp="" 8829 if test $wx_config_major_version -gt 2; then 8830 wx_has_rescomp=yes 8831 else 8832 if test $wx_config_major_version -eq 2; then 8833 if test $wx_config_minor_version -ge 7; then 8834 wx_has_rescomp=yes 8835 fi 8836 fi 8837 fi 8838 if test "x$wx_has_rescomp" = x ; then 8839 WX_RESCOMP= 8840 else 8841 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp` 8842 fi 8843 8844 if test "x$wx_has_cppflags" = x ; then 8845 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags ` 8846 WX_CPPFLAGS=$WX_CFLAGS 8847 WX_CXXFLAGS=$WX_CFLAGS 8848 8849 WX_CFLAGS_ONLY=$WX_CFLAGS 8850 WX_CXXFLAGS_ONLY=$WX_CFLAGS 8851 else 8852 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags ` 8853 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags ` 8854 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags ` 8855 8856 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"` 8857 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"` 8858 fi 8859 8860 wxWin=1 8861 8862 else 8863 8864 if test "x$WX_VERSION" = x; then 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8866$as_echo "no" >&6; } 8867 else 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION is not new enough)" >&5 8869$as_echo "no (version $WX_VERSION is not new enough)" >&6; } 8870 fi 8871 8872 WX_CFLAGS="" 8873 WX_CPPFLAGS="" 8874 WX_CXXFLAGS="" 8875 WX_LIBS="" 8876 WX_LIBS_STATIC="" 8877 WX_RESCOMP="" 8878 8879 if test ! -z "$WXCONFIG_FLAGS"; then 8880 8881 wx_error_message=" 8882 The configuration you asked for $PACKAGE_NAME requires a wxWidgets 8883 build with the following settings: 8884 $WXCONFIG_FLAGS 8885 but such build is not available. 8886 8887 To see the wxWidgets builds available on this system, please use 8888 'wx-config --list' command. To use the default build, returned by 8889 'wx-config --selected-config', use the options with their 'auto' 8890 default values." 8891 8892 fi 8893 8894 wx_error_message=" 8895 The requested wxWidgets build couldn't be found. 8896 $wx_error_message 8897 8898 If you still get this error, then check that 'wx-config' is 8899 in path, the directory where wxWidgets libraries are installed 8900 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH 8901 or equivalent variable and wxWidgets version is 2.8.12 or above." 8902 8903 as_fn_error $? "$wx_error_message" "$LINENO" 5 8904 8905 fi 8906 else 8907 8908 WX_CFLAGS="" 8909 WX_CPPFLAGS="" 8910 WX_CXXFLAGS="" 8911 WX_LIBS="" 8912 WX_LIBS_STATIC="" 8913 WX_RESCOMP="" 8914 8915 : 8916 8917 fi 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 WX_VERSION_MAJOR="$wx_config_major_version" 8930 WX_VERSION_MINOR="$wx_config_minor_version" 8931 WX_VERSION_MICRO="$wx_config_micro_version" 8932 8933 8934 8935 8936 if test "$wxWin" != 1; then : 8937 as_fn_error $? " 8938 wxWidgets must be installed on your system but wx-config 8939 script couldn't be found. Please check that wx-config is 8940 in path or specified by --with-wx-config=path flag, the 8941 directory where wxWidgets libraries are installed (returned 8942 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or 8943 equivalent variable and wxWidgets version is 2.8.12 or above. 8944 " "$LINENO" 5 8945 8946fi 8947 if test "${WX_VERSION_FULL}" = "2.9.0"; then : 8948 as_fn_error $? " 8949 This version of wxWidgets is known to not work with aMule. 8950 Please upgrade to a newer version. 8951 " "$LINENO" 5 8952 8953fi 8954 8955 WX_RELEASE="$WX_VERSION_MAJOR""$WX_VERSION_MINOR" 8956 if test $WX_RELEASE -lt 26 ; then 8957 8958 as_fn_error $? " 8959 Cannot detect the wxWidgets configuration for the selected wxWidgets build 8960 since its version is $WX_VERSION < 2.6.0; please install a newer 8961 version of wxWidgets. 8962 " "$LINENO" 5 8963 fi 8964 8965 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config) 8966 8967 if test "$WX_DEBUG_CONFIGURE" = "1"; then 8968 echo "[dbg] Using wx-config --selected-config" 8969 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG" 8970 fi 8971 8972 if test "$WX_SHARED" = "1"; then 8973 STATIC=0 8974 elif test "$WX_SHARED" = "0"; then 8975 STATIC=1 8976 fi 8977 8978 8979 if test -z "$UNICODE" ; then 8980 8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5 8982$as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; } 8983 8984 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*") 8985 8986 if test "$WX_UNICODE" != "0"; then 8987 WX_UNICODE=1 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8989$as_echo "yes" >&6; } 8990 else 8991 WX_UNICODE=0 8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8993$as_echo "no" >&6; } 8994 fi 8995 else 8996 8997 WX_UNICODE=$UNICODE 8998 fi 8999 9000 9001 if test -z "$DEBUG" ; then 9002 9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5 9004$as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; } 9005 9006 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*") 9007 9008 if test "$WX_DEBUG" != "0"; then 9009 WX_DEBUG=1 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9011$as_echo "yes" >&6; } 9012 else 9013 WX_DEBUG=0 9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9015$as_echo "no" >&6; } 9016 fi 9017 else 9018 9019 WX_DEBUG=$DEBUG 9020 fi 9021 9022 9023 if test -z "$STATIC" ; then 9024 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5 9026$as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; } 9027 9028 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*") 9029 9030 if test "$WX_STATIC" != "0"; then 9031 WX_STATIC=1 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9033$as_echo "yes" >&6; } 9034 else 9035 WX_STATIC=0 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9037$as_echo "no" >&6; } 9038 fi 9039 else 9040 9041 WX_STATIC=$STATIC 9042 fi 9043 9044 9045 if test "$WX_STATIC" != "0"; then 9046 WX_SHARED=0 9047 else 9048 WX_SHARED=1 9049 fi 9050 9051 9052 9053 9054 9055 if test -z "$TOOLKIT" ; then 9056 9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5 9058$as_echo_n "checking which wxWidgets toolkit was selected... " >&6; } 9059 9060 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*") 9061 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*") 9062 WX_GTKPORT3=$(expr "$WX_SELECTEDCONFIG" : ".*gtk3.*") 9063 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*") 9064 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*") 9065 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*") 9066 WX_OSXCARBONPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_carbon.*") 9067 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*") 9068 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*") 9069 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*") 9070 9071 WX_PORT="unknown" 9072 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi 9073 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi 9074 if test "$WX_GTKPORT3" != "0"; then WX_PORT="gtk3"; fi 9075 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi 9076 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi 9077 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi 9078 if test "$WX_OSXCARBONPORT" != "0"; then WX_PORT="osx_carbon"; fi 9079 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi 9080 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi 9081 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi 9082 9083 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*") 9084 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi 9085 9086 9087 if test "$WX_PORT" = "unknown" ; then 9088 as_fn_error $? " 9089 Cannot detect the currently installed wxWidgets port ! 9090 Please check your 'wx-config --cxxflags'... 9091 " "$LINENO" 5 9092 fi 9093 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5 9095$as_echo "$WX_PORT" >&6; } 9096 else 9097 WX_PORT=$TOOLKIT 9098 fi 9099 9100 9101 9102 if test "$WX_DEBUG_CONFIGURE" = "1"; then 9103 echo "[dbg] Values of all WX_* options after final detection:" 9104 echo "[dbg] WX_DEBUG: $WX_DEBUG" 9105 echo "[dbg] WX_UNICODE: $WX_UNICODE" 9106 echo "[dbg] WX_SHARED: $WX_SHARED" 9107 echo "[dbg] WX_RELEASE: $WX_RELEASE" 9108 echo "[dbg] WX_PORT: $WX_PORT" 9109 fi 9110 9111 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then 9112 as_fn_error $? " 9113 Cannot build shared library against a static build of wxWidgets ! 9114 This error happens because the wxWidgets build which was selected 9115 has been detected as static while you asked to build $PACKAGE_NAME 9116 as shared library and this is not possible. 9117 Use the '--disable-shared' option to build $PACKAGE_NAME 9118 as static library or '--with-wxshared' to use wxWidgets as shared library. 9119 " "$LINENO" 5 9120 fi 9121 9122 if test -z "$UNICODE" ; then 9123 UNICODE=$WX_UNICODE 9124 fi 9125 if test -z "$SHARED" ; then 9126 SHARED=$WX_SHARED 9127 fi 9128 if test -z "$TOOLKIT" ; then 9129 TOOLKIT=$WX_PORT 9130 fi 9131 9132 if test "$DEBUG" = "1"; then 9133 BUILD="debug" 9134 CXXFLAGS="$CXXFLAGS -g -O0" 9135 CFLAGS="$CFLAGS -g -O0" 9136 elif test "$DEBUG" = "0"; then 9137 BUILD="release" 9138 CXXFLAGS="$CXXFLAGS -O2" 9139 CFLAGS="$CFLAGS -O2" 9140 fi 9141 9142 9143 # We also need wxBase 9144 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net` 9145 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net` 9146 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0" 9147 9148 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'` 9149 9150fi 9151 9152if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then : 9153 if test "${WX_PORT}" = base; then : 9154 as_fn_error $? " 9155 The selected components need a wxWidgets library with GUI, 9156 but your installation is base-only. Please install a GUI 9157 enabled version of wxWidgets and then retry. 9158 " "$LINENO" 5 9159 9160fi 9161fi 9162 9163 9164if test ${SYS:-unknown} = win32; then : 9165 if test -n "$ac_tool_prefix"; then 9166 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 9167set dummy ${ac_tool_prefix}windres; ac_word=$2 9168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9169$as_echo_n "checking for $ac_word... " >&6; } 9170if ${ac_cv_prog_RC+:} false; then : 9171 $as_echo_n "(cached) " >&6 9172else 9173 if test -n "$RC"; then 9174 ac_cv_prog_RC="$RC" # Let the user override the test. 9175else 9176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9177for as_dir in $PATH 9178do 9179 IFS=$as_save_IFS 9180 test -z "$as_dir" && as_dir=. 9181 for ac_exec_ext in '' $ac_executable_extensions; do 9182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9183 ac_cv_prog_RC="${ac_tool_prefix}windres" 9184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9185 break 2 9186 fi 9187done 9188 done 9189IFS=$as_save_IFS 9190 9191fi 9192fi 9193RC=$ac_cv_prog_RC 9194if test -n "$RC"; then 9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 9196$as_echo "$RC" >&6; } 9197else 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9199$as_echo "no" >&6; } 9200fi 9201 9202 9203fi 9204if test -z "$ac_cv_prog_RC"; then 9205 ac_ct_RC=$RC 9206 # Extract the first word of "windres", so it can be a program name with args. 9207set dummy windres; ac_word=$2 9208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9209$as_echo_n "checking for $ac_word... " >&6; } 9210if ${ac_cv_prog_ac_ct_RC+:} false; then : 9211 $as_echo_n "(cached) " >&6 9212else 9213 if test -n "$ac_ct_RC"; then 9214 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. 9215else 9216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9217for as_dir in $PATH 9218do 9219 IFS=$as_save_IFS 9220 test -z "$as_dir" && as_dir=. 9221 for ac_exec_ext in '' $ac_executable_extensions; do 9222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9223 ac_cv_prog_ac_ct_RC="windres" 9224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9225 break 2 9226 fi 9227done 9228 done 9229IFS=$as_save_IFS 9230 9231fi 9232fi 9233ac_ct_RC=$ac_cv_prog_ac_ct_RC 9234if test -n "$ac_ct_RC"; then 9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 9236$as_echo "$ac_ct_RC" >&6; } 9237else 9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9239$as_echo "no" >&6; } 9240fi 9241 9242 if test "x$ac_ct_RC" = x; then 9243 RC=":" 9244 else 9245 case $cross_compiling:$ac_tool_warned in 9246yes:) 9247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9249ac_tool_warned=yes ;; 9250esac 9251 RC=$ac_ct_RC 9252 fi 9253else 9254 RC="$ac_cv_prog_RC" 9255fi 9256 9257fi 9258 9259 9260# Check for libupnp 9261# Check whether --enable-upnp was given. 9262if test "${enable_upnp+set}" = set; then : 9263 enableval=$enable_upnp; 9264fi 9265 9266 9267if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then : 9268 9269else 9270 enable_upnp=no 9271fi 9272if test ${enable_upnp:-yes} = yes; then : 9273 9274 9275 9276# Check whether --with-libupnp-prefix was given. 9277if test "${with_libupnp_prefix+set}" = set; then : 9278 withval=$with_libupnp_prefix; 9279 if test -d "$withval/lib64/pkgconfig"; then : 9280 9281 export PKG_CONFIG_PATH=$withval/lib64/pkgconfig 9282 9283else 9284 9285 export PKG_CONFIG_PATH=$withval/lib/pkgconfig 9286 9287fi 9288 9289fi 9290 9291 9292 if test $cross_compiling = no; then : 9293 9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5 9295$as_echo_n "checking for libupnp version >= 1.6.6... " >&6; } 9296 if test -n "$PKG_CONFIG"; then : 9297 9298 if $PKG_CONFIG libupnp --exists; then : 9299 9300 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion` 9301 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then : 9302 9303 result=yes 9304 resultstr=" (version $LIBUPNP_VERSION)" 9305 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I` 9306 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other` 9307 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L` 9308 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other` 9309 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`" 9310 9311else 9312 9313 result=no 9314 resultstr=" (version $LIBUPNP_VERSION is not new enough)" 9315 9316fi 9317 9318else 9319 9320 result=no 9321 resultstr=" (try to use --with-libupnp-prefix=PREFIX)" 9322 9323fi 9324 9325else 9326 9327 result=no 9328 resultstr=" (pkg-config not found)" 9329 9330fi 9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5 9332$as_echo "$result$resultstr" >&6; } 9333 libupnp_error="libupnp >= 1.6.6 not found$resultstr" 9334 9335else 9336 9337 result=no 9338 libupnp_error="cross compiling" 9339 9340fi 9341 9342 if test ${result:-no} = yes; then : 9343 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1" 9344else 9345 enable_upnp=disabled 9346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 9347 UPnP code has been disabled because ${libupnp_error}." >&5 9348$as_echo "$as_me: WARNING: 9349 UPnP code has been disabled because ${libupnp_error}." >&2;} 9350_mule_warning_5=yes 9351_mule_has_warnings=yes 9352 9353 9354fi 9355 9356 9357 9358fi 9359 9360# Check for Crypto++ (requires C++) 9361if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then : 9362 9363 9364# Check whether --with-crypto-prefix was given. 9365if test "${with_crypto_prefix+set}" = set; then : 9366 withval=$with_crypto_prefix; 9367fi 9368 9369 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5 9371$as_echo_n "checking for crypto++ version >= 5.1... " >&6; } 9372 9373 cryptopp_found=false 9374 9375 if test -n "$with_crypto_prefix"; then : 9376 9377 CRYPTOPP_PREFIX="$with_crypto_prefix" 9378 # Find the Cryptopp header in the user-provided location 9379 if test -f $CRYPTOPP_PREFIX/cryptlib.h; then 9380 9381 cryptopp_found=true 9382 CRYPTOPP_LIB_NAME="cryptopp" 9383 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX" 9384 CRYPTOPP_CPPFLAGS= 9385 CRYPTOPP_LDFLAGS= 9386 CRYPTOPP_LIBS="${CRYPTOPP_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a" 9387 9388else 9389 9390 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do 9391 if test -f $CRYPTOPP_PREFIX/include/$CRYPTOPP_LIB_NAME/cryptlib.h; then : 9392 9393 cryptopp_found=true 9394 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME" 9395 CRYPTOPP_CPPFLAGS="-I$CRYPTOPP_PREFIX/include" 9396 CRYPTOPP_LDFLAGS="-L$CRYPTOPP_PREFIX/lib" 9397 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME" 9398 break 9399 9400fi 9401 done 9402 9403fi 9404 9405 9406else 9407 9408 # Check whether the compiler can find it 9409 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do 9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9411/* end confdefs.h. */ 9412 9413 #include <$CRYPTOPP_LIB_NAME/cryptlib.h> 9414 9415int 9416main () 9417{ 9418 9419 ; 9420 return 0; 9421} 9422 9423_ACEOF 9424if ac_fn_cxx_try_compile "$LINENO"; then : 9425 9426 cryptopp_found=true 9427 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME" 9428 CRYPTOPP_CPPFLAGS= 9429 CRYPTOPP_LDFLAGS= 9430 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME" 9431 break 9432 9433fi 9434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9435 done 9436 9437fi 9438 9439 if $cryptopp_found; then : 9440 9441 # Find out the crypto++ version and check against the minimum required 9442 # Ask the compiler where are the crypto++ files 9443 mule_backup_CPPFLAGS="$CPPFLAGS" 9444 CPPFLAGS="$CPPFLAGS $CRYPTOPP_CPPFLAGS" 9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9446/* end confdefs.h. */ 9447 9448 #include <$CRYPTOPP_INCLUDE_PREFIX/cryptlib.h> 9449 9450_ACEOF 9451 cryptopp_header_path=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -e '/^#.*cryptlib.h/{s/.*"\(.*\)".*/\1/;q;};d'` 9452 rm -f conftest* 9453 CPPFLAGS="$mule_backup_CPPFLAGS" 9454 # Set a prefix suitable for --with-crypto-prefix 9455 CRYPTOPP_PREFIX="${cryptopp_header_path%/*}" 9456 CRYPTOPP_PREFIX="${CRYPTOPP_PREFIX%/include/${CRYPTOPP_LIB_NAME}}" 9457 # Now check the version 9458 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'` 9459 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` 9460 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` 9461 9462 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then : 9463 9464 result=yes 9465 resultstr=" (version $CRYPTOPP_VERSION_STRING)" 9466 9467 cat >>confdefs.h <<_ACEOF 9468#define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX 9469_ACEOF 9470 9471 9472else 9473 9474 result=no 9475 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)" 9476 CRYPTOPP_CPPFLAGS= 9477 CRYPTOPP_LDFLAGS= 9478 CRYPTOPP_LIBS= 9479 9480fi 9481 9482else 9483 result="no"; resultstr= 9484fi 9485 9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5 9487$as_echo "$result$resultstr" >&6; } 9488 9489 if test ${result:-no} = yes; then : 9490 9491 # Check for CryptoPP >= 5.5 9492 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then : 9493 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__" 9494fi 9495 9496else 9497 9498 as_fn_error $? " 9499 Could not find crypto++ installation or sources. 9500 Please try again with --with-crypto-prefix=/my_crypto_prefix 9501 (replace /my_crypto_prefix with a valid path to your crypto++ 9502 installation or source directory)." "$LINENO" 5 9503 9504fi 9505 9506 9507fi 9508 9509 9510 9511 # Check whether --enable-debug was given. 9512if test "${enable_debug+set}" = set; then : 9513 enableval=$enable_debug; 9514fi 9515 9516 9517 # Check whether --enable-profile was given. 9518if test "${enable_profile+set}" = set; then : 9519 enableval=$enable_profile; 9520fi 9521 9522 9523 # Check whether --enable-optimize was given. 9524if test "${enable_optimize+set}" = set; then : 9525 enableval=$enable_optimize; 9526fi 9527 9528 9529 9530 if test ${enable_debug:-yes} = yes; then : 9531 9532 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__" 9533 9534 MULECFLAGS="$MULECFLAGS -g" 9535 MULECXXFLAGS="$MULECXXFLAGS -g" 9536 9537 if test ${GCC:-no} = yes; then : 9538 9539 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0" 9540 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0" 9541 9542fi 9543 if test ${SYS:-unknown} = win32; then : 9544 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__" 9545fi 9546 9547else 9548 9549 if test ${GCC:-no} = yes; then : 9550 9551 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef" 9552 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef" 9553 9554fi 9555 9556fi 9557 9558 if test ${enable_profile:-no} = yes; then : 9559 9560 9561 MULECFLAGS="$MULECFLAGS -pg" 9562 MULECXXFLAGS="$MULECXXFLAGS -pg" 9563 9564 MULELDFLAGS="$MULELDFLAGS -pg" 9565 9566fi 9567 9568 if test ${enable_optimize:-no} = yes; then : 9569 9570 MULECFLAGS="$MULECFLAGS -O2" 9571 MULECXXFLAGS="$MULECXXFLAGS -O2" 9572 9573fi 9574 9575 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS" 9576 9577 9578 9579if 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 : 9580 9581 9582 9583 9584 if test ${GCC:-no} = yes; then : 9585 9586 mule_backup_CXXFLAGS="$CXXFLAGS" 9587 CXXFLAGS="$CXXFLAGS $MULECPPFLAGS $MULECFLAGS $MULECXXFLAGS -Werror" 9588 9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) uses strict aliasing" >&5 9590$as_echo_n "checking whether the C++ compiler ($CXX) uses strict aliasing... " >&6; } 9591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9592/* end confdefs.h. */ 9593 9594 9595int 9596main () 9597{ 9598 9599 int a; 9600 short *b = (short*)&a; 9601 short c = *b; 9602 9603 return c; 9604 9605 ; 9606 return 0; 9607} 9608 9609_ACEOF 9610if ac_fn_cxx_try_compile "$LINENO"; then : 9611 9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9613$as_echo "no" >&6; } 9614 9615else 9616 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9618$as_echo "yes" >&6; } 9619 $as_echo "#define GCC_USES_STRICT_ALIASING 1" >>confdefs.h 9620 9621 9622fi 9623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9624 9625 CXXFLAGS="$mule_backup_CXXFLAGS" 9626 9627fi 9628 9629if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then : 9630 9631 mule_backup_CPPFLAGS="$CPPFLAGS" 9632 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS" 9633 9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5 9635$as_echo_n "checking that wxWidgets has support for large files... " >&6; } 9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9637/* end confdefs.h. */ 9638 9639 9640 #include <wx/wx.h> 9641 #include <wx/filefn.h> 9642 #ifndef wxHAS_LARGE_FILES 9643 #error No LargeFile support! 9644 #endif 9645 9646 9647_ACEOF 9648if ac_fn_cxx_try_cpp "$LINENO"; then : 9649 9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9651$as_echo "yes" >&6; } 9652 9653else 9654 9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9656$as_echo "no" >&6; } 9657 as_fn_error $? " 9658 Support for large files in wxWidgets is required by aMule. 9659 To continue you must recompile wxWidgets with support for 9660 large files enabled." "$LINENO" 5 9661 9662fi 9663rm -f conftest.err conftest.i conftest.$ac_ext 9664 9665 CPPFLAGS="$mule_backup_CPPFLAGS" 9666 9667fi 9668 9669# Check if the compiler is broken, wrt. exceptions. 9670 9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5 9672$as_echo_n "checking for exception-handling... " >&6; } 9673 if test "$cross_compiling" = yes; then : 9674 9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5 9676$as_echo "undeterminable" >&6; } 9677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 9678 Cross-compilation detected, so exception handling cannot be tested. 9679 Note that broken exception handling in your compiler may lead to 9680 unexpected crashes." >&5 9681$as_echo "$as_me: WARNING: 9682 Cross-compilation detected, so exception handling cannot be tested. 9683 Note that broken exception handling in your compiler may lead to 9684 unexpected crashes." >&2;} 9685_mule_warning_6=yes 9686_mule_has_warnings=yes 9687 9688 9689else 9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9691/* end confdefs.h. */ 9692 9693 9694int 9695main () 9696{ 9697 9698 try { 9699 throw 1; 9700 } catch (int) { 9701 return 0; 9702 } 9703 return 1; 9704 9705 ; 9706 return 0; 9707} 9708 9709_ACEOF 9710if ac_fn_cxx_try_run "$LINENO"; then : 9711 9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9713$as_echo "yes" >&6; } 9714 9715else 9716 9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9718$as_echo "no" >&6; } 9719 as_fn_error $? "Exception handling does not work. Broken compiler?" "$LINENO" 5 9720 9721fi 9722rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9723 conftest.$ac_objext conftest.beam conftest.$ac_ext 9724fi 9725 9726 9727 9728 9729 for ac_header in typeinfo 9730do : 9731 ac_fn_cxx_check_header_mongrel "$LINENO" "typeinfo" "ac_cv_header_typeinfo" "$ac_includes_default" 9732if test "x$ac_cv_header_typeinfo" = xyes; then : 9733 cat >>confdefs.h <<_ACEOF 9734#define HAVE_TYPEINFO 1 9735_ACEOF 9736 9737fi 9738 9739done 9740 9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5 9742$as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; } 9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9744/* end confdefs.h. */ 9745 9746 9747 #ifdef HAVE_TYPEINFO 9748 # include <typeinfo> 9749 #endif 9750 #include <cxxabi.h> 9751 9752int 9753main () 9754{ 9755 9756 int status; 9757 char * demangled = abi::__cxa_demangle("", 0, 0, &status); 9758 std::type_info *ti = abi::__cxa_current_exception_type(); 9759 9760 ; 9761 return 0; 9762} 9763 9764_ACEOF 9765if ac_fn_cxx_try_link "$LINENO"; then : 9766 9767 9768 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h 9769 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9771$as_echo "yes" >&6; } 9772 9773else 9774 9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9776$as_echo "no" >&6; } 9777 9778fi 9779rm -f core conftest.err conftest.$ac_objext \ 9780 conftest$ac_exeext conftest.$ac_ext 9781 9782 9783if 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 : 9784 9785 9786# Check whether --with-boost was given. 9787if test "${with_boost+set}" = set; then : 9788 withval=$with_boost; 9789else 9790 with_boost=no 9791 9792fi 9793 9794 if test ${with_boost:-no} != no; then : 9795 9796 echo "$as_me: this is boost.m4 serial 25" >&5 9797boost_save_IFS=$IFS 9798boost_version_req=1.47 9799IFS=. 9800set x $boost_version_req 0 0 0 9801IFS=$boost_save_IFS 9802shift 9803boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"` 9804boost_version_req_string=$1.$2.$3 9805# If BOOST_ROOT is set and the user has not provided a value to 9806# --with-boost, then treat BOOST_ROOT as if it the user supplied it. 9807if test x"$BOOST_ROOT" != x; then 9808 if test x"$with_boost" = x; then 9809 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5 9810$as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;} 9811 with_boost=$BOOST_ROOT 9812 else 9813 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5 9814$as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;} 9815 fi 9816fi 9817DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'" 9818boost_save_CPPFLAGS=$CPPFLAGS 9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5 9820$as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; } 9821if ${boost_cv_inc_path+:} false; then : 9822 $as_echo_n "(cached) " >&6 9823else 9824 boost_cv_inc_path=no 9825ac_ext=cpp 9826ac_cpp='$CXXCPP $CPPFLAGS' 9827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9831/* end confdefs.h. */ 9832#include <boost/version.hpp> 9833#if !defined BOOST_VERSION 9834# error BOOST_VERSION is not defined 9835#elif BOOST_VERSION < $boost_version_req 9836# error Boost headers version < $boost_version_req 9837#endif 9838 9839int 9840main () 9841{ 9842 9843 ; 9844 return 0; 9845} 9846_ACEOF 9847 # If the user provided a value to --with-boost, use it and only it. 9848 case $with_boost in #( 9849 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \ 9850 /usr/include C:/Boost/include;; #( 9851 *) set x "$with_boost/include" "$with_boost";; 9852 esac 9853 shift 9854 for boost_dir 9855 do 9856 # Without --layout=system, Boost (or at least some versions) installs 9857 # itself in <prefix>/include/boost-<version>. This inner loop helps to 9858 # find headers in such directories. 9859 # 9860 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version 9861 # order followed by ${boost_dir}. The final '.' is a sentinel for 9862 # searching $boost_dir" itself. Entries are whitespace separated. 9863 # 9864 # I didn't indent this loop on purpose (to avoid over-indented code) 9865 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \ 9866 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \ 9867 && echo .` 9868 for boost_inc in $boost_layout_system_search_list 9869 do 9870 if test x"$boost_inc" != x.; then 9871 boost_inc="$boost_dir/$boost_inc" 9872 else 9873 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list 9874 fi 9875 if test x"$boost_inc" != x; then 9876 # We are going to check whether the version of Boost installed 9877 # in $boost_inc is usable by running a compilation that 9878 # #includes it. But if we pass a -I/some/path in which Boost 9879 # is not installed, the compiler will just skip this -I and 9880 # use other locations (either from CPPFLAGS, or from its list 9881 # of system include directories). As a result we would use 9882 # header installed on the machine instead of the /some/path 9883 # specified by the user. So in that precise case (trying 9884 # $boost_inc), make sure the version.hpp exists. 9885 # 9886 # Use test -e as there can be symlinks. 9887 test -e "$boost_inc/boost/version.hpp" || continue 9888 CPPFLAGS="$CPPFLAGS -I$boost_inc" 9889 fi 9890 if ac_fn_cxx_try_compile "$LINENO"; then : 9891 boost_cv_inc_path=yes 9892else 9893 boost_cv_version=no 9894fi 9895rm -f core conftest.err conftest.$ac_objext 9896 if test x"$boost_cv_inc_path" = xyes; then 9897 if test x"$boost_inc" != x; then 9898 boost_cv_inc_path=$boost_inc 9899 fi 9900 break 2 9901 fi 9902 done 9903 done 9904ac_ext=cpp 9905ac_cpp='$CXXCPP $CPPFLAGS' 9906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9909 9910fi 9911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5 9912$as_echo "$boost_cv_inc_path" >&6; } 9913 case $boost_cv_inc_path in #( 9914 no) 9915 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string" 9916 { $as_echo "$as_me:${as_lineno-$LINENO}: $boost_errmsg" >&5 9917$as_echo "$as_me: $boost_errmsg" >&6;} 9918 with_boost=disabled 9919 ;;#( 9920 yes) 9921 BOOST_CPPFLAGS= 9922 ;;#( 9923 *) 9924 BOOST_CPPFLAGS="-I$boost_cv_inc_path" 9925 ;; 9926 esac 9927 if test x"$boost_cv_inc_path" != xno; then 9928 9929$as_echo "#define HAVE_BOOST 1" >>confdefs.h 9930 9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5 9932$as_echo_n "checking for Boost's header version... " >&6; } 9933if ${boost_cv_lib_version+:} false; then : 9934 $as_echo_n "(cached) " >&6 9935else 9936 ac_ext=cpp 9937ac_cpp='$CXXCPP $CPPFLAGS' 9938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9942/* end confdefs.h. */ 9943#include <boost/version.hpp> 9944boost-lib-version = BOOST_LIB_VERSION 9945_ACEOF 9946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9947 grep -v '#' | 9948 tr -d '\r' | 9949 tr -s '\n' ' ' | 9950 $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1; then : 9951 boost_cv_lib_version=`cat conftest.i` 9952fi 9953rm -rf conftest* 9954ac_ext=cpp 9955ac_cpp='$CXXCPP $CPPFLAGS' 9956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9959 9960fi 9961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5 9962$as_echo "$boost_cv_lib_version" >&6; } 9963 # e.g. "134" for 1_34_1 or "135" for 1_35 9964 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'` 9965 case $boost_major_version in #( 9966 '' | *[!0-9]*) 9967 as_fn_error $? "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5 9968 ;; 9969 esac 9970fi 9971CPPFLAGS=$boost_save_CPPFLAGS 9972 9973 if test ${with_boost:-no} != disabled; then : 9974 9975 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9976for cc_temp in $compiler""; do 9977 case $cc_temp in 9978 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9979 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9980 \-*) ;; 9981 *) break;; 9982 esac 9983done 9984cc_basename=`echo "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9985# All known linkers require a `.a' archive for static linking (except MSVC, 9986# which needs '.lib'). 9987libext=a 9988case $cc_basename in 9989 cl*) libext=lib ;; 9990esac 9991 9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5 9993$as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; } 9994if ${boost_cv_lib_tag+:} false; then : 9995 $as_echo_n "(cached) " >&6 9996else 9997 boost_cv_lib_tag=unknown 9998if test x$boost_cv_inc_path != xno; then 9999 ac_ext=cpp 10000ac_cpp='$CXXCPP $CPPFLAGS' 10001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10004 # The following tests are mostly inspired by boost/config/auto_link.hpp 10005 # The list is sorted to most recent/common to oldest compiler (in order 10006 # to increase the likelihood of finding the right compiler with the 10007 # least number of compilation attempt). 10008 # Beware that some tests are sensible to the order (for instance, we must 10009 # look for MinGW before looking for GCC3). 10010 # I used one compilation test per compiler with a #error to recognize 10011 # each compiler so that it works even when cross-compiling (let me know 10012 # if you know a better approach). 10013 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam): 10014 # como, edg, kcc, bck, mp, sw, tru, xlc 10015 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines 10016 # the same defines as GCC's). 10017 for i in \ 10018 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC && \ 10019 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10020 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw53" \ 10021 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc53" \ 10022 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \ 10023 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10024 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \ 10025 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \ 10026 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \ 10027 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10028 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \ 10029 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \ 10030 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \ 10031 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10032 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \ 10033 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \ 10034 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \ 10035 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10036 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \ 10037 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \ 10038 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \ 10039 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10040 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \ 10041 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \ 10042 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \ 10043 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10044 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \ 10045 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \ 10046 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \ 10047 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10048 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \ 10049 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \ 10050 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \ 10051 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10052 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \ 10053 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \ 10054 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \ 10055 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10056 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \ 10057 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \ 10058 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \ 10059 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10060 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \ 10061 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \ 10062 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \ 10063 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10064 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \ 10065 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \ 10066 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \ 10067 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10068 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \ 10069 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \ 10070 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \ 10071 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10072 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \ 10073 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \ 10074 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \ 10075 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10076 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \ 10077 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \ 10078 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \ 10079 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \ 10080 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \ 10081 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \ 10082 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \ 10083 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \ 10084 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \ 10085 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \ 10086 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \ 10087 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \ 10088 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \ 10089 "defined __BORLANDC__ @ bcb" \ 10090 "defined __ICC && (defined __unix || defined ) @ il" \ 10091 "defined __ICL @ iw" \ 10092 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \ 10093 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \ 10094 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \ 10095 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \ 10096 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \ 10097 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8" 10098 do 10099 boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '` 10100 boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'` 10101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10102/* end confdefs.h. */ 10103 10104#if $boost_tag_test 10105/* OK */ 10106#else 10107# error $boost_tag_test 10108#endif 10109 10110int 10111main () 10112{ 10113 10114 ; 10115 return 0; 10116} 10117_ACEOF 10118if ac_fn_cxx_try_compile "$LINENO"; then : 10119 boost_cv_lib_tag=$boost_tag; break 10120fi 10121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10122 done 10123ac_ext=cpp 10124ac_cpp='$CXXCPP $CPPFLAGS' 10125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10128 case $boost_cv_lib_tag in #( 10129 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed 10130 # to "gcc41" for instance. 10131 *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there. 10132 gcc*) 10133 boost_tag_x= 10134 case $host_os in #( 10135 darwin*) 10136 if test $boost_major_version -ge 136; then 10137 # The `x' added in r46793 of Boost. 10138 boost_tag_x=x 10139 fi;; 10140 esac 10141 # We can specify multiple tags in this variable because it's used by 10142 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ... 10143 boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc" 10144 ;; #( 10145 unknown) 10146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5 10147$as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;} 10148 boost_cv_lib_tag= 10149 ;; 10150 esac 10151fi 10152fi 10153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5 10154$as_echo "$boost_cv_lib_tag" >&6; } 10155 # Check whether --enable-static-boost was given. 10156if test "${enable_static_boost+set}" = set; then : 10157 enableval=$enable_static_boost; enable_static_boost=yes 10158else 10159 enable_static_boost=no 10160fi 10161 10162 # Check whether we do better use `mt' even though we weren't ask to. 10163ac_ext=cpp 10164ac_cpp='$CXXCPP $CPPFLAGS' 10165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10168cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10169/* end confdefs.h. */ 10170 10171#if defined _REENTRANT || defined _MT || defined __MT__ 10172/* use -mt */ 10173#else 10174# error MT not needed 10175#endif 10176 10177int 10178main () 10179{ 10180 10181 ; 10182 return 0; 10183} 10184_ACEOF 10185if ac_fn_cxx_try_compile "$LINENO"; then : 10186 boost_guess_use_mt=: 10187else 10188 boost_guess_use_mt=false 10189fi 10190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10191ac_ext=cpp 10192ac_cpp='$CXXCPP $CPPFLAGS' 10193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10196 10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost sources" >&5 10198$as_echo_n "checking for Boost sources... " >&6; } 10199 mule_backup_CPPFLAGS="$CPPFLAGS" 10200 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10202/* end confdefs.h. */ 10203 10204 #include <boost/../libs/system/src/error_code.cpp> 10205int 10206main () 10207{ 10208 10209 ; 10210 return 0; 10211} 10212 10213_ACEOF 10214if ac_fn_cxx_try_compile "$LINENO"; then : 10215 10216 10217$as_echo "#define HAVE_BOOST_SOURCES 1" >>confdefs.h 10218 10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10220$as_echo "yes" >&6; } 10221 10222else 10223 10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10225$as_echo "no" >&6; } 10226 if test x"$boost_cv_inc_path" = xno; then 10227 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5 10228$as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;} 10229else 10230ac_ext=cpp 10231ac_cpp='$CXXCPP $CPPFLAGS' 10232ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10233ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10234ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10235if test x"$boost_cv_inc_path" = xno; then 10236 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5 10237$as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;} 10238else 10239ac_ext=cpp 10240ac_cpp='$CXXCPP $CPPFLAGS' 10241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10244boost_save_CPPFLAGS=$CPPFLAGS 10245CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 10246ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default" 10247if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes; then : 10248 10249$as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h 10250 10251else 10252 as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5 10253fi 10254 10255 10256CPPFLAGS=$boost_save_CPPFLAGS 10257ac_ext=cpp 10258ac_cpp='$CXXCPP $CPPFLAGS' 10259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10262fi 10263 10264boost_save_CPPFLAGS=$CPPFLAGS 10265CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 10266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5 10267$as_echo_n "checking for the Boost system library... " >&6; } 10268if ${boost_cv_lib_system+:} false; then : 10269 $as_echo_n "(cached) " >&6 10270else 10271 boost_cv_lib_system=no 10272 case "mt" in #( 10273 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #( 10274 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "Xmt" : 'Xmt-*\(.*\)'`;; #( 10275 (*) boost_mt=; boost_rtopt=mt;; 10276 esac 10277 if test $enable_static_boost = yes; then 10278 boost_rtopt="s$boost_rtopt" 10279 fi 10280 # Find the proper debug variant depending on what we've been asked to find. 10281 case $boost_rtopt in #( 10282 (*d*) boost_rt_d=$boost_rtopt;; #( 10283 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn') 10284 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #( 10285 (*) boost_rt_d='-d';; 10286 esac 10287 # If the PREFERRED-RT-OPT are not empty, prepend a `-'. 10288 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt" 10289 $boost_guess_use_mt && boost_mt=-mt 10290 # Look for the abs path the static archive. 10291 # $libext is computed by Libtool but let's make sure it's non empty. 10292 test -z "$libext" && 10293 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5 10294 boost_save_ac_objext=$ac_objext 10295 # Generate the test file. 10296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10297/* end confdefs.h. */ 10298#include <boost/system/error_code.hpp> 10299 10300int 10301main () 10302{ 10303boost::system::error_code e; e.clear(); 10304 ; 10305 return 0; 10306} 10307_ACEOF 10308 if ac_fn_cxx_try_compile "$LINENO"; then : 10309 ac_objext=do_not_rm_me_plz 10310else 10311 as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5 10312fi 10313rm -f core conftest.err conftest.$ac_objext 10314 ac_objext=$boost_save_ac_objext 10315 boost_failed_libs= 10316# Don't bother to ident the following nested for loops, only the 2 10317# innermost ones matter. 10318for boost_lib_ in system; do 10319for boost_tag_ in -$boost_cv_lib_tag ''; do 10320for boost_ver_ in -$boost_cv_lib_version ''; do 10321for boost_mt_ in $boost_mt -mt ''; do 10322for boost_rtopt_ in $boost_rtopt '' -d; do 10323 for boost_lib in \ 10324 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \ 10325 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \ 10326 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \ 10327 boost_$boost_lib_$boost_tag_$boost_ver_ 10328 do 10329 # Avoid testing twice the same lib 10330 case $boost_failed_libs in #( 10331 (*@$boost_lib@*) continue;; 10332 esac 10333 # If with_boost is empty, we'll search in /lib first, which is not quite 10334 # right so instead we'll try to a location based on where the headers are. 10335 boost_tmp_lib=$with_boost 10336 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include} 10337 for boost_ldpath in "$boost_tmp_lib/lib" '' \ 10338 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \ 10339 "$with_boost" C:/Boost/lib /lib* 10340 do 10341 # Don't waste time with directories that don't exist. 10342 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then 10343 continue 10344 fi 10345 boost_save_LDFLAGS=$LDFLAGS 10346 # Are we looking for a static library? 10347 case $boost_ldpath:$boost_rtopt_ in #( 10348 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt) 10349 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext" 10350 test -e "$boost_cv_lib_system_LIBS" || continue;; #( 10351 (*) # No: use -lboost_foo to find the shared library. 10352 boost_cv_lib_system_LIBS="-l$boost_lib";; 10353 esac 10354 boost_save_LIBS=$LIBS 10355 LIBS="$boost_cv_lib_system_LIBS $LIBS" 10356 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath" 10357 rm -f conftest$ac_exeext 10358boost_save_ac_ext=$ac_ext 10359boost_use_source=: 10360# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 10361# tries to link the existing object file instead of compiling from source. 10362test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 10363 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 10364if { { ac_try="$ac_link" 10365case "(($ac_try" in 10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10367 *) ac_try_echo=$ac_try;; 10368esac 10369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 10370$as_echo "$ac_try_echo"; } >&5 10371 (eval "$ac_link") 2>conftest.err 10372 ac_status=$? 10373 if test -s conftest.err; then 10374 grep -v '^ *+' conftest.err >conftest.er1 10375 cat conftest.er1 >&5 10376 mv -f conftest.er1 conftest.err 10377 fi 10378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10379 test $ac_status = 0; } && { 10380 test -z "$ac_cxx_werror_flag" || 10381 test ! -s conftest.err 10382 } && test -s conftest$ac_exeext && { 10383 test "$cross_compiling" = yes || 10384 $as_executable_p conftest$ac_exeext 10385 }; then : 10386 boost_cv_lib_system=yes 10387else 10388 if $boost_use_source; then 10389 $as_echo "$as_me: failed program was:" >&5 10390sed 's/^/| /' conftest.$ac_ext >&5 10391 10392 fi 10393 boost_cv_lib_system=no 10394fi 10395ac_objext=$boost_save_ac_objext 10396ac_ext=$boost_save_ac_ext 10397rm -f core conftest.err conftest_ipa8_conftest.oo \ 10398 conftest$ac_exeext 10399 ac_objext=$boost_save_ac_objext 10400 LDFLAGS=$boost_save_LDFLAGS 10401 LIBS=$boost_save_LIBS 10402 if test x"$boost_cv_lib_system" = xyes; then 10403 # Check or used cached result of whether or not using -R or 10404 # -rpath makes sense. Some implementations of ld, such as for 10405 # Mac OSX, require -rpath but -R is the flag known to work on 10406 # other systems. https://github.com/tsuna/boost.m4/issues/19 10407 if ${boost_cv_rpath_link_ldflag+:} false; then : 10408 $as_echo_n "(cached) " >&6 10409else 10410 case $boost_ldpath in 10411 '') # Nothing to do. 10412 boost_cv_rpath_link_ldflag= 10413 boost_rpath_link_ldflag_found=yes;; 10414 *) 10415 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do 10416 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 10417 LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS" 10418 rm -f conftest$ac_exeext 10419boost_save_ac_ext=$ac_ext 10420boost_use_source=: 10421# If we already have a .o, re-use it. We change $ac_ext so that $ac_link 10422# tries to link the existing object file instead of compiling from source. 10423test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false && 10424 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5 10425if { { ac_try="$ac_link" 10426case "(($ac_try" in 10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10428 *) ac_try_echo=$ac_try;; 10429esac 10430eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 10431$as_echo "$ac_try_echo"; } >&5 10432 (eval "$ac_link") 2>conftest.err 10433 ac_status=$? 10434 if test -s conftest.err; then 10435 grep -v '^ *+' conftest.err >conftest.er1 10436 cat conftest.er1 >&5 10437 mv -f conftest.er1 conftest.err 10438 fi 10439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10440 test $ac_status = 0; } && { 10441 test -z "$ac_cxx_werror_flag" || 10442 test ! -s conftest.err 10443 } && test -s conftest$ac_exeext && { 10444 test "$cross_compiling" = yes || 10445 $as_executable_p conftest$ac_exeext 10446 }; then : 10447 boost_rpath_link_ldflag_found=yes 10448 break 10449else 10450 if $boost_use_source; then 10451 $as_echo "$as_me: failed program was:" >&5 10452sed 's/^/| /' conftest.$ac_ext >&5 10453 10454 fi 10455 boost_rpath_link_ldflag_found=no 10456fi 10457ac_objext=$boost_save_ac_objext 10458ac_ext=$boost_save_ac_ext 10459rm -f core conftest.err conftest_ipa8_conftest.oo \ 10460 conftest$ac_exeext 10461 done 10462 ;; 10463 esac 10464 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then : 10465 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5 10466fi 10467 LDFLAGS=$boost_save_LDFLAGS 10468 LIBS=$boost_save_LIBS 10469 10470fi 10471 10472 test x"$boost_ldpath" != x && 10473 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath" 10474 boost_cv_lib_system_LDPATH="$boost_ldpath" 10475 break 7 10476 else 10477 boost_failed_libs="$boost_failed_libs@$boost_lib@" 10478 fi 10479 done 10480 done 10481done 10482done 10483done 10484done 10485done # boost_lib_ 10486rm -f conftest.$ac_objext 10487 10488fi 10489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5 10490$as_echo "$boost_cv_lib_system" >&6; } 10491case $boost_cv_lib_system in #( 10492 (no) $as_echo "$as_me: failed program was:" >&5 10493sed 's/^/| /' conftest.$ac_ext >&5 10494 10495 as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5 10496 ;; 10497esac 10498BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS 10499BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH 10500BOOST_LDPATH=$boost_cv_lib_system_LDPATH 10501BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS 10502CPPFLAGS=$boost_save_CPPFLAGS 10503ac_ext=cpp 10504ac_cpp='$CXXCPP $CPPFLAGS' 10505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10508fi 10509 10510 10511 10512 if test ${boost_cv_lib_system:-no} != yes; then : 10513 10514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 10515 Boost support has been disabled because Boost.System not found" >&5 10516$as_echo "$as_me: WARNING: 10517 Boost support has been disabled because Boost.System not found" >&2;} 10518_mule_warning_7=yes 10519_mule_has_warnings=yes 10520 10521 with_boost=disabled 10522 10523fi 10524 10525fi 10526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10527 CPPFLAGS="$mule_backup_CPPFLAGS" 10528 if test x"$boost_cv_inc_path" = xno; then 10529 10530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 10531 Boost support has been disabled because Boost.Asio not found" >&5 10532$as_echo "$as_me: WARNING: 10533 Boost support has been disabled because Boost.Asio not found" >&2;} 10534_mule_warning_8=yes 10535_mule_has_warnings=yes 10536 10537 with_boost=disabled 10538 10539else 10540ac_ext=cpp 10541ac_cpp='$CXXCPP $CPPFLAGS' 10542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10545boost_save_CPPFLAGS=$CPPFLAGS 10546CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 10547ac_fn_cxx_check_header_mongrel "$LINENO" "boost/asio.hpp" "ac_cv_header_boost_asio_hpp" "$ac_includes_default" 10548if test "x$ac_cv_header_boost_asio_hpp" = xyes; then : 10549 10550$as_echo "#define ASIO_SOCKETS 1" >>confdefs.h 10551 10552else 10553 10554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 10555 Boost support has been disabled because Boost.Asio not found" >&5 10556$as_echo "$as_me: WARNING: 10557 Boost support has been disabled because Boost.Asio not found" >&2;} 10558_mule_warning_9=yes 10559_mule_has_warnings=yes 10560 10561 with_boost=disabled 10562 10563fi 10564 10565 10566CPPFLAGS=$boost_save_CPPFLAGS 10567ac_ext=cpp 10568ac_cpp='$CXXCPP $CPPFLAGS' 10569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10572fi 10573 10574 10575else 10576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 10577 Boost support has been disabled because of insufficient Boost version." >&5 10578$as_echo "$as_me: WARNING: 10579 Boost support has been disabled because of insufficient Boost version." >&2;} 10580_mule_warning_10=yes 10581_mule_has_warnings=yes 10582 10583fi 10584 10585fi 10586 10587fi 10588 10589fi 10590 10591# Ok, we have all needed libs, now checking for other stuff 10592 10593 10594# Checks for header files. 10595ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 10596if test "x$ac_cv_type_size_t" = xyes; then : 10597 10598else 10599 10600cat >>confdefs.h <<_ACEOF 10601#define size_t unsigned int 10602_ACEOF 10603 10604fi 10605 10606# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 10607# for constant arguments. Useless! 10608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 10609$as_echo_n "checking for working alloca.h... " >&6; } 10610if ${ac_cv_working_alloca_h+:} false; then : 10611 $as_echo_n "(cached) " >&6 10612else 10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10614/* end confdefs.h. */ 10615#include <alloca.h> 10616int 10617main () 10618{ 10619char *p = (char *) alloca (2 * sizeof (int)); 10620 if (p) return 0; 10621 ; 10622 return 0; 10623} 10624_ACEOF 10625if ac_fn_cxx_try_link "$LINENO"; then : 10626 ac_cv_working_alloca_h=yes 10627else 10628 ac_cv_working_alloca_h=no 10629fi 10630rm -f core conftest.err conftest.$ac_objext \ 10631 conftest$ac_exeext conftest.$ac_ext 10632fi 10633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 10634$as_echo "$ac_cv_working_alloca_h" >&6; } 10635if test $ac_cv_working_alloca_h = yes; then 10636 10637$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 10638 10639fi 10640 10641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 10642$as_echo_n "checking for alloca... " >&6; } 10643if ${ac_cv_func_alloca_works+:} false; then : 10644 $as_echo_n "(cached) " >&6 10645else 10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10647/* end confdefs.h. */ 10648#ifdef __GNUC__ 10649# define alloca __builtin_alloca 10650#else 10651# ifdef _MSC_VER 10652# include <malloc.h> 10653# define alloca _alloca 10654# else 10655# ifdef HAVE_ALLOCA_H 10656# include <alloca.h> 10657# else 10658# ifdef _AIX 10659 #pragma alloca 10660# else 10661# ifndef alloca /* predefined by HP cc +Olibcalls */ 10662void *alloca (size_t); 10663# endif 10664# endif 10665# endif 10666# endif 10667#endif 10668 10669int 10670main () 10671{ 10672char *p = (char *) alloca (1); 10673 if (p) return 0; 10674 ; 10675 return 0; 10676} 10677_ACEOF 10678if ac_fn_cxx_try_link "$LINENO"; then : 10679 ac_cv_func_alloca_works=yes 10680else 10681 ac_cv_func_alloca_works=no 10682fi 10683rm -f core conftest.err conftest.$ac_objext \ 10684 conftest$ac_exeext conftest.$ac_ext 10685fi 10686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 10687$as_echo "$ac_cv_func_alloca_works" >&6; } 10688 10689if test $ac_cv_func_alloca_works = yes; then 10690 10691$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 10692 10693else 10694 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 10695# that cause trouble. Some versions do not even contain alloca or 10696# contain a buggy version. If you still want to use their alloca, 10697# use ar to extract alloca.o from them instead of compiling alloca.c. 10698 10699ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 10700 10701$as_echo "#define C_ALLOCA 1" >>confdefs.h 10702 10703 10704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 10705$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 10706if ${ac_cv_os_cray+:} false; then : 10707 $as_echo_n "(cached) " >&6 10708else 10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10710/* end confdefs.h. */ 10711#if defined CRAY && ! defined CRAY2 10712webecray 10713#else 10714wenotbecray 10715#endif 10716 10717_ACEOF 10718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10719 $EGREP "webecray" >/dev/null 2>&1; then : 10720 ac_cv_os_cray=yes 10721else 10722 ac_cv_os_cray=no 10723fi 10724rm -f conftest* 10725 10726fi 10727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 10728$as_echo "$ac_cv_os_cray" >&6; } 10729if test $ac_cv_os_cray = yes; then 10730 for ac_func in _getb67 GETB67 getb67; do 10731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10732ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 10733if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10734 10735cat >>confdefs.h <<_ACEOF 10736#define CRAY_STACKSEG_END $ac_func 10737_ACEOF 10738 10739 break 10740fi 10741 10742 done 10743fi 10744 10745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 10746$as_echo_n "checking stack direction for C alloca... " >&6; } 10747if ${ac_cv_c_stack_direction+:} false; then : 10748 $as_echo_n "(cached) " >&6 10749else 10750 if test "$cross_compiling" = yes; then : 10751 ac_cv_c_stack_direction=0 10752else 10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10754/* end confdefs.h. */ 10755$ac_includes_default 10756int 10757find_stack_direction (int *addr, int depth) 10758{ 10759 int dir, dummy = 0; 10760 if (! addr) 10761 addr = &dummy; 10762 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 10763 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 10764 return dir + dummy; 10765} 10766 10767int 10768main (int argc, char **argv) 10769{ 10770 return find_stack_direction (0, argc + !argv + 20) < 0; 10771} 10772_ACEOF 10773if ac_fn_cxx_try_run "$LINENO"; then : 10774 ac_cv_c_stack_direction=1 10775else 10776 ac_cv_c_stack_direction=-1 10777fi 10778rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10779 conftest.$ac_objext conftest.beam conftest.$ac_ext 10780fi 10781 10782fi 10783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 10784$as_echo "$ac_cv_c_stack_direction" >&6; } 10785cat >>confdefs.h <<_ACEOF 10786#define STACK_DIRECTION $ac_cv_c_stack_direction 10787_ACEOF 10788 10789 10790fi 10791 10792ac_header_dirent=no 10793for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10794 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 10796$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 10797if eval \${$as_ac_Header+:} false; then : 10798 $as_echo_n "(cached) " >&6 10799else 10800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10801/* end confdefs.h. */ 10802#include <sys/types.h> 10803#include <$ac_hdr> 10804 10805int 10806main () 10807{ 10808if ((DIR *) 0) 10809return 0; 10810 ; 10811 return 0; 10812} 10813_ACEOF 10814if ac_fn_cxx_try_compile "$LINENO"; then : 10815 eval "$as_ac_Header=yes" 10816else 10817 eval "$as_ac_Header=no" 10818fi 10819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10820fi 10821eval ac_res=\$$as_ac_Header 10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10823$as_echo "$ac_res" >&6; } 10824if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10825 cat >>confdefs.h <<_ACEOF 10826#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10827_ACEOF 10828 10829ac_header_dirent=$ac_hdr; break 10830fi 10831 10832done 10833# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10834if test $ac_header_dirent = dirent.h; then 10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10836$as_echo_n "checking for library containing opendir... " >&6; } 10837if ${ac_cv_search_opendir+:} false; then : 10838 $as_echo_n "(cached) " >&6 10839else 10840 ac_func_search_save_LIBS=$LIBS 10841cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10842/* end confdefs.h. */ 10843 10844/* Override any GCC internal prototype to avoid an error. 10845 Use char because int might match the return type of a GCC 10846 builtin and then its argument prototype would still apply. */ 10847#ifdef __cplusplus 10848extern "C" 10849#endif 10850char opendir (); 10851int 10852main () 10853{ 10854return opendir (); 10855 ; 10856 return 0; 10857} 10858_ACEOF 10859for ac_lib in '' dir; do 10860 if test -z "$ac_lib"; then 10861 ac_res="none required" 10862 else 10863 ac_res=-l$ac_lib 10864 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10865 fi 10866 if ac_fn_cxx_try_link "$LINENO"; then : 10867 ac_cv_search_opendir=$ac_res 10868fi 10869rm -f core conftest.err conftest.$ac_objext \ 10870 conftest$ac_exeext 10871 if ${ac_cv_search_opendir+:} false; then : 10872 break 10873fi 10874done 10875if ${ac_cv_search_opendir+:} false; then : 10876 10877else 10878 ac_cv_search_opendir=no 10879fi 10880rm conftest.$ac_ext 10881LIBS=$ac_func_search_save_LIBS 10882fi 10883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10884$as_echo "$ac_cv_search_opendir" >&6; } 10885ac_res=$ac_cv_search_opendir 10886if test "$ac_res" != no; then : 10887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10888 10889fi 10890 10891else 10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10893$as_echo_n "checking for library containing opendir... " >&6; } 10894if ${ac_cv_search_opendir+:} false; then : 10895 $as_echo_n "(cached) " >&6 10896else 10897 ac_func_search_save_LIBS=$LIBS 10898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10899/* end confdefs.h. */ 10900 10901/* Override any GCC internal prototype to avoid an error. 10902 Use char because int might match the return type of a GCC 10903 builtin and then its argument prototype would still apply. */ 10904#ifdef __cplusplus 10905extern "C" 10906#endif 10907char opendir (); 10908int 10909main () 10910{ 10911return opendir (); 10912 ; 10913 return 0; 10914} 10915_ACEOF 10916for ac_lib in '' x; do 10917 if test -z "$ac_lib"; then 10918 ac_res="none required" 10919 else 10920 ac_res=-l$ac_lib 10921 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10922 fi 10923 if ac_fn_cxx_try_link "$LINENO"; then : 10924 ac_cv_search_opendir=$ac_res 10925fi 10926rm -f core conftest.err conftest.$ac_objext \ 10927 conftest$ac_exeext 10928 if ${ac_cv_search_opendir+:} false; then : 10929 break 10930fi 10931done 10932if ${ac_cv_search_opendir+:} false; then : 10933 10934else 10935 ac_cv_search_opendir=no 10936fi 10937rm conftest.$ac_ext 10938LIBS=$ac_func_search_save_LIBS 10939fi 10940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10941$as_echo "$ac_cv_search_opendir" >&6; } 10942ac_res=$ac_cv_search_opendir 10943if test "$ac_res" != no; then : 10944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10945 10946fi 10947 10948fi 10949 10950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 10951$as_echo_n "checking for ANSI C header files... " >&6; } 10952if ${ac_cv_header_stdc+:} false; then : 10953 $as_echo_n "(cached) " >&6 10954else 10955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10956/* end confdefs.h. */ 10957#include <stdlib.h> 10958#include <stdarg.h> 10959#include <string.h> 10960#include <float.h> 10961 10962int 10963main () 10964{ 10965 10966 ; 10967 return 0; 10968} 10969_ACEOF 10970if ac_fn_cxx_try_compile "$LINENO"; then : 10971 ac_cv_header_stdc=yes 10972else 10973 ac_cv_header_stdc=no 10974fi 10975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10976 10977if test $ac_cv_header_stdc = yes; then 10978 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10980/* end confdefs.h. */ 10981#include <string.h> 10982 10983_ACEOF 10984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10985 $EGREP "memchr" >/dev/null 2>&1; then : 10986 10987else 10988 ac_cv_header_stdc=no 10989fi 10990rm -f conftest* 10991 10992fi 10993 10994if test $ac_cv_header_stdc = yes; then 10995 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10997/* end confdefs.h. */ 10998#include <stdlib.h> 10999 11000_ACEOF 11001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11002 $EGREP "free" >/dev/null 2>&1; then : 11003 11004else 11005 ac_cv_header_stdc=no 11006fi 11007rm -f conftest* 11008 11009fi 11010 11011if test $ac_cv_header_stdc = yes; then 11012 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11013 if test "$cross_compiling" = yes; then : 11014 : 11015else 11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11017/* end confdefs.h. */ 11018#include <ctype.h> 11019#include <stdlib.h> 11020#if ((' ' & 0x0FF) == 0x020) 11021# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11022# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11023#else 11024# define ISLOWER(c) \ 11025 (('a' <= (c) && (c) <= 'i') \ 11026 || ('j' <= (c) && (c) <= 'r') \ 11027 || ('s' <= (c) && (c) <= 'z')) 11028# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11029#endif 11030 11031#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11032int 11033main () 11034{ 11035 int i; 11036 for (i = 0; i < 256; i++) 11037 if (XOR (islower (i), ISLOWER (i)) 11038 || toupper (i) != TOUPPER (i)) 11039 return 2; 11040 return 0; 11041} 11042_ACEOF 11043if ac_fn_cxx_try_run "$LINENO"; then : 11044 11045else 11046 ac_cv_header_stdc=no 11047fi 11048rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11049 conftest.$ac_objext conftest.beam conftest.$ac_ext 11050fi 11051 11052fi 11053fi 11054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 11055$as_echo "$ac_cv_header_stdc" >&6; } 11056if test $ac_cv_header_stdc = yes; then 11057 11058$as_echo "#define STDC_HEADERS 1" >>confdefs.h 11059 11060fi 11061 11062for 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 11063do : 11064 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11065ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11066if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11067 cat >>confdefs.h <<_ACEOF 11068#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11069_ACEOF 11070 11071fi 11072 11073done 11074 11075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 11076$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 11077if ${ac_cv_header_sys_wait_h+:} false; then : 11078 $as_echo_n "(cached) " >&6 11079else 11080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11081/* end confdefs.h. */ 11082#include <sys/types.h> 11083#include <sys/wait.h> 11084#ifndef WEXITSTATUS 11085# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 11086#endif 11087#ifndef WIFEXITED 11088# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 11089#endif 11090 11091int 11092main () 11093{ 11094 int s; 11095 wait (&s); 11096 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 11097 ; 11098 return 0; 11099} 11100_ACEOF 11101if ac_fn_cxx_try_compile "$LINENO"; then : 11102 ac_cv_header_sys_wait_h=yes 11103else 11104 ac_cv_header_sys_wait_h=no 11105fi 11106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11107fi 11108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 11109$as_echo "$ac_cv_header_sys_wait_h" >&6; } 11110if test $ac_cv_header_sys_wait_h = yes; then 11111 11112$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 11113 11114fi 11115 11116 11117 11118# Checks for typedefs, structures, and compiler characteristics. 11119ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 11120if test "x$ac_cv_type_mode_t" = xyes; then : 11121 11122else 11123 11124cat >>confdefs.h <<_ACEOF 11125#define mode_t int 11126_ACEOF 11127 11128fi 11129 11130ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 11131if test "x$ac_cv_type_off_t" = xyes; then : 11132 11133else 11134 11135cat >>confdefs.h <<_ACEOF 11136#define off_t long int 11137_ACEOF 11138 11139fi 11140 11141ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 11142if test "x$ac_cv_type_size_t" = xyes; then : 11143 11144else 11145 11146cat >>confdefs.h <<_ACEOF 11147#define size_t unsigned int 11148_ACEOF 11149 11150fi 11151 11152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 11153$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 11154if ${ac_cv_header_time+:} false; then : 11155 $as_echo_n "(cached) " >&6 11156else 11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11158/* end confdefs.h. */ 11159#include <sys/types.h> 11160#include <sys/time.h> 11161#include <time.h> 11162 11163int 11164main () 11165{ 11166if ((struct tm *) 0) 11167return 0; 11168 ; 11169 return 0; 11170} 11171_ACEOF 11172if ac_fn_cxx_try_compile "$LINENO"; then : 11173 ac_cv_header_time=yes 11174else 11175 ac_cv_header_time=no 11176fi 11177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11178fi 11179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 11180$as_echo "$ac_cv_header_time" >&6; } 11181if test $ac_cv_header_time = yes; then 11182 11183$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 11184 11185fi 11186 11187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 11188$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 11189if ${ac_cv_struct_tm+:} false; then : 11190 $as_echo_n "(cached) " >&6 11191else 11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11193/* end confdefs.h. */ 11194#include <sys/types.h> 11195#include <time.h> 11196 11197int 11198main () 11199{ 11200struct tm tm; 11201 int *p = &tm.tm_sec; 11202 return !p; 11203 ; 11204 return 0; 11205} 11206_ACEOF 11207if ac_fn_cxx_try_compile "$LINENO"; then : 11208 ac_cv_struct_tm=time.h 11209else 11210 ac_cv_struct_tm=sys/time.h 11211fi 11212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11213fi 11214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 11215$as_echo "$ac_cv_struct_tm" >&6; } 11216if test $ac_cv_struct_tm = sys/time.h; then 11217 11218$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 11219 11220fi 11221 11222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 11223$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 11224if ${ac_cv_type_uid_t+:} false; then : 11225 $as_echo_n "(cached) " >&6 11226else 11227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11228/* end confdefs.h. */ 11229#include <sys/types.h> 11230 11231_ACEOF 11232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11233 $EGREP "uid_t" >/dev/null 2>&1; then : 11234 ac_cv_type_uid_t=yes 11235else 11236 ac_cv_type_uid_t=no 11237fi 11238rm -f conftest* 11239 11240fi 11241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 11242$as_echo "$ac_cv_type_uid_t" >&6; } 11243if test $ac_cv_type_uid_t = no; then 11244 11245$as_echo "#define uid_t int" >>confdefs.h 11246 11247 11248$as_echo "#define gid_t int" >>confdefs.h 11249 11250fi 11251 11252ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 11253if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 11254 11255cat >>confdefs.h <<_ACEOF 11256#define HAVE_PTRDIFF_T 1 11257_ACEOF 11258 11259 11260fi 11261 11262 11263 11264# Checks for library functions. 11265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 11266$as_echo_n "checking whether closedir returns void... " >&6; } 11267if ${ac_cv_func_closedir_void+:} false; then : 11268 $as_echo_n "(cached) " >&6 11269else 11270 if test "$cross_compiling" = yes; then : 11271 ac_cv_func_closedir_void=yes 11272else 11273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11274/* end confdefs.h. */ 11275$ac_includes_default 11276#include <$ac_header_dirent> 11277#ifndef __cplusplus 11278int closedir (); 11279#endif 11280 11281int 11282main () 11283{ 11284return closedir (opendir (".")) != 0; 11285 ; 11286 return 0; 11287} 11288_ACEOF 11289if ac_fn_cxx_try_run "$LINENO"; then : 11290 ac_cv_func_closedir_void=no 11291else 11292 ac_cv_func_closedir_void=yes 11293fi 11294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11295 conftest.$ac_objext conftest.beam conftest.$ac_ext 11296fi 11297 11298fi 11299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 11300$as_echo "$ac_cv_func_closedir_void" >&6; } 11301if test $ac_cv_func_closedir_void = yes; then 11302 11303$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h 11304 11305fi 11306 11307if test $ac_cv_c_compiler_gnu = yes; then 11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 11309$as_echo_n "checking whether $CC needs -traditional... " >&6; } 11310if ${ac_cv_prog_gcc_traditional+:} false; then : 11311 $as_echo_n "(cached) " >&6 11312else 11313 ac_pattern="Autoconf.*'x'" 11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11315/* end confdefs.h. */ 11316#include <sgtty.h> 11317Autoconf TIOCGETP 11318_ACEOF 11319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11320 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 11321 ac_cv_prog_gcc_traditional=yes 11322else 11323 ac_cv_prog_gcc_traditional=no 11324fi 11325rm -f conftest* 11326 11327 11328 if test $ac_cv_prog_gcc_traditional = no; then 11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11330/* end confdefs.h. */ 11331#include <termio.h> 11332Autoconf TCGETA 11333_ACEOF 11334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11335 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 11336 ac_cv_prog_gcc_traditional=yes 11337fi 11338rm -f conftest* 11339 11340 fi 11341fi 11342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 11343$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 11344 if test $ac_cv_prog_gcc_traditional = yes; then 11345 CC="$CC -traditional" 11346 fi 11347fi 11348 11349ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 11350if test "x$ac_cv_type_pid_t" = xyes; then : 11351 11352else 11353 11354cat >>confdefs.h <<_ACEOF 11355#define pid_t int 11356_ACEOF 11357 11358fi 11359 11360for ac_header in vfork.h 11361do : 11362 ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 11363if test "x$ac_cv_header_vfork_h" = xyes; then : 11364 cat >>confdefs.h <<_ACEOF 11365#define HAVE_VFORK_H 1 11366_ACEOF 11367 11368fi 11369 11370done 11371 11372for ac_func in fork vfork 11373do : 11374 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11375ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 11376if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11377 cat >>confdefs.h <<_ACEOF 11378#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11379_ACEOF 11380 11381fi 11382done 11383 11384if test "x$ac_cv_func_fork" = xyes; then 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 11386$as_echo_n "checking for working fork... " >&6; } 11387if ${ac_cv_func_fork_works+:} false; then : 11388 $as_echo_n "(cached) " >&6 11389else 11390 if test "$cross_compiling" = yes; then : 11391 ac_cv_func_fork_works=cross 11392else 11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11394/* end confdefs.h. */ 11395$ac_includes_default 11396int 11397main () 11398{ 11399 11400 /* By Ruediger Kuhlmann. */ 11401 return fork () < 0; 11402 11403 ; 11404 return 0; 11405} 11406_ACEOF 11407if ac_fn_cxx_try_run "$LINENO"; then : 11408 ac_cv_func_fork_works=yes 11409else 11410 ac_cv_func_fork_works=no 11411fi 11412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11413 conftest.$ac_objext conftest.beam conftest.$ac_ext 11414fi 11415 11416fi 11417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 11418$as_echo "$ac_cv_func_fork_works" >&6; } 11419 11420else 11421 ac_cv_func_fork_works=$ac_cv_func_fork 11422fi 11423if test "x$ac_cv_func_fork_works" = xcross; then 11424 case $host in 11425 *-*-amigaos* | *-*-msdosdjgpp*) 11426 # Override, as these systems have only a dummy fork() stub 11427 ac_cv_func_fork_works=no 11428 ;; 11429 *) 11430 ac_cv_func_fork_works=yes 11431 ;; 11432 esac 11433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 11434$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 11435fi 11436ac_cv_func_vfork_works=$ac_cv_func_vfork 11437if test "x$ac_cv_func_vfork" = xyes; then 11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 11439$as_echo_n "checking for working vfork... " >&6; } 11440if ${ac_cv_func_vfork_works+:} false; then : 11441 $as_echo_n "(cached) " >&6 11442else 11443 if test "$cross_compiling" = yes; then : 11444 ac_cv_func_vfork_works=cross 11445else 11446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11447/* end confdefs.h. */ 11448/* Thanks to Paul Eggert for this test. */ 11449$ac_includes_default 11450#include <sys/wait.h> 11451#ifdef HAVE_VFORK_H 11452# include <vfork.h> 11453#endif 11454/* On some sparc systems, changes by the child to local and incoming 11455 argument registers are propagated back to the parent. The compiler 11456 is told about this with #include <vfork.h>, but some compilers 11457 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 11458 static variable whose address is put into a register that is 11459 clobbered by the vfork. */ 11460static void 11461#ifdef __cplusplus 11462sparc_address_test (int arg) 11463# else 11464sparc_address_test (arg) int arg; 11465#endif 11466{ 11467 static pid_t child; 11468 if (!child) { 11469 child = vfork (); 11470 if (child < 0) { 11471 perror ("vfork"); 11472 _exit(2); 11473 } 11474 if (!child) { 11475 arg = getpid(); 11476 write(-1, "", 0); 11477 _exit (arg); 11478 } 11479 } 11480} 11481 11482int 11483main () 11484{ 11485 pid_t parent = getpid (); 11486 pid_t child; 11487 11488 sparc_address_test (0); 11489 11490 child = vfork (); 11491 11492 if (child == 0) { 11493 /* Here is another test for sparc vfork register problems. This 11494 test uses lots of local variables, at least as many local 11495 variables as main has allocated so far including compiler 11496 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 11497 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 11498 reuse the register of parent for one of the local variables, 11499 since it will think that parent can't possibly be used any more 11500 in this routine. Assigning to the local variable will thus 11501 munge parent in the parent process. */ 11502 pid_t 11503 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 11504 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 11505 /* Convince the compiler that p..p7 are live; otherwise, it might 11506 use the same hardware register for all 8 local variables. */ 11507 if (p != p1 || p != p2 || p != p3 || p != p4 11508 || p != p5 || p != p6 || p != p7) 11509 _exit(1); 11510 11511 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 11512 from child file descriptors. If the child closes a descriptor 11513 before it execs or exits, this munges the parent's descriptor 11514 as well. Test for this by closing stdout in the child. */ 11515 _exit(close(fileno(stdout)) != 0); 11516 } else { 11517 int status; 11518 struct stat st; 11519 11520 while (wait(&status) != child) 11521 ; 11522 return ( 11523 /* Was there some problem with vforking? */ 11524 child < 0 11525 11526 /* Did the child fail? (This shouldn't happen.) */ 11527 || status 11528 11529 /* Did the vfork/compiler bug occur? */ 11530 || parent != getpid() 11531 11532 /* Did the file descriptor bug occur? */ 11533 || fstat(fileno(stdout), &st) != 0 11534 ); 11535 } 11536} 11537_ACEOF 11538if ac_fn_cxx_try_run "$LINENO"; then : 11539 ac_cv_func_vfork_works=yes 11540else 11541 ac_cv_func_vfork_works=no 11542fi 11543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11544 conftest.$ac_objext conftest.beam conftest.$ac_ext 11545fi 11546 11547fi 11548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 11549$as_echo "$ac_cv_func_vfork_works" >&6; } 11550 11551fi; 11552if test "x$ac_cv_func_fork_works" = xcross; then 11553 ac_cv_func_vfork_works=$ac_cv_func_vfork 11554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 11555$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 11556fi 11557 11558if test "x$ac_cv_func_vfork_works" = xyes; then 11559 11560$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 11561 11562else 11563 11564$as_echo "#define vfork fork" >>confdefs.h 11565 11566fi 11567if test "x$ac_cv_func_fork_works" = xyes; then 11568 11569$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 11570 11571fi 11572 11573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 11574$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 11575if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 11576 $as_echo_n "(cached) " >&6 11577else 11578 rm -f conftest.sym conftest.file 11579echo >conftest.file 11580if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 11581 if test "$cross_compiling" = yes; then : 11582 ac_cv_func_lstat_dereferences_slashed_symlink=no 11583else 11584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11585/* end confdefs.h. */ 11586$ac_includes_default 11587int 11588main () 11589{ 11590struct stat sbuf; 11591 /* Linux will dereference the symlink and fail, as required by POSIX. 11592 That is better in the sense that it means we will not 11593 have to compile and use the lstat wrapper. */ 11594 return lstat ("conftest.sym/", &sbuf) == 0; 11595 ; 11596 return 0; 11597} 11598_ACEOF 11599if ac_fn_cxx_try_run "$LINENO"; then : 11600 ac_cv_func_lstat_dereferences_slashed_symlink=yes 11601else 11602 ac_cv_func_lstat_dereferences_slashed_symlink=no 11603fi 11604rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11605 conftest.$ac_objext conftest.beam conftest.$ac_ext 11606fi 11607 11608else 11609 # If the `ln -s' command failed, then we probably don't even 11610 # have an lstat function. 11611 ac_cv_func_lstat_dereferences_slashed_symlink=no 11612fi 11613rm -f conftest.sym conftest.file 11614 11615fi 11616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 11617$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 11618 11619test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 11620 11621cat >>confdefs.h <<_ACEOF 11622#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 11623_ACEOF 11624 11625 11626if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 11627 case " $LIBOBJS " in 11628 *" lstat.$ac_objext "* ) ;; 11629 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 11630 ;; 11631esac 11632 11633fi 11634 11635if test x$SYS != xwin32; then : 11636 11637 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, 11638# -lseq on Dynix/PTX, -lgen on Unixware. 11639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 11640$as_echo_n "checking for library containing getmntent... " >&6; } 11641if ${ac_cv_search_getmntent+:} false; then : 11642 $as_echo_n "(cached) " >&6 11643else 11644 ac_func_search_save_LIBS=$LIBS 11645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11646/* end confdefs.h. */ 11647 11648/* Override any GCC internal prototype to avoid an error. 11649 Use char because int might match the return type of a GCC 11650 builtin and then its argument prototype would still apply. */ 11651#ifdef __cplusplus 11652extern "C" 11653#endif 11654char getmntent (); 11655int 11656main () 11657{ 11658return getmntent (); 11659 ; 11660 return 0; 11661} 11662_ACEOF 11663for ac_lib in '' sun seq gen; do 11664 if test -z "$ac_lib"; then 11665 ac_res="none required" 11666 else 11667 ac_res=-l$ac_lib 11668 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11669 fi 11670 if ac_fn_cxx_try_link "$LINENO"; then : 11671 ac_cv_search_getmntent=$ac_res 11672fi 11673rm -f core conftest.err conftest.$ac_objext \ 11674 conftest$ac_exeext 11675 if ${ac_cv_search_getmntent+:} false; then : 11676 break 11677fi 11678done 11679if ${ac_cv_search_getmntent+:} false; then : 11680 11681else 11682 ac_cv_search_getmntent=no 11683fi 11684rm conftest.$ac_ext 11685LIBS=$ac_func_search_save_LIBS 11686fi 11687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 11688$as_echo "$ac_cv_search_getmntent" >&6; } 11689ac_res=$ac_cv_search_getmntent 11690if test "$ac_res" != no; then : 11691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11692 ac_cv_func_getmntent=yes 11693 11694$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h 11695 11696else 11697 ac_cv_func_getmntent=no 11698fi 11699 11700 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 11702$as_echo_n "checking whether lstat accepts an empty string... " >&6; } 11703if ${ac_cv_func_lstat_empty_string_bug+:} false; then : 11704 $as_echo_n "(cached) " >&6 11705else 11706 if test "$cross_compiling" = yes; then : 11707 ac_cv_func_lstat_empty_string_bug=yes 11708else 11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11710/* end confdefs.h. */ 11711$ac_includes_default 11712int 11713main () 11714{ 11715struct stat sbuf; 11716 return lstat ("", &sbuf) == 0; 11717 ; 11718 return 0; 11719} 11720_ACEOF 11721if ac_fn_cxx_try_run "$LINENO"; then : 11722 ac_cv_func_lstat_empty_string_bug=no 11723else 11724 ac_cv_func_lstat_empty_string_bug=yes 11725fi 11726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11727 conftest.$ac_objext conftest.beam conftest.$ac_ext 11728fi 11729 11730fi 11731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 11732$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } 11733if test $ac_cv_func_lstat_empty_string_bug = yes; then 11734 case " $LIBOBJS " in 11735 *" lstat.$ac_objext "* ) ;; 11736 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 11737 ;; 11738esac 11739 11740 11741cat >>confdefs.h <<_ACEOF 11742#define HAVE_LSTAT_EMPTY_STRING_BUG 1 11743_ACEOF 11744 11745fi 11746 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 11748$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 11749if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 11750 $as_echo_n "(cached) " >&6 11751else 11752 rm -f conftest.sym conftest.file 11753echo >conftest.file 11754if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 11755 if test "$cross_compiling" = yes; then : 11756 ac_cv_func_lstat_dereferences_slashed_symlink=no 11757else 11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11759/* end confdefs.h. */ 11760$ac_includes_default 11761int 11762main () 11763{ 11764struct stat sbuf; 11765 /* Linux will dereference the symlink and fail, as required by POSIX. 11766 That is better in the sense that it means we will not 11767 have to compile and use the lstat wrapper. */ 11768 return lstat ("conftest.sym/", &sbuf) == 0; 11769 ; 11770 return 0; 11771} 11772_ACEOF 11773if ac_fn_cxx_try_run "$LINENO"; then : 11774 ac_cv_func_lstat_dereferences_slashed_symlink=yes 11775else 11776 ac_cv_func_lstat_dereferences_slashed_symlink=no 11777fi 11778rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11779 conftest.$ac_objext conftest.beam conftest.$ac_ext 11780fi 11781 11782else 11783 # If the `ln -s' command failed, then we probably don't even 11784 # have an lstat function. 11785 ac_cv_func_lstat_dereferences_slashed_symlink=no 11786fi 11787rm -f conftest.sym conftest.file 11788 11789fi 11790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 11791$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 11792 11793test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 11794 11795cat >>confdefs.h <<_ACEOF 11796#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 11797_ACEOF 11798 11799 11800if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 11801 case " $LIBOBJS " in 11802 *" lstat.$ac_objext "* ) ;; 11803 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 11804 ;; 11805esac 11806 11807fi 11808 11809 11810fi 11811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 11812$as_echo_n "checking for working memcmp... " >&6; } 11813if ${ac_cv_func_memcmp_working+:} false; then : 11814 $as_echo_n "(cached) " >&6 11815else 11816 if test "$cross_compiling" = yes; then : 11817 ac_cv_func_memcmp_working=no 11818else 11819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11820/* end confdefs.h. */ 11821$ac_includes_default 11822int 11823main () 11824{ 11825 11826 /* Some versions of memcmp are not 8-bit clean. */ 11827 char c0 = '\100', c1 = '\200', c2 = '\201'; 11828 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 11829 return 1; 11830 11831 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 11832 or more and with at least one buffer not starting on a 4-byte boundary. 11833 William Lewis provided this test program. */ 11834 { 11835 char foo[21]; 11836 char bar[21]; 11837 int i; 11838 for (i = 0; i < 4; i++) 11839 { 11840 char *a = foo + i; 11841 char *b = bar + i; 11842 strcpy (a, "--------01111111"); 11843 strcpy (b, "--------10000000"); 11844 if (memcmp (a, b, 16) >= 0) 11845 return 1; 11846 } 11847 return 0; 11848 } 11849 11850 ; 11851 return 0; 11852} 11853_ACEOF 11854if ac_fn_cxx_try_run "$LINENO"; then : 11855 ac_cv_func_memcmp_working=yes 11856else 11857 ac_cv_func_memcmp_working=no 11858fi 11859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11860 conftest.$ac_objext conftest.beam conftest.$ac_ext 11861fi 11862 11863fi 11864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 11865$as_echo "$ac_cv_func_memcmp_working" >&6; } 11866test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 11867 *" memcmp.$ac_objext "* ) ;; 11868 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 11869 ;; 11870esac 11871 11872 11873for ac_header in sys/select.h sys/socket.h 11874do : 11875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11876ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11877if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11878 cat >>confdefs.h <<_ACEOF 11879#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11880_ACEOF 11881 11882fi 11883 11884done 11885 11886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 11887$as_echo_n "checking types of arguments for select... " >&6; } 11888if ${ac_cv_func_select_args+:} false; then : 11889 $as_echo_n "(cached) " >&6 11890else 11891 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 11892 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 11893 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11895/* end confdefs.h. */ 11896$ac_includes_default 11897#ifdef HAVE_SYS_SELECT_H 11898# include <sys/select.h> 11899#endif 11900#ifdef HAVE_SYS_SOCKET_H 11901# include <sys/socket.h> 11902#endif 11903 11904int 11905main () 11906{ 11907extern int select ($ac_arg1, 11908 $ac_arg234, $ac_arg234, $ac_arg234, 11909 $ac_arg5); 11910 ; 11911 return 0; 11912} 11913_ACEOF 11914if ac_fn_cxx_try_compile "$LINENO"; then : 11915 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 11916fi 11917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11918 done 11919 done 11920done 11921# Provide a safe default value. 11922: "${ac_cv_func_select_args=int,int *,struct timeval *}" 11923 11924fi 11925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 11926$as_echo "$ac_cv_func_select_args" >&6; } 11927ac_save_IFS=$IFS; IFS=',' 11928set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 11929IFS=$ac_save_IFS 11930shift 11931 11932cat >>confdefs.h <<_ACEOF 11933#define SELECT_TYPE_ARG1 $1 11934_ACEOF 11935 11936 11937cat >>confdefs.h <<_ACEOF 11938#define SELECT_TYPE_ARG234 ($2) 11939_ACEOF 11940 11941 11942cat >>confdefs.h <<_ACEOF 11943#define SELECT_TYPE_ARG5 ($3) 11944_ACEOF 11945 11946rm -f conftest* 11947 11948if ${ac_cv_func_setvbuf_reversed+:} false; then : 11949 $as_echo_n "(cached) " >&6 11950else 11951 ac_cv_func_setvbuf_reversed=no 11952fi 11953 11954 11955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 11956$as_echo_n "checking return type of signal handlers... " >&6; } 11957if ${ac_cv_type_signal+:} false; then : 11958 $as_echo_n "(cached) " >&6 11959else 11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11961/* end confdefs.h. */ 11962#include <sys/types.h> 11963#include <signal.h> 11964 11965int 11966main () 11967{ 11968return *(signal (0, 0)) (0) == 1; 11969 ; 11970 return 0; 11971} 11972_ACEOF 11973if ac_fn_cxx_try_compile "$LINENO"; then : 11974 ac_cv_type_signal=int 11975else 11976 ac_cv_type_signal=void 11977fi 11978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11979fi 11980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 11981$as_echo "$ac_cv_type_signal" >&6; } 11982 11983cat >>confdefs.h <<_ACEOF 11984#define RETSIGTYPE $ac_cv_type_signal 11985_ACEOF 11986 11987 11988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 11989$as_echo_n "checking whether stat accepts an empty string... " >&6; } 11990if ${ac_cv_func_stat_empty_string_bug+:} false; then : 11991 $as_echo_n "(cached) " >&6 11992else 11993 if test "$cross_compiling" = yes; then : 11994 ac_cv_func_stat_empty_string_bug=yes 11995else 11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11997/* end confdefs.h. */ 11998$ac_includes_default 11999int 12000main () 12001{ 12002struct stat sbuf; 12003 return stat ("", &sbuf) == 0; 12004 ; 12005 return 0; 12006} 12007_ACEOF 12008if ac_fn_cxx_try_run "$LINENO"; then : 12009 ac_cv_func_stat_empty_string_bug=no 12010else 12011 ac_cv_func_stat_empty_string_bug=yes 12012fi 12013rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12014 conftest.$ac_objext conftest.beam conftest.$ac_ext 12015fi 12016 12017fi 12018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 12019$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } 12020if test $ac_cv_func_stat_empty_string_bug = yes; then 12021 case " $LIBOBJS " in 12022 *" stat.$ac_objext "* ) ;; 12023 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 12024 ;; 12025esac 12026 12027 12028cat >>confdefs.h <<_ACEOF 12029#define HAVE_STAT_EMPTY_STRING_BUG 1 12030_ACEOF 12031 12032fi 12033 12034for ac_func in strftime 12035do : 12036 ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 12037if test "x$ac_cv_func_strftime" = xyes; then : 12038 cat >>confdefs.h <<_ACEOF 12039#define HAVE_STRFTIME 1 12040_ACEOF 12041 12042else 12043 # strftime is in -lintl on SCO UNIX. 12044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 12045$as_echo_n "checking for strftime in -lintl... " >&6; } 12046if ${ac_cv_lib_intl_strftime+:} false; then : 12047 $as_echo_n "(cached) " >&6 12048else 12049 ac_check_lib_save_LIBS=$LIBS 12050LIBS="-lintl $LIBS" 12051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12052/* end confdefs.h. */ 12053 12054/* Override any GCC internal prototype to avoid an error. 12055 Use char because int might match the return type of a GCC 12056 builtin and then its argument prototype would still apply. */ 12057#ifdef __cplusplus 12058extern "C" 12059#endif 12060char strftime (); 12061int 12062main () 12063{ 12064return strftime (); 12065 ; 12066 return 0; 12067} 12068_ACEOF 12069if ac_fn_cxx_try_link "$LINENO"; then : 12070 ac_cv_lib_intl_strftime=yes 12071else 12072 ac_cv_lib_intl_strftime=no 12073fi 12074rm -f core conftest.err conftest.$ac_objext \ 12075 conftest$ac_exeext conftest.$ac_ext 12076LIBS=$ac_check_lib_save_LIBS 12077fi 12078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 12079$as_echo "$ac_cv_lib_intl_strftime" >&6; } 12080if test "x$ac_cv_lib_intl_strftime" = xyes; then : 12081 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 12082 12083LIBS="-lintl $LIBS" 12084fi 12085 12086fi 12087done 12088 12089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 12090$as_echo_n "checking for working strtod... " >&6; } 12091if ${ac_cv_func_strtod+:} false; then : 12092 $as_echo_n "(cached) " >&6 12093else 12094 if test "$cross_compiling" = yes; then : 12095 ac_cv_func_strtod=no 12096else 12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12098/* end confdefs.h. */ 12099 12100$ac_includes_default 12101#ifndef strtod 12102double strtod (); 12103#endif 12104int 12105main() 12106{ 12107 { 12108 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 12109 char *string = " +69"; 12110 char *term; 12111 double value; 12112 value = strtod (string, &term); 12113 if (value != 69 || term != (string + 4)) 12114 return 1; 12115 } 12116 12117 { 12118 /* Under Solaris 2.4, strtod returns the wrong value for the 12119 terminating character under some conditions. */ 12120 char *string = "NaN"; 12121 char *term; 12122 strtod (string, &term); 12123 if (term != string && *(term - 1) == 0) 12124 return 1; 12125 } 12126 return 0; 12127} 12128 12129_ACEOF 12130if ac_fn_cxx_try_run "$LINENO"; then : 12131 ac_cv_func_strtod=yes 12132else 12133 ac_cv_func_strtod=no 12134fi 12135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12136 conftest.$ac_objext conftest.beam conftest.$ac_ext 12137fi 12138 12139fi 12140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 12141$as_echo "$ac_cv_func_strtod" >&6; } 12142if test $ac_cv_func_strtod = no; then 12143 case " $LIBOBJS " in 12144 *" strtod.$ac_objext "* ) ;; 12145 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 12146 ;; 12147esac 12148 12149ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow" 12150if test "x$ac_cv_func_pow" = xyes; then : 12151 12152fi 12153 12154if test $ac_cv_func_pow = no; then 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 12156$as_echo_n "checking for pow in -lm... " >&6; } 12157if ${ac_cv_lib_m_pow+:} false; then : 12158 $as_echo_n "(cached) " >&6 12159else 12160 ac_check_lib_save_LIBS=$LIBS 12161LIBS="-lm $LIBS" 12162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12163/* end confdefs.h. */ 12164 12165/* Override any GCC internal prototype to avoid an error. 12166 Use char because int might match the return type of a GCC 12167 builtin and then its argument prototype would still apply. */ 12168#ifdef __cplusplus 12169extern "C" 12170#endif 12171char pow (); 12172int 12173main () 12174{ 12175return pow (); 12176 ; 12177 return 0; 12178} 12179_ACEOF 12180if ac_fn_cxx_try_link "$LINENO"; then : 12181 ac_cv_lib_m_pow=yes 12182else 12183 ac_cv_lib_m_pow=no 12184fi 12185rm -f core conftest.err conftest.$ac_objext \ 12186 conftest$ac_exeext conftest.$ac_ext 12187LIBS=$ac_check_lib_save_LIBS 12188fi 12189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 12190$as_echo "$ac_cv_lib_m_pow" >&6; } 12191if test "x$ac_cv_lib_m_pow" = xyes; then : 12192 POW_LIB=-lm 12193else 12194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 12195$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 12196fi 12197 12198fi 12199 12200fi 12201 12202for ac_func in vprintf 12203do : 12204 ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 12205if test "x$ac_cv_func_vprintf" = xyes; then : 12206 cat >>confdefs.h <<_ACEOF 12207#define HAVE_VPRINTF 1 12208_ACEOF 12209 12210ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 12211if test "x$ac_cv_func__doprnt" = xyes; then : 12212 12213$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 12214 12215fi 12216 12217fi 12218done 12219 12220 12221if test $cross_compiling = yes -a $gnumalloc = yes; then : 12222 12223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 12224 configure cannot check whether malloc() and realloc() are GNU libc 12225 compatible. You have to be ABSOLUTELY sure that they are, otherwise 12226 run configure with the --without-gnu-malloc switch." >&5 12227$as_echo "$as_me: WARNING: 12228 configure cannot check whether malloc() and realloc() are GNU libc 12229 compatible. You have to be ABSOLUTELY sure that they are, otherwise 12230 run configure with the --without-gnu-malloc switch." >&2;} 12231_mule_warning_11=yes 12232_mule_has_warnings=yes 12233 12234 ac_cv_func_malloc_0_nonnull=yes 12235 ac_cv_func_realloc_0_nonnull=yes 12236 12237fi 12238for ac_header in stdlib.h 12239do : 12240 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 12241if test "x$ac_cv_header_stdlib_h" = xyes; then : 12242 cat >>confdefs.h <<_ACEOF 12243#define HAVE_STDLIB_H 1 12244_ACEOF 12245 12246fi 12247 12248done 12249 12250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 12251$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 12252if ${ac_cv_func_malloc_0_nonnull+:} false; then : 12253 $as_echo_n "(cached) " >&6 12254else 12255 if test "$cross_compiling" = yes; then : 12256 ac_cv_func_malloc_0_nonnull=no 12257else 12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12259/* end confdefs.h. */ 12260#if defined STDC_HEADERS || defined HAVE_STDLIB_H 12261# include <stdlib.h> 12262#else 12263char *malloc (); 12264#endif 12265 12266int 12267main () 12268{ 12269return ! malloc (0); 12270 ; 12271 return 0; 12272} 12273_ACEOF 12274if ac_fn_cxx_try_run "$LINENO"; then : 12275 ac_cv_func_malloc_0_nonnull=yes 12276else 12277 ac_cv_func_malloc_0_nonnull=no 12278fi 12279rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12280 conftest.$ac_objext conftest.beam conftest.$ac_ext 12281fi 12282 12283fi 12284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 12285$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 12286if test $ac_cv_func_malloc_0_nonnull = yes; then : 12287 12288$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 12289 12290else 12291 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 12292 12293 case " $LIBOBJS " in 12294 *" malloc.$ac_objext "* ) ;; 12295 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 12296 ;; 12297esac 12298 12299 12300$as_echo "#define malloc rpl_malloc" >>confdefs.h 12301 12302fi 12303 12304 12305for ac_header in stdlib.h 12306do : 12307 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 12308if test "x$ac_cv_header_stdlib_h" = xyes; then : 12309 cat >>confdefs.h <<_ACEOF 12310#define HAVE_STDLIB_H 1 12311_ACEOF 12312 12313fi 12314 12315done 12316 12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 12318$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 12319if ${ac_cv_func_realloc_0_nonnull+:} false; then : 12320 $as_echo_n "(cached) " >&6 12321else 12322 if test "$cross_compiling" = yes; then : 12323 ac_cv_func_realloc_0_nonnull=no 12324else 12325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12326/* end confdefs.h. */ 12327#if defined STDC_HEADERS || defined HAVE_STDLIB_H 12328# include <stdlib.h> 12329#else 12330char *realloc (); 12331#endif 12332 12333int 12334main () 12335{ 12336return ! realloc (0, 0); 12337 ; 12338 return 0; 12339} 12340_ACEOF 12341if ac_fn_cxx_try_run "$LINENO"; then : 12342 ac_cv_func_realloc_0_nonnull=yes 12343else 12344 ac_cv_func_realloc_0_nonnull=no 12345fi 12346rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12347 conftest.$ac_objext conftest.beam conftest.$ac_ext 12348fi 12349 12350fi 12351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 12352$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 12353if test $ac_cv_func_realloc_0_nonnull = yes; then : 12354 12355$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 12356 12357else 12358 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 12359 12360 case " $LIBOBJS " in 12361 *" realloc.$ac_objext "* ) ;; 12362 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 12363 ;; 12364esac 12365 12366 12367$as_echo "#define realloc rpl_realloc" >>confdefs.h 12368 12369fi 12370 12371 12372for 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 12373do : 12374 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12375ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 12376if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12377 cat >>confdefs.h <<_ACEOF 12378#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12379_ACEOF 12380 12381fi 12382done 12383 12384 12385 12386 12387 12388 12389 for ac_header in $ac_header_list 12390do : 12391 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12392ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 12393" 12394if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12395 cat >>confdefs.h <<_ACEOF 12396#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12397_ACEOF 12398 12399fi 12400 12401done 12402 12403 12404 12405 12406 12407 12408 12409if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then : 12410 12411 # Check whether --enable-mmap was given. 12412if test "${enable_mmap+set}" = set; then : 12413 enableval=$enable_mmap; 12414fi 12415 12416 12417 12418 12419 12420 if test ${enable_mmap:-no} = yes; then : 12421 12422 $as_echo "#define ENABLE_MMAP 1" >>confdefs.h 12423 12424 12425for ac_func in getpagesize 12426do : 12427 ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 12428if test "x$ac_cv_func_getpagesize" = xyes; then : 12429 cat >>confdefs.h <<_ACEOF 12430#define HAVE_GETPAGESIZE 1 12431_ACEOF 12432 12433fi 12434done 12435 12436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 12437$as_echo_n "checking for working mmap... " >&6; } 12438if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 12439 $as_echo_n "(cached) " >&6 12440else 12441 if test "$cross_compiling" = yes; then : 12442 ac_cv_func_mmap_fixed_mapped=no 12443else 12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12445/* end confdefs.h. */ 12446$ac_includes_default 12447/* malloc might have been renamed as rpl_malloc. */ 12448#undef malloc 12449 12450/* Thanks to Mike Haertel and Jim Avera for this test. 12451 Here is a matrix of mmap possibilities: 12452 mmap private not fixed 12453 mmap private fixed at somewhere currently unmapped 12454 mmap private fixed at somewhere already mapped 12455 mmap shared not fixed 12456 mmap shared fixed at somewhere currently unmapped 12457 mmap shared fixed at somewhere already mapped 12458 For private mappings, we should verify that changes cannot be read() 12459 back from the file, nor mmap's back from the file at a different 12460 address. (There have been systems where private was not correctly 12461 implemented like the infamous i386 svr4.0, and systems where the 12462 VM page cache was not coherent with the file system buffer cache 12463 like early versions of FreeBSD and possibly contemporary NetBSD.) 12464 For shared mappings, we should conversely verify that changes get 12465 propagated back to all the places they're supposed to be. 12466 12467 Grep wants private fixed already mapped. 12468 The main things grep needs to know about mmap are: 12469 * does it exist and is it safe to write into the mmap'd area 12470 * how to use it (BSD variants) */ 12471 12472#include <fcntl.h> 12473#include <sys/mman.h> 12474 12475#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 12476char *malloc (); 12477#endif 12478 12479/* This mess was copied from the GNU getpagesize.h. */ 12480#ifndef HAVE_GETPAGESIZE 12481# ifdef _SC_PAGESIZE 12482# define getpagesize() sysconf(_SC_PAGESIZE) 12483# else /* no _SC_PAGESIZE */ 12484# ifdef HAVE_SYS_PARAM_H 12485# include <sys/param.h> 12486# ifdef EXEC_PAGESIZE 12487# define getpagesize() EXEC_PAGESIZE 12488# else /* no EXEC_PAGESIZE */ 12489# ifdef NBPG 12490# define getpagesize() NBPG * CLSIZE 12491# ifndef CLSIZE 12492# define CLSIZE 1 12493# endif /* no CLSIZE */ 12494# else /* no NBPG */ 12495# ifdef NBPC 12496# define getpagesize() NBPC 12497# else /* no NBPC */ 12498# ifdef PAGESIZE 12499# define getpagesize() PAGESIZE 12500# endif /* PAGESIZE */ 12501# endif /* no NBPC */ 12502# endif /* no NBPG */ 12503# endif /* no EXEC_PAGESIZE */ 12504# else /* no HAVE_SYS_PARAM_H */ 12505# define getpagesize() 8192 /* punt totally */ 12506# endif /* no HAVE_SYS_PARAM_H */ 12507# endif /* no _SC_PAGESIZE */ 12508 12509#endif /* no HAVE_GETPAGESIZE */ 12510 12511int 12512main () 12513{ 12514 char *data, *data2, *data3; 12515 int i, pagesize; 12516 int fd, fd2; 12517 12518 pagesize = getpagesize (); 12519 12520 /* First, make a file with some known garbage in it. */ 12521 data = (char *) malloc (pagesize); 12522 if (!data) 12523 return 1; 12524 for (i = 0; i < pagesize; ++i) 12525 *(data + i) = rand (); 12526 umask (0); 12527 fd = creat ("conftest.mmap", 0600); 12528 if (fd < 0) 12529 return 2; 12530 if (write (fd, data, pagesize) != pagesize) 12531 return 3; 12532 close (fd); 12533 12534 /* Next, check that the tail of a page is zero-filled. File must have 12535 non-zero length, otherwise we risk SIGBUS for entire page. */ 12536 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 12537 if (fd2 < 0) 12538 return 4; 12539 data2 = (char *) ""; 12540 if (write (fd2, data2, 1) != 1) 12541 return 5; 12542 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 12543 if (data2 == MAP_FAILED) 12544 return 6; 12545 for (i = 0; i < pagesize; ++i) 12546 if (*(data2 + i)) 12547 return 7; 12548 close (fd2); 12549 if (munmap (data2, pagesize)) 12550 return 8; 12551 12552 /* Next, try to mmap the file at a fixed address which already has 12553 something else allocated at it. If we can, also make sure that 12554 we see the same garbage. */ 12555 fd = open ("conftest.mmap", O_RDWR); 12556 if (fd < 0) 12557 return 9; 12558 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 12559 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 12560 return 10; 12561 for (i = 0; i < pagesize; ++i) 12562 if (*(data + i) != *(data2 + i)) 12563 return 11; 12564 12565 /* Finally, make sure that changes to the mapped area do not 12566 percolate back to the file as seen by read(). (This is a bug on 12567 some variants of i386 svr4.0.) */ 12568 for (i = 0; i < pagesize; ++i) 12569 *(data2 + i) = *(data2 + i) + 1; 12570 data3 = (char *) malloc (pagesize); 12571 if (!data3) 12572 return 12; 12573 if (read (fd, data3, pagesize) != pagesize) 12574 return 13; 12575 for (i = 0; i < pagesize; ++i) 12576 if (*(data + i) != *(data3 + i)) 12577 return 14; 12578 close (fd); 12579 return 0; 12580} 12581_ACEOF 12582if ac_fn_cxx_try_run "$LINENO"; then : 12583 ac_cv_func_mmap_fixed_mapped=yes 12584else 12585 ac_cv_func_mmap_fixed_mapped=no 12586fi 12587rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12588 conftest.$ac_objext conftest.beam conftest.$ac_ext 12589fi 12590 12591fi 12592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 12593$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 12594if test $ac_cv_func_mmap_fixed_mapped = yes; then 12595 12596$as_echo "#define HAVE_MMAP 1" >>confdefs.h 12597 12598fi 12599rm -f conftest.mmap conftest.txt 12600 12601 for ac_func in munmap sysconf 12602do : 12603 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12604ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 12605if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12606 cat >>confdefs.h <<_ACEOF 12607#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12608_ACEOF 12609 12610fi 12611done 12612 12613 if test $ac_cv_func_sysconf = yes; then : 12614 12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5 12616$as_echo_n "checking for pagesize constant for sysconf... " >&6; } 12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12618/* end confdefs.h. */ 12619 12620 12621 #include <unistd.h> 12622 12623int 12624main () 12625{ 12626 12627 return sysconf(_SC_PAGESIZE); 12628 12629 ; 12630 return 0; 12631} 12632 12633_ACEOF 12634if ac_fn_cxx_try_link "$LINENO"; then : 12635 12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5 12637$as_echo "_SC_PAGESIZE" >&6; } 12638 12639$as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h 12640 12641 12642else 12643 12644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12645/* end confdefs.h. */ 12646 12647 12648 #include <unistd.h> 12649 12650int 12651main () 12652{ 12653 12654 return sysconf(_SC_PAGE_SIZE); 12655 12656 ; 12657 return 0; 12658} 12659 12660_ACEOF 12661if ac_fn_cxx_try_link "$LINENO"; then : 12662 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5 12664$as_echo "_SC_PAGE_SIZE" >&6; } 12665 12666$as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h 12667 12668 12669else 12670 12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 12672$as_echo "none" >&6; } 12673 12674fi 12675rm -f core conftest.err conftest.$ac_objext \ 12676 conftest$ac_exeext conftest.$ac_ext 12677 12678fi 12679rm -f core conftest.err conftest.$ac_objext \ 12680 conftest$ac_exeext conftest.$ac_ext 12681 12682fi 12683 12684fi 12685 12686fi 12687 12688 12689# Look for a way to preallocate disk space for files. 12690if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then : 12691 12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5 12693$as_echo_n "checking for fallocate... " >&6; } 12694 mule_backup_CPPFLAGS="$CPPFLAGS" 12695 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS" 12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12697/* end confdefs.h. */ 12698 12699 12700 #ifndef _GNU_SOURCE 12701 # define _GNU_SOURCE 12702 #endif 12703 #ifdef HAVE_FCNTL_H 12704 # include <fcntl.h> 12705 #endif 12706 #include <linux/falloc.h> 12707 12708int 12709main () 12710{ 12711 12712 fallocate(0, 0, 0, 0); 12713 12714 ; 12715 return 0; 12716} 12717 12718_ACEOF 12719if ac_fn_cxx_try_link "$LINENO"; then : 12720 12721 12722 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h 12723 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12725$as_echo "yes" >&6; } 12726 12727else 12728 12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12730$as_echo "no" >&6; } 12731 12732fi 12733rm -f core conftest.err conftest.$ac_objext \ 12734 conftest$ac_exeext conftest.$ac_ext 12735 CPPFLAGS="$mule_backup_CPPFLAGS" 12736 12737 12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5 12739$as_echo_n "checking for SYS_fallocate... " >&6; } 12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12741/* end confdefs.h. */ 12742 12743 12744 #include <sys/syscall.h> 12745 #include <sys/types.h> 12746 #include <unistd.h> 12747 12748int 12749main () 12750{ 12751 12752 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0); 12753 12754 ; 12755 return 0; 12756} 12757 12758_ACEOF 12759if ac_fn_cxx_try_link "$LINENO"; then : 12760 12761 12762 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h 12763 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12765$as_echo "yes" >&6; } 12766 12767else 12768 12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12770$as_echo "no" >&6; } 12771 12772fi 12773rm -f core conftest.err conftest.$ac_objext \ 12774 conftest$ac_exeext conftest.$ac_ext 12775 12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5 12777$as_echo_n "checking for posix_fallocate... " >&6; } 12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12779/* end confdefs.h. */ 12780 12781 12782 #define _XOPEN_SOURCE 600 12783 #include <stdlib.h> 12784 #ifdef HAVE_FCNTL_H 12785 # include <fcntl.h> 12786 #endif 12787 12788int 12789main () 12790{ 12791 12792 posix_fallocate(0, 0, 0); 12793 12794 ; 12795 return 0; 12796} 12797 12798_ACEOF 12799if ac_fn_cxx_try_link "$LINENO"; then : 12800 12801 12802 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h 12803 12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12805$as_echo "yes" >&6; } 12806 12807else 12808 12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12810$as_echo "no" >&6; } 12811 12812fi 12813rm -f core conftest.err conftest.$ac_objext \ 12814 conftest$ac_exeext conftest.$ac_ext 12815 12816fi 12817 12818 12819ac_ext=c 12820ac_cpp='$CPP $CPPFLAGS' 12821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12823ac_compiler_gnu=$ac_cv_c_compiler_gnu 12824 12825# Checking Native Language Support 12826 12827 12828 MKINSTALLDIRS= 12829 if test -n "$ac_aux_dir"; then 12830 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 12831 fi 12832 if test -z "$MKINSTALLDIRS"; then 12833 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 12834 fi 12835 12836 12837 12838 12839 12840 # Extract the first word of "msgfmt", so it can be a program name with args. 12841set dummy msgfmt; ac_word=$2 12842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12843$as_echo_n "checking for $ac_word... " >&6; } 12844if ${ac_cv_path_MSGFMT+:} false; then : 12845 $as_echo_n "(cached) " >&6 12846else 12847 case "$MSGFMT" in 12848 /*) 12849 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 12850 ;; 12851 *) 12852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 12853 for ac_dir in $PATH; do 12854 test -z "$ac_dir" && ac_dir=. 12855 if test -f $ac_dir/$ac_word; then 12856 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 12857 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12858 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 12859 break 12860 fi 12861 fi 12862 done 12863 IFS="$ac_save_ifs" 12864 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 12865 ;; 12866esac 12867fi 12868MSGFMT="$ac_cv_path_MSGFMT" 12869if test "$MSGFMT" != ":"; then 12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 12871$as_echo "$MSGFMT" >&6; } 12872else 12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12874$as_echo "no" >&6; } 12875fi 12876 12877 # Extract the first word of "gmsgfmt", so it can be a program name with args. 12878set dummy gmsgfmt; ac_word=$2 12879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12880$as_echo_n "checking for $ac_word... " >&6; } 12881if ${ac_cv_path_GMSGFMT+:} false; then : 12882 $as_echo_n "(cached) " >&6 12883else 12884 case $GMSGFMT in 12885 [\\/]* | ?:[\\/]*) 12886 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 12887 ;; 12888 *) 12889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12890for as_dir in $PATH 12891do 12892 IFS=$as_save_IFS 12893 test -z "$as_dir" && as_dir=. 12894 for ac_exec_ext in '' $ac_executable_extensions; do 12895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12896 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 12897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12898 break 2 12899 fi 12900done 12901 done 12902IFS=$as_save_IFS 12903 12904 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 12905 ;; 12906esac 12907fi 12908GMSGFMT=$ac_cv_path_GMSGFMT 12909if test -n "$GMSGFMT"; then 12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 12911$as_echo "$GMSGFMT" >&6; } 12912else 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12914$as_echo "no" >&6; } 12915fi 12916 12917 12918 12919 # Extract the first word of "xgettext", so it can be a program name with args. 12920set dummy xgettext; ac_word=$2 12921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12922$as_echo_n "checking for $ac_word... " >&6; } 12923if ${ac_cv_path_XGETTEXT+:} false; then : 12924 $as_echo_n "(cached) " >&6 12925else 12926 case "$XGETTEXT" in 12927 /*) 12928 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 12929 ;; 12930 *) 12931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 12932 for ac_dir in $PATH; do 12933 test -z "$ac_dir" && ac_dir=. 12934 if test -f $ac_dir/$ac_word; then 12935 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && 12936 (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 12937 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 12938 break 12939 fi 12940 fi 12941 done 12942 IFS="$ac_save_ifs" 12943 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 12944 ;; 12945esac 12946fi 12947XGETTEXT="$ac_cv_path_XGETTEXT" 12948if test "$XGETTEXT" != ":"; then 12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 12950$as_echo "$XGETTEXT" >&6; } 12951else 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12953$as_echo "no" >&6; } 12954fi 12955 12956 rm -f messages.po 12957 12958 # Extract the first word of "msgmerge", so it can be a program name with args. 12959set dummy msgmerge; ac_word=$2 12960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12961$as_echo_n "checking for $ac_word... " >&6; } 12962if ${ac_cv_path_MSGMERGE+:} false; then : 12963 $as_echo_n "(cached) " >&6 12964else 12965 case "$MSGMERGE" in 12966 /*) 12967 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 12968 ;; 12969 *) 12970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 12971 for ac_dir in $PATH; do 12972 test -z "$ac_dir" && ac_dir=. 12973 if test -f $ac_dir/$ac_word; then 12974 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 12975 ac_cv_path_MSGMERGE="$ac_dir/$ac_word" 12976 break 12977 fi 12978 fi 12979 done 12980 IFS="$ac_save_ifs" 12981 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 12982 ;; 12983esac 12984fi 12985MSGMERGE="$ac_cv_path_MSGMERGE" 12986if test "$MSGMERGE" != ":"; then 12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 12988$as_echo "$MSGMERGE" >&6; } 12989else 12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12991$as_echo "no" >&6; } 12992fi 12993 12994 12995 if test "$GMSGFMT" != ":"; then 12996 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 12997 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12998 : ; 12999 else 13000 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 13002$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 13003 GMSGFMT=":" 13004 fi 13005 fi 13006 13007 if test "$XGETTEXT" != ":"; then 13008 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && 13009 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 13010 : ; 13011 else 13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 13013$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 13014 XGETTEXT=":" 13015 fi 13016 rm -f messages.po 13017 fi 13018 13019 ac_config_commands="$ac_config_commands default-1" 13020 13021 13022 13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 13024$as_echo_n "checking for strerror in -lcposix... " >&6; } 13025if ${ac_cv_lib_cposix_strerror+:} false; then : 13026 $as_echo_n "(cached) " >&6 13027else 13028 ac_check_lib_save_LIBS=$LIBS 13029LIBS="-lcposix $LIBS" 13030cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13031/* end confdefs.h. */ 13032 13033/* Override any GCC internal prototype to avoid an error. 13034 Use char because int might match the return type of a GCC 13035 builtin and then its argument prototype would still apply. */ 13036#ifdef __cplusplus 13037extern "C" 13038#endif 13039char strerror (); 13040int 13041main () 13042{ 13043return strerror (); 13044 ; 13045 return 0; 13046} 13047_ACEOF 13048if ac_fn_c_try_link "$LINENO"; then : 13049 ac_cv_lib_cposix_strerror=yes 13050else 13051 ac_cv_lib_cposix_strerror=no 13052fi 13053rm -f core conftest.err conftest.$ac_objext \ 13054 conftest$ac_exeext conftest.$ac_ext 13055LIBS=$ac_check_lib_save_LIBS 13056fi 13057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 13058$as_echo "$ac_cv_lib_cposix_strerror" >&6; } 13059if test "x$ac_cv_lib_cposix_strerror" = xyes; then : 13060 LIBS="$LIBS -lcposix" 13061fi 13062 13063 13064 13065 13066for ac_func in getpagesize 13067do : 13068 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 13069if test "x$ac_cv_func_getpagesize" = xyes; then : 13070 cat >>confdefs.h <<_ACEOF 13071#define HAVE_GETPAGESIZE 1 13072_ACEOF 13073 13074fi 13075done 13076 13077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 13078$as_echo_n "checking for working mmap... " >&6; } 13079if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 13080 $as_echo_n "(cached) " >&6 13081else 13082 if test "$cross_compiling" = yes; then : 13083 ac_cv_func_mmap_fixed_mapped=no 13084else 13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13086/* end confdefs.h. */ 13087$ac_includes_default 13088/* malloc might have been renamed as rpl_malloc. */ 13089#undef malloc 13090 13091/* Thanks to Mike Haertel and Jim Avera for this test. 13092 Here is a matrix of mmap possibilities: 13093 mmap private not fixed 13094 mmap private fixed at somewhere currently unmapped 13095 mmap private fixed at somewhere already mapped 13096 mmap shared not fixed 13097 mmap shared fixed at somewhere currently unmapped 13098 mmap shared fixed at somewhere already mapped 13099 For private mappings, we should verify that changes cannot be read() 13100 back from the file, nor mmap's back from the file at a different 13101 address. (There have been systems where private was not correctly 13102 implemented like the infamous i386 svr4.0, and systems where the 13103 VM page cache was not coherent with the file system buffer cache 13104 like early versions of FreeBSD and possibly contemporary NetBSD.) 13105 For shared mappings, we should conversely verify that changes get 13106 propagated back to all the places they're supposed to be. 13107 13108 Grep wants private fixed already mapped. 13109 The main things grep needs to know about mmap are: 13110 * does it exist and is it safe to write into the mmap'd area 13111 * how to use it (BSD variants) */ 13112 13113#include <fcntl.h> 13114#include <sys/mman.h> 13115 13116#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 13117char *malloc (); 13118#endif 13119 13120/* This mess was copied from the GNU getpagesize.h. */ 13121#ifndef HAVE_GETPAGESIZE 13122# ifdef _SC_PAGESIZE 13123# define getpagesize() sysconf(_SC_PAGESIZE) 13124# else /* no _SC_PAGESIZE */ 13125# ifdef HAVE_SYS_PARAM_H 13126# include <sys/param.h> 13127# ifdef EXEC_PAGESIZE 13128# define getpagesize() EXEC_PAGESIZE 13129# else /* no EXEC_PAGESIZE */ 13130# ifdef NBPG 13131# define getpagesize() NBPG * CLSIZE 13132# ifndef CLSIZE 13133# define CLSIZE 1 13134# endif /* no CLSIZE */ 13135# else /* no NBPG */ 13136# ifdef NBPC 13137# define getpagesize() NBPC 13138# else /* no NBPC */ 13139# ifdef PAGESIZE 13140# define getpagesize() PAGESIZE 13141# endif /* PAGESIZE */ 13142# endif /* no NBPC */ 13143# endif /* no NBPG */ 13144# endif /* no EXEC_PAGESIZE */ 13145# else /* no HAVE_SYS_PARAM_H */ 13146# define getpagesize() 8192 /* punt totally */ 13147# endif /* no HAVE_SYS_PARAM_H */ 13148# endif /* no _SC_PAGESIZE */ 13149 13150#endif /* no HAVE_GETPAGESIZE */ 13151 13152int 13153main () 13154{ 13155 char *data, *data2, *data3; 13156 const char *cdata2; 13157 int i, pagesize; 13158 int fd, fd2; 13159 13160 pagesize = getpagesize (); 13161 13162 /* First, make a file with some known garbage in it. */ 13163 data = (char *) malloc (pagesize); 13164 if (!data) 13165 return 1; 13166 for (i = 0; i < pagesize; ++i) 13167 *(data + i) = rand (); 13168 umask (0); 13169 fd = creat ("conftest.mmap", 0600); 13170 if (fd < 0) 13171 return 2; 13172 if (write (fd, data, pagesize) != pagesize) 13173 return 3; 13174 close (fd); 13175 13176 /* Next, check that the tail of a page is zero-filled. File must have 13177 non-zero length, otherwise we risk SIGBUS for entire page. */ 13178 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 13179 if (fd2 < 0) 13180 return 4; 13181 cdata2 = ""; 13182 if (write (fd2, cdata2, 1) != 1) 13183 return 5; 13184 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 13185 if (data2 == MAP_FAILED) 13186 return 6; 13187 for (i = 0; i < pagesize; ++i) 13188 if (*(data2 + i)) 13189 return 7; 13190 close (fd2); 13191 if (munmap (data2, pagesize)) 13192 return 8; 13193 13194 /* Next, try to mmap the file at a fixed address which already has 13195 something else allocated at it. If we can, also make sure that 13196 we see the same garbage. */ 13197 fd = open ("conftest.mmap", O_RDWR); 13198 if (fd < 0) 13199 return 9; 13200 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 13201 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 13202 return 10; 13203 for (i = 0; i < pagesize; ++i) 13204 if (*(data + i) != *(data2 + i)) 13205 return 11; 13206 13207 /* Finally, make sure that changes to the mapped area do not 13208 percolate back to the file as seen by read(). (This is a bug on 13209 some variants of i386 svr4.0.) */ 13210 for (i = 0; i < pagesize; ++i) 13211 *(data2 + i) = *(data2 + i) + 1; 13212 data3 = (char *) malloc (pagesize); 13213 if (!data3) 13214 return 12; 13215 if (read (fd, data3, pagesize) != pagesize) 13216 return 13; 13217 for (i = 0; i < pagesize; ++i) 13218 if (*(data + i) != *(data3 + i)) 13219 return 14; 13220 close (fd); 13221 free (data); 13222 free (data3); 13223 return 0; 13224} 13225_ACEOF 13226if ac_fn_c_try_run "$LINENO"; then : 13227 ac_cv_func_mmap_fixed_mapped=yes 13228else 13229 ac_cv_func_mmap_fixed_mapped=no 13230fi 13231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13232 conftest.$ac_objext conftest.beam conftest.$ac_ext 13233fi 13234 13235fi 13236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 13237$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 13238if test $ac_cv_func_mmap_fixed_mapped = yes; then 13239 13240$as_echo "#define HAVE_MMAP 1" >>confdefs.h 13241 13242fi 13243rm -f conftest.mmap conftest.txt 13244 13245 13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 13247$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } 13248if ${ac_cv_gnu_library_2_1+:} false; then : 13249 $as_echo_n "(cached) " >&6 13250else 13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13252/* end confdefs.h. */ 13253 13254#include <features.h> 13255#ifdef __GNU_LIBRARY__ 13256 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 13257 Lucky GNU user 13258 #endif 13259#endif 13260 13261_ACEOF 13262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13263 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 13264 ac_cv_gnu_library_2_1=yes 13265else 13266 ac_cv_gnu_library_2_1=no 13267fi 13268rm -f conftest* 13269 13270 13271 13272fi 13273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 13274$as_echo "$ac_cv_gnu_library_2_1" >&6; } 13275 13276 GLIBC21="$ac_cv_gnu_library_2_1" 13277 13278 13279 13280 13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 13282$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } 13283if ${gt_cv_int_divbyzero_sigfpe+:} false; then : 13284 $as_echo_n "(cached) " >&6 13285else 13286 13287 if test "$cross_compiling" = yes; then : 13288 13289 # Guess based on the CPU. 13290 case "$host_cpu" in 13291 alpha* | i3456786 | m68k | s390*) 13292 gt_cv_int_divbyzero_sigfpe="guessing yes";; 13293 *) 13294 gt_cv_int_divbyzero_sigfpe="guessing no";; 13295 esac 13296 13297else 13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13299/* end confdefs.h. */ 13300 13301#include <stdlib.h> 13302#include <signal.h> 13303 13304static void 13305#ifdef __cplusplus 13306sigfpe_handler (int sig) 13307#else 13308sigfpe_handler (sig) int sig; 13309#endif 13310{ 13311 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 13312 exit (sig != SIGFPE); 13313} 13314 13315int x = 1; 13316int y = 0; 13317int z; 13318int nan; 13319 13320int main () 13321{ 13322 signal (SIGFPE, sigfpe_handler); 13323/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 13324#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 13325 signal (SIGTRAP, sigfpe_handler); 13326#endif 13327/* Linux/SPARC yields signal SIGILL. */ 13328#if defined (__sparc__) && defined (__linux__) 13329 signal (SIGILL, sigfpe_handler); 13330#endif 13331 13332 z = x / y; 13333 nan = y / y; 13334 exit (1); 13335} 13336 13337_ACEOF 13338if ac_fn_c_try_run "$LINENO"; then : 13339 gt_cv_int_divbyzero_sigfpe=yes 13340else 13341 gt_cv_int_divbyzero_sigfpe=no 13342fi 13343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13344 conftest.$ac_objext conftest.beam conftest.$ac_ext 13345fi 13346 13347 13348fi 13349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 13350$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } 13351 case "$gt_cv_int_divbyzero_sigfpe" in 13352 *yes) value=1;; 13353 *) value=0;; 13354 esac 13355 13356cat >>confdefs.h <<_ACEOF 13357#define INTDIV0_RAISES_SIGFPE $value 13358_ACEOF 13359 13360 13361 13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 13363$as_echo_n "checking for inttypes.h... " >&6; } 13364if ${jm_ac_cv_header_inttypes_h+:} false; then : 13365 $as_echo_n "(cached) " >&6 13366else 13367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13368/* end confdefs.h. */ 13369#include <sys/types.h> 13370#include <inttypes.h> 13371int 13372main () 13373{ 13374uintmax_t i = (uintmax_t) -1; 13375 ; 13376 return 0; 13377} 13378_ACEOF 13379if ac_fn_c_try_compile "$LINENO"; then : 13380 jm_ac_cv_header_inttypes_h=yes 13381else 13382 jm_ac_cv_header_inttypes_h=no 13383fi 13384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13385fi 13386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 13387$as_echo "$jm_ac_cv_header_inttypes_h" >&6; } 13388 if test $jm_ac_cv_header_inttypes_h = yes; then 13389 13390cat >>confdefs.h <<_ACEOF 13391#define HAVE_INTTYPES_H_WITH_UINTMAX 1 13392_ACEOF 13393 13394 fi 13395 13396 13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 13398$as_echo_n "checking for stdint.h... " >&6; } 13399if ${jm_ac_cv_header_stdint_h+:} false; then : 13400 $as_echo_n "(cached) " >&6 13401else 13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13403/* end confdefs.h. */ 13404#include <sys/types.h> 13405#include <stdint.h> 13406int 13407main () 13408{ 13409uintmax_t i = (uintmax_t) -1; 13410 ; 13411 return 0; 13412} 13413_ACEOF 13414if ac_fn_c_try_compile "$LINENO"; then : 13415 jm_ac_cv_header_stdint_h=yes 13416else 13417 jm_ac_cv_header_stdint_h=no 13418fi 13419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13420fi 13421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 13422$as_echo "$jm_ac_cv_header_stdint_h" >&6; } 13423 if test $jm_ac_cv_header_stdint_h = yes; then 13424 13425cat >>confdefs.h <<_ACEOF 13426#define HAVE_STDINT_H_WITH_UINTMAX 1 13427_ACEOF 13428 13429 fi 13430 13431 13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 13433$as_echo_n "checking for unsigned long long... " >&6; } 13434if ${ac_cv_type_unsigned_long_long+:} false; then : 13435 $as_echo_n "(cached) " >&6 13436else 13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13438/* end confdefs.h. */ 13439unsigned long long ull = 1; int i = 63; 13440int 13441main () 13442{ 13443unsigned long long ullmax = (unsigned long long) -1; 13444 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 13445 ; 13446 return 0; 13447} 13448_ACEOF 13449if ac_fn_c_try_link "$LINENO"; then : 13450 ac_cv_type_unsigned_long_long=yes 13451else 13452 ac_cv_type_unsigned_long_long=no 13453fi 13454rm -f core conftest.err conftest.$ac_objext \ 13455 conftest$ac_exeext conftest.$ac_ext 13456fi 13457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 13458$as_echo "$ac_cv_type_unsigned_long_long" >&6; } 13459 if test $ac_cv_type_unsigned_long_long = yes; then 13460 13461$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h 13462 13463 fi 13464 13465 13466 13467 13468 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then 13469 13470 test $ac_cv_type_unsigned_long_long = yes \ 13471 && ac_type='unsigned long long' \ 13472 || ac_type='unsigned long' 13473 13474cat >>confdefs.h <<_ACEOF 13475#define uintmax_t $ac_type 13476_ACEOF 13477 13478 fi 13479 13480 13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 13482$as_echo_n "checking for inttypes.h... " >&6; } 13483if ${gt_cv_header_inttypes_h+:} false; then : 13484 $as_echo_n "(cached) " >&6 13485else 13486 13487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13488/* end confdefs.h. */ 13489#include <sys/types.h> 13490#include <inttypes.h> 13491int 13492main () 13493{ 13494 13495 ; 13496 return 0; 13497} 13498_ACEOF 13499if ac_fn_c_try_compile "$LINENO"; then : 13500 gt_cv_header_inttypes_h=yes 13501else 13502 gt_cv_header_inttypes_h=no 13503fi 13504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13505 13506fi 13507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 13508$as_echo "$gt_cv_header_inttypes_h" >&6; } 13509 if test $gt_cv_header_inttypes_h = yes; then 13510 13511cat >>confdefs.h <<_ACEOF 13512#define HAVE_INTTYPES_H 1 13513_ACEOF 13514 13515 fi 13516 13517 13518 13519 if test $gt_cv_header_inttypes_h = yes; then 13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 13521$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } 13522if ${gt_cv_inttypes_pri_broken+:} false; then : 13523 $as_echo_n "(cached) " >&6 13524else 13525 13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13527/* end confdefs.h. */ 13528#include <inttypes.h> 13529#ifdef PRId32 13530char *p = PRId32; 13531#endif 13532 13533int 13534main () 13535{ 13536 13537 ; 13538 return 0; 13539} 13540_ACEOF 13541if ac_fn_c_try_compile "$LINENO"; then : 13542 gt_cv_inttypes_pri_broken=no 13543else 13544 gt_cv_inttypes_pri_broken=yes 13545fi 13546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13547 13548fi 13549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 13550$as_echo "$gt_cv_inttypes_pri_broken" >&6; } 13551 fi 13552 if test "$gt_cv_inttypes_pri_broken" = yes; then 13553 13554cat >>confdefs.h <<_ACEOF 13555#define PRI_MACROS_BROKEN 1 13556_ACEOF 13557 13558 fi 13559 13560 13561 if test "X$prefix" = "XNONE"; then 13562 acl_final_prefix="$ac_default_prefix" 13563 else 13564 acl_final_prefix="$prefix" 13565 fi 13566 if test "X$exec_prefix" = "XNONE"; then 13567 acl_final_exec_prefix='${prefix}' 13568 else 13569 acl_final_exec_prefix="$exec_prefix" 13570 fi 13571 acl_save_prefix="$prefix" 13572 prefix="$acl_final_prefix" 13573 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 13574 prefix="$acl_save_prefix" 13575 13576 13577# Check whether --with-gnu-ld was given. 13578if test "${with_gnu_ld+set}" = set; then : 13579 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13580else 13581 with_gnu_ld=no 13582fi 13583 13584ac_prog=ld 13585if test "$GCC" = yes; then 13586 # Check if gcc -print-prog-name=ld gives a path. 13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 13588$as_echo_n "checking for ld used by GCC... " >&6; } 13589 case $host in 13590 *-*-mingw*) 13591 # gcc leaves a trailing carriage return which upsets mingw 13592 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13593 *) 13594 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13595 esac 13596 case $ac_prog in 13597 # Accept absolute paths. 13598 [\\/]* | [A-Za-z]:[\\/]*) 13599 re_direlt='/[^/][^/]*/\.\./' 13600 # Canonicalize the path of ld 13601 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 13602 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 13603 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 13604 done 13605 test -z "$LD" && LD="$ac_prog" 13606 ;; 13607 "") 13608 # If it fails, then pretend we aren't using GCC. 13609 ac_prog=ld 13610 ;; 13611 *) 13612 # If it is relative, then search for the first ld in PATH. 13613 with_gnu_ld=unknown 13614 ;; 13615 esac 13616elif test "$with_gnu_ld" = yes; then 13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13618$as_echo_n "checking for GNU ld... " >&6; } 13619else 13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13621$as_echo_n "checking for non-GNU ld... " >&6; } 13622fi 13623if ${acl_cv_path_LD+:} false; then : 13624 $as_echo_n "(cached) " >&6 13625else 13626 if test -z "$LD"; then 13627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 13628 for ac_dir in $PATH; do 13629 test -z "$ac_dir" && ac_dir=. 13630 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13631 acl_cv_path_LD="$ac_dir/$ac_prog" 13632 # Check to see if the program is GNU ld. I'd rather use --version, 13633 # but apparently some GNU ld's only accept -v. 13634 # Break only if it was the GNU/non-GNU ld that we prefer. 13635 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 13636 test "$with_gnu_ld" != no && break 13637 else 13638 test "$with_gnu_ld" != yes && break 13639 fi 13640 fi 13641 done 13642 IFS="$ac_save_ifs" 13643else 13644 acl_cv_path_LD="$LD" # Let the user override the test with a path. 13645fi 13646fi 13647 13648LD="$acl_cv_path_LD" 13649if test -n "$LD"; then 13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13651$as_echo "$LD" >&6; } 13652else 13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13654$as_echo "no" >&6; } 13655fi 13656test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13658$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13659if ${acl_cv_prog_gnu_ld+:} false; then : 13660 $as_echo_n "(cached) " >&6 13661else 13662 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 13663if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 13664 acl_cv_prog_gnu_ld=yes 13665else 13666 acl_cv_prog_gnu_ld=no 13667fi 13668fi 13669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 13670$as_echo "$acl_cv_prog_gnu_ld" >&6; } 13671with_gnu_ld=$acl_cv_prog_gnu_ld 13672 13673 13674 13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 13676$as_echo_n "checking for shared library run path origin... " >&6; } 13677if ${acl_cv_rpath+:} false; then : 13678 $as_echo_n "(cached) " >&6 13679else 13680 13681 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 13682 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 13683 . ./conftest.sh 13684 rm -f ./conftest.sh 13685 acl_cv_rpath=done 13686 13687fi 13688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 13689$as_echo "$acl_cv_rpath" >&6; } 13690 wl="$acl_cv_wl" 13691 libext="$acl_cv_libext" 13692 shlibext="$acl_cv_shlibext" 13693 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 13694 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 13695 hardcode_direct="$acl_cv_hardcode_direct" 13696 hardcode_minus_L="$acl_cv_hardcode_minus_L" 13697 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" 13698 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" 13699 # Check whether --enable-rpath was given. 13700if test "${enable_rpath+set}" = set; then : 13701 enableval=$enable_rpath; : 13702else 13703 enable_rpath=yes 13704fi 13705 13706 13707 13708 13709 13710 13711 13712 13713 use_additional=yes 13714 13715 acl_save_prefix="$prefix" 13716 prefix="$acl_final_prefix" 13717 acl_save_exec_prefix="$exec_prefix" 13718 exec_prefix="$acl_final_exec_prefix" 13719 13720 eval additional_includedir=\"$includedir\" 13721 eval additional_libdir=\"$libdir\" 13722 13723 exec_prefix="$acl_save_exec_prefix" 13724 prefix="$acl_save_prefix" 13725 13726 13727# Check whether --with-libiconv-prefix was given. 13728if test "${with_libiconv_prefix+set}" = set; then : 13729 withval=$with_libiconv_prefix; 13730 if test "X$withval" = "Xno"; then 13731 use_additional=no 13732 else 13733 if test "X$withval" = "X"; then 13734 13735 acl_save_prefix="$prefix" 13736 prefix="$acl_final_prefix" 13737 acl_save_exec_prefix="$exec_prefix" 13738 exec_prefix="$acl_final_exec_prefix" 13739 13740 eval additional_includedir=\"$includedir\" 13741 eval additional_libdir=\"$libdir\" 13742 13743 exec_prefix="$acl_save_exec_prefix" 13744 prefix="$acl_save_prefix" 13745 13746 else 13747 additional_includedir="$withval/include" 13748 additional_libdir="$withval/lib" 13749 fi 13750 fi 13751 13752fi 13753 13754 LIBICONV= 13755 LTLIBICONV= 13756 INCICONV= 13757 rpathdirs= 13758 ltrpathdirs= 13759 names_already_handled= 13760 names_next_round='iconv ' 13761 while test -n "$names_next_round"; do 13762 names_this_round="$names_next_round" 13763 names_next_round= 13764 for name in $names_this_round; do 13765 already_handled= 13766 for n in $names_already_handled; do 13767 if test "$n" = "$name"; then 13768 already_handled=yes 13769 break 13770 fi 13771 done 13772 if test -z "$already_handled"; then 13773 names_already_handled="$names_already_handled $name" 13774 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 13775 eval value=\"\$HAVE_LIB$uppername\" 13776 if test -n "$value"; then 13777 if test "$value" = yes; then 13778 eval value=\"\$LIB$uppername\" 13779 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 13780 eval value=\"\$LTLIB$uppername\" 13781 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 13782 else 13783 : 13784 fi 13785 else 13786 found_dir= 13787 found_la= 13788 found_so= 13789 found_a= 13790 if test $use_additional = yes; then 13791 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 13792 found_dir="$additional_libdir" 13793 found_so="$additional_libdir/lib$name.$shlibext" 13794 if test -f "$additional_libdir/lib$name.la"; then 13795 found_la="$additional_libdir/lib$name.la" 13796 fi 13797 else 13798 if test -f "$additional_libdir/lib$name.$libext"; then 13799 found_dir="$additional_libdir" 13800 found_a="$additional_libdir/lib$name.$libext" 13801 if test -f "$additional_libdir/lib$name.la"; then 13802 found_la="$additional_libdir/lib$name.la" 13803 fi 13804 fi 13805 fi 13806 fi 13807 if test "X$found_dir" = "X"; then 13808 for x in $LDFLAGS $LTLIBICONV; do 13809 13810 acl_save_prefix="$prefix" 13811 prefix="$acl_final_prefix" 13812 acl_save_exec_prefix="$exec_prefix" 13813 exec_prefix="$acl_final_exec_prefix" 13814 eval x=\"$x\" 13815 exec_prefix="$acl_save_exec_prefix" 13816 prefix="$acl_save_prefix" 13817 13818 case "$x" in 13819 -L*) 13820 dir=`echo "X$x" | sed -e 's/^X-L//'` 13821 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 13822 found_dir="$dir" 13823 found_so="$dir/lib$name.$shlibext" 13824 if test -f "$dir/lib$name.la"; then 13825 found_la="$dir/lib$name.la" 13826 fi 13827 else 13828 if test -f "$dir/lib$name.$libext"; then 13829 found_dir="$dir" 13830 found_a="$dir/lib$name.$libext" 13831 if test -f "$dir/lib$name.la"; then 13832 found_la="$dir/lib$name.la" 13833 fi 13834 fi 13835 fi 13836 ;; 13837 esac 13838 if test "X$found_dir" != "X"; then 13839 break 13840 fi 13841 done 13842 fi 13843 if test "X$found_dir" != "X"; then 13844 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 13845 if test "X$found_so" != "X"; then 13846 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 13847 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13848 else 13849 haveit= 13850 for x in $ltrpathdirs; do 13851 if test "X$x" = "X$found_dir"; then 13852 haveit=yes 13853 break 13854 fi 13855 done 13856 if test -z "$haveit"; then 13857 ltrpathdirs="$ltrpathdirs $found_dir" 13858 fi 13859 if test "$hardcode_direct" = yes; then 13860 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13861 else 13862 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 13863 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13864 haveit= 13865 for x in $rpathdirs; do 13866 if test "X$x" = "X$found_dir"; then 13867 haveit=yes 13868 break 13869 fi 13870 done 13871 if test -z "$haveit"; then 13872 rpathdirs="$rpathdirs $found_dir" 13873 fi 13874 else 13875 haveit= 13876 for x in $LDFLAGS $LIBICONV; do 13877 13878 acl_save_prefix="$prefix" 13879 prefix="$acl_final_prefix" 13880 acl_save_exec_prefix="$exec_prefix" 13881 exec_prefix="$acl_final_exec_prefix" 13882 eval x=\"$x\" 13883 exec_prefix="$acl_save_exec_prefix" 13884 prefix="$acl_save_prefix" 13885 13886 if test "X$x" = "X-L$found_dir"; then 13887 haveit=yes 13888 break 13889 fi 13890 done 13891 if test -z "$haveit"; then 13892 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 13893 fi 13894 if test "$hardcode_minus_L" != no; then 13895 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13896 else 13897 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 13898 fi 13899 fi 13900 fi 13901 fi 13902 else 13903 if test "X$found_a" != "X"; then 13904 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 13905 else 13906 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 13907 fi 13908 fi 13909 additional_includedir= 13910 case "$found_dir" in 13911 */lib | */lib/) 13912 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 13913 additional_includedir="$basedir/include" 13914 ;; 13915 esac 13916 if test "X$additional_includedir" != "X"; then 13917 if test "X$additional_includedir" != "X/usr/include"; then 13918 haveit= 13919 if test "X$additional_includedir" = "X/usr/local/include"; then 13920 if test -n "$GCC"; then 13921 case $host_os in 13922 linux*) haveit=yes;; 13923 esac 13924 fi 13925 fi 13926 if test -z "$haveit"; then 13927 for x in $CPPFLAGS $INCICONV; do 13928 13929 acl_save_prefix="$prefix" 13930 prefix="$acl_final_prefix" 13931 acl_save_exec_prefix="$exec_prefix" 13932 exec_prefix="$acl_final_exec_prefix" 13933 eval x=\"$x\" 13934 exec_prefix="$acl_save_exec_prefix" 13935 prefix="$acl_save_prefix" 13936 13937 if test "X$x" = "X-I$additional_includedir"; then 13938 haveit=yes 13939 break 13940 fi 13941 done 13942 if test -z "$haveit"; then 13943 if test -d "$additional_includedir"; then 13944 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 13945 fi 13946 fi 13947 fi 13948 fi 13949 fi 13950 if test -n "$found_la"; then 13951 save_libdir="$libdir" 13952 case "$found_la" in 13953 */* | *\\*) . "$found_la" ;; 13954 *) . "./$found_la" ;; 13955 esac 13956 libdir="$save_libdir" 13957 for dep in $dependency_libs; do 13958 case "$dep" in 13959 -L*) 13960 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 13961 if test "X$additional_libdir" != "X/usr/lib"; then 13962 haveit= 13963 if test "X$additional_libdir" = "X/usr/local/lib"; then 13964 if test -n "$GCC"; then 13965 case $host_os in 13966 linux*) haveit=yes;; 13967 esac 13968 fi 13969 fi 13970 if test -z "$haveit"; then 13971 haveit= 13972 for x in $LDFLAGS $LIBICONV; do 13973 13974 acl_save_prefix="$prefix" 13975 prefix="$acl_final_prefix" 13976 acl_save_exec_prefix="$exec_prefix" 13977 exec_prefix="$acl_final_exec_prefix" 13978 eval x=\"$x\" 13979 exec_prefix="$acl_save_exec_prefix" 13980 prefix="$acl_save_prefix" 13981 13982 if test "X$x" = "X-L$additional_libdir"; then 13983 haveit=yes 13984 break 13985 fi 13986 done 13987 if test -z "$haveit"; then 13988 if test -d "$additional_libdir"; then 13989 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 13990 fi 13991 fi 13992 haveit= 13993 for x in $LDFLAGS $LTLIBICONV; do 13994 13995 acl_save_prefix="$prefix" 13996 prefix="$acl_final_prefix" 13997 acl_save_exec_prefix="$exec_prefix" 13998 exec_prefix="$acl_final_exec_prefix" 13999 eval x=\"$x\" 14000 exec_prefix="$acl_save_exec_prefix" 14001 prefix="$acl_save_prefix" 14002 14003 if test "X$x" = "X-L$additional_libdir"; then 14004 haveit=yes 14005 break 14006 fi 14007 done 14008 if test -z "$haveit"; then 14009 if test -d "$additional_libdir"; then 14010 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 14011 fi 14012 fi 14013 fi 14014 fi 14015 ;; 14016 -R*) 14017 dir=`echo "X$dep" | sed -e 's/^X-R//'` 14018 if test "$enable_rpath" != no; then 14019 haveit= 14020 for x in $rpathdirs; do 14021 if test "X$x" = "X$dir"; then 14022 haveit=yes 14023 break 14024 fi 14025 done 14026 if test -z "$haveit"; then 14027 rpathdirs="$rpathdirs $dir" 14028 fi 14029 haveit= 14030 for x in $ltrpathdirs; do 14031 if test "X$x" = "X$dir"; then 14032 haveit=yes 14033 break 14034 fi 14035 done 14036 if test -z "$haveit"; then 14037 ltrpathdirs="$ltrpathdirs $dir" 14038 fi 14039 fi 14040 ;; 14041 -l*) 14042 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 14043 ;; 14044 *.la) 14045 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 14046 ;; 14047 *) 14048 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 14049 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 14050 ;; 14051 esac 14052 done 14053 fi 14054 else 14055 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 14056 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 14057 fi 14058 fi 14059 fi 14060 done 14061 done 14062 if test "X$rpathdirs" != "X"; then 14063 if test -n "$hardcode_libdir_separator"; then 14064 alldirs= 14065 for found_dir in $rpathdirs; do 14066 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 14067 done 14068 acl_save_libdir="$libdir" 14069 libdir="$alldirs" 14070 eval flag=\"$hardcode_libdir_flag_spec\" 14071 libdir="$acl_save_libdir" 14072 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 14073 else 14074 for found_dir in $rpathdirs; do 14075 acl_save_libdir="$libdir" 14076 libdir="$found_dir" 14077 eval flag=\"$hardcode_libdir_flag_spec\" 14078 libdir="$acl_save_libdir" 14079 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 14080 done 14081 fi 14082 fi 14083 if test "X$ltrpathdirs" != "X"; then 14084 for found_dir in $ltrpathdirs; do 14085 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 14086 done 14087 fi 14088 14089 14090 14091 14092 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 14093stdlib.h string.h unistd.h sys/param.h 14094do : 14095 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14096ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14097if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14098 cat >>confdefs.h <<_ACEOF 14099#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14100_ACEOF 14101 14102fi 14103 14104done 14105 14106 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ 14107geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ 14108strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next 14109do : 14110 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14111ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14112if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14113 cat >>confdefs.h <<_ACEOF 14114#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14115_ACEOF 14116 14117fi 14118done 14119 14120 14121 14122 14123 14124 14125 14126 am_save_CPPFLAGS="$CPPFLAGS" 14127 14128 for element in $INCICONV; do 14129 haveit= 14130 for x in $CPPFLAGS; do 14131 14132 acl_save_prefix="$prefix" 14133 prefix="$acl_final_prefix" 14134 acl_save_exec_prefix="$exec_prefix" 14135 exec_prefix="$acl_final_exec_prefix" 14136 eval x=\"$x\" 14137 exec_prefix="$acl_save_exec_prefix" 14138 prefix="$acl_save_prefix" 14139 14140 if test "X$x" = "X$element"; then 14141 haveit=yes 14142 break 14143 fi 14144 done 14145 if test -z "$haveit"; then 14146 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 14147 fi 14148 done 14149 14150 14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 14152$as_echo_n "checking for iconv... " >&6; } 14153if ${am_cv_func_iconv+:} false; then : 14154 $as_echo_n "(cached) " >&6 14155else 14156 14157 am_cv_func_iconv="no, consider installing GNU libiconv" 14158 am_cv_lib_iconv=no 14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14160/* end confdefs.h. */ 14161#include <stdlib.h> 14162#include <iconv.h> 14163int 14164main () 14165{ 14166iconv_t cd = iconv_open("",""); 14167 iconv(cd,NULL,NULL,NULL,NULL); 14168 iconv_close(cd); 14169 ; 14170 return 0; 14171} 14172_ACEOF 14173if ac_fn_c_try_link "$LINENO"; then : 14174 am_cv_func_iconv=yes 14175fi 14176rm -f core conftest.err conftest.$ac_objext \ 14177 conftest$ac_exeext conftest.$ac_ext 14178 if test "$am_cv_func_iconv" != yes; then 14179 am_save_LIBS="$LIBS" 14180 LIBS="$LIBS $LIBICONV" 14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14182/* end confdefs.h. */ 14183#include <stdlib.h> 14184#include <iconv.h> 14185int 14186main () 14187{ 14188iconv_t cd = iconv_open("",""); 14189 iconv(cd,NULL,NULL,NULL,NULL); 14190 iconv_close(cd); 14191 ; 14192 return 0; 14193} 14194_ACEOF 14195if ac_fn_c_try_link "$LINENO"; then : 14196 am_cv_lib_iconv=yes 14197 am_cv_func_iconv=yes 14198fi 14199rm -f core conftest.err conftest.$ac_objext \ 14200 conftest$ac_exeext conftest.$ac_ext 14201 LIBS="$am_save_LIBS" 14202 fi 14203 14204fi 14205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 14206$as_echo "$am_cv_func_iconv" >&6; } 14207 if test "$am_cv_func_iconv" = yes; then 14208 14209$as_echo "#define HAVE_ICONV 1" >>confdefs.h 14210 14211 fi 14212 if test "$am_cv_lib_iconv" = yes; then 14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 14214$as_echo_n "checking how to link with libiconv... " >&6; } 14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 14216$as_echo "$LIBICONV" >&6; } 14217 else 14218 CPPFLAGS="$am_save_CPPFLAGS" 14219 LIBICONV= 14220 LTLIBICONV= 14221 fi 14222 14223 14224 14225 if test "$am_cv_func_iconv" = yes; then 14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 14227$as_echo_n "checking for iconv declaration... " >&6; } 14228 if ${am_cv_proto_iconv+:} false; then : 14229 $as_echo_n "(cached) " >&6 14230else 14231 14232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14233/* end confdefs.h. */ 14234 14235#include <stdlib.h> 14236#include <iconv.h> 14237extern 14238#ifdef __cplusplus 14239"C" 14240#endif 14241#if defined(__STDC__) || defined(__cplusplus) 14242size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 14243#else 14244size_t iconv(); 14245#endif 14246 14247int 14248main () 14249{ 14250 14251 ; 14252 return 0; 14253} 14254_ACEOF 14255if ac_fn_c_try_compile "$LINENO"; then : 14256 am_cv_proto_iconv_arg1="" 14257else 14258 am_cv_proto_iconv_arg1="const" 14259fi 14260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14261 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);" 14262fi 14263 14264 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- 14266 }$am_cv_proto_iconv" >&5 14267$as_echo "${ac_t:- 14268 }$am_cv_proto_iconv" >&6; } 14269 14270cat >>confdefs.h <<_ACEOF 14271#define ICONV_CONST $am_cv_proto_iconv_arg1 14272_ACEOF 14273 14274 fi 14275 14276 14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 14278$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 14279if ${am_cv_langinfo_codeset+:} false; then : 14280 $as_echo_n "(cached) " >&6 14281else 14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14283/* end confdefs.h. */ 14284#include <langinfo.h> 14285int 14286main () 14287{ 14288char* cs = nl_langinfo(CODESET); 14289 ; 14290 return 0; 14291} 14292_ACEOF 14293if ac_fn_c_try_link "$LINENO"; then : 14294 am_cv_langinfo_codeset=yes 14295else 14296 am_cv_langinfo_codeset=no 14297fi 14298rm -f core conftest.err conftest.$ac_objext \ 14299 conftest$ac_exeext conftest.$ac_ext 14300 14301fi 14302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 14303$as_echo "$am_cv_langinfo_codeset" >&6; } 14304 if test $am_cv_langinfo_codeset = yes; then 14305 14306$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 14307 14308 fi 14309 14310 if test $ac_cv_header_locale_h = yes; then 14311 14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 14313$as_echo_n "checking for LC_MESSAGES... " >&6; } 14314if ${am_cv_val_LC_MESSAGES+:} false; then : 14315 $as_echo_n "(cached) " >&6 14316else 14317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14318/* end confdefs.h. */ 14319#include <locale.h> 14320int 14321main () 14322{ 14323return LC_MESSAGES 14324 ; 14325 return 0; 14326} 14327_ACEOF 14328if ac_fn_c_try_link "$LINENO"; then : 14329 am_cv_val_LC_MESSAGES=yes 14330else 14331 am_cv_val_LC_MESSAGES=no 14332fi 14333rm -f core conftest.err conftest.$ac_objext \ 14334 conftest$ac_exeext conftest.$ac_ext 14335fi 14336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 14337$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 14338 if test $am_cv_val_LC_MESSAGES = yes; then 14339 14340$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 14341 14342 fi 14343 14344 fi 14345 14346 for ac_prog in bison 14347do 14348 # Extract the first word of "$ac_prog", so it can be a program name with args. 14349set dummy $ac_prog; ac_word=$2 14350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14351$as_echo_n "checking for $ac_word... " >&6; } 14352if ${ac_cv_prog_INTLBISON+:} false; then : 14353 $as_echo_n "(cached) " >&6 14354else 14355 if test -n "$INTLBISON"; then 14356 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 14357else 14358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14359for as_dir in $PATH 14360do 14361 IFS=$as_save_IFS 14362 test -z "$as_dir" && as_dir=. 14363 for ac_exec_ext in '' $ac_executable_extensions; do 14364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14365 ac_cv_prog_INTLBISON="$ac_prog" 14366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14367 break 2 14368 fi 14369done 14370 done 14371IFS=$as_save_IFS 14372 14373fi 14374fi 14375INTLBISON=$ac_cv_prog_INTLBISON 14376if test -n "$INTLBISON"; then 14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 14378$as_echo "$INTLBISON" >&6; } 14379else 14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14381$as_echo "no" >&6; } 14382fi 14383 14384 14385 test -n "$INTLBISON" && break 14386done 14387 14388 if test -z "$INTLBISON"; then 14389 ac_verc_fail=yes 14390 else 14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 14392$as_echo_n "checking version of bison... " >&6; } 14393 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 14394 case $ac_prog_version in 14395 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 14396 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 14397 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 14398 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 14399 esac 14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 14401$as_echo "$ac_prog_version" >&6; } 14402 fi 14403 if test $ac_verc_fail = yes; then 14404 INTLBISON=: 14405 fi 14406 14407 14408 14409# Check whether --with-language was given. 14410if test "${with_language+set}" = set; then : 14411 withval=$with_language; if test "$withval" != "all"; then : 14412 LINGUAS="`echo $withval | sed -e 's/,/ /g'`" 14413fi 14414fi 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 14432$as_echo_n "checking whether NLS is requested... " >&6; } 14433 # Check whether --enable-nls was given. 14434if test "${enable_nls+set}" = set; then : 14435 enableval=$enable_nls; USE_NLS=$enableval 14436else 14437 USE_NLS=yes 14438fi 14439 14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 14441$as_echo "$USE_NLS" >&6; } 14442 14443 14444 14445 BUILD_INCLUDED_LIBINTL=no 14446 USE_INCLUDED_LIBINTL=no 14447 14448 LIBINTL= 14449 LTLIBINTL= 14450 POSUB= 14451 14452 if test "$USE_NLS" = "yes"; then 14453 gt_use_preinstalled_gnugettext=no 14454 14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 14456$as_echo_n "checking whether included gettext is requested... " >&6; } 14457 14458# Check whether --with-included-gettext was given. 14459if test "${with_included_gettext+set}" = set; then : 14460 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 14461else 14462 nls_cv_force_use_gnu_gettext=no 14463fi 14464 14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 14466$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } 14467 14468 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 14469 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 14470 14471 14472 14473 14474 14475 14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 14477$as_echo_n "checking for GNU gettext in libc... " >&6; } 14478if ${gt_cv_func_gnugettext2_libc+:} false; then : 14479 $as_echo_n "(cached) " >&6 14480else 14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14482/* end confdefs.h. */ 14483#include <libintl.h> 14484extern int _nl_msg_cat_cntr; 14485extern int *_nl_domain_bindings; 14486int 14487main () 14488{ 14489bindtextdomain ("", ""); 14490return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings 14491 ; 14492 return 0; 14493} 14494_ACEOF 14495if ac_fn_c_try_link "$LINENO"; then : 14496 gt_cv_func_gnugettext2_libc=yes 14497else 14498 gt_cv_func_gnugettext2_libc=no 14499fi 14500rm -f core conftest.err conftest.$ac_objext \ 14501 conftest$ac_exeext conftest.$ac_ext 14502fi 14503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5 14504$as_echo "$gt_cv_func_gnugettext2_libc" >&6; } 14505 14506 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then 14507 14508 14509 14510 use_additional=yes 14511 14512 acl_save_prefix="$prefix" 14513 prefix="$acl_final_prefix" 14514 acl_save_exec_prefix="$exec_prefix" 14515 exec_prefix="$acl_final_exec_prefix" 14516 14517 eval additional_includedir=\"$includedir\" 14518 eval additional_libdir=\"$libdir\" 14519 14520 exec_prefix="$acl_save_exec_prefix" 14521 prefix="$acl_save_prefix" 14522 14523 14524# Check whether --with-libintl-prefix was given. 14525if test "${with_libintl_prefix+set}" = set; then : 14526 withval=$with_libintl_prefix; 14527 if test "X$withval" = "Xno"; then 14528 use_additional=no 14529 else 14530 if test "X$withval" = "X"; then 14531 14532 acl_save_prefix="$prefix" 14533 prefix="$acl_final_prefix" 14534 acl_save_exec_prefix="$exec_prefix" 14535 exec_prefix="$acl_final_exec_prefix" 14536 14537 eval additional_includedir=\"$includedir\" 14538 eval additional_libdir=\"$libdir\" 14539 14540 exec_prefix="$acl_save_exec_prefix" 14541 prefix="$acl_save_prefix" 14542 14543 else 14544 additional_includedir="$withval/include" 14545 additional_libdir="$withval/lib" 14546 fi 14547 fi 14548 14549fi 14550 14551 LIBINTL= 14552 LTLIBINTL= 14553 INCINTL= 14554 rpathdirs= 14555 ltrpathdirs= 14556 names_already_handled= 14557 names_next_round='intl ' 14558 while test -n "$names_next_round"; do 14559 names_this_round="$names_next_round" 14560 names_next_round= 14561 for name in $names_this_round; do 14562 already_handled= 14563 for n in $names_already_handled; do 14564 if test "$n" = "$name"; then 14565 already_handled=yes 14566 break 14567 fi 14568 done 14569 if test -z "$already_handled"; then 14570 names_already_handled="$names_already_handled $name" 14571 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 14572 eval value=\"\$HAVE_LIB$uppername\" 14573 if test -n "$value"; then 14574 if test "$value" = yes; then 14575 eval value=\"\$LIB$uppername\" 14576 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 14577 eval value=\"\$LTLIB$uppername\" 14578 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 14579 else 14580 : 14581 fi 14582 else 14583 found_dir= 14584 found_la= 14585 found_so= 14586 found_a= 14587 if test $use_additional = yes; then 14588 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 14589 found_dir="$additional_libdir" 14590 found_so="$additional_libdir/lib$name.$shlibext" 14591 if test -f "$additional_libdir/lib$name.la"; then 14592 found_la="$additional_libdir/lib$name.la" 14593 fi 14594 else 14595 if test -f "$additional_libdir/lib$name.$libext"; then 14596 found_dir="$additional_libdir" 14597 found_a="$additional_libdir/lib$name.$libext" 14598 if test -f "$additional_libdir/lib$name.la"; then 14599 found_la="$additional_libdir/lib$name.la" 14600 fi 14601 fi 14602 fi 14603 fi 14604 if test "X$found_dir" = "X"; then 14605 for x in $LDFLAGS $LTLIBINTL; do 14606 14607 acl_save_prefix="$prefix" 14608 prefix="$acl_final_prefix" 14609 acl_save_exec_prefix="$exec_prefix" 14610 exec_prefix="$acl_final_exec_prefix" 14611 eval x=\"$x\" 14612 exec_prefix="$acl_save_exec_prefix" 14613 prefix="$acl_save_prefix" 14614 14615 case "$x" in 14616 -L*) 14617 dir=`echo "X$x" | sed -e 's/^X-L//'` 14618 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 14619 found_dir="$dir" 14620 found_so="$dir/lib$name.$shlibext" 14621 if test -f "$dir/lib$name.la"; then 14622 found_la="$dir/lib$name.la" 14623 fi 14624 else 14625 if test -f "$dir/lib$name.$libext"; then 14626 found_dir="$dir" 14627 found_a="$dir/lib$name.$libext" 14628 if test -f "$dir/lib$name.la"; then 14629 found_la="$dir/lib$name.la" 14630 fi 14631 fi 14632 fi 14633 ;; 14634 esac 14635 if test "X$found_dir" != "X"; then 14636 break 14637 fi 14638 done 14639 fi 14640 if test "X$found_dir" != "X"; then 14641 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 14642 if test "X$found_so" != "X"; then 14643 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 14644 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14645 else 14646 haveit= 14647 for x in $ltrpathdirs; do 14648 if test "X$x" = "X$found_dir"; then 14649 haveit=yes 14650 break 14651 fi 14652 done 14653 if test -z "$haveit"; then 14654 ltrpathdirs="$ltrpathdirs $found_dir" 14655 fi 14656 if test "$hardcode_direct" = yes; then 14657 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14658 else 14659 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 14660 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14661 haveit= 14662 for x in $rpathdirs; do 14663 if test "X$x" = "X$found_dir"; then 14664 haveit=yes 14665 break 14666 fi 14667 done 14668 if test -z "$haveit"; then 14669 rpathdirs="$rpathdirs $found_dir" 14670 fi 14671 else 14672 haveit= 14673 for x in $LDFLAGS $LIBINTL; do 14674 14675 acl_save_prefix="$prefix" 14676 prefix="$acl_final_prefix" 14677 acl_save_exec_prefix="$exec_prefix" 14678 exec_prefix="$acl_final_exec_prefix" 14679 eval x=\"$x\" 14680 exec_prefix="$acl_save_exec_prefix" 14681 prefix="$acl_save_prefix" 14682 14683 if test "X$x" = "X-L$found_dir"; then 14684 haveit=yes 14685 break 14686 fi 14687 done 14688 if test -z "$haveit"; then 14689 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 14690 fi 14691 if test "$hardcode_minus_L" != no; then 14692 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14693 else 14694 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 14695 fi 14696 fi 14697 fi 14698 fi 14699 else 14700 if test "X$found_a" != "X"; then 14701 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 14702 else 14703 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 14704 fi 14705 fi 14706 additional_includedir= 14707 case "$found_dir" in 14708 */lib | */lib/) 14709 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 14710 additional_includedir="$basedir/include" 14711 ;; 14712 esac 14713 if test "X$additional_includedir" != "X"; then 14714 if test "X$additional_includedir" != "X/usr/include"; then 14715 haveit= 14716 if test "X$additional_includedir" = "X/usr/local/include"; then 14717 if test -n "$GCC"; then 14718 case $host_os in 14719 linux*) haveit=yes;; 14720 esac 14721 fi 14722 fi 14723 if test -z "$haveit"; then 14724 for x in $CPPFLAGS $INCINTL; do 14725 14726 acl_save_prefix="$prefix" 14727 prefix="$acl_final_prefix" 14728 acl_save_exec_prefix="$exec_prefix" 14729 exec_prefix="$acl_final_exec_prefix" 14730 eval x=\"$x\" 14731 exec_prefix="$acl_save_exec_prefix" 14732 prefix="$acl_save_prefix" 14733 14734 if test "X$x" = "X-I$additional_includedir"; then 14735 haveit=yes 14736 break 14737 fi 14738 done 14739 if test -z "$haveit"; then 14740 if test -d "$additional_includedir"; then 14741 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 14742 fi 14743 fi 14744 fi 14745 fi 14746 fi 14747 if test -n "$found_la"; then 14748 save_libdir="$libdir" 14749 case "$found_la" in 14750 */* | *\\*) . "$found_la" ;; 14751 *) . "./$found_la" ;; 14752 esac 14753 libdir="$save_libdir" 14754 for dep in $dependency_libs; do 14755 case "$dep" in 14756 -L*) 14757 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 14758 if test "X$additional_libdir" != "X/usr/lib"; then 14759 haveit= 14760 if test "X$additional_libdir" = "X/usr/local/lib"; then 14761 if test -n "$GCC"; then 14762 case $host_os in 14763 linux*) haveit=yes;; 14764 esac 14765 fi 14766 fi 14767 if test -z "$haveit"; then 14768 haveit= 14769 for x in $LDFLAGS $LIBINTL; do 14770 14771 acl_save_prefix="$prefix" 14772 prefix="$acl_final_prefix" 14773 acl_save_exec_prefix="$exec_prefix" 14774 exec_prefix="$acl_final_exec_prefix" 14775 eval x=\"$x\" 14776 exec_prefix="$acl_save_exec_prefix" 14777 prefix="$acl_save_prefix" 14778 14779 if test "X$x" = "X-L$additional_libdir"; then 14780 haveit=yes 14781 break 14782 fi 14783 done 14784 if test -z "$haveit"; then 14785 if test -d "$additional_libdir"; then 14786 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 14787 fi 14788 fi 14789 haveit= 14790 for x in $LDFLAGS $LTLIBINTL; do 14791 14792 acl_save_prefix="$prefix" 14793 prefix="$acl_final_prefix" 14794 acl_save_exec_prefix="$exec_prefix" 14795 exec_prefix="$acl_final_exec_prefix" 14796 eval x=\"$x\" 14797 exec_prefix="$acl_save_exec_prefix" 14798 prefix="$acl_save_prefix" 14799 14800 if test "X$x" = "X-L$additional_libdir"; then 14801 haveit=yes 14802 break 14803 fi 14804 done 14805 if test -z "$haveit"; then 14806 if test -d "$additional_libdir"; then 14807 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 14808 fi 14809 fi 14810 fi 14811 fi 14812 ;; 14813 -R*) 14814 dir=`echo "X$dep" | sed -e 's/^X-R//'` 14815 if test "$enable_rpath" != no; then 14816 haveit= 14817 for x in $rpathdirs; do 14818 if test "X$x" = "X$dir"; then 14819 haveit=yes 14820 break 14821 fi 14822 done 14823 if test -z "$haveit"; then 14824 rpathdirs="$rpathdirs $dir" 14825 fi 14826 haveit= 14827 for x in $ltrpathdirs; do 14828 if test "X$x" = "X$dir"; then 14829 haveit=yes 14830 break 14831 fi 14832 done 14833 if test -z "$haveit"; then 14834 ltrpathdirs="$ltrpathdirs $dir" 14835 fi 14836 fi 14837 ;; 14838 -l*) 14839 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 14840 ;; 14841 *.la) 14842 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 14843 ;; 14844 *) 14845 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 14846 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 14847 ;; 14848 esac 14849 done 14850 fi 14851 else 14852 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 14853 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 14854 fi 14855 fi 14856 fi 14857 done 14858 done 14859 if test "X$rpathdirs" != "X"; then 14860 if test -n "$hardcode_libdir_separator"; then 14861 alldirs= 14862 for found_dir in $rpathdirs; do 14863 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 14864 done 14865 acl_save_libdir="$libdir" 14866 libdir="$alldirs" 14867 eval flag=\"$hardcode_libdir_flag_spec\" 14868 libdir="$acl_save_libdir" 14869 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 14870 else 14871 for found_dir in $rpathdirs; do 14872 acl_save_libdir="$libdir" 14873 libdir="$found_dir" 14874 eval flag=\"$hardcode_libdir_flag_spec\" 14875 libdir="$acl_save_libdir" 14876 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 14877 done 14878 fi 14879 fi 14880 if test "X$ltrpathdirs" != "X"; then 14881 for found_dir in $ltrpathdirs; do 14882 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 14883 done 14884 fi 14885 14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 14887$as_echo_n "checking for GNU gettext in libintl... " >&6; } 14888if ${gt_cv_func_gnugettext2_libintl+:} false; then : 14889 $as_echo_n "(cached) " >&6 14890else 14891 gt_save_CPPFLAGS="$CPPFLAGS" 14892 CPPFLAGS="$CPPFLAGS $INCINTL" 14893 gt_save_LIBS="$LIBS" 14894 LIBS="$LIBS $LIBINTL" 14895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14896/* end confdefs.h. */ 14897#include <libintl.h> 14898extern int _nl_msg_cat_cntr; 14899extern 14900#ifdef __cplusplus 14901"C" 14902#endif 14903const char *_nl_expand_alias (); 14904int 14905main () 14906{ 14907bindtextdomain ("", ""); 14908return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) 14909 ; 14910 return 0; 14911} 14912_ACEOF 14913if ac_fn_c_try_link "$LINENO"; then : 14914 gt_cv_func_gnugettext2_libintl=yes 14915else 14916 gt_cv_func_gnugettext2_libintl=no 14917fi 14918rm -f core conftest.err conftest.$ac_objext \ 14919 conftest$ac_exeext conftest.$ac_ext 14920 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then 14921 LIBS="$LIBS $LIBICONV" 14922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14923/* end confdefs.h. */ 14924#include <libintl.h> 14925extern int _nl_msg_cat_cntr; 14926extern 14927#ifdef __cplusplus 14928"C" 14929#endif 14930const char *_nl_expand_alias (); 14931int 14932main () 14933{ 14934bindtextdomain ("", ""); 14935return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) 14936 ; 14937 return 0; 14938} 14939_ACEOF 14940if ac_fn_c_try_link "$LINENO"; then : 14941 LIBINTL="$LIBINTL $LIBICONV" 14942 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 14943 gt_cv_func_gnugettext2_libintl=yes 14944 14945fi 14946rm -f core conftest.err conftest.$ac_objext \ 14947 conftest$ac_exeext conftest.$ac_ext 14948 fi 14949 CPPFLAGS="$gt_save_CPPFLAGS" 14950 LIBS="$gt_save_LIBS" 14951fi 14952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5 14953$as_echo "$gt_cv_func_gnugettext2_libintl" >&6; } 14954 fi 14955 14956 if test "$gt_cv_func_gnugettext2_libc" = "yes" \ 14957 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \ 14958 && test "$PACKAGE" != gettext; }; then 14959 gt_use_preinstalled_gnugettext=yes 14960 else 14961 LIBINTL= 14962 LTLIBINTL= 14963 INCINTL= 14964 fi 14965 14966 14967 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 14968 nls_cv_use_gnu_gettext=yes 14969 fi 14970 fi 14971 14972 if test "$nls_cv_use_gnu_gettext" = "yes"; then 14973 INTLOBJS="\$(GETTOBJS)" 14974 BUILD_INCLUDED_LIBINTL=yes 14975 USE_INCLUDED_LIBINTL=yes 14976 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 14977 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 14978 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 14979 fi 14980 14981 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 14982 || test "$nls_cv_use_gnu_gettext" = "yes"; then 14983 CATOBJEXT=.gmo 14984 fi 14985 14986 14987 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 14988 || test "$nls_cv_use_gnu_gettext" = "yes"; then 14989 14990$as_echo "#define ENABLE_NLS 1" >>confdefs.h 14991 14992 else 14993 USE_NLS=no 14994 fi 14995 fi 14996 14997 if test "$USE_NLS" = "yes"; then 14998 14999 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 15000 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then 15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 15002$as_echo_n "checking how to link with libintl... " >&6; } 15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 15004$as_echo "$LIBINTL" >&6; } 15005 15006 for element in $INCINTL; do 15007 haveit= 15008 for x in $CPPFLAGS; do 15009 15010 acl_save_prefix="$prefix" 15011 prefix="$acl_final_prefix" 15012 acl_save_exec_prefix="$exec_prefix" 15013 exec_prefix="$acl_final_exec_prefix" 15014 eval x=\"$x\" 15015 exec_prefix="$acl_save_exec_prefix" 15016 prefix="$acl_save_prefix" 15017 15018 if test "X$x" = "X$element"; then 15019 haveit=yes 15020 break 15021 fi 15022 done 15023 if test -z "$haveit"; then 15024 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 15025 fi 15026 done 15027 15028 fi 15029 15030 15031$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 15032 15033 15034$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 15035 15036 fi 15037 15038 POSUB=po 15039 fi 15040 15041 15042 if test "$PACKAGE" = gettext; then 15043 BUILD_INCLUDED_LIBINTL=yes 15044 fi 15045 15046 15047 15048 15049 15050 15051 nls_cv_header_intl= 15052 nls_cv_header_libgt= 15053 15054 DATADIRNAME=share 15055 15056 15057 INSTOBJEXT=.mo 15058 15059 15060 GENCAT=gencat 15061 15062 15063 INTL_LIBTOOL_SUFFIX_PREFIX= 15064 15065 15066 15067 INTLLIBS="$LIBINTL" 15068 15069 15070 15071 15072 15073 15074 if test $USE_INCLUDED_LIBINTL = yes; then : 15075 INCINTL=-I\${top_builddir}/intl 15076fi 15077 15078 if test x$USE_NLS = xyes; then : 15079 15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5 15081$as_echo_n "checking for autopoint... " >&6; } 15082 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'` 15083 if test -n "$autopoint_version"; then : 15084 15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5 15086$as_echo "yes ($autopoint_version)" >&6; } 15087 15088 15089else 15090 15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15092$as_echo "no" >&6; } 15093 USE_NLS=no 15094 15095fi 15096 15097fi 15098 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then : 15099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 15100 You need to install GNU gettext/gettext-tools to compile aMule with 15101 i18n support." >&5 15102$as_echo "$as_me: WARNING: 15103 You need to install GNU gettext/gettext-tools to compile aMule with 15104 i18n support." >&2;} 15105_mule_warning_12=yes 15106_mule_has_warnings=yes 15107 15108fi 15109 15110 if test ${USE_NLS:-no} = yes; then : 15111 15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5 15113$as_echo_n "checking for requested languages... " >&6; } 15114 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'` 15115 15116 if test ${enable_amule_daemon:-no} = yes; then : 15117 15118 if test -z "$LINGUAS"; then : 15119 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'` 15120else 15121 15122 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15123 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES" 15124 15125fi 15126 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'` 15127 15128else 15129 AMULE_DAEMON_MANPAGES= 15130fi 15131 15132 15133 15134 if test ${enable_amulecmd:-no} = yes; then : 15135 15136 if test -z "$LINGUAS"; then : 15137 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'` 15138else 15139 15140 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15141 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES" 15142 15143fi 15144 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'` 15145 15146else 15147 AMULECMD_MANPAGES= 15148fi 15149 15150 15151 15152 if test ${enable_webserver:-no} = yes; then : 15153 15154 if test -z "$LINGUAS"; then : 15155 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'` 15156else 15157 15158 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15159 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES" 15160 15161fi 15162 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'` 15163 15164else 15165 WEBSERVER_MANPAGES= 15166fi 15167 15168 15169 15170 if test ${enable_amule_gui:-no} = yes; then : 15171 15172 if test -z "$LINGUAS"; then : 15173 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'` 15174else 15175 15176 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15177 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES" 15178 15179fi 15180 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'` 15181 15182else 15183 AMULE_GUI_MANPAGES= 15184fi 15185 15186 15187 15188 if test ${enable_cas:-no} = yes; then : 15189 15190 if test -z "$LINGUAS"; then : 15191 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'` 15192else 15193 15194 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15195 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES" 15196 15197fi 15198 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'` 15199 15200else 15201 CAS_MANPAGES= 15202fi 15203 15204 15205 15206 if test ${enable_wxcas:-no} = yes; then : 15207 15208 if test -z "$LINGUAS"; then : 15209 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'` 15210else 15211 15212 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15213 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES" 15214 15215fi 15216 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'` 15217 15218else 15219 WXCAS_MANPAGES= 15220fi 15221 15222 15223 15224 if test ${enable_ed2k:-yes} = yes; then : 15225 15226 if test -z "$LINGUAS"; then : 15227 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'` 15228else 15229 15230 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15231 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES" 15232 15233fi 15234 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'` 15235 15236else 15237 ED2K_MANPAGES= 15238fi 15239 15240 15241 15242 if test ${enable_alc:-no} = yes; then : 15243 15244 if test -z "$LINGUAS"; then : 15245 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'` 15246else 15247 15248 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15249 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES" 15250 15251fi 15252 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'` 15253 15254else 15255 ALC_MANPAGES= 15256fi 15257 15258 15259 15260 if test ${enable_alcc:-no} = yes; then : 15261 15262 if test -z "$LINGUAS"; then : 15263 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'` 15264else 15265 15266 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15267 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES" 15268 15269fi 15270 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'` 15271 15272else 15273 ALCC_MANPAGES= 15274fi 15275 15276 15277 15278 if test ${enable_monolithic:-yes} = yes; then : 15279 15280 if test -z "$LINGUAS"; then : 15281 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'` 15282else 15283 15284 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs` 15285 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES" 15286 15287fi 15288 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'` 15289 15290else 15291 MONOLITHIC_MANPAGES= 15292fi 15293 15294 15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5 15296$as_echo "${LINGUAS:-all}" >&6; } 15297 15298fi 15299 15300 15301ac_ext=cpp 15302ac_cpp='$CXXCPP $CPPFLAGS' 15303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15306 15307 15308 15309# Check for bfd.h (to have proper backtraces without using wxExecute) 15310 15311 for ac_header in ansidecl.h bfd.h 15312do : 15313 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15314ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15315if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15316 cat >>confdefs.h <<_ACEOF 15317#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15318_ACEOF 15319 15320fi 15321 15322done 15323 15324 if test $ac_cv_header_ansidecl_h = yes -a $ac_cv_header_bfd_h = yes; then : 15325 15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link with bfd" >&5 15327$as_echo_n "checking for libraries required to link with bfd... " >&6; } 15328 if ${mule_cv_lib_bfd+:} false; then : 15329 $as_echo_n "(cached) " >&6 15330else 15331 15332 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 15333 # Doing some black magic to prevent multiple tests for the same set of 15334 # libraries when any of the shell variables above expand to nothing. 15335 echo $bfd_ldadd 15336 done | sed -e 's/^ *//;s/ *$//;s/ */ /g' | ${AWK} '!x[$0]++' >conftest.bfd_ldadd 15337 while read bfd_ldadd; do 15338 mule_backup_LIBS="$LIBS" 15339 mule_backup_LDFLAGS="$LDFLAGS" 15340 LIBS="${bfd_ldadd} $LIBS" 15341 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}" 15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15343/* end confdefs.h. */ 15344 15345 15346 #include <ansidecl.h> 15347 #include <bfd.h> 15348 15349int 15350main () 15351{ 15352const char *dummy = bfd_errmsg(bfd_get_error()); 15353 ; 15354 return 0; 15355} 15356 15357_ACEOF 15358if ac_fn_cxx_try_link "$LINENO"; then : 15359 15360 LIBS="$mule_backup_LIBS" 15361 LDFLAGS="$mule_backup_LDFLAGS" 15362 mule_cv_lib_bfd="${bfd_ldadd}" 15363 15364fi 15365rm -f core conftest.err conftest.$ac_objext \ 15366 conftest$ac_exeext conftest.$ac_ext 15367 LIBS="$mule_backup_LIBS" 15368 LDFLAGS="$mule_backup_LDFLAGS" 15369 if ${mule_cv_lib_bfd+:} false; then : 15370 break 15371fi 15372 done <conftest.bfd_ldadd 15373 rm -f conftest.bfd_ldadd 15374 15375fi 15376 15377 15378 if ${mule_cv_lib_bfd+:} false; then : 15379 15380 BFD_CPPFLAGS="-DHAVE_BFD" 15381 BFD_LIBS="${mule_cv_lib_bfd}" 15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BFD_LIBS:-none required}" >&5 15383$as_echo "${BFD_LIBS:-none required}" >&6; } 15384 15385else 15386 15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15388$as_echo "not found" >&6; } 15389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 15390 Cannot link to the library containing the bfd functions." >&5 15391$as_echo "$as_me: WARNING: 15392 Cannot link to the library containing the bfd functions." >&2;} 15393_mule_warning_13=yes 15394_mule_has_warnings=yes 15395 15396 15397fi 15398 15399else 15400 15401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 15402 bfd.h not found or unusable, please install binutils development 15403 package if you are a developer or want to help testing aMule" >&5 15404$as_echo "$as_me: 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" >&2;} 15407_mule_warning_14=yes 15408_mule_has_warnings=yes 15409 15410 15411fi 15412 15413 15414 15415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5 15416$as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; } 15417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15418/* end confdefs.h. */ 15419 15420 15421 #include <execinfo.h> 15422 15423int 15424main () 15425{ 15426 15427 void *bt[1]; 15428 int n = backtrace((void **)&bt, 1); 15429 char **bt_syms = backtrace_symbols(bt, n); 15430 15431 ; 15432 return 0; 15433} 15434 15435_ACEOF 15436if ac_fn_cxx_try_link "$LINENO"; then : 15437 15438 15439 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h 15440 15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15442$as_echo "yes" >&6; } 15443 15444else 15445 15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15447$as_echo "no" >&6; } 15448 15449fi 15450rm -f core conftest.err conftest.$ac_objext \ 15451 conftest$ac_exeext conftest.$ac_ext 15452 15453 15454 15455# aMule plasma widget 15456if test ${enable_plasmamule:-no} = yes; then : 15457 15458 15459 if test -z ${QT_MOC}; then : 15460 15461 for ac_prog in moc-qt4 moc 15462do 15463 # Extract the first word of "$ac_prog", so it can be a program name with args. 15464set dummy $ac_prog; ac_word=$2 15465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15466$as_echo_n "checking for $ac_word... " >&6; } 15467if ${ac_cv_path_QT_MOC+:} false; then : 15468 $as_echo_n "(cached) " >&6 15469else 15470 case $QT_MOC in 15471 [\\/]* | ?:[\\/]*) 15472 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path. 15473 ;; 15474 *) 15475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15476for as_dir in $PATH 15477do 15478 IFS=$as_save_IFS 15479 test -z "$as_dir" && as_dir=. 15480 for ac_exec_ext in '' $ac_executable_extensions; do 15481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15482 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext" 15483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15484 break 2 15485 fi 15486done 15487 done 15488IFS=$as_save_IFS 15489 15490 ;; 15491esac 15492fi 15493QT_MOC=$ac_cv_path_QT_MOC 15494if test -n "$QT_MOC"; then 15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5 15496$as_echo "$QT_MOC" >&6; } 15497else 15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15499$as_echo "no" >&6; } 15500fi 15501 15502 15503 test -n "$QT_MOC" && break 15504done 15505 15506 if test -z ${QT_MOC}; then : 15507 15508 echo moc not found 15509 exit 1 15510 15511fi 15512 15513else 15514 15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5 15516$as_echo_n "checking for moc... " >&6; } 15517 if test -x ${QT_MOC}; then : 15518 15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5 15520$as_echo "${QT_MOC}" >&6; } 15521 15522 15523else 15524 15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5 15526$as_echo "\"not found\"" >&6; } 15527 QT_MOC="not found" 15528 exit 1 15529 15530fi 15531 15532fi 15533 15534 15535 if test "${QT_MOC}" != "not found"; then : 15536 15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5 15538$as_echo_n "checking for moc version >= 4... " >&6; } 15539 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'` 15540 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then : 15541 15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5 15543$as_echo "found ${QT_MOC_VERSION}" >&6; } 15544 15545else 15546 15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5 15548$as_echo "not found ${QT_MOC_VERSION} is too old" >&6; } 15549 QT_MOC="not found" 15550 exit 1 15551 15552fi 15553 15554fi 15555 15556 if test "${QT_MOC}" = "not found"; then : 15557 enable_plasmamule=disabled 15558fi 15559 15560 if test ${enable_plasmamule:-no} = yes; then : 15561 15562 15563 15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5 15565$as_echo_n "checking for qt... " >&6; } 15566 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then : 15567 15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 15569$as_echo "found" >&6; } 15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5 15571$as_echo_n "checking for qt core cflags... " >&6; } 15572 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore` 15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5 15574$as_echo "$QT_CORE_CFLAGS" >&6; } 15575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5 15576$as_echo_n "checking for qt core libs... " >&6; } 15577 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore` 15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5 15579$as_echo "$QT_CORE_LIBS" >&6; } 15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5 15581$as_echo_n "checking for qt gui cflags... " >&6; } 15582 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui` 15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5 15584$as_echo "$QT_GUI_CFLAGS" >&6; } 15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5 15586$as_echo_n "checking for qt gui libs... " >&6; } 15587 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui` 15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5 15589$as_echo "$QT_GUI_LIBS" >&6; } 15590 15591else 15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15593$as_echo "not found" >&6; } 15594 exit 1 15595 15596fi 15597 15598 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then : 15599 15600 QT_DBUS_LDFLAGS="-lQtDBus" 15601 15602 15603fi 15604 15605 15606 15607 15608 15609 15610 if test -z "${QT_CORE_CXXFLAGS}"; then : 15611 enable_plasmamule=disabled 15612fi 15613 15614fi 15615 15616 if test ${enable_plasmamule:-no} = yes; then : 15617 15618 15619 if test -z ${KDE4_CONFIG}; then : 15620 15621 # Extract the first word of "kde4-config", so it can be a program name with args. 15622set dummy kde4-config; ac_word=$2 15623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15624$as_echo_n "checking for $ac_word... " >&6; } 15625if ${ac_cv_path_KDE4_CONFIG+:} false; then : 15626 $as_echo_n "(cached) " >&6 15627else 15628 case $KDE4_CONFIG in 15629 [\\/]* | ?:[\\/]*) 15630 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path. 15631 ;; 15632 *) 15633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15634for as_dir in $PATH 15635do 15636 IFS=$as_save_IFS 15637 test -z "$as_dir" && as_dir=. 15638 for ac_exec_ext in '' $ac_executable_extensions; do 15639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15640 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15642 break 2 15643 fi 15644done 15645 done 15646IFS=$as_save_IFS 15647 15648 ;; 15649esac 15650fi 15651KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG 15652if test -n "$KDE4_CONFIG"; then 15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5 15654$as_echo "$KDE4_CONFIG" >&6; } 15655else 15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15657$as_echo "no" >&6; } 15658fi 15659 15660 15661 15662else 15663 15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5 15665$as_echo_n "checking for kde4-config... " >&6; } 15666 if test ! -x KDE4_CONFIG; then : 15667 15668 KDE4_CONFIG="not found" 15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15670$as_echo "not found" >&6; } 15671 exit 1 15672 15673fi 15674 15675fi 15676 15677 if test "${KDE4_CONFIG}" != "not found"; then : 15678 15679 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'` 15680 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then : 15681 15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5 15683$as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; } 15684 15685else 15686 15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5 15688$as_echo "at least version 4 required" >&6; } 15689 exit 1 15690 15691fi 15692 15693else 15694 15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15696$as_echo "not found" >&6; } 15697 exit 1 15698 15699fi 15700 15701 15702 if test "${KDE4_CONFIG}" = "not found"; then : 15703 enable_plasmamule=disabled 15704fi 15705 15706fi 15707 15708 if test ${enable_plasmamule:-no} = yes; then : 15709 15710 15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5 15712$as_echo_n "checking for kde4 headers... " >&6; } 15713 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include` 15714 15715 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then : 15716 15717 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then : 15718 15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5 15720$as_echo "${KDE_HEADER_DIR}" >&6; } 15721 15722else 15723 15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5 15725$as_echo "dataengine.h not found" >&6; } 15726 exit 1 15727 15728fi 15729 15730else 15731 15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5 15733$as_echo "kdirwatch.h not found" >&6; } 15734 exit 1 15735 15736fi 15737 15738 15739 if test -z ${KDE_HEADER_DIR}; then : 15740 enable_plasmamule=disabled 15741fi 15742 15743fi 15744 15745 if test ${enable_plasmamule:-no} = yes; then : 15746 15747 if true && 15748 true; then : 15749 15750 15751 15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5 15753$as_echo_n "checking for kde4 applinks Path... " >&6; } 15754 if test `echo ${prefix} | grep home | wc -l` = 1; then : 15755 15756 KDE_IN_HOME="yes" 15757 15758fi 15759 if test ${KDE_IN_HOME} = "yes"; then : 15760 15761 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1` 15762 15763else 15764 15765 if test -n ${prefix}; then : 15766 15767 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1` 15768 if test -n ${KDE_APPLNK_PATH}; then : 15769 15770 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1` 15771 15772fi 15773 15774else 15775 15776 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1` 15777 15778fi 15779 15780fi 15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5 15782$as_echo "${KDE_APPLNK_PATH}" >&6; } 15783 15784 15785 15786 15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5 15788$as_echo_n "checking for kde4 services Path... " >&6; } 15789 if test `echo ${prefix} | grep home | wc -l` = 1; then : 15790 15791 KDE_IN_HOME="yes" 15792 15793fi 15794 if test ${KDE_IN_HOME} = "yes"; then : 15795 15796 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1` 15797 15798else 15799 15800 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1` 15801 15802fi 15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5 15804$as_echo "${KDE_SERVICE_PATH}" >&6; } 15805 15806 15807 15808 15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5 15810$as_echo_n "checking for kde4 plugins Path... " >&6; } 15811 if test `echo ${prefix} | grep home | wc -l` = 1; then : 15812 15813 KDE_IN_HOME="yes" 15814 15815fi 15816 if test ${KDE_IN_HOME} = "yes"; then : 15817 15818 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1` 15819 15820else 15821 15822 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1` 15823 15824fi 15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5 15826$as_echo "${KDE_MODULE_PATH}" >&6; } 15827 15828 15829 15830 15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5 15832$as_echo_n "checking for kde4 icons Path... " >&6; } 15833 if test `echo ${prefix} | grep home | wc -l` = 1; then : 15834 15835 KDE_IN_HOME="yes" 15836 15837fi 15838 if test ${KDE_IN_HOME} = "yes"; then : 15839 15840 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1` 15841 15842else 15843 15844 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1` 15845 15846fi 15847 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/ 15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5 15849$as_echo "${KDE_ICON_PATH}" >&6; } 15850 15851 15852 15853 15854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5 15855$as_echo_n "checking for location for mime-type installation... " >&6; } 15856 if test `echo ${prefix} | grep home | wc -l` = 1; then : 15857 15858 KDE_IN_HOME="yes" 15859 15860fi 15861 if test ${KDE_IN_HOME} = "yes"; then : 15862 15863 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1` 15864 15865else 15866 15867 if test -n ${prefix}; then : 15868 15869 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1` 15870 if test -n ${KDE_MIME_PATH}; then : 15871 15872 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1` 15873 15874fi 15875 15876else 15877 15878 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1` 15879 15880fi 15881 15882fi 15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5 15884$as_echo "${KDE_MIME_PATH}" >&6; } 15885 15886 15887 15888else 15889 enable_plasmamule=disabled 15890fi 15891 15892fi 15893 15894 if test ${enable_debug:-yes} = yes; then : 15895 15896 DEBUGFLAG="-D__DEBUG__" 15897 15898 15899fi 15900 15901fi 15902 15903 15904# Check for readline library 15905if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then : 15906 15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 15908$as_echo_n "checking for a readline compatible library... " >&6; } 15909if ${vl_cv_lib_readline+:} false; then : 15910 $as_echo_n "(cached) " >&6 15911else 15912 15913 ORIG_LIBS="$LIBS" 15914 for readline_lib in readline edit editline; do 15915 for termcap_lib in "" termcap curses ncurses; do 15916 if test -z "$termcap_lib"; then 15917 TRY_LIB="-l$readline_lib" 15918 else 15919 TRY_LIB="-l$readline_lib -l$termcap_lib" 15920 fi 15921 LIBS="$ORIG_LIBS $TRY_LIB" 15922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15923/* end confdefs.h. */ 15924 15925/* Override any GCC internal prototype to avoid an error. 15926 Use char because int might match the return type of a GCC 15927 builtin and then its argument prototype would still apply. */ 15928#ifdef __cplusplus 15929extern "C" 15930#endif 15931char readline (); 15932int 15933main () 15934{ 15935return readline (); 15936 ; 15937 return 0; 15938} 15939_ACEOF 15940if ac_fn_cxx_try_link "$LINENO"; then : 15941 vl_cv_lib_readline="$TRY_LIB" 15942fi 15943rm -f core conftest.err conftest.$ac_objext \ 15944 conftest$ac_exeext conftest.$ac_ext 15945 if test -n "$vl_cv_lib_readline"; then 15946 break 15947 fi 15948 done 15949 if test -n "$vl_cv_lib_readline"; then 15950 break 15951 fi 15952 done 15953 if test -z "$vl_cv_lib_readline"; then 15954 vl_cv_lib_readline="no" 15955 LIBS="$ORIG_LIBS" 15956 fi 15957 15958fi 15959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5 15960$as_echo "$vl_cv_lib_readline" >&6; } 15961 15962 if test "$vl_cv_lib_readline" != "no"; then 15963 have_readline_headers=no 15964 for ac_header in readline/readline.h readline.h 15965do : 15966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15967ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15968if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15969 cat >>confdefs.h <<_ACEOF 15970#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15971_ACEOF 15972 have_readline_headers=yes ; break 15973fi 15974 15975done 15976 15977 if test "$have_readline_headers" = "yes"; then 15978 READLINE_LIBS="$vl_cv_lib_readline" 15979 15980$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 15981 15982 else 15983 READLINE_LIBS= 15984 vl_cv_lib_readline=no 15985 fi 15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 15987$as_echo_n "checking whether readline supports history... " >&6; } 15988if ${vl_cv_lib_readline_history+:} false; then : 15989 $as_echo_n "(cached) " >&6 15990else 15991 15992 vl_cv_lib_readline_history="no" 15993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15994/* end confdefs.h. */ 15995 15996/* Override any GCC internal prototype to avoid an error. 15997 Use char because int might match the return type of a GCC 15998 builtin and then its argument prototype would still apply. */ 15999#ifdef __cplusplus 16000extern "C" 16001#endif 16002char add_history (); 16003int 16004main () 16005{ 16006return add_history (); 16007 ; 16008 return 0; 16009} 16010_ACEOF 16011if ac_fn_cxx_try_link "$LINENO"; then : 16012 vl_cv_lib_readline_history="yes" 16013fi 16014rm -f core conftest.err conftest.$ac_objext \ 16015 conftest$ac_exeext conftest.$ac_ext 16016 16017fi 16018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5 16019$as_echo "$vl_cv_lib_readline_history" >&6; } 16020 if test "$vl_cv_lib_readline_history" = "yes"; then 16021 have_readline_history_headers=no 16022 for ac_header in readline/history.h history.h 16023do : 16024 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16025ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16026if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16027 cat >>confdefs.h <<_ACEOF 16028#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16029_ACEOF 16030 have_readline_history_headers=yes ; break 16031fi 16032 16033done 16034 16035 if test "$have_readline_history_headers" = "yes"; then 16036 16037$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h 16038 16039 else 16040 vl_cv_lib_readline_history=no 16041 fi 16042 fi 16043 else 16044 READLINE_LIBS="" 16045 fi 16046 16047 16048fi 16049 16050 16051ac_ext=c 16052ac_cpp='$CPP $CPPFLAGS' 16053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16055ac_compiler_gnu=$ac_cv_c_compiler_gnu 16056 16057 16058# Check for strerror_r 16059mule_backup_CPPFLAGS="$CPPFLAGS" 16060CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600" 16061ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 16062if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 16063 ac_have_decl=1 16064else 16065 ac_have_decl=0 16066fi 16067 16068cat >>confdefs.h <<_ACEOF 16069#define HAVE_DECL_STRERROR_R $ac_have_decl 16070_ACEOF 16071 16072for ac_func in strerror_r 16073do : 16074 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 16075if test "x$ac_cv_func_strerror_r" = xyes; then : 16076 cat >>confdefs.h <<_ACEOF 16077#define HAVE_STRERROR_R 1 16078_ACEOF 16079 16080fi 16081done 16082 16083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 16084$as_echo_n "checking whether strerror_r returns char *... " >&6; } 16085if ${ac_cv_func_strerror_r_char_p+:} false; then : 16086 $as_echo_n "(cached) " >&6 16087else 16088 16089 ac_cv_func_strerror_r_char_p=no 16090 if test $ac_cv_have_decl_strerror_r = yes; then 16091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16092/* end confdefs.h. */ 16093$ac_includes_default 16094int 16095main () 16096{ 16097 16098 char buf[100]; 16099 char x = *strerror_r (0, buf, sizeof buf); 16100 char *p = strerror_r (0, buf, sizeof buf); 16101 return !p || x; 16102 16103 ; 16104 return 0; 16105} 16106_ACEOF 16107if ac_fn_c_try_compile "$LINENO"; then : 16108 ac_cv_func_strerror_r_char_p=yes 16109fi 16110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16111 else 16112 # strerror_r is not declared. Choose between 16113 # systems that have relatively inaccessible declarations for the 16114 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 16115 # former has a strerror_r that returns char*, while the latter 16116 # has a strerror_r that returns `int'. 16117 # This test should segfault on the DEC system. 16118 if test "$cross_compiling" = yes; then : 16119 : 16120else 16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16122/* end confdefs.h. */ 16123$ac_includes_default 16124 extern char *strerror_r (); 16125int 16126main () 16127{ 16128char buf[100]; 16129 char x = *strerror_r (0, buf, sizeof buf); 16130 return ! isalpha (x); 16131 ; 16132 return 0; 16133} 16134_ACEOF 16135if ac_fn_c_try_run "$LINENO"; then : 16136 ac_cv_func_strerror_r_char_p=yes 16137fi 16138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16139 conftest.$ac_objext conftest.beam conftest.$ac_ext 16140fi 16141 16142 fi 16143 16144fi 16145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 16146$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 16147if test $ac_cv_func_strerror_r_char_p = yes; then 16148 16149$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 16150 16151fi 16152 16153CPPFLAGS="$mule_backup_CPPFLAGS" 16154 16155 16156# Other tests 16157 16158# autoconf >= 2.60 already defines ${docdir}, but we always need it. 16159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5 16160$as_echo_n "checking for docdir... " >&6; } 16161if test -z "$docdir"; then : 16162 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}" 16163fi 16164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5 16165$as_echo "$docdir" >&6; } 16166 16167 16168# Try to set the SVN checkout-date 16169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5 16170$as_echo_n "checking for SVNDATE... " >&6; } 16171modified= 16172if test -f "$srcdir/.svn-revision"; then 16173 svndate="rev. `cat $srcdir/.svn-revision`" 16174elif test -d "$srcdir"/.svn; then 16175 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'`" 16176elif test -d "$srcdir"/.git; then 16177 16178 git_revision=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%h'` 16179 if test -n "`git --git-dir="$srcdir"/.git --work-tree="$srcdir" status --porcelain --untracked-files=no`" ; then 16180 modified="+" 16181 fi 16182 if test -f $srcdir/.git/svn/.metadata ; then 16183 git_sha=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%H'` 16184 svndate=`git --git-dir="$srcdir"/.git rev-list ${git_sha} | while read sha; do 16185 svn_revision=\`git --git-dir="$srcdir"/.git svn find-rev \${sha}\` 16186 if test -n "\${svn_revision}" ; then 16187 if test \${sha} = ${git_sha} ; then 16188 echo "rev. \${svn_revision}${modified}" 16189 else 16190 echo "rev. \${svn_revision}+g${git_revision}${modified}" 16191 fi 16192 break 16193 fi 16194 done` 16195 else 16196 svndate="rev. g${git_revision}${modified}" 16197 fi 16198 16199elif test -d "$srcdir"/.hg; then 16200 16201 hg_revision=`hg --cwd "$srcdir" identify --id` 16202 hg_revid=${hg_revision%+} 16203 if test ${hg_revision} != ${hg_revid} ; then 16204 modified="+" 16205 fi 16206 if test -f "$srcdir"/.hg/svn/uuid ; then 16207 svndate=`hg --cwd "$srcdir" log --follow --template='r{svnrev} {node|short}\n' | while read svn_revision hg_sha; do 16208 if test \${svn_revision} != r ; then 16209 if test \${hg_sha} = ${hg_revid} ; then 16210 echo "rev. \${svn_revision#r}${modified}" 16211 else 16212 echo "rev. \${svn_revision#r}+h${hg_revision}" 16213 fi 16214 break 16215 fi 16216 done` 16217 else 16218 svndate="rev. h${hg_revision}" 16219 fi 16220 16221fi 16222 16223 16224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5 16225$as_echo "${svndate:-None required}" >&6; } 16226if test -n "$svndate"; then : 16227 16228 16229cat >>confdefs.h <<_ACEOF 16230#define SVNDATE "$svndate" 16231_ACEOF 16232 16233 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__" 16234 16235fi 16236SVNDATE=$svndate 16237 16238 16239 16240 16241# Check whether --with-denoise-level was given. 16242if test "${with_denoise_level+set}" = set; then : 16243 withval=$with_denoise_level; 16244fi 16245 16246 16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5 16248$as_echo_n "checking denoising level... " >&6; } 16249 if test ${with_denoise_level:-5} = yes; then : 16250 with_denoise_level=5 16251fi 16252 if test ${with_denoise_level:-5} = no; then : 16253 with_denoise_level=0 16254fi 16255 if test ${with_denoise_level:-5} -gt 4; then : 16256 if test "${svndate:+set}" = "set"; then : 16257 with_denoise_level=0 16258else 16259 with_denoise_level=4 16260fi 16261fi 16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5 16263$as_echo "$with_denoise_level" >&6; } 16264 16265 ac_config_commands="$ac_config_commands denoiser" 16266 16267 16268 16269 16270# DO NOT MOVE UP... THERE'S A REASON TO BE HERE!! 16271 16272 # Check whether --enable-ccache was given. 16273if test "${enable_ccache+set}" = set; then : 16274 enableval=$enable_ccache; 16275fi 16276 16277 16278 16279 16280# Check whether --with-ccache-prefix was given. 16281if test "${with_ccache_prefix+set}" = set; then : 16282 withval=$with_ccache_prefix; 16283fi 16284 16285 16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5 16287$as_echo_n "checking whether ccache support should be added... " >&6; } 16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5 16289$as_echo "${enable_ccache:-no}" >&6; } 16290 16291 if test ${enable_ccache:-no} = yes; then : 16292 16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5 16294$as_echo_n "checking for ccache presence... " >&6; } 16295 if test -z "$with_ccache_prefix"; then : 16296 16297 ccache_full=`which ccache` 16298 with_ccache_prefix=`dirname ${ccache_full}` 16299 16300fi 16301 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then : 16302 16303 CC="$with_ccache_prefix/ccache $CC" 16304 CXX="$with_ccache_prefix/ccache $CXX" 16305 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC" 16306 16307else 16308 enable_ccache=no 16309fi 16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5 16311$as_echo "${enable_ccache:-no}" >&6; } 16312 16313fi 16314 16315 16316 16317 16318 if test x$SYS = xwin32; then 16319 SYS_WIN32_TRUE= 16320 SYS_WIN32_FALSE='#' 16321else 16322 SYS_WIN32_TRUE='#' 16323 SYS_WIN32_FALSE= 16324fi 16325 16326 if test x$SYS = xwin32 -a "$RC" != ":" -a x$WX_PORT = xmsw; then 16327 NEED_RC_TRUE= 16328 NEED_RC_FALSE='#' 16329else 16330 NEED_RC_TRUE='#' 16331 NEED_RC_FALSE= 16332fi 16333 16334 if test x$SYS = xdarwin; then 16335 NEED_CORESERVICES_TRUE= 16336 NEED_CORESERVICES_FALSE='#' 16337else 16338 NEED_CORESERVICES_TRUE='#' 16339 NEED_CORESERVICES_FALSE= 16340fi 16341 16342 if test x$USE_NLS = xyes; then 16343 COMPILE_NLS_TRUE= 16344 COMPILE_NLS_FALSE='#' 16345else 16346 COMPILE_NLS_TRUE='#' 16347 COMPILE_NLS_FALSE= 16348fi 16349 16350 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then 16351 INSTALL_SKINS_TRUE= 16352 INSTALL_SKINS_FALSE='#' 16353else 16354 INSTALL_SKINS_TRUE='#' 16355 INSTALL_SKINS_FALSE= 16356fi 16357 16358 if test ${enable_plasmamule:-no} = yes; then 16359 PLASMAMULE_TRUE= 16360 PLASMAMULE_FALSE='#' 16361else 16362 PLASMAMULE_TRUE='#' 16363 PLASMAMULE_FALSE= 16364fi 16365 16366 16367 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 16368 COMPILE_LIB_COMMON_TRUE= 16369 COMPILE_LIB_COMMON_FALSE='#' 16370else 16371 COMPILE_LIB_COMMON_TRUE='#' 16372 COMPILE_LIB_COMMON_FALSE= 16373fi 16374 16375 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 16376 COMPILE_LIB_EC_TRUE= 16377 COMPILE_LIB_EC_FALSE='#' 16378else 16379 COMPILE_LIB_EC_TRUE='#' 16380 COMPILE_LIB_EC_FALSE= 16381fi 16382 16383 16384ac_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" 16385 16386 16387if test x$SYS = xwin32; then : 16388 ac_config_files="$ac_config_files version.rc" 16389 16390fi 16391cat >confcache <<\_ACEOF 16392# This file is a shell script that caches the results of configure 16393# tests run on this system so they can be shared between configure 16394# scripts and configure runs, see configure's option --config-cache. 16395# It is not useful on other systems. If it contains results you don't 16396# want to keep, you may remove or edit it. 16397# 16398# config.status only pays attention to the cache file if you give it 16399# the --recheck option to rerun configure. 16400# 16401# `ac_cv_env_foo' variables (set or unset) will be overridden when 16402# loading this file, other *unset* `ac_cv_foo' will be assigned the 16403# following values. 16404 16405_ACEOF 16406 16407# The following way of writing the cache mishandles newlines in values, 16408# but we know of no workaround that is simple, portable, and efficient. 16409# So, we kill variables containing newlines. 16410# Ultrix sh set writes to stderr and can't be redirected directly, 16411# and sets the high bit in the cache file unless we assign to the vars. 16412( 16413 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16414 eval ac_val=\$$ac_var 16415 case $ac_val in #( 16416 *${as_nl}*) 16417 case $ac_var in #( 16418 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16419$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16420 esac 16421 case $ac_var in #( 16422 _ | IFS | as_nl) ;; #( 16423 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16424 *) { eval $ac_var=; unset $ac_var;} ;; 16425 esac ;; 16426 esac 16427 done 16428 16429 (set) 2>&1 | 16430 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16431 *${as_nl}ac_space=\ *) 16432 # `set' does not quote correctly, so add quotes: double-quote 16433 # substitution turns \\\\ into \\, and sed turns \\ into \. 16434 sed -n \ 16435 "s/'/'\\\\''/g; 16436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16437 ;; #( 16438 *) 16439 # `set' quotes correctly as required by POSIX, so do not add quotes. 16440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16441 ;; 16442 esac | 16443 sort 16444) | 16445 sed ' 16446 /^ac_cv_env_/b end 16447 t clear 16448 :clear 16449 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16450 t end 16451 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16452 :end' >>confcache 16453if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16454 if test -w "$cache_file"; then 16455 if test "x$cache_file" != "x/dev/null"; then 16456 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16457$as_echo "$as_me: updating cache $cache_file" >&6;} 16458 if test ! -f "$cache_file" || test -h "$cache_file"; then 16459 cat confcache >"$cache_file" 16460 else 16461 case $cache_file in #( 16462 */* | ?:*) 16463 mv -f confcache "$cache_file"$$ && 16464 mv -f "$cache_file"$$ "$cache_file" ;; #( 16465 *) 16466 mv -f confcache "$cache_file" ;; 16467 esac 16468 fi 16469 fi 16470 else 16471 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16472$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16473 fi 16474fi 16475rm -f confcache 16476 16477test "x$prefix" = xNONE && prefix=$ac_default_prefix 16478# Let make expand exec_prefix. 16479test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16480 16481DEFS=-DHAVE_CONFIG_H 16482 16483ac_libobjs= 16484ac_ltlibobjs= 16485U= 16486for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16487 # 1. Remove the extension, and $U if already installed. 16488 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16489 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16490 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16491 # will be set to the directory where LIBOBJS objects are built. 16492 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16493 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16494done 16495LIBOBJS=$ac_libobjs 16496 16497LTLIBOBJS=$ac_ltlibobjs 16498 16499 16500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16501$as_echo_n "checking that generated files are newer than configure... " >&6; } 16502 if test -n "$am_sleep_pid"; then 16503 # Hide warnings about reused PIDs. 16504 wait $am_sleep_pid 2>/dev/null 16505 fi 16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16507$as_echo "done" >&6; } 16508 if test -n "$EXEEXT"; then 16509 am__EXEEXT_TRUE= 16510 am__EXEEXT_FALSE='#' 16511else 16512 am__EXEEXT_TRUE='#' 16513 am__EXEEXT_FALSE= 16514fi 16515 16516if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 16517 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 16518Usually this means the macro was only invoked conditionally." "$LINENO" 5 16519fi 16520if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16521 as_fn_error $? "conditional \"AMDEP\" was never defined. 16522Usually this means the macro was only invoked conditionally." "$LINENO" 5 16523fi 16524if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16525 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 16526Usually this means the macro was only invoked conditionally." "$LINENO" 5 16527fi 16528if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16529 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16530Usually this means the macro was only invoked conditionally." "$LINENO" 5 16531fi 16532if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then 16533 as_fn_error $? "conditional \"MONOLITHIC\" was never defined. 16534Usually this means the macro was only invoked conditionally." "$LINENO" 5 16535fi 16536if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then 16537 as_fn_error $? "conditional \"AMULE_DAEMON\" was never defined. 16538Usually this means the macro was only invoked conditionally." "$LINENO" 5 16539fi 16540if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then 16541 as_fn_error $? "conditional \"COMPILE_CMD\" was never defined. 16542Usually this means the macro was only invoked conditionally." "$LINENO" 5 16543fi 16544if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then 16545 as_fn_error $? "conditional \"WEB\" was never defined. 16546Usually this means the macro was only invoked conditionally." "$LINENO" 5 16547fi 16548if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then 16549 as_fn_error $? "conditional \"AMULE_GUI\" was never defined. 16550Usually this means the macro was only invoked conditionally." "$LINENO" 5 16551fi 16552if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then 16553 as_fn_error $? "conditional \"CAS\" was never defined. 16554Usually this means the macro was only invoked conditionally." "$LINENO" 5 16555fi 16556if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then 16557 as_fn_error $? "conditional \"WXCAS\" was never defined. 16558Usually this means the macro was only invoked conditionally." "$LINENO" 5 16559fi 16560if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then 16561 as_fn_error $? "conditional \"ED2K\" was never defined. 16562Usually this means the macro was only invoked conditionally." "$LINENO" 5 16563fi 16564if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then 16565 as_fn_error $? "conditional \"ALC\" was never defined. 16566Usually this means the macro was only invoked conditionally." "$LINENO" 5 16567fi 16568if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then 16569 as_fn_error $? "conditional \"ALCC\" was never defined. 16570Usually this means the macro was only invoked conditionally." "$LINENO" 5 16571fi 16572if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then 16573 as_fn_error $? "conditional \"XAS\" was never defined. 16574Usually this means the macro was only invoked conditionally." "$LINENO" 5 16575fi 16576if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then 16577 as_fn_error $? "conditional \"FILEVIEW\" was never defined. 16578Usually this means the macro was only invoked conditionally." "$LINENO" 5 16579fi 16580if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then 16581 as_fn_error $? "conditional \"SYS_WIN32\" was never defined. 16582Usually this means the macro was only invoked conditionally." "$LINENO" 5 16583fi 16584if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then 16585 as_fn_error $? "conditional \"NEED_RC\" was never defined. 16586Usually this means the macro was only invoked conditionally." "$LINENO" 5 16587fi 16588if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then 16589 as_fn_error $? "conditional \"NEED_CORESERVICES\" was never defined. 16590Usually this means the macro was only invoked conditionally." "$LINENO" 5 16591fi 16592if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then 16593 as_fn_error $? "conditional \"COMPILE_NLS\" was never defined. 16594Usually this means the macro was only invoked conditionally." "$LINENO" 5 16595fi 16596if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then 16597 as_fn_error $? "conditional \"INSTALL_SKINS\" was never defined. 16598Usually this means the macro was only invoked conditionally." "$LINENO" 5 16599fi 16600if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then 16601 as_fn_error $? "conditional \"PLASMAMULE\" was never defined. 16602Usually this means the macro was only invoked conditionally." "$LINENO" 5 16603fi 16604if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then 16605 as_fn_error $? "conditional \"COMPILE_LIB_COMMON\" was never defined. 16606Usually this means the macro was only invoked conditionally." "$LINENO" 5 16607fi 16608if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then 16609 as_fn_error $? "conditional \"COMPILE_LIB_EC\" was never defined. 16610Usually this means the macro was only invoked conditionally." "$LINENO" 5 16611fi 16612 16613: "${CONFIG_STATUS=./config.status}" 16614ac_write_fail=0 16615ac_clean_files_save=$ac_clean_files 16616ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16617{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16618$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16619as_write_fail=0 16620cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16621#! $SHELL 16622# Generated by $as_me. 16623# Run this file to recreate the current configuration. 16624# Compiler output produced by configure, useful for debugging 16625# configure, is in config.log if it exists. 16626 16627debug=false 16628ac_cs_recheck=false 16629ac_cs_silent=false 16630 16631SHELL=\${CONFIG_SHELL-$SHELL} 16632export SHELL 16633_ASEOF 16634cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16635## -------------------- ## 16636## M4sh Initialization. ## 16637## -------------------- ## 16638 16639# Be more Bourne compatible 16640DUALCASE=1; export DUALCASE # for MKS sh 16641if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16642 emulate sh 16643 NULLCMD=: 16644 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16645 # is contrary to our usage. Disable this feature. 16646 alias -g '${1+"$@"}'='"$@"' 16647 setopt NO_GLOB_SUBST 16648else 16649 case `(set -o) 2>/dev/null` in #( 16650 *posix*) : 16651 set -o posix ;; #( 16652 *) : 16653 ;; 16654esac 16655fi 16656 16657 16658as_nl=' 16659' 16660export as_nl 16661# Printing a long string crashes Solaris 7 /usr/bin/printf. 16662as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16663as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16664as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16665# Prefer a ksh shell builtin over an external printf program on Solaris, 16666# but without wasting forks for bash or zsh. 16667if test -z "$BASH_VERSION$ZSH_VERSION" \ 16668 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16669 as_echo='print -r --' 16670 as_echo_n='print -rn --' 16671elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16672 as_echo='printf %s\n' 16673 as_echo_n='printf %s' 16674else 16675 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16676 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16677 as_echo_n='/usr/ucb/echo -n' 16678 else 16679 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16680 as_echo_n_body='eval 16681 arg=$1; 16682 case $arg in #( 16683 *"$as_nl"*) 16684 expr "X$arg" : "X\\(.*\\)$as_nl"; 16685 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16686 esac; 16687 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16688 ' 16689 export as_echo_n_body 16690 as_echo_n='sh -c $as_echo_n_body as_echo' 16691 fi 16692 export as_echo_body 16693 as_echo='sh -c $as_echo_body as_echo' 16694fi 16695 16696# The user is always right. 16697if test "${PATH_SEPARATOR+set}" != set; then 16698 PATH_SEPARATOR=: 16699 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16700 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16701 PATH_SEPARATOR=';' 16702 } 16703fi 16704 16705 16706# IFS 16707# We need space, tab and new line, in precisely that order. Quoting is 16708# there to prevent editors from complaining about space-tab. 16709# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16710# splitting by setting IFS to empty value.) 16711IFS=" "" $as_nl" 16712 16713# Find who we are. Look in the path if we contain no directory separator. 16714as_myself= 16715case $0 in #(( 16716 *[\\/]* ) as_myself=$0 ;; 16717 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16718for as_dir in $PATH 16719do 16720 IFS=$as_save_IFS 16721 test -z "$as_dir" && as_dir=. 16722 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16723 done 16724IFS=$as_save_IFS 16725 16726 ;; 16727esac 16728# We did not find ourselves, most probably we were run as `sh COMMAND' 16729# in which case we are not to be found in the path. 16730if test "x$as_myself" = x; then 16731 as_myself=$0 16732fi 16733if test ! -f "$as_myself"; then 16734 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16735 exit 1 16736fi 16737 16738# Unset variables that we do not need and which cause bugs (e.g. in 16739# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16740# suppresses any "Segmentation fault" message there. '((' could 16741# trigger a bug in pdksh 5.2.14. 16742for as_var in BASH_ENV ENV MAIL MAILPATH 16743do eval test x\${$as_var+set} = xset \ 16744 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16745done 16746PS1='$ ' 16747PS2='> ' 16748PS4='+ ' 16749 16750# NLS nuisances. 16751LC_ALL=C 16752export LC_ALL 16753LANGUAGE=C 16754export LANGUAGE 16755 16756# CDPATH. 16757(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16758 16759 16760# as_fn_error STATUS ERROR [LINENO LOG_FD] 16761# ---------------------------------------- 16762# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16763# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16764# script with STATUS, using 1 if that was 0. 16765as_fn_error () 16766{ 16767 as_status=$1; test $as_status -eq 0 && as_status=1 16768 if test "$4"; then 16769 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16770 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16771 fi 16772 $as_echo "$as_me: error: $2" >&2 16773 as_fn_exit $as_status 16774} # as_fn_error 16775 16776 16777# as_fn_set_status STATUS 16778# ----------------------- 16779# Set $? to STATUS, without forking. 16780as_fn_set_status () 16781{ 16782 return $1 16783} # as_fn_set_status 16784 16785# as_fn_exit STATUS 16786# ----------------- 16787# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16788as_fn_exit () 16789{ 16790 set +e 16791 as_fn_set_status $1 16792 exit $1 16793} # as_fn_exit 16794 16795# as_fn_unset VAR 16796# --------------- 16797# Portably unset VAR. 16798as_fn_unset () 16799{ 16800 { eval $1=; unset $1;} 16801} 16802as_unset=as_fn_unset 16803# as_fn_append VAR VALUE 16804# ---------------------- 16805# Append the text in VALUE to the end of the definition contained in VAR. Take 16806# advantage of any shell optimizations that allow amortized linear growth over 16807# repeated appends, instead of the typical quadratic growth present in naive 16808# implementations. 16809if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16810 eval 'as_fn_append () 16811 { 16812 eval $1+=\$2 16813 }' 16814else 16815 as_fn_append () 16816 { 16817 eval $1=\$$1\$2 16818 } 16819fi # as_fn_append 16820 16821# as_fn_arith ARG... 16822# ------------------ 16823# Perform arithmetic evaluation on the ARGs, and store the result in the 16824# global $as_val. Take advantage of shells that can avoid forks. The arguments 16825# must be portable across $(()) and expr. 16826if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16827 eval 'as_fn_arith () 16828 { 16829 as_val=$(( $* )) 16830 }' 16831else 16832 as_fn_arith () 16833 { 16834 as_val=`expr "$@" || test $? -eq 1` 16835 } 16836fi # as_fn_arith 16837 16838 16839if expr a : '\(a\)' >/dev/null 2>&1 && 16840 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16841 as_expr=expr 16842else 16843 as_expr=false 16844fi 16845 16846if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16847 as_basename=basename 16848else 16849 as_basename=false 16850fi 16851 16852if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16853 as_dirname=dirname 16854else 16855 as_dirname=false 16856fi 16857 16858as_me=`$as_basename -- "$0" || 16859$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16860 X"$0" : 'X\(//\)$' \| \ 16861 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16862$as_echo X/"$0" | 16863 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16864 s//\1/ 16865 q 16866 } 16867 /^X\/\(\/\/\)$/{ 16868 s//\1/ 16869 q 16870 } 16871 /^X\/\(\/\).*/{ 16872 s//\1/ 16873 q 16874 } 16875 s/.*/./; q'` 16876 16877# Avoid depending upon Character Ranges. 16878as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16879as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16880as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16881as_cr_digits='0123456789' 16882as_cr_alnum=$as_cr_Letters$as_cr_digits 16883 16884ECHO_C= ECHO_N= ECHO_T= 16885case `echo -n x` in #((((( 16886-n*) 16887 case `echo 'xy\c'` in 16888 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16889 xy) ECHO_C='\c';; 16890 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16891 ECHO_T=' ';; 16892 esac;; 16893*) 16894 ECHO_N='-n';; 16895esac 16896 16897rm -f conf$$ conf$$.exe conf$$.file 16898if test -d conf$$.dir; then 16899 rm -f conf$$.dir/conf$$.file 16900else 16901 rm -f conf$$.dir 16902 mkdir conf$$.dir 2>/dev/null 16903fi 16904if (echo >conf$$.file) 2>/dev/null; then 16905 if ln -s conf$$.file conf$$ 2>/dev/null; then 16906 as_ln_s='ln -s' 16907 # ... but there are two gotchas: 16908 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16909 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16910 # In both cases, we have to default to `cp -pR'. 16911 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16912 as_ln_s='cp -pR' 16913 elif ln conf$$.file conf$$ 2>/dev/null; then 16914 as_ln_s=ln 16915 else 16916 as_ln_s='cp -pR' 16917 fi 16918else 16919 as_ln_s='cp -pR' 16920fi 16921rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16922rmdir conf$$.dir 2>/dev/null 16923 16924 16925# as_fn_mkdir_p 16926# ------------- 16927# Create "$as_dir" as a directory, including parents if necessary. 16928as_fn_mkdir_p () 16929{ 16930 16931 case $as_dir in #( 16932 -*) as_dir=./$as_dir;; 16933 esac 16934 test -d "$as_dir" || eval $as_mkdir_p || { 16935 as_dirs= 16936 while :; do 16937 case $as_dir in #( 16938 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16939 *) as_qdir=$as_dir;; 16940 esac 16941 as_dirs="'$as_qdir' $as_dirs" 16942 as_dir=`$as_dirname -- "$as_dir" || 16943$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16944 X"$as_dir" : 'X\(//\)[^/]' \| \ 16945 X"$as_dir" : 'X\(//\)$' \| \ 16946 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16947$as_echo X"$as_dir" | 16948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16949 s//\1/ 16950 q 16951 } 16952 /^X\(\/\/\)[^/].*/{ 16953 s//\1/ 16954 q 16955 } 16956 /^X\(\/\/\)$/{ 16957 s//\1/ 16958 q 16959 } 16960 /^X\(\/\).*/{ 16961 s//\1/ 16962 q 16963 } 16964 s/.*/./; q'` 16965 test -d "$as_dir" && break 16966 done 16967 test -z "$as_dirs" || eval "mkdir $as_dirs" 16968 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16969 16970 16971} # as_fn_mkdir_p 16972if mkdir -p . 2>/dev/null; then 16973 as_mkdir_p='mkdir -p "$as_dir"' 16974else 16975 test -d ./-p && rmdir ./-p 16976 as_mkdir_p=false 16977fi 16978 16979 16980# as_fn_executable_p FILE 16981# ----------------------- 16982# Test if FILE is an executable regular file. 16983as_fn_executable_p () 16984{ 16985 test -f "$1" && test -x "$1" 16986} # as_fn_executable_p 16987as_test_x='test -x' 16988as_executable_p=as_fn_executable_p 16989 16990# Sed expression to map a string onto a valid CPP name. 16991as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16992 16993# Sed expression to map a string onto a valid variable name. 16994as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16995 16996 16997exec 6>&1 16998## ----------------------------------- ## 16999## Main body of $CONFIG_STATUS script. ## 17000## ----------------------------------- ## 17001_ASEOF 17002test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17003 17004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17005# Save the log message, to keep $0 and so on meaningful, and to 17006# report actual input values of CONFIG_FILES etc. instead of their 17007# values after options handling. 17008ac_log=" 17009This file was extended by aMule $as_me SVN, which was 17010generated by GNU Autoconf 2.69. Invocation command line was 17011 17012 CONFIG_FILES = $CONFIG_FILES 17013 CONFIG_HEADERS = $CONFIG_HEADERS 17014 CONFIG_LINKS = $CONFIG_LINKS 17015 CONFIG_COMMANDS = $CONFIG_COMMANDS 17016 $ $0 $@ 17017 17018on `(hostname || uname -n) 2>/dev/null | sed 1q` 17019" 17020 17021_ACEOF 17022 17023case $ac_config_files in *" 17024"*) set x $ac_config_files; shift; ac_config_files=$*;; 17025esac 17026 17027case $ac_config_headers in *" 17028"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17029esac 17030 17031 17032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17033# Files that config.status was made for. 17034config_files="$ac_config_files" 17035config_headers="$ac_config_headers" 17036config_commands="$ac_config_commands" 17037 17038_ACEOF 17039 17040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17041ac_cs_usage="\ 17042\`$as_me' instantiates files and other configuration actions 17043from templates according to the current configuration. Unless the files 17044and actions are specified as TAGs, all are instantiated by default. 17045 17046Usage: $0 [OPTION]... [TAG]... 17047 17048 -h, --help print this help, then exit 17049 -V, --version print version number and configuration settings, then exit 17050 --config print configuration, then exit 17051 -q, --quiet, --silent 17052 do not print progress messages 17053 -d, --debug don't remove temporary files 17054 --recheck update $as_me by reconfiguring in the same conditions 17055 --file=FILE[:TEMPLATE] 17056 instantiate the configuration file FILE 17057 --header=FILE[:TEMPLATE] 17058 instantiate the configuration header FILE 17059 17060Configuration files: 17061$config_files 17062 17063Configuration headers: 17064$config_headers 17065 17066Configuration commands: 17067$config_commands 17068 17069Report bugs to <admin@amule.org>." 17070 17071_ACEOF 17072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17073ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17074ac_cs_version="\\ 17075aMule config.status SVN 17076configured by $0, generated by GNU Autoconf 2.69, 17077 with options \\"\$ac_cs_config\\" 17078 17079Copyright (C) 2012 Free Software Foundation, Inc. 17080This config.status script is free software; the Free Software Foundation 17081gives unlimited permission to copy, distribute and modify it." 17082 17083ac_pwd='$ac_pwd' 17084srcdir='$srcdir' 17085INSTALL='$INSTALL' 17086MKDIR_P='$MKDIR_P' 17087AWK='$AWK' 17088test -n "\$AWK" || AWK=awk 17089_ACEOF 17090 17091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17092# The default lists apply if the user does not specify any file. 17093ac_need_defaults=: 17094while test $# != 0 17095do 17096 case $1 in 17097 --*=?*) 17098 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17099 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17100 ac_shift=: 17101 ;; 17102 --*=) 17103 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17104 ac_optarg= 17105 ac_shift=: 17106 ;; 17107 *) 17108 ac_option=$1 17109 ac_optarg=$2 17110 ac_shift=shift 17111 ;; 17112 esac 17113 17114 case $ac_option in 17115 # Handling of the options. 17116 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17117 ac_cs_recheck=: ;; 17118 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17119 $as_echo "$ac_cs_version"; exit ;; 17120 --config | --confi | --conf | --con | --co | --c ) 17121 $as_echo "$ac_cs_config"; exit ;; 17122 --debug | --debu | --deb | --de | --d | -d ) 17123 debug=: ;; 17124 --file | --fil | --fi | --f ) 17125 $ac_shift 17126 case $ac_optarg in 17127 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17128 '') as_fn_error $? "missing file argument" ;; 17129 esac 17130 as_fn_append CONFIG_FILES " '$ac_optarg'" 17131 ac_need_defaults=false;; 17132 --header | --heade | --head | --hea ) 17133 $ac_shift 17134 case $ac_optarg in 17135 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17136 esac 17137 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17138 ac_need_defaults=false;; 17139 --he | --h) 17140 # Conflict between --help and --header 17141 as_fn_error $? "ambiguous option: \`$1' 17142Try \`$0 --help' for more information.";; 17143 --help | --hel | -h ) 17144 $as_echo "$ac_cs_usage"; exit ;; 17145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17146 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17147 ac_cs_silent=: ;; 17148 17149 # This is an error. 17150 -*) as_fn_error $? "unrecognized option: \`$1' 17151Try \`$0 --help' for more information." ;; 17152 17153 *) as_fn_append ac_config_targets " $1" 17154 ac_need_defaults=false ;; 17155 17156 esac 17157 shift 17158done 17159 17160ac_configure_extra_args= 17161 17162if $ac_cs_silent; then 17163 exec 6>/dev/null 17164 ac_configure_extra_args="$ac_configure_extra_args --silent" 17165fi 17166 17167_ACEOF 17168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17169if \$ac_cs_recheck; then 17170 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17171 shift 17172 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17173 CONFIG_SHELL='$SHELL' 17174 export CONFIG_SHELL 17175 exec "\$@" 17176fi 17177 17178_ACEOF 17179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17180exec 5>>config.log 17181{ 17182 echo 17183 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17184## Running $as_me. ## 17185_ASBOX 17186 $as_echo "$ac_log" 17187} >&5 17188 17189_ACEOF 17190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17191# 17192# INIT-COMMANDS 17193# 17194AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17195# Capture the value of obsolete ALL_LINGUAS because we need it to compute 17196 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 17197 # from automake. 17198 eval 'ALL_LINGUAS''="$ALL_LINGUAS"' 17199 # Capture the value of LINGUAS because we need it to compute CATALOGS. 17200 LINGUAS="${LINGUAS-%UNSET%}" 17201 17202denoiserlevel=$with_denoise_level 17203 17204_ACEOF 17205 17206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17207 17208# Handling of arguments. 17209for ac_config_target in $ac_config_targets 17210do 17211 case $ac_config_target in 17212 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17213 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17214 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 17215 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;; 17216 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17217 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 17218 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;; 17219 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 17220 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 17221 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 17222 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;; 17223 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;; 17224 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;; 17225 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;; 17226 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;; 17227 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;; 17228 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;; 17229 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;; 17230 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;; 17231 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;; 17232 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;; 17233 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;; 17234 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;; 17235 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;; 17236 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;; 17237 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;; 17238 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;; 17239 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;; 17240 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;; 17241 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;; 17242 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;; 17243 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;; 17244 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;; 17245 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;; 17246 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;; 17247 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;; 17248 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;; 17249 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;; 17250 17251 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17252 esac 17253done 17254 17255 17256# If the user did not use the arguments to specify the items to instantiate, 17257# then the envvar interface is used. Set only those that are not. 17258# We use the long form for the default assignment because of an extremely 17259# bizarre bug on SunOS 4.1.3. 17260if $ac_need_defaults; then 17261 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17262 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17263 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17264fi 17265 17266# Have a temporary directory for convenience. Make it in the build tree 17267# simply because there is no reason against having it here, and in addition, 17268# creating and moving files from /tmp can sometimes cause problems. 17269# Hook for its removal unless debugging. 17270# Note that there is a small window in which the directory will not be cleaned: 17271# after its creation but before its name has been assigned to `$tmp'. 17272$debug || 17273{ 17274 tmp= ac_tmp= 17275 trap 'exit_status=$? 17276 : "${ac_tmp:=$tmp}" 17277 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17278' 0 17279 trap 'as_fn_exit 1' 1 2 13 15 17280} 17281# Create a (secure) tmp directory for tmp files. 17282 17283{ 17284 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17285 test -d "$tmp" 17286} || 17287{ 17288 tmp=./conf$$-$RANDOM 17289 (umask 077 && mkdir "$tmp") 17290} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17291ac_tmp=$tmp 17292 17293# Set up the scripts for CONFIG_FILES section. 17294# No need to generate them if there are no CONFIG_FILES. 17295# This happens for instance with `./config.status config.h'. 17296if test -n "$CONFIG_FILES"; then 17297 17298 17299ac_cr=`echo X | tr X '\015'` 17300# On cygwin, bash can eat \r inside `` if the user requested igncr. 17301# But we know of no other shell where ac_cr would be empty at this 17302# point, so we can use a bashism as a fallback. 17303if test "x$ac_cr" = x; then 17304 eval ac_cr=\$\'\\r\' 17305fi 17306ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17307if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17308 ac_cs_awk_cr='\\r' 17309else 17310 ac_cs_awk_cr=$ac_cr 17311fi 17312 17313echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17314_ACEOF 17315 17316 17317{ 17318 echo "cat >conf$$subs.awk <<_ACEOF" && 17319 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17320 echo "_ACEOF" 17321} >conf$$subs.sh || 17322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17323ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17324ac_delim='%!_!# ' 17325for ac_last_try in false false false false false :; do 17326 . ./conf$$subs.sh || 17327 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17328 17329 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17330 if test $ac_delim_n = $ac_delim_num; then 17331 break 17332 elif $ac_last_try; then 17333 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17334 else 17335 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17336 fi 17337done 17338rm -f conf$$subs.sh 17339 17340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17341cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17342_ACEOF 17343sed -n ' 17344h 17345s/^/S["/; s/!.*/"]=/ 17346p 17347g 17348s/^[^!]*!// 17349:repl 17350t repl 17351s/'"$ac_delim"'$// 17352t delim 17353:nl 17354h 17355s/\(.\{148\}\)..*/\1/ 17356t more1 17357s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17358p 17359n 17360b repl 17361:more1 17362s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17363p 17364g 17365s/.\{148\}// 17366t nl 17367:delim 17368h 17369s/\(.\{148\}\)..*/\1/ 17370t more2 17371s/["\\]/\\&/g; s/^/"/; s/$/"/ 17372p 17373b 17374:more2 17375s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17376p 17377g 17378s/.\{148\}// 17379t delim 17380' <conf$$subs.awk | sed ' 17381/^[^""]/{ 17382 N 17383 s/\n// 17384} 17385' >>$CONFIG_STATUS || ac_write_fail=1 17386rm -f conf$$subs.awk 17387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17388_ACAWK 17389cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17390 for (key in S) S_is_set[key] = 1 17391 FS = "" 17392 17393} 17394{ 17395 line = $ 0 17396 nfields = split(line, field, "@") 17397 substed = 0 17398 len = length(field[1]) 17399 for (i = 2; i < nfields; i++) { 17400 key = field[i] 17401 keylen = length(key) 17402 if (S_is_set[key]) { 17403 value = S[key] 17404 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17405 len += length(value) + length(field[++i]) 17406 substed = 1 17407 } else 17408 len += 1 + keylen 17409 } 17410 17411 print line 17412} 17413 17414_ACAWK 17415_ACEOF 17416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17417if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17418 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17419else 17420 cat 17421fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17422 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17423_ACEOF 17424 17425# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17426# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17427# trailing colons and then remove the whole line if VPATH becomes empty 17428# (actually we leave an empty line to preserve line numbers). 17429if test "x$srcdir" = x.; then 17430 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17431h 17432s/// 17433s/^/:/ 17434s/[ ]*$/:/ 17435s/:\$(srcdir):/:/g 17436s/:\${srcdir}:/:/g 17437s/:@srcdir@:/:/g 17438s/^:*// 17439s/:*$// 17440x 17441s/\(=[ ]*\).*/\1/ 17442G 17443s/\n// 17444s/^[^=]*=[ ]*$// 17445}' 17446fi 17447 17448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17449fi # test -n "$CONFIG_FILES" 17450 17451# Set up the scripts for CONFIG_HEADERS section. 17452# No need to generate them if there are no CONFIG_HEADERS. 17453# This happens for instance with `./config.status Makefile'. 17454if test -n "$CONFIG_HEADERS"; then 17455cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17456BEGIN { 17457_ACEOF 17458 17459# Transform confdefs.h into an awk script `defines.awk', embedded as 17460# here-document in config.status, that substitutes the proper values into 17461# config.h.in to produce config.h. 17462 17463# Create a delimiter string that does not exist in confdefs.h, to ease 17464# handling of long lines. 17465ac_delim='%!_!# ' 17466for ac_last_try in false false :; do 17467 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17468 if test -z "$ac_tt"; then 17469 break 17470 elif $ac_last_try; then 17471 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17472 else 17473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17474 fi 17475done 17476 17477# For the awk script, D is an array of macro values keyed by name, 17478# likewise P contains macro parameters if any. Preserve backslash 17479# newline sequences. 17480 17481ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17482sed -n ' 17483s/.\{148\}/&'"$ac_delim"'/g 17484t rset 17485:rset 17486s/^[ ]*#[ ]*define[ ][ ]*/ / 17487t def 17488d 17489:def 17490s/\\$// 17491t bsnl 17492s/["\\]/\\&/g 17493s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17494D["\1"]=" \3"/p 17495s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17496d 17497:bsnl 17498s/["\\]/\\&/g 17499s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17500D["\1"]=" \3\\\\\\n"\\/p 17501t cont 17502s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17503t cont 17504d 17505:cont 17506n 17507s/.\{148\}/&'"$ac_delim"'/g 17508t clear 17509:clear 17510s/\\$// 17511t bsnlc 17512s/["\\]/\\&/g; s/^/"/; s/$/"/p 17513d 17514:bsnlc 17515s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17516b cont 17517' <confdefs.h | sed ' 17518s/'"$ac_delim"'/"\\\ 17519"/g' >>$CONFIG_STATUS || ac_write_fail=1 17520 17521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17522 for (key in D) D_is_set[key] = 1 17523 FS = "" 17524} 17525/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17526 line = \$ 0 17527 split(line, arg, " ") 17528 if (arg[1] == "#") { 17529 defundef = arg[2] 17530 mac1 = arg[3] 17531 } else { 17532 defundef = substr(arg[1], 2) 17533 mac1 = arg[2] 17534 } 17535 split(mac1, mac2, "(") #) 17536 macro = mac2[1] 17537 prefix = substr(line, 1, index(line, defundef) - 1) 17538 if (D_is_set[macro]) { 17539 # Preserve the white space surrounding the "#". 17540 print prefix "define", macro P[macro] D[macro] 17541 next 17542 } else { 17543 # Replace #undef with comments. This is necessary, for example, 17544 # in the case of _POSIX_SOURCE, which is predefined and required 17545 # on some systems where configure will not decide to define it. 17546 if (defundef == "undef") { 17547 print "/*", prefix defundef, macro, "*/" 17548 next 17549 } 17550 } 17551} 17552{ print } 17553_ACAWK 17554_ACEOF 17555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17556 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17557fi # test -n "$CONFIG_HEADERS" 17558 17559 17560eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17561shift 17562for ac_tag 17563do 17564 case $ac_tag in 17565 :[FHLC]) ac_mode=$ac_tag; continue;; 17566 esac 17567 case $ac_mode$ac_tag in 17568 :[FHL]*:*);; 17569 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17570 :[FH]-) ac_tag=-:-;; 17571 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17572 esac 17573 ac_save_IFS=$IFS 17574 IFS=: 17575 set x $ac_tag 17576 IFS=$ac_save_IFS 17577 shift 17578 ac_file=$1 17579 shift 17580 17581 case $ac_mode in 17582 :L) ac_source=$1;; 17583 :[FH]) 17584 ac_file_inputs= 17585 for ac_f 17586 do 17587 case $ac_f in 17588 -) ac_f="$ac_tmp/stdin";; 17589 *) # Look for the file first in the build tree, then in the source tree 17590 # (if the path is not absolute). The absolute path cannot be DOS-style, 17591 # because $ac_f cannot contain `:'. 17592 test -f "$ac_f" || 17593 case $ac_f in 17594 [\\/$]*) false;; 17595 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17596 esac || 17597 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17598 esac 17599 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17600 as_fn_append ac_file_inputs " '$ac_f'" 17601 done 17602 17603 # Let's still pretend it is `configure' which instantiates (i.e., don't 17604 # use $as_me), people would be surprised to read: 17605 # /* config.h. Generated by config.status. */ 17606 configure_input='Generated from '` 17607 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17608 `' by configure.' 17609 if test x"$ac_file" != x-; then 17610 configure_input="$ac_file. $configure_input" 17611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17612$as_echo "$as_me: creating $ac_file" >&6;} 17613 fi 17614 # Neutralize special characters interpreted by sed in replacement strings. 17615 case $configure_input in #( 17616 *\&* | *\|* | *\\* ) 17617 ac_sed_conf_input=`$as_echo "$configure_input" | 17618 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17619 *) ac_sed_conf_input=$configure_input;; 17620 esac 17621 17622 case $ac_tag in 17623 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17624 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17625 esac 17626 ;; 17627 esac 17628 17629 ac_dir=`$as_dirname -- "$ac_file" || 17630$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17631 X"$ac_file" : 'X\(//\)[^/]' \| \ 17632 X"$ac_file" : 'X\(//\)$' \| \ 17633 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17634$as_echo X"$ac_file" | 17635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17636 s//\1/ 17637 q 17638 } 17639 /^X\(\/\/\)[^/].*/{ 17640 s//\1/ 17641 q 17642 } 17643 /^X\(\/\/\)$/{ 17644 s//\1/ 17645 q 17646 } 17647 /^X\(\/\).*/{ 17648 s//\1/ 17649 q 17650 } 17651 s/.*/./; q'` 17652 as_dir="$ac_dir"; as_fn_mkdir_p 17653 ac_builddir=. 17654 17655case "$ac_dir" in 17656.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17657*) 17658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17659 # A ".." for each directory in $ac_dir_suffix. 17660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17661 case $ac_top_builddir_sub in 17662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17664 esac ;; 17665esac 17666ac_abs_top_builddir=$ac_pwd 17667ac_abs_builddir=$ac_pwd$ac_dir_suffix 17668# for backward compatibility: 17669ac_top_builddir=$ac_top_build_prefix 17670 17671case $srcdir in 17672 .) # We are building in place. 17673 ac_srcdir=. 17674 ac_top_srcdir=$ac_top_builddir_sub 17675 ac_abs_top_srcdir=$ac_pwd ;; 17676 [\\/]* | ?:[\\/]* ) # Absolute name. 17677 ac_srcdir=$srcdir$ac_dir_suffix; 17678 ac_top_srcdir=$srcdir 17679 ac_abs_top_srcdir=$srcdir ;; 17680 *) # Relative name. 17681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17682 ac_top_srcdir=$ac_top_build_prefix$srcdir 17683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17684esac 17685ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17686 17687 17688 case $ac_mode in 17689 :F) 17690 # 17691 # CONFIG_FILE 17692 # 17693 17694 case $INSTALL in 17695 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17696 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17697 esac 17698 ac_MKDIR_P=$MKDIR_P 17699 case $MKDIR_P in 17700 [\\/$]* | ?:[\\/]* ) ;; 17701 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17702 esac 17703_ACEOF 17704 17705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17706# If the template does not know about datarootdir, expand it. 17707# FIXME: This hack should be removed a few years after 2.60. 17708ac_datarootdir_hack=; ac_datarootdir_seen= 17709ac_sed_dataroot=' 17710/datarootdir/ { 17711 p 17712 q 17713} 17714/@datadir@/p 17715/@docdir@/p 17716/@infodir@/p 17717/@localedir@/p 17718/@mandir@/p' 17719case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17720*datarootdir*) ac_datarootdir_seen=yes;; 17721*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17723$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17724_ACEOF 17725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17726 ac_datarootdir_hack=' 17727 s&@datadir@&$datadir&g 17728 s&@docdir@&$docdir&g 17729 s&@infodir@&$infodir&g 17730 s&@localedir@&$localedir&g 17731 s&@mandir@&$mandir&g 17732 s&\\\${datarootdir}&$datarootdir&g' ;; 17733esac 17734_ACEOF 17735 17736# Neutralize VPATH when `$srcdir' = `.'. 17737# Shell code in configure.ac might set extrasub. 17738# FIXME: do we really want to maintain this feature? 17739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17740ac_sed_extra="$ac_vpsub 17741$extrasub 17742_ACEOF 17743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17744:t 17745/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17746s|@configure_input@|$ac_sed_conf_input|;t t 17747s&@top_builddir@&$ac_top_builddir_sub&;t t 17748s&@top_build_prefix@&$ac_top_build_prefix&;t t 17749s&@srcdir@&$ac_srcdir&;t t 17750s&@abs_srcdir@&$ac_abs_srcdir&;t t 17751s&@top_srcdir@&$ac_top_srcdir&;t t 17752s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17753s&@builddir@&$ac_builddir&;t t 17754s&@abs_builddir@&$ac_abs_builddir&;t t 17755s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17756s&@INSTALL@&$ac_INSTALL&;t t 17757s&@MKDIR_P@&$ac_MKDIR_P&;t t 17758$ac_datarootdir_hack 17759" 17760eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17761 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17762 17763test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17764 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17765 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17766 "$ac_tmp/out"`; test -z "$ac_out"; } && 17767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17768which seems to be undefined. Please make sure it is defined" >&5 17769$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17770which seems to be undefined. Please make sure it is defined" >&2;} 17771 17772 rm -f "$ac_tmp/stdin" 17773 case $ac_file in 17774 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17775 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17776 esac \ 17777 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17778 ;; 17779 :H) 17780 # 17781 # CONFIG_HEADER 17782 # 17783 if test x"$ac_file" != x-; then 17784 { 17785 $as_echo "/* $configure_input */" \ 17786 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17787 } >"$ac_tmp/config.h" \ 17788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17789 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17790 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17791$as_echo "$as_me: $ac_file is unchanged" >&6;} 17792 else 17793 rm -f "$ac_file" 17794 mv "$ac_tmp/config.h" "$ac_file" \ 17795 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17796 fi 17797 else 17798 $as_echo "/* $configure_input */" \ 17799 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17800 || as_fn_error $? "could not create -" "$LINENO" 5 17801 fi 17802# Compute "$ac_file"'s index in $config_headers. 17803_am_arg="$ac_file" 17804_am_stamp_count=1 17805for _am_header in $config_headers :; do 17806 case $_am_header in 17807 $_am_arg | $_am_arg:* ) 17808 break ;; 17809 * ) 17810 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17811 esac 17812done 17813echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17814$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17815 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17816 X"$_am_arg" : 'X\(//\)$' \| \ 17817 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17818$as_echo X"$_am_arg" | 17819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17820 s//\1/ 17821 q 17822 } 17823 /^X\(\/\/\)[^/].*/{ 17824 s//\1/ 17825 q 17826 } 17827 /^X\(\/\/\)$/{ 17828 s//\1/ 17829 q 17830 } 17831 /^X\(\/\).*/{ 17832 s//\1/ 17833 q 17834 } 17835 s/.*/./; q'`/stamp-h$_am_stamp_count 17836 ;; 17837 17838 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17839$as_echo "$as_me: executing $ac_file commands" >&6;} 17840 ;; 17841 esac 17842 17843 17844 case $ac_file$ac_mode in 17845 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17846 # Older Autoconf quotes --file arguments for eval, but not when files 17847 # are listed without --file. Let's play safe and only enable the eval 17848 # if we detect the quoting. 17849 case $CONFIG_FILES in 17850 *\'*) eval set x "$CONFIG_FILES" ;; 17851 *) set x $CONFIG_FILES ;; 17852 esac 17853 shift 17854 for mf 17855 do 17856 # Strip MF so we end up with the name of the file. 17857 mf=`echo "$mf" | sed -e 's/:.*$//'` 17858 # Check whether this is an Automake generated Makefile or not. 17859 # We used to match only the files named 'Makefile.in', but 17860 # some people rename them; so instead we look at the file content. 17861 # Grep'ing the first line is not enough: some people post-process 17862 # each Makefile.in and add a new line on top of each file to say so. 17863 # Grep'ing the whole file is not good either: AIX grep has a line 17864 # limit of 2048, but all sed's we know have understand at least 4000. 17865 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17866 dirpart=`$as_dirname -- "$mf" || 17867$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17868 X"$mf" : 'X\(//\)[^/]' \| \ 17869 X"$mf" : 'X\(//\)$' \| \ 17870 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17871$as_echo X"$mf" | 17872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17873 s//\1/ 17874 q 17875 } 17876 /^X\(\/\/\)[^/].*/{ 17877 s//\1/ 17878 q 17879 } 17880 /^X\(\/\/\)$/{ 17881 s//\1/ 17882 q 17883 } 17884 /^X\(\/\).*/{ 17885 s//\1/ 17886 q 17887 } 17888 s/.*/./; q'` 17889 else 17890 continue 17891 fi 17892 # Extract the definition of DEPDIR, am__include, and am__quote 17893 # from the Makefile without running 'make'. 17894 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17895 test -z "$DEPDIR" && continue 17896 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17897 test -z "$am__include" && continue 17898 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17899 # Find all dependency output files, they are included files with 17900 # $(DEPDIR) in their names. We invoke sed twice because it is the 17901 # simplest approach to changing $(DEPDIR) to its actual value in the 17902 # expansion. 17903 for file in `sed -n " 17904 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17905 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 17906 # Make sure the directory exists. 17907 test -f "$dirpart/$file" && continue 17908 fdir=`$as_dirname -- "$file" || 17909$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17910 X"$file" : 'X\(//\)[^/]' \| \ 17911 X"$file" : 'X\(//\)$' \| \ 17912 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17913$as_echo X"$file" | 17914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17915 s//\1/ 17916 q 17917 } 17918 /^X\(\/\/\)[^/].*/{ 17919 s//\1/ 17920 q 17921 } 17922 /^X\(\/\/\)$/{ 17923 s//\1/ 17924 q 17925 } 17926 /^X\(\/\).*/{ 17927 s//\1/ 17928 q 17929 } 17930 s/.*/./; q'` 17931 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17932 # echo "creating $dirpart/$file" 17933 echo '# dummy' > "$dirpart/$file" 17934 done 17935 done 17936} 17937 ;; 17938 "default-1":C) 17939 for ac_file in $CONFIG_FILES; do 17940 # Support "outfile[:infile[:infile...]]" 17941 case "$ac_file" in 17942 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 17943 esac 17944 # PO directories have a Makefile.in generated from Makefile.in.in. 17945 case "$ac_file" in */Makefile.in) 17946 # Adjust a relative srcdir. 17947 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 17948 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 17949 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 17950 # In autoconf-2.13 it is called $ac_given_srcdir. 17951 # In autoconf-2.50 it is called $srcdir. 17952 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 17953 case "$ac_given_srcdir" in 17954 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 17955 /*) top_srcdir="$ac_given_srcdir" ;; 17956 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 17957 esac 17958 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 17959 rm -f "$ac_dir/POTFILES" 17960 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 17961 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 17962 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 17963 # on $ac_dir but don't depend on user-specified configuration 17964 # parameters. 17965 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 17966 # The LINGUAS file contains the set of available languages. 17967 if test -n "$ALL_LINGUAS"; then 17968 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 17969 fi 17970 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 17971 # Hide the ALL_LINGUAS assigment from automake. 17972 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 17973 fi 17974 case "$ac_given_srcdir" in 17975 .) srcdirpre= ;; 17976 *) srcdirpre='$(srcdir)/' ;; 17977 esac 17978 POFILES= 17979 GMOFILES= 17980 UPDATEPOFILES= 17981 DUMMYPOFILES= 17982 for lang in $ALL_LINGUAS; do 17983 POFILES="$POFILES $srcdirpre$lang.po" 17984 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 17985 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 17986 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 17987 done 17988 # CATALOGS depends on both $ac_dir and the user's LINGUAS 17989 # environment variable. 17990 INST_LINGUAS= 17991 if test -n "$ALL_LINGUAS"; then 17992 for presentlang in $ALL_LINGUAS; do 17993 useit=no 17994 if test "%UNSET%" != "$LINGUAS"; then 17995 desiredlanguages="$LINGUAS" 17996 else 17997 desiredlanguages="$ALL_LINGUAS" 17998 fi 17999 for desiredlang in $desiredlanguages; do 18000 # Use the presentlang catalog if desiredlang is 18001 # a. equal to presentlang, or 18002 # b. a variant of presentlang (because in this case, 18003 # presentlang can be used as a fallback for messages 18004 # which are not translated in the desiredlang catalog). 18005 case "$desiredlang" in 18006 "$presentlang"*) useit=yes;; 18007 esac 18008 done 18009 if test $useit = yes; then 18010 INST_LINGUAS="$INST_LINGUAS $presentlang" 18011 fi 18012 done 18013 fi 18014 CATALOGS= 18015 if test -n "$INST_LINGUAS"; then 18016 for lang in $INST_LINGUAS; do 18017 CATALOGS="$CATALOGS $lang.gmo" 18018 done 18019 fi 18020 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 18021 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" 18022 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 18023 if test -f "$f"; then 18024 case "$f" in 18025 *.orig | *.bak | *~) ;; 18026 *) cat "$f" >> "$ac_dir/Makefile" ;; 18027 esac 18028 fi 18029 done 18030 fi 18031 ;; 18032 esac 18033 done ;; 18034 "denoiser":C) if test $denoiserlevel -gt 0; then 18035 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi 18036 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" \ 18037 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed 18038 for i in `find . -name 'Makefile' -print`; do 18039 if test -n "`head -n 1 $i | grep '^#'`"; then 18040 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i 18041 fi 18042 done 18043 fi ;; 18044 18045 esac 18046done # for ac_tag 18047 18048 18049as_fn_exit 0 18050_ACEOF 18051ac_clean_files=$ac_clean_files_save 18052 18053test $ac_write_fail = 0 || 18054 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18055 18056 18057# configure is writing to config.log, and then calls config.status. 18058# config.status does its own redirection, appending to config.log. 18059# Unfortunately, on DOS this fails, as config.log is still kept open 18060# by configure, so config.status won't be able to write to it; its 18061# output is simply discarded. So we exec the FD to /dev/null, 18062# effectively closing config.log, so it can be properly (re)opened and 18063# appended to by config.status. When coming back to configure, we 18064# need to make the FD available again. 18065if test "$no_create" != yes; then 18066 ac_cs_success=: 18067 ac_config_status_args= 18068 test "$silent" = yes && 18069 ac_config_status_args="$ac_config_status_args --quiet" 18070 exec 5>/dev/null 18071 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18072 exec 5>>config.log 18073 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18074 # would make configure fail if this is the last instruction. 18075 $ac_cs_success || as_fn_exit 1 18076fi 18077if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18079$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18080fi 18081 18082 18083if test -n "$svndate"; then : 18084 SVN_REVISION=" ($svndate)" 18085else 18086 SVN_REVISION= 18087fi 18088 18089echo 18090echo 18091echo " Configure script has finished system check." 18092echo 18093echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'." 18094echo 18095echo " aMule enabled options:" 18096echo 18097echo " **** aMule Core ****" 18098echo " Prefix where aMule should be installed? ${prefix:-none}" 18099echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}" 18100echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}" 18101echo " Should aMule be compiled with profiling? ${enable_profile:-no}" 18102echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}" 18103echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}" 18104echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}" 18105echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}" 18106echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}" 18107echo " Should aMule remote gui be built? ${enable_amule_gui:-no}" 18108 18109echo 18110echo " **** aMule TextClient ****" 18111echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}" 18112echo 18113echo " **** aMule WebServer ****" 18114echo " Should aMule WebServer be built? ${enable_webserver:-no}" 18115echo 18116echo " **** aMule ED2K Links Handler ****" 18117echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}" 18118echo 18119echo " **** aMuleLinkCreator ****" 18120echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}" 18121echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}" 18122echo 18123echo " **** aMule Statistics ****" 18124echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}" 18125echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}" 18126echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}" 18127echo " Should plasmaMule plasma-applet be built? ${enable_plasmamule:-no}" 18128 18129echo 18130echo " **** General Libraries and Tools ****" 18131echo " Should ccache support be enabled? ${enable_ccache:-no}" 18132echo " Should aMule file viewer for console be built? ${enable_fileview:-no}" 18133echo " Libraries aMule will use to build:" 18134if 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 : 18135 18136 wxinfo="$WX_PORT" 18137 if test $WX_DEBUG -eq 1; then : 18138 wxinfo="$wxinfo,debug" 18139fi 18140 if test $WX_SHARED -eq 1; then : 18141 wxinfo="$wxinfo,shared" 18142else 18143 wxinfo="$wxinfo,static" 18144fi 18145 echo " wxWidgets ${WX_VERSION} ($wxinfo)" 18146 18147fi 18148if test ${with_boost:-no} != no; then : 18149 if test ${with_boost:-no} = disabled; then 18150 echo " boost Not detected" 18151elif test ${boost_cv_inc_path:-yes} != yes; then 18152 echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'` (in ${boost_cv_inc_path})" 18153elif echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'`"; then 18154 : 18155fi 18156 18157fi 18158if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then : 18159 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (in ${CRYPTOPP_PREFIX})" 18160fi 18161if test ${enable_upnp:-yes} = yes; then : 18162 18163 if test -n "$with_libupnp_prefix"; then : 18164 libupnp_place=" (in $with_libupnp_prefix)" 18165fi 18166 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}" 18167 18168fi 18169if test ${enable_nls:-yes} = yes; then 18170if test x$USE_NLS = xno; then : 18171 libintl_found="Not detected" 18172else 18173 if test x$USE_INCLUDED_LIBINTL = xyes; then : 18174 libintl_found="included" 18175else 18176 libintl_found="system" 18177fi 18178fi 18179echo " libintl $libintl_found" 18180fi 18181if test ${enable_geoip:-no} = yes; then : 18182 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then : 18183 geoip_style=system 18184else 18185 geoip_style=user 18186fi 18187 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then : 18188 echo " libGeoIP ${geoip_style}" 18189fi 18190fi 18191if test ${enable_webserver:-no} = yes; then : 18192 echo " libpng ${LIBPNG_VERSION:-Not detected}" 18193fi 18194if test ${enable_cas:-no} = yes; then : 18195 echo " libgd ${GDLIB_VERSION:-Not detected}" 18196fi 18197if 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 : 18198 echo " zlib ${ZLIB_VERSION:-Not detected}" 18199fi 18200if test ${enable_plasmamule:-no} = yes; then : 18201 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}" 18202echo " qt-core-libs ${QT_CORE_LIBS}" 18203echo " qt-gui-libs ${QT_GUI_LIBS}" 18204echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})" 18205echo " kde-headers ${KDE_HEADER_DIR}" 18206echo " kde-services-path ${KDE_SERVICE_PATH}" 18207echo " kde-module-path ${KDE_MODULE_PATH}" 18208echo " kde-icon-path ${KDE_ICON_PATH}" 18209echo " kde-mime-path ${KDE_MIME_PATH}" 18210echo " kde-applinks-path ${KDE_APPLNK_PATH}" 18211 18212fi 18213if test ${_mule_has_warnings:-no} = yes; then 18214echo "" 18215echo "" 18216echo " *** Warnings during configuration ***" 18217fi 18218if test ${_mule_warning_0:-no} = yes; then 18219cat <<_MULEEOT 18220 18221* gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found. 18222 Please check that gdlib-config is in your default path, check out 18223 LD_LIBRARY_PATH or equivalent variable. 18224 Or this might also be that your gdlib-config has other name. 18225 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace 18226 /usr/bin/gdlib-config with a valid path to your gdlib-config). 18227 If you use compiled packages check if you have devel pack installed. 18228 To download the latest version check http://www.boutell.com/gd for sources. 18229_MULEEOT 18230fi 18231if test ${_mule_warning_1:-no} = yes; then 18232cat <<_MULEEOT 18233 18234* libpng >= 1.2.0 not found. 18235 amuleweb will be compiled but file download progress bar images will NOT be 18236 generated. 18237_MULEEOT 18238fi 18239if test ${_mule_warning_2:-no} = yes; then 18240cat <<_MULEEOT 18241 18242* Cannot link GeoIP statically, because your linker ($LD) does not support it. 18243_MULEEOT 18244fi 18245if test ${_mule_warning_3:-no} = yes; then 18246cat <<_MULEEOT 18247 18248* GeoIP support has been disabled because the GeoIP libraries were not found 18249_MULEEOT 18250fi 18251if test ${_mule_warning_4:-no} = yes; then 18252cat <<_MULEEOT 18253 18254* GeoIP support has been disabled because the GeoIP header files were not 18255 found 18256_MULEEOT 18257fi 18258if test ${_mule_warning_5:-no} = yes; then 18259cat <<_MULEEOT 18260 18261* UPnP code has been disabled because ${libupnp_error}. 18262_MULEEOT 18263fi 18264if test ${_mule_warning_6:-no} = yes; then 18265cat <<_MULEEOT 18266 18267* Cross-compilation detected, so exception handling cannot be tested. 18268 Note that broken exception handling in your compiler may lead to unexpected 18269 crashes. 18270_MULEEOT 18271fi 18272if test ${_mule_warning_7:-no} = yes; then 18273cat <<_MULEEOT 18274 18275* Boost support has been disabled because Boost.System not found 18276_MULEEOT 18277fi 18278if test ${_mule_warning_8:-no} = yes; then 18279cat <<_MULEEOT 18280 18281* Boost support has been disabled because Boost.Asio not found 18282_MULEEOT 18283fi 18284if test ${_mule_warning_9:-no} = yes; then 18285cat <<_MULEEOT 18286 18287* Boost support has been disabled because Boost.Asio not found 18288_MULEEOT 18289fi 18290if test ${_mule_warning_10:-no} = yes; then 18291cat <<_MULEEOT 18292 18293* Boost support has been disabled because of insufficient Boost version. 18294_MULEEOT 18295fi 18296if test ${_mule_warning_11:-no} = yes; then 18297cat <<_MULEEOT 18298 18299* configure cannot check whether malloc() and realloc() are GNU libc 18300 compatible. You have to be ABSOLUTELY sure that they are, otherwise run 18301 configure with the --without-gnu-malloc switch. 18302_MULEEOT 18303fi 18304if test ${_mule_warning_12:-no} = yes; then 18305cat <<_MULEEOT 18306 18307* You need to install GNU gettext/gettext-tools to compile aMule with i18n 18308 support. 18309_MULEEOT 18310fi 18311if test ${_mule_warning_13:-no} = yes; then 18312cat <<_MULEEOT 18313 18314* Cannot link to the library containing the bfd functions. 18315_MULEEOT 18316fi 18317if test ${_mule_warning_14:-no} = yes; then 18318cat <<_MULEEOT 18319 18320* bfd.h not found or unusable, please install binutils development package if 18321 you are a developer or want to help testing aMule 18322_MULEEOT 18323fi 18324