1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.67 for Hero of Allacrost - Demo 1.0.2. 4# 5# Report bugs to <rujasu@allacrost.org>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and 234$0: rujasu@allacrost.org about your system, including any 235$0: error possibly output before this message. Then install 236$0: a modern shell, or manually run the script under such a 237$0: shell if you do have one." 238 fi 239 exit 1 240fi 241fi 242fi 243SHELL=${CONFIG_SHELL-/bin/sh} 244export SHELL 245# Unset more variables known to interfere with behavior of common tools. 246CLICOLOR_FORCE= GREP_OPTIONS= 247unset CLICOLOR_FORCE GREP_OPTIONS 248 249## --------------------- ## 250## M4sh Shell Functions. ## 251## --------------------- ## 252# as_fn_unset VAR 253# --------------- 254# Portably unset VAR. 255as_fn_unset () 256{ 257 { eval $1=; unset $1;} 258} 259as_unset=as_fn_unset 260 261# as_fn_set_status STATUS 262# ----------------------- 263# Set $? to STATUS, without forking. 264as_fn_set_status () 265{ 266 return $1 267} # as_fn_set_status 268 269# as_fn_exit STATUS 270# ----------------- 271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 272as_fn_exit () 273{ 274 set +e 275 as_fn_set_status $1 276 exit $1 277} # as_fn_exit 278 279# as_fn_mkdir_p 280# ------------- 281# Create "$as_dir" as a directory, including parents if necessary. 282as_fn_mkdir_p () 283{ 284 285 case $as_dir in #( 286 -*) as_dir=./$as_dir;; 287 esac 288 test -d "$as_dir" || eval $as_mkdir_p || { 289 as_dirs= 290 while :; do 291 case $as_dir in #( 292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 293 *) as_qdir=$as_dir;; 294 esac 295 as_dirs="'$as_qdir' $as_dirs" 296 as_dir=`$as_dirname -- "$as_dir" || 297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 298 X"$as_dir" : 'X\(//\)[^/]' \| \ 299 X"$as_dir" : 'X\(//\)$' \| \ 300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 301$as_echo X"$as_dir" | 302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 303 s//\1/ 304 q 305 } 306 /^X\(\/\/\)[^/].*/{ 307 s//\1/ 308 q 309 } 310 /^X\(\/\/\)$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\).*/{ 315 s//\1/ 316 q 317 } 318 s/.*/./; q'` 319 test -d "$as_dir" && break 320 done 321 test -z "$as_dirs" || eval "mkdir $as_dirs" 322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 323 324 325} # as_fn_mkdir_p 326# as_fn_append VAR VALUE 327# ---------------------- 328# Append the text in VALUE to the end of the definition contained in VAR. Take 329# advantage of any shell optimizations that allow amortized linear growth over 330# repeated appends, instead of the typical quadratic growth present in naive 331# implementations. 332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 333 eval 'as_fn_append () 334 { 335 eval $1+=\$2 336 }' 337else 338 as_fn_append () 339 { 340 eval $1=\$$1\$2 341 } 342fi # as_fn_append 343 344# as_fn_arith ARG... 345# ------------------ 346# Perform arithmetic evaluation on the ARGs, and store the result in the 347# global $as_val. Take advantage of shells that can avoid forks. The arguments 348# must be portable across $(()) and expr. 349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 350 eval 'as_fn_arith () 351 { 352 as_val=$(( $* )) 353 }' 354else 355 as_fn_arith () 356 { 357 as_val=`expr "$@" || test $? -eq 1` 358 } 359fi # as_fn_arith 360 361 362# as_fn_error STATUS ERROR [LINENO LOG_FD] 363# ---------------------------------------- 364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 366# script with STATUS, using 1 if that was 0. 367as_fn_error () 368{ 369 as_status=$1; test $as_status -eq 0 && as_status=1 370 if test "$4"; then 371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 373 fi 374 $as_echo "$as_me: error: $2" >&2 375 as_fn_exit $as_status 376} # as_fn_error 377 378if expr a : '\(a\)' >/dev/null 2>&1 && 379 test "X`expr 00001 : '.*\(...\)'`" = X001; then 380 as_expr=expr 381else 382 as_expr=false 383fi 384 385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 386 as_basename=basename 387else 388 as_basename=false 389fi 390 391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 392 as_dirname=dirname 393else 394 as_dirname=false 395fi 396 397as_me=`$as_basename -- "$0" || 398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 399 X"$0" : 'X\(//\)$' \| \ 400 X"$0" : 'X\(/\)' \| . 2>/dev/null || 401$as_echo X/"$0" | 402 sed '/^.*\/\([^/][^/]*\)\/*$/{ 403 s//\1/ 404 q 405 } 406 /^X\/\(\/\/\)$/{ 407 s//\1/ 408 q 409 } 410 /^X\/\(\/\).*/{ 411 s//\1/ 412 q 413 } 414 s/.*/./; q'` 415 416# Avoid depending upon Character Ranges. 417as_cr_letters='abcdefghijklmnopqrstuvwxyz' 418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 419as_cr_Letters=$as_cr_letters$as_cr_LETTERS 420as_cr_digits='0123456789' 421as_cr_alnum=$as_cr_Letters$as_cr_digits 422 423 424 as_lineno_1=$LINENO as_lineno_1a=$LINENO 425 as_lineno_2=$LINENO as_lineno_2a=$LINENO 426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 429 sed -n ' 430 p 431 /[$]LINENO/= 432 ' <$as_myself | 433 sed ' 434 s/[$]LINENO.*/&-/ 435 t lineno 436 b 437 :lineno 438 N 439 :loop 440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 441 t loop 442 s/-\n.*// 443 ' >$as_me.lineno && 444 chmod +x "$as_me.lineno" || 445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 446 447 # Don't try to exec as it changes $[0], causing all sort of problems 448 # (the dirname of $[0] is not the place where we might find the 449 # original and so on. Autoconf is especially sensitive to this). 450 . "./$as_me.lineno" 451 # Exit status is that of the last command. 452 exit 453} 454 455ECHO_C= ECHO_N= ECHO_T= 456case `echo -n x` in #((((( 457-n*) 458 case `echo 'xy\c'` in 459 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 460 xy) ECHO_C='\c';; 461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 462 ECHO_T=' ';; 463 esac;; 464*) 465 ECHO_N='-n';; 466esac 467 468rm -f conf$$ conf$$.exe conf$$.file 469if test -d conf$$.dir; then 470 rm -f conf$$.dir/conf$$.file 471else 472 rm -f conf$$.dir 473 mkdir conf$$.dir 2>/dev/null 474fi 475if (echo >conf$$.file) 2>/dev/null; then 476 if ln -s conf$$.file conf$$ 2>/dev/null; then 477 as_ln_s='ln -s' 478 # ... but there are two gotchas: 479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 481 # In both cases, we have to default to `cp -p'. 482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 483 as_ln_s='cp -p' 484 elif ln conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s=ln 486 else 487 as_ln_s='cp -p' 488 fi 489else 490 as_ln_s='cp -p' 491fi 492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 493rmdir conf$$.dir 2>/dev/null 494 495if mkdir -p . 2>/dev/null; then 496 as_mkdir_p='mkdir -p "$as_dir"' 497else 498 test -d ./-p && rmdir ./-p 499 as_mkdir_p=false 500fi 501 502if test -x / >/dev/null 2>&1; then 503 as_test_x='test -x' 504else 505 if ls -dL / >/dev/null 2>&1; then 506 as_ls_L_option=L 507 else 508 as_ls_L_option= 509 fi 510 as_test_x=' 511 eval sh -c '\'' 512 if test -d "$1"; then 513 test -d "$1/."; 514 else 515 case $1 in #( 516 -*)set "./$1";; 517 esac; 518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 519 ???[sx]*):;;*)false;;esac;fi 520 '\'' sh 521 ' 522fi 523as_executable_p=$as_test_x 524 525# Sed expression to map a string onto a valid CPP name. 526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 527 528# Sed expression to map a string onto a valid variable name. 529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 530 531 532test -n "$DJDIR" || exec 7<&0 </dev/null 533exec 6>&1 534 535# Name of the host. 536# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 537# so uname gets run too. 538ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 539 540# 541# Initializations. 542# 543ac_default_prefix=/usr/local 544ac_clean_files= 545ac_config_libobj_dir=. 546LIBOBJS= 547cross_compiling=no 548subdirs= 549MFLAGS= 550MAKEFLAGS= 551 552# Identity of this package. 553PACKAGE_NAME='Hero of Allacrost - Demo' 554PACKAGE_TARNAME='allacrost' 555PACKAGE_VERSION='1.0.2' 556PACKAGE_STRING='Hero of Allacrost - Demo 1.0.2' 557PACKAGE_BUGREPORT='rujasu@allacrost.org' 558PACKAGE_URL='' 559 560ac_unique_file="src/main.cpp" 561# Factoring default headers for most tests. 562ac_includes_default="\ 563#include <stdio.h> 564#ifdef HAVE_SYS_TYPES_H 565# include <sys/types.h> 566#endif 567#ifdef HAVE_SYS_STAT_H 568# include <sys/stat.h> 569#endif 570#ifdef STDC_HEADERS 571# include <stdlib.h> 572# include <stddef.h> 573#else 574# ifdef HAVE_STDLIB_H 575# include <stdlib.h> 576# endif 577#endif 578#ifdef HAVE_STRING_H 579# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 580# include <memory.h> 581# endif 582# include <string.h> 583#endif 584#ifdef HAVE_STRINGS_H 585# include <strings.h> 586#endif 587#ifdef HAVE_INTTYPES_H 588# include <inttypes.h> 589#endif 590#ifdef HAVE_STDINT_H 591# include <stdint.h> 592#endif 593#ifdef HAVE_UNISTD_H 594# include <unistd.h> 595#endif" 596 597gt_needs= 598ac_subst_vars='am__EXEEXT_FALSE 599am__EXEEXT_TRUE 600LTLIBOBJS 601LIBOBJS 602LOCALEDIR 603POSUB 604LTLIBINTL 605LIBINTL 606INTLLIBS 607LTLIBICONV 608LIBICONV 609INTL_MACOSX_LIBS 610MSGMERGE 611XGETTEXT_015 612XGETTEXT 613GMSGFMT_015 614MSGFMT_015 615GMSGFMT 616MSGFMT 617USE_NLS 618COND_EDITOR_FALSE 619COND_EDITOR_TRUE 620MOC 621QT_LDADD 622QT_CXXFLAGS 623X_EXTRA_LIBS 624X_LIBS 625X_PRE_LIBS 626X_CFLAGS 627XMKMF 628EGREP 629GREP 630CPP 631am__fastdepCC_FALSE 632am__fastdepCC_TRUE 633CCDEPMODE 634ac_ct_CC 635CFLAGS 636CC 637am__fastdepCXX_FALSE 638am__fastdepCXX_TRUE 639CXXDEPMODE 640AMDEPBACKSLASH 641AMDEP_FALSE 642AMDEP_TRUE 643am__quote 644am__include 645DEPDIR 646OBJEXT 647EXEEXT 648ac_ct_CXX 649CPPFLAGS 650LDFLAGS 651CXXFLAGS 652CXX 653MAINT 654MAINTAINER_MODE_FALSE 655MAINTAINER_MODE_TRUE 656am__untar 657am__tar 658AMTAR 659am__leading_dot 660SET_MAKE 661AWK 662mkdir_p 663MKDIR_P 664INSTALL_STRIP_PROGRAM 665STRIP 666install_sh 667MAKEINFO 668AUTOHEADER 669AUTOMAKE 670AUTOCONF 671ACLOCAL 672VERSION 673PACKAGE 674CYGPATH_W 675am__isrc 676INSTALL_DATA 677INSTALL_SCRIPT 678INSTALL_PROGRAM 679target_os 680target_vendor 681target_cpu 682target 683host_os 684host_vendor 685host_cpu 686host 687build_os 688build_vendor 689build_cpu 690build 691target_alias 692host_alias 693build_alias 694LIBS 695ECHO_T 696ECHO_N 697ECHO_C 698DEFS 699mandir 700localedir 701libdir 702psdir 703pdfdir 704dvidir 705htmldir 706infodir 707docdir 708oldincludedir 709includedir 710localstatedir 711sharedstatedir 712sysconfdir 713datadir 714datarootdir 715libexecdir 716sbindir 717bindir 718program_transform_name 719prefix 720exec_prefix 721PACKAGE_URL 722PACKAGE_BUGREPORT 723PACKAGE_STRING 724PACKAGE_VERSION 725PACKAGE_TARNAME 726PACKAGE_NAME 727PATH_SEPARATOR 728SHELL' 729ac_subst_files='' 730ac_user_opts=' 731enable_option_checking 732enable_maintainer_mode 733enable_dependency_tracking 734enable_optimize 735enable_debug 736with_x 737enable_editor 738enable_nls 739with_gnu_ld 740enable_rpath 741with_libiconv_prefix 742with_libintl_prefix 743' 744 ac_precious_vars='build_alias 745host_alias 746target_alias 747CXX 748CXXFLAGS 749LDFLAGS 750LIBS 751CPPFLAGS 752CCC 753CC 754CFLAGS 755CPP 756XMKMF' 757 758 759# Initialize some variables set by options. 760ac_init_help= 761ac_init_version=false 762ac_unrecognized_opts= 763ac_unrecognized_sep= 764# The variables have the same names as the options, with 765# dashes changed to underlines. 766cache_file=/dev/null 767exec_prefix=NONE 768no_create= 769no_recursion= 770prefix=NONE 771program_prefix=NONE 772program_suffix=NONE 773program_transform_name=s,x,x, 774silent= 775site= 776srcdir= 777verbose= 778x_includes=NONE 779x_libraries=NONE 780 781# Installation directory options. 782# These are left unexpanded so users can "make install exec_prefix=/foo" 783# and all the variables that are supposed to be based on exec_prefix 784# by default will actually change. 785# Use braces instead of parens because sh, perl, etc. also accept them. 786# (The list follows the same order as the GNU Coding Standards.) 787bindir='${exec_prefix}/bin' 788sbindir='${exec_prefix}/sbin' 789libexecdir='${exec_prefix}/libexec' 790datarootdir='${prefix}/share' 791datadir='${datarootdir}' 792sysconfdir='${prefix}/etc' 793sharedstatedir='${prefix}/com' 794localstatedir='${prefix}/var' 795includedir='${prefix}/include' 796oldincludedir='/usr/include' 797docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 798infodir='${datarootdir}/info' 799htmldir='${docdir}' 800dvidir='${docdir}' 801pdfdir='${docdir}' 802psdir='${docdir}' 803libdir='${exec_prefix}/lib' 804localedir='${datarootdir}/locale' 805mandir='${datarootdir}/man' 806 807ac_prev= 808ac_dashdash= 809for ac_option 810do 811 # If the previous option needs an argument, assign it. 812 if test -n "$ac_prev"; then 813 eval $ac_prev=\$ac_option 814 ac_prev= 815 continue 816 fi 817 818 case $ac_option in 819 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 820 *=) ac_optarg= ;; 821 *) ac_optarg=yes ;; 822 esac 823 824 # Accept the important Cygnus configure options, so we can diagnose typos. 825 826 case $ac_dashdash$ac_option in 827 --) 828 ac_dashdash=yes ;; 829 830 -bindir | --bindir | --bindi | --bind | --bin | --bi) 831 ac_prev=bindir ;; 832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 833 bindir=$ac_optarg ;; 834 835 -build | --build | --buil | --bui | --bu) 836 ac_prev=build_alias ;; 837 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 838 build_alias=$ac_optarg ;; 839 840 -cache-file | --cache-file | --cache-fil | --cache-fi \ 841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 842 ac_prev=cache_file ;; 843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 845 cache_file=$ac_optarg ;; 846 847 --config-cache | -C) 848 cache_file=config.cache ;; 849 850 -datadir | --datadir | --datadi | --datad) 851 ac_prev=datadir ;; 852 -datadir=* | --datadir=* | --datadi=* | --datad=*) 853 datadir=$ac_optarg ;; 854 855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 856 | --dataroo | --dataro | --datar) 857 ac_prev=datarootdir ;; 858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 860 datarootdir=$ac_optarg ;; 861 862 -disable-* | --disable-*) 863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 864 # Reject names that are not valid shell variable names. 865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 866 as_fn_error $? "invalid feature name: $ac_useropt" 867 ac_useropt_orig=$ac_useropt 868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 869 case $ac_user_opts in 870 *" 871"enable_$ac_useropt" 872"*) ;; 873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 874 ac_unrecognized_sep=', ';; 875 esac 876 eval enable_$ac_useropt=no ;; 877 878 -docdir | --docdir | --docdi | --doc | --do) 879 ac_prev=docdir ;; 880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 881 docdir=$ac_optarg ;; 882 883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 884 ac_prev=dvidir ;; 885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 886 dvidir=$ac_optarg ;; 887 888 -enable-* | --enable-*) 889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 890 # Reject names that are not valid shell variable names. 891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 892 as_fn_error $? "invalid feature name: $ac_useropt" 893 ac_useropt_orig=$ac_useropt 894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 895 case $ac_user_opts in 896 *" 897"enable_$ac_useropt" 898"*) ;; 899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 900 ac_unrecognized_sep=', ';; 901 esac 902 eval enable_$ac_useropt=\$ac_optarg ;; 903 904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 906 | --exec | --exe | --ex) 907 ac_prev=exec_prefix ;; 908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 910 | --exec=* | --exe=* | --ex=*) 911 exec_prefix=$ac_optarg ;; 912 913 -gas | --gas | --ga | --g) 914 # Obsolete; use --with-gas. 915 with_gas=yes ;; 916 917 -help | --help | --hel | --he | -h) 918 ac_init_help=long ;; 919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 920 ac_init_help=recursive ;; 921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 922 ac_init_help=short ;; 923 924 -host | --host | --hos | --ho) 925 ac_prev=host_alias ;; 926 -host=* | --host=* | --hos=* | --ho=*) 927 host_alias=$ac_optarg ;; 928 929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 930 ac_prev=htmldir ;; 931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 932 | --ht=*) 933 htmldir=$ac_optarg ;; 934 935 -includedir | --includedir | --includedi | --included | --include \ 936 | --includ | --inclu | --incl | --inc) 937 ac_prev=includedir ;; 938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 939 | --includ=* | --inclu=* | --incl=* | --inc=*) 940 includedir=$ac_optarg ;; 941 942 -infodir | --infodir | --infodi | --infod | --info | --inf) 943 ac_prev=infodir ;; 944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 945 infodir=$ac_optarg ;; 946 947 -libdir | --libdir | --libdi | --libd) 948 ac_prev=libdir ;; 949 -libdir=* | --libdir=* | --libdi=* | --libd=*) 950 libdir=$ac_optarg ;; 951 952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 953 | --libexe | --libex | --libe) 954 ac_prev=libexecdir ;; 955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 956 | --libexe=* | --libex=* | --libe=*) 957 libexecdir=$ac_optarg ;; 958 959 -localedir | --localedir | --localedi | --localed | --locale) 960 ac_prev=localedir ;; 961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 962 localedir=$ac_optarg ;; 963 964 -localstatedir | --localstatedir | --localstatedi | --localstated \ 965 | --localstate | --localstat | --localsta | --localst | --locals) 966 ac_prev=localstatedir ;; 967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 969 localstatedir=$ac_optarg ;; 970 971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 972 ac_prev=mandir ;; 973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 974 mandir=$ac_optarg ;; 975 976 -nfp | --nfp | --nf) 977 # Obsolete; use --without-fp. 978 with_fp=no ;; 979 980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 981 | --no-cr | --no-c | -n) 982 no_create=yes ;; 983 984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 986 no_recursion=yes ;; 987 988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 990 | --oldin | --oldi | --old | --ol | --o) 991 ac_prev=oldincludedir ;; 992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 995 oldincludedir=$ac_optarg ;; 996 997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 998 ac_prev=prefix ;; 999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1000 prefix=$ac_optarg ;; 1001 1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1003 | --program-pre | --program-pr | --program-p) 1004 ac_prev=program_prefix ;; 1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1007 program_prefix=$ac_optarg ;; 1008 1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1010 | --program-suf | --program-su | --program-s) 1011 ac_prev=program_suffix ;; 1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1014 program_suffix=$ac_optarg ;; 1015 1016 -program-transform-name | --program-transform-name \ 1017 | --program-transform-nam | --program-transform-na \ 1018 | --program-transform-n | --program-transform- \ 1019 | --program-transform | --program-transfor \ 1020 | --program-transfo | --program-transf \ 1021 | --program-trans | --program-tran \ 1022 | --progr-tra | --program-tr | --program-t) 1023 ac_prev=program_transform_name ;; 1024 -program-transform-name=* | --program-transform-name=* \ 1025 | --program-transform-nam=* | --program-transform-na=* \ 1026 | --program-transform-n=* | --program-transform-=* \ 1027 | --program-transform=* | --program-transfor=* \ 1028 | --program-transfo=* | --program-transf=* \ 1029 | --program-trans=* | --program-tran=* \ 1030 | --progr-tra=* | --program-tr=* | --program-t=*) 1031 program_transform_name=$ac_optarg ;; 1032 1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1034 ac_prev=pdfdir ;; 1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1036 pdfdir=$ac_optarg ;; 1037 1038 -psdir | --psdir | --psdi | --psd | --ps) 1039 ac_prev=psdir ;; 1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1041 psdir=$ac_optarg ;; 1042 1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1044 | -silent | --silent | --silen | --sile | --sil) 1045 silent=yes ;; 1046 1047 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1048 ac_prev=sbindir ;; 1049 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1050 | --sbi=* | --sb=*) 1051 sbindir=$ac_optarg ;; 1052 1053 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1054 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1055 | --sharedst | --shareds | --shared | --share | --shar \ 1056 | --sha | --sh) 1057 ac_prev=sharedstatedir ;; 1058 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1059 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1060 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1061 | --sha=* | --sh=*) 1062 sharedstatedir=$ac_optarg ;; 1063 1064 -site | --site | --sit) 1065 ac_prev=site ;; 1066 -site=* | --site=* | --sit=*) 1067 site=$ac_optarg ;; 1068 1069 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1070 ac_prev=srcdir ;; 1071 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1072 srcdir=$ac_optarg ;; 1073 1074 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1075 | --syscon | --sysco | --sysc | --sys | --sy) 1076 ac_prev=sysconfdir ;; 1077 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1078 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1079 sysconfdir=$ac_optarg ;; 1080 1081 -target | --target | --targe | --targ | --tar | --ta | --t) 1082 ac_prev=target_alias ;; 1083 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1084 target_alias=$ac_optarg ;; 1085 1086 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1087 verbose=yes ;; 1088 1089 -version | --version | --versio | --versi | --vers | -V) 1090 ac_init_version=: ;; 1091 1092 -with-* | --with-*) 1093 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1094 # Reject names that are not valid shell variable names. 1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1096 as_fn_error $? "invalid package name: $ac_useropt" 1097 ac_useropt_orig=$ac_useropt 1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1099 case $ac_user_opts in 1100 *" 1101"with_$ac_useropt" 1102"*) ;; 1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1104 ac_unrecognized_sep=', ';; 1105 esac 1106 eval with_$ac_useropt=\$ac_optarg ;; 1107 1108 -without-* | --without-*) 1109 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1110 # Reject names that are not valid shell variable names. 1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1112 as_fn_error $? "invalid package name: $ac_useropt" 1113 ac_useropt_orig=$ac_useropt 1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1115 case $ac_user_opts in 1116 *" 1117"with_$ac_useropt" 1118"*) ;; 1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1120 ac_unrecognized_sep=', ';; 1121 esac 1122 eval with_$ac_useropt=no ;; 1123 1124 --x) 1125 # Obsolete; use --with-x. 1126 with_x=yes ;; 1127 1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1129 | --x-incl | --x-inc | --x-in | --x-i) 1130 ac_prev=x_includes ;; 1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1133 x_includes=$ac_optarg ;; 1134 1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1137 ac_prev=x_libraries ;; 1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1140 x_libraries=$ac_optarg ;; 1141 1142 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1143Try \`$0 --help' for more information" 1144 ;; 1145 1146 *=*) 1147 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1148 # Reject names that are not valid shell variable names. 1149 case $ac_envvar in #( 1150 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1151 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1152 esac 1153 eval $ac_envvar=\$ac_optarg 1154 export $ac_envvar ;; 1155 1156 *) 1157 # FIXME: should be removed in autoconf 3.0. 1158 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1160 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1161 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1162 ;; 1163 1164 esac 1165done 1166 1167if test -n "$ac_prev"; then 1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1169 as_fn_error $? "missing argument to $ac_option" 1170fi 1171 1172if test -n "$ac_unrecognized_opts"; then 1173 case $enable_option_checking in 1174 no) ;; 1175 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1176 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1177 esac 1178fi 1179 1180# Check all directory arguments for consistency. 1181for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1182 datadir sysconfdir sharedstatedir localstatedir includedir \ 1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1184 libdir localedir mandir 1185do 1186 eval ac_val=\$$ac_var 1187 # Remove trailing slashes. 1188 case $ac_val in 1189 */ ) 1190 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1191 eval $ac_var=\$ac_val;; 1192 esac 1193 # Be sure to have absolute directory names. 1194 case $ac_val in 1195 [\\/$]* | ?:[\\/]* ) continue;; 1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1197 esac 1198 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1199done 1200 1201# There might be people who depend on the old broken behavior: `$host' 1202# used to hold the argument of --host etc. 1203# FIXME: To remove some day. 1204build=$build_alias 1205host=$host_alias 1206target=$target_alias 1207 1208# FIXME: To remove some day. 1209if test "x$host_alias" != x; then 1210 if test "x$build_alias" = x; then 1211 cross_compiling=maybe 1212 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1213 If a cross compiler is detected then cross compile mode will be used" >&2 1214 elif test "x$build_alias" != "x$host_alias"; then 1215 cross_compiling=yes 1216 fi 1217fi 1218 1219ac_tool_prefix= 1220test -n "$host_alias" && ac_tool_prefix=$host_alias- 1221 1222test "$silent" = yes && exec 6>/dev/null 1223 1224 1225ac_pwd=`pwd` && test -n "$ac_pwd" && 1226ac_ls_di=`ls -di .` && 1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1228 as_fn_error $? "working directory cannot be determined" 1229test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1230 as_fn_error $? "pwd does not report name of working directory" 1231 1232 1233# Find the source files, if location was not specified. 1234if test -z "$srcdir"; then 1235 ac_srcdir_defaulted=yes 1236 # Try the directory containing this script, then the parent directory. 1237 ac_confdir=`$as_dirname -- "$as_myself" || 1238$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1239 X"$as_myself" : 'X\(//\)[^/]' \| \ 1240 X"$as_myself" : 'X\(//\)$' \| \ 1241 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1242$as_echo X"$as_myself" | 1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1244 s//\1/ 1245 q 1246 } 1247 /^X\(\/\/\)[^/].*/{ 1248 s//\1/ 1249 q 1250 } 1251 /^X\(\/\/\)$/{ 1252 s//\1/ 1253 q 1254 } 1255 /^X\(\/\).*/{ 1256 s//\1/ 1257 q 1258 } 1259 s/.*/./; q'` 1260 srcdir=$ac_confdir 1261 if test ! -r "$srcdir/$ac_unique_file"; then 1262 srcdir=.. 1263 fi 1264else 1265 ac_srcdir_defaulted=no 1266fi 1267if test ! -r "$srcdir/$ac_unique_file"; then 1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1269 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1270fi 1271ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1272ac_abs_confdir=`( 1273 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1274 pwd)` 1275# When building in place, set srcdir=. 1276if test "$ac_abs_confdir" = "$ac_pwd"; then 1277 srcdir=. 1278fi 1279# Remove unnecessary trailing slashes from srcdir. 1280# Double slashes in file names in object file debugging info 1281# mess up M-x gdb in Emacs. 1282case $srcdir in 1283*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1284esac 1285for ac_var in $ac_precious_vars; do 1286 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1287 eval ac_env_${ac_var}_value=\$${ac_var} 1288 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1289 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1290done 1291 1292# 1293# Report the --help message. 1294# 1295if test "$ac_init_help" = "long"; then 1296 # Omit some internal or obsolete options to make the list less imposing. 1297 # This message is too long to be a string in the A/UX 3.1 sh. 1298 cat <<_ACEOF 1299\`configure' configures Hero of Allacrost - Demo 1.0.2 to adapt to many kinds of systems. 1300 1301Usage: $0 [OPTION]... [VAR=VALUE]... 1302 1303To assign environment variables (e.g., CC, CFLAGS...), specify them as 1304VAR=VALUE. See below for descriptions of some of the useful variables. 1305 1306Defaults for the options are specified in brackets. 1307 1308Configuration: 1309 -h, --help display this help and exit 1310 --help=short display options specific to this package 1311 --help=recursive display the short help of all the included packages 1312 -V, --version display version information and exit 1313 -q, --quiet, --silent do not print \`checking ...' messages 1314 --cache-file=FILE cache test results in FILE [disabled] 1315 -C, --config-cache alias for \`--cache-file=config.cache' 1316 -n, --no-create do not create output files 1317 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1318 1319Installation directories: 1320 --prefix=PREFIX install architecture-independent files in PREFIX 1321 [$ac_default_prefix] 1322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1323 [PREFIX] 1324 1325By default, \`make install' will install all the files in 1326\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1327an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1328for instance \`--prefix=\$HOME'. 1329 1330For better control, use the options below. 1331 1332Fine tuning of the installation directories: 1333 --bindir=DIR user executables [EPREFIX/bin] 1334 --sbindir=DIR system admin executables [EPREFIX/sbin] 1335 --libexecdir=DIR program executables [EPREFIX/libexec] 1336 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1337 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1338 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1339 --libdir=DIR object code libraries [EPREFIX/lib] 1340 --includedir=DIR C header files [PREFIX/include] 1341 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1342 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1343 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1344 --infodir=DIR info documentation [DATAROOTDIR/info] 1345 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1346 --mandir=DIR man documentation [DATAROOTDIR/man] 1347 --docdir=DIR documentation root [DATAROOTDIR/doc/allacrost] 1348 --htmldir=DIR html documentation [DOCDIR] 1349 --dvidir=DIR dvi documentation [DOCDIR] 1350 --pdfdir=DIR pdf documentation [DOCDIR] 1351 --psdir=DIR ps documentation [DOCDIR] 1352_ACEOF 1353 1354 cat <<\_ACEOF 1355 1356Program names: 1357 --program-prefix=PREFIX prepend PREFIX to installed program names 1358 --program-suffix=SUFFIX append SUFFIX to installed program names 1359 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1360 1361X features: 1362 --x-includes=DIR X include files are in DIR 1363 --x-libraries=DIR X library files are in DIR 1364 1365System types: 1366 --build=BUILD configure for building on BUILD [guessed] 1367 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1368 --target=TARGET configure for building compilers for TARGET [HOST] 1369_ACEOF 1370fi 1371 1372if test -n "$ac_init_help"; then 1373 case $ac_init_help in 1374 short | recursive ) echo "Configuration of Hero of Allacrost - Demo 1.0.2:";; 1375 esac 1376 cat <<\_ACEOF 1377 1378Optional Features: 1379 --disable-option-checking ignore unrecognized --enable/--with options 1380 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1381 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1382 --enable-maintainer-mode enable make rules and dependencies not useful 1383 (and sometimes confusing) to the casual installer 1384 --disable-dependency-tracking speeds up one-time build 1385 --enable-dependency-tracking do not reject slow dependency extractors 1386 --enable-optimize=no/yes will build with -O3 compiler optimization default=yes 1387 --enable-debug=no/yes will build with debugging capability default=no 1388 --enable-editor=no/yes will build the map editor default=yes 1389 --disable-nls do not use Native Language Support 1390 --disable-rpath do not hardcode runtime library paths 1391 1392Optional Packages: 1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1395 --with-x use the X Window System 1396 --with-gnu-ld assume the C compiler uses GNU ld default=no 1397 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1398 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1399 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1400 --without-libintl-prefix don't search for libintl in includedir and libdir 1401 1402Some influential environment variables: 1403 CXX C++ compiler command 1404 CXXFLAGS C++ compiler flags 1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1406 nonstandard directory <lib dir> 1407 LIBS libraries to pass to the linker, e.g. -l<library> 1408 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1409 you have headers in a nonstandard directory <include dir> 1410 CC C compiler command 1411 CFLAGS C compiler flags 1412 CPP C preprocessor 1413 XMKMF Path to xmkmf, Makefile generator for X Window System 1414 1415Use these variables to override the choices made by `configure' or to help 1416it to find libraries and programs with nonstandard names/locations. 1417 1418Report bugs to <rujasu@allacrost.org>. 1419_ACEOF 1420ac_status=$? 1421fi 1422 1423if test "$ac_init_help" = "recursive"; then 1424 # If there are subdirs, report their specific --help. 1425 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1426 test -d "$ac_dir" || 1427 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1428 continue 1429 ac_builddir=. 1430 1431case "$ac_dir" in 1432.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1433*) 1434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1435 # A ".." for each directory in $ac_dir_suffix. 1436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1437 case $ac_top_builddir_sub in 1438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1440 esac ;; 1441esac 1442ac_abs_top_builddir=$ac_pwd 1443ac_abs_builddir=$ac_pwd$ac_dir_suffix 1444# for backward compatibility: 1445ac_top_builddir=$ac_top_build_prefix 1446 1447case $srcdir in 1448 .) # We are building in place. 1449 ac_srcdir=. 1450 ac_top_srcdir=$ac_top_builddir_sub 1451 ac_abs_top_srcdir=$ac_pwd ;; 1452 [\\/]* | ?:[\\/]* ) # Absolute name. 1453 ac_srcdir=$srcdir$ac_dir_suffix; 1454 ac_top_srcdir=$srcdir 1455 ac_abs_top_srcdir=$srcdir ;; 1456 *) # Relative name. 1457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1458 ac_top_srcdir=$ac_top_build_prefix$srcdir 1459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1460esac 1461ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1462 1463 cd "$ac_dir" || { ac_status=$?; continue; } 1464 # Check for guested configure. 1465 if test -f "$ac_srcdir/configure.gnu"; then 1466 echo && 1467 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1468 elif test -f "$ac_srcdir/configure"; then 1469 echo && 1470 $SHELL "$ac_srcdir/configure" --help=recursive 1471 else 1472 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1473 fi || ac_status=$? 1474 cd "$ac_pwd" || { ac_status=$?; break; } 1475 done 1476fi 1477 1478test -n "$ac_init_help" && exit $ac_status 1479if $ac_init_version; then 1480 cat <<\_ACEOF 1481Hero of Allacrost - Demo configure 1.0.2 1482generated by GNU Autoconf 2.67 1483 1484Copyright (C) 2010 Free Software Foundation, Inc. 1485This configure script is free software; the Free Software Foundation 1486gives unlimited permission to copy, distribute and modify it. 1487_ACEOF 1488 exit 1489fi 1490 1491## ------------------------ ## 1492## Autoconf initialization. ## 1493## ------------------------ ## 1494 1495# ac_fn_cxx_try_compile LINENO 1496# ---------------------------- 1497# Try to compile conftest.$ac_ext, and return whether this succeeded. 1498ac_fn_cxx_try_compile () 1499{ 1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1501 rm -f conftest.$ac_objext 1502 if { { ac_try="$ac_compile" 1503case "(($ac_try" in 1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1505 *) ac_try_echo=$ac_try;; 1506esac 1507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1508$as_echo "$ac_try_echo"; } >&5 1509 (eval "$ac_compile") 2>conftest.err 1510 ac_status=$? 1511 if test -s conftest.err; then 1512 grep -v '^ *+' conftest.err >conftest.er1 1513 cat conftest.er1 >&5 1514 mv -f conftest.er1 conftest.err 1515 fi 1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1517 test $ac_status = 0; } && { 1518 test -z "$ac_cxx_werror_flag" || 1519 test ! -s conftest.err 1520 } && test -s conftest.$ac_objext; then : 1521 ac_retval=0 1522else 1523 $as_echo "$as_me: failed program was:" >&5 1524sed 's/^/| /' conftest.$ac_ext >&5 1525 1526 ac_retval=1 1527fi 1528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1529 as_fn_set_status $ac_retval 1530 1531} # ac_fn_cxx_try_compile 1532 1533# ac_fn_c_try_compile LINENO 1534# -------------------------- 1535# Try to compile conftest.$ac_ext, and return whether this succeeded. 1536ac_fn_c_try_compile () 1537{ 1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1539 rm -f conftest.$ac_objext 1540 if { { ac_try="$ac_compile" 1541case "(($ac_try" in 1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1543 *) ac_try_echo=$ac_try;; 1544esac 1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1546$as_echo "$ac_try_echo"; } >&5 1547 (eval "$ac_compile") 2>conftest.err 1548 ac_status=$? 1549 if test -s conftest.err; then 1550 grep -v '^ *+' conftest.err >conftest.er1 1551 cat conftest.er1 >&5 1552 mv -f conftest.er1 conftest.err 1553 fi 1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1555 test $ac_status = 0; } && { 1556 test -z "$ac_c_werror_flag" || 1557 test ! -s conftest.err 1558 } && test -s conftest.$ac_objext; then : 1559 ac_retval=0 1560else 1561 $as_echo "$as_me: failed program was:" >&5 1562sed 's/^/| /' conftest.$ac_ext >&5 1563 1564 ac_retval=1 1565fi 1566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1567 as_fn_set_status $ac_retval 1568 1569} # ac_fn_c_try_compile 1570 1571# ac_fn_c_try_cpp LINENO 1572# ---------------------- 1573# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1574ac_fn_c_try_cpp () 1575{ 1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1577 if { { ac_try="$ac_cpp conftest.$ac_ext" 1578case "(($ac_try" in 1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1580 *) ac_try_echo=$ac_try;; 1581esac 1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1583$as_echo "$ac_try_echo"; } >&5 1584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1585 ac_status=$? 1586 if test -s conftest.err; then 1587 grep -v '^ *+' conftest.err >conftest.er1 1588 cat conftest.er1 >&5 1589 mv -f conftest.er1 conftest.err 1590 fi 1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1592 test $ac_status = 0; } > conftest.i && { 1593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1594 test ! -s conftest.err 1595 }; then : 1596 ac_retval=0 1597else 1598 $as_echo "$as_me: failed program was:" >&5 1599sed 's/^/| /' conftest.$ac_ext >&5 1600 1601 ac_retval=1 1602fi 1603 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1604 as_fn_set_status $ac_retval 1605 1606} # ac_fn_c_try_cpp 1607 1608# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1609# ------------------------------------------------------- 1610# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1611# the include files in INCLUDES and setting the cache variable VAR 1612# accordingly. 1613ac_fn_c_check_header_mongrel () 1614{ 1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1616 if eval "test \"\${$3+set}\"" = set; then : 1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1618$as_echo_n "checking for $2... " >&6; } 1619if eval "test \"\${$3+set}\"" = set; then : 1620 $as_echo_n "(cached) " >&6 1621fi 1622eval ac_res=\$$3 1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1624$as_echo "$ac_res" >&6; } 1625else 1626 # Is the header compilable? 1627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1628$as_echo_n "checking $2 usability... " >&6; } 1629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1630/* end confdefs.h. */ 1631$4 1632#include <$2> 1633_ACEOF 1634if ac_fn_c_try_compile "$LINENO"; then : 1635 ac_header_compiler=yes 1636else 1637 ac_header_compiler=no 1638fi 1639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1641$as_echo "$ac_header_compiler" >&6; } 1642 1643# Is the header present? 1644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1645$as_echo_n "checking $2 presence... " >&6; } 1646cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1647/* end confdefs.h. */ 1648#include <$2> 1649_ACEOF 1650if ac_fn_c_try_cpp "$LINENO"; then : 1651 ac_header_preproc=yes 1652else 1653 ac_header_preproc=no 1654fi 1655rm -f conftest.err conftest.i conftest.$ac_ext 1656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1657$as_echo "$ac_header_preproc" >&6; } 1658 1659# So? What about this header? 1660case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1661 yes:no: ) 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1663$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1665$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1666 ;; 1667 no:yes:* ) 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1669$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1671$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1673$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1675$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1677$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1678( $as_echo "## ----------------------------------- ## 1679## Report this to rujasu@allacrost.org ## 1680## ----------------------------------- ##" 1681 ) | sed "s/^/$as_me: WARNING: /" >&2 1682 ;; 1683esac 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1685$as_echo_n "checking for $2... " >&6; } 1686if eval "test \"\${$3+set}\"" = set; then : 1687 $as_echo_n "(cached) " >&6 1688else 1689 eval "$3=\$ac_header_compiler" 1690fi 1691eval ac_res=\$$3 1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1693$as_echo "$ac_res" >&6; } 1694fi 1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1696 1697} # ac_fn_c_check_header_mongrel 1698 1699# ac_fn_c_try_run LINENO 1700# ---------------------- 1701# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1702# that executables *can* be run. 1703ac_fn_c_try_run () 1704{ 1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1706 if { { ac_try="$ac_link" 1707case "(($ac_try" in 1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1709 *) ac_try_echo=$ac_try;; 1710esac 1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1712$as_echo "$ac_try_echo"; } >&5 1713 (eval "$ac_link") 2>&5 1714 ac_status=$? 1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1716 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1717 { { case "(($ac_try" in 1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1719 *) ac_try_echo=$ac_try;; 1720esac 1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1722$as_echo "$ac_try_echo"; } >&5 1723 (eval "$ac_try") 2>&5 1724 ac_status=$? 1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1726 test $ac_status = 0; }; }; then : 1727 ac_retval=0 1728else 1729 $as_echo "$as_me: program exited with status $ac_status" >&5 1730 $as_echo "$as_me: failed program was:" >&5 1731sed 's/^/| /' conftest.$ac_ext >&5 1732 1733 ac_retval=$ac_status 1734fi 1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1737 as_fn_set_status $ac_retval 1738 1739} # ac_fn_c_try_run 1740 1741# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1742# ------------------------------------------------------- 1743# Tests whether HEADER exists and can be compiled using the include files in 1744# INCLUDES, setting the cache variable VAR accordingly. 1745ac_fn_c_check_header_compile () 1746{ 1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1749$as_echo_n "checking for $2... " >&6; } 1750if eval "test \"\${$3+set}\"" = set; then : 1751 $as_echo_n "(cached) " >&6 1752else 1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1754/* end confdefs.h. */ 1755$4 1756#include <$2> 1757_ACEOF 1758if ac_fn_c_try_compile "$LINENO"; then : 1759 eval "$3=yes" 1760else 1761 eval "$3=no" 1762fi 1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1764fi 1765eval ac_res=\$$3 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1767$as_echo "$ac_res" >&6; } 1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1769 1770} # ac_fn_c_check_header_compile 1771 1772# ac_fn_c_try_link LINENO 1773# ----------------------- 1774# Try to link conftest.$ac_ext, and return whether this succeeded. 1775ac_fn_c_try_link () 1776{ 1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1778 rm -f conftest.$ac_objext conftest$ac_exeext 1779 if { { ac_try="$ac_link" 1780case "(($ac_try" in 1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1782 *) ac_try_echo=$ac_try;; 1783esac 1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1785$as_echo "$ac_try_echo"; } >&5 1786 (eval "$ac_link") 2>conftest.err 1787 ac_status=$? 1788 if test -s conftest.err; then 1789 grep -v '^ *+' conftest.err >conftest.er1 1790 cat conftest.er1 >&5 1791 mv -f conftest.er1 conftest.err 1792 fi 1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1794 test $ac_status = 0; } && { 1795 test -z "$ac_c_werror_flag" || 1796 test ! -s conftest.err 1797 } && test -s conftest$ac_exeext && { 1798 test "$cross_compiling" = yes || 1799 $as_test_x conftest$ac_exeext 1800 }; then : 1801 ac_retval=0 1802else 1803 $as_echo "$as_me: failed program was:" >&5 1804sed 's/^/| /' conftest.$ac_ext >&5 1805 1806 ac_retval=1 1807fi 1808 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1809 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1810 # interfere with the next link command; also delete a directory that is 1811 # left behind by Apple's compiler. We do this before executing the actions. 1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1813 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1814 as_fn_set_status $ac_retval 1815 1816} # ac_fn_c_try_link 1817 1818# ac_fn_c_check_func LINENO FUNC VAR 1819# ---------------------------------- 1820# Tests whether FUNC exists, setting the cache variable VAR accordingly 1821ac_fn_c_check_func () 1822{ 1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1825$as_echo_n "checking for $2... " >&6; } 1826if eval "test \"\${$3+set}\"" = set; then : 1827 $as_echo_n "(cached) " >&6 1828else 1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1830/* end confdefs.h. */ 1831/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1833#define $2 innocuous_$2 1834 1835/* System header to define __stub macros and hopefully few prototypes, 1836 which can conflict with char $2 (); below. 1837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1838 <limits.h> exists even on freestanding compilers. */ 1839 1840#ifdef __STDC__ 1841# include <limits.h> 1842#else 1843# include <assert.h> 1844#endif 1845 1846#undef $2 1847 1848/* Override any GCC internal prototype to avoid an error. 1849 Use char because int might match the return type of a GCC 1850 builtin and then its argument prototype would still apply. */ 1851#ifdef __cplusplus 1852extern "C" 1853#endif 1854char $2 (); 1855/* The GNU C library defines this for functions which it implements 1856 to always fail with ENOSYS. Some functions are actually named 1857 something starting with __ and the normal name is an alias. */ 1858#if defined __stub_$2 || defined __stub___$2 1859choke me 1860#endif 1861 1862int 1863main () 1864{ 1865return $2 (); 1866 ; 1867 return 0; 1868} 1869_ACEOF 1870if ac_fn_c_try_link "$LINENO"; then : 1871 eval "$3=yes" 1872else 1873 eval "$3=no" 1874fi 1875rm -f core conftest.err conftest.$ac_objext \ 1876 conftest$ac_exeext conftest.$ac_ext 1877fi 1878eval ac_res=\$$3 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1880$as_echo "$ac_res" >&6; } 1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1882 1883} # ac_fn_c_check_func 1884 1885# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1886# ------------------------------------------- 1887# Tests whether TYPE exists after having included INCLUDES, setting cache 1888# variable VAR accordingly. 1889ac_fn_c_check_type () 1890{ 1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1893$as_echo_n "checking for $2... " >&6; } 1894if eval "test \"\${$3+set}\"" = set; then : 1895 $as_echo_n "(cached) " >&6 1896else 1897 eval "$3=no" 1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1899/* end confdefs.h. */ 1900$4 1901int 1902main () 1903{ 1904if (sizeof ($2)) 1905 return 0; 1906 ; 1907 return 0; 1908} 1909_ACEOF 1910if ac_fn_c_try_compile "$LINENO"; then : 1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1912/* end confdefs.h. */ 1913$4 1914int 1915main () 1916{ 1917if (sizeof (($2))) 1918 return 0; 1919 ; 1920 return 0; 1921} 1922_ACEOF 1923if ac_fn_c_try_compile "$LINENO"; then : 1924 1925else 1926 eval "$3=yes" 1927fi 1928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1929fi 1930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1931fi 1932eval ac_res=\$$3 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1934$as_echo "$ac_res" >&6; } 1935 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1936 1937} # ac_fn_c_check_type 1938cat >config.log <<_ACEOF 1939This file contains any messages produced by compilers while 1940running configure, to aid debugging if configure makes a mistake. 1941 1942It was created by Hero of Allacrost - Demo $as_me 1.0.2, which was 1943generated by GNU Autoconf 2.67. Invocation command line was 1944 1945 $ $0 $@ 1946 1947_ACEOF 1948exec 5>>config.log 1949{ 1950cat <<_ASUNAME 1951## --------- ## 1952## Platform. ## 1953## --------- ## 1954 1955hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1956uname -m = `(uname -m) 2>/dev/null || echo unknown` 1957uname -r = `(uname -r) 2>/dev/null || echo unknown` 1958uname -s = `(uname -s) 2>/dev/null || echo unknown` 1959uname -v = `(uname -v) 2>/dev/null || echo unknown` 1960 1961/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1962/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1963 1964/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1965/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1966/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1967/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1968/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1969/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1970/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1971 1972_ASUNAME 1973 1974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1975for as_dir in $PATH 1976do 1977 IFS=$as_save_IFS 1978 test -z "$as_dir" && as_dir=. 1979 $as_echo "PATH: $as_dir" 1980 done 1981IFS=$as_save_IFS 1982 1983} >&5 1984 1985cat >&5 <<_ACEOF 1986 1987 1988## ----------- ## 1989## Core tests. ## 1990## ----------- ## 1991 1992_ACEOF 1993 1994 1995# Keep a trace of the command line. 1996# Strip out --no-create and --no-recursion so they do not pile up. 1997# Strip out --silent because we don't want to record it for future runs. 1998# Also quote any args containing shell meta-characters. 1999# Make two passes to allow for proper duplicate-argument suppression. 2000ac_configure_args= 2001ac_configure_args0= 2002ac_configure_args1= 2003ac_must_keep_next=false 2004for ac_pass in 1 2 2005do 2006 for ac_arg 2007 do 2008 case $ac_arg in 2009 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2011 | -silent | --silent | --silen | --sile | --sil) 2012 continue ;; 2013 *\'*) 2014 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2015 esac 2016 case $ac_pass in 2017 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2018 2) 2019 as_fn_append ac_configure_args1 " '$ac_arg'" 2020 if test $ac_must_keep_next = true; then 2021 ac_must_keep_next=false # Got value, back to normal. 2022 else 2023 case $ac_arg in 2024 *=* | --config-cache | -C | -disable-* | --disable-* \ 2025 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2026 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2027 | -with-* | --with-* | -without-* | --without-* | --x) 2028 case "$ac_configure_args0 " in 2029 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2030 esac 2031 ;; 2032 -* ) ac_must_keep_next=true ;; 2033 esac 2034 fi 2035 as_fn_append ac_configure_args " '$ac_arg'" 2036 ;; 2037 esac 2038 done 2039done 2040{ ac_configure_args0=; unset ac_configure_args0;} 2041{ ac_configure_args1=; unset ac_configure_args1;} 2042 2043# When interrupted or exit'd, cleanup temporary files, and complete 2044# config.log. We remove comments because anyway the quotes in there 2045# would cause problems or look ugly. 2046# WARNING: Use '\'' to represent an apostrophe within the trap. 2047# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2048trap 'exit_status=$? 2049 # Save into config.log some information that might help in debugging. 2050 { 2051 echo 2052 2053 $as_echo "## ---------------- ## 2054## Cache variables. ## 2055## ---------------- ##" 2056 echo 2057 # The following way of writing the cache mishandles newlines in values, 2058( 2059 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2060 eval ac_val=\$$ac_var 2061 case $ac_val in #( 2062 *${as_nl}*) 2063 case $ac_var in #( 2064 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2065$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2066 esac 2067 case $ac_var in #( 2068 _ | IFS | as_nl) ;; #( 2069 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2070 *) { eval $ac_var=; unset $ac_var;} ;; 2071 esac ;; 2072 esac 2073 done 2074 (set) 2>&1 | 2075 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2076 *${as_nl}ac_space=\ *) 2077 sed -n \ 2078 "s/'\''/'\''\\\\'\'''\''/g; 2079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2080 ;; #( 2081 *) 2082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2083 ;; 2084 esac | 2085 sort 2086) 2087 echo 2088 2089 $as_echo "## ----------------- ## 2090## Output variables. ## 2091## ----------------- ##" 2092 echo 2093 for ac_var in $ac_subst_vars 2094 do 2095 eval ac_val=\$$ac_var 2096 case $ac_val in 2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2098 esac 2099 $as_echo "$ac_var='\''$ac_val'\''" 2100 done | sort 2101 echo 2102 2103 if test -n "$ac_subst_files"; then 2104 $as_echo "## ------------------- ## 2105## File substitutions. ## 2106## ------------------- ##" 2107 echo 2108 for ac_var in $ac_subst_files 2109 do 2110 eval ac_val=\$$ac_var 2111 case $ac_val in 2112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2113 esac 2114 $as_echo "$ac_var='\''$ac_val'\''" 2115 done | sort 2116 echo 2117 fi 2118 2119 if test -s confdefs.h; then 2120 $as_echo "## ----------- ## 2121## confdefs.h. ## 2122## ----------- ##" 2123 echo 2124 cat confdefs.h 2125 echo 2126 fi 2127 test "$ac_signal" != 0 && 2128 $as_echo "$as_me: caught signal $ac_signal" 2129 $as_echo "$as_me: exit $exit_status" 2130 } >&5 2131 rm -f core *.core core.conftest.* && 2132 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2133 exit $exit_status 2134' 0 2135for ac_signal in 1 2 13 15; do 2136 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2137done 2138ac_signal=0 2139 2140# confdefs.h avoids OS command line length limits that DEFS can exceed. 2141rm -f -r conftest* confdefs.h 2142 2143$as_echo "/* confdefs.h */" > confdefs.h 2144 2145# Predefined preprocessor variables. 2146 2147cat >>confdefs.h <<_ACEOF 2148#define PACKAGE_NAME "$PACKAGE_NAME" 2149_ACEOF 2150 2151cat >>confdefs.h <<_ACEOF 2152#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2153_ACEOF 2154 2155cat >>confdefs.h <<_ACEOF 2156#define PACKAGE_VERSION "$PACKAGE_VERSION" 2157_ACEOF 2158 2159cat >>confdefs.h <<_ACEOF 2160#define PACKAGE_STRING "$PACKAGE_STRING" 2161_ACEOF 2162 2163cat >>confdefs.h <<_ACEOF 2164#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2165_ACEOF 2166 2167cat >>confdefs.h <<_ACEOF 2168#define PACKAGE_URL "$PACKAGE_URL" 2169_ACEOF 2170 2171 2172# Let the site file select an alternate cache file if it wants to. 2173# Prefer an explicitly selected file to automatically selected ones. 2174ac_site_file1=NONE 2175ac_site_file2=NONE 2176if test -n "$CONFIG_SITE"; then 2177 # We do not want a PATH search for config.site. 2178 case $CONFIG_SITE in #(( 2179 -*) ac_site_file1=./$CONFIG_SITE;; 2180 */*) ac_site_file1=$CONFIG_SITE;; 2181 *) ac_site_file1=./$CONFIG_SITE;; 2182 esac 2183elif test "x$prefix" != xNONE; then 2184 ac_site_file1=$prefix/share/config.site 2185 ac_site_file2=$prefix/etc/config.site 2186else 2187 ac_site_file1=$ac_default_prefix/share/config.site 2188 ac_site_file2=$ac_default_prefix/etc/config.site 2189fi 2190for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2191do 2192 test "x$ac_site_file" = xNONE && continue 2193 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2195$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2196 sed 's/^/| /' "$ac_site_file" >&5 2197 . "$ac_site_file" \ 2198 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2200as_fn_error $? "failed to load site script $ac_site_file 2201See \`config.log' for more details" "$LINENO" 5 ; } 2202 fi 2203done 2204 2205if test -r "$cache_file"; then 2206 # Some versions of bash will fail to source /dev/null (special files 2207 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2208 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2210$as_echo "$as_me: loading cache $cache_file" >&6;} 2211 case $cache_file in 2212 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2213 *) . "./$cache_file";; 2214 esac 2215 fi 2216else 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2218$as_echo "$as_me: creating cache $cache_file" >&6;} 2219 >$cache_file 2220fi 2221 2222gt_needs="$gt_needs " 2223# Check that the precious variables saved in the cache have kept the same 2224# value. 2225ac_cache_corrupted=false 2226for ac_var in $ac_precious_vars; do 2227 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2228 eval ac_new_set=\$ac_env_${ac_var}_set 2229 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2230 eval ac_new_val=\$ac_env_${ac_var}_value 2231 case $ac_old_set,$ac_new_set in 2232 set,) 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2234$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2235 ac_cache_corrupted=: ;; 2236 ,set) 2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2238$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2239 ac_cache_corrupted=: ;; 2240 ,);; 2241 *) 2242 if test "x$ac_old_val" != "x$ac_new_val"; then 2243 # differences in whitespace do not lead to failure. 2244 ac_old_val_w=`echo x $ac_old_val` 2245 ac_new_val_w=`echo x $ac_new_val` 2246 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2248$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2249 ac_cache_corrupted=: 2250 else 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2252$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2253 eval $ac_var=\$ac_old_val 2254 fi 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2256$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2258$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2259 fi;; 2260 esac 2261 # Pass precious variables to config.status. 2262 if test "$ac_new_set" = set; then 2263 case $ac_new_val in 2264 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2265 *) ac_arg=$ac_var=$ac_new_val ;; 2266 esac 2267 case " $ac_configure_args " in 2268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2269 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2270 esac 2271 fi 2272done 2273if $ac_cache_corrupted; then 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2277$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2278 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2279fi 2280## -------------------- ## 2281## Main body of script. ## 2282## -------------------- ## 2283 2284ac_ext=c 2285ac_cpp='$CPP $CPPFLAGS' 2286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2288ac_compiler_gnu=$ac_cv_c_compiler_gnu 2289 2290 2291ac_config_headers="$ac_config_headers config.h" 2292 2293 2294ac_aux_dir= 2295for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2296 if test -f "$ac_dir/install-sh"; then 2297 ac_aux_dir=$ac_dir 2298 ac_install_sh="$ac_aux_dir/install-sh -c" 2299 break 2300 elif test -f "$ac_dir/install.sh"; then 2301 ac_aux_dir=$ac_dir 2302 ac_install_sh="$ac_aux_dir/install.sh -c" 2303 break 2304 elif test -f "$ac_dir/shtool"; then 2305 ac_aux_dir=$ac_dir 2306 ac_install_sh="$ac_aux_dir/shtool install -c" 2307 break 2308 fi 2309done 2310if test -z "$ac_aux_dir"; then 2311 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2312fi 2313 2314# These three variables are undocumented and unsupported, 2315# and are intended to be withdrawn in a future Autoconf release. 2316# They can cause serious problems if a builder's source tree is in a directory 2317# whose full name contains unusual characters. 2318ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2319ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2320ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2321 2322 2323# Make sure we can run config.sub. 2324$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2325 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2326 2327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2328$as_echo_n "checking build system type... " >&6; } 2329if test "${ac_cv_build+set}" = set; then : 2330 $as_echo_n "(cached) " >&6 2331else 2332 ac_build_alias=$build_alias 2333test "x$ac_build_alias" = x && 2334 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2335test "x$ac_build_alias" = x && 2336 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2337ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2338 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2339 2340fi 2341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2342$as_echo "$ac_cv_build" >&6; } 2343case $ac_cv_build in 2344*-*-*) ;; 2345*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; 2346esac 2347build=$ac_cv_build 2348ac_save_IFS=$IFS; IFS='-' 2349set x $ac_cv_build 2350shift 2351build_cpu=$1 2352build_vendor=$2 2353shift; shift 2354# Remember, the first character of IFS is used to create $*, 2355# except with old shells: 2356build_os=$* 2357IFS=$ac_save_IFS 2358case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2359 2360 2361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2362$as_echo_n "checking host system type... " >&6; } 2363if test "${ac_cv_host+set}" = set; then : 2364 $as_echo_n "(cached) " >&6 2365else 2366 if test "x$host_alias" = x; then 2367 ac_cv_host=$ac_cv_build 2368else 2369 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2370 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2371fi 2372 2373fi 2374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2375$as_echo "$ac_cv_host" >&6; } 2376case $ac_cv_host in 2377*-*-*) ;; 2378*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; 2379esac 2380host=$ac_cv_host 2381ac_save_IFS=$IFS; IFS='-' 2382set x $ac_cv_host 2383shift 2384host_cpu=$1 2385host_vendor=$2 2386shift; shift 2387# Remember, the first character of IFS is used to create $*, 2388# except with old shells: 2389host_os=$* 2390IFS=$ac_save_IFS 2391case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2392 2393 2394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2395$as_echo_n "checking target system type... " >&6; } 2396if test "${ac_cv_target+set}" = set; then : 2397 $as_echo_n "(cached) " >&6 2398else 2399 if test "x$target_alias" = x; then 2400 ac_cv_target=$ac_cv_host 2401else 2402 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2403 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2404fi 2405 2406fi 2407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2408$as_echo "$ac_cv_target" >&6; } 2409case $ac_cv_target in 2410*-*-*) ;; 2411*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;; 2412esac 2413target=$ac_cv_target 2414ac_save_IFS=$IFS; IFS='-' 2415set x $ac_cv_target 2416shift 2417target_cpu=$1 2418target_vendor=$2 2419shift; shift 2420# Remember, the first character of IFS is used to create $*, 2421# except with old shells: 2422target_os=$* 2423IFS=$ac_save_IFS 2424case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2425 2426 2427# The aliases save the names the user supplied, while $host etc. 2428# will get canonicalized. 2429test -n "$target_alias" && 2430 test "$program_prefix$program_suffix$program_transform_name" = \ 2431 NONENONEs,x,x, && 2432 program_prefix=${target_alias}- 2433am__api_version='1.11' 2434 2435# Find a good install program. We prefer a C program (faster), 2436# so one script is as good as another. But avoid the broken or 2437# incompatible versions: 2438# SysV /etc/install, /usr/sbin/install 2439# SunOS /usr/etc/install 2440# IRIX /sbin/install 2441# AIX /bin/install 2442# AmigaOS /C/install, which installs bootblocks on floppy discs 2443# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2444# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2445# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2446# OS/2's system install, which has a completely different semantic 2447# ./install, which can be erroneously created by make from ./install.sh. 2448# Reject install programs that cannot install multiple files. 2449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2450$as_echo_n "checking for a BSD-compatible install... " >&6; } 2451if test -z "$INSTALL"; then 2452if test "${ac_cv_path_install+set}" = set; then : 2453 $as_echo_n "(cached) " >&6 2454else 2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2456for as_dir in $PATH 2457do 2458 IFS=$as_save_IFS 2459 test -z "$as_dir" && as_dir=. 2460 # Account for people who put trailing slashes in PATH elements. 2461case $as_dir/ in #(( 2462 ./ | .// | /[cC]/* | \ 2463 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2464 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2465 /usr/ucb/* ) ;; 2466 *) 2467 # OSF1 and SCO ODT 3.0 have their own names for install. 2468 # Don't use installbsd from OSF since it installs stuff as root 2469 # by default. 2470 for ac_prog in ginstall scoinst install; do 2471 for ac_exec_ext in '' $ac_executable_extensions; do 2472 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2473 if test $ac_prog = install && 2474 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2475 # AIX install. It has an incompatible calling convention. 2476 : 2477 elif test $ac_prog = install && 2478 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2479 # program-specific install script used by HP pwplus--don't use. 2480 : 2481 else 2482 rm -rf conftest.one conftest.two conftest.dir 2483 echo one > conftest.one 2484 echo two > conftest.two 2485 mkdir conftest.dir 2486 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2487 test -s conftest.one && test -s conftest.two && 2488 test -s conftest.dir/conftest.one && 2489 test -s conftest.dir/conftest.two 2490 then 2491 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2492 break 3 2493 fi 2494 fi 2495 fi 2496 done 2497 done 2498 ;; 2499esac 2500 2501 done 2502IFS=$as_save_IFS 2503 2504rm -rf conftest.one conftest.two conftest.dir 2505 2506fi 2507 if test "${ac_cv_path_install+set}" = set; then 2508 INSTALL=$ac_cv_path_install 2509 else 2510 # As a last resort, use the slow shell script. Don't cache a 2511 # value for INSTALL within a source directory, because that will 2512 # break other packages using the cache if that directory is 2513 # removed, or if the value is a relative name. 2514 INSTALL=$ac_install_sh 2515 fi 2516fi 2517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2518$as_echo "$INSTALL" >&6; } 2519 2520# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2521# It thinks the first close brace ends the variable substitution. 2522test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2523 2524test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2525 2526test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2527 2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2529$as_echo_n "checking whether build environment is sane... " >&6; } 2530# Just in case 2531sleep 1 2532echo timestamp > conftest.file 2533# Reject unsafe characters in $srcdir or the absolute working directory 2534# name. Accept space and tab only in the latter. 2535am_lf=' 2536' 2537case `pwd` in 2538 *[\\\"\#\$\&\'\`$am_lf]*) 2539 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; 2540esac 2541case $srcdir in 2542 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2543 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; 2544esac 2545 2546# Do `set' in a subshell so we don't clobber the current shell's 2547# arguments. Must try -L first in case configure is actually a 2548# symlink; some systems play weird games with the mod time of symlinks 2549# (eg FreeBSD returns the mod time of the symlink's containing 2550# directory). 2551if ( 2552 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2553 if test "$*" = "X"; then 2554 # -L didn't work. 2555 set X `ls -t "$srcdir/configure" conftest.file` 2556 fi 2557 rm -f conftest.file 2558 if test "$*" != "X $srcdir/configure conftest.file" \ 2559 && test "$*" != "X conftest.file $srcdir/configure"; then 2560 2561 # If neither matched, then we have a broken ls. This can happen 2562 # if, for instance, CONFIG_SHELL is bash and it inherits a 2563 # broken ls alias from the environment. This has actually 2564 # happened. Such a system could not be considered "sane". 2565 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2566alias in your environment" "$LINENO" 5 2567 fi 2568 2569 test "$2" = conftest.file 2570 ) 2571then 2572 # Ok. 2573 : 2574else 2575 as_fn_error $? "newly created file is older than distributed files! 2576Check your system clock" "$LINENO" 5 2577fi 2578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2579$as_echo "yes" >&6; } 2580test "$program_prefix" != NONE && 2581 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2582# Use a double $ so make ignores it. 2583test "$program_suffix" != NONE && 2584 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2585# Double any \ or $. 2586# By default was `s,x,x', remove it if useless. 2587ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2588program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2589 2590# expand $ac_aux_dir to an absolute path 2591am_aux_dir=`cd $ac_aux_dir && pwd` 2592 2593if test x"${MISSING+set}" != xset; then 2594 case $am_aux_dir in 2595 *\ * | *\ *) 2596 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2597 *) 2598 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2599 esac 2600fi 2601# Use eval to expand $SHELL 2602if eval "$MISSING --run true"; then 2603 am_missing_run="$MISSING --run " 2604else 2605 am_missing_run= 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2607$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2608fi 2609 2610if test x"${install_sh}" != xset; then 2611 case $am_aux_dir in 2612 *\ * | *\ *) 2613 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2614 *) 2615 install_sh="\${SHELL} $am_aux_dir/install-sh" 2616 esac 2617fi 2618 2619# Installed binaries are usually stripped using `strip' when the user 2620# run `make install-strip'. However `strip' might not be the right 2621# tool to use in cross-compilation environments, therefore Automake 2622# will honor the `STRIP' environment variable to overrule this program. 2623if test "$cross_compiling" != no; then 2624 if test -n "$ac_tool_prefix"; then 2625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2626set dummy ${ac_tool_prefix}strip; ac_word=$2 2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2628$as_echo_n "checking for $ac_word... " >&6; } 2629if test "${ac_cv_prog_STRIP+set}" = set; then : 2630 $as_echo_n "(cached) " >&6 2631else 2632 if test -n "$STRIP"; then 2633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2634else 2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2636for as_dir in $PATH 2637do 2638 IFS=$as_save_IFS 2639 test -z "$as_dir" && as_dir=. 2640 for ac_exec_ext in '' $ac_executable_extensions; do 2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2642 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2644 break 2 2645 fi 2646done 2647 done 2648IFS=$as_save_IFS 2649 2650fi 2651fi 2652STRIP=$ac_cv_prog_STRIP 2653if test -n "$STRIP"; then 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2655$as_echo "$STRIP" >&6; } 2656else 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2658$as_echo "no" >&6; } 2659fi 2660 2661 2662fi 2663if test -z "$ac_cv_prog_STRIP"; then 2664 ac_ct_STRIP=$STRIP 2665 # Extract the first word of "strip", so it can be a program name with args. 2666set dummy strip; ac_word=$2 2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2668$as_echo_n "checking for $ac_word... " >&6; } 2669if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2670 $as_echo_n "(cached) " >&6 2671else 2672 if test -n "$ac_ct_STRIP"; then 2673 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2674else 2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2676for as_dir in $PATH 2677do 2678 IFS=$as_save_IFS 2679 test -z "$as_dir" && as_dir=. 2680 for ac_exec_ext in '' $ac_executable_extensions; do 2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2682 ac_cv_prog_ac_ct_STRIP="strip" 2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2684 break 2 2685 fi 2686done 2687 done 2688IFS=$as_save_IFS 2689 2690fi 2691fi 2692ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2693if test -n "$ac_ct_STRIP"; then 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2695$as_echo "$ac_ct_STRIP" >&6; } 2696else 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2698$as_echo "no" >&6; } 2699fi 2700 2701 if test "x$ac_ct_STRIP" = x; then 2702 STRIP=":" 2703 else 2704 case $cross_compiling:$ac_tool_warned in 2705yes:) 2706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2708ac_tool_warned=yes ;; 2709esac 2710 STRIP=$ac_ct_STRIP 2711 fi 2712else 2713 STRIP="$ac_cv_prog_STRIP" 2714fi 2715 2716fi 2717INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2718 2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2720$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2721if test -z "$MKDIR_P"; then 2722 if test "${ac_cv_path_mkdir+set}" = set; then : 2723 $as_echo_n "(cached) " >&6 2724else 2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2726for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2727do 2728 IFS=$as_save_IFS 2729 test -z "$as_dir" && as_dir=. 2730 for ac_prog in mkdir gmkdir; do 2731 for ac_exec_ext in '' $ac_executable_extensions; do 2732 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2733 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2734 'mkdir (GNU coreutils) '* | \ 2735 'mkdir (coreutils) '* | \ 2736 'mkdir (fileutils) '4.1*) 2737 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2738 break 3;; 2739 esac 2740 done 2741 done 2742 done 2743IFS=$as_save_IFS 2744 2745fi 2746 2747 test -d ./--version && rmdir ./--version 2748 if test "${ac_cv_path_mkdir+set}" = set; then 2749 MKDIR_P="$ac_cv_path_mkdir -p" 2750 else 2751 # As a last resort, use the slow shell script. Don't cache a 2752 # value for MKDIR_P within a source directory, because that will 2753 # break other packages using the cache if that directory is 2754 # removed, or if the value is a relative name. 2755 MKDIR_P="$ac_install_sh -d" 2756 fi 2757fi 2758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2759$as_echo "$MKDIR_P" >&6; } 2760 2761mkdir_p="$MKDIR_P" 2762case $mkdir_p in 2763 [\\/$]* | ?:[\\/]*) ;; 2764 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2765esac 2766 2767for ac_prog in gawk mawk nawk awk 2768do 2769 # Extract the first word of "$ac_prog", so it can be a program name with args. 2770set dummy $ac_prog; ac_word=$2 2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2772$as_echo_n "checking for $ac_word... " >&6; } 2773if test "${ac_cv_prog_AWK+set}" = set; then : 2774 $as_echo_n "(cached) " >&6 2775else 2776 if test -n "$AWK"; then 2777 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2778else 2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2780for as_dir in $PATH 2781do 2782 IFS=$as_save_IFS 2783 test -z "$as_dir" && as_dir=. 2784 for ac_exec_ext in '' $ac_executable_extensions; do 2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2786 ac_cv_prog_AWK="$ac_prog" 2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2788 break 2 2789 fi 2790done 2791 done 2792IFS=$as_save_IFS 2793 2794fi 2795fi 2796AWK=$ac_cv_prog_AWK 2797if test -n "$AWK"; then 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2799$as_echo "$AWK" >&6; } 2800else 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2802$as_echo "no" >&6; } 2803fi 2804 2805 2806 test -n "$AWK" && break 2807done 2808 2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2810$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2811set x ${MAKE-make} 2812ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2813if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 2814 $as_echo_n "(cached) " >&6 2815else 2816 cat >conftest.make <<\_ACEOF 2817SHELL = /bin/sh 2818all: 2819 @echo '@@@%%%=$(MAKE)=@@@%%%' 2820_ACEOF 2821# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2822case `${MAKE-make} -f conftest.make 2>/dev/null` in 2823 *@@@%%%=?*=@@@%%%*) 2824 eval ac_cv_prog_make_${ac_make}_set=yes;; 2825 *) 2826 eval ac_cv_prog_make_${ac_make}_set=no;; 2827esac 2828rm -f conftest.make 2829fi 2830if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2832$as_echo "yes" >&6; } 2833 SET_MAKE= 2834else 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2836$as_echo "no" >&6; } 2837 SET_MAKE="MAKE=${MAKE-make}" 2838fi 2839 2840rm -rf .tst 2>/dev/null 2841mkdir .tst 2>/dev/null 2842if test -d .tst; then 2843 am__leading_dot=. 2844else 2845 am__leading_dot=_ 2846fi 2847rmdir .tst 2>/dev/null 2848 2849if test "`cd $srcdir && pwd`" != "`pwd`"; then 2850 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2851 # is not polluted with repeated "-I." 2852 am__isrc=' -I$(srcdir)' 2853 # test to see if srcdir already configured 2854 if test -f $srcdir/config.status; then 2855 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2856 fi 2857fi 2858 2859# test whether we have cygpath 2860if test -z "$CYGPATH_W"; then 2861 if (cygpath --version) >/dev/null 2>/dev/null; then 2862 CYGPATH_W='cygpath -w' 2863 else 2864 CYGPATH_W=echo 2865 fi 2866fi 2867 2868 2869# Define the identity of the package. 2870 PACKAGE='allacrost' 2871 VERSION='1.0.2' 2872 2873 2874cat >>confdefs.h <<_ACEOF 2875#define PACKAGE "$PACKAGE" 2876_ACEOF 2877 2878 2879cat >>confdefs.h <<_ACEOF 2880#define VERSION "$VERSION" 2881_ACEOF 2882 2883# Some tools Automake needs. 2884 2885ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2886 2887 2888AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2889 2890 2891AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2892 2893 2894AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2895 2896 2897MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2898 2899# We need awk for the "check" target. The system "awk" is bad on 2900# some platforms. 2901# Always define AMTAR for backward compatibility. 2902 2903AMTAR=${AMTAR-"${am_missing_run}tar"} 2904 2905am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2906 2907 2908 2909 2910 2911 2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2913$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2914 # Check whether --enable-maintainer-mode was given. 2915if test "${enable_maintainer_mode+set}" = set; then : 2916 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2917else 2918 USE_MAINTAINER_MODE=no 2919fi 2920 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2922$as_echo "$USE_MAINTAINER_MODE" >&6; } 2923 if test $USE_MAINTAINER_MODE = yes; then 2924 MAINTAINER_MODE_TRUE= 2925 MAINTAINER_MODE_FALSE='#' 2926else 2927 MAINTAINER_MODE_TRUE='#' 2928 MAINTAINER_MODE_FALSE= 2929fi 2930 2931 MAINT=$MAINTAINER_MODE_TRUE 2932 2933 2934 2935ac_ext=cpp 2936ac_cpp='$CXXCPP $CPPFLAGS' 2937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2940if test -z "$CXX"; then 2941 if test -n "$CCC"; then 2942 CXX=$CCC 2943 else 2944 if test -n "$ac_tool_prefix"; then 2945 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2946 do 2947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2948set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2950$as_echo_n "checking for $ac_word... " >&6; } 2951if test "${ac_cv_prog_CXX+set}" = set; then : 2952 $as_echo_n "(cached) " >&6 2953else 2954 if test -n "$CXX"; then 2955 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2956else 2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2958for as_dir in $PATH 2959do 2960 IFS=$as_save_IFS 2961 test -z "$as_dir" && as_dir=. 2962 for ac_exec_ext in '' $ac_executable_extensions; do 2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2964 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2966 break 2 2967 fi 2968done 2969 done 2970IFS=$as_save_IFS 2971 2972fi 2973fi 2974CXX=$ac_cv_prog_CXX 2975if test -n "$CXX"; then 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 2977$as_echo "$CXX" >&6; } 2978else 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2980$as_echo "no" >&6; } 2981fi 2982 2983 2984 test -n "$CXX" && break 2985 done 2986fi 2987if test -z "$CXX"; then 2988 ac_ct_CXX=$CXX 2989 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2990do 2991 # Extract the first word of "$ac_prog", so it can be a program name with args. 2992set dummy $ac_prog; ac_word=$2 2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2994$as_echo_n "checking for $ac_word... " >&6; } 2995if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 2996 $as_echo_n "(cached) " >&6 2997else 2998 if test -n "$ac_ct_CXX"; then 2999 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3000else 3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3002for as_dir in $PATH 3003do 3004 IFS=$as_save_IFS 3005 test -z "$as_dir" && as_dir=. 3006 for ac_exec_ext in '' $ac_executable_extensions; do 3007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3008 ac_cv_prog_ac_ct_CXX="$ac_prog" 3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3010 break 2 3011 fi 3012done 3013 done 3014IFS=$as_save_IFS 3015 3016fi 3017fi 3018ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3019if test -n "$ac_ct_CXX"; then 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3021$as_echo "$ac_ct_CXX" >&6; } 3022else 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3024$as_echo "no" >&6; } 3025fi 3026 3027 3028 test -n "$ac_ct_CXX" && break 3029done 3030 3031 if test "x$ac_ct_CXX" = x; then 3032 CXX="g++" 3033 else 3034 case $cross_compiling:$ac_tool_warned in 3035yes:) 3036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3038ac_tool_warned=yes ;; 3039esac 3040 CXX=$ac_ct_CXX 3041 fi 3042fi 3043 3044 fi 3045fi 3046# Provide some information about the compiler. 3047$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3048set X $ac_compile 3049ac_compiler=$2 3050for ac_option in --version -v -V -qversion; do 3051 { { ac_try="$ac_compiler $ac_option >&5" 3052case "(($ac_try" in 3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3054 *) ac_try_echo=$ac_try;; 3055esac 3056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3057$as_echo "$ac_try_echo"; } >&5 3058 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3059 ac_status=$? 3060 if test -s conftest.err; then 3061 sed '10a\ 3062... rest of stderr output deleted ... 3063 10q' conftest.err >conftest.er1 3064 cat conftest.er1 >&5 3065 fi 3066 rm -f conftest.er1 conftest.err 3067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3068 test $ac_status = 0; } 3069done 3070 3071cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3072/* end confdefs.h. */ 3073 3074int 3075main () 3076{ 3077 3078 ; 3079 return 0; 3080} 3081_ACEOF 3082ac_clean_files_save=$ac_clean_files 3083ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3084# Try to create an executable without -o first, disregard a.out. 3085# It will help us diagnose broken compilers, and finding out an intuition 3086# of exeext. 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 3088$as_echo_n "checking whether the C++ compiler works... " >&6; } 3089ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3090 3091# The possible output files: 3092ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3093 3094ac_rmfiles= 3095for ac_file in $ac_files 3096do 3097 case $ac_file in 3098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3099 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3100 esac 3101done 3102rm -f $ac_rmfiles 3103 3104if { { ac_try="$ac_link_default" 3105case "(($ac_try" in 3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3107 *) ac_try_echo=$ac_try;; 3108esac 3109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3110$as_echo "$ac_try_echo"; } >&5 3111 (eval "$ac_link_default") 2>&5 3112 ac_status=$? 3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3114 test $ac_status = 0; }; then : 3115 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3116# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3117# in a Makefile. We should not override ac_cv_exeext if it was cached, 3118# so that the user can short-circuit this test for compilers unknown to 3119# Autoconf. 3120for ac_file in $ac_files '' 3121do 3122 test -f "$ac_file" || continue 3123 case $ac_file in 3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3125 ;; 3126 [ab].out ) 3127 # We found the default executable, but exeext='' is most 3128 # certainly right. 3129 break;; 3130 *.* ) 3131 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3132 then :; else 3133 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3134 fi 3135 # We set ac_cv_exeext here because the later test for it is not 3136 # safe: cross compilers may not add the suffix if given an `-o' 3137 # argument, so we may need to know it at that point already. 3138 # Even if this section looks crufty: it has the advantage of 3139 # actually working. 3140 break;; 3141 * ) 3142 break;; 3143 esac 3144done 3145test "$ac_cv_exeext" = no && ac_cv_exeext= 3146 3147else 3148 ac_file='' 3149fi 3150if test -z "$ac_file"; then : 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3152$as_echo "no" >&6; } 3153$as_echo "$as_me: failed program was:" >&5 3154sed 's/^/| /' conftest.$ac_ext >&5 3155 3156{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3158as_fn_error 77 "C++ compiler cannot create executables 3159See \`config.log' for more details" "$LINENO" 5 ; } 3160else 3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3162$as_echo "yes" >&6; } 3163fi 3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 3165$as_echo_n "checking for C++ compiler default output file name... " >&6; } 3166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3167$as_echo "$ac_file" >&6; } 3168ac_exeext=$ac_cv_exeext 3169 3170rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3171ac_clean_files=$ac_clean_files_save 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3173$as_echo_n "checking for suffix of executables... " >&6; } 3174if { { ac_try="$ac_link" 3175case "(($ac_try" in 3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3177 *) ac_try_echo=$ac_try;; 3178esac 3179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3180$as_echo "$ac_try_echo"; } >&5 3181 (eval "$ac_link") 2>&5 3182 ac_status=$? 3183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3184 test $ac_status = 0; }; then : 3185 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3186# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3187# work properly (i.e., refer to `conftest.exe'), while it won't with 3188# `rm'. 3189for ac_file in conftest.exe conftest conftest.*; do 3190 test -f "$ac_file" || continue 3191 case $ac_file in 3192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3193 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3194 break;; 3195 * ) break;; 3196 esac 3197done 3198else 3199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3201as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3202See \`config.log' for more details" "$LINENO" 5 ; } 3203fi 3204rm -f conftest conftest$ac_cv_exeext 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3206$as_echo "$ac_cv_exeext" >&6; } 3207 3208rm -f conftest.$ac_ext 3209EXEEXT=$ac_cv_exeext 3210ac_exeext=$EXEEXT 3211cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3212/* end confdefs.h. */ 3213#include <stdio.h> 3214int 3215main () 3216{ 3217FILE *f = fopen ("conftest.out", "w"); 3218 return ferror (f) || fclose (f) != 0; 3219 3220 ; 3221 return 0; 3222} 3223_ACEOF 3224ac_clean_files="$ac_clean_files conftest.out" 3225# Check that the compiler produces executables we can run. If not, either 3226# the compiler is broken, or we cross compile. 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3228$as_echo_n "checking whether we are cross compiling... " >&6; } 3229if test "$cross_compiling" != yes; then 3230 { { ac_try="$ac_link" 3231case "(($ac_try" in 3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3233 *) ac_try_echo=$ac_try;; 3234esac 3235eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3236$as_echo "$ac_try_echo"; } >&5 3237 (eval "$ac_link") 2>&5 3238 ac_status=$? 3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3240 test $ac_status = 0; } 3241 if { ac_try='./conftest$ac_cv_exeext' 3242 { { case "(($ac_try" in 3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3244 *) ac_try_echo=$ac_try;; 3245esac 3246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3247$as_echo "$ac_try_echo"; } >&5 3248 (eval "$ac_try") 2>&5 3249 ac_status=$? 3250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3251 test $ac_status = 0; }; }; then 3252 cross_compiling=no 3253 else 3254 if test "$cross_compiling" = maybe; then 3255 cross_compiling=yes 3256 else 3257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3259as_fn_error $? "cannot run C++ compiled programs. 3260If you meant to cross compile, use \`--host'. 3261See \`config.log' for more details" "$LINENO" 5 ; } 3262 fi 3263 fi 3264fi 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3266$as_echo "$cross_compiling" >&6; } 3267 3268rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3269ac_clean_files=$ac_clean_files_save 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3271$as_echo_n "checking for suffix of object files... " >&6; } 3272if test "${ac_cv_objext+set}" = set; then : 3273 $as_echo_n "(cached) " >&6 3274else 3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3276/* end confdefs.h. */ 3277 3278int 3279main () 3280{ 3281 3282 ; 3283 return 0; 3284} 3285_ACEOF 3286rm -f conftest.o conftest.obj 3287if { { ac_try="$ac_compile" 3288case "(($ac_try" in 3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3290 *) ac_try_echo=$ac_try;; 3291esac 3292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3293$as_echo "$ac_try_echo"; } >&5 3294 (eval "$ac_compile") 2>&5 3295 ac_status=$? 3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3297 test $ac_status = 0; }; then : 3298 for ac_file in conftest.o conftest.obj conftest.*; do 3299 test -f "$ac_file" || continue; 3300 case $ac_file in 3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3302 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3303 break;; 3304 esac 3305done 3306else 3307 $as_echo "$as_me: failed program was:" >&5 3308sed 's/^/| /' conftest.$ac_ext >&5 3309 3310{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3312as_fn_error $? "cannot compute suffix of object files: cannot compile 3313See \`config.log' for more details" "$LINENO" 5 ; } 3314fi 3315rm -f conftest.$ac_cv_objext conftest.$ac_ext 3316fi 3317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3318$as_echo "$ac_cv_objext" >&6; } 3319OBJEXT=$ac_cv_objext 3320ac_objext=$OBJEXT 3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3322$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3323if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 3324 $as_echo_n "(cached) " >&6 3325else 3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3327/* end confdefs.h. */ 3328 3329int 3330main () 3331{ 3332#ifndef __GNUC__ 3333 choke me 3334#endif 3335 3336 ; 3337 return 0; 3338} 3339_ACEOF 3340if ac_fn_cxx_try_compile "$LINENO"; then : 3341 ac_compiler_gnu=yes 3342else 3343 ac_compiler_gnu=no 3344fi 3345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3346ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3347 3348fi 3349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3350$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3351if test $ac_compiler_gnu = yes; then 3352 GXX=yes 3353else 3354 GXX= 3355fi 3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3357$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3358if test "${ac_cv_prog_cxx_g+set}" = set; then : 3359 $as_echo_n "(cached) " >&6 3360else 3361 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3362 ac_cxx_werror_flag=yes 3363 ac_cv_prog_cxx_g=no 3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3365/* end confdefs.h. */ 3366 3367int 3368main () 3369{ 3370 3371 ; 3372 return 0; 3373} 3374_ACEOF 3375if ac_fn_cxx_try_compile "$LINENO"; then : 3376 ac_cv_prog_cxx_g=yes 3377else 3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3379/* end confdefs.h. */ 3380 3381int 3382main () 3383{ 3384 3385 ; 3386 return 0; 3387} 3388_ACEOF 3389if ac_fn_cxx_try_compile "$LINENO"; then : 3390 3391else 3392 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3394/* end confdefs.h. */ 3395 3396int 3397main () 3398{ 3399 3400 ; 3401 return 0; 3402} 3403_ACEOF 3404if ac_fn_cxx_try_compile "$LINENO"; then : 3405 ac_cv_prog_cxx_g=yes 3406fi 3407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3408fi 3409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3410fi 3411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3412 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3413fi 3414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3415$as_echo "$ac_cv_prog_cxx_g" >&6; } 3416if test "$ac_test_CXXFLAGS" = set; then 3417elif test $ac_cv_prog_cxx_g = yes; then 3418 if test "$GXX" = yes; then 3419 else 3420 fi 3421else 3422 if test "$GXX" = yes; then 3423 else 3424 fi 3425fi 3426ac_ext=c 3427ac_cpp='$CPP $CPPFLAGS' 3428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3430ac_compiler_gnu=$ac_cv_c_compiler_gnu 3431DEPDIR="${am__leading_dot}deps" 3432 3433ac_config_commands="$ac_config_commands depfiles" 3434 3435 3436am_make=${MAKE-make} 3437cat > confinc << 'END' 3438am__doit: 3439 @echo this is the am__doit target 3440.PHONY: am__doit 3441END 3442# If we don't find an include directive, just comment out the code. 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3444$as_echo_n "checking for style of include used by $am_make... " >&6; } 3445am__include="#" 3446am__quote= 3447_am_result=none 3448# First try GNU make style include. 3449echo "include confinc" > confmf 3450# Ignore all kinds of additional output from `make'. 3451case `$am_make -s -f confmf 2> /dev/null` in #( 3452*the\ am__doit\ target*) 3453 am__include=include 3454 am__quote= 3455 _am_result=GNU 3456 ;; 3457esac 3458# Now try BSD make style include. 3459if test "$am__include" = "#"; then 3460 echo '.include "confinc"' > confmf 3461 case `$am_make -s -f confmf 2> /dev/null` in #( 3462 *the\ am__doit\ target*) 3463 am__include=.include 3464 am__quote="\"" 3465 _am_result=BSD 3466 ;; 3467 esac 3468fi 3469 3470 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3472$as_echo "$_am_result" >&6; } 3473rm -f confinc confmf 3474 3475# Check whether --enable-dependency-tracking was given. 3476if test "${enable_dependency_tracking+set}" = set; then : 3477 enableval=$enable_dependency_tracking; 3478fi 3479 3480if test "x$enable_dependency_tracking" != xno; then 3481 am_depcomp="$ac_aux_dir/depcomp" 3482 AMDEPBACKSLASH='\' 3483fi 3484 if test "x$enable_dependency_tracking" != xno; then 3485 AMDEP_TRUE= 3486 AMDEP_FALSE='#' 3487else 3488 AMDEP_TRUE='#' 3489 AMDEP_FALSE= 3490fi 3491 3492 3493 3494depcc="$CXX" am_compiler_list= 3495 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3497$as_echo_n "checking dependency style of $depcc... " >&6; } 3498if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 3499 $as_echo_n "(cached) " >&6 3500else 3501 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3502 # We make a subdir and do the tests there. Otherwise we can end up 3503 # making bogus files that we don't know about and never remove. For 3504 # instance it was reported that on HP-UX the gcc test will end up 3505 # making a dummy file named `D' -- because `-MD' means `put the output 3506 # in D'. 3507 mkdir conftest.dir 3508 # Copy depcomp to subdir because otherwise we won't find it if we're 3509 # using a relative directory. 3510 cp "$am_depcomp" conftest.dir 3511 cd conftest.dir 3512 # We will build objects and dependencies in a subdirectory because 3513 # it helps to detect inapplicable dependency modes. For instance 3514 # both Tru64's cc and ICC support -MD to output dependencies as a 3515 # side effect of compilation, but ICC will put the dependencies in 3516 # the current directory while Tru64 will put them in the object 3517 # directory. 3518 mkdir sub 3519 3520 am_cv_CXX_dependencies_compiler_type=none 3521 if test "$am_compiler_list" = ""; then 3522 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3523 fi 3524 am__universal=false 3525 case " $depcc " in #( 3526 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3527 esac 3528 3529 for depmode in $am_compiler_list; do 3530 # Setup a source with many dependencies, because some compilers 3531 # like to wrap large dependency lists on column 80 (with \), and 3532 # we should not choose a depcomp mode which is confused by this. 3533 # 3534 # We need to recreate these files for each test, as the compiler may 3535 # overwrite some of them when testing with obscure command lines. 3536 # This happens at least with the AIX C compiler. 3537 : > sub/conftest.c 3538 for i in 1 2 3 4 5 6; do 3539 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3540 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3541 # Solaris 8's {/usr,}/bin/sh. 3542 touch sub/conftst$i.h 3543 done 3544 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3545 3546 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3547 # mode. It turns out that the SunPro C++ compiler does not properly 3548 # handle `-M -o', and we need to detect this. Also, some Intel 3549 # versions had trouble with output in subdirs 3550 am__obj=sub/conftest.${OBJEXT-o} 3551 am__minus_obj="-o $am__obj" 3552 case $depmode in 3553 gcc) 3554 # This depmode causes a compiler race in universal mode. 3555 test "$am__universal" = false || continue 3556 ;; 3557 nosideeffect) 3558 # after this tag, mechanisms are not by side-effect, so they'll 3559 # only be used when explicitly requested 3560 if test "x$enable_dependency_tracking" = xyes; then 3561 continue 3562 else 3563 break 3564 fi 3565 ;; 3566 msvisualcpp | msvcmsys) 3567 # This compiler won't grok `-c -o', but also, the minuso test has 3568 # not run yet. These depmodes are late enough in the game, and 3569 # so weak that their functioning should not be impacted. 3570 am__obj=conftest.${OBJEXT-o} 3571 am__minus_obj= 3572 ;; 3573 none) break ;; 3574 esac 3575 if depmode=$depmode \ 3576 source=sub/conftest.c object=$am__obj \ 3577 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3578 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3579 >/dev/null 2>conftest.err && 3580 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3581 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3582 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3583 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3584 # icc doesn't choke on unknown options, it will just issue warnings 3585 # or remarks (even with -Werror). So we grep stderr for any message 3586 # that says an option was ignored or not supported. 3587 # When given -MP, icc 7.0 and 7.1 complain thusly: 3588 # icc: Command line warning: ignoring option '-M'; no argument required 3589 # The diagnosis changed in icc 8.0: 3590 # icc: Command line remark: option '-MP' not supported 3591 if (grep 'ignoring option' conftest.err || 3592 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3593 am_cv_CXX_dependencies_compiler_type=$depmode 3594 break 3595 fi 3596 fi 3597 done 3598 3599 cd .. 3600 rm -rf conftest.dir 3601else 3602 am_cv_CXX_dependencies_compiler_type=none 3603fi 3604 3605fi 3606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 3607$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 3608CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3609 3610 if 3611 test "x$enable_dependency_tracking" != xno \ 3612 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3613 am__fastdepCXX_TRUE= 3614 am__fastdepCXX_FALSE='#' 3615else 3616 am__fastdepCXX_TRUE='#' 3617 am__fastdepCXX_FALSE= 3618fi 3619 3620 3621ac_ext=c 3622ac_cpp='$CPP $CPPFLAGS' 3623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3625ac_compiler_gnu=$ac_cv_c_compiler_gnu 3626if test -n "$ac_tool_prefix"; then 3627 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3628set dummy ${ac_tool_prefix}gcc; ac_word=$2 3629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3630$as_echo_n "checking for $ac_word... " >&6; } 3631if test "${ac_cv_prog_CC+set}" = set; then : 3632 $as_echo_n "(cached) " >&6 3633else 3634 if test -n "$CC"; then 3635 ac_cv_prog_CC="$CC" # Let the user override the test. 3636else 3637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3638for as_dir in $PATH 3639do 3640 IFS=$as_save_IFS 3641 test -z "$as_dir" && as_dir=. 3642 for ac_exec_ext in '' $ac_executable_extensions; do 3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3644 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3646 break 2 3647 fi 3648done 3649 done 3650IFS=$as_save_IFS 3651 3652fi 3653fi 3654CC=$ac_cv_prog_CC 3655if test -n "$CC"; then 3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3657$as_echo "$CC" >&6; } 3658else 3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3660$as_echo "no" >&6; } 3661fi 3662 3663 3664fi 3665if test -z "$ac_cv_prog_CC"; then 3666 ac_ct_CC=$CC 3667 # Extract the first word of "gcc", so it can be a program name with args. 3668set dummy gcc; ac_word=$2 3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3670$as_echo_n "checking for $ac_word... " >&6; } 3671if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3672 $as_echo_n "(cached) " >&6 3673else 3674 if test -n "$ac_ct_CC"; then 3675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3676else 3677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3678for as_dir in $PATH 3679do 3680 IFS=$as_save_IFS 3681 test -z "$as_dir" && as_dir=. 3682 for ac_exec_ext in '' $ac_executable_extensions; do 3683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3684 ac_cv_prog_ac_ct_CC="gcc" 3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3686 break 2 3687 fi 3688done 3689 done 3690IFS=$as_save_IFS 3691 3692fi 3693fi 3694ac_ct_CC=$ac_cv_prog_ac_ct_CC 3695if test -n "$ac_ct_CC"; then 3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3697$as_echo "$ac_ct_CC" >&6; } 3698else 3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3700$as_echo "no" >&6; } 3701fi 3702 3703 if test "x$ac_ct_CC" = x; then 3704 CC="" 3705 else 3706 case $cross_compiling:$ac_tool_warned in 3707yes:) 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3710ac_tool_warned=yes ;; 3711esac 3712 CC=$ac_ct_CC 3713 fi 3714else 3715 CC="$ac_cv_prog_CC" 3716fi 3717 3718if test -z "$CC"; then 3719 if test -n "$ac_tool_prefix"; then 3720 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3721set dummy ${ac_tool_prefix}cc; ac_word=$2 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3723$as_echo_n "checking for $ac_word... " >&6; } 3724if test "${ac_cv_prog_CC+set}" = set; then : 3725 $as_echo_n "(cached) " >&6 3726else 3727 if test -n "$CC"; then 3728 ac_cv_prog_CC="$CC" # Let the user override the test. 3729else 3730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3731for as_dir in $PATH 3732do 3733 IFS=$as_save_IFS 3734 test -z "$as_dir" && as_dir=. 3735 for ac_exec_ext in '' $ac_executable_extensions; do 3736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3737 ac_cv_prog_CC="${ac_tool_prefix}cc" 3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3739 break 2 3740 fi 3741done 3742 done 3743IFS=$as_save_IFS 3744 3745fi 3746fi 3747CC=$ac_cv_prog_CC 3748if test -n "$CC"; then 3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3750$as_echo "$CC" >&6; } 3751else 3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3753$as_echo "no" >&6; } 3754fi 3755 3756 3757 fi 3758fi 3759if test -z "$CC"; then 3760 # Extract the first word of "cc", so it can be a program name with args. 3761set dummy cc; ac_word=$2 3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3763$as_echo_n "checking for $ac_word... " >&6; } 3764if test "${ac_cv_prog_CC+set}" = set; then : 3765 $as_echo_n "(cached) " >&6 3766else 3767 if test -n "$CC"; then 3768 ac_cv_prog_CC="$CC" # Let the user override the test. 3769else 3770 ac_prog_rejected=no 3771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3772for as_dir in $PATH 3773do 3774 IFS=$as_save_IFS 3775 test -z "$as_dir" && as_dir=. 3776 for ac_exec_ext in '' $ac_executable_extensions; do 3777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3778 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3779 ac_prog_rejected=yes 3780 continue 3781 fi 3782 ac_cv_prog_CC="cc" 3783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3784 break 2 3785 fi 3786done 3787 done 3788IFS=$as_save_IFS 3789 3790if test $ac_prog_rejected = yes; then 3791 # We found a bogon in the path, so make sure we never use it. 3792 set dummy $ac_cv_prog_CC 3793 shift 3794 if test $# != 0; then 3795 # We chose a different compiler from the bogus one. 3796 # However, it has the same basename, so the bogon will be chosen 3797 # first if we set CC to just the basename; use the full file name. 3798 shift 3799 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3800 fi 3801fi 3802fi 3803fi 3804CC=$ac_cv_prog_CC 3805if test -n "$CC"; then 3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3807$as_echo "$CC" >&6; } 3808else 3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3810$as_echo "no" >&6; } 3811fi 3812 3813 3814fi 3815if test -z "$CC"; then 3816 if test -n "$ac_tool_prefix"; then 3817 for ac_prog in cl.exe 3818 do 3819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3820set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3822$as_echo_n "checking for $ac_word... " >&6; } 3823if test "${ac_cv_prog_CC+set}" = set; then : 3824 $as_echo_n "(cached) " >&6 3825else 3826 if test -n "$CC"; then 3827 ac_cv_prog_CC="$CC" # Let the user override the test. 3828else 3829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3830for as_dir in $PATH 3831do 3832 IFS=$as_save_IFS 3833 test -z "$as_dir" && as_dir=. 3834 for ac_exec_ext in '' $ac_executable_extensions; do 3835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3836 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3838 break 2 3839 fi 3840done 3841 done 3842IFS=$as_save_IFS 3843 3844fi 3845fi 3846CC=$ac_cv_prog_CC 3847if test -n "$CC"; then 3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3849$as_echo "$CC" >&6; } 3850else 3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3852$as_echo "no" >&6; } 3853fi 3854 3855 3856 test -n "$CC" && break 3857 done 3858fi 3859if test -z "$CC"; then 3860 ac_ct_CC=$CC 3861 for ac_prog in cl.exe 3862do 3863 # Extract the first word of "$ac_prog", so it can be a program name with args. 3864set dummy $ac_prog; ac_word=$2 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3866$as_echo_n "checking for $ac_word... " >&6; } 3867if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3868 $as_echo_n "(cached) " >&6 3869else 3870 if test -n "$ac_ct_CC"; then 3871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3872else 3873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3874for as_dir in $PATH 3875do 3876 IFS=$as_save_IFS 3877 test -z "$as_dir" && as_dir=. 3878 for ac_exec_ext in '' $ac_executable_extensions; do 3879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3880 ac_cv_prog_ac_ct_CC="$ac_prog" 3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3882 break 2 3883 fi 3884done 3885 done 3886IFS=$as_save_IFS 3887 3888fi 3889fi 3890ac_ct_CC=$ac_cv_prog_ac_ct_CC 3891if test -n "$ac_ct_CC"; then 3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3893$as_echo "$ac_ct_CC" >&6; } 3894else 3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3896$as_echo "no" >&6; } 3897fi 3898 3899 3900 test -n "$ac_ct_CC" && break 3901done 3902 3903 if test "x$ac_ct_CC" = x; then 3904 CC="" 3905 else 3906 case $cross_compiling:$ac_tool_warned in 3907yes:) 3908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3910ac_tool_warned=yes ;; 3911esac 3912 CC=$ac_ct_CC 3913 fi 3914fi 3915 3916fi 3917 3918 3919test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3921as_fn_error $? "no acceptable C compiler found in \$PATH 3922See \`config.log' for more details" "$LINENO" 5 ; } 3923 3924# Provide some information about the compiler. 3925$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3926set X $ac_compile 3927ac_compiler=$2 3928for ac_option in --version -v -V -qversion; do 3929 { { ac_try="$ac_compiler $ac_option >&5" 3930case "(($ac_try" in 3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3932 *) ac_try_echo=$ac_try;; 3933esac 3934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3935$as_echo "$ac_try_echo"; } >&5 3936 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3937 ac_status=$? 3938 if test -s conftest.err; then 3939 sed '10a\ 3940... rest of stderr output deleted ... 3941 10q' conftest.err >conftest.er1 3942 cat conftest.er1 >&5 3943 fi 3944 rm -f conftest.er1 conftest.err 3945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3946 test $ac_status = 0; } 3947done 3948 3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3950$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3951if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3952 $as_echo_n "(cached) " >&6 3953else 3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3955/* end confdefs.h. */ 3956 3957int 3958main () 3959{ 3960#ifndef __GNUC__ 3961 choke me 3962#endif 3963 3964 ; 3965 return 0; 3966} 3967_ACEOF 3968if ac_fn_c_try_compile "$LINENO"; then : 3969 ac_compiler_gnu=yes 3970else 3971 ac_compiler_gnu=no 3972fi 3973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3974ac_cv_c_compiler_gnu=$ac_compiler_gnu 3975 3976fi 3977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3978$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3979if test $ac_compiler_gnu = yes; then 3980 GCC=yes 3981else 3982 GCC= 3983fi 3984ac_test_CFLAGS=${CFLAGS+set} 3985ac_save_CFLAGS=$CFLAGS 3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3987$as_echo_n "checking whether $CC accepts -g... " >&6; } 3988if test "${ac_cv_prog_cc_g+set}" = set; then : 3989 $as_echo_n "(cached) " >&6 3990else 3991 ac_save_c_werror_flag=$ac_c_werror_flag 3992 ac_c_werror_flag=yes 3993 ac_cv_prog_cc_g=no 3994 CFLAGS="-g" 3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3996/* end confdefs.h. */ 3997 3998int 3999main () 4000{ 4001 4002 ; 4003 return 0; 4004} 4005_ACEOF 4006if ac_fn_c_try_compile "$LINENO"; then : 4007 ac_cv_prog_cc_g=yes 4008else 4009 CFLAGS="" 4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4011/* end confdefs.h. */ 4012 4013int 4014main () 4015{ 4016 4017 ; 4018 return 0; 4019} 4020_ACEOF 4021if ac_fn_c_try_compile "$LINENO"; then : 4022 4023else 4024 ac_c_werror_flag=$ac_save_c_werror_flag 4025 CFLAGS="-g" 4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4027/* end confdefs.h. */ 4028 4029int 4030main () 4031{ 4032 4033 ; 4034 return 0; 4035} 4036_ACEOF 4037if ac_fn_c_try_compile "$LINENO"; then : 4038 ac_cv_prog_cc_g=yes 4039fi 4040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4041fi 4042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4043fi 4044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4045 ac_c_werror_flag=$ac_save_c_werror_flag 4046fi 4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4048$as_echo "$ac_cv_prog_cc_g" >&6; } 4049if test "$ac_test_CFLAGS" = set; then 4050 CFLAGS=$ac_save_CFLAGS 4051elif test $ac_cv_prog_cc_g = yes; then 4052 if test "$GCC" = yes; then 4053 CFLAGS="-g -O2" 4054 else 4055 CFLAGS="-g" 4056 fi 4057else 4058 if test "$GCC" = yes; then 4059 CFLAGS="-O2" 4060 else 4061 CFLAGS= 4062 fi 4063fi 4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4065$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4066if test "${ac_cv_prog_cc_c89+set}" = set; then : 4067 $as_echo_n "(cached) " >&6 4068else 4069 ac_cv_prog_cc_c89=no 4070ac_save_CC=$CC 4071cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4072/* end confdefs.h. */ 4073#include <stdarg.h> 4074#include <stdio.h> 4075#include <sys/types.h> 4076#include <sys/stat.h> 4077/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4078struct buf { int x; }; 4079FILE * (*rcsopen) (struct buf *, struct stat *, int); 4080static char *e (p, i) 4081 char **p; 4082 int i; 4083{ 4084 return p[i]; 4085} 4086static char *f (char * (*g) (char **, int), char **p, ...) 4087{ 4088 char *s; 4089 va_list v; 4090 va_start (v,p); 4091 s = g (p, va_arg (v,int)); 4092 va_end (v); 4093 return s; 4094} 4095 4096/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4097 function prototypes and stuff, but not '\xHH' hex character constants. 4098 These don't provoke an error unfortunately, instead are silently treated 4099 as 'x'. The following induces an error, until -std is added to get 4100 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4101 array size at least. It's necessary to write '\x00'==0 to get something 4102 that's true only with -std. */ 4103int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4104 4105/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4106 inside strings and character constants. */ 4107#define FOO(x) 'x' 4108int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4109 4110int test (int i, double x); 4111struct s1 {int (*f) (int a);}; 4112struct s2 {int (*f) (double a);}; 4113int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4114int argc; 4115char **argv; 4116int 4117main () 4118{ 4119return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4120 ; 4121 return 0; 4122} 4123_ACEOF 4124for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4125 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4126do 4127 CC="$ac_save_CC $ac_arg" 4128 if ac_fn_c_try_compile "$LINENO"; then : 4129 ac_cv_prog_cc_c89=$ac_arg 4130fi 4131rm -f core conftest.err conftest.$ac_objext 4132 test "x$ac_cv_prog_cc_c89" != "xno" && break 4133done 4134rm -f conftest.$ac_ext 4135CC=$ac_save_CC 4136 4137fi 4138# AC_CACHE_VAL 4139case "x$ac_cv_prog_cc_c89" in 4140 x) 4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4142$as_echo "none needed" >&6; } ;; 4143 xno) 4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4145$as_echo "unsupported" >&6; } ;; 4146 *) 4147 CC="$CC $ac_cv_prog_cc_c89" 4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4149$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4150esac 4151if test "x$ac_cv_prog_cc_c89" != xno; then : 4152 4153fi 4154 4155ac_ext=c 4156ac_cpp='$CPP $CPPFLAGS' 4157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4159ac_compiler_gnu=$ac_cv_c_compiler_gnu 4160 4161depcc="$CC" am_compiler_list= 4162 4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4164$as_echo_n "checking dependency style of $depcc... " >&6; } 4165if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4166 $as_echo_n "(cached) " >&6 4167else 4168 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4169 # We make a subdir and do the tests there. Otherwise we can end up 4170 # making bogus files that we don't know about and never remove. For 4171 # instance it was reported that on HP-UX the gcc test will end up 4172 # making a dummy file named `D' -- because `-MD' means `put the output 4173 # in D'. 4174 mkdir conftest.dir 4175 # Copy depcomp to subdir because otherwise we won't find it if we're 4176 # using a relative directory. 4177 cp "$am_depcomp" conftest.dir 4178 cd conftest.dir 4179 # We will build objects and dependencies in a subdirectory because 4180 # it helps to detect inapplicable dependency modes. For instance 4181 # both Tru64's cc and ICC support -MD to output dependencies as a 4182 # side effect of compilation, but ICC will put the dependencies in 4183 # the current directory while Tru64 will put them in the object 4184 # directory. 4185 mkdir sub 4186 4187 am_cv_CC_dependencies_compiler_type=none 4188 if test "$am_compiler_list" = ""; then 4189 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4190 fi 4191 am__universal=false 4192 case " $depcc " in #( 4193 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4194 esac 4195 4196 for depmode in $am_compiler_list; do 4197 # Setup a source with many dependencies, because some compilers 4198 # like to wrap large dependency lists on column 80 (with \), and 4199 # we should not choose a depcomp mode which is confused by this. 4200 # 4201 # We need to recreate these files for each test, as the compiler may 4202 # overwrite some of them when testing with obscure command lines. 4203 # This happens at least with the AIX C compiler. 4204 : > sub/conftest.c 4205 for i in 1 2 3 4 5 6; do 4206 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4207 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4208 # Solaris 8's {/usr,}/bin/sh. 4209 touch sub/conftst$i.h 4210 done 4211 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4212 4213 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4214 # mode. It turns out that the SunPro C++ compiler does not properly 4215 # handle `-M -o', and we need to detect this. Also, some Intel 4216 # versions had trouble with output in subdirs 4217 am__obj=sub/conftest.${OBJEXT-o} 4218 am__minus_obj="-o $am__obj" 4219 case $depmode in 4220 gcc) 4221 # This depmode causes a compiler race in universal mode. 4222 test "$am__universal" = false || continue 4223 ;; 4224 nosideeffect) 4225 # after this tag, mechanisms are not by side-effect, so they'll 4226 # only be used when explicitly requested 4227 if test "x$enable_dependency_tracking" = xyes; then 4228 continue 4229 else 4230 break 4231 fi 4232 ;; 4233 msvisualcpp | msvcmsys) 4234 # This compiler won't grok `-c -o', but also, the minuso test has 4235 # not run yet. These depmodes are late enough in the game, and 4236 # so weak that their functioning should not be impacted. 4237 am__obj=conftest.${OBJEXT-o} 4238 am__minus_obj= 4239 ;; 4240 none) break ;; 4241 esac 4242 if depmode=$depmode \ 4243 source=sub/conftest.c object=$am__obj \ 4244 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4245 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4246 >/dev/null 2>conftest.err && 4247 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4248 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4249 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4250 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4251 # icc doesn't choke on unknown options, it will just issue warnings 4252 # or remarks (even with -Werror). So we grep stderr for any message 4253 # that says an option was ignored or not supported. 4254 # When given -MP, icc 7.0 and 7.1 complain thusly: 4255 # icc: Command line warning: ignoring option '-M'; no argument required 4256 # The diagnosis changed in icc 8.0: 4257 # icc: Command line remark: option '-MP' not supported 4258 if (grep 'ignoring option' conftest.err || 4259 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4260 am_cv_CC_dependencies_compiler_type=$depmode 4261 break 4262 fi 4263 fi 4264 done 4265 4266 cd .. 4267 rm -rf conftest.dir 4268else 4269 am_cv_CC_dependencies_compiler_type=none 4270fi 4271 4272fi 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4274$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4275CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4276 4277 if 4278 test "x$enable_dependency_tracking" != xno \ 4279 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4280 am__fastdepCC_TRUE= 4281 am__fastdepCC_FALSE='#' 4282else 4283 am__fastdepCC_TRUE='#' 4284 am__fastdepCC_FALSE= 4285fi 4286 4287 4288 4289 4290ac_ext=c 4291ac_cpp='$CPP $CPPFLAGS' 4292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4294ac_compiler_gnu=$ac_cv_c_compiler_gnu 4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4296$as_echo_n "checking how to run the C preprocessor... " >&6; } 4297# On Suns, sometimes $CPP names a directory. 4298if test -n "$CPP" && test -d "$CPP"; then 4299 CPP= 4300fi 4301if test -z "$CPP"; then 4302 if test "${ac_cv_prog_CPP+set}" = set; then : 4303 $as_echo_n "(cached) " >&6 4304else 4305 # Double quotes because CPP needs to be expanded 4306 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4307 do 4308 ac_preproc_ok=false 4309for ac_c_preproc_warn_flag in '' yes 4310do 4311 # Use a header file that comes with gcc, so configuring glibc 4312 # with a fresh cross-compiler works. 4313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4314 # <limits.h> exists even on freestanding compilers. 4315 # On the NeXT, cc -E runs the code through the compiler's parser, 4316 # not just through cpp. "Syntax error" is here to catch this case. 4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4318/* end confdefs.h. */ 4319#ifdef __STDC__ 4320# include <limits.h> 4321#else 4322# include <assert.h> 4323#endif 4324 Syntax error 4325_ACEOF 4326if ac_fn_c_try_cpp "$LINENO"; then : 4327 4328else 4329 # Broken: fails on valid input. 4330continue 4331fi 4332rm -f conftest.err conftest.i conftest.$ac_ext 4333 4334 # OK, works on sane cases. Now check whether nonexistent headers 4335 # can be detected and how. 4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4337/* end confdefs.h. */ 4338#include <ac_nonexistent.h> 4339_ACEOF 4340if ac_fn_c_try_cpp "$LINENO"; then : 4341 # Broken: success on invalid input. 4342continue 4343else 4344 # Passes both tests. 4345ac_preproc_ok=: 4346break 4347fi 4348rm -f conftest.err conftest.i conftest.$ac_ext 4349 4350done 4351# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4352rm -f conftest.i conftest.err conftest.$ac_ext 4353if $ac_preproc_ok; then : 4354 break 4355fi 4356 4357 done 4358 ac_cv_prog_CPP=$CPP 4359 4360fi 4361 CPP=$ac_cv_prog_CPP 4362else 4363 ac_cv_prog_CPP=$CPP 4364fi 4365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4366$as_echo "$CPP" >&6; } 4367ac_preproc_ok=false 4368for ac_c_preproc_warn_flag in '' yes 4369do 4370 # Use a header file that comes with gcc, so configuring glibc 4371 # with a fresh cross-compiler works. 4372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4373 # <limits.h> exists even on freestanding compilers. 4374 # On the NeXT, cc -E runs the code through the compiler's parser, 4375 # not just through cpp. "Syntax error" is here to catch this case. 4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4377/* end confdefs.h. */ 4378#ifdef __STDC__ 4379# include <limits.h> 4380#else 4381# include <assert.h> 4382#endif 4383 Syntax error 4384_ACEOF 4385if ac_fn_c_try_cpp "$LINENO"; then : 4386 4387else 4388 # Broken: fails on valid input. 4389continue 4390fi 4391rm -f conftest.err conftest.i conftest.$ac_ext 4392 4393 # OK, works on sane cases. Now check whether nonexistent headers 4394 # can be detected and how. 4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4396/* end confdefs.h. */ 4397#include <ac_nonexistent.h> 4398_ACEOF 4399if ac_fn_c_try_cpp "$LINENO"; then : 4400 # Broken: success on invalid input. 4401continue 4402else 4403 # Passes both tests. 4404ac_preproc_ok=: 4405break 4406fi 4407rm -f conftest.err conftest.i conftest.$ac_ext 4408 4409done 4410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4411rm -f conftest.i conftest.err conftest.$ac_ext 4412if $ac_preproc_ok; then : 4413 4414else 4415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4417as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4418See \`config.log' for more details" "$LINENO" 5 ; } 4419fi 4420 4421ac_ext=c 4422ac_cpp='$CPP $CPPFLAGS' 4423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4425ac_compiler_gnu=$ac_cv_c_compiler_gnu 4426 4427 4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4429$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4430if test "${ac_cv_path_GREP+set}" = set; then : 4431 $as_echo_n "(cached) " >&6 4432else 4433 if test -z "$GREP"; then 4434 ac_path_GREP_found=false 4435 # Loop through the user's path and test for each of PROGNAME-LIST 4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4437for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4438do 4439 IFS=$as_save_IFS 4440 test -z "$as_dir" && as_dir=. 4441 for ac_prog in grep ggrep; do 4442 for ac_exec_ext in '' $ac_executable_extensions; do 4443 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4444 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4445# Check for GNU ac_path_GREP and select it if it is found. 4446 # Check for GNU $ac_path_GREP 4447case `"$ac_path_GREP" --version 2>&1` in 4448*GNU*) 4449 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4450*) 4451 ac_count=0 4452 $as_echo_n 0123456789 >"conftest.in" 4453 while : 4454 do 4455 cat "conftest.in" "conftest.in" >"conftest.tmp" 4456 mv "conftest.tmp" "conftest.in" 4457 cp "conftest.in" "conftest.nl" 4458 $as_echo 'GREP' >> "conftest.nl" 4459 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4460 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4461 as_fn_arith $ac_count + 1 && ac_count=$as_val 4462 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4463 # Best one so far, save it but keep looking for a better one 4464 ac_cv_path_GREP="$ac_path_GREP" 4465 ac_path_GREP_max=$ac_count 4466 fi 4467 # 10*(2^10) chars as input seems more than enough 4468 test $ac_count -gt 10 && break 4469 done 4470 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4471esac 4472 4473 $ac_path_GREP_found && break 3 4474 done 4475 done 4476 done 4477IFS=$as_save_IFS 4478 if test -z "$ac_cv_path_GREP"; then 4479 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4480 fi 4481else 4482 ac_cv_path_GREP=$GREP 4483fi 4484 4485fi 4486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4487$as_echo "$ac_cv_path_GREP" >&6; } 4488 GREP="$ac_cv_path_GREP" 4489 4490 4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4492$as_echo_n "checking for egrep... " >&6; } 4493if test "${ac_cv_path_EGREP+set}" = set; then : 4494 $as_echo_n "(cached) " >&6 4495else 4496 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4497 then ac_cv_path_EGREP="$GREP -E" 4498 else 4499 if test -z "$EGREP"; then 4500 ac_path_EGREP_found=false 4501 # Loop through the user's path and test for each of PROGNAME-LIST 4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4503for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4504do 4505 IFS=$as_save_IFS 4506 test -z "$as_dir" && as_dir=. 4507 for ac_prog in egrep; do 4508 for ac_exec_ext in '' $ac_executable_extensions; do 4509 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4510 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4511# Check for GNU ac_path_EGREP and select it if it is found. 4512 # Check for GNU $ac_path_EGREP 4513case `"$ac_path_EGREP" --version 2>&1` in 4514*GNU*) 4515 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4516*) 4517 ac_count=0 4518 $as_echo_n 0123456789 >"conftest.in" 4519 while : 4520 do 4521 cat "conftest.in" "conftest.in" >"conftest.tmp" 4522 mv "conftest.tmp" "conftest.in" 4523 cp "conftest.in" "conftest.nl" 4524 $as_echo 'EGREP' >> "conftest.nl" 4525 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4527 as_fn_arith $ac_count + 1 && ac_count=$as_val 4528 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4529 # Best one so far, save it but keep looking for a better one 4530 ac_cv_path_EGREP="$ac_path_EGREP" 4531 ac_path_EGREP_max=$ac_count 4532 fi 4533 # 10*(2^10) chars as input seems more than enough 4534 test $ac_count -gt 10 && break 4535 done 4536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4537esac 4538 4539 $ac_path_EGREP_found && break 3 4540 done 4541 done 4542 done 4543IFS=$as_save_IFS 4544 if test -z "$ac_cv_path_EGREP"; then 4545 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4546 fi 4547else 4548 ac_cv_path_EGREP=$EGREP 4549fi 4550 4551 fi 4552fi 4553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4554$as_echo "$ac_cv_path_EGREP" >&6; } 4555 EGREP="$ac_cv_path_EGREP" 4556 4557 4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4559$as_echo_n "checking for ANSI C header files... " >&6; } 4560if test "${ac_cv_header_stdc+set}" = set; then : 4561 $as_echo_n "(cached) " >&6 4562else 4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4564/* end confdefs.h. */ 4565#include <stdlib.h> 4566#include <stdarg.h> 4567#include <string.h> 4568#include <float.h> 4569 4570int 4571main () 4572{ 4573 4574 ; 4575 return 0; 4576} 4577_ACEOF 4578if ac_fn_c_try_compile "$LINENO"; then : 4579 ac_cv_header_stdc=yes 4580else 4581 ac_cv_header_stdc=no 4582fi 4583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4584 4585if test $ac_cv_header_stdc = yes; then 4586 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4588/* end confdefs.h. */ 4589#include <string.h> 4590 4591_ACEOF 4592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4593 $EGREP "memchr" >/dev/null 2>&1; then : 4594 4595else 4596 ac_cv_header_stdc=no 4597fi 4598rm -f conftest* 4599 4600fi 4601 4602if test $ac_cv_header_stdc = yes; then 4603 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4605/* end confdefs.h. */ 4606#include <stdlib.h> 4607 4608_ACEOF 4609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4610 $EGREP "free" >/dev/null 2>&1; then : 4611 4612else 4613 ac_cv_header_stdc=no 4614fi 4615rm -f conftest* 4616 4617fi 4618 4619if test $ac_cv_header_stdc = yes; then 4620 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4621 if test "$cross_compiling" = yes; then : 4622 : 4623else 4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4625/* end confdefs.h. */ 4626#include <ctype.h> 4627#include <stdlib.h> 4628#if ((' ' & 0x0FF) == 0x020) 4629# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4630# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4631#else 4632# define ISLOWER(c) \ 4633 (('a' <= (c) && (c) <= 'i') \ 4634 || ('j' <= (c) && (c) <= 'r') \ 4635 || ('s' <= (c) && (c) <= 'z')) 4636# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4637#endif 4638 4639#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4640int 4641main () 4642{ 4643 int i; 4644 for (i = 0; i < 256; i++) 4645 if (XOR (islower (i), ISLOWER (i)) 4646 || toupper (i) != TOUPPER (i)) 4647 return 2; 4648 return 0; 4649} 4650_ACEOF 4651if ac_fn_c_try_run "$LINENO"; then : 4652 4653else 4654 ac_cv_header_stdc=no 4655fi 4656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4657 conftest.$ac_objext conftest.beam conftest.$ac_ext 4658fi 4659 4660fi 4661fi 4662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4663$as_echo "$ac_cv_header_stdc" >&6; } 4664if test $ac_cv_header_stdc = yes; then 4665 4666$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4667 4668fi 4669 4670# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4671for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4672 inttypes.h stdint.h unistd.h 4673do : 4674 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4675ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4676" 4677if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4678 cat >>confdefs.h <<_ACEOF 4679#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4680_ACEOF 4681 4682fi 4683 4684done 4685 4686 4687 4688 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4689if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4690 MINIX=yes 4691else 4692 MINIX= 4693fi 4694 4695 4696 if test "$MINIX" = yes; then 4697 4698$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4699 4700 4701$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4702 4703 4704$as_echo "#define _MINIX 1" >>confdefs.h 4705 4706 fi 4707 4708 4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4710$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4711if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4712 $as_echo_n "(cached) " >&6 4713else 4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4715/* end confdefs.h. */ 4716 4717# define __EXTENSIONS__ 1 4718 $ac_includes_default 4719int 4720main () 4721{ 4722 4723 ; 4724 return 0; 4725} 4726_ACEOF 4727if ac_fn_c_try_compile "$LINENO"; then : 4728 ac_cv_safe_to_define___extensions__=yes 4729else 4730 ac_cv_safe_to_define___extensions__=no 4731fi 4732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4733fi 4734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4735$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4736 test $ac_cv_safe_to_define___extensions__ = yes && 4737 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4738 4739 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4740 4741 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4742 4743 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4744 4745 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4746 4747 4748 4749 4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable -O3 compiler optimization" >&5 4751$as_echo_n "checking whether to enable -O3 compiler optimization... " >&6; } 4752optimize_default="yes" 4753# Check whether --enable-optimize was given. 4754if test "${enable_optimize+set}" = set; then : 4755 enableval=$enable_optimize; 4756else 4757 enable_optimize=$optimize_default 4758fi 4759 4760if test "x$enable_optimize" = "xyes"; then 4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4762$as_echo "yes" >&6; } 4763else 4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4765$as_echo "no" >&6; } 4766fi 4767 4768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 4769$as_echo_n "checking whether to enable debugging... " >&6; } 4770debug_default="no" 4771# Check whether --enable-debug was given. 4772if test "${enable_debug+set}" = set; then : 4773 enableval=$enable_debug; 4774else 4775 enable_debug=$debug_default 4776fi 4777 4778if test "x$enable_debug" = "xyes"; then 4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4780$as_echo "yes" >&6; } 4781else 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4783$as_echo "no" >&6; } 4784fi 4785 4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 4787$as_echo_n "checking for X... " >&6; } 4788 4789 4790# Check whether --with-x was given. 4791if test "${with_x+set}" = set; then : 4792 withval=$with_x; 4793fi 4794 4795# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 4796if test "x$with_x" = xno; then 4797 # The user explicitly disabled X. 4798 have_x=disabled 4799else 4800 case $x_includes,$x_libraries in #( 4801 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( 4802 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 4803 $as_echo_n "(cached) " >&6 4804else 4805 # One or both of the vars are not set, and there is no cached value. 4806ac_x_includes=no ac_x_libraries=no 4807rm -f -r conftest.dir 4808if mkdir conftest.dir; then 4809 cd conftest.dir 4810 cat >Imakefile <<'_ACEOF' 4811incroot: 4812 @echo incroot='${INCROOT}' 4813usrlibdir: 4814 @echo usrlibdir='${USRLIBDIR}' 4815libdir: 4816 @echo libdir='${LIBDIR}' 4817_ACEOF 4818 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 4819 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4820 for ac_var in incroot usrlibdir libdir; do 4821 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 4822 done 4823 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 4824 for ac_extension in a so sl dylib la dll; do 4825 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 4826 test -f "$ac_im_libdir/libX11.$ac_extension"; then 4827 ac_im_usrlibdir=$ac_im_libdir; break 4828 fi 4829 done 4830 # Screen out bogus values from the imake configuration. They are 4831 # bogus both because they are the default anyway, and because 4832 # using them would break gcc on systems where it needs fixed includes. 4833 case $ac_im_incroot in 4834 /usr/include) ac_x_includes= ;; 4835 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 4836 esac 4837 case $ac_im_usrlibdir in 4838 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 4839 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 4840 esac 4841 fi 4842 cd .. 4843 rm -f -r conftest.dir 4844fi 4845 4846# Standard set of common directories for X headers. 4847# Check X11 before X11Rn because it is often a symlink to the current release. 4848ac_x_header_dirs=' 4849/usr/X11/include 4850/usr/X11R7/include 4851/usr/X11R6/include 4852/usr/X11R5/include 4853/usr/X11R4/include 4854 4855/usr/include/X11 4856/usr/include/X11R7 4857/usr/include/X11R6 4858/usr/include/X11R5 4859/usr/include/X11R4 4860 4861/usr/local/X11/include 4862/usr/local/X11R7/include 4863/usr/local/X11R6/include 4864/usr/local/X11R5/include 4865/usr/local/X11R4/include 4866 4867/usr/local/include/X11 4868/usr/local/include/X11R7 4869/usr/local/include/X11R6 4870/usr/local/include/X11R5 4871/usr/local/include/X11R4 4872 4873/usr/X386/include 4874/usr/x386/include 4875/usr/XFree86/include/X11 4876 4877/usr/include 4878/usr/local/include 4879/usr/unsupported/include 4880/usr/athena/include 4881/usr/local/x11r5/include 4882/usr/lpp/Xamples/include 4883 4884/usr/openwin/include 4885/usr/openwin/share/include' 4886 4887if test "$ac_x_includes" = no; then 4888 # Guess where to find include files, by looking for Xlib.h. 4889 # First, try using that file with no special directory specified. 4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4891/* end confdefs.h. */ 4892#include <X11/Xlib.h> 4893_ACEOF 4894if ac_fn_c_try_cpp "$LINENO"; then : 4895 # We can compile using X headers with no special include directory. 4896ac_x_includes= 4897else 4898 for ac_dir in $ac_x_header_dirs; do 4899 if test -r "$ac_dir/X11/Xlib.h"; then 4900 ac_x_includes=$ac_dir 4901 break 4902 fi 4903done 4904fi 4905rm -f conftest.err conftest.i conftest.$ac_ext 4906fi # $ac_x_includes = no 4907 4908if test "$ac_x_libraries" = no; then 4909 # Check for the libraries. 4910 # See if we find them without any special options. 4911 # Don't add to $LIBS permanently. 4912 ac_save_LIBS=$LIBS 4913 LIBS="-lX11 $LIBS" 4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4915/* end confdefs.h. */ 4916#include <X11/Xlib.h> 4917int 4918main () 4919{ 4920XrmInitialize () 4921 ; 4922 return 0; 4923} 4924_ACEOF 4925if ac_fn_c_try_link "$LINENO"; then : 4926 LIBS=$ac_save_LIBS 4927# We can link X programs with no special library path. 4928ac_x_libraries= 4929else 4930 LIBS=$ac_save_LIBS 4931for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 4932do 4933 # Don't even attempt the hair of trying to link an X program! 4934 for ac_extension in a so sl dylib la dll; do 4935 if test -r "$ac_dir/libX11.$ac_extension"; then 4936 ac_x_libraries=$ac_dir 4937 break 2 4938 fi 4939 done 4940done 4941fi 4942rm -f core conftest.err conftest.$ac_objext \ 4943 conftest$ac_exeext conftest.$ac_ext 4944fi # $ac_x_libraries = no 4945 4946case $ac_x_includes,$ac_x_libraries in #( 4947 no,* | *,no | *\'*) 4948 # Didn't find X, or a directory has "'" in its name. 4949 ac_cv_have_x="have_x=no";; #( 4950 *) 4951 # Record where we found X for the cache. 4952 ac_cv_have_x="have_x=yes\ 4953 ac_x_includes='$ac_x_includes'\ 4954 ac_x_libraries='$ac_x_libraries'" 4955esac 4956fi 4957;; #( 4958 *) have_x=yes;; 4959 esac 4960 eval "$ac_cv_have_x" 4961fi # $with_x != no 4962 4963if test "$have_x" != yes; then 4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 4965$as_echo "$have_x" >&6; } 4966 no_x=yes 4967else 4968 # If each of the values was on the command line, it overrides each guess. 4969 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 4970 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 4971 # Update the cache value to reflect the command line values. 4972 ac_cv_have_x="have_x=yes\ 4973 ac_x_includes='$x_includes'\ 4974 ac_x_libraries='$x_libraries'" 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 4976$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 4977fi 4978 4979if test "$no_x" = yes; then 4980 # Not all programs may use this symbol, but it does not hurt to define it. 4981 4982$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 4983 4984 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 4985else 4986 if test -n "$x_includes"; then 4987 X_CFLAGS="$X_CFLAGS -I$x_includes" 4988 fi 4989 4990 # It would also be nice to do this for all -L options, not just this one. 4991 if test -n "$x_libraries"; then 4992 X_LIBS="$X_LIBS -L$x_libraries" 4993 # For Solaris; some versions of Sun CC require a space after -R and 4994 # others require no space. Words are not sufficient . . . . 4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 4996$as_echo_n "checking whether -R must be followed by a space... " >&6; } 4997 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 4998 ac_xsave_c_werror_flag=$ac_c_werror_flag 4999 ac_c_werror_flag=yes 5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5001/* end confdefs.h. */ 5002 5003int 5004main () 5005{ 5006 5007 ; 5008 return 0; 5009} 5010_ACEOF 5011if ac_fn_c_try_link "$LINENO"; then : 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5013$as_echo "no" >&6; } 5014 X_LIBS="$X_LIBS -R$x_libraries" 5015else 5016 LIBS="$ac_xsave_LIBS -R $x_libraries" 5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5018/* end confdefs.h. */ 5019 5020int 5021main () 5022{ 5023 5024 ; 5025 return 0; 5026} 5027_ACEOF 5028if ac_fn_c_try_link "$LINENO"; then : 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5030$as_echo "yes" >&6; } 5031 X_LIBS="$X_LIBS -R $x_libraries" 5032else 5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 5034$as_echo "neither works" >&6; } 5035fi 5036rm -f core conftest.err conftest.$ac_objext \ 5037 conftest$ac_exeext conftest.$ac_ext 5038fi 5039rm -f core conftest.err conftest.$ac_objext \ 5040 conftest$ac_exeext conftest.$ac_ext 5041 ac_c_werror_flag=$ac_xsave_c_werror_flag 5042 LIBS=$ac_xsave_LIBS 5043 fi 5044 5045 # Check for system-dependent libraries X programs must link with. 5046 # Do this before checking for the system-independent R6 libraries 5047 # (-lICE), since we may need -lsocket or whatever for X linking. 5048 5049 if test "$ISC" = yes; then 5050 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 5051 else 5052 # Martyn Johnson says this is needed for Ultrix, if the X 5053 # libraries were built with DECnet support. And Karl Berry says 5054 # the Alpha needs dnet_stub (dnet does not exist). 5055 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5057/* end confdefs.h. */ 5058 5059/* Override any GCC internal prototype to avoid an error. 5060 Use char because int might match the return type of a GCC 5061 builtin and then its argument prototype would still apply. */ 5062#ifdef __cplusplus 5063extern "C" 5064#endif 5065char XOpenDisplay (); 5066int 5067main () 5068{ 5069return XOpenDisplay (); 5070 ; 5071 return 0; 5072} 5073_ACEOF 5074if ac_fn_c_try_link "$LINENO"; then : 5075 5076else 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 5078$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 5079if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 5080 $as_echo_n "(cached) " >&6 5081else 5082 ac_check_lib_save_LIBS=$LIBS 5083LIBS="-ldnet $LIBS" 5084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5085/* end confdefs.h. */ 5086 5087/* Override any GCC internal prototype to avoid an error. 5088 Use char because int might match the return type of a GCC 5089 builtin and then its argument prototype would still apply. */ 5090#ifdef __cplusplus 5091extern "C" 5092#endif 5093char dnet_ntoa (); 5094int 5095main () 5096{ 5097return dnet_ntoa (); 5098 ; 5099 return 0; 5100} 5101_ACEOF 5102if ac_fn_c_try_link "$LINENO"; then : 5103 ac_cv_lib_dnet_dnet_ntoa=yes 5104else 5105 ac_cv_lib_dnet_dnet_ntoa=no 5106fi 5107rm -f core conftest.err conftest.$ac_objext \ 5108 conftest$ac_exeext conftest.$ac_ext 5109LIBS=$ac_check_lib_save_LIBS 5110fi 5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 5112$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 5113if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 5114 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 5115fi 5116 5117 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 5119$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 5120if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : 5121 $as_echo_n "(cached) " >&6 5122else 5123 ac_check_lib_save_LIBS=$LIBS 5124LIBS="-ldnet_stub $LIBS" 5125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5126/* end confdefs.h. */ 5127 5128/* Override any GCC internal prototype to avoid an error. 5129 Use char because int might match the return type of a GCC 5130 builtin and then its argument prototype would still apply. */ 5131#ifdef __cplusplus 5132extern "C" 5133#endif 5134char dnet_ntoa (); 5135int 5136main () 5137{ 5138return dnet_ntoa (); 5139 ; 5140 return 0; 5141} 5142_ACEOF 5143if ac_fn_c_try_link "$LINENO"; then : 5144 ac_cv_lib_dnet_stub_dnet_ntoa=yes 5145else 5146 ac_cv_lib_dnet_stub_dnet_ntoa=no 5147fi 5148rm -f core conftest.err conftest.$ac_objext \ 5149 conftest$ac_exeext conftest.$ac_ext 5150LIBS=$ac_check_lib_save_LIBS 5151fi 5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 5153$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 5154if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : 5155 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 5156fi 5157 5158 fi 5159fi 5160rm -f core conftest.err conftest.$ac_objext \ 5161 conftest$ac_exeext conftest.$ac_ext 5162 LIBS="$ac_xsave_LIBS" 5163 5164 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 5165 # to get the SysV transport functions. 5166 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 5167 # needs -lnsl. 5168 # The nsl library prevents programs from opening the X display 5169 # on Irix 5.2, according to T.E. Dickey. 5170 # The functions gethostbyname, getservbyname, and inet_addr are 5171 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 5172 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 5173if test "x$ac_cv_func_gethostbyname" = x""yes; then : 5174 5175fi 5176 5177 if test $ac_cv_func_gethostbyname = no; then 5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 5179$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 5180if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 5181 $as_echo_n "(cached) " >&6 5182else 5183 ac_check_lib_save_LIBS=$LIBS 5184LIBS="-lnsl $LIBS" 5185cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5186/* end confdefs.h. */ 5187 5188/* Override any GCC internal prototype to avoid an error. 5189 Use char because int might match the return type of a GCC 5190 builtin and then its argument prototype would still apply. */ 5191#ifdef __cplusplus 5192extern "C" 5193#endif 5194char gethostbyname (); 5195int 5196main () 5197{ 5198return gethostbyname (); 5199 ; 5200 return 0; 5201} 5202_ACEOF 5203if ac_fn_c_try_link "$LINENO"; then : 5204 ac_cv_lib_nsl_gethostbyname=yes 5205else 5206 ac_cv_lib_nsl_gethostbyname=no 5207fi 5208rm -f core conftest.err conftest.$ac_objext \ 5209 conftest$ac_exeext conftest.$ac_ext 5210LIBS=$ac_check_lib_save_LIBS 5211fi 5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 5213$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 5214if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 5215 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 5216fi 5217 5218 if test $ac_cv_lib_nsl_gethostbyname = no; then 5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 5220$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 5221if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : 5222 $as_echo_n "(cached) " >&6 5223else 5224 ac_check_lib_save_LIBS=$LIBS 5225LIBS="-lbsd $LIBS" 5226cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5227/* end confdefs.h. */ 5228 5229/* Override any GCC internal prototype to avoid an error. 5230 Use char because int might match the return type of a GCC 5231 builtin and then its argument prototype would still apply. */ 5232#ifdef __cplusplus 5233extern "C" 5234#endif 5235char gethostbyname (); 5236int 5237main () 5238{ 5239return gethostbyname (); 5240 ; 5241 return 0; 5242} 5243_ACEOF 5244if ac_fn_c_try_link "$LINENO"; then : 5245 ac_cv_lib_bsd_gethostbyname=yes 5246else 5247 ac_cv_lib_bsd_gethostbyname=no 5248fi 5249rm -f core conftest.err conftest.$ac_objext \ 5250 conftest$ac_exeext conftest.$ac_ext 5251LIBS=$ac_check_lib_save_LIBS 5252fi 5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 5254$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 5255if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : 5256 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 5257fi 5258 5259 fi 5260 fi 5261 5262 # lieder@skyler.mavd.honeywell.com says without -lsocket, 5263 # socket/setsockopt and other routines are undefined under SCO ODT 5264 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 5265 # on later versions), says Simon Leinen: it contains gethostby* 5266 # variants that don't use the name server (or something). -lsocket 5267 # must be given before -lnsl if both are needed. We assume that 5268 # if connect needs -lnsl, so does gethostbyname. 5269 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 5270if test "x$ac_cv_func_connect" = x""yes; then : 5271 5272fi 5273 5274 if test $ac_cv_func_connect = no; then 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 5276$as_echo_n "checking for connect in -lsocket... " >&6; } 5277if test "${ac_cv_lib_socket_connect+set}" = set; then : 5278 $as_echo_n "(cached) " >&6 5279else 5280 ac_check_lib_save_LIBS=$LIBS 5281LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 5282cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5283/* end confdefs.h. */ 5284 5285/* Override any GCC internal prototype to avoid an error. 5286 Use char because int might match the return type of a GCC 5287 builtin and then its argument prototype would still apply. */ 5288#ifdef __cplusplus 5289extern "C" 5290#endif 5291char connect (); 5292int 5293main () 5294{ 5295return connect (); 5296 ; 5297 return 0; 5298} 5299_ACEOF 5300if ac_fn_c_try_link "$LINENO"; then : 5301 ac_cv_lib_socket_connect=yes 5302else 5303 ac_cv_lib_socket_connect=no 5304fi 5305rm -f core conftest.err conftest.$ac_objext \ 5306 conftest$ac_exeext conftest.$ac_ext 5307LIBS=$ac_check_lib_save_LIBS 5308fi 5309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 5310$as_echo "$ac_cv_lib_socket_connect" >&6; } 5311if test "x$ac_cv_lib_socket_connect" = x""yes; then : 5312 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 5313fi 5314 5315 fi 5316 5317 # Guillermo Gomez says -lposix is necessary on A/UX. 5318 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 5319if test "x$ac_cv_func_remove" = x""yes; then : 5320 5321fi 5322 5323 if test $ac_cv_func_remove = no; then 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 5325$as_echo_n "checking for remove in -lposix... " >&6; } 5326if test "${ac_cv_lib_posix_remove+set}" = set; then : 5327 $as_echo_n "(cached) " >&6 5328else 5329 ac_check_lib_save_LIBS=$LIBS 5330LIBS="-lposix $LIBS" 5331cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5332/* end confdefs.h. */ 5333 5334/* Override any GCC internal prototype to avoid an error. 5335 Use char because int might match the return type of a GCC 5336 builtin and then its argument prototype would still apply. */ 5337#ifdef __cplusplus 5338extern "C" 5339#endif 5340char remove (); 5341int 5342main () 5343{ 5344return remove (); 5345 ; 5346 return 0; 5347} 5348_ACEOF 5349if ac_fn_c_try_link "$LINENO"; then : 5350 ac_cv_lib_posix_remove=yes 5351else 5352 ac_cv_lib_posix_remove=no 5353fi 5354rm -f core conftest.err conftest.$ac_objext \ 5355 conftest$ac_exeext conftest.$ac_ext 5356LIBS=$ac_check_lib_save_LIBS 5357fi 5358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 5359$as_echo "$ac_cv_lib_posix_remove" >&6; } 5360if test "x$ac_cv_lib_posix_remove" = x""yes; then : 5361 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 5362fi 5363 5364 fi 5365 5366 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5367 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 5368if test "x$ac_cv_func_shmat" = x""yes; then : 5369 5370fi 5371 5372 if test $ac_cv_func_shmat = no; then 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 5374$as_echo_n "checking for shmat in -lipc... " >&6; } 5375if test "${ac_cv_lib_ipc_shmat+set}" = set; then : 5376 $as_echo_n "(cached) " >&6 5377else 5378 ac_check_lib_save_LIBS=$LIBS 5379LIBS="-lipc $LIBS" 5380cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5381/* end confdefs.h. */ 5382 5383/* Override any GCC internal prototype to avoid an error. 5384 Use char because int might match the return type of a GCC 5385 builtin and then its argument prototype would still apply. */ 5386#ifdef __cplusplus 5387extern "C" 5388#endif 5389char shmat (); 5390int 5391main () 5392{ 5393return shmat (); 5394 ; 5395 return 0; 5396} 5397_ACEOF 5398if ac_fn_c_try_link "$LINENO"; then : 5399 ac_cv_lib_ipc_shmat=yes 5400else 5401 ac_cv_lib_ipc_shmat=no 5402fi 5403rm -f core conftest.err conftest.$ac_objext \ 5404 conftest$ac_exeext conftest.$ac_ext 5405LIBS=$ac_check_lib_save_LIBS 5406fi 5407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 5408$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 5409if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : 5410 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 5411fi 5412 5413 fi 5414 fi 5415 5416 # Check for libraries that X11R6 Xt/Xaw programs need. 5417 ac_save_LDFLAGS=$LDFLAGS 5418 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 5419 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 5420 # check for ICE first), but we must link in the order -lSM -lICE or 5421 # we get undefined symbols. So assume we have SM if we have ICE. 5422 # These have to be linked with before -lX11, unlike the other 5423 # libraries we check for below, so use a different variable. 5424 # John Interrante, Karl Berry 5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 5426$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 5427if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : 5428 $as_echo_n "(cached) " >&6 5429else 5430 ac_check_lib_save_LIBS=$LIBS 5431LIBS="-lICE $X_EXTRA_LIBS $LIBS" 5432cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5433/* end confdefs.h. */ 5434 5435/* Override any GCC internal prototype to avoid an error. 5436 Use char because int might match the return type of a GCC 5437 builtin and then its argument prototype would still apply. */ 5438#ifdef __cplusplus 5439extern "C" 5440#endif 5441char IceConnectionNumber (); 5442int 5443main () 5444{ 5445return IceConnectionNumber (); 5446 ; 5447 return 0; 5448} 5449_ACEOF 5450if ac_fn_c_try_link "$LINENO"; then : 5451 ac_cv_lib_ICE_IceConnectionNumber=yes 5452else 5453 ac_cv_lib_ICE_IceConnectionNumber=no 5454fi 5455rm -f core conftest.err conftest.$ac_objext \ 5456 conftest$ac_exeext conftest.$ac_ext 5457LIBS=$ac_check_lib_save_LIBS 5458fi 5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 5460$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 5461if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : 5462 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 5463fi 5464 5465 LDFLAGS=$ac_save_LDFLAGS 5466 5467fi 5468 5469X_LIBS="$X_LIBS -L/usr/X11R6/lib" 5470X_CFLAGS="$X_CFLAGS -I/usr/X11R6/include" 5471LIBS="$LIBS $X_LIBS" 5472CPPFLAGS="$CPPFLAGS $X_CFLAGS" 5473 5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable usage of map editor" >&5 5475$as_echo_n "checking whether to enable usage of map editor... " >&6; } 5476editor_default="yes" 5477# Check whether --enable-editor was given. 5478if test "${enable_editor+set}" = set; then : 5479 enableval=$enable_editor; 5480else 5481 enable_editor=$editor_default 5482fi 5483 5484if test "x$enable_editor" = "xyes"; then 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5486$as_echo "yes" >&6; } 5487 5488have_qt4=no 5489qt4_incdirs="" 5490qt4_libdirs="" 5491 5492if test -n "$QTDIR" ; then 5493 qt4_incdirs="" 5494 qt4_libdirs="" 5495fi 5496 5497if test "xQt4" = "xQtOpenGL" ; then 5498 qt4_test_include="QtOpenGL/QGLWidget" 5499 qt4_test_la_library="libQtOpenGL.la" 5500 qt4_test_library="libQtOpenGL.so" 5501 qt4_windows_test_library="QtOpenGL4.dll" 5502else 5503 qt4_test_include="QtCore/QCoreApplication" 5504 qt4_test_la_library="libQtCore.la" 5505 qt4_test_library="libQtCore.so" 5506 qt4_windows_test_library="QtCore4.dll" 5507fi 5508 5509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 headers" >&5 5510$as_echo_n "checking for Qt4 headers... " >&6; } 5511qt4_incdir="no" 5512for it in $qt4_incdirs ; do 5513 if test -r "$it/$qt4_test_include" ; then 5514 qt4_incdir="$it" 5515 break 5516 fi 5517done 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $qt4_incdir" >&5 5519$as_echo "$qt4_incdir" >&6; } 5520 5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 libraries" >&5 5522$as_echo_n "checking for Qt4 libraries... " >&6; } 5523qt4_libdir="no" 5524for qt4_check in $qt4_libdirs ; do 5525 if test -r "$qt4_check/$qt4_test_la_library" ; then 5526 qt4_libdir="$qt4_check" 5527 break 5528 fi 5529 5530 if test -r "$qt4_check/$qt4_test_library" ; then 5531 qt4_libdir="$qt4_check" 5532 break 5533 fi 5534 5535 if test -r "$qt4_check/$qt4_windows_test_library" ; then 5536 qt4_libdir="$qt4_check" 5537 windows_qt="yes" 5538 break 5539 fi 5540done 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $qt4_libdir" >&5 5542$as_echo "$qt4_libdir" >&6; } 5543 5544if test "x$qt4_libdir" != "xno" ; then 5545 if test "x$qt4_incdir" != "xno" ; then 5546 have_qt4=yes; 5547 fi 5548fi 5549 5550if test "x$have_qt4" = "xyes"; then 5551 if test x$windows_qt = xyes; then 5552 QT_LDADD="-L$qt4_libdir -lQtCore4 -lQtGui4 -lQtOpenGL4 -lQt3Support4" 5553 else 5554 QT_LDADD="-L$qt4_libdir -lQtCore -lQtGui -lQtOpenGL -lQt3Support" 5555 fi 5556 5557 5558 : 5559else 5560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5562as_fn_error $? "Qt4 development libraries not found 5563See \`config.log' for more details" "$LINENO" 5 ; } 5564fi 5565 5566# Extract the first word of "moc-qt4", so it can be a program name with args. 5567set dummy moc-qt4; ac_word=$2 5568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5569$as_echo_n "checking for $ac_word... " >&6; } 5570if test "${ac_cv_prog_MOC+set}" = set; then : 5571 $as_echo_n "(cached) " >&6 5572else 5573 if test -n "$MOC"; then 5574 ac_cv_prog_MOC="$MOC" # Let the user override the test. 5575else 5576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5577for as_dir in $PATH 5578do 5579 IFS=$as_save_IFS 5580 test -z "$as_dir" && as_dir=. 5581 for ac_exec_ext in '' $ac_executable_extensions; do 5582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5583 ac_cv_prog_MOC="moc-qt4" 5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5585 break 2 5586 fi 5587done 5588 done 5589IFS=$as_save_IFS 5590 5591fi 5592fi 5593MOC=$ac_cv_prog_MOC 5594if test -n "$MOC"; then 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5 5596$as_echo "$MOC" >&6; } 5597else 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5599$as_echo "no" >&6; } 5600fi 5601 5602 5603if test x$MOC = x ; then 5604 # Extract the first word of "moc", so it can be a program name with args. 5605set dummy moc; ac_word=$2 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5607$as_echo_n "checking for $ac_word... " >&6; } 5608if test "${ac_cv_prog_MOC+set}" = set; then : 5609 $as_echo_n "(cached) " >&6 5610else 5611 if test -n "$MOC"; then 5612 ac_cv_prog_MOC="$MOC" # Let the user override the test. 5613else 5614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5615for as_dir in $PATH 5616do 5617 IFS=$as_save_IFS 5618 test -z "$as_dir" && as_dir=. 5619 for ac_exec_ext in '' $ac_executable_extensions; do 5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5621 ac_cv_prog_MOC="moc" 5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5623 break 2 5624 fi 5625done 5626 done 5627IFS=$as_save_IFS 5628 5629fi 5630fi 5631MOC=$ac_cv_prog_MOC 5632if test -n "$MOC"; then 5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5 5634$as_echo "$MOC" >&6; } 5635else 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5637$as_echo "no" >&6; } 5638fi 5639 5640 5641 if test x$MOC = x ; then 5642 as_fn_error $? "*** moc must be in path" "$LINENO" 5 5643 fi 5644fi 5645 5646 5647have_qt4=no 5648qt4_incdirs="" 5649qt4_libdirs="" 5650 5651if test -n "$QTDIR" ; then 5652 qt4_incdirs="" 5653 qt4_libdirs="" 5654fi 5655 5656if test "xQtOpenGL" = "xQtOpenGL" ; then 5657 qt4_test_include="QtOpenGL/QGLWidget" 5658 qt4_test_la_library="libQtOpenGL.la" 5659 qt4_test_library="libQtOpenGL.so" 5660 qt4_windows_test_library="QtOpenGL4.dll" 5661else 5662 qt4_test_include="QtCore/QCoreApplication" 5663 qt4_test_la_library="libQtCore.la" 5664 qt4_test_library="libQtCore.so" 5665 qt4_windows_test_library="QtCore4.dll" 5666fi 5667 5668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtOpenGL headers" >&5 5669$as_echo_n "checking for QtOpenGL headers... " >&6; } 5670qt4_incdir="no" 5671for it in $qt4_incdirs ; do 5672 if test -r "$it/$qt4_test_include" ; then 5673 qt4_incdir="$it" 5674 break 5675 fi 5676done 5677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $qt4_incdir" >&5 5678$as_echo "$qt4_incdir" >&6; } 5679 5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtOpenGL libraries" >&5 5681$as_echo_n "checking for QtOpenGL libraries... " >&6; } 5682qt4_libdir="no" 5683for qt4_check in $qt4_libdirs ; do 5684 if test -r "$qt4_check/$qt4_test_la_library" ; then 5685 qt4_libdir="$qt4_check" 5686 break 5687 fi 5688 5689 if test -r "$qt4_check/$qt4_test_library" ; then 5690 qt4_libdir="$qt4_check" 5691 break 5692 fi 5693 5694 if test -r "$qt4_check/$qt4_windows_test_library" ; then 5695 qt4_libdir="$qt4_check" 5696 windows_qt="yes" 5697 break 5698 fi 5699done 5700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $qt4_libdir" >&5 5701$as_echo "$qt4_libdir" >&6; } 5702 5703if test "x$qt4_libdir" != "xno" ; then 5704 if test "x$qt4_incdir" != "xno" ; then 5705 have_qt4=yes; 5706 fi 5707fi 5708 5709if test "x$have_qt4" = "xyes"; then 5710 if test x$windows_qt = xyes; then 5711 QT_LDADD="-L$qt4_libdir -lQtCore4 -lQtGui4 -lQtOpenGL4 -lQt3Support4" 5712 else 5713 QT_LDADD="-L$qt4_libdir -lQtCore -lQtGui -lQtOpenGL -lQt3Support" 5714 fi 5715 5716 5717 : 5718else 5719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5721as_fn_error $? "QtOpenGL development libraries not found 5722See \`config.log' for more details" "$LINENO" 5 ; } 5723fi 5724 5725# Extract the first word of "moc-qt4", so it can be a program name with args. 5726set dummy moc-qt4; ac_word=$2 5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5728$as_echo_n "checking for $ac_word... " >&6; } 5729if test "${ac_cv_prog_MOC+set}" = set; then : 5730 $as_echo_n "(cached) " >&6 5731else 5732 if test -n "$MOC"; then 5733 ac_cv_prog_MOC="$MOC" # Let the user override the test. 5734else 5735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5736for as_dir in $PATH 5737do 5738 IFS=$as_save_IFS 5739 test -z "$as_dir" && as_dir=. 5740 for ac_exec_ext in '' $ac_executable_extensions; do 5741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5742 ac_cv_prog_MOC="moc-qt4" 5743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5744 break 2 5745 fi 5746done 5747 done 5748IFS=$as_save_IFS 5749 5750fi 5751fi 5752MOC=$ac_cv_prog_MOC 5753if test -n "$MOC"; then 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5 5755$as_echo "$MOC" >&6; } 5756else 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5758$as_echo "no" >&6; } 5759fi 5760 5761 5762if test x$MOC = x ; then 5763 # Extract the first word of "moc", so it can be a program name with args. 5764set dummy moc; ac_word=$2 5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5766$as_echo_n "checking for $ac_word... " >&6; } 5767if test "${ac_cv_prog_MOC+set}" = set; then : 5768 $as_echo_n "(cached) " >&6 5769else 5770 if test -n "$MOC"; then 5771 ac_cv_prog_MOC="$MOC" # Let the user override the test. 5772else 5773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5774for as_dir in $PATH 5775do 5776 IFS=$as_save_IFS 5777 test -z "$as_dir" && as_dir=. 5778 for ac_exec_ext in '' $ac_executable_extensions; do 5779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5780 ac_cv_prog_MOC="moc" 5781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5782 break 2 5783 fi 5784done 5785 done 5786IFS=$as_save_IFS 5787 5788fi 5789fi 5790MOC=$ac_cv_prog_MOC 5791if test -n "$MOC"; then 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5 5793$as_echo "$MOC" >&6; } 5794else 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5796$as_echo "no" >&6; } 5797fi 5798 5799 5800 if test x$MOC = x ; then 5801 as_fn_error $? "*** moc must be in path" "$LINENO" 5 5802 fi 5803fi 5804 5805else 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5807$as_echo "no" >&6; } 5808fi 5809 if test "$enable_editor" = yes; then 5810 COND_EDITOR_TRUE= 5811 COND_EDITOR_FALSE='#' 5812else 5813 COND_EDITOR_TRUE='#' 5814 COND_EDITOR_FALSE= 5815fi 5816 5817 5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateWindow in -lX11" >&5 5819$as_echo_n "checking for XCreateWindow in -lX11... " >&6; } 5820if test "${ac_cv_lib_X11_XCreateWindow+set}" = set; then : 5821 $as_echo_n "(cached) " >&6 5822else 5823 ac_check_lib_save_LIBS=$LIBS 5824LIBS="-lX11 $LIBS" 5825cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5826/* end confdefs.h. */ 5827 5828/* Override any GCC internal prototype to avoid an error. 5829 Use char because int might match the return type of a GCC 5830 builtin and then its argument prototype would still apply. */ 5831#ifdef __cplusplus 5832extern "C" 5833#endif 5834char XCreateWindow (); 5835int 5836main () 5837{ 5838return XCreateWindow (); 5839 ; 5840 return 0; 5841} 5842_ACEOF 5843if ac_fn_c_try_link "$LINENO"; then : 5844 ac_cv_lib_X11_XCreateWindow=yes 5845else 5846 ac_cv_lib_X11_XCreateWindow=no 5847fi 5848rm -f core conftest.err conftest.$ac_objext \ 5849 conftest$ac_exeext conftest.$ac_ext 5850LIBS=$ac_check_lib_save_LIBS 5851fi 5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreateWindow" >&5 5853$as_echo "$ac_cv_lib_X11_XCreateWindow" >&6; } 5854if test "x$ac_cv_lib_X11_XCreateWindow" = x""yes; then : 5855 cat >>confdefs.h <<_ACEOF 5856#define HAVE_LIBX11 1 5857_ACEOF 5858 5859 LIBS="-lX11 $LIBS" 5860 5861else 5862 as_fn_error $? "X11 GLX not found" "$LINENO" 5 5863fi 5864 5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glGetString in -lGL" >&5 5866$as_echo_n "checking for glGetString in -lGL... " >&6; } 5867if test "${ac_cv_lib_GL_glGetString+set}" = set; then : 5868 $as_echo_n "(cached) " >&6 5869else 5870 ac_check_lib_save_LIBS=$LIBS 5871LIBS="-lGL $LIBS" 5872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5873/* end confdefs.h. */ 5874 5875/* Override any GCC internal prototype to avoid an error. 5876 Use char because int might match the return type of a GCC 5877 builtin and then its argument prototype would still apply. */ 5878#ifdef __cplusplus 5879extern "C" 5880#endif 5881char glGetString (); 5882int 5883main () 5884{ 5885return glGetString (); 5886 ; 5887 return 0; 5888} 5889_ACEOF 5890if ac_fn_c_try_link "$LINENO"; then : 5891 ac_cv_lib_GL_glGetString=yes 5892else 5893 ac_cv_lib_GL_glGetString=no 5894fi 5895rm -f core conftest.err conftest.$ac_objext \ 5896 conftest$ac_exeext conftest.$ac_ext 5897LIBS=$ac_check_lib_save_LIBS 5898fi 5899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glGetString" >&5 5900$as_echo "$ac_cv_lib_GL_glGetString" >&6; } 5901if test "x$ac_cv_lib_GL_glGetString" = x""yes; then : 5902 cat >>confdefs.h <<_ACEOF 5903#define HAVE_LIBGL 1 5904_ACEOF 5905 5906 LIBS="-lGL $LIBS" 5907 5908else 5909 as_fn_error $? "OpenGL not found" "$LINENO" 5 5910fi 5911 5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluGetString in -lGLU" >&5 5913$as_echo_n "checking for gluGetString in -lGLU... " >&6; } 5914if test "${ac_cv_lib_GLU_gluGetString+set}" = set; then : 5915 $as_echo_n "(cached) " >&6 5916else 5917 ac_check_lib_save_LIBS=$LIBS 5918LIBS="-lGLU $LIBS" 5919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5920/* end confdefs.h. */ 5921 5922/* Override any GCC internal prototype to avoid an error. 5923 Use char because int might match the return type of a GCC 5924 builtin and then its argument prototype would still apply. */ 5925#ifdef __cplusplus 5926extern "C" 5927#endif 5928char gluGetString (); 5929int 5930main () 5931{ 5932return gluGetString (); 5933 ; 5934 return 0; 5935} 5936_ACEOF 5937if ac_fn_c_try_link "$LINENO"; then : 5938 ac_cv_lib_GLU_gluGetString=yes 5939else 5940 ac_cv_lib_GLU_gluGetString=no 5941fi 5942rm -f core conftest.err conftest.$ac_objext \ 5943 conftest$ac_exeext conftest.$ac_ext 5944LIBS=$ac_check_lib_save_LIBS 5945fi 5946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluGetString" >&5 5947$as_echo "$ac_cv_lib_GLU_gluGetString" >&6; } 5948if test "x$ac_cv_lib_GLU_gluGetString" = x""yes; then : 5949 cat >>confdefs.h <<_ACEOF 5950#define HAVE_LIBGLU 1 5951_ACEOF 5952 5953 LIBS="-lGLU $LIBS" 5954 5955else 5956 as_fn_error $? "GLU not found" "$LINENO" 5 5957fi 5958 5959 5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_info in -lpng" >&5 5961$as_echo_n "checking for png_read_info in -lpng... " >&6; } 5962if test "${ac_cv_lib_png_png_read_info+set}" = set; then : 5963 $as_echo_n "(cached) " >&6 5964else 5965 ac_check_lib_save_LIBS=$LIBS 5966LIBS="-lpng $LIBS" 5967cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5968/* end confdefs.h. */ 5969 5970/* Override any GCC internal prototype to avoid an error. 5971 Use char because int might match the return type of a GCC 5972 builtin and then its argument prototype would still apply. */ 5973#ifdef __cplusplus 5974extern "C" 5975#endif 5976char png_read_info (); 5977int 5978main () 5979{ 5980return png_read_info (); 5981 ; 5982 return 0; 5983} 5984_ACEOF 5985if ac_fn_c_try_link "$LINENO"; then : 5986 ac_cv_lib_png_png_read_info=yes 5987else 5988 ac_cv_lib_png_png_read_info=no 5989fi 5990rm -f core conftest.err conftest.$ac_objext \ 5991 conftest$ac_exeext conftest.$ac_ext 5992LIBS=$ac_check_lib_save_LIBS 5993fi 5994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_info" >&5 5995$as_echo "$ac_cv_lib_png_png_read_info" >&6; } 5996if test "x$ac_cv_lib_png_png_read_info" = x""yes; then : 5997 cat >>confdefs.h <<_ACEOF 5998#define HAVE_LIBPNG 1 5999_ACEOF 6000 6001 LIBS="-lpng $LIBS" 6002 6003else 6004 \ 6005 echo "Could not find the png library. Check that it is properly installed on your system" 6006 exit 1 6007fi 6008 6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_raw_data in -ljpeg" >&5 6010$as_echo_n "checking for jpeg_read_raw_data in -ljpeg... " >&6; } 6011if test "${ac_cv_lib_jpeg_jpeg_read_raw_data+set}" = set; then : 6012 $as_echo_n "(cached) " >&6 6013else 6014 ac_check_lib_save_LIBS=$LIBS 6015LIBS="-ljpeg $LIBS" 6016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6017/* end confdefs.h. */ 6018 6019/* Override any GCC internal prototype to avoid an error. 6020 Use char because int might match the return type of a GCC 6021 builtin and then its argument prototype would still apply. */ 6022#ifdef __cplusplus 6023extern "C" 6024#endif 6025char jpeg_read_raw_data (); 6026int 6027main () 6028{ 6029return jpeg_read_raw_data (); 6030 ; 6031 return 0; 6032} 6033_ACEOF 6034if ac_fn_c_try_link "$LINENO"; then : 6035 ac_cv_lib_jpeg_jpeg_read_raw_data=yes 6036else 6037 ac_cv_lib_jpeg_jpeg_read_raw_data=no 6038fi 6039rm -f core conftest.err conftest.$ac_objext \ 6040 conftest$ac_exeext conftest.$ac_ext 6041LIBS=$ac_check_lib_save_LIBS 6042fi 6043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_raw_data" >&5 6044$as_echo "$ac_cv_lib_jpeg_jpeg_read_raw_data" >&6; } 6045if test "x$ac_cv_lib_jpeg_jpeg_read_raw_data" = x""yes; then : 6046 cat >>confdefs.h <<_ACEOF 6047#define HAVE_LIBJPEG 1 6048_ACEOF 6049 6050 LIBS="-ljpeg $LIBS" 6051 6052else 6053 \ 6054 echo "Could not find the jpeg library. Check that it is properly installed on your system" 6055 exit 1 6056fi 6057 6058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_InitSubSystem in -lSDL" >&5 6059$as_echo_n "checking for SDL_InitSubSystem in -lSDL... " >&6; } 6060if test "${ac_cv_lib_SDL_SDL_InitSubSystem+set}" = set; then : 6061 $as_echo_n "(cached) " >&6 6062else 6063 ac_check_lib_save_LIBS=$LIBS 6064LIBS="`/usr/local/bin/sdl-config --libs` $LIBS" 6065cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6066/* end confdefs.h. */ 6067 6068/* Override any GCC internal prototype to avoid an error. 6069 Use char because int might match the return type of a GCC 6070 builtin and then its argument prototype would still apply. */ 6071#ifdef __cplusplus 6072extern "C" 6073#endif 6074char SDL_InitSubSystem (); 6075int 6076main () 6077{ 6078return SDL_InitSubSystem (); 6079 ; 6080 return 0; 6081} 6082_ACEOF 6083if ac_fn_c_try_link "$LINENO"; then : 6084 ac_cv_lib_SDL_SDL_InitSubSystem=yes 6085else 6086 ac_cv_lib_SDL_SDL_InitSubSystem=no 6087fi 6088rm -f core conftest.err conftest.$ac_objext \ 6089 conftest$ac_exeext conftest.$ac_ext 6090LIBS=$ac_check_lib_save_LIBS 6091fi 6092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_InitSubSystem" >&5 6093$as_echo "$ac_cv_lib_SDL_SDL_InitSubSystem" >&6; } 6094if test "x$ac_cv_lib_SDL_SDL_InitSubSystem" = x""yes; then : 6095 cat >>confdefs.h <<_ACEOF 6096#define HAVE_LIBSDL 1 6097_ACEOF 6098 6099 LIBS="`/usr/local/bin/sdl-config --libs` $LIBS" 6100 6101else 6102 \ 6103 echo "Could not find the SDL library. Check that it is properly installed on your system" 6104 exit 1 6105fi 6106 6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alGetError in -lopenal" >&5 6108$as_echo_n "checking for alGetError in -lopenal... " >&6; } 6109if test "${ac_cv_lib_openal_alGetError+set}" = set; then : 6110 $as_echo_n "(cached) " >&6 6111else 6112 ac_check_lib_save_LIBS=$LIBS 6113LIBS="-lopenal $LIBS" 6114cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6115/* end confdefs.h. */ 6116 6117/* Override any GCC internal prototype to avoid an error. 6118 Use char because int might match the return type of a GCC 6119 builtin and then its argument prototype would still apply. */ 6120#ifdef __cplusplus 6121extern "C" 6122#endif 6123char alGetError (); 6124int 6125main () 6126{ 6127return alGetError (); 6128 ; 6129 return 0; 6130} 6131_ACEOF 6132if ac_fn_c_try_link "$LINENO"; then : 6133 ac_cv_lib_openal_alGetError=yes 6134else 6135 ac_cv_lib_openal_alGetError=no 6136fi 6137rm -f core conftest.err conftest.$ac_objext \ 6138 conftest$ac_exeext conftest.$ac_ext 6139LIBS=$ac_check_lib_save_LIBS 6140fi 6141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openal_alGetError" >&5 6142$as_echo "$ac_cv_lib_openal_alGetError" >&6; } 6143if test "x$ac_cv_lib_openal_alGetError" = x""yes; then : 6144 cat >>confdefs.h <<_ACEOF 6145#define HAVE_LIBOPENAL 1 6146_ACEOF 6147 6148 LIBS="-lopenal $LIBS" 6149 6150else 6151 \ 6152 echo "You need to install the OpenAL library." 6153 exit 1 6154fi 6155 6156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ov_open in -lvorbisfile" >&5 6157$as_echo_n "checking for ov_open in -lvorbisfile... " >&6; } 6158if test "${ac_cv_lib_vorbisfile_ov_open+set}" = set; then : 6159 $as_echo_n "(cached) " >&6 6160else 6161 ac_check_lib_save_LIBS=$LIBS 6162LIBS="-lvorbisfile $LIBS" 6163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6164/* end confdefs.h. */ 6165 6166/* Override any GCC internal prototype to avoid an error. 6167 Use char because int might match the return type of a GCC 6168 builtin and then its argument prototype would still apply. */ 6169#ifdef __cplusplus 6170extern "C" 6171#endif 6172char ov_open (); 6173int 6174main () 6175{ 6176return ov_open (); 6177 ; 6178 return 0; 6179} 6180_ACEOF 6181if ac_fn_c_try_link "$LINENO"; then : 6182 ac_cv_lib_vorbisfile_ov_open=yes 6183else 6184 ac_cv_lib_vorbisfile_ov_open=no 6185fi 6186rm -f core conftest.err conftest.$ac_objext \ 6187 conftest$ac_exeext conftest.$ac_ext 6188LIBS=$ac_check_lib_save_LIBS 6189fi 6190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisfile_ov_open" >&5 6191$as_echo "$ac_cv_lib_vorbisfile_ov_open" >&6; } 6192if test "x$ac_cv_lib_vorbisfile_ov_open" = x""yes; then : 6193 cat >>confdefs.h <<_ACEOF 6194#define HAVE_LIBVORBISFILE 1 6195_ACEOF 6196 6197 LIBS="-lvorbisfile $LIBS" 6198 6199else 6200 \ 6201 echo "Could not find the vorbis library. Check that it is properly installed on your system" 6202 exit 1 6203fi 6204 6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTF_Init in -lSDL_ttf" >&5 6206$as_echo_n "checking for TTF_Init in -lSDL_ttf... " >&6; } 6207if test "${ac_cv_lib_SDL_ttf_TTF_Init+set}" = set; then : 6208 $as_echo_n "(cached) " >&6 6209else 6210 ac_check_lib_save_LIBS=$LIBS 6211LIBS="-lSDL_ttf $LIBS" 6212cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6213/* end confdefs.h. */ 6214 6215/* Override any GCC internal prototype to avoid an error. 6216 Use char because int might match the return type of a GCC 6217 builtin and then its argument prototype would still apply. */ 6218#ifdef __cplusplus 6219extern "C" 6220#endif 6221char TTF_Init (); 6222int 6223main () 6224{ 6225return TTF_Init (); 6226 ; 6227 return 0; 6228} 6229_ACEOF 6230if ac_fn_c_try_link "$LINENO"; then : 6231 ac_cv_lib_SDL_ttf_TTF_Init=yes 6232else 6233 ac_cv_lib_SDL_ttf_TTF_Init=no 6234fi 6235rm -f core conftest.err conftest.$ac_objext \ 6236 conftest$ac_exeext conftest.$ac_ext 6237LIBS=$ac_check_lib_save_LIBS 6238fi 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_ttf_TTF_Init" >&5 6240$as_echo "$ac_cv_lib_SDL_ttf_TTF_Init" >&6; } 6241if test "x$ac_cv_lib_SDL_ttf_TTF_Init" = x""yes; then : 6242 cat >>confdefs.h <<_ACEOF 6243#define HAVE_LIBSDL_TTF 1 6244_ACEOF 6245 6246 LIBS="-lSDL_ttf $LIBS" 6247 6248else 6249 \ 6250 echo "Could not find the SDL_ttf library. Check that it is properly installed on your system" 6251 exit 1 6252fi 6253 6254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua_newstate in -llua5.1" >&5 6255$as_echo_n "checking for lua_newstate in -llua5.1... " >&6; } 6256if test "${ac_cv_lib_lua5_1_lua_newstate+set}" = set; then : 6257 $as_echo_n "(cached) " >&6 6258else 6259 ac_check_lib_save_LIBS=$LIBS 6260LIBS="-llua5.1 $LIBS" 6261cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6262/* end confdefs.h. */ 6263 6264/* Override any GCC internal prototype to avoid an error. 6265 Use char because int might match the return type of a GCC 6266 builtin and then its argument prototype would still apply. */ 6267#ifdef __cplusplus 6268extern "C" 6269#endif 6270char lua_newstate (); 6271int 6272main () 6273{ 6274return lua_newstate (); 6275 ; 6276 return 0; 6277} 6278_ACEOF 6279if ac_fn_c_try_link "$LINENO"; then : 6280 ac_cv_lib_lua5_1_lua_newstate=yes 6281else 6282 ac_cv_lib_lua5_1_lua_newstate=no 6283fi 6284rm -f core conftest.err conftest.$ac_objext \ 6285 conftest$ac_exeext conftest.$ac_ext 6286LIBS=$ac_check_lib_save_LIBS 6287fi 6288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_1_lua_newstate" >&5 6289$as_echo "$ac_cv_lib_lua5_1_lua_newstate" >&6; } 6290if test "x$ac_cv_lib_lua5_1_lua_newstate" = x""yes; then : 6291 cat >>confdefs.h <<_ACEOF 6292#define HAVE_LIBLUA5_1 1 6293_ACEOF 6294 6295 LIBS="-llua5.1 $LIBS" 6296 6297else 6298 \ 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua_newstate in -llua51" >&5 6300$as_echo_n "checking for lua_newstate in -llua51... " >&6; } 6301if test "${ac_cv_lib_lua51_lua_newstate+set}" = set; then : 6302 $as_echo_n "(cached) " >&6 6303else 6304 ac_check_lib_save_LIBS=$LIBS 6305LIBS="-llua51 $LIBS" 6306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6307/* end confdefs.h. */ 6308 6309/* Override any GCC internal prototype to avoid an error. 6310 Use char because int might match the return type of a GCC 6311 builtin and then its argument prototype would still apply. */ 6312#ifdef __cplusplus 6313extern "C" 6314#endif 6315char lua_newstate (); 6316int 6317main () 6318{ 6319return lua_newstate (); 6320 ; 6321 return 0; 6322} 6323_ACEOF 6324if ac_fn_c_try_link "$LINENO"; then : 6325 ac_cv_lib_lua51_lua_newstate=yes 6326else 6327 ac_cv_lib_lua51_lua_newstate=no 6328fi 6329rm -f core conftest.err conftest.$ac_objext \ 6330 conftest$ac_exeext conftest.$ac_ext 6331LIBS=$ac_check_lib_save_LIBS 6332fi 6333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua51_lua_newstate" >&5 6334$as_echo "$ac_cv_lib_lua51_lua_newstate" >&6; } 6335if test "x$ac_cv_lib_lua51_lua_newstate" = x""yes; then : 6336 cat >>confdefs.h <<_ACEOF 6337#define HAVE_LIBLUA51 1 6338_ACEOF 6339 6340 LIBS="-llua51 $LIBS" 6341 6342else 6343 \ 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua_newstate in -llua" >&5 6345$as_echo_n "checking for lua_newstate in -llua... " >&6; } 6346if test "${ac_cv_lib_lua_lua_newstate+set}" = set; then : 6347 $as_echo_n "(cached) " >&6 6348else 6349 ac_check_lib_save_LIBS=$LIBS 6350LIBS="-llua-5.1 $LIBS" 6351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6352/* end confdefs.h. */ 6353 6354/* Override any GCC internal prototype to avoid an error. 6355 Use char because int might match the return type of a GCC 6356 builtin and then its argument prototype would still apply. */ 6357#ifdef __cplusplus 6358extern "C" 6359#endif 6360char lua_newstate (); 6361int 6362main () 6363{ 6364return lua_newstate (); 6365 ; 6366 return 0; 6367} 6368_ACEOF 6369if ac_fn_c_try_link "$LINENO"; then : 6370 ac_cv_lib_lua_lua_newstate=yes 6371else 6372 ac_cv_lib_lua_lua_newstate=no 6373fi 6374rm -f core conftest.err conftest.$ac_objext \ 6375 conftest$ac_exeext conftest.$ac_ext 6376LIBS=$ac_check_lib_save_LIBS 6377fi 6378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_lua_newstate" >&5 6379$as_echo "$ac_cv_lib_lua_lua_newstate" >&6; } 6380if test "x$ac_cv_lib_lua_lua_newstate" = x""yes; then : 6381 cat >>confdefs.h <<_ACEOF 6382#define HAVE_LIBLUA 1 6383_ACEOF 6384 6385 LIBS="-llua-5.1 $LIBS" 6386 6387else 6388 \ 6389 echo "Could not find the lua 5.1 library. Check that it is properly installed on your system" 6390 exit 1 6391fi 6392 6393fi 6394 6395fi 6396 6397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log in -lm" >&5 6398$as_echo_n "checking for log in -lm... " >&6; } 6399if test "${ac_cv_lib_m_log+set}" = set; then : 6400 $as_echo_n "(cached) " >&6 6401else 6402 ac_check_lib_save_LIBS=$LIBS 6403LIBS="-lm $LIBS" 6404cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6405/* end confdefs.h. */ 6406 6407/* Override any GCC internal prototype to avoid an error. 6408 Use char because int might match the return type of a GCC 6409 builtin and then its argument prototype would still apply. */ 6410#ifdef __cplusplus 6411extern "C" 6412#endif 6413char log (); 6414int 6415main () 6416{ 6417return log (); 6418 ; 6419 return 0; 6420} 6421_ACEOF 6422if ac_fn_c_try_link "$LINENO"; then : 6423 ac_cv_lib_m_log=yes 6424else 6425 ac_cv_lib_m_log=no 6426fi 6427rm -f core conftest.err conftest.$ac_objext \ 6428 conftest$ac_exeext conftest.$ac_ext 6429LIBS=$ac_check_lib_save_LIBS 6430fi 6431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log" >&5 6432$as_echo "$ac_cv_lib_m_log" >&6; } 6433if test "x$ac_cv_lib_m_log" = x""yes; then : 6434 cat >>confdefs.h <<_ACEOF 6435#define HAVE_LIBM 1 6436_ACEOF 6437 6438 LIBS="-lm $LIBS" 6439 6440else 6441 \ 6442 echo "Could not find the math library. Check that it is properly installed on your system" 6443 exit 1 6444fi 6445 6446 6447 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 6449$as_echo_n "checking whether NLS is requested... " >&6; } 6450 # Check whether --enable-nls was given. 6451if test "${enable_nls+set}" = set; then : 6452 enableval=$enable_nls; USE_NLS=$enableval 6453else 6454 USE_NLS=yes 6455fi 6456 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 6458$as_echo "$USE_NLS" >&6; } 6459 6460 6461 6462 6463 6464 6465# Prepare PATH_SEPARATOR. 6466# The user is always right. 6467if test "${PATH_SEPARATOR+set}" != set; then 6468 echo "#! /bin/sh" >conf$$.sh 6469 echo "exit 0" >>conf$$.sh 6470 chmod +x conf$$.sh 6471 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6472 PATH_SEPARATOR=';' 6473 else 6474 PATH_SEPARATOR=: 6475 fi 6476 rm -f conf$$.sh 6477fi 6478 6479# Find out how to test for executable files. Don't use a zero-byte file, 6480# as systems may use methods other than mode bits to determine executability. 6481cat >conf$$.file <<_ASEOF 6482#! /bin/sh 6483exit 0 6484_ASEOF 6485chmod +x conf$$.file 6486if test -x conf$$.file >/dev/null 2>&1; then 6487 ac_executable_p="test -x" 6488else 6489 ac_executable_p="test -f" 6490fi 6491rm -f conf$$.file 6492 6493# Extract the first word of "msgfmt", so it can be a program name with args. 6494set dummy msgfmt; ac_word=$2 6495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6496$as_echo_n "checking for $ac_word... " >&6; } 6497if test "${ac_cv_path_MSGFMT+set}" = set; then : 6498 $as_echo_n "(cached) " >&6 6499else 6500 case "$MSGFMT" in 6501 [\\/]* | ?:[\\/]*) 6502 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 6503 ;; 6504 *) 6505 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 6506 for ac_dir in $PATH; do 6507 IFS="$ac_save_IFS" 6508 test -z "$ac_dir" && ac_dir=. 6509 for ac_exec_ext in '' $ac_executable_extensions; do 6510 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 6511 echo "$as_me: trying $ac_dir/$ac_word..." >&5 6512 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 6513 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 6514 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 6515 break 2 6516 fi 6517 fi 6518 done 6519 done 6520 IFS="$ac_save_IFS" 6521 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 6522 ;; 6523esac 6524fi 6525MSGFMT="$ac_cv_path_MSGFMT" 6526if test "$MSGFMT" != ":"; then 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 6528$as_echo "$MSGFMT" >&6; } 6529else 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6531$as_echo "no" >&6; } 6532fi 6533 6534 # Extract the first word of "gmsgfmt", so it can be a program name with args. 6535set dummy gmsgfmt; ac_word=$2 6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6537$as_echo_n "checking for $ac_word... " >&6; } 6538if test "${ac_cv_path_GMSGFMT+set}" = set; then : 6539 $as_echo_n "(cached) " >&6 6540else 6541 case $GMSGFMT in 6542 [\\/]* | ?:[\\/]*) 6543 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 6544 ;; 6545 *) 6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6547for as_dir in $PATH 6548do 6549 IFS=$as_save_IFS 6550 test -z "$as_dir" && as_dir=. 6551 for ac_exec_ext in '' $ac_executable_extensions; do 6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6553 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6555 break 2 6556 fi 6557done 6558 done 6559IFS=$as_save_IFS 6560 6561 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 6562 ;; 6563esac 6564fi 6565GMSGFMT=$ac_cv_path_GMSGFMT 6566if test -n "$GMSGFMT"; then 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 6568$as_echo "$GMSGFMT" >&6; } 6569else 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6571$as_echo "no" >&6; } 6572fi 6573 6574 6575 6576 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 6577 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 6578 *) MSGFMT_015=$MSGFMT ;; 6579 esac 6580 6581 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 6582 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 6583 *) GMSGFMT_015=$GMSGFMT ;; 6584 esac 6585 6586 6587 6588# Prepare PATH_SEPARATOR. 6589# The user is always right. 6590if test "${PATH_SEPARATOR+set}" != set; then 6591 echo "#! /bin/sh" >conf$$.sh 6592 echo "exit 0" >>conf$$.sh 6593 chmod +x conf$$.sh 6594 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6595 PATH_SEPARATOR=';' 6596 else 6597 PATH_SEPARATOR=: 6598 fi 6599 rm -f conf$$.sh 6600fi 6601 6602# Find out how to test for executable files. Don't use a zero-byte file, 6603# as systems may use methods other than mode bits to determine executability. 6604cat >conf$$.file <<_ASEOF 6605#! /bin/sh 6606exit 0 6607_ASEOF 6608chmod +x conf$$.file 6609if test -x conf$$.file >/dev/null 2>&1; then 6610 ac_executable_p="test -x" 6611else 6612 ac_executable_p="test -f" 6613fi 6614rm -f conf$$.file 6615 6616# Extract the first word of "xgettext", so it can be a program name with args. 6617set dummy xgettext; ac_word=$2 6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6619$as_echo_n "checking for $ac_word... " >&6; } 6620if test "${ac_cv_path_XGETTEXT+set}" = set; then : 6621 $as_echo_n "(cached) " >&6 6622else 6623 case "$XGETTEXT" in 6624 [\\/]* | ?:[\\/]*) 6625 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 6626 ;; 6627 *) 6628 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 6629 for ac_dir in $PATH; do 6630 IFS="$ac_save_IFS" 6631 test -z "$ac_dir" && ac_dir=. 6632 for ac_exec_ext in '' $ac_executable_extensions; do 6633 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 6634 echo "$as_me: trying $ac_dir/$ac_word..." >&5 6635 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 6636 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 6637 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 6638 break 2 6639 fi 6640 fi 6641 done 6642 done 6643 IFS="$ac_save_IFS" 6644 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 6645 ;; 6646esac 6647fi 6648XGETTEXT="$ac_cv_path_XGETTEXT" 6649if test "$XGETTEXT" != ":"; then 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 6651$as_echo "$XGETTEXT" >&6; } 6652else 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6654$as_echo "no" >&6; } 6655fi 6656 6657 rm -f messages.po 6658 6659 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 6660 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 6661 *) XGETTEXT_015=$XGETTEXT ;; 6662 esac 6663 6664 6665 6666# Prepare PATH_SEPARATOR. 6667# The user is always right. 6668if test "${PATH_SEPARATOR+set}" != set; then 6669 echo "#! /bin/sh" >conf$$.sh 6670 echo "exit 0" >>conf$$.sh 6671 chmod +x conf$$.sh 6672 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6673 PATH_SEPARATOR=';' 6674 else 6675 PATH_SEPARATOR=: 6676 fi 6677 rm -f conf$$.sh 6678fi 6679 6680# Find out how to test for executable files. Don't use a zero-byte file, 6681# as systems may use methods other than mode bits to determine executability. 6682cat >conf$$.file <<_ASEOF 6683#! /bin/sh 6684exit 0 6685_ASEOF 6686chmod +x conf$$.file 6687if test -x conf$$.file >/dev/null 2>&1; then 6688 ac_executable_p="test -x" 6689else 6690 ac_executable_p="test -f" 6691fi 6692rm -f conf$$.file 6693 6694# Extract the first word of "msgmerge", so it can be a program name with args. 6695set dummy msgmerge; ac_word=$2 6696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6697$as_echo_n "checking for $ac_word... " >&6; } 6698if test "${ac_cv_path_MSGMERGE+set}" = set; then : 6699 $as_echo_n "(cached) " >&6 6700else 6701 case "$MSGMERGE" in 6702 [\\/]* | ?:[\\/]*) 6703 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 6704 ;; 6705 *) 6706 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 6707 for ac_dir in $PATH; do 6708 IFS="$ac_save_IFS" 6709 test -z "$ac_dir" && ac_dir=. 6710 for ac_exec_ext in '' $ac_executable_extensions; do 6711 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 6712 echo "$as_me: trying $ac_dir/$ac_word..." >&5 6713 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 6714 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 6715 break 2 6716 fi 6717 fi 6718 done 6719 done 6720 IFS="$ac_save_IFS" 6721 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 6722 ;; 6723esac 6724fi 6725MSGMERGE="$ac_cv_path_MSGMERGE" 6726if test "$MSGMERGE" != ":"; then 6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 6728$as_echo "$MSGMERGE" >&6; } 6729else 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6731$as_echo "no" >&6; } 6732fi 6733 6734 6735 test -n "$localedir" || localedir='${datadir}/locale' 6736 6737 6738 ac_config_commands="$ac_config_commands po-directories" 6739 6740 6741 6742 if test "X$prefix" = "XNONE"; then 6743 acl_final_prefix="$ac_default_prefix" 6744 else 6745 acl_final_prefix="$prefix" 6746 fi 6747 if test "X$exec_prefix" = "XNONE"; then 6748 acl_final_exec_prefix='${prefix}' 6749 else 6750 acl_final_exec_prefix="$exec_prefix" 6751 fi 6752 acl_save_prefix="$prefix" 6753 prefix="$acl_final_prefix" 6754 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 6755 prefix="$acl_save_prefix" 6756 6757 6758# Check whether --with-gnu-ld was given. 6759if test "${with_gnu_ld+set}" = set; then : 6760 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6761else 6762 with_gnu_ld=no 6763fi 6764 6765# Prepare PATH_SEPARATOR. 6766# The user is always right. 6767if test "${PATH_SEPARATOR+set}" != set; then 6768 echo "#! /bin/sh" >conf$$.sh 6769 echo "exit 0" >>conf$$.sh 6770 chmod +x conf$$.sh 6771 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6772 PATH_SEPARATOR=';' 6773 else 6774 PATH_SEPARATOR=: 6775 fi 6776 rm -f conf$$.sh 6777fi 6778ac_prog=ld 6779if test "$GCC" = yes; then 6780 # Check if gcc -print-prog-name=ld gives a path. 6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 6782$as_echo_n "checking for ld used by GCC... " >&6; } 6783 case $host in 6784 *-*-mingw*) 6785 # gcc leaves a trailing carriage return which upsets mingw 6786 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6787 *) 6788 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6789 esac 6790 case $ac_prog in 6791 # Accept absolute paths. 6792 [\\/]* | [A-Za-z]:[\\/]*) 6793 re_direlt='/[^/][^/]*/\.\./' 6794 # Canonicalize the path of ld 6795 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 6796 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 6797 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 6798 done 6799 test -z "$LD" && LD="$ac_prog" 6800 ;; 6801 "") 6802 # If it fails, then pretend we aren't using GCC. 6803 ac_prog=ld 6804 ;; 6805 *) 6806 # If it is relative, then search for the first ld in PATH. 6807 with_gnu_ld=unknown 6808 ;; 6809 esac 6810elif test "$with_gnu_ld" = yes; then 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6812$as_echo_n "checking for GNU ld... " >&6; } 6813else 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6815$as_echo_n "checking for non-GNU ld... " >&6; } 6816fi 6817if test "${acl_cv_path_LD+set}" = set; then : 6818 $as_echo_n "(cached) " >&6 6819else 6820 if test -z "$LD"; then 6821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 6822 for ac_dir in $PATH; do 6823 test -z "$ac_dir" && ac_dir=. 6824 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6825 acl_cv_path_LD="$ac_dir/$ac_prog" 6826 # Check to see if the program is GNU ld. I'd rather use --version, 6827 # but apparently some GNU ld's only accept -v. 6828 # Break only if it was the GNU/non-GNU ld that we prefer. 6829 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 6830 *GNU* | *'with BFD'*) 6831 test "$with_gnu_ld" != no && break ;; 6832 *) 6833 test "$with_gnu_ld" != yes && break ;; 6834 esac 6835 fi 6836 done 6837 IFS="$ac_save_ifs" 6838else 6839 acl_cv_path_LD="$LD" # Let the user override the test with a path. 6840fi 6841fi 6842 6843LD="$acl_cv_path_LD" 6844if test -n "$LD"; then 6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6846$as_echo "$LD" >&6; } 6847else 6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6849$as_echo "no" >&6; } 6850fi 6851test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6853$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6854if test "${acl_cv_prog_gnu_ld+set}" = set; then : 6855 $as_echo_n "(cached) " >&6 6856else 6857 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 6858case `$LD -v 2>&1 </dev/null` in 6859*GNU* | *'with BFD'*) 6860 acl_cv_prog_gnu_ld=yes ;; 6861*) 6862 acl_cv_prog_gnu_ld=no ;; 6863esac 6864fi 6865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 6866$as_echo "$acl_cv_prog_gnu_ld" >&6; } 6867with_gnu_ld=$acl_cv_prog_gnu_ld 6868 6869 6870 6871 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 6873$as_echo_n "checking for shared library run path origin... " >&6; } 6874if test "${acl_cv_rpath+set}" = set; then : 6875 $as_echo_n "(cached) " >&6 6876else 6877 6878 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 6879 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 6880 . ./conftest.sh 6881 rm -f ./conftest.sh 6882 acl_cv_rpath=done 6883 6884fi 6885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 6886$as_echo "$acl_cv_rpath" >&6; } 6887 wl="$acl_cv_wl" 6888 libext="$acl_cv_libext" 6889 shlibext="$acl_cv_shlibext" 6890 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 6891 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 6892 hardcode_direct="$acl_cv_hardcode_direct" 6893 hardcode_minus_L="$acl_cv_hardcode_minus_L" 6894 # Check whether --enable-rpath was given. 6895if test "${enable_rpath+set}" = set; then : 6896 enableval=$enable_rpath; : 6897else 6898 enable_rpath=yes 6899fi 6900 6901 6902 6903 acl_libdirstem=lib 6904 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 6905 if test -n "$searchpath"; then 6906 acl_save_IFS="${IFS= }"; IFS=":" 6907 for searchdir in $searchpath; do 6908 if test -d "$searchdir"; then 6909 case "$searchdir" in 6910 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 6911 *) searchdir=`cd "$searchdir" && pwd` 6912 case "$searchdir" in 6913 */lib64 ) acl_libdirstem=lib64 ;; 6914 esac ;; 6915 esac 6916 fi 6917 done 6918 IFS="$acl_save_IFS" 6919 fi 6920 6921 6922 6923 6924 6925 6926 6927 6928 use_additional=yes 6929 6930 acl_save_prefix="$prefix" 6931 prefix="$acl_final_prefix" 6932 acl_save_exec_prefix="$exec_prefix" 6933 exec_prefix="$acl_final_exec_prefix" 6934 6935 eval additional_includedir=\"$includedir\" 6936 eval additional_libdir=\"$libdir\" 6937 6938 exec_prefix="$acl_save_exec_prefix" 6939 prefix="$acl_save_prefix" 6940 6941 6942# Check whether --with-libiconv-prefix was given. 6943if test "${with_libiconv_prefix+set}" = set; then : 6944 withval=$with_libiconv_prefix; 6945 if test "X$withval" = "Xno"; then 6946 use_additional=no 6947 else 6948 if test "X$withval" = "X"; then 6949 6950 acl_save_prefix="$prefix" 6951 prefix="$acl_final_prefix" 6952 acl_save_exec_prefix="$exec_prefix" 6953 exec_prefix="$acl_final_exec_prefix" 6954 6955 eval additional_includedir=\"$includedir\" 6956 eval additional_libdir=\"$libdir\" 6957 6958 exec_prefix="$acl_save_exec_prefix" 6959 prefix="$acl_save_prefix" 6960 6961 else 6962 additional_includedir="$withval/include" 6963 additional_libdir="$withval/$acl_libdirstem" 6964 fi 6965 fi 6966 6967fi 6968 6969 LIBICONV= 6970 LTLIBICONV= 6971 INCICONV= 6972 rpathdirs= 6973 ltrpathdirs= 6974 names_already_handled= 6975 names_next_round='iconv ' 6976 while test -n "$names_next_round"; do 6977 names_this_round="$names_next_round" 6978 names_next_round= 6979 for name in $names_this_round; do 6980 already_handled= 6981 for n in $names_already_handled; do 6982 if test "$n" = "$name"; then 6983 already_handled=yes 6984 break 6985 fi 6986 done 6987 if test -z "$already_handled"; then 6988 names_already_handled="$names_already_handled $name" 6989 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 6990 eval value=\"\$HAVE_LIB$uppername\" 6991 if test -n "$value"; then 6992 if test "$value" = yes; then 6993 eval value=\"\$LIB$uppername\" 6994 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 6995 eval value=\"\$LTLIB$uppername\" 6996 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 6997 else 6998 : 6999 fi 7000 else 7001 found_dir= 7002 found_la= 7003 found_so= 7004 found_a= 7005 if test $use_additional = yes; then 7006 if test -n "$shlibext" \ 7007 && { test -f "$additional_libdir/lib$name.$shlibext" \ 7008 || { test "$shlibext" = dll \ 7009 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 7010 found_dir="$additional_libdir" 7011 if test -f "$additional_libdir/lib$name.$shlibext"; then 7012 found_so="$additional_libdir/lib$name.$shlibext" 7013 else 7014 found_so="$additional_libdir/lib$name.dll.a" 7015 fi 7016 if test -f "$additional_libdir/lib$name.la"; then 7017 found_la="$additional_libdir/lib$name.la" 7018 fi 7019 else 7020 if test -f "$additional_libdir/lib$name.$libext"; then 7021 found_dir="$additional_libdir" 7022 found_a="$additional_libdir/lib$name.$libext" 7023 if test -f "$additional_libdir/lib$name.la"; then 7024 found_la="$additional_libdir/lib$name.la" 7025 fi 7026 fi 7027 fi 7028 fi 7029 if test "X$found_dir" = "X"; then 7030 for x in $LDFLAGS $LTLIBICONV; do 7031 7032 acl_save_prefix="$prefix" 7033 prefix="$acl_final_prefix" 7034 acl_save_exec_prefix="$exec_prefix" 7035 exec_prefix="$acl_final_exec_prefix" 7036 eval x=\"$x\" 7037 exec_prefix="$acl_save_exec_prefix" 7038 prefix="$acl_save_prefix" 7039 7040 case "$x" in 7041 -L*) 7042 dir=`echo "X$x" | sed -e 's/^X-L//'` 7043 if test -n "$shlibext" \ 7044 && { test -f "$dir/lib$name.$shlibext" \ 7045 || { test "$shlibext" = dll \ 7046 && test -f "$dir/lib$name.dll.a"; }; }; then 7047 found_dir="$dir" 7048 if test -f "$dir/lib$name.$shlibext"; then 7049 found_so="$dir/lib$name.$shlibext" 7050 else 7051 found_so="$dir/lib$name.dll.a" 7052 fi 7053 if test -f "$dir/lib$name.la"; then 7054 found_la="$dir/lib$name.la" 7055 fi 7056 else 7057 if test -f "$dir/lib$name.$libext"; then 7058 found_dir="$dir" 7059 found_a="$dir/lib$name.$libext" 7060 if test -f "$dir/lib$name.la"; then 7061 found_la="$dir/lib$name.la" 7062 fi 7063 fi 7064 fi 7065 ;; 7066 esac 7067 if test "X$found_dir" != "X"; then 7068 break 7069 fi 7070 done 7071 fi 7072 if test "X$found_dir" != "X"; then 7073 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 7074 if test "X$found_so" != "X"; then 7075 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 7076 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7077 else 7078 haveit= 7079 for x in $ltrpathdirs; do 7080 if test "X$x" = "X$found_dir"; then 7081 haveit=yes 7082 break 7083 fi 7084 done 7085 if test -z "$haveit"; then 7086 ltrpathdirs="$ltrpathdirs $found_dir" 7087 fi 7088 if test "$hardcode_direct" = yes; then 7089 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7090 else 7091 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 7092 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7093 haveit= 7094 for x in $rpathdirs; do 7095 if test "X$x" = "X$found_dir"; then 7096 haveit=yes 7097 break 7098 fi 7099 done 7100 if test -z "$haveit"; then 7101 rpathdirs="$rpathdirs $found_dir" 7102 fi 7103 else 7104 haveit= 7105 for x in $LDFLAGS $LIBICONV; do 7106 7107 acl_save_prefix="$prefix" 7108 prefix="$acl_final_prefix" 7109 acl_save_exec_prefix="$exec_prefix" 7110 exec_prefix="$acl_final_exec_prefix" 7111 eval x=\"$x\" 7112 exec_prefix="$acl_save_exec_prefix" 7113 prefix="$acl_save_prefix" 7114 7115 if test "X$x" = "X-L$found_dir"; then 7116 haveit=yes 7117 break 7118 fi 7119 done 7120 if test -z "$haveit"; then 7121 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 7122 fi 7123 if test "$hardcode_minus_L" != no; then 7124 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7125 else 7126 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 7127 fi 7128 fi 7129 fi 7130 fi 7131 else 7132 if test "X$found_a" != "X"; then 7133 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 7134 else 7135 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 7136 fi 7137 fi 7138 additional_includedir= 7139 case "$found_dir" in 7140 */$acl_libdirstem | */$acl_libdirstem/) 7141 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 7142 additional_includedir="$basedir/include" 7143 ;; 7144 esac 7145 if test "X$additional_includedir" != "X"; then 7146 if test "X$additional_includedir" != "X/usr/include"; then 7147 haveit= 7148 if test "X$additional_includedir" = "X/usr/local/include"; then 7149 if test -n "$GCC"; then 7150 case $host_os in 7151 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 7152 esac 7153 fi 7154 fi 7155 if test -z "$haveit"; then 7156 for x in $CPPFLAGS $INCICONV; do 7157 7158 acl_save_prefix="$prefix" 7159 prefix="$acl_final_prefix" 7160 acl_save_exec_prefix="$exec_prefix" 7161 exec_prefix="$acl_final_exec_prefix" 7162 eval x=\"$x\" 7163 exec_prefix="$acl_save_exec_prefix" 7164 prefix="$acl_save_prefix" 7165 7166 if test "X$x" = "X-I$additional_includedir"; then 7167 haveit=yes 7168 break 7169 fi 7170 done 7171 if test -z "$haveit"; then 7172 if test -d "$additional_includedir"; then 7173 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 7174 fi 7175 fi 7176 fi 7177 fi 7178 fi 7179 if test -n "$found_la"; then 7180 save_libdir="$libdir" 7181 case "$found_la" in 7182 */* | *\\*) . "$found_la" ;; 7183 *) . "./$found_la" ;; 7184 esac 7185 libdir="$save_libdir" 7186 for dep in $dependency_libs; do 7187 case "$dep" in 7188 -L*) 7189 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 7190 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 7191 haveit= 7192 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 7193 if test -n "$GCC"; then 7194 case $host_os in 7195 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 7196 esac 7197 fi 7198 fi 7199 if test -z "$haveit"; then 7200 haveit= 7201 for x in $LDFLAGS $LIBICONV; do 7202 7203 acl_save_prefix="$prefix" 7204 prefix="$acl_final_prefix" 7205 acl_save_exec_prefix="$exec_prefix" 7206 exec_prefix="$acl_final_exec_prefix" 7207 eval x=\"$x\" 7208 exec_prefix="$acl_save_exec_prefix" 7209 prefix="$acl_save_prefix" 7210 7211 if test "X$x" = "X-L$additional_libdir"; then 7212 haveit=yes 7213 break 7214 fi 7215 done 7216 if test -z "$haveit"; then 7217 if test -d "$additional_libdir"; then 7218 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 7219 fi 7220 fi 7221 haveit= 7222 for x in $LDFLAGS $LTLIBICONV; do 7223 7224 acl_save_prefix="$prefix" 7225 prefix="$acl_final_prefix" 7226 acl_save_exec_prefix="$exec_prefix" 7227 exec_prefix="$acl_final_exec_prefix" 7228 eval x=\"$x\" 7229 exec_prefix="$acl_save_exec_prefix" 7230 prefix="$acl_save_prefix" 7231 7232 if test "X$x" = "X-L$additional_libdir"; then 7233 haveit=yes 7234 break 7235 fi 7236 done 7237 if test -z "$haveit"; then 7238 if test -d "$additional_libdir"; then 7239 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 7240 fi 7241 fi 7242 fi 7243 fi 7244 ;; 7245 -R*) 7246 dir=`echo "X$dep" | sed -e 's/^X-R//'` 7247 if test "$enable_rpath" != no; then 7248 haveit= 7249 for x in $rpathdirs; do 7250 if test "X$x" = "X$dir"; then 7251 haveit=yes 7252 break 7253 fi 7254 done 7255 if test -z "$haveit"; then 7256 rpathdirs="$rpathdirs $dir" 7257 fi 7258 haveit= 7259 for x in $ltrpathdirs; do 7260 if test "X$x" = "X$dir"; then 7261 haveit=yes 7262 break 7263 fi 7264 done 7265 if test -z "$haveit"; then 7266 ltrpathdirs="$ltrpathdirs $dir" 7267 fi 7268 fi 7269 ;; 7270 -l*) 7271 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 7272 ;; 7273 *.la) 7274 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 7275 ;; 7276 *) 7277 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 7278 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 7279 ;; 7280 esac 7281 done 7282 fi 7283 else 7284 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 7285 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 7286 fi 7287 fi 7288 fi 7289 done 7290 done 7291 if test "X$rpathdirs" != "X"; then 7292 if test -n "$hardcode_libdir_separator"; then 7293 alldirs= 7294 for found_dir in $rpathdirs; do 7295 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 7296 done 7297 acl_save_libdir="$libdir" 7298 libdir="$alldirs" 7299 eval flag=\"$hardcode_libdir_flag_spec\" 7300 libdir="$acl_save_libdir" 7301 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 7302 else 7303 for found_dir in $rpathdirs; do 7304 acl_save_libdir="$libdir" 7305 libdir="$found_dir" 7306 eval flag=\"$hardcode_libdir_flag_spec\" 7307 libdir="$acl_save_libdir" 7308 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 7309 done 7310 fi 7311 fi 7312 if test "X$ltrpathdirs" != "X"; then 7313 for found_dir in $ltrpathdirs; do 7314 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 7315 done 7316 fi 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 7343$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 7344if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then : 7345 $as_echo_n "(cached) " >&6 7346else 7347 gt_save_LIBS="$LIBS" 7348 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7350/* end confdefs.h. */ 7351#include <CoreFoundation/CFPreferences.h> 7352int 7353main () 7354{ 7355CFPreferencesCopyAppValue(NULL, NULL) 7356 ; 7357 return 0; 7358} 7359_ACEOF 7360if ac_fn_c_try_link "$LINENO"; then : 7361 gt_cv_func_CFPreferencesCopyAppValue=yes 7362else 7363 gt_cv_func_CFPreferencesCopyAppValue=no 7364fi 7365rm -f core conftest.err conftest.$ac_objext \ 7366 conftest$ac_exeext conftest.$ac_ext 7367 LIBS="$gt_save_LIBS" 7368fi 7369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 7370$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 7371 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 7372 7373$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 7374 7375 fi 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 7377$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 7378if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then : 7379 $as_echo_n "(cached) " >&6 7380else 7381 gt_save_LIBS="$LIBS" 7382 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7384/* end confdefs.h. */ 7385#include <CoreFoundation/CFLocale.h> 7386int 7387main () 7388{ 7389CFLocaleCopyCurrent(); 7390 ; 7391 return 0; 7392} 7393_ACEOF 7394if ac_fn_c_try_link "$LINENO"; then : 7395 gt_cv_func_CFLocaleCopyCurrent=yes 7396else 7397 gt_cv_func_CFLocaleCopyCurrent=no 7398fi 7399rm -f core conftest.err conftest.$ac_objext \ 7400 conftest$ac_exeext conftest.$ac_ext 7401 LIBS="$gt_save_LIBS" 7402fi 7403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 7404$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 7405 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 7406 7407$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 7408 7409 fi 7410 INTL_MACOSX_LIBS= 7411 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 7412 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 7413 fi 7414 7415 7416 7417 7418 7419 7420 LIBINTL= 7421 LTLIBINTL= 7422 POSUB= 7423 7424 case " $gt_needs " in 7425 *" need-formatstring-macros "*) gt_api_version=3 ;; 7426 *" need-ngettext "*) gt_api_version=2 ;; 7427 *) gt_api_version=1 ;; 7428 esac 7429 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 7430 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 7431 7432 if test "$USE_NLS" = "yes"; then 7433 gt_use_preinstalled_gnugettext=no 7434 7435 7436 if test $gt_api_version -ge 3; then 7437 gt_revision_test_code=' 7438#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 7439#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 7440#endif 7441typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 7442' 7443 else 7444 gt_revision_test_code= 7445 fi 7446 if test $gt_api_version -ge 2; then 7447 gt_expression_test_code=' + * ngettext ("", "", 0)' 7448 else 7449 gt_expression_test_code= 7450 fi 7451 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 7453$as_echo_n "checking for GNU gettext in libc... " >&6; } 7454if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then : 7455 $as_echo_n "(cached) " >&6 7456else 7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7458/* end confdefs.h. */ 7459#include <libintl.h> 7460$gt_revision_test_code 7461extern int _nl_msg_cat_cntr; 7462extern int *_nl_domain_bindings; 7463int 7464main () 7465{ 7466bindtextdomain ("", ""); 7467return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 7468 ; 7469 return 0; 7470} 7471_ACEOF 7472if ac_fn_c_try_link "$LINENO"; then : 7473 eval "$gt_func_gnugettext_libc=yes" 7474else 7475 eval "$gt_func_gnugettext_libc=no" 7476fi 7477rm -f core conftest.err conftest.$ac_objext \ 7478 conftest$ac_exeext conftest.$ac_ext 7479fi 7480eval ac_res=\$$gt_func_gnugettext_libc 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7482$as_echo "$ac_res" >&6; } 7483 7484 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 7485 7486 7487 7488 7489 7490 am_save_CPPFLAGS="$CPPFLAGS" 7491 7492 for element in $INCICONV; do 7493 haveit= 7494 for x in $CPPFLAGS; do 7495 7496 acl_save_prefix="$prefix" 7497 prefix="$acl_final_prefix" 7498 acl_save_exec_prefix="$exec_prefix" 7499 exec_prefix="$acl_final_exec_prefix" 7500 eval x=\"$x\" 7501 exec_prefix="$acl_save_exec_prefix" 7502 prefix="$acl_save_prefix" 7503 7504 if test "X$x" = "X$element"; then 7505 haveit=yes 7506 break 7507 fi 7508 done 7509 if test -z "$haveit"; then 7510 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 7511 fi 7512 done 7513 7514 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 7516$as_echo_n "checking for iconv... " >&6; } 7517if test "${am_cv_func_iconv+set}" = set; then : 7518 $as_echo_n "(cached) " >&6 7519else 7520 7521 am_cv_func_iconv="no, consider installing GNU libiconv" 7522 am_cv_lib_iconv=no 7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7524/* end confdefs.h. */ 7525#include <stdlib.h> 7526#include <iconv.h> 7527int 7528main () 7529{ 7530iconv_t cd = iconv_open("",""); 7531 iconv(cd,NULL,NULL,NULL,NULL); 7532 iconv_close(cd); 7533 ; 7534 return 0; 7535} 7536_ACEOF 7537if ac_fn_c_try_link "$LINENO"; then : 7538 am_cv_func_iconv=yes 7539fi 7540rm -f core conftest.err conftest.$ac_objext \ 7541 conftest$ac_exeext conftest.$ac_ext 7542 if test "$am_cv_func_iconv" != yes; then 7543 am_save_LIBS="$LIBS" 7544 LIBS="$LIBS $LIBICONV" 7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7546/* end confdefs.h. */ 7547#include <stdlib.h> 7548#include <iconv.h> 7549int 7550main () 7551{ 7552iconv_t cd = iconv_open("",""); 7553 iconv(cd,NULL,NULL,NULL,NULL); 7554 iconv_close(cd); 7555 ; 7556 return 0; 7557} 7558_ACEOF 7559if ac_fn_c_try_link "$LINENO"; then : 7560 am_cv_lib_iconv=yes 7561 am_cv_func_iconv=yes 7562fi 7563rm -f core conftest.err conftest.$ac_objext \ 7564 conftest$ac_exeext conftest.$ac_ext 7565 LIBS="$am_save_LIBS" 7566 fi 7567 7568fi 7569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 7570$as_echo "$am_cv_func_iconv" >&6; } 7571 if test "$am_cv_func_iconv" = yes; then 7572 7573$as_echo "#define HAVE_ICONV 1" >>confdefs.h 7574 7575 fi 7576 if test "$am_cv_lib_iconv" = yes; then 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 7578$as_echo_n "checking how to link with libiconv... " >&6; } 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 7580$as_echo "$LIBICONV" >&6; } 7581 else 7582 CPPFLAGS="$am_save_CPPFLAGS" 7583 LIBICONV= 7584 LTLIBICONV= 7585 fi 7586 7587 7588 7589 7590 7591 7592 7593 use_additional=yes 7594 7595 acl_save_prefix="$prefix" 7596 prefix="$acl_final_prefix" 7597 acl_save_exec_prefix="$exec_prefix" 7598 exec_prefix="$acl_final_exec_prefix" 7599 7600 eval additional_includedir=\"$includedir\" 7601 eval additional_libdir=\"$libdir\" 7602 7603 exec_prefix="$acl_save_exec_prefix" 7604 prefix="$acl_save_prefix" 7605 7606 7607# Check whether --with-libintl-prefix was given. 7608if test "${with_libintl_prefix+set}" = set; then : 7609 withval=$with_libintl_prefix; 7610 if test "X$withval" = "Xno"; then 7611 use_additional=no 7612 else 7613 if test "X$withval" = "X"; then 7614 7615 acl_save_prefix="$prefix" 7616 prefix="$acl_final_prefix" 7617 acl_save_exec_prefix="$exec_prefix" 7618 exec_prefix="$acl_final_exec_prefix" 7619 7620 eval additional_includedir=\"$includedir\" 7621 eval additional_libdir=\"$libdir\" 7622 7623 exec_prefix="$acl_save_exec_prefix" 7624 prefix="$acl_save_prefix" 7625 7626 else 7627 additional_includedir="$withval/include" 7628 additional_libdir="$withval/$acl_libdirstem" 7629 fi 7630 fi 7631 7632fi 7633 7634 LIBINTL= 7635 LTLIBINTL= 7636 INCINTL= 7637 rpathdirs= 7638 ltrpathdirs= 7639 names_already_handled= 7640 names_next_round='intl ' 7641 while test -n "$names_next_round"; do 7642 names_this_round="$names_next_round" 7643 names_next_round= 7644 for name in $names_this_round; do 7645 already_handled= 7646 for n in $names_already_handled; do 7647 if test "$n" = "$name"; then 7648 already_handled=yes 7649 break 7650 fi 7651 done 7652 if test -z "$already_handled"; then 7653 names_already_handled="$names_already_handled $name" 7654 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 7655 eval value=\"\$HAVE_LIB$uppername\" 7656 if test -n "$value"; then 7657 if test "$value" = yes; then 7658 eval value=\"\$LIB$uppername\" 7659 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 7660 eval value=\"\$LTLIB$uppername\" 7661 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 7662 else 7663 : 7664 fi 7665 else 7666 found_dir= 7667 found_la= 7668 found_so= 7669 found_a= 7670 if test $use_additional = yes; then 7671 if test -n "$shlibext" \ 7672 && { test -f "$additional_libdir/lib$name.$shlibext" \ 7673 || { test "$shlibext" = dll \ 7674 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 7675 found_dir="$additional_libdir" 7676 if test -f "$additional_libdir/lib$name.$shlibext"; then 7677 found_so="$additional_libdir/lib$name.$shlibext" 7678 else 7679 found_so="$additional_libdir/lib$name.dll.a" 7680 fi 7681 if test -f "$additional_libdir/lib$name.la"; then 7682 found_la="$additional_libdir/lib$name.la" 7683 fi 7684 else 7685 if test -f "$additional_libdir/lib$name.$libext"; then 7686 found_dir="$additional_libdir" 7687 found_a="$additional_libdir/lib$name.$libext" 7688 if test -f "$additional_libdir/lib$name.la"; then 7689 found_la="$additional_libdir/lib$name.la" 7690 fi 7691 fi 7692 fi 7693 fi 7694 if test "X$found_dir" = "X"; then 7695 for x in $LDFLAGS $LTLIBINTL; do 7696 7697 acl_save_prefix="$prefix" 7698 prefix="$acl_final_prefix" 7699 acl_save_exec_prefix="$exec_prefix" 7700 exec_prefix="$acl_final_exec_prefix" 7701 eval x=\"$x\" 7702 exec_prefix="$acl_save_exec_prefix" 7703 prefix="$acl_save_prefix" 7704 7705 case "$x" in 7706 -L*) 7707 dir=`echo "X$x" | sed -e 's/^X-L//'` 7708 if test -n "$shlibext" \ 7709 && { test -f "$dir/lib$name.$shlibext" \ 7710 || { test "$shlibext" = dll \ 7711 && test -f "$dir/lib$name.dll.a"; }; }; then 7712 found_dir="$dir" 7713 if test -f "$dir/lib$name.$shlibext"; then 7714 found_so="$dir/lib$name.$shlibext" 7715 else 7716 found_so="$dir/lib$name.dll.a" 7717 fi 7718 if test -f "$dir/lib$name.la"; then 7719 found_la="$dir/lib$name.la" 7720 fi 7721 else 7722 if test -f "$dir/lib$name.$libext"; then 7723 found_dir="$dir" 7724 found_a="$dir/lib$name.$libext" 7725 if test -f "$dir/lib$name.la"; then 7726 found_la="$dir/lib$name.la" 7727 fi 7728 fi 7729 fi 7730 ;; 7731 esac 7732 if test "X$found_dir" != "X"; then 7733 break 7734 fi 7735 done 7736 fi 7737 if test "X$found_dir" != "X"; then 7738 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 7739 if test "X$found_so" != "X"; then 7740 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 7741 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 7742 else 7743 haveit= 7744 for x in $ltrpathdirs; do 7745 if test "X$x" = "X$found_dir"; then 7746 haveit=yes 7747 break 7748 fi 7749 done 7750 if test -z "$haveit"; then 7751 ltrpathdirs="$ltrpathdirs $found_dir" 7752 fi 7753 if test "$hardcode_direct" = yes; then 7754 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 7755 else 7756 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 7757 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 7758 haveit= 7759 for x in $rpathdirs; do 7760 if test "X$x" = "X$found_dir"; then 7761 haveit=yes 7762 break 7763 fi 7764 done 7765 if test -z "$haveit"; then 7766 rpathdirs="$rpathdirs $found_dir" 7767 fi 7768 else 7769 haveit= 7770 for x in $LDFLAGS $LIBINTL; do 7771 7772 acl_save_prefix="$prefix" 7773 prefix="$acl_final_prefix" 7774 acl_save_exec_prefix="$exec_prefix" 7775 exec_prefix="$acl_final_exec_prefix" 7776 eval x=\"$x\" 7777 exec_prefix="$acl_save_exec_prefix" 7778 prefix="$acl_save_prefix" 7779 7780 if test "X$x" = "X-L$found_dir"; then 7781 haveit=yes 7782 break 7783 fi 7784 done 7785 if test -z "$haveit"; then 7786 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 7787 fi 7788 if test "$hardcode_minus_L" != no; then 7789 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 7790 else 7791 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 7792 fi 7793 fi 7794 fi 7795 fi 7796 else 7797 if test "X$found_a" != "X"; then 7798 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 7799 else 7800 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 7801 fi 7802 fi 7803 additional_includedir= 7804 case "$found_dir" in 7805 */$acl_libdirstem | */$acl_libdirstem/) 7806 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 7807 additional_includedir="$basedir/include" 7808 ;; 7809 esac 7810 if test "X$additional_includedir" != "X"; then 7811 if test "X$additional_includedir" != "X/usr/include"; then 7812 haveit= 7813 if test "X$additional_includedir" = "X/usr/local/include"; then 7814 if test -n "$GCC"; then 7815 case $host_os in 7816 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 7817 esac 7818 fi 7819 fi 7820 if test -z "$haveit"; then 7821 for x in $CPPFLAGS $INCINTL; do 7822 7823 acl_save_prefix="$prefix" 7824 prefix="$acl_final_prefix" 7825 acl_save_exec_prefix="$exec_prefix" 7826 exec_prefix="$acl_final_exec_prefix" 7827 eval x=\"$x\" 7828 exec_prefix="$acl_save_exec_prefix" 7829 prefix="$acl_save_prefix" 7830 7831 if test "X$x" = "X-I$additional_includedir"; then 7832 haveit=yes 7833 break 7834 fi 7835 done 7836 if test -z "$haveit"; then 7837 if test -d "$additional_includedir"; then 7838 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 7839 fi 7840 fi 7841 fi 7842 fi 7843 fi 7844 if test -n "$found_la"; then 7845 save_libdir="$libdir" 7846 case "$found_la" in 7847 */* | *\\*) . "$found_la" ;; 7848 *) . "./$found_la" ;; 7849 esac 7850 libdir="$save_libdir" 7851 for dep in $dependency_libs; do 7852 case "$dep" in 7853 -L*) 7854 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 7855 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 7856 haveit= 7857 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 7858 if test -n "$GCC"; then 7859 case $host_os in 7860 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 7861 esac 7862 fi 7863 fi 7864 if test -z "$haveit"; then 7865 haveit= 7866 for x in $LDFLAGS $LIBINTL; do 7867 7868 acl_save_prefix="$prefix" 7869 prefix="$acl_final_prefix" 7870 acl_save_exec_prefix="$exec_prefix" 7871 exec_prefix="$acl_final_exec_prefix" 7872 eval x=\"$x\" 7873 exec_prefix="$acl_save_exec_prefix" 7874 prefix="$acl_save_prefix" 7875 7876 if test "X$x" = "X-L$additional_libdir"; then 7877 haveit=yes 7878 break 7879 fi 7880 done 7881 if test -z "$haveit"; then 7882 if test -d "$additional_libdir"; then 7883 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 7884 fi 7885 fi 7886 haveit= 7887 for x in $LDFLAGS $LTLIBINTL; do 7888 7889 acl_save_prefix="$prefix" 7890 prefix="$acl_final_prefix" 7891 acl_save_exec_prefix="$exec_prefix" 7892 exec_prefix="$acl_final_exec_prefix" 7893 eval x=\"$x\" 7894 exec_prefix="$acl_save_exec_prefix" 7895 prefix="$acl_save_prefix" 7896 7897 if test "X$x" = "X-L$additional_libdir"; then 7898 haveit=yes 7899 break 7900 fi 7901 done 7902 if test -z "$haveit"; then 7903 if test -d "$additional_libdir"; then 7904 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 7905 fi 7906 fi 7907 fi 7908 fi 7909 ;; 7910 -R*) 7911 dir=`echo "X$dep" | sed -e 's/^X-R//'` 7912 if test "$enable_rpath" != no; then 7913 haveit= 7914 for x in $rpathdirs; do 7915 if test "X$x" = "X$dir"; then 7916 haveit=yes 7917 break 7918 fi 7919 done 7920 if test -z "$haveit"; then 7921 rpathdirs="$rpathdirs $dir" 7922 fi 7923 haveit= 7924 for x in $ltrpathdirs; do 7925 if test "X$x" = "X$dir"; then 7926 haveit=yes 7927 break 7928 fi 7929 done 7930 if test -z "$haveit"; then 7931 ltrpathdirs="$ltrpathdirs $dir" 7932 fi 7933 fi 7934 ;; 7935 -l*) 7936 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 7937 ;; 7938 *.la) 7939 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 7940 ;; 7941 *) 7942 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 7943 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 7944 ;; 7945 esac 7946 done 7947 fi 7948 else 7949 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 7950 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 7951 fi 7952 fi 7953 fi 7954 done 7955 done 7956 if test "X$rpathdirs" != "X"; then 7957 if test -n "$hardcode_libdir_separator"; then 7958 alldirs= 7959 for found_dir in $rpathdirs; do 7960 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 7961 done 7962 acl_save_libdir="$libdir" 7963 libdir="$alldirs" 7964 eval flag=\"$hardcode_libdir_flag_spec\" 7965 libdir="$acl_save_libdir" 7966 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 7967 else 7968 for found_dir in $rpathdirs; do 7969 acl_save_libdir="$libdir" 7970 libdir="$found_dir" 7971 eval flag=\"$hardcode_libdir_flag_spec\" 7972 libdir="$acl_save_libdir" 7973 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 7974 done 7975 fi 7976 fi 7977 if test "X$ltrpathdirs" != "X"; then 7978 for found_dir in $ltrpathdirs; do 7979 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 7980 done 7981 fi 7982 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 7984$as_echo_n "checking for GNU gettext in libintl... " >&6; } 7985if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then : 7986 $as_echo_n "(cached) " >&6 7987else 7988 gt_save_CPPFLAGS="$CPPFLAGS" 7989 CPPFLAGS="$CPPFLAGS $INCINTL" 7990 gt_save_LIBS="$LIBS" 7991 LIBS="$LIBS $LIBINTL" 7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7993/* end confdefs.h. */ 7994#include <libintl.h> 7995$gt_revision_test_code 7996extern int _nl_msg_cat_cntr; 7997extern 7998#ifdef __cplusplus 7999"C" 8000#endif 8001const char *_nl_expand_alias (const char *); 8002int 8003main () 8004{ 8005bindtextdomain ("", ""); 8006return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 8007 ; 8008 return 0; 8009} 8010_ACEOF 8011if ac_fn_c_try_link "$LINENO"; then : 8012 eval "$gt_func_gnugettext_libintl=yes" 8013else 8014 eval "$gt_func_gnugettext_libintl=no" 8015fi 8016rm -f core conftest.err conftest.$ac_objext \ 8017 conftest$ac_exeext conftest.$ac_ext 8018 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 8019 LIBS="$LIBS $LIBICONV" 8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8021/* end confdefs.h. */ 8022#include <libintl.h> 8023$gt_revision_test_code 8024extern int _nl_msg_cat_cntr; 8025extern 8026#ifdef __cplusplus 8027"C" 8028#endif 8029const char *_nl_expand_alias (const char *); 8030int 8031main () 8032{ 8033bindtextdomain ("", ""); 8034return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 8035 ; 8036 return 0; 8037} 8038_ACEOF 8039if ac_fn_c_try_link "$LINENO"; then : 8040 LIBINTL="$LIBINTL $LIBICONV" 8041 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 8042 eval "$gt_func_gnugettext_libintl=yes" 8043 8044fi 8045rm -f core conftest.err conftest.$ac_objext \ 8046 conftest$ac_exeext conftest.$ac_ext 8047 fi 8048 CPPFLAGS="$gt_save_CPPFLAGS" 8049 LIBS="$gt_save_LIBS" 8050fi 8051eval ac_res=\$$gt_func_gnugettext_libintl 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8053$as_echo "$ac_res" >&6; } 8054 fi 8055 8056 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 8057 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 8058 && test "$PACKAGE" != gettext-runtime \ 8059 && test "$PACKAGE" != gettext-tools; }; then 8060 gt_use_preinstalled_gnugettext=yes 8061 else 8062 LIBINTL= 8063 LTLIBINTL= 8064 INCINTL= 8065 fi 8066 8067 8068 8069 if test -n "$INTL_MACOSX_LIBS"; then 8070 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 8071 || test "$nls_cv_use_gnu_gettext" = "yes"; then 8072 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 8073 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 8074 fi 8075 fi 8076 8077 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 8078 || test "$nls_cv_use_gnu_gettext" = "yes"; then 8079 8080$as_echo "#define ENABLE_NLS 1" >>confdefs.h 8081 8082 else 8083 USE_NLS=no 8084 fi 8085 fi 8086 8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 8088$as_echo_n "checking whether to use NLS... " >&6; } 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 8090$as_echo "$USE_NLS" >&6; } 8091 if test "$USE_NLS" = "yes"; then 8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 8093$as_echo_n "checking where the gettext function comes from... " >&6; } 8094 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 8095 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 8096 gt_source="external libintl" 8097 else 8098 gt_source="libc" 8099 fi 8100 else 8101 gt_source="included intl directory" 8102 fi 8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 8104$as_echo "$gt_source" >&6; } 8105 fi 8106 8107 if test "$USE_NLS" = "yes"; then 8108 8109 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 8110 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 8112$as_echo_n "checking how to link with libintl... " >&6; } 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 8114$as_echo "$LIBINTL" >&6; } 8115 8116 for element in $INCINTL; do 8117 haveit= 8118 for x in $CPPFLAGS; do 8119 8120 acl_save_prefix="$prefix" 8121 prefix="$acl_final_prefix" 8122 acl_save_exec_prefix="$exec_prefix" 8123 exec_prefix="$acl_final_exec_prefix" 8124 eval x=\"$x\" 8125 exec_prefix="$acl_save_exec_prefix" 8126 prefix="$acl_save_prefix" 8127 8128 if test "X$x" = "X$element"; then 8129 haveit=yes 8130 break 8131 fi 8132 done 8133 if test -z "$haveit"; then 8134 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 8135 fi 8136 done 8137 8138 fi 8139 8140 8141$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 8142 8143 8144$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 8145 8146 fi 8147 8148 POSUB=po 8149 fi 8150 8151 8152 8153 INTLLIBS="$LIBINTL" 8154 8155 8156 8157 8158 8159 8160 8161LOCALEDIR=txt 8162 8163 8164ac_header_dirent=no 8165for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8166 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 8168$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 8169if eval "test \"\${$as_ac_Header+set}\"" = set; then : 8170 $as_echo_n "(cached) " >&6 8171else 8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8173/* end confdefs.h. */ 8174#include <sys/types.h> 8175#include <$ac_hdr> 8176 8177int 8178main () 8179{ 8180if ((DIR *) 0) 8181return 0; 8182 ; 8183 return 0; 8184} 8185_ACEOF 8186if ac_fn_c_try_compile "$LINENO"; then : 8187 eval "$as_ac_Header=yes" 8188else 8189 eval "$as_ac_Header=no" 8190fi 8191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8192fi 8193eval ac_res=\$$as_ac_Header 8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8195$as_echo "$ac_res" >&6; } 8196if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8197 cat >>confdefs.h <<_ACEOF 8198#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8199_ACEOF 8200 8201ac_header_dirent=$ac_hdr; break 8202fi 8203 8204done 8205# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8206if test $ac_header_dirent = dirent.h; then 8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8208$as_echo_n "checking for library containing opendir... " >&6; } 8209if test "${ac_cv_search_opendir+set}" = set; then : 8210 $as_echo_n "(cached) " >&6 8211else 8212 ac_func_search_save_LIBS=$LIBS 8213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8214/* end confdefs.h. */ 8215 8216/* Override any GCC internal prototype to avoid an error. 8217 Use char because int might match the return type of a GCC 8218 builtin and then its argument prototype would still apply. */ 8219#ifdef __cplusplus 8220extern "C" 8221#endif 8222char opendir (); 8223int 8224main () 8225{ 8226return opendir (); 8227 ; 8228 return 0; 8229} 8230_ACEOF 8231for ac_lib in '' dir; do 8232 if test -z "$ac_lib"; then 8233 ac_res="none required" 8234 else 8235 ac_res=-l$ac_lib 8236 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8237 fi 8238 if ac_fn_c_try_link "$LINENO"; then : 8239 ac_cv_search_opendir=$ac_res 8240fi 8241rm -f core conftest.err conftest.$ac_objext \ 8242 conftest$ac_exeext 8243 if test "${ac_cv_search_opendir+set}" = set; then : 8244 break 8245fi 8246done 8247if test "${ac_cv_search_opendir+set}" = set; then : 8248 8249else 8250 ac_cv_search_opendir=no 8251fi 8252rm conftest.$ac_ext 8253LIBS=$ac_func_search_save_LIBS 8254fi 8255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8256$as_echo "$ac_cv_search_opendir" >&6; } 8257ac_res=$ac_cv_search_opendir 8258if test "$ac_res" != no; then : 8259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8260 8261fi 8262 8263else 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8265$as_echo_n "checking for library containing opendir... " >&6; } 8266if test "${ac_cv_search_opendir+set}" = set; then : 8267 $as_echo_n "(cached) " >&6 8268else 8269 ac_func_search_save_LIBS=$LIBS 8270cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8271/* end confdefs.h. */ 8272 8273/* Override any GCC internal prototype to avoid an error. 8274 Use char because int might match the return type of a GCC 8275 builtin and then its argument prototype would still apply. */ 8276#ifdef __cplusplus 8277extern "C" 8278#endif 8279char opendir (); 8280int 8281main () 8282{ 8283return opendir (); 8284 ; 8285 return 0; 8286} 8287_ACEOF 8288for ac_lib in '' x; do 8289 if test -z "$ac_lib"; then 8290 ac_res="none required" 8291 else 8292 ac_res=-l$ac_lib 8293 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8294 fi 8295 if ac_fn_c_try_link "$LINENO"; then : 8296 ac_cv_search_opendir=$ac_res 8297fi 8298rm -f core conftest.err conftest.$ac_objext \ 8299 conftest$ac_exeext 8300 if test "${ac_cv_search_opendir+set}" = set; then : 8301 break 8302fi 8303done 8304if test "${ac_cv_search_opendir+set}" = set; then : 8305 8306else 8307 ac_cv_search_opendir=no 8308fi 8309rm conftest.$ac_ext 8310LIBS=$ac_func_search_save_LIBS 8311fi 8312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8313$as_echo "$ac_cv_search_opendir" >&6; } 8314ac_res=$ac_cv_search_opendir 8315if test "$ac_res" != no; then : 8316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8317 8318fi 8319 8320fi 8321 8322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8323$as_echo_n "checking for ANSI C header files... " >&6; } 8324if test "${ac_cv_header_stdc+set}" = set; then : 8325 $as_echo_n "(cached) " >&6 8326else 8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8328/* end confdefs.h. */ 8329#include <stdlib.h> 8330#include <stdarg.h> 8331#include <string.h> 8332#include <float.h> 8333 8334int 8335main () 8336{ 8337 8338 ; 8339 return 0; 8340} 8341_ACEOF 8342if ac_fn_c_try_compile "$LINENO"; then : 8343 ac_cv_header_stdc=yes 8344else 8345 ac_cv_header_stdc=no 8346fi 8347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8348 8349if test $ac_cv_header_stdc = yes; then 8350 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8352/* end confdefs.h. */ 8353#include <string.h> 8354 8355_ACEOF 8356if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8357 $EGREP "memchr" >/dev/null 2>&1; then : 8358 8359else 8360 ac_cv_header_stdc=no 8361fi 8362rm -f conftest* 8363 8364fi 8365 8366if test $ac_cv_header_stdc = yes; then 8367 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8369/* end confdefs.h. */ 8370#include <stdlib.h> 8371 8372_ACEOF 8373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8374 $EGREP "free" >/dev/null 2>&1; then : 8375 8376else 8377 ac_cv_header_stdc=no 8378fi 8379rm -f conftest* 8380 8381fi 8382 8383if test $ac_cv_header_stdc = yes; then 8384 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8385 if test "$cross_compiling" = yes; then : 8386 : 8387else 8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8389/* end confdefs.h. */ 8390#include <ctype.h> 8391#include <stdlib.h> 8392#if ((' ' & 0x0FF) == 0x020) 8393# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8394# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8395#else 8396# define ISLOWER(c) \ 8397 (('a' <= (c) && (c) <= 'i') \ 8398 || ('j' <= (c) && (c) <= 'r') \ 8399 || ('s' <= (c) && (c) <= 'z')) 8400# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8401#endif 8402 8403#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8404int 8405main () 8406{ 8407 int i; 8408 for (i = 0; i < 256; i++) 8409 if (XOR (islower (i), ISLOWER (i)) 8410 || toupper (i) != TOUPPER (i)) 8411 return 2; 8412 return 0; 8413} 8414_ACEOF 8415if ac_fn_c_try_run "$LINENO"; then : 8416 8417else 8418 ac_cv_header_stdc=no 8419fi 8420rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8421 conftest.$ac_objext conftest.beam conftest.$ac_ext 8422fi 8423 8424fi 8425fi 8426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8427$as_echo "$ac_cv_header_stdc" >&6; } 8428if test $ac_cv_header_stdc = yes; then 8429 8430$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8431 8432fi 8433 8434for ac_header in stdlib.h string.h 8435do : 8436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8437ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8438if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8439 cat >>confdefs.h <<_ACEOF 8440#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8441_ACEOF 8442 8443fi 8444 8445done 8446 8447 8448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 8449$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 8450if test "${ac_cv_header_stdbool_h+set}" = set; then : 8451 $as_echo_n "(cached) " >&6 8452else 8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8454/* end confdefs.h. */ 8455 8456#include <stdbool.h> 8457#ifndef bool 8458 "error: bool is not defined" 8459#endif 8460#ifndef false 8461 "error: false is not defined" 8462#endif 8463#if false 8464 "error: false is not 0" 8465#endif 8466#ifndef true 8467 "error: true is not defined" 8468#endif 8469#if true != 1 8470 "error: true is not 1" 8471#endif 8472#ifndef __bool_true_false_are_defined 8473 "error: __bool_true_false_are_defined is not defined" 8474#endif 8475 8476 struct s { _Bool s: 1; _Bool t; } s; 8477 8478 char a[true == 1 ? 1 : -1]; 8479 char b[false == 0 ? 1 : -1]; 8480 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 8481 char d[(bool) 0.5 == true ? 1 : -1]; 8482 bool e = &s; 8483 char f[(_Bool) 0.0 == false ? 1 : -1]; 8484 char g[true]; 8485 char h[sizeof (_Bool)]; 8486 char i[sizeof s.t]; 8487 enum { j = false, k = true, l = false * true, m = true * 256 }; 8488 /* The following fails for 8489 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 8490 _Bool n[m]; 8491 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 8492 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 8493# if defined __xlc__ || defined __GNUC__ 8494 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 8495 reported by James Lemley on 2005-10-05; see 8496 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html 8497 This test is not quite right, since xlc is allowed to 8498 reject this program, as the initializer for xlcbug is 8499 not one of the forms that C requires support for. 8500 However, doing the test right would require a runtime 8501 test, and that would make cross-compilation harder. 8502 Let us hope that IBM fixes the xlc bug, and also adds 8503 support for this kind of constant expression. In the 8504 meantime, this test will reject xlc, which is OK, since 8505 our stdbool.h substitute should suffice. We also test 8506 this with GCC, where it should work, to detect more 8507 quickly whether someone messes up the test in the 8508 future. */ 8509 char digs[] = "0123456789"; 8510 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); 8511# endif 8512 /* Catch a bug in an HP-UX C compiler. See 8513 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 8514 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 8515 */ 8516 _Bool q = true; 8517 _Bool *pq = &q; 8518 8519int 8520main () 8521{ 8522 8523 *pq |= q; 8524 *pq |= ! q; 8525 /* Refer to every declared value, to avoid compiler optimizations. */ 8526 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 8527 + !m + !n + !o + !p + !q + !pq); 8528 8529 ; 8530 return 0; 8531} 8532_ACEOF 8533if ac_fn_c_try_compile "$LINENO"; then : 8534 ac_cv_header_stdbool_h=yes 8535else 8536 ac_cv_header_stdbool_h=no 8537fi 8538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8539fi 8540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 8541$as_echo "$ac_cv_header_stdbool_h" >&6; } 8542ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 8543if test "x$ac_cv_type__Bool" = x""yes; then : 8544 8545cat >>confdefs.h <<_ACEOF 8546#define HAVE__BOOL 1 8547_ACEOF 8548 8549 8550fi 8551 8552if test $ac_cv_header_stdbool_h = yes; then 8553 8554$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 8555 8556fi 8557 8558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 8559$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 8560if test "${ac_cv_c_const+set}" = set; then : 8561 $as_echo_n "(cached) " >&6 8562else 8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8564/* end confdefs.h. */ 8565 8566int 8567main () 8568{ 8569/* FIXME: Include the comments suggested by Paul. */ 8570#ifndef __cplusplus 8571 /* Ultrix mips cc rejects this. */ 8572 typedef int charset[2]; 8573 const charset cs; 8574 /* SunOS 4.1.1 cc rejects this. */ 8575 char const *const *pcpcc; 8576 char **ppc; 8577 /* NEC SVR4.0.2 mips cc rejects this. */ 8578 struct point {int x, y;}; 8579 static struct point const zero = {0,0}; 8580 /* AIX XL C 1.02.0.0 rejects this. 8581 It does not let you subtract one const X* pointer from another in 8582 an arm of an if-expression whose if-part is not a constant 8583 expression */ 8584 const char *g = "string"; 8585 pcpcc = &g + (g ? g-g : 0); 8586 /* HPUX 7.0 cc rejects these. */ 8587 ++pcpcc; 8588 ppc = (char**) pcpcc; 8589 pcpcc = (char const *const *) ppc; 8590 { /* SCO 3.2v4 cc rejects this. */ 8591 char *t; 8592 char const *s = 0 ? (char *) 0 : (char const *) 0; 8593 8594 *t++ = 0; 8595 if (s) return 0; 8596 } 8597 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8598 int x[] = {25, 17}; 8599 const int *foo = &x[0]; 8600 ++foo; 8601 } 8602 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8603 typedef const int *iptr; 8604 iptr p = 0; 8605 ++p; 8606 } 8607 { /* AIX XL C 1.02.0.0 rejects this saying 8608 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8609 struct s { int j; const int *ap[3]; }; 8610 struct s *b; b->j = 5; 8611 } 8612 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8613 const int foo = 10; 8614 if (!foo) return 0; 8615 } 8616 return !cs[0] && !zero.x; 8617#endif 8618 8619 ; 8620 return 0; 8621} 8622_ACEOF 8623if ac_fn_c_try_compile "$LINENO"; then : 8624 ac_cv_c_const=yes 8625else 8626 ac_cv_c_const=no 8627fi 8628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8629fi 8630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 8631$as_echo "$ac_cv_c_const" >&6; } 8632if test $ac_cv_c_const = no; then 8633 8634$as_echo "#define const /**/" >>confdefs.h 8635 8636fi 8637 8638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 8639$as_echo_n "checking for inline... " >&6; } 8640if test "${ac_cv_c_inline+set}" = set; then : 8641 $as_echo_n "(cached) " >&6 8642else 8643 ac_cv_c_inline=no 8644for ac_kw in inline __inline__ __inline; do 8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8646/* end confdefs.h. */ 8647#ifndef __cplusplus 8648typedef int foo_t; 8649static $ac_kw foo_t static_foo () {return 0; } 8650$ac_kw foo_t foo () {return 0; } 8651#endif 8652 8653_ACEOF 8654if ac_fn_c_try_compile "$LINENO"; then : 8655 ac_cv_c_inline=$ac_kw 8656fi 8657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8658 test "$ac_cv_c_inline" != no && break 8659done 8660 8661fi 8662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 8663$as_echo "$ac_cv_c_inline" >&6; } 8664 8665case $ac_cv_c_inline in 8666 inline | yes) ;; 8667 *) 8668 case $ac_cv_c_inline in 8669 no) ac_val=;; 8670 *) ac_val=$ac_cv_c_inline;; 8671 esac 8672 cat >>confdefs.h <<_ACEOF 8673#ifndef __cplusplus 8674#define inline $ac_val 8675#endif 8676_ACEOF 8677 ;; 8678esac 8679 8680ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 8681if test "x$ac_cv_type_size_t" = x""yes; then : 8682 8683else 8684 8685cat >>confdefs.h <<_ACEOF 8686#define size_t unsigned int 8687_ACEOF 8688 8689fi 8690 8691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 8692$as_echo_n "checking for working volatile... " >&6; } 8693if test "${ac_cv_c_volatile+set}" = set; then : 8694 $as_echo_n "(cached) " >&6 8695else 8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8697/* end confdefs.h. */ 8698 8699int 8700main () 8701{ 8702 8703volatile int x; 8704int * volatile y = (int *) 0; 8705return !x && !y; 8706 ; 8707 return 0; 8708} 8709_ACEOF 8710if ac_fn_c_try_compile "$LINENO"; then : 8711 ac_cv_c_volatile=yes 8712else 8713 ac_cv_c_volatile=no 8714fi 8715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8716fi 8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 8718$as_echo "$ac_cv_c_volatile" >&6; } 8719if test $ac_cv_c_volatile = no; then 8720 8721$as_echo "#define volatile /**/" >>confdefs.h 8722 8723fi 8724 8725 8726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 8727$as_echo_n "checking whether closedir returns void... " >&6; } 8728if test "${ac_cv_func_closedir_void+set}" = set; then : 8729 $as_echo_n "(cached) " >&6 8730else 8731 if test "$cross_compiling" = yes; then : 8732 ac_cv_func_closedir_void=yes 8733else 8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8735/* end confdefs.h. */ 8736$ac_includes_default 8737#include <$ac_header_dirent> 8738#ifndef __cplusplus 8739int closedir (); 8740#endif 8741 8742int 8743main () 8744{ 8745return closedir (opendir (".")) != 0; 8746 ; 8747 return 0; 8748} 8749_ACEOF 8750if ac_fn_c_try_run "$LINENO"; then : 8751 ac_cv_func_closedir_void=no 8752else 8753 ac_cv_func_closedir_void=yes 8754fi 8755rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8756 conftest.$ac_objext conftest.beam conftest.$ac_ext 8757fi 8758 8759fi 8760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 8761$as_echo "$ac_cv_func_closedir_void" >&6; } 8762if test $ac_cv_func_closedir_void = yes; then 8763 8764$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h 8765 8766fi 8767 8768for ac_header in stdlib.h 8769do : 8770 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 8771if test "x$ac_cv_header_stdlib_h" = x""yes; then : 8772 cat >>confdefs.h <<_ACEOF 8773#define HAVE_STDLIB_H 1 8774_ACEOF 8775 8776fi 8777 8778done 8779 8780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 8781$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 8782if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : 8783 $as_echo_n "(cached) " >&6 8784else 8785 if test "$cross_compiling" = yes; then : 8786 ac_cv_func_malloc_0_nonnull=no 8787else 8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8789/* end confdefs.h. */ 8790#if defined STDC_HEADERS || defined HAVE_STDLIB_H 8791# include <stdlib.h> 8792#else 8793char *malloc (); 8794#endif 8795 8796int 8797main () 8798{ 8799return ! malloc (0); 8800 ; 8801 return 0; 8802} 8803_ACEOF 8804if ac_fn_c_try_run "$LINENO"; then : 8805 ac_cv_func_malloc_0_nonnull=yes 8806else 8807 ac_cv_func_malloc_0_nonnull=no 8808fi 8809rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8810 conftest.$ac_objext conftest.beam conftest.$ac_ext 8811fi 8812 8813fi 8814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 8815$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 8816if test $ac_cv_func_malloc_0_nonnull = yes; then : 8817 8818$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 8819 8820else 8821 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 8822 8823 case " $LIBOBJS " in 8824 *" malloc.$ac_objext "* ) ;; 8825 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 8826 ;; 8827esac 8828 8829 8830$as_echo "#define malloc rpl_malloc" >>confdefs.h 8831 8832fi 8833 8834 8835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 8836$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 8837if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : 8838 $as_echo_n "(cached) " >&6 8839else 8840 rm -f conftest.sym conftest.file 8841echo >conftest.file 8842if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 8843 if test "$cross_compiling" = yes; then : 8844 ac_cv_func_lstat_dereferences_slashed_symlink=no 8845else 8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8847/* end confdefs.h. */ 8848$ac_includes_default 8849int 8850main () 8851{ 8852struct stat sbuf; 8853 /* Linux will dereference the symlink and fail, as required by POSIX. 8854 That is better in the sense that it means we will not 8855 have to compile and use the lstat wrapper. */ 8856 return lstat ("conftest.sym/", &sbuf) = 0; 8857 ; 8858 return 0; 8859} 8860_ACEOF 8861if ac_fn_c_try_run "$LINENO"; then : 8862 ac_cv_func_lstat_dereferences_slashed_symlink=yes 8863else 8864 ac_cv_func_lstat_dereferences_slashed_symlink=no 8865fi 8866rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8867 conftest.$ac_objext conftest.beam conftest.$ac_ext 8868fi 8869 8870else 8871 # If the `ln -s' command failed, then we probably don't even 8872 # have an lstat function. 8873 ac_cv_func_lstat_dereferences_slashed_symlink=no 8874fi 8875rm -f conftest.sym conftest.file 8876 8877fi 8878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 8879$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 8880 8881test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 8882 8883cat >>confdefs.h <<_ACEOF 8884#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 8885_ACEOF 8886 8887 8888if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 8889 case " $LIBOBJS " in 8890 *" lstat.$ac_objext "* ) ;; 8891 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 8892 ;; 8893esac 8894 8895fi 8896 8897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 8898$as_echo_n "checking whether stat accepts an empty string... " >&6; } 8899if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then : 8900 $as_echo_n "(cached) " >&6 8901else 8902 if test "$cross_compiling" = yes; then : 8903 ac_cv_func_stat_empty_string_bug=yes 8904else 8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8906/* end confdefs.h. */ 8907$ac_includes_default 8908int 8909main () 8910{ 8911struct stat sbuf; 8912 return stat ("", &sbuf) == 0; 8913 ; 8914 return 0; 8915} 8916_ACEOF 8917if ac_fn_c_try_run "$LINENO"; then : 8918 ac_cv_func_stat_empty_string_bug=no 8919else 8920 ac_cv_func_stat_empty_string_bug=yes 8921fi 8922rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8923 conftest.$ac_objext conftest.beam conftest.$ac_ext 8924fi 8925 8926fi 8927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 8928$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } 8929if test $ac_cv_func_stat_empty_string_bug = yes; then 8930 case " $LIBOBJS " in 8931 *" stat.$ac_objext "* ) ;; 8932 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 8933 ;; 8934esac 8935 8936 8937cat >>confdefs.h <<_ACEOF 8938#define HAVE_STAT_EMPTY_STRING_BUG 1 8939_ACEOF 8940 8941fi 8942 8943for ac_func in atexit chdir mkdir rmdir sqrt strcasecmp 8944do : 8945 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8946ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8947if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8948 cat >>confdefs.h <<_ACEOF 8949#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8950_ACEOF 8951 8952fi 8953done 8954 8955 8956ac_config_files="$ac_config_files Makefile txt/Makefile.in" 8957 8958 8959cat >confcache <<\_ACEOF 8960# This file is a shell script that caches the results of configure 8961# tests run on this system so they can be shared between configure 8962# scripts and configure runs, see configure's option --config-cache. 8963# It is not useful on other systems. If it contains results you don't 8964# want to keep, you may remove or edit it. 8965# 8966# config.status only pays attention to the cache file if you give it 8967# the --recheck option to rerun configure. 8968# 8969# `ac_cv_env_foo' variables (set or unset) will be overridden when 8970# loading this file, other *unset* `ac_cv_foo' will be assigned the 8971# following values. 8972 8973_ACEOF 8974 8975# The following way of writing the cache mishandles newlines in values, 8976# but we know of no workaround that is simple, portable, and efficient. 8977# So, we kill variables containing newlines. 8978# Ultrix sh set writes to stderr and can't be redirected directly, 8979# and sets the high bit in the cache file unless we assign to the vars. 8980( 8981 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8982 eval ac_val=\$$ac_var 8983 case $ac_val in #( 8984 *${as_nl}*) 8985 case $ac_var in #( 8986 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 8987$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8988 esac 8989 case $ac_var in #( 8990 _ | IFS | as_nl) ;; #( 8991 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 8992 *) { eval $ac_var=; unset $ac_var;} ;; 8993 esac ;; 8994 esac 8995 done 8996 8997 (set) 2>&1 | 8998 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8999 *${as_nl}ac_space=\ *) 9000 # `set' does not quote correctly, so add quotes: double-quote 9001 # substitution turns \\\\ into \\, and sed turns \\ into \. 9002 sed -n \ 9003 "s/'/'\\\\''/g; 9004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 9005 ;; #( 9006 *) 9007 # `set' quotes correctly as required by POSIX, so do not add quotes. 9008 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 9009 ;; 9010 esac | 9011 sort 9012) | 9013 sed ' 9014 /^ac_cv_env_/b end 9015 t clear 9016 :clear 9017 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9018 t end 9019 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9020 :end' >>confcache 9021if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 9022 if test -w "$cache_file"; then 9023 test "x$cache_file" != "x/dev/null" && 9024 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 9025$as_echo "$as_me: updating cache $cache_file" >&6;} 9026 cat confcache >$cache_file 9027 else 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 9029$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 9030 fi 9031fi 9032rm -f confcache 9033 9034test "x$prefix" = xNONE && prefix=$ac_default_prefix 9035# Let make expand exec_prefix. 9036test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9037 9038DEFS=-DHAVE_CONFIG_H 9039 9040ac_libobjs= 9041ac_ltlibobjs= 9042U= 9043for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 9044 # 1. Remove the extension, and $U if already installed. 9045 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 9046 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 9047 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 9048 # will be set to the directory where LIBOBJS objects are built. 9049 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 9050 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 9051done 9052LIBOBJS=$ac_libobjs 9053 9054LTLIBOBJS=$ac_ltlibobjs 9055 9056 9057 if test -n "$EXEEXT"; then 9058 am__EXEEXT_TRUE= 9059 am__EXEEXT_FALSE='#' 9060else 9061 am__EXEEXT_TRUE='#' 9062 am__EXEEXT_FALSE= 9063fi 9064 9065if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 9066 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 9067Usually this means the macro was only invoked conditionally." "$LINENO" 5 9068fi 9069if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 9070 as_fn_error $? "conditional \"AMDEP\" was never defined. 9071Usually this means the macro was only invoked conditionally." "$LINENO" 5 9072fi 9073if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 9074 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 9075Usually this means the macro was only invoked conditionally." "$LINENO" 5 9076fi 9077if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 9078 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 9079Usually this means the macro was only invoked conditionally." "$LINENO" 5 9080fi 9081if test -z "${COND_EDITOR_TRUE}" && test -z "${COND_EDITOR_FALSE}"; then 9082 as_fn_error $? "conditional \"COND_EDITOR\" was never defined. 9083Usually this means the macro was only invoked conditionally." "$LINENO" 5 9084fi 9085 9086: ${CONFIG_STATUS=./config.status} 9087ac_write_fail=0 9088ac_clean_files_save=$ac_clean_files 9089ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9090{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 9091$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 9092as_write_fail=0 9093cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 9094#! $SHELL 9095# Generated by $as_me. 9096# Run this file to recreate the current configuration. 9097# Compiler output produced by configure, useful for debugging 9098# configure, is in config.log if it exists. 9099 9100debug=false 9101ac_cs_recheck=false 9102ac_cs_silent=false 9103 9104SHELL=\${CONFIG_SHELL-$SHELL} 9105export SHELL 9106_ASEOF 9107cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 9108## -------------------- ## 9109## M4sh Initialization. ## 9110## -------------------- ## 9111 9112# Be more Bourne compatible 9113DUALCASE=1; export DUALCASE # for MKS sh 9114if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 9115 emulate sh 9116 NULLCMD=: 9117 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 9118 # is contrary to our usage. Disable this feature. 9119 alias -g '${1+"$@"}'='"$@"' 9120 setopt NO_GLOB_SUBST 9121else 9122 case `(set -o) 2>/dev/null` in #( 9123 *posix*) : 9124 set -o posix ;; #( 9125 *) : 9126 ;; 9127esac 9128fi 9129 9130 9131as_nl=' 9132' 9133export as_nl 9134# Printing a long string crashes Solaris 7 /usr/bin/printf. 9135as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 9136as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 9137as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 9138# Prefer a ksh shell builtin over an external printf program on Solaris, 9139# but without wasting forks for bash or zsh. 9140if test -z "$BASH_VERSION$ZSH_VERSION" \ 9141 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 9142 as_echo='print -r --' 9143 as_echo_n='print -rn --' 9144elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 9145 as_echo='printf %s\n' 9146 as_echo_n='printf %s' 9147else 9148 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 9149 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 9150 as_echo_n='/usr/ucb/echo -n' 9151 else 9152 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 9153 as_echo_n_body='eval 9154 arg=$1; 9155 case $arg in #( 9156 *"$as_nl"*) 9157 expr "X$arg" : "X\\(.*\\)$as_nl"; 9158 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 9159 esac; 9160 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 9161 ' 9162 export as_echo_n_body 9163 as_echo_n='sh -c $as_echo_n_body as_echo' 9164 fi 9165 export as_echo_body 9166 as_echo='sh -c $as_echo_body as_echo' 9167fi 9168 9169# The user is always right. 9170if test "${PATH_SEPARATOR+set}" != set; then 9171 PATH_SEPARATOR=: 9172 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 9173 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 9174 PATH_SEPARATOR=';' 9175 } 9176fi 9177 9178 9179# IFS 9180# We need space, tab and new line, in precisely that order. Quoting is 9181# there to prevent editors from complaining about space-tab. 9182# (If _AS_PATH_WALK were called with IFS unset, it would disable word 9183# splitting by setting IFS to empty value.) 9184IFS=" "" $as_nl" 9185 9186# Find who we are. Look in the path if we contain no directory separator. 9187case $0 in #(( 9188 *[\\/]* ) as_myself=$0 ;; 9189 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9190for as_dir in $PATH 9191do 9192 IFS=$as_save_IFS 9193 test -z "$as_dir" && as_dir=. 9194 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9195 done 9196IFS=$as_save_IFS 9197 9198 ;; 9199esac 9200# We did not find ourselves, most probably we were run as `sh COMMAND' 9201# in which case we are not to be found in the path. 9202if test "x$as_myself" = x; then 9203 as_myself=$0 9204fi 9205if test ! -f "$as_myself"; then 9206 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 9207 exit 1 9208fi 9209 9210# Unset variables that we do not need and which cause bugs (e.g. in 9211# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 9212# suppresses any "Segmentation fault" message there. '((' could 9213# trigger a bug in pdksh 5.2.14. 9214for as_var in BASH_ENV ENV MAIL MAILPATH 9215do eval test x\${$as_var+set} = xset \ 9216 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 9217done 9218PS1='$ ' 9219PS2='> ' 9220PS4='+ ' 9221 9222# NLS nuisances. 9223LC_ALL=C 9224export LC_ALL 9225LANGUAGE=C 9226export LANGUAGE 9227 9228# CDPATH. 9229(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9230 9231 9232# as_fn_error STATUS ERROR [LINENO LOG_FD] 9233# ---------------------------------------- 9234# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 9235# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 9236# script with STATUS, using 1 if that was 0. 9237as_fn_error () 9238{ 9239 as_status=$1; test $as_status -eq 0 && as_status=1 9240 if test "$4"; then 9241 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 9242 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 9243 fi 9244 $as_echo "$as_me: error: $2" >&2 9245 as_fn_exit $as_status 9246} # as_fn_error 9247 9248 9249# as_fn_set_status STATUS 9250# ----------------------- 9251# Set $? to STATUS, without forking. 9252as_fn_set_status () 9253{ 9254 return $1 9255} # as_fn_set_status 9256 9257# as_fn_exit STATUS 9258# ----------------- 9259# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 9260as_fn_exit () 9261{ 9262 set +e 9263 as_fn_set_status $1 9264 exit $1 9265} # as_fn_exit 9266 9267# as_fn_unset VAR 9268# --------------- 9269# Portably unset VAR. 9270as_fn_unset () 9271{ 9272 { eval $1=; unset $1;} 9273} 9274as_unset=as_fn_unset 9275# as_fn_append VAR VALUE 9276# ---------------------- 9277# Append the text in VALUE to the end of the definition contained in VAR. Take 9278# advantage of any shell optimizations that allow amortized linear growth over 9279# repeated appends, instead of the typical quadratic growth present in naive 9280# implementations. 9281if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 9282 eval 'as_fn_append () 9283 { 9284 eval $1+=\$2 9285 }' 9286else 9287 as_fn_append () 9288 { 9289 eval $1=\$$1\$2 9290 } 9291fi # as_fn_append 9292 9293# as_fn_arith ARG... 9294# ------------------ 9295# Perform arithmetic evaluation on the ARGs, and store the result in the 9296# global $as_val. Take advantage of shells that can avoid forks. The arguments 9297# must be portable across $(()) and expr. 9298if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 9299 eval 'as_fn_arith () 9300 { 9301 as_val=$(( $* )) 9302 }' 9303else 9304 as_fn_arith () 9305 { 9306 as_val=`expr "$@" || test $? -eq 1` 9307 } 9308fi # as_fn_arith 9309 9310 9311if expr a : '\(a\)' >/dev/null 2>&1 && 9312 test "X`expr 00001 : '.*\(...\)'`" = X001; then 9313 as_expr=expr 9314else 9315 as_expr=false 9316fi 9317 9318if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 9319 as_basename=basename 9320else 9321 as_basename=false 9322fi 9323 9324if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 9325 as_dirname=dirname 9326else 9327 as_dirname=false 9328fi 9329 9330as_me=`$as_basename -- "$0" || 9331$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 9332 X"$0" : 'X\(//\)$' \| \ 9333 X"$0" : 'X\(/\)' \| . 2>/dev/null || 9334$as_echo X/"$0" | 9335 sed '/^.*\/\([^/][^/]*\)\/*$/{ 9336 s//\1/ 9337 q 9338 } 9339 /^X\/\(\/\/\)$/{ 9340 s//\1/ 9341 q 9342 } 9343 /^X\/\(\/\).*/{ 9344 s//\1/ 9345 q 9346 } 9347 s/.*/./; q'` 9348 9349# Avoid depending upon Character Ranges. 9350as_cr_letters='abcdefghijklmnopqrstuvwxyz' 9351as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 9352as_cr_Letters=$as_cr_letters$as_cr_LETTERS 9353as_cr_digits='0123456789' 9354as_cr_alnum=$as_cr_Letters$as_cr_digits 9355 9356ECHO_C= ECHO_N= ECHO_T= 9357case `echo -n x` in #((((( 9358-n*) 9359 case `echo 'xy\c'` in 9360 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 9361 xy) ECHO_C='\c';; 9362 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 9363 ECHO_T=' ';; 9364 esac;; 9365*) 9366 ECHO_N='-n';; 9367esac 9368 9369rm -f conf$$ conf$$.exe conf$$.file 9370if test -d conf$$.dir; then 9371 rm -f conf$$.dir/conf$$.file 9372else 9373 rm -f conf$$.dir 9374 mkdir conf$$.dir 2>/dev/null 9375fi 9376if (echo >conf$$.file) 2>/dev/null; then 9377 if ln -s conf$$.file conf$$ 2>/dev/null; then 9378 as_ln_s='ln -s' 9379 # ... but there are two gotchas: 9380 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 9381 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 9382 # In both cases, we have to default to `cp -p'. 9383 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 9384 as_ln_s='cp -p' 9385 elif ln conf$$.file conf$$ 2>/dev/null; then 9386 as_ln_s=ln 9387 else 9388 as_ln_s='cp -p' 9389 fi 9390else 9391 as_ln_s='cp -p' 9392fi 9393rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 9394rmdir conf$$.dir 2>/dev/null 9395 9396 9397# as_fn_mkdir_p 9398# ------------- 9399# Create "$as_dir" as a directory, including parents if necessary. 9400as_fn_mkdir_p () 9401{ 9402 9403 case $as_dir in #( 9404 -*) as_dir=./$as_dir;; 9405 esac 9406 test -d "$as_dir" || eval $as_mkdir_p || { 9407 as_dirs= 9408 while :; do 9409 case $as_dir in #( 9410 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 9411 *) as_qdir=$as_dir;; 9412 esac 9413 as_dirs="'$as_qdir' $as_dirs" 9414 as_dir=`$as_dirname -- "$as_dir" || 9415$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9416 X"$as_dir" : 'X\(//\)[^/]' \| \ 9417 X"$as_dir" : 'X\(//\)$' \| \ 9418 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 9419$as_echo X"$as_dir" | 9420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9421 s//\1/ 9422 q 9423 } 9424 /^X\(\/\/\)[^/].*/{ 9425 s//\1/ 9426 q 9427 } 9428 /^X\(\/\/\)$/{ 9429 s//\1/ 9430 q 9431 } 9432 /^X\(\/\).*/{ 9433 s//\1/ 9434 q 9435 } 9436 s/.*/./; q'` 9437 test -d "$as_dir" && break 9438 done 9439 test -z "$as_dirs" || eval "mkdir $as_dirs" 9440 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 9441 9442 9443} # as_fn_mkdir_p 9444if mkdir -p . 2>/dev/null; then 9445 as_mkdir_p='mkdir -p "$as_dir"' 9446else 9447 test -d ./-p && rmdir ./-p 9448 as_mkdir_p=false 9449fi 9450 9451if test -x / >/dev/null 2>&1; then 9452 as_test_x='test -x' 9453else 9454 if ls -dL / >/dev/null 2>&1; then 9455 as_ls_L_option=L 9456 else 9457 as_ls_L_option= 9458 fi 9459 as_test_x=' 9460 eval sh -c '\'' 9461 if test -d "$1"; then 9462 test -d "$1/."; 9463 else 9464 case $1 in #( 9465 -*)set "./$1";; 9466 esac; 9467 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 9468 ???[sx]*):;;*)false;;esac;fi 9469 '\'' sh 9470 ' 9471fi 9472as_executable_p=$as_test_x 9473 9474# Sed expression to map a string onto a valid CPP name. 9475as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 9476 9477# Sed expression to map a string onto a valid variable name. 9478as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 9479 9480 9481exec 6>&1 9482## ----------------------------------- ## 9483## Main body of $CONFIG_STATUS script. ## 9484## ----------------------------------- ## 9485_ASEOF 9486test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 9487 9488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9489# Save the log message, to keep $0 and so on meaningful, and to 9490# report actual input values of CONFIG_FILES etc. instead of their 9491# values after options handling. 9492ac_log=" 9493This file was extended by Hero of Allacrost - Demo $as_me 1.0.2, which was 9494generated by GNU Autoconf 2.67. Invocation command line was 9495 9496 CONFIG_FILES = $CONFIG_FILES 9497 CONFIG_HEADERS = $CONFIG_HEADERS 9498 CONFIG_LINKS = $CONFIG_LINKS 9499 CONFIG_COMMANDS = $CONFIG_COMMANDS 9500 $ $0 $@ 9501 9502on `(hostname || uname -n) 2>/dev/null | sed 1q` 9503" 9504 9505_ACEOF 9506 9507case $ac_config_files in *" 9508"*) set x $ac_config_files; shift; ac_config_files=$*;; 9509esac 9510 9511case $ac_config_headers in *" 9512"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 9513esac 9514 9515 9516cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9517# Files that config.status was made for. 9518config_files="$ac_config_files" 9519config_headers="$ac_config_headers" 9520config_commands="$ac_config_commands" 9521 9522_ACEOF 9523 9524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9525ac_cs_usage="\ 9526\`$as_me' instantiates files and other configuration actions 9527from templates according to the current configuration. Unless the files 9528and actions are specified as TAGs, all are instantiated by default. 9529 9530Usage: $0 [OPTION]... [TAG]... 9531 9532 -h, --help print this help, then exit 9533 -V, --version print version number and configuration settings, then exit 9534 --config print configuration, then exit 9535 -q, --quiet, --silent 9536 do not print progress messages 9537 -d, --debug don't remove temporary files 9538 --recheck update $as_me by reconfiguring in the same conditions 9539 --file=FILE[:TEMPLATE] 9540 instantiate the configuration file FILE 9541 --header=FILE[:TEMPLATE] 9542 instantiate the configuration header FILE 9543 9544Configuration files: 9545$config_files 9546 9547Configuration headers: 9548$config_headers 9549 9550Configuration commands: 9551$config_commands 9552 9553Report bugs to <rujasu@allacrost.org>." 9554 9555_ACEOF 9556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9557ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 9558ac_cs_version="\\ 9559Hero of Allacrost - Demo config.status 1.0.2 9560configured by $0, generated by GNU Autoconf 2.67, 9561 with options \\"\$ac_cs_config\\" 9562 9563Copyright (C) 2010 Free Software Foundation, Inc. 9564This config.status script is free software; the Free Software Foundation 9565gives unlimited permission to copy, distribute and modify it." 9566 9567ac_pwd='$ac_pwd' 9568srcdir='$srcdir' 9569INSTALL='$INSTALL' 9570MKDIR_P='$MKDIR_P' 9571AWK='$AWK' 9572test -n "\$AWK" || AWK=awk 9573_ACEOF 9574 9575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9576# The default lists apply if the user does not specify any file. 9577ac_need_defaults=: 9578while test $# != 0 9579do 9580 case $1 in 9581 --*=?*) 9582 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9583 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 9584 ac_shift=: 9585 ;; 9586 --*=) 9587 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9588 ac_optarg= 9589 ac_shift=: 9590 ;; 9591 *) 9592 ac_option=$1 9593 ac_optarg=$2 9594 ac_shift=shift 9595 ;; 9596 esac 9597 9598 case $ac_option in 9599 # Handling of the options. 9600 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 9601 ac_cs_recheck=: ;; 9602 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 9603 $as_echo "$ac_cs_version"; exit ;; 9604 --config | --confi | --conf | --con | --co | --c ) 9605 $as_echo "$ac_cs_config"; exit ;; 9606 --debug | --debu | --deb | --de | --d | -d ) 9607 debug=: ;; 9608 --file | --fil | --fi | --f ) 9609 $ac_shift 9610 case $ac_optarg in 9611 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9612 '') as_fn_error $? "missing file argument" ;; 9613 esac 9614 as_fn_append CONFIG_FILES " '$ac_optarg'" 9615 ac_need_defaults=false;; 9616 --header | --heade | --head | --hea ) 9617 $ac_shift 9618 case $ac_optarg in 9619 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9620 esac 9621 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 9622 ac_need_defaults=false;; 9623 --he | --h) 9624 # Conflict between --help and --header 9625 as_fn_error $? "ambiguous option: \`$1' 9626Try \`$0 --help' for more information.";; 9627 --help | --hel | -h ) 9628 $as_echo "$ac_cs_usage"; exit ;; 9629 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 9630 | -silent | --silent | --silen | --sile | --sil | --si | --s) 9631 ac_cs_silent=: ;; 9632 9633 # This is an error. 9634 -*) as_fn_error $? "unrecognized option: \`$1' 9635Try \`$0 --help' for more information." ;; 9636 9637 *) as_fn_append ac_config_targets " $1" 9638 ac_need_defaults=false ;; 9639 9640 esac 9641 shift 9642done 9643 9644ac_configure_extra_args= 9645 9646if $ac_cs_silent; then 9647 exec 6>/dev/null 9648 ac_configure_extra_args="$ac_configure_extra_args --silent" 9649fi 9650 9651_ACEOF 9652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9653if \$ac_cs_recheck; then 9654 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 9655 shift 9656 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 9657 CONFIG_SHELL='$SHELL' 9658 export CONFIG_SHELL 9659 exec "\$@" 9660fi 9661 9662_ACEOF 9663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9664exec 5>>config.log 9665{ 9666 echo 9667 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 9668## Running $as_me. ## 9669_ASBOX 9670 $as_echo "$ac_log" 9671} >&5 9672 9673_ACEOF 9674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9675# 9676# INIT-COMMANDS 9677# 9678AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 9679# Capture the value of obsolete ALL_LINGUAS because we need it to compute 9680 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 9681 # from automake < 1.5. 9682 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 9683 # Capture the value of LINGUAS because we need it to compute CATALOGS. 9684 LINGUAS="${LINGUAS-%UNSET%}" 9685 9686 9687_ACEOF 9688 9689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9690 9691# Handling of arguments. 9692for ac_config_target in $ac_config_targets 9693do 9694 case $ac_config_target in 9695 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 9696 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 9697 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 9698 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 9699 "txt/Makefile.in") CONFIG_FILES="$CONFIG_FILES txt/Makefile.in" ;; 9700 9701 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 9702 esac 9703done 9704 9705 9706# If the user did not use the arguments to specify the items to instantiate, 9707# then the envvar interface is used. Set only those that are not. 9708# We use the long form for the default assignment because of an extremely 9709# bizarre bug on SunOS 4.1.3. 9710if $ac_need_defaults; then 9711 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9712 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 9713 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 9714fi 9715 9716# Have a temporary directory for convenience. Make it in the build tree 9717# simply because there is no reason against having it here, and in addition, 9718# creating and moving files from /tmp can sometimes cause problems. 9719# Hook for its removal unless debugging. 9720# Note that there is a small window in which the directory will not be cleaned: 9721# after its creation but before its name has been assigned to `$tmp'. 9722$debug || 9723{ 9724 tmp= 9725 trap 'exit_status=$? 9726 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 9727' 0 9728 trap 'as_fn_exit 1' 1 2 13 15 9729} 9730# Create a (secure) tmp directory for tmp files. 9731 9732{ 9733 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 9734 test -n "$tmp" && test -d "$tmp" 9735} || 9736{ 9737 tmp=./conf$$-$RANDOM 9738 (umask 077 && mkdir "$tmp") 9739} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 9740 9741# Set up the scripts for CONFIG_FILES section. 9742# No need to generate them if there are no CONFIG_FILES. 9743# This happens for instance with `./config.status config.h'. 9744if test -n "$CONFIG_FILES"; then 9745 9746 9747ac_cr=`echo X | tr X '\015'` 9748# On cygwin, bash can eat \r inside `` if the user requested igncr. 9749# But we know of no other shell where ac_cr would be empty at this 9750# point, so we can use a bashism as a fallback. 9751if test "x$ac_cr" = x; then 9752 eval ac_cr=\$\'\\r\' 9753fi 9754ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 9755if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 9756 ac_cs_awk_cr='\\r' 9757else 9758 ac_cs_awk_cr=$ac_cr 9759fi 9760 9761echo 'BEGIN {' >"$tmp/subs1.awk" && 9762_ACEOF 9763 9764 9765{ 9766 echo "cat >conf$$subs.awk <<_ACEOF" && 9767 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 9768 echo "_ACEOF" 9769} >conf$$subs.sh || 9770 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9771ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 9772ac_delim='%!_!# ' 9773for ac_last_try in false false false false false :; do 9774 . ./conf$$subs.sh || 9775 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9776 9777 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 9778 if test $ac_delim_n = $ac_delim_num; then 9779 break 9780 elif $ac_last_try; then 9781 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9782 else 9783 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9784 fi 9785done 9786rm -f conf$$subs.sh 9787 9788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9789cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 9790_ACEOF 9791sed -n ' 9792h 9793s/^/S["/; s/!.*/"]=/ 9794p 9795g 9796s/^[^!]*!// 9797:repl 9798t repl 9799s/'"$ac_delim"'$// 9800t delim 9801:nl 9802h 9803s/\(.\{148\}\)..*/\1/ 9804t more1 9805s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 9806p 9807n 9808b repl 9809:more1 9810s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9811p 9812g 9813s/.\{148\}// 9814t nl 9815:delim 9816h 9817s/\(.\{148\}\)..*/\1/ 9818t more2 9819s/["\\]/\\&/g; s/^/"/; s/$/"/ 9820p 9821b 9822:more2 9823s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9824p 9825g 9826s/.\{148\}// 9827t delim 9828' <conf$$subs.awk | sed ' 9829/^[^""]/{ 9830 N 9831 s/\n// 9832} 9833' >>$CONFIG_STATUS || ac_write_fail=1 9834rm -f conf$$subs.awk 9835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9836_ACAWK 9837cat >>"\$tmp/subs1.awk" <<_ACAWK && 9838 for (key in S) S_is_set[key] = 1 9839 FS = "" 9840 9841} 9842{ 9843 line = $ 0 9844 nfields = split(line, field, "@") 9845 substed = 0 9846 len = length(field[1]) 9847 for (i = 2; i < nfields; i++) { 9848 key = field[i] 9849 keylen = length(key) 9850 if (S_is_set[key]) { 9851 value = S[key] 9852 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 9853 len += length(value) + length(field[++i]) 9854 substed = 1 9855 } else 9856 len += 1 + keylen 9857 } 9858 9859 print line 9860} 9861 9862_ACAWK 9863_ACEOF 9864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9865if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 9866 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 9867else 9868 cat 9869fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 9870 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 9871_ACEOF 9872 9873# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 9874# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 9875# trailing colons and then remove the whole line if VPATH becomes empty 9876# (actually we leave an empty line to preserve line numbers). 9877if test "x$srcdir" = x.; then 9878 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 9879h 9880s/// 9881s/^/:/ 9882s/[ ]*$/:/ 9883s/:\$(srcdir):/:/g 9884s/:\${srcdir}:/:/g 9885s/:@srcdir@:/:/g 9886s/^:*// 9887s/:*$// 9888x 9889s/\(=[ ]*\).*/\1/ 9890G 9891s/\n// 9892s/^[^=]*=[ ]*$// 9893}' 9894fi 9895 9896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9897fi # test -n "$CONFIG_FILES" 9898 9899# Set up the scripts for CONFIG_HEADERS section. 9900# No need to generate them if there are no CONFIG_HEADERS. 9901# This happens for instance with `./config.status Makefile'. 9902if test -n "$CONFIG_HEADERS"; then 9903cat >"$tmp/defines.awk" <<\_ACAWK || 9904BEGIN { 9905_ACEOF 9906 9907# Transform confdefs.h into an awk script `defines.awk', embedded as 9908# here-document in config.status, that substitutes the proper values into 9909# config.h.in to produce config.h. 9910 9911# Create a delimiter string that does not exist in confdefs.h, to ease 9912# handling of long lines. 9913ac_delim='%!_!# ' 9914for ac_last_try in false false :; do 9915 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 9916 if test -z "$ac_t"; then 9917 break 9918 elif $ac_last_try; then 9919 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 9920 else 9921 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9922 fi 9923done 9924 9925# For the awk script, D is an array of macro values keyed by name, 9926# likewise P contains macro parameters if any. Preserve backslash 9927# newline sequences. 9928 9929ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 9930sed -n ' 9931s/.\{148\}/&'"$ac_delim"'/g 9932t rset 9933:rset 9934s/^[ ]*#[ ]*define[ ][ ]*/ / 9935t def 9936d 9937:def 9938s/\\$// 9939t bsnl 9940s/["\\]/\\&/g 9941s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9942D["\1"]=" \3"/p 9943s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 9944d 9945:bsnl 9946s/["\\]/\\&/g 9947s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9948D["\1"]=" \3\\\\\\n"\\/p 9949t cont 9950s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 9951t cont 9952d 9953:cont 9954n 9955s/.\{148\}/&'"$ac_delim"'/g 9956t clear 9957:clear 9958s/\\$// 9959t bsnlc 9960s/["\\]/\\&/g; s/^/"/; s/$/"/p 9961d 9962:bsnlc 9963s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 9964b cont 9965' <confdefs.h | sed ' 9966s/'"$ac_delim"'/"\\\ 9967"/g' >>$CONFIG_STATUS || ac_write_fail=1 9968 9969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9970 for (key in D) D_is_set[key] = 1 9971 FS = "" 9972} 9973/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 9974 line = \$ 0 9975 split(line, arg, " ") 9976 if (arg[1] == "#") { 9977 defundef = arg[2] 9978 mac1 = arg[3] 9979 } else { 9980 defundef = substr(arg[1], 2) 9981 mac1 = arg[2] 9982 } 9983 split(mac1, mac2, "(") #) 9984 macro = mac2[1] 9985 prefix = substr(line, 1, index(line, defundef) - 1) 9986 if (D_is_set[macro]) { 9987 # Preserve the white space surrounding the "#". 9988 print prefix "define", macro P[macro] D[macro] 9989 next 9990 } else { 9991 # Replace #undef with comments. This is necessary, for example, 9992 # in the case of _POSIX_SOURCE, which is predefined and required 9993 # on some systems where configure will not decide to define it. 9994 if (defundef == "undef") { 9995 print "/*", prefix defundef, macro, "*/" 9996 next 9997 } 9998 } 9999} 10000{ print } 10001_ACAWK 10002_ACEOF 10003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10004 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 10005fi # test -n "$CONFIG_HEADERS" 10006 10007 10008eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 10009shift 10010for ac_tag 10011do 10012 case $ac_tag in 10013 :[FHLC]) ac_mode=$ac_tag; continue;; 10014 esac 10015 case $ac_mode$ac_tag in 10016 :[FHL]*:*);; 10017 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 10018 :[FH]-) ac_tag=-:-;; 10019 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 10020 esac 10021 ac_save_IFS=$IFS 10022 IFS=: 10023 set x $ac_tag 10024 IFS=$ac_save_IFS 10025 shift 10026 ac_file=$1 10027 shift 10028 10029 case $ac_mode in 10030 :L) ac_source=$1;; 10031 :[FH]) 10032 ac_file_inputs= 10033 for ac_f 10034 do 10035 case $ac_f in 10036 -) ac_f="$tmp/stdin";; 10037 *) # Look for the file first in the build tree, then in the source tree 10038 # (if the path is not absolute). The absolute path cannot be DOS-style, 10039 # because $ac_f cannot contain `:'. 10040 test -f "$ac_f" || 10041 case $ac_f in 10042 [\\/$]*) false;; 10043 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 10044 esac || 10045 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 10046 esac 10047 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 10048 as_fn_append ac_file_inputs " '$ac_f'" 10049 done 10050 10051 # Let's still pretend it is `configure' which instantiates (i.e., don't 10052 # use $as_me), people would be surprised to read: 10053 # /* config.h. Generated by config.status. */ 10054 configure_input='Generated from '` 10055 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 10056 `' by configure.' 10057 if test x"$ac_file" != x-; then 10058 configure_input="$ac_file. $configure_input" 10059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 10060$as_echo "$as_me: creating $ac_file" >&6;} 10061 fi 10062 # Neutralize special characters interpreted by sed in replacement strings. 10063 case $configure_input in #( 10064 *\&* | *\|* | *\\* ) 10065 ac_sed_conf_input=`$as_echo "$configure_input" | 10066 sed 's/[\\\\&|]/\\\\&/g'`;; #( 10067 *) ac_sed_conf_input=$configure_input;; 10068 esac 10069 10070 case $ac_tag in 10071 *:-:* | *:-) cat >"$tmp/stdin" \ 10072 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 10073 esac 10074 ;; 10075 esac 10076 10077 ac_dir=`$as_dirname -- "$ac_file" || 10078$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10079 X"$ac_file" : 'X\(//\)[^/]' \| \ 10080 X"$ac_file" : 'X\(//\)$' \| \ 10081 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 10082$as_echo X"$ac_file" | 10083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10084 s//\1/ 10085 q 10086 } 10087 /^X\(\/\/\)[^/].*/{ 10088 s//\1/ 10089 q 10090 } 10091 /^X\(\/\/\)$/{ 10092 s//\1/ 10093 q 10094 } 10095 /^X\(\/\).*/{ 10096 s//\1/ 10097 q 10098 } 10099 s/.*/./; q'` 10100 as_dir="$ac_dir"; as_fn_mkdir_p 10101 ac_builddir=. 10102 10103case "$ac_dir" in 10104.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 10105*) 10106 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 10107 # A ".." for each directory in $ac_dir_suffix. 10108 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 10109 case $ac_top_builddir_sub in 10110 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 10111 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 10112 esac ;; 10113esac 10114ac_abs_top_builddir=$ac_pwd 10115ac_abs_builddir=$ac_pwd$ac_dir_suffix 10116# for backward compatibility: 10117ac_top_builddir=$ac_top_build_prefix 10118 10119case $srcdir in 10120 .) # We are building in place. 10121 ac_srcdir=. 10122 ac_top_srcdir=$ac_top_builddir_sub 10123 ac_abs_top_srcdir=$ac_pwd ;; 10124 [\\/]* | ?:[\\/]* ) # Absolute name. 10125 ac_srcdir=$srcdir$ac_dir_suffix; 10126 ac_top_srcdir=$srcdir 10127 ac_abs_top_srcdir=$srcdir ;; 10128 *) # Relative name. 10129 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 10130 ac_top_srcdir=$ac_top_build_prefix$srcdir 10131 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 10132esac 10133ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 10134 10135 10136 case $ac_mode in 10137 :F) 10138 # 10139 # CONFIG_FILE 10140 # 10141 10142 case $INSTALL in 10143 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 10144 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 10145 esac 10146 ac_MKDIR_P=$MKDIR_P 10147 case $MKDIR_P in 10148 [\\/$]* | ?:[\\/]* ) ;; 10149 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 10150 esac 10151_ACEOF 10152 10153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10154# If the template does not know about datarootdir, expand it. 10155# FIXME: This hack should be removed a few years after 2.60. 10156ac_datarootdir_hack=; ac_datarootdir_seen= 10157ac_sed_dataroot=' 10158/datarootdir/ { 10159 p 10160 q 10161} 10162/@datadir@/p 10163/@docdir@/p 10164/@infodir@/p 10165/@localedir@/p 10166/@mandir@/p' 10167case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 10168*datarootdir*) ac_datarootdir_seen=yes;; 10169*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 10170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 10171$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 10172_ACEOF 10173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10174 ac_datarootdir_hack=' 10175 s&@datadir@&$datadir&g 10176 s&@docdir@&$docdir&g 10177 s&@infodir@&$infodir&g 10178 s&@localedir@&$localedir&g 10179 s&@mandir@&$mandir&g 10180 s&\\\${datarootdir}&$datarootdir&g' ;; 10181esac 10182_ACEOF 10183 10184# Neutralize VPATH when `$srcdir' = `.'. 10185# Shell code in configure.ac might set extrasub. 10186# FIXME: do we really want to maintain this feature? 10187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10188ac_sed_extra="$ac_vpsub 10189$extrasub 10190_ACEOF 10191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10192:t 10193/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 10194s|@configure_input@|$ac_sed_conf_input|;t t 10195s&@top_builddir@&$ac_top_builddir_sub&;t t 10196s&@top_build_prefix@&$ac_top_build_prefix&;t t 10197s&@srcdir@&$ac_srcdir&;t t 10198s&@abs_srcdir@&$ac_abs_srcdir&;t t 10199s&@top_srcdir@&$ac_top_srcdir&;t t 10200s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 10201s&@builddir@&$ac_builddir&;t t 10202s&@abs_builddir@&$ac_abs_builddir&;t t 10203s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 10204s&@INSTALL@&$ac_INSTALL&;t t 10205s&@MKDIR_P@&$ac_MKDIR_P&;t t 10206$ac_datarootdir_hack 10207" 10208eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 10209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10210 10211test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 10212 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 10213 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 10214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10215which seems to be undefined. Please make sure it is defined" >&5 10216$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10217which seems to be undefined. Please make sure it is defined" >&2;} 10218 10219 rm -f "$tmp/stdin" 10220 case $ac_file in 10221 -) cat "$tmp/out" && rm -f "$tmp/out";; 10222 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 10223 esac \ 10224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10225 ;; 10226 :H) 10227 # 10228 # CONFIG_HEADER 10229 # 10230 if test x"$ac_file" != x-; then 10231 { 10232 $as_echo "/* $configure_input */" \ 10233 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 10234 } >"$tmp/config.h" \ 10235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10236 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 10237 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 10238$as_echo "$as_me: $ac_file is unchanged" >&6;} 10239 else 10240 rm -f "$ac_file" 10241 mv "$tmp/config.h" "$ac_file" \ 10242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10243 fi 10244 else 10245 $as_echo "/* $configure_input */" \ 10246 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 10247 || as_fn_error $? "could not create -" "$LINENO" 5 10248 fi 10249# Compute "$ac_file"'s index in $config_headers. 10250_am_arg="$ac_file" 10251_am_stamp_count=1 10252for _am_header in $config_headers :; do 10253 case $_am_header in 10254 $_am_arg | $_am_arg:* ) 10255 break ;; 10256 * ) 10257 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 10258 esac 10259done 10260echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 10261$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10262 X"$_am_arg" : 'X\(//\)[^/]' \| \ 10263 X"$_am_arg" : 'X\(//\)$' \| \ 10264 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 10265$as_echo X"$_am_arg" | 10266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10267 s//\1/ 10268 q 10269 } 10270 /^X\(\/\/\)[^/].*/{ 10271 s//\1/ 10272 q 10273 } 10274 /^X\(\/\/\)$/{ 10275 s//\1/ 10276 q 10277 } 10278 /^X\(\/\).*/{ 10279 s//\1/ 10280 q 10281 } 10282 s/.*/./; q'`/stamp-h$_am_stamp_count 10283 ;; 10284 10285 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 10286$as_echo "$as_me: executing $ac_file commands" >&6;} 10287 ;; 10288 esac 10289 10290 10291 case $ac_file$ac_mode in 10292 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 10293 # Autoconf 2.62 quotes --file arguments for eval, but not when files 10294 # are listed without --file. Let's play safe and only enable the eval 10295 # if we detect the quoting. 10296 case $CONFIG_FILES in 10297 *\'*) eval set x "$CONFIG_FILES" ;; 10298 *) set x $CONFIG_FILES ;; 10299 esac 10300 shift 10301 for mf 10302 do 10303 # Strip MF so we end up with the name of the file. 10304 mf=`echo "$mf" | sed -e 's/:.*$//'` 10305 # Check whether this is an Automake generated Makefile or not. 10306 # We used to match only the files named `Makefile.in', but 10307 # some people rename them; so instead we look at the file content. 10308 # Grep'ing the first line is not enough: some people post-process 10309 # each Makefile.in and add a new line on top of each file to say so. 10310 # Grep'ing the whole file is not good either: AIX grep has a line 10311 # limit of 2048, but all sed's we know have understand at least 4000. 10312 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 10313 dirpart=`$as_dirname -- "$mf" || 10314$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10315 X"$mf" : 'X\(//\)[^/]' \| \ 10316 X"$mf" : 'X\(//\)$' \| \ 10317 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 10318$as_echo X"$mf" | 10319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10320 s//\1/ 10321 q 10322 } 10323 /^X\(\/\/\)[^/].*/{ 10324 s//\1/ 10325 q 10326 } 10327 /^X\(\/\/\)$/{ 10328 s//\1/ 10329 q 10330 } 10331 /^X\(\/\).*/{ 10332 s//\1/ 10333 q 10334 } 10335 s/.*/./; q'` 10336 else 10337 continue 10338 fi 10339 # Extract the definition of DEPDIR, am__include, and am__quote 10340 # from the Makefile without running `make'. 10341 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 10342 test -z "$DEPDIR" && continue 10343 am__include=`sed -n 's/^am__include = //p' < "$mf"` 10344 test -z "am__include" && continue 10345 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 10346 # When using ansi2knr, U may be empty or an underscore; expand it 10347 U=`sed -n 's/^U = //p' < "$mf"` 10348 # Find all dependency output files, they are included files with 10349 # $(DEPDIR) in their names. We invoke sed twice because it is the 10350 # simplest approach to changing $(DEPDIR) to its actual value in the 10351 # expansion. 10352 for file in `sed -n " 10353 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 10354 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 10355 # Make sure the directory exists. 10356 test -f "$dirpart/$file" && continue 10357 fdir=`$as_dirname -- "$file" || 10358$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10359 X"$file" : 'X\(//\)[^/]' \| \ 10360 X"$file" : 'X\(//\)$' \| \ 10361 X"$file" : 'X\(/\)' \| . 2>/dev/null || 10362$as_echo X"$file" | 10363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10364 s//\1/ 10365 q 10366 } 10367 /^X\(\/\/\)[^/].*/{ 10368 s//\1/ 10369 q 10370 } 10371 /^X\(\/\/\)$/{ 10372 s//\1/ 10373 q 10374 } 10375 /^X\(\/\).*/{ 10376 s//\1/ 10377 q 10378 } 10379 s/.*/./; q'` 10380 as_dir=$dirpart/$fdir; as_fn_mkdir_p 10381 # echo "creating $dirpart/$file" 10382 echo '# dummy' > "$dirpart/$file" 10383 done 10384 done 10385} 10386 ;; 10387 "po-directories":C) 10388 for ac_file in $CONFIG_FILES; do 10389 # Support "outfile[:infile[:infile...]]" 10390 case "$ac_file" in 10391 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 10392 esac 10393 # PO directories have a Makefile.in generated from Makefile.in.in. 10394 case "$ac_file" in */Makefile.in) 10395 # Adjust a relative srcdir. 10396 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 10397 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 10398 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 10399 # In autoconf-2.13 it is called $ac_given_srcdir. 10400 # In autoconf-2.50 it is called $srcdir. 10401 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 10402 case "$ac_given_srcdir" in 10403 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 10404 /*) top_srcdir="$ac_given_srcdir" ;; 10405 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 10406 esac 10407 # Treat a directory as a PO directory if and only if it has a 10408 # POTFILES.in file. This allows packages to have multiple PO 10409 # directories under different names or in different locations. 10410 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 10411 rm -f "$ac_dir/POTFILES" 10412 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 10413 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 10414 POMAKEFILEDEPS="POTFILES.in" 10415 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 10416 # on $ac_dir but don't depend on user-specified configuration 10417 # parameters. 10418 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 10419 # The LINGUAS file contains the set of available languages. 10420 if test -n "$OBSOLETE_ALL_LINGUAS"; then 10421 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 10422 fi 10423 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 10424 # Hide the ALL_LINGUAS assigment from automake < 1.5. 10425 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 10426 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 10427 else 10428 # The set of available languages was given in configure.in. 10429 # Hide the ALL_LINGUAS assigment from automake < 1.5. 10430 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 10431 fi 10432 # Compute POFILES 10433 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 10434 # Compute UPDATEPOFILES 10435 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 10436 # Compute DUMMYPOFILES 10437 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 10438 # Compute GMOFILES 10439 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 10440 case "$ac_given_srcdir" in 10441 .) srcdirpre= ;; 10442 *) srcdirpre='$(srcdir)/' ;; 10443 esac 10444 POFILES= 10445 UPDATEPOFILES= 10446 DUMMYPOFILES= 10447 GMOFILES= 10448 for lang in $ALL_LINGUAS; do 10449 POFILES="$POFILES $srcdirpre$lang.po" 10450 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 10451 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 10452 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 10453 done 10454 # CATALOGS depends on both $ac_dir and the user's LINGUAS 10455 # environment variable. 10456 INST_LINGUAS= 10457 if test -n "$ALL_LINGUAS"; then 10458 for presentlang in $ALL_LINGUAS; do 10459 useit=no 10460 if test "%UNSET%" != "$LINGUAS"; then 10461 desiredlanguages="$LINGUAS" 10462 else 10463 desiredlanguages="$ALL_LINGUAS" 10464 fi 10465 for desiredlang in $desiredlanguages; do 10466 # Use the presentlang catalog if desiredlang is 10467 # a. equal to presentlang, or 10468 # b. a variant of presentlang (because in this case, 10469 # presentlang can be used as a fallback for messages 10470 # which are not translated in the desiredlang catalog). 10471 case "$desiredlang" in 10472 "$presentlang"*) useit=yes;; 10473 esac 10474 done 10475 if test $useit = yes; then 10476 INST_LINGUAS="$INST_LINGUAS $presentlang" 10477 fi 10478 done 10479 fi 10480 CATALOGS= 10481 if test -n "$INST_LINGUAS"; then 10482 for lang in $INST_LINGUAS; do 10483 CATALOGS="$CATALOGS $lang.gmo" 10484 done 10485 fi 10486 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 10487 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 10488 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 10489 if test -f "$f"; then 10490 case "$f" in 10491 *.orig | *.bak | *~) ;; 10492 *) cat "$f" >> "$ac_dir/Makefile" ;; 10493 esac 10494 fi 10495 done 10496 fi 10497 ;; 10498 esac 10499 done ;; 10500 10501 esac 10502done # for ac_tag 10503 10504 10505as_fn_exit 0 10506_ACEOF 10507ac_clean_files=$ac_clean_files_save 10508 10509test $ac_write_fail = 0 || 10510 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 10511 10512 10513# configure is writing to config.log, and then calls config.status. 10514# config.status does its own redirection, appending to config.log. 10515# Unfortunately, on DOS this fails, as config.log is still kept open 10516# by configure, so config.status won't be able to write to it; its 10517# output is simply discarded. So we exec the FD to /dev/null, 10518# effectively closing config.log, so it can be properly (re)opened and 10519# appended to by config.status. When coming back to configure, we 10520# need to make the FD available again. 10521if test "$no_create" != yes; then 10522 ac_cs_success=: 10523 ac_config_status_args= 10524 test "$silent" = yes && 10525 ac_config_status_args="$ac_config_status_args --quiet" 10526 exec 5>/dev/null 10527 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 10528 exec 5>>config.log 10529 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 10530 # would make configure fail if this is the last instruction. 10531 $ac_cs_success || as_fn_exit 1 10532fi 10533if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 10534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 10535$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 10536fi 10537 10538 10539echo "" 10540echo "Now type 'make'." 10541echo "" 10542