1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 8# Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177else 178 as_have_required=no 179fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184as_found=false 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200fi 201fi 202 done;; 203 esac 204 as_found=false 205done 206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209fi; } 210IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 232$0: including any error possibly output before this 233$0: message. Then install a modern shell, or manually run 234$0: the script under such a shell if you do have one." 235 fi 236 exit 1 237fi 238fi 239fi 240SHELL=${CONFIG_SHELL-/bin/sh} 241export SHELL 242# Unset more variables known to interfere with behavior of common tools. 243CLICOLOR_FORCE= GREP_OPTIONS= 244unset CLICOLOR_FORCE GREP_OPTIONS 245 246## --------------------- ## 247## M4sh Shell Functions. ## 248## --------------------- ## 249# as_fn_unset VAR 250# --------------- 251# Portably unset VAR. 252as_fn_unset () 253{ 254 { eval $1=; unset $1;} 255} 256as_unset=as_fn_unset 257 258# as_fn_set_status STATUS 259# ----------------------- 260# Set $? to STATUS, without forking. 261as_fn_set_status () 262{ 263 return $1 264} # as_fn_set_status 265 266# as_fn_exit STATUS 267# ----------------- 268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 269as_fn_exit () 270{ 271 set +e 272 as_fn_set_status $1 273 exit $1 274} # as_fn_exit 275 276# as_fn_mkdir_p 277# ------------- 278# Create "$as_dir" as a directory, including parents if necessary. 279as_fn_mkdir_p () 280{ 281 282 case $as_dir in #( 283 -*) as_dir=./$as_dir;; 284 esac 285 test -d "$as_dir" || eval $as_mkdir_p || { 286 as_dirs= 287 while :; do 288 case $as_dir in #( 289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 290 *) as_qdir=$as_dir;; 291 esac 292 as_dirs="'$as_qdir' $as_dirs" 293 as_dir=`$as_dirname -- "$as_dir" || 294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 295 X"$as_dir" : 'X\(//\)[^/]' \| \ 296 X"$as_dir" : 'X\(//\)$' \| \ 297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 298$as_echo X"$as_dir" | 299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 300 s//\1/ 301 q 302 } 303 /^X\(\/\/\)[^/].*/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\).*/{ 312 s//\1/ 313 q 314 } 315 s/.*/./; q'` 316 test -d "$as_dir" && break 317 done 318 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 320 321 322} # as_fn_mkdir_p 323# as_fn_append VAR VALUE 324# ---------------------- 325# Append the text in VALUE to the end of the definition contained in VAR. Take 326# advantage of any shell optimizations that allow amortized linear growth over 327# repeated appends, instead of the typical quadratic growth present in naive 328# implementations. 329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 330 eval 'as_fn_append () 331 { 332 eval $1+=\$2 333 }' 334else 335 as_fn_append () 336 { 337 eval $1=\$$1\$2 338 } 339fi # as_fn_append 340 341# as_fn_arith ARG... 342# ------------------ 343# Perform arithmetic evaluation on the ARGs, and store the result in the 344# global $as_val. Take advantage of shells that can avoid forks. The arguments 345# must be portable across $(()) and expr. 346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 347 eval 'as_fn_arith () 348 { 349 as_val=$(( $* )) 350 }' 351else 352 as_fn_arith () 353 { 354 as_val=`expr "$@" || test $? -eq 1` 355 } 356fi # as_fn_arith 357 358 359# as_fn_error ERROR [LINENO LOG_FD] 360# --------------------------------- 361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363# script with status $?, using 1 if that was 0. 364as_fn_error () 365{ 366 as_status=$?; test $as_status -eq 0 && as_status=1 367 if test "$3"; then 368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 370 fi 371 $as_echo "$as_me: error: $1" >&2 372 as_fn_exit $as_status 373} # as_fn_error 374 375if expr a : '\(a\)' >/dev/null 2>&1 && 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 377 as_expr=expr 378else 379 as_expr=false 380fi 381 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 383 as_basename=basename 384else 385 as_basename=false 386fi 387 388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 389 as_dirname=dirname 390else 391 as_dirname=false 392fi 393 394as_me=`$as_basename -- "$0" || 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 396 X"$0" : 'X\(//\)$' \| \ 397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 398$as_echo X/"$0" | 399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 400 s//\1/ 401 q 402 } 403 /^X\/\(\/\/\)$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\).*/{ 408 s//\1/ 409 q 410 } 411 s/.*/./; q'` 412 413# Avoid depending upon Character Ranges. 414as_cr_letters='abcdefghijklmnopqrstuvwxyz' 415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 416as_cr_Letters=$as_cr_letters$as_cr_LETTERS 417as_cr_digits='0123456789' 418as_cr_alnum=$as_cr_Letters$as_cr_digits 419 420 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 426 sed -n ' 427 p 428 /[$]LINENO/= 429 ' <$as_myself | 430 sed ' 431 s/[$]LINENO.*/&-/ 432 t lineno 433 b 434 :lineno 435 N 436 :loop 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 438 t loop 439 s/-\n.*// 440 ' >$as_me.lineno && 441 chmod +x "$as_me.lineno" || 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 443 444 # Don't try to exec as it changes $[0], causing all sort of problems 445 # (the dirname of $[0] is not the place where we might find the 446 # original and so on. Autoconf is especially sensitive to this). 447 . "./$as_me.lineno" 448 # Exit status is that of the last command. 449 exit 450} 451 452ECHO_C= ECHO_N= ECHO_T= 453case `echo -n x` in #((((( 454-n*) 455 case `echo 'xy\c'` in 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 457 xy) ECHO_C='\c';; 458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 459 ECHO_T=' ';; 460 esac;; 461*) 462 ECHO_N='-n';; 463esac 464 465rm -f conf$$ conf$$.exe conf$$.file 466if test -d conf$$.dir; then 467 rm -f conf$$.dir/conf$$.file 468else 469 rm -f conf$$.dir 470 mkdir conf$$.dir 2>/dev/null 471fi 472if (echo >conf$$.file) 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then 474 as_ln_s='ln -s' 475 # ... but there are two gotchas: 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 478 # In both cases, we have to default to `cp -p'. 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 480 as_ln_s='cp -p' 481 elif ln conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s=ln 483 else 484 as_ln_s='cp -p' 485 fi 486else 487 as_ln_s='cp -p' 488fi 489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 490rmdir conf$$.dir 2>/dev/null 491 492if mkdir -p . 2>/dev/null; then 493 as_mkdir_p='mkdir -p "$as_dir"' 494else 495 test -d ./-p && rmdir ./-p 496 as_mkdir_p=false 497fi 498 499if test -x / >/dev/null 2>&1; then 500 as_test_x='test -x' 501else 502 if ls -dL / >/dev/null 2>&1; then 503 as_ls_L_option=L 504 else 505 as_ls_L_option= 506 fi 507 as_test_x=' 508 eval sh -c '\'' 509 if test -d "$1"; then 510 test -d "$1/."; 511 else 512 case $1 in #( 513 -*)set "./$1";; 514 esac; 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 516 ???[sx]*):;;*)false;;esac;fi 517 '\'' sh 518 ' 519fi 520as_executable_p=$as_test_x 521 522# Sed expression to map a string onto a valid CPP name. 523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 524 525# Sed expression to map a string onto a valid variable name. 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 527 528 529test -n "$DJDIR" || exec 7<&0 </dev/null 530exec 6>&1 531 532# Name of the host. 533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 534# so uname gets run too. 535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 536 537# 538# Initializations. 539# 540ac_default_prefix=/usr/local 541ac_clean_files= 542ac_config_libobj_dir=. 543LIBOBJS= 544cross_compiling=no 545subdirs= 546MFLAGS= 547MAKEFLAGS= 548 549# Identity of this package. 550PACKAGE_NAME= 551PACKAGE_TARNAME= 552PACKAGE_VERSION= 553PACKAGE_STRING= 554PACKAGE_BUGREPORT= 555PACKAGE_URL= 556 557ac_unique_file="include/kc/kc.h" 558# Factoring default headers for most tests. 559ac_includes_default="\ 560#include <stdio.h> 561#ifdef HAVE_SYS_TYPES_H 562# include <sys/types.h> 563#endif 564#ifdef HAVE_SYS_STAT_H 565# include <sys/stat.h> 566#endif 567#ifdef STDC_HEADERS 568# include <stdlib.h> 569# include <stddef.h> 570#else 571# ifdef HAVE_STDLIB_H 572# include <stdlib.h> 573# endif 574#endif 575#ifdef HAVE_STRING_H 576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 577# include <memory.h> 578# endif 579# include <string.h> 580#endif 581#ifdef HAVE_STRINGS_H 582# include <strings.h> 583#endif 584#ifdef HAVE_INTTYPES_H 585# include <inttypes.h> 586#endif 587#ifdef HAVE_STDINT_H 588# include <stdint.h> 589#endif 590#ifdef HAVE_UNISTD_H 591# include <unistd.h> 592#endif" 593 594gt_needs= 595ac_header_list= 596ac_subst_vars='am__EXEEXT_FALSE 597am__EXEEXT_TRUE 598LTLIBOBJS 599LIBOBJS 600SDL_LIBS 601SDL_CFLAGS 602SDL_CONFIG 603F_L_A_C_LIBS 604VORBIS_LIBS 605MP3LAME_LIBS 606AUDIOFILE_LIBS 607SNDFILE_LIBS 608VNCSERVER_LIBS 609LIBGIF_LIBS 610XVIDCORE_LIBS 611LIBSCHROEDINGER_LIBS 612LIBSCHROEDINGER_CFLAGS 613LIBDIRAC_LIBS 614LIBDIRAC_CFLAGS 615LIBAVFORMAT_LIBS 616LIBAVFORMAT_CFLAGS 617LIBTHEORA_LIBS 618LIBTHEORA_CFLAGS 619LIBTHEORA10_LIBS 620LIBTHEORA10_CFLAGS 621LIBTHEORA11_LIBS 622LIBTHEORA11_CFLAGS 623Z80EX_LIBS 624XMU_LIBS 625XMU_CFLAGS 626X11_LIBS 627X11_CFLAGS 628GTK_LIBS 629GTK_CFLAGS 630PKG_CONFIG 631HAVE_CPPUNIT_FALSE 632HAVE_CPPUNIT_TRUE 633POSUB 634LTLIBINTL 635LIBINTL 636INTLLIBS 637INTL_LIBTOOL_SUFFIX_PREFIX 638INTLOBJS 639GENCAT 640INSTOBJEXT 641DATADIRNAME 642CATOBJEXT 643USE_INCLUDED_LIBINTL 644BUILD_INCLUDED_LIBINTL 645LTLIBC 646WINDRES 647WOE32 648WOE32DLL 649HAVE_WPRINTF 650HAVE_SNPRINTF 651HAVE_ASPRINTF 652HAVE_POSIX_PRINTF 653INTL_MACOSX_LIBS 654GLIBC21 655INTLBISON 656LTLIBICONV 657LIBICONV 658LTLIBMULTITHREAD 659LIBMULTITHREAD 660LTLIBTHREAD 661LIBTHREAD 662LIBPTH_PREFIX 663LTLIBPTH 664LIBPTH 665PRI_MACROS_BROKEN 666ALLOCA 667HAVE_VISIBILITY 668CFLAG_VISIBILITY 669GLIBC2 670XGETTEXT_EXTRA_OPTIONS 671MSGMERGE 672XGETTEXT_015 673XGETTEXT 674GMSGFMT_015 675MSGFMT_015 676GMSGFMT 677MSGFMT 678GETTEXT_MACRO_VERSION 679USE_NLS 680USE_INCLUDED_GETOPT_FALSE 681USE_INCLUDED_GETOPT_TRUE 682XMKMF 683TARGET_FREEBSD_FALSE 684TARGET_FREEBSD_TRUE 685TARGET_LINUX_FALSE 686TARGET_LINUX_TRUE 687TARGET_MINGW_FALSE 688TARGET_MINGW_TRUE 689COMPILE_Z80_ASM_FALSE 690COMPILE_Z80_ASM_TRUE 691HAVE_P2BIN 692HAVE_ASL 693RC 694RANLIB 695LN_S 696am__fastdepCXX_FALSE 697am__fastdepCXX_TRUE 698CXXDEPMODE 699ac_ct_CXX 700CXXFLAGS 701CXX 702am__fastdepCC_FALSE 703am__fastdepCC_TRUE 704CCDEPMODE 705AMDEPBACKSLASH 706AMDEP_FALSE 707AMDEP_TRUE 708am__quote 709am__include 710DEPDIR 711am__untar 712am__tar 713AMTAR 714am__leading_dot 715SET_MAKE 716AWK 717mkdir_p 718MKDIR_P 719INSTALL_STRIP_PROGRAM 720STRIP 721install_sh 722MAKEINFO 723AUTOHEADER 724AUTOMAKE 725AUTOCONF 726ACLOCAL 727CYGPATH_W 728am__isrc 729INSTALL_DATA 730INSTALL_SCRIPT 731INSTALL_PROGRAM 732KCEMU_EXTRA_VERSION_TEXT 733KCEMU_EXTRA_VERSION 734KCEMU_MICRO_VERSION 735KCEMU_MINOR_VERSION 736KCEMU_MAJOR_VERSION 737VERSION 738PACKAGE 739target_os 740target_vendor 741target_cpu 742target 743host_os 744host_vendor 745host_cpu 746host 747build_os 748build_vendor 749build_cpu 750build 751EGREP 752GREP 753CPP 754OBJEXT 755EXEEXT 756ac_ct_CC 757CPPFLAGS 758LDFLAGS 759CFLAGS 760CC 761target_alias 762host_alias 763build_alias 764LIBS 765ECHO_T 766ECHO_N 767ECHO_C 768DEFS 769mandir 770localedir 771libdir 772psdir 773pdfdir 774dvidir 775htmldir 776infodir 777docdir 778oldincludedir 779includedir 780localstatedir 781sharedstatedir 782sysconfdir 783datadir 784datarootdir 785libexecdir 786sbindir 787bindir 788program_transform_name 789prefix 790exec_prefix 791PACKAGE_URL 792PACKAGE_BUGREPORT 793PACKAGE_STRING 794PACKAGE_VERSION 795PACKAGE_TARNAME 796PACKAGE_NAME 797PATH_SEPARATOR 798SHELL' 799ac_subst_files='' 800ac_user_opts=' 801enable_option_checking 802enable_static_z80ex 803enable_sound 804enable_libaudiofile 805enable_libsndfile 806enable_libflac 807enable_libvorbis 808enable_libtheora 809enable_libxvidcore 810enable_libdirac 811enable_libschroedinger 812enable_libavformat 813enable_libgif 814enable_libvncserver 815enable_libmp3lame 816enable_ms_bitfields 817with_ui 818with_debug_level 819enable_dependency_tracking 820with_x 821enable_nls 822enable_threads 823with_gnu_ld 824enable_rpath 825with_libpth_prefix 826with_libiconv_prefix 827with_included_gettext 828with_libintl_prefix 829with_sdl_prefix 830with_sdl_exec_prefix 831enable_sdltest 832' 833 ac_precious_vars='build_alias 834host_alias 835target_alias 836CC 837CFLAGS 838LDFLAGS 839LIBS 840CPPFLAGS 841CPP 842CXX 843CXXFLAGS 844CCC 845XMKMF 846PKG_CONFIG 847GTK_CFLAGS 848GTK_LIBS 849X11_CFLAGS 850X11_LIBS 851XMU_CFLAGS 852XMU_LIBS 853LIBTHEORA11_CFLAGS 854LIBTHEORA11_LIBS 855LIBTHEORA10_CFLAGS 856LIBTHEORA10_LIBS 857LIBAVFORMAT_CFLAGS 858LIBAVFORMAT_LIBS 859LIBDIRAC_CFLAGS 860LIBDIRAC_LIBS 861LIBSCHROEDINGER_CFLAGS 862LIBSCHROEDINGER_LIBS' 863 864 865# Initialize some variables set by options. 866ac_init_help= 867ac_init_version=false 868ac_unrecognized_opts= 869ac_unrecognized_sep= 870# The variables have the same names as the options, with 871# dashes changed to underlines. 872cache_file=/dev/null 873exec_prefix=NONE 874no_create= 875no_recursion= 876prefix=NONE 877program_prefix=NONE 878program_suffix=NONE 879program_transform_name=s,x,x, 880silent= 881site= 882srcdir= 883verbose= 884x_includes=NONE 885x_libraries=NONE 886 887# Installation directory options. 888# These are left unexpanded so users can "make install exec_prefix=/foo" 889# and all the variables that are supposed to be based on exec_prefix 890# by default will actually change. 891# Use braces instead of parens because sh, perl, etc. also accept them. 892# (The list follows the same order as the GNU Coding Standards.) 893bindir='${exec_prefix}/bin' 894sbindir='${exec_prefix}/sbin' 895libexecdir='${exec_prefix}/libexec' 896datarootdir='${prefix}/share' 897datadir='${datarootdir}' 898sysconfdir='${prefix}/etc' 899sharedstatedir='${prefix}/com' 900localstatedir='${prefix}/var' 901includedir='${prefix}/include' 902oldincludedir='/usr/include' 903docdir='${datarootdir}/doc/${PACKAGE}' 904infodir='${datarootdir}/info' 905htmldir='${docdir}' 906dvidir='${docdir}' 907pdfdir='${docdir}' 908psdir='${docdir}' 909libdir='${exec_prefix}/lib' 910localedir='${datarootdir}/locale' 911mandir='${datarootdir}/man' 912 913ac_prev= 914ac_dashdash= 915for ac_option 916do 917 # If the previous option needs an argument, assign it. 918 if test -n "$ac_prev"; then 919 eval $ac_prev=\$ac_option 920 ac_prev= 921 continue 922 fi 923 924 case $ac_option in 925 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 926 *) ac_optarg=yes ;; 927 esac 928 929 # Accept the important Cygnus configure options, so we can diagnose typos. 930 931 case $ac_dashdash$ac_option in 932 --) 933 ac_dashdash=yes ;; 934 935 -bindir | --bindir | --bindi | --bind | --bin | --bi) 936 ac_prev=bindir ;; 937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 938 bindir=$ac_optarg ;; 939 940 -build | --build | --buil | --bui | --bu) 941 ac_prev=build_alias ;; 942 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 943 build_alias=$ac_optarg ;; 944 945 -cache-file | --cache-file | --cache-fil | --cache-fi \ 946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 947 ac_prev=cache_file ;; 948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 950 cache_file=$ac_optarg ;; 951 952 --config-cache | -C) 953 cache_file=config.cache ;; 954 955 -datadir | --datadir | --datadi | --datad) 956 ac_prev=datadir ;; 957 -datadir=* | --datadir=* | --datadi=* | --datad=*) 958 datadir=$ac_optarg ;; 959 960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 961 | --dataroo | --dataro | --datar) 962 ac_prev=datarootdir ;; 963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 965 datarootdir=$ac_optarg ;; 966 967 -disable-* | --disable-*) 968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 969 # Reject names that are not valid shell variable names. 970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 971 as_fn_error "invalid feature name: $ac_useropt" 972 ac_useropt_orig=$ac_useropt 973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 974 case $ac_user_opts in 975 *" 976"enable_$ac_useropt" 977"*) ;; 978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 979 ac_unrecognized_sep=', ';; 980 esac 981 eval enable_$ac_useropt=no ;; 982 983 -docdir | --docdir | --docdi | --doc | --do) 984 ac_prev=docdir ;; 985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 986 docdir=$ac_optarg ;; 987 988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 989 ac_prev=dvidir ;; 990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 991 dvidir=$ac_optarg ;; 992 993 -enable-* | --enable-*) 994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 995 # Reject names that are not valid shell variable names. 996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 997 as_fn_error "invalid feature name: $ac_useropt" 998 ac_useropt_orig=$ac_useropt 999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1000 case $ac_user_opts in 1001 *" 1002"enable_$ac_useropt" 1003"*) ;; 1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1005 ac_unrecognized_sep=', ';; 1006 esac 1007 eval enable_$ac_useropt=\$ac_optarg ;; 1008 1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1011 | --exec | --exe | --ex) 1012 ac_prev=exec_prefix ;; 1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1015 | --exec=* | --exe=* | --ex=*) 1016 exec_prefix=$ac_optarg ;; 1017 1018 -gas | --gas | --ga | --g) 1019 # Obsolete; use --with-gas. 1020 with_gas=yes ;; 1021 1022 -help | --help | --hel | --he | -h) 1023 ac_init_help=long ;; 1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1025 ac_init_help=recursive ;; 1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1027 ac_init_help=short ;; 1028 1029 -host | --host | --hos | --ho) 1030 ac_prev=host_alias ;; 1031 -host=* | --host=* | --hos=* | --ho=*) 1032 host_alias=$ac_optarg ;; 1033 1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1035 ac_prev=htmldir ;; 1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1037 | --ht=*) 1038 htmldir=$ac_optarg ;; 1039 1040 -includedir | --includedir | --includedi | --included | --include \ 1041 | --includ | --inclu | --incl | --inc) 1042 ac_prev=includedir ;; 1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1044 | --includ=* | --inclu=* | --incl=* | --inc=*) 1045 includedir=$ac_optarg ;; 1046 1047 -infodir | --infodir | --infodi | --infod | --info | --inf) 1048 ac_prev=infodir ;; 1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1050 infodir=$ac_optarg ;; 1051 1052 -libdir | --libdir | --libdi | --libd) 1053 ac_prev=libdir ;; 1054 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1055 libdir=$ac_optarg ;; 1056 1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1058 | --libexe | --libex | --libe) 1059 ac_prev=libexecdir ;; 1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1061 | --libexe=* | --libex=* | --libe=*) 1062 libexecdir=$ac_optarg ;; 1063 1064 -localedir | --localedir | --localedi | --localed | --locale) 1065 ac_prev=localedir ;; 1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1067 localedir=$ac_optarg ;; 1068 1069 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1070 | --localstate | --localstat | --localsta | --localst | --locals) 1071 ac_prev=localstatedir ;; 1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1074 localstatedir=$ac_optarg ;; 1075 1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1077 ac_prev=mandir ;; 1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1079 mandir=$ac_optarg ;; 1080 1081 -nfp | --nfp | --nf) 1082 # Obsolete; use --without-fp. 1083 with_fp=no ;; 1084 1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1086 | --no-cr | --no-c | -n) 1087 no_create=yes ;; 1088 1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1091 no_recursion=yes ;; 1092 1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1095 | --oldin | --oldi | --old | --ol | --o) 1096 ac_prev=oldincludedir ;; 1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1100 oldincludedir=$ac_optarg ;; 1101 1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1103 ac_prev=prefix ;; 1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1105 prefix=$ac_optarg ;; 1106 1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1108 | --program-pre | --program-pr | --program-p) 1109 ac_prev=program_prefix ;; 1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1112 program_prefix=$ac_optarg ;; 1113 1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1115 | --program-suf | --program-su | --program-s) 1116 ac_prev=program_suffix ;; 1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1119 program_suffix=$ac_optarg ;; 1120 1121 -program-transform-name | --program-transform-name \ 1122 | --program-transform-nam | --program-transform-na \ 1123 | --program-transform-n | --program-transform- \ 1124 | --program-transform | --program-transfor \ 1125 | --program-transfo | --program-transf \ 1126 | --program-trans | --program-tran \ 1127 | --progr-tra | --program-tr | --program-t) 1128 ac_prev=program_transform_name ;; 1129 -program-transform-name=* | --program-transform-name=* \ 1130 | --program-transform-nam=* | --program-transform-na=* \ 1131 | --program-transform-n=* | --program-transform-=* \ 1132 | --program-transform=* | --program-transfor=* \ 1133 | --program-transfo=* | --program-transf=* \ 1134 | --program-trans=* | --program-tran=* \ 1135 | --progr-tra=* | --program-tr=* | --program-t=*) 1136 program_transform_name=$ac_optarg ;; 1137 1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1139 ac_prev=pdfdir ;; 1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1141 pdfdir=$ac_optarg ;; 1142 1143 -psdir | --psdir | --psdi | --psd | --ps) 1144 ac_prev=psdir ;; 1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1146 psdir=$ac_optarg ;; 1147 1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1149 | -silent | --silent | --silen | --sile | --sil) 1150 silent=yes ;; 1151 1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1153 ac_prev=sbindir ;; 1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1155 | --sbi=* | --sb=*) 1156 sbindir=$ac_optarg ;; 1157 1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1160 | --sharedst | --shareds | --shared | --share | --shar \ 1161 | --sha | --sh) 1162 ac_prev=sharedstatedir ;; 1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1166 | --sha=* | --sh=*) 1167 sharedstatedir=$ac_optarg ;; 1168 1169 -site | --site | --sit) 1170 ac_prev=site ;; 1171 -site=* | --site=* | --sit=*) 1172 site=$ac_optarg ;; 1173 1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1175 ac_prev=srcdir ;; 1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1177 srcdir=$ac_optarg ;; 1178 1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1180 | --syscon | --sysco | --sysc | --sys | --sy) 1181 ac_prev=sysconfdir ;; 1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1184 sysconfdir=$ac_optarg ;; 1185 1186 -target | --target | --targe | --targ | --tar | --ta | --t) 1187 ac_prev=target_alias ;; 1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1189 target_alias=$ac_optarg ;; 1190 1191 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1192 verbose=yes ;; 1193 1194 -version | --version | --versio | --versi | --vers | -V) 1195 ac_init_version=: ;; 1196 1197 -with-* | --with-*) 1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1199 # Reject names that are not valid shell variable names. 1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1201 as_fn_error "invalid package name: $ac_useropt" 1202 ac_useropt_orig=$ac_useropt 1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1204 case $ac_user_opts in 1205 *" 1206"with_$ac_useropt" 1207"*) ;; 1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1209 ac_unrecognized_sep=', ';; 1210 esac 1211 eval with_$ac_useropt=\$ac_optarg ;; 1212 1213 -without-* | --without-*) 1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1215 # Reject names that are not valid shell variable names. 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1217 as_fn_error "invalid package name: $ac_useropt" 1218 ac_useropt_orig=$ac_useropt 1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1220 case $ac_user_opts in 1221 *" 1222"with_$ac_useropt" 1223"*) ;; 1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1225 ac_unrecognized_sep=', ';; 1226 esac 1227 eval with_$ac_useropt=no ;; 1228 1229 --x) 1230 # Obsolete; use --with-x. 1231 with_x=yes ;; 1232 1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1234 | --x-incl | --x-inc | --x-in | --x-i) 1235 ac_prev=x_includes ;; 1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1238 x_includes=$ac_optarg ;; 1239 1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1242 ac_prev=x_libraries ;; 1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1245 x_libraries=$ac_optarg ;; 1246 1247 -*) as_fn_error "unrecognized option: \`$ac_option' 1248Try \`$0 --help' for more information." 1249 ;; 1250 1251 *=*) 1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1253 # Reject names that are not valid shell variable names. 1254 case $ac_envvar in #( 1255 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1256 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1257 esac 1258 eval $ac_envvar=\$ac_optarg 1259 export $ac_envvar ;; 1260 1261 *) 1262 # FIXME: should be removed in autoconf 3.0. 1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1266 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1267 ;; 1268 1269 esac 1270done 1271 1272if test -n "$ac_prev"; then 1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1274 as_fn_error "missing argument to $ac_option" 1275fi 1276 1277if test -n "$ac_unrecognized_opts"; then 1278 case $enable_option_checking in 1279 no) ;; 1280 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1282 esac 1283fi 1284 1285# Check all directory arguments for consistency. 1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1287 datadir sysconfdir sharedstatedir localstatedir includedir \ 1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1289 libdir localedir mandir 1290do 1291 eval ac_val=\$$ac_var 1292 # Remove trailing slashes. 1293 case $ac_val in 1294 */ ) 1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1296 eval $ac_var=\$ac_val;; 1297 esac 1298 # Be sure to have absolute directory names. 1299 case $ac_val in 1300 [\\/$]* | ?:[\\/]* ) continue;; 1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1302 esac 1303 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1304done 1305 1306# There might be people who depend on the old broken behavior: `$host' 1307# used to hold the argument of --host etc. 1308# FIXME: To remove some day. 1309build=$build_alias 1310host=$host_alias 1311target=$target_alias 1312 1313# FIXME: To remove some day. 1314if test "x$host_alias" != x; then 1315 if test "x$build_alias" = x; then 1316 cross_compiling=maybe 1317 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1318 If a cross compiler is detected then cross compile mode will be used." >&2 1319 elif test "x$build_alias" != "x$host_alias"; then 1320 cross_compiling=yes 1321 fi 1322fi 1323 1324ac_tool_prefix= 1325test -n "$host_alias" && ac_tool_prefix=$host_alias- 1326 1327test "$silent" = yes && exec 6>/dev/null 1328 1329 1330ac_pwd=`pwd` && test -n "$ac_pwd" && 1331ac_ls_di=`ls -di .` && 1332ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1333 as_fn_error "working directory cannot be determined" 1334test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1335 as_fn_error "pwd does not report name of working directory" 1336 1337 1338# Find the source files, if location was not specified. 1339if test -z "$srcdir"; then 1340 ac_srcdir_defaulted=yes 1341 # Try the directory containing this script, then the parent directory. 1342 ac_confdir=`$as_dirname -- "$as_myself" || 1343$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1344 X"$as_myself" : 'X\(//\)[^/]' \| \ 1345 X"$as_myself" : 'X\(//\)$' \| \ 1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1347$as_echo X"$as_myself" | 1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\/\)[^/].*/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\/\)$/{ 1357 s//\1/ 1358 q 1359 } 1360 /^X\(\/\).*/{ 1361 s//\1/ 1362 q 1363 } 1364 s/.*/./; q'` 1365 srcdir=$ac_confdir 1366 if test ! -r "$srcdir/$ac_unique_file"; then 1367 srcdir=.. 1368 fi 1369else 1370 ac_srcdir_defaulted=no 1371fi 1372if test ! -r "$srcdir/$ac_unique_file"; then 1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1374 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1375fi 1376ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1377ac_abs_confdir=`( 1378 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1379 pwd)` 1380# When building in place, set srcdir=. 1381if test "$ac_abs_confdir" = "$ac_pwd"; then 1382 srcdir=. 1383fi 1384# Remove unnecessary trailing slashes from srcdir. 1385# Double slashes in file names in object file debugging info 1386# mess up M-x gdb in Emacs. 1387case $srcdir in 1388*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1389esac 1390for ac_var in $ac_precious_vars; do 1391 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1392 eval ac_env_${ac_var}_value=\$${ac_var} 1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1394 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1395done 1396 1397# 1398# Report the --help message. 1399# 1400if test "$ac_init_help" = "long"; then 1401 # Omit some internal or obsolete options to make the list less imposing. 1402 # This message is too long to be a string in the A/UX 3.1 sh. 1403 cat <<_ACEOF 1404\`configure' configures this package to adapt to many kinds of systems. 1405 1406Usage: $0 [OPTION]... [VAR=VALUE]... 1407 1408To assign environment variables (e.g., CC, CFLAGS...), specify them as 1409VAR=VALUE. See below for descriptions of some of the useful variables. 1410 1411Defaults for the options are specified in brackets. 1412 1413Configuration: 1414 -h, --help display this help and exit 1415 --help=short display options specific to this package 1416 --help=recursive display the short help of all the included packages 1417 -V, --version display version information and exit 1418 -q, --quiet, --silent do not print \`checking...' messages 1419 --cache-file=FILE cache test results in FILE [disabled] 1420 -C, --config-cache alias for \`--cache-file=config.cache' 1421 -n, --no-create do not create output files 1422 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1423 1424Installation directories: 1425 --prefix=PREFIX install architecture-independent files in PREFIX 1426 [$ac_default_prefix] 1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1428 [PREFIX] 1429 1430By default, \`make install' will install all the files in 1431\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1432an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1433for instance \`--prefix=\$HOME'. 1434 1435For better control, use the options below. 1436 1437Fine tuning of the installation directories: 1438 --bindir=DIR user executables [EPREFIX/bin] 1439 --sbindir=DIR system admin executables [EPREFIX/sbin] 1440 --libexecdir=DIR program executables [EPREFIX/libexec] 1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1444 --libdir=DIR object code libraries [EPREFIX/lib] 1445 --includedir=DIR C header files [PREFIX/include] 1446 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1449 --infodir=DIR info documentation [DATAROOTDIR/info] 1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1451 --mandir=DIR man documentation [DATAROOTDIR/man] 1452 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1453 --htmldir=DIR html documentation [DOCDIR] 1454 --dvidir=DIR dvi documentation [DOCDIR] 1455 --pdfdir=DIR pdf documentation [DOCDIR] 1456 --psdir=DIR ps documentation [DOCDIR] 1457_ACEOF 1458 1459 cat <<\_ACEOF 1460 1461Program names: 1462 --program-prefix=PREFIX prepend PREFIX to installed program names 1463 --program-suffix=SUFFIX append SUFFIX to installed program names 1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1465 1466X features: 1467 --x-includes=DIR X include files are in DIR 1468 --x-libraries=DIR X library files are in DIR 1469 1470System types: 1471 --build=BUILD configure for building on BUILD [guessed] 1472 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1473 --target=TARGET configure for building compilers for TARGET [HOST] 1474_ACEOF 1475fi 1476 1477if test -n "$ac_init_help"; then 1478 1479 cat <<\_ACEOF 1480 1481Optional Features: 1482 --disable-option-checking ignore unrecognized --enable/--with options 1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1485 --enable-static-z80ex link Z80 emulation statically default=no 1486 --enable-sound enable sound using libSDL (broken!) default=no 1487 --enable-libaudiofile enable usage of libaudiofile if present default=yes 1488 --enable-libsndfile enable usage of libsndfile if present default=yes 1489 --enable-libflac enable usage of libFLAC 1.0.x if present default=yes 1490 --enable-libvorbis enable usage of libvorbis if present default=yes 1491 --enable-libtheora enable usage of libtheora if present default=yes 1492 --enable-libxvidcore enable usage of libxvidcore if present default=yes 1493 --enable-libdirac enable usage of libdirac if present default=yes 1494 --enable-libschroedinger enable usage of libschroedinger if present default=yes 1495 --enable-libavformat enable usage of libavformat if present default=yes 1496 --enable-libgif enable usage of libgif if present default=yes 1497 --enable-libvncserver enable usage of libvncserver if present default=yes 1498 --enable-libmp3lame enable usage of libmp3lame if present default=yes 1499 --enable-ms-bitfields enable usage of gcc -mms-bitfields on MinGW default=yes 1500 --disable-dependency-tracking speeds up one-time build 1501 --enable-dependency-tracking do not reject slow dependency extractors 1502 --disable-nls do not use Native Language Support 1503 --enable-threads={posix|solaris|pth|win32} 1504 specify multithreading API 1505 --disable-threads build without multithread safety 1506 --disable-rpath do not hardcode runtime library paths 1507 --disable-sdltest Do not try to compile and run a test SDL program 1508 1509Optional Packages: 1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1512 --with-ui=UI use User Interface UI (gtk or sdl) default=auto 1513 --with-debug-level=L set debug level to L (0..3) default=1 1514 --with-x use the X Window System 1515 --with-gnu-ld assume the C compiler uses GNU ld default=no 1516 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib 1517 --without-libpth-prefix don't search for libpth in includedir and libdir 1518 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1519 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1520 --with-included-gettext use the GNU gettext library included here 1521 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1522 --without-libintl-prefix don't search for libintl in includedir and libdir 1523 --with-sdl-prefix=PFX Prefix where SDL is installed (optional) 1524 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) 1525 1526Some influential environment variables: 1527 CC C compiler command 1528 CFLAGS C compiler flags 1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1530 nonstandard directory <lib dir> 1531 LIBS libraries to pass to the linker, e.g. -l<library> 1532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1533 you have headers in a nonstandard directory <include dir> 1534 CPP C preprocessor 1535 CXX C++ compiler command 1536 CXXFLAGS C++ compiler flags 1537 XMKMF Path to xmkmf, Makefile generator for X Window System 1538 PKG_CONFIG path to pkg-config utility 1539 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config 1540 GTK_LIBS linker flags for GTK, overriding pkg-config 1541 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1542 X11_LIBS linker flags for X11, overriding pkg-config 1543 XMU_CFLAGS C compiler flags for XMU, overriding pkg-config 1544 XMU_LIBS linker flags for XMU, overriding pkg-config 1545 LIBTHEORA11_CFLAGS 1546 C compiler flags for LIBTHEORA11, overriding pkg-config 1547 LIBTHEORA11_LIBS 1548 linker flags for LIBTHEORA11, overriding pkg-config 1549 LIBTHEORA10_CFLAGS 1550 C compiler flags for LIBTHEORA10, overriding pkg-config 1551 LIBTHEORA10_LIBS 1552 linker flags for LIBTHEORA10, overriding pkg-config 1553 LIBAVFORMAT_CFLAGS 1554 C compiler flags for LIBAVFORMAT, overriding pkg-config 1555 LIBAVFORMAT_LIBS 1556 linker flags for LIBAVFORMAT, overriding pkg-config 1557 LIBDIRAC_CFLAGS 1558 C compiler flags for LIBDIRAC, overriding pkg-config 1559 LIBDIRAC_LIBS 1560 linker flags for LIBDIRAC, overriding pkg-config 1561 LIBSCHROEDINGER_CFLAGS 1562 C compiler flags for LIBSCHROEDINGER, overriding pkg-config 1563 LIBSCHROEDINGER_LIBS 1564 linker flags for LIBSCHROEDINGER, overriding pkg-config 1565 1566Use these variables to override the choices made by `configure' or to help 1567it to find libraries and programs with nonstandard names/locations. 1568 1569Report bugs to the package provider. 1570_ACEOF 1571ac_status=$? 1572fi 1573 1574if test "$ac_init_help" = "recursive"; then 1575 # If there are subdirs, report their specific --help. 1576 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1577 test -d "$ac_dir" || 1578 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1579 continue 1580 ac_builddir=. 1581 1582case "$ac_dir" in 1583.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1584*) 1585 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1586 # A ".." for each directory in $ac_dir_suffix. 1587 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1588 case $ac_top_builddir_sub in 1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1591 esac ;; 1592esac 1593ac_abs_top_builddir=$ac_pwd 1594ac_abs_builddir=$ac_pwd$ac_dir_suffix 1595# for backward compatibility: 1596ac_top_builddir=$ac_top_build_prefix 1597 1598case $srcdir in 1599 .) # We are building in place. 1600 ac_srcdir=. 1601 ac_top_srcdir=$ac_top_builddir_sub 1602 ac_abs_top_srcdir=$ac_pwd ;; 1603 [\\/]* | ?:[\\/]* ) # Absolute name. 1604 ac_srcdir=$srcdir$ac_dir_suffix; 1605 ac_top_srcdir=$srcdir 1606 ac_abs_top_srcdir=$srcdir ;; 1607 *) # Relative name. 1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1609 ac_top_srcdir=$ac_top_build_prefix$srcdir 1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1611esac 1612ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1613 1614 cd "$ac_dir" || { ac_status=$?; continue; } 1615 # Check for guested configure. 1616 if test -f "$ac_srcdir/configure.gnu"; then 1617 echo && 1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1619 elif test -f "$ac_srcdir/configure"; then 1620 echo && 1621 $SHELL "$ac_srcdir/configure" --help=recursive 1622 else 1623 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1624 fi || ac_status=$? 1625 cd "$ac_pwd" || { ac_status=$?; break; } 1626 done 1627fi 1628 1629test -n "$ac_init_help" && exit $ac_status 1630if $ac_init_version; then 1631 cat <<\_ACEOF 1632configure 1633generated by GNU Autoconf 2.65 1634 1635Copyright (C) 2009 Free Software Foundation, Inc. 1636This configure script is free software; the Free Software Foundation 1637gives unlimited permission to copy, distribute and modify it. 1638_ACEOF 1639 exit 1640fi 1641 1642## ------------------------ ## 1643## Autoconf initialization. ## 1644## ------------------------ ## 1645 1646# ac_fn_c_try_compile LINENO 1647# -------------------------- 1648# Try to compile conftest.$ac_ext, and return whether this succeeded. 1649ac_fn_c_try_compile () 1650{ 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1652 rm -f conftest.$ac_objext 1653 if { { ac_try="$ac_compile" 1654case "(($ac_try" in 1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1656 *) ac_try_echo=$ac_try;; 1657esac 1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1659$as_echo "$ac_try_echo"; } >&5 1660 (eval "$ac_compile") 2>conftest.err 1661 ac_status=$? 1662 if test -s conftest.err; then 1663 grep -v '^ *+' conftest.err >conftest.er1 1664 cat conftest.er1 >&5 1665 mv -f conftest.er1 conftest.err 1666 fi 1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1668 test $ac_status = 0; } && { 1669 test -z "$ac_c_werror_flag" || 1670 test ! -s conftest.err 1671 } && test -s conftest.$ac_objext; then : 1672 ac_retval=0 1673else 1674 $as_echo "$as_me: failed program was:" >&5 1675sed 's/^/| /' conftest.$ac_ext >&5 1676 1677 ac_retval=1 1678fi 1679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1680 as_fn_set_status $ac_retval 1681 1682} # ac_fn_c_try_compile 1683 1684# ac_fn_c_try_cpp LINENO 1685# ---------------------- 1686# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1687ac_fn_c_try_cpp () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 if { { ac_try="$ac_cpp conftest.$ac_ext" 1691case "(($ac_try" in 1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1693 *) ac_try_echo=$ac_try;; 1694esac 1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1696$as_echo "$ac_try_echo"; } >&5 1697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1698 ac_status=$? 1699 if test -s conftest.err; then 1700 grep -v '^ *+' conftest.err >conftest.er1 1701 cat conftest.er1 >&5 1702 mv -f conftest.er1 conftest.err 1703 fi 1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1705 test $ac_status = 0; } >/dev/null && { 1706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1707 test ! -s conftest.err 1708 }; then : 1709 ac_retval=0 1710else 1711 $as_echo "$as_me: failed program was:" >&5 1712sed 's/^/| /' conftest.$ac_ext >&5 1713 1714 ac_retval=1 1715fi 1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1717 as_fn_set_status $ac_retval 1718 1719} # ac_fn_c_try_cpp 1720 1721# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1722# ------------------------------------------------------- 1723# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1724# the include files in INCLUDES and setting the cache variable VAR 1725# accordingly. 1726ac_fn_c_check_header_mongrel () 1727{ 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1731$as_echo_n "checking for $2... " >&6; } 1732if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1733 $as_echo_n "(cached) " >&6 1734fi 1735eval ac_res=\$$3 1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1737$as_echo "$ac_res" >&6; } 1738else 1739 # Is the header compilable? 1740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1741$as_echo_n "checking $2 usability... " >&6; } 1742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1743/* end confdefs.h. */ 1744$4 1745#include <$2> 1746_ACEOF 1747if ac_fn_c_try_compile "$LINENO"; then : 1748 ac_header_compiler=yes 1749else 1750 ac_header_compiler=no 1751fi 1752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1754$as_echo "$ac_header_compiler" >&6; } 1755 1756# Is the header present? 1757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1758$as_echo_n "checking $2 presence... " >&6; } 1759cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1760/* end confdefs.h. */ 1761#include <$2> 1762_ACEOF 1763if ac_fn_c_try_cpp "$LINENO"; then : 1764 ac_header_preproc=yes 1765else 1766 ac_header_preproc=no 1767fi 1768rm -f conftest.err conftest.$ac_ext 1769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1770$as_echo "$ac_header_preproc" >&6; } 1771 1772# So? What about this header? 1773case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1774 yes:no: ) 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1776$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1778$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1779 ;; 1780 no:yes:* ) 1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1782$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1784$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1786$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1788$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1790$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1791 ;; 1792esac 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1794$as_echo_n "checking for $2... " >&6; } 1795if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1796 $as_echo_n "(cached) " >&6 1797else 1798 eval "$3=\$ac_header_compiler" 1799fi 1800eval ac_res=\$$3 1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1802$as_echo "$ac_res" >&6; } 1803fi 1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1805 1806} # ac_fn_c_check_header_mongrel 1807 1808# ac_fn_c_try_run LINENO 1809# ---------------------- 1810# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1811# that executables *can* be run. 1812ac_fn_c_try_run () 1813{ 1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1815 if { { ac_try="$ac_link" 1816case "(($ac_try" in 1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1818 *) ac_try_echo=$ac_try;; 1819esac 1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1821$as_echo "$ac_try_echo"; } >&5 1822 (eval "$ac_link") 2>&5 1823 ac_status=$? 1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1825 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1826 { { case "(($ac_try" in 1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1828 *) ac_try_echo=$ac_try;; 1829esac 1830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1831$as_echo "$ac_try_echo"; } >&5 1832 (eval "$ac_try") 2>&5 1833 ac_status=$? 1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1835 test $ac_status = 0; }; }; then : 1836 ac_retval=0 1837else 1838 $as_echo "$as_me: program exited with status $ac_status" >&5 1839 $as_echo "$as_me: failed program was:" >&5 1840sed 's/^/| /' conftest.$ac_ext >&5 1841 1842 ac_retval=$ac_status 1843fi 1844 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1846 as_fn_set_status $ac_retval 1847 1848} # ac_fn_c_try_run 1849 1850# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1851# ------------------------------------------------------- 1852# Tests whether HEADER exists and can be compiled using the include files in 1853# INCLUDES, setting the cache variable VAR accordingly. 1854ac_fn_c_check_header_compile () 1855{ 1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1858$as_echo_n "checking for $2... " >&6; } 1859if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1860 $as_echo_n "(cached) " >&6 1861else 1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1863/* end confdefs.h. */ 1864$4 1865#include <$2> 1866_ACEOF 1867if ac_fn_c_try_compile "$LINENO"; then : 1868 eval "$3=yes" 1869else 1870 eval "$3=no" 1871fi 1872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1873fi 1874eval ac_res=\$$3 1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1876$as_echo "$ac_res" >&6; } 1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1878 1879} # ac_fn_c_check_header_compile 1880 1881# ac_fn_cxx_try_compile LINENO 1882# ---------------------------- 1883# Try to compile conftest.$ac_ext, and return whether this succeeded. 1884ac_fn_cxx_try_compile () 1885{ 1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1887 rm -f conftest.$ac_objext 1888 if { { ac_try="$ac_compile" 1889case "(($ac_try" in 1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1891 *) ac_try_echo=$ac_try;; 1892esac 1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1894$as_echo "$ac_try_echo"; } >&5 1895 (eval "$ac_compile") 2>conftest.err 1896 ac_status=$? 1897 if test -s conftest.err; then 1898 grep -v '^ *+' conftest.err >conftest.er1 1899 cat conftest.er1 >&5 1900 mv -f conftest.er1 conftest.err 1901 fi 1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1903 test $ac_status = 0; } && { 1904 test -z "$ac_cxx_werror_flag" || 1905 test ! -s conftest.err 1906 } && test -s conftest.$ac_objext; then : 1907 ac_retval=0 1908else 1909 $as_echo "$as_me: failed program was:" >&5 1910sed 's/^/| /' conftest.$ac_ext >&5 1911 1912 ac_retval=1 1913fi 1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1915 as_fn_set_status $ac_retval 1916 1917} # ac_fn_cxx_try_compile 1918 1919# ac_fn_c_try_link LINENO 1920# ----------------------- 1921# Try to link conftest.$ac_ext, and return whether this succeeded. 1922ac_fn_c_try_link () 1923{ 1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1925 rm -f conftest.$ac_objext conftest$ac_exeext 1926 if { { ac_try="$ac_link" 1927case "(($ac_try" in 1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1929 *) ac_try_echo=$ac_try;; 1930esac 1931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1932$as_echo "$ac_try_echo"; } >&5 1933 (eval "$ac_link") 2>conftest.err 1934 ac_status=$? 1935 if test -s conftest.err; then 1936 grep -v '^ *+' conftest.err >conftest.er1 1937 cat conftest.er1 >&5 1938 mv -f conftest.er1 conftest.err 1939 fi 1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1941 test $ac_status = 0; } && { 1942 test -z "$ac_c_werror_flag" || 1943 test ! -s conftest.err 1944 } && test -s conftest$ac_exeext && { 1945 test "$cross_compiling" = yes || 1946 $as_test_x conftest$ac_exeext 1947 }; then : 1948 ac_retval=0 1949else 1950 $as_echo "$as_me: failed program was:" >&5 1951sed 's/^/| /' conftest.$ac_ext >&5 1952 1953 ac_retval=1 1954fi 1955 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1956 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1957 # interfere with the next link command; also delete a directory that is 1958 # left behind by Apple's compiler. We do this before executing the actions. 1959 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1960 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1961 as_fn_set_status $ac_retval 1962 1963} # ac_fn_c_try_link 1964 1965# ac_fn_c_check_func LINENO FUNC VAR 1966# ---------------------------------- 1967# Tests whether FUNC exists, setting the cache variable VAR accordingly 1968ac_fn_c_check_func () 1969{ 1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1972$as_echo_n "checking for $2... " >&6; } 1973if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1974 $as_echo_n "(cached) " >&6 1975else 1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1977/* end confdefs.h. */ 1978/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1979 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1980#define $2 innocuous_$2 1981 1982/* System header to define __stub macros and hopefully few prototypes, 1983 which can conflict with char $2 (); below. 1984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1985 <limits.h> exists even on freestanding compilers. */ 1986 1987#ifdef __STDC__ 1988# include <limits.h> 1989#else 1990# include <assert.h> 1991#endif 1992 1993#undef $2 1994 1995/* Override any GCC internal prototype to avoid an error. 1996 Use char because int might match the return type of a GCC 1997 builtin and then its argument prototype would still apply. */ 1998#ifdef __cplusplus 1999extern "C" 2000#endif 2001char $2 (); 2002/* The GNU C library defines this for functions which it implements 2003 to always fail with ENOSYS. Some functions are actually named 2004 something starting with __ and the normal name is an alias. */ 2005#if defined __stub_$2 || defined __stub___$2 2006choke me 2007#endif 2008 2009int 2010main () 2011{ 2012return $2 (); 2013 ; 2014 return 0; 2015} 2016_ACEOF 2017if ac_fn_c_try_link "$LINENO"; then : 2018 eval "$3=yes" 2019else 2020 eval "$3=no" 2021fi 2022rm -f core conftest.err conftest.$ac_objext \ 2023 conftest$ac_exeext conftest.$ac_ext 2024fi 2025eval ac_res=\$$3 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2027$as_echo "$ac_res" >&6; } 2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2029 2030} # ac_fn_c_check_func 2031 2032# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2033# ------------------------------------------- 2034# Tests whether TYPE exists after having included INCLUDES, setting cache 2035# variable VAR accordingly. 2036ac_fn_c_check_type () 2037{ 2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2040$as_echo_n "checking for $2... " >&6; } 2041if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2042 $as_echo_n "(cached) " >&6 2043else 2044 eval "$3=no" 2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2046/* end confdefs.h. */ 2047$4 2048int 2049main () 2050{ 2051if (sizeof ($2)) 2052 return 0; 2053 ; 2054 return 0; 2055} 2056_ACEOF 2057if ac_fn_c_try_compile "$LINENO"; then : 2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2059/* end confdefs.h. */ 2060$4 2061int 2062main () 2063{ 2064if (sizeof (($2))) 2065 return 0; 2066 ; 2067 return 0; 2068} 2069_ACEOF 2070if ac_fn_c_try_compile "$LINENO"; then : 2071 2072else 2073 eval "$3=yes" 2074fi 2075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2076fi 2077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2078fi 2079eval ac_res=\$$3 2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2081$as_echo "$ac_res" >&6; } 2082 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2083 2084} # ac_fn_c_check_type 2085 2086# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2087# -------------------------------------------- 2088# Tries to find the compile-time value of EXPR in a program that includes 2089# INCLUDES, setting VAR accordingly. Returns whether the value could be 2090# computed 2091ac_fn_c_compute_int () 2092{ 2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2094 if test "$cross_compiling" = yes; then 2095 # Depending upon the size, compute the lo and hi bounds. 2096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2097/* end confdefs.h. */ 2098$4 2099int 2100main () 2101{ 2102static int test_array [1 - 2 * !(($2) >= 0)]; 2103test_array [0] = 0 2104 2105 ; 2106 return 0; 2107} 2108_ACEOF 2109if ac_fn_c_try_compile "$LINENO"; then : 2110 ac_lo=0 ac_mid=0 2111 while :; do 2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2113/* end confdefs.h. */ 2114$4 2115int 2116main () 2117{ 2118static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2119test_array [0] = 0 2120 2121 ; 2122 return 0; 2123} 2124_ACEOF 2125if ac_fn_c_try_compile "$LINENO"; then : 2126 ac_hi=$ac_mid; break 2127else 2128 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2129 if test $ac_lo -le $ac_mid; then 2130 ac_lo= ac_hi= 2131 break 2132 fi 2133 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2134fi 2135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2136 done 2137else 2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2139/* end confdefs.h. */ 2140$4 2141int 2142main () 2143{ 2144static int test_array [1 - 2 * !(($2) < 0)]; 2145test_array [0] = 0 2146 2147 ; 2148 return 0; 2149} 2150_ACEOF 2151if ac_fn_c_try_compile "$LINENO"; then : 2152 ac_hi=-1 ac_mid=-1 2153 while :; do 2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2155/* end confdefs.h. */ 2156$4 2157int 2158main () 2159{ 2160static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2161test_array [0] = 0 2162 2163 ; 2164 return 0; 2165} 2166_ACEOF 2167if ac_fn_c_try_compile "$LINENO"; then : 2168 ac_lo=$ac_mid; break 2169else 2170 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2171 if test $ac_mid -le $ac_hi; then 2172 ac_lo= ac_hi= 2173 break 2174 fi 2175 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2176fi 2177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2178 done 2179else 2180 ac_lo= ac_hi= 2181fi 2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2183fi 2184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2185# Binary search between lo and hi bounds. 2186while test "x$ac_lo" != "x$ac_hi"; do 2187 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2189/* end confdefs.h. */ 2190$4 2191int 2192main () 2193{ 2194static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2195test_array [0] = 0 2196 2197 ; 2198 return 0; 2199} 2200_ACEOF 2201if ac_fn_c_try_compile "$LINENO"; then : 2202 ac_hi=$ac_mid 2203else 2204 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2205fi 2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2207done 2208case $ac_lo in #(( 2209?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2210'') ac_retval=1 ;; 2211esac 2212 else 2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2214/* end confdefs.h. */ 2215$4 2216static long int longval () { return $2; } 2217static unsigned long int ulongval () { return $2; } 2218#include <stdio.h> 2219#include <stdlib.h> 2220int 2221main () 2222{ 2223 2224 FILE *f = fopen ("conftest.val", "w"); 2225 if (! f) 2226 return 1; 2227 if (($2) < 0) 2228 { 2229 long int i = longval (); 2230 if (i != ($2)) 2231 return 1; 2232 fprintf (f, "%ld", i); 2233 } 2234 else 2235 { 2236 unsigned long int i = ulongval (); 2237 if (i != ($2)) 2238 return 1; 2239 fprintf (f, "%lu", i); 2240 } 2241 /* Do not output a trailing newline, as this causes \r\n confusion 2242 on some platforms. */ 2243 return ferror (f) || fclose (f) != 0; 2244 2245 ; 2246 return 0; 2247} 2248_ACEOF 2249if ac_fn_c_try_run "$LINENO"; then : 2250 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2251else 2252 ac_retval=1 2253fi 2254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2255 conftest.$ac_objext conftest.beam conftest.$ac_ext 2256rm -f conftest.val 2257 2258 fi 2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2260 as_fn_set_status $ac_retval 2261 2262} # ac_fn_c_compute_int 2263cat >config.log <<_ACEOF 2264This file contains any messages produced by compilers while 2265running configure, to aid debugging if configure makes a mistake. 2266 2267It was created by $as_me, which was 2268generated by GNU Autoconf 2.65. Invocation command line was 2269 2270 $ $0 $@ 2271 2272_ACEOF 2273exec 5>>config.log 2274{ 2275cat <<_ASUNAME 2276## --------- ## 2277## Platform. ## 2278## --------- ## 2279 2280hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2281uname -m = `(uname -m) 2>/dev/null || echo unknown` 2282uname -r = `(uname -r) 2>/dev/null || echo unknown` 2283uname -s = `(uname -s) 2>/dev/null || echo unknown` 2284uname -v = `(uname -v) 2>/dev/null || echo unknown` 2285 2286/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2287/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2288 2289/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2290/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2291/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2292/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2293/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2294/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2295/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2296 2297_ASUNAME 2298 2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2300for as_dir in $PATH 2301do 2302 IFS=$as_save_IFS 2303 test -z "$as_dir" && as_dir=. 2304 $as_echo "PATH: $as_dir" 2305 done 2306IFS=$as_save_IFS 2307 2308} >&5 2309 2310cat >&5 <<_ACEOF 2311 2312 2313## ----------- ## 2314## Core tests. ## 2315## ----------- ## 2316 2317_ACEOF 2318 2319 2320# Keep a trace of the command line. 2321# Strip out --no-create and --no-recursion so they do not pile up. 2322# Strip out --silent because we don't want to record it for future runs. 2323# Also quote any args containing shell meta-characters. 2324# Make two passes to allow for proper duplicate-argument suppression. 2325ac_configure_args= 2326ac_configure_args0= 2327ac_configure_args1= 2328ac_must_keep_next=false 2329for ac_pass in 1 2 2330do 2331 for ac_arg 2332 do 2333 case $ac_arg in 2334 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2336 | -silent | --silent | --silen | --sile | --sil) 2337 continue ;; 2338 *\'*) 2339 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2340 esac 2341 case $ac_pass in 2342 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2343 2) 2344 as_fn_append ac_configure_args1 " '$ac_arg'" 2345 if test $ac_must_keep_next = true; then 2346 ac_must_keep_next=false # Got value, back to normal. 2347 else 2348 case $ac_arg in 2349 *=* | --config-cache | -C | -disable-* | --disable-* \ 2350 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2351 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2352 | -with-* | --with-* | -without-* | --without-* | --x) 2353 case "$ac_configure_args0 " in 2354 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2355 esac 2356 ;; 2357 -* ) ac_must_keep_next=true ;; 2358 esac 2359 fi 2360 as_fn_append ac_configure_args " '$ac_arg'" 2361 ;; 2362 esac 2363 done 2364done 2365{ ac_configure_args0=; unset ac_configure_args0;} 2366{ ac_configure_args1=; unset ac_configure_args1;} 2367 2368# When interrupted or exit'd, cleanup temporary files, and complete 2369# config.log. We remove comments because anyway the quotes in there 2370# would cause problems or look ugly. 2371# WARNING: Use '\'' to represent an apostrophe within the trap. 2372# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2373trap 'exit_status=$? 2374 # Save into config.log some information that might help in debugging. 2375 { 2376 echo 2377 2378 cat <<\_ASBOX 2379## ---------------- ## 2380## Cache variables. ## 2381## ---------------- ## 2382_ASBOX 2383 echo 2384 # The following way of writing the cache mishandles newlines in values, 2385( 2386 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2387 eval ac_val=\$$ac_var 2388 case $ac_val in #( 2389 *${as_nl}*) 2390 case $ac_var in #( 2391 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2392$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2393 esac 2394 case $ac_var in #( 2395 _ | IFS | as_nl) ;; #( 2396 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2397 *) { eval $ac_var=; unset $ac_var;} ;; 2398 esac ;; 2399 esac 2400 done 2401 (set) 2>&1 | 2402 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2403 *${as_nl}ac_space=\ *) 2404 sed -n \ 2405 "s/'\''/'\''\\\\'\'''\''/g; 2406 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2407 ;; #( 2408 *) 2409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2410 ;; 2411 esac | 2412 sort 2413) 2414 echo 2415 2416 cat <<\_ASBOX 2417## ----------------- ## 2418## Output variables. ## 2419## ----------------- ## 2420_ASBOX 2421 echo 2422 for ac_var in $ac_subst_vars 2423 do 2424 eval ac_val=\$$ac_var 2425 case $ac_val in 2426 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2427 esac 2428 $as_echo "$ac_var='\''$ac_val'\''" 2429 done | sort 2430 echo 2431 2432 if test -n "$ac_subst_files"; then 2433 cat <<\_ASBOX 2434## ------------------- ## 2435## File substitutions. ## 2436## ------------------- ## 2437_ASBOX 2438 echo 2439 for ac_var in $ac_subst_files 2440 do 2441 eval ac_val=\$$ac_var 2442 case $ac_val in 2443 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2444 esac 2445 $as_echo "$ac_var='\''$ac_val'\''" 2446 done | sort 2447 echo 2448 fi 2449 2450 if test -s confdefs.h; then 2451 cat <<\_ASBOX 2452## ----------- ## 2453## confdefs.h. ## 2454## ----------- ## 2455_ASBOX 2456 echo 2457 cat confdefs.h 2458 echo 2459 fi 2460 test "$ac_signal" != 0 && 2461 $as_echo "$as_me: caught signal $ac_signal" 2462 $as_echo "$as_me: exit $exit_status" 2463 } >&5 2464 rm -f core *.core core.conftest.* && 2465 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2466 exit $exit_status 2467' 0 2468for ac_signal in 1 2 13 15; do 2469 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2470done 2471ac_signal=0 2472 2473# confdefs.h avoids OS command line length limits that DEFS can exceed. 2474rm -f -r conftest* confdefs.h 2475 2476$as_echo "/* confdefs.h */" > confdefs.h 2477 2478# Predefined preprocessor variables. 2479 2480cat >>confdefs.h <<_ACEOF 2481#define PACKAGE_NAME "$PACKAGE_NAME" 2482_ACEOF 2483 2484cat >>confdefs.h <<_ACEOF 2485#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2486_ACEOF 2487 2488cat >>confdefs.h <<_ACEOF 2489#define PACKAGE_VERSION "$PACKAGE_VERSION" 2490_ACEOF 2491 2492cat >>confdefs.h <<_ACEOF 2493#define PACKAGE_STRING "$PACKAGE_STRING" 2494_ACEOF 2495 2496cat >>confdefs.h <<_ACEOF 2497#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2498_ACEOF 2499 2500cat >>confdefs.h <<_ACEOF 2501#define PACKAGE_URL "$PACKAGE_URL" 2502_ACEOF 2503 2504 2505# Let the site file select an alternate cache file if it wants to. 2506# Prefer an explicitly selected file to automatically selected ones. 2507ac_site_file1=NONE 2508ac_site_file2=NONE 2509if test -n "$CONFIG_SITE"; then 2510 ac_site_file1=$CONFIG_SITE 2511elif test "x$prefix" != xNONE; then 2512 ac_site_file1=$prefix/share/config.site 2513 ac_site_file2=$prefix/etc/config.site 2514else 2515 ac_site_file1=$ac_default_prefix/share/config.site 2516 ac_site_file2=$ac_default_prefix/etc/config.site 2517fi 2518for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2519do 2520 test "x$ac_site_file" = xNONE && continue 2521 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2523$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2524 sed 's/^/| /' "$ac_site_file" >&5 2525 . "$ac_site_file" 2526 fi 2527done 2528 2529if test -r "$cache_file"; then 2530 # Some versions of bash will fail to source /dev/null (special files 2531 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2532 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2533 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2534$as_echo "$as_me: loading cache $cache_file" >&6;} 2535 case $cache_file in 2536 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2537 *) . "./$cache_file";; 2538 esac 2539 fi 2540else 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2542$as_echo "$as_me: creating cache $cache_file" >&6;} 2543 >$cache_file 2544fi 2545 2546gt_needs="$gt_needs " 2547as_fn_append ac_header_list " stdlib.h" 2548as_fn_append ac_header_list " unistd.h" 2549as_fn_append ac_header_list " sys/param.h" 2550# Check that the precious variables saved in the cache have kept the same 2551# value. 2552ac_cache_corrupted=false 2553for ac_var in $ac_precious_vars; do 2554 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2555 eval ac_new_set=\$ac_env_${ac_var}_set 2556 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2557 eval ac_new_val=\$ac_env_${ac_var}_value 2558 case $ac_old_set,$ac_new_set in 2559 set,) 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2561$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2562 ac_cache_corrupted=: ;; 2563 ,set) 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2565$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2566 ac_cache_corrupted=: ;; 2567 ,);; 2568 *) 2569 if test "x$ac_old_val" != "x$ac_new_val"; then 2570 # differences in whitespace do not lead to failure. 2571 ac_old_val_w=`echo x $ac_old_val` 2572 ac_new_val_w=`echo x $ac_new_val` 2573 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2575$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2576 ac_cache_corrupted=: 2577 else 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2579$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2580 eval $ac_var=\$ac_old_val 2581 fi 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2583$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2585$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2586 fi;; 2587 esac 2588 # Pass precious variables to config.status. 2589 if test "$ac_new_set" = set; then 2590 case $ac_new_val in 2591 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2592 *) ac_arg=$ac_var=$ac_new_val ;; 2593 esac 2594 case " $ac_configure_args " in 2595 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2596 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2597 esac 2598 fi 2599done 2600if $ac_cache_corrupted; then 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2604$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2605 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2606fi 2607## -------------------- ## 2608## Main body of script. ## 2609## -------------------- ## 2610 2611ac_ext=c 2612ac_cpp='$CPP $CPPFLAGS' 2613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2615ac_compiler_gnu=$ac_cv_c_compiler_gnu 2616 2617 2618ac_aux_dir= 2619for ac_dir in config "$srcdir"/config; do 2620 for ac_t in install-sh install.sh shtool; do 2621 if test -f "$ac_dir/$ac_t"; then 2622 ac_aux_dir=$ac_dir 2623 ac_install_sh="$ac_aux_dir/$ac_t -c" 2624 break 2 2625 fi 2626 done 2627done 2628if test -z "$ac_aux_dir"; then 2629 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2630fi 2631 2632# These three variables are undocumented and unsupported, 2633# and are intended to be withdrawn in a future Autoconf release. 2634# They can cause serious problems if a builder's source tree is in a directory 2635# whose full name contains unusual characters. 2636ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2637ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2638ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2639 2640 2641 2642ac_ext=c 2643ac_cpp='$CPP $CPPFLAGS' 2644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2646ac_compiler_gnu=$ac_cv_c_compiler_gnu 2647if test -n "$ac_tool_prefix"; then 2648 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2649set dummy ${ac_tool_prefix}gcc; ac_word=$2 2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2651$as_echo_n "checking for $ac_word... " >&6; } 2652if test "${ac_cv_prog_CC+set}" = set; then : 2653 $as_echo_n "(cached) " >&6 2654else 2655 if test -n "$CC"; then 2656 ac_cv_prog_CC="$CC" # Let the user override the test. 2657else 2658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2659for as_dir in $PATH 2660do 2661 IFS=$as_save_IFS 2662 test -z "$as_dir" && as_dir=. 2663 for ac_exec_ext in '' $ac_executable_extensions; do 2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2665 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2667 break 2 2668 fi 2669done 2670 done 2671IFS=$as_save_IFS 2672 2673fi 2674fi 2675CC=$ac_cv_prog_CC 2676if test -n "$CC"; then 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2678$as_echo "$CC" >&6; } 2679else 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2681$as_echo "no" >&6; } 2682fi 2683 2684 2685fi 2686if test -z "$ac_cv_prog_CC"; then 2687 ac_ct_CC=$CC 2688 # Extract the first word of "gcc", so it can be a program name with args. 2689set dummy gcc; ac_word=$2 2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2691$as_echo_n "checking for $ac_word... " >&6; } 2692if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2693 $as_echo_n "(cached) " >&6 2694else 2695 if test -n "$ac_ct_CC"; then 2696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2697else 2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2699for as_dir in $PATH 2700do 2701 IFS=$as_save_IFS 2702 test -z "$as_dir" && as_dir=. 2703 for ac_exec_ext in '' $ac_executable_extensions; do 2704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2705 ac_cv_prog_ac_ct_CC="gcc" 2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2707 break 2 2708 fi 2709done 2710 done 2711IFS=$as_save_IFS 2712 2713fi 2714fi 2715ac_ct_CC=$ac_cv_prog_ac_ct_CC 2716if test -n "$ac_ct_CC"; then 2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2718$as_echo "$ac_ct_CC" >&6; } 2719else 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2721$as_echo "no" >&6; } 2722fi 2723 2724 if test "x$ac_ct_CC" = x; then 2725 CC="" 2726 else 2727 case $cross_compiling:$ac_tool_warned in 2728yes:) 2729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2731ac_tool_warned=yes ;; 2732esac 2733 CC=$ac_ct_CC 2734 fi 2735else 2736 CC="$ac_cv_prog_CC" 2737fi 2738 2739if test -z "$CC"; then 2740 if test -n "$ac_tool_prefix"; then 2741 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2742set dummy ${ac_tool_prefix}cc; ac_word=$2 2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2744$as_echo_n "checking for $ac_word... " >&6; } 2745if test "${ac_cv_prog_CC+set}" = set; then : 2746 $as_echo_n "(cached) " >&6 2747else 2748 if test -n "$CC"; then 2749 ac_cv_prog_CC="$CC" # Let the user override the test. 2750else 2751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2752for as_dir in $PATH 2753do 2754 IFS=$as_save_IFS 2755 test -z "$as_dir" && as_dir=. 2756 for ac_exec_ext in '' $ac_executable_extensions; do 2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2758 ac_cv_prog_CC="${ac_tool_prefix}cc" 2759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2760 break 2 2761 fi 2762done 2763 done 2764IFS=$as_save_IFS 2765 2766fi 2767fi 2768CC=$ac_cv_prog_CC 2769if test -n "$CC"; then 2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2771$as_echo "$CC" >&6; } 2772else 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2774$as_echo "no" >&6; } 2775fi 2776 2777 2778 fi 2779fi 2780if test -z "$CC"; then 2781 # Extract the first word of "cc", so it can be a program name with args. 2782set dummy cc; ac_word=$2 2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2784$as_echo_n "checking for $ac_word... " >&6; } 2785if test "${ac_cv_prog_CC+set}" = set; then : 2786 $as_echo_n "(cached) " >&6 2787else 2788 if test -n "$CC"; then 2789 ac_cv_prog_CC="$CC" # Let the user override the test. 2790else 2791 ac_prog_rejected=no 2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2793for as_dir in $PATH 2794do 2795 IFS=$as_save_IFS 2796 test -z "$as_dir" && as_dir=. 2797 for ac_exec_ext in '' $ac_executable_extensions; do 2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2799 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2800 ac_prog_rejected=yes 2801 continue 2802 fi 2803 ac_cv_prog_CC="cc" 2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2805 break 2 2806 fi 2807done 2808 done 2809IFS=$as_save_IFS 2810 2811if test $ac_prog_rejected = yes; then 2812 # We found a bogon in the path, so make sure we never use it. 2813 set dummy $ac_cv_prog_CC 2814 shift 2815 if test $# != 0; then 2816 # We chose a different compiler from the bogus one. 2817 # However, it has the same basename, so the bogon will be chosen 2818 # first if we set CC to just the basename; use the full file name. 2819 shift 2820 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2821 fi 2822fi 2823fi 2824fi 2825CC=$ac_cv_prog_CC 2826if test -n "$CC"; then 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2828$as_echo "$CC" >&6; } 2829else 2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2831$as_echo "no" >&6; } 2832fi 2833 2834 2835fi 2836if test -z "$CC"; then 2837 if test -n "$ac_tool_prefix"; then 2838 for ac_prog in cl.exe 2839 do 2840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2841set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2843$as_echo_n "checking for $ac_word... " >&6; } 2844if test "${ac_cv_prog_CC+set}" = set; then : 2845 $as_echo_n "(cached) " >&6 2846else 2847 if test -n "$CC"; then 2848 ac_cv_prog_CC="$CC" # Let the user override the test. 2849else 2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2851for as_dir in $PATH 2852do 2853 IFS=$as_save_IFS 2854 test -z "$as_dir" && as_dir=. 2855 for ac_exec_ext in '' $ac_executable_extensions; do 2856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2857 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2859 break 2 2860 fi 2861done 2862 done 2863IFS=$as_save_IFS 2864 2865fi 2866fi 2867CC=$ac_cv_prog_CC 2868if test -n "$CC"; then 2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2870$as_echo "$CC" >&6; } 2871else 2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2873$as_echo "no" >&6; } 2874fi 2875 2876 2877 test -n "$CC" && break 2878 done 2879fi 2880if test -z "$CC"; then 2881 ac_ct_CC=$CC 2882 for ac_prog in cl.exe 2883do 2884 # Extract the first word of "$ac_prog", so it can be a program name with args. 2885set dummy $ac_prog; ac_word=$2 2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2887$as_echo_n "checking for $ac_word... " >&6; } 2888if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2889 $as_echo_n "(cached) " >&6 2890else 2891 if test -n "$ac_ct_CC"; then 2892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2893else 2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2895for as_dir in $PATH 2896do 2897 IFS=$as_save_IFS 2898 test -z "$as_dir" && as_dir=. 2899 for ac_exec_ext in '' $ac_executable_extensions; do 2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2901 ac_cv_prog_ac_ct_CC="$ac_prog" 2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2903 break 2 2904 fi 2905done 2906 done 2907IFS=$as_save_IFS 2908 2909fi 2910fi 2911ac_ct_CC=$ac_cv_prog_ac_ct_CC 2912if test -n "$ac_ct_CC"; then 2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2914$as_echo "$ac_ct_CC" >&6; } 2915else 2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2917$as_echo "no" >&6; } 2918fi 2919 2920 2921 test -n "$ac_ct_CC" && break 2922done 2923 2924 if test "x$ac_ct_CC" = x; then 2925 CC="" 2926 else 2927 case $cross_compiling:$ac_tool_warned in 2928yes:) 2929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2931ac_tool_warned=yes ;; 2932esac 2933 CC=$ac_ct_CC 2934 fi 2935fi 2936 2937fi 2938 2939 2940test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2942as_fn_error "no acceptable C compiler found in \$PATH 2943See \`config.log' for more details." "$LINENO" 5; } 2944 2945# Provide some information about the compiler. 2946$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2947set X $ac_compile 2948ac_compiler=$2 2949for ac_option in --version -v -V -qversion; do 2950 { { ac_try="$ac_compiler $ac_option >&5" 2951case "(($ac_try" in 2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2953 *) ac_try_echo=$ac_try;; 2954esac 2955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2956$as_echo "$ac_try_echo"; } >&5 2957 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2958 ac_status=$? 2959 if test -s conftest.err; then 2960 sed '10a\ 2961... rest of stderr output deleted ... 2962 10q' conftest.err >conftest.er1 2963 cat conftest.er1 >&5 2964 fi 2965 rm -f conftest.er1 conftest.err 2966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2967 test $ac_status = 0; } 2968done 2969 2970cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2971/* end confdefs.h. */ 2972 2973int 2974main () 2975{ 2976 2977 ; 2978 return 0; 2979} 2980_ACEOF 2981ac_clean_files_save=$ac_clean_files 2982ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2983# Try to create an executable without -o first, disregard a.out. 2984# It will help us diagnose broken compilers, and finding out an intuition 2985# of exeext. 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2987$as_echo_n "checking whether the C compiler works... " >&6; } 2988ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2989 2990# The possible output files: 2991ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2992 2993ac_rmfiles= 2994for ac_file in $ac_files 2995do 2996 case $ac_file in 2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2998 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2999 esac 3000done 3001rm -f $ac_rmfiles 3002 3003if { { ac_try="$ac_link_default" 3004case "(($ac_try" in 3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3006 *) ac_try_echo=$ac_try;; 3007esac 3008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3009$as_echo "$ac_try_echo"; } >&5 3010 (eval "$ac_link_default") 2>&5 3011 ac_status=$? 3012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3013 test $ac_status = 0; }; then : 3014 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3015# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3016# in a Makefile. We should not override ac_cv_exeext if it was cached, 3017# so that the user can short-circuit this test for compilers unknown to 3018# Autoconf. 3019for ac_file in $ac_files '' 3020do 3021 test -f "$ac_file" || continue 3022 case $ac_file in 3023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3024 ;; 3025 [ab].out ) 3026 # We found the default executable, but exeext='' is most 3027 # certainly right. 3028 break;; 3029 *.* ) 3030 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3031 then :; else 3032 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3033 fi 3034 # We set ac_cv_exeext here because the later test for it is not 3035 # safe: cross compilers may not add the suffix if given an `-o' 3036 # argument, so we may need to know it at that point already. 3037 # Even if this section looks crufty: it has the advantage of 3038 # actually working. 3039 break;; 3040 * ) 3041 break;; 3042 esac 3043done 3044test "$ac_cv_exeext" = no && ac_cv_exeext= 3045 3046else 3047 ac_file='' 3048fi 3049if test -z "$ac_file"; then : 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3051$as_echo "no" >&6; } 3052$as_echo "$as_me: failed program was:" >&5 3053sed 's/^/| /' conftest.$ac_ext >&5 3054 3055{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3057{ as_fn_set_status 77 3058as_fn_error "C compiler cannot create executables 3059See \`config.log' for more details." "$LINENO" 5; }; } 3060else 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3062$as_echo "yes" >&6; } 3063fi 3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3065$as_echo_n "checking for C compiler default output file name... " >&6; } 3066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3067$as_echo "$ac_file" >&6; } 3068ac_exeext=$ac_cv_exeext 3069 3070rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3071ac_clean_files=$ac_clean_files_save 3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3073$as_echo_n "checking for suffix of executables... " >&6; } 3074if { { ac_try="$ac_link" 3075case "(($ac_try" in 3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3077 *) ac_try_echo=$ac_try;; 3078esac 3079eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3080$as_echo "$ac_try_echo"; } >&5 3081 (eval "$ac_link") 2>&5 3082 ac_status=$? 3083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3084 test $ac_status = 0; }; then : 3085 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3086# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3087# work properly (i.e., refer to `conftest.exe'), while it won't with 3088# `rm'. 3089for ac_file in conftest.exe conftest conftest.*; do 3090 test -f "$ac_file" || continue 3091 case $ac_file in 3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3093 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3094 break;; 3095 * ) break;; 3096 esac 3097done 3098else 3099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3101as_fn_error "cannot compute suffix of executables: cannot compile and link 3102See \`config.log' for more details." "$LINENO" 5; } 3103fi 3104rm -f conftest conftest$ac_cv_exeext 3105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3106$as_echo "$ac_cv_exeext" >&6; } 3107 3108rm -f conftest.$ac_ext 3109EXEEXT=$ac_cv_exeext 3110ac_exeext=$EXEEXT 3111cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3112/* end confdefs.h. */ 3113#include <stdio.h> 3114int 3115main () 3116{ 3117FILE *f = fopen ("conftest.out", "w"); 3118 return ferror (f) || fclose (f) != 0; 3119 3120 ; 3121 return 0; 3122} 3123_ACEOF 3124ac_clean_files="$ac_clean_files conftest.out" 3125# Check that the compiler produces executables we can run. If not, either 3126# the compiler is broken, or we cross compile. 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3128$as_echo_n "checking whether we are cross compiling... " >&6; } 3129if test "$cross_compiling" != yes; then 3130 { { ac_try="$ac_link" 3131case "(($ac_try" in 3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3133 *) ac_try_echo=$ac_try;; 3134esac 3135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3136$as_echo "$ac_try_echo"; } >&5 3137 (eval "$ac_link") 2>&5 3138 ac_status=$? 3139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3140 test $ac_status = 0; } 3141 if { ac_try='./conftest$ac_cv_exeext' 3142 { { case "(($ac_try" in 3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3144 *) ac_try_echo=$ac_try;; 3145esac 3146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3147$as_echo "$ac_try_echo"; } >&5 3148 (eval "$ac_try") 2>&5 3149 ac_status=$? 3150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3151 test $ac_status = 0; }; }; then 3152 cross_compiling=no 3153 else 3154 if test "$cross_compiling" = maybe; then 3155 cross_compiling=yes 3156 else 3157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3159as_fn_error "cannot run C compiled programs. 3160If you meant to cross compile, use \`--host'. 3161See \`config.log' for more details." "$LINENO" 5; } 3162 fi 3163 fi 3164fi 3165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3166$as_echo "$cross_compiling" >&6; } 3167 3168rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3169ac_clean_files=$ac_clean_files_save 3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3171$as_echo_n "checking for suffix of object files... " >&6; } 3172if test "${ac_cv_objext+set}" = set; then : 3173 $as_echo_n "(cached) " >&6 3174else 3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3176/* end confdefs.h. */ 3177 3178int 3179main () 3180{ 3181 3182 ; 3183 return 0; 3184} 3185_ACEOF 3186rm -f conftest.o conftest.obj 3187if { { ac_try="$ac_compile" 3188case "(($ac_try" in 3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3190 *) ac_try_echo=$ac_try;; 3191esac 3192eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3193$as_echo "$ac_try_echo"; } >&5 3194 (eval "$ac_compile") 2>&5 3195 ac_status=$? 3196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3197 test $ac_status = 0; }; then : 3198 for ac_file in conftest.o conftest.obj conftest.*; do 3199 test -f "$ac_file" || continue; 3200 case $ac_file in 3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3202 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3203 break;; 3204 esac 3205done 3206else 3207 $as_echo "$as_me: failed program was:" >&5 3208sed 's/^/| /' conftest.$ac_ext >&5 3209 3210{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3212as_fn_error "cannot compute suffix of object files: cannot compile 3213See \`config.log' for more details." "$LINENO" 5; } 3214fi 3215rm -f conftest.$ac_cv_objext conftest.$ac_ext 3216fi 3217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3218$as_echo "$ac_cv_objext" >&6; } 3219OBJEXT=$ac_cv_objext 3220ac_objext=$OBJEXT 3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3222$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3223if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3224 $as_echo_n "(cached) " >&6 3225else 3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3227/* end confdefs.h. */ 3228 3229int 3230main () 3231{ 3232#ifndef __GNUC__ 3233 choke me 3234#endif 3235 3236 ; 3237 return 0; 3238} 3239_ACEOF 3240if ac_fn_c_try_compile "$LINENO"; then : 3241 ac_compiler_gnu=yes 3242else 3243 ac_compiler_gnu=no 3244fi 3245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3246ac_cv_c_compiler_gnu=$ac_compiler_gnu 3247 3248fi 3249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3250$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3251if test $ac_compiler_gnu = yes; then 3252 GCC=yes 3253else 3254 GCC= 3255fi 3256ac_test_CFLAGS=${CFLAGS+set} 3257ac_save_CFLAGS=$CFLAGS 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3259$as_echo_n "checking whether $CC accepts -g... " >&6; } 3260if test "${ac_cv_prog_cc_g+set}" = set; then : 3261 $as_echo_n "(cached) " >&6 3262else 3263 ac_save_c_werror_flag=$ac_c_werror_flag 3264 ac_c_werror_flag=yes 3265 ac_cv_prog_cc_g=no 3266 CFLAGS="-g" 3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3268/* end confdefs.h. */ 3269 3270int 3271main () 3272{ 3273 3274 ; 3275 return 0; 3276} 3277_ACEOF 3278if ac_fn_c_try_compile "$LINENO"; then : 3279 ac_cv_prog_cc_g=yes 3280else 3281 CFLAGS="" 3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3283/* end confdefs.h. */ 3284 3285int 3286main () 3287{ 3288 3289 ; 3290 return 0; 3291} 3292_ACEOF 3293if ac_fn_c_try_compile "$LINENO"; then : 3294 3295else 3296 ac_c_werror_flag=$ac_save_c_werror_flag 3297 CFLAGS="-g" 3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3299/* end confdefs.h. */ 3300 3301int 3302main () 3303{ 3304 3305 ; 3306 return 0; 3307} 3308_ACEOF 3309if ac_fn_c_try_compile "$LINENO"; then : 3310 ac_cv_prog_cc_g=yes 3311fi 3312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3313fi 3314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3315fi 3316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3317 ac_c_werror_flag=$ac_save_c_werror_flag 3318fi 3319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3320$as_echo "$ac_cv_prog_cc_g" >&6; } 3321if test "$ac_test_CFLAGS" = set; then 3322 CFLAGS=$ac_save_CFLAGS 3323elif test $ac_cv_prog_cc_g = yes; then 3324 if test "$GCC" = yes; then 3325 CFLAGS="-g -O2" 3326 else 3327 CFLAGS="-g" 3328 fi 3329else 3330 if test "$GCC" = yes; then 3331 CFLAGS="-O2" 3332 else 3333 CFLAGS= 3334 fi 3335fi 3336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3337$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3338if test "${ac_cv_prog_cc_c89+set}" = set; then : 3339 $as_echo_n "(cached) " >&6 3340else 3341 ac_cv_prog_cc_c89=no 3342ac_save_CC=$CC 3343cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3344/* end confdefs.h. */ 3345#include <stdarg.h> 3346#include <stdio.h> 3347#include <sys/types.h> 3348#include <sys/stat.h> 3349/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3350struct buf { int x; }; 3351FILE * (*rcsopen) (struct buf *, struct stat *, int); 3352static char *e (p, i) 3353 char **p; 3354 int i; 3355{ 3356 return p[i]; 3357} 3358static char *f (char * (*g) (char **, int), char **p, ...) 3359{ 3360 char *s; 3361 va_list v; 3362 va_start (v,p); 3363 s = g (p, va_arg (v,int)); 3364 va_end (v); 3365 return s; 3366} 3367 3368/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3369 function prototypes and stuff, but not '\xHH' hex character constants. 3370 These don't provoke an error unfortunately, instead are silently treated 3371 as 'x'. The following induces an error, until -std is added to get 3372 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3373 array size at least. It's necessary to write '\x00'==0 to get something 3374 that's true only with -std. */ 3375int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3376 3377/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3378 inside strings and character constants. */ 3379#define FOO(x) 'x' 3380int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3381 3382int test (int i, double x); 3383struct s1 {int (*f) (int a);}; 3384struct s2 {int (*f) (double a);}; 3385int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3386int argc; 3387char **argv; 3388int 3389main () 3390{ 3391return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3392 ; 3393 return 0; 3394} 3395_ACEOF 3396for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3397 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3398do 3399 CC="$ac_save_CC $ac_arg" 3400 if ac_fn_c_try_compile "$LINENO"; then : 3401 ac_cv_prog_cc_c89=$ac_arg 3402fi 3403rm -f core conftest.err conftest.$ac_objext 3404 test "x$ac_cv_prog_cc_c89" != "xno" && break 3405done 3406rm -f conftest.$ac_ext 3407CC=$ac_save_CC 3408 3409fi 3410# AC_CACHE_VAL 3411case "x$ac_cv_prog_cc_c89" in 3412 x) 3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3414$as_echo "none needed" >&6; } ;; 3415 xno) 3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3417$as_echo "unsupported" >&6; } ;; 3418 *) 3419 CC="$CC $ac_cv_prog_cc_c89" 3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3421$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3422esac 3423if test "x$ac_cv_prog_cc_c89" != xno; then : 3424 3425fi 3426 3427ac_ext=c 3428ac_cpp='$CPP $CPPFLAGS' 3429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3431ac_compiler_gnu=$ac_cv_c_compiler_gnu 3432 3433 3434ac_ext=c 3435ac_cpp='$CPP $CPPFLAGS' 3436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3438ac_compiler_gnu=$ac_cv_c_compiler_gnu 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3440$as_echo_n "checking how to run the C preprocessor... " >&6; } 3441# On Suns, sometimes $CPP names a directory. 3442if test -n "$CPP" && test -d "$CPP"; then 3443 CPP= 3444fi 3445if test -z "$CPP"; then 3446 if test "${ac_cv_prog_CPP+set}" = set; then : 3447 $as_echo_n "(cached) " >&6 3448else 3449 # Double quotes because CPP needs to be expanded 3450 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3451 do 3452 ac_preproc_ok=false 3453for ac_c_preproc_warn_flag in '' yes 3454do 3455 # Use a header file that comes with gcc, so configuring glibc 3456 # with a fresh cross-compiler works. 3457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3458 # <limits.h> exists even on freestanding compilers. 3459 # On the NeXT, cc -E runs the code through the compiler's parser, 3460 # not just through cpp. "Syntax error" is here to catch this case. 3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3462/* end confdefs.h. */ 3463#ifdef __STDC__ 3464# include <limits.h> 3465#else 3466# include <assert.h> 3467#endif 3468 Syntax error 3469_ACEOF 3470if ac_fn_c_try_cpp "$LINENO"; then : 3471 3472else 3473 # Broken: fails on valid input. 3474continue 3475fi 3476rm -f conftest.err conftest.$ac_ext 3477 3478 # OK, works on sane cases. Now check whether nonexistent headers 3479 # can be detected and how. 3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481/* end confdefs.h. */ 3482#include <ac_nonexistent.h> 3483_ACEOF 3484if ac_fn_c_try_cpp "$LINENO"; then : 3485 # Broken: success on invalid input. 3486continue 3487else 3488 # Passes both tests. 3489ac_preproc_ok=: 3490break 3491fi 3492rm -f conftest.err conftest.$ac_ext 3493 3494done 3495# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3496rm -f conftest.err conftest.$ac_ext 3497if $ac_preproc_ok; then : 3498 break 3499fi 3500 3501 done 3502 ac_cv_prog_CPP=$CPP 3503 3504fi 3505 CPP=$ac_cv_prog_CPP 3506else 3507 ac_cv_prog_CPP=$CPP 3508fi 3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3510$as_echo "$CPP" >&6; } 3511ac_preproc_ok=false 3512for ac_c_preproc_warn_flag in '' yes 3513do 3514 # Use a header file that comes with gcc, so configuring glibc 3515 # with a fresh cross-compiler works. 3516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3517 # <limits.h> exists even on freestanding compilers. 3518 # On the NeXT, cc -E runs the code through the compiler's parser, 3519 # not just through cpp. "Syntax error" is here to catch this case. 3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3521/* end confdefs.h. */ 3522#ifdef __STDC__ 3523# include <limits.h> 3524#else 3525# include <assert.h> 3526#endif 3527 Syntax error 3528_ACEOF 3529if ac_fn_c_try_cpp "$LINENO"; then : 3530 3531else 3532 # Broken: fails on valid input. 3533continue 3534fi 3535rm -f conftest.err conftest.$ac_ext 3536 3537 # OK, works on sane cases. Now check whether nonexistent headers 3538 # can be detected and how. 3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3540/* end confdefs.h. */ 3541#include <ac_nonexistent.h> 3542_ACEOF 3543if ac_fn_c_try_cpp "$LINENO"; then : 3544 # Broken: success on invalid input. 3545continue 3546else 3547 # Passes both tests. 3548ac_preproc_ok=: 3549break 3550fi 3551rm -f conftest.err conftest.$ac_ext 3552 3553done 3554# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3555rm -f conftest.err conftest.$ac_ext 3556if $ac_preproc_ok; then : 3557 3558else 3559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3561as_fn_error "C preprocessor \"$CPP\" fails sanity check 3562See \`config.log' for more details." "$LINENO" 5; } 3563fi 3564 3565ac_ext=c 3566ac_cpp='$CPP $CPPFLAGS' 3567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3569ac_compiler_gnu=$ac_cv_c_compiler_gnu 3570 3571 3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3573$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3574if test "${ac_cv_path_GREP+set}" = set; then : 3575 $as_echo_n "(cached) " >&6 3576else 3577 if test -z "$GREP"; then 3578 ac_path_GREP_found=false 3579 # Loop through the user's path and test for each of PROGNAME-LIST 3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3581for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3582do 3583 IFS=$as_save_IFS 3584 test -z "$as_dir" && as_dir=. 3585 for ac_prog in grep ggrep; do 3586 for ac_exec_ext in '' $ac_executable_extensions; do 3587 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3588 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3589# Check for GNU ac_path_GREP and select it if it is found. 3590 # Check for GNU $ac_path_GREP 3591case `"$ac_path_GREP" --version 2>&1` in 3592*GNU*) 3593 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3594*) 3595 ac_count=0 3596 $as_echo_n 0123456789 >"conftest.in" 3597 while : 3598 do 3599 cat "conftest.in" "conftest.in" >"conftest.tmp" 3600 mv "conftest.tmp" "conftest.in" 3601 cp "conftest.in" "conftest.nl" 3602 $as_echo 'GREP' >> "conftest.nl" 3603 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3605 as_fn_arith $ac_count + 1 && ac_count=$as_val 3606 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3607 # Best one so far, save it but keep looking for a better one 3608 ac_cv_path_GREP="$ac_path_GREP" 3609 ac_path_GREP_max=$ac_count 3610 fi 3611 # 10*(2^10) chars as input seems more than enough 3612 test $ac_count -gt 10 && break 3613 done 3614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3615esac 3616 3617 $ac_path_GREP_found && break 3 3618 done 3619 done 3620 done 3621IFS=$as_save_IFS 3622 if test -z "$ac_cv_path_GREP"; then 3623 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3624 fi 3625else 3626 ac_cv_path_GREP=$GREP 3627fi 3628 3629fi 3630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3631$as_echo "$ac_cv_path_GREP" >&6; } 3632 GREP="$ac_cv_path_GREP" 3633 3634 3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3636$as_echo_n "checking for egrep... " >&6; } 3637if test "${ac_cv_path_EGREP+set}" = set; then : 3638 $as_echo_n "(cached) " >&6 3639else 3640 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3641 then ac_cv_path_EGREP="$GREP -E" 3642 else 3643 if test -z "$EGREP"; then 3644 ac_path_EGREP_found=false 3645 # Loop through the user's path and test for each of PROGNAME-LIST 3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3647for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3648do 3649 IFS=$as_save_IFS 3650 test -z "$as_dir" && as_dir=. 3651 for ac_prog in egrep; do 3652 for ac_exec_ext in '' $ac_executable_extensions; do 3653 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3654 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3655# Check for GNU ac_path_EGREP and select it if it is found. 3656 # Check for GNU $ac_path_EGREP 3657case `"$ac_path_EGREP" --version 2>&1` in 3658*GNU*) 3659 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3660*) 3661 ac_count=0 3662 $as_echo_n 0123456789 >"conftest.in" 3663 while : 3664 do 3665 cat "conftest.in" "conftest.in" >"conftest.tmp" 3666 mv "conftest.tmp" "conftest.in" 3667 cp "conftest.in" "conftest.nl" 3668 $as_echo 'EGREP' >> "conftest.nl" 3669 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3671 as_fn_arith $ac_count + 1 && ac_count=$as_val 3672 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3673 # Best one so far, save it but keep looking for a better one 3674 ac_cv_path_EGREP="$ac_path_EGREP" 3675 ac_path_EGREP_max=$ac_count 3676 fi 3677 # 10*(2^10) chars as input seems more than enough 3678 test $ac_count -gt 10 && break 3679 done 3680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3681esac 3682 3683 $ac_path_EGREP_found && break 3 3684 done 3685 done 3686 done 3687IFS=$as_save_IFS 3688 if test -z "$ac_cv_path_EGREP"; then 3689 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3690 fi 3691else 3692 ac_cv_path_EGREP=$EGREP 3693fi 3694 3695 fi 3696fi 3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3698$as_echo "$ac_cv_path_EGREP" >&6; } 3699 EGREP="$ac_cv_path_EGREP" 3700 3701 3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3703$as_echo_n "checking for ANSI C header files... " >&6; } 3704if test "${ac_cv_header_stdc+set}" = set; then : 3705 $as_echo_n "(cached) " >&6 3706else 3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3708/* end confdefs.h. */ 3709#include <stdlib.h> 3710#include <stdarg.h> 3711#include <string.h> 3712#include <float.h> 3713 3714int 3715main () 3716{ 3717 3718 ; 3719 return 0; 3720} 3721_ACEOF 3722if ac_fn_c_try_compile "$LINENO"; then : 3723 ac_cv_header_stdc=yes 3724else 3725 ac_cv_header_stdc=no 3726fi 3727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3728 3729if test $ac_cv_header_stdc = yes; then 3730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3732/* end confdefs.h. */ 3733#include <string.h> 3734 3735_ACEOF 3736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3737 $EGREP "memchr" >/dev/null 2>&1; then : 3738 3739else 3740 ac_cv_header_stdc=no 3741fi 3742rm -f conftest* 3743 3744fi 3745 3746if test $ac_cv_header_stdc = yes; then 3747 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3749/* end confdefs.h. */ 3750#include <stdlib.h> 3751 3752_ACEOF 3753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3754 $EGREP "free" >/dev/null 2>&1; then : 3755 3756else 3757 ac_cv_header_stdc=no 3758fi 3759rm -f conftest* 3760 3761fi 3762 3763if test $ac_cv_header_stdc = yes; then 3764 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3765 if test "$cross_compiling" = yes; then : 3766 : 3767else 3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3769/* end confdefs.h. */ 3770#include <ctype.h> 3771#include <stdlib.h> 3772#if ((' ' & 0x0FF) == 0x020) 3773# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3774# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3775#else 3776# define ISLOWER(c) \ 3777 (('a' <= (c) && (c) <= 'i') \ 3778 || ('j' <= (c) && (c) <= 'r') \ 3779 || ('s' <= (c) && (c) <= 'z')) 3780# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3781#endif 3782 3783#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3784int 3785main () 3786{ 3787 int i; 3788 for (i = 0; i < 256; i++) 3789 if (XOR (islower (i), ISLOWER (i)) 3790 || toupper (i) != TOUPPER (i)) 3791 return 2; 3792 return 0; 3793} 3794_ACEOF 3795if ac_fn_c_try_run "$LINENO"; then : 3796 3797else 3798 ac_cv_header_stdc=no 3799fi 3800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3801 conftest.$ac_objext conftest.beam conftest.$ac_ext 3802fi 3803 3804fi 3805fi 3806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3807$as_echo "$ac_cv_header_stdc" >&6; } 3808if test $ac_cv_header_stdc = yes; then 3809 3810$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3811 3812fi 3813 3814# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3815for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3816 inttypes.h stdint.h unistd.h 3817do : 3818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3819ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3820" 3821eval as_val=\$$as_ac_Header 3822 if test "x$as_val" = x""yes; then : 3823 cat >>confdefs.h <<_ACEOF 3824#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3825_ACEOF 3826 3827fi 3828 3829done 3830 3831 3832 3833 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3834if test "x$ac_cv_header_minix_config_h" = x""yes; then : 3835 MINIX=yes 3836else 3837 MINIX= 3838fi 3839 3840 3841 if test "$MINIX" = yes; then 3842 3843$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3844 3845 3846$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3847 3848 3849$as_echo "#define _MINIX 1" >>confdefs.h 3850 3851 fi 3852 3853 3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3855$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3856if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 3857 $as_echo_n "(cached) " >&6 3858else 3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3860/* end confdefs.h. */ 3861 3862# define __EXTENSIONS__ 1 3863 $ac_includes_default 3864int 3865main () 3866{ 3867 3868 ; 3869 return 0; 3870} 3871_ACEOF 3872if ac_fn_c_try_compile "$LINENO"; then : 3873 ac_cv_safe_to_define___extensions__=yes 3874else 3875 ac_cv_safe_to_define___extensions__=no 3876fi 3877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3878fi 3879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3880$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3881 test $ac_cv_safe_to_define___extensions__ = yes && 3882 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3883 3884 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3885 3886 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3887 3888 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3889 3890 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3891 3892 3893 3894# Make sure we can run config.sub. 3895$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3896 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3897 3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3899$as_echo_n "checking build system type... " >&6; } 3900if test "${ac_cv_build+set}" = set; then : 3901 $as_echo_n "(cached) " >&6 3902else 3903 ac_build_alias=$build_alias 3904test "x$ac_build_alias" = x && 3905 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3906test "x$ac_build_alias" = x && 3907 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 3908ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3909 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3910 3911fi 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3913$as_echo "$ac_cv_build" >&6; } 3914case $ac_cv_build in 3915*-*-*) ;; 3916*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 3917esac 3918build=$ac_cv_build 3919ac_save_IFS=$IFS; IFS='-' 3920set x $ac_cv_build 3921shift 3922build_cpu=$1 3923build_vendor=$2 3924shift; shift 3925# Remember, the first character of IFS is used to create $*, 3926# except with old shells: 3927build_os=$* 3928IFS=$ac_save_IFS 3929case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3930 3931 3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3933$as_echo_n "checking host system type... " >&6; } 3934if test "${ac_cv_host+set}" = set; then : 3935 $as_echo_n "(cached) " >&6 3936else 3937 if test "x$host_alias" = x; then 3938 ac_cv_host=$ac_cv_build 3939else 3940 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3941 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3942fi 3943 3944fi 3945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3946$as_echo "$ac_cv_host" >&6; } 3947case $ac_cv_host in 3948*-*-*) ;; 3949*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 3950esac 3951host=$ac_cv_host 3952ac_save_IFS=$IFS; IFS='-' 3953set x $ac_cv_host 3954shift 3955host_cpu=$1 3956host_vendor=$2 3957shift; shift 3958# Remember, the first character of IFS is used to create $*, 3959# except with old shells: 3960host_os=$* 3961IFS=$ac_save_IFS 3962case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3963 3964 3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3966$as_echo_n "checking target system type... " >&6; } 3967if test "${ac_cv_target+set}" = set; then : 3968 $as_echo_n "(cached) " >&6 3969else 3970 if test "x$target_alias" = x; then 3971 ac_cv_target=$ac_cv_host 3972else 3973 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3974 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3975fi 3976 3977fi 3978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3979$as_echo "$ac_cv_target" >&6; } 3980case $ac_cv_target in 3981*-*-*) ;; 3982*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 3983esac 3984target=$ac_cv_target 3985ac_save_IFS=$IFS; IFS='-' 3986set x $ac_cv_target 3987shift 3988target_cpu=$1 3989target_vendor=$2 3990shift; shift 3991# Remember, the first character of IFS is used to create $*, 3992# except with old shells: 3993target_os=$* 3994IFS=$ac_save_IFS 3995case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3996 3997 3998# The aliases save the names the user supplied, while $host etc. 3999# will get canonicalized. 4000test -n "$target_alias" && 4001 test "$program_prefix$program_suffix$program_transform_name" = \ 4002 NONENONEs,x,x, && 4003 program_prefix=${target_alias}- 4004 4005 4006# Check whether --enable-static-z80ex was given. 4007if test "${enable_static_z80ex+set}" = set; then : 4008 enableval=$enable_static_z80ex; 4009else 4010 enable_static_z80ex=no 4011fi 4012 4013# Check whether --enable-sound was given. 4014if test "${enable_sound+set}" = set; then : 4015 enableval=$enable_sound; 4016else 4017 enable_sound=no 4018fi 4019 4020# Check whether --enable-libaudiofile was given. 4021if test "${enable_libaudiofile+set}" = set; then : 4022 enableval=$enable_libaudiofile; 4023else 4024 enable_libaudiofile=yes 4025fi 4026 4027# Check whether --enable-libsndfile was given. 4028if test "${enable_libsndfile+set}" = set; then : 4029 enableval=$enable_libsndfile; 4030else 4031 enable_libsndfile=yes 4032fi 4033 4034# Check whether --enable-libflac was given. 4035if test "${enable_libflac+set}" = set; then : 4036 enableval=$enable_libflac; 4037else 4038 enable_libflac=yes 4039fi 4040 4041# Check whether --enable-libvorbis was given. 4042if test "${enable_libvorbis+set}" = set; then : 4043 enableval=$enable_libvorbis; 4044else 4045 enable_libvorbis=yes 4046fi 4047 4048# Check whether --enable-libtheora was given. 4049if test "${enable_libtheora+set}" = set; then : 4050 enableval=$enable_libtheora; 4051else 4052 enable_libtheora=yes 4053fi 4054 4055# Check whether --enable-libxvidcore was given. 4056if test "${enable_libxvidcore+set}" = set; then : 4057 enableval=$enable_libxvidcore; 4058else 4059 enable_libxvidcore=yes 4060fi 4061 4062# Check whether --enable-libdirac was given. 4063if test "${enable_libdirac+set}" = set; then : 4064 enableval=$enable_libdirac; 4065else 4066 enable_libdirac=yes 4067fi 4068 4069# Check whether --enable-libschroedinger was given. 4070if test "${enable_libschroedinger+set}" = set; then : 4071 enableval=$enable_libschroedinger; 4072else 4073 enable_libschroedinger=yes 4074fi 4075 4076# Check whether --enable-libavformat was given. 4077if test "${enable_libavformat+set}" = set; then : 4078 enableval=$enable_libavformat; 4079else 4080 enable_libavformat=yes 4081fi 4082 4083# Check whether --enable-libgif was given. 4084if test "${enable_libgif+set}" = set; then : 4085 enableval=$enable_libgif; 4086else 4087 enable_libgif=yes 4088fi 4089 4090# Check whether --enable-libvncserver was given. 4091if test "${enable_libvncserver+set}" = set; then : 4092 enableval=$enable_libvncserver; 4093else 4094 enable_libvncserver=yes 4095fi 4096 4097# Check whether --enable-libmp3lame was given. 4098if test "${enable_libmp3lame+set}" = set; then : 4099 enableval=$enable_libmp3lame; 4100else 4101 enable_libmp3lame=yes 4102fi 4103 4104# Check whether --enable-ms-bitfields was given. 4105if test "${enable_ms_bitfields+set}" = set; then : 4106 enableval=$enable_ms_bitfields; 4107else 4108 enable_ms_bitfields=yes 4109fi 4110 4111 4112# Check whether --with-ui was given. 4113if test "${with_ui+set}" = set; then : 4114 withval=$with_ui; 4115else 4116 with_ui=auto 4117fi 4118 4119 4120# Check whether --with-debug_level was given. 4121if test "${with_debug_level+set}" = set; then : 4122 withval=$with_debug_level; 4123fi 4124 4125 4126 4127. ./VERSION 4128 4129VERSION=$KCEMU_VERSION 4130 4131 4132cat >>confdefs.h <<_ACEOF 4133#define PACKAGE "$PACKAGE" 4134_ACEOF 4135 4136 4137cat >>confdefs.h <<_ACEOF 4138#define VERSION "$VERSION" 4139_ACEOF 4140 4141 4142 4143cat >>confdefs.h <<_ACEOF 4144#define KCEMU_MAJOR_VERSION $KCEMU_MAJOR_VERSION 4145_ACEOF 4146 4147 4148cat >>confdefs.h <<_ACEOF 4149#define KCEMU_MINOR_VERSION $KCEMU_MINOR_VERSION 4150_ACEOF 4151 4152 4153cat >>confdefs.h <<_ACEOF 4154#define KCEMU_MICRO_VERSION $KCEMU_MICRO_VERSION 4155_ACEOF 4156 4157 4158cat >>confdefs.h <<_ACEOF 4159#define KCEMU_EXTRA_VERSION $KCEMU_EXTRA_VERSION 4160_ACEOF 4161 4162 4163cat >>confdefs.h <<_ACEOF 4164#define KCEMU_EXTRA_VERSION_TEXT "$KCEMU_EXTRA_VERSION_TEXT" 4165_ACEOF 4166 4167 4168cat >>confdefs.h <<_ACEOF 4169#define KCEMU_VERSION "$KCEMU_VERSION" 4170_ACEOF 4171 4172 4173 4174$as_echo "#define PACKAGE_URL \"\$PACKAGE_URL\"" >>confdefs.h 4175 4176$as_echo "#define PACKAGE_NAME \"\$PACKAGE-\$KCEMU_VERSION\"" >>confdefs.h 4177 4178$as_echo "#define PACKAGE_STRING \"\$PACKAGE-\$KCEMU_VERSION\"" >>confdefs.h 4179 4180$as_echo "#define PACKAGE_VERSION \"\$KCEMU_VERSION\"" >>confdefs.h 4181 4182$as_echo "#define PACKAGE_TARNAME \"\$PACKAGE-\${KCEMU_VERSION}.tar.gz\"" >>confdefs.h 4183 4184$as_echo "#define PACKAGE_BUGREPORT \"\$PACKAGE_BUGREPORT\"" >>confdefs.h 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203ac_config_headers="$ac_config_headers include/kc/config.h" 4204 4205am__api_version='1.11' 4206 4207# Find a good install program. We prefer a C program (faster), 4208# so one script is as good as another. But avoid the broken or 4209# incompatible versions: 4210# SysV /etc/install, /usr/sbin/install 4211# SunOS /usr/etc/install 4212# IRIX /sbin/install 4213# AIX /bin/install 4214# AmigaOS /C/install, which installs bootblocks on floppy discs 4215# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4216# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4217# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4218# OS/2's system install, which has a completely different semantic 4219# ./install, which can be erroneously created by make from ./install.sh. 4220# Reject install programs that cannot install multiple files. 4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4222$as_echo_n "checking for a BSD-compatible install... " >&6; } 4223if test -z "$INSTALL"; then 4224if test "${ac_cv_path_install+set}" = set; then : 4225 $as_echo_n "(cached) " >&6 4226else 4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4228for as_dir in $PATH 4229do 4230 IFS=$as_save_IFS 4231 test -z "$as_dir" && as_dir=. 4232 # Account for people who put trailing slashes in PATH elements. 4233case $as_dir/ in #(( 4234 ./ | .// | /[cC]/* | \ 4235 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4236 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4237 /usr/ucb/* ) ;; 4238 *) 4239 # OSF1 and SCO ODT 3.0 have their own names for install. 4240 # Don't use installbsd from OSF since it installs stuff as root 4241 # by default. 4242 for ac_prog in ginstall scoinst install; do 4243 for ac_exec_ext in '' $ac_executable_extensions; do 4244 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4245 if test $ac_prog = install && 4246 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4247 # AIX install. It has an incompatible calling convention. 4248 : 4249 elif test $ac_prog = install && 4250 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4251 # program-specific install script used by HP pwplus--don't use. 4252 : 4253 else 4254 rm -rf conftest.one conftest.two conftest.dir 4255 echo one > conftest.one 4256 echo two > conftest.two 4257 mkdir conftest.dir 4258 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4259 test -s conftest.one && test -s conftest.two && 4260 test -s conftest.dir/conftest.one && 4261 test -s conftest.dir/conftest.two 4262 then 4263 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4264 break 3 4265 fi 4266 fi 4267 fi 4268 done 4269 done 4270 ;; 4271esac 4272 4273 done 4274IFS=$as_save_IFS 4275 4276rm -rf conftest.one conftest.two conftest.dir 4277 4278fi 4279 if test "${ac_cv_path_install+set}" = set; then 4280 INSTALL=$ac_cv_path_install 4281 else 4282 # As a last resort, use the slow shell script. Don't cache a 4283 # value for INSTALL within a source directory, because that will 4284 # break other packages using the cache if that directory is 4285 # removed, or if the value is a relative name. 4286 INSTALL=$ac_install_sh 4287 fi 4288fi 4289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4290$as_echo "$INSTALL" >&6; } 4291 4292# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4293# It thinks the first close brace ends the variable substitution. 4294test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4295 4296test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4297 4298test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4299 4300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4301$as_echo_n "checking whether build environment is sane... " >&6; } 4302# Just in case 4303sleep 1 4304echo timestamp > conftest.file 4305# Reject unsafe characters in $srcdir or the absolute working directory 4306# name. Accept space and tab only in the latter. 4307am_lf=' 4308' 4309case `pwd` in 4310 *[\\\"\#\$\&\'\`$am_lf]*) 4311 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 4312esac 4313case $srcdir in 4314 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4315 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 4316esac 4317 4318# Do `set' in a subshell so we don't clobber the current shell's 4319# arguments. Must try -L first in case configure is actually a 4320# symlink; some systems play weird games with the mod time of symlinks 4321# (eg FreeBSD returns the mod time of the symlink's containing 4322# directory). 4323if ( 4324 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4325 if test "$*" = "X"; then 4326 # -L didn't work. 4327 set X `ls -t "$srcdir/configure" conftest.file` 4328 fi 4329 rm -f conftest.file 4330 if test "$*" != "X $srcdir/configure conftest.file" \ 4331 && test "$*" != "X conftest.file $srcdir/configure"; then 4332 4333 # If neither matched, then we have a broken ls. This can happen 4334 # if, for instance, CONFIG_SHELL is bash and it inherits a 4335 # broken ls alias from the environment. This has actually 4336 # happened. Such a system could not be considered "sane". 4337 as_fn_error "ls -t appears to fail. Make sure there is not a broken 4338alias in your environment" "$LINENO" 5 4339 fi 4340 4341 test "$2" = conftest.file 4342 ) 4343then 4344 # Ok. 4345 : 4346else 4347 as_fn_error "newly created file is older than distributed files! 4348Check your system clock" "$LINENO" 5 4349fi 4350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4351$as_echo "yes" >&6; } 4352test "$program_prefix" != NONE && 4353 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4354# Use a double $ so make ignores it. 4355test "$program_suffix" != NONE && 4356 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4357# Double any \ or $. 4358# By default was `s,x,x', remove it if useless. 4359ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4360program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4361 4362# expand $ac_aux_dir to an absolute path 4363am_aux_dir=`cd $ac_aux_dir && pwd` 4364 4365if test x"${MISSING+set}" != xset; then 4366 case $am_aux_dir in 4367 *\ * | *\ *) 4368 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4369 *) 4370 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4371 esac 4372fi 4373# Use eval to expand $SHELL 4374if eval "$MISSING --run true"; then 4375 am_missing_run="$MISSING --run " 4376else 4377 am_missing_run= 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 4379$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 4380fi 4381 4382if test x"${install_sh}" != xset; then 4383 case $am_aux_dir in 4384 *\ * | *\ *) 4385 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4386 *) 4387 install_sh="\${SHELL} $am_aux_dir/install-sh" 4388 esac 4389fi 4390 4391# Installed binaries are usually stripped using `strip' when the user 4392# run `make install-strip'. However `strip' might not be the right 4393# tool to use in cross-compilation environments, therefore Automake 4394# will honor the `STRIP' environment variable to overrule this program. 4395if test "$cross_compiling" != no; then 4396 if test -n "$ac_tool_prefix"; then 4397 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4398set dummy ${ac_tool_prefix}strip; ac_word=$2 4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4400$as_echo_n "checking for $ac_word... " >&6; } 4401if test "${ac_cv_prog_STRIP+set}" = set; then : 4402 $as_echo_n "(cached) " >&6 4403else 4404 if test -n "$STRIP"; then 4405 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4406else 4407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4408for as_dir in $PATH 4409do 4410 IFS=$as_save_IFS 4411 test -z "$as_dir" && as_dir=. 4412 for ac_exec_ext in '' $ac_executable_extensions; do 4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4414 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4416 break 2 4417 fi 4418done 4419 done 4420IFS=$as_save_IFS 4421 4422fi 4423fi 4424STRIP=$ac_cv_prog_STRIP 4425if test -n "$STRIP"; then 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4427$as_echo "$STRIP" >&6; } 4428else 4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4430$as_echo "no" >&6; } 4431fi 4432 4433 4434fi 4435if test -z "$ac_cv_prog_STRIP"; then 4436 ac_ct_STRIP=$STRIP 4437 # Extract the first word of "strip", so it can be a program name with args. 4438set dummy strip; ac_word=$2 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4440$as_echo_n "checking for $ac_word... " >&6; } 4441if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 4442 $as_echo_n "(cached) " >&6 4443else 4444 if test -n "$ac_ct_STRIP"; then 4445 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4446else 4447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4448for as_dir in $PATH 4449do 4450 IFS=$as_save_IFS 4451 test -z "$as_dir" && as_dir=. 4452 for ac_exec_ext in '' $ac_executable_extensions; do 4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4454 ac_cv_prog_ac_ct_STRIP="strip" 4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4456 break 2 4457 fi 4458done 4459 done 4460IFS=$as_save_IFS 4461 4462fi 4463fi 4464ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4465if test -n "$ac_ct_STRIP"; then 4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4467$as_echo "$ac_ct_STRIP" >&6; } 4468else 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4470$as_echo "no" >&6; } 4471fi 4472 4473 if test "x$ac_ct_STRIP" = x; then 4474 STRIP=":" 4475 else 4476 case $cross_compiling:$ac_tool_warned in 4477yes:) 4478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4480ac_tool_warned=yes ;; 4481esac 4482 STRIP=$ac_ct_STRIP 4483 fi 4484else 4485 STRIP="$ac_cv_prog_STRIP" 4486fi 4487 4488fi 4489INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4490 4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4492$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4493if test -z "$MKDIR_P"; then 4494 if test "${ac_cv_path_mkdir+set}" = set; then : 4495 $as_echo_n "(cached) " >&6 4496else 4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4498for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4499do 4500 IFS=$as_save_IFS 4501 test -z "$as_dir" && as_dir=. 4502 for ac_prog in mkdir gmkdir; do 4503 for ac_exec_ext in '' $ac_executable_extensions; do 4504 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 4505 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4506 'mkdir (GNU coreutils) '* | \ 4507 'mkdir (coreutils) '* | \ 4508 'mkdir (fileutils) '4.1*) 4509 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4510 break 3;; 4511 esac 4512 done 4513 done 4514 done 4515IFS=$as_save_IFS 4516 4517fi 4518 4519 test -d ./--version && rmdir ./--version 4520 if test "${ac_cv_path_mkdir+set}" = set; then 4521 MKDIR_P="$ac_cv_path_mkdir -p" 4522 else 4523 # As a last resort, use the slow shell script. Don't cache a 4524 # value for MKDIR_P within a source directory, because that will 4525 # break other packages using the cache if that directory is 4526 # removed, or if the value is a relative name. 4527 MKDIR_P="$ac_install_sh -d" 4528 fi 4529fi 4530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4531$as_echo "$MKDIR_P" >&6; } 4532 4533mkdir_p="$MKDIR_P" 4534case $mkdir_p in 4535 [\\/$]* | ?:[\\/]*) ;; 4536 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 4537esac 4538 4539for ac_prog in gawk mawk nawk awk 4540do 4541 # Extract the first word of "$ac_prog", so it can be a program name with args. 4542set dummy $ac_prog; ac_word=$2 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4544$as_echo_n "checking for $ac_word... " >&6; } 4545if test "${ac_cv_prog_AWK+set}" = set; then : 4546 $as_echo_n "(cached) " >&6 4547else 4548 if test -n "$AWK"; then 4549 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4550else 4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4552for as_dir in $PATH 4553do 4554 IFS=$as_save_IFS 4555 test -z "$as_dir" && as_dir=. 4556 for ac_exec_ext in '' $ac_executable_extensions; do 4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4558 ac_cv_prog_AWK="$ac_prog" 4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4560 break 2 4561 fi 4562done 4563 done 4564IFS=$as_save_IFS 4565 4566fi 4567fi 4568AWK=$ac_cv_prog_AWK 4569if test -n "$AWK"; then 4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4571$as_echo "$AWK" >&6; } 4572else 4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4574$as_echo "no" >&6; } 4575fi 4576 4577 4578 test -n "$AWK" && break 4579done 4580 4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4582$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4583set x ${MAKE-make} 4584ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4585if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 4586 $as_echo_n "(cached) " >&6 4587else 4588 cat >conftest.make <<\_ACEOF 4589SHELL = /bin/sh 4590all: 4591 @echo '@@@%%%=$(MAKE)=@@@%%%' 4592_ACEOF 4593# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4594case `${MAKE-make} -f conftest.make 2>/dev/null` in 4595 *@@@%%%=?*=@@@%%%*) 4596 eval ac_cv_prog_make_${ac_make}_set=yes;; 4597 *) 4598 eval ac_cv_prog_make_${ac_make}_set=no;; 4599esac 4600rm -f conftest.make 4601fi 4602if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4604$as_echo "yes" >&6; } 4605 SET_MAKE= 4606else 4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4608$as_echo "no" >&6; } 4609 SET_MAKE="MAKE=${MAKE-make}" 4610fi 4611 4612rm -rf .tst 2>/dev/null 4613mkdir .tst 2>/dev/null 4614if test -d .tst; then 4615 am__leading_dot=. 4616else 4617 am__leading_dot=_ 4618fi 4619rmdir .tst 2>/dev/null 4620 4621DEPDIR="${am__leading_dot}deps" 4622 4623ac_config_commands="$ac_config_commands depfiles" 4624 4625 4626am_make=${MAKE-make} 4627cat > confinc << 'END' 4628am__doit: 4629 @echo this is the am__doit target 4630.PHONY: am__doit 4631END 4632# If we don't find an include directive, just comment out the code. 4633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4634$as_echo_n "checking for style of include used by $am_make... " >&6; } 4635am__include="#" 4636am__quote= 4637_am_result=none 4638# First try GNU make style include. 4639echo "include confinc" > confmf 4640# Ignore all kinds of additional output from `make'. 4641case `$am_make -s -f confmf 2> /dev/null` in #( 4642*the\ am__doit\ target*) 4643 am__include=include 4644 am__quote= 4645 _am_result=GNU 4646 ;; 4647esac 4648# Now try BSD make style include. 4649if test "$am__include" = "#"; then 4650 echo '.include "confinc"' > confmf 4651 case `$am_make -s -f confmf 2> /dev/null` in #( 4652 *the\ am__doit\ target*) 4653 am__include=.include 4654 am__quote="\"" 4655 _am_result=BSD 4656 ;; 4657 esac 4658fi 4659 4660 4661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4662$as_echo "$_am_result" >&6; } 4663rm -f confinc confmf 4664 4665# Check whether --enable-dependency-tracking was given. 4666if test "${enable_dependency_tracking+set}" = set; then : 4667 enableval=$enable_dependency_tracking; 4668fi 4669 4670if test "x$enable_dependency_tracking" != xno; then 4671 am_depcomp="$ac_aux_dir/depcomp" 4672 AMDEPBACKSLASH='\' 4673fi 4674 if test "x$enable_dependency_tracking" != xno; then 4675 AMDEP_TRUE= 4676 AMDEP_FALSE='#' 4677else 4678 AMDEP_TRUE='#' 4679 AMDEP_FALSE= 4680fi 4681 4682 4683if test "`cd $srcdir && pwd`" != "`pwd`"; then 4684 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4685 # is not polluted with repeated "-I." 4686 am__isrc=' -I$(srcdir)' 4687 # test to see if srcdir already configured 4688 if test -f $srcdir/config.status; then 4689 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4690 fi 4691fi 4692 4693# test whether we have cygpath 4694if test -z "$CYGPATH_W"; then 4695 if (cygpath --version) >/dev/null 2>/dev/null; then 4696 CYGPATH_W='cygpath -w' 4697 else 4698 CYGPATH_W=echo 4699 fi 4700fi 4701 4702 4703# Define the identity of the package. 4704 PACKAGE=$PACKAGE 4705 VERSION=$VERSION 4706 4707 4708# Some tools Automake needs. 4709 4710ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4711 4712 4713AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4714 4715 4716AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4717 4718 4719AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4720 4721 4722MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4723 4724# We need awk for the "check" target. The system "awk" is bad on 4725# some platforms. 4726# Always define AMTAR for backward compatibility. 4727 4728AMTAR=${AMTAR-"${am_missing_run}tar"} 4729 4730am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 4731 4732 4733 4734 4735depcc="$CC" am_compiler_list= 4736 4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4738$as_echo_n "checking dependency style of $depcc... " >&6; } 4739if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4740 $as_echo_n "(cached) " >&6 4741else 4742 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4743 # We make a subdir and do the tests there. Otherwise we can end up 4744 # making bogus files that we don't know about and never remove. For 4745 # instance it was reported that on HP-UX the gcc test will end up 4746 # making a dummy file named `D' -- because `-MD' means `put the output 4747 # in D'. 4748 mkdir conftest.dir 4749 # Copy depcomp to subdir because otherwise we won't find it if we're 4750 # using a relative directory. 4751 cp "$am_depcomp" conftest.dir 4752 cd conftest.dir 4753 # We will build objects and dependencies in a subdirectory because 4754 # it helps to detect inapplicable dependency modes. For instance 4755 # both Tru64's cc and ICC support -MD to output dependencies as a 4756 # side effect of compilation, but ICC will put the dependencies in 4757 # the current directory while Tru64 will put them in the object 4758 # directory. 4759 mkdir sub 4760 4761 am_cv_CC_dependencies_compiler_type=none 4762 if test "$am_compiler_list" = ""; then 4763 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4764 fi 4765 am__universal=false 4766 case " $depcc " in #( 4767 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4768 esac 4769 4770 for depmode in $am_compiler_list; do 4771 # Setup a source with many dependencies, because some compilers 4772 # like to wrap large dependency lists on column 80 (with \), and 4773 # we should not choose a depcomp mode which is confused by this. 4774 # 4775 # We need to recreate these files for each test, as the compiler may 4776 # overwrite some of them when testing with obscure command lines. 4777 # This happens at least with the AIX C compiler. 4778 : > sub/conftest.c 4779 for i in 1 2 3 4 5 6; do 4780 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4781 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4782 # Solaris 8's {/usr,}/bin/sh. 4783 touch sub/conftst$i.h 4784 done 4785 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4786 4787 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4788 # mode. It turns out that the SunPro C++ compiler does not properly 4789 # handle `-M -o', and we need to detect this. Also, some Intel 4790 # versions had trouble with output in subdirs 4791 am__obj=sub/conftest.${OBJEXT-o} 4792 am__minus_obj="-o $am__obj" 4793 case $depmode in 4794 gcc) 4795 # This depmode causes a compiler race in universal mode. 4796 test "$am__universal" = false || continue 4797 ;; 4798 nosideeffect) 4799 # after this tag, mechanisms are not by side-effect, so they'll 4800 # only be used when explicitly requested 4801 if test "x$enable_dependency_tracking" = xyes; then 4802 continue 4803 else 4804 break 4805 fi 4806 ;; 4807 msvisualcpp | msvcmsys) 4808 # This compiler won't grok `-c -o', but also, the minuso test has 4809 # not run yet. These depmodes are late enough in the game, and 4810 # so weak that their functioning should not be impacted. 4811 am__obj=conftest.${OBJEXT-o} 4812 am__minus_obj= 4813 ;; 4814 none) break ;; 4815 esac 4816 if depmode=$depmode \ 4817 source=sub/conftest.c object=$am__obj \ 4818 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4819 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4820 >/dev/null 2>conftest.err && 4821 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4822 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4823 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4824 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4825 # icc doesn't choke on unknown options, it will just issue warnings 4826 # or remarks (even with -Werror). So we grep stderr for any message 4827 # that says an option was ignored or not supported. 4828 # When given -MP, icc 7.0 and 7.1 complain thusly: 4829 # icc: Command line warning: ignoring option '-M'; no argument required 4830 # The diagnosis changed in icc 8.0: 4831 # icc: Command line remark: option '-MP' not supported 4832 if (grep 'ignoring option' conftest.err || 4833 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4834 am_cv_CC_dependencies_compiler_type=$depmode 4835 break 4836 fi 4837 fi 4838 done 4839 4840 cd .. 4841 rm -rf conftest.dir 4842else 4843 am_cv_CC_dependencies_compiler_type=none 4844fi 4845 4846fi 4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4848$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4849CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4850 4851 if 4852 test "x$enable_dependency_tracking" != xno \ 4853 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4854 am__fastdepCC_TRUE= 4855 am__fastdepCC_FALSE='#' 4856else 4857 am__fastdepCC_TRUE='#' 4858 am__fastdepCC_FALSE= 4859fi 4860 4861 4862 4863 4864 4865ac_ext=c 4866ac_cpp='$CPP $CPPFLAGS' 4867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4869ac_compiler_gnu=$ac_cv_c_compiler_gnu 4870if test -n "$ac_tool_prefix"; then 4871 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4872set dummy ${ac_tool_prefix}gcc; ac_word=$2 4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4874$as_echo_n "checking for $ac_word... " >&6; } 4875if test "${ac_cv_prog_CC+set}" = set; then : 4876 $as_echo_n "(cached) " >&6 4877else 4878 if test -n "$CC"; then 4879 ac_cv_prog_CC="$CC" # Let the user override the test. 4880else 4881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4882for as_dir in $PATH 4883do 4884 IFS=$as_save_IFS 4885 test -z "$as_dir" && as_dir=. 4886 for ac_exec_ext in '' $ac_executable_extensions; do 4887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4888 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4890 break 2 4891 fi 4892done 4893 done 4894IFS=$as_save_IFS 4895 4896fi 4897fi 4898CC=$ac_cv_prog_CC 4899if test -n "$CC"; then 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4901$as_echo "$CC" >&6; } 4902else 4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4904$as_echo "no" >&6; } 4905fi 4906 4907 4908fi 4909if test -z "$ac_cv_prog_CC"; then 4910 ac_ct_CC=$CC 4911 # Extract the first word of "gcc", so it can be a program name with args. 4912set dummy gcc; ac_word=$2 4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4914$as_echo_n "checking for $ac_word... " >&6; } 4915if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4916 $as_echo_n "(cached) " >&6 4917else 4918 if test -n "$ac_ct_CC"; then 4919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4920else 4921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4922for as_dir in $PATH 4923do 4924 IFS=$as_save_IFS 4925 test -z "$as_dir" && as_dir=. 4926 for ac_exec_ext in '' $ac_executable_extensions; do 4927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4928 ac_cv_prog_ac_ct_CC="gcc" 4929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4930 break 2 4931 fi 4932done 4933 done 4934IFS=$as_save_IFS 4935 4936fi 4937fi 4938ac_ct_CC=$ac_cv_prog_ac_ct_CC 4939if test -n "$ac_ct_CC"; then 4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4941$as_echo "$ac_ct_CC" >&6; } 4942else 4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4944$as_echo "no" >&6; } 4945fi 4946 4947 if test "x$ac_ct_CC" = x; then 4948 CC="" 4949 else 4950 case $cross_compiling:$ac_tool_warned in 4951yes:) 4952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4954ac_tool_warned=yes ;; 4955esac 4956 CC=$ac_ct_CC 4957 fi 4958else 4959 CC="$ac_cv_prog_CC" 4960fi 4961 4962if test -z "$CC"; then 4963 if test -n "$ac_tool_prefix"; then 4964 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4965set dummy ${ac_tool_prefix}cc; ac_word=$2 4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4967$as_echo_n "checking for $ac_word... " >&6; } 4968if test "${ac_cv_prog_CC+set}" = set; then : 4969 $as_echo_n "(cached) " >&6 4970else 4971 if test -n "$CC"; then 4972 ac_cv_prog_CC="$CC" # Let the user override the test. 4973else 4974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4975for as_dir in $PATH 4976do 4977 IFS=$as_save_IFS 4978 test -z "$as_dir" && as_dir=. 4979 for ac_exec_ext in '' $ac_executable_extensions; do 4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4981 ac_cv_prog_CC="${ac_tool_prefix}cc" 4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4983 break 2 4984 fi 4985done 4986 done 4987IFS=$as_save_IFS 4988 4989fi 4990fi 4991CC=$ac_cv_prog_CC 4992if test -n "$CC"; then 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4994$as_echo "$CC" >&6; } 4995else 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4997$as_echo "no" >&6; } 4998fi 4999 5000 5001 fi 5002fi 5003if test -z "$CC"; then 5004 # Extract the first word of "cc", so it can be a program name with args. 5005set dummy cc; ac_word=$2 5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5007$as_echo_n "checking for $ac_word... " >&6; } 5008if test "${ac_cv_prog_CC+set}" = set; then : 5009 $as_echo_n "(cached) " >&6 5010else 5011 if test -n "$CC"; then 5012 ac_cv_prog_CC="$CC" # Let the user override the test. 5013else 5014 ac_prog_rejected=no 5015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5016for as_dir in $PATH 5017do 5018 IFS=$as_save_IFS 5019 test -z "$as_dir" && as_dir=. 5020 for ac_exec_ext in '' $ac_executable_extensions; do 5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5022 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5023 ac_prog_rejected=yes 5024 continue 5025 fi 5026 ac_cv_prog_CC="cc" 5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5028 break 2 5029 fi 5030done 5031 done 5032IFS=$as_save_IFS 5033 5034if test $ac_prog_rejected = yes; then 5035 # We found a bogon in the path, so make sure we never use it. 5036 set dummy $ac_cv_prog_CC 5037 shift 5038 if test $# != 0; then 5039 # We chose a different compiler from the bogus one. 5040 # However, it has the same basename, so the bogon will be chosen 5041 # first if we set CC to just the basename; use the full file name. 5042 shift 5043 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5044 fi 5045fi 5046fi 5047fi 5048CC=$ac_cv_prog_CC 5049if test -n "$CC"; then 5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5051$as_echo "$CC" >&6; } 5052else 5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5054$as_echo "no" >&6; } 5055fi 5056 5057 5058fi 5059if test -z "$CC"; then 5060 if test -n "$ac_tool_prefix"; then 5061 for ac_prog in cl.exe 5062 do 5063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5064set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5066$as_echo_n "checking for $ac_word... " >&6; } 5067if test "${ac_cv_prog_CC+set}" = set; then : 5068 $as_echo_n "(cached) " >&6 5069else 5070 if test -n "$CC"; then 5071 ac_cv_prog_CC="$CC" # Let the user override the test. 5072else 5073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5074for as_dir in $PATH 5075do 5076 IFS=$as_save_IFS 5077 test -z "$as_dir" && as_dir=. 5078 for ac_exec_ext in '' $ac_executable_extensions; do 5079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5080 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5082 break 2 5083 fi 5084done 5085 done 5086IFS=$as_save_IFS 5087 5088fi 5089fi 5090CC=$ac_cv_prog_CC 5091if test -n "$CC"; then 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5093$as_echo "$CC" >&6; } 5094else 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5096$as_echo "no" >&6; } 5097fi 5098 5099 5100 test -n "$CC" && break 5101 done 5102fi 5103if test -z "$CC"; then 5104 ac_ct_CC=$CC 5105 for ac_prog in cl.exe 5106do 5107 # Extract the first word of "$ac_prog", so it can be a program name with args. 5108set dummy $ac_prog; ac_word=$2 5109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5110$as_echo_n "checking for $ac_word... " >&6; } 5111if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 5112 $as_echo_n "(cached) " >&6 5113else 5114 if test -n "$ac_ct_CC"; then 5115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5116else 5117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5118for as_dir in $PATH 5119do 5120 IFS=$as_save_IFS 5121 test -z "$as_dir" && as_dir=. 5122 for ac_exec_ext in '' $ac_executable_extensions; do 5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5124 ac_cv_prog_ac_ct_CC="$ac_prog" 5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5126 break 2 5127 fi 5128done 5129 done 5130IFS=$as_save_IFS 5131 5132fi 5133fi 5134ac_ct_CC=$ac_cv_prog_ac_ct_CC 5135if test -n "$ac_ct_CC"; then 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5137$as_echo "$ac_ct_CC" >&6; } 5138else 5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5140$as_echo "no" >&6; } 5141fi 5142 5143 5144 test -n "$ac_ct_CC" && break 5145done 5146 5147 if test "x$ac_ct_CC" = x; then 5148 CC="" 5149 else 5150 case $cross_compiling:$ac_tool_warned in 5151yes:) 5152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5154ac_tool_warned=yes ;; 5155esac 5156 CC=$ac_ct_CC 5157 fi 5158fi 5159 5160fi 5161 5162 5163test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5165as_fn_error "no acceptable C compiler found in \$PATH 5166See \`config.log' for more details." "$LINENO" 5; } 5167 5168# Provide some information about the compiler. 5169$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5170set X $ac_compile 5171ac_compiler=$2 5172for ac_option in --version -v -V -qversion; do 5173 { { ac_try="$ac_compiler $ac_option >&5" 5174case "(($ac_try" in 5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5176 *) ac_try_echo=$ac_try;; 5177esac 5178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5179$as_echo "$ac_try_echo"; } >&5 5180 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5181 ac_status=$? 5182 if test -s conftest.err; then 5183 sed '10a\ 5184... rest of stderr output deleted ... 5185 10q' conftest.err >conftest.er1 5186 cat conftest.er1 >&5 5187 fi 5188 rm -f conftest.er1 conftest.err 5189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5190 test $ac_status = 0; } 5191done 5192 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5194$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5195if test "${ac_cv_c_compiler_gnu+set}" = set; then : 5196 $as_echo_n "(cached) " >&6 5197else 5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5199/* end confdefs.h. */ 5200 5201int 5202main () 5203{ 5204#ifndef __GNUC__ 5205 choke me 5206#endif 5207 5208 ; 5209 return 0; 5210} 5211_ACEOF 5212if ac_fn_c_try_compile "$LINENO"; then : 5213 ac_compiler_gnu=yes 5214else 5215 ac_compiler_gnu=no 5216fi 5217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5218ac_cv_c_compiler_gnu=$ac_compiler_gnu 5219 5220fi 5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5222$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5223if test $ac_compiler_gnu = yes; then 5224 GCC=yes 5225else 5226 GCC= 5227fi 5228ac_test_CFLAGS=${CFLAGS+set} 5229ac_save_CFLAGS=$CFLAGS 5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5231$as_echo_n "checking whether $CC accepts -g... " >&6; } 5232if test "${ac_cv_prog_cc_g+set}" = set; then : 5233 $as_echo_n "(cached) " >&6 5234else 5235 ac_save_c_werror_flag=$ac_c_werror_flag 5236 ac_c_werror_flag=yes 5237 ac_cv_prog_cc_g=no 5238 CFLAGS="-g" 5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5240/* end confdefs.h. */ 5241 5242int 5243main () 5244{ 5245 5246 ; 5247 return 0; 5248} 5249_ACEOF 5250if ac_fn_c_try_compile "$LINENO"; then : 5251 ac_cv_prog_cc_g=yes 5252else 5253 CFLAGS="" 5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5255/* end confdefs.h. */ 5256 5257int 5258main () 5259{ 5260 5261 ; 5262 return 0; 5263} 5264_ACEOF 5265if ac_fn_c_try_compile "$LINENO"; then : 5266 5267else 5268 ac_c_werror_flag=$ac_save_c_werror_flag 5269 CFLAGS="-g" 5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5271/* end confdefs.h. */ 5272 5273int 5274main () 5275{ 5276 5277 ; 5278 return 0; 5279} 5280_ACEOF 5281if ac_fn_c_try_compile "$LINENO"; then : 5282 ac_cv_prog_cc_g=yes 5283fi 5284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5285fi 5286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5287fi 5288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5289 ac_c_werror_flag=$ac_save_c_werror_flag 5290fi 5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5292$as_echo "$ac_cv_prog_cc_g" >&6; } 5293if test "$ac_test_CFLAGS" = set; then 5294 CFLAGS=$ac_save_CFLAGS 5295elif test $ac_cv_prog_cc_g = yes; then 5296 if test "$GCC" = yes; then 5297 CFLAGS="-g -O2" 5298 else 5299 CFLAGS="-g" 5300 fi 5301else 5302 if test "$GCC" = yes; then 5303 CFLAGS="-O2" 5304 else 5305 CFLAGS= 5306 fi 5307fi 5308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5309$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5310if test "${ac_cv_prog_cc_c89+set}" = set; then : 5311 $as_echo_n "(cached) " >&6 5312else 5313 ac_cv_prog_cc_c89=no 5314ac_save_CC=$CC 5315cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5316/* end confdefs.h. */ 5317#include <stdarg.h> 5318#include <stdio.h> 5319#include <sys/types.h> 5320#include <sys/stat.h> 5321/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5322struct buf { int x; }; 5323FILE * (*rcsopen) (struct buf *, struct stat *, int); 5324static char *e (p, i) 5325 char **p; 5326 int i; 5327{ 5328 return p[i]; 5329} 5330static char *f (char * (*g) (char **, int), char **p, ...) 5331{ 5332 char *s; 5333 va_list v; 5334 va_start (v,p); 5335 s = g (p, va_arg (v,int)); 5336 va_end (v); 5337 return s; 5338} 5339 5340/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5341 function prototypes and stuff, but not '\xHH' hex character constants. 5342 These don't provoke an error unfortunately, instead are silently treated 5343 as 'x'. The following induces an error, until -std is added to get 5344 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5345 array size at least. It's necessary to write '\x00'==0 to get something 5346 that's true only with -std. */ 5347int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5348 5349/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5350 inside strings and character constants. */ 5351#define FOO(x) 'x' 5352int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5353 5354int test (int i, double x); 5355struct s1 {int (*f) (int a);}; 5356struct s2 {int (*f) (double a);}; 5357int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5358int argc; 5359char **argv; 5360int 5361main () 5362{ 5363return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5364 ; 5365 return 0; 5366} 5367_ACEOF 5368for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5369 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5370do 5371 CC="$ac_save_CC $ac_arg" 5372 if ac_fn_c_try_compile "$LINENO"; then : 5373 ac_cv_prog_cc_c89=$ac_arg 5374fi 5375rm -f core conftest.err conftest.$ac_objext 5376 test "x$ac_cv_prog_cc_c89" != "xno" && break 5377done 5378rm -f conftest.$ac_ext 5379CC=$ac_save_CC 5380 5381fi 5382# AC_CACHE_VAL 5383case "x$ac_cv_prog_cc_c89" in 5384 x) 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5386$as_echo "none needed" >&6; } ;; 5387 xno) 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5389$as_echo "unsupported" >&6; } ;; 5390 *) 5391 CC="$CC $ac_cv_prog_cc_c89" 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5393$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5394esac 5395if test "x$ac_cv_prog_cc_c89" != xno; then : 5396 5397fi 5398 5399ac_ext=c 5400ac_cpp='$CPP $CPPFLAGS' 5401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5403ac_compiler_gnu=$ac_cv_c_compiler_gnu 5404 5405 5406if test x$enable_ms_bitfields = xyes; then 5407 ac_save_CFLAGS=$CFLAGS 5408 CFLAGS="-mms-bitfields" 5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $CFLAGS" >&5 5410$as_echo_n "checking whether $CC accepts $CFLAGS... " >&6; } 5411if test "${ac_cv_prog_cc_mms_bitfields+set}" = set; then : 5412 $as_echo_n "(cached) " >&6 5413else 5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5415/* end confdefs.h. */ 5416 5417int 5418main () 5419{ 5420 5421 ; 5422 return 0; 5423} 5424_ACEOF 5425if ac_fn_c_try_compile "$LINENO"; then : 5426 ac_cv_prog_cc_mms_bitfields=yes 5427else 5428 ac_cv_prog_cc_mms_bitfields=no 5429fi 5430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5431fi 5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_mms_bitfields" >&5 5433$as_echo "$ac_cv_prog_cc_mms_bitfields" >&6; } 5434 if test $ac_cv_prog_cc_mms_bitfields = yes; then 5435 use_ms_bitfields="$CFLAGS" 5436 else 5437 use_ms_bitfields="$CFLAGS" 5438 fi 5439 CFLAGS="$ac_save_CFLAGS" 5440fi 5441 5442ac_ext=cpp 5443ac_cpp='$CXXCPP $CPPFLAGS' 5444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5447if test -z "$CXX"; then 5448 if test -n "$CCC"; then 5449 CXX=$CCC 5450 else 5451 if test -n "$ac_tool_prefix"; then 5452 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5453 do 5454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5455set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5457$as_echo_n "checking for $ac_word... " >&6; } 5458if test "${ac_cv_prog_CXX+set}" = set; then : 5459 $as_echo_n "(cached) " >&6 5460else 5461 if test -n "$CXX"; then 5462 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5463else 5464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5465for as_dir in $PATH 5466do 5467 IFS=$as_save_IFS 5468 test -z "$as_dir" && as_dir=. 5469 for ac_exec_ext in '' $ac_executable_extensions; do 5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5471 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5473 break 2 5474 fi 5475done 5476 done 5477IFS=$as_save_IFS 5478 5479fi 5480fi 5481CXX=$ac_cv_prog_CXX 5482if test -n "$CXX"; then 5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5484$as_echo "$CXX" >&6; } 5485else 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5487$as_echo "no" >&6; } 5488fi 5489 5490 5491 test -n "$CXX" && break 5492 done 5493fi 5494if test -z "$CXX"; then 5495 ac_ct_CXX=$CXX 5496 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5497do 5498 # Extract the first word of "$ac_prog", so it can be a program name with args. 5499set dummy $ac_prog; ac_word=$2 5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5501$as_echo_n "checking for $ac_word... " >&6; } 5502if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 5503 $as_echo_n "(cached) " >&6 5504else 5505 if test -n "$ac_ct_CXX"; then 5506 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5507else 5508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5509for as_dir in $PATH 5510do 5511 IFS=$as_save_IFS 5512 test -z "$as_dir" && as_dir=. 5513 for ac_exec_ext in '' $ac_executable_extensions; do 5514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5515 ac_cv_prog_ac_ct_CXX="$ac_prog" 5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5517 break 2 5518 fi 5519done 5520 done 5521IFS=$as_save_IFS 5522 5523fi 5524fi 5525ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5526if test -n "$ac_ct_CXX"; then 5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5528$as_echo "$ac_ct_CXX" >&6; } 5529else 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5531$as_echo "no" >&6; } 5532fi 5533 5534 5535 test -n "$ac_ct_CXX" && break 5536done 5537 5538 if test "x$ac_ct_CXX" = x; then 5539 CXX="g++" 5540 else 5541 case $cross_compiling:$ac_tool_warned in 5542yes:) 5543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5545ac_tool_warned=yes ;; 5546esac 5547 CXX=$ac_ct_CXX 5548 fi 5549fi 5550 5551 fi 5552fi 5553# Provide some information about the compiler. 5554$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5555set X $ac_compile 5556ac_compiler=$2 5557for ac_option in --version -v -V -qversion; do 5558 { { ac_try="$ac_compiler $ac_option >&5" 5559case "(($ac_try" in 5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5561 *) ac_try_echo=$ac_try;; 5562esac 5563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5564$as_echo "$ac_try_echo"; } >&5 5565 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5566 ac_status=$? 5567 if test -s conftest.err; then 5568 sed '10a\ 5569... rest of stderr output deleted ... 5570 10q' conftest.err >conftest.er1 5571 cat conftest.er1 >&5 5572 fi 5573 rm -f conftest.er1 conftest.err 5574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5575 test $ac_status = 0; } 5576done 5577 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5579$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5580if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 5581 $as_echo_n "(cached) " >&6 5582else 5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5584/* end confdefs.h. */ 5585 5586int 5587main () 5588{ 5589#ifndef __GNUC__ 5590 choke me 5591#endif 5592 5593 ; 5594 return 0; 5595} 5596_ACEOF 5597if ac_fn_cxx_try_compile "$LINENO"; then : 5598 ac_compiler_gnu=yes 5599else 5600 ac_compiler_gnu=no 5601fi 5602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5603ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5604 5605fi 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5607$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5608if test $ac_compiler_gnu = yes; then 5609 GXX=yes 5610else 5611 GXX= 5612fi 5613ac_test_CXXFLAGS=${CXXFLAGS+set} 5614ac_save_CXXFLAGS=$CXXFLAGS 5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5616$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5617if test "${ac_cv_prog_cxx_g+set}" = set; then : 5618 $as_echo_n "(cached) " >&6 5619else 5620 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5621 ac_cxx_werror_flag=yes 5622 ac_cv_prog_cxx_g=no 5623 CXXFLAGS="-g" 5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5625/* end confdefs.h. */ 5626 5627int 5628main () 5629{ 5630 5631 ; 5632 return 0; 5633} 5634_ACEOF 5635if ac_fn_cxx_try_compile "$LINENO"; then : 5636 ac_cv_prog_cxx_g=yes 5637else 5638 CXXFLAGS="" 5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5640/* end confdefs.h. */ 5641 5642int 5643main () 5644{ 5645 5646 ; 5647 return 0; 5648} 5649_ACEOF 5650if ac_fn_cxx_try_compile "$LINENO"; then : 5651 5652else 5653 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5654 CXXFLAGS="-g" 5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5656/* end confdefs.h. */ 5657 5658int 5659main () 5660{ 5661 5662 ; 5663 return 0; 5664} 5665_ACEOF 5666if ac_fn_cxx_try_compile "$LINENO"; then : 5667 ac_cv_prog_cxx_g=yes 5668fi 5669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5670fi 5671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5672fi 5673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5674 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5675fi 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5677$as_echo "$ac_cv_prog_cxx_g" >&6; } 5678if test "$ac_test_CXXFLAGS" = set; then 5679 CXXFLAGS=$ac_save_CXXFLAGS 5680elif test $ac_cv_prog_cxx_g = yes; then 5681 if test "$GXX" = yes; then 5682 CXXFLAGS="-g -O2" 5683 else 5684 CXXFLAGS="-g" 5685 fi 5686else 5687 if test "$GXX" = yes; then 5688 CXXFLAGS="-O2" 5689 else 5690 CXXFLAGS= 5691 fi 5692fi 5693ac_ext=c 5694ac_cpp='$CPP $CPPFLAGS' 5695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5697ac_compiler_gnu=$ac_cv_c_compiler_gnu 5698 5699depcc="$CXX" am_compiler_list= 5700 5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5702$as_echo_n "checking dependency style of $depcc... " >&6; } 5703if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 5704 $as_echo_n "(cached) " >&6 5705else 5706 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5707 # We make a subdir and do the tests there. Otherwise we can end up 5708 # making bogus files that we don't know about and never remove. For 5709 # instance it was reported that on HP-UX the gcc test will end up 5710 # making a dummy file named `D' -- because `-MD' means `put the output 5711 # in D'. 5712 mkdir conftest.dir 5713 # Copy depcomp to subdir because otherwise we won't find it if we're 5714 # using a relative directory. 5715 cp "$am_depcomp" conftest.dir 5716 cd conftest.dir 5717 # We will build objects and dependencies in a subdirectory because 5718 # it helps to detect inapplicable dependency modes. For instance 5719 # both Tru64's cc and ICC support -MD to output dependencies as a 5720 # side effect of compilation, but ICC will put the dependencies in 5721 # the current directory while Tru64 will put them in the object 5722 # directory. 5723 mkdir sub 5724 5725 am_cv_CXX_dependencies_compiler_type=none 5726 if test "$am_compiler_list" = ""; then 5727 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5728 fi 5729 am__universal=false 5730 case " $depcc " in #( 5731 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5732 esac 5733 5734 for depmode in $am_compiler_list; do 5735 # Setup a source with many dependencies, because some compilers 5736 # like to wrap large dependency lists on column 80 (with \), and 5737 # we should not choose a depcomp mode which is confused by this. 5738 # 5739 # We need to recreate these files for each test, as the compiler may 5740 # overwrite some of them when testing with obscure command lines. 5741 # This happens at least with the AIX C compiler. 5742 : > sub/conftest.c 5743 for i in 1 2 3 4 5 6; do 5744 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5745 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5746 # Solaris 8's {/usr,}/bin/sh. 5747 touch sub/conftst$i.h 5748 done 5749 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5750 5751 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5752 # mode. It turns out that the SunPro C++ compiler does not properly 5753 # handle `-M -o', and we need to detect this. Also, some Intel 5754 # versions had trouble with output in subdirs 5755 am__obj=sub/conftest.${OBJEXT-o} 5756 am__minus_obj="-o $am__obj" 5757 case $depmode in 5758 gcc) 5759 # This depmode causes a compiler race in universal mode. 5760 test "$am__universal" = false || continue 5761 ;; 5762 nosideeffect) 5763 # after this tag, mechanisms are not by side-effect, so they'll 5764 # only be used when explicitly requested 5765 if test "x$enable_dependency_tracking" = xyes; then 5766 continue 5767 else 5768 break 5769 fi 5770 ;; 5771 msvisualcpp | msvcmsys) 5772 # This compiler won't grok `-c -o', but also, the minuso test has 5773 # not run yet. These depmodes are late enough in the game, and 5774 # so weak that their functioning should not be impacted. 5775 am__obj=conftest.${OBJEXT-o} 5776 am__minus_obj= 5777 ;; 5778 none) break ;; 5779 esac 5780 if depmode=$depmode \ 5781 source=sub/conftest.c object=$am__obj \ 5782 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5783 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5784 >/dev/null 2>conftest.err && 5785 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5786 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5787 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5788 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5789 # icc doesn't choke on unknown options, it will just issue warnings 5790 # or remarks (even with -Werror). So we grep stderr for any message 5791 # that says an option was ignored or not supported. 5792 # When given -MP, icc 7.0 and 7.1 complain thusly: 5793 # icc: Command line warning: ignoring option '-M'; no argument required 5794 # The diagnosis changed in icc 8.0: 5795 # icc: Command line remark: option '-MP' not supported 5796 if (grep 'ignoring option' conftest.err || 5797 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5798 am_cv_CXX_dependencies_compiler_type=$depmode 5799 break 5800 fi 5801 fi 5802 done 5803 5804 cd .. 5805 rm -rf conftest.dir 5806else 5807 am_cv_CXX_dependencies_compiler_type=none 5808fi 5809 5810fi 5811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5812$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5813CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5814 5815 if 5816 test "x$enable_dependency_tracking" != xno \ 5817 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5818 am__fastdepCXX_TRUE= 5819 am__fastdepCXX_FALSE='#' 5820else 5821 am__fastdepCXX_TRUE='#' 5822 am__fastdepCXX_FALSE= 5823fi 5824 5825 5826 5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5828$as_echo_n "checking whether ln -s works... " >&6; } 5829LN_S=$as_ln_s 5830if test "$LN_S" = "ln -s"; then 5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5832$as_echo "yes" >&6; } 5833else 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5835$as_echo "no, using $LN_S" >&6; } 5836fi 5837 5838if test -n "$ac_tool_prefix"; then 5839 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5840set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5842$as_echo_n "checking for $ac_word... " >&6; } 5843if test "${ac_cv_prog_RANLIB+set}" = set; then : 5844 $as_echo_n "(cached) " >&6 5845else 5846 if test -n "$RANLIB"; then 5847 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5848else 5849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5850for as_dir in $PATH 5851do 5852 IFS=$as_save_IFS 5853 test -z "$as_dir" && as_dir=. 5854 for ac_exec_ext in '' $ac_executable_extensions; do 5855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5856 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5858 break 2 5859 fi 5860done 5861 done 5862IFS=$as_save_IFS 5863 5864fi 5865fi 5866RANLIB=$ac_cv_prog_RANLIB 5867if test -n "$RANLIB"; then 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5869$as_echo "$RANLIB" >&6; } 5870else 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5872$as_echo "no" >&6; } 5873fi 5874 5875 5876fi 5877if test -z "$ac_cv_prog_RANLIB"; then 5878 ac_ct_RANLIB=$RANLIB 5879 # Extract the first word of "ranlib", so it can be a program name with args. 5880set dummy ranlib; ac_word=$2 5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5882$as_echo_n "checking for $ac_word... " >&6; } 5883if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5884 $as_echo_n "(cached) " >&6 5885else 5886 if test -n "$ac_ct_RANLIB"; then 5887 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5888else 5889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5890for as_dir in $PATH 5891do 5892 IFS=$as_save_IFS 5893 test -z "$as_dir" && as_dir=. 5894 for ac_exec_ext in '' $ac_executable_extensions; do 5895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5896 ac_cv_prog_ac_ct_RANLIB="ranlib" 5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5898 break 2 5899 fi 5900done 5901 done 5902IFS=$as_save_IFS 5903 5904fi 5905fi 5906ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5907if test -n "$ac_ct_RANLIB"; then 5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5909$as_echo "$ac_ct_RANLIB" >&6; } 5910else 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5912$as_echo "no" >&6; } 5913fi 5914 5915 if test "x$ac_ct_RANLIB" = x; then 5916 RANLIB=":" 5917 else 5918 case $cross_compiling:$ac_tool_warned in 5919yes:) 5920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5922ac_tool_warned=yes ;; 5923esac 5924 RANLIB=$ac_ct_RANLIB 5925 fi 5926else 5927 RANLIB="$ac_cv_prog_RANLIB" 5928fi 5929 5930if test -n "$ac_tool_prefix"; then 5931 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 5932set dummy ${ac_tool_prefix}windres; ac_word=$2 5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5934$as_echo_n "checking for $ac_word... " >&6; } 5935if test "${ac_cv_prog_RC+set}" = set; then : 5936 $as_echo_n "(cached) " >&6 5937else 5938 if test -n "$RC"; then 5939 ac_cv_prog_RC="$RC" # Let the user override the test. 5940else 5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5942for as_dir in $PATH 5943do 5944 IFS=$as_save_IFS 5945 test -z "$as_dir" && as_dir=. 5946 for ac_exec_ext in '' $ac_executable_extensions; do 5947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5948 ac_cv_prog_RC="${ac_tool_prefix}windres" 5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5950 break 2 5951 fi 5952done 5953 done 5954IFS=$as_save_IFS 5955 5956fi 5957fi 5958RC=$ac_cv_prog_RC 5959if test -n "$RC"; then 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 5961$as_echo "$RC" >&6; } 5962else 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5964$as_echo "no" >&6; } 5965fi 5966 5967 5968fi 5969if test -z "$ac_cv_prog_RC"; then 5970 ac_ct_RC=$RC 5971 # Extract the first word of "windres", so it can be a program name with args. 5972set dummy windres; ac_word=$2 5973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5974$as_echo_n "checking for $ac_word... " >&6; } 5975if test "${ac_cv_prog_ac_ct_RC+set}" = set; then : 5976 $as_echo_n "(cached) " >&6 5977else 5978 if test -n "$ac_ct_RC"; then 5979 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. 5980else 5981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5982for as_dir in $PATH 5983do 5984 IFS=$as_save_IFS 5985 test -z "$as_dir" && as_dir=. 5986 for ac_exec_ext in '' $ac_executable_extensions; do 5987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5988 ac_cv_prog_ac_ct_RC="windres" 5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5990 break 2 5991 fi 5992done 5993 done 5994IFS=$as_save_IFS 5995 5996fi 5997fi 5998ac_ct_RC=$ac_cv_prog_ac_ct_RC 5999if test -n "$ac_ct_RC"; then 6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 6001$as_echo "$ac_ct_RC" >&6; } 6002else 6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6004$as_echo "no" >&6; } 6005fi 6006 6007 if test "x$ac_ct_RC" = x; then 6008 RC=":" 6009 else 6010 case $cross_compiling:$ac_tool_warned in 6011yes:) 6012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6014ac_tool_warned=yes ;; 6015esac 6016 RC=$ac_ct_RC 6017 fi 6018else 6019 RC="$ac_cv_prog_RC" 6020fi 6021 6022 6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 6024$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 6025set x ${MAKE-make} 6026ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6027if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 6028 $as_echo_n "(cached) " >&6 6029else 6030 cat >conftest.make <<\_ACEOF 6031SHELL = /bin/sh 6032all: 6033 @echo '@@@%%%=$(MAKE)=@@@%%%' 6034_ACEOF 6035# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 6036case `${MAKE-make} -f conftest.make 2>/dev/null` in 6037 *@@@%%%=?*=@@@%%%*) 6038 eval ac_cv_prog_make_${ac_make}_set=yes;; 6039 *) 6040 eval ac_cv_prog_make_${ac_make}_set=no;; 6041esac 6042rm -f conftest.make 6043fi 6044if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6046$as_echo "yes" >&6; } 6047 SET_MAKE= 6048else 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6050$as_echo "no" >&6; } 6051 SET_MAKE="MAKE=${MAKE-make}" 6052fi 6053 6054 6055 6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level is requested" >&5 6057$as_echo_n "checking which debug level is requested... " >&6; } 6058DBG_LEVEL=1 6059if test "x$with_debug_level" = "x0"; then 6060 DBG_LEVEL=0 6061elif test "x$with_debug_level" = "x1"; then 6062 DBG_LEVEL=1 6063elif test "x$with_debug_level" = "x2"; then 6064 DBG_LEVEL=2 6065elif test "x$with_debug_level" = "x3"; then 6066 DBG_LEVEL=3 6067fi 6068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBG_LEVEL" >&5 6069$as_echo "$DBG_LEVEL" >&6; } 6070 6071cat >>confdefs.h <<_ACEOF 6072#define DBG_LEVEL $DBG_LEVEL 6073_ACEOF 6074 6075 6076 6077# Extract the first word of "asl", so it can be a program name with args. 6078set dummy asl; ac_word=$2 6079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6080$as_echo_n "checking for $ac_word... " >&6; } 6081if test "${ac_cv_prog_HAVE_ASL+set}" = set; then : 6082 $as_echo_n "(cached) " >&6 6083else 6084 if test -n "$HAVE_ASL"; then 6085 ac_cv_prog_HAVE_ASL="$HAVE_ASL" # Let the user override the test. 6086else 6087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6088for as_dir in $PATH 6089do 6090 IFS=$as_save_IFS 6091 test -z "$as_dir" && as_dir=. 6092 for ac_exec_ext in '' $ac_executable_extensions; do 6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6094 ac_cv_prog_HAVE_ASL=""yes"" 6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6096 break 2 6097 fi 6098done 6099 done 6100IFS=$as_save_IFS 6101 6102 test -z "$ac_cv_prog_HAVE_ASL" && ac_cv_prog_HAVE_ASL=""no"" 6103fi 6104fi 6105HAVE_ASL=$ac_cv_prog_HAVE_ASL 6106if test -n "$HAVE_ASL"; then 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ASL" >&5 6108$as_echo "$HAVE_ASL" >&6; } 6109else 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6111$as_echo "no" >&6; } 6112fi 6113 6114 6115# Extract the first word of "p2bin", so it can be a program name with args. 6116set dummy p2bin; ac_word=$2 6117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6118$as_echo_n "checking for $ac_word... " >&6; } 6119if test "${ac_cv_prog_HAVE_P2BIN+set}" = set; then : 6120 $as_echo_n "(cached) " >&6 6121else 6122 if test -n "$HAVE_P2BIN"; then 6123 ac_cv_prog_HAVE_P2BIN="$HAVE_P2BIN" # Let the user override the test. 6124else 6125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6126for as_dir in $PATH 6127do 6128 IFS=$as_save_IFS 6129 test -z "$as_dir" && as_dir=. 6130 for ac_exec_ext in '' $ac_executable_extensions; do 6131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6132 ac_cv_prog_HAVE_P2BIN=""yes"" 6133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6134 break 2 6135 fi 6136done 6137 done 6138IFS=$as_save_IFS 6139 6140 test -z "$ac_cv_prog_HAVE_P2BIN" && ac_cv_prog_HAVE_P2BIN=""no"" 6141fi 6142fi 6143HAVE_P2BIN=$ac_cv_prog_HAVE_P2BIN 6144if test -n "$HAVE_P2BIN"; then 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_P2BIN" >&5 6146$as_echo "$HAVE_P2BIN" >&6; } 6147else 6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6149$as_echo "no" >&6; } 6150fi 6151 6152 6153 6154 if false; then 6155 COMPILE_Z80_ASM_TRUE= 6156 COMPILE_Z80_ASM_FALSE='#' 6157else 6158 COMPILE_Z80_ASM_TRUE='#' 6159 COMPILE_Z80_ASM_FALSE= 6160fi 6161 6162if test "x$HAVE_ASL" = "xyes"; then 6163 if test "x$HAVE_P2BIN" = "xyes"; then 6164 if true; then 6165 COMPILE_Z80_ASM_TRUE= 6166 COMPILE_Z80_ASM_FALSE='#' 6167else 6168 COMPILE_Z80_ASM_TRUE='#' 6169 COMPILE_Z80_ASM_FALSE= 6170fi 6171 6172 fi 6173fi 6174 6175 6176 if false; then 6177 TARGET_MINGW_TRUE= 6178 TARGET_MINGW_FALSE='#' 6179else 6180 TARGET_MINGW_TRUE='#' 6181 TARGET_MINGW_FALSE= 6182fi 6183 6184 if false; then 6185 TARGET_LINUX_TRUE= 6186 TARGET_LINUX_FALSE='#' 6187else 6188 TARGET_LINUX_TRUE='#' 6189 TARGET_LINUX_FALSE= 6190fi 6191 6192 if false; then 6193 TARGET_FREEBSD_TRUE= 6194 TARGET_FREEBSD_FALSE='#' 6195else 6196 TARGET_FREEBSD_TRUE='#' 6197 TARGET_FREEBSD_FALSE= 6198fi 6199 6200 6201case "$host_os" in 6202 beos) 6203 as_fn_error " 6204*** 6205*** BeOS is not supported anymore. 6206***" "$LINENO" 5 6207 ;; 6208 6209 mingw32*) 6210 HOST_OS="MinGW" 6211 HOST_OS_MINGW=1 6212 if true; then 6213 TARGET_MINGW_TRUE= 6214 TARGET_MINGW_FALSE='#' 6215else 6216 TARGET_MINGW_TRUE='#' 6217 TARGET_MINGW_FALSE= 6218fi 6219 6220 6221cat >>confdefs.h <<_ACEOF 6222#define HOST_OS_MINGW $HOST_OS_MINGW 6223_ACEOF 6224 6225 CFLAGS="$CFLAGS $use_ms_bitfields" 6226 CXXFLAGS="$CXXFLAGS $use_ms_bitfields" 6227 LDFLAGS="$LDFLAGS $use_ms_bitfields -mwindows" 6228 ;; 6229 6230 freebsd*|dragonfly*) 6231 HOST_OS="FreeBSD" 6232 HOST_OS_FREEBSD=1 6233 if true; then 6234 TARGET_FREEBSD_TRUE= 6235 TARGET_FREEBSD_FALSE='#' 6236else 6237 TARGET_FREEBSD_TRUE='#' 6238 TARGET_FREEBSD_FALSE= 6239fi 6240 6241 6242cat >>confdefs.h <<_ACEOF 6243#define HOST_OS_FREEBSD $HOST_OS_FREEBSD 6244_ACEOF 6245 6246 ;; 6247 *) 6248 HOST_OS="Linux" 6249 HOST_OS_LINUX=1 6250 if true; then 6251 TARGET_LINUX_TRUE= 6252 TARGET_LINUX_FALSE='#' 6253else 6254 TARGET_LINUX_TRUE='#' 6255 TARGET_LINUX_FALSE= 6256fi 6257 6258 6259cat >>confdefs.h <<_ACEOF 6260#define HOST_OS_LINUX $HOST_OS_LINUX 6261_ACEOF 6262 6263 ;; 6264esac 6265 6266 6267cat >>confdefs.h <<_ACEOF 6268#define HOST_OS "$HOST_OS" 6269_ACEOF 6270 6271 6272 6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 6274$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 6275if test "${ac_cv_c_const+set}" = set; then : 6276 $as_echo_n "(cached) " >&6 6277else 6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6279/* end confdefs.h. */ 6280 6281int 6282main () 6283{ 6284/* FIXME: Include the comments suggested by Paul. */ 6285#ifndef __cplusplus 6286 /* Ultrix mips cc rejects this. */ 6287 typedef int charset[2]; 6288 const charset cs; 6289 /* SunOS 4.1.1 cc rejects this. */ 6290 char const *const *pcpcc; 6291 char **ppc; 6292 /* NEC SVR4.0.2 mips cc rejects this. */ 6293 struct point {int x, y;}; 6294 static struct point const zero = {0,0}; 6295 /* AIX XL C 1.02.0.0 rejects this. 6296 It does not let you subtract one const X* pointer from another in 6297 an arm of an if-expression whose if-part is not a constant 6298 expression */ 6299 const char *g = "string"; 6300 pcpcc = &g + (g ? g-g : 0); 6301 /* HPUX 7.0 cc rejects these. */ 6302 ++pcpcc; 6303 ppc = (char**) pcpcc; 6304 pcpcc = (char const *const *) ppc; 6305 { /* SCO 3.2v4 cc rejects this. */ 6306 char *t; 6307 char const *s = 0 ? (char *) 0 : (char const *) 0; 6308 6309 *t++ = 0; 6310 if (s) return 0; 6311 } 6312 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6313 int x[] = {25, 17}; 6314 const int *foo = &x[0]; 6315 ++foo; 6316 } 6317 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6318 typedef const int *iptr; 6319 iptr p = 0; 6320 ++p; 6321 } 6322 { /* AIX XL C 1.02.0.0 rejects this saying 6323 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6324 struct s { int j; const int *ap[3]; }; 6325 struct s *b; b->j = 5; 6326 } 6327 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 6328 const int foo = 10; 6329 if (!foo) return 0; 6330 } 6331 return !cs[0] && !zero.x; 6332#endif 6333 6334 ; 6335 return 0; 6336} 6337_ACEOF 6338if ac_fn_c_try_compile "$LINENO"; then : 6339 ac_cv_c_const=yes 6340else 6341 ac_cv_c_const=no 6342fi 6343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6344fi 6345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 6346$as_echo "$ac_cv_c_const" >&6; } 6347if test $ac_cv_c_const = no; then 6348 6349$as_echo "#define const /**/" >>confdefs.h 6350 6351fi 6352 6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6354$as_echo_n "checking for inline... " >&6; } 6355if test "${ac_cv_c_inline+set}" = set; then : 6356 $as_echo_n "(cached) " >&6 6357else 6358 ac_cv_c_inline=no 6359for ac_kw in inline __inline__ __inline; do 6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6361/* end confdefs.h. */ 6362#ifndef __cplusplus 6363typedef int foo_t; 6364static $ac_kw foo_t static_foo () {return 0; } 6365$ac_kw foo_t foo () {return 0; } 6366#endif 6367 6368_ACEOF 6369if ac_fn_c_try_compile "$LINENO"; then : 6370 ac_cv_c_inline=$ac_kw 6371fi 6372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6373 test "$ac_cv_c_inline" != no && break 6374done 6375 6376fi 6377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6378$as_echo "$ac_cv_c_inline" >&6; } 6379 6380case $ac_cv_c_inline in 6381 inline | yes) ;; 6382 *) 6383 case $ac_cv_c_inline in 6384 no) ac_val=;; 6385 *) ac_val=$ac_cv_c_inline;; 6386 esac 6387 cat >>confdefs.h <<_ACEOF 6388#ifndef __cplusplus 6389#define inline $ac_val 6390#endif 6391_ACEOF 6392 ;; 6393esac 6394 6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 6396$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 6397if test "${ac_cv_header_time+set}" = set; then : 6398 $as_echo_n "(cached) " >&6 6399else 6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6401/* end confdefs.h. */ 6402#include <sys/types.h> 6403#include <sys/time.h> 6404#include <time.h> 6405 6406int 6407main () 6408{ 6409if ((struct tm *) 0) 6410return 0; 6411 ; 6412 return 0; 6413} 6414_ACEOF 6415if ac_fn_c_try_compile "$LINENO"; then : 6416 ac_cv_header_time=yes 6417else 6418 ac_cv_header_time=no 6419fi 6420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6421fi 6422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 6423$as_echo "$ac_cv_header_time" >&6; } 6424if test $ac_cv_header_time = yes; then 6425 6426$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 6427 6428fi 6429 6430 6431 6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 6433$as_echo_n "checking for X... " >&6; } 6434 6435 6436# Check whether --with-x was given. 6437if test "${with_x+set}" = set; then : 6438 withval=$with_x; 6439fi 6440 6441# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 6442if test "x$with_x" = xno; then 6443 # The user explicitly disabled X. 6444 have_x=disabled 6445else 6446 case $x_includes,$x_libraries in #( 6447 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( 6448 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 6449 $as_echo_n "(cached) " >&6 6450else 6451 # One or both of the vars are not set, and there is no cached value. 6452ac_x_includes=no ac_x_libraries=no 6453rm -f -r conftest.dir 6454if mkdir conftest.dir; then 6455 cd conftest.dir 6456 cat >Imakefile <<'_ACEOF' 6457incroot: 6458 @echo incroot='${INCROOT}' 6459usrlibdir: 6460 @echo usrlibdir='${USRLIBDIR}' 6461libdir: 6462 @echo libdir='${LIBDIR}' 6463_ACEOF 6464 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 6465 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 6466 for ac_var in incroot usrlibdir libdir; do 6467 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 6468 done 6469 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 6470 for ac_extension in a so sl dylib la dll; do 6471 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 6472 test -f "$ac_im_libdir/libX11.$ac_extension"; then 6473 ac_im_usrlibdir=$ac_im_libdir; break 6474 fi 6475 done 6476 # Screen out bogus values from the imake configuration. They are 6477 # bogus both because they are the default anyway, and because 6478 # using them would break gcc on systems where it needs fixed includes. 6479 case $ac_im_incroot in 6480 /usr/include) ac_x_includes= ;; 6481 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 6482 esac 6483 case $ac_im_usrlibdir in 6484 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 6485 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 6486 esac 6487 fi 6488 cd .. 6489 rm -f -r conftest.dir 6490fi 6491 6492# Standard set of common directories for X headers. 6493# Check X11 before X11Rn because it is often a symlink to the current release. 6494ac_x_header_dirs=' 6495/usr/X11/include 6496/usr/X11R7/include 6497/usr/X11R6/include 6498/usr/X11R5/include 6499/usr/X11R4/include 6500 6501/usr/include/X11 6502/usr/include/X11R7 6503/usr/include/X11R6 6504/usr/include/X11R5 6505/usr/include/X11R4 6506 6507/usr/local/X11/include 6508/usr/local/X11R7/include 6509/usr/local/X11R6/include 6510/usr/local/X11R5/include 6511/usr/local/X11R4/include 6512 6513/usr/local/include/X11 6514/usr/local/include/X11R7 6515/usr/local/include/X11R6 6516/usr/local/include/X11R5 6517/usr/local/include/X11R4 6518 6519/usr/X386/include 6520/usr/x386/include 6521/usr/XFree86/include/X11 6522 6523/usr/include 6524/usr/local/include 6525/usr/unsupported/include 6526/usr/athena/include 6527/usr/local/x11r5/include 6528/usr/lpp/Xamples/include 6529 6530/usr/openwin/include 6531/usr/openwin/share/include' 6532 6533if test "$ac_x_includes" = no; then 6534 # Guess where to find include files, by looking for Xlib.h. 6535 # First, try using that file with no special directory specified. 6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6537/* end confdefs.h. */ 6538#include <X11/Xlib.h> 6539_ACEOF 6540if ac_fn_c_try_cpp "$LINENO"; then : 6541 # We can compile using X headers with no special include directory. 6542ac_x_includes= 6543else 6544 for ac_dir in $ac_x_header_dirs; do 6545 if test -r "$ac_dir/X11/Xlib.h"; then 6546 ac_x_includes=$ac_dir 6547 break 6548 fi 6549done 6550fi 6551rm -f conftest.err conftest.$ac_ext 6552fi # $ac_x_includes = no 6553 6554if test "$ac_x_libraries" = no; then 6555 # Check for the libraries. 6556 # See if we find them without any special options. 6557 # Don't add to $LIBS permanently. 6558 ac_save_LIBS=$LIBS 6559 LIBS="-lX11 $LIBS" 6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6561/* end confdefs.h. */ 6562#include <X11/Xlib.h> 6563int 6564main () 6565{ 6566XrmInitialize () 6567 ; 6568 return 0; 6569} 6570_ACEOF 6571if ac_fn_c_try_link "$LINENO"; then : 6572 LIBS=$ac_save_LIBS 6573# We can link X programs with no special library path. 6574ac_x_libraries= 6575else 6576 LIBS=$ac_save_LIBS 6577for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 6578do 6579 # Don't even attempt the hair of trying to link an X program! 6580 for ac_extension in a so sl dylib la dll; do 6581 if test -r "$ac_dir/libX11.$ac_extension"; then 6582 ac_x_libraries=$ac_dir 6583 break 2 6584 fi 6585 done 6586done 6587fi 6588rm -f core conftest.err conftest.$ac_objext \ 6589 conftest$ac_exeext conftest.$ac_ext 6590fi # $ac_x_libraries = no 6591 6592case $ac_x_includes,$ac_x_libraries in #( 6593 no,* | *,no | *\'*) 6594 # Didn't find X, or a directory has "'" in its name. 6595 ac_cv_have_x="have_x=no";; #( 6596 *) 6597 # Record where we found X for the cache. 6598 ac_cv_have_x="have_x=yes\ 6599 ac_x_includes='$ac_x_includes'\ 6600 ac_x_libraries='$ac_x_libraries'" 6601esac 6602fi 6603;; #( 6604 *) have_x=yes;; 6605 esac 6606 eval "$ac_cv_have_x" 6607fi # $with_x != no 6608 6609if test "$have_x" != yes; then 6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 6611$as_echo "$have_x" >&6; } 6612 no_x=yes 6613else 6614 # If each of the values was on the command line, it overrides each guess. 6615 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 6616 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 6617 # Update the cache value to reflect the command line values. 6618 ac_cv_have_x="have_x=yes\ 6619 ac_x_includes='$x_includes'\ 6620 ac_x_libraries='$x_libraries'" 6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 6622$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 6623fi 6624 6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6626$as_echo_n "checking for ANSI C header files... " >&6; } 6627if test "${ac_cv_header_stdc+set}" = set; then : 6628 $as_echo_n "(cached) " >&6 6629else 6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6631/* end confdefs.h. */ 6632#include <stdlib.h> 6633#include <stdarg.h> 6634#include <string.h> 6635#include <float.h> 6636 6637int 6638main () 6639{ 6640 6641 ; 6642 return 0; 6643} 6644_ACEOF 6645if ac_fn_c_try_compile "$LINENO"; then : 6646 ac_cv_header_stdc=yes 6647else 6648 ac_cv_header_stdc=no 6649fi 6650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6651 6652if test $ac_cv_header_stdc = yes; then 6653 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6655/* end confdefs.h. */ 6656#include <string.h> 6657 6658_ACEOF 6659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6660 $EGREP "memchr" >/dev/null 2>&1; then : 6661 6662else 6663 ac_cv_header_stdc=no 6664fi 6665rm -f conftest* 6666 6667fi 6668 6669if test $ac_cv_header_stdc = yes; then 6670 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6672/* end confdefs.h. */ 6673#include <stdlib.h> 6674 6675_ACEOF 6676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6677 $EGREP "free" >/dev/null 2>&1; then : 6678 6679else 6680 ac_cv_header_stdc=no 6681fi 6682rm -f conftest* 6683 6684fi 6685 6686if test $ac_cv_header_stdc = yes; then 6687 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6688 if test "$cross_compiling" = yes; then : 6689 : 6690else 6691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6692/* end confdefs.h. */ 6693#include <ctype.h> 6694#include <stdlib.h> 6695#if ((' ' & 0x0FF) == 0x020) 6696# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6697# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6698#else 6699# define ISLOWER(c) \ 6700 (('a' <= (c) && (c) <= 'i') \ 6701 || ('j' <= (c) && (c) <= 'r') \ 6702 || ('s' <= (c) && (c) <= 'z')) 6703# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6704#endif 6705 6706#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6707int 6708main () 6709{ 6710 int i; 6711 for (i = 0; i < 256; i++) 6712 if (XOR (islower (i), ISLOWER (i)) 6713 || toupper (i) != TOUPPER (i)) 6714 return 2; 6715 return 0; 6716} 6717_ACEOF 6718if ac_fn_c_try_run "$LINENO"; then : 6719 6720else 6721 ac_cv_header_stdc=no 6722fi 6723rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6724 conftest.$ac_objext conftest.beam conftest.$ac_ext 6725fi 6726 6727fi 6728fi 6729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6730$as_echo "$ac_cv_header_stdc" >&6; } 6731if test $ac_cv_header_stdc = yes; then 6732 6733$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6734 6735fi 6736 6737for ac_header in sys/time.h mcheck.h 6738do : 6739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6740ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6741eval as_val=\$$as_ac_Header 6742 if test "x$as_val" = x""yes; then : 6743 cat >>confdefs.h <<_ACEOF 6744#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6745_ACEOF 6746 6747fi 6748 6749done 6750 6751 6752 6753ac_ext=cpp 6754ac_cpp='$CXXCPP $CPPFLAGS' 6755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6758 6759ac_ext=c 6760ac_cpp='$CPP $CPPFLAGS' 6761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6763ac_compiler_gnu=$ac_cv_c_compiler_gnu 6764 6765 6766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 6767$as_echo_n "checking return type of signal handlers... " >&6; } 6768if test "${ac_cv_type_signal+set}" = set; then : 6769 $as_echo_n "(cached) " >&6 6770else 6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6772/* end confdefs.h. */ 6773#include <sys/types.h> 6774#include <signal.h> 6775 6776int 6777main () 6778{ 6779return *(signal (0, 0)) (0) == 1; 6780 ; 6781 return 0; 6782} 6783_ACEOF 6784if ac_fn_c_try_compile "$LINENO"; then : 6785 ac_cv_type_signal=int 6786else 6787 ac_cv_type_signal=void 6788fi 6789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6790fi 6791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 6792$as_echo "$ac_cv_type_signal" >&6; } 6793 6794cat >>confdefs.h <<_ACEOF 6795#define RETSIGTYPE $ac_cv_type_signal 6796_ACEOF 6797 6798 6799for ac_func in gettimeofday strstr strchr strrchr strtol strcasecmp strncasecmp mtrace 6800do : 6801 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6802ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6803eval as_val=\$$as_ac_var 6804 if test "x$as_val" = x""yes; then : 6805 cat >>confdefs.h <<_ACEOF 6806#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6807_ACEOF 6808 6809fi 6810done 6811 6812ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 6813if test "x$ac_cv_func_localtime_r" = x""yes; then : 6814 6815$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h 6816 6817fi 6818 6819ac_fn_c_check_func "$LINENO" "localtime" "ac_cv_func_localtime" 6820if test "x$ac_cv_func_localtime" = x""yes; then : 6821 6822$as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h 6823 6824fi 6825 6826ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 6827if test "x$ac_cv_func_getopt" = x""yes; then : 6828 have_getopt=yes 6829 6830$as_echo "#define HAVE_GETOPT 1" >>confdefs.h 6831 6832fi 6833 6834ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 6835if test "x$ac_cv_func_getopt_long" = x""yes; then : 6836 have_getopt_long=yes 6837 6838$as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h 6839 6840fi 6841 6842 6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included getopt library" >&5 6844$as_echo_n "checking whether to use the included getopt library... " >&6; } 6845if test x$have_getopt = xyes -o x$have_getopt_long = xyes; then 6846 use_included_getopt=no 6847 if false; then 6848 USE_INCLUDED_GETOPT_TRUE= 6849 USE_INCLUDED_GETOPT_FALSE='#' 6850else 6851 USE_INCLUDED_GETOPT_TRUE='#' 6852 USE_INCLUDED_GETOPT_FALSE= 6853fi 6854 6855else 6856 use_included_getopt=yes 6857 if true; then 6858 USE_INCLUDED_GETOPT_TRUE= 6859 USE_INCLUDED_GETOPT_FALSE='#' 6860else 6861 USE_INCLUDED_GETOPT_TRUE='#' 6862 USE_INCLUDED_GETOPT_FALSE= 6863fi 6864 6865 6866$as_echo "#define USE_INCLUDED_GETOPT 1" >>confdefs.h 6867 6868 6869$as_echo "#define HAVE_GETOPT 1" >>confdefs.h 6870 6871 6872$as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h 6873 6874fi 6875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_included_getopt" >&5 6876$as_echo "$use_included_getopt" >&6; } 6877 6878 6879ALL_LINGUAS="en de" 6880 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 6882$as_echo_n "checking whether NLS is requested... " >&6; } 6883 # Check whether --enable-nls was given. 6884if test "${enable_nls+set}" = set; then : 6885 enableval=$enable_nls; USE_NLS=$enableval 6886else 6887 USE_NLS=yes 6888fi 6889 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 6891$as_echo "$USE_NLS" >&6; } 6892 6893 6894 6895 6896 GETTEXT_MACRO_VERSION=0.17 6897 6898 6899 6900 6901# Prepare PATH_SEPARATOR. 6902# The user is always right. 6903if test "${PATH_SEPARATOR+set}" != set; then 6904 echo "#! /bin/sh" >conf$$.sh 6905 echo "exit 0" >>conf$$.sh 6906 chmod +x conf$$.sh 6907 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6908 PATH_SEPARATOR=';' 6909 else 6910 PATH_SEPARATOR=: 6911 fi 6912 rm -f conf$$.sh 6913fi 6914 6915# Find out how to test for executable files. Don't use a zero-byte file, 6916# as systems may use methods other than mode bits to determine executability. 6917cat >conf$$.file <<_ASEOF 6918#! /bin/sh 6919exit 0 6920_ASEOF 6921chmod +x conf$$.file 6922if test -x conf$$.file >/dev/null 2>&1; then 6923 ac_executable_p="test -x" 6924else 6925 ac_executable_p="test -f" 6926fi 6927rm -f conf$$.file 6928 6929# Extract the first word of "msgfmt", so it can be a program name with args. 6930set dummy msgfmt; ac_word=$2 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6932$as_echo_n "checking for $ac_word... " >&6; } 6933if test "${ac_cv_path_MSGFMT+set}" = set; then : 6934 $as_echo_n "(cached) " >&6 6935else 6936 case "$MSGFMT" in 6937 [\\/]* | ?:[\\/]*) 6938 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 6939 ;; 6940 *) 6941 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 6942 for ac_dir in $PATH; do 6943 IFS="$ac_save_IFS" 6944 test -z "$ac_dir" && ac_dir=. 6945 for ac_exec_ext in '' $ac_executable_extensions; do 6946 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 6947 echo "$as_me: trying $ac_dir/$ac_word..." >&5 6948 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 6949 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 6950 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 6951 break 2 6952 fi 6953 fi 6954 done 6955 done 6956 IFS="$ac_save_IFS" 6957 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 6958 ;; 6959esac 6960fi 6961MSGFMT="$ac_cv_path_MSGFMT" 6962if test "$MSGFMT" != ":"; then 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 6964$as_echo "$MSGFMT" >&6; } 6965else 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6967$as_echo "no" >&6; } 6968fi 6969 6970 # Extract the first word of "gmsgfmt", so it can be a program name with args. 6971set dummy gmsgfmt; ac_word=$2 6972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6973$as_echo_n "checking for $ac_word... " >&6; } 6974if test "${ac_cv_path_GMSGFMT+set}" = set; then : 6975 $as_echo_n "(cached) " >&6 6976else 6977 case $GMSGFMT in 6978 [\\/]* | ?:[\\/]*) 6979 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 6980 ;; 6981 *) 6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6983for as_dir in $PATH 6984do 6985 IFS=$as_save_IFS 6986 test -z "$as_dir" && as_dir=. 6987 for ac_exec_ext in '' $ac_executable_extensions; do 6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6989 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6991 break 2 6992 fi 6993done 6994 done 6995IFS=$as_save_IFS 6996 6997 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 6998 ;; 6999esac 7000fi 7001GMSGFMT=$ac_cv_path_GMSGFMT 7002if test -n "$GMSGFMT"; then 7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 7004$as_echo "$GMSGFMT" >&6; } 7005else 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7007$as_echo "no" >&6; } 7008fi 7009 7010 7011 7012 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 7013 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 7014 *) MSGFMT_015=$MSGFMT ;; 7015 esac 7016 7017 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 7018 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 7019 *) GMSGFMT_015=$GMSGFMT ;; 7020 esac 7021 7022 7023 7024# Prepare PATH_SEPARATOR. 7025# The user is always right. 7026if test "${PATH_SEPARATOR+set}" != set; then 7027 echo "#! /bin/sh" >conf$$.sh 7028 echo "exit 0" >>conf$$.sh 7029 chmod +x conf$$.sh 7030 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7031 PATH_SEPARATOR=';' 7032 else 7033 PATH_SEPARATOR=: 7034 fi 7035 rm -f conf$$.sh 7036fi 7037 7038# Find out how to test for executable files. Don't use a zero-byte file, 7039# as systems may use methods other than mode bits to determine executability. 7040cat >conf$$.file <<_ASEOF 7041#! /bin/sh 7042exit 0 7043_ASEOF 7044chmod +x conf$$.file 7045if test -x conf$$.file >/dev/null 2>&1; then 7046 ac_executable_p="test -x" 7047else 7048 ac_executable_p="test -f" 7049fi 7050rm -f conf$$.file 7051 7052# Extract the first word of "xgettext", so it can be a program name with args. 7053set dummy xgettext; ac_word=$2 7054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7055$as_echo_n "checking for $ac_word... " >&6; } 7056if test "${ac_cv_path_XGETTEXT+set}" = set; then : 7057 $as_echo_n "(cached) " >&6 7058else 7059 case "$XGETTEXT" in 7060 [\\/]* | ?:[\\/]*) 7061 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7062 ;; 7063 *) 7064 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7065 for ac_dir in $PATH; do 7066 IFS="$ac_save_IFS" 7067 test -z "$ac_dir" && ac_dir=. 7068 for ac_exec_ext in '' $ac_executable_extensions; do 7069 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7070 echo "$as_me: trying $ac_dir/$ac_word..." >&5 7071 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 7072 (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 7073 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 7074 break 2 7075 fi 7076 fi 7077 done 7078 done 7079 IFS="$ac_save_IFS" 7080 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7081 ;; 7082esac 7083fi 7084XGETTEXT="$ac_cv_path_XGETTEXT" 7085if test "$XGETTEXT" != ":"; then 7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 7087$as_echo "$XGETTEXT" >&6; } 7088else 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7090$as_echo "no" >&6; } 7091fi 7092 7093 rm -f messages.po 7094 7095 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 7096 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 7097 *) XGETTEXT_015=$XGETTEXT ;; 7098 esac 7099 7100 7101 7102# Prepare PATH_SEPARATOR. 7103# The user is always right. 7104if test "${PATH_SEPARATOR+set}" != set; then 7105 echo "#! /bin/sh" >conf$$.sh 7106 echo "exit 0" >>conf$$.sh 7107 chmod +x conf$$.sh 7108 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7109 PATH_SEPARATOR=';' 7110 else 7111 PATH_SEPARATOR=: 7112 fi 7113 rm -f conf$$.sh 7114fi 7115 7116# Find out how to test for executable files. Don't use a zero-byte file, 7117# as systems may use methods other than mode bits to determine executability. 7118cat >conf$$.file <<_ASEOF 7119#! /bin/sh 7120exit 0 7121_ASEOF 7122chmod +x conf$$.file 7123if test -x conf$$.file >/dev/null 2>&1; then 7124 ac_executable_p="test -x" 7125else 7126 ac_executable_p="test -f" 7127fi 7128rm -f conf$$.file 7129 7130# Extract the first word of "msgmerge", so it can be a program name with args. 7131set dummy msgmerge; ac_word=$2 7132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7133$as_echo_n "checking for $ac_word... " >&6; } 7134if test "${ac_cv_path_MSGMERGE+set}" = set; then : 7135 $as_echo_n "(cached) " >&6 7136else 7137 case "$MSGMERGE" in 7138 [\\/]* | ?:[\\/]*) 7139 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 7140 ;; 7141 *) 7142 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7143 for ac_dir in $PATH; do 7144 IFS="$ac_save_IFS" 7145 test -z "$ac_dir" && ac_dir=. 7146 for ac_exec_ext in '' $ac_executable_extensions; do 7147 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7148 echo "$as_me: trying $ac_dir/$ac_word..." >&5 7149 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 7150 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 7151 break 2 7152 fi 7153 fi 7154 done 7155 done 7156 IFS="$ac_save_IFS" 7157 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 7158 ;; 7159esac 7160fi 7161MSGMERGE="$ac_cv_path_MSGMERGE" 7162if test "$MSGMERGE" != ":"; then 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 7164$as_echo "$MSGMERGE" >&6; } 7165else 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7167$as_echo "no" >&6; } 7168fi 7169 7170 7171 test -n "$localedir" || localedir='${datadir}/locale' 7172 7173 7174 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 7175 7176 7177 ac_config_commands="$ac_config_commands po-directories" 7178 7179 7180 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 7182$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } 7183if test "${ac_cv_gnu_library_2+set}" = set; then : 7184 $as_echo_n "(cached) " >&6 7185else 7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7187/* end confdefs.h. */ 7188 7189#include <features.h> 7190#ifdef __GNU_LIBRARY__ 7191 #if (__GLIBC__ >= 2) 7192 Lucky GNU user 7193 #endif 7194#endif 7195 7196_ACEOF 7197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7198 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 7199 ac_cv_gnu_library_2=yes 7200else 7201 ac_cv_gnu_library_2=no 7202fi 7203rm -f conftest* 7204 7205 7206 7207fi 7208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 7209$as_echo "$ac_cv_gnu_library_2" >&6; } 7210 7211 GLIBC2="$ac_cv_gnu_library_2" 7212 7213 7214 7215 7216 CFLAG_VISIBILITY= 7217 HAVE_VISIBILITY=0 7218 if test -n "$GCC"; then 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 7220$as_echo_n "checking for simple visibility declarations... " >&6; } 7221 if test "${gl_cv_cc_visibility+set}" = set; then : 7222 $as_echo_n "(cached) " >&6 7223else 7224 7225 gl_save_CFLAGS="$CFLAGS" 7226 CFLAGS="$CFLAGS -fvisibility=hidden" 7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7228/* end confdefs.h. */ 7229extern __attribute__((__visibility__("hidden"))) int hiddenvar; 7230 extern __attribute__((__visibility__("default"))) int exportedvar; 7231 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 7232 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 7233int 7234main () 7235{ 7236 7237 ; 7238 return 0; 7239} 7240_ACEOF 7241if ac_fn_c_try_compile "$LINENO"; then : 7242 gl_cv_cc_visibility=yes 7243else 7244 gl_cv_cc_visibility=no 7245fi 7246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7247 CFLAGS="$gl_save_CFLAGS" 7248fi 7249 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 7251$as_echo "$gl_cv_cc_visibility" >&6; } 7252 if test $gl_cv_cc_visibility = yes; then 7253 CFLAG_VISIBILITY="-fvisibility=hidden" 7254 HAVE_VISIBILITY=1 7255 fi 7256 fi 7257 7258 7259 7260cat >>confdefs.h <<_ACEOF 7261#define HAVE_VISIBILITY $HAVE_VISIBILITY 7262_ACEOF 7263 7264 7265ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 7266if test "x$ac_cv_type_size_t" = x""yes; then : 7267 7268else 7269 7270cat >>confdefs.h <<_ACEOF 7271#define size_t unsigned int 7272_ACEOF 7273 7274fi 7275 7276 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 7278$as_echo_n "checking for stdint.h... " >&6; } 7279if test "${gl_cv_header_stdint_h+set}" = set; then : 7280 $as_echo_n "(cached) " >&6 7281else 7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7283/* end confdefs.h. */ 7284#include <sys/types.h> 7285#include <stdint.h> 7286int 7287main () 7288{ 7289uintmax_t i = (uintmax_t) -1; return !i; 7290 ; 7291 return 0; 7292} 7293_ACEOF 7294if ac_fn_c_try_compile "$LINENO"; then : 7295 gl_cv_header_stdint_h=yes 7296else 7297 gl_cv_header_stdint_h=no 7298fi 7299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7300fi 7301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 7302$as_echo "$gl_cv_header_stdint_h" >&6; } 7303 if test $gl_cv_header_stdint_h = yes; then 7304 7305cat >>confdefs.h <<_ACEOF 7306#define HAVE_STDINT_H_WITH_UINTMAX 1 7307_ACEOF 7308 7309 fi 7310 7311# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7312# for constant arguments. Useless! 7313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 7314$as_echo_n "checking for working alloca.h... " >&6; } 7315if test "${ac_cv_working_alloca_h+set}" = set; then : 7316 $as_echo_n "(cached) " >&6 7317else 7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7319/* end confdefs.h. */ 7320#include <alloca.h> 7321int 7322main () 7323{ 7324char *p = (char *) alloca (2 * sizeof (int)); 7325 if (p) return 0; 7326 ; 7327 return 0; 7328} 7329_ACEOF 7330if ac_fn_c_try_link "$LINENO"; then : 7331 ac_cv_working_alloca_h=yes 7332else 7333 ac_cv_working_alloca_h=no 7334fi 7335rm -f core conftest.err conftest.$ac_objext \ 7336 conftest$ac_exeext conftest.$ac_ext 7337fi 7338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 7339$as_echo "$ac_cv_working_alloca_h" >&6; } 7340if test $ac_cv_working_alloca_h = yes; then 7341 7342$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 7343 7344fi 7345 7346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 7347$as_echo_n "checking for alloca... " >&6; } 7348if test "${ac_cv_func_alloca_works+set}" = set; then : 7349 $as_echo_n "(cached) " >&6 7350else 7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7352/* end confdefs.h. */ 7353#ifdef __GNUC__ 7354# define alloca __builtin_alloca 7355#else 7356# ifdef _MSC_VER 7357# include <malloc.h> 7358# define alloca _alloca 7359# else 7360# ifdef HAVE_ALLOCA_H 7361# include <alloca.h> 7362# else 7363# ifdef _AIX 7364 #pragma alloca 7365# else 7366# ifndef alloca /* predefined by HP cc +Olibcalls */ 7367char *alloca (); 7368# endif 7369# endif 7370# endif 7371# endif 7372#endif 7373 7374int 7375main () 7376{ 7377char *p = (char *) alloca (1); 7378 if (p) return 0; 7379 ; 7380 return 0; 7381} 7382_ACEOF 7383if ac_fn_c_try_link "$LINENO"; then : 7384 ac_cv_func_alloca_works=yes 7385else 7386 ac_cv_func_alloca_works=no 7387fi 7388rm -f core conftest.err conftest.$ac_objext \ 7389 conftest$ac_exeext conftest.$ac_ext 7390fi 7391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 7392$as_echo "$ac_cv_func_alloca_works" >&6; } 7393 7394if test $ac_cv_func_alloca_works = yes; then 7395 7396$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 7397 7398else 7399 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 7400# that cause trouble. Some versions do not even contain alloca or 7401# contain a buggy version. If you still want to use their alloca, 7402# use ar to extract alloca.o from them instead of compiling alloca.c. 7403 7404ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 7405 7406$as_echo "#define C_ALLOCA 1" >>confdefs.h 7407 7408 7409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 7410$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 7411if test "${ac_cv_os_cray+set}" = set; then : 7412 $as_echo_n "(cached) " >&6 7413else 7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7415/* end confdefs.h. */ 7416#if defined CRAY && ! defined CRAY2 7417webecray 7418#else 7419wenotbecray 7420#endif 7421 7422_ACEOF 7423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7424 $EGREP "webecray" >/dev/null 2>&1; then : 7425 ac_cv_os_cray=yes 7426else 7427 ac_cv_os_cray=no 7428fi 7429rm -f conftest* 7430 7431fi 7432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 7433$as_echo "$ac_cv_os_cray" >&6; } 7434if test $ac_cv_os_cray = yes; then 7435 for ac_func in _getb67 GETB67 getb67; do 7436 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7437ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7438eval as_val=\$$as_ac_var 7439 if test "x$as_val" = x""yes; then : 7440 7441cat >>confdefs.h <<_ACEOF 7442#define CRAY_STACKSEG_END $ac_func 7443_ACEOF 7444 7445 break 7446fi 7447 7448 done 7449fi 7450 7451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 7452$as_echo_n "checking stack direction for C alloca... " >&6; } 7453if test "${ac_cv_c_stack_direction+set}" = set; then : 7454 $as_echo_n "(cached) " >&6 7455else 7456 if test "$cross_compiling" = yes; then : 7457 ac_cv_c_stack_direction=0 7458else 7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7460/* end confdefs.h. */ 7461$ac_includes_default 7462int 7463find_stack_direction () 7464{ 7465 static char *addr = 0; 7466 auto char dummy; 7467 if (addr == 0) 7468 { 7469 addr = &dummy; 7470 return find_stack_direction (); 7471 } 7472 else 7473 return (&dummy > addr) ? 1 : -1; 7474} 7475 7476int 7477main () 7478{ 7479 return find_stack_direction () < 0; 7480} 7481_ACEOF 7482if ac_fn_c_try_run "$LINENO"; then : 7483 ac_cv_c_stack_direction=1 7484else 7485 ac_cv_c_stack_direction=-1 7486fi 7487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7488 conftest.$ac_objext conftest.beam conftest.$ac_ext 7489fi 7490 7491fi 7492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 7493$as_echo "$ac_cv_c_stack_direction" >&6; } 7494cat >>confdefs.h <<_ACEOF 7495#define STACK_DIRECTION $ac_cv_c_stack_direction 7496_ACEOF 7497 7498 7499fi 7500 7501 7502 7503 7504 for ac_header in $ac_header_list 7505do : 7506 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7507ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7508" 7509eval as_val=\$$as_ac_Header 7510 if test "x$as_val" = x""yes; then : 7511 cat >>confdefs.h <<_ACEOF 7512#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7513_ACEOF 7514 7515fi 7516 7517done 7518 7519 7520 7521 7522 7523 7524 7525 7526for ac_func in getpagesize 7527do : 7528 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 7529if test "x$ac_cv_func_getpagesize" = x""yes; then : 7530 cat >>confdefs.h <<_ACEOF 7531#define HAVE_GETPAGESIZE 1 7532_ACEOF 7533 7534fi 7535done 7536 7537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 7538$as_echo_n "checking for working mmap... " >&6; } 7539if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 7540 $as_echo_n "(cached) " >&6 7541else 7542 if test "$cross_compiling" = yes; then : 7543 ac_cv_func_mmap_fixed_mapped=no 7544else 7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7546/* end confdefs.h. */ 7547$ac_includes_default 7548/* malloc might have been renamed as rpl_malloc. */ 7549#undef malloc 7550 7551/* Thanks to Mike Haertel and Jim Avera for this test. 7552 Here is a matrix of mmap possibilities: 7553 mmap private not fixed 7554 mmap private fixed at somewhere currently unmapped 7555 mmap private fixed at somewhere already mapped 7556 mmap shared not fixed 7557 mmap shared fixed at somewhere currently unmapped 7558 mmap shared fixed at somewhere already mapped 7559 For private mappings, we should verify that changes cannot be read() 7560 back from the file, nor mmap's back from the file at a different 7561 address. (There have been systems where private was not correctly 7562 implemented like the infamous i386 svr4.0, and systems where the 7563 VM page cache was not coherent with the file system buffer cache 7564 like early versions of FreeBSD and possibly contemporary NetBSD.) 7565 For shared mappings, we should conversely verify that changes get 7566 propagated back to all the places they're supposed to be. 7567 7568 Grep wants private fixed already mapped. 7569 The main things grep needs to know about mmap are: 7570 * does it exist and is it safe to write into the mmap'd area 7571 * how to use it (BSD variants) */ 7572 7573#include <fcntl.h> 7574#include <sys/mman.h> 7575 7576#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 7577char *malloc (); 7578#endif 7579 7580/* This mess was copied from the GNU getpagesize.h. */ 7581#ifndef HAVE_GETPAGESIZE 7582# ifdef _SC_PAGESIZE 7583# define getpagesize() sysconf(_SC_PAGESIZE) 7584# else /* no _SC_PAGESIZE */ 7585# ifdef HAVE_SYS_PARAM_H 7586# include <sys/param.h> 7587# ifdef EXEC_PAGESIZE 7588# define getpagesize() EXEC_PAGESIZE 7589# else /* no EXEC_PAGESIZE */ 7590# ifdef NBPG 7591# define getpagesize() NBPG * CLSIZE 7592# ifndef CLSIZE 7593# define CLSIZE 1 7594# endif /* no CLSIZE */ 7595# else /* no NBPG */ 7596# ifdef NBPC 7597# define getpagesize() NBPC 7598# else /* no NBPC */ 7599# ifdef PAGESIZE 7600# define getpagesize() PAGESIZE 7601# endif /* PAGESIZE */ 7602# endif /* no NBPC */ 7603# endif /* no NBPG */ 7604# endif /* no EXEC_PAGESIZE */ 7605# else /* no HAVE_SYS_PARAM_H */ 7606# define getpagesize() 8192 /* punt totally */ 7607# endif /* no HAVE_SYS_PARAM_H */ 7608# endif /* no _SC_PAGESIZE */ 7609 7610#endif /* no HAVE_GETPAGESIZE */ 7611 7612int 7613main () 7614{ 7615 char *data, *data2, *data3; 7616 const char *cdata2; 7617 int i, pagesize; 7618 int fd, fd2; 7619 7620 pagesize = getpagesize (); 7621 7622 /* First, make a file with some known garbage in it. */ 7623 data = (char *) malloc (pagesize); 7624 if (!data) 7625 return 1; 7626 for (i = 0; i < pagesize; ++i) 7627 *(data + i) = rand (); 7628 umask (0); 7629 fd = creat ("conftest.mmap", 0600); 7630 if (fd < 0) 7631 return 2; 7632 if (write (fd, data, pagesize) != pagesize) 7633 return 3; 7634 close (fd); 7635 7636 /* Next, check that the tail of a page is zero-filled. File must have 7637 non-zero length, otherwise we risk SIGBUS for entire page. */ 7638 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 7639 if (fd2 < 0) 7640 return 4; 7641 cdata2 = ""; 7642 if (write (fd2, cdata2, 1) != 1) 7643 return 5; 7644 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 7645 if (data2 == MAP_FAILED) 7646 return 6; 7647 for (i = 0; i < pagesize; ++i) 7648 if (*(data2 + i)) 7649 return 7; 7650 close (fd2); 7651 if (munmap (data2, pagesize)) 7652 return 8; 7653 7654 /* Next, try to mmap the file at a fixed address which already has 7655 something else allocated at it. If we can, also make sure that 7656 we see the same garbage. */ 7657 fd = open ("conftest.mmap", O_RDWR); 7658 if (fd < 0) 7659 return 9; 7660 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 7661 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 7662 return 10; 7663 for (i = 0; i < pagesize; ++i) 7664 if (*(data + i) != *(data2 + i)) 7665 return 11; 7666 7667 /* Finally, make sure that changes to the mapped area do not 7668 percolate back to the file as seen by read(). (This is a bug on 7669 some variants of i386 svr4.0.) */ 7670 for (i = 0; i < pagesize; ++i) 7671 *(data2 + i) = *(data2 + i) + 1; 7672 data3 = (char *) malloc (pagesize); 7673 if (!data3) 7674 return 12; 7675 if (read (fd, data3, pagesize) != pagesize) 7676 return 13; 7677 for (i = 0; i < pagesize; ++i) 7678 if (*(data + i) != *(data3 + i)) 7679 return 14; 7680 close (fd); 7681 return 0; 7682} 7683_ACEOF 7684if ac_fn_c_try_run "$LINENO"; then : 7685 ac_cv_func_mmap_fixed_mapped=yes 7686else 7687 ac_cv_func_mmap_fixed_mapped=no 7688fi 7689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7690 conftest.$ac_objext conftest.beam conftest.$ac_ext 7691fi 7692 7693fi 7694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 7695$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 7696if test $ac_cv_func_mmap_fixed_mapped = yes; then 7697 7698$as_echo "#define HAVE_MMAP 1" >>confdefs.h 7699 7700fi 7701rm -f conftest.mmap conftest.txt 7702 7703 7704 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 7706$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } 7707if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then : 7708 $as_echo_n "(cached) " >&6 7709else 7710 7711 gt_cv_int_divbyzero_sigfpe= 7712 case "$host_os" in 7713 macos* | darwin[6-9]* | darwin[1-9][0-9]*) 7714 # On MacOS X 10.2 or newer, just assume the same as when cross- 7715 # compiling. If we were to perform the real test, 1 Crash Report 7716 # dialog window would pop up. 7717 case "$host_cpu" in 7718 i[34567]86 | x86_64) 7719 gt_cv_int_divbyzero_sigfpe="guessing yes" ;; 7720 esac 7721 ;; 7722 esac 7723 if test -z "$gt_cv_int_divbyzero_sigfpe"; then 7724 if test "$cross_compiling" = yes; then : 7725 7726 # Guess based on the CPU. 7727 case "$host_cpu" in 7728 alpha* | i[34567]86 | x86_64 | m68k | s390*) 7729 gt_cv_int_divbyzero_sigfpe="guessing yes";; 7730 *) 7731 gt_cv_int_divbyzero_sigfpe="guessing no";; 7732 esac 7733 7734else 7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7736/* end confdefs.h. */ 7737 7738#include <stdlib.h> 7739#include <signal.h> 7740 7741static void 7742sigfpe_handler (int sig) 7743{ 7744 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 7745 exit (sig != SIGFPE); 7746} 7747 7748int x = 1; 7749int y = 0; 7750int z; 7751int nan; 7752 7753int main () 7754{ 7755 signal (SIGFPE, sigfpe_handler); 7756/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 7757#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 7758 signal (SIGTRAP, sigfpe_handler); 7759#endif 7760/* Linux/SPARC yields signal SIGILL. */ 7761#if defined (__sparc__) && defined (__linux__) 7762 signal (SIGILL, sigfpe_handler); 7763#endif 7764 7765 z = x / y; 7766 nan = y / y; 7767 exit (1); 7768} 7769 7770_ACEOF 7771if ac_fn_c_try_run "$LINENO"; then : 7772 gt_cv_int_divbyzero_sigfpe=yes 7773else 7774 gt_cv_int_divbyzero_sigfpe=no 7775fi 7776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7777 conftest.$ac_objext conftest.beam conftest.$ac_ext 7778fi 7779 7780 fi 7781 7782fi 7783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 7784$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } 7785 case "$gt_cv_int_divbyzero_sigfpe" in 7786 *yes) value=1;; 7787 *) value=0;; 7788 esac 7789 7790cat >>confdefs.h <<_ACEOF 7791#define INTDIV0_RAISES_SIGFPE $value 7792_ACEOF 7793 7794 7795 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 7797$as_echo_n "checking for inttypes.h... " >&6; } 7798if test "${gl_cv_header_inttypes_h+set}" = set; then : 7799 $as_echo_n "(cached) " >&6 7800else 7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7802/* end confdefs.h. */ 7803#include <sys/types.h> 7804#include <inttypes.h> 7805int 7806main () 7807{ 7808uintmax_t i = (uintmax_t) -1; return !i; 7809 ; 7810 return 0; 7811} 7812_ACEOF 7813if ac_fn_c_try_compile "$LINENO"; then : 7814 gl_cv_header_inttypes_h=yes 7815else 7816 gl_cv_header_inttypes_h=no 7817fi 7818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7819fi 7820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 7821$as_echo "$gl_cv_header_inttypes_h" >&6; } 7822 if test $gl_cv_header_inttypes_h = yes; then 7823 7824cat >>confdefs.h <<_ACEOF 7825#define HAVE_INTTYPES_H_WITH_UINTMAX 1 7826_ACEOF 7827 7828 fi 7829 7830 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 7832$as_echo_n "checking for unsigned long long int... " >&6; } 7833if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then : 7834 $as_echo_n "(cached) " >&6 7835else 7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7837/* end confdefs.h. */ 7838 7839 /* Test preprocessor. */ 7840 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 7841 error in preprocessor; 7842 #endif 7843 #if ! (18446744073709551615ULL <= -1ull) 7844 error in preprocessor; 7845 #endif 7846 /* Test literals. */ 7847 long long int ll = 9223372036854775807ll; 7848 long long int nll = -9223372036854775807LL; 7849 unsigned long long int ull = 18446744073709551615ULL; 7850 /* Test constant expressions. */ 7851 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 7852 ? 1 : -1)]; 7853 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 7854 ? 1 : -1)]; 7855 int i = 63; 7856int 7857main () 7858{ 7859/* Test availability of runtime routines for shift and division. */ 7860 long long int llmax = 9223372036854775807ll; 7861 unsigned long long int ullmax = 18446744073709551615ull; 7862 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 7863 | (llmax / ll) | (llmax % ll) 7864 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 7865 | (ullmax / ull) | (ullmax % ull)); 7866 ; 7867 return 0; 7868} 7869 7870_ACEOF 7871if ac_fn_c_try_link "$LINENO"; then : 7872 ac_cv_type_unsigned_long_long_int=yes 7873else 7874 ac_cv_type_unsigned_long_long_int=no 7875fi 7876rm -f core conftest.err conftest.$ac_objext \ 7877 conftest$ac_exeext conftest.$ac_ext 7878fi 7879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 7880$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 7881 if test $ac_cv_type_unsigned_long_long_int = yes; then 7882 7883$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 7884 7885 fi 7886 7887 7888 7889 7890 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 7891 7892 test $ac_cv_type_unsigned_long_long_int = yes \ 7893 && ac_type='unsigned long long' \ 7894 || ac_type='unsigned long' 7895 7896cat >>confdefs.h <<_ACEOF 7897#define uintmax_t $ac_type 7898_ACEOF 7899 7900 else 7901 7902$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 7903 7904 fi 7905 7906 7907 for ac_header in inttypes.h 7908do : 7909 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 7910if test "x$ac_cv_header_inttypes_h" = x""yes; then : 7911 cat >>confdefs.h <<_ACEOF 7912#define HAVE_INTTYPES_H 1 7913_ACEOF 7914 7915fi 7916 7917done 7918 7919 if test $ac_cv_header_inttypes_h = yes; then 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 7921$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } 7922if test "${gt_cv_inttypes_pri_broken+set}" = set; then : 7923 $as_echo_n "(cached) " >&6 7924else 7925 7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7927/* end confdefs.h. */ 7928#include <inttypes.h> 7929#ifdef PRId32 7930char *p = PRId32; 7931#endif 7932 7933int 7934main () 7935{ 7936 7937 ; 7938 return 0; 7939} 7940_ACEOF 7941if ac_fn_c_try_compile "$LINENO"; then : 7942 gt_cv_inttypes_pri_broken=no 7943else 7944 gt_cv_inttypes_pri_broken=yes 7945fi 7946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7947 7948fi 7949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 7950$as_echo "$gt_cv_inttypes_pri_broken" >&6; } 7951 fi 7952 if test "$gt_cv_inttypes_pri_broken" = yes; then 7953 7954cat >>confdefs.h <<_ACEOF 7955#define PRI_MACROS_BROKEN 1 7956_ACEOF 7957 7958 PRI_MACROS_BROKEN=1 7959 else 7960 PRI_MACROS_BROKEN=0 7961 fi 7962 7963 7964 7965 7966 7967 7968 # Check whether --enable-threads was given. 7969if test "${enable_threads+set}" = set; then : 7970 enableval=$enable_threads; gl_use_threads=$enableval 7971else 7972 case "$host_os" in 7973 osf*) gl_use_threads=no ;; 7974 *) gl_use_threads=yes ;; 7975 esac 7976 7977fi 7978 7979 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 7980 # For using <pthread.h>: 7981 case "$host_os" in 7982 osf*) 7983 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it 7984 # groks <pthread.h>. cc also understands the flag -pthread, but 7985 # we don't use it because 1. gcc-2.95 doesn't understand -pthread, 7986 # 2. putting a flag into CPPFLAGS that has an effect on the linker 7987 # causes the AC_TRY_LINK test below to succeed unexpectedly, 7988 # leading to wrong values of LIBTHREAD and LTLIBTHREAD. 7989 CPPFLAGS="$CPPFLAGS -D_REENTRANT" 7990 ;; 7991 esac 7992 # Some systems optimize for single-threaded programs by default, and 7993 # need special flags to disable these optimizations. For example, the 7994 # definition of 'errno' in <errno.h>. 7995 case "$host_os" in 7996 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; 7997 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; 7998 esac 7999 fi 8000 8001 8002 8003 8004 8005 if test "X$prefix" = "XNONE"; then 8006 acl_final_prefix="$ac_default_prefix" 8007 else 8008 acl_final_prefix="$prefix" 8009 fi 8010 if test "X$exec_prefix" = "XNONE"; then 8011 acl_final_exec_prefix='${prefix}' 8012 else 8013 acl_final_exec_prefix="$exec_prefix" 8014 fi 8015 acl_save_prefix="$prefix" 8016 prefix="$acl_final_prefix" 8017 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 8018 prefix="$acl_save_prefix" 8019 8020 8021# Check whether --with-gnu-ld was given. 8022if test "${with_gnu_ld+set}" = set; then : 8023 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 8024else 8025 with_gnu_ld=no 8026fi 8027 8028# Prepare PATH_SEPARATOR. 8029# The user is always right. 8030if test "${PATH_SEPARATOR+set}" != set; then 8031 echo "#! /bin/sh" >conf$$.sh 8032 echo "exit 0" >>conf$$.sh 8033 chmod +x conf$$.sh 8034 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8035 PATH_SEPARATOR=';' 8036 else 8037 PATH_SEPARATOR=: 8038 fi 8039 rm -f conf$$.sh 8040fi 8041ac_prog=ld 8042if test "$GCC" = yes; then 8043 # Check if gcc -print-prog-name=ld gives a path. 8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 8045$as_echo_n "checking for ld used by GCC... " >&6; } 8046 case $host in 8047 *-*-mingw*) 8048 # gcc leaves a trailing carriage return which upsets mingw 8049 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8050 *) 8051 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8052 esac 8053 case $ac_prog in 8054 # Accept absolute paths. 8055 [\\/]* | [A-Za-z]:[\\/]*) 8056 re_direlt='/[^/][^/]*/\.\./' 8057 # Canonicalize the path of ld 8058 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 8059 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 8060 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 8061 done 8062 test -z "$LD" && LD="$ac_prog" 8063 ;; 8064 "") 8065 # If it fails, then pretend we aren't using GCC. 8066 ac_prog=ld 8067 ;; 8068 *) 8069 # If it is relative, then search for the first ld in PATH. 8070 with_gnu_ld=unknown 8071 ;; 8072 esac 8073elif test "$with_gnu_ld" = yes; then 8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8075$as_echo_n "checking for GNU ld... " >&6; } 8076else 8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8078$as_echo_n "checking for non-GNU ld... " >&6; } 8079fi 8080if test "${acl_cv_path_LD+set}" = set; then : 8081 $as_echo_n "(cached) " >&6 8082else 8083 if test -z "$LD"; then 8084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 8085 for ac_dir in $PATH; do 8086 test -z "$ac_dir" && ac_dir=. 8087 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8088 acl_cv_path_LD="$ac_dir/$ac_prog" 8089 # Check to see if the program is GNU ld. I'd rather use --version, 8090 # but apparently some GNU ld's only accept -v. 8091 # Break only if it was the GNU/non-GNU ld that we prefer. 8092 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 8093 *GNU* | *'with BFD'*) 8094 test "$with_gnu_ld" != no && break ;; 8095 *) 8096 test "$with_gnu_ld" != yes && break ;; 8097 esac 8098 fi 8099 done 8100 IFS="$ac_save_ifs" 8101else 8102 acl_cv_path_LD="$LD" # Let the user override the test with a path. 8103fi 8104fi 8105 8106LD="$acl_cv_path_LD" 8107if test -n "$LD"; then 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8109$as_echo "$LD" >&6; } 8110else 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8112$as_echo "no" >&6; } 8113fi 8114test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 8115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8116$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8117if test "${acl_cv_prog_gnu_ld+set}" = set; then : 8118 $as_echo_n "(cached) " >&6 8119else 8120 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 8121case `$LD -v 2>&1 </dev/null` in 8122*GNU* | *'with BFD'*) 8123 acl_cv_prog_gnu_ld=yes ;; 8124*) 8125 acl_cv_prog_gnu_ld=no ;; 8126esac 8127fi 8128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 8129$as_echo "$acl_cv_prog_gnu_ld" >&6; } 8130with_gnu_ld=$acl_cv_prog_gnu_ld 8131 8132 8133 8134 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 8136$as_echo_n "checking for shared library run path origin... " >&6; } 8137if test "${acl_cv_rpath+set}" = set; then : 8138 $as_echo_n "(cached) " >&6 8139else 8140 8141 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 8142 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 8143 . ./conftest.sh 8144 rm -f ./conftest.sh 8145 acl_cv_rpath=done 8146 8147fi 8148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 8149$as_echo "$acl_cv_rpath" >&6; } 8150 wl="$acl_cv_wl" 8151 acl_libext="$acl_cv_libext" 8152 acl_shlibext="$acl_cv_shlibext" 8153 acl_libname_spec="$acl_cv_libname_spec" 8154 acl_library_names_spec="$acl_cv_library_names_spec" 8155 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 8156 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 8157 acl_hardcode_direct="$acl_cv_hardcode_direct" 8158 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 8159 # Check whether --enable-rpath was given. 8160if test "${enable_rpath+set}" = set; then : 8161 enableval=$enable_rpath; : 8162else 8163 enable_rpath=yes 8164fi 8165 8166 8167 8168 acl_libdirstem=lib 8169 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 8170 if test -n "$searchpath"; then 8171 acl_save_IFS="${IFS= }"; IFS=":" 8172 for searchdir in $searchpath; do 8173 if test -d "$searchdir"; then 8174 case "$searchdir" in 8175 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 8176 *) searchdir=`cd "$searchdir" && pwd` 8177 case "$searchdir" in 8178 */lib64 ) acl_libdirstem=lib64 ;; 8179 esac ;; 8180 esac 8181 fi 8182 done 8183 IFS="$acl_save_IFS" 8184 fi 8185 8186 8187 8188 gl_threads_api=none 8189 LIBTHREAD= 8190 LTLIBTHREAD= 8191 LIBMULTITHREAD= 8192 LTLIBMULTITHREAD= 8193 if test "$gl_use_threads" != no; then 8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 8195$as_echo_n "checking whether imported symbols can be declared weak... " >&6; } 8196 gl_have_weak=no 8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8198/* end confdefs.h. */ 8199extern void xyzzy (); 8200#pragma weak xyzzy 8201int 8202main () 8203{ 8204xyzzy(); 8205 ; 8206 return 0; 8207} 8208_ACEOF 8209if ac_fn_c_try_link "$LINENO"; then : 8210 gl_have_weak=yes 8211fi 8212rm -f core conftest.err conftest.$ac_objext \ 8213 conftest$ac_exeext conftest.$ac_ext 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5 8215$as_echo "$gl_have_weak" >&6; } 8216 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 8217 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 8218 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY. 8219 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 8220if test "x$ac_cv_header_pthread_h" = x""yes; then : 8221 gl_have_pthread_h=yes 8222else 8223 gl_have_pthread_h=no 8224fi 8225 8226 8227 if test "$gl_have_pthread_h" = yes; then 8228 # Other possible tests: 8229 # -lpthreads (FSU threads, PCthreads) 8230 # -lgthreads 8231 gl_have_pthread= 8232 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 8233 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 8234 # the second one only in libpthread, and lock.c needs it. 8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8236/* end confdefs.h. */ 8237#include <pthread.h> 8238int 8239main () 8240{ 8241pthread_mutex_lock((pthread_mutex_t*)0); 8242 pthread_mutexattr_init((pthread_mutexattr_t*)0); 8243 ; 8244 return 0; 8245} 8246_ACEOF 8247if ac_fn_c_try_link "$LINENO"; then : 8248 gl_have_pthread=yes 8249fi 8250rm -f core conftest.err conftest.$ac_objext \ 8251 conftest$ac_exeext conftest.$ac_ext 8252 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 8253 # since it is defined as a macro on OSF/1.) 8254 if test -n "$gl_have_pthread"; then 8255 # The program links fine without libpthread. But it may actually 8256 # need to link with libpthread in order to create multiple threads. 8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 8258$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 8259if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then : 8260 $as_echo_n "(cached) " >&6 8261else 8262 ac_check_lib_save_LIBS=$LIBS 8263LIBS="-lpthread $LIBS" 8264cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8265/* end confdefs.h. */ 8266 8267/* Override any GCC internal prototype to avoid an error. 8268 Use char because int might match the return type of a GCC 8269 builtin and then its argument prototype would still apply. */ 8270#ifdef __cplusplus 8271extern "C" 8272#endif 8273char pthread_kill (); 8274int 8275main () 8276{ 8277return pthread_kill (); 8278 ; 8279 return 0; 8280} 8281_ACEOF 8282if ac_fn_c_try_link "$LINENO"; then : 8283 ac_cv_lib_pthread_pthread_kill=yes 8284else 8285 ac_cv_lib_pthread_pthread_kill=no 8286fi 8287rm -f core conftest.err conftest.$ac_objext \ 8288 conftest$ac_exeext conftest.$ac_ext 8289LIBS=$ac_check_lib_save_LIBS 8290fi 8291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 8292$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 8293if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then : 8294 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread 8295 # On Solaris and HP-UX, most pthread functions exist also in libc. 8296 # Therefore pthread_in_use() needs to actually try to create a 8297 # thread: pthread_create from libc will fail, whereas 8298 # pthread_create will actually create a thread. 8299 case "$host_os" in 8300 solaris* | hpux*) 8301 8302$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 8303 8304 esac 8305 8306fi 8307 8308 else 8309 # Some library is needed. Try libpthread and libc_r. 8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 8311$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 8312if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then : 8313 $as_echo_n "(cached) " >&6 8314else 8315 ac_check_lib_save_LIBS=$LIBS 8316LIBS="-lpthread $LIBS" 8317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8318/* end confdefs.h. */ 8319 8320/* Override any GCC internal prototype to avoid an error. 8321 Use char because int might match the return type of a GCC 8322 builtin and then its argument prototype would still apply. */ 8323#ifdef __cplusplus 8324extern "C" 8325#endif 8326char pthread_kill (); 8327int 8328main () 8329{ 8330return pthread_kill (); 8331 ; 8332 return 0; 8333} 8334_ACEOF 8335if ac_fn_c_try_link "$LINENO"; then : 8336 ac_cv_lib_pthread_pthread_kill=yes 8337else 8338 ac_cv_lib_pthread_pthread_kill=no 8339fi 8340rm -f core conftest.err conftest.$ac_objext \ 8341 conftest$ac_exeext conftest.$ac_ext 8342LIBS=$ac_check_lib_save_LIBS 8343fi 8344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 8345$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 8346if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then : 8347 gl_have_pthread=yes 8348 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread 8349 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread 8350fi 8351 8352 if test -z "$gl_have_pthread"; then 8353 # For FreeBSD 4. 8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 8355$as_echo_n "checking for pthread_kill in -lc_r... " >&6; } 8356if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then : 8357 $as_echo_n "(cached) " >&6 8358else 8359 ac_check_lib_save_LIBS=$LIBS 8360LIBS="-lc_r $LIBS" 8361cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8362/* end confdefs.h. */ 8363 8364/* Override any GCC internal prototype to avoid an error. 8365 Use char because int might match the return type of a GCC 8366 builtin and then its argument prototype would still apply. */ 8367#ifdef __cplusplus 8368extern "C" 8369#endif 8370char pthread_kill (); 8371int 8372main () 8373{ 8374return pthread_kill (); 8375 ; 8376 return 0; 8377} 8378_ACEOF 8379if ac_fn_c_try_link "$LINENO"; then : 8380 ac_cv_lib_c_r_pthread_kill=yes 8381else 8382 ac_cv_lib_c_r_pthread_kill=no 8383fi 8384rm -f core conftest.err conftest.$ac_objext \ 8385 conftest$ac_exeext conftest.$ac_ext 8386LIBS=$ac_check_lib_save_LIBS 8387fi 8388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 8389$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } 8390if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then : 8391 gl_have_pthread=yes 8392 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r 8393 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r 8394fi 8395 8396 fi 8397 fi 8398 if test -n "$gl_have_pthread"; then 8399 gl_threads_api=posix 8400 8401$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h 8402 8403 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 8404 if test $gl_have_weak = yes; then 8405 8406$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h 8407 8408 LIBTHREAD= 8409 LTLIBTHREAD= 8410 fi 8411 fi 8412 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the 8413 # pthread_rwlock_* functions. 8414 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 8415" 8416if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then : 8417 8418$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h 8419 8420fi 8421 8422 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. 8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8424/* end confdefs.h. */ 8425#include <pthread.h> 8426int 8427main () 8428{ 8429#if __FreeBSD__ == 4 8430error "No, in FreeBSD 4.0 recursive mutexes actually don't work." 8431#else 8432int x = (int)PTHREAD_MUTEX_RECURSIVE; 8433return !x; 8434#endif 8435 ; 8436 return 0; 8437} 8438_ACEOF 8439if ac_fn_c_try_compile "$LINENO"; then : 8440 8441$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h 8442 8443fi 8444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8445 fi 8446 fi 8447 fi 8448 if test -z "$gl_have_pthread"; then 8449 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then 8450 gl_have_solaristhread= 8451 gl_save_LIBS="$LIBS" 8452 LIBS="$LIBS -lthread" 8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8454/* end confdefs.h. */ 8455#include <thread.h> 8456#include <synch.h> 8457int 8458main () 8459{ 8460thr_self(); 8461 ; 8462 return 0; 8463} 8464_ACEOF 8465if ac_fn_c_try_link "$LINENO"; then : 8466 gl_have_solaristhread=yes 8467fi 8468rm -f core conftest.err conftest.$ac_objext \ 8469 conftest$ac_exeext conftest.$ac_ext 8470 LIBS="$gl_save_LIBS" 8471 if test -n "$gl_have_solaristhread"; then 8472 gl_threads_api=solaris 8473 LIBTHREAD=-lthread 8474 LTLIBTHREAD=-lthread 8475 LIBMULTITHREAD="$LIBTHREAD" 8476 LTLIBMULTITHREAD="$LTLIBTHREAD" 8477 8478$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h 8479 8480 if test $gl_have_weak = yes; then 8481 8482$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h 8483 8484 LIBTHREAD= 8485 LTLIBTHREAD= 8486 fi 8487 fi 8488 fi 8489 fi 8490 if test "$gl_use_threads" = pth; then 8491 gl_save_CPPFLAGS="$CPPFLAGS" 8492 8493 8494 8495 8496 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 8498$as_echo_n "checking how to link with libpth... " >&6; } 8499if test "${ac_cv_libpth_libs+set}" = set; then : 8500 $as_echo_n "(cached) " >&6 8501else 8502 8503 8504 8505 8506 8507 use_additional=yes 8508 8509 acl_save_prefix="$prefix" 8510 prefix="$acl_final_prefix" 8511 acl_save_exec_prefix="$exec_prefix" 8512 exec_prefix="$acl_final_exec_prefix" 8513 8514 eval additional_includedir=\"$includedir\" 8515 eval additional_libdir=\"$libdir\" 8516 8517 exec_prefix="$acl_save_exec_prefix" 8518 prefix="$acl_save_prefix" 8519 8520 8521# Check whether --with-libpth-prefix was given. 8522if test "${with_libpth_prefix+set}" = set; then : 8523 withval=$with_libpth_prefix; 8524 if test "X$withval" = "Xno"; then 8525 use_additional=no 8526 else 8527 if test "X$withval" = "X"; then 8528 8529 acl_save_prefix="$prefix" 8530 prefix="$acl_final_prefix" 8531 acl_save_exec_prefix="$exec_prefix" 8532 exec_prefix="$acl_final_exec_prefix" 8533 8534 eval additional_includedir=\"$includedir\" 8535 eval additional_libdir=\"$libdir\" 8536 8537 exec_prefix="$acl_save_exec_prefix" 8538 prefix="$acl_save_prefix" 8539 8540 else 8541 additional_includedir="$withval/include" 8542 additional_libdir="$withval/$acl_libdirstem" 8543 fi 8544 fi 8545 8546fi 8547 8548 LIBPTH= 8549 LTLIBPTH= 8550 INCPTH= 8551 LIBPTH_PREFIX= 8552 rpathdirs= 8553 ltrpathdirs= 8554 names_already_handled= 8555 names_next_round='pth ' 8556 while test -n "$names_next_round"; do 8557 names_this_round="$names_next_round" 8558 names_next_round= 8559 for name in $names_this_round; do 8560 already_handled= 8561 for n in $names_already_handled; do 8562 if test "$n" = "$name"; then 8563 already_handled=yes 8564 break 8565 fi 8566 done 8567 if test -z "$already_handled"; then 8568 names_already_handled="$names_already_handled $name" 8569 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 8570 eval value=\"\$HAVE_LIB$uppername\" 8571 if test -n "$value"; then 8572 if test "$value" = yes; then 8573 eval value=\"\$LIB$uppername\" 8574 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" 8575 eval value=\"\$LTLIB$uppername\" 8576 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" 8577 else 8578 : 8579 fi 8580 else 8581 found_dir= 8582 found_la= 8583 found_so= 8584 found_a= 8585 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 8586 if test -n "$acl_shlibext"; then 8587 shrext=".$acl_shlibext" # typically: shrext=.so 8588 else 8589 shrext= 8590 fi 8591 if test $use_additional = yes; then 8592 dir="$additional_libdir" 8593 if test -n "$acl_shlibext"; then 8594 if test -f "$dir/$libname$shrext"; then 8595 found_dir="$dir" 8596 found_so="$dir/$libname$shrext" 8597 else 8598 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 8599 ver=`(cd "$dir" && \ 8600 for f in "$libname$shrext".*; do echo "$f"; done \ 8601 | sed -e "s,^$libname$shrext\\\\.,," \ 8602 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 8603 | sed 1q ) 2>/dev/null` 8604 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 8605 found_dir="$dir" 8606 found_so="$dir/$libname$shrext.$ver" 8607 fi 8608 else 8609 eval library_names=\"$acl_library_names_spec\" 8610 for f in $library_names; do 8611 if test -f "$dir/$f"; then 8612 found_dir="$dir" 8613 found_so="$dir/$f" 8614 break 8615 fi 8616 done 8617 fi 8618 fi 8619 fi 8620 if test "X$found_dir" = "X"; then 8621 if test -f "$dir/$libname.$acl_libext"; then 8622 found_dir="$dir" 8623 found_a="$dir/$libname.$acl_libext" 8624 fi 8625 fi 8626 if test "X$found_dir" != "X"; then 8627 if test -f "$dir/$libname.la"; then 8628 found_la="$dir/$libname.la" 8629 fi 8630 fi 8631 fi 8632 if test "X$found_dir" = "X"; then 8633 for x in $LDFLAGS $LTLIBPTH; do 8634 8635 acl_save_prefix="$prefix" 8636 prefix="$acl_final_prefix" 8637 acl_save_exec_prefix="$exec_prefix" 8638 exec_prefix="$acl_final_exec_prefix" 8639 eval x=\"$x\" 8640 exec_prefix="$acl_save_exec_prefix" 8641 prefix="$acl_save_prefix" 8642 8643 case "$x" in 8644 -L*) 8645 dir=`echo "X$x" | sed -e 's/^X-L//'` 8646 if test -n "$acl_shlibext"; then 8647 if test -f "$dir/$libname$shrext"; then 8648 found_dir="$dir" 8649 found_so="$dir/$libname$shrext" 8650 else 8651 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 8652 ver=`(cd "$dir" && \ 8653 for f in "$libname$shrext".*; do echo "$f"; done \ 8654 | sed -e "s,^$libname$shrext\\\\.,," \ 8655 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 8656 | sed 1q ) 2>/dev/null` 8657 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 8658 found_dir="$dir" 8659 found_so="$dir/$libname$shrext.$ver" 8660 fi 8661 else 8662 eval library_names=\"$acl_library_names_spec\" 8663 for f in $library_names; do 8664 if test -f "$dir/$f"; then 8665 found_dir="$dir" 8666 found_so="$dir/$f" 8667 break 8668 fi 8669 done 8670 fi 8671 fi 8672 fi 8673 if test "X$found_dir" = "X"; then 8674 if test -f "$dir/$libname.$acl_libext"; then 8675 found_dir="$dir" 8676 found_a="$dir/$libname.$acl_libext" 8677 fi 8678 fi 8679 if test "X$found_dir" != "X"; then 8680 if test -f "$dir/$libname.la"; then 8681 found_la="$dir/$libname.la" 8682 fi 8683 fi 8684 ;; 8685 esac 8686 if test "X$found_dir" != "X"; then 8687 break 8688 fi 8689 done 8690 fi 8691 if test "X$found_dir" != "X"; then 8692 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" 8693 if test "X$found_so" != "X"; then 8694 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 8695 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 8696 else 8697 haveit= 8698 for x in $ltrpathdirs; do 8699 if test "X$x" = "X$found_dir"; then 8700 haveit=yes 8701 break 8702 fi 8703 done 8704 if test -z "$haveit"; then 8705 ltrpathdirs="$ltrpathdirs $found_dir" 8706 fi 8707 if test "$acl_hardcode_direct" = yes; then 8708 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 8709 else 8710 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 8711 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 8712 haveit= 8713 for x in $rpathdirs; do 8714 if test "X$x" = "X$found_dir"; then 8715 haveit=yes 8716 break 8717 fi 8718 done 8719 if test -z "$haveit"; then 8720 rpathdirs="$rpathdirs $found_dir" 8721 fi 8722 else 8723 haveit= 8724 for x in $LDFLAGS $LIBPTH; do 8725 8726 acl_save_prefix="$prefix" 8727 prefix="$acl_final_prefix" 8728 acl_save_exec_prefix="$exec_prefix" 8729 exec_prefix="$acl_final_exec_prefix" 8730 eval x=\"$x\" 8731 exec_prefix="$acl_save_exec_prefix" 8732 prefix="$acl_save_prefix" 8733 8734 if test "X$x" = "X-L$found_dir"; then 8735 haveit=yes 8736 break 8737 fi 8738 done 8739 if test -z "$haveit"; then 8740 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" 8741 fi 8742 if test "$acl_hardcode_minus_L" != no; then 8743 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 8744 else 8745 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" 8746 fi 8747 fi 8748 fi 8749 fi 8750 else 8751 if test "X$found_a" != "X"; then 8752 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" 8753 else 8754 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" 8755 fi 8756 fi 8757 additional_includedir= 8758 case "$found_dir" in 8759 */$acl_libdirstem | */$acl_libdirstem/) 8760 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 8761 LIBPTH_PREFIX="$basedir" 8762 additional_includedir="$basedir/include" 8763 ;; 8764 esac 8765 if test "X$additional_includedir" != "X"; then 8766 if test "X$additional_includedir" != "X/usr/include"; then 8767 haveit= 8768 if test "X$additional_includedir" = "X/usr/local/include"; then 8769 if test -n "$GCC"; then 8770 case $host_os in 8771 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 8772 esac 8773 fi 8774 fi 8775 if test -z "$haveit"; then 8776 for x in $CPPFLAGS $INCPTH; do 8777 8778 acl_save_prefix="$prefix" 8779 prefix="$acl_final_prefix" 8780 acl_save_exec_prefix="$exec_prefix" 8781 exec_prefix="$acl_final_exec_prefix" 8782 eval x=\"$x\" 8783 exec_prefix="$acl_save_exec_prefix" 8784 prefix="$acl_save_prefix" 8785 8786 if test "X$x" = "X-I$additional_includedir"; then 8787 haveit=yes 8788 break 8789 fi 8790 done 8791 if test -z "$haveit"; then 8792 if test -d "$additional_includedir"; then 8793 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" 8794 fi 8795 fi 8796 fi 8797 fi 8798 fi 8799 if test -n "$found_la"; then 8800 save_libdir="$libdir" 8801 case "$found_la" in 8802 */* | *\\*) . "$found_la" ;; 8803 *) . "./$found_la" ;; 8804 esac 8805 libdir="$save_libdir" 8806 for dep in $dependency_libs; do 8807 case "$dep" in 8808 -L*) 8809 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 8810 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 8811 haveit= 8812 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 8813 if test -n "$GCC"; then 8814 case $host_os in 8815 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 8816 esac 8817 fi 8818 fi 8819 if test -z "$haveit"; then 8820 haveit= 8821 for x in $LDFLAGS $LIBPTH; do 8822 8823 acl_save_prefix="$prefix" 8824 prefix="$acl_final_prefix" 8825 acl_save_exec_prefix="$exec_prefix" 8826 exec_prefix="$acl_final_exec_prefix" 8827 eval x=\"$x\" 8828 exec_prefix="$acl_save_exec_prefix" 8829 prefix="$acl_save_prefix" 8830 8831 if test "X$x" = "X-L$additional_libdir"; then 8832 haveit=yes 8833 break 8834 fi 8835 done 8836 if test -z "$haveit"; then 8837 if test -d "$additional_libdir"; then 8838 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" 8839 fi 8840 fi 8841 haveit= 8842 for x in $LDFLAGS $LTLIBPTH; do 8843 8844 acl_save_prefix="$prefix" 8845 prefix="$acl_final_prefix" 8846 acl_save_exec_prefix="$exec_prefix" 8847 exec_prefix="$acl_final_exec_prefix" 8848 eval x=\"$x\" 8849 exec_prefix="$acl_save_exec_prefix" 8850 prefix="$acl_save_prefix" 8851 8852 if test "X$x" = "X-L$additional_libdir"; then 8853 haveit=yes 8854 break 8855 fi 8856 done 8857 if test -z "$haveit"; then 8858 if test -d "$additional_libdir"; then 8859 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" 8860 fi 8861 fi 8862 fi 8863 fi 8864 ;; 8865 -R*) 8866 dir=`echo "X$dep" | sed -e 's/^X-R//'` 8867 if test "$enable_rpath" != no; then 8868 haveit= 8869 for x in $rpathdirs; do 8870 if test "X$x" = "X$dir"; then 8871 haveit=yes 8872 break 8873 fi 8874 done 8875 if test -z "$haveit"; then 8876 rpathdirs="$rpathdirs $dir" 8877 fi 8878 haveit= 8879 for x in $ltrpathdirs; do 8880 if test "X$x" = "X$dir"; then 8881 haveit=yes 8882 break 8883 fi 8884 done 8885 if test -z "$haveit"; then 8886 ltrpathdirs="$ltrpathdirs $dir" 8887 fi 8888 fi 8889 ;; 8890 -l*) 8891 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 8892 ;; 8893 *.la) 8894 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 8895 ;; 8896 *) 8897 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" 8898 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" 8899 ;; 8900 esac 8901 done 8902 fi 8903 else 8904 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" 8905 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" 8906 fi 8907 fi 8908 fi 8909 done 8910 done 8911 if test "X$rpathdirs" != "X"; then 8912 if test -n "$acl_hardcode_libdir_separator"; then 8913 alldirs= 8914 for found_dir in $rpathdirs; do 8915 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 8916 done 8917 acl_save_libdir="$libdir" 8918 libdir="$alldirs" 8919 eval flag=\"$acl_hardcode_libdir_flag_spec\" 8920 libdir="$acl_save_libdir" 8921 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" 8922 else 8923 for found_dir in $rpathdirs; do 8924 acl_save_libdir="$libdir" 8925 libdir="$found_dir" 8926 eval flag=\"$acl_hardcode_libdir_flag_spec\" 8927 libdir="$acl_save_libdir" 8928 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" 8929 done 8930 fi 8931 fi 8932 if test "X$ltrpathdirs" != "X"; then 8933 for found_dir in $ltrpathdirs; do 8934 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" 8935 done 8936 fi 8937 8938 ac_cv_libpth_libs="$LIBPTH" 8939 ac_cv_libpth_ltlibs="$LTLIBPTH" 8940 ac_cv_libpth_cppflags="$INCPTH" 8941 ac_cv_libpth_prefix="$LIBPTH_PREFIX" 8942 8943fi 8944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 8945$as_echo "$ac_cv_libpth_libs" >&6; } 8946 LIBPTH="$ac_cv_libpth_libs" 8947 LTLIBPTH="$ac_cv_libpth_ltlibs" 8948 INCPTH="$ac_cv_libpth_cppflags" 8949 LIBPTH_PREFIX="$ac_cv_libpth_prefix" 8950 8951 for element in $INCPTH; do 8952 haveit= 8953 for x in $CPPFLAGS; do 8954 8955 acl_save_prefix="$prefix" 8956 prefix="$acl_final_prefix" 8957 acl_save_exec_prefix="$exec_prefix" 8958 exec_prefix="$acl_final_exec_prefix" 8959 eval x=\"$x\" 8960 exec_prefix="$acl_save_exec_prefix" 8961 prefix="$acl_save_prefix" 8962 8963 if test "X$x" = "X$element"; then 8964 haveit=yes 8965 break 8966 fi 8967 done 8968 if test -z "$haveit"; then 8969 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 8970 fi 8971 done 8972 8973 8974 8975 8976 HAVE_LIBPTH=yes 8977 8978 8979 8980 gl_have_pth= 8981 gl_save_LIBS="$LIBS" 8982 LIBS="$LIBS -lpth" 8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8984/* end confdefs.h. */ 8985#include <pth.h> 8986int 8987main () 8988{ 8989pth_self(); 8990 ; 8991 return 0; 8992} 8993_ACEOF 8994if ac_fn_c_try_link "$LINENO"; then : 8995 gl_have_pth=yes 8996fi 8997rm -f core conftest.err conftest.$ac_objext \ 8998 conftest$ac_exeext conftest.$ac_ext 8999 LIBS="$gl_save_LIBS" 9000 if test -n "$gl_have_pth"; then 9001 gl_threads_api=pth 9002 LIBTHREAD="$LIBPTH" 9003 LTLIBTHREAD="$LTLIBPTH" 9004 LIBMULTITHREAD="$LIBTHREAD" 9005 LTLIBMULTITHREAD="$LTLIBTHREAD" 9006 9007$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h 9008 9009 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 9010 if test $gl_have_weak = yes; then 9011 9012$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h 9013 9014 LIBTHREAD= 9015 LTLIBTHREAD= 9016 fi 9017 fi 9018 else 9019 CPPFLAGS="$gl_save_CPPFLAGS" 9020 fi 9021 fi 9022 if test -z "$gl_have_pthread"; then 9023 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then 9024 if { case "$host_os" in 9025 mingw*) true;; 9026 *) false;; 9027 esac 9028 }; then 9029 gl_threads_api=win32 9030 9031$as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h 9032 9033 fi 9034 fi 9035 fi 9036 fi 9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 9038$as_echo_n "checking for multithread API to use... " >&6; } 9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 9040$as_echo "$gl_threads_api" >&6; } 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 use_additional=yes 9062 9063 acl_save_prefix="$prefix" 9064 prefix="$acl_final_prefix" 9065 acl_save_exec_prefix="$exec_prefix" 9066 exec_prefix="$acl_final_exec_prefix" 9067 9068 eval additional_includedir=\"$includedir\" 9069 eval additional_libdir=\"$libdir\" 9070 9071 exec_prefix="$acl_save_exec_prefix" 9072 prefix="$acl_save_prefix" 9073 9074 9075# Check whether --with-libiconv-prefix was given. 9076if test "${with_libiconv_prefix+set}" = set; then : 9077 withval=$with_libiconv_prefix; 9078 if test "X$withval" = "Xno"; then 9079 use_additional=no 9080 else 9081 if test "X$withval" = "X"; then 9082 9083 acl_save_prefix="$prefix" 9084 prefix="$acl_final_prefix" 9085 acl_save_exec_prefix="$exec_prefix" 9086 exec_prefix="$acl_final_exec_prefix" 9087 9088 eval additional_includedir=\"$includedir\" 9089 eval additional_libdir=\"$libdir\" 9090 9091 exec_prefix="$acl_save_exec_prefix" 9092 prefix="$acl_save_prefix" 9093 9094 else 9095 additional_includedir="$withval/include" 9096 additional_libdir="$withval/$acl_libdirstem" 9097 fi 9098 fi 9099 9100fi 9101 9102 LIBICONV= 9103 LTLIBICONV= 9104 INCICONV= 9105 LIBICONV_PREFIX= 9106 rpathdirs= 9107 ltrpathdirs= 9108 names_already_handled= 9109 names_next_round='iconv ' 9110 while test -n "$names_next_round"; do 9111 names_this_round="$names_next_round" 9112 names_next_round= 9113 for name in $names_this_round; do 9114 already_handled= 9115 for n in $names_already_handled; do 9116 if test "$n" = "$name"; then 9117 already_handled=yes 9118 break 9119 fi 9120 done 9121 if test -z "$already_handled"; then 9122 names_already_handled="$names_already_handled $name" 9123 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 9124 eval value=\"\$HAVE_LIB$uppername\" 9125 if test -n "$value"; then 9126 if test "$value" = yes; then 9127 eval value=\"\$LIB$uppername\" 9128 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 9129 eval value=\"\$LTLIB$uppername\" 9130 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 9131 else 9132 : 9133 fi 9134 else 9135 found_dir= 9136 found_la= 9137 found_so= 9138 found_a= 9139 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 9140 if test -n "$acl_shlibext"; then 9141 shrext=".$acl_shlibext" # typically: shrext=.so 9142 else 9143 shrext= 9144 fi 9145 if test $use_additional = yes; then 9146 dir="$additional_libdir" 9147 if test -n "$acl_shlibext"; then 9148 if test -f "$dir/$libname$shrext"; then 9149 found_dir="$dir" 9150 found_so="$dir/$libname$shrext" 9151 else 9152 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 9153 ver=`(cd "$dir" && \ 9154 for f in "$libname$shrext".*; do echo "$f"; done \ 9155 | sed -e "s,^$libname$shrext\\\\.,," \ 9156 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 9157 | sed 1q ) 2>/dev/null` 9158 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 9159 found_dir="$dir" 9160 found_so="$dir/$libname$shrext.$ver" 9161 fi 9162 else 9163 eval library_names=\"$acl_library_names_spec\" 9164 for f in $library_names; do 9165 if test -f "$dir/$f"; then 9166 found_dir="$dir" 9167 found_so="$dir/$f" 9168 break 9169 fi 9170 done 9171 fi 9172 fi 9173 fi 9174 if test "X$found_dir" = "X"; then 9175 if test -f "$dir/$libname.$acl_libext"; then 9176 found_dir="$dir" 9177 found_a="$dir/$libname.$acl_libext" 9178 fi 9179 fi 9180 if test "X$found_dir" != "X"; then 9181 if test -f "$dir/$libname.la"; then 9182 found_la="$dir/$libname.la" 9183 fi 9184 fi 9185 fi 9186 if test "X$found_dir" = "X"; then 9187 for x in $LDFLAGS $LTLIBICONV; do 9188 9189 acl_save_prefix="$prefix" 9190 prefix="$acl_final_prefix" 9191 acl_save_exec_prefix="$exec_prefix" 9192 exec_prefix="$acl_final_exec_prefix" 9193 eval x=\"$x\" 9194 exec_prefix="$acl_save_exec_prefix" 9195 prefix="$acl_save_prefix" 9196 9197 case "$x" in 9198 -L*) 9199 dir=`echo "X$x" | sed -e 's/^X-L//'` 9200 if test -n "$acl_shlibext"; then 9201 if test -f "$dir/$libname$shrext"; then 9202 found_dir="$dir" 9203 found_so="$dir/$libname$shrext" 9204 else 9205 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 9206 ver=`(cd "$dir" && \ 9207 for f in "$libname$shrext".*; do echo "$f"; done \ 9208 | sed -e "s,^$libname$shrext\\\\.,," \ 9209 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 9210 | sed 1q ) 2>/dev/null` 9211 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 9212 found_dir="$dir" 9213 found_so="$dir/$libname$shrext.$ver" 9214 fi 9215 else 9216 eval library_names=\"$acl_library_names_spec\" 9217 for f in $library_names; do 9218 if test -f "$dir/$f"; then 9219 found_dir="$dir" 9220 found_so="$dir/$f" 9221 break 9222 fi 9223 done 9224 fi 9225 fi 9226 fi 9227 if test "X$found_dir" = "X"; then 9228 if test -f "$dir/$libname.$acl_libext"; then 9229 found_dir="$dir" 9230 found_a="$dir/$libname.$acl_libext" 9231 fi 9232 fi 9233 if test "X$found_dir" != "X"; then 9234 if test -f "$dir/$libname.la"; then 9235 found_la="$dir/$libname.la" 9236 fi 9237 fi 9238 ;; 9239 esac 9240 if test "X$found_dir" != "X"; then 9241 break 9242 fi 9243 done 9244 fi 9245 if test "X$found_dir" != "X"; then 9246 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 9247 if test "X$found_so" != "X"; then 9248 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 9249 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9250 else 9251 haveit= 9252 for x in $ltrpathdirs; do 9253 if test "X$x" = "X$found_dir"; then 9254 haveit=yes 9255 break 9256 fi 9257 done 9258 if test -z "$haveit"; then 9259 ltrpathdirs="$ltrpathdirs $found_dir" 9260 fi 9261 if test "$acl_hardcode_direct" = yes; then 9262 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9263 else 9264 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 9265 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9266 haveit= 9267 for x in $rpathdirs; do 9268 if test "X$x" = "X$found_dir"; then 9269 haveit=yes 9270 break 9271 fi 9272 done 9273 if test -z "$haveit"; then 9274 rpathdirs="$rpathdirs $found_dir" 9275 fi 9276 else 9277 haveit= 9278 for x in $LDFLAGS $LIBICONV; do 9279 9280 acl_save_prefix="$prefix" 9281 prefix="$acl_final_prefix" 9282 acl_save_exec_prefix="$exec_prefix" 9283 exec_prefix="$acl_final_exec_prefix" 9284 eval x=\"$x\" 9285 exec_prefix="$acl_save_exec_prefix" 9286 prefix="$acl_save_prefix" 9287 9288 if test "X$x" = "X-L$found_dir"; then 9289 haveit=yes 9290 break 9291 fi 9292 done 9293 if test -z "$haveit"; then 9294 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 9295 fi 9296 if test "$acl_hardcode_minus_L" != no; then 9297 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9298 else 9299 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 9300 fi 9301 fi 9302 fi 9303 fi 9304 else 9305 if test "X$found_a" != "X"; then 9306 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 9307 else 9308 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 9309 fi 9310 fi 9311 additional_includedir= 9312 case "$found_dir" in 9313 */$acl_libdirstem | */$acl_libdirstem/) 9314 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 9315 LIBICONV_PREFIX="$basedir" 9316 additional_includedir="$basedir/include" 9317 ;; 9318 esac 9319 if test "X$additional_includedir" != "X"; then 9320 if test "X$additional_includedir" != "X/usr/include"; then 9321 haveit= 9322 if test "X$additional_includedir" = "X/usr/local/include"; then 9323 if test -n "$GCC"; then 9324 case $host_os in 9325 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 9326 esac 9327 fi 9328 fi 9329 if test -z "$haveit"; then 9330 for x in $CPPFLAGS $INCICONV; do 9331 9332 acl_save_prefix="$prefix" 9333 prefix="$acl_final_prefix" 9334 acl_save_exec_prefix="$exec_prefix" 9335 exec_prefix="$acl_final_exec_prefix" 9336 eval x=\"$x\" 9337 exec_prefix="$acl_save_exec_prefix" 9338 prefix="$acl_save_prefix" 9339 9340 if test "X$x" = "X-I$additional_includedir"; then 9341 haveit=yes 9342 break 9343 fi 9344 done 9345 if test -z "$haveit"; then 9346 if test -d "$additional_includedir"; then 9347 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 9348 fi 9349 fi 9350 fi 9351 fi 9352 fi 9353 if test -n "$found_la"; then 9354 save_libdir="$libdir" 9355 case "$found_la" in 9356 */* | *\\*) . "$found_la" ;; 9357 *) . "./$found_la" ;; 9358 esac 9359 libdir="$save_libdir" 9360 for dep in $dependency_libs; do 9361 case "$dep" in 9362 -L*) 9363 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 9364 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 9365 haveit= 9366 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 9367 if test -n "$GCC"; then 9368 case $host_os in 9369 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 9370 esac 9371 fi 9372 fi 9373 if test -z "$haveit"; then 9374 haveit= 9375 for x in $LDFLAGS $LIBICONV; do 9376 9377 acl_save_prefix="$prefix" 9378 prefix="$acl_final_prefix" 9379 acl_save_exec_prefix="$exec_prefix" 9380 exec_prefix="$acl_final_exec_prefix" 9381 eval x=\"$x\" 9382 exec_prefix="$acl_save_exec_prefix" 9383 prefix="$acl_save_prefix" 9384 9385 if test "X$x" = "X-L$additional_libdir"; then 9386 haveit=yes 9387 break 9388 fi 9389 done 9390 if test -z "$haveit"; then 9391 if test -d "$additional_libdir"; then 9392 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 9393 fi 9394 fi 9395 haveit= 9396 for x in $LDFLAGS $LTLIBICONV; do 9397 9398 acl_save_prefix="$prefix" 9399 prefix="$acl_final_prefix" 9400 acl_save_exec_prefix="$exec_prefix" 9401 exec_prefix="$acl_final_exec_prefix" 9402 eval x=\"$x\" 9403 exec_prefix="$acl_save_exec_prefix" 9404 prefix="$acl_save_prefix" 9405 9406 if test "X$x" = "X-L$additional_libdir"; then 9407 haveit=yes 9408 break 9409 fi 9410 done 9411 if test -z "$haveit"; then 9412 if test -d "$additional_libdir"; then 9413 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 9414 fi 9415 fi 9416 fi 9417 fi 9418 ;; 9419 -R*) 9420 dir=`echo "X$dep" | sed -e 's/^X-R//'` 9421 if test "$enable_rpath" != no; then 9422 haveit= 9423 for x in $rpathdirs; do 9424 if test "X$x" = "X$dir"; then 9425 haveit=yes 9426 break 9427 fi 9428 done 9429 if test -z "$haveit"; then 9430 rpathdirs="$rpathdirs $dir" 9431 fi 9432 haveit= 9433 for x in $ltrpathdirs; do 9434 if test "X$x" = "X$dir"; then 9435 haveit=yes 9436 break 9437 fi 9438 done 9439 if test -z "$haveit"; then 9440 ltrpathdirs="$ltrpathdirs $dir" 9441 fi 9442 fi 9443 ;; 9444 -l*) 9445 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 9446 ;; 9447 *.la) 9448 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 9449 ;; 9450 *) 9451 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 9452 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 9453 ;; 9454 esac 9455 done 9456 fi 9457 else 9458 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 9459 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 9460 fi 9461 fi 9462 fi 9463 done 9464 done 9465 if test "X$rpathdirs" != "X"; then 9466 if test -n "$acl_hardcode_libdir_separator"; then 9467 alldirs= 9468 for found_dir in $rpathdirs; do 9469 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 9470 done 9471 acl_save_libdir="$libdir" 9472 libdir="$alldirs" 9473 eval flag=\"$acl_hardcode_libdir_flag_spec\" 9474 libdir="$acl_save_libdir" 9475 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 9476 else 9477 for found_dir in $rpathdirs; do 9478 acl_save_libdir="$libdir" 9479 libdir="$found_dir" 9480 eval flag=\"$acl_hardcode_libdir_flag_spec\" 9481 libdir="$acl_save_libdir" 9482 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 9483 done 9484 fi 9485 fi 9486 if test "X$ltrpathdirs" != "X"; then 9487 for found_dir in $ltrpathdirs; do 9488 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 9489 done 9490 fi 9491 9492 9493 9494 9495 9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9497/* end confdefs.h. */ 9498int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } 9499int 9500main () 9501{ 9502 9503 ; 9504 return 0; 9505} 9506_ACEOF 9507if ac_fn_c_try_link "$LINENO"; then : 9508 9509$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h 9510 9511fi 9512rm -f core conftest.err conftest.$ac_objext \ 9513 conftest$ac_exeext conftest.$ac_ext 9514 9515 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h 9516do : 9517 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9518ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9519eval as_val=\$$as_ac_Header 9520 if test "x$as_val" = x""yes; then : 9521 cat >>confdefs.h <<_ACEOF 9522#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9523_ACEOF 9524 9525fi 9526 9527done 9528 9529 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ 9530 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \ 9531 argz_next __fsetlocking 9532do : 9533 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9534ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9535eval as_val=\$$as_ac_var 9536 if test "x$as_val" = x""yes; then : 9537 cat >>confdefs.h <<_ACEOF 9538#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9539_ACEOF 9540 9541fi 9542done 9543 9544 9545 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 9547$as_echo_n "checking whether feof_unlocked is declared... " >&6; } 9548if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then : 9549 $as_echo_n "(cached) " >&6 9550else 9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9552/* end confdefs.h. */ 9553#include <stdio.h> 9554int 9555main () 9556{ 9557 9558#ifndef feof_unlocked 9559 char *p = (char *) feof_unlocked; 9560#endif 9561 9562 ; 9563 return 0; 9564} 9565_ACEOF 9566if ac_fn_c_try_compile "$LINENO"; then : 9567 ac_cv_have_decl_feof_unlocked=yes 9568else 9569 ac_cv_have_decl_feof_unlocked=no 9570fi 9571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9572fi 9573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 9574$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } 9575 if test $ac_cv_have_decl_feof_unlocked = yes; then 9576 gt_value=1 9577 else 9578 gt_value=0 9579 fi 9580 9581cat >>confdefs.h <<_ACEOF 9582#define HAVE_DECL_FEOF_UNLOCKED $gt_value 9583_ACEOF 9584 9585 9586 9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 9588$as_echo_n "checking whether fgets_unlocked is declared... " >&6; } 9589if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then : 9590 $as_echo_n "(cached) " >&6 9591else 9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9593/* end confdefs.h. */ 9594#include <stdio.h> 9595int 9596main () 9597{ 9598 9599#ifndef fgets_unlocked 9600 char *p = (char *) fgets_unlocked; 9601#endif 9602 9603 ; 9604 return 0; 9605} 9606_ACEOF 9607if ac_fn_c_try_compile "$LINENO"; then : 9608 ac_cv_have_decl_fgets_unlocked=yes 9609else 9610 ac_cv_have_decl_fgets_unlocked=no 9611fi 9612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9613fi 9614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 9615$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } 9616 if test $ac_cv_have_decl_fgets_unlocked = yes; then 9617 gt_value=1 9618 else 9619 gt_value=0 9620 fi 9621 9622cat >>confdefs.h <<_ACEOF 9623#define HAVE_DECL_FGETS_UNLOCKED $gt_value 9624_ACEOF 9625 9626 9627 9628 9629 9630 9631 9632 9633 am_save_CPPFLAGS="$CPPFLAGS" 9634 9635 for element in $INCICONV; do 9636 haveit= 9637 for x in $CPPFLAGS; do 9638 9639 acl_save_prefix="$prefix" 9640 prefix="$acl_final_prefix" 9641 acl_save_exec_prefix="$exec_prefix" 9642 exec_prefix="$acl_final_exec_prefix" 9643 eval x=\"$x\" 9644 exec_prefix="$acl_save_exec_prefix" 9645 prefix="$acl_save_prefix" 9646 9647 if test "X$x" = "X$element"; then 9648 haveit=yes 9649 break 9650 fi 9651 done 9652 if test -z "$haveit"; then 9653 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 9654 fi 9655 done 9656 9657 9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 9659$as_echo_n "checking for iconv... " >&6; } 9660if test "${am_cv_func_iconv+set}" = set; then : 9661 $as_echo_n "(cached) " >&6 9662else 9663 9664 am_cv_func_iconv="no, consider installing GNU libiconv" 9665 am_cv_lib_iconv=no 9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9667/* end confdefs.h. */ 9668#include <stdlib.h> 9669#include <iconv.h> 9670int 9671main () 9672{ 9673iconv_t cd = iconv_open("",""); 9674 iconv(cd,NULL,NULL,NULL,NULL); 9675 iconv_close(cd); 9676 ; 9677 return 0; 9678} 9679_ACEOF 9680if ac_fn_c_try_link "$LINENO"; then : 9681 am_cv_func_iconv=yes 9682fi 9683rm -f core conftest.err conftest.$ac_objext \ 9684 conftest$ac_exeext conftest.$ac_ext 9685 if test "$am_cv_func_iconv" != yes; then 9686 am_save_LIBS="$LIBS" 9687 LIBS="$LIBS $LIBICONV" 9688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9689/* end confdefs.h. */ 9690#include <stdlib.h> 9691#include <iconv.h> 9692int 9693main () 9694{ 9695iconv_t cd = iconv_open("",""); 9696 iconv(cd,NULL,NULL,NULL,NULL); 9697 iconv_close(cd); 9698 ; 9699 return 0; 9700} 9701_ACEOF 9702if ac_fn_c_try_link "$LINENO"; then : 9703 am_cv_lib_iconv=yes 9704 am_cv_func_iconv=yes 9705fi 9706rm -f core conftest.err conftest.$ac_objext \ 9707 conftest$ac_exeext conftest.$ac_ext 9708 LIBS="$am_save_LIBS" 9709 fi 9710 9711fi 9712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 9713$as_echo "$am_cv_func_iconv" >&6; } 9714 if test "$am_cv_func_iconv" = yes; then 9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 9716$as_echo_n "checking for working iconv... " >&6; } 9717if test "${am_cv_func_iconv_works+set}" = set; then : 9718 $as_echo_n "(cached) " >&6 9719else 9720 9721 am_save_LIBS="$LIBS" 9722 if test $am_cv_lib_iconv = yes; then 9723 LIBS="$LIBS $LIBICONV" 9724 fi 9725 if test "$cross_compiling" = yes; then : 9726 case "$host_os" in 9727 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 9728 *) am_cv_func_iconv_works="guessing yes" ;; 9729 esac 9730else 9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9732/* end confdefs.h. */ 9733 9734#include <iconv.h> 9735#include <string.h> 9736int main () 9737{ 9738 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 9739 returns. */ 9740 { 9741 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 9742 if (cd_utf8_to_88591 != (iconv_t)(-1)) 9743 { 9744 static const char input[] = "\342\202\254"; /* EURO SIGN */ 9745 char buf[10]; 9746 const char *inptr = input; 9747 size_t inbytesleft = strlen (input); 9748 char *outptr = buf; 9749 size_t outbytesleft = sizeof (buf); 9750 size_t res = iconv (cd_utf8_to_88591, 9751 (char **) &inptr, &inbytesleft, 9752 &outptr, &outbytesleft); 9753 if (res == 0) 9754 return 1; 9755 } 9756 } 9757#if 0 /* This bug could be worked around by the caller. */ 9758 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 9759 { 9760 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 9761 if (cd_88591_to_utf8 != (iconv_t)(-1)) 9762 { 9763 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 9764 char buf[50]; 9765 const char *inptr = input; 9766 size_t inbytesleft = strlen (input); 9767 char *outptr = buf; 9768 size_t outbytesleft = sizeof (buf); 9769 size_t res = iconv (cd_88591_to_utf8, 9770 (char **) &inptr, &inbytesleft, 9771 &outptr, &outbytesleft); 9772 if ((int)res > 0) 9773 return 1; 9774 } 9775 } 9776#endif 9777 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 9778 provided. */ 9779 if (/* Try standardized names. */ 9780 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 9781 /* Try IRIX, OSF/1 names. */ 9782 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 9783 /* Try AIX names. */ 9784 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 9785 /* Try HP-UX names. */ 9786 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 9787 return 1; 9788 return 0; 9789} 9790_ACEOF 9791if ac_fn_c_try_run "$LINENO"; then : 9792 am_cv_func_iconv_works=yes 9793else 9794 am_cv_func_iconv_works=no 9795fi 9796rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9797 conftest.$ac_objext conftest.beam conftest.$ac_ext 9798fi 9799 9800 LIBS="$am_save_LIBS" 9801 9802fi 9803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 9804$as_echo "$am_cv_func_iconv_works" >&6; } 9805 case "$am_cv_func_iconv_works" in 9806 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 9807 *) am_func_iconv=yes ;; 9808 esac 9809 else 9810 am_func_iconv=no am_cv_lib_iconv=no 9811 fi 9812 if test "$am_func_iconv" = yes; then 9813 9814$as_echo "#define HAVE_ICONV 1" >>confdefs.h 9815 9816 fi 9817 if test "$am_cv_lib_iconv" = yes; then 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 9819$as_echo_n "checking how to link with libiconv... " >&6; } 9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 9821$as_echo "$LIBICONV" >&6; } 9822 else 9823 CPPFLAGS="$am_save_CPPFLAGS" 9824 LIBICONV= 9825 LTLIBICONV= 9826 fi 9827 9828 9829 9830 if test "$am_cv_func_iconv" = yes; then 9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 9832$as_echo_n "checking for iconv declaration... " >&6; } 9833 if test "${am_cv_proto_iconv+set}" = set; then : 9834 $as_echo_n "(cached) " >&6 9835else 9836 9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9838/* end confdefs.h. */ 9839 9840#include <stdlib.h> 9841#include <iconv.h> 9842extern 9843#ifdef __cplusplus 9844"C" 9845#endif 9846#if defined(__STDC__) || defined(__cplusplus) 9847size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 9848#else 9849size_t iconv(); 9850#endif 9851 9852int 9853main () 9854{ 9855 9856 ; 9857 return 0; 9858} 9859_ACEOF 9860if ac_fn_c_try_compile "$LINENO"; then : 9861 am_cv_proto_iconv_arg1="" 9862else 9863 am_cv_proto_iconv_arg1="const" 9864fi 9865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9866 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 9867fi 9868 9869 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- 9871 }$am_cv_proto_iconv" >&5 9872$as_echo "${ac_t:- 9873 }$am_cv_proto_iconv" >&6; } 9874 9875cat >>confdefs.h <<_ACEOF 9876#define ICONV_CONST $am_cv_proto_iconv_arg1 9877_ACEOF 9878 9879 fi 9880 9881 9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5 9883$as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; } 9884if test "${gt_cv_nl_locale_name+set}" = set; then : 9885 $as_echo_n "(cached) " >&6 9886else 9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9888/* end confdefs.h. */ 9889#include <langinfo.h> 9890#include <locale.h> 9891int 9892main () 9893{ 9894char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES)); 9895 return !cs; 9896 9897 ; 9898 return 0; 9899} 9900_ACEOF 9901if ac_fn_c_try_link "$LINENO"; then : 9902 gt_cv_nl_locale_name=yes 9903else 9904 gt_cv_nl_locale_name=no 9905fi 9906rm -f core conftest.err conftest.$ac_objext \ 9907 conftest$ac_exeext conftest.$ac_ext 9908 9909fi 9910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5 9911$as_echo "$gt_cv_nl_locale_name" >&6; } 9912 if test $gt_cv_nl_locale_name = yes; then 9913 9914$as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h 9915 9916 fi 9917 9918 for ac_prog in bison 9919do 9920 # Extract the first word of "$ac_prog", so it can be a program name with args. 9921set dummy $ac_prog; ac_word=$2 9922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9923$as_echo_n "checking for $ac_word... " >&6; } 9924if test "${ac_cv_prog_INTLBISON+set}" = set; then : 9925 $as_echo_n "(cached) " >&6 9926else 9927 if test -n "$INTLBISON"; then 9928 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 9929else 9930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9931for as_dir in $PATH 9932do 9933 IFS=$as_save_IFS 9934 test -z "$as_dir" && as_dir=. 9935 for ac_exec_ext in '' $ac_executable_extensions; do 9936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9937 ac_cv_prog_INTLBISON="$ac_prog" 9938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9939 break 2 9940 fi 9941done 9942 done 9943IFS=$as_save_IFS 9944 9945fi 9946fi 9947INTLBISON=$ac_cv_prog_INTLBISON 9948if test -n "$INTLBISON"; then 9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 9950$as_echo "$INTLBISON" >&6; } 9951else 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9953$as_echo "no" >&6; } 9954fi 9955 9956 9957 test -n "$INTLBISON" && break 9958done 9959 9960 if test -z "$INTLBISON"; then 9961 ac_verc_fail=yes 9962 else 9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 9964$as_echo_n "checking version of bison... " >&6; } 9965 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 9966 case $ac_prog_version in 9967 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 9968 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 9969 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 9970 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 9971 esac 9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 9973$as_echo "$ac_prog_version" >&6; } 9974 fi 9975 if test $ac_verc_fail = yes; then 9976 INTLBISON=: 9977 fi 9978 9979 9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 9981$as_echo_n "checking for long long int... " >&6; } 9982if test "${ac_cv_type_long_long_int+set}" = set; then : 9983 $as_echo_n "(cached) " >&6 9984else 9985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9986/* end confdefs.h. */ 9987 9988 /* Test preprocessor. */ 9989 #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 9990 error in preprocessor; 9991 #endif 9992 #if ! (18446744073709551615ULL <= -1ull) 9993 error in preprocessor; 9994 #endif 9995 /* Test literals. */ 9996 long long int ll = 9223372036854775807ll; 9997 long long int nll = -9223372036854775807LL; 9998 unsigned long long int ull = 18446744073709551615ULL; 9999 /* Test constant expressions. */ 10000 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 10001 ? 1 : -1)]; 10002 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 10003 ? 1 : -1)]; 10004 int i = 63; 10005int 10006main () 10007{ 10008/* Test availability of runtime routines for shift and division. */ 10009 long long int llmax = 9223372036854775807ll; 10010 unsigned long long int ullmax = 18446744073709551615ull; 10011 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 10012 | (llmax / ll) | (llmax % ll) 10013 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 10014 | (ullmax / ull) | (ullmax % ull)); 10015 ; 10016 return 0; 10017} 10018 10019_ACEOF 10020if ac_fn_c_try_link "$LINENO"; then : 10021 if test "$cross_compiling" = yes; then : 10022 ac_cv_type_long_long_int=yes 10023else 10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10025/* end confdefs.h. */ 10026#include <limits.h> 10027 #ifndef LLONG_MAX 10028 # define HALF \ 10029 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 10030 # define LLONG_MAX (HALF - 1 + HALF) 10031 #endif 10032int 10033main () 10034{ 10035long long int n = 1; 10036 int i; 10037 for (i = 0; ; i++) 10038 { 10039 long long int m = n << i; 10040 if (m >> i != n) 10041 return 1; 10042 if (LLONG_MAX / 2 < m) 10043 break; 10044 } 10045 return 0; 10046 ; 10047 return 0; 10048} 10049_ACEOF 10050if ac_fn_c_try_run "$LINENO"; then : 10051 ac_cv_type_long_long_int=yes 10052else 10053 ac_cv_type_long_long_int=no 10054fi 10055rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10056 conftest.$ac_objext conftest.beam conftest.$ac_ext 10057fi 10058 10059else 10060 ac_cv_type_long_long_int=no 10061fi 10062rm -f core conftest.err conftest.$ac_objext \ 10063 conftest$ac_exeext conftest.$ac_ext 10064fi 10065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 10066$as_echo "$ac_cv_type_long_long_int" >&6; } 10067 if test $ac_cv_type_long_long_int = yes; then 10068 10069$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 10070 10071 fi 10072 10073 10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 10075$as_echo_n "checking for wchar_t... " >&6; } 10076if test "${gt_cv_c_wchar_t+set}" = set; then : 10077 $as_echo_n "(cached) " >&6 10078else 10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10080/* end confdefs.h. */ 10081#include <stddef.h> 10082 wchar_t foo = (wchar_t)'\0'; 10083int 10084main () 10085{ 10086 10087 ; 10088 return 0; 10089} 10090_ACEOF 10091if ac_fn_c_try_compile "$LINENO"; then : 10092 gt_cv_c_wchar_t=yes 10093else 10094 gt_cv_c_wchar_t=no 10095fi 10096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10097fi 10098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 10099$as_echo "$gt_cv_c_wchar_t" >&6; } 10100 if test $gt_cv_c_wchar_t = yes; then 10101 10102$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 10103 10104 fi 10105 10106 10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 10108$as_echo_n "checking for wint_t... " >&6; } 10109if test "${gt_cv_c_wint_t+set}" = set; then : 10110 $as_echo_n "(cached) " >&6 10111else 10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10113/* end confdefs.h. */ 10114 10115/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 10116 <wchar.h>. 10117 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 10118 before <wchar.h>. */ 10119#include <stddef.h> 10120#include <stdio.h> 10121#include <time.h> 10122#include <wchar.h> 10123 wint_t foo = (wchar_t)'\0'; 10124int 10125main () 10126{ 10127 10128 ; 10129 return 0; 10130} 10131_ACEOF 10132if ac_fn_c_try_compile "$LINENO"; then : 10133 gt_cv_c_wint_t=yes 10134else 10135 gt_cv_c_wint_t=no 10136fi 10137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10138fi 10139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 10140$as_echo "$gt_cv_c_wint_t" >&6; } 10141 if test $gt_cv_c_wint_t = yes; then 10142 10143$as_echo "#define HAVE_WINT_T 1" >>confdefs.h 10144 10145 fi 10146 10147 10148 10149 10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 10151$as_echo_n "checking for intmax_t... " >&6; } 10152if test "${gt_cv_c_intmax_t+set}" = set; then : 10153 $as_echo_n "(cached) " >&6 10154else 10155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10156/* end confdefs.h. */ 10157 10158#include <stddef.h> 10159#include <stdlib.h> 10160#if HAVE_STDINT_H_WITH_UINTMAX 10161#include <stdint.h> 10162#endif 10163#if HAVE_INTTYPES_H_WITH_UINTMAX 10164#include <inttypes.h> 10165#endif 10166 10167int 10168main () 10169{ 10170intmax_t x = -1; 10171 return !x; 10172 ; 10173 return 0; 10174} 10175_ACEOF 10176if ac_fn_c_try_compile "$LINENO"; then : 10177 gt_cv_c_intmax_t=yes 10178else 10179 gt_cv_c_intmax_t=no 10180fi 10181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10182fi 10183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 10184$as_echo "$gt_cv_c_intmax_t" >&6; } 10185 if test $gt_cv_c_intmax_t = yes; then 10186 10187$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 10188 10189 fi 10190 10191 10192 10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 10194$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } 10195if test "${gt_cv_func_printf_posix+set}" = set; then : 10196 $as_echo_n "(cached) " >&6 10197else 10198 10199 if test "$cross_compiling" = yes; then : 10200 10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10202/* end confdefs.h. */ 10203 10204#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 10205 notposix 10206#endif 10207 10208_ACEOF 10209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10210 $EGREP "notposix" >/dev/null 2>&1; then : 10211 gt_cv_func_printf_posix="guessing no" 10212else 10213 gt_cv_func_printf_posix="guessing yes" 10214fi 10215rm -f conftest* 10216 10217 10218else 10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10220/* end confdefs.h. */ 10221 10222#include <stdio.h> 10223#include <string.h> 10224/* The string "%2$d %1$d", with dollar characters protected from the shell's 10225 dollar expansion (possibly an autoconf bug). */ 10226static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 10227static char buf[100]; 10228int main () 10229{ 10230 sprintf (buf, format, 33, 55); 10231 return (strcmp (buf, "55 33") != 0); 10232} 10233_ACEOF 10234if ac_fn_c_try_run "$LINENO"; then : 10235 gt_cv_func_printf_posix=yes 10236else 10237 gt_cv_func_printf_posix=no 10238fi 10239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10240 conftest.$ac_objext conftest.beam conftest.$ac_ext 10241fi 10242 10243 10244fi 10245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 10246$as_echo "$gt_cv_func_printf_posix" >&6; } 10247 case $gt_cv_func_printf_posix in 10248 *yes) 10249 10250$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h 10251 10252 ;; 10253 esac 10254 10255 10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 10257$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } 10258if test "${ac_cv_gnu_library_2_1+set}" = set; then : 10259 $as_echo_n "(cached) " >&6 10260else 10261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10262/* end confdefs.h. */ 10263 10264#include <features.h> 10265#ifdef __GNU_LIBRARY__ 10266 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 10267 Lucky GNU user 10268 #endif 10269#endif 10270 10271_ACEOF 10272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10273 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 10274 ac_cv_gnu_library_2_1=yes 10275else 10276 ac_cv_gnu_library_2_1=no 10277fi 10278rm -f conftest* 10279 10280 10281 10282fi 10283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 10284$as_echo "$ac_cv_gnu_library_2_1" >&6; } 10285 10286 GLIBC21="$ac_cv_gnu_library_2_1" 10287 10288 10289 10290 for ac_header in stdint.h 10291do : 10292 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 10293if test "x$ac_cv_header_stdint_h" = x""yes; then : 10294 cat >>confdefs.h <<_ACEOF 10295#define HAVE_STDINT_H 1 10296_ACEOF 10297 10298fi 10299 10300done 10301 10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 10303$as_echo_n "checking for SIZE_MAX... " >&6; } 10304 if test "${gl_cv_size_max+set}" = set; then : 10305 $as_echo_n "(cached) " >&6 10306else 10307 10308 gl_cv_size_max= 10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10310/* end confdefs.h. */ 10311 10312#include <limits.h> 10313#if HAVE_STDINT_H 10314#include <stdint.h> 10315#endif 10316#ifdef SIZE_MAX 10317Found it 10318#endif 10319 10320_ACEOF 10321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10322 $EGREP "Found it" >/dev/null 2>&1; then : 10323 gl_cv_size_max=yes 10324fi 10325rm -f conftest* 10326 10327 if test -z "$gl_cv_size_max"; then 10328 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> 10329#include <limits.h>"; then : 10330 10331else 10332 size_t_bits_minus_1= 10333fi 10334 10335 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : 10336 10337else 10338 fits_in_uint= 10339fi 10340 10341 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then 10342 if test $fits_in_uint = 1; then 10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10344/* end confdefs.h. */ 10345#include <stddef.h> 10346 extern size_t foo; 10347 extern unsigned long foo; 10348 10349int 10350main () 10351{ 10352 10353 ; 10354 return 0; 10355} 10356_ACEOF 10357if ac_fn_c_try_compile "$LINENO"; then : 10358 fits_in_uint=0 10359fi 10360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10361 fi 10362 if test $fits_in_uint = 1; then 10363 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" 10364 else 10365 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" 10366 fi 10367 else 10368 gl_cv_size_max='((size_t)~(size_t)0)' 10369 fi 10370 fi 10371 10372fi 10373 10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 10375$as_echo "$gl_cv_size_max" >&6; } 10376 if test "$gl_cv_size_max" != yes; then 10377 10378cat >>confdefs.h <<_ACEOF 10379#define SIZE_MAX $gl_cv_size_max 10380_ACEOF 10381 10382 fi 10383 10384 10385 10386 10387 for ac_header in stdint.h 10388do : 10389 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 10390if test "x$ac_cv_header_stdint_h" = x""yes; then : 10391 cat >>confdefs.h <<_ACEOF 10392#define HAVE_STDINT_H 1 10393_ACEOF 10394 10395fi 10396 10397done 10398 10399 10400 10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 10402$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 10403if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then : 10404 $as_echo_n "(cached) " >&6 10405else 10406 gt_save_LIBS="$LIBS" 10407 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10409/* end confdefs.h. */ 10410#include <CoreFoundation/CFPreferences.h> 10411int 10412main () 10413{ 10414CFPreferencesCopyAppValue(NULL, NULL) 10415 ; 10416 return 0; 10417} 10418_ACEOF 10419if ac_fn_c_try_link "$LINENO"; then : 10420 gt_cv_func_CFPreferencesCopyAppValue=yes 10421else 10422 gt_cv_func_CFPreferencesCopyAppValue=no 10423fi 10424rm -f core conftest.err conftest.$ac_objext \ 10425 conftest$ac_exeext conftest.$ac_ext 10426 LIBS="$gt_save_LIBS" 10427fi 10428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 10429$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 10430 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 10431 10432$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 10433 10434 fi 10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 10436$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 10437if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then : 10438 $as_echo_n "(cached) " >&6 10439else 10440 gt_save_LIBS="$LIBS" 10441 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10443/* end confdefs.h. */ 10444#include <CoreFoundation/CFLocale.h> 10445int 10446main () 10447{ 10448CFLocaleCopyCurrent(); 10449 ; 10450 return 0; 10451} 10452_ACEOF 10453if ac_fn_c_try_link "$LINENO"; then : 10454 gt_cv_func_CFLocaleCopyCurrent=yes 10455else 10456 gt_cv_func_CFLocaleCopyCurrent=no 10457fi 10458rm -f core conftest.err conftest.$ac_objext \ 10459 conftest$ac_exeext conftest.$ac_ext 10460 LIBS="$gt_save_LIBS" 10461fi 10462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 10463$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 10464 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 10465 10466$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 10467 10468 fi 10469 INTL_MACOSX_LIBS= 10470 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 10471 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 10472 fi 10473 10474 10475 10476 10477 10478 10479 10480 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 10481if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : 10482 10483else 10484 10485$as_echo "#define ptrdiff_t long" >>confdefs.h 10486 10487 10488fi 10489 10490 for ac_header in stddef.h stdlib.h string.h 10491do : 10492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10493ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10494eval as_val=\$$as_ac_Header 10495 if test "x$as_val" = x""yes; then : 10496 cat >>confdefs.h <<_ACEOF 10497#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10498_ACEOF 10499 10500fi 10501 10502done 10503 10504 for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen 10505do : 10506 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10507ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10508eval as_val=\$$as_ac_var 10509 if test "x$as_val" = x""yes; then : 10510 cat >>confdefs.h <<_ACEOF 10511#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10512_ACEOF 10513 10514fi 10515done 10516 10517 10518 10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 10520$as_echo_n "checking whether _snprintf is declared... " >&6; } 10521if test "${ac_cv_have_decl__snprintf+set}" = set; then : 10522 $as_echo_n "(cached) " >&6 10523else 10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10525/* end confdefs.h. */ 10526#include <stdio.h> 10527int 10528main () 10529{ 10530 10531#ifndef _snprintf 10532 char *p = (char *) _snprintf; 10533#endif 10534 10535 ; 10536 return 0; 10537} 10538_ACEOF 10539if ac_fn_c_try_compile "$LINENO"; then : 10540 ac_cv_have_decl__snprintf=yes 10541else 10542 ac_cv_have_decl__snprintf=no 10543fi 10544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10545fi 10546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 10547$as_echo "$ac_cv_have_decl__snprintf" >&6; } 10548 if test $ac_cv_have_decl__snprintf = yes; then 10549 gt_value=1 10550 else 10551 gt_value=0 10552 fi 10553 10554cat >>confdefs.h <<_ACEOF 10555#define HAVE_DECL__SNPRINTF $gt_value 10556_ACEOF 10557 10558 10559 10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 10561$as_echo_n "checking whether _snwprintf is declared... " >&6; } 10562if test "${ac_cv_have_decl__snwprintf+set}" = set; then : 10563 $as_echo_n "(cached) " >&6 10564else 10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10566/* end confdefs.h. */ 10567#include <stdio.h> 10568int 10569main () 10570{ 10571 10572#ifndef _snwprintf 10573 char *p = (char *) _snwprintf; 10574#endif 10575 10576 ; 10577 return 0; 10578} 10579_ACEOF 10580if ac_fn_c_try_compile "$LINENO"; then : 10581 ac_cv_have_decl__snwprintf=yes 10582else 10583 ac_cv_have_decl__snwprintf=no 10584fi 10585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10586fi 10587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 10588$as_echo "$ac_cv_have_decl__snwprintf" >&6; } 10589 if test $ac_cv_have_decl__snwprintf = yes; then 10590 gt_value=1 10591 else 10592 gt_value=0 10593 fi 10594 10595cat >>confdefs.h <<_ACEOF 10596#define HAVE_DECL__SNWPRINTF $gt_value 10597_ACEOF 10598 10599 10600 10601 10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 10603$as_echo_n "checking whether getc_unlocked is declared... " >&6; } 10604if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then : 10605 $as_echo_n "(cached) " >&6 10606else 10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10608/* end confdefs.h. */ 10609#include <stdio.h> 10610int 10611main () 10612{ 10613 10614#ifndef getc_unlocked 10615 char *p = (char *) getc_unlocked; 10616#endif 10617 10618 ; 10619 return 0; 10620} 10621_ACEOF 10622if ac_fn_c_try_compile "$LINENO"; then : 10623 ac_cv_have_decl_getc_unlocked=yes 10624else 10625 ac_cv_have_decl_getc_unlocked=no 10626fi 10627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10628fi 10629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 10630$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } 10631 if test $ac_cv_have_decl_getc_unlocked = yes; then 10632 gt_value=1 10633 else 10634 gt_value=0 10635 fi 10636 10637cat >>confdefs.h <<_ACEOF 10638#define HAVE_DECL_GETC_UNLOCKED $gt_value 10639_ACEOF 10640 10641 10642 10643 case $gt_cv_func_printf_posix in 10644 *yes) HAVE_POSIX_PRINTF=1 ;; 10645 *) HAVE_POSIX_PRINTF=0 ;; 10646 esac 10647 10648 if test "$ac_cv_func_asprintf" = yes; then 10649 HAVE_ASPRINTF=1 10650 else 10651 HAVE_ASPRINTF=0 10652 fi 10653 10654 if test "$ac_cv_func_snprintf" = yes; then 10655 HAVE_SNPRINTF=1 10656 else 10657 HAVE_SNPRINTF=0 10658 fi 10659 10660 if test "$ac_cv_func_wprintf" = yes; then 10661 HAVE_WPRINTF=1 10662 else 10663 HAVE_WPRINTF=0 10664 fi 10665 10666 10667 10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 10669$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 10670if test "${am_cv_langinfo_codeset+set}" = set; then : 10671 $as_echo_n "(cached) " >&6 10672else 10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10674/* end confdefs.h. */ 10675#include <langinfo.h> 10676int 10677main () 10678{ 10679char* cs = nl_langinfo(CODESET); return !cs; 10680 ; 10681 return 0; 10682} 10683_ACEOF 10684if ac_fn_c_try_link "$LINENO"; then : 10685 am_cv_langinfo_codeset=yes 10686else 10687 am_cv_langinfo_codeset=no 10688fi 10689rm -f core conftest.err conftest.$ac_objext \ 10690 conftest$ac_exeext conftest.$ac_ext 10691 10692fi 10693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 10694$as_echo "$am_cv_langinfo_codeset" >&6; } 10695 if test $am_cv_langinfo_codeset = yes; then 10696 10697$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 10698 10699 fi 10700 10701 10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 10703$as_echo_n "checking for LC_MESSAGES... " >&6; } 10704if test "${gt_cv_val_LC_MESSAGES+set}" = set; then : 10705 $as_echo_n "(cached) " >&6 10706else 10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10708/* end confdefs.h. */ 10709#include <locale.h> 10710int 10711main () 10712{ 10713return LC_MESSAGES 10714 ; 10715 return 0; 10716} 10717_ACEOF 10718if ac_fn_c_try_link "$LINENO"; then : 10719 gt_cv_val_LC_MESSAGES=yes 10720else 10721 gt_cv_val_LC_MESSAGES=no 10722fi 10723rm -f core conftest.err conftest.$ac_objext \ 10724 conftest$ac_exeext conftest.$ac_ext 10725fi 10726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 10727$as_echo "$gt_cv_val_LC_MESSAGES" >&6; } 10728 if test $gt_cv_val_LC_MESSAGES = yes; then 10729 10730$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 10731 10732 fi 10733 10734 10735 if test "$enable_shared" = yes; then 10736 case "$host_os" in 10737 mingw* | cygwin*) is_woe32dll=yes ;; 10738 *) is_woe32dll=no ;; 10739 esac 10740 else 10741 is_woe32dll=no 10742 fi 10743 WOE32DLL=$is_woe32dll 10744 10745 10746 case "$host_os" in 10747 mingw* | cygwin*) is_woe32=yes ;; 10748 *) is_woe32=no ;; 10749 esac 10750 WOE32=$is_woe32 10751 10752 if test $WOE32 = yes; then 10753 if test -n "$ac_tool_prefix"; then 10754 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 10755set dummy ${ac_tool_prefix}windres; ac_word=$2 10756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10757$as_echo_n "checking for $ac_word... " >&6; } 10758if test "${ac_cv_prog_WINDRES+set}" = set; then : 10759 $as_echo_n "(cached) " >&6 10760else 10761 if test -n "$WINDRES"; then 10762 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 10763else 10764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10765for as_dir in $PATH 10766do 10767 IFS=$as_save_IFS 10768 test -z "$as_dir" && as_dir=. 10769 for ac_exec_ext in '' $ac_executable_extensions; do 10770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10771 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 10772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10773 break 2 10774 fi 10775done 10776 done 10777IFS=$as_save_IFS 10778 10779fi 10780fi 10781WINDRES=$ac_cv_prog_WINDRES 10782if test -n "$WINDRES"; then 10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 10784$as_echo "$WINDRES" >&6; } 10785else 10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10787$as_echo "no" >&6; } 10788fi 10789 10790 10791fi 10792if test -z "$ac_cv_prog_WINDRES"; then 10793 ac_ct_WINDRES=$WINDRES 10794 # Extract the first word of "windres", so it can be a program name with args. 10795set dummy windres; ac_word=$2 10796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10797$as_echo_n "checking for $ac_word... " >&6; } 10798if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then : 10799 $as_echo_n "(cached) " >&6 10800else 10801 if test -n "$ac_ct_WINDRES"; then 10802 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 10803else 10804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10805for as_dir in $PATH 10806do 10807 IFS=$as_save_IFS 10808 test -z "$as_dir" && as_dir=. 10809 for ac_exec_ext in '' $ac_executable_extensions; do 10810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10811 ac_cv_prog_ac_ct_WINDRES="windres" 10812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10813 break 2 10814 fi 10815done 10816 done 10817IFS=$as_save_IFS 10818 10819fi 10820fi 10821ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 10822if test -n "$ac_ct_WINDRES"; then 10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 10824$as_echo "$ac_ct_WINDRES" >&6; } 10825else 10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10827$as_echo "no" >&6; } 10828fi 10829 10830 if test "x$ac_ct_WINDRES" = x; then 10831 WINDRES="" 10832 else 10833 case $cross_compiling:$ac_tool_warned in 10834yes:) 10835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10837ac_tool_warned=yes ;; 10838esac 10839 WINDRES=$ac_ct_WINDRES 10840 fi 10841else 10842 WINDRES="$ac_cv_prog_WINDRES" 10843fi 10844 10845 fi 10846 10847 case "$host_os" in 10848 hpux*) LTLIBC="" ;; 10849 *) LTLIBC="-lc" ;; 10850 esac 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 10878$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 10879if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then : 10880 $as_echo_n "(cached) " >&6 10881else 10882 gt_save_LIBS="$LIBS" 10883 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10885/* end confdefs.h. */ 10886#include <CoreFoundation/CFPreferences.h> 10887int 10888main () 10889{ 10890CFPreferencesCopyAppValue(NULL, NULL) 10891 ; 10892 return 0; 10893} 10894_ACEOF 10895if ac_fn_c_try_link "$LINENO"; then : 10896 gt_cv_func_CFPreferencesCopyAppValue=yes 10897else 10898 gt_cv_func_CFPreferencesCopyAppValue=no 10899fi 10900rm -f core conftest.err conftest.$ac_objext \ 10901 conftest$ac_exeext conftest.$ac_ext 10902 LIBS="$gt_save_LIBS" 10903fi 10904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 10905$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 10906 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 10907 10908$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 10909 10910 fi 10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 10912$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 10913if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then : 10914 $as_echo_n "(cached) " >&6 10915else 10916 gt_save_LIBS="$LIBS" 10917 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 10918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10919/* end confdefs.h. */ 10920#include <CoreFoundation/CFLocale.h> 10921int 10922main () 10923{ 10924CFLocaleCopyCurrent(); 10925 ; 10926 return 0; 10927} 10928_ACEOF 10929if ac_fn_c_try_link "$LINENO"; then : 10930 gt_cv_func_CFLocaleCopyCurrent=yes 10931else 10932 gt_cv_func_CFLocaleCopyCurrent=no 10933fi 10934rm -f core conftest.err conftest.$ac_objext \ 10935 conftest$ac_exeext conftest.$ac_ext 10936 LIBS="$gt_save_LIBS" 10937fi 10938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 10939$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 10940 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 10941 10942$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 10943 10944 fi 10945 INTL_MACOSX_LIBS= 10946 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 10947 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 10948 fi 10949 10950 10951 10952 10953 10954 10955 BUILD_INCLUDED_LIBINTL=no 10956 USE_INCLUDED_LIBINTL=no 10957 10958 LIBINTL= 10959 LTLIBINTL= 10960 POSUB= 10961 10962 case " $gt_needs " in 10963 *" need-formatstring-macros "*) gt_api_version=3 ;; 10964 *" need-ngettext "*) gt_api_version=2 ;; 10965 *) gt_api_version=1 ;; 10966 esac 10967 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 10968 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 10969 10970 if test "$USE_NLS" = "yes"; then 10971 gt_use_preinstalled_gnugettext=no 10972 10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 10974$as_echo_n "checking whether included gettext is requested... " >&6; } 10975 10976# Check whether --with-included-gettext was given. 10977if test "${with_included_gettext+set}" = set; then : 10978 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 10979else 10980 nls_cv_force_use_gnu_gettext=no 10981fi 10982 10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 10984$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } 10985 10986 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 10987 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 10988 10989 10990 if test $gt_api_version -ge 3; then 10991 gt_revision_test_code=' 10992#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 10993#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 10994#endif 10995typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 10996' 10997 else 10998 gt_revision_test_code= 10999 fi 11000 if test $gt_api_version -ge 2; then 11001 gt_expression_test_code=' + * ngettext ("", "", 0)' 11002 else 11003 gt_expression_test_code= 11004 fi 11005 11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 11007$as_echo_n "checking for GNU gettext in libc... " >&6; } 11008if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then : 11009 $as_echo_n "(cached) " >&6 11010else 11011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11012/* end confdefs.h. */ 11013#include <libintl.h> 11014$gt_revision_test_code 11015extern int _nl_msg_cat_cntr; 11016extern int *_nl_domain_bindings; 11017int 11018main () 11019{ 11020bindtextdomain ("", ""); 11021return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 11022 ; 11023 return 0; 11024} 11025_ACEOF 11026if ac_fn_c_try_link "$LINENO"; then : 11027 eval "$gt_func_gnugettext_libc=yes" 11028else 11029 eval "$gt_func_gnugettext_libc=no" 11030fi 11031rm -f core conftest.err conftest.$ac_objext \ 11032 conftest$ac_exeext conftest.$ac_ext 11033fi 11034eval ac_res=\$$gt_func_gnugettext_libc 11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11036$as_echo "$ac_res" >&6; } 11037 11038 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 11039 11040 11041 11042 11043 11044 use_additional=yes 11045 11046 acl_save_prefix="$prefix" 11047 prefix="$acl_final_prefix" 11048 acl_save_exec_prefix="$exec_prefix" 11049 exec_prefix="$acl_final_exec_prefix" 11050 11051 eval additional_includedir=\"$includedir\" 11052 eval additional_libdir=\"$libdir\" 11053 11054 exec_prefix="$acl_save_exec_prefix" 11055 prefix="$acl_save_prefix" 11056 11057 11058# Check whether --with-libintl-prefix was given. 11059if test "${with_libintl_prefix+set}" = set; then : 11060 withval=$with_libintl_prefix; 11061 if test "X$withval" = "Xno"; then 11062 use_additional=no 11063 else 11064 if test "X$withval" = "X"; then 11065 11066 acl_save_prefix="$prefix" 11067 prefix="$acl_final_prefix" 11068 acl_save_exec_prefix="$exec_prefix" 11069 exec_prefix="$acl_final_exec_prefix" 11070 11071 eval additional_includedir=\"$includedir\" 11072 eval additional_libdir=\"$libdir\" 11073 11074 exec_prefix="$acl_save_exec_prefix" 11075 prefix="$acl_save_prefix" 11076 11077 else 11078 additional_includedir="$withval/include" 11079 additional_libdir="$withval/$acl_libdirstem" 11080 fi 11081 fi 11082 11083fi 11084 11085 LIBINTL= 11086 LTLIBINTL= 11087 INCINTL= 11088 LIBINTL_PREFIX= 11089 rpathdirs= 11090 ltrpathdirs= 11091 names_already_handled= 11092 names_next_round='intl ' 11093 while test -n "$names_next_round"; do 11094 names_this_round="$names_next_round" 11095 names_next_round= 11096 for name in $names_this_round; do 11097 already_handled= 11098 for n in $names_already_handled; do 11099 if test "$n" = "$name"; then 11100 already_handled=yes 11101 break 11102 fi 11103 done 11104 if test -z "$already_handled"; then 11105 names_already_handled="$names_already_handled $name" 11106 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 11107 eval value=\"\$HAVE_LIB$uppername\" 11108 if test -n "$value"; then 11109 if test "$value" = yes; then 11110 eval value=\"\$LIB$uppername\" 11111 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 11112 eval value=\"\$LTLIB$uppername\" 11113 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 11114 else 11115 : 11116 fi 11117 else 11118 found_dir= 11119 found_la= 11120 found_so= 11121 found_a= 11122 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 11123 if test -n "$acl_shlibext"; then 11124 shrext=".$acl_shlibext" # typically: shrext=.so 11125 else 11126 shrext= 11127 fi 11128 if test $use_additional = yes; then 11129 dir="$additional_libdir" 11130 if test -n "$acl_shlibext"; then 11131 if test -f "$dir/$libname$shrext"; then 11132 found_dir="$dir" 11133 found_so="$dir/$libname$shrext" 11134 else 11135 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 11136 ver=`(cd "$dir" && \ 11137 for f in "$libname$shrext".*; do echo "$f"; done \ 11138 | sed -e "s,^$libname$shrext\\\\.,," \ 11139 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 11140 | sed 1q ) 2>/dev/null` 11141 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 11142 found_dir="$dir" 11143 found_so="$dir/$libname$shrext.$ver" 11144 fi 11145 else 11146 eval library_names=\"$acl_library_names_spec\" 11147 for f in $library_names; do 11148 if test -f "$dir/$f"; then 11149 found_dir="$dir" 11150 found_so="$dir/$f" 11151 break 11152 fi 11153 done 11154 fi 11155 fi 11156 fi 11157 if test "X$found_dir" = "X"; then 11158 if test -f "$dir/$libname.$acl_libext"; then 11159 found_dir="$dir" 11160 found_a="$dir/$libname.$acl_libext" 11161 fi 11162 fi 11163 if test "X$found_dir" != "X"; then 11164 if test -f "$dir/$libname.la"; then 11165 found_la="$dir/$libname.la" 11166 fi 11167 fi 11168 fi 11169 if test "X$found_dir" = "X"; then 11170 for x in $LDFLAGS $LTLIBINTL; do 11171 11172 acl_save_prefix="$prefix" 11173 prefix="$acl_final_prefix" 11174 acl_save_exec_prefix="$exec_prefix" 11175 exec_prefix="$acl_final_exec_prefix" 11176 eval x=\"$x\" 11177 exec_prefix="$acl_save_exec_prefix" 11178 prefix="$acl_save_prefix" 11179 11180 case "$x" in 11181 -L*) 11182 dir=`echo "X$x" | sed -e 's/^X-L//'` 11183 if test -n "$acl_shlibext"; then 11184 if test -f "$dir/$libname$shrext"; then 11185 found_dir="$dir" 11186 found_so="$dir/$libname$shrext" 11187 else 11188 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 11189 ver=`(cd "$dir" && \ 11190 for f in "$libname$shrext".*; do echo "$f"; done \ 11191 | sed -e "s,^$libname$shrext\\\\.,," \ 11192 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 11193 | sed 1q ) 2>/dev/null` 11194 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 11195 found_dir="$dir" 11196 found_so="$dir/$libname$shrext.$ver" 11197 fi 11198 else 11199 eval library_names=\"$acl_library_names_spec\" 11200 for f in $library_names; do 11201 if test -f "$dir/$f"; then 11202 found_dir="$dir" 11203 found_so="$dir/$f" 11204 break 11205 fi 11206 done 11207 fi 11208 fi 11209 fi 11210 if test "X$found_dir" = "X"; then 11211 if test -f "$dir/$libname.$acl_libext"; then 11212 found_dir="$dir" 11213 found_a="$dir/$libname.$acl_libext" 11214 fi 11215 fi 11216 if test "X$found_dir" != "X"; then 11217 if test -f "$dir/$libname.la"; then 11218 found_la="$dir/$libname.la" 11219 fi 11220 fi 11221 ;; 11222 esac 11223 if test "X$found_dir" != "X"; then 11224 break 11225 fi 11226 done 11227 fi 11228 if test "X$found_dir" != "X"; then 11229 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 11230 if test "X$found_so" != "X"; then 11231 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 11232 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 11233 else 11234 haveit= 11235 for x in $ltrpathdirs; do 11236 if test "X$x" = "X$found_dir"; then 11237 haveit=yes 11238 break 11239 fi 11240 done 11241 if test -z "$haveit"; then 11242 ltrpathdirs="$ltrpathdirs $found_dir" 11243 fi 11244 if test "$acl_hardcode_direct" = yes; then 11245 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 11246 else 11247 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 11248 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 11249 haveit= 11250 for x in $rpathdirs; do 11251 if test "X$x" = "X$found_dir"; then 11252 haveit=yes 11253 break 11254 fi 11255 done 11256 if test -z "$haveit"; then 11257 rpathdirs="$rpathdirs $found_dir" 11258 fi 11259 else 11260 haveit= 11261 for x in $LDFLAGS $LIBINTL; do 11262 11263 acl_save_prefix="$prefix" 11264 prefix="$acl_final_prefix" 11265 acl_save_exec_prefix="$exec_prefix" 11266 exec_prefix="$acl_final_exec_prefix" 11267 eval x=\"$x\" 11268 exec_prefix="$acl_save_exec_prefix" 11269 prefix="$acl_save_prefix" 11270 11271 if test "X$x" = "X-L$found_dir"; then 11272 haveit=yes 11273 break 11274 fi 11275 done 11276 if test -z "$haveit"; then 11277 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 11278 fi 11279 if test "$acl_hardcode_minus_L" != no; then 11280 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 11281 else 11282 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 11283 fi 11284 fi 11285 fi 11286 fi 11287 else 11288 if test "X$found_a" != "X"; then 11289 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 11290 else 11291 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 11292 fi 11293 fi 11294 additional_includedir= 11295 case "$found_dir" in 11296 */$acl_libdirstem | */$acl_libdirstem/) 11297 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 11298 LIBINTL_PREFIX="$basedir" 11299 additional_includedir="$basedir/include" 11300 ;; 11301 esac 11302 if test "X$additional_includedir" != "X"; then 11303 if test "X$additional_includedir" != "X/usr/include"; then 11304 haveit= 11305 if test "X$additional_includedir" = "X/usr/local/include"; then 11306 if test -n "$GCC"; then 11307 case $host_os in 11308 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 11309 esac 11310 fi 11311 fi 11312 if test -z "$haveit"; then 11313 for x in $CPPFLAGS $INCINTL; do 11314 11315 acl_save_prefix="$prefix" 11316 prefix="$acl_final_prefix" 11317 acl_save_exec_prefix="$exec_prefix" 11318 exec_prefix="$acl_final_exec_prefix" 11319 eval x=\"$x\" 11320 exec_prefix="$acl_save_exec_prefix" 11321 prefix="$acl_save_prefix" 11322 11323 if test "X$x" = "X-I$additional_includedir"; then 11324 haveit=yes 11325 break 11326 fi 11327 done 11328 if test -z "$haveit"; then 11329 if test -d "$additional_includedir"; then 11330 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 11331 fi 11332 fi 11333 fi 11334 fi 11335 fi 11336 if test -n "$found_la"; then 11337 save_libdir="$libdir" 11338 case "$found_la" in 11339 */* | *\\*) . "$found_la" ;; 11340 *) . "./$found_la" ;; 11341 esac 11342 libdir="$save_libdir" 11343 for dep in $dependency_libs; do 11344 case "$dep" in 11345 -L*) 11346 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 11347 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 11348 haveit= 11349 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 11350 if test -n "$GCC"; then 11351 case $host_os in 11352 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 11353 esac 11354 fi 11355 fi 11356 if test -z "$haveit"; then 11357 haveit= 11358 for x in $LDFLAGS $LIBINTL; do 11359 11360 acl_save_prefix="$prefix" 11361 prefix="$acl_final_prefix" 11362 acl_save_exec_prefix="$exec_prefix" 11363 exec_prefix="$acl_final_exec_prefix" 11364 eval x=\"$x\" 11365 exec_prefix="$acl_save_exec_prefix" 11366 prefix="$acl_save_prefix" 11367 11368 if test "X$x" = "X-L$additional_libdir"; then 11369 haveit=yes 11370 break 11371 fi 11372 done 11373 if test -z "$haveit"; then 11374 if test -d "$additional_libdir"; then 11375 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 11376 fi 11377 fi 11378 haveit= 11379 for x in $LDFLAGS $LTLIBINTL; do 11380 11381 acl_save_prefix="$prefix" 11382 prefix="$acl_final_prefix" 11383 acl_save_exec_prefix="$exec_prefix" 11384 exec_prefix="$acl_final_exec_prefix" 11385 eval x=\"$x\" 11386 exec_prefix="$acl_save_exec_prefix" 11387 prefix="$acl_save_prefix" 11388 11389 if test "X$x" = "X-L$additional_libdir"; then 11390 haveit=yes 11391 break 11392 fi 11393 done 11394 if test -z "$haveit"; then 11395 if test -d "$additional_libdir"; then 11396 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 11397 fi 11398 fi 11399 fi 11400 fi 11401 ;; 11402 -R*) 11403 dir=`echo "X$dep" | sed -e 's/^X-R//'` 11404 if test "$enable_rpath" != no; then 11405 haveit= 11406 for x in $rpathdirs; do 11407 if test "X$x" = "X$dir"; then 11408 haveit=yes 11409 break 11410 fi 11411 done 11412 if test -z "$haveit"; then 11413 rpathdirs="$rpathdirs $dir" 11414 fi 11415 haveit= 11416 for x in $ltrpathdirs; do 11417 if test "X$x" = "X$dir"; then 11418 haveit=yes 11419 break 11420 fi 11421 done 11422 if test -z "$haveit"; then 11423 ltrpathdirs="$ltrpathdirs $dir" 11424 fi 11425 fi 11426 ;; 11427 -l*) 11428 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 11429 ;; 11430 *.la) 11431 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 11432 ;; 11433 *) 11434 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 11435 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 11436 ;; 11437 esac 11438 done 11439 fi 11440 else 11441 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 11442 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 11443 fi 11444 fi 11445 fi 11446 done 11447 done 11448 if test "X$rpathdirs" != "X"; then 11449 if test -n "$acl_hardcode_libdir_separator"; then 11450 alldirs= 11451 for found_dir in $rpathdirs; do 11452 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 11453 done 11454 acl_save_libdir="$libdir" 11455 libdir="$alldirs" 11456 eval flag=\"$acl_hardcode_libdir_flag_spec\" 11457 libdir="$acl_save_libdir" 11458 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 11459 else 11460 for found_dir in $rpathdirs; do 11461 acl_save_libdir="$libdir" 11462 libdir="$found_dir" 11463 eval flag=\"$acl_hardcode_libdir_flag_spec\" 11464 libdir="$acl_save_libdir" 11465 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 11466 done 11467 fi 11468 fi 11469 if test "X$ltrpathdirs" != "X"; then 11470 for found_dir in $ltrpathdirs; do 11471 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 11472 done 11473 fi 11474 11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 11476$as_echo_n "checking for GNU gettext in libintl... " >&6; } 11477if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then : 11478 $as_echo_n "(cached) " >&6 11479else 11480 gt_save_CPPFLAGS="$CPPFLAGS" 11481 CPPFLAGS="$CPPFLAGS $INCINTL" 11482 gt_save_LIBS="$LIBS" 11483 LIBS="$LIBS $LIBINTL" 11484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11485/* end confdefs.h. */ 11486#include <libintl.h> 11487$gt_revision_test_code 11488extern int _nl_msg_cat_cntr; 11489extern 11490#ifdef __cplusplus 11491"C" 11492#endif 11493const char *_nl_expand_alias (const char *); 11494int 11495main () 11496{ 11497bindtextdomain ("", ""); 11498return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 11499 ; 11500 return 0; 11501} 11502_ACEOF 11503if ac_fn_c_try_link "$LINENO"; then : 11504 eval "$gt_func_gnugettext_libintl=yes" 11505else 11506 eval "$gt_func_gnugettext_libintl=no" 11507fi 11508rm -f core conftest.err conftest.$ac_objext \ 11509 conftest$ac_exeext conftest.$ac_ext 11510 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 11511 LIBS="$LIBS $LIBICONV" 11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11513/* end confdefs.h. */ 11514#include <libintl.h> 11515$gt_revision_test_code 11516extern int _nl_msg_cat_cntr; 11517extern 11518#ifdef __cplusplus 11519"C" 11520#endif 11521const char *_nl_expand_alias (const char *); 11522int 11523main () 11524{ 11525bindtextdomain ("", ""); 11526return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 11527 ; 11528 return 0; 11529} 11530_ACEOF 11531if ac_fn_c_try_link "$LINENO"; then : 11532 LIBINTL="$LIBINTL $LIBICONV" 11533 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 11534 eval "$gt_func_gnugettext_libintl=yes" 11535 11536fi 11537rm -f core conftest.err conftest.$ac_objext \ 11538 conftest$ac_exeext conftest.$ac_ext 11539 fi 11540 CPPFLAGS="$gt_save_CPPFLAGS" 11541 LIBS="$gt_save_LIBS" 11542fi 11543eval ac_res=\$$gt_func_gnugettext_libintl 11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11545$as_echo "$ac_res" >&6; } 11546 fi 11547 11548 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 11549 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 11550 && test "$PACKAGE" != gettext-runtime \ 11551 && test "$PACKAGE" != gettext-tools; }; then 11552 gt_use_preinstalled_gnugettext=yes 11553 else 11554 LIBINTL= 11555 LTLIBINTL= 11556 INCINTL= 11557 fi 11558 11559 11560 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 11561 nls_cv_use_gnu_gettext=yes 11562 fi 11563 fi 11564 11565 if test "$nls_cv_use_gnu_gettext" = "yes"; then 11566 BUILD_INCLUDED_LIBINTL=yes 11567 USE_INCLUDED_LIBINTL=yes 11568 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD" 11569 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD" 11570 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 11571 fi 11572 11573 CATOBJEXT= 11574 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 11575 || test "$nls_cv_use_gnu_gettext" = "yes"; then 11576 CATOBJEXT=.gmo 11577 fi 11578 11579 11580 if test -n "$INTL_MACOSX_LIBS"; then 11581 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 11582 || test "$nls_cv_use_gnu_gettext" = "yes"; then 11583 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 11584 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 11585 fi 11586 fi 11587 11588 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 11589 || test "$nls_cv_use_gnu_gettext" = "yes"; then 11590 11591$as_echo "#define ENABLE_NLS 1" >>confdefs.h 11592 11593 else 11594 USE_NLS=no 11595 fi 11596 fi 11597 11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 11599$as_echo_n "checking whether to use NLS... " >&6; } 11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 11601$as_echo "$USE_NLS" >&6; } 11602 if test "$USE_NLS" = "yes"; then 11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 11604$as_echo_n "checking where the gettext function comes from... " >&6; } 11605 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 11606 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 11607 gt_source="external libintl" 11608 else 11609 gt_source="libc" 11610 fi 11611 else 11612 gt_source="included intl directory" 11613 fi 11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 11615$as_echo "$gt_source" >&6; } 11616 fi 11617 11618 if test "$USE_NLS" = "yes"; then 11619 11620 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 11621 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 11623$as_echo_n "checking how to link with libintl... " >&6; } 11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 11625$as_echo "$LIBINTL" >&6; } 11626 11627 for element in $INCINTL; do 11628 haveit= 11629 for x in $CPPFLAGS; do 11630 11631 acl_save_prefix="$prefix" 11632 prefix="$acl_final_prefix" 11633 acl_save_exec_prefix="$exec_prefix" 11634 exec_prefix="$acl_final_exec_prefix" 11635 eval x=\"$x\" 11636 exec_prefix="$acl_save_exec_prefix" 11637 prefix="$acl_save_prefix" 11638 11639 if test "X$x" = "X$element"; then 11640 haveit=yes 11641 break 11642 fi 11643 done 11644 if test -z "$haveit"; then 11645 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 11646 fi 11647 done 11648 11649 fi 11650 11651 11652$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 11653 11654 11655$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 11656 11657 fi 11658 11659 POSUB=po 11660 fi 11661 11662 11663 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 11664 BUILD_INCLUDED_LIBINTL=yes 11665 fi 11666 11667 11668 11669 11670 11671 nls_cv_header_intl= 11672 nls_cv_header_libgt= 11673 11674 DATADIRNAME=share 11675 11676 11677 INSTOBJEXT=.mo 11678 11679 11680 GENCAT=gencat 11681 11682 11683 INTLOBJS= 11684 if test "$USE_INCLUDED_LIBINTL" = yes; then 11685 INTLOBJS="\$(GETTOBJS)" 11686 fi 11687 11688 11689 INTL_LIBTOOL_SUFFIX_PREFIX= 11690 11691 11692 11693 INTLLIBS="$LIBINTL" 11694 11695 11696 11697 11698 11699 11700if test "x$HOST_OS" = "xMinGW"; then 11701 LTLIBINTL="" 11702 LIBINTL="" 11703 INTLLIBS="-lintl" 11704 INTLOBJS="" 11705 USE_INCLUDED_LIBINTL=no 11706 BUILD_INCLUDED_LIBINTL=no 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disable building libintl for MinGW compilation" >&5 11708$as_echo "$as_me: WARNING: Disable building libintl for MinGW compilation" >&2;} 11709fi 11710if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then 11711 11712$as_echo "#define USE_INCLUDED_LIBINTL 1" >>confdefs.h 11713 11714fi 11715 11716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5 11717$as_echo_n "checking for crc32 in -lz... " >&6; } 11718if test "${ac_cv_lib_z_crc32+set}" = set; then : 11719 $as_echo_n "(cached) " >&6 11720else 11721 ac_check_lib_save_LIBS=$LIBS 11722LIBS="-lz $LIBS" 11723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11724/* end confdefs.h. */ 11725 11726/* Override any GCC internal prototype to avoid an error. 11727 Use char because int might match the return type of a GCC 11728 builtin and then its argument prototype would still apply. */ 11729#ifdef __cplusplus 11730extern "C" 11731#endif 11732char crc32 (); 11733int 11734main () 11735{ 11736return crc32 (); 11737 ; 11738 return 0; 11739} 11740_ACEOF 11741if ac_fn_c_try_link "$LINENO"; then : 11742 ac_cv_lib_z_crc32=yes 11743else 11744 ac_cv_lib_z_crc32=no 11745fi 11746rm -f core conftest.err conftest.$ac_objext \ 11747 conftest$ac_exeext conftest.$ac_ext 11748LIBS=$ac_check_lib_save_LIBS 11749fi 11750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5 11751$as_echo "$ac_cv_lib_z_crc32" >&6; } 11752if test "x$ac_cv_lib_z_crc32" = x""yes; then : 11753 have_libz=-lz 11754else 11755 have_libz=no 11756fi 11757 11758if test x$have_libz = xno; then 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lzdll" >&5 11760$as_echo_n "checking for crc32 in -lzdll... " >&6; } 11761if test "${ac_cv_lib_zdll_crc32+set}" = set; then : 11762 $as_echo_n "(cached) " >&6 11763else 11764 ac_check_lib_save_LIBS=$LIBS 11765LIBS="-lzdll $LIBS" 11766cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11767/* end confdefs.h. */ 11768 11769/* Override any GCC internal prototype to avoid an error. 11770 Use char because int might match the return type of a GCC 11771 builtin and then its argument prototype would still apply. */ 11772#ifdef __cplusplus 11773extern "C" 11774#endif 11775char crc32 (); 11776int 11777main () 11778{ 11779return crc32 (); 11780 ; 11781 return 0; 11782} 11783_ACEOF 11784if ac_fn_c_try_link "$LINENO"; then : 11785 ac_cv_lib_zdll_crc32=yes 11786else 11787 ac_cv_lib_zdll_crc32=no 11788fi 11789rm -f core conftest.err conftest.$ac_objext \ 11790 conftest$ac_exeext conftest.$ac_ext 11791LIBS=$ac_check_lib_save_LIBS 11792fi 11793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zdll_crc32" >&5 11794$as_echo "$ac_cv_lib_zdll_crc32" >&6; } 11795if test "x$ac_cv_lib_zdll_crc32" = x""yes; then : 11796 have_libz=-lzdll 11797else 11798 have_libz=no 11799fi 11800 11801fi 11802if test x$have_libz = xno; then 11803 as_fn_error "Cannot link libz -- check CFLAGS/LDFLAGS" "$LINENO" 5 11804else 11805 LIBS="$LIBS $have_libz" 11806fi 11807 11808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 11809$as_echo_n "checking for pow in -lm... " >&6; } 11810if test "${ac_cv_lib_m_pow+set}" = set; then : 11811 $as_echo_n "(cached) " >&6 11812else 11813 ac_check_lib_save_LIBS=$LIBS 11814LIBS="-lm $LIBS" 11815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11816/* end confdefs.h. */ 11817 11818/* Override any GCC internal prototype to avoid an error. 11819 Use char because int might match the return type of a GCC 11820 builtin and then its argument prototype would still apply. */ 11821#ifdef __cplusplus 11822extern "C" 11823#endif 11824char pow (); 11825int 11826main () 11827{ 11828return pow (); 11829 ; 11830 return 0; 11831} 11832_ACEOF 11833if ac_fn_c_try_link "$LINENO"; then : 11834 ac_cv_lib_m_pow=yes 11835else 11836 ac_cv_lib_m_pow=no 11837fi 11838rm -f core conftest.err conftest.$ac_objext \ 11839 conftest$ac_exeext conftest.$ac_ext 11840LIBS=$ac_check_lib_save_LIBS 11841fi 11842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 11843$as_echo "$ac_cv_lib_m_pow" >&6; } 11844if test "x$ac_cv_lib_m_pow" = x""yes; then : 11845 cat >>confdefs.h <<_ACEOF 11846#define HAVE_LIBM 1 11847_ACEOF 11848 11849 LIBS="-lm $LIBS" 11850 11851else 11852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot link libm -- check CFLAGS/LDFLAGS" >&5 11853$as_echo "$as_me: WARNING: Cannot link libm -- check CFLAGS/LDFLAGS" >&2;} 11854fi 11855 11856 11857 if false; then 11858 HAVE_CPPUNIT_TRUE= 11859 HAVE_CPPUNIT_FALSE='#' 11860else 11861 HAVE_CPPUNIT_TRUE='#' 11862 HAVE_CPPUNIT_FALSE= 11863fi 11864 11865 11866 11867 11868if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11869 if test -n "$ac_tool_prefix"; then 11870 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11871set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11873$as_echo_n "checking for $ac_word... " >&6; } 11874if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11875 $as_echo_n "(cached) " >&6 11876else 11877 case $PKG_CONFIG in 11878 [\\/]* | ?:[\\/]*) 11879 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11880 ;; 11881 *) 11882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11883for as_dir in $PATH 11884do 11885 IFS=$as_save_IFS 11886 test -z "$as_dir" && as_dir=. 11887 for ac_exec_ext in '' $ac_executable_extensions; do 11888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11889 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11891 break 2 11892 fi 11893done 11894 done 11895IFS=$as_save_IFS 11896 11897 ;; 11898esac 11899fi 11900PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11901if test -n "$PKG_CONFIG"; then 11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11903$as_echo "$PKG_CONFIG" >&6; } 11904else 11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11906$as_echo "no" >&6; } 11907fi 11908 11909 11910fi 11911if test -z "$ac_cv_path_PKG_CONFIG"; then 11912 ac_pt_PKG_CONFIG=$PKG_CONFIG 11913 # Extract the first word of "pkg-config", so it can be a program name with args. 11914set dummy pkg-config; ac_word=$2 11915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11916$as_echo_n "checking for $ac_word... " >&6; } 11917if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 11918 $as_echo_n "(cached) " >&6 11919else 11920 case $ac_pt_PKG_CONFIG in 11921 [\\/]* | ?:[\\/]*) 11922 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11923 ;; 11924 *) 11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11926for as_dir in $PATH 11927do 11928 IFS=$as_save_IFS 11929 test -z "$as_dir" && as_dir=. 11930 for ac_exec_ext in '' $ac_executable_extensions; do 11931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11932 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11934 break 2 11935 fi 11936done 11937 done 11938IFS=$as_save_IFS 11939 11940 ;; 11941esac 11942fi 11943ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11944if test -n "$ac_pt_PKG_CONFIG"; then 11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11946$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11947else 11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11949$as_echo "no" >&6; } 11950fi 11951 11952 if test "x$ac_pt_PKG_CONFIG" = x; then 11953 PKG_CONFIG="" 11954 else 11955 case $cross_compiling:$ac_tool_warned in 11956yes:) 11957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11959ac_tool_warned=yes ;; 11960esac 11961 PKG_CONFIG=$ac_pt_PKG_CONFIG 11962 fi 11963else 11964 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11965fi 11966 11967fi 11968if test -n "$PKG_CONFIG"; then 11969 _pkg_min_version=0.20 11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11971$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11972 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11974$as_echo "yes" >&6; } 11975 else 11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11977$as_echo "no" >&6; } 11978 PKG_CONFIG="" 11979 fi 11980 11981fi 11982 11983pkg_failed=no 11984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 11985$as_echo_n "checking for GTK... " >&6; } 11986 11987if test -n "$PKG_CONFIG"; then 11988 if test -n "$GTK_CFLAGS"; then 11989 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" 11990 else 11991 if test -n "$PKG_CONFIG" && \ 11992 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.16.1\""; } >&5 11993 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.16.1") 2>&5 11994 ac_status=$? 11995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11996 test $ac_status = 0; }; then 11997 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.16.1" 2>/dev/null` 11998else 11999 pkg_failed=yes 12000fi 12001 fi 12002else 12003 pkg_failed=untried 12004fi 12005if test -n "$PKG_CONFIG"; then 12006 if test -n "$GTK_LIBS"; then 12007 pkg_cv_GTK_LIBS="$GTK_LIBS" 12008 else 12009 if test -n "$PKG_CONFIG" && \ 12010 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.16.1\""; } >&5 12011 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.16.1") 2>&5 12012 ac_status=$? 12013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12014 test $ac_status = 0; }; then 12015 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.16.1" 2>/dev/null` 12016else 12017 pkg_failed=yes 12018fi 12019 fi 12020else 12021 pkg_failed=untried 12022fi 12023 12024 12025 12026if test $pkg_failed = yes; then 12027 12028if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12029 _pkg_short_errors_supported=yes 12030else 12031 _pkg_short_errors_supported=no 12032fi 12033 if test $_pkg_short_errors_supported = yes; then 12034 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.16.1"` 12035 else 12036 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.16.1"` 12037 fi 12038 # Put the nasty error message in config.log where it belongs 12039 echo "$GTK_PKG_ERRORS" >&5 12040 12041 as_fn_error "Package requirements (gtk+-2.0 >= 2.16.1) were not met: 12042 12043$GTK_PKG_ERRORS 12044 12045Consider adjusting the PKG_CONFIG_PATH environment variable if you 12046installed software in a non-standard prefix. 12047 12048Alternatively, you may set the environment variables GTK_CFLAGS 12049and GTK_LIBS to avoid the need to call pkg-config. 12050See the pkg-config man page for more details. 12051" "$LINENO" 5 12052elif test $pkg_failed = untried; then 12053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12055as_fn_error "The pkg-config script could not be found or is too old. Make sure it 12056is in your PATH or set the PKG_CONFIG environment variable to the full 12057path to pkg-config. 12058 12059Alternatively, you may set the environment variables GTK_CFLAGS 12060and GTK_LIBS to avoid the need to call pkg-config. 12061See the pkg-config man page for more details. 12062 12063To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12064See \`config.log' for more details." "$LINENO" 5; } 12065else 12066 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS 12067 GTK_LIBS=$pkg_cv_GTK_LIBS 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12069$as_echo "yes" >&6; } 12070 : 12071fi 12072 12073_sep="" 12074_gtk_libs_temp="" 12075for lib in $GTK_LIBS 12076do 12077 if test "x-lfreetype" = "x$lib"; then 12078 echo "removing 'freetype' from library list GTK_LIBS" 12079 continue 12080 elif test "x-lfontconfig" = "x$lib"; then 12081 echo "removing 'fontconfig' from library list GTK_LIBS" 12082 continue 12083 elif test "x-latk-1.0" = "x$lib"; then 12084 echo "removing 'atk-1.0' from library list GTK_LIBS" 12085 continue 12086 fi 12087 12088 _gtk_libs_temp="$_gtk_libs_temp$_sep$lib" 12089 _sep=" " 12090done 12091GTK_LIBS="$_gtk_libs_temp" 12092 12093if test x$cross_compiling = xno; then 12094 12095pkg_failed=no 12096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 12097$as_echo_n "checking for X11... " >&6; } 12098 12099if test -n "$PKG_CONFIG"; then 12100 if test -n "$X11_CFLAGS"; then 12101 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 12102 else 12103 if test -n "$PKG_CONFIG" && \ 12104 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.1\""; } >&5 12105 ($PKG_CONFIG --exists --print-errors "x11 >= 1.1") 2>&5 12106 ac_status=$? 12107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12108 test $ac_status = 0; }; then 12109 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.1" 2>/dev/null` 12110else 12111 pkg_failed=yes 12112fi 12113 fi 12114else 12115 pkg_failed=untried 12116fi 12117if test -n "$PKG_CONFIG"; then 12118 if test -n "$X11_LIBS"; then 12119 pkg_cv_X11_LIBS="$X11_LIBS" 12120 else 12121 if test -n "$PKG_CONFIG" && \ 12122 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.1\""; } >&5 12123 ($PKG_CONFIG --exists --print-errors "x11 >= 1.1") 2>&5 12124 ac_status=$? 12125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12126 test $ac_status = 0; }; then 12127 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 >= 1.1" 2>/dev/null` 12128else 12129 pkg_failed=yes 12130fi 12131 fi 12132else 12133 pkg_failed=untried 12134fi 12135 12136 12137 12138if test $pkg_failed = yes; then 12139 12140if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12141 _pkg_short_errors_supported=yes 12142else 12143 _pkg_short_errors_supported=no 12144fi 12145 if test $_pkg_short_errors_supported = yes; then 12146 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 >= 1.1"` 12147 else 12148 X11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 >= 1.1"` 12149 fi 12150 # Put the nasty error message in config.log where it belongs 12151 echo "$X11_PKG_ERRORS" >&5 12152 12153 as_fn_error "Package requirements (x11 >= 1.1) were not met: 12154 12155$X11_PKG_ERRORS 12156 12157Consider adjusting the PKG_CONFIG_PATH environment variable if you 12158installed software in a non-standard prefix. 12159 12160Alternatively, you may set the environment variables X11_CFLAGS 12161and X11_LIBS to avoid the need to call pkg-config. 12162See the pkg-config man page for more details. 12163" "$LINENO" 5 12164elif test $pkg_failed = untried; then 12165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12167as_fn_error "The pkg-config script could not be found or is too old. Make sure it 12168is in your PATH or set the PKG_CONFIG environment variable to the full 12169path to pkg-config. 12170 12171Alternatively, you may set the environment variables X11_CFLAGS 12172and X11_LIBS to avoid the need to call pkg-config. 12173See the pkg-config man page for more details. 12174 12175To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12176See \`config.log' for more details." "$LINENO" 5; } 12177else 12178 X11_CFLAGS=$pkg_cv_X11_CFLAGS 12179 X11_LIBS=$pkg_cv_X11_LIBS 12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12181$as_echo "yes" >&6; } 12182 : 12183fi 12184 12185pkg_failed=no 12186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMU" >&5 12187$as_echo_n "checking for XMU... " >&6; } 12188 12189if test -n "$PKG_CONFIG"; then 12190 if test -n "$XMU_CFLAGS"; then 12191 pkg_cv_XMU_CFLAGS="$XMU_CFLAGS" 12192 else 12193 if test -n "$PKG_CONFIG" && \ 12194 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu >= 1.0\""; } >&5 12195 ($PKG_CONFIG --exists --print-errors "xmu >= 1.0") 2>&5 12196 ac_status=$? 12197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12198 test $ac_status = 0; }; then 12199 pkg_cv_XMU_CFLAGS=`$PKG_CONFIG --cflags "xmu >= 1.0" 2>/dev/null` 12200else 12201 pkg_failed=yes 12202fi 12203 fi 12204else 12205 pkg_failed=untried 12206fi 12207if test -n "$PKG_CONFIG"; then 12208 if test -n "$XMU_LIBS"; then 12209 pkg_cv_XMU_LIBS="$XMU_LIBS" 12210 else 12211 if test -n "$PKG_CONFIG" && \ 12212 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu >= 1.0\""; } >&5 12213 ($PKG_CONFIG --exists --print-errors "xmu >= 1.0") 2>&5 12214 ac_status=$? 12215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12216 test $ac_status = 0; }; then 12217 pkg_cv_XMU_LIBS=`$PKG_CONFIG --libs "xmu >= 1.0" 2>/dev/null` 12218else 12219 pkg_failed=yes 12220fi 12221 fi 12222else 12223 pkg_failed=untried 12224fi 12225 12226 12227 12228if test $pkg_failed = yes; then 12229 12230if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12231 _pkg_short_errors_supported=yes 12232else 12233 _pkg_short_errors_supported=no 12234fi 12235 if test $_pkg_short_errors_supported = yes; then 12236 XMU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xmu >= 1.0"` 12237 else 12238 XMU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xmu >= 1.0"` 12239 fi 12240 # Put the nasty error message in config.log where it belongs 12241 echo "$XMU_PKG_ERRORS" >&5 12242 12243 as_fn_error "Package requirements (xmu >= 1.0) were not met: 12244 12245$XMU_PKG_ERRORS 12246 12247Consider adjusting the PKG_CONFIG_PATH environment variable if you 12248installed software in a non-standard prefix. 12249 12250Alternatively, you may set the environment variables XMU_CFLAGS 12251and XMU_LIBS to avoid the need to call pkg-config. 12252See the pkg-config man page for more details. 12253" "$LINENO" 5 12254elif test $pkg_failed = untried; then 12255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12257as_fn_error "The pkg-config script could not be found or is too old. Make sure it 12258is in your PATH or set the PKG_CONFIG environment variable to the full 12259path to pkg-config. 12260 12261Alternatively, you may set the environment variables XMU_CFLAGS 12262and XMU_LIBS to avoid the need to call pkg-config. 12263See the pkg-config man page for more details. 12264 12265To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12266See \`config.log' for more details." "$LINENO" 5; } 12267else 12268 XMU_CFLAGS=$pkg_cv_XMU_CFLAGS 12269 XMU_LIBS=$pkg_cv_XMU_LIBS 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12271$as_echo "yes" >&6; } 12272 : 12273fi 12274fi 12275 12276 12277req_z80ex_api=1 12278min_z80ex_version_major=1 12279min_z80ex_version_minor=18 12280 12281min_z80ex_version="${min_z80ex_version_major}.${min_z80ex_version_minor}" 12282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z80ex_create in -lz80ex" >&5 12283$as_echo_n "checking for z80ex_create in -lz80ex... " >&6; } 12284if test "${ac_cv_lib_z80ex_z80ex_create+set}" = set; then : 12285 $as_echo_n "(cached) " >&6 12286else 12287 ac_check_lib_save_LIBS=$LIBS 12288LIBS="-lz80ex $LIBS" 12289cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12290/* end confdefs.h. */ 12291 12292/* Override any GCC internal prototype to avoid an error. 12293 Use char because int might match the return type of a GCC 12294 builtin and then its argument prototype would still apply. */ 12295#ifdef __cplusplus 12296extern "C" 12297#endif 12298char z80ex_create (); 12299int 12300main () 12301{ 12302return z80ex_create (); 12303 ; 12304 return 0; 12305} 12306_ACEOF 12307if ac_fn_c_try_link "$LINENO"; then : 12308 ac_cv_lib_z80ex_z80ex_create=yes 12309else 12310 ac_cv_lib_z80ex_z80ex_create=no 12311fi 12312rm -f core conftest.err conftest.$ac_objext \ 12313 conftest$ac_exeext conftest.$ac_ext 12314LIBS=$ac_check_lib_save_LIBS 12315fi 12316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z80ex_z80ex_create" >&5 12317$as_echo "$ac_cv_lib_z80ex_z80ex_create" >&6; } 12318if test "x$ac_cv_lib_z80ex_z80ex_create" = x""yes; then : 12319 have_libz80ex=yes 12320else 12321 have_libz80ex=no 12322fi 12323 12324if test x$have_libz80ex = xyes; then 12325 Z80EX_LIBS="-lz80ex -lz80ex_dasm" 12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for z80ex - api = $req_z80ex_api - version >= $min_z80ex_version" >&5 12327$as_echo_n "checking for z80ex - api = $req_z80ex_api - version >= $min_z80ex_version... " >&6; } 12328 if test x$cross_compiling = xno; then 12329 ac_save_CFLAGS="$CFLAGS" 12330 ac_save_LIBS="$LIBS" 12331 CFLAGS="$CFLAGS $Z80EX_CFLAGS" 12332 LIBS="$Z80EX_LIBS $LIBS" 12333 if test "$cross_compiling" = yes; then : 12334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12336as_fn_error "cannot run test program while cross compiling 12337See \`config.log' for more details." "$LINENO" 5; } 12338else 12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12340/* end confdefs.h. */ 12341 12342#include <stdio.h> 12343#include <z80ex/z80ex.h> 12344 12345int 12346main() 12347{ 12348 Z80EX_VERSION *v = z80ex_get_version(); 12349 12350 if (v->API_revision != $req_z80ex_api) 12351 return 1; 12352 if (v->major < $min_z80ex_version_major) 12353 return 2; 12354 if ((v->major == $min_z80ex_version_major) && (v->minor < $min_z80ex_version_minor)) 12355 return 3; 12356 12357 return 0; 12358} 12359 12360_ACEOF 12361if ac_fn_c_try_run "$LINENO"; then : 12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12363$as_echo "yes" >&6; } 12364else 12365 have_libz80ex=no 12366fi 12367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12368 conftest.$ac_objext conftest.beam conftest.$ac_ext 12369fi 12370 12371 CFLAGS="$ac_save_CFLAGS" 12372 LIBS="$ac_save_LIBS" 12373 12374 z80_emulation_type="dynamic" 12375 else 12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross compiling; assumed OK..." >&5 12377$as_echo "cross compiling; assumed OK..." >&6; } 12378 fi 12379fi 12380if test x$have_libz80ex = xno; then 12381 as_fn_error " 12382*** 12383*** Can not find required library z80ex. 12384***" "$LINENO" 5 12385fi 12386 12387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if static linking of z80ex is requested" >&5 12388$as_echo_n "checking if static linking of z80ex is requested... " >&6; } 12389if test "x$enable_static_z80ex" = "xyes"; then 12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12391$as_echo "yes" >&6; } 12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path of static z80ex libraries" >&5 12393$as_echo_n "checking for path of static z80ex libraries... " >&6; } 12394 z80ex_so=`gcc $LDFLAGS -lz80ex -Wl,--trace /dev/null 2>/dev/null | grep -- '-lz80ex' | sed -e 's/.*(//; s/).*//;'` 12395 z80ex_path=`dirname "$z80ex_so"` 12396 z80ex_lib="$z80ex_path/libz80ex.a" 12397 z80ex_dasm_lib="$z80ex_path/libz80ex_dasm.a" 12398 if test -f "$z80ex_lib" -a -f "$z80ex_dasm_lib"; then 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $z80ex_path" >&5 12400$as_echo "$z80ex_path" >&6; } 12401 Z80EX_LIBS="$z80ex_lib $z80ex_dasm_lib" 12402 z80_emulation_type="static" 12403 else 12404 as_fn_error " 12405*** 12406*** Can not find path for static z80ex library. 12407***" "$LINENO" 5 12408 fi 12409else 12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12411$as_echo "no" >&6; } 12412fi 12413 12414have_theora=no 12415min_theora="1.0" 12416min_theoraenc="1.1.1" 12417if test "x$enable_libtheora" = xyes; then 12418 12419pkg_failed=no 12420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTHEORA11" >&5 12421$as_echo_n "checking for LIBTHEORA11... " >&6; } 12422 12423if test -n "$PKG_CONFIG"; then 12424 if test -n "$LIBTHEORA11_CFLAGS"; then 12425 pkg_cv_LIBTHEORA11_CFLAGS="$LIBTHEORA11_CFLAGS" 12426 else 12427 if test -n "$PKG_CONFIG" && \ 12428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"theoraenc >= \$min_theoraenc\""; } >&5 12429 ($PKG_CONFIG --exists --print-errors "theoraenc >= $min_theoraenc") 2>&5 12430 ac_status=$? 12431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12432 test $ac_status = 0; }; then 12433 pkg_cv_LIBTHEORA11_CFLAGS=`$PKG_CONFIG --cflags "theoraenc >= $min_theoraenc" 2>/dev/null` 12434else 12435 pkg_failed=yes 12436fi 12437 fi 12438else 12439 pkg_failed=untried 12440fi 12441if test -n "$PKG_CONFIG"; then 12442 if test -n "$LIBTHEORA11_LIBS"; then 12443 pkg_cv_LIBTHEORA11_LIBS="$LIBTHEORA11_LIBS" 12444 else 12445 if test -n "$PKG_CONFIG" && \ 12446 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"theoraenc >= \$min_theoraenc\""; } >&5 12447 ($PKG_CONFIG --exists --print-errors "theoraenc >= $min_theoraenc") 2>&5 12448 ac_status=$? 12449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12450 test $ac_status = 0; }; then 12451 pkg_cv_LIBTHEORA11_LIBS=`$PKG_CONFIG --libs "theoraenc >= $min_theoraenc" 2>/dev/null` 12452else 12453 pkg_failed=yes 12454fi 12455 fi 12456else 12457 pkg_failed=untried 12458fi 12459 12460 12461 12462if test $pkg_failed = yes; then 12463 12464if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12465 _pkg_short_errors_supported=yes 12466else 12467 _pkg_short_errors_supported=no 12468fi 12469 if test $_pkg_short_errors_supported = yes; then 12470 LIBTHEORA11_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "theoraenc >= $min_theoraenc"` 12471 else 12472 LIBTHEORA11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "theoraenc >= $min_theoraenc"` 12473 fi 12474 # Put the nasty error message in config.log where it belongs 12475 echo "$LIBTHEORA11_PKG_ERRORS" >&5 12476 12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12478$as_echo "no" >&6; } 12479 12480 12481pkg_failed=no 12482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTHEORA10" >&5 12483$as_echo_n "checking for LIBTHEORA10... " >&6; } 12484 12485if test -n "$PKG_CONFIG"; then 12486 if test -n "$LIBTHEORA10_CFLAGS"; then 12487 pkg_cv_LIBTHEORA10_CFLAGS="$LIBTHEORA10_CFLAGS" 12488 else 12489 if test -n "$PKG_CONFIG" && \ 12490 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"theoraenc >= \$min_theora theoradec >= \$min_theora\""; } >&5 12491 ($PKG_CONFIG --exists --print-errors "theoraenc >= $min_theora theoradec >= $min_theora") 2>&5 12492 ac_status=$? 12493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12494 test $ac_status = 0; }; then 12495 pkg_cv_LIBTHEORA10_CFLAGS=`$PKG_CONFIG --cflags "theoraenc >= $min_theora theoradec >= $min_theora" 2>/dev/null` 12496else 12497 pkg_failed=yes 12498fi 12499 fi 12500else 12501 pkg_failed=untried 12502fi 12503if test -n "$PKG_CONFIG"; then 12504 if test -n "$LIBTHEORA10_LIBS"; then 12505 pkg_cv_LIBTHEORA10_LIBS="$LIBTHEORA10_LIBS" 12506 else 12507 if test -n "$PKG_CONFIG" && \ 12508 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"theoraenc >= \$min_theora theoradec >= \$min_theora\""; } >&5 12509 ($PKG_CONFIG --exists --print-errors "theoraenc >= $min_theora theoradec >= $min_theora") 2>&5 12510 ac_status=$? 12511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12512 test $ac_status = 0; }; then 12513 pkg_cv_LIBTHEORA10_LIBS=`$PKG_CONFIG --libs "theoraenc >= $min_theora theoradec >= $min_theora" 2>/dev/null` 12514else 12515 pkg_failed=yes 12516fi 12517 fi 12518else 12519 pkg_failed=untried 12520fi 12521 12522 12523 12524if test $pkg_failed = yes; then 12525 12526if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12527 _pkg_short_errors_supported=yes 12528else 12529 _pkg_short_errors_supported=no 12530fi 12531 if test $_pkg_short_errors_supported = yes; then 12532 LIBTHEORA10_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "theoraenc >= $min_theora theoradec >= $min_theora"` 12533 else 12534 LIBTHEORA10_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "theoraenc >= $min_theora theoradec >= $min_theora"` 12535 fi 12536 # Put the nasty error message in config.log where it belongs 12537 echo "$LIBTHEORA10_PKG_ERRORS" >&5 12538 12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12540$as_echo "no" >&6; } 12541 12542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 12543*** 12544*** Unable to find theora library (with version number >= $min_theora)! 12545*** 12546*** This is NO ERROR. It only means you can't capture video in 12547*** theora/ogg format. 12548*** 12549*** If you are still annoyed by this warning you can tell ./configure 12550*** not to check for this library by using --disable-libtheora 12551***" >&5 12552$as_echo "$as_me: WARNING: 12553*** 12554*** Unable to find theora library (with version number >= $min_theora)! 12555*** 12556*** This is NO ERROR. It only means you can't capture video in 12557*** theora/ogg format. 12558*** 12559*** If you are still annoyed by this warning you can tell ./configure 12560*** not to check for this library by using --disable-libtheora 12561***" >&2;} 12562 12563elif test $pkg_failed = untried; then 12564 12565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 12566*** 12567*** Unable to find theora library (with version number >= $min_theora)! 12568*** 12569*** This is NO ERROR. It only means you can't capture video in 12570*** theora/ogg format. 12571*** 12572*** If you are still annoyed by this warning you can tell ./configure 12573*** not to check for this library by using --disable-libtheora 12574***" >&5 12575$as_echo "$as_me: WARNING: 12576*** 12577*** Unable to find theora library (with version number >= $min_theora)! 12578*** 12579*** This is NO ERROR. It only means you can't capture video in 12580*** theora/ogg format. 12581*** 12582*** If you are still annoyed by this warning you can tell ./configure 12583*** not to check for this library by using --disable-libtheora 12584***" >&2;} 12585 12586else 12587 LIBTHEORA10_CFLAGS=$pkg_cv_LIBTHEORA10_CFLAGS 12588 LIBTHEORA10_LIBS=$pkg_cv_LIBTHEORA10_LIBS 12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12590$as_echo "yes" >&6; } 12591 12592 have_theora=yes 12593 have_theora_version=" (version 1.0)" 12594 12595$as_echo "#define HAVE_LIBTHEORA 1" >>confdefs.h 12596 12597 12598$as_echo "#define HAVE_LIBTHEORA10 1" >>confdefs.h 12599 12600 LIBTHEORA_CFLAGS="$LIBTHEORA10_CFLAGS" 12601 LIBTHEORA_LIBS="$LIBTHEORA10_LIBS" 12602 12603 12604 12605fi 12606 12607elif test $pkg_failed = untried; then 12608 12609 12610pkg_failed=no 12611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTHEORA10" >&5 12612$as_echo_n "checking for LIBTHEORA10... " >&6; } 12613 12614if test -n "$PKG_CONFIG"; then 12615 if test -n "$LIBTHEORA10_CFLAGS"; then 12616 pkg_cv_LIBTHEORA10_CFLAGS="$LIBTHEORA10_CFLAGS" 12617 else 12618 if test -n "$PKG_CONFIG" && \ 12619 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"theoraenc >= \$min_theora theoradec >= \$min_theora\""; } >&5 12620 ($PKG_CONFIG --exists --print-errors "theoraenc >= $min_theora theoradec >= $min_theora") 2>&5 12621 ac_status=$? 12622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12623 test $ac_status = 0; }; then 12624 pkg_cv_LIBTHEORA10_CFLAGS=`$PKG_CONFIG --cflags "theoraenc >= $min_theora theoradec >= $min_theora" 2>/dev/null` 12625else 12626 pkg_failed=yes 12627fi 12628 fi 12629else 12630 pkg_failed=untried 12631fi 12632if test -n "$PKG_CONFIG"; then 12633 if test -n "$LIBTHEORA10_LIBS"; then 12634 pkg_cv_LIBTHEORA10_LIBS="$LIBTHEORA10_LIBS" 12635 else 12636 if test -n "$PKG_CONFIG" && \ 12637 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"theoraenc >= \$min_theora theoradec >= \$min_theora\""; } >&5 12638 ($PKG_CONFIG --exists --print-errors "theoraenc >= $min_theora theoradec >= $min_theora") 2>&5 12639 ac_status=$? 12640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12641 test $ac_status = 0; }; then 12642 pkg_cv_LIBTHEORA10_LIBS=`$PKG_CONFIG --libs "theoraenc >= $min_theora theoradec >= $min_theora" 2>/dev/null` 12643else 12644 pkg_failed=yes 12645fi 12646 fi 12647else 12648 pkg_failed=untried 12649fi 12650 12651 12652 12653if test $pkg_failed = yes; then 12654 12655if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12656 _pkg_short_errors_supported=yes 12657else 12658 _pkg_short_errors_supported=no 12659fi 12660 if test $_pkg_short_errors_supported = yes; then 12661 LIBTHEORA10_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "theoraenc >= $min_theora theoradec >= $min_theora"` 12662 else 12663 LIBTHEORA10_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "theoraenc >= $min_theora theoradec >= $min_theora"` 12664 fi 12665 # Put the nasty error message in config.log where it belongs 12666 echo "$LIBTHEORA10_PKG_ERRORS" >&5 12667 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12669$as_echo "no" >&6; } 12670 12671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 12672*** 12673*** Unable to find theora library (with version number >= $min_theora)! 12674*** 12675*** This is NO ERROR. It only means you can't capture video in 12676*** theora/ogg format. 12677*** 12678*** If you are still annoyed by this warning you can tell ./configure 12679*** not to check for this library by using --disable-libtheora 12680***" >&5 12681$as_echo "$as_me: WARNING: 12682*** 12683*** Unable to find theora library (with version number >= $min_theora)! 12684*** 12685*** This is NO ERROR. It only means you can't capture video in 12686*** theora/ogg format. 12687*** 12688*** If you are still annoyed by this warning you can tell ./configure 12689*** not to check for this library by using --disable-libtheora 12690***" >&2;} 12691 12692elif test $pkg_failed = untried; then 12693 12694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 12695*** 12696*** Unable to find theora library (with version number >= $min_theora)! 12697*** 12698*** This is NO ERROR. It only means you can't capture video in 12699*** theora/ogg format. 12700*** 12701*** If you are still annoyed by this warning you can tell ./configure 12702*** not to check for this library by using --disable-libtheora 12703***" >&5 12704$as_echo "$as_me: WARNING: 12705*** 12706*** Unable to find theora library (with version number >= $min_theora)! 12707*** 12708*** This is NO ERROR. It only means you can't capture video in 12709*** theora/ogg format. 12710*** 12711*** If you are still annoyed by this warning you can tell ./configure 12712*** not to check for this library by using --disable-libtheora 12713***" >&2;} 12714 12715else 12716 LIBTHEORA10_CFLAGS=$pkg_cv_LIBTHEORA10_CFLAGS 12717 LIBTHEORA10_LIBS=$pkg_cv_LIBTHEORA10_LIBS 12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12719$as_echo "yes" >&6; } 12720 12721 have_theora=yes 12722 have_theora_version=" (version 1.0)" 12723 12724$as_echo "#define HAVE_LIBTHEORA 1" >>confdefs.h 12725 12726 12727$as_echo "#define HAVE_LIBTHEORA10 1" >>confdefs.h 12728 12729 LIBTHEORA_CFLAGS="$LIBTHEORA10_CFLAGS" 12730 LIBTHEORA_LIBS="$LIBTHEORA10_LIBS" 12731 12732 12733 12734fi 12735 12736else 12737 LIBTHEORA11_CFLAGS=$pkg_cv_LIBTHEORA11_CFLAGS 12738 LIBTHEORA11_LIBS=$pkg_cv_LIBTHEORA11_LIBS 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12740$as_echo "yes" >&6; } 12741 12742 have_theora=yes 12743 have_theora_version=" (version 1.1)" 12744 12745$as_echo "#define HAVE_LIBTHEORA 1" >>confdefs.h 12746 12747 12748$as_echo "#define HAVE_LIBTHEORA11 1" >>confdefs.h 12749 12750 LIBTHEORA_CFLAGS="$LIBTHEORA11_CFLAGS" 12751 LIBTHEORA_LIBS="$LIBTHEORA11_LIBS" 12752 12753 12754 12755fi 12756fi 12757 12758have_avformat=no 12759min_libavformat="52.41.0" 12760if test "x$enable_libavformat" = xyes; then 12761 12762pkg_failed=no 12763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBAVFORMAT" >&5 12764$as_echo_n "checking for LIBAVFORMAT... " >&6; } 12765 12766if test -n "$PKG_CONFIG"; then 12767 if test -n "$LIBAVFORMAT_CFLAGS"; then 12768 pkg_cv_LIBAVFORMAT_CFLAGS="$LIBAVFORMAT_CFLAGS" 12769 else 12770 if test -n "$PKG_CONFIG" && \ 12771 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavformat >= \$min_libavformat\""; } >&5 12772 ($PKG_CONFIG --exists --print-errors "libavformat >= $min_libavformat") 2>&5 12773 ac_status=$? 12774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12775 test $ac_status = 0; }; then 12776 pkg_cv_LIBAVFORMAT_CFLAGS=`$PKG_CONFIG --cflags "libavformat >= $min_libavformat" 2>/dev/null` 12777else 12778 pkg_failed=yes 12779fi 12780 fi 12781else 12782 pkg_failed=untried 12783fi 12784if test -n "$PKG_CONFIG"; then 12785 if test -n "$LIBAVFORMAT_LIBS"; then 12786 pkg_cv_LIBAVFORMAT_LIBS="$LIBAVFORMAT_LIBS" 12787 else 12788 if test -n "$PKG_CONFIG" && \ 12789 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavformat >= \$min_libavformat\""; } >&5 12790 ($PKG_CONFIG --exists --print-errors "libavformat >= $min_libavformat") 2>&5 12791 ac_status=$? 12792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12793 test $ac_status = 0; }; then 12794 pkg_cv_LIBAVFORMAT_LIBS=`$PKG_CONFIG --libs "libavformat >= $min_libavformat" 2>/dev/null` 12795else 12796 pkg_failed=yes 12797fi 12798 fi 12799else 12800 pkg_failed=untried 12801fi 12802 12803 12804 12805if test $pkg_failed = yes; then 12806 12807if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12808 _pkg_short_errors_supported=yes 12809else 12810 _pkg_short_errors_supported=no 12811fi 12812 if test $_pkg_short_errors_supported = yes; then 12813 LIBAVFORMAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libavformat >= $min_libavformat"` 12814 else 12815 LIBAVFORMAT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libavformat >= $min_libavformat"` 12816 fi 12817 # Put the nasty error message in config.log where it belongs 12818 echo "$LIBAVFORMAT_PKG_ERRORS" >&5 12819 12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12821$as_echo "no" >&6; } 12822 12823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 12824*** 12825*** Unable to find avformat library (with version number >= $min_libavformat)! 12826*** 12827*** This is NO ERROR. It only means you can't capture video in 12828*** avi format. 12829*** 12830*** If you are still annoyed by this warning you can tell ./configure 12831*** not to check for this library by using --disable-libavformat 12832***" >&5 12833$as_echo "$as_me: WARNING: 12834*** 12835*** Unable to find avformat library (with version number >= $min_libavformat)! 12836*** 12837*** This is NO ERROR. It only means you can't capture video in 12838*** avi format. 12839*** 12840*** If you are still annoyed by this warning you can tell ./configure 12841*** not to check for this library by using --disable-libavformat 12842***" >&2;} 12843 12844elif test $pkg_failed = untried; then 12845 12846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 12847*** 12848*** Unable to find avformat library (with version number >= $min_libavformat)! 12849*** 12850*** This is NO ERROR. It only means you can't capture video in 12851*** avi format. 12852*** 12853*** If you are still annoyed by this warning you can tell ./configure 12854*** not to check for this library by using --disable-libavformat 12855***" >&5 12856$as_echo "$as_me: WARNING: 12857*** 12858*** Unable to find avformat library (with version number >= $min_libavformat)! 12859*** 12860*** This is NO ERROR. It only means you can't capture video in 12861*** avi format. 12862*** 12863*** If you are still annoyed by this warning you can tell ./configure 12864*** not to check for this library by using --disable-libavformat 12865***" >&2;} 12866 12867else 12868 LIBAVFORMAT_CFLAGS=$pkg_cv_LIBAVFORMAT_CFLAGS 12869 LIBAVFORMAT_LIBS=$pkg_cv_LIBAVFORMAT_LIBS 12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12871$as_echo "yes" >&6; } 12872 12873 have_avformat=yes 12874 12875$as_echo "#define HAVE_LIBAVFORMAT 1" >>confdefs.h 12876 12877 12878 12879 12880fi 12881fi 12882 12883have_dirac=no 12884min_libdirac="1.0.2" 12885if test "x$enable_libdirac" = xyes; then 12886 12887pkg_failed=no 12888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDIRAC" >&5 12889$as_echo_n "checking for LIBDIRAC... " >&6; } 12890 12891if test -n "$PKG_CONFIG"; then 12892 if test -n "$LIBDIRAC_CFLAGS"; then 12893 pkg_cv_LIBDIRAC_CFLAGS="$LIBDIRAC_CFLAGS" 12894 else 12895 if test -n "$PKG_CONFIG" && \ 12896 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dirac >= \$min_libdirac\""; } >&5 12897 ($PKG_CONFIG --exists --print-errors "dirac >= $min_libdirac") 2>&5 12898 ac_status=$? 12899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12900 test $ac_status = 0; }; then 12901 pkg_cv_LIBDIRAC_CFLAGS=`$PKG_CONFIG --cflags "dirac >= $min_libdirac" 2>/dev/null` 12902else 12903 pkg_failed=yes 12904fi 12905 fi 12906else 12907 pkg_failed=untried 12908fi 12909if test -n "$PKG_CONFIG"; then 12910 if test -n "$LIBDIRAC_LIBS"; then 12911 pkg_cv_LIBDIRAC_LIBS="$LIBDIRAC_LIBS" 12912 else 12913 if test -n "$PKG_CONFIG" && \ 12914 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dirac >= \$min_libdirac\""; } >&5 12915 ($PKG_CONFIG --exists --print-errors "dirac >= $min_libdirac") 2>&5 12916 ac_status=$? 12917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12918 test $ac_status = 0; }; then 12919 pkg_cv_LIBDIRAC_LIBS=`$PKG_CONFIG --libs "dirac >= $min_libdirac" 2>/dev/null` 12920else 12921 pkg_failed=yes 12922fi 12923 fi 12924else 12925 pkg_failed=untried 12926fi 12927 12928 12929 12930if test $pkg_failed = yes; then 12931 12932if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12933 _pkg_short_errors_supported=yes 12934else 12935 _pkg_short_errors_supported=no 12936fi 12937 if test $_pkg_short_errors_supported = yes; then 12938 LIBDIRAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dirac >= $min_libdirac"` 12939 else 12940 LIBDIRAC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dirac >= $min_libdirac"` 12941 fi 12942 # Put the nasty error message in config.log where it belongs 12943 echo "$LIBDIRAC_PKG_ERRORS" >&5 12944 12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12946$as_echo "no" >&6; } 12947 12948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 12949*** 12950*** Unable to find dirac library (with version number >= $min_libdirac)! 12951*** 12952*** This is NO ERROR. It only means you can't capture video in 12953*** dirac format. 12954*** 12955*** If you are still annoyed by this warning you can tell ./configure 12956*** not to check for this library by using --disable-libdirac 12957***" >&5 12958$as_echo "$as_me: WARNING: 12959*** 12960*** Unable to find dirac library (with version number >= $min_libdirac)! 12961*** 12962*** This is NO ERROR. It only means you can't capture video in 12963*** dirac format. 12964*** 12965*** If you are still annoyed by this warning you can tell ./configure 12966*** not to check for this library by using --disable-libdirac 12967***" >&2;} 12968 12969elif test $pkg_failed = untried; then 12970 12971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 12972*** 12973*** Unable to find dirac library (with version number >= $min_libdirac)! 12974*** 12975*** This is NO ERROR. It only means you can't capture video in 12976*** dirac format. 12977*** 12978*** If you are still annoyed by this warning you can tell ./configure 12979*** not to check for this library by using --disable-libdirac 12980***" >&5 12981$as_echo "$as_me: WARNING: 12982*** 12983*** Unable to find dirac library (with version number >= $min_libdirac)! 12984*** 12985*** This is NO ERROR. It only means you can't capture video in 12986*** dirac format. 12987*** 12988*** If you are still annoyed by this warning you can tell ./configure 12989*** not to check for this library by using --disable-libdirac 12990***" >&2;} 12991 12992else 12993 LIBDIRAC_CFLAGS=$pkg_cv_LIBDIRAC_CFLAGS 12994 LIBDIRAC_LIBS=$pkg_cv_LIBDIRAC_LIBS 12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12996$as_echo "yes" >&6; } 12997 12998 have_dirac=yes 12999 13000$as_echo "#define HAVE_LIBDIRAC 1" >>confdefs.h 13001 13002 13003 13004 13005fi 13006fi 13007 13008have_libschroedinger=no 13009min_libschroedinger="1.0.8" 13010if test "x$enable_libschroedinger" = xyes; then 13011 13012pkg_failed=no 13013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSCHROEDINGER" >&5 13014$as_echo_n "checking for LIBSCHROEDINGER... " >&6; } 13015 13016if test -n "$PKG_CONFIG"; then 13017 if test -n "$LIBSCHROEDINGER_CFLAGS"; then 13018 pkg_cv_LIBSCHROEDINGER_CFLAGS="$LIBSCHROEDINGER_CFLAGS" 13019 else 13020 if test -n "$PKG_CONFIG" && \ 13021 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"schroedinger-1.0 >= \$min_libschroedinger\""; } >&5 13022 ($PKG_CONFIG --exists --print-errors "schroedinger-1.0 >= $min_libschroedinger") 2>&5 13023 ac_status=$? 13024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13025 test $ac_status = 0; }; then 13026 pkg_cv_LIBSCHROEDINGER_CFLAGS=`$PKG_CONFIG --cflags "schroedinger-1.0 >= $min_libschroedinger" 2>/dev/null` 13027else 13028 pkg_failed=yes 13029fi 13030 fi 13031else 13032 pkg_failed=untried 13033fi 13034if test -n "$PKG_CONFIG"; then 13035 if test -n "$LIBSCHROEDINGER_LIBS"; then 13036 pkg_cv_LIBSCHROEDINGER_LIBS="$LIBSCHROEDINGER_LIBS" 13037 else 13038 if test -n "$PKG_CONFIG" && \ 13039 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"schroedinger-1.0 >= \$min_libschroedinger\""; } >&5 13040 ($PKG_CONFIG --exists --print-errors "schroedinger-1.0 >= $min_libschroedinger") 2>&5 13041 ac_status=$? 13042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13043 test $ac_status = 0; }; then 13044 pkg_cv_LIBSCHROEDINGER_LIBS=`$PKG_CONFIG --libs "schroedinger-1.0 >= $min_libschroedinger" 2>/dev/null` 13045else 13046 pkg_failed=yes 13047fi 13048 fi 13049else 13050 pkg_failed=untried 13051fi 13052 13053 13054 13055if test $pkg_failed = yes; then 13056 13057if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13058 _pkg_short_errors_supported=yes 13059else 13060 _pkg_short_errors_supported=no 13061fi 13062 if test $_pkg_short_errors_supported = yes; then 13063 LIBSCHROEDINGER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "schroedinger-1.0 >= $min_libschroedinger"` 13064 else 13065 LIBSCHROEDINGER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "schroedinger-1.0 >= $min_libschroedinger"` 13066 fi 13067 # Put the nasty error message in config.log where it belongs 13068 echo "$LIBSCHROEDINGER_PKG_ERRORS" >&5 13069 13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13071$as_echo "no" >&6; } 13072 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 13074*** 13075*** Unable to find schroedinger library (with version number >= $min_libschroedinger)! 13076*** 13077*** This is NO ERROR. It only means you can't capture video in 13078*** schroedinger format. 13079*** 13080*** If you are still annoyed by this warning you can tell ./configure 13081*** not to check for this library by using --disable-libschroedinger 13082***" >&5 13083$as_echo "$as_me: WARNING: 13084*** 13085*** Unable to find schroedinger library (with version number >= $min_libschroedinger)! 13086*** 13087*** This is NO ERROR. It only means you can't capture video in 13088*** schroedinger format. 13089*** 13090*** If you are still annoyed by this warning you can tell ./configure 13091*** not to check for this library by using --disable-libschroedinger 13092***" >&2;} 13093 13094elif test $pkg_failed = untried; then 13095 13096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 13097*** 13098*** Unable to find schroedinger library (with version number >= $min_libschroedinger)! 13099*** 13100*** This is NO ERROR. It only means you can't capture video in 13101*** schroedinger format. 13102*** 13103*** If you are still annoyed by this warning you can tell ./configure 13104*** not to check for this library by using --disable-libschroedinger 13105***" >&5 13106$as_echo "$as_me: WARNING: 13107*** 13108*** Unable to find schroedinger library (with version number >= $min_libschroedinger)! 13109*** 13110*** This is NO ERROR. It only means you can't capture video in 13111*** schroedinger format. 13112*** 13113*** If you are still annoyed by this warning you can tell ./configure 13114*** not to check for this library by using --disable-libschroedinger 13115***" >&2;} 13116 13117else 13118 LIBSCHROEDINGER_CFLAGS=$pkg_cv_LIBSCHROEDINGER_CFLAGS 13119 LIBSCHROEDINGER_LIBS=$pkg_cv_LIBSCHROEDINGER_LIBS 13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13121$as_echo "yes" >&6; } 13122 13123 have_libschroedinger=yes 13124 13125$as_echo "#define HAVE_LIBSCHROEDINGER 1" >>confdefs.h 13126 13127 13128 13129 13130fi 13131fi 13132 13133have_libxvidcore=no 13134min_libxvidcore="1.2.2" 13135if test "x$enable_libxvidcore" = xyes; then 13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xvid_encore in -lxvidcore" >&5 13137$as_echo_n "checking for xvid_encore in -lxvidcore... " >&6; } 13138if test "${ac_cv_lib_xvidcore_xvid_encore+set}" = set; then : 13139 $as_echo_n "(cached) " >&6 13140else 13141 ac_check_lib_save_LIBS=$LIBS 13142LIBS="-lxvidcore $LIBS" 13143cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13144/* end confdefs.h. */ 13145 13146/* Override any GCC internal prototype to avoid an error. 13147 Use char because int might match the return type of a GCC 13148 builtin and then its argument prototype would still apply. */ 13149#ifdef __cplusplus 13150extern "C" 13151#endif 13152char xvid_encore (); 13153int 13154main () 13155{ 13156return xvid_encore (); 13157 ; 13158 return 0; 13159} 13160_ACEOF 13161if ac_fn_c_try_link "$LINENO"; then : 13162 ac_cv_lib_xvidcore_xvid_encore=yes 13163else 13164 ac_cv_lib_xvidcore_xvid_encore=no 13165fi 13166rm -f core conftest.err conftest.$ac_objext \ 13167 conftest$ac_exeext conftest.$ac_ext 13168LIBS=$ac_check_lib_save_LIBS 13169fi 13170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xvidcore_xvid_encore" >&5 13171$as_echo "$ac_cv_lib_xvidcore_xvid_encore" >&6; } 13172if test "x$ac_cv_lib_xvidcore_xvid_encore" = x""yes; then : 13173 have_libxvidcore=yes 13174else 13175 have_libxvidcore=no 13176fi 13177 13178 if test x$have_libxvidcore = xyes; then 13179 XVIDCORE_LIBS="-lxvidcore" 13180 13181 13182$as_echo "#define HAVE_LIBXVIDCORE 1" >>confdefs.h 13183 13184 else 13185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 13186*** 13187*** Unable to find libxvidcore (with version number >= $min_libxvidcore)! 13188*** 13189*** This is NO ERROR. It only means you can't capture video in 13190*** mpeg4 format. 13191*** 13192*** If you are still annoyed by this warning you can tell ./configure 13193*** not to check for this library by using --disable-libxvidcore 13194***" >&5 13195$as_echo "$as_me: WARNING: 13196*** 13197*** Unable to find libxvidcore (with version number >= $min_libxvidcore)! 13198*** 13199*** This is NO ERROR. It only means you can't capture video in 13200*** mpeg4 format. 13201*** 13202*** If you are still annoyed by this warning you can tell ./configure 13203*** not to check for this library by using --disable-libxvidcore 13204***" >&2;} 13205 fi 13206fi 13207 13208if test "x$enable_libgif" = xyes; then 13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifSetGifVersion in -lgif" >&5 13210$as_echo_n "checking for EGifSetGifVersion in -lgif... " >&6; } 13211if test "${ac_cv_lib_gif_EGifSetGifVersion+set}" = set; then : 13212 $as_echo_n "(cached) " >&6 13213else 13214 ac_check_lib_save_LIBS=$LIBS 13215LIBS="-lgif $LIBS" 13216cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13217/* end confdefs.h. */ 13218 13219/* Override any GCC internal prototype to avoid an error. 13220 Use char because int might match the return type of a GCC 13221 builtin and then its argument prototype would still apply. */ 13222#ifdef __cplusplus 13223extern "C" 13224#endif 13225char EGifSetGifVersion (); 13226int 13227main () 13228{ 13229return EGifSetGifVersion (); 13230 ; 13231 return 0; 13232} 13233_ACEOF 13234if ac_fn_c_try_link "$LINENO"; then : 13235 ac_cv_lib_gif_EGifSetGifVersion=yes 13236else 13237 ac_cv_lib_gif_EGifSetGifVersion=no 13238fi 13239rm -f core conftest.err conftest.$ac_objext \ 13240 conftest$ac_exeext conftest.$ac_ext 13241LIBS=$ac_check_lib_save_LIBS 13242fi 13243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifSetGifVersion" >&5 13244$as_echo "$ac_cv_lib_gif_EGifSetGifVersion" >&6; } 13245if test "x$ac_cv_lib_gif_EGifSetGifVersion" = x""yes; then : 13246 have_libgif=yes 13247else 13248 have_libgif=no 13249fi 13250 13251 if test x$have_libgif = xyes; then 13252 LIBGIF_LIBS="-lgif" 13253 13254 13255$as_echo "#define HAVE_LIBGIF 1" >>confdefs.h 13256 13257 else 13258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 13259*** 13260*** Unable to find libgif! 13261*** 13262*** This is NO ERROR. It only means you can't capture video in 13263*** animated GIF format. 13264*** 13265*** If you are still annoyed by this warning you can tell ./configure 13266*** not to check for this library by using --disable-libgif 13267***" >&5 13268$as_echo "$as_me: WARNING: 13269*** 13270*** Unable to find libgif! 13271*** 13272*** This is NO ERROR. It only means you can't capture video in 13273*** animated GIF format. 13274*** 13275*** If you are still annoyed by this warning you can tell ./configure 13276*** not to check for this library by using --disable-libgif 13277***" >&2;} 13278 fi 13279fi 13280 13281have_libvncserver=no 13282min_libvncserver="0.9" 13283if test "x$enable_libvncserver" = xyes; then 13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rfbGetScreen in -lvncserver" >&5 13285$as_echo_n "checking for rfbGetScreen in -lvncserver... " >&6; } 13286if test "${ac_cv_lib_vncserver_rfbGetScreen+set}" = set; then : 13287 $as_echo_n "(cached) " >&6 13288else 13289 ac_check_lib_save_LIBS=$LIBS 13290LIBS="-lvncserver $LIBS" 13291cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13292/* end confdefs.h. */ 13293 13294/* Override any GCC internal prototype to avoid an error. 13295 Use char because int might match the return type of a GCC 13296 builtin and then its argument prototype would still apply. */ 13297#ifdef __cplusplus 13298extern "C" 13299#endif 13300char rfbGetScreen (); 13301int 13302main () 13303{ 13304return rfbGetScreen (); 13305 ; 13306 return 0; 13307} 13308_ACEOF 13309if ac_fn_c_try_link "$LINENO"; then : 13310 ac_cv_lib_vncserver_rfbGetScreen=yes 13311else 13312 ac_cv_lib_vncserver_rfbGetScreen=no 13313fi 13314rm -f core conftest.err conftest.$ac_objext \ 13315 conftest$ac_exeext conftest.$ac_ext 13316LIBS=$ac_check_lib_save_LIBS 13317fi 13318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vncserver_rfbGetScreen" >&5 13319$as_echo "$ac_cv_lib_vncserver_rfbGetScreen" >&6; } 13320if test "x$ac_cv_lib_vncserver_rfbGetScreen" = x""yes; then : 13321 have_libvncserver=yes 13322else 13323 have_libvncserver=no 13324fi 13325 13326 if test x$have_libvncserver = xyes; then 13327 VNCSERVER_LIBS="-lvncserver -lvncclient -ljpeg" 13328 13329 13330$as_echo "#define HAVE_LIBVNCSERVER 1" >>confdefs.h 13331 13332 else 13333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 13334*** 13335*** Unable to find libvncserver (with version number >= $min_libvncserver)! 13336*** 13337*** This is NO ERROR. It only means you can't connect to KCemu 13338*** using a VNC client. 13339*** 13340*** If you are still annoyed by this warning you can tell ./configure 13341*** not to check for this library by using --disable-libvncserver 13342***" >&5 13343$as_echo "$as_me: WARNING: 13344*** 13345*** Unable to find libvncserver (with version number >= $min_libvncserver)! 13346*** 13347*** This is NO ERROR. It only means you can't connect to KCemu 13348*** using a VNC client. 13349*** 13350*** If you are still annoyed by this warning you can tell ./configure 13351*** not to check for this library by using --disable-libvncserver 13352***" >&2;} 13353 fi 13354fi 13355 13356_sep="" 13357_vncserver_libs_temp="" 13358for lib in $VNCSERVER_LIBS 13359do 13360 if test "x-ljpeg" = "x$lib"; then 13361 echo "removing 'jpeg' from library list VNCSERVER_LIBS" 13362 continue 13363 fi 13364 13365 _vncserver_libs_temp="$_vncserver_libs_temp$_sep$lib" 13366 _sep=" " 13367done 13368VNCSERVER_LIBS="$_vncserver_libs_temp" 13369 13370have_libsndfile=no 13371if test x$enable_libsndfile = xyes; then 13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sf_open_read in -lsndfile" >&5 13373$as_echo_n "checking for sf_open_read in -lsndfile... " >&6; } 13374if test "${ac_cv_lib_sndfile_sf_open_read+set}" = set; then : 13375 $as_echo_n "(cached) " >&6 13376else 13377 ac_check_lib_save_LIBS=$LIBS 13378LIBS="-lsndfile $LIBS" 13379cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13380/* end confdefs.h. */ 13381 13382/* Override any GCC internal prototype to avoid an error. 13383 Use char because int might match the return type of a GCC 13384 builtin and then its argument prototype would still apply. */ 13385#ifdef __cplusplus 13386extern "C" 13387#endif 13388char sf_open_read (); 13389int 13390main () 13391{ 13392return sf_open_read (); 13393 ; 13394 return 0; 13395} 13396_ACEOF 13397if ac_fn_c_try_link "$LINENO"; then : 13398 ac_cv_lib_sndfile_sf_open_read=yes 13399else 13400 ac_cv_lib_sndfile_sf_open_read=no 13401fi 13402rm -f core conftest.err conftest.$ac_objext \ 13403 conftest$ac_exeext conftest.$ac_ext 13404LIBS=$ac_check_lib_save_LIBS 13405fi 13406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndfile_sf_open_read" >&5 13407$as_echo "$ac_cv_lib_sndfile_sf_open_read" >&6; } 13408if test "x$ac_cv_lib_sndfile_sf_open_read" = x""yes; then : 13409 have_libsndfile=yes 13410else 13411 have_libsndfile=no 13412fi 13413 13414 if test x$have_libsndfile = xyes; then 13415 SNDFILE_LIBS=-lsndfile 13416 13417 13418$as_echo "#define HAVE_LIBSNDFILE 1" >>confdefs.h 13419 13420 13421$as_echo "#define HAVE_LIBSNDFILE_V0 1" >>confdefs.h 13422 13423 else 13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sf_open in -lsndfile" >&5 13425$as_echo_n "checking for sf_open in -lsndfile... " >&6; } 13426if test "${ac_cv_lib_sndfile_sf_open+set}" = set; then : 13427 $as_echo_n "(cached) " >&6 13428else 13429 ac_check_lib_save_LIBS=$LIBS 13430LIBS="-lsndfile $LIBS" 13431cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13432/* end confdefs.h. */ 13433 13434/* Override any GCC internal prototype to avoid an error. 13435 Use char because int might match the return type of a GCC 13436 builtin and then its argument prototype would still apply. */ 13437#ifdef __cplusplus 13438extern "C" 13439#endif 13440char sf_open (); 13441int 13442main () 13443{ 13444return sf_open (); 13445 ; 13446 return 0; 13447} 13448_ACEOF 13449if ac_fn_c_try_link "$LINENO"; then : 13450 ac_cv_lib_sndfile_sf_open=yes 13451else 13452 ac_cv_lib_sndfile_sf_open=no 13453fi 13454rm -f core conftest.err conftest.$ac_objext \ 13455 conftest$ac_exeext conftest.$ac_ext 13456LIBS=$ac_check_lib_save_LIBS 13457fi 13458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndfile_sf_open" >&5 13459$as_echo "$ac_cv_lib_sndfile_sf_open" >&6; } 13460if test "x$ac_cv_lib_sndfile_sf_open" = x""yes; then : 13461 have_libsndfile=yes 13462else 13463 have_libsndfile=no 13464fi 13465 13466 if test x$have_libsndfile = xyes; then 13467 SNDFILE_LIBS=-lsndfile 13468 13469 13470$as_echo "#define HAVE_LIBSNDFILE 1" >>confdefs.h 13471 13472 13473$as_echo "#define HAVE_LIBSNDFILE_V1 1" >>confdefs.h 13474 13475 else 13476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 13477*** 13478*** Unable to find sndfile library! The audio loader module which 13479*** requires this library will be disabled. 13480*** 13481*** This is NO ERROR. It only means you can't playback certain 13482*** audio file types (e.g. .WAV, .PCM, .AU, .SND) in the emulated 13483*** tape recorder. 13484*** 13485*** If you are still annoyed by this warning you can tell ./configure 13486*** not to check for this library by using --disable-libsndfile 13487***" >&5 13488$as_echo "$as_me: WARNING: 13489*** 13490*** Unable to find sndfile library! The audio loader module which 13491*** requires this library will be disabled. 13492*** 13493*** This is NO ERROR. It only means you can't playback certain 13494*** audio file types (e.g. .WAV, .PCM, .AU, .SND) in the emulated 13495*** tape recorder. 13496*** 13497*** If you are still annoyed by this warning you can tell ./configure 13498*** not to check for this library by using --disable-libsndfile 13499***" >&2;} 13500 fi 13501 fi 13502fi 13503 13504have_libaudiofile=no 13505if test x$enable_libaudiofile = xyes; then 13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for afOpenFile in -laudiofile" >&5 13507$as_echo_n "checking for afOpenFile in -laudiofile... " >&6; } 13508if test "${ac_cv_lib_audiofile_afOpenFile+set}" = set; then : 13509 $as_echo_n "(cached) " >&6 13510else 13511 ac_check_lib_save_LIBS=$LIBS 13512LIBS="-laudiofile $LIBS" 13513cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13514/* end confdefs.h. */ 13515 13516/* Override any GCC internal prototype to avoid an error. 13517 Use char because int might match the return type of a GCC 13518 builtin and then its argument prototype would still apply. */ 13519#ifdef __cplusplus 13520extern "C" 13521#endif 13522char afOpenFile (); 13523int 13524main () 13525{ 13526return afOpenFile (); 13527 ; 13528 return 0; 13529} 13530_ACEOF 13531if ac_fn_c_try_link "$LINENO"; then : 13532 ac_cv_lib_audiofile_afOpenFile=yes 13533else 13534 ac_cv_lib_audiofile_afOpenFile=no 13535fi 13536rm -f core conftest.err conftest.$ac_objext \ 13537 conftest$ac_exeext conftest.$ac_ext 13538LIBS=$ac_check_lib_save_LIBS 13539fi 13540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audiofile_afOpenFile" >&5 13541$as_echo "$ac_cv_lib_audiofile_afOpenFile" >&6; } 13542if test "x$ac_cv_lib_audiofile_afOpenFile" = x""yes; then : 13543 have_libaudiofile=yes 13544else 13545 have_libaudiofile=no 13546fi 13547 13548 if test x$have_libaudiofile = xyes; then 13549 AUDIOFILE_LIBS=-laudiofile 13550 13551 13552$as_echo "#define HAVE_LIBAUDIOFILE 1" >>confdefs.h 13553 13554 else 13555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 13556*** 13557*** Unable to find audiofile library! The audio loader module which 13558*** requires this library will be disabled. 13559*** 13560*** This is NO ERROR. It only means you can't playback certain 13561*** audio file types (e.g. .WAV, .AIFF, .AU) in the emulated 13562*** tape recorder. 13563*** 13564*** If you are still annoyed by this warning you can tell ./configure 13565*** not to check for this library by using --disable-libaudiofile 13566***" >&5 13567$as_echo "$as_me: WARNING: 13568*** 13569*** Unable to find audiofile library! The audio loader module which 13570*** requires this library will be disabled. 13571*** 13572*** This is NO ERROR. It only means you can't playback certain 13573*** audio file types (e.g. .WAV, .AIFF, .AU) in the emulated 13574*** tape recorder. 13575*** 13576*** If you are still annoyed by this warning you can tell ./configure 13577*** not to check for this library by using --disable-libaudiofile 13578***" >&2;} 13579 fi 13580fi 13581 13582have_libmp3lame=no 13583if test x$enable_libmp3lame = xyes; then 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lame_decode1_headers in -lmp3lame" >&5 13585$as_echo_n "checking for lame_decode1_headers in -lmp3lame... " >&6; } 13586if test "${ac_cv_lib_mp3lame_lame_decode1_headers+set}" = set; then : 13587 $as_echo_n "(cached) " >&6 13588else 13589 ac_check_lib_save_LIBS=$LIBS 13590LIBS="-lmp3lame $LIBS" 13591cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13592/* end confdefs.h. */ 13593 13594/* Override any GCC internal prototype to avoid an error. 13595 Use char because int might match the return type of a GCC 13596 builtin and then its argument prototype would still apply. */ 13597#ifdef __cplusplus 13598extern "C" 13599#endif 13600char lame_decode1_headers (); 13601int 13602main () 13603{ 13604return lame_decode1_headers (); 13605 ; 13606 return 0; 13607} 13608_ACEOF 13609if ac_fn_c_try_link "$LINENO"; then : 13610 ac_cv_lib_mp3lame_lame_decode1_headers=yes 13611else 13612 ac_cv_lib_mp3lame_lame_decode1_headers=no 13613fi 13614rm -f core conftest.err conftest.$ac_objext \ 13615 conftest$ac_exeext conftest.$ac_ext 13616LIBS=$ac_check_lib_save_LIBS 13617fi 13618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp3lame_lame_decode1_headers" >&5 13619$as_echo "$ac_cv_lib_mp3lame_lame_decode1_headers" >&6; } 13620if test "x$ac_cv_lib_mp3lame_lame_decode1_headers" = x""yes; then : 13621 have_libmp3lame=yes 13622else 13623 have_libmp3lame=no 13624fi 13625 13626 if test x$have_libmp3lame = xyes; then 13627 MP3LAME_LIBS=-lmp3lame 13628 13629 13630$as_echo "#define HAVE_LIBMP3LAME 1" >>confdefs.h 13631 13632 else 13633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 13634*** 13635*** Unable to find libmp3lame (part of MP3 encoder LAME)! The audio 13636*** loader module which requires this library will be disabled. 13637*** 13638*** This is NO ERROR. It only means you can't playback certain 13639*** audio file types (e.g. .MP3) in the emulated tape recorder. 13640*** 13641*** If you are still annoyed by this warning you can tell ./configure 13642*** not to check for this library by using --disable-libmp3lame 13643***" >&5 13644$as_echo "$as_me: WARNING: 13645*** 13646*** Unable to find libmp3lame (part of MP3 encoder LAME)! The audio 13647*** loader module which requires this library will be disabled. 13648*** 13649*** This is NO ERROR. It only means you can't playback certain 13650*** audio file types (e.g. .MP3) in the emulated tape recorder. 13651*** 13652*** If you are still annoyed by this warning you can tell ./configure 13653*** not to check for this library by using --disable-libmp3lame 13654***" >&2;} 13655 fi 13656fi 13657 13658have_libvorbis=no 13659if test x$enable_libvorbis = xyes; then 13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ov_open in -lvorbisfile" >&5 13661$as_echo_n "checking for ov_open in -lvorbisfile... " >&6; } 13662if test "${ac_cv_lib_vorbisfile_ov_open+set}" = set; then : 13663 $as_echo_n "(cached) " >&6 13664else 13665 ac_check_lib_save_LIBS=$LIBS 13666LIBS="-lvorbisfile -lvorbis $LIBS" 13667cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13668/* end confdefs.h. */ 13669 13670/* Override any GCC internal prototype to avoid an error. 13671 Use char because int might match the return type of a GCC 13672 builtin and then its argument prototype would still apply. */ 13673#ifdef __cplusplus 13674extern "C" 13675#endif 13676char ov_open (); 13677int 13678main () 13679{ 13680return ov_open (); 13681 ; 13682 return 0; 13683} 13684_ACEOF 13685if ac_fn_c_try_link "$LINENO"; then : 13686 ac_cv_lib_vorbisfile_ov_open=yes 13687else 13688 ac_cv_lib_vorbisfile_ov_open=no 13689fi 13690rm -f core conftest.err conftest.$ac_objext \ 13691 conftest$ac_exeext conftest.$ac_ext 13692LIBS=$ac_check_lib_save_LIBS 13693fi 13694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisfile_ov_open" >&5 13695$as_echo "$ac_cv_lib_vorbisfile_ov_open" >&6; } 13696if test "x$ac_cv_lib_vorbisfile_ov_open" = x""yes; then : 13697 have_libvorbis=yes 13698else 13699 have_libvorbis=no 13700fi 13701 13702 if test x$have_libvorbis = xyes; then 13703 VORBIS_LIBS="-lvorbisfile -lvorbis" 13704 13705 13706$as_echo "#define HAVE_LIBVORBIS 1" >>confdefs.h 13707 13708 else 13709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 13710*** 13711*** Unable to find libvorbis library! The audio loader module which 13712*** requires this library will be disabled. 13713*** 13714*** This is NO ERROR. It only means you can't playback certain 13715*** audio file types (e.g. .OGG) in the emulated tape recorder. 13716*** 13717*** If you are still annoyed by this warning you can tell ./configure 13718*** not to check for this library by using --disable-libvorbis 13719***" >&5 13720$as_echo "$as_me: WARNING: 13721*** 13722*** Unable to find libvorbis library! The audio loader module which 13723*** requires this library will be disabled. 13724*** 13725*** This is NO ERROR. It only means you can't playback certain 13726*** audio file types (e.g. .OGG) in the emulated tape recorder. 13727*** 13728*** If you are still annoyed by this warning you can tell ./configure 13729*** not to check for this library by using --disable-libvorbis 13730***" >&2;} 13731 fi 13732fi 13733 13734have_libflac=no 13735if test x$enable_libflac = xyes; then 13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLAC__file_decoder_process_metadata in -lFLAC" >&5 13737$as_echo_n "checking for FLAC__file_decoder_process_metadata in -lFLAC... " >&6; } 13738if test "${ac_cv_lib_FLAC_FLAC__file_decoder_process_metadata+set}" = set; then : 13739 $as_echo_n "(cached) " >&6 13740else 13741 ac_check_lib_save_LIBS=$LIBS 13742LIBS="-lFLAC $LIBS" 13743cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13744/* end confdefs.h. */ 13745 13746/* Override any GCC internal prototype to avoid an error. 13747 Use char because int might match the return type of a GCC 13748 builtin and then its argument prototype would still apply. */ 13749#ifdef __cplusplus 13750extern "C" 13751#endif 13752char FLAC__file_decoder_process_metadata (); 13753int 13754main () 13755{ 13756return FLAC__file_decoder_process_metadata (); 13757 ; 13758 return 0; 13759} 13760_ACEOF 13761if ac_fn_c_try_link "$LINENO"; then : 13762 ac_cv_lib_FLAC_FLAC__file_decoder_process_metadata=yes 13763else 13764 ac_cv_lib_FLAC_FLAC__file_decoder_process_metadata=no 13765fi 13766rm -f core conftest.err conftest.$ac_objext \ 13767 conftest$ac_exeext conftest.$ac_ext 13768LIBS=$ac_check_lib_save_LIBS 13769fi 13770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_FLAC_FLAC__file_decoder_process_metadata" >&5 13771$as_echo "$ac_cv_lib_FLAC_FLAC__file_decoder_process_metadata" >&6; } 13772if test "x$ac_cv_lib_FLAC_FLAC__file_decoder_process_metadata" = x""yes; then : 13773 have_libflac=yes 13774else 13775 have_libflac=no 13776fi 13777 13778 if test x$have_libflac = xyes; then 13779 F_L_A_C_LIBS=-lFLAC 13780 13781 13782$as_echo "#define HAVE_LIBFLAC 1" >>confdefs.h 13783 13784 else 13785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 13786*** 13787*** Unable to find libFLAC library! The audio loader module which 13788*** requires this library will be disabled. 13789*** 13790*** Currently only libFLAC 1.0.x is supported! 13791*** 13792*** This is NO ERROR. It only means you can't playback certain 13793*** audio file types (e.g. .FLAC) in the emulated tape recorder. 13794*** 13795*** If you are still annoyed by this warning you can tell ./configure 13796*** not to check for this library by using --disable-libflac 13797***" >&5 13798$as_echo "$as_me: WARNING: 13799*** 13800*** Unable to find libFLAC library! The audio loader module which 13801*** requires this library will be disabled. 13802*** 13803*** Currently only libFLAC 1.0.x is supported! 13804*** 13805*** This is NO ERROR. It only means you can't playback certain 13806*** audio file types (e.g. .FLAC) in the emulated tape recorder. 13807*** 13808*** If you are still annoyed by this warning you can tell ./configure 13809*** not to check for this library by using --disable-libflac 13810***" >&2;} 13811 fi 13812fi 13813 13814 13815 13816for ac_header in sys/soundcard.h 13817do : 13818 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default" 13819if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then : 13820 cat >>confdefs.h <<_ACEOF 13821#define HAVE_SYS_SOUNDCARD_H 1 13822_ACEOF 13823 13824fi 13825 13826done 13827 13828for ac_header in machine/soundcard.h 13829do : 13830 ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default" 13831if test "x$ac_cv_header_machine_soundcard_h" = x""yes; then : 13832 cat >>confdefs.h <<_ACEOF 13833#define HAVE_MACHINE_SOUNDCARD_H 1 13834_ACEOF 13835 13836fi 13837 13838done 13839 13840if test x$ac_cv_header_sys_soundcard_h = xyes -o x$ac_cv_header_machine_soundcard_h = xyes; then 13841 13842$as_echo "#define HAVE_OSS 1" >>confdefs.h 13843 13844else 13845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 13846*** 13847*** Unable to find OSS header file soundcard.h! The audio loader 13848*** module which requires OSS will be disabled. 13849*** 13850*** This is NO ERROR. It only means you can't directly load programs 13851*** by reading directly from the soundcard line input. 13852***" >&5 13853$as_echo "$as_me: WARNING: 13854*** 13855*** Unable to find OSS header file soundcard.h! The audio loader 13856*** module which requires OSS will be disabled. 13857*** 13858*** This is NO ERROR. It only means you can't directly load programs 13859*** by reading directly from the soundcard line input. 13860***" >&2;} 13861fi 13862 13863 13864if test x$enable_sound = xyes; then 13865 13866$as_echo "#define ENABLE_SOUND 1" >>confdefs.h 13867 13868 13869# Check whether --with-sdl-prefix was given. 13870if test "${with_sdl_prefix+set}" = set; then : 13871 withval=$with_sdl_prefix; sdl_prefix="$withval" 13872else 13873 sdl_prefix="" 13874fi 13875 13876 13877# Check whether --with-sdl-exec-prefix was given. 13878if test "${with_sdl_exec_prefix+set}" = set; then : 13879 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" 13880else 13881 sdl_exec_prefix="" 13882fi 13883 13884# Check whether --enable-sdltest was given. 13885if test "${enable_sdltest+set}" = set; then : 13886 enableval=$enable_sdltest; 13887else 13888 enable_sdltest=yes 13889fi 13890 13891 13892 if test x$sdl_exec_prefix != x ; then 13893 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix" 13894 if test x${SDL_CONFIG+set} != xset ; then 13895 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 13896 fi 13897 fi 13898 if test x$sdl_prefix != x ; then 13899 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix" 13900 if test x${SDL_CONFIG+set} != xset ; then 13901 SDL_CONFIG=$sdl_prefix/bin/sdl-config 13902 fi 13903 fi 13904 13905 if test "x$prefix" != xNONE; then 13906 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 13907 fi 13908 # Extract the first word of "sdl-config", so it can be a program name with args. 13909set dummy sdl-config; ac_word=$2 13910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13911$as_echo_n "checking for $ac_word... " >&6; } 13912if test "${ac_cv_path_SDL_CONFIG+set}" = set; then : 13913 $as_echo_n "(cached) " >&6 13914else 13915 case $SDL_CONFIG in 13916 [\\/]* | ?:[\\/]*) 13917 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 13918 ;; 13919 *) 13920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13921for as_dir in $PATH 13922do 13923 IFS=$as_save_IFS 13924 test -z "$as_dir" && as_dir=. 13925 for ac_exec_ext in '' $ac_executable_extensions; do 13926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13927 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13929 break 2 13930 fi 13931done 13932 done 13933IFS=$as_save_IFS 13934 13935 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 13936 ;; 13937esac 13938fi 13939SDL_CONFIG=$ac_cv_path_SDL_CONFIG 13940if test -n "$SDL_CONFIG"; then 13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5 13942$as_echo "$SDL_CONFIG" >&6; } 13943else 13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13945$as_echo "no" >&6; } 13946fi 13947 13948 13949 min_sdl_version=1.2.0 13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5 13951$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; } 13952 no_sdl="" 13953 if test "$SDL_CONFIG" = "no" ; then 13954 no_sdl=yes 13955 else 13956 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags` 13957 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs` 13958 13959 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \ 13960 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 13961 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \ 13962 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 13963 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 13964 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 13965 if test "x$enable_sdltest" = "xyes" ; then 13966 ac_save_CFLAGS="$CFLAGS" 13967 ac_save_CXXFLAGS="$CXXFLAGS" 13968 ac_save_LIBS="$LIBS" 13969 CFLAGS="$CFLAGS $SDL_CFLAGS" 13970 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 13971 LIBS="$LIBS $SDL_LIBS" 13972 rm -f conf.sdltest 13973 if test "$cross_compiling" = yes; then : 13974 echo $ac_n "cross compiling; assumed OK... $ac_c" 13975else 13976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13977/* end confdefs.h. */ 13978 13979#include <stdio.h> 13980#include <stdlib.h> 13981#include <string.h> 13982#include "SDL.h" 13983 13984char* 13985my_strdup (char *str) 13986{ 13987 char *new_str; 13988 13989 if (str) 13990 { 13991 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 13992 strcpy (new_str, str); 13993 } 13994 else 13995 new_str = NULL; 13996 13997 return new_str; 13998} 13999 14000int main (int argc, char *argv[]) 14001{ 14002 int major, minor, micro; 14003 char *tmp_version; 14004 14005 /* This hangs on some systems (?) 14006 system ("touch conf.sdltest"); 14007 */ 14008 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 14009 14010 /* HP/UX 9 (%@#!) writes to sscanf strings */ 14011 tmp_version = my_strdup("$min_sdl_version"); 14012 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 14013 printf("%s, bad version string\n", "$min_sdl_version"); 14014 exit(1); 14015 } 14016 14017 if (($sdl_major_version > major) || 14018 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 14019 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 14020 { 14021 return 0; 14022 } 14023 else 14024 { 14025 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 14026 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 14027 printf("*** best to upgrade to the required version.\n"); 14028 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 14029 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 14030 printf("*** config.cache before re-running configure\n"); 14031 return 1; 14032 } 14033} 14034 14035 14036_ACEOF 14037if ac_fn_c_try_run "$LINENO"; then : 14038 14039else 14040 no_sdl=yes 14041fi 14042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14043 conftest.$ac_objext conftest.beam conftest.$ac_ext 14044fi 14045 14046 CFLAGS="$ac_save_CFLAGS" 14047 CXXFLAGS="$ac_save_CXXFLAGS" 14048 LIBS="$ac_save_LIBS" 14049 fi 14050 fi 14051 if test "x$no_sdl" = x ; then 14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14053$as_echo "yes" >&6; } 14054 have_libsdl=yes 14055 else 14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14057$as_echo "no" >&6; } 14058 if test "$SDL_CONFIG" = "no" ; then 14059 echo "*** The sdl-config script installed by SDL could not be found" 14060 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 14061 echo "*** your path, or set the SDL_CONFIG environment variable to the" 14062 echo "*** full path to sdl-config." 14063 else 14064 if test -f conf.sdltest ; then 14065 : 14066 else 14067 echo "*** Could not run SDL test program, checking why..." 14068 CFLAGS="$CFLAGS $SDL_CFLAGS" 14069 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 14070 LIBS="$LIBS $SDL_LIBS" 14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14072/* end confdefs.h. */ 14073 14074#include <stdio.h> 14075#include "SDL.h" 14076 14077int main(int argc, char *argv[]) 14078{ return 0; } 14079#undef main 14080#define main K_and_R_C_main 14081 14082int 14083main () 14084{ 14085 return 0; 14086 ; 14087 return 0; 14088} 14089_ACEOF 14090if ac_fn_c_try_link "$LINENO"; then : 14091 echo "*** The test program compiled, but did not run. This usually means" 14092 echo "*** that the run-time linker is not finding SDL or finding the wrong" 14093 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 14094 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 14095 echo "*** to the installed location Also, make sure you have run ldconfig if that" 14096 echo "*** is required on your system" 14097 echo "***" 14098 echo "*** If you have an old version installed, it is best to remove it, although" 14099 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 14100else 14101 echo "*** The test program failed to compile or link. See the file config.log for the" 14102 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 14103 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 14104 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 14105fi 14106rm -f core conftest.err conftest.$ac_objext \ 14107 conftest$ac_exeext conftest.$ac_ext 14108 CFLAGS="$ac_save_CFLAGS" 14109 CXXFLAGS="$ac_save_CXXFLAGS" 14110 LIBS="$ac_save_LIBS" 14111 fi 14112 fi 14113 SDL_CFLAGS="" 14114 SDL_LIBS="" 14115 have_libsdl=no 14116 fi 14117 14118 14119 rm -f conf.sdltest 14120 14121fi 14122 14123if test x$have_libsdl = xyes; then 14124 14125$as_echo "#define HAVE_LIBSDL 1" >>confdefs.h 14126 14127else 14128 if test x$enable_sound = xyes; then 14129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 14130*** 14131*** Unable to find SDL library (see http://www.libsdl.org/) 14132*** Sound is disabled! 14133***" >&5 14134$as_echo "$as_me: WARNING: 14135*** 14136*** Unable to find SDL library (see http://www.libsdl.org/) 14137*** Sound is disabled! 14138***" >&2;} 14139 enable_sound=no 14140 fi 14141fi 14142 14143ac_config_files="$ac_config_files Makefile include/Makefile include/kc/Makefile include/kc/prefs/Makefile include/kc/kcnet/Makefile include/kc/kramermc/Makefile include/kc/muglerpc/Makefile include/kc/vcs80/Makefile include/kc/c80/Makefile include/sys/Makefile include/getopt/Makefile include/cmd/Makefile include/ui/Makefile include/ui/gtk/Makefile include/ui/generic/Makefile include/fileio/Makefile include/libdbg/Makefile include/libtape/Makefile include/libdisk/Makefile include/libaudio/Makefile include/libgtkex/Makefile asm/Makefile asm/autostart/Makefile src/Makefile src/kc/kcemu.rc src/kc/Makefile src/kc/prefs/Makefile src/kc/kcnet/Makefile src/kc/kramermc/Makefile src/kc/muglerpc/Makefile src/kc/vcs80/Makefile src/kc/c80/Makefile src/sys/Makefile src/sys/mingw/Makefile src/sys/linux/Makefile src/getopt/Makefile src/cmd/Makefile src/ui/Makefile src/ui/gtk/Makefile src/ui/generic/Makefile src/fileio/Makefile src/libdbg/Makefile src/libtape/Makefile src/libdisk/Makefile src/libaudio/Makefile src/libgtkex/Makefile src/util/Makefile test/Makefile test/kc/Makefile test/kc/prefs/Makefile test/libaudio/Makefile test/libaudio/data/Makefile test/libgtkex/Makefile roms/Makefile roms/z1013/Makefile roms/z9001/Makefile roms/kc85/Makefile roms/poly880/Makefile roms/lc80/Makefile roms/a5105/Makefile roms/kramermc/Makefile roms/muglerpc/Makefile roms/vcs80/Makefile roms/c80/Makefile tapes/Makefile disks/Makefile images/Makefile images/original/Makefile doc/Makefile doc/kcemu-help.xml intl/Makefile man/Makefile man/man1/Makefile debian/Makefile rpm/Makefile rpm/KCemu.spec po/Makefile.in conf/Makefile setup/Makefile setup/KCemuSetup.nsi" 14144 14145cat >confcache <<\_ACEOF 14146# This file is a shell script that caches the results of configure 14147# tests run on this system so they can be shared between configure 14148# scripts and configure runs, see configure's option --config-cache. 14149# It is not useful on other systems. If it contains results you don't 14150# want to keep, you may remove or edit it. 14151# 14152# config.status only pays attention to the cache file if you give it 14153# the --recheck option to rerun configure. 14154# 14155# `ac_cv_env_foo' variables (set or unset) will be overridden when 14156# loading this file, other *unset* `ac_cv_foo' will be assigned the 14157# following values. 14158 14159_ACEOF 14160 14161# The following way of writing the cache mishandles newlines in values, 14162# but we know of no workaround that is simple, portable, and efficient. 14163# So, we kill variables containing newlines. 14164# Ultrix sh set writes to stderr and can't be redirected directly, 14165# and sets the high bit in the cache file unless we assign to the vars. 14166( 14167 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14168 eval ac_val=\$$ac_var 14169 case $ac_val in #( 14170 *${as_nl}*) 14171 case $ac_var in #( 14172 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14173$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14174 esac 14175 case $ac_var in #( 14176 _ | IFS | as_nl) ;; #( 14177 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14178 *) { eval $ac_var=; unset $ac_var;} ;; 14179 esac ;; 14180 esac 14181 done 14182 14183 (set) 2>&1 | 14184 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14185 *${as_nl}ac_space=\ *) 14186 # `set' does not quote correctly, so add quotes: double-quote 14187 # substitution turns \\\\ into \\, and sed turns \\ into \. 14188 sed -n \ 14189 "s/'/'\\\\''/g; 14190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14191 ;; #( 14192 *) 14193 # `set' quotes correctly as required by POSIX, so do not add quotes. 14194 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14195 ;; 14196 esac | 14197 sort 14198) | 14199 sed ' 14200 /^ac_cv_env_/b end 14201 t clear 14202 :clear 14203 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14204 t end 14205 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14206 :end' >>confcache 14207if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14208 if test -w "$cache_file"; then 14209 test "x$cache_file" != "x/dev/null" && 14210 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14211$as_echo "$as_me: updating cache $cache_file" >&6;} 14212 cat confcache >$cache_file 14213 else 14214 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14215$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14216 fi 14217fi 14218rm -f confcache 14219 14220test "x$prefix" = xNONE && prefix=$ac_default_prefix 14221# Let make expand exec_prefix. 14222test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14223 14224DEFS=-DHAVE_CONFIG_H 14225 14226ac_libobjs= 14227ac_ltlibobjs= 14228for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14229 # 1. Remove the extension, and $U if already installed. 14230 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14231 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14232 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14233 # will be set to the directory where LIBOBJS objects are built. 14234 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14235 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14236done 14237LIBOBJS=$ac_libobjs 14238 14239LTLIBOBJS=$ac_ltlibobjs 14240 14241 14242if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14243 as_fn_error "conditional \"AMDEP\" was never defined. 14244Usually this means the macro was only invoked conditionally." "$LINENO" 5 14245fi 14246if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14247 as_fn_error "conditional \"am__fastdepCC\" was never defined. 14248Usually this means the macro was only invoked conditionally." "$LINENO" 5 14249fi 14250 if test -n "$EXEEXT"; then 14251 am__EXEEXT_TRUE= 14252 am__EXEEXT_FALSE='#' 14253else 14254 am__EXEEXT_TRUE='#' 14255 am__EXEEXT_FALSE= 14256fi 14257 14258if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 14259 as_fn_error "conditional \"am__fastdepCXX\" was never defined. 14260Usually this means the macro was only invoked conditionally." "$LINENO" 5 14261fi 14262if test -z "${COMPILE_Z80_ASM_TRUE}" && test -z "${COMPILE_Z80_ASM_FALSE}"; then 14263 as_fn_error "conditional \"COMPILE_Z80_ASM\" was never defined. 14264Usually this means the macro was only invoked conditionally." "$LINENO" 5 14265fi 14266if test -z "${COMPILE_Z80_ASM_TRUE}" && test -z "${COMPILE_Z80_ASM_FALSE}"; then 14267 as_fn_error "conditional \"COMPILE_Z80_ASM\" was never defined. 14268Usually this means the macro was only invoked conditionally." "$LINENO" 5 14269fi 14270if test -z "${TARGET_MINGW_TRUE}" && test -z "${TARGET_MINGW_FALSE}"; then 14271 as_fn_error "conditional \"TARGET_MINGW\" was never defined. 14272Usually this means the macro was only invoked conditionally." "$LINENO" 5 14273fi 14274if test -z "${TARGET_LINUX_TRUE}" && test -z "${TARGET_LINUX_FALSE}"; then 14275 as_fn_error "conditional \"TARGET_LINUX\" was never defined. 14276Usually this means the macro was only invoked conditionally." "$LINENO" 5 14277fi 14278if test -z "${TARGET_FREEBSD_TRUE}" && test -z "${TARGET_FREEBSD_FALSE}"; then 14279 as_fn_error "conditional \"TARGET_FREEBSD\" was never defined. 14280Usually this means the macro was only invoked conditionally." "$LINENO" 5 14281fi 14282if test -z "${TARGET_MINGW_TRUE}" && test -z "${TARGET_MINGW_FALSE}"; then 14283 as_fn_error "conditional \"TARGET_MINGW\" was never defined. 14284Usually this means the macro was only invoked conditionally." "$LINENO" 5 14285fi 14286if test -z "${TARGET_FREEBSD_TRUE}" && test -z "${TARGET_FREEBSD_FALSE}"; then 14287 as_fn_error "conditional \"TARGET_FREEBSD\" was never defined. 14288Usually this means the macro was only invoked conditionally." "$LINENO" 5 14289fi 14290if test -z "${TARGET_LINUX_TRUE}" && test -z "${TARGET_LINUX_FALSE}"; then 14291 as_fn_error "conditional \"TARGET_LINUX\" was never defined. 14292Usually this means the macro was only invoked conditionally." "$LINENO" 5 14293fi 14294if test -z "${USE_INCLUDED_GETOPT_TRUE}" && test -z "${USE_INCLUDED_GETOPT_FALSE}"; then 14295 as_fn_error "conditional \"USE_INCLUDED_GETOPT\" was never defined. 14296Usually this means the macro was only invoked conditionally." "$LINENO" 5 14297fi 14298if test -z "${USE_INCLUDED_GETOPT_TRUE}" && test -z "${USE_INCLUDED_GETOPT_FALSE}"; then 14299 as_fn_error "conditional \"USE_INCLUDED_GETOPT\" was never defined. 14300Usually this means the macro was only invoked conditionally." "$LINENO" 5 14301fi 14302if test -z "${HAVE_CPPUNIT_TRUE}" && test -z "${HAVE_CPPUNIT_FALSE}"; then 14303 as_fn_error "conditional \"HAVE_CPPUNIT\" was never defined. 14304Usually this means the macro was only invoked conditionally." "$LINENO" 5 14305fi 14306 14307: ${CONFIG_STATUS=./config.status} 14308ac_write_fail=0 14309ac_clean_files_save=$ac_clean_files 14310ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14311{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14312$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14313as_write_fail=0 14314cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14315#! $SHELL 14316# Generated by $as_me. 14317# Run this file to recreate the current configuration. 14318# Compiler output produced by configure, useful for debugging 14319# configure, is in config.log if it exists. 14320 14321debug=false 14322ac_cs_recheck=false 14323ac_cs_silent=false 14324 14325SHELL=\${CONFIG_SHELL-$SHELL} 14326export SHELL 14327_ASEOF 14328cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14329## -------------------- ## 14330## M4sh Initialization. ## 14331## -------------------- ## 14332 14333# Be more Bourne compatible 14334DUALCASE=1; export DUALCASE # for MKS sh 14335if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14336 emulate sh 14337 NULLCMD=: 14338 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14339 # is contrary to our usage. Disable this feature. 14340 alias -g '${1+"$@"}'='"$@"' 14341 setopt NO_GLOB_SUBST 14342else 14343 case `(set -o) 2>/dev/null` in #( 14344 *posix*) : 14345 set -o posix ;; #( 14346 *) : 14347 ;; 14348esac 14349fi 14350 14351 14352as_nl=' 14353' 14354export as_nl 14355# Printing a long string crashes Solaris 7 /usr/bin/printf. 14356as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14357as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14358as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14359# Prefer a ksh shell builtin over an external printf program on Solaris, 14360# but without wasting forks for bash or zsh. 14361if test -z "$BASH_VERSION$ZSH_VERSION" \ 14362 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14363 as_echo='print -r --' 14364 as_echo_n='print -rn --' 14365elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14366 as_echo='printf %s\n' 14367 as_echo_n='printf %s' 14368else 14369 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14370 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14371 as_echo_n='/usr/ucb/echo -n' 14372 else 14373 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14374 as_echo_n_body='eval 14375 arg=$1; 14376 case $arg in #( 14377 *"$as_nl"*) 14378 expr "X$arg" : "X\\(.*\\)$as_nl"; 14379 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14380 esac; 14381 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14382 ' 14383 export as_echo_n_body 14384 as_echo_n='sh -c $as_echo_n_body as_echo' 14385 fi 14386 export as_echo_body 14387 as_echo='sh -c $as_echo_body as_echo' 14388fi 14389 14390# The user is always right. 14391if test "${PATH_SEPARATOR+set}" != set; then 14392 PATH_SEPARATOR=: 14393 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14394 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14395 PATH_SEPARATOR=';' 14396 } 14397fi 14398 14399 14400# IFS 14401# We need space, tab and new line, in precisely that order. Quoting is 14402# there to prevent editors from complaining about space-tab. 14403# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14404# splitting by setting IFS to empty value.) 14405IFS=" "" $as_nl" 14406 14407# Find who we are. Look in the path if we contain no directory separator. 14408case $0 in #(( 14409 *[\\/]* ) as_myself=$0 ;; 14410 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14411for as_dir in $PATH 14412do 14413 IFS=$as_save_IFS 14414 test -z "$as_dir" && as_dir=. 14415 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14416 done 14417IFS=$as_save_IFS 14418 14419 ;; 14420esac 14421# We did not find ourselves, most probably we were run as `sh COMMAND' 14422# in which case we are not to be found in the path. 14423if test "x$as_myself" = x; then 14424 as_myself=$0 14425fi 14426if test ! -f "$as_myself"; then 14427 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14428 exit 1 14429fi 14430 14431# Unset variables that we do not need and which cause bugs (e.g. in 14432# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14433# suppresses any "Segmentation fault" message there. '((' could 14434# trigger a bug in pdksh 5.2.14. 14435for as_var in BASH_ENV ENV MAIL MAILPATH 14436do eval test x\${$as_var+set} = xset \ 14437 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14438done 14439PS1='$ ' 14440PS2='> ' 14441PS4='+ ' 14442 14443# NLS nuisances. 14444LC_ALL=C 14445export LC_ALL 14446LANGUAGE=C 14447export LANGUAGE 14448 14449# CDPATH. 14450(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14451 14452 14453# as_fn_error ERROR [LINENO LOG_FD] 14454# --------------------------------- 14455# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14456# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14457# script with status $?, using 1 if that was 0. 14458as_fn_error () 14459{ 14460 as_status=$?; test $as_status -eq 0 && as_status=1 14461 if test "$3"; then 14462 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14463 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 14464 fi 14465 $as_echo "$as_me: error: $1" >&2 14466 as_fn_exit $as_status 14467} # as_fn_error 14468 14469 14470# as_fn_set_status STATUS 14471# ----------------------- 14472# Set $? to STATUS, without forking. 14473as_fn_set_status () 14474{ 14475 return $1 14476} # as_fn_set_status 14477 14478# as_fn_exit STATUS 14479# ----------------- 14480# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14481as_fn_exit () 14482{ 14483 set +e 14484 as_fn_set_status $1 14485 exit $1 14486} # as_fn_exit 14487 14488# as_fn_unset VAR 14489# --------------- 14490# Portably unset VAR. 14491as_fn_unset () 14492{ 14493 { eval $1=; unset $1;} 14494} 14495as_unset=as_fn_unset 14496# as_fn_append VAR VALUE 14497# ---------------------- 14498# Append the text in VALUE to the end of the definition contained in VAR. Take 14499# advantage of any shell optimizations that allow amortized linear growth over 14500# repeated appends, instead of the typical quadratic growth present in naive 14501# implementations. 14502if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14503 eval 'as_fn_append () 14504 { 14505 eval $1+=\$2 14506 }' 14507else 14508 as_fn_append () 14509 { 14510 eval $1=\$$1\$2 14511 } 14512fi # as_fn_append 14513 14514# as_fn_arith ARG... 14515# ------------------ 14516# Perform arithmetic evaluation on the ARGs, and store the result in the 14517# global $as_val. Take advantage of shells that can avoid forks. The arguments 14518# must be portable across $(()) and expr. 14519if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14520 eval 'as_fn_arith () 14521 { 14522 as_val=$(( $* )) 14523 }' 14524else 14525 as_fn_arith () 14526 { 14527 as_val=`expr "$@" || test $? -eq 1` 14528 } 14529fi # as_fn_arith 14530 14531 14532if expr a : '\(a\)' >/dev/null 2>&1 && 14533 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14534 as_expr=expr 14535else 14536 as_expr=false 14537fi 14538 14539if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14540 as_basename=basename 14541else 14542 as_basename=false 14543fi 14544 14545if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14546 as_dirname=dirname 14547else 14548 as_dirname=false 14549fi 14550 14551as_me=`$as_basename -- "$0" || 14552$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14553 X"$0" : 'X\(//\)$' \| \ 14554 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14555$as_echo X/"$0" | 14556 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14557 s//\1/ 14558 q 14559 } 14560 /^X\/\(\/\/\)$/{ 14561 s//\1/ 14562 q 14563 } 14564 /^X\/\(\/\).*/{ 14565 s//\1/ 14566 q 14567 } 14568 s/.*/./; q'` 14569 14570# Avoid depending upon Character Ranges. 14571as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14572as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14573as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14574as_cr_digits='0123456789' 14575as_cr_alnum=$as_cr_Letters$as_cr_digits 14576 14577ECHO_C= ECHO_N= ECHO_T= 14578case `echo -n x` in #((((( 14579-n*) 14580 case `echo 'xy\c'` in 14581 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14582 xy) ECHO_C='\c';; 14583 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14584 ECHO_T=' ';; 14585 esac;; 14586*) 14587 ECHO_N='-n';; 14588esac 14589 14590rm -f conf$$ conf$$.exe conf$$.file 14591if test -d conf$$.dir; then 14592 rm -f conf$$.dir/conf$$.file 14593else 14594 rm -f conf$$.dir 14595 mkdir conf$$.dir 2>/dev/null 14596fi 14597if (echo >conf$$.file) 2>/dev/null; then 14598 if ln -s conf$$.file conf$$ 2>/dev/null; then 14599 as_ln_s='ln -s' 14600 # ... but there are two gotchas: 14601 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14602 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14603 # In both cases, we have to default to `cp -p'. 14604 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14605 as_ln_s='cp -p' 14606 elif ln conf$$.file conf$$ 2>/dev/null; then 14607 as_ln_s=ln 14608 else 14609 as_ln_s='cp -p' 14610 fi 14611else 14612 as_ln_s='cp -p' 14613fi 14614rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14615rmdir conf$$.dir 2>/dev/null 14616 14617 14618# as_fn_mkdir_p 14619# ------------- 14620# Create "$as_dir" as a directory, including parents if necessary. 14621as_fn_mkdir_p () 14622{ 14623 14624 case $as_dir in #( 14625 -*) as_dir=./$as_dir;; 14626 esac 14627 test -d "$as_dir" || eval $as_mkdir_p || { 14628 as_dirs= 14629 while :; do 14630 case $as_dir in #( 14631 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14632 *) as_qdir=$as_dir;; 14633 esac 14634 as_dirs="'$as_qdir' $as_dirs" 14635 as_dir=`$as_dirname -- "$as_dir" || 14636$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14637 X"$as_dir" : 'X\(//\)[^/]' \| \ 14638 X"$as_dir" : 'X\(//\)$' \| \ 14639 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14640$as_echo X"$as_dir" | 14641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14642 s//\1/ 14643 q 14644 } 14645 /^X\(\/\/\)[^/].*/{ 14646 s//\1/ 14647 q 14648 } 14649 /^X\(\/\/\)$/{ 14650 s//\1/ 14651 q 14652 } 14653 /^X\(\/\).*/{ 14654 s//\1/ 14655 q 14656 } 14657 s/.*/./; q'` 14658 test -d "$as_dir" && break 14659 done 14660 test -z "$as_dirs" || eval "mkdir $as_dirs" 14661 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 14662 14663 14664} # as_fn_mkdir_p 14665if mkdir -p . 2>/dev/null; then 14666 as_mkdir_p='mkdir -p "$as_dir"' 14667else 14668 test -d ./-p && rmdir ./-p 14669 as_mkdir_p=false 14670fi 14671 14672if test -x / >/dev/null 2>&1; then 14673 as_test_x='test -x' 14674else 14675 if ls -dL / >/dev/null 2>&1; then 14676 as_ls_L_option=L 14677 else 14678 as_ls_L_option= 14679 fi 14680 as_test_x=' 14681 eval sh -c '\'' 14682 if test -d "$1"; then 14683 test -d "$1/."; 14684 else 14685 case $1 in #( 14686 -*)set "./$1";; 14687 esac; 14688 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 14689 ???[sx]*):;;*)false;;esac;fi 14690 '\'' sh 14691 ' 14692fi 14693as_executable_p=$as_test_x 14694 14695# Sed expression to map a string onto a valid CPP name. 14696as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14697 14698# Sed expression to map a string onto a valid variable name. 14699as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14700 14701 14702exec 6>&1 14703## ----------------------------------- ## 14704## Main body of $CONFIG_STATUS script. ## 14705## ----------------------------------- ## 14706_ASEOF 14707test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14708 14709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14710# Save the log message, to keep $0 and so on meaningful, and to 14711# report actual input values of CONFIG_FILES etc. instead of their 14712# values after options handling. 14713ac_log=" 14714This file was extended by $as_me, which was 14715generated by GNU Autoconf 2.65. Invocation command line was 14716 14717 CONFIG_FILES = $CONFIG_FILES 14718 CONFIG_HEADERS = $CONFIG_HEADERS 14719 CONFIG_LINKS = $CONFIG_LINKS 14720 CONFIG_COMMANDS = $CONFIG_COMMANDS 14721 $ $0 $@ 14722 14723on `(hostname || uname -n) 2>/dev/null | sed 1q` 14724" 14725 14726_ACEOF 14727 14728case $ac_config_files in *" 14729"*) set x $ac_config_files; shift; ac_config_files=$*;; 14730esac 14731 14732case $ac_config_headers in *" 14733"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14734esac 14735 14736 14737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14738# Files that config.status was made for. 14739config_files="$ac_config_files" 14740config_headers="$ac_config_headers" 14741config_commands="$ac_config_commands" 14742 14743_ACEOF 14744 14745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14746ac_cs_usage="\ 14747\`$as_me' instantiates files and other configuration actions 14748from templates according to the current configuration. Unless the files 14749and actions are specified as TAGs, all are instantiated by default. 14750 14751Usage: $0 [OPTION]... [TAG]... 14752 14753 -h, --help print this help, then exit 14754 -V, --version print version number and configuration settings, then exit 14755 --config print configuration, then exit 14756 -q, --quiet, --silent 14757 do not print progress messages 14758 -d, --debug don't remove temporary files 14759 --recheck update $as_me by reconfiguring in the same conditions 14760 --file=FILE[:TEMPLATE] 14761 instantiate the configuration file FILE 14762 --header=FILE[:TEMPLATE] 14763 instantiate the configuration header FILE 14764 14765Configuration files: 14766$config_files 14767 14768Configuration headers: 14769$config_headers 14770 14771Configuration commands: 14772$config_commands 14773 14774Report bugs to the package provider." 14775 14776_ACEOF 14777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14778ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14779ac_cs_version="\\ 14780config.status 14781configured by $0, generated by GNU Autoconf 2.65, 14782 with options \\"\$ac_cs_config\\" 14783 14784Copyright (C) 2009 Free Software Foundation, Inc. 14785This config.status script is free software; the Free Software Foundation 14786gives unlimited permission to copy, distribute and modify it." 14787 14788ac_pwd='$ac_pwd' 14789srcdir='$srcdir' 14790INSTALL='$INSTALL' 14791MKDIR_P='$MKDIR_P' 14792AWK='$AWK' 14793test -n "\$AWK" || AWK=awk 14794_ACEOF 14795 14796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14797# The default lists apply if the user does not specify any file. 14798ac_need_defaults=: 14799while test $# != 0 14800do 14801 case $1 in 14802 --*=*) 14803 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14804 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14805 ac_shift=: 14806 ;; 14807 *) 14808 ac_option=$1 14809 ac_optarg=$2 14810 ac_shift=shift 14811 ;; 14812 esac 14813 14814 case $ac_option in 14815 # Handling of the options. 14816 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14817 ac_cs_recheck=: ;; 14818 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14819 $as_echo "$ac_cs_version"; exit ;; 14820 --config | --confi | --conf | --con | --co | --c ) 14821 $as_echo "$ac_cs_config"; exit ;; 14822 --debug | --debu | --deb | --de | --d | -d ) 14823 debug=: ;; 14824 --file | --fil | --fi | --f ) 14825 $ac_shift 14826 case $ac_optarg in 14827 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14828 esac 14829 as_fn_append CONFIG_FILES " '$ac_optarg'" 14830 ac_need_defaults=false;; 14831 --header | --heade | --head | --hea ) 14832 $ac_shift 14833 case $ac_optarg in 14834 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14835 esac 14836 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14837 ac_need_defaults=false;; 14838 --he | --h) 14839 # Conflict between --help and --header 14840 as_fn_error "ambiguous option: \`$1' 14841Try \`$0 --help' for more information.";; 14842 --help | --hel | -h ) 14843 $as_echo "$ac_cs_usage"; exit ;; 14844 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14845 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14846 ac_cs_silent=: ;; 14847 14848 # This is an error. 14849 -*) as_fn_error "unrecognized option: \`$1' 14850Try \`$0 --help' for more information." ;; 14851 14852 *) as_fn_append ac_config_targets " $1" 14853 ac_need_defaults=false ;; 14854 14855 esac 14856 shift 14857done 14858 14859ac_configure_extra_args= 14860 14861if $ac_cs_silent; then 14862 exec 6>/dev/null 14863 ac_configure_extra_args="$ac_configure_extra_args --silent" 14864fi 14865 14866_ACEOF 14867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14868if \$ac_cs_recheck; then 14869 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14870 shift 14871 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14872 CONFIG_SHELL='$SHELL' 14873 export CONFIG_SHELL 14874 exec "\$@" 14875fi 14876 14877_ACEOF 14878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14879exec 5>>config.log 14880{ 14881 echo 14882 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14883## Running $as_me. ## 14884_ASBOX 14885 $as_echo "$ac_log" 14886} >&5 14887 14888_ACEOF 14889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14890# 14891# INIT-COMMANDS 14892# 14893AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14894# Capture the value of obsolete ALL_LINGUAS because we need it to compute 14895 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 14896 # from automake < 1.5. 14897 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 14898 # Capture the value of LINGUAS because we need it to compute CATALOGS. 14899 LINGUAS="${LINGUAS-%UNSET%}" 14900 14901 14902_ACEOF 14903 14904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14905 14906# Handling of arguments. 14907for ac_config_target in $ac_config_targets 14908do 14909 case $ac_config_target in 14910 "include/kc/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/kc/config.h" ;; 14911 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14912 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 14913 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14914 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 14915 "include/kc/Makefile") CONFIG_FILES="$CONFIG_FILES include/kc/Makefile" ;; 14916 "include/kc/prefs/Makefile") CONFIG_FILES="$CONFIG_FILES include/kc/prefs/Makefile" ;; 14917 "include/kc/kcnet/Makefile") CONFIG_FILES="$CONFIG_FILES include/kc/kcnet/Makefile" ;; 14918 "include/kc/kramermc/Makefile") CONFIG_FILES="$CONFIG_FILES include/kc/kramermc/Makefile" ;; 14919 "include/kc/muglerpc/Makefile") CONFIG_FILES="$CONFIG_FILES include/kc/muglerpc/Makefile" ;; 14920 "include/kc/vcs80/Makefile") CONFIG_FILES="$CONFIG_FILES include/kc/vcs80/Makefile" ;; 14921 "include/kc/c80/Makefile") CONFIG_FILES="$CONFIG_FILES include/kc/c80/Makefile" ;; 14922 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;; 14923 "include/getopt/Makefile") CONFIG_FILES="$CONFIG_FILES include/getopt/Makefile" ;; 14924 "include/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES include/cmd/Makefile" ;; 14925 "include/ui/Makefile") CONFIG_FILES="$CONFIG_FILES include/ui/Makefile" ;; 14926 "include/ui/gtk/Makefile") CONFIG_FILES="$CONFIG_FILES include/ui/gtk/Makefile" ;; 14927 "include/ui/generic/Makefile") CONFIG_FILES="$CONFIG_FILES include/ui/generic/Makefile" ;; 14928 "include/fileio/Makefile") CONFIG_FILES="$CONFIG_FILES include/fileio/Makefile" ;; 14929 "include/libdbg/Makefile") CONFIG_FILES="$CONFIG_FILES include/libdbg/Makefile" ;; 14930 "include/libtape/Makefile") CONFIG_FILES="$CONFIG_FILES include/libtape/Makefile" ;; 14931 "include/libdisk/Makefile") CONFIG_FILES="$CONFIG_FILES include/libdisk/Makefile" ;; 14932 "include/libaudio/Makefile") CONFIG_FILES="$CONFIG_FILES include/libaudio/Makefile" ;; 14933 "include/libgtkex/Makefile") CONFIG_FILES="$CONFIG_FILES include/libgtkex/Makefile" ;; 14934 "asm/Makefile") CONFIG_FILES="$CONFIG_FILES asm/Makefile" ;; 14935 "asm/autostart/Makefile") CONFIG_FILES="$CONFIG_FILES asm/autostart/Makefile" ;; 14936 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14937 "src/kc/kcemu.rc") CONFIG_FILES="$CONFIG_FILES src/kc/kcemu.rc" ;; 14938 "src/kc/Makefile") CONFIG_FILES="$CONFIG_FILES src/kc/Makefile" ;; 14939 "src/kc/prefs/Makefile") CONFIG_FILES="$CONFIG_FILES src/kc/prefs/Makefile" ;; 14940 "src/kc/kcnet/Makefile") CONFIG_FILES="$CONFIG_FILES src/kc/kcnet/Makefile" ;; 14941 "src/kc/kramermc/Makefile") CONFIG_FILES="$CONFIG_FILES src/kc/kramermc/Makefile" ;; 14942 "src/kc/muglerpc/Makefile") CONFIG_FILES="$CONFIG_FILES src/kc/muglerpc/Makefile" ;; 14943 "src/kc/vcs80/Makefile") CONFIG_FILES="$CONFIG_FILES src/kc/vcs80/Makefile" ;; 14944 "src/kc/c80/Makefile") CONFIG_FILES="$CONFIG_FILES src/kc/c80/Makefile" ;; 14945 "src/sys/Makefile") CONFIG_FILES="$CONFIG_FILES src/sys/Makefile" ;; 14946 "src/sys/mingw/Makefile") CONFIG_FILES="$CONFIG_FILES src/sys/mingw/Makefile" ;; 14947 "src/sys/linux/Makefile") CONFIG_FILES="$CONFIG_FILES src/sys/linux/Makefile" ;; 14948 "src/getopt/Makefile") CONFIG_FILES="$CONFIG_FILES src/getopt/Makefile" ;; 14949 "src/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES src/cmd/Makefile" ;; 14950 "src/ui/Makefile") CONFIG_FILES="$CONFIG_FILES src/ui/Makefile" ;; 14951 "src/ui/gtk/Makefile") CONFIG_FILES="$CONFIG_FILES src/ui/gtk/Makefile" ;; 14952 "src/ui/generic/Makefile") CONFIG_FILES="$CONFIG_FILES src/ui/generic/Makefile" ;; 14953 "src/fileio/Makefile") CONFIG_FILES="$CONFIG_FILES src/fileio/Makefile" ;; 14954 "src/libdbg/Makefile") CONFIG_FILES="$CONFIG_FILES src/libdbg/Makefile" ;; 14955 "src/libtape/Makefile") CONFIG_FILES="$CONFIG_FILES src/libtape/Makefile" ;; 14956 "src/libdisk/Makefile") CONFIG_FILES="$CONFIG_FILES src/libdisk/Makefile" ;; 14957 "src/libaudio/Makefile") CONFIG_FILES="$CONFIG_FILES src/libaudio/Makefile" ;; 14958 "src/libgtkex/Makefile") CONFIG_FILES="$CONFIG_FILES src/libgtkex/Makefile" ;; 14959 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 14960 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 14961 "test/kc/Makefile") CONFIG_FILES="$CONFIG_FILES test/kc/Makefile" ;; 14962 "test/kc/prefs/Makefile") CONFIG_FILES="$CONFIG_FILES test/kc/prefs/Makefile" ;; 14963 "test/libaudio/Makefile") CONFIG_FILES="$CONFIG_FILES test/libaudio/Makefile" ;; 14964 "test/libaudio/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/libaudio/data/Makefile" ;; 14965 "test/libgtkex/Makefile") CONFIG_FILES="$CONFIG_FILES test/libgtkex/Makefile" ;; 14966 "roms/Makefile") CONFIG_FILES="$CONFIG_FILES roms/Makefile" ;; 14967 "roms/z1013/Makefile") CONFIG_FILES="$CONFIG_FILES roms/z1013/Makefile" ;; 14968 "roms/z9001/Makefile") CONFIG_FILES="$CONFIG_FILES roms/z9001/Makefile" ;; 14969 "roms/kc85/Makefile") CONFIG_FILES="$CONFIG_FILES roms/kc85/Makefile" ;; 14970 "roms/poly880/Makefile") CONFIG_FILES="$CONFIG_FILES roms/poly880/Makefile" ;; 14971 "roms/lc80/Makefile") CONFIG_FILES="$CONFIG_FILES roms/lc80/Makefile" ;; 14972 "roms/a5105/Makefile") CONFIG_FILES="$CONFIG_FILES roms/a5105/Makefile" ;; 14973 "roms/kramermc/Makefile") CONFIG_FILES="$CONFIG_FILES roms/kramermc/Makefile" ;; 14974 "roms/muglerpc/Makefile") CONFIG_FILES="$CONFIG_FILES roms/muglerpc/Makefile" ;; 14975 "roms/vcs80/Makefile") CONFIG_FILES="$CONFIG_FILES roms/vcs80/Makefile" ;; 14976 "roms/c80/Makefile") CONFIG_FILES="$CONFIG_FILES roms/c80/Makefile" ;; 14977 "tapes/Makefile") CONFIG_FILES="$CONFIG_FILES tapes/Makefile" ;; 14978 "disks/Makefile") CONFIG_FILES="$CONFIG_FILES disks/Makefile" ;; 14979 "images/Makefile") CONFIG_FILES="$CONFIG_FILES images/Makefile" ;; 14980 "images/original/Makefile") CONFIG_FILES="$CONFIG_FILES images/original/Makefile" ;; 14981 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14982 "doc/kcemu-help.xml") CONFIG_FILES="$CONFIG_FILES doc/kcemu-help.xml" ;; 14983 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 14984 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 14985 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;; 14986 "debian/Makefile") CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;; 14987 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;; 14988 "rpm/KCemu.spec") CONFIG_FILES="$CONFIG_FILES rpm/KCemu.spec" ;; 14989 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 14990 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;; 14991 "setup/Makefile") CONFIG_FILES="$CONFIG_FILES setup/Makefile" ;; 14992 "setup/KCemuSetup.nsi") CONFIG_FILES="$CONFIG_FILES setup/KCemuSetup.nsi" ;; 14993 14994 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14995 esac 14996done 14997 14998 14999# If the user did not use the arguments to specify the items to instantiate, 15000# then the envvar interface is used. Set only those that are not. 15001# We use the long form for the default assignment because of an extremely 15002# bizarre bug on SunOS 4.1.3. 15003if $ac_need_defaults; then 15004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15006 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15007fi 15008 15009# Have a temporary directory for convenience. Make it in the build tree 15010# simply because there is no reason against having it here, and in addition, 15011# creating and moving files from /tmp can sometimes cause problems. 15012# Hook for its removal unless debugging. 15013# Note that there is a small window in which the directory will not be cleaned: 15014# after its creation but before its name has been assigned to `$tmp'. 15015$debug || 15016{ 15017 tmp= 15018 trap 'exit_status=$? 15019 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 15020' 0 15021 trap 'as_fn_exit 1' 1 2 13 15 15022} 15023# Create a (secure) tmp directory for tmp files. 15024 15025{ 15026 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15027 test -n "$tmp" && test -d "$tmp" 15028} || 15029{ 15030 tmp=./conf$$-$RANDOM 15031 (umask 077 && mkdir "$tmp") 15032} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 15033 15034# Set up the scripts for CONFIG_FILES section. 15035# No need to generate them if there are no CONFIG_FILES. 15036# This happens for instance with `./config.status config.h'. 15037if test -n "$CONFIG_FILES"; then 15038 15039 15040ac_cr=`echo X | tr X '\015'` 15041# On cygwin, bash can eat \r inside `` if the user requested igncr. 15042# But we know of no other shell where ac_cr would be empty at this 15043# point, so we can use a bashism as a fallback. 15044if test "x$ac_cr" = x; then 15045 eval ac_cr=\$\'\\r\' 15046fi 15047ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15048if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15049 ac_cs_awk_cr='\r' 15050else 15051 ac_cs_awk_cr=$ac_cr 15052fi 15053 15054echo 'BEGIN {' >"$tmp/subs1.awk" && 15055_ACEOF 15056 15057 15058{ 15059 echo "cat >conf$$subs.awk <<_ACEOF" && 15060 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15061 echo "_ACEOF" 15062} >conf$$subs.sh || 15063 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15064ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 15065ac_delim='%!_!# ' 15066for ac_last_try in false false false false false :; do 15067 . ./conf$$subs.sh || 15068 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15069 15070 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15071 if test $ac_delim_n = $ac_delim_num; then 15072 break 15073 elif $ac_last_try; then 15074 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15075 else 15076 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15077 fi 15078done 15079rm -f conf$$subs.sh 15080 15081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15082cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 15083_ACEOF 15084sed -n ' 15085h 15086s/^/S["/; s/!.*/"]=/ 15087p 15088g 15089s/^[^!]*!// 15090:repl 15091t repl 15092s/'"$ac_delim"'$// 15093t delim 15094:nl 15095h 15096s/\(.\{148\}\)..*/\1/ 15097t more1 15098s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15099p 15100n 15101b repl 15102:more1 15103s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15104p 15105g 15106s/.\{148\}// 15107t nl 15108:delim 15109h 15110s/\(.\{148\}\)..*/\1/ 15111t more2 15112s/["\\]/\\&/g; s/^/"/; s/$/"/ 15113p 15114b 15115:more2 15116s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15117p 15118g 15119s/.\{148\}// 15120t delim 15121' <conf$$subs.awk | sed ' 15122/^[^""]/{ 15123 N 15124 s/\n// 15125} 15126' >>$CONFIG_STATUS || ac_write_fail=1 15127rm -f conf$$subs.awk 15128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15129_ACAWK 15130cat >>"\$tmp/subs1.awk" <<_ACAWK && 15131 for (key in S) S_is_set[key] = 1 15132 FS = "" 15133 15134} 15135{ 15136 line = $ 0 15137 nfields = split(line, field, "@") 15138 substed = 0 15139 len = length(field[1]) 15140 for (i = 2; i < nfields; i++) { 15141 key = field[i] 15142 keylen = length(key) 15143 if (S_is_set[key]) { 15144 value = S[key] 15145 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15146 len += length(value) + length(field[++i]) 15147 substed = 1 15148 } else 15149 len += 1 + keylen 15150 } 15151 15152 print line 15153} 15154 15155_ACAWK 15156_ACEOF 15157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15158if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15159 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15160else 15161 cat 15162fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 15163 || as_fn_error "could not setup config files machinery" "$LINENO" 5 15164_ACEOF 15165 15166# VPATH may cause trouble with some makes, so we remove $(srcdir), 15167# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 15168# trailing colons and then remove the whole line if VPATH becomes empty 15169# (actually we leave an empty line to preserve line numbers). 15170if test "x$srcdir" = x.; then 15171 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 15172s/:*\$(srcdir):*/:/ 15173s/:*\${srcdir}:*/:/ 15174s/:*@srcdir@:*/:/ 15175s/^\([^=]*=[ ]*\):*/\1/ 15176s/:*$// 15177s/^[^=]*=[ ]*$// 15178}' 15179fi 15180 15181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15182fi # test -n "$CONFIG_FILES" 15183 15184# Set up the scripts for CONFIG_HEADERS section. 15185# No need to generate them if there are no CONFIG_HEADERS. 15186# This happens for instance with `./config.status Makefile'. 15187if test -n "$CONFIG_HEADERS"; then 15188cat >"$tmp/defines.awk" <<\_ACAWK || 15189BEGIN { 15190_ACEOF 15191 15192# Transform confdefs.h into an awk script `defines.awk', embedded as 15193# here-document in config.status, that substitutes the proper values into 15194# config.h.in to produce config.h. 15195 15196# Create a delimiter string that does not exist in confdefs.h, to ease 15197# handling of long lines. 15198ac_delim='%!_!# ' 15199for ac_last_try in false false :; do 15200 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 15201 if test -z "$ac_t"; then 15202 break 15203 elif $ac_last_try; then 15204 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 15205 else 15206 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15207 fi 15208done 15209 15210# For the awk script, D is an array of macro values keyed by name, 15211# likewise P contains macro parameters if any. Preserve backslash 15212# newline sequences. 15213 15214ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15215sed -n ' 15216s/.\{148\}/&'"$ac_delim"'/g 15217t rset 15218:rset 15219s/^[ ]*#[ ]*define[ ][ ]*/ / 15220t def 15221d 15222:def 15223s/\\$// 15224t bsnl 15225s/["\\]/\\&/g 15226s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15227D["\1"]=" \3"/p 15228s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15229d 15230:bsnl 15231s/["\\]/\\&/g 15232s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15233D["\1"]=" \3\\\\\\n"\\/p 15234t cont 15235s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15236t cont 15237d 15238:cont 15239n 15240s/.\{148\}/&'"$ac_delim"'/g 15241t clear 15242:clear 15243s/\\$// 15244t bsnlc 15245s/["\\]/\\&/g; s/^/"/; s/$/"/p 15246d 15247:bsnlc 15248s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15249b cont 15250' <confdefs.h | sed ' 15251s/'"$ac_delim"'/"\\\ 15252"/g' >>$CONFIG_STATUS || ac_write_fail=1 15253 15254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15255 for (key in D) D_is_set[key] = 1 15256 FS = "" 15257} 15258/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15259 line = \$ 0 15260 split(line, arg, " ") 15261 if (arg[1] == "#") { 15262 defundef = arg[2] 15263 mac1 = arg[3] 15264 } else { 15265 defundef = substr(arg[1], 2) 15266 mac1 = arg[2] 15267 } 15268 split(mac1, mac2, "(") #) 15269 macro = mac2[1] 15270 prefix = substr(line, 1, index(line, defundef) - 1) 15271 if (D_is_set[macro]) { 15272 # Preserve the white space surrounding the "#". 15273 print prefix "define", macro P[macro] D[macro] 15274 next 15275 } else { 15276 # Replace #undef with comments. This is necessary, for example, 15277 # in the case of _POSIX_SOURCE, which is predefined and required 15278 # on some systems where configure will not decide to define it. 15279 if (defundef == "undef") { 15280 print "/*", prefix defundef, macro, "*/" 15281 next 15282 } 15283 } 15284} 15285{ print } 15286_ACAWK 15287_ACEOF 15288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15289 as_fn_error "could not setup config headers machinery" "$LINENO" 5 15290fi # test -n "$CONFIG_HEADERS" 15291 15292 15293eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15294shift 15295for ac_tag 15296do 15297 case $ac_tag in 15298 :[FHLC]) ac_mode=$ac_tag; continue;; 15299 esac 15300 case $ac_mode$ac_tag in 15301 :[FHL]*:*);; 15302 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 15303 :[FH]-) ac_tag=-:-;; 15304 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15305 esac 15306 ac_save_IFS=$IFS 15307 IFS=: 15308 set x $ac_tag 15309 IFS=$ac_save_IFS 15310 shift 15311 ac_file=$1 15312 shift 15313 15314 case $ac_mode in 15315 :L) ac_source=$1;; 15316 :[FH]) 15317 ac_file_inputs= 15318 for ac_f 15319 do 15320 case $ac_f in 15321 -) ac_f="$tmp/stdin";; 15322 *) # Look for the file first in the build tree, then in the source tree 15323 # (if the path is not absolute). The absolute path cannot be DOS-style, 15324 # because $ac_f cannot contain `:'. 15325 test -f "$ac_f" || 15326 case $ac_f in 15327 [\\/$]*) false;; 15328 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15329 esac || 15330 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15331 esac 15332 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15333 as_fn_append ac_file_inputs " '$ac_f'" 15334 done 15335 15336 # Let's still pretend it is `configure' which instantiates (i.e., don't 15337 # use $as_me), people would be surprised to read: 15338 # /* config.h. Generated by config.status. */ 15339 configure_input='Generated from '` 15340 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15341 `' by configure.' 15342 if test x"$ac_file" != x-; then 15343 configure_input="$ac_file. $configure_input" 15344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15345$as_echo "$as_me: creating $ac_file" >&6;} 15346 fi 15347 # Neutralize special characters interpreted by sed in replacement strings. 15348 case $configure_input in #( 15349 *\&* | *\|* | *\\* ) 15350 ac_sed_conf_input=`$as_echo "$configure_input" | 15351 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15352 *) ac_sed_conf_input=$configure_input;; 15353 esac 15354 15355 case $ac_tag in 15356 *:-:* | *:-) cat >"$tmp/stdin" \ 15357 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 15358 esac 15359 ;; 15360 esac 15361 15362 ac_dir=`$as_dirname -- "$ac_file" || 15363$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15364 X"$ac_file" : 'X\(//\)[^/]' \| \ 15365 X"$ac_file" : 'X\(//\)$' \| \ 15366 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15367$as_echo X"$ac_file" | 15368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15369 s//\1/ 15370 q 15371 } 15372 /^X\(\/\/\)[^/].*/{ 15373 s//\1/ 15374 q 15375 } 15376 /^X\(\/\/\)$/{ 15377 s//\1/ 15378 q 15379 } 15380 /^X\(\/\).*/{ 15381 s//\1/ 15382 q 15383 } 15384 s/.*/./; q'` 15385 as_dir="$ac_dir"; as_fn_mkdir_p 15386 ac_builddir=. 15387 15388case "$ac_dir" in 15389.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15390*) 15391 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15392 # A ".." for each directory in $ac_dir_suffix. 15393 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15394 case $ac_top_builddir_sub in 15395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15397 esac ;; 15398esac 15399ac_abs_top_builddir=$ac_pwd 15400ac_abs_builddir=$ac_pwd$ac_dir_suffix 15401# for backward compatibility: 15402ac_top_builddir=$ac_top_build_prefix 15403 15404case $srcdir in 15405 .) # We are building in place. 15406 ac_srcdir=. 15407 ac_top_srcdir=$ac_top_builddir_sub 15408 ac_abs_top_srcdir=$ac_pwd ;; 15409 [\\/]* | ?:[\\/]* ) # Absolute name. 15410 ac_srcdir=$srcdir$ac_dir_suffix; 15411 ac_top_srcdir=$srcdir 15412 ac_abs_top_srcdir=$srcdir ;; 15413 *) # Relative name. 15414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15415 ac_top_srcdir=$ac_top_build_prefix$srcdir 15416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15417esac 15418ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15419 15420 15421 case $ac_mode in 15422 :F) 15423 # 15424 # CONFIG_FILE 15425 # 15426 15427 case $INSTALL in 15428 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15429 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15430 esac 15431 ac_MKDIR_P=$MKDIR_P 15432 case $MKDIR_P in 15433 [\\/$]* | ?:[\\/]* ) ;; 15434 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15435 esac 15436_ACEOF 15437 15438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15439# If the template does not know about datarootdir, expand it. 15440# FIXME: This hack should be removed a few years after 2.60. 15441ac_datarootdir_hack=; ac_datarootdir_seen= 15442ac_sed_dataroot=' 15443/datarootdir/ { 15444 p 15445 q 15446} 15447/@datadir@/p 15448/@docdir@/p 15449/@infodir@/p 15450/@localedir@/p 15451/@mandir@/p' 15452case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15453*datarootdir*) ac_datarootdir_seen=yes;; 15454*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15456$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15457_ACEOF 15458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15459 ac_datarootdir_hack=' 15460 s&@datadir@&$datadir&g 15461 s&@docdir@&$docdir&g 15462 s&@infodir@&$infodir&g 15463 s&@localedir@&$localedir&g 15464 s&@mandir@&$mandir&g 15465 s&\\\${datarootdir}&$datarootdir&g' ;; 15466esac 15467_ACEOF 15468 15469# Neutralize VPATH when `$srcdir' = `.'. 15470# Shell code in configure.ac might set extrasub. 15471# FIXME: do we really want to maintain this feature? 15472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15473ac_sed_extra="$ac_vpsub 15474$extrasub 15475_ACEOF 15476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15477:t 15478/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15479s|@configure_input@|$ac_sed_conf_input|;t t 15480s&@top_builddir@&$ac_top_builddir_sub&;t t 15481s&@top_build_prefix@&$ac_top_build_prefix&;t t 15482s&@srcdir@&$ac_srcdir&;t t 15483s&@abs_srcdir@&$ac_abs_srcdir&;t t 15484s&@top_srcdir@&$ac_top_srcdir&;t t 15485s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15486s&@builddir@&$ac_builddir&;t t 15487s&@abs_builddir@&$ac_abs_builddir&;t t 15488s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15489s&@INSTALL@&$ac_INSTALL&;t t 15490s&@MKDIR_P@&$ac_MKDIR_P&;t t 15491$ac_datarootdir_hack 15492" 15493eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 15494 || as_fn_error "could not create $ac_file" "$LINENO" 5 15495 15496test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15497 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 15498 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 15499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15500which seems to be undefined. Please make sure it is defined." >&5 15501$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15502which seems to be undefined. Please make sure it is defined." >&2;} 15503 15504 rm -f "$tmp/stdin" 15505 case $ac_file in 15506 -) cat "$tmp/out" && rm -f "$tmp/out";; 15507 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 15508 esac \ 15509 || as_fn_error "could not create $ac_file" "$LINENO" 5 15510 ;; 15511 :H) 15512 # 15513 # CONFIG_HEADER 15514 # 15515 if test x"$ac_file" != x-; then 15516 { 15517 $as_echo "/* $configure_input */" \ 15518 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 15519 } >"$tmp/config.h" \ 15520 || as_fn_error "could not create $ac_file" "$LINENO" 5 15521 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 15522 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15523$as_echo "$as_me: $ac_file is unchanged" >&6;} 15524 else 15525 rm -f "$ac_file" 15526 mv "$tmp/config.h" "$ac_file" \ 15527 || as_fn_error "could not create $ac_file" "$LINENO" 5 15528 fi 15529 else 15530 $as_echo "/* $configure_input */" \ 15531 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 15532 || as_fn_error "could not create -" "$LINENO" 5 15533 fi 15534# Compute "$ac_file"'s index in $config_headers. 15535_am_arg="$ac_file" 15536_am_stamp_count=1 15537for _am_header in $config_headers :; do 15538 case $_am_header in 15539 $_am_arg | $_am_arg:* ) 15540 break ;; 15541 * ) 15542 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15543 esac 15544done 15545echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15546$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15547 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15548 X"$_am_arg" : 'X\(//\)$' \| \ 15549 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15550$as_echo X"$_am_arg" | 15551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15552 s//\1/ 15553 q 15554 } 15555 /^X\(\/\/\)[^/].*/{ 15556 s//\1/ 15557 q 15558 } 15559 /^X\(\/\/\)$/{ 15560 s//\1/ 15561 q 15562 } 15563 /^X\(\/\).*/{ 15564 s//\1/ 15565 q 15566 } 15567 s/.*/./; q'`/stamp-h$_am_stamp_count 15568 ;; 15569 15570 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15571$as_echo "$as_me: executing $ac_file commands" >&6;} 15572 ;; 15573 esac 15574 15575 15576 case $ac_file$ac_mode in 15577 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15578 # Autoconf 2.62 quotes --file arguments for eval, but not when files 15579 # are listed without --file. Let's play safe and only enable the eval 15580 # if we detect the quoting. 15581 case $CONFIG_FILES in 15582 *\'*) eval set x "$CONFIG_FILES" ;; 15583 *) set x $CONFIG_FILES ;; 15584 esac 15585 shift 15586 for mf 15587 do 15588 # Strip MF so we end up with the name of the file. 15589 mf=`echo "$mf" | sed -e 's/:.*$//'` 15590 # Check whether this is an Automake generated Makefile or not. 15591 # We used to match only the files named `Makefile.in', but 15592 # some people rename them; so instead we look at the file content. 15593 # Grep'ing the first line is not enough: some people post-process 15594 # each Makefile.in and add a new line on top of each file to say so. 15595 # Grep'ing the whole file is not good either: AIX grep has a line 15596 # limit of 2048, but all sed's we know have understand at least 4000. 15597 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15598 dirpart=`$as_dirname -- "$mf" || 15599$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15600 X"$mf" : 'X\(//\)[^/]' \| \ 15601 X"$mf" : 'X\(//\)$' \| \ 15602 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15603$as_echo X"$mf" | 15604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15605 s//\1/ 15606 q 15607 } 15608 /^X\(\/\/\)[^/].*/{ 15609 s//\1/ 15610 q 15611 } 15612 /^X\(\/\/\)$/{ 15613 s//\1/ 15614 q 15615 } 15616 /^X\(\/\).*/{ 15617 s//\1/ 15618 q 15619 } 15620 s/.*/./; q'` 15621 else 15622 continue 15623 fi 15624 # Extract the definition of DEPDIR, am__include, and am__quote 15625 # from the Makefile without running `make'. 15626 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15627 test -z "$DEPDIR" && continue 15628 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15629 test -z "am__include" && continue 15630 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15631 # When using ansi2knr, U may be empty or an underscore; expand it 15632 U=`sed -n 's/^U = //p' < "$mf"` 15633 # Find all dependency output files, they are included files with 15634 # $(DEPDIR) in their names. We invoke sed twice because it is the 15635 # simplest approach to changing $(DEPDIR) to its actual value in the 15636 # expansion. 15637 for file in `sed -n " 15638 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15639 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 15640 # Make sure the directory exists. 15641 test -f "$dirpart/$file" && continue 15642 fdir=`$as_dirname -- "$file" || 15643$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15644 X"$file" : 'X\(//\)[^/]' \| \ 15645 X"$file" : 'X\(//\)$' \| \ 15646 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15647$as_echo X"$file" | 15648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15649 s//\1/ 15650 q 15651 } 15652 /^X\(\/\/\)[^/].*/{ 15653 s//\1/ 15654 q 15655 } 15656 /^X\(\/\/\)$/{ 15657 s//\1/ 15658 q 15659 } 15660 /^X\(\/\).*/{ 15661 s//\1/ 15662 q 15663 } 15664 s/.*/./; q'` 15665 as_dir=$dirpart/$fdir; as_fn_mkdir_p 15666 # echo "creating $dirpart/$file" 15667 echo '# dummy' > "$dirpart/$file" 15668 done 15669 done 15670} 15671 ;; 15672 "po-directories":C) 15673 for ac_file in $CONFIG_FILES; do 15674 # Support "outfile[:infile[:infile...]]" 15675 case "$ac_file" in 15676 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 15677 esac 15678 # PO directories have a Makefile.in generated from Makefile.in.in. 15679 case "$ac_file" in */Makefile.in) 15680 # Adjust a relative srcdir. 15681 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 15682 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 15683 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 15684 # In autoconf-2.13 it is called $ac_given_srcdir. 15685 # In autoconf-2.50 it is called $srcdir. 15686 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 15687 case "$ac_given_srcdir" in 15688 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 15689 /*) top_srcdir="$ac_given_srcdir" ;; 15690 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 15691 esac 15692 # Treat a directory as a PO directory if and only if it has a 15693 # POTFILES.in file. This allows packages to have multiple PO 15694 # directories under different names or in different locations. 15695 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 15696 rm -f "$ac_dir/POTFILES" 15697 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 15698 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 15699 POMAKEFILEDEPS="POTFILES.in" 15700 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 15701 # on $ac_dir but don't depend on user-specified configuration 15702 # parameters. 15703 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 15704 # The LINGUAS file contains the set of available languages. 15705 if test -n "$OBSOLETE_ALL_LINGUAS"; then 15706 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 15707 fi 15708 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 15709 # Hide the ALL_LINGUAS assigment from automake < 1.5. 15710 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 15711 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 15712 else 15713 # The set of available languages was given in configure.in. 15714 # Hide the ALL_LINGUAS assigment from automake < 1.5. 15715 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 15716 fi 15717 # Compute POFILES 15718 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 15719 # Compute UPDATEPOFILES 15720 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 15721 # Compute DUMMYPOFILES 15722 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 15723 # Compute GMOFILES 15724 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 15725 case "$ac_given_srcdir" in 15726 .) srcdirpre= ;; 15727 *) srcdirpre='$(srcdir)/' ;; 15728 esac 15729 POFILES= 15730 UPDATEPOFILES= 15731 DUMMYPOFILES= 15732 GMOFILES= 15733 for lang in $ALL_LINGUAS; do 15734 POFILES="$POFILES $srcdirpre$lang.po" 15735 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 15736 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 15737 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 15738 done 15739 # CATALOGS depends on both $ac_dir and the user's LINGUAS 15740 # environment variable. 15741 INST_LINGUAS= 15742 if test -n "$ALL_LINGUAS"; then 15743 for presentlang in $ALL_LINGUAS; do 15744 useit=no 15745 if test "%UNSET%" != "$LINGUAS"; then 15746 desiredlanguages="$LINGUAS" 15747 else 15748 desiredlanguages="$ALL_LINGUAS" 15749 fi 15750 for desiredlang in $desiredlanguages; do 15751 # Use the presentlang catalog if desiredlang is 15752 # a. equal to presentlang, or 15753 # b. a variant of presentlang (because in this case, 15754 # presentlang can be used as a fallback for messages 15755 # which are not translated in the desiredlang catalog). 15756 case "$desiredlang" in 15757 "$presentlang"*) useit=yes;; 15758 esac 15759 done 15760 if test $useit = yes; then 15761 INST_LINGUAS="$INST_LINGUAS $presentlang" 15762 fi 15763 done 15764 fi 15765 CATALOGS= 15766 if test -n "$INST_LINGUAS"; then 15767 for lang in $INST_LINGUAS; do 15768 CATALOGS="$CATALOGS $lang.gmo" 15769 done 15770 fi 15771 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 15772 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" 15773 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 15774 if test -f "$f"; then 15775 case "$f" in 15776 *.orig | *.bak | *~) ;; 15777 *) cat "$f" >> "$ac_dir/Makefile" ;; 15778 esac 15779 fi 15780 done 15781 fi 15782 ;; 15783 esac 15784 done ;; 15785 15786 esac 15787done # for ac_tag 15788 15789 15790as_fn_exit 0 15791_ACEOF 15792ac_clean_files=$ac_clean_files_save 15793 15794test $ac_write_fail = 0 || 15795 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 15796 15797 15798# configure is writing to config.log, and then calls config.status. 15799# config.status does its own redirection, appending to config.log. 15800# Unfortunately, on DOS this fails, as config.log is still kept open 15801# by configure, so config.status won't be able to write to it; its 15802# output is simply discarded. So we exec the FD to /dev/null, 15803# effectively closing config.log, so it can be properly (re)opened and 15804# appended to by config.status. When coming back to configure, we 15805# need to make the FD available again. 15806if test "$no_create" != yes; then 15807 ac_cs_success=: 15808 ac_config_status_args= 15809 test "$silent" = yes && 15810 ac_config_status_args="$ac_config_status_args --quiet" 15811 exec 5>/dev/null 15812 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15813 exec 5>>config.log 15814 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15815 # would make configure fail if this is the last instruction. 15816 $ac_cs_success || as_fn_exit $? 15817fi 15818if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15820$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15821fi 15822 15823 15824 15825 15826 15827echo "" 15828echo "" 15829echo "KCemu configuration summary:" 15830echo "----------------------------" 15831echo "" 15832echo "- version : KCemu $KCEMU_VERSION" 15833echo "" 15834echo "- architecture : $HOST_OS" 15835echo "- host system : $host" 15836echo "- install prefix : $prefix" 15837echo "" 15838echo "- z80 emulation : $z80_emulation_type" 15839echo "- sound : $enable_sound" 15840echo "- debug level : $DBG_LEVEL" 15841echo "" 15842echo "- audio:" 15843echo "" 15844echo " * sndfile : $have_libsndfile" 15845echo " * audiofile : $have_libaudiofile" 15846echo " * vorbis : $have_libvorbis" 15847echo " * mp3lame : $have_libmp3lame" 15848echo " * FLAC : $have_libflac" 15849echo "" 15850echo "- video:" 15851echo "" 15852echo " * theora : $have_theora$have_theora_version" 15853echo " * avformat : $have_avformat" 15854echo " * dirac : $have_dirac" 15855echo " * schroedinger : $have_libschroedinger" 15856echo " * xvid : $have_libxvidcore" 15857echo " * vncserver : $have_libvncserver" 15858echo "" 15859echo "" 15860