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